changes.txt revision 216471
1117521Snjl---------------------------------------- 2216471Sjkim09 December 2010. Summary of changes for version 20101209: 3216471Sjkim 4216471SjkimThis release is available at www.acpica.org/downloads 5216471Sjkim 6216471Sjkim1) ACPI CA Core Subsystem: 7216471Sjkim 8216471SjkimCompleted the major overhaul of the GPE support code that was begun in July 9216471Sjkim2010. Major features include: removal of _PRW execution in ACPICA (host 10216471Sjkimexecutes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 11216471Sjkimchanges to existing interfaces, simplification of GPE handler operation, and 12216471Sjkima handful of new interfaces: 13216471Sjkim 14216471Sjkim AcpiUpdateAllGpes 15216471Sjkim AcpiFinishGpe 16216471Sjkim AcpiSetupGpeForWake 17216471Sjkim AcpiSetGpeWakeMask 18216471Sjkim One new file, evxfgpe.c to consolidate all external GPE interfaces. 19216471Sjkim 20216471SjkimSee the ACPICA Programmer Reference for full details and programming 21216471Sjkiminformation. See the new section 4.4 "General Purpose Event (GPE) Support" 22216471Sjkimfor a full overview, and section 8.7 "ACPI General Purpose Event Management" 23216471Sjkimfor programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 24216471SjkimBob Moore, Rafael Wysocki. 25216471Sjkim 26216471SjkimImplemented a new GPE feature for Windows compatibility, the "Implicit Wake 27216471SjkimGPE Notify". This feature will automatically issue a Notify(2) on a device 28216471Sjkimwhen a Wake GPE is received if there is no corresponding GPE method or 29216471Sjkimhandler. ACPICA BZ 870. 30216471Sjkim 31216471SjkimFixed a problem with the Scope() operator during table parse and load phase. 32216471SjkimDuring load phase (table load or method execution), the scope operator should 33216471Sjkimnot enter the target into the namespace. Instead, it should open a new scope 34216471Sjkimat the target location. Linux BZ 19462, ACPICA BZ 882. 35216471Sjkim 36216471SjkimExample Code and Data Size: These are the sizes for the OS-independent 37216471Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 38216471Sjkimdebug version of the code includes the debug output trace mechanism and has a 39216471Sjkimmuch larger code and data size. 40216471Sjkim 41216471Sjkim Previous Release: 42216471Sjkim Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 43216471Sjkim Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 44216471Sjkim Current Release: 45216471Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 46216471Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 47216471Sjkim 48216471Sjkim2) iASL Compiler/Disassembler and Tools: 49216471Sjkim 50216471SjkimiASL: Relax the alphanumeric restriction on _CID strings. These strings are 51216471Sjkim"bus-specific" per the ACPI specification, and therefore any characters are 52216471Sjkimacceptable. The only checks that can be performed are for a null string and 53216471Sjkimperhaps for a leading asterisk. ACPICA BZ 886. 54216471Sjkim 55216471SjkimiASL: Fixed a problem where a syntax error that caused a premature EOF 56216471Sjkimcondition on the source file emitted a very confusing error message. The 57216471Sjkimpremature EOF is now detected correctly. ACPICA BZ 891. 58216471Sjkim 59216471SjkimDisassembler: Decode the AccessSize within a Generic Address Structure (byte 60216471Sjkimaccess, word access, etc.) Note, this field does not allow arbitrary bit 61216471Sjkimaccess, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 62216471Sjkim 63216471SjkimNew: AcpiNames utility - Example namespace dump utility. Shows an example of 64216471SjkimACPICA configuration for a minimal namespace dump utility. Uses table and 65216471Sjkimnamespace managers, but no AML interpreter. Does not add any functionality 66216471Sjkimover AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 67216471Sjkimpartition and configure ACPICA. ACPICA BZ 883. 68216471Sjkim 69216471SjkimAML Debugger: Increased the debugger buffer size for method return objects. 70216471SjkimWas 4K, increased to 16K. Also enhanced error messages for debugger method 71216471Sjkimexecution, including the buffer overflow case. 72216471Sjkim 73216471Sjkim---------------------------------------- 74213806Sjkim13 October 2010. Summary of changes for version 20101013: 75213806Sjkim 76213806SjkimThis release is available at www.acpica.org/downloads 77213806Sjkim 78213806Sjkim1) ACPI CA Core Subsystem: 79213806Sjkim 80213806SjkimAdded support to clear the PCIEXP_WAKE event. When clearing ACPI events, now 81213806Sjkimclear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 82213806SjkimHwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 83213806Sjkim 84213806SjkimChanged the type of the predefined namespace object _TZ from ThermalZone to 85213806SjkimDevice. This was found to be confusing to the host software that processes 86213806Sjkimthe various thermal zones, since _TZ is not really a ThermalZone. However, a 87213806SjkimNotify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 88213806SjkimZhang. 89213806Sjkim 90213806SjkimAdded Windows Vista SP2 to the list of supported _OSI strings. The actual 91213806Sjkimstring is "Windows 2006 SP2". 92213806Sjkim 93213806SjkimEliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepair 94213806Sjkimcode automatically repairs _HID-related strings, this type of code is no 95213806Sjkimlonger needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 96213806Sjkim 97213806SjkimExample Code and Data Size: These are the sizes for the OS-independent 98213806Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 99213806Sjkimdebug version of the code includes the debug output trace mechanism and has a 100213806Sjkimmuch larger code and data size. 101213806Sjkim 102213806Sjkim Previous Release: 103213806Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 104213806Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 105213806Sjkim Current Release: 106213806Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 107213806Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 108213806Sjkim 109213806Sjkim2) iASL Compiler/Disassembler and Tools: 110213806Sjkim 111213806SjkimiASL: Implemented additional compile-time validation for _HID strings. The 112213806Sjkimnon-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of 113213806Sjkimthe string must be exactly seven or eight characters. For both _HID and _CID 114213806Sjkimstrings, all characters must be alphanumeric. ACPICA BZ 874. 115213806Sjkim 116213806SjkimiASL: Allow certain "null" resource descriptors. Some BIOS code creates 117213806Sjkimdescriptors that are mostly or all zeros, with the expectation that they will 118213806Sjkimbe filled in at runtime. iASL now allows this as long as there is a "resource 119213806Sjkimtag" (name) associated with the descriptor, which gives the ASL a handle 120213806Sjkimneeded to modify the descriptor. ACPICA BZ 873. 121213806Sjkim 122213806SjkimAdded single-thread support to the generic Unix application OSL. Primarily 123213806Sjkimfor iASL support, this change removes the use of semaphores in the single- 124213806Sjkimthreaded ACPICA tools/applications - increasing performance. The 125213806Sjkim_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 126213806Sjkimoption. ACPICA BZ 879. 127213806Sjkim 128213806SjkimAcpiExec: several fixes for the 64-bit version. Adds XSDT support and support 129213806Sjkimfor 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 130213806Sjkim 131213806SjkimiASL: Moved all compiler messages to a new file, aslmessages.h. 132213806Sjkim 133213806Sjkim---------------------------------------- 134212761Sjkim15 September 2010. Summary of changes for version 20100915: 135212761Sjkim 136212761SjkimThis release is available at www.acpica.org/downloads 137212761Sjkim 138212761Sjkim1) ACPI CA Core Subsystem: 139212761Sjkim 140212761SjkimRemoved the AcpiOsDerivePciId OSL interface. The various host implementations 141212761Sjkimof this function were not OS-dependent and are now obsolete and can be 142212761Sjkimremoved from all host OSLs. This function has been replaced by 143212761SjkimAcpiHwDerivePciId, which is now part of the ACPICA core code. 144212761SjkimAcpiHwDerivePciId has been implemented without recursion. Adds one new 145212761Sjkimmodule, hwpci.c. ACPICA BZ 857. 146212761Sjkim 147212761SjkimImplemented a dynamic repair for _HID and _CID strings. The following 148212761Sjkimproblems are now repaired at runtime: 1) Remove a leading asterisk in the 149212761Sjkimstring, and 2) the entire string is uppercased. Both repairs are in 150212761Sjkimaccordance with the ACPI specification and will simplify host driver code. 151212761SjkimACPICA BZ 871. 152212761Sjkim 153212761SjkimThe ACPI_THREAD_ID type is no longer configurable, internally it is now 154212761Sjkimalways UINT64. This simplifies the ACPICA code, especially any printf output. 155212761SjkimUINT64 is the only common data type for all thread_id types across all 156212761Sjkimoperating systems. It is now up to the host OSL to cast the native thread_id 157212761Sjkimtype to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). 158212761SjkimLin Ming, Bob Moore. 159212761Sjkim 160212761SjkimAdded the ACPI_INLINE type to enhance the ACPICA configuration. The "inline" 161212761Sjkimkeyword is not standard across compilers, and this type allows inline to be 162212761Sjkimconfigured on a per-compiler basis. Lin Ming. 163212761Sjkim 164212761SjkimMade the system global AcpiGbl_SystemAwakeAndRunning publically available. 165212761SjkimAdded an extern for this boolean in acpixf.h. Some hosts utilize this value 166212761Sjkimduring suspend/restore operations. ACPICA BZ 869. 167212761Sjkim 168212761SjkimAll code that implements error/warning messages with the "ACPI:" prefix has 169212761Sjkimbeen moved to a new module, utxferror.c. 170212761Sjkim 171212761SjkimThe UINT64_OVERLAY was moved to utmath.c, which is the only module where it 172212761Sjkimis used. ACPICA BZ 829. Lin Ming, Bob Moore. 173212761Sjkim 174212761SjkimExample Code and Data Size: These are the sizes for the OS-independent 175212761Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 176212761Sjkimdebug version of the code includes the debug output trace mechanism and has a 177212761Sjkimmuch larger code and data size. 178212761Sjkim 179212761Sjkim Previous Release: 180212761Sjkim Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 181212761Sjkim Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 182212761Sjkim Current Release: 183212761Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 184212761Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 185212761Sjkim 186212761Sjkim2) iASL Compiler/Disassembler and Tools: 187212761Sjkim 188212761SjkimiASL/Disassembler: Write ACPI errors to stderr instead of the output file. 189212761SjkimThis keeps the output files free of random error messages that may originate 190212761Sjkimfrom within the namespace/interpreter code. Used this opportunity to merge 191212761Sjkimall ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 192212761Sjkim866. Lin Ming, Bob Moore. 193212761Sjkim 194212761SjkimTools: update some printfs for ansi warnings on size_t. Handle width change 195212761Sjkimof size_t on 32-bit versus 64-bit generations. Lin Ming. 196212761Sjkim 197212761Sjkim---------------------------------------- 198210976Sjkim06 August 2010. Summary of changes for version 20100806: 199210976Sjkim 200210976Sjkim1) ACPI CA Core Subsystem: 201210976Sjkim 202210976SjkimDesigned and implemented a new host interface to the _OSI support code. This 203210976Sjkimwill allow the host to dynamically add or remove multiple _OSI strings, as 204210976Sjkimwell as install an optional handler that is called for each _OSI invocation. 205210976SjkimAlso added a new AML debugger command, 'osi' to display and modify the global 206210976Sjkim_OSI string table, and test support in the AcpiExec utility. See the ACPICA 207210976Sjkimreference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 208210976SjkimNew Functions: 209210976Sjkim AcpiInstallInterface - Add an _OSI string. 210210976Sjkim AcpiRemoveInterface - Delete an _OSI string. 211210976Sjkim AcpiInstallInterfaceHandler - Install optional _OSI handler. 212210976SjkimObsolete Functions: 213210976Sjkim AcpiOsValidateInterface - no longer used. 214210976SjkimNew Files: 215210976Sjkim source/components/utilities/utosi.c 216210976Sjkim 217210976SjkimRe-introduced the support to enable multi-byte transfers for Embedded 218210976SjkimController (EC) operation regions. A reported problem was found to be a bug 219210976Sjkimin the host OS, not in the multi-byte support. Previously, the maximum data 220210976Sjkimsize passed to the EC operation region handler was a single byte. There are 221210976Sjkimoften EC Fields larger than one byte that need to be transferred, and it is 222210976Sjkimuseful for the EC driver to lock these as a single transaction. This change 223210976Sjkimenables single transfers larger than 8 bits. This effectively changes the 224210976Sjkimaccess to the EC space from ByteAcc to AnyAcc, and will probably require 225210976Sjkimchanges to the host OS Embedded Controller driver to enable 16/32/64/256-bit 226210976Sjkimtransfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 227210976Sjkim 228210976SjkimFixed a problem with the prototype for AcpiOsReadPciConfiguration. The 229210976Sjkimprototype in acpiosxf.h had the output value pointer as a (void *). 230210976SjkimIt should be a (UINT64 *). This may affect some host OSL code. 231210976Sjkim 232210976SjkimFixed a couple problems with the recently modified Linux makefiles for iASL 233210976Sjkimand AcpiExec. These new makefiles place the generated object files in the 234210976Sjkimlocal directory so that there can be no collisions between the files that are 235210976Sjkimshared between them that are compiled with different options. 236210976Sjkim 237210976SjkimExample Code and Data Size: These are the sizes for the OS-independent 238210976Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 239210976Sjkimdebug version of the code includes the debug output trace mechanism and has a 240210976Sjkimmuch larger code and data size. 241210976Sjkim 242210976Sjkim Previous Release: 243210976Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 244210976Sjkim Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 245210976Sjkim Current Release: 246210976Sjkim Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 247210976Sjkim Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 248210976Sjkim 249210976Sjkim2) iASL Compiler/Disassembler and Tools: 250210976Sjkim 251210976SjkimiASL/Disassembler: Added a new option (-da, "disassemble all") to load the 252210976Sjkimnamespace from and disassemble an entire group of AML files. Useful for 253210976Sjkimloading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) and 254210976Sjkimdisassembling with one simple command. ACPICA BZ 865. Lin Ming. 255210976Sjkim 256210976SjkimiASL: Allow multiple invocations of -e option. This change allows multiple 257210976Sjkimuses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 834. 258210976SjkimLin Ming. 259210976Sjkim 260210976Sjkim---------------------------------------- 261209746Sjkim02 July 2010. Summary of changes for version 20100702: 262209746Sjkim 263209746Sjkim1) ACPI CA Core Subsystem: 264209746Sjkim 265209746SjkimImplemented several updates to the recently added GPE reference count 266209746Sjkimsupport. The model for "wake" GPEs is changing to give the host OS complete 267209746Sjkimcontrol of these GPEs. Eventually, the ACPICA core will not execute any _PRW 268209746Sjkimmethods, since the host already must execute them. Also, additional changes 269209746Sjkimwere made to help ensure that the reference counts are kept in proper 270209746Sjkimsynchronization with reality. Rafael J. Wysocki. 271209746Sjkim 272209746Sjkim1) Ensure that GPEs are not enabled twice during initialization. 273209746Sjkim2) Ensure that GPE enable masks stay in sync with the reference count. 274209746Sjkim3) Do not inadvertently enable GPEs when writing GPE registers. 275209746Sjkim4) Remove the internal wake reference counter and add new AcpiGpeWakeup 276209746Sjkiminterface. This interface will set or clear individual GPEs for wakeup. 277209746Sjkim5) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces 278209746Sjkimare now used for "runtime" GPEs only. 279209746Sjkim 280209746SjkimChanged the behavior of the GPE install/remove handler interfaces. The GPE is 281209746Sjkimno longer disabled during this process, as it was found to cause problems on 282209746Sjkimsome machines. Rafael J. Wysocki. 283209746Sjkim 284209746SjkimReverted a change introduced in version 20100528 to enable Embedded 285209746SjkimController multi-byte transfers. This change was found to cause problems with 286209746SjkimIndex Fields and possibly Bank Fields. It will be reintroduced when these 287209746Sjkimproblems have been resolved. 288209746Sjkim 289209746SjkimFixed a problem with references to Alias objects within Package Objects. A 290209746Sjkimreference to an Alias within the definition of a Package was not always 291209746Sjkimresolved properly. Aliases to objects like Processors, Thermal zones, etc. 292209746Sjkimwere resolved to the actual object instead of a reference to the object as it 293209746Sjkimshould be. Package objects are only allowed to contain integer, string, 294209746Sjkimbuffer, package, and reference objects. Redhat bugzilla 608648. 295209746Sjkim 296209746SjkimExample Code and Data Size: These are the sizes for the OS-independent 297209746Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 298209746Sjkimdebug version of the code includes the debug output trace mechanism and has a 299209746Sjkimmuch larger code and data size. 300209746Sjkim 301209746Sjkim Previous Release: 302209746Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 303209746Sjkim Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 304209746Sjkim Current Release: 305209746Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 306209746Sjkim Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 307209746Sjkim 308209746Sjkim2) iASL Compiler/Disassembler and Tools: 309209746Sjkim 310209746SjkimiASL: Implemented a new compiler subsystem to allow definition and 311209746Sjkimcompilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. These 312209746Sjkimare called "ACPI Data Tables", and the new compiler is the "Data Table 313209746SjkimCompiler". This compiler is intended to simplify the existing error-prone 314209746Sjkimprocess of creating these tables for the BIOS, as well as allowing the 315209746Sjkimdisassembly, modification, recompilation, and override of existing ACPI data 316209746Sjkimtables. See the iASL User Guide for detailed information. 317209746Sjkim 318209746SjkimiASL: Implemented a new Template Generator option in support of the new Data 319209746SjkimTable Compiler. This option will create examples of all known ACPI tables 320209746Sjkimthat can be used as the basis for table development. See the iASL 321209746Sjkimdocumentation and the -T option. 322209746Sjkim 323209746SjkimDisassembler and headers: Added support for the WDDT ACPI table (Watchdog 324209746SjkimDescriptor Table). 325209746Sjkim 326209746SjkimUpdated the Linux makefiles for iASL and AcpiExec to place the generated 327209746Sjkimobject files in the local directory so that there can be no collisions 328209746Sjkimbetween the shared files between them that are generated with different 329209746Sjkimoptions. 330209746Sjkim 331209746SjkimAdded support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 332209746Sjkimthe #define __APPLE__ to enable this support. 333209746Sjkim 334209746Sjkim---------------------------------------- 335209746Sjkim28 May 2010. Summary of changes for version 20100528: 336209746Sjkim 337209746SjkimNote: The ACPI 4.0a specification was released on April 5, 2010 and is 338209746Sjkimavailable at www.acpi.info. This is primarily an errata release. 339209746Sjkim 340209746Sjkim1) ACPI CA Core Subsystem: 341209746Sjkim 342209746SjkimUndefined ACPI tables: We are looking for the definitions for the following 343209746SjkimACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 344209746Sjkim 345209746SjkimImplemented support to enable multi-byte transfers for Embedded Controller 346209746Sjkim(EC) operation regions. Previously, the maximum data size passed to the EC 347209746Sjkimoperation region handler was a single byte. There are often EC Fields larger 348209746Sjkimthan one byte that need to be transferred, and it is useful for the EC driver 349209746Sjkimto lock these as a single transaction. This change enables single transfers 350209746Sjkimlarger than 8 bits. This effectively changes the access to the EC space from 351209746SjkimByteAcc to AnyAcc, and will probably require changes to the host OS Embedded 352209746SjkimController driver to enable 16/32/64/256-bit transfers in addition to 8-bit 353209746Sjkimtransfers. Alexey Starikovskiy, Lin Ming 354209746Sjkim 355209746SjkimImplemented a performance enhancement for namespace search and access. This 356209746Sjkimchange enhances the performance of namespace searches and walks by adding a 357209746Sjkimbackpointer to the parent in each namespace node. On large namespaces, this 358209746Sjkimchange can improve overall ACPI performance by up to 9X. Adding a pointer to 359209746Sjkimeach namespace node increases the overall size of the internal namespace by 360209746Sjkimabout 5%, since each namespace entry usually consists of both a namespace 361209746Sjkimnode and an ACPI operand object. However, this is the first growth of the 362209746Sjkimnamespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 363209746Sjkim 364209746SjkimImplemented a performance optimization that reduces the number of namespace 365209746Sjkimwalks. On control method exit, only walk the namespace if the method is known 366209746Sjkimto have created namespace objects outside of its local scope. Previously, the 367209746Sjkimentire namespace was traversed on each control method exit. This change can 368209746Sjkimimprove overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. 369209746Sjkim 370209746SjkimAdded support to truncate I/O addresses to 16 bits for Windows compatibility. 371209746SjkimSome ASL code has been seen in the field that inadvertently has bits set 372209746Sjkimabove bit 15. This feature is optional and is enabled if the BIOS requests 373209746Sjkimany Windows OSI strings. It can also be enabled by the host OS. Matthew 374209746SjkimGarrett, Bob Moore. 375209746Sjkim 376209746SjkimAdded support to limit the maximum time for the ASL Sleep() operator. To 377209746Sjkimprevent accidental deep sleeps, limit the maximum time that Sleep() will 378209746Sjkimactually sleep. Configurable, the default maximum is two seconds. ACPICA 379209746Sjkimbugzilla 854. 380209746Sjkim 381209746SjkimAdded run-time validation support for the _WDG and_WED Microsoft predefined 382209746Sjkimmethods. These objects are defined by "Windows Instrumentation", and are not 383209746Sjkimpart of the ACPI spec. ACPICA BZ 860. 384209746Sjkim 385209746SjkimExpanded all statistic counters used during namespace and device 386209746Sjkiminitialization from 16 to 32 bits in order to support very large namespaces. 387209746Sjkim 388209746SjkimReplaced all instances of %d in printf format specifiers with %u since nearly 389209746Sjkimall integers in ACPICA are unsigned. 390209746Sjkim 391209746SjkimFixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned 392209746Sjkimas AE_NO_HANDLER. 393209746Sjkim 394209746SjkimExample Code and Data Size: These are the sizes for the OS-independent 395209746Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 396209746Sjkimdebug version of the code includes the debug output trace mechanism and has a 397209746Sjkimmuch larger code and data size. 398209746Sjkim 399209746Sjkim Previous Release: 400209746Sjkim Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 401209746Sjkim Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 402209746Sjkim Current Release: 403209746Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 404209746Sjkim Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 405209746Sjkim 406209746Sjkim2) iASL Compiler/Disassembler and Tools: 407209746Sjkim 408209746SjkimiASL: Added compiler support for the _WDG and_WED Microsoft predefined 409209746Sjkimmethods. These objects are defined by "Windows Instrumentation", and are not 410209746Sjkimpart of the ACPI spec. ACPICA BZ 860. 411209746Sjkim 412209746SjkimAcpiExec: added option to disable the memory tracking mechanism. The -dt 413209746Sjkimoption will disable the tracking mechanism, which improves performance 414209746Sjkimconsiderably. 415209746Sjkim 416209746SjkimAcpiExec: Restructured the command line options into -d (disable) and -e 417209746Sjkim(enable) options. 418209746Sjkim 419209746Sjkim---------------------------------------- 420207344Sjkim28 April 2010. Summary of changes for version 20100428: 421207344Sjkim 422207344Sjkim1) ACPI CA Core Subsystem: 423207344Sjkim 424207344SjkimImplemented GPE support for dynamically loaded ACPI tables. For all GPEs, 425207344Sjkimincluding FADT-based and GPE Block Devices, execute any _PRW methods in the 426207344Sjkimnew table, and process any _Lxx/_Exx GPE methods in the new table. Any 427207344Sjkimruntime GPE that is referenced by an _Lxx/_Exx method in the new table is 428207344Sjkimimmediately enabled. Handles the FADT-defined GPEs as well as GPE Block 429207344SjkimDevices. Provides compatibility with other ACPI implementations. Two new 430207344Sjkimfiles added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. 431207344Sjkim 432207344SjkimFixed a regression introduced in version 20100331 within the table manager 433207344Sjkimwhere initial table loading could fail. This was introduced in the fix for 434207344SjkimAcpiReallocateRootTable. Also, renamed some of fields in the table manager 435207344Sjkimdata structures to clarify their meaning and use. 436207344Sjkim 437207344SjkimFixed a possible allocation overrun during internal object copy in 438207344SjkimAcpiUtCopySimpleObject. The original code did not correctly handle the case 439207344Sjkimwhere the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. 440207344Sjkim 441207344SjkimUpdated the allocation dump routine, AcpiUtDumpAllocation and fixed a 442207344Sjkimpossible access beyond end-of-allocation. Also, now fully validate descriptor 443207344Sjkim(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 444207344Sjkim 445207344SjkimExample Code and Data Size: These are the sizes for the OS-independent 446207344Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 447207344Sjkimdebug version of the code includes the debug output trace mechanism and has a 448207344Sjkimmuch larger code and data size. 449207344Sjkim 450207344Sjkim Previous Release: 451207344Sjkim Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 452207344Sjkim Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 453207344Sjkim Current Release: 454207344Sjkim Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 455207344Sjkim Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 456207344Sjkim 457207344Sjkim2) iASL Compiler/Disassembler and Tools: 458207344Sjkim 459207344SjkimiASL: Implemented Min/Max/Len/Gran validation for address resource 460207344Sjkimdescriptors. This change implements validation for the address fields that 461207344Sjkimare common to all address-type resource descriptors. These checks are 462207344Sjkimimplemented: Checks for valid Min/Max, length within the Min/Max window, 463207344Sjkimvalid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 464207344Sjkimtable 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c 465207344Sjkimand aslrestype2.c files into five new files. ACPICA BZ 840. 466207344Sjkim 467207344SjkimiASL: Added support for the _Wxx predefined names. This support was missing 468207344Sjkimand these names were not recognized by the compiler as valid predefined 469207344Sjkimnames. ACPICA BZ 851. 470207344Sjkim 471207344SjkimiASL: Added an error for all predefined names that are defined to return no 472207344Sjkimvalue and thus must be implemented as Control Methods. These include all of 473207344Sjkimthe _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 474207344Sjkimnames such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 475207344Sjkim 476207344SjkimiASL: Implemented the -ts option to emit hex AML data in ASL format, as an 477207344SjkimASL Buffer. Allows ACPI tables to be easily included within ASL files, to be 478207344Sjkimdynamically loaded via the Load() operator. Also cleaned up output for the - 479207344Sjkimta and -tc options. ACPICA BZ 853. 480207344Sjkim 481207344SjkimTests: Added a new file with examples of extended iASL error checking. 482207344SjkimDemonstrates the advanced error checking ability of the iASL compiler. 483207344SjkimAvailable at tests/misc/badcode.asl. 484207344Sjkim 485207344Sjkim---------------------------------------- 486206117Sjkim31 March 2010. Summary of changes for version 20100331: 487206117Sjkim 488206117Sjkim1) ACPI CA Core Subsystem: 489206117Sjkim 490206117SjkimCompleted a major update for the GPE support in order to improve support for 491206117Sjkimshared GPEs and to simplify both host OS and ACPICA code. Added a reference 492206117Sjkimcount mechanism to support shared GPEs that require multiple device drivers. 493206117SjkimSeveral external interfaces have changed. One external interface has been 494206117Sjkimremoved. One new external interface was added. Most of the GPE external 495206117Sjkiminterfaces now use the GPE spinlock instead of the events mutex (and the 496206117SjkimFlags parameter for many GPE interfaces has been removed.) See the updated 497206117SjkimACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 498206117SjkimWysocki. ACPICA BZ 831. 499206117Sjkim 500206117SjkimChanged: 501206117Sjkim AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 502206117SjkimRemoved: 503206117Sjkim AcpiSetGpeType 504206117SjkimNew: 505206117Sjkim AcpiSetGpe 506206117Sjkim 507206117SjkimImplemented write support for DataTable operation regions. These regions are 508206117Sjkimdefined via the DataTableRegion() operator. Previously, only read support was 509206117Sjkimimplemented. The ACPI specification allows DataTableRegions to be read/write, 510206117Sjkimhowever. 511206117Sjkim 512206117SjkimImplemented a new subsystem option to force a copy of the DSDT to local 513206117Sjkimmemory. Optionally copy the entire DSDT to local memory (instead of simply 514206117Sjkimmapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 515206117Sjkimthe original DSDT, creating the need for this option. Default is FALSE, do 516206117Sjkimnot copy the DSDT. 517206117Sjkim 518206117SjkimImplemented detection of a corrupted or replaced DSDT. This change adds 519206117Sjkimsupport to detect a DSDT that has been corrupted and/or replaced from outside 520206117Sjkimthe OS (by firmware). This is typically catastrophic for the system, but has 521206117Sjkimbeen seen on some machines. Once this problem has been detected, the DSDT 522206117Sjkimcopy option can be enabled via system configuration. Lin Ming, Bob Moore. 523206117Sjkim 524206117SjkimFixed two problems with AcpiReallocateRootTable during the root table copy. 525206117SjkimWhen copying the root table to the new allocation, the length used was 526206117Sjkimincorrect. The new size was used instead of the current table size, meaning 527206117Sjkimtoo much data was copied. Also, the count of available slots for ACPI tables 528206117Sjkimwas not set correctly. Alexey Starikovskiy, Bob Moore. 529206117Sjkim 530206117SjkimExample Code and Data Size: These are the sizes for the OS-independent 531206117Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 532206117Sjkimdebug version of the code includes the debug output trace mechanism and has a 533206117Sjkimmuch larger code and data size. 534206117Sjkim 535206117Sjkim Previous Release: 536206117Sjkim Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 537206117Sjkim Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 538206117Sjkim Current Release: 539206117Sjkim Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 540206117Sjkim Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 541206117Sjkim 542206117Sjkim2) iASL Compiler/Disassembler and Tools: 543206117Sjkim 544206117SjkimiASL: Implement limited typechecking for values returned from predefined 545206117Sjkimcontrol methods. The type of any returned static (unnamed) object is now 546206117Sjkimvalidated. For example, Return(1). ACPICA BZ 786. 547206117Sjkim 548206117SjkimiASL: Fixed a predefined name object verification regression. Fixes a problem 549206117Sjkimintroduced in version 20100304. An error is incorrectly generated if a 550206117Sjkimpredefined name is declared as a static named object with a value defined 551206117Sjkimusing the keywords "Zero", "One", or "Ones". Lin Ming. 552206117Sjkim 553206117SjkimiASL: Added Windows 7 support for the -g option (get local ACPI tables) by 554206117Sjkimreducing the requested registry access rights. ACPICA BZ 842. 555206117Sjkim 556206117SjkimDisassembler: fixed a possible fault when generating External() statements. 557206117SjkimIntroduced in commit ae7d6fd: Properly handle externals with parent-prefix 558206117Sjkim(carat). Fixes a string length allocation calculation. Lin Ming. 559206117Sjkim 560206117Sjkim---------------------------------------- 561204773Sjkim04 March 2010. Summary of changes for version 20100304: 562204773Sjkim 563204773Sjkim1) ACPI CA Core Subsystem: 564204773Sjkim 565204773SjkimFixed a possible problem with the AML Mutex handling function 566204773SjkimAcpiExReleaseMutex where the function could fault under the very rare 567204773Sjkimcondition when the interpreter has blocked, the interpreter lock is released, 568204773Sjkimthe interpreter is then reentered via the same thread, and attempts to 569204773Sjkimacquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 570204773SjkimMing. 571204773Sjkim 572204773SjkimImplemented additional configuration support for the AML "Debug Object". 573204773SjkimOutput from the debug object can now be enabled via a global variable, 574204773SjkimAcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 575204773SjkimThis debug output is now available in the release version of ACPICA instead 576204773Sjkimof just the debug version. Also, the entire debug output module can now be 577204773Sjkimconfigured out of the ACPICA build if desired. One new file added, 578204773Sjkimexecuter/exdebug.c. Lin Ming, Bob Moore. 579204773Sjkim 580204773SjkimAdded header support for the ACPI MCHI table (Management Controller Host 581204773SjkimInterface Table). This table was added in ACPI 4.0, but the defining document 582204773Sjkimhas only recently become available. 583204773Sjkim 584204773SjkimStandardized output of integer values for ACPICA warnings/errors. Always use 585204773Sjkim0x prefix for hex output, always use %u for unsigned integer decimal output. 586204773SjkimAffects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 587204773Sjkiminvocations.) These invocations were converted from the original 588204773SjkimACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 589204773Sjkim 590204773SjkimExample Code and Data Size: These are the sizes for the OS-independent 591204773Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 592204773Sjkimdebug version of the code includes the debug output trace mechanism and has a 593204773Sjkimmuch larger code and data size. 594204773Sjkim 595204773Sjkim Previous Release: 596204773Sjkim Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 597204773Sjkim Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 598204773Sjkim Current Release: 599204773Sjkim Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 600204773Sjkim Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 601204773Sjkim 602204773Sjkim2) iASL Compiler/Disassembler and Tools: 603204773Sjkim 604204773SjkimiASL: Implemented typechecking support for static (non-control method) 605204773Sjkimpredefined named objects that are declared with the Name() operator. For 606204773Sjkimexample, the type of this object is now validated to be of type Integer: 607204773SjkimName(_BBN, 1). This change migrates the compiler to using the core predefined 608204773Sjkimname table instead of maintaining a local version. Added a new file, 609204773Sjkimaslpredef.c. ACPICA BZ 832. 610204773Sjkim 611204773SjkimDisassembler: Added support for the ACPI 4.0 MCHI table. 612204773Sjkim 613204773Sjkim---------------------------------------- 614202771Sjkim21 January 2010. Summary of changes for version 20100121: 615202771Sjkim 616202771Sjkim1) ACPI CA Core Subsystem: 617202771Sjkim 618202771SjkimAdded the 2010 copyright to all module headers and signons. This affects 619202771Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, the 620202771Sjkimtools/utilities, and the test suites. 621202771Sjkim 622202771SjkimImplemented a change to the AcpiGetDevices interface to eliminate unnecessary 623202771Sjkiminvocations of the _STA method. In the case where a specific _HID is 624202771Sjkimrequested, do not run _STA until a _HID match is found. This eliminates 625202771Sjkimpotentially dozens of _STA calls during a search for a particular device/HID, 626202771Sjkimwhich in turn can improve boot times. ACPICA BZ 828. Lin Ming. 627202771Sjkim 628202771SjkimImplemented an additional repair for predefined method return values. Attempt 629202771Sjkimto repair unexpected NULL elements within returned Package objects. Create an 630202771SjkimInteger of value zero, a NULL String, or a zero-length Buffer as appropriate. 631202771SjkimACPICA BZ 818. Lin Ming, Bob Moore. 632202771Sjkim 633202771SjkimRemoved the obsolete ACPI_INTEGER data type. This type was introduced as the 634202771Sjkimcode was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 635202771Sjkim64-bit AML integers). It is now obsolete and this change removes it from the 636202771SjkimACPICA code base, replaced by UINT64. The original typedef has been retained 637202771Sjkimfor now for compatibility with existing device driver code. ACPICA BZ 824. 638202771Sjkim 639202771SjkimRemoved the unused UINT32_STRUCT type, and the obsolete Integer64 field in 640202771Sjkimthe parse tree object. 641202771Sjkim 642202771SjkimAdded additional warning options for the gcc-4 generation. Updated the source 643202771Sjkimaccordingly. This includes some code restructuring to eliminate unreachable 644202771Sjkimcode, elimination of some gotos, elimination of unused return values, some 645202771Sjkimadditional casting, and removal of redundant declarations. 646202771Sjkim 647202771SjkimExample Code and Data Size: These are the sizes for the OS-independent 648202771Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 649202771Sjkimdebug version of the code includes the debug output trace mechanism and has a 650202771Sjkimmuch larger code and data size. 651202771Sjkim 652202771Sjkim Previous Release: 653202771Sjkim Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 654202771Sjkim Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 655202771Sjkim Current Release: 656202771Sjkim Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 657202771Sjkim Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 658202771Sjkim 659202771Sjkim2) iASL Compiler/Disassembler and Tools: 660202771Sjkim 661202771SjkimNo functional changes for this release. 662202771Sjkim 663202771Sjkim---------------------------------------- 664200553Sjkim14 December 2009. Summary of changes for version 20091214: 665200553Sjkim 666200553Sjkim1) ACPI CA Core Subsystem: 667200553Sjkim 668200553SjkimEnhanced automatic data type conversions for predefined name repairs. This 669200553Sjkimchange expands the automatic repairs/conversions for predefined name return 670200553Sjkimvalues to make Integers, Strings, and Buffers fully interchangeable. Also, a 671200553SjkimBuffer can be converted to a Package of Integers if necessary. The nsrepair.c 672200553Sjkimmodule was completely restructured. Lin Ming, Bob Moore. 673200553Sjkim 674200553SjkimImplemented automatic removal of null package elements during predefined name 675200553Sjkimrepairs. This change will automatically remove embedded and trailing NULL 676200553Sjkimpackage elements from returned package objects that are defined to contain a 677200553Sjkimvariable number of sub-packages. The driver is then presented with a package 678200553Sjkimwith no null elements to deal with. ACPICA BZ 819. 679200553Sjkim 680200553SjkimImplemented a repair for the predefined _FDE and _GTM names. The expected 681200553Sjkimreturn value for both names is a Buffer of 5 DWORDs. This repair fixes two 682200553Sjkimpossible problems (both seen in the field), where a package of integers is 683200553Sjkimreturned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. 684200553Sjkim 685200553SjkimImplemented additional module-level code support. This change will properly 686200553Sjkimexecute module-level code that is not at the root of the namespace (under a 687200553SjkimDevice object, etc.). Now executes the code within the current scope instead 688200553Sjkimof the root. ACPICA BZ 762. Lin Ming. 689200553Sjkim 690200553SjkimFixed possible mutex acquisition errors when running _REG methods. Fixes a 691200553Sjkimproblem where mutex errors can occur when running a _REG method that is in 692200553Sjkimthe same scope as a method-defined operation region or an operation region 693200553Sjkimunder a module-level IF block. This type of code is rare, so the problem has 694200553Sjkimnot been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 695200553Sjkim 696200553SjkimFixed a possible memory leak during module-level code execution. An object 697200553Sjkimcould be leaked for each block of executed module-level code if the 698200553Sjkiminterpreter slack mode is enabled This change deletes any implicitly returned 699200553Sjkimobject from the module-level code block. Lin Ming. 700200553Sjkim 701200553SjkimRemoved messages for successful predefined repair(s). The repair mechanism 702200553Sjkimwas considered too wordy. Now, messages are only unconditionally emitted if 703200553Sjkimthe return object cannot be repaired. Existing messages for successful 704200553Sjkimrepairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. 705200553Sjkim 706200553SjkimExample Code and Data Size: These are the sizes for the OS-independent 707200553Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 708200553Sjkimdebug version of the code includes the debug output trace mechanism and has a 709200553Sjkimmuch larger code and data size. 710200553Sjkim 711200553Sjkim Previous Release: 712200553Sjkim Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 713200553Sjkim Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 714200553Sjkim Current Release: 715200553Sjkim Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 716200553Sjkim Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 717200553Sjkim 718200553Sjkim2) iASL Compiler/Disassembler and Tools: 719200553Sjkim 720200553SjkimiASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 721200553Sjkimwere no longer automatically removed at the termination of the compile. 722200553Sjkim 723200553Sjkimacpiexec: Implemented the -f option to specify default region fill value. 724200553SjkimThis option specifies the value used to initialize buffers that simulate 725200553Sjkimoperation regions. Default value is zero. Useful for debugging problems that 726200553Sjkimdepend on a specific initial value for a region or field. 727200553Sjkim 728200553Sjkim---------------------------------------- 729199337Sjkim12 November 2009. Summary of changes for version 20091112: 730199337Sjkim 731199337Sjkim1) ACPI CA Core Subsystem: 732199337Sjkim 733199337SjkimImplemented a post-order callback to AcpiWalkNamespace. The existing 734199337Sjkiminterface only has a pre-order callback. This change adds an additional 735199337Sjkimparameter for a post-order callback which will be more useful for bus scans. 736199337SjkimACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 737199337Sjkim 738199337SjkimModified the behavior of the operation region memory mapping cache for 739199337SjkimSystemMemory. Ensure that the memory mappings created for operation regions 740199337Sjkimdo not cross 4K page boundaries. Crossing a page boundary while mapping 741199337Sjkimregions can cause kernel warnings on some hosts if the pages have different 742199337Sjkimattributes. Such regions are probably BIOS bugs, and this is the workaround. 743199337SjkimLinux BZ 14445. Lin Ming. 744199337Sjkim 745199337SjkimImplemented an automatic repair for predefined methods that must return 746199337Sjkimsorted lists. This change will repair (by sorting) packages returned by _ALR, 747199337Sjkim_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 748199337Sjkimand do not contain NULL package elements. Adds one new file, 749199337Sjkimnamespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 750199337Sjkim 751199337SjkimFixed a possible fault during predefined name validation if a return Package 752199337Sjkimobject contains NULL elements. Also adds a warning if a NULL element is 753199337Sjkimfollowed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 754199337Sjkiminclude repair or removal of all such NULL elements where possible. 755199337Sjkim 756199337SjkimImplemented additional module-level executable AML code support. This change 757199337Sjkimwill execute module-level code that is not at the root of the namespace 758199337Sjkim(under a Device object, etc.) at table load time. Module-level executable AML 759199337Sjkimcode has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 760199337Sjkim 761199337SjkimImplemented a new internal function to create Integer objects. This function 762199337Sjkimsimplifies miscellaneous object creation code. ACPICA BZ 823. 763199337Sjkim 764199337SjkimReduced the severity of predefined repair messages, Warning to Info. Since 765199337Sjkimthe object was successfully repaired, a warning is too severe. Reduced to an 766199337Sjkiminfo message for now. These messages may eventually be changed to debug-only. 767199337SjkimACPICA BZ 812. 768199337Sjkim 769199337SjkimExample Code and Data Size: These are the sizes for the OS-independent 770199337Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 771199337Sjkimdebug version of the code includes the debug output trace mechanism and has a 772199337Sjkimmuch larger code and data size. 773199337Sjkim 774199337Sjkim Previous Release: 775199337Sjkim Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 776199337Sjkim Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 777199337Sjkim Current Release: 778199337Sjkim Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 779199337Sjkim Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 780199337Sjkim 781199337Sjkim2) iASL Compiler/Disassembler and Tools: 782199337Sjkim 783199337SjkimiASL: Implemented Switch() with While(1) so that Break works correctly. This 784199337Sjkimchange correctly implements the Switch operator with a surrounding While(1) 785199337Sjkimso that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 786199337Sjkim 787199337SjkimiASL: Added a message if a package initializer list is shorter than package 788199337Sjkimlength. Adds a new remark for a Package() declaration if an initializer list 789199337Sjkimexists, but is shorter than the declared length of the package. Although 790199337Sjkimtechnically legal, this is probably a coding error and it is seen in the 791199337Sjkimfield. ACPICA BZ 815. Lin Ming, Bob Moore. 792199337Sjkim 793199337SjkimiASL: Fixed a problem where the compiler could fault after the maximum number 794199337Sjkimof errors was reached (200). 795199337Sjkim 796199337Sjkimacpixtract: Fixed a possible warning for pointer cast if the compiler warning 797199337Sjkimlevel set very high. 798199337Sjkim 799199337Sjkim---------------------------------------- 800198237Sjkim13 October 2009. Summary of changes for version 20091013: 801197104Sjkim 802197104Sjkim1) ACPI CA Core Subsystem: 803197104Sjkim 804198237SjkimFixed a problem where an Operation Region _REG method could be executed more 805198237Sjkimthan once. If a custom address space handler is installed by the host before 806198237Sjkimthe "initialize operation regions" phase of the ACPICA initialization, any 807198237Sjkim_REG methods for that address space could be executed twice. This change 808198237Sjkimfixes the problem. ACPICA BZ 427. Lin Ming. 809198237Sjkim 810198237SjkimFixed a possible memory leak for the Scope() ASL operator. When the exact 811198237Sjkiminvocation of "Scope(\)" is executed (change scope to root), one internal 812198237Sjkimoperand object was leaked. Lin Ming. 813198237Sjkim 814198237SjkimImplemented a run-time repair for the _MAT predefined method. If the _MAT 815198237Sjkimreturn value is defined as a Field object in the AML, and the field 816198237Sjkimsize is less than or equal to the default width of an integer (32 or 64),_MAT 817198237Sjkimcan incorrectly return an Integer instead of a Buffer. ACPICA now 818198237Sjkimautomatically repairs this problem. ACPICA BZ 810. 819198237Sjkim 820198237SjkimImplemented a run-time repair for the _BIF and _BIX predefined methods. The 821198237Sjkim"OEM Information" field is often incorrectly returned as an Integer with 822198237Sjkimvalue zero if the field is not supported by the platform. This is due to an 823198237Sjkimambiguity in the ACPI specification. The field should always be a string. 824198237SjkimACPICA now automatically repairs this problem by returning a NULL string 825198237Sjkimwithin the returned Package. ACPICA BZ 807. 826198237Sjkim 827198237SjkimExample Code and Data Size: These are the sizes for the OS-independent 828198237Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 829198237Sjkimdebug version of the code includes the debug output trace mechanism and has a 830198237Sjkimmuch larger code and data size. 831198237Sjkim 832198237Sjkim Previous Release: 833198237Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 834198237Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 835198237Sjkim Current Release: 836198237Sjkim Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 837198237Sjkim Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 838198237Sjkim 839198237Sjkim2) iASL Compiler/Disassembler and Tools: 840198237Sjkim 841198237SjkimDisassembler: Fixed a problem where references to external symbols that 842198237Sjkimcontained one or more parent-prefixes (carats) were not handled correctly, 843198237Sjkimpossibly causing a fault. ACPICA BZ 806. Lin Ming. 844198237Sjkim 845198237SjkimDisassembler: Restructured the code so that all functions that handle 846198237Sjkimexternal symbols are in a single module. One new file is added, 847198237Sjkimcommon/dmextern.c. 848198237Sjkim 849198237SjkimAML Debugger: Added a max count argument for the Batch command (which 850198237Sjkimexecutes multiple predefined methods within the namespace.) 851198237Sjkim 852198237SjkimiASL: Updated the compiler documentation (User Reference.) Available at 853198237Sjkimhttp://www.acpica.org/documentation/. ACPICA BZ 750. 854198237Sjkim 855198237SjkimAcpiXtract: Updated for Lint and other formatting changes. Close all open 856198237Sjkimfiles. 857198237Sjkim 858198237Sjkim---------------------------------------- 859198237Sjkim03 September 2009. Summary of changes for version 20090903: 860198237Sjkim 861198237Sjkim1) ACPI CA Core Subsystem: 862198237Sjkim 863197104SjkimFor Windows Vista compatibility, added the automatic execution of an _INI 864197104Sjkimmethod located at the namespace root (\_INI). This method is executed at 865197104Sjkimtable load time. This support is in addition to the automatic execution of 866197104Sjkim\_SB._INI. Lin Ming. 867197104Sjkim 868197104SjkimFixed a possible memory leak in the interpreter for AML package objects if 869197104Sjkimthe package initializer list is longer than the defined size of the package. 870197104SjkimThis apparently can only happen if the BIOS changes the package size on the 871197104Sjkimfly (seen in a _PSS object), as ASL compilers do not allow this. The 872197104Sjkiminterpreter will truncate the package to the defined size (and issue an error 873197104Sjkimmessage), but previously could leave the extra objects undeleted if they were 874197104Sjkimpre-created during the argument processing (such is the case if the package 875197104Sjkimconsists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 876197104Sjkim 877197104SjkimFixed a problem seen when a Buffer or String is stored to itself via ASL. 878197104SjkimThis has been reported in the field. Previously, ACPICA would zero out the 879197104Sjkimbuffer/string. Now, the operation is treated as a noop. Provides Windows 880197104Sjkimcompatibility. ACPICA BZ 803. Lin Ming. 881197104Sjkim 882197104SjkimRemoved an extraneous error message for ASL constructs of the form 883197104SjkimStore(LocalX,LocalX) when LocalX is uninitialized. These curious statements 884197104Sjkimare seen in many BIOSs and are once again treated as NOOPs and no error is 885197104Sjkimemitted when they are encountered. ACPICA BZ 785. 886197104Sjkim 887197104SjkimFixed an extraneous warning message if a _DSM reserved method returns a 888197104SjkimPackage object. _DSM can return any type of object, so validation on the 889197104Sjkimreturn type cannot be performed. ACPICA BZ 802. 890197104Sjkim 891197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 892197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 893197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 894197104Sjkimmuch larger code and data size. 895197104Sjkim 896197104Sjkim Previous Release: 897197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 898197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 899197104Sjkim Current Release: 900197104Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 901197104Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 902197104Sjkim 903197104Sjkim2) iASL Compiler/Disassembler and Tools: 904197104Sjkim 905197104SjkimiASL: Fixed a problem with the use of the Alias operator and Resource 906197104SjkimTemplates. The correct alias is now constructed and no error is emitted. 907197104SjkimACPICA BZ 738. 908197104Sjkim 909197104SjkimiASL: Implemented the -I option to specify additional search directories for 910197104Sjkiminclude files. Allows multiple additional search paths for include files. 911197104SjkimDirectories are searched in the order specified on the command line (after 912197104Sjkimthe local directory is searched.) ACPICA BZ 800. 913197104Sjkim 914197104SjkimiASL: Fixed a problem where the full pathname for include files was not 915197104Sjkimemitted for warnings/errors. This caused the IDE support to not work 916197104Sjkimproperly. ACPICA BZ 765. 917197104Sjkim 918197104SjkimiASL: Implemented the -@ option to specify a Windows-style response file 919197104Sjkimcontaining additional command line options. ACPICA BZ 801. 920197104Sjkim 921197104SjkimAcpiExec: Added support to load multiple AML files simultaneously (such as a 922197104SjkimDSDT and multiple SSDTs). Also added support for wildcards within the AML 923197104Sjkimpathname. These features allow all machine tables to be easily loaded and 924197104Sjkimdebugged together. ACPICA BZ 804. 925197104Sjkim 926197104SjkimDisassembler: Added missing support for disassembly of HEST table Error Bank 927197104Sjkimsubtables. 928197104Sjkim 929197104Sjkim---------------------------------------- 930197104Sjkim30 July 2009. Summary of changes for version 20090730: 931197104Sjkim 932197104SjkimThe ACPI 4.0 implementation for ACPICA is complete with this release. 933197104Sjkim 934197104Sjkim1) ACPI CA Core Subsystem: 935197104Sjkim 936197104SjkimACPI 4.0: Added header file support for all new and changed ACPI tables. 937197104SjkimCompletely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 938197104Sjkimfor ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 939197104SjkimEINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 940197104Sjkimhave been some ACPI 4.0 changes to other existing tables. Split the large 941197104Sjkimactbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 942197104Sjkim 943197104SjkimACPI 4.0: Implemented predefined name validation for all new names. There are 944197104Sjkim31 new names in ACPI 4.0. The predefined validation module was split into two 945197104Sjkimfiles. The new file is namespace/nsrepair.c. ACPICA BZ 770. 946197104Sjkim 947197104SjkimImplemented support for so-called "module-level executable code". This is 948197104Sjkimexecutable AML code that exists outside of any control method and is intended 949197104Sjkimto be executed at table load time. Although illegal since ACPI 2.0, this type 950197104Sjkimof code still exists and is apparently still being created. Blocks of this 951197104Sjkimcode are now detected and executed as intended. Currently, the code blocks 952197104Sjkimmust exist under either an If, Else, or While construct; these are the 953197104Sjkimtypical cases seen in the field. ACPICA BZ 762. Lin Ming. 954197104Sjkim 955197104SjkimImplemented an automatic dynamic repair for predefined names that return 956197104Sjkimnested Package objects. This applies to predefined names that are defined to 957197104Sjkimreturn a variable-length Package of sub-packages. If the number of sub- 958197104Sjkimpackages is one, BIOS code is occasionally seen that creates a simple single 959197104Sjkimpackage with no sub-packages. This code attempts to fix the problem by 960197104Sjkimwrapping a new package object around the existing package. These methods can 961197104Sjkimbe repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 962197104Sjkim790. 963197104Sjkim 964197104SjkimFixed a regression introduced in 20090625 for the AcpiGetDevices interface. 965197104SjkimThe _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 966197104SjkimBZ 793. 967197104Sjkim 968197104SjkimFixed a problem with AcpiReset where the reset would silently fail if the 969197104Sjkimregister was one of the protected I/O ports. AcpiReset now bypasses the port 970197104Sjkimvalidation mechanism. This may eventually be driven into the AcpiRead/Write 971197104Sjkiminterfaces. 972197104Sjkim 973197104SjkimFixed a regression related to the recent update of the AcpiRead/Write 974197104Sjkiminterfaces. A sleep/suspend could fail if the optional PM2 Control register 975197104Sjkimdoes not exist during an attempt to write the Bus Master Arbitration bit. 976197104Sjkim(However, some hosts already delete the code that writes this bit, and the 977197104Sjkimcode may in fact be obsolete at this date.) ACPICA BZ 799. 978197104Sjkim 979197104SjkimFixed a problem where AcpiTerminate could fault if inadvertently called twice 980197104Sjkimin succession. ACPICA BZ 795. 981197104Sjkim 982197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 983197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 984197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 985197104Sjkimmuch larger code and data size. 986197104Sjkim 987197104Sjkim Previous Release: 988197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 989197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 990197104Sjkim Current Release: 991197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 992197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 993197104Sjkim 994197104Sjkim2) iASL Compiler/Disassembler and Tools: 995197104Sjkim 996197104SjkimACPI 4.0: Implemented disassembler support for all new ACPI tables and 997197104Sjkimchanges to existing tables. ACPICA BZ 775. 998197104Sjkim 999197104Sjkim---------------------------------------- 1000197104Sjkim25 June 2009. Summary of changes for version 20090625: 1001197104Sjkim 1002197104SjkimThe ACPI 4.0 Specification was released on June 16 and is available at 1003197104Sjkimwww.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 1004197104Sjkimcontinue for the next few releases. 1005197104Sjkim 1006197104Sjkim1) ACPI CA Core Subsystem: 1007197104Sjkim 1008197104SjkimACPI 4.0: Implemented interpreter support for the IPMI operation region 1009197104Sjkimaddress space. Includes support for bi-directional data buffers and an IPMI 1010197104Sjkimaddress space handler (to be installed by an IPMI device driver.) ACPICA BZ 1011197104Sjkim773. Lin Ming. 1012197104Sjkim 1013197104SjkimACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 1014197104Sjkimsupport in both the header files and the disassembler. 1015197104Sjkim 1016197104SjkimCompleted a major update for the AcpiGetObjectInfo external interface. 1017197104SjkimChanges include: 1018197104Sjkim - Support for variable, unlimited length HID, UID, and CID strings. 1019197104Sjkim - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 1020197104Sjkim - Call the _SxW power methods on behalf of a device object. 1021197104Sjkim - Determine if a device is a PCI root bridge. 1022197104Sjkim - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 1023197104SjkimThese changes will require an update to all callers of this interface. See 1024197104Sjkimthe updated ACPICA Programmer Reference for details. One new source file has 1025197104Sjkimbeen added - utilities/utids.c. ACPICA BZ 368, 780. 1026197104Sjkim 1027197104SjkimUpdated the AcpiRead and AcpiWrite external interfaces to support 64-bit 1028197104Sjkimtransfers. The Value parameter has been extended from 32 bits to 64 bits in 1029197104Sjkimorder to support new ACPI 4.0 tables. These changes will require an update to 1030197104Sjkimall callers of these interfaces. See the ACPICA Programmer Reference for 1031197104Sjkimdetails. ACPICA BZ 768. 1032197104Sjkim 1033197104SjkimFixed several problems with AcpiAttachData. The handler was not invoked when 1034197104Sjkimthe host node was deleted. The data sub-object was not automatically deleted 1035197104Sjkimwhen the host node was deleted. The interface to the handler had an unused 1036197104Sjkimparameter, this was removed. ACPICA BZ 778. 1037197104Sjkim 1038197104SjkimEnhanced the function that dumps ACPI table headers. All non-printable 1039197104Sjkimcharacters in the string fields are now replaced with '?' (Signature, OemId, 1040197104SjkimOemTableId, and CompilerId.) ACPI tables with non-printable characters in 1041197104Sjkimthese fields are occasionally seen in the field. ACPICA BZ 788. 1042197104Sjkim 1043197104SjkimFixed a problem with predefined method repair code where the code that 1044197104Sjkimattempts to repair/convert an object of incorrect type is only executed on 1045197104Sjkimthe first time the predefined method is called. The mechanism that disables 1046197104Sjkimwarnings on subsequent calls was interfering with the repair mechanism. 1047197104SjkimACPICA BZ 781. 1048197104Sjkim 1049197104SjkimFixed a possible memory leak in the predefined validation/repair code when a 1050197104Sjkimbuffer is automatically converted to an expected string object. 1051197104Sjkim 1052197104SjkimRemoved obsolete 16-bit files from the distribution and from the current git 1053197104Sjkimtree head. ACPICA BZ 776. 1054197104Sjkim 1055197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 1056197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1057197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 1058197104Sjkimmuch larger code and data size. 1059197104Sjkim 1060197104Sjkim Previous Release: 1061197104Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 1062197104Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 1063197104Sjkim Current Release: 1064197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 1065197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 1066197104Sjkim 1067197104Sjkim2) iASL Compiler/Disassembler and Tools: 1068197104Sjkim 1069197104SjkimACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 1070197104Sjkimoperation region keyword. ACPICA BZ 771, 772. Lin Ming. 1071197104Sjkim 1072197104SjkimACPI 4.0: iASL - implemented compile-time validation support for all new 1073197104Sjkimpredefined names and control methods (31 total). ACPICA BZ 769. 1074197104Sjkim 1075197104Sjkim---------------------------------------- 1076193267Sjkim21 May 2009. Summary of changes for version 20090521: 1077193267Sjkim 1078193267Sjkim1) ACPI CA Core Subsystem: 1079193267Sjkim 1080193267SjkimDisabled the preservation of the SCI enable bit in the PM1 control register. 1081193267SjkimThe SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 1082193267Sjkima "preserved" bit - "OSPM always preserves this bit position", section 1083193267Sjkim4.7.3.2.1. However, some machines fail if this bit is in fact preserved 1084193267Sjkimbecause the bit needs to be explicitly set by the OS as a workaround. No 1085193267Sjkimmachines fail if the bit is not preserved. Therefore, ACPICA no longer 1086193267Sjkimattempts to preserve this bit. 1087193267Sjkim 1088193267SjkimFixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 1089193267Sjkimincorrectly formed _PRT package could cause a fault. Added validation to 1090193267Sjkimensure that each package element is actually a sub-package. 1091193267Sjkim 1092193267SjkimImplemented a new interface to install or override a single control method, 1093193267SjkimAcpiInstallMethod. This interface is useful when debugging in order to repair 1094193267Sjkiman existing method or to install a missing method without having to override 1095193267Sjkimthe entire ACPI table. See the ACPICA Programmer Reference for use and 1096193267Sjkimexamples. Lin Ming, Bob Moore. 1097193267Sjkim 1098193267SjkimFixed several reference count issues with the DdbHandle object that is 1099193267Sjkimcreated from a Load or LoadTable operator. Prevent premature deletion of the 1100193267Sjkimobject. Also, mark the object as invalid once the table has been unloaded. 1101193267SjkimThis is needed because the handle itself may not be deleted after the table 1102193267Sjkimunload, depending on whether it has been stored in a named object by the 1103193267Sjkimcaller. Lin Ming. 1104193267Sjkim 1105193267SjkimFixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 1106193267Sjkimmutexes of the same sync level are acquired but then not released in strict 1107193267Sjkimopposite order, the internally maintained Current Sync Level becomes confused 1108193267Sjkimand can cause subsequent execution errors. ACPICA BZ 471. 1109193267Sjkim 1110193267SjkimChanged the allowable release order for ASL mutex objects. The ACPI 4.0 1111193267Sjkimspecification has been changed to make the SyncLevel for mutex objects more 1112193267Sjkimuseful. When releasing a mutex, the SyncLevel of the mutex must now be the 1113193267Sjkimsame as the current sync level. This makes more sense than the previous rule 1114193267Sjkim(SyncLevel less than or equal). This change updates the code to match the 1115193267Sjkimspecification. 1116193267Sjkim 1117193267SjkimFixed a problem with the local version of the AcpiOsPurgeCache function. The 1118193267Sjkim(local) cache must be locked during all cache object deletions. Andrew 1119193267SjkimBaumann. 1120193267Sjkim 1121193267SjkimUpdated the Load operator to use operation region interfaces. This replaces 1122193267Sjkimdirect memory mapping with region access calls. Now, all region accesses go 1123193267Sjkimthrough the installed region handler as they should. 1124193267Sjkim 1125193267SjkimSimplified and optimized the NsGetNextNode function. Reduced parameter count 1126193267Sjkimand reduced code for this frequently used function. 1127193267Sjkim 1128193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1129193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1130193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1131193267Sjkimmuch larger code and data size. 1132193267Sjkim 1133193267Sjkim Previous Release: 1134193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 1135193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 1136193267Sjkim Current Release: 1137193267Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 1138193267Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 1139193267Sjkim 1140193267Sjkim2) iASL Compiler/Disassembler and Tools: 1141193267Sjkim 1142193267SjkimDisassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 1143193267Sjkimwith sub-table disassembly and handling invalid sub-tables. Attempt recovery 1144193267Sjkimafter an invalid sub-table ID. 1145193267Sjkim 1146193267Sjkim---------------------------------------- 1147193267Sjkim22 April 2009. Summary of changes for version 20090422: 1148193267Sjkim 1149193267Sjkim1) ACPI CA Core Subsystem: 1150193267Sjkim 1151193267SjkimFixed a compatibility issue with the recently released I/O port protection 1152193267Sjkimmechanism. For windows compatibility, 1) On a port protection violation, 1153193267Sjkimsimply ignore the request and do not return an exception (allow the control 1154193267Sjkimmethod to continue execution.) 2) If only part of the request overlaps a 1155193267Sjkimprotected port, read/write the individual ports that are not protected. Linux 1156193267SjkimBZ 13036. Lin Ming 1157193267Sjkim 1158193267SjkimEnhanced the execution of the ASL/AML BreakPoint operator so that it actually 1159193267Sjkimbreaks into the AML debugger if the debugger is present. This matches the 1160193267SjkimACPI-defined behavior. 1161193267Sjkim 1162193267SjkimFixed several possible warnings related to the use of the configurable 1163193267SjkimACPI_THREAD_ID. This type can now be configured as either an integer or a 1164193267Sjkimpointer with no warnings. Also fixes several warnings in printf-like 1165193267Sjkimstatements for the 64-bit build when the type is configured as a pointer. 1166193267SjkimACPICA BZ 766, 767. 1167193267Sjkim 1168193267SjkimFixed a number of possible warnings when compiling with gcc 4+ (depending on 1169193267Sjkimwarning options.) Examples include printf formats, aliasing, unused globals, 1170193267Sjkimmissing prototypes, missing switch default statements, use of non-ANSI 1171193267Sjkimlibrary functions, use of non-ANSI constructs. See generate/unix/Makefile for 1172193267Sjkima list of warning options used with gcc 3 and 4. ACPICA BZ 735. 1173193267Sjkim 1174193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1175193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1176193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1177193267Sjkimmuch larger code and data size. 1178193267Sjkim 1179193267Sjkim Previous Release: 1180193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 1181193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 1182193267Sjkim Current Release: 1183193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 1184193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 1185193267Sjkim 1186193267Sjkim2) iASL Compiler/Disassembler and Tools: 1187193267Sjkim 1188193267SjkimiASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 1189193267Sjkimthe 64-bit build. 1190193267Sjkim 1191193267SjkimiASL: Fixed a problem where the Unix/Linux versions of the compiler could not 1192193267Sjkimcorrectly digest Windows/DOS formatted files (with CR/LF). 1193193267Sjkim 1194193267SjkimiASL: Added a new option for "quiet mode" (-va) that produces only the 1195193267Sjkimcompilation summary, not individual errors and warnings. Useful for large 1196193267Sjkimbatch compilations. 1197193267Sjkim 1198193267SjkimAcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 1199193267Sjkimtimeout that can be used to detect hang conditions during execution of AML 1200193267Sjkimcode (includes both internal semaphores and AML-defined mutexes and events.) 1201193267Sjkim 1202193267SjkimAdded new makefiles for the generation of acpica in a generic unix-like 1203193267Sjkimenvironment. These makefiles are intended to generate the acpica tools and 1204193267Sjkimutilities from the original acpica git source tree structure. 1205193267Sjkim 1206193267SjkimTest Suites: Updated and cleaned up the documentation files. Updated the 1207193267Sjkimcopyrights to 2009, affecting all source files. Use the new version of iASL 1208193267Sjkimwith quiet mode. Increased the number of available semaphores in the Windows 1209193267SjkimOSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 1210193267Sjkiman alternate implementation of the semaphore timeout to allow aslts to 1211193267Sjkimexecute fully on Cygwin. 1212193267Sjkim 1213193267Sjkim---------------------------------------- 1214193267Sjkim20 March 2009. Summary of changes for version 20090320: 1215193267Sjkim 1216193267Sjkim1) ACPI CA Core Subsystem: 1217193267Sjkim 1218193267SjkimFixed a possible race condition between AcpiWalkNamespace and dynamic table 1219193267Sjkimunloads. Added a reader/writer locking mechanism to allow multiple concurrent 1220193267Sjkimnamespace walks (readers), but block a dynamic table unload until it can gain 1221193267Sjkimexclusive write access to the namespace. This fixes a problem where a table 1222193267Sjkimunload could (possibly catastrophically) delete the portion of the namespace 1223193267Sjkimthat is currently being examined by a walk. Adds a new file, utlock.c, that 1224193267Sjkimimplements the reader/writer lock mechanism. ACPICA BZ 749. 1225193267Sjkim 1226193267SjkimFixed a regression introduced in version 20090220 where a change to the FADT 1227193267Sjkimhandling could cause the ACPICA subsystem to access non-existent I/O ports. 1228193267Sjkim 1229193267SjkimModified the handling of FADT register and table (FACS/DSDT) addresses. The 1230193267SjkimFADT can contain both 32-bit and 64-bit versions of these addresses. 1231193267SjkimPreviously, the 64-bit versions were favored, meaning that if both 32 and 64 1232193267Sjkimversions were valid, but not equal, the 64-bit version was used. This was 1233193267Sjkimfound to cause some machines to fail. Now, in this case, the 32-bit version 1234193267Sjkimis used instead. This now matches the Windows behavior. 1235193267Sjkim 1236193267SjkimImplemented a new mechanism to protect certain I/O ports. Provides Microsoft 1237193267Sjkimcompatibility and protects the standard PC I/O ports from access via AML 1238193267Sjkimcode. Adds a new file, hwvalid.c 1239193267Sjkim 1240193267SjkimFixed a possible extraneous warning message from the FADT support. The 1241193267Sjkimmessage warns of a 32/64 length mismatch between the legacy and GAS 1242193267Sjkimdefinitions for a register. 1243193267Sjkim 1244193267SjkimRemoved the obsolete AcpiOsValidateAddress OSL interface. This interface is 1245193267Sjkimmade obsolete by the port protection mechanism above. It was previously used 1246193267Sjkimto validate the entire address range of an operation region, which could be 1247193267Sjkimincorrect if the range included illegal ports, but fields within the 1248193267Sjkimoperation region did not actually access those ports. Validation is now 1249193267Sjkimperformed on a per-field basis instead of the entire region. 1250193267Sjkim 1251193267SjkimModified the handling of the PM1 Status Register ignored bit (bit 11.) 1252193267SjkimIgnored bits must be "preserved" according to the ACPI spec. Usually, this 1253193267Sjkimmeans a read/modify/write when writing to the register. However, for status 1254193267Sjkimregisters, writing a one means clear the event. Writing a zero means preserve 1255193267Sjkimthe event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 1256193267Sjkimand the ACPICA code now simply always writes a zero to the ignored bit. 1257193267Sjkim 1258193267SjkimModified the handling of ignored bits for the PM1 A/B Control Registers. As 1259193267Sjkimper the ACPI specification, for the control registers, preserve 1260193267Sjkim(read/modify/write) all bits that are defined as either reserved or ignored. 1261193267Sjkim 1262193267SjkimUpdated the handling of write-only bits in the PM1 A/B Control Registers. 1263193267SjkimWhen reading the register, zero the write-only bits as per the ACPI spec. 1264193267SjkimACPICA BZ 443. Lin Ming. 1265193267Sjkim 1266193267SjkimRemoved "Linux" from the list of supported _OSI strings. Linux no longer 1267193267Sjkimwants to reply true to this request. The Windows strings are the only paths 1268193267Sjkimthrough the AML that are tested and known to work properly. 1269193267Sjkim 1270193267Sjkim Previous Release: 1271193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 1272193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 1273193267Sjkim Current Release: 1274193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 1275193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 1276193267Sjkim 1277193267Sjkim2) iASL Compiler/Disassembler and Tools: 1278193267Sjkim 1279193267SjkimAcpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 1280193267Sjkimaetables.c 1281193267Sjkim 1282193267Sjkim---------------------------------------- 1283193267Sjkim20 February 2009. Summary of changes for version 20090220: 1284193267Sjkim 1285193267Sjkim1) ACPI CA Core Subsystem: 1286193267Sjkim 1287193267SjkimOptimized the ACPI register locking. Removed locking for reads from the ACPI 1288193267Sjkimbit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 1289193267Sjkimnot required when reading the single-bit registers. The 1290193267SjkimAcpiGetRegisterUnlocked function is no longer needed and has been removed. 1291193267SjkimThis will improve performance for reads on these registers. ACPICA BZ 760. 1292193267Sjkim 1293193267SjkimFixed the parameter validation for AcpiRead/Write. Now return 1294193267SjkimAE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 1295193267Sjkimthe register has an address of zero. Previously, these cases simply returned 1296193267SjkimAE_OK. For optional registers such as PM1B status/enable/control, the caller 1297193267Sjkimshould check for a valid register address before calling. ACPICA BZ 748. 1298193267Sjkim 1299193267SjkimRenamed the external ACPI bit register access functions. Renamed 1300193267SjkimAcpiGetRegister and AcpiSetRegister to clarify the purpose of these 1301193267Sjkimfunctions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 1302193267SjkimAlso, restructured the code for these functions by simplifying the code path 1303193267Sjkimand condensing duplicate code to reduce code size. 1304193267Sjkim 1305193267SjkimAdded new functions to transparently handle the possibly split PM1 A/B 1306193267Sjkimregisters. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 1307193267Sjkimnow handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 1308193267Sjkim746. 1309193267Sjkim 1310193267SjkimAdded a function to handle the PM1 control registers, AcpiHwWritePm1Control. 1311193267SjkimThis function writes both of the PM1 control registers (A/B). These registers 1312193267Sjkimare different than the PM1 A/B status and enable registers in that different 1313193267Sjkimvalues can be written to the A/B registers. Most notably, the SLP_TYP bits 1314193267Sjkimcan be different, as per the values returned from the _Sx predefined methods. 1315193267Sjkim 1316193267SjkimRemoved an extra register write within AcpiHwClearAcpiStatus. This function 1317193267Sjkimwas writing an optional PM1B status register twice. The existing call to the 1318193267Sjkimlow-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 1319193267Sjkimregister. ACPICA BZ 751. 1320193267Sjkim 1321193267SjkimSplit out the PM1 Status registers from the FADT. Added new globals for these 1322193267Sjkimregisters (A/B), similar to the way the PM1 Enable registers are handled. 1323193267SjkimInstead of overloading the FADT Event Register blocks. This makes the code 1324193267Sjkimclearer and less prone to error. 1325193267Sjkim 1326193267SjkimFixed the warning message for when the platform contains too many ACPI tables 1327193267Sjkimfor the default size of the global root table data structure. The calculation 1328193267Sjkimfor the truncation value was incorrect. 1329193267Sjkim 1330193267SjkimRemoved the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 1331193267Sjkimobsolete macro, since it is now a simple reference to ->common.type. There 1332193267Sjkimwere about 150 invocations of the macro across 41 files. ACPICA BZ 755. 1333193267Sjkim 1334193267SjkimRemoved the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 1335193267SjkimTYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 1336193267Sjkimsimply SLEEP_TYPE. ACPICA BZ 754. 1337193267Sjkim 1338193267SjkimConditionally compile the AcpiSetFirmwareWakingVector64 function. This 1339193267Sjkimfunction is only needed on 64-bit host operating systems and is thus not 1340193267Sjkimincluded for 32-bit hosts. 1341193267Sjkim 1342193267SjkimDebug output: print the input and result for invocations of the _OSI reserved 1343193267Sjkimcontrol method via the ACPI_LV_INFO debug level. Also, reduced some of the 1344193267Sjkimverbosity of this debug level. Len Brown. 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 a 1349193267Sjkimmuch larger code and data size. 1350193267Sjkim 1351193267Sjkim Previous Release: 1352193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 1353193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 1354193267Sjkim Current Release: 1355193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 1356193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 1357193267Sjkim 1358193267Sjkim2) iASL Compiler/Disassembler and Tools: 1359193267Sjkim 1360193267SjkimDisassembler: Decode the FADT PM_Profile field. Emit ascii names for the 1361193267Sjkimvarious legal performance profiles. 1362193267Sjkim 1363193267Sjkim---------------------------------------- 1364193267Sjkim23 January 2009. Summary of changes for version 20090123: 1365193267Sjkim 1366193267Sjkim1) ACPI CA Core Subsystem: 1367193267Sjkim 1368193267SjkimAdded the 2009 copyright to all module headers and signons. This affects 1369193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 1370193267Sjkimthe tools/utilities. 1371193267Sjkim 1372193267SjkimImplemented a change to allow the host to override any ACPI table, including 1373193267Sjkimdynamically loaded tables. Previously, only the DSDT could be replaced by the 1374193267Sjkimhost. With this change, the AcpiOsTableOverride interface is called for each 1375193267Sjkimtable found in the RSDT/XSDT during ACPICA initialization, and also whenever 1376193267Sjkima table is dynamically loaded via the AML Load operator. 1377193267Sjkim 1378193267SjkimUpdated FADT flag definitions, especially the Boot Architecture flags. 1379193267Sjkim 1380193267SjkimDebugger: For the Find command, automatically pad the input ACPI name with 1381193267Sjkimunderscores if the name is shorter than 4 characters. This enables a match 1382193267Sjkimwith the actual namespace entry which is itself padded with underscores. 1383193267Sjkim 1384193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1385193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1386193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1387193267Sjkimmuch larger code and data size. 1388193267Sjkim 1389193267Sjkim Previous Release: 1390193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 1391193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 1392193267Sjkim Current Release: 1393193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 1394193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 1395193267Sjkim 1396193267Sjkim2) iASL Compiler/Disassembler and Tools: 1397193267Sjkim 1398193267SjkimFix build error under Bison-2.4. 1399193267Sjkim 1400193267SjkimDissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 1401193267Sjkimflags. Now decode all flags, regardless of the FADT version. Flag output 1402193267Sjkimincludes the FADT version which first defined each flag. 1403193267Sjkim 1404193267SjkimThe iASL -g option now dumps the RSDT to a file (in addition to the FADT and 1405193267SjkimDSDT). Windows only. 1406193267Sjkim 1407193267Sjkim---------------------------------------- 1408193267Sjkim04 December 2008. Summary of changes for version 20081204: 1409193267Sjkim 1410193267Sjkim1) ACPI CA Core Subsystem: 1411193267Sjkim 1412193267SjkimThe ACPICA Programmer Reference has been completely updated and revamped for 1413193267Sjkimthis release. This includes updates to the external interfaces, OSL 1414193267Sjkiminterfaces, the overview sections, and the debugger reference. 1415193267Sjkim 1416193267SjkimSeveral new ACPICA interfaces have been implemented and documented in the 1417193267Sjkimprogrammer reference: 1418193267SjkimAcpiReset - Writes the reset value to the FADT-defined reset register. 1419193267SjkimAcpiDisableAllGpes - Disable all available GPEs. 1420193267SjkimAcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 1421193267SjkimAcpiGetGpeDevice - Get the GPE block device associated with a GPE. 1422193267SjkimAcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 1423193267SjkimAcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 1424193267SjkimAcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 1425193267Sjkim 1426193267SjkimMost of the public ACPI hardware-related interfaces have been moved to a new 1427193267Sjkimfile, components/hardware/hwxface.c 1428193267Sjkim 1429193267SjkimEnhanced the FADT parsing and low-level ACPI register access: The ACPI 1430193267Sjkimregister lengths within the FADT are now used, and the low level ACPI 1431193267Sjkimregister access no longer hardcodes the ACPI register lengths. Given that 1432193267Sjkimthere may be some risk in actually trusting the FADT register lengths, a run- 1433193267Sjkimtime option was added to fall back to the default hardcoded lengths if the 1434193267SjkimFADT proves to contain incorrect values - UseDefaultRegisterWidths. This 1435193267Sjkimoption is set to true for now, and a warning is issued if a suspicious FADT 1436193267Sjkimregister length is overridden with the default value. 1437193267Sjkim 1438193267SjkimFixed a reference count issue in NsRepairObject. This problem was introduced 1439193267Sjkimin version 20081031 as part of a fix to repair Buffer objects within 1440193267SjkimPackages. Lin Ming. 1441193267Sjkim 1442193267SjkimAdded semaphore support to the Linux/Unix application OS-services layer 1443193267Sjkim(OSL). ACPICA BZ 448. Lin Ming. 1444193267Sjkim 1445193267SjkimAdded the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 1446193267Sjkimbe implemented in the OSL, or will binary semaphores be used instead. 1447193267Sjkim 1448193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1449193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1450193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1451193267Sjkimmuch larger code and data size. 1452193267Sjkim 1453193267Sjkim Previous Release: 1454193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 1455193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 1456193267Sjkim Current Release: 1457193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 1458193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 1459193267Sjkim 1460193267Sjkim2) iASL Compiler/Disassembler and Tools: 1461193267Sjkim 1462193267SjkimiASL: Completed the '-e' option to include additional ACPI tables in order to 1463193267Sjkimaid with disassembly and External statement generation. ACPICA BZ 742. Lin 1464193267SjkimMing. 1465193267Sjkim 1466193267SjkimiASL: Removed the "named object in while loop" error. The compiler cannot 1467193267Sjkimdetermine how many times a loop will execute. ACPICA BZ 730. 1468193267Sjkim 1469193267SjkimDisassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 1470193267SjkimBZ 743. 1471193267Sjkim 1472193267SjkimDisassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 1473193267Sjkim 1474193267Sjkim---------------------------------------- 1475193267Sjkim31 October 2008. Summary of changes for version 20081031: 1476193267Sjkim 1477193267Sjkim1) ACPI CA Core Subsystem: 1478193267Sjkim 1479193267SjkimRestructured the ACPICA header files into public/private. acpi.h now includes 1480193267Sjkimonly the "public" acpica headers. All other acpica headers are "private" and 1481193267Sjkimshould not be included by acpica users. One new file, accommon.h is used to 1482193267Sjkiminclude the commonly used private headers for acpica code generation. Future 1483193267Sjkimplans include moving all private headers to a new subdirectory. 1484193267Sjkim 1485193267SjkimImplemented an automatic Buffer->String return value conversion for 1486193267Sjkimpredefined ACPI methods. For these methods (such as _BIF), added automatic 1487193267Sjkimconversion for return objects that are required to be a String, but a Buffer 1488193267Sjkimwas found instead. This can happen when reading string battery data from an 1489193267Sjkimoperation region, because it used to be difficult to convert the data from 1490193267Sjkimbuffer to string from within the ASL. Ensures that the host OS is provided 1491193267Sjkimwith a valid null-terminated string. Linux BZ 11822. 1492193267Sjkim 1493193267SjkimUpdated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 1494193267Sjkiminto two: one for the 32-bit vector, another for the 64-bit vector. This is 1495193267Sjkimrequired because the host OS must setup the wake much differently for each 1496193267Sjkimvector (real vs. protected mode, etc.) and the interface itself should not be 1497193267Sjkimdeciding which vector to use. Also, eliminated the GetFirmwareWakingVector 1498193267Sjkiminterface, as it served no purpose (only the firmware reads the vector, OS 1499193267Sjkimonly writes the vector.) ACPICA BZ 731. 1500193267Sjkim 1501193267SjkimImplemented a mechanism to escape infinite AML While() loops. Added a loop 1502193267Sjkimcounter to force exit from AML While loops if the count becomes too large. 1503193267SjkimThis can occur in poorly written AML when the hardware does not respond 1504193267Sjkimwithin a while loop and the loop does not implement a timeout. The maximum 1505193267Sjkimloop count is configurable. A new exception code is returned when a loop is 1506193267Sjkimbroken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 1507193267Sjkim 1508193267SjkimOptimized the execution of AML While loops. Previously, a control state 1509193267Sjkimobject was allocated and freed for each execution of the loop. The 1510193267Sjkimoptimization is to simply reuse the control state for each iteration. This 1511193267Sjkimspeeds up the raw loop execution time by about 5%. 1512193267Sjkim 1513193267SjkimEnhanced the implicit return mechanism. For Windows compatibility, return an 1514193267Sjkimimplicit integer of value zero for methods that contain no executable code. 1515193267SjkimSuch methods are seen in the field as stubs (presumably), and can cause 1516193267Sjkimdrivers to fail if they expect a return value. Lin Ming. 1517193267Sjkim 1518193267SjkimAllow multiple backslashes as root prefixes in namepaths. In a fully 1519193267Sjkimqualified namepath, allow multiple backslash prefixes. This can happen (and 1520193267Sjkimis seen in the field) because of the use of a double-backslash in strings 1521193267Sjkim(since backslash is the escape character) causing confusion. ACPICA BZ 739 1522193267SjkimLin Ming. 1523193267Sjkim 1524193267SjkimEmit a warning if two different FACS or DSDT tables are discovered in the 1525193267SjkimFADT. Checks if there are two valid but different addresses for the FACS and 1526193267SjkimDSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 1527193267Sjkim 1528193267SjkimConsolidated the method argument count validation code. Merged the code that 1529193267Sjkimvalidates control method argument counts into the predefined validation 1530193267Sjkimmodule. Eliminates possible multiple warnings for incorrect argument counts. 1531193267Sjkim 1532193267SjkimImplemented ACPICA example code. Includes code for ACPICA initialization, 1533193267Sjkimhandler installation, and calling a control method. Available at 1534193267Sjkimsource/tools/examples. 1535193267Sjkim 1536193267SjkimAdded a global pointer for FACS table to simplify internal FACS access. Use 1537193267Sjkimthe global pointer instead of using AcpiGetTableByIndex for each FACS access. 1538193267SjkimThis simplifies the code for the Global Lock and the Firmware Waking 1539193267SjkimVector(s). 1540193267Sjkim 1541193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1542193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1543193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1544193267Sjkimmuch larger code and data size. 1545193267Sjkim 1546193267Sjkim Previous Release: 1547193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 1548193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 1549193267Sjkim Current Release: 1550193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 1551193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 1552193267Sjkim 1553193267Sjkim2) iASL Compiler/Disassembler and Tools: 1554193267Sjkim 1555193267SjkimiASL: Improved disassembly of external method calls. Added the -e option to 1556193267Sjkimallow the inclusion of additional ACPI tables to help with the disassembly of 1557193267Sjkimmethod invocations and the generation of external declarations during the 1558193267Sjkimdisassembly. Certain external method invocations cannot be disassembled 1559193267Sjkimproperly without the actual declaration of the method. Use the -e option to 1560193267Sjkiminclude the table where the external method(s) are actually declared. Most 1561193267Sjkimuseful for disassembling SSDTs that make method calls back to the master 1562193267SjkimDSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 1563193267Sjkim-e dsdt.aml ssdt1.aml 1564193267Sjkim 1565193267SjkimiASL: Fix to allow references to aliases within ASL namepaths. Fixes a 1566193267Sjkimproblem where the use of an alias within a namepath would result in a not 1567193267Sjkimfound error or cause the compiler to fault. Also now allows forward 1568193267Sjkimreferences from the Alias operator itself. ACPICA BZ 738. 1569193267Sjkim 1570193267Sjkim---------------------------------------- 1571193267Sjkim26 September 2008. Summary of changes for version 20080926: 1572193267Sjkim 1573193267Sjkim1) ACPI CA Core Subsystem: 1574193267Sjkim 1575193267SjkimDesigned and implemented a mechanism to validate predefined ACPI methods and 1576193267Sjkimobjects. This code validates the predefined ACPI objects (objects whose names 1577193267Sjkimstart with underscore) that appear in the namespace, at the time they are 1578193267Sjkimevaluated. The argument count and the type of the returned object are 1579193267Sjkimvalidated against the ACPI specification. The purpose of this validation is 1580193267Sjkimto detect problems with the BIOS-implemented predefined ACPI objects before 1581193267Sjkimthe results are returned to the ACPI-related drivers. Future enhancements may 1582193267Sjkiminclude actual repair of incorrect return objects where possible. Two new 1583193267Sjkimfiles are nspredef.c and acpredef.h. 1584193267Sjkim 1585193267SjkimFixed a fault in the AML parser if a memory allocation fails during the Op 1586193267Sjkimcompletion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 1587193267Sjkim 1588193267SjkimFixed an issue with implicit return compatibility. This change improves the 1589193267Sjkimimplicit return mechanism to be more compatible with the MS interpreter. Lin 1590193267SjkimMing, ACPICA BZ 349. 1591193267Sjkim 1592193267SjkimImplemented support for zero-length buffer-to-string conversions. Allow zero 1593193267Sjkimlength strings during interpreter buffer-to-string conversions. For example, 1594193267Sjkimduring the ToDecimalString and ToHexString operators, as well as implicit 1595193267Sjkimconversions. Fiodor Suietov, ACPICA BZ 585. 1596193267Sjkim 1597193267SjkimFixed two possible memory leaks in the error exit paths of 1598193267SjkimAcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 1599193267Sjkimsimilar in that they use a stack of state objects in order to eliminate 1600193267Sjkimrecursion. The stack must be fully unwound and deallocated if an error 1601193267Sjkimoccurs. Lin Ming. ACPICA BZ 383. 1602193267Sjkim 1603193267SjkimRemoved the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 1604193267SjkimACPI register table. This bit does not exist and is unused. Lin Ming, Bob 1605193267SjkimMoore ACPICA BZ 442. 1606193267Sjkim 1607193267SjkimRemoved the obsolete version number in module headers. Removed the 1608193267Sjkim"$Revision" number that appeared in each module header. This version number 1609193267Sjkimwas useful under SourceSafe and CVS, but has no meaning under git. It is not 1610193267Sjkimonly incorrect, it could also be misleading. 1611193267Sjkim 1612193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1613193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1614193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1615193267Sjkimmuch larger code and data size. 1616193267Sjkim 1617193267Sjkim Previous Release: 1618193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1619193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 1620193267Sjkim Current Release: 1621193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 1622193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 1623193267Sjkim 1624193267Sjkim---------------------------------------- 1625193267Sjkim29 August 2008. Summary of changes for version 20080829: 1626193267Sjkim 1627193267Sjkim1) ACPI CA Core Subsystem: 1628193267Sjkim 1629193267SjkimCompleted a major cleanup of the internal ACPI_OPERAND_OBJECT of type 1630193267SjkimReference. Changes include the elimination of cheating on the Object field 1631193267Sjkimfor the DdbHandle subtype, addition of a reference class field to 1632193267Sjkimdifferentiate the various reference types (instead of an AML opcode), and the 1633193267Sjkimcleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 1634193267Sjkim 1635193267SjkimReduce an error to a warning for an incorrect method argument count. 1636193267SjkimPreviously aborted with an error if too few arguments were passed to a 1637193267Sjkimcontrol method via the external ACPICA interface. Now issue a warning instead 1638193267Sjkimand continue. Handles the case where the method inadvertently declares too 1639193267Sjkimmany arguments, but does not actually use the extra ones. Applies mainly to 1640193267Sjkimthe predefined methods. Lin Ming. Linux BZ 11032. 1641193267Sjkim 1642193267SjkimDisallow the evaluation of named object types with no intrinsic value. Return 1643193267SjkimAE_TYPE for objects that have no value and therefore evaluation is undefined: 1644193267SjkimDevice, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 1645193267Sjkimthese types were allowed, but an exception would be generated at some point 1646193267Sjkimduring the evaluation. Now, the error is generated up front. 1647193267Sjkim 1648193267SjkimFixed a possible memory leak in the AcpiNsGetExternalPathname function 1649193267Sjkim(nsnames.c). Fixes a leak in the error exit path. 1650193267Sjkim 1651193267SjkimRemoved the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 1652193267Sjkimlevels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 1653193267Sjkiminterfaces. Also added ACPI_DB_EVENTS to correspond with the existing 1654193267SjkimACPI_LV_EVENTS. 1655193267Sjkim 1656193267SjkimRemoved obsolete and/or unused exception codes from the acexcep.h header. 1657193267SjkimThere is the possibility that certain device drivers may be affected if they 1658193267Sjkimuse any of these exceptions. 1659193267Sjkim 1660193267SjkimThe ACPICA documentation has been added to the public git source tree, under 1661193267Sjkimacpica/documents. Included are the ACPICA programmer reference, the iASL 1662193267Sjkimcompiler reference, and the changes.txt release logfile. 1663193267Sjkim 1664193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1665193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1666193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1667193267Sjkimmuch larger code and data size. 1668193267Sjkim 1669193267Sjkim Previous Release: 1670193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1671193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 1672193267Sjkim Current Release: 1673193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1674193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 1675193267Sjkim 1676193267Sjkim2) iASL Compiler/Disassembler and Tools: 1677193267Sjkim 1678193267SjkimAllow multiple argument counts for the predefined _SCP method. ACPI 3.0 1679193267Sjkimdefines _SCP with 3 arguments. Previous versions defined it with only 1 1680193267Sjkimargument. iASL now allows both definitions. 1681193267Sjkim 1682193267SjkimiASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 1683193267Sjkimlength subtables when disassembling ACPI tables. Also fixed a couple of 1684193267Sjkimerrors where a full 16-bit table type field was not extracted from the input 1685193267Sjkimproperly. 1686193267Sjkim 1687193267Sjkimacpisrc: Improve comment counting mechanism for generating source code 1688193267Sjkimstatistics. Count first and last lines of multi-line comments as whitespace, 1689193267Sjkimnot comment lines. Handle Linux legal header in addition to standard acpica 1690193267Sjkimheader. 1691193267Sjkim 1692193267Sjkim---------------------------------------- 1693193267Sjkim 1694193267Sjkim29 July 2008. Summary of changes for version 20080729: 1695193267Sjkim 1696193267Sjkim1) ACPI CA Core Subsystem: 1697193267Sjkim 1698193267SjkimFix a possible deadlock in the GPE dispatch. Remove call to 1699193267SjkimAcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 1700193267Sjkimto acquire the GPE lock but can deadlock since the GPE lock is already held 1701193267Sjkimat dispatch time. This code was introduced in version 20060831 as a response 1702193267Sjkimto Linux BZ 6881 and has since been removed from Linux. 1703193267Sjkim 1704193267SjkimAdd a function to dereference returned reference objects. Examines the return 1705193267Sjkimobject from a call to AcpiEvaluateObject. Any Index or RefOf references are 1706193267Sjkimautomatically dereferenced in an attempt to return something useful (these 1707193267Sjkimreference types cannot be converted into an external ACPI_OBJECT.) Provides 1708193267SjkimMS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 1709193267Sjkim 1710193267Sjkimx2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 1711193267Sjkimsubtables for the MADT and one new subtable for the SRAT. Includes 1712193267Sjkimdisassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 1713193267SjkimSpecification, June 2008. 1714193267Sjkim 1715193267SjkimAdditional error checking for pathname utilities. Add error check after all 1716193267Sjkimcalls to AcpiNsGetPathnameLength. Add status return from 1717193267SjkimAcpiNsBuildExternalPath and check after all calls. Add parameter validation 1718193267Sjkimto AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 1719193267Sjkim 1720193267SjkimReturn status from the global init function AcpiUtGlobalInitialize. This is 1721193267Sjkimused by both the kernel subsystem and the utilities such as iASL compiler. 1722193267SjkimThe function could possibly fail when the caches are initialized. Yang Yi. 1723193267Sjkim 1724193267SjkimAdd a function to decode reference object types to strings. Created for 1725193267Sjkimimproved error messages. 1726193267Sjkim 1727193267SjkimImprove object conversion error messages. Better error messages during object 1728193267Sjkimconversion from internal to the external ACPI_OBJECT. Used for external calls 1729193267Sjkimto AcpiEvaluateObject. 1730193267Sjkim 1731193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1732193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1733193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1734193267Sjkimmuch larger code and data size. 1735193267Sjkim 1736193267Sjkim Previous Release: 1737193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1738193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1739193267Sjkim Current Release: 1740193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1741193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 1742193267Sjkim 1743193267Sjkim2) iASL Compiler/Disassembler and Tools: 1744193267Sjkim 1745193267SjkimDebugger: fix a possible hang when evaluating non-methods. Fixes a problem 1746193267Sjkimintroduced in version 20080701. If the object being evaluated (via execute 1747193267Sjkimcommand) is not a method, the debugger can hang while trying to obtain non- 1748193267Sjkimexistent parameters. 1749193267Sjkim 1750193267SjkimiASL: relax error for using reserved "_T_x" identifiers. These names can 1751193267Sjkimappear in a disassembled ASL file if they were emitted by the original 1752193267Sjkimcompiler. Instead of issuing an error or warning and forcing the user to 1753193267Sjkimmanually change these names, issue a remark instead. 1754193267Sjkim 1755193267SjkimiASL: error if named object created in while loop. Emit an error if any named 1756193267Sjkimobject is created within a While loop. If allowed, this code will generate a 1757193267Sjkimrun-time error on the second iteration of the loop when an attempt is made to 1758193267Sjkimcreate the same named object twice. ACPICA bugzilla 730. 1759193267Sjkim 1760193267SjkimiASL: Support absolute pathnames for include files. Add support for absolute 1761193267Sjkimpathnames within the Include operator. previously, only relative pathnames 1762193267Sjkimwere supported. 1763193267Sjkim 1764193267SjkimiASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 1765193267SjkimThe ACPI spec requires one interrupt minimum. BZ 423 1766193267Sjkim 1767193267SjkimiASL: Handle a missing ResourceSource arg, with a present SourceIndex. 1768193267SjkimHandles the case for the Interrupt Resource Descriptor where 1769193267Sjkimthe ResourceSource argument is omitted but ResourceSourceIndex 1770193267Sjkimis present. Now leave room for the Index. BZ 426 1771193267Sjkim 1772193267SjkimiASL: Prevent error message if CondRefOf target does not exist. Fixes cases 1773193267Sjkimwhere an error message is emitted if the target does not exist. BZ 516 1774193267Sjkim 1775193267SjkimiASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 1776193267Sjkim(get ACPI tables on Windows). This was apparently broken in version 20070919. 1777193267Sjkim 1778193267SjkimAcpiXtract: Handle EOF while extracting data. Correctly handle the case where 1779193267Sjkimthe EOF happens immediately after the last table in the input file. Print 1780193267Sjkimcompletion message. Previously, no message was displayed in this case. 1781193267Sjkim 1782193267Sjkim---------------------------------------- 1783193267Sjkim01 July 2008. Summary of changes for version 20080701: 1784193267Sjkim 1785193267Sjkim0) Git source tree / acpica.org 1786193267Sjkim 1787193267SjkimFixed a problem where a git-clone from http would not transfer the entire 1788193267Sjkimsource tree. 1789193267Sjkim 1790193267Sjkim1) ACPI CA Core Subsystem: 1791193267Sjkim 1792193267SjkimImplemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 1793193267Sjkimenable bit. Now performs a read-change-write of the enable register instead 1794193267Sjkimof simply writing out the cached enable mask. This will prevent inadvertent 1795193267Sjkimenabling of GPEs if a rogue GPE is received during initialization (before GPE 1796193267Sjkimhandlers are installed.) 1797193267Sjkim 1798193267SjkimImplemented a copy for dynamically loaded tables. Previously, dynamically 1799193267Sjkimloaded tables were simply mapped - but on some machines this memory is 1800193267Sjkimcorrupted after suspend. Now copy the table to a local buffer. For the 1801193267SjkimOpRegion case, added checksum verify. Use the table length from the table 1802193267Sjkimheader, not the region length. For the Buffer case, use the table length 1803193267Sjkimalso. Dennis Noordsij, Bob Moore. BZ 10734 1804193267Sjkim 1805193267SjkimFixed a problem where the same ACPI table could not be dynamically loaded and 1806193267Sjkimunloaded more than once. Without this change, a table cannot be loaded again 1807193267Sjkimonce it has been loaded/unloaded one time. The current mechanism does not 1808193267Sjkimunregister a table upon an unload. During a load, if the same table is found, 1809193267Sjkimthis no longer returns an exception. BZ 722 1810193267Sjkim 1811193267SjkimFixed a problem where the wrong descriptor length was calculated for the 1812193267SjkimEndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 1813193267Sjkimare calculated as 12 bytes long, but the actual length in the internal 1814193267Sjkimdescriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 1815193267Sjkimby Linn Crosetto. BZ 728 1816193267Sjkim 1817193267SjkimFixed a possible memory leak in the Unload operator. The DdbHandle returned 1818193267Sjkimby Load() did not have its reference count decremented during unload, leading 1819193267Sjkimto a memory leak. Lin Ming. BZ 727 1820193267Sjkim 1821193267SjkimFixed a possible memory leak when deleting thermal/processor objects. Any 1822193267Sjkimassociated notify handlers (and objects) were not being deleted. Fiodor 1823193267SjkimSuietov. BZ 506 1824193267Sjkim 1825193267SjkimFixed the ordering of the ASCII names in the global mutex table to match the 1826193267Sjkimactual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 1827193267SjkimVegard Nossum. BZ 726 1828193267Sjkim 1829193267SjkimEnhanced the AcpiGetObjectInfo interface to return the number of required 1830193267Sjkimarguments if the object is a control method. Added this call to the debugger 1831193267Sjkimso the proper number of default arguments are passed to a method. This 1832193267Sjkimprevents a warning when executing methods from AcpiExec. 1833193267Sjkim 1834193267SjkimAdded a check for an invalid handle in AcpiGetObjectInfo. Return 1835193267SjkimAE_BAD_PARAMETER if input handle is invalid. BZ 474 1836193267Sjkim 1837193267SjkimFixed an extraneous warning from exconfig.c on the 64-bit build. 1838193267Sjkim 1839193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1840193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1841193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1842193267Sjkimmuch larger code and data size. 1843193267Sjkim 1844193267Sjkim Previous Release: 1845193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1846193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1847193267Sjkim Current Release: 1848193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1849193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1850193267Sjkim 1851193267Sjkim2) iASL Compiler/Disassembler and Tools: 1852193267Sjkim 1853193267SjkimiASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 1854193267Sjkimresource descriptor names. 1855193267Sjkim 1856193267SjkimiASL: Detect invalid ASCII characters in input (windows version). Removed the 1857193267Sjkim"-CF" flag from the flex compile, enables correct detection of non-ASCII 1858193267Sjkimcharacters in the input. BZ 441 1859193267Sjkim 1860193267SjkimiASL: Eliminate warning when result of LoadTable is not used. Eliminate the 1861193267Sjkim"result of operation not used" warning when the DDB handle returned from 1862193267SjkimLoadTable is not used. The warning is not needed. BZ 590 1863193267Sjkim 1864193267SjkimAcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 1865193267Sjkimpass address of table to the AML. Added option to disable OpRegion simulation 1866193267Sjkimto allow creation of an OpRegion with a real address that was passed to _CFG. 1867193267SjkimAll of this allows testing of the Load and Unload operators from AcpiExec. 1868193267Sjkim 1869193267SjkimDebugger: update tables command for unloaded tables. Handle unloaded tables 1870193267Sjkimand use the standard table header output routine. 1871193267Sjkim 1872193267Sjkim---------------------------------------- 1873193267Sjkim09 June 2008. Summary of changes for version 20080609: 1874193267Sjkim 1875193267Sjkim1) ACPI CA Core Subsystem: 1876193267Sjkim 1877193267SjkimImplemented a workaround for reversed _PRT entries. A significant number of 1878193267SjkimBIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 1879193267Sjkimchange dynamically detects and repairs this problem. Provides compatibility 1880193267Sjkimwith MS ACPI. BZ 6859 1881193267Sjkim 1882193267SjkimSimplified the internal ACPI hardware interfaces to eliminate the locking 1883193267Sjkimflag parameter from Register Read/Write. Added a new external interface, 1884193267SjkimAcpiGetRegisterUnlocked. 1885193267Sjkim 1886193267SjkimFixed a problem where the invocation of a GPE control method could hang. This 1887193267Sjkimwas a regression introduced in 20080514. The new method argument count 1888193267Sjkimvalidation mechanism can enter an infinite loop when a GPE method is 1889193267Sjkimdispatched. Problem fixed by removing the obsolete code that passed GPE block 1890193267Sjkiminformation to the notify handler via the control method parameter pointer. 1891193267Sjkim 1892193267SjkimFixed a problem where the _SST execution status was incorrectly returned to 1893193267Sjkimthe caller of AcpiEnterSleepStatePrep. This was a regression introduced in 1894193267Sjkim20080514. _SST is optional and a NOT_FOUND exception should never be 1895193267Sjkimreturned. BZ 716 1896193267Sjkim 1897193267SjkimFixed a problem where a deleted object could be accessed from within the AML 1898193267Sjkimparser. This was a regression introduced in version 20080123 as a fix for the 1899193267SjkimUnload operator. Lin Ming. BZ 10669 1900193267Sjkim 1901193267SjkimCleaned up the debug operand dump mechanism. Eliminated unnecessary operands 1902193267Sjkimand eliminated the use of a negative index in a loop. Operands are now 1903193267Sjkimdisplayed in the correct order, not backwards. This also fixes a regression 1904193267Sjkimintroduced in 20080514 on 64-bit systems where the elimination of 1905193267SjkimACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 1906193267Sjkim 1907193267SjkimFixed a possible memory leak in EvPciConfigRegionSetup where the error exit 1908193267Sjkimpath did not delete a locally allocated structure. 1909193267Sjkim 1910193267SjkimUpdated definitions for the DMAR and SRAT tables to synchronize with the 1911193267Sjkimcurrent specifications. Includes disassembler support. 1912193267Sjkim 1913193267SjkimFixed a problem in the mutex debug code (in utmutex.c) where an incorrect 1914193267Sjkimloop termination value was used. Loop terminated on iteration early, missing 1915193267Sjkimone mutex. Linn Crosetto 1916193267Sjkim 1917193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1918193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1919193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1920193267Sjkimmuch larger code and data size. 1921193267Sjkim 1922193267Sjkim Previous Release: 1923193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1924193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1925193267Sjkim Current Release: 1926193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1927193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1928193267Sjkim 1929193267Sjkim2) iASL Compiler/Disassembler and Tools: 1930193267Sjkim 1931193267SjkimDisassembler: Implemented support for EisaId() within _CID objects. Now 1932193267Sjkimdisassemble integer _CID objects back to EisaId invocations, including 1933193267Sjkimmultiple integers within _CID packages. Includes single-step support for 1934193267Sjkimdebugger also. 1935193267Sjkim 1936193267SjkimDisassembler: Added support for DMAR and SRAT table definition changes. 1937193267Sjkim 1938193267Sjkim---------------------------------------- 1939193267Sjkim14 May 2008. Summary of changes for version 20080514: 1940193267Sjkim 1941193267Sjkim1) ACPI CA Core Subsystem: 1942193267Sjkim 1943193267SjkimFixed a problem where GPEs were enabled too early during the ACPICA 1944193267Sjkiminitialization. This could lead to "handler not installed" errors on some 1945193267Sjkimmachines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 1946193267Sjkimensures that all operation regions and devices throughout the namespace have 1947193267Sjkimbeen initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 1948193267Sjkim 1949193267SjkimImplemented a change to the enter sleep code. Moved execution of the _GTS 1950193267Sjkimmethod to just before setting sleep enable bit. The execution was moved from 1951193267SjkimAcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 1952193267Sjkimimmediately before the SLP_EN bit is set, as per the ACPI specification. 1953193267SjkimLuming Yu, BZ 1653. 1954193267Sjkim 1955193267SjkimImplemented a fix to disable unknown GPEs (2nd version). Now always disable 1956193267Sjkimthe GPE, even if ACPICA thinks that that it is already disabled. It is 1957193267Sjkimpossible that the AML or some other code has enabled the GPE unbeknownst to 1958193267Sjkimthe ACPICA code. 1959193267Sjkim 1960193267SjkimFixed a problem with the Field operator where zero-length fields would return 1961193267Sjkiman AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 1962193267Sjkimfield declarations in Field(), BankField(), and IndexField(). BZ 10606. 1963193267Sjkim 1964193267SjkimImplemented a fix for the Load operator, now load the table at the namespace 1965193267Sjkimroot. This reverts a change introduced in version 20071019. The table is now 1966193267Sjkimloaded at the namespace root even though this goes against the ACPI 1967193267Sjkimspecification. This provides compatibility with other ACPI implementations. 1968193267SjkimThe ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 1969193267Sjkim 1970193267SjkimFixed a problem where ACPICA would not Load() tables with unusual signatures. 1971193267SjkimNow ignore ACPI table signature for Load() operator. Only "SSDT" is 1972193267Sjkimacceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 1973193267SjkimTherefore, signature validation is worthless. Apparently MS ACPI accepts such 1974193267Sjkimsignatures, ACPICA must be compatible. BZ 10454. 1975193267Sjkim 1976193267SjkimFixed a possible negative array index in AcpiUtValidateException. Added NULL 1977193267Sjkimfields to the exception string arrays to eliminate a -1 subtraction on the 1978193267SjkimSubStatus field. 1979193267Sjkim 1980193267SjkimUpdated the debug tracking macros to reduce overall code and data size. 1981193267SjkimChanged ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 1982193267Sjkiminstead of pointers to static strings. Jan Beulich and Bob Moore. 1983193267Sjkim 1984193267SjkimImplemented argument count checking in control method invocation via 1985193267SjkimAcpiEvaluateObject. Now emit an error if too few arguments, warning if too 1986193267Sjkimmany. This applies only to extern programmatic control method execution, not 1987193267Sjkimmethod-to-method calls within the AML. Lin Ming. 1988193267Sjkim 1989193267SjkimEliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 1990193267Sjkimlonger needed, especially with the removal of 16-bit support. It was replaced 1991193267Sjkimmostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 1992193267Sjkim32/64-bit platforms is required. 1993193267Sjkim 1994193267SjkimAdded the C const qualifier for appropriate string constants -- mostly 1995193267SjkimMODULE_NAME and printf format strings. Jan Beulich. 1996193267Sjkim 1997193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1998193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1999193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 2000193267Sjkimmuch larger code and data size. 2001193267Sjkim 2002193267Sjkim Previous Release: 2003193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 2004193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 2005193267Sjkim Current Release: 2006193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2007193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2008193267Sjkim 2009193267Sjkim2) iASL Compiler/Disassembler and Tools: 2010193267Sjkim 2011193267SjkimImplemented ACPI table revision ID validation in the disassembler. Zero is 2012193267Sjkimalways invalid. For DSDTs, the ID controls the interpreter integer width. 1 2013193267Sjkimmeans 32-bit and this is unusual. 2 or greater is 64-bit. 2014193267Sjkim 2015193267Sjkim---------------------------------------- 2016193267Sjkim21 March 2008. Summary of changes for version 20080321: 2017193267Sjkim 2018193267Sjkim1) ACPI CA Core Subsystem: 2019193267Sjkim 2020193267SjkimImplemented an additional change to the GPE support in order to suppress 2021193267Sjkimspurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 2022193267Sjkimdisable incoming GPEs that are neither enabled nor disabled -- meaning that 2023193267Sjkimthe GPE is unknown to the system. This should prevent future interrupt floods 2024193267Sjkimfrom that GPE. BZ 6217 (Zhang Rui) 2025193267Sjkim 2026193267SjkimFixed a problem where NULL package elements were not returned to the 2027193267SjkimAcpiEvaluateObject interface correctly. The element was simply ignored 2028193267Sjkiminstead of returning a NULL ACPI_OBJECT package element, potentially causing 2029193267Sjkima buffer overflow and/or confusing the caller who expected a fixed number of 2030193267Sjkimelements. BZ 10132 (Lin Ming, Bob Moore) 2031193267Sjkim 2032193267SjkimFixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 2033193267SjkimQword), Field, BankField, and IndexField operators when invoked from inside 2034193267Sjkiman executing control method. In this case, these operators created namespace 2035193267Sjkimnodes that were incorrectly left marked as permanent nodes instead of 2036193267Sjkimtemporary nodes. This could cause a problem if there is race condition 2037193267Sjkimbetween an exiting control method and a running namespace walk. (Reported by 2038193267SjkimLinn Crosetto) 2039193267Sjkim 2040193267SjkimFixed a problem where the CreateField and CreateXXXField operators would 2041193267Sjkimincorrectly allow duplicate names (the name of the field) with no exception 2042193267Sjkimgenerated. 2043193267Sjkim 2044193267SjkimImplemented several changes for Notify handling. Added support for new Notify 2045193267Sjkimvalues (ACPI 2.0+) and improved the Notify debug output. Notify on 2046193267SjkimPowerResource objects is no longer allowed, as per the ACPI specification. 2047193267Sjkim(Bob Moore, Zhang Rui) 2048193267Sjkim 2049193267SjkimAll Reference Objects returned via the AcpiEvaluateObject interface are now 2050193267Sjkimmarked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 2051193267SjkimNULL objects - either NULL package elements or unresolved named references. 2052193267Sjkim 2053193267SjkimFixed a problem where an extraneous debug message was produced for package 2054193267Sjkimobjects (when debugging enabled). The message "Package List length larger 2055193267Sjkimthan NumElements count" is now produced in the correct case, and is now an 2056193267Sjkimerror message rather than a debug message. Added a debug message for the 2057193267Sjkimopposite case, where NumElements is larger than the Package List (the package 2058193267Sjkimwill be padded out with NULL elements as per the ACPI spec.) 2059193267Sjkim 2060193267SjkimImplemented several improvements for the output of the ASL "Debug" object to 2061193267Sjkimclarify and keep all data for a given object on one output line. 2062193267Sjkim 2063193267SjkimFixed two size calculation issues with the variable-length Start Dependent 2064193267Sjkimresource descriptor. 2065193267Sjkim 2066193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2067193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2068193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2069193267Sjkima much larger code and data size. 2070193267Sjkim 2071193267Sjkim Previous Release: 2072193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 2073193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 2074193267Sjkim Current Release: 2075193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 2076193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 2077193267Sjkim 2078193267Sjkim2) iASL Compiler/Disassembler and Tools: 2079193267Sjkim 2080193267SjkimFixed a problem with the use of the Switch operator where execution of the 2081193267Sjkimcontaining method by multiple concurrent threads could cause an 2082193267SjkimAE_ALREADY_EXISTS exception. This is caused by the fact that there is no 2083193267Sjkimactual Switch opcode, it must be simulated with local named temporary 2084193267Sjkimvariables and if/else pairs. The solution chosen was to mark any method that 2085193267Sjkimuses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 2086193267Sjkim 2087193267Sjkim---------------------------------------- 2088193267Sjkim13 February 2008. Summary of changes for version 20080213: 2089193267Sjkim 2090193267Sjkim1) ACPI CA Core Subsystem: 2091193267Sjkim 2092193267SjkimImplemented another MS compatibility design change for GPE/Notify handling. 2093193267SjkimGPEs are now cleared/enabled asynchronously to allow all pending notifies to 2094193267Sjkimcomplete first. It is expected that the OSL will queue the enable request 2095193267Sjkimbehind all pending notify requests (may require changes to the local host OSL 2096193267Sjkimin AcpiOsExecute). Alexey Starikovskiy. 2097193267Sjkim 2098193267SjkimFixed a problem where buffer and package objects passed as arguments to a 2099193267Sjkimcontrol method via the external AcpiEvaluateObject interface could cause an 2100193267SjkimAE_AML_INTERNAL exception depending on the order and type of operators 2101193267Sjkimexecuted by the target control method. 2102193267Sjkim 2103193267SjkimFixed a problem where resource descriptor size optimization could cause a 2104193267Sjkimproblem when a _CRS resource template is passed to a _SRS method. The _SRS 2105193267Sjkimresource template must use the same descriptors (with the same size) as 2106193267Sjkimreturned from _CRS. This change affects the following resource descriptors: 2107193267SjkimIRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 2108193267Sjkim 2109193267SjkimFixed a problem where a CopyObject to RegionField, BankField, and IndexField 2110193267Sjkimobjects did not perform an implicit conversion as it should. These types must 2111193267Sjkimretain their initial type permanently as per the ACPI specification. However, 2112193267Sjkima CopyObject to all other object types should not perform an implicit 2113193267Sjkimconversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 2114193267Sjkim 2115193267SjkimFixed a problem with the AcpiGetDevices interface where the mechanism to 2116193267Sjkimmatch device CIDs did not examine the entire list of available CIDs, but 2117193267Sjkiminstead aborted on the first non-matching CID. Andrew Patterson. 2118193267Sjkim 2119193267SjkimFixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 2120193267Sjkiminadvertently changed to return a 16-bit value instead of a 32-bit value, 2121193267Sjkimtruncating the upper dword of a 64-bit value. This macro is only used to 2122193267Sjkimdisplay debug output, so no incorrect calculations were made. Also, 2123193267Sjkimreimplemented the macro so that a 64-bit shift is not performed by 2124193267Sjkiminefficient compilers. 2125193267Sjkim 2126193267SjkimAdded missing va_end statements that should correspond with each va_start 2127193267Sjkimstatement. 2128193267Sjkim 2129193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2130193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2131193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2132193267Sjkima much larger code and data size. 2133193267Sjkim 2134193267Sjkim Previous Release: 2135193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 2136193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 2137193267Sjkim Current Release: 2138193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 2139193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 2140193267Sjkim 2141193267Sjkim2) iASL Compiler/Disassembler and Tools: 2142193267Sjkim 2143193267SjkimImplemented full disassembler support for the following new ACPI tables: 2144193267SjkimBERT, EINJ, and ERST. Implemented partial disassembler support for the 2145193267Sjkimcomplicated HEST table. These tables support the Windows Hardware Error 2146193267SjkimArchitecture (WHEA). 2147193267Sjkim 2148193267Sjkim---------------------------------------- 2149193267Sjkim23 January 2008. Summary of changes for version 20080123: 2150193267Sjkim 2151193267Sjkim1) ACPI CA Core Subsystem: 2152193267Sjkim 2153193267SjkimAdded the 2008 copyright to all module headers and signons. This affects 2154193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 2155193267Sjkimthe tools/utilities. 2156193267Sjkim 2157193267SjkimFixed a problem with the SizeOf operator when used with Package and Buffer 2158193267Sjkimobjects. These objects have deferred execution for some arguments, and the 2159193267Sjkimexecution is now completed before the SizeOf is executed. This problem caused 2160193267Sjkimunexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 2161193267Sjkim9558 2162193267Sjkim 2163193267SjkimImplemented an enhancement to the interpreter "slack mode". In the absence of 2164193267Sjkiman explicit return or an implicitly returned object from the last executed 2165193267Sjkimopcode, a control method will now implicitly return an integer of value 0 for 2166193267SjkimMicrosoft compatibility. (Lin Ming) BZ 392 2167193267Sjkim 2168193267SjkimFixed a problem with the Load operator where an exception was not returned in 2169193267Sjkimthe case where the table is already loaded. (Lin Ming) BZ 463 2170193267Sjkim 2171193267SjkimImplemented support for the use of DDBHandles as an Indexed Reference, as per 2172193267Sjkimthe ACPI spec. (Lin Ming) BZ 486 2173193267Sjkim 2174193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 2175193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 2176193267Sjkim 2177193267SjkimFixed a problem with the LoadTable operator where the OemId and OemTableId 2178193267Sjkiminput strings could cause unexpected failures if they were shorter than the 2179193267Sjkimmaximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 2180193267Sjkim 2181193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 2182193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 2183193267Sjkim 2184193267SjkimImplemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 2185193267SjkimIBFT, UEFI, WDAT. Disassembler support is forthcoming. 2186193267Sjkim 2187193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2188193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2189193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2190193267Sjkima much larger code and data size. 2191193267Sjkim 2192193267Sjkim Previous Release: 2193193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 2194193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 2195193267Sjkim Current Release: 2196193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 2197193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 2198193267Sjkim 2199193267Sjkim2) iASL Compiler/Disassembler and Tools: 2200193267Sjkim 2201193267SjkimImplemented support in the disassembler for checksum validation on incoming 2202193267Sjkimbinary DSDTs and SSDTs. If incorrect, a message is displayed within the table 2203193267Sjkimheader dump at the start of the disassembly. 2204193267Sjkim 2205193267SjkimImplemented additional debugging information in the namespace listing file 2206193267Sjkimcreated during compilation. In addition to the namespace hierarchy, the full 2207193267Sjkimpathname to each namespace object is displayed. 2208193267Sjkim 2209193267SjkimFixed a problem with the disassembler where invalid ACPI tables could cause 2210193267Sjkimfaults or infinite loops. 2211193267Sjkim 2212193267SjkimFixed an unexpected parse error when using the optional "parameter types" 2213193267Sjkimlist in a control method declaration. (Lin Ming) BZ 397 2214193267Sjkim 2215193267SjkimFixed a problem where two External declarations with the same name did not 2216193267Sjkimcause an error (Lin Ming) BZ 509 2217193267Sjkim 2218193267SjkimImplemented support for full TermArgs (adding Argx, Localx and method 2219193267Sjkiminvocation) for the ParameterData parameter to the LoadTable operator. (Lin 2220193267SjkimMing) BZ 583,587 2221193267Sjkim 2222193267Sjkim---------------------------------------- 2223193267Sjkim19 December 2007. Summary of changes for version 20071219: 2224193267Sjkim 2225193267Sjkim1) ACPI CA Core Subsystem: 2226193267Sjkim 2227193267SjkimImplemented full support for deferred execution for the TermArg string 2228193267Sjkimarguments for DataTableRegion. This enables forward references and full 2229193267Sjkimoperand resolution for the three string arguments. Similar to OperationRegion 2230193267Sjkimdeferred argument execution.) Lin Ming. BZ 430 2231193267Sjkim 2232193267SjkimImplemented full argument resolution support for the BankValue argument to 2233193267SjkimBankField. Previously, only constants were supported, now any TermArg may be 2234193267Sjkimused. Lin Ming BZ 387, 393 2235193267Sjkim 2236193267SjkimFixed a problem with AcpiGetDevices where the search of a branch of the 2237193267Sjkimdevice tree could be terminated prematurely. In accordance with the ACPI 2238193267Sjkimspecification, the search down the current branch is terminated if a device 2239193267Sjkimis both not present and not functional (instead of just not present.) Yakui 2240193267SjkimZhao. 2241193267Sjkim 2242193267SjkimFixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 2243193267Sjkimthe underlying AML code changed the GPE enable registers. Now, any unknown 2244193267Sjkimincoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 2245193267Sjkiminstead of simply ignored. Rui Zhang. 2246193267Sjkim 2247193267SjkimFixed a problem with Index Fields where the Index register was incorrectly 2248193267Sjkimlimited to a maximum of 32 bits. Now any size may be used. 2249193267Sjkim 2250193267SjkimFixed a couple memory leaks associated with "implicit return" objects when 2251193267Sjkimthe AML Interpreter slack mode is enabled. Lin Ming BZ 349 2252193267Sjkim 2253193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2254193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2255193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2256193267Sjkima much larger code and data size. 2257193267Sjkim 2258193267Sjkim Previous Release: 2259193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 2260193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 2261193267Sjkim Current Release: 2262193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 2263193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 2264193267Sjkim 2265193267Sjkim---------------------------------------- 2266193267Sjkim14 November 2007. Summary of changes for version 20071114: 2267193267Sjkim 2268193267Sjkim1) ACPI CA Core Subsystem: 2269193267Sjkim 2270193267SjkimImplemented event counters for each of the Fixed Events, the ACPI SCI 2271193267Sjkim(interrupt) itself, and control methods executed. Named 2272193267SjkimAcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 2273193267Sjkimshould be useful for debugging and statistics. 2274193267Sjkim 2275193267SjkimImplemented a new external interface, AcpiGetStatistics, to retrieve the 2276193267Sjkimcontents of the various event counters. Returns the current values for 2277193267SjkimAcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 2278193267SjkimAcpiMethodCount. The interface can be expanded in the future if new counters 2279193267Sjkimare added. Device drivers should use this interface rather than access the 2280193267Sjkimcounters directly. 2281193267Sjkim 2282193267SjkimFixed a problem with the FromBCD and ToBCD operators. With some compilers, 2283193267Sjkimthe ShortDivide function worked incorrectly, causing problems with the BCD 2284193267Sjkimfunctions with large input values. A truncation from 64-bit to 32-bit 2285193267Sjkiminadvertently occurred. Internal BZ 435. Lin Ming 2286193267Sjkim 2287193267SjkimFixed a problem with Index references passed as method arguments. References 2288193267Sjkimpassed as arguments to control methods were dereferenced immediately (before 2289193267Sjkimcontrol was passed to the called method). The references are now correctly 2290193267Sjkimpassed directly to the called method. BZ 5389. Lin Ming 2291193267Sjkim 2292193267SjkimFixed a problem with CopyObject used in conjunction with the Index operator. 2293193267SjkimThe reference was incorrectly dereferenced before the copy. The reference is 2294193267Sjkimnow correctly copied. BZ 5391. Lin Ming 2295193267Sjkim 2296193267SjkimFixed a problem with Control Method references within Package objects. These 2297193267Sjkimreferences are now correctly generated. This completes the package 2298193267Sjkimconstruction overhaul that began in version 20071019. 2299193267Sjkim 2300193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2301193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2302193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2303193267Sjkima much larger code and data size. 2304193267Sjkim 2305193267Sjkim Previous Release: 2306193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 2307193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 2308193267Sjkim Current Release: 2309193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 2310193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 2311193267Sjkim 2312193267Sjkim 2313193267Sjkim2) iASL Compiler/Disassembler and Tools: 2314193267Sjkim 2315193267SjkimThe AcpiExec utility now installs handlers for all of the predefined 2316193267SjkimOperation Region types. New types supported are: PCI_Config, CMOS, and 2317193267SjkimPCIBARTarget. 2318193267Sjkim 2319193267SjkimFixed a problem with the 64-bit version of AcpiExec where the extended (64- 2320193267Sjkimbit) address fields for the DSDT and FACS within the FADT were not being 2321193267Sjkimused, causing truncation of the upper 32-bits of these addresses. Lin Ming 2322193267Sjkimand Bob Moore 2323193267Sjkim 2324193267Sjkim---------------------------------------- 2325193267Sjkim19 October 2007. Summary of changes for version 20071019: 2326193267Sjkim 2327193267Sjkim1) ACPI CA Core Subsystem: 2328193267Sjkim 2329193267SjkimFixed a problem with the Alias operator when the target of the alias is a 2330193267Sjkimnamed ASL operator that opens a new scope -- Scope, Device, PowerResource, 2331193267SjkimProcessor, and ThermalZone. In these cases, any children of the original 2332193267Sjkimoperator could not be accessed via the alias, potentially causing unexpected 2333193267SjkimAE_NOT_FOUND exceptions. (BZ 9067) 2334193267Sjkim 2335193267SjkimFixed a problem with the Package operator where all named references were 2336193267Sjkimcreated as object references and left otherwise unresolved. According to the 2337193267SjkimACPI specification, a Package can only contain Data Objects or references to 2338193267Sjkimcontrol methods. The implication is that named references to Data Objects 2339193267Sjkim(Integer, Buffer, String, Package, BufferField, Field) should be resolved 2340193267Sjkimimmediately upon package creation. This is the approach taken with this 2341193267Sjkimchange. References to all other named objects (Methods, Devices, Scopes, 2342193267Sjkimetc.) are all now properly created as reference objects. (BZ 5328) 2343193267Sjkim 2344193267SjkimReverted a change to Notify handling that was introduced in version 2345193267Sjkim20070508. This version changed the Notify handling from asynchronous to 2346193267Sjkimfully synchronous (Device driver Notify handling with respect to the Notify 2347193267SjkimASL operator). It was found that this change caused more problems than it 2348193267Sjkimsolved and was removed by most users. 2349193267Sjkim 2350193267SjkimFixed a problem with the Increment and Decrement operators where the type of 2351193267Sjkimthe target object could be unexpectedly and incorrectly changed. (BZ 353) 2352193267SjkimLin Ming. 2353193267Sjkim 2354193267SjkimFixed a problem with the Load and LoadTable operators where the table 2355193267Sjkimlocation within the namespace was ignored. Instead, the table was always 2356193267Sjkimloaded into the root or current scope. Lin Ming. 2357193267Sjkim 2358193267SjkimFixed a problem with the Load operator when loading a table from a buffer 2359193267Sjkimobject. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 2360193267Sjkim 2361193267SjkimFixed a problem with the Debug object where a store of a DdbHandle reference 2362193267Sjkimobject to the Debug object could cause a fault. 2363193267Sjkim 2364193267SjkimAdded a table checksum verification for the Load operator, in the case where 2365193267Sjkimthe load is from a buffer. (BZ 578). 2366193267Sjkim 2367193267SjkimImplemented additional parameter validation for the LoadTable operator. The 2368193267Sjkimlength of the input strings SignatureString, OemIdString, and OemTableId are 2369193267Sjkimnow checked for maximum lengths. (BZ 582) Lin Ming. 2370193267Sjkim 2371193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2372193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2373193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2374193267Sjkima much larger code and data size. 2375193267Sjkim 2376193267Sjkim Previous Release: 2377193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 2378193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 2379193267Sjkim Current Release: 2380193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 2381193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 2382193267Sjkim 2383193267Sjkim 2384193267Sjkim2) iASL Compiler/Disassembler: 2385193267Sjkim 2386193267SjkimFixed a problem where if a single file was specified and the file did not 2387193267Sjkimexist, no error message was emitted. (Introduced with wildcard support in 2388193267Sjkimversion 20070917.) 2389193267Sjkim 2390193267Sjkim---------------------------------------- 2391193267Sjkim19 September 2007. Summary of changes for version 20070919: 2392193267Sjkim 2393193267Sjkim1) ACPI CA Core Subsystem: 2394193267Sjkim 2395193267SjkimDesigned and implemented new external interfaces to install and remove 2396193267Sjkimhandlers for ACPI table-related events. Current events that are defined are 2397193267SjkimLOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 2398193267Sjkimthey are dynamically loaded and unloaded. See AcpiInstallTableHandler and 2399193267SjkimAcpiRemoveTableHandler. (Lin Ming and Bob Moore) 2400193267Sjkim 2401193267SjkimFixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 2402193267Sjkim(acpi_serialized option on Linux) could cause some systems to hang during 2403193267Sjkiminitialization. (Bob Moore) BZ 8171 2404193267Sjkim 2405193267SjkimFixed a problem where objects of certain types (Device, ThermalZone, 2406193267SjkimProcessor, PowerResource) can be not found if they are declared and 2407193267Sjkimreferenced from within the same control method (Lin Ming) BZ 341 2408193267Sjkim 2409193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2410193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2411193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2412193267Sjkima much larger code and data size. 2413193267Sjkim 2414193267Sjkim Previous Release: 2415193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 2416193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 2417193267Sjkim Current Release: 2418193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 2419193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 2420193267Sjkim 2421193267Sjkim 2422193267Sjkim2) iASL Compiler/Disassembler: 2423193267Sjkim 2424193267SjkimImplemented support to allow multiple files to be compiled/disassembled in a 2425193267Sjkimsingle invocation. This includes command line wildcard support for both the 2426193267SjkimWindows and Unix versions of the compiler. This feature simplifies the 2427193267Sjkimdisassembly and compilation of multiple ACPI tables in a single directory. 2428193267Sjkim 2429193267Sjkim---------------------------------------- 2430193267Sjkim08 May 2007. Summary of changes for version 20070508: 2431193267Sjkim 2432193267Sjkim1) ACPI CA Core Subsystem: 2433193267Sjkim 2434193267SjkimImplemented a Microsoft compatibility design change for the handling of the 2435193267SjkimNotify AML operator. Previously, notify handlers were dispatched and 2436193267Sjkimexecuted completely asynchronously in a deferred thread. The new design 2437193267Sjkimstill executes the notify handlers in a different thread, but the original 2438193267Sjkimthread that executed the Notify() now waits at a synchronization point for 2439193267Sjkimthe notify handler to complete. Some machines depend on a synchronous Notify 2440193267Sjkimoperator in order to operate correctly. 2441193267Sjkim 2442193267SjkimImplemented support to allow Package objects to be passed as method 2443193267Sjkimarguments to the external AcpiEvaluateObject interface. Previously, this 2444193267Sjkimwould return the AE_NOT_IMPLEMENTED exception. This feature had not been 2445193267Sjkimimplemented since there were no reserved control methods that required it 2446193267Sjkimuntil recently. 2447193267Sjkim 2448193267SjkimFixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 2449193267Sjkimcontained invalid non-zero values in reserved fields could cause later 2450193267Sjkimfailures because these fields have meaning in later revisions of the FADT. 2451193267SjkimFor incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 2452193267Sjkimare: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 2453193267Sjkim 2454193267SjkimFixed a problem where the Global Lock handle was not properly updated if a 2455193267Sjkimthread that acquired the Global Lock via executing AML code then attempted 2456193267Sjkimto acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 2457193267SjkimLiu. 2458193267Sjkim 2459193267SjkimFixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 2460193267Sjkimcould be corrupted if the interrupt being removed was at the head of the 2461193267Sjkimlist. Reported by Linn Crosetto. 2462193267Sjkim 2463193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2464193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2465193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2466193267Sjkima much larger code and data size. 2467193267Sjkim 2468193267Sjkim Previous Release: 2469193267Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2470193267Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 2471193267Sjkim Current Release: 2472193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 2473193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 2474193267Sjkim 2475193267Sjkim---------------------------------------- 2476167802Sjkim20 March 2007. Summary of changes for version 20070320: 2477167802Sjkim 2478167802Sjkim1) ACPI CA Core Subsystem: 2479167802Sjkim 2480193267SjkimImplemented a change to the order of interpretation and evaluation of AML 2481193267Sjkimoperand objects within the AML interpreter. The interpreter now evaluates 2482193267Sjkimoperands in the order that they appear in the AML stream (and the 2483193267Sjkimcorresponding ASL code), instead of in the reverse order (after the entire 2484193267Sjkimoperand list has been parsed). The previous behavior caused several subtle 2485193267Sjkimincompatibilities with the Microsoft AML interpreter as well as being 2486193267Sjkimsomewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 2487167802Sjkim 2488193267SjkimImplemented a change to the ACPI Global Lock support. All interfaces to the 2489193267Sjkimglobal lock now allow the same thread to acquire the lock multiple times. 2490193267SjkimThis affects the AcpiAcquireGlobalLock external interface to the global lock 2491193267Sjkimas well as the internal use of the global lock to support AML fields -- a 2492193267Sjkimcontrol method that is holding the global lock can now simultaneously access 2493193267SjkimAML fields that require global lock protection. Previously, in both cases, 2494193267Sjkimthis would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 2495193267SjkimAcpiAcquireGlobalLock is of special interest to drivers for the Embedded 2496193267SjkimController. There is no change to the behavior of the AML Acquire operator, 2497193267Sjkimas this can already be used to acquire a mutex multiple times by the same 2498193267Sjkimthread. BZ 8066. With assistance from Alexey Starikovskiy. 2499167802Sjkim 2500193267SjkimFixed a problem where invalid objects could be referenced in the AML 2501193267SjkimInterpreter after error conditions. During operand evaluation, ensure that 2502193267Sjkimthe internal "Return Object" field is cleared on error and only valid 2503193267Sjkimpointers are stored there. Caused occasional access to deleted objects that 2504193267Sjkimresulted in "large reference count" warning messages. Valery Podrezov. 2505167802Sjkim 2506193267SjkimFixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 2507193267Sjkimdeeply nested control method invocations. BZ 7873, local BZ 487. Valery 2508193267SjkimPodrezov. 2509167802Sjkim 2510193267SjkimFixed an internal problem with the handling of result objects on the 2511193267Sjkiminterpreter result stack. BZ 7872. Valery Podrezov. 2512167802Sjkim 2513193267SjkimRemoved obsolete code that handled the case where AML_NAME_OP is the target 2514193267Sjkimof a reference (Reference.Opcode). This code was no longer necessary. BZ 2515193267Sjkim7874. Valery Podrezov. 2516167802Sjkim 2517193267SjkimRemoved obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 2518193267Sjkimremnant from the previously discontinued 16-bit support. 2519167802Sjkim 2520193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2521193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2522193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2523193267Sjkima much larger code and data size. 2524167802Sjkim 2525167802Sjkim Previous Release: 2526167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2527167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2528167802Sjkim Current Release: 2529167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2530167802Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 2531167802Sjkim 2532167802Sjkim---------------------------------------- 2533167802Sjkim26 January 2007. Summary of changes for version 20070126: 2534167802Sjkim 2535167802Sjkim1) ACPI CA Core Subsystem: 2536167802Sjkim 2537193267SjkimAdded the 2007 copyright to all module headers and signons. This affects 2538193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 2539193267Sjkimthe utilities. 2540167802Sjkim 2541193267SjkimImplemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 2542193267Sjkimduring a table load. A bad pointer was passed in the case where the DSDT is 2543193267Sjkimoverridden, causing a fault in this case. 2544167802Sjkim 2545193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2546193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2547193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2548193267Sjkima much larger code and data size. 2549167802Sjkim 2550167802Sjkim Previous Release: 2551167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2552167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2553167802Sjkim Current Release: 2554167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2555167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2556167802Sjkim 2557167802Sjkim---------------------------------------- 2558167802Sjkim15 December 2006. Summary of changes for version 20061215: 2559167802Sjkim 2560167802Sjkim1) ACPI CA Core Subsystem: 2561167802Sjkim 2562193267SjkimSupport for 16-bit ACPICA has been completely removed since it is no longer 2563193267Sjkimnecessary and it clutters the code. All 16-bit macros, types, and 2564193267Sjkimconditional compiles have been removed, cleaning up and simplifying the code 2565193267Sjkimacross the entire subsystem. DOS support is no longer needed since the 2566193267Sjkimbootable Linux firmware kit is now available. 2567167802Sjkim 2568193267SjkimThe handler for the Global Lock is now removed during AcpiTerminate to 2569193267Sjkimenable a clean subsystem restart, via the implementation of the 2570193267SjkimAcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 2571193267SjkimHP) 2572167802Sjkim 2573193267SjkimImplemented enhancements to the multithreading support within the debugger 2574193267Sjkimto enable improved multithreading debugging and evaluation of the subsystem. 2575167802Sjkim(Valery Podrezov) 2576167802Sjkim 2577193267SjkimDebugger: Enhanced the Statistics/Memory command to emit the total (maximum) 2578193267Sjkimmemory used during the execution, as well as the maximum memory consumed by 2579193267Sjkimeach of the various object types. (Valery Podrezov) 2580167802Sjkim 2581193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2582193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2583193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2584193267Sjkima much larger code and data size. 2585193267Sjkim 2586167802Sjkim Previous Release: 2587167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 2588167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 2589167802Sjkim Current Release: 2590167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2591167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2592167802Sjkim 2593167802Sjkim 2594167802Sjkim2) iASL Compiler/Disassembler and Tools: 2595167802Sjkim 2596193267SjkimAcpiExec: Implemented a new option (-m) to display full memory use 2597193267Sjkimstatistics upon subsystem/program termination. (Valery Podrezov) 2598167802Sjkim 2599167802Sjkim---------------------------------------- 2600167802Sjkim09 November 2006. Summary of changes for version 20061109: 2601167802Sjkim 2602167802Sjkim1) ACPI CA Core Subsystem: 2603167802Sjkim 2604193267SjkimOptimized the Load ASL operator in the case where the source operand is an 2605193267Sjkimoperation region. Simply map the operation region memory, instead of 2606193267Sjkimperforming a bytewise read. (Region must be of type SystemMemory, see 2607193267Sjkimbelow.) 2608167802Sjkim 2609193267SjkimFixed the Load ASL operator for the case where the source operand is a 2610193267Sjkimregion field. A buffer object is also allowed as the source operand. BZ 480 2611167802Sjkim 2612193267SjkimFixed a problem where the Load ASL operator allowed the source operand to be 2613193267Sjkiman operation region of any type. It is now restricted to regions of type 2614193267SjkimSystemMemory, as per the ACPI specification. BZ 481 2615167802Sjkim 2616193267SjkimAdditional cleanup and optimizations for the new Table Manager code. 2617167802Sjkim 2618193267SjkimAcpiEnable will now fail if all of the required ACPI tables are not loaded 2619193267Sjkim(FADT, FACS, DSDT). BZ 477 2620167802Sjkim 2621193267SjkimAdded #pragma pack(8/4) to acobject.h to ensure that the structures in this 2622193267Sjkimheader are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 2623193267Sjkimmanually optimized to be aligned and will not work if it is byte-packed. 2624167802Sjkim 2625193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2626193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2627193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2628193267Sjkima much larger code and data size. 2629167802Sjkim 2630167802Sjkim Previous Release: 2631167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 2632167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 2633167802Sjkim Current Release: 2634167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 2635167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 2636167802Sjkim 2637167802Sjkim 2638167802Sjkim2) iASL Compiler/Disassembler and Tools: 2639167802Sjkim 2640193267SjkimFixed a problem where the presence of the _OSI predefined control method 2641193267Sjkimwithin complex expressions could cause an internal compiler error. 2642167802Sjkim 2643193267SjkimAcpiExec: Implemented full region support for multiple address spaces. 2644193267SjkimSpaceId is now part of the REGION object. BZ 429 2645167802Sjkim 2646167802Sjkim---------------------------------------- 2647167802Sjkim11 October 2006. Summary of changes for version 20061011: 2648167802Sjkim 2649167802Sjkim1) ACPI CA Core Subsystem: 2650167802Sjkim 2651193267SjkimCompleted an AML interpreter performance enhancement for control method 2652193267Sjkimexecution. Previously a 2-pass parse/execution, control methods are now 2653193267Sjkimcompletely parsed and executed in a single pass. This improves overall 2654193267Sjkiminterpreter performance by ~25%, reduces code size, and reduces CPU stack 2655193267Sjkimuse. (Valery Podrezov + interpreter changes in version 20051202 that 2656193267Sjkimeliminated namespace loading during the pass one parse.) 2657167802Sjkim 2658193267SjkimImplemented _CID support for PCI Root Bridge detection. If the _HID does not 2659193267Sjkimmatch the predefined PCI Root Bridge IDs, the _CID list (if present) is now 2660193267Sjkimobtained and also checked for an ID match. 2661167802Sjkim 2662193267SjkimImplemented additional support for the PCI _ADR execution: upsearch until a 2663193267Sjkimdevice scope is found before executing _ADR. This allows PCI_Config 2664193267Sjkimoperation regions to be declared locally within control methods underneath 2665193267SjkimPCI device objects. 2666167802Sjkim 2667193267SjkimFixed a problem with a possible race condition between threads executing 2668193267SjkimAcpiWalkNamespace and the AML interpreter. This condition was removed by 2669193267Sjkimmodifying AcpiWalkNamespace to (by default) ignore all temporary namespace 2670193267Sjkimentries created during any concurrent control method execution. An 2671193267Sjkimadditional namespace race condition is known to exist between 2672193267SjkimAcpiWalkNamespace and the Load/Unload ASL operators and is still under 2673193267Sjkiminvestigation. 2674167802Sjkim 2675193267SjkimRestructured the AML ParseLoop function, breaking it into several 2676193267Sjkimsubfunctions in order to reduce CPU stack use and improve maintainability. 2677193267Sjkim(Mikhail Kouzmich) 2678167802Sjkim 2679193267SjkimAcpiGetHandle: Fix for parameter validation to detect invalid combinations 2680193267Sjkimof prefix handle and pathname. BZ 478 2681167802Sjkim 2682193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2683193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2684193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2685193267Sjkima much larger code and data size. 2686167802Sjkim 2687167802Sjkim Previous Release: 2688167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2689167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 2690167802Sjkim Current Release: 2691167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 2692167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 2693167802Sjkim 2694167802Sjkim2) iASL Compiler/Disassembler and Tools: 2695167802Sjkim 2696193267SjkimPorted the -g option (get local ACPI tables) to the new ACPICA Table Manager 2697193267Sjkimto restore original behavior. 2698167802Sjkim 2699167802Sjkim---------------------------------------- 2700167802Sjkim27 September 2006. Summary of changes for version 20060927: 2701167802Sjkim 2702167802Sjkim1) ACPI CA Core Subsystem: 2703167802Sjkim 2704193267SjkimRemoved the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 2705193267SjkimThese functions now use a spinlock for mutual exclusion and the interrupt 2706193267Sjkimlevel indication flag is not needed. 2707167802Sjkim 2708193267SjkimFixed a problem with the Global Lock where the lock could appear to be 2709193267Sjkimobtained before it is actually obtained. The global lock semaphore was 2710193267Sjkiminadvertently created with one unit instead of zero units. (BZ 464) Fiodor 2711193267SjkimSuietov. 2712167802Sjkim 2713193267SjkimFixed a possible memory leak and fault in AcpiExResolveObjectToValue during 2714193267Sjkima read from a buffer or region field. (BZ 458) Fiodor Suietov. 2715167802Sjkim 2716193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2717193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2718193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2719193267Sjkima much larger code and data size. 2720167802Sjkim 2721167802Sjkim Previous Release: 2722167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2723167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2724167802Sjkim Current Release: 2725167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2726167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 2727167802Sjkim 2728167802Sjkim 2729167802Sjkim2) iASL Compiler/Disassembler and Tools: 2730167802Sjkim 2731193267SjkimFixed a compilation problem with the pre-defined Resource Descriptor field 2732193267Sjkimnames where an "object does not exist" error could be incorrectly generated 2733193267Sjkimif the parent ResourceTemplate pathname places the template within a 2734193267Sjkimdifferent namespace scope than the current scope. (BZ 7212) 2735167802Sjkim 2736193267SjkimFixed a problem where the compiler could hang after syntax errors detected 2737193267Sjkimin an ElseIf construct. (BZ 453) 2738167802Sjkim 2739193267SjkimFixed a problem with the AmlFilename parameter to the DefinitionBlock() 2740193267Sjkimoperator. An incorrect output filename was produced when this parameter was 2741193267Sjkima null string (""). Now, the original input filename is used as the AML 2742193267Sjkimoutput filename, with an ".aml" extension. 2743167802Sjkim 2744193267SjkimImplemented a generic batch command mode for the AcpiExec utility (execute 2745193267Sjkimany AML debugger command) (Valery Podrezov). 2746167802Sjkim 2747167802Sjkim---------------------------------------- 2748167802Sjkim12 September 2006. Summary of changes for version 20060912: 2749167802Sjkim 2750167802Sjkim1) ACPI CA Core Subsystem: 2751167802Sjkim 2752193267SjkimEnhanced the implementation of the "serialized mode" of the interpreter 2753193267Sjkim(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 2754193267Sjkimspecified, instead of creating a serialization semaphore per control method, 2755193267Sjkimthe interpreter lock is simply no longer released before a blocking 2756193267Sjkimoperation during control method execution. This effectively makes the AML 2757193267SjkimInterpreter single-threaded. The overhead of a semaphore per-method is 2758193267Sjkimeliminated. 2759167802Sjkim 2760193267SjkimFixed a regression where an error was no longer emitted if a control method 2761193267Sjkimattempts to create 2 objects of the same name. This once again returns 2762193267SjkimAE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 2763193267Sjkimwill dynamically serialize the control method to possible prevent future 2764193267Sjkimerrors. (BZ 440) 2765167802Sjkim 2766193267SjkimIntegrated a fix for a problem with PCI Express HID detection in the PCI 2767193267SjkimConfig Space setup procedure. (BZ 7145) 2768167802Sjkim 2769193267SjkimMoved all FADT-related functions to a new file, tbfadt.c. Eliminated the 2770193267SjkimAcpiHwInitialize function - the FADT registers are now validated when the 2771193267Sjkimtable is loaded. 2772167802Sjkim 2773193267SjkimAdded two new warnings during FADT verification - 1) if the FADT is larger 2774193267Sjkimthan the largest known FADT version, and 2) if there is a mismatch between a 2775193267Sjkim32-bit block address and the 64-bit X counterpart (when both are non-zero.) 2776167802Sjkim 2777193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2778193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2779193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2780193267Sjkima much larger code and data size. 2781167802Sjkim 2782167802Sjkim Previous Release: 2783167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2784167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2785167802Sjkim Current Release: 2786167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2787167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2788167802Sjkim 2789167802Sjkim 2790167802Sjkim2) iASL Compiler/Disassembler and Tools: 2791167802Sjkim 2792193267SjkimFixed a problem with the implementation of the Switch() operator where the 2793193267Sjkimtemporary variable was declared too close to the actual Switch, instead of 2794193267Sjkimat method level. This could cause a problem if the Switch() operator is 2795193267Sjkimwithin a while loop, causing an error on the second iteration. (BZ 460) 2796167802Sjkim 2797193267SjkimDisassembler - fix for error emitted for unknown type for target of scope 2798193267Sjkimoperator. Now, ignore it and continue. 2799167802Sjkim 2800193267SjkimDisassembly of an FADT now verifies the input FADT and reports any errors 2801193267Sjkimfound. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 2802167802Sjkim 2803193267SjkimDisassembly of raw data buffers with byte initialization data now prefixes 2804193267Sjkimeach output line with the current buffer offset. 2805167802Sjkim 2806193267SjkimDisassembly of ASF! table now includes all variable-length data fields at 2807193267Sjkimthe end of some of the subtables. 2808167802Sjkim 2809193267SjkimThe disassembler now emits a comment if a buffer appears to be a 2810193267SjkimResourceTemplate, but cannot be disassembled as such because the EndTag does 2811193267Sjkimnot appear at the very end of the buffer. 2812167802Sjkim 2813193267SjkimAcpiExec - Added the "-t" command line option to enable the serialized mode 2814193267Sjkimof the AML interpreter. 2815167802Sjkim 2816167802Sjkim---------------------------------------- 2817167802Sjkim31 August 2006. Summary of changes for version 20060831: 2818167802Sjkim 2819167802Sjkim1) ACPI CA Core Subsystem: 2820167802Sjkim 2821167802SjkimMiscellaneous fixes for the Table Manager: 2822193267Sjkim- Correctly initialize internal common FADT for all 64-bit "X" fields 2823167802Sjkim- Fixed a couple table mapping issues during table load 2824167802Sjkim- Fixed a couple alignment issues for IA64 2825167802Sjkim- Initialize input array to zero in AcpiInitializeTables 2826193267Sjkim- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 2827193267SjkimAcpiGetTableByIndex 2828167802Sjkim 2829193267SjkimChange for GPE support: when a "wake" GPE is received, all wake GPEs are now 2830193267Sjkimimmediately disabled to prevent the waking GPE from firing again and to 2831193267Sjkimprevent other wake GPEs from interrupting the wake process. 2832167802Sjkim 2833193267SjkimAdded the AcpiGpeCount global that tracks the number of processed GPEs, to 2834193267Sjkimbe used for debugging systems with a large number of ACPI interrupts. 2835167802Sjkim 2836193267SjkimImplemented support for the "DMAR" ACPI table (DMA Redirection Table) in 2837193267Sjkimboth the ACPICA headers and the disassembler. 2838167802Sjkim 2839193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2840193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2841193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2842193267Sjkima much larger code and data size. 2843167802Sjkim 2844167802Sjkim Previous Release: 2845167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2846167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2847167802Sjkim Current Release: 2848167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2849167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2850167802Sjkim 2851167802Sjkim 2852167802Sjkim2) iASL Compiler/Disassembler and Tools: 2853167802Sjkim 2854167802SjkimDisassembler support for the DMAR ACPI table. 2855167802Sjkim 2856167802Sjkim---------------------------------------- 2857167802Sjkim23 August 2006. Summary of changes for version 20060823: 2858167802Sjkim 2859167802Sjkim1) ACPI CA Core Subsystem: 2860167802Sjkim 2861193267SjkimThe Table Manager component has been completely redesigned and 2862193267Sjkimreimplemented. The new design is much simpler, and reduces the overall code 2863193267Sjkimand data size of the kernel-resident ACPICA by approximately 5%. Also, it is 2864193267Sjkimnow possible to obtain the ACPI tables very early during kernel 2865193267Sjkiminitialization, even before dynamic memory management is initialized. 2866193267Sjkim(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 2867167802Sjkim 2868167802SjkimObsolete ACPICA interfaces: 2869167802Sjkim 2870193267Sjkim- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 2871193267Sjkimtime). 2872167802Sjkim- AcpiLoadTable: Not needed. 2873167802Sjkim- AcpiUnloadTable: Not needed. 2874167802Sjkim 2875167802SjkimNew ACPICA interfaces: 2876167802Sjkim 2877193267Sjkim- AcpiInitializeTables: Must be called before the table manager can be used. 2878193267Sjkim- AcpiReallocateRootTable: Used to transfer the root table to dynamically 2879193267Sjkimallocated memory after it becomes available. 2880193267Sjkim- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 2881193267Sjkimin the RSDT/XSDT. 2882167802Sjkim 2883167802SjkimOther ACPICA changes: 2884167802Sjkim 2885193267Sjkim- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 2886193267SjkimAcpiOsUnmapMemory to free this mapping. 2887193267Sjkim- AcpiGetTable returns the actual mapped table. The mapping is managed 2888193267Sjkiminternally and must not be deleted by the caller. Use of this interface 2889193267Sjkimcauses no additional dynamic memory allocation. 2890193267Sjkim- AcpiFindRootPointer: Support for physical addressing has been eliminated, 2891193267Sjkimit appeared to be unused. 2892193267Sjkim- The interface to AcpiOsMapMemory has changed to be consistent with the 2893193267Sjkimother allocation interfaces. 2894193267Sjkim- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 2895193267Sjkimparameters. 2896193267Sjkim- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 2897193267Sjkimbit platforms. Was previously 64 bits on all platforms. 2898193267Sjkim- The interface to the ACPI Global Lock acquire/release macros have changed 2899193267Sjkimslightly since ACPICA no longer keeps a local copy of the FACS with a 2900193267Sjkimconstructed pointer to the actual global lock. 2901167802Sjkim 2902167802SjkimPorting to the new table manager: 2903167802Sjkim 2904193267Sjkim- AcpiInitializeTables: Must be called once, and can be called anytime 2905193267Sjkimduring the OS initialization process. It allows the host to specify an area 2906193267Sjkimof memory to be used to store the internal version of the RSDT/XSDT (root 2907193267Sjkimtable). This allows the host to access ACPI tables before memory management 2908193267Sjkimis initialized and running. 2909193267Sjkim- AcpiReallocateRootTable: Can be called after memory management is running 2910193267Sjkimto copy the root table to a dynamically allocated array, freeing up the 2911193267Sjkimscratch memory specified in the call to AcpiInitializeTables. 2912193267Sjkim- AcpiSubsystemInitialize: This existing interface is independent of the 2913193267SjkimTable Manager, and does not have to be called before the Table Manager can 2914193267Sjkimbe used, it only must be called before the rest of ACPICA can be used. 2915193267Sjkim- ACPI Tables: Some changes have been made to the names and structure of the 2916193267Sjkimactbl.h and actbl1.h header files and may require changes to existing code. 2917193267SjkimFor example, bitfields have been completely removed because of their lack of 2918193267Sjkimportability across C compilers. 2919193267Sjkim- Update interfaces to the Global Lock acquire/release macros if local 2920193267Sjkimversions are used. (see acwin.h) 2921167802Sjkim 2922167802SjkimObsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 2923167802Sjkim 2924167802SjkimNew files: tbfind.c 2925167802Sjkim 2926193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2927193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2928193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2929193267Sjkima much larger code and data size. 2930167802Sjkim 2931167802Sjkim Previous Release: 2932167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2933167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2934167802Sjkim Current Release: 2935167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2936167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2937167802Sjkim 2938167802Sjkim 2939167802Sjkim2) iASL Compiler/Disassembler and Tools: 2940167802Sjkim 2941167802SjkimNo changes for this release. 2942167802Sjkim 2943167802Sjkim---------------------------------------- 2944167802Sjkim21 July 2006. Summary of changes for version 20060721: 2945167802Sjkim 2946167802Sjkim1) ACPI CA Core Subsystem: 2947167802Sjkim 2948193267SjkimThe full source code for the ASL test suite used to validate the iASL 2949193267Sjkimcompiler and the ACPICA core subsystem is being released with the ACPICA 2950193267Sjkimsource for the first time. The source is contained in a separate package and 2951193267Sjkimconsists of over 1100 files that exercise all ASL/AML operators. The package 2952193267Sjkimshould appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 2953167802SjkimSuietov) 2954167802Sjkim 2955193267SjkimCompleted a new design and implementation for support of the ACPI Global 2956193267SjkimLock. On the OS side, the global lock is now treated as a standard AML 2957193267Sjkimmutex. Previously, multiple OS threads could "acquire" the global lock 2958193267Sjkimsimultaneously. However, this could cause the BIOS to be starved out of the 2959193267Sjkimlock - especially in cases such as the Embedded Controller driver where 2960193267Sjkimthere is a tight coupling between the OS and the BIOS. 2961167802Sjkim 2962193267SjkimImplemented an optimization for the ACPI Global Lock interrupt mechanism. 2963193267SjkimThe Global Lock interrupt handler no longer queues the execution of a 2964193267Sjkimseparate thread to signal the global lock semaphore. Instead, the semaphore 2965193267Sjkimis signaled directly from the interrupt handler. 2966167802Sjkim 2967193267SjkimImplemented support within the AML interpreter for package objects that 2968193267Sjkimcontain a larger AML length (package list length) than the package element 2969193267Sjkimcount. In this case, the length of the package is truncated to match the 2970193267Sjkimpackage element count. Some BIOS code apparently modifies the package length 2971193267Sjkimon the fly, and this change supports this behavior. Provides compatibility 2972193267Sjkimwith the MS AML interpreter. (With assistance from Fiodor Suietov) 2973167802Sjkim 2974193267SjkimImplemented a temporary fix for the BankValue parameter of a Bank Field to 2975193267Sjkimsupport all constant values, now including the Zero and One opcodes. 2976193267SjkimEvaluation of this parameter must eventually be converted to a full TermArg 2977193267Sjkimevaluation. A not-implemented error is now returned (temporarily) for non- 2978193267Sjkimconstant values for this parameter. 2979167802Sjkim 2980167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2981193267Sjkim- Fix for premature object deletion after CopyObject on Operation Region (BZ 2982193267Sjkim350) 2983167802Sjkim 2984193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2985193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2986193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2987193267Sjkima much larger code and data size. 2988167802Sjkim 2989167802Sjkim Previous Release: 2990167802Sjkim Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 2991167802Sjkim Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 2992167802Sjkim Current Release: 2993167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2994167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2995167802Sjkim 2996167802Sjkim 2997167802Sjkim2) iASL Compiler/Disassembler and Tools: 2998167802Sjkim 2999167802SjkimNo changes for this release. 3000167802Sjkim 3001167802Sjkim---------------------------------------- 3002167802Sjkim07 July 2006. Summary of changes for version 20060707: 3003167802Sjkim 3004167802Sjkim1) ACPI CA Core Subsystem: 3005167802Sjkim 3006193267SjkimAdded the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 3007193267Sjkimthat do not allow the initialization of address pointers within packed 3008193267Sjkimstructures - even though the hardware itself may support misaligned 3009193267Sjkimtransfers. Some of the debug data structures are packed by default to 3010193267Sjkimminimize size. 3011167802Sjkim 3012193267SjkimAdded an error message for the case where AcpiOsGetThreadId() returns zero. 3013193267SjkimA non-zero value is required by the core ACPICA code to ensure the proper 3014193267Sjkimoperation of AML mutexes and recursive control methods. 3015167802Sjkim 3016193267SjkimThe DSDT is now the only ACPI table that determines whether the AML 3017193267Sjkiminterpreter is in 32-bit or 64-bit mode. Not really a functional change, but 3018193267Sjkimthe hooks for per-table 32/64 switching have been removed from the code. A 3019193267Sjkimclarification to the ACPI specification is forthcoming in ACPI 3.0B. 3020167802Sjkim 3021193267SjkimFixed a possible leak of an OwnerID in the error path of 3022193267SjkimAcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 3023193267Sjkimdeletion to a single place in AcpiTbUninstallTable to correct possible leaks 3024193267Sjkimwhen using the AcpiTbDeleteTablesByType interface (with assistance from 3025193267SjkimLance Ortiz.) 3026167802Sjkim 3027193267SjkimFixed a problem with Serialized control methods where the semaphore 3028193267Sjkimassociated with the method could be over-signaled after multiple method 3029193267Sjkiminvocations. 3030167802Sjkim 3031193267SjkimFixed two issues with the locking of the internal namespace data structure. 3032193267SjkimBoth the Unload() operator and AcpiUnloadTable interface now lock the 3033193267Sjkimnamespace during the namespace deletion associated with the table unload 3034193267Sjkim(with assistance from Linn Crosetto.) 3035167802Sjkim 3036167802SjkimFixed problem reports (Valery Podrezov) integrated: 3037193267Sjkim- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 3038167802Sjkim 3039167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3040167802Sjkim- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 3041193267Sjkim- On Address Space handler deletion, needless deactivation call (BZ 374) 3042193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 3043193267Sjkim- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 3044193267Sjkim(BZ 376) 3045193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 3046167802Sjkim- Minimum Length of RSDT should be validated (BZ 379) 3047193267Sjkim- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 3048193267SjkimHandler (BZ (380) 3049193267Sjkim- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 3050193267Sjkim(BZ 381) 3051167802Sjkim 3052193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3053193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3054193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3055193267Sjkima much larger code and data size. 3056167802Sjkim 3057167802Sjkim Previous Release: 3058167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 3059167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 3060167802Sjkim Current Release: 3061167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3062167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3063167802Sjkim 3064167802Sjkim 3065167802Sjkim2) iASL Compiler/Disassembler and Tools: 3066167802Sjkim 3067167802SjkimFixed problem reports: 3068193267SjkimCompiler segfault when ASL contains a long (>1024) String declaration (BZ 3069193267Sjkim436) 3070167802Sjkim 3071167802Sjkim---------------------------------------- 3072167802Sjkim23 June 2006. Summary of changes for version 20060623: 3073167802Sjkim 3074167802Sjkim1) ACPI CA Core Subsystem: 3075167802Sjkim 3076193267SjkimImplemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 3077193267Sjkimallows the type to be customized to the host OS for improved efficiency 3078193267Sjkim(since a spinlock is usually a very small object.) 3079167802Sjkim 3080193267SjkimImplemented support for "ignored" bits in the ACPI registers. According to 3081193267Sjkimthe ACPI specification, these bits should be preserved when writing the 3082193267Sjkimregisters via a read/modify/write cycle. There are 3 bits preserved in this 3083193267Sjkimmanner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 3084167802Sjkim 3085193267SjkimImplemented the initial deployment of new OSL mutex interfaces. Since some 3086193267Sjkimhost operating systems have separate mutex and semaphore objects, this 3087193267Sjkimfeature was requested. The base code now uses mutexes (and the new mutex 3088193267Sjkiminterfaces) wherever a binary semaphore was used previously. However, for 3089193267Sjkimthe current release, the mutex interfaces are defined as macros to map them 3090193267Sjkimto the existing semaphore interfaces. Therefore, no OSL changes are required 3091193267Sjkimat this time. (See acpiosxf.h) 3092167802Sjkim 3093193267SjkimFixed several problems with the support for the control method SyncLevel 3094193267Sjkimparameter. The SyncLevel now works according to the ACPI specification and 3095193267Sjkimin concert with the Mutex SyncLevel parameter, since the current SyncLevel 3096193267Sjkimis a property of the executing thread. Mutual exclusion for control methods 3097193267Sjkimis now implemented with a mutex instead of a semaphore. 3098167802Sjkim 3099193267SjkimFixed three instances of the use of the C shift operator in the bitfield 3100193267Sjkimsupport code (exfldio.c) to avoid the use of a shift value larger than the 3101193267Sjkimtarget data width. The behavior of C compilers is undefined in this case and 3102193267Sjkimcan cause unpredictable results, and therefore the case must be detected and 3103193267Sjkimavoided. (Fiodor Suietov) 3104167802Sjkim 3105193267SjkimAdded an info message whenever an SSDT or OEM table is loaded dynamically 3106193267Sjkimvia the Load() or LoadTable() ASL operators. This should improve debugging 3107193267Sjkimcapability since it will show exactly what tables have been loaded (beyond 3108193267Sjkimthe tables present in the RSDT/XSDT.) 3109167802Sjkim 3110193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3111193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3112193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3113193267Sjkima much larger code and data size. 3114167802Sjkim 3115167802Sjkim Previous Release: 3116167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 3117167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 3118167802Sjkim Current Release: 3119167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 3120167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 3121167802Sjkim 3122167802Sjkim 3123167802Sjkim2) iASL Compiler/Disassembler and Tools: 3124167802Sjkim 3125167802SjkimNo changes for this release. 3126167802Sjkim 3127167802Sjkim---------------------------------------- 3128167802Sjkim08 June 2006. Summary of changes for version 20060608: 3129167802Sjkim 3130167802Sjkim1) ACPI CA Core Subsystem: 3131167802Sjkim 3132193267SjkimConverted the locking mutex used for the ACPI hardware to a spinlock. This 3133193267Sjkimchange should eliminate all problems caused by attempting to acquire a 3134193267Sjkimsemaphore at interrupt level, and it means that all ACPICA external 3135193267Sjkiminterfaces that directly access the ACPI hardware can be safely called from 3136193267Sjkiminterrupt level. OSL code that implements the semaphore interfaces should be 3137193267Sjkimable to eliminate any workarounds for being called at interrupt level. 3138167802Sjkim 3139193267SjkimFixed a regression introduced in 20060526 where the ACPI device 3140193267Sjkiminitialization could be prematurely aborted with an AE_NOT_FOUND if a device 3141193267Sjkimdid not have an optional _INI method. 3142167802Sjkim 3143193267SjkimFixed an IndexField issue where a write to the Data Register should be 3144193267Sjkimlimited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 3145193267SjkimFiodor Suietov) 3146167802Sjkim 3147167802SjkimFixed problem reports (Valery Podrezov) integrated: 3148193267Sjkim- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 3149167802Sjkim 3150167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3151193267Sjkim- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 3152167802Sjkim 3153193267SjkimRemoved four global mutexes that were obsolete and were no longer being 3154193267Sjkimused. 3155167802Sjkim 3156193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3157193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3158193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3159193267Sjkima much larger code and data size. 3160167802Sjkim 3161167802Sjkim Previous Release: 3162167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 3163167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 3164167802Sjkim Current Release: 3165167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 3166167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 3167167802Sjkim 3168167802Sjkim 3169167802Sjkim2) iASL Compiler/Disassembler and Tools: 3170167802Sjkim 3171193267SjkimFixed a fault when using -g option (get tables from registry) on Windows 3172193267Sjkimmachines. 3173167802Sjkim 3174167802SjkimFixed problem reports integrated: 3175193267Sjkim- Generate error if CreateField NumBits parameter is zero. (BZ 405) 3176193267Sjkim- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 3177193267SjkimSuietov) 3178167802Sjkim- Global table revision override (-r) is ignored (BZ 413) 3179167802Sjkim 3180167802Sjkim---------------------------------------- 3181167802Sjkim26 May 2006. Summary of changes for version 20060526: 3182167802Sjkim 3183167802Sjkim1) ACPI CA Core Subsystem: 3184167802Sjkim 3185193267SjkimRestructured, flattened, and simplified the internal interfaces for 3186193267Sjkimnamespace object evaluation - resulting in smaller code, less CPU stack use, 3187193267Sjkimand fewer interfaces. (With assistance from Mikhail Kouzmich) 3188167802Sjkim 3189193267SjkimFixed a problem with the CopyObject operator where the first parameter was 3190193267Sjkimnot typed correctly for the parser, interpreter, compiler, and disassembler. 3191193267SjkimCaused various errors and unexpected behavior. 3192167802Sjkim 3193193267SjkimFixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 3194193267Sjkimproduced incorrect results with some C compilers. Since the behavior of C 3195193267Sjkimcompilers when the shift value is larger than the datatype width is 3196193267Sjkimapparently not well defined, the interpreter now detects this condition and 3197193267Sjkimsimply returns zero as expected in all such cases. (BZ 395) 3198167802Sjkim 3199167802SjkimFixed problem reports (Valery Podrezov) integrated: 3200193267Sjkim- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 3201193267Sjkim- Allow interpreter to handle nested method declarations (BZ 5361) 3202167802Sjkim 3203167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3204193267Sjkim- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 3205193267Sjkim- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 3206193267Sjkim- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 3207193267Sjkim- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 3208167802Sjkim- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 3209193267Sjkim- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 3210167802Sjkim- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 3211167802Sjkim- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 3212193267Sjkim- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 3213193267Sjkim- Status of the Global Initialization Handler call not used (BZ 366) 3214193267Sjkim- Incorrect object parameter to Global Initialization Handler (BZ 367) 3215167802Sjkim 3216193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3217193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3218193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3219193267Sjkima much larger code and data size. 3220167802Sjkim 3221167802Sjkim Previous Release: 3222167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 3223167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 3224167802Sjkim Current Release: 3225167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 3226167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 3227167802Sjkim 3228167802Sjkim 3229167802Sjkim2) iASL Compiler/Disassembler and Tools: 3230167802Sjkim 3231193267SjkimModified the parser to allow the names IO, DMA, and IRQ to be used as 3232193267Sjkimnamespace identifiers with no collision with existing resource descriptor 3233193267Sjkimmacro names. This provides compatibility with other ASL compilers and is 3234193267Sjkimmost useful for disassembly/recompilation of existing tables without parse 3235167802Sjkimerrors. (With assistance from Thomas Renninger) 3236167802Sjkim 3237193267SjkimDisassembler: fixed an incorrect disassembly problem with the 3238193267SjkimDataTableRegion and CopyObject operators. Fixed a possible fault during 3239193267Sjkimdisassembly of some Alias operators. 3240167802Sjkim 3241167802Sjkim---------------------------------------- 3242167802Sjkim12 May 2006. Summary of changes for version 20060512: 3243167802Sjkim 3244167802Sjkim1) ACPI CA Core Subsystem: 3245167802Sjkim 3246193267SjkimReplaced the AcpiOsQueueForExecution interface with a new interface named 3247193267SjkimAcpiOsExecute. The major difference is that the new interface does not have 3248193267Sjkima Priority parameter, this appeared to be useless and has been replaced by a 3249193267SjkimType parameter. The Type tells the host what type of execution is being 3250193267Sjkimrequested, such as global lock handler, notify handler, GPE handler, etc. 3251193267SjkimThis allows the host to queue and execute the request as appropriate for the 3252193267Sjkimrequest type, possibly using different work queues and different priorities 3253193267Sjkimfor the various request types. This enables fixes for multithreading 3254193267Sjkimdeadlock problems such as BZ #5534, and will require changes to all existing 3255193267SjkimOS interface layers. (Alexey Starikovskiy and Bob Moore) 3256167802Sjkim 3257193267SjkimFixed a possible memory leak associated with the support for the so-called 3258193267Sjkim"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 3259193267SjkimSuietov) 3260167802Sjkim 3261193267SjkimFixed a problem with the Load() operator where a table load from an 3262193267Sjkimoperation region could overwrite an internal table buffer by up to 7 bytes 3263193267Sjkimand cause alignment faults on IPF systems. (With assistance from Luming Yu) 3264167802Sjkim 3265193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3266193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3267193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3268193267Sjkima much larger code and data size. 3269167802Sjkim 3270167802Sjkim Previous Release: 3271167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 3272167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 3273167802Sjkim Current Release: 3274167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 3275167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 3276167802Sjkim 3277167802Sjkim 3278167802Sjkim 3279167802Sjkim2) iASL Compiler/Disassembler and Tools: 3280167802Sjkim 3281193267SjkimDisassembler: Implemented support to cross reference the internal namespace 3282193267Sjkimand automatically generate ASL External() statements for symbols not defined 3283193267Sjkimwithin the current table being disassembled. This will simplify the 3284193267Sjkimdisassembly and recompilation of interdependent tables such as SSDTs since 3285193267Sjkimthese statements will no longer have to be added manually. 3286167802Sjkim 3287193267SjkimDisassembler: Implemented experimental support to automatically detect 3288193267Sjkiminvocations of external control methods and generate appropriate External() 3289193267Sjkimstatements. This is problematic because the AML cannot be correctly parsed 3290193267Sjkimuntil the number of arguments for each control method is known. Currently, 3291193267Sjkimstandalone method invocations and invocations as the source operand of a 3292193267SjkimStore() statement are supported. 3293167802Sjkim 3294193267SjkimDisassembler: Implemented support for the ASL pseudo-operators LNotEqual, 3295193267SjkimLLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 3296193267SjkimLNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 3297193267Sjkimmore readable and likely closer to the original ASL source. 3298167802Sjkim 3299167802Sjkim---------------------------------------- 3300167802Sjkim21 April 2006. Summary of changes for version 20060421: 3301167802Sjkim 3302167802Sjkim1) ACPI CA Core Subsystem: 3303167802Sjkim 3304193267SjkimRemoved a device initialization optimization introduced in 20051216 where 3305193267Sjkimthe _STA method was not run unless an _INI was also present for the same 3306193267Sjkimdevice. This optimization could cause problems because it could allow _INI 3307193267Sjkimmethods to be run within a not-present device subtree. (If a not-present 3308193267Sjkimdevice had no _INI, _STA would not be run, the not-present status would not 3309193267Sjkimbe discovered, and the children of the device would be incorrectly 3310167802Sjkimtraversed.) 3311167802Sjkim 3312193267SjkimImplemented a new _STA optimization where namespace subtrees that do not 3313193267Sjkimcontain _INI are identified and ignored during device initialization. 3314193267SjkimSelectively running _STA can significantly improve boot time on large 3315193267Sjkimmachines (with assistance from Len Brown.) 3316167802Sjkim 3317193267SjkimImplemented support for the device initialization case where the returned 3318193267Sjkim_STA flags indicate a device not-present but functioning. In this case, _INI 3319193267Sjkimis not run, but the device children are examined for presence, as per the 3320193267SjkimACPI specification. 3321167802Sjkim 3322193267SjkimImplemented an additional change to the IndexField support in order to 3323193267Sjkimconform to MS behavior. The value written to the Index Register is not 3324193267Sjkimsimply a byte offset, it is a byte offset in units of the access width of 3325193267Sjkimthe parent Index Field. (Fiodor Suietov) 3326167802Sjkim 3327193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateAddress. This 3328193267Sjkiminterface is called during the creation of all AML operation regions, and 3329193267Sjkimallows the host OS to exert control over what addresses it will allow the 3330193267SjkimAML code to access. Operation Regions whose addresses are disallowed will 3331193267Sjkimcause a runtime exception when they are actually accessed (will not affect 3332193267Sjkimor abort table loading.) See oswinxf or osunixxf for an example 3333167802Sjkimimplementation. 3334167802Sjkim 3335193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateInterface. This 3336193267Sjkiminterface allows the host OS to match the various "optional" 3337193267Sjkiminterface/behavior strings for the _OSI predefined control method as 3338193267Sjkimappropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 3339193267Sjkimfor an example implementation. 3340167802Sjkim 3341193267SjkimRestructured and corrected various problems in the exception handling code 3342193267Sjkimpaths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 3343193267Sjkim(with assistance from Takayoshi Kochi.) 3344167802Sjkim 3345193267SjkimModified the Linux source converter to ignore quoted string literals while 3346193267Sjkimconverting identifiers from mixed to lower case. This will correct problems 3347193267Sjkimwith the disassembler and other areas where such strings must not be 3348193267Sjkimmodified. 3349167802Sjkim 3350193267SjkimThe ACPI_FUNCTION_* macros no longer require quotes around the function 3351193267Sjkimname. This allows the Linux source converter to convert the names, now that 3352193267Sjkimthe converter ignores quoted strings. 3353167802Sjkim 3354193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3355193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3356193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3357193267Sjkima much larger code and data size. 3358193267Sjkim 3359167802Sjkim Previous Release: 3360167802Sjkim 3361167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 3362167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 3363167802Sjkim Current Release: 3364167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 3365167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 3366167802Sjkim 3367167802Sjkim 3368167802Sjkim2) iASL Compiler/Disassembler and Tools: 3369167802Sjkim 3370193267SjkimImplemented 3 new warnings for iASL, and implemented multiple warning levels 3371193267Sjkim(w2 flag). 3372167802Sjkim 3373193267Sjkim1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 3374193267SjkimWAIT_FOREVER (0xFFFF) and the code does not examine the return value to 3375193267Sjkimcheck for the possible timeout, a warning is issued. 3376167802Sjkim 3377193267Sjkim2) Useless operators: If an ASL operator does not specify an optional target 3378193267Sjkimoperand and it also does not use the function return value from the 3379193267Sjkimoperator, a warning is issued since the operator effectively does nothing. 3380167802Sjkim 3381193267Sjkim3) Unreferenced objects: If a namespace object is created, but never 3382193267Sjkimreferenced, a warning is issued. This is a warning level 2 since there are 3383193267Sjkimcases where this is ok, such as when a secondary table is loaded that uses 3384193267Sjkimthe unreferenced objects. Even so, care is taken to only flag objects that 3385193267Sjkimdon't look like they will ever be used. For example, the reserved methods 3386193267Sjkim(starting with an underscore) are usually not referenced because it is 3387193267Sjkimexpected that the OS will invoke them. 3388167802Sjkim 3389167802Sjkim---------------------------------------- 3390167802Sjkim31 March 2006. Summary of changes for version 20060331: 3391167802Sjkim 3392167802Sjkim1) ACPI CA Core Subsystem: 3393167802Sjkim 3394193267SjkimImplemented header file support for the following additional ACPI tables: 3395193267SjkimASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 3396193267Sjkimall current and known ACPI tables are now defined in the ACPICA headers and 3397193267Sjkimare available for use by device drivers and other software. 3398167802Sjkim 3399193267SjkimImplemented support to allow tables that contain ACPI names with invalid 3400193267Sjkimcharacters to be loaded. Previously, this would cause the table load to 3401193267Sjkimfail, but since there are several known cases of such tables on existing 3402193267Sjkimmachines, this change was made to enable ACPI support for them. Also, this 3403193267Sjkimmatches the behavior of the Microsoft ACPI implementation. 3404167802Sjkim 3405193267SjkimFixed a couple regressions introduced during the memory optimization in the 3406193267Sjkim20060317 release. The namespace node definition required additional 3407193267Sjkimreorganization and an internal datatype that had been changed to 8-bit was 3408193267Sjkimrestored to 32-bit. (Valery Podrezov) 3409167802Sjkim 3410193267SjkimFixed a problem where a null pointer passed to AcpiUtDeleteGenericState 3411193267Sjkimcould be passed through to AcpiOsReleaseObject which is unexpected. Such 3412193267Sjkimnull pointers are now trapped and ignored, matching the behavior of the 3413193267Sjkimprevious implementation before the deployment of AcpiOsReleaseObject. 3414167802Sjkim(Valery Podrezov, Fiodor Suietov) 3415167802Sjkim 3416193267SjkimFixed a memory mapping leak during the deletion of a SystemMemory operation 3417193267Sjkimregion where a cached memory mapping was not deleted. This became a 3418193267Sjkimnoticeable problem for operation regions that are defined within frequently 3419193267Sjkimused control methods. (Dana Meyers) 3420167802Sjkim 3421193267SjkimReorganized the ACPI table header files into two main files: one for the 3422193267SjkimACPI tables consumed by the ACPICA core, and another for the miscellaneous 3423193267SjkimACPI tables that are consumed by the drivers and other software. The various 3424193267SjkimFADT definitions were merged into one common section and three different 3425193267Sjkimtables (ACPI 1.0, 1.0+, and 2.0) 3426167802Sjkim 3427193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3428193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3429193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3430193267Sjkima much larger code and data size. 3431167802Sjkim 3432167802Sjkim Previous Release: 3433167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 3434167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 3435167802Sjkim Current Release: 3436167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 3437167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 3438167802Sjkim 3439167802Sjkim 3440167802Sjkim2) iASL Compiler/Disassembler and Tools: 3441167802Sjkim 3442193267SjkimDisassembler: Implemented support to decode and format all non-AML ACPI 3443193267Sjkimtables (tables other than DSDTs and SSDTs.) This includes the new tables 3444193267Sjkimadded to the ACPICA headers, therefore all current and known ACPI tables are 3445193267Sjkimsupported. 3446167802Sjkim 3447193267SjkimDisassembler: The change to allow ACPI names with invalid characters also 3448193267Sjkimenables the disassembly of such tables. Invalid characters within names are 3449193267Sjkimchanged to '*' to make the name printable; the iASL compiler will still 3450193267Sjkimgenerate an error for such names, however, since this is an invalid ACPI 3451193267Sjkimcharacter. 3452167802Sjkim 3453193267SjkimImplemented an option for AcpiXtract (-a) to extract all tables found in the 3454193267Sjkiminput file. The default invocation extracts only the DSDTs and SSDTs. 3455167802Sjkim 3456193267SjkimFixed a couple of gcc generation issues for iASL and AcpiExec and added a 3457193267Sjkimmakefile for the AcpiXtract utility. 3458167802Sjkim 3459167802Sjkim---------------------------------------- 3460167802Sjkim17 March 2006. Summary of changes for version 20060317: 3461167802Sjkim 3462167802Sjkim1) ACPI CA Core Subsystem: 3463167802Sjkim 3464193267SjkimImplemented the use of a cache object for all internal namespace nodes. 3465193267SjkimSince there are about 1000 static nodes in a typical system, this will 3466193267Sjkimdecrease memory use for cache implementations that minimize per-allocation 3467193267Sjkimoverhead (such as a slab allocator.) 3468167802Sjkim 3469193267SjkimRemoved the reference count mechanism for internal namespace nodes, since it 3470193267Sjkimwas deemed unnecessary. This reduces the size of each namespace node by 3471193267Sjkimabout 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 3472193267Sjkimand 32 bytes for the 64-bit case. 3473167802Sjkim 3474193267SjkimOptimized several internal data structures to reduce object size on 64-bit 3475193267Sjkimplatforms by packing data within the 64-bit alignment. This includes the 3476193267Sjkimfrequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 3477193267Sjkiminstances corresponding to the namespace objects. 3478167802Sjkim 3479193267SjkimAdded two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 3480193267Sjkimand "Windows 2006". 3481167802Sjkim 3482193267SjkimSplit the allocation tracking mechanism out to a separate file, from 3483193267Sjkimutalloc.c to uttrack.c. This mechanism appears to be only useful for 3484193267Sjkimapplication-level code. Kernels may wish to not include uttrack.c in 3485193267Sjkimdistributions. 3486167802Sjkim 3487193267SjkimRemoved all remnants of the obsolete ACPI_REPORT_* macros and the associated 3488193267Sjkimcode. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 3489193267Sjkimmacros.) 3490167802Sjkim 3491193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 3492193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 3493193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 3494193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 3495193267Sjkimvalues will vary depending on the efficiency of the compiler and the 3496193267Sjkimcompiler options used during generation. 3497167802Sjkim 3498167802Sjkim Previous Release: 3499167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3500167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 3501167802Sjkim Current Release: 3502167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 3503167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 3504167802Sjkim 3505167802Sjkim 3506167802Sjkim2) iASL Compiler/Disassembler and Tools: 3507167802Sjkim 3508193267SjkimImplemented an ANSI C version of the acpixtract utility. This version will 3509193267Sjkimautomatically extract the DSDT and all SSDTs from the input acpidump text 3510193267Sjkimfile and dump the binary output to separate files. It can also display a 3511193267Sjkimsummary of the input file including the headers for each table found and 3512193267Sjkimwill extract any single ACPI table, with any signature. (See 3513167802Sjkimsource/tools/acpixtract) 3514167802Sjkim 3515167802Sjkim---------------------------------------- 3516167802Sjkim10 March 2006. Summary of changes for version 20060310: 3517167802Sjkim 3518167802Sjkim1) ACPI CA Core Subsystem: 3519167802Sjkim 3520193267SjkimTagged all external interfaces to the subsystem with the new 3521193267SjkimACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 3522193267Sjkimkernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 3523193267Sjkimmacro. The default definition is NULL. 3524167802Sjkim 3525193267SjkimAdded the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 3526193267SjkimThis allows the host to define this as necessary to simplify kernel 3527193267Sjkimintegration. The default definition is ACPI_NATIVE_UINT. 3528167802Sjkim 3529193267SjkimFixed two interpreter problems related to error processing, the deletion of 3530193267Sjkimobjects, and placing invalid pointers onto the internal operator result 3531193267Sjkimstack. BZ 6028, 6151 (Valery Podrezov) 3532167802Sjkim 3533193267SjkimIncreased the reference count threshold where a warning is emitted for large 3534193267Sjkimreference counts in order to eliminate unnecessary warnings on systems with 3535193267Sjkimlarge namespaces (especially 64-bit.) Increased the value from 0x400 to 3536193267Sjkim0x800. 3537167802Sjkim 3538193267SjkimDue to universal disagreement as to the meaning of the 'c' in the calloc() 3539193267Sjkimfunction, the ACPI_MEM_CALLOCATE macro has been renamed to 3540193267SjkimACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 3541193267SjkimACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 3542193267SjkimACPI_FREE. 3543167802Sjkim 3544193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 3545193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 3546193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 3547193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 3548193267Sjkimvalues will vary depending on the efficiency of the compiler and the 3549193267Sjkimcompiler options used during generation. 3550167802Sjkim 3551167802Sjkim Previous Release: 3552167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 3553167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 3554167802Sjkim Current Release: 3555167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3556167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 3557167802Sjkim 3558167802Sjkim 3559167802Sjkim2) iASL Compiler/Disassembler: 3560167802Sjkim 3561193267SjkimDisassembler: implemented support for symbolic resource descriptor 3562193267Sjkimreferences. If a CreateXxxxField operator references a fixed offset within a 3563193267Sjkimresource descriptor, a name is assigned to the descriptor and the offset is 3564193267Sjkimtranslated to the appropriate resource tag and pathname. The addition of 3565193267Sjkimthis support brings the disassembled code very close to the original ASL 3566193267Sjkimsource code and helps eliminate run-time errors when the disassembled code 3567193267Sjkimis modified (and recompiled) in such a way as to invalidate the original 3568193267Sjkimfixed offsets. 3569167802Sjkim 3570193267SjkimImplemented support for a Descriptor Name as the last parameter to the ASL 3571193267SjkimRegister() macro. This parameter was inadvertently left out of the ACPI 3572193267Sjkimspecification, and will be added for ACPI 3.0b. 3573167802Sjkim 3574193267SjkimFixed a problem where the use of the "_OSI" string (versus the full path 3575193267Sjkim"\_OSI") caused an internal compiler error. ("No back ptr to op") 3576167802Sjkim 3577193267SjkimFixed a problem with the error message that occurs when an invalid string is 3578193267Sjkimused for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 3579193267SjkimThe correct message is now displayed. 3580167802Sjkim 3581167802Sjkim---------------------------------------- 3582167802Sjkim17 February 2006. Summary of changes for version 20060217: 3583167802Sjkim 3584167802Sjkim1) ACPI CA Core Subsystem: 3585167802Sjkim 3586193267SjkimImplemented a change to the IndexField support to match the behavior of the 3587193267SjkimMicrosoft AML interpreter. The value written to the Index register is now a 3588193267Sjkimbyte offset, no longer an index based upon the width of the Data register. 3589193267SjkimThis should fix IndexField problems seen on some machines where the Data 3590193267Sjkimregister is not exactly one byte wide. The ACPI specification will be 3591193267Sjkimclarified on this point. 3592167802Sjkim 3593193267SjkimFixed a problem where several resource descriptor types could overrun the 3594193267Sjkiminternal descriptor buffer due to size miscalculation: VendorShort, 3595193267SjkimVendorLong, and Interrupt. This was noticed on IA64 machines, but could 3596193267Sjkimaffect all platforms. 3597167802Sjkim 3598193267SjkimFixed a problem where individual resource descriptors were misaligned within 3599193267Sjkimthe internal buffer, causing alignment faults on IA64 platforms. 3600167802Sjkim 3601193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 3602193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 3603193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 3604193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 3605193267Sjkimvalues will vary depending on the efficiency of the compiler and the 3606193267Sjkimcompiler options used during generation. 3607167802Sjkim 3608167802Sjkim Previous Release: 3609167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3610167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 3611167802Sjkim Current Release: 3612167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 3613167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 3614167802Sjkim 3615167802Sjkim 3616167802Sjkim2) iASL Compiler/Disassembler: 3617167802Sjkim 3618193267SjkimImplemented support for new reserved names: _WDG and _WED are Microsoft 3619193267Sjkimextensions for Windows Instrumentation Management, _TDL is a new ACPI- 3620193267Sjkimdefined method (Throttling Depth Limit.) 3621167802Sjkim 3622193267SjkimFixed a problem where a zero-length VendorShort or VendorLong resource 3623193267Sjkimdescriptor was incorrectly emitted as a descriptor of length one. 3624167802Sjkim 3625167802Sjkim---------------------------------------- 3626167802Sjkim10 February 2006. Summary of changes for version 20060210: 3627167802Sjkim 3628167802Sjkim1) ACPI CA Core Subsystem: 3629167802Sjkim 3630193267SjkimRemoved a couple of extraneous ACPI_ERROR messages that appeared during 3631193267Sjkimnormal execution. These became apparent after the conversion from 3632193267SjkimACPI_DEBUG_PRINT. 3633167802Sjkim 3634193267SjkimFixed a problem where the CreateField operator could hang if the BitIndex or 3635193267SjkimNumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 3636167802Sjkim 3637193267SjkimFixed a problem where a DeRefOf operation on a buffer object incorrectly 3638193267Sjkimfailed with an exception. This also fixes a couple of related RefOf and 3639193267SjkimDeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 3640167802Sjkim 3641193267SjkimFixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 3642193267SjkimAE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 3643193267Sjkim5480) 3644167802Sjkim 3645193267SjkimImplemented a memory cleanup at the end of the execution of each iteration 3646193267Sjkimof an AML While() loop, preventing the accumulation of outstanding objects. 3647193267Sjkim(Valery Podrezov, BZ 5427) 3648167802Sjkim 3649193267SjkimEliminated a chunk of duplicate code in the object resolution code. (Valery 3650193267SjkimPodrezov, BZ 5336) 3651167802Sjkim 3652167802SjkimFixed several warnings during the 64-bit code generation. 3653167802Sjkim 3654193267SjkimThe AcpiSrc source code conversion tool now inserts one line of whitespace 3655193267Sjkimafter an if() statement that is followed immediately by a comment, improving 3656193267Sjkimreadability of the Linux code. 3657167802Sjkim 3658193267SjkimCode and Data Size: The current and previous library sizes for the core 3659193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3660193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3661193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3662193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3663193267Sjkimand data size. Note that these values will vary depending on the efficiency 3664193267Sjkimof the compiler and the compiler options used during generation. 3665167802Sjkim 3666167802Sjkim Previous Release: 3667167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 3668167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 3669167802Sjkim Current Release: 3670167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3671167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 3672167802Sjkim 3673167802Sjkim 3674167802Sjkim2) iASL Compiler/Disassembler: 3675167802Sjkim 3676193267SjkimFixed a problem with the disassembly of a BankField operator with a complex 3677193267Sjkimexpression for the BankValue parameter. 3678167802Sjkim 3679167802Sjkim---------------------------------------- 3680167802Sjkim27 January 2006. Summary of changes for version 20060127: 3681167802Sjkim 3682167802Sjkim1) ACPI CA Core Subsystem: 3683167802Sjkim 3684193267SjkimImplemented support in the Resource Manager to allow unresolved namestring 3685193267Sjkimreferences within resource package objects for the _PRT method. This support 3686193267Sjkimis in addition to the previously implemented unresolved reference support 3687193267Sjkimwithin the AML parser. If the interpreter slack mode is enabled, these 3688193267Sjkimunresolved references will be passed through to the caller as a NULL package 3689167802Sjkimentry. 3690167802Sjkim 3691193267SjkimImplemented and deployed new macros and functions for error and warning 3692193267Sjkimmessages across the subsystem. These macros are simpler and generate less 3693193267Sjkimcode than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 3694193267SjkimACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 3695193267Sjkimmacros remain defined to allow ACPI drivers time to migrate to the new 3696193267Sjkimmacros. 3697167802Sjkim 3698193267SjkimImplemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 3699193267SjkimAcquire/Release Lock OSL interfaces. 3700167802Sjkim 3701193267SjkimFixed a problem where Alias ASL operators are sometimes not correctly 3702193267Sjkimresolved, in both the interpreter and the iASL compiler. 3703167802Sjkim 3704193267SjkimFixed several problems with the implementation of the ConcatenateResTemplate 3705193267SjkimASL operator. As per the ACPI specification, zero length buffers are now 3706193267Sjkimtreated as a single EndTag. One-length buffers always cause a fatal 3707193267Sjkimexception. Non-zero length buffers that do not end with a full 2-byte EndTag 3708167802Sjkimcause a fatal exception. 3709167802Sjkim 3710193267SjkimFixed a possible structure overwrite in the AcpiGetObjectInfo external 3711193267Sjkiminterface. (With assistance from Thomas Renninger) 3712167802Sjkim 3713193267SjkimCode and Data Size: The current and previous library sizes for the core 3714193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3715193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3716193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3717193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3718193267Sjkimand data size. Note that these values will vary depending on the efficiency 3719193267Sjkimof the compiler and the compiler options used during generation. 3720167802Sjkim 3721167802Sjkim Previous Release: 3722167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 3723167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 3724167802Sjkim Current Release: 3725167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 3726167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 3727167802Sjkim 3728167802Sjkim 3729167802Sjkim2) iASL Compiler/Disassembler: 3730167802Sjkim 3731193267SjkimFixed an internal error that was generated for any forward references to ASL 3732193267SjkimAlias objects. 3733167802Sjkim 3734167802Sjkim---------------------------------------- 3735167802Sjkim13 January 2006. Summary of changes for version 20060113: 3736167802Sjkim 3737167802Sjkim1) ACPI CA Core Subsystem: 3738167802Sjkim 3739193267SjkimAdded 2006 copyright to all module headers and signons. This affects 3740193267Sjkimvirtually every file in the ACPICA core subsystem, iASL compiler, and the 3741193267Sjkimutilities. 3742193267Sjkim 3743193267SjkimEnhanced the ACPICA error reporting in order to simplify user migration to 3744193267Sjkimthe non-debug version of ACPICA. Replaced all instances of the 3745193267SjkimACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 3746193267Sjkimlevels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 3747193267Sjkimrespectively. This preserves all error and warning messages in the non-debug 3748193267Sjkimversion of the ACPICA code (this has been referred to as the "debug lite" 3749193267Sjkimoption.) Over 200 cases were converted to create a total of over 380 3750193267Sjkimerror/warning messages across the ACPICA code. This increases the code and 3751193267Sjkimdata size of the default non-debug version of the code somewhat (about 13K), 3752193267Sjkimbut all error/warning reporting may be disabled if desired (and code 3753193267Sjkimeliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 3754193267Sjkimconfiguration option. The size of the debug version of ACPICA remains about 3755193267Sjkimthe same. 3756167802Sjkim 3757193267SjkimFixed a memory leak within the AML Debugger "Set" command. One object was 3758193267Sjkimnot properly deleted for every successful invocation of the command. 3759167802Sjkim 3760193267SjkimCode and Data Size: The current and previous library sizes for the core 3761193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3762193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3763193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3764193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3765193267Sjkimand data size. Note that these values will vary depending on the efficiency 3766193267Sjkimof the compiler and the compiler options used during generation. 3767167802Sjkim 3768167802Sjkim Previous Release: 3769167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 3770167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 3771167802Sjkim Current Release: 3772167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 3773167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 3774167802Sjkim 3775167802Sjkim 3776167802Sjkim2) iASL Compiler/Disassembler: 3777167802Sjkim 3778193267SjkimThe compiler now officially supports the ACPI 3.0a specification that was 3779193267Sjkimreleased on December 30, 2005. (Specification is available at www.acpi.info) 3780167802Sjkim 3781167802Sjkim---------------------------------------- 3782167802Sjkim16 December 2005. Summary of changes for version 20051216: 3783167802Sjkim 3784167802Sjkim1) ACPI CA Core Subsystem: 3785167802Sjkim 3786193267SjkimImplemented optional support to allow unresolved names within ASL Package 3787193267Sjkimobjects. A null object is inserted in the package when a named reference 3788193267Sjkimcannot be located in the current namespace. Enabled via the interpreter 3789193267Sjkimslack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 3790193267Sjkimthat contain such code. 3791167802Sjkim 3792193267SjkimImplemented an optimization to the initialization sequence that can improve 3793193267Sjkimboot time. During ACPI device initialization, the _STA method is now run if 3794193267Sjkimand only if the _INI method exists. The _STA method is used to determine if 3795193267Sjkimthe device is present; An _INI can only be run if _STA returns present, but 3796193267Sjkimit is a waste of time to run the _STA method if the _INI does not exist. 3797167802Sjkim(Prototype and assistance from Dong Wei) 3798167802Sjkim 3799193267SjkimImplemented use of the C99 uintptr_t for the pointer casting macros if it is 3800193267Sjkimavailable in the current compiler. Otherwise, the default (void *) cast is 3801193267Sjkimused as before. 3802167802Sjkim 3803193267SjkimFixed some possible memory leaks found within the execution path of the 3804193267SjkimBreak, Continue, If, and CreateField operators. (Valery Podrezov) 3805167802Sjkim 3806193267SjkimFixed a problem introduced in the 20051202 release where an exception is 3807193267Sjkimgenerated during method execution if a control method attempts to declare 3808193267Sjkimanother method. 3809167802Sjkim 3810193267SjkimMoved resource descriptor string constants that are used by both the AML 3811193267Sjkimdisassembler and AML debugger to the common utilities directory so that 3812193267Sjkimthese components are independent. 3813167802Sjkim 3814193267SjkimImplemented support in the AcpiExec utility (-e switch) to globally ignore 3815193267Sjkimexceptions during control method execution (method is not aborted.) 3816167802Sjkim 3817193267SjkimAdded the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 3818193267Sjkimgeneration. 3819167802Sjkim 3820193267SjkimCode and Data Size: The current and previous library sizes for the core 3821193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3822193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3823193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3824193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3825193267Sjkimand data size. Note that these values will vary depending on the efficiency 3826193267Sjkimof the compiler and the compiler options used during generation. 3827167802Sjkim 3828167802Sjkim Previous Release: 3829167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3830167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3831167802Sjkim Current Release: 3832167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 3833167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 3834167802Sjkim 3835167802Sjkim 3836167802Sjkim2) iASL Compiler/Disassembler: 3837167802Sjkim 3838193267SjkimFixed a problem where a CPU stack overflow fault could occur if a recursive 3839193267Sjkimmethod call was made from within a Return statement. 3840167802Sjkim 3841167802Sjkim---------------------------------------- 3842167802Sjkim02 December 2005. Summary of changes for version 20051202: 3843167802Sjkim 3844167802Sjkim1) ACPI CA Core Subsystem: 3845167802Sjkim 3846193267SjkimModified the parsing of control methods to no longer create namespace 3847193267Sjkimobjects during the first pass of the parse. Objects are now created only 3848193267Sjkimduring the execute phase, at the moment the namespace creation operator is 3849193267Sjkimencountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 3850193267Sjkimshould eliminate ALREADY_EXISTS exceptions seen on some machines where 3851193267Sjkimreentrant control methods are protected by an AML mutex. The mutex will now 3852193267Sjkimcorrectly block multiple threads from attempting to create the same object 3853193267Sjkimmore than once. 3854167802Sjkim 3855193267SjkimIncreased the number of available Owner Ids for namespace object tracking 3856193267Sjkimfrom 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 3857193267Sjkimsome machines with a large number of ACPI tables (either static or dynamic). 3858167802Sjkim 3859193267SjkimFixed a problem with the AcpiExec utility where a fault could occur when the 3860193267Sjkim-b switch (batch mode) is used. 3861167802Sjkim 3862193267SjkimEnhanced the namespace dump routine to output the owner ID for each 3863193267Sjkimnamespace object. 3864167802Sjkim 3865193267SjkimCode and Data Size: The current and previous library sizes for the core 3866193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3867193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3868193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3869193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3870193267Sjkimand data size. Note that these values will vary depending on the efficiency 3871193267Sjkimof the compiler and the compiler options used during generation. 3872167802Sjkim 3873167802Sjkim Previous Release: 3874167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3875167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3876167802Sjkim Current Release: 3877167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3878167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3879167802Sjkim 3880167802Sjkim 3881167802Sjkim2) iASL Compiler/Disassembler: 3882167802Sjkim 3883193267SjkimFixed a parse error during compilation of certain Switch/Case constructs. To 3884193267Sjkimsimplify the parse, the grammar now allows for multiple Default statements 3885193267Sjkimand this error is now detected and flagged during the analysis phase. 3886167802Sjkim 3887193267SjkimDisassembler: The disassembly now includes the contents of the original 3888193267Sjkimtable header within a comment at the start of the file. This includes the 3889193267Sjkimname and version of the original ASL compiler. 3890167802Sjkim 3891167802Sjkim---------------------------------------- 3892167802Sjkim17 November 2005. Summary of changes for version 20051117: 3893167802Sjkim 3894167802Sjkim1) ACPI CA Core Subsystem: 3895167802Sjkim 3896193267SjkimFixed a problem in the AML parser where the method thread count could be 3897193267Sjkimdecremented below zero if any errors occurred during the method parse phase. 3898193267SjkimThis should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 3899193267SjkimThis also fixed a related regression with the mechanism that detects and 3900193267Sjkimcorrects methods that cannot properly handle reentrancy (related to the 3901193267Sjkimdeployment of the new OwnerId mechanism.) 3902167802Sjkim 3903193267SjkimEliminated the pre-parsing of control methods (to detect errors) during 3904193267Sjkimtable load. Related to the problem above, this was causing unwind issues if 3905193267Sjkimany errors occurred during the parse, and it seemed to be overkill. A table 3906193267Sjkimload should not be aborted if there are problems with any single control 3907193267Sjkimmethod, thus rendering this feature rather pointless. 3908167802Sjkim 3909193267SjkimFixed a problem with the new table-driven resource manager where an internal 3910193267Sjkimbuffer overflow could occur for small resource templates. 3911167802Sjkim 3912193267SjkimImplemented a new external interface, AcpiGetVendorResource. This interface 3913193267Sjkimwill find and return a vendor-defined resource descriptor within a _CRS or 3914193267Sjkim_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 3915167802Sjkim 3916193267SjkimRemoved the length limit (200) on string objects as per the upcoming ACPI 3917193267Sjkim3.0A specification. This affects the following areas of the interpreter: 1) 3918193267Sjkimany implicit conversion of a Buffer to a String, 2) a String object result 3919193267Sjkimof the ASL Concatentate operator, 3) the String object result of the ASL 3920193267SjkimToString operator. 3921167802Sjkim 3922193267SjkimFixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 3923193267Sjkimon a semaphore object would incorrectly timeout. This allows the 3924193267Sjkimmultithreading features of the AcpiExec utility to work properly under 3925193267SjkimWindows. 3926167802Sjkim 3927193267SjkimUpdated the Linux makefiles for the iASL compiler and AcpiExec to include 3928193267Sjkimthe recently added file named "utresrc.c". 3929167802Sjkim 3930193267SjkimCode and Data Size: The current and previous library sizes for the core 3931193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3932193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3933193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3934193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3935193267Sjkimand data size. Note that these values will vary depending on the efficiency 3936193267Sjkimof the compiler and the compiler options used during generation. 3937167802Sjkim 3938167802Sjkim Previous Release: 3939167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3940167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3941167802Sjkim Current Release: 3942167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3943167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3944167802Sjkim 3945167802Sjkim 3946167802Sjkim2) iASL Compiler/Disassembler: 3947167802Sjkim 3948193267SjkimRemoved the limit (200) on string objects as per the upcoming ACPI 3.0A 3949193267Sjkimspecification. For the iASL compiler, this means that string literals within 3950193267Sjkimthe source ASL can be of any length. 3951167802Sjkim 3952193267SjkimEnhanced the listing output to dump the AML code for resource descriptors 3953193267Sjkimimmediately after the ASL code for each descriptor, instead of in a block at 3954193267Sjkimthe end of the entire resource template. 3955167802Sjkim 3956193267SjkimEnhanced the compiler debug output to dump the entire original parse tree 3957193267Sjkimconstructed during the parse phase, before any transforms are applied to the 3958193267Sjkimtree. The transformed tree is dumped also. 3959167802Sjkim 3960167802Sjkim---------------------------------------- 3961167802Sjkim02 November 2005. Summary of changes for version 20051102: 3962167802Sjkim 3963167802Sjkim1) ACPI CA Core Subsystem: 3964167802Sjkim 3965193267SjkimModified the subsystem initialization sequence to improve GPE support. The 3966193267SjkimGPE initialization has been split into two parts in order to defer execution 3967193267Sjkimof the _PRW methods (Power Resources for Wake) until after the hardware is 3968193267Sjkimfully initialized and the SCI handler is installed. This allows the _PRW 3969193267Sjkimmethods to access fields protected by the Global Lock. This will fix systems 3970193267Sjkimwhere a NO_GLOBAL_LOCK exception has been seen during initialization. 3971167802Sjkim 3972193267SjkimConverted the ACPI internal object disassemble and display code within the 3973193267SjkimAML debugger to fully table-driven operation, reducing code size and 3974193267Sjkimincreasing maintainability. 3975167802Sjkim 3976193267SjkimFixed a regression with the ConcatenateResTemplate() ASL operator introduced 3977193267Sjkimin the 20051021 release. 3978167802Sjkim 3979193267SjkimImplemented support for "local" internal ACPI object types within the 3980193267Sjkimdebugger "Object" command and the AcpiWalkNamespace external interfaces. 3981193267SjkimThese local types include RegionFields, BankFields, IndexFields, Alias, and 3982193267Sjkimreference objects. 3983167802Sjkim 3984193267SjkimMoved common AML resource handling code into a new file, "utresrc.c". This 3985193267Sjkimcode is shared by both the Resource Manager and the AML Debugger. 3986167802Sjkim 3987193267SjkimCode and Data Size: The current and previous library sizes for the core 3988193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3989193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3990193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3991193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3992193267Sjkimand data size. Note that these values will vary depending on the efficiency 3993193267Sjkimof the compiler and the compiler options used during generation. 3994167802Sjkim 3995167802Sjkim Previous Release: 3996167802Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3997167802Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3998167802Sjkim Current Release: 3999167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 4000167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4001167802Sjkim 4002167802Sjkim 4003167802Sjkim2) iASL Compiler/Disassembler: 4004167802Sjkim 4005193267SjkimFixed a problem with very large initializer lists (more than 4000 elements) 4006193267Sjkimfor both Buffer and Package objects where the parse stack could overflow. 4007167802Sjkim 4008193267SjkimEnhanced the pre-compile source code scan for non-ASCII characters to ignore 4009193267Sjkimcharacters within comment fields. The scan is now always performed and is no 4010193267Sjkimlonger optional, detecting invalid characters within a source file 4011193267Sjkimimmediately rather than during the parse phase or later. 4012167802Sjkim 4013193267SjkimEnhanced the ASL grammar definition to force early reductions on all list- 4014193267Sjkimstyle grammar elements so that the overall parse stack usage is greatly 4015193267Sjkimreduced. This should improve performance and reduce the possibility of parse 4016193267Sjkimstack overflow. 4017167802Sjkim 4018193267SjkimEliminated all reduce/reduce conflicts in the iASL parser generation. Also, 4019193267Sjkimwith the addition of a %expected statement, the compiler generates from 4020193267Sjkimsource with no warnings. 4021167802Sjkim 4022193267SjkimFixed a possible segment fault in the disassembler if the input filename 4023193267Sjkimdoes not contain a "dot" extension (Thomas Renninger). 4024167802Sjkim 4025167802Sjkim---------------------------------------- 4026151937Sjkim21 October 2005. Summary of changes for version 20051021: 4027151937Sjkim 4028151937Sjkim1) ACPI CA Core Subsystem: 4029151937Sjkim 4030193267SjkimImplemented support for the EM64T and other x86-64 processors. This 4031193267Sjkimessentially entails recognizing that these processors support non-aligned 4032193267Sjkimmemory transfers. Previously, all 64-bit processors were assumed to lack 4033193267Sjkimhardware support for non-aligned transfers. 4034151937Sjkim 4035193267SjkimCompleted conversion of the Resource Manager to nearly full table-driven 4036193267Sjkimoperation. Specifically, the resource conversion code (convert AML to 4037193267Sjkiminternal format and the reverse) and the debug code to dump internal 4038193267Sjkimresource descriptors are fully table-driven, reducing code and data size and 4039193267Sjkimimproving maintainability. 4040151937Sjkim 4041193267SjkimThe OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 4042193267Sjkimon 64-bit processors instead of a fixed 32-bit word. (With assistance from 4043193267SjkimAlexey Starikovskiy) 4044151937Sjkim 4045193267SjkimImplemented support within the resource conversion code for the Type- 4046193267SjkimSpecific byte within the various ACPI 3.0 *WordSpace macros. 4047151937Sjkim 4048193267SjkimFixed some issues within the resource conversion code for the type-specific 4049193267Sjkimflags for both Memory and I/O address resource descriptors. For Memory, 4050193267Sjkimimplemented support for the MTP and TTP flags. For I/O, split the TRS and 4051193267SjkimTTP flags into two separate fields. 4052151937Sjkim 4053193267SjkimCode and Data Size: The current and previous library sizes for the core 4054193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4055193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4056193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4057193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4058193267Sjkimand data size. Note that these values will vary depending on the efficiency 4059193267Sjkimof the compiler and the compiler options used during generation. 4060151937Sjkim 4061151937Sjkim Previous Release: 4062151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 4063151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 4064151937Sjkim Current Release: 4065151937Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 4066151937Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 4067151937Sjkim 4068151937Sjkim 4069167802Sjkim 4070151937Sjkim2) iASL Compiler/Disassembler: 4071151937Sjkim 4072193267SjkimRelaxed a compiler restriction that disallowed a ResourceIndex byte if the 4073193267Sjkimcorresponding ResourceSource string was not also present in a resource 4074193267Sjkimdescriptor declaration. This restriction caused problems with existing 4075193267SjkimAML/ASL code that includes the Index byte without the string. When such AML 4076193267Sjkimwas disassembled, it could not be compiled without modification. Further, 4077193267Sjkimthe modified code created a resource template with a different size than the 4078193267Sjkimoriginal, breaking code that used fixed offsets into the resource template 4079193267Sjkimbuffer. 4080151937Sjkim 4081193267SjkimRemoved a recent feature of the disassembler to ignore a lone ResourceIndex 4082193267Sjkimbyte. This byte is now emitted if present so that the exact AML can be 4083193267Sjkimreproduced when the disassembled code is recompiled. 4084151937Sjkim 4085193267SjkimImproved comments and text alignment for the resource descriptor code 4086193267Sjkimemitted by the disassembler. 4087151937Sjkim 4088193267SjkimImplemented disassembler support for the ACPI 3.0 AccessSize field within a 4089193267SjkimRegister() resource descriptor. 4090151937Sjkim 4091151937Sjkim---------------------------------------- 4092151937Sjkim30 September 2005. Summary of changes for version 20050930: 4093151937Sjkim 4094151937Sjkim1) ACPI CA Core Subsystem: 4095151937Sjkim 4096193267SjkimCompleted a major overhaul of the Resource Manager code - specifically, 4097193267Sjkimoptimizations in the area of the AML/internal resource conversion code. The 4098193267Sjkimcode has been optimized to simplify and eliminate duplicated code, CPU stack 4099193267Sjkimuse has been decreased by optimizing function parameters and local 4100193267Sjkimvariables, and naming conventions across the manager have been standardized 4101193267Sjkimfor clarity and ease of maintenance (this includes function, parameter, 4102193267Sjkimvariable, and struct/typedef names.) The update may force changes in some 4103193267Sjkimdriver code, depending on how resources are handled by the host OS. 4104151937Sjkim 4105193267SjkimAll Resource Manager dispatch and information tables have been moved to a 4106193267Sjkimsingle location for clarity and ease of maintenance. One new file was 4107193267Sjkimcreated, named "rsinfo.c". 4108151937Sjkim 4109193267SjkimThe ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 4110193267Sjkimguarantee that the argument is not evaluated twice, making them less prone 4111193267Sjkimto macro side-effects. However, since there exists the possibility of 4112193267Sjkimadditional stack use if a particular compiler cannot optimize them (such as 4113193267Sjkimin the debug generation case), the original macros are optionally available. 4114193267SjkimNote that some invocations of the return_VALUE macro may now cause size 4115193267Sjkimmismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 4116193267Sjkimeliminate these. (From Randy Dunlap) 4117151937Sjkim 4118193267SjkimImplemented a new mechanism to enable debug tracing for individual control 4119193267Sjkimmethods. A new external interface, AcpiDebugTrace, is provided to enable 4120193267Sjkimthis mechanism. The intent is to allow the host OS to easily enable and 4121193267Sjkimdisable tracing for problematic control methods. This interface can be 4122193267Sjkimeasily exposed to a user or debugger interface if desired. See the file 4123151937Sjkimpsxface.c for details. 4124151937Sjkim 4125193267SjkimAcpiUtCallocate will now return a valid pointer if a length of zero is 4126193267Sjkimspecified - a length of one is used and a warning is issued. This matches 4127193267Sjkimthe behavior of AcpiUtAllocate. 4128151937Sjkim 4129193267SjkimCode and Data Size: The current and previous library sizes for the core 4130193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4131193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4132193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4133193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4134193267Sjkimand data size. Note that these values will vary depending on the efficiency 4135193267Sjkimof the compiler and the compiler options used during generation. 4136151937Sjkim 4137151937Sjkim Previous Release: 4138151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 4139151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 4140151937Sjkim Current Release: 4141151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 4142151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 4143151937Sjkim 4144151937Sjkim 4145151937Sjkim2) iASL Compiler/Disassembler: 4146151937Sjkim 4147193267SjkimA remark is issued if the effective compile-time length of a package or 4148193267Sjkimbuffer is zero. Previously, this was a warning. 4149151937Sjkim 4150151937Sjkim---------------------------------------- 4151151937Sjkim16 September 2005. Summary of changes for version 20050916: 4152151937Sjkim 4153151937Sjkim1) ACPI CA Core Subsystem: 4154151937Sjkim 4155193267SjkimFixed a problem within the Resource Manager where support for the Generic 4156193267SjkimRegister descriptor was not fully implemented. This descriptor is now fully 4157193267Sjkimrecognized, parsed, disassembled, and displayed. 4158151937Sjkim 4159193267SjkimCompletely restructured the Resource Manager code to utilize table-driven 4160193267Sjkimdispatch and lookup, eliminating many of the large switch() statements. This 4161193267Sjkimreduces overall subsystem code size and code complexity. Affects the 4162193267Sjkimresource parsing and construction, disassembly, and debug dump output. 4163151937Sjkim 4164193267SjkimCleaned up and restructured the debug dump output for all resource 4165193267Sjkimdescriptors. Improved readability of the output and reduced code size. 4166151937Sjkim 4167193267SjkimFixed a problem where changes to internal data structures caused the 4168193267Sjkimoptional ACPI_MUTEX_DEBUG code to fail compilation if specified. 4169151937Sjkim 4170193267SjkimCode and Data Size: The current and previous library sizes for the core 4171193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4172193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4173193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4174193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4175193267Sjkimand data size. Note that these values will vary depending on the efficiency 4176193267Sjkimof the compiler and the compiler options used during generation. 4177151937Sjkim 4178151937Sjkim Previous Release: 4179151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 4180151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 4181151937Sjkim Current Release: 4182151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 4183151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 4184151937Sjkim 4185151937Sjkim 4186151937Sjkim2) iASL Compiler/Disassembler: 4187151937Sjkim 4188193267SjkimUpdated the disassembler to automatically insert an EndDependentFn() macro 4189193267Sjkiminto the ASL stream if this macro is missing in the original AML code, 4190193267Sjkimsimplifying compilation of the resulting ASL module. 4191151937Sjkim 4192193267SjkimFixed a problem in the disassembler where a disassembled ResourceSource 4193193267Sjkimstring (within a large resource descriptor) was not surrounded by quotes and 4194193267Sjkimnot followed by a comma, causing errors when the resulting ASL module was 4195193267Sjkimcompiled. Also, escape sequences within a ResourceSource string are now 4196193267Sjkimhandled correctly (especially "\\") 4197151937Sjkim 4198151937Sjkim---------------------------------------- 4199151937Sjkim02 September 2005. Summary of changes for version 20050902: 4200151937Sjkim 4201151937Sjkim1) ACPI CA Core Subsystem: 4202151937Sjkim 4203193267SjkimFixed a problem with the internal Owner ID allocation and deallocation 4204193267Sjkimmechanisms for control method execution and recursive method invocation. 4205193267SjkimThis should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 4206193267Sjkimmessages seen on some systems. Recursive method invocation depth is 4207193267Sjkimcurrently limited to 255. (Alexey Starikovskiy) 4208151937Sjkim 4209193267SjkimCompletely eliminated all vestiges of support for the "module-level 4210193267Sjkimexecutable code" until this support is fully implemented and debugged. This 4211193267Sjkimshould eliminate the NO_RETURN_VALUE exceptions seen during table load on 4212193267Sjkimsome systems that invoke this support. 4213151937Sjkim 4214193267SjkimFixed a problem within the resource manager code where the transaction flags 4215193267Sjkimfor a 64-bit address descriptor were handled incorrectly in the type- 4216193267Sjkimspecific flag byte. 4217151937Sjkim 4218193267SjkimConsolidated duplicate code within the address descriptor resource manager 4219193267Sjkimcode, reducing overall subsystem code size. 4220151937Sjkim 4221193267SjkimFixed a fault when using the AML debugger "disassemble" command to 4222193267Sjkimdisassemble individual control methods. 4223151937Sjkim 4224193267SjkimRemoved references to the "release_current" directory within the Unix 4225193267Sjkimrelease package. 4226151937Sjkim 4227193267SjkimCode and Data Size: The current and previous core subsystem library sizes 4228193267Sjkimare shown below. These are the code and data sizes for the acpica.lib 4229193267Sjkimproduced by the Microsoft Visual C++ 6.0 compiler. These values do not 4230193267Sjkiminclude any ACPI driver or OSPM code. The debug version of the code includes 4231193267Sjkimthe debug output trace mechanism and has a much larger code and data size. 4232193267SjkimNote that these values will vary depending on the efficiency of the compiler 4233193267Sjkimand the compiler options used during generation. 4234151937Sjkim 4235151937Sjkim Previous Release: 4236151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4237151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 4238151937Sjkim Current Release: 4239151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 4240151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 4241151937Sjkim 4242151937Sjkim 4243151937Sjkim2) iASL Compiler/Disassembler: 4244151937Sjkim 4245193267SjkimImplemented an error check for illegal duplicate values in the interrupt and 4246193267Sjkimdma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 4247193267SjkimInterrupt(). 4248151937Sjkim 4249193267SjkimImplemented error checking for the Irq() and IrqNoFlags() macros to detect 4250193267Sjkimtoo many values in the interrupt list (16 max) and invalid values in the 4251193267Sjkimlist (range 0 - 15) 4252151937Sjkim 4253193267SjkimThe maximum length string literal within an ASL file is now restricted to 4254193267Sjkim200 characters as per the ACPI specification. 4255151937Sjkim 4256193267SjkimFixed a fault when using the -ln option (generate namespace listing). 4257151937Sjkim 4258193267SjkimImplemented an error check to determine if a DescriptorName within a 4259193267Sjkimresource descriptor has already been used within the current scope. 4260151937Sjkim 4261151937Sjkim---------------------------------------- 4262151937Sjkim15 August 2005. Summary of changes for version 20050815: 4263193267Sjkim 4264151937Sjkim1) ACPI CA Core Subsystem: 4265193267Sjkim 4266193267SjkimImplemented a full bytewise compare to determine if a table load request is 4267193267Sjkimattempting to load a duplicate table. The compare is performed if the table 4268193267Sjkimsignatures and table lengths match. This will allow different tables with 4269193267Sjkimthe same OEM Table ID and revision to be loaded - probably against the ACPI 4270193267Sjkimspecification, but discovered in the field nonetheless. 4271193267Sjkim 4272193267SjkimAdded the changes.txt logfile to each of the zipped release packages. 4273193267Sjkim 4274193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4275193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4276193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4277193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4278193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4279193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4280193267Sjkimthe compiler options used during generation. 4281193267Sjkim 4282151937Sjkim Previous Release: 4283151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4284151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 4285151937Sjkim Current Release: 4286151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4287151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 4288193267Sjkim 4289193267Sjkim 4290151937Sjkim2) iASL Compiler/Disassembler: 4291193267Sjkim 4292193267SjkimFixed a problem where incorrect AML code could be generated for Package 4293193267Sjkimobjects if optimization is disabled (via the -oa switch). 4294193267Sjkim 4295193267SjkimFixed a problem with where incorrect AML code is generated for variable- 4296193267Sjkimlength packages when the package length is not specified and the number of 4297193267Sjkiminitializer values is greater than 255. 4298193267Sjkim 4299151937Sjkim 4300151937Sjkim---------------------------------------- 4301151937Sjkim29 July 2005. Summary of changes for version 20050729: 4302151937Sjkim 4303151937Sjkim1) ACPI CA Core Subsystem: 4304151937Sjkim 4305193267SjkimImplemented support to ignore an attempt to install/load a particular ACPI 4306193267Sjkimtable more than once. Apparently there exists BIOS code that repeatedly 4307193267Sjkimattempts to load the same SSDT upon certain events. With assistance from 4308193267SjkimVenkatesh Pallipadi. 4309151937Sjkim 4310193267SjkimRestructured the main interface to the AML parser in order to correctly 4311193267Sjkimhandle all exceptional conditions. This will prevent leakage of the OwnerId 4312193267Sjkimresource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 4313193267Sjkimmachines. With assistance from Alexey Starikovskiy. 4314151937Sjkim 4315193267SjkimSupport for "module level code" has been disabled in this version due to a 4316193267Sjkimnumber of issues that have appeared on various machines. The support can be 4317193267Sjkimenabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 4318193267Sjkimcompilation. When the issues are fully resolved, the code will be enabled by 4319151937Sjkimdefault again. 4320151937Sjkim 4321193267SjkimModified the internal functions for debug print support to define the 4322193267SjkimFunctionName parameter as a (const char *) for compatibility with compiler 4323193267Sjkimbuilt-in macros such as __FUNCTION__, etc. 4324151937Sjkim 4325151937SjkimLinted the entire ACPICA source tree for both 32-bit and 64-bit. 4326151937Sjkim 4327193267SjkimImplemented support to display an object count summary for the AML Debugger 4328193267Sjkimcommands Object and Methods. 4329151937Sjkim 4330193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4331193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4332193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4333193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4334193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4335193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4336193267Sjkimthe compiler options used during generation. 4337151937Sjkim 4338151937Sjkim Previous Release: 4339151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 4340151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 4341151937Sjkim Current Release: 4342151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4343151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 4344151937Sjkim 4345151937Sjkim 4346151937Sjkim2) iASL Compiler/Disassembler: 4347151937Sjkim 4348193267SjkimFixed a regression that appeared in the 20050708 version of the compiler 4349193267Sjkimwhere an error message was inadvertently emitted for invocations of the _OSI 4350193267Sjkimreserved control method. 4351151937Sjkim 4352151937Sjkim---------------------------------------- 4353151937Sjkim08 July 2005. Summary of changes for version 20050708: 4354151937Sjkim 4355151937Sjkim1) ACPI CA Core Subsystem: 4356151937Sjkim 4357193267SjkimThe use of the CPU stack in the debug version of the subsystem has been 4358193267Sjkimconsiderably reduced. Previously, a debug structure was declared in every 4359193267Sjkimfunction that used the debug macros. This structure has been removed in 4360193267Sjkimfavor of declaring the individual elements as parameters to the debug 4361193267Sjkimfunctions. This reduces the cumulative stack use during nested execution of 4362193267SjkimACPI function calls at the cost of a small increase in the code size of the 4363193267Sjkimdebug version of the subsystem. With assistance from Alexey Starikovskiy and 4364193267SjkimLen Brown. 4365151937Sjkim 4366193267SjkimAdded the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 4367193267Sjkimheaders to define a macro that will return the current function name at 4368193267Sjkimruntime (such as __FUNCTION__ or _func_, etc.) The function name is used by 4369193267Sjkimthe debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 4370193267Sjkimcompiler-dependent header, the function name is saved on the CPU stack (one 4371193267Sjkimpointer per function.) This mechanism is used because apparently there 4372193267Sjkimexists no standard ANSI-C defined macro that that returns the function name. 4373151937Sjkim 4374193267SjkimRedesigned and reimplemented the "Owner ID" mechanism used to track 4375193267Sjkimnamespace objects created/deleted by ACPI tables and control method 4376193267Sjkimexecution. A bitmap is now used to allocate and free the IDs, thus solving 4377193267Sjkimthe wraparound problem present in the previous implementation. The size of 4378193267Sjkimthe namespace node descriptor was reduced by 2 bytes as a result (Alexey 4379151937SjkimStarikovskiy). 4380151937Sjkim 4381193267SjkimRemoved the UINT32_BIT and UINT16_BIT types that were used for the bitfield 4382193267Sjkimflag definitions within the headers for the predefined ACPI tables. These 4383193267Sjkimhave been replaced by UINT8_BIT in order to increase the code portability of 4384193267Sjkimthe subsystem. If the use of UINT8 remains a problem, we may be forced to 4385193267Sjkimeliminate bitfields entirely because of a lack of portability. 4386151937Sjkim 4387193267SjkimEnhanced the performance of the AcpiUtUpdateObjectReference procedure. This 4388193267Sjkimis a frequently used function and this improvement increases the performance 4389193267Sjkimof the entire subsystem (Alexey Starikovskiy). 4390151937Sjkim 4391193267SjkimFixed several possible memory leaks and the inverse - premature object 4392193267Sjkimdeletion (Alexey Starikovskiy). 4393151937Sjkim 4394193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4395193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4396193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4397193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4398193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4399193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4400193267Sjkimthe compiler options used during generation. 4401151937Sjkim 4402151937Sjkim Previous Release: 4403151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 4404151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 4405151937Sjkim Current Release: 4406151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 4407151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 4408151937Sjkim 4409151937Sjkim---------------------------------------- 4410151937Sjkim24 June 2005. Summary of changes for version 20050624: 4411151937Sjkim 4412151937Sjkim1) ACPI CA Core Subsystem: 4413151937Sjkim 4414193267SjkimModified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 4415193267Sjkimthe host-defined cache object. This allows the OSL implementation to define 4416193267Sjkimand type this object in any manner desired, simplifying the OSL 4417193267Sjkimimplementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 4418193267SjkimLinux, and should be defined in the OS-specific header file for other 4419193267Sjkimoperating systems as required. 4420151937Sjkim 4421193267SjkimChanged the interface to AcpiOsAcquireObject to directly return the 4422193267Sjkimrequested object as the function return (instead of ACPI_STATUS.) This 4423193267Sjkimchange was made for performance reasons, since this is the purpose of the 4424193267Sjkiminterface in the first place. AcpiOsAcquireObject is now similar to the 4425193267SjkimAcpiOsAllocate interface. 4426151937Sjkim 4427193267SjkimImplemented a new AML debugger command named Businfo. This command displays 4428193267Sjkiminformation about all devices that have an associate _PRT object. The _ADR, 4429193267Sjkim_HID, _UID, and _CID are displayed for these devices. 4430151937Sjkim 4431193267SjkimModified the initialization sequence in AcpiInitializeSubsystem to call the 4432193267SjkimOSL interface AcpiOslInitialize first, before any local initialization. This 4433193267Sjkimchange was required because the global initialization now calls OSL 4434193267Sjkiminterfaces. 4435151937Sjkim 4436193267SjkimEnhanced the Dump command to display the entire contents of Package objects 4437193267Sjkim(including all sub-objects and their values.) 4438151937Sjkim 4439193267SjkimRestructured the code base to split some files because of size and/or 4440193267Sjkimbecause the code logically belonged in a separate file. New files are listed 4441193267Sjkimbelow. All makefiles and project files included in the ACPI CA release have 4442193267Sjkimbeen updated. 4443151937Sjkim utilities/utcache.c /* Local cache interfaces */ 4444151937Sjkim utilities/utmutex.c /* Local mutex support */ 4445151937Sjkim utilities/utstate.c /* State object support */ 4446151937Sjkim interpreter/parser/psloop.c /* Main AML parse loop */ 4447151937Sjkim 4448193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4449193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4450193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4451193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4452193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4453193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4454193267Sjkimthe compiler options used during generation. 4455151937Sjkim 4456151937Sjkim Previous Release: 4457151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 4458151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 4459151937Sjkim Current Release: 4460151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 4461151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 4462151937Sjkim 4463151937Sjkim 4464151937Sjkim2) iASL Compiler/Disassembler: 4465151937Sjkim 4466193267SjkimFixed a regression introduced in version 20050513 where the use of a Package 4467193267Sjkimobject within a Case() statement caused a compile time exception. The 4468193267Sjkimoriginal behavior has been restored (a Match() operator is emitted.) 4469151937Sjkim 4470151937Sjkim---------------------------------------- 4471151937Sjkim17 June 2005. Summary of changes for version 20050617: 4472151937Sjkim 4473151937Sjkim1) ACPI CA Core Subsystem: 4474151937Sjkim 4475193267SjkimMoved the object cache operations into the OS interface layer (OSL) to allow 4476193267Sjkimthe host OS to handle these operations if desired (for example, the Linux 4477193267SjkimOSL will invoke the slab allocator). This support is optional; the compile 4478193267Sjkimtime define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 4479193267Sjkimcode in the ACPI CA core. The new OSL interfaces are shown below. See 4480193267Sjkimutalloc.c for an example implementation, and acpiosxf.h for the exact 4481193267Sjkiminterface definitions. With assistance from Alexey Starikovskiy. 4482151937Sjkim AcpiOsCreateCache 4483151937Sjkim AcpiOsDeleteCache 4484151937Sjkim AcpiOsPurgeCache 4485151937Sjkim AcpiOsAcquireObject 4486151937Sjkim AcpiOsReleaseObject 4487151937Sjkim 4488193267SjkimModified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 4489193267Sjkimand restore a flags parameter. This fits better with many OS lock models. 4490193267SjkimNote: the current execution state (interrupt handler or not) is no longer 4491193267Sjkimpassed to these interfaces. If necessary, the OSL must determine this state 4492193267Sjkimby itself, a simple and fast operation. With assistance from Alexey 4493151937SjkimStarikovskiy. 4494151937Sjkim 4495193267SjkimFixed a problem in the ACPI table handling where a valid XSDT was assumed 4496193267Sjkimpresent if the revision of the RSDP was 2 or greater. According to the ACPI 4497193267Sjkimspecification, the XSDT is optional in all cases, and the table manager 4498193267Sjkimtherefore now checks for both an RSDP >=2 and a valid XSDT pointer. 4499193267SjkimOtherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 4500193267Sjkimonly the RSDT. 4501151937Sjkim 4502193267SjkimFixed an interpreter problem with the Mid() operator in the case of an input 4503193267Sjkimstring where the resulting output string is of zero length. It now correctly 4504193267Sjkimreturns a valid, null terminated string object instead of a string object 4505193267Sjkimwith a null pointer. 4506151937Sjkim 4507193267SjkimFixed a problem with the control method argument handling to allow a store 4508193267Sjkimto an Arg object that already contains an object of type Device. The Device 4509193267Sjkimobject is now correctly overwritten. Previously, an error was returned. 4510151937Sjkim 4511167802Sjkim 4512193267SjkimEnhanced the debugger Find command to emit object values in addition to the 4513193267Sjkimfound object pathnames. The output format is the same as the dump namespace 4514193267Sjkimcommand. 4515151937Sjkim 4516193267SjkimEnhanced the debugger Set command. It now has the ability to set the value 4517193267Sjkimof any Named integer object in the namespace (Previously, only method locals 4518193267Sjkimand args could be set.) 4519151937Sjkim 4520193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4521193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4522193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4523193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4524193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4525193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4526193267Sjkimthe compiler options used during generation. 4527151937Sjkim 4528151937Sjkim Previous Release: 4529151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 4530151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 4531151937Sjkim Current Release: 4532151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 4533151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 4534151937Sjkim 4535151937Sjkim 4536151937Sjkim2) iASL Compiler/Disassembler: 4537151937Sjkim 4538193267SjkimFixed a regression in the disassembler where if/else/while constructs were 4539193267Sjkimoutput incorrectly. This problem was introduced in the previous release 4540193267Sjkim(20050526). This problem also affected the single-step disassembly in the 4541193267Sjkimdebugger. 4542151937Sjkim 4543193267SjkimFixed a problem where compiling the reserved _OSI method would randomly (but 4544193267Sjkimrarely) produce compile errors. 4545151937Sjkim 4546193267SjkimEnhanced the disassembler to emit compilable code in the face of incorrect 4547193267SjkimAML resource descriptors. If the optional ResourceSourceIndex is present, 4548193267Sjkimbut the ResourceSource is not, do not emit the ResourceSourceIndex in the 4549193267Sjkimdisassembly. Otherwise, the resulting code cannot be compiled without 4550193267Sjkimerrors. 4551151937Sjkim 4552151937Sjkim---------------------------------------- 4553151937Sjkim26 May 2005. Summary of changes for version 20050526: 4554151937Sjkim 4555151937Sjkim1) ACPI CA Core Subsystem: 4556151937Sjkim 4557193267SjkimImplemented support to execute Type 1 and Type 2 AML opcodes appearing at 4558193267Sjkimthe module level (not within a control method.) These opcodes are executed 4559193267Sjkimexactly once at the time the table is loaded. This type of code was legal up 4560193267Sjkimuntil the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 4561193267Sjkimorder to provide backwards compatibility with earlier BIOS implementations. 4562193267SjkimThis eliminates the "Encountered executable code at module level" warning 4563193267Sjkimthat was previously generated upon detection of such code. 4564151937Sjkim 4565193267SjkimFixed a problem in the interpreter where an AE_NOT_FOUND exception could 4566193267Sjkiminadvertently be generated during the lookup of namespace objects in the 4567193267Sjkimsecond pass parse of ACPI tables and control methods. It appears that this 4568193267Sjkimproblem could occur during the resolution of forward references to namespace 4569193267Sjkimobjects. 4570151937Sjkim 4571193267SjkimAdded the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 4572193267Sjkimcorresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 4573193267Sjkimallows the deadlock detection debug code to be compiled out in the normal 4574193267Sjkimcase, improving mutex performance (and overall subsystem performance) 4575193267Sjkimconsiderably. 4576151937Sjkim 4577193267SjkimImplemented a handful of miscellaneous fixes for possible memory leaks on 4578193267Sjkimerror conditions and error handling control paths. These fixes were 4579193267Sjkimsuggested by FreeBSD and the Coverity Prevent source code analysis tool. 4580151937Sjkim 4581193267SjkimAdded a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 4582193267Sjkimto prevent a fault in this error case. 4583151937Sjkim 4584193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4585193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4586193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4587193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4588193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4589193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4590193267Sjkimthe compiler options used during generation. 4591151937Sjkim 4592151937Sjkim Previous Release: 4593151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4594151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4595151937Sjkim Current Release: 4596151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 4597151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 4598151937Sjkim 4599151937Sjkim 4600151937Sjkim2) iASL Compiler/Disassembler: 4601151937Sjkim 4602193267SjkimImplemented support to allow Type 1 and Type 2 ASL operators to appear at 4603193267Sjkimthe module level (not within a control method.) These operators will be 4604193267Sjkimexecuted once at the time the table is loaded. This type of code was legal 4605193267Sjkimup until the release of ACPI 2.0B (2002) and is now supported by the iASL 4606193267Sjkimcompiler in order to provide backwards compatibility with earlier BIOS ASL 4607193267Sjkimcode. 4608151937Sjkim 4609193267SjkimThe ACPI integer width (specified via the table revision ID or the -r 4610193267Sjkimoverride, 32 or 64 bits) is now used internally during compile-time constant 4611193267Sjkimfolding to ensure that constants are truncated to 32 bits if necessary. 4612193267SjkimPreviously, the revision ID value was only emitted in the AML table header. 4613151937Sjkim 4614193267SjkimAn error message is now generated for the Mutex and Method operators if the 4615193267SjkimSyncLevel parameter is outside the legal range of 0 through 15. 4616151937Sjkim 4617193267SjkimFixed a problem with the Method operator ParameterTypes list handling (ACPI 4618193267Sjkim3.0). Previously, more than 2 types or 2 arguments generated a syntax error. 4619193267SjkimThe actual underlying implementation of method argument typechecking is 4620193267Sjkimstill under development, however. 4621151937Sjkim 4622151937Sjkim---------------------------------------- 4623151937Sjkim13 May 2005. Summary of changes for version 20050513: 4624151937Sjkim 4625151937Sjkim1) ACPI CA Core Subsystem: 4626151937Sjkim 4627193267SjkimImplemented support for PCI Express root bridges -- added support for device 4628193267SjkimPNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 4629151937Sjkim 4630193267SjkimThe interpreter now automatically truncates incoming 64-bit constants to 32 4631193267Sjkimbits if currently executing out of a 32-bit ACPI table (Revision < 2). This 4632193267Sjkimalso affects the iASL compiler constant folding. (Note: as per below, the 4633193267SjkimiASL compiler no longer allows 64-bit constants within 32-bit tables.) 4634151937Sjkim 4635193267SjkimFixed a problem where string and buffer objects with "static" pointers 4636193267Sjkim(pointers to initialization data within an ACPI table) were not handled 4637193267Sjkimconsistently. The internal object copy operation now always copies the data 4638193267Sjkimto a newly allocated buffer, regardless of whether the source object is 4639193267Sjkimstatic or not. 4640151937Sjkim 4641193267SjkimFixed a problem with the FromBCD operator where an implicit result 4642193267Sjkimconversion was improperly performed while storing the result to the target 4643193267Sjkimoperand. Since this is an "explicit conversion" operator, the implicit 4644193267Sjkimconversion should never be performed on the output. 4645151937Sjkim 4646193267SjkimFixed a problem with the CopyObject operator where a copy to an existing 4647193267Sjkimnamed object did not always completely overwrite the existing object stored 4648193267Sjkimat name. Specifically, a buffer-to-buffer copy did not delete the existing 4649193267Sjkimbuffer. 4650151937Sjkim 4651193267SjkimReplaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 4652193267Sjkimstructs for consistency. 4653151937Sjkim 4654193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4655193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4656193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4657193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4658193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4659193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4660193267Sjkimthe compiler options used during generation. 4661151937Sjkim 4662151937Sjkim Previous Release: 4663151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4664151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4665151937Sjkim Current Release: (Same sizes) 4666151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4667151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4668151937Sjkim 4669151937Sjkim 4670151937Sjkim2) iASL Compiler/Disassembler: 4671151937Sjkim 4672193267SjkimThe compiler now emits a warning if an attempt is made to generate a 64-bit 4673193267Sjkiminteger constant from within a 32-bit ACPI table (Revision < 2). The integer 4674193267Sjkimis truncated to 32 bits. 4675151937Sjkim 4676193267SjkimFixed a problem with large package objects: if the static length of the 4677193267Sjkimpackage is greater than 255, the "variable length package" opcode is 4678193267Sjkimemitted. Previously, this caused an error. This requires an update to the 4679193267SjkimACPI spec, since it currently (incorrectly) states that packages larger than 4680193267Sjkim255 elements are not allowed. 4681151937Sjkim 4682193267SjkimThe disassembler now correctly handles variable length packages and packages 4683193267Sjkimlarger than 255 elements. 4684151937Sjkim 4685151937Sjkim---------------------------------------- 4686151937Sjkim08 April 2005. Summary of changes for version 20050408: 4687151937Sjkim 4688151937Sjkim1) ACPI CA Core Subsystem: 4689151937Sjkim 4690193267SjkimFixed three cases in the interpreter where an "index" argument to an ASL 4691193267Sjkimfunction was still (internally) 32 bits instead of the required 64 bits. 4692193267SjkimThis was the Index argument to the Index, Mid, and Match operators. 4693151937Sjkim 4694193267SjkimThe "strupr" function is now permanently local (AcpiUtStrupr), since this is 4695193267Sjkimnot a POSIX-defined function and not present in most kernel-level C 4696193267Sjkimlibraries. All references to the C library strupr function have been removed 4697193267Sjkimfrom the headers. 4698151937Sjkim 4699193267SjkimCompleted the deployment of static functions/prototypes. All prototypes with 4700193267Sjkimthe static attribute have been moved from the headers to the owning C file. 4701151937Sjkim 4702193267SjkimImplemented an extract option (-e) for the AcpiBin utility (AML binary 4703193267Sjkimutility). This option allows the utility to extract individual ACPI tables 4704193267Sjkimfrom the output of AcpiDmp. It provides the same functionality of the 4705193267Sjkimacpixtract.pl perl script without the worry of setting the correct perl 4706193267Sjkimoptions. AcpiBin runs on Windows and has not yet been generated/validated in 4707193267Sjkimthe Linux/Unix environment (but should be soon). 4708193267Sjkim 4709193267SjkimUpdated and fixed the table dump option for AcpiBin (-d). This option 4710193267Sjkimconverts a single ACPI table to a hex/ascii file, similar to the output of 4711193267SjkimAcpiDmp. 4712151937Sjkim 4713193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4714193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4715193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4716193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4717193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4718193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4719193267Sjkimthe compiler options used during generation. 4720151937Sjkim 4721151937Sjkim Previous Release: 4722151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 4723151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 4724151937Sjkim Current Release: 4725151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4726151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4727151937Sjkim 4728151937Sjkim 4729151937Sjkim2) iASL Compiler/Disassembler: 4730151937Sjkim 4731193267SjkimDisassembler fix: Added a check to ensure that the table length found in the 4732193267SjkimACPI table header within the input file is not longer than the actual input 4733193267Sjkimfile size. This indicates some kind of file or table corruption. 4734151937Sjkim 4735151937Sjkim---------------------------------------- 4736151937Sjkim29 March 2005. Summary of changes for version 20050329: 4737151937Sjkim 4738151937Sjkim1) ACPI CA Core Subsystem: 4739151937Sjkim 4740193267SjkimAn error is now generated if an attempt is made to create a Buffer Field of 4741193267Sjkimlength zero (A CreateField with a length operand of zero.) 4742151937Sjkim 4743193267SjkimThe interpreter now issues a warning whenever executable code at the module 4744193267Sjkimlevel is detected during ACPI table load. This will give some idea of the 4745193267Sjkimprevalence of this type of code. 4746151937Sjkim 4747193267SjkimImplemented support for references to named objects (other than control 4748193267Sjkimmethods) within package objects. 4749151937Sjkim 4750193267SjkimEnhanced package object output for the debug object. Package objects are now 4751193267Sjkimcompletely dumped, showing all elements. 4752151937Sjkim 4753193267SjkimEnhanced miscellaneous object output for the debug object. Any object can 4754193267Sjkimnow be written to the debug object (for example, a device object can be 4755193267Sjkimwritten, and the type of the object will be displayed.) 4756151937Sjkim 4757193267SjkimThe "static" qualifier has been added to all local functions across both the 4758193267Sjkimcore subsystem and the iASL compiler. 4759151937Sjkim 4760193267SjkimThe number of "long" lines (> 80 chars) within the source has been 4761193267Sjkimsignificantly reduced, by about 1/3. 4762151937Sjkim 4763193267SjkimCleaned up all header files to ensure that all CA/iASL functions are 4764193267Sjkimprototyped (even static functions) and the formatting is consistent. 4765151937Sjkim 4766151937SjkimTwo new header files have been added, acopcode.h and acnames.h. 4767151937Sjkim 4768151937SjkimRemoved several obsolete functions that were no longer used. 4769151937Sjkim 4770193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4771193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4772193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4773193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4774193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4775193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4776193267Sjkimthe compiler options used during generation. 4777151937Sjkim 4778151937Sjkim Previous Release: 4779151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4780151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4781151937Sjkim Current Release: 4782151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 4783151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 4784151937Sjkim 4785151937Sjkim 4786167802Sjkim 4787151937Sjkim2) iASL Compiler/Disassembler: 4788151937Sjkim 4789193267SjkimFixed a problem with the resource descriptor generation/support. For the 4790193267SjkimResourceSourceIndex and the ResourceSource fields, both must be present, or 4791193267Sjkimboth must be not present - can't have one without the other. 4792151937Sjkim 4793193267SjkimThe compiler now returns non-zero from the main procedure if any errors have 4794193267Sjkimoccurred during the compilation. 4795151937Sjkim 4796151937Sjkim 4797151937Sjkim---------------------------------------- 4798151937Sjkim09 March 2005. Summary of changes for version 20050309: 4799151937Sjkim 4800151937Sjkim1) ACPI CA Core Subsystem: 4801151937Sjkim 4802193267SjkimThe string-to-buffer implicit conversion code has been modified again after 4803193267Sjkima change to the ACPI specification. In order to match the behavior of the 4804193267Sjkimother major ACPI implementation, the target buffer is no longer truncated if 4805193267Sjkimthe source string is smaller than an existing target buffer. This change 4806193267Sjkimrequires an update to the ACPI spec, and should eliminate the recent 4807151937SjkimAE_AML_BUFFER_LIMIT issues. 4808151937Sjkim 4809193267SjkimThe "implicit return" support was rewritten to a new algorithm that solves 4810193267Sjkimthe general case. Rather than attempt to determine when a method is about to 4811193267Sjkimexit, the result of every ASL operator is saved momentarily until the very 4812193267Sjkimnext ASL operator is executed. Therefore, no matter how the method exits, 4813193267Sjkimthere will always be a saved implicit return value. This feature is only 4814193267Sjkimenabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 4815193267SjkimAE_AML_NO_RETURN_VALUE errors when enabled. 4816151937Sjkim 4817193267SjkimImplemented implicit conversion support for the predicate (operand) of the 4818193267SjkimIf, Else, and While operators. String and Buffer arguments are automatically 4819193267Sjkimconverted to Integers. 4820151937Sjkim 4821193267SjkimChanged the string-to-integer conversion behavior to match the new ACPI 4822193267Sjkimerrata: "If no integer object exists, a new integer is created. The ASCII 4823193267Sjkimstring is interpreted as a hexadecimal constant. Each string character is 4824193267Sjkiminterpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 4825193267Sjkimwith the first character as the most significant digit, and ending with the 4826193267Sjkimfirst non-hexadecimal character or end-of-string." This means that the first 4827193267Sjkimnon-hex character terminates the conversion and this is the code that was 4828193267Sjkimchanged. 4829151937Sjkim 4830193267SjkimFixed a problem where the ObjectType operator would fail (fault) when used 4831193267Sjkimon an Index of a Package which pointed to a null package element. The 4832193267Sjkimoperator now properly returns zero (Uninitialized) in this case. 4833151937Sjkim 4834193267SjkimFixed a problem where the While operator used excessive memory by not 4835193267Sjkimproperly popping the result stack during execution. There was no memory leak 4836193267Sjkimafter execution, however. (Code provided by Valery Podrezov.) 4837151937Sjkim 4838193267SjkimFixed a problem where references to control methods within Package objects 4839193267Sjkimcaused the method to be invoked, instead of producing a reference object 4840193267Sjkimpointing to the method. 4841151937Sjkim 4842193267SjkimRestructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 4843193267Sjkimimprove performance and reduce code size. (Code provided by Alexey 4844193267SjkimStarikovskiy.) 4845151937Sjkim 4846193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4847193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4848193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4849193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4850193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4851193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4852193267Sjkimthe compiler options used during generation. 4853151937Sjkim 4854151937Sjkim Previous Release: 4855151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4856151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4857151937Sjkim Current Release: 4858151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4859151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4860151937Sjkim 4861151937Sjkim 4862151937Sjkim2) iASL Compiler/Disassembler: 4863151937Sjkim 4864193267SjkimFixed a problem with the Return operator with no arguments. Since the AML 4865193267Sjkimgrammar for the byte encoding requires an operand for the Return opcode, the 4866193267Sjkimcompiler now emits a Return(Zero) for this case. An ACPI specification 4867193267Sjkimupdate has been written for this case. 4868151937Sjkim 4869193267SjkimFor tables other than the DSDT, namepath optimization is automatically 4870193267Sjkimdisabled. This is because SSDTs can be loaded anywhere in the namespace, the 4871193267Sjkimcompiler has no knowledge of where, and thus cannot optimize namepaths. 4872151937Sjkim 4873193267SjkimAdded "ProcessorObj" to the ObjectTypeKeyword list. This object type was 4874193267Sjkiminadvertently omitted from the ACPI specification, and will require an 4875193267Sjkimupdate to the spec. 4876151937Sjkim 4877193267SjkimThe source file scan for ASCII characters is now optional (-a). This change 4878193267Sjkimwas made because some vendors place non-ascii characters within comments. 4879193267SjkimHowever, the scan is simply a brute-force byte compare to ensure all 4880193267Sjkimcharacters in the file are in the range 0x00 to 0x7F. 4881151937Sjkim 4882193267SjkimFixed a problem with the CondRefOf operator where the compiler was 4883193267Sjkiminappropriately checking for the existence of the target. Since the point of 4884193267Sjkimthe operator is to check for the existence of the target at run-time, the 4885193267Sjkimcompiler no longer checks for the target existence. 4886151937Sjkim 4887193267SjkimFixed a problem where errors generated from the internal AML interpreter 4888193267Sjkimduring constant folding were not handled properly, causing a fault. 4889151937Sjkim 4890193267SjkimFixed a problem with overly aggressive range checking for the Stall 4891193267Sjkimoperator. The valid range (max 255) is now only checked if the operand is of 4892193267Sjkimtype Integer. All other operand types cannot be statically checked. 4893151937Sjkim 4894193267SjkimFixed a problem where control method references within the RefOf, DeRefOf, 4895193267Sjkimand ObjectType operators were not treated properly. They are now treated as 4896193267Sjkimactual references, not method invocations. 4897151937Sjkim 4898193267SjkimFixed and enhanced the "list namespace" option (-ln). This option was broken 4899193267Sjkima number of releases ago. 4900151937Sjkim 4901193267SjkimImproved error handling for the Field, IndexField, and BankField operators. 4902193267SjkimThe compiler now cleanly reports and recovers from errors in the field 4903193267Sjkimcomponent (FieldUnit) list. 4904151937Sjkim 4905193267SjkimFixed a disassembler problem where the optional ResourceDescriptor fields 4906193267SjkimTRS and TTP were not always handled correctly. 4907151937Sjkim 4908151937SjkimDisassembler - Comments in output now use "//" instead of "/*" 4909151937Sjkim 4910151937Sjkim---------------------------------------- 4911151937Sjkim28 February 2005. Summary of changes for version 20050228: 4912151937Sjkim 4913151937Sjkim1) ACPI CA Core Subsystem: 4914151937Sjkim 4915193267SjkimFixed a problem where the result of an Index() operator (an object 4916193267Sjkimreference) must increment the reference count on the target object for the 4917193267Sjkimlife of the object reference. 4918151937Sjkim 4919193267SjkimImplemented AML Interpreter and Debugger support for the new ACPI 3.0 4920193267SjkimExtended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 4921193267Sjkimresource descriptors. 4922151937Sjkim 4923193267SjkimImplemented support in the _OSI method for the ACPI 3.0 "Extended Address 4924193267SjkimSpace Descriptor" string, indicating interpreter support for the descriptors 4925193267Sjkimabove. 4926151937Sjkim 4927151937SjkimImplemented header support for the new ACPI 3.0 FADT flag bits. 4928151937Sjkim 4929193267SjkimImplemented header support for the new ACPI 3.0 PCI Express bits for the PM1 4930193267Sjkimstatus/enable registers. 4931151937Sjkim 4932193267SjkimUpdated header support for the MADT processor local Apic struct and MADT 4933193267Sjkimplatform interrupt source struct for new ACPI 3.0 fields. 4934151937Sjkim 4935151937SjkimImplemented header support for the SRAT and SLIT ACPI tables. 4936151937Sjkim 4937193267SjkimImplemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 4938193267Sjkimat runtime. 4939151937Sjkim 4940193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4941193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4942193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4943193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4944193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4945193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4946193267Sjkimthe compiler options used during generation. 4947151937Sjkim 4948151937Sjkim Previous Release: 4949151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4950151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4951151937Sjkim Current Release: 4952151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4953151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4954151937Sjkim 4955151937Sjkim 4956151937Sjkim2) iASL Compiler/Disassembler: 4957151937Sjkim 4958193267SjkimFixed a problem with the internal 64-bit String-to-integer conversion with 4959193267Sjkimstrings less than two characters long. 4960151937Sjkim 4961193267SjkimFixed a problem with constant folding where the result of the Index() 4962193267Sjkimoperator can not be considered a constant. This means that Index() cannot be 4963193267Sjkima type3 opcode and this will require an update to the ACPI specification. 4964151937Sjkim 4965193267SjkimDisassembler: Implemented support for the TTP, MTP, and TRS resource 4966193267Sjkimdescriptor fields. These fields were inadvertently ignored and not output in 4967193267Sjkimthe disassembly of the resource descriptor. 4968151937Sjkim 4969151937Sjkim 4970151937Sjkim ---------------------------------------- 4971151937Sjkim11 February 2005. Summary of changes for version 20050211: 4972151937Sjkim 4973151937Sjkim1) ACPI CA Core Subsystem: 4974151937Sjkim 4975193267SjkimImplemented ACPI 3.0 support for implicit conversion within the Match() 4976193267Sjkimoperator. MatchObjects can now be of type integer, buffer, or string instead 4977193267Sjkimof just type integer. Package elements are implicitly converted to the type 4978193267Sjkimof the MatchObject. This change aligns the behavior of Match() with the 4979193267Sjkimbehavior of the other logical operators (LLess(), etc.) It also requires an 4980193267Sjkimerrata change to the ACPI specification as this support was intended for 4981193267SjkimACPI 3.0, but was inadvertently omitted. 4982151937Sjkim 4983193267SjkimFixed a problem with the internal implicit "to buffer" conversion. Strings 4984193267Sjkimthat are converted to buffers will cause buffer truncation if the string is 4985193267Sjkimsmaller than the target buffer. Integers that are converted to buffers will 4986193267Sjkimnot cause buffer truncation, only zero extension (both as per the ACPI 4987193267Sjkimspec.) The problem was introduced when code was added to truncate the 4988193267Sjkimbuffer, but this should not be performed in all cases, only the string case. 4989151937Sjkim 4990193267SjkimFixed a problem with the Buffer and Package operators where the interpreter 4991193267Sjkimwould get confused if two such operators were used as operands to an ASL 4992193267Sjkimoperator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 4993193267Sjkimstack was not being popped after the execution of these operators, resulting 4994193267Sjkimin an AE_NO_RETURN_VALUE exception. 4995151937Sjkim 4996193267SjkimFixed a problem with constructs of the form Store(Index(...),...). The 4997193267Sjkimreference object returned from Index was inadvertently resolved to an actual 4998193267Sjkimvalue. This problem was introduced in version 20050114 when the behavior of 4999193267SjkimStore() was modified to restrict the object types that can be used as the 5000151937Sjkimsource operand (to match the ACPI specification.) 5001151937Sjkim 5002193267SjkimReduced excessive stack use within the AcpiGetObjectInfo procedure. 5003151937Sjkim 5004193267SjkimAdded a fix to aclinux.h to allow generation of AcpiExec on Linux. 5005151937Sjkim 5006193267SjkimUpdated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 5007151937Sjkim 5008193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5009193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5010193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5011193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5012193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5013193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5014193267Sjkimthe compiler options used during generation. 5015151937Sjkim 5016151937Sjkim Previous Release: 5017151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 5018151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 5019151937Sjkim Current Release: 5020151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 5021151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 5022151937Sjkim 5023151937Sjkim 5024151937Sjkim2) iASL Compiler/Disassembler: 5025151937Sjkim 5026193267SjkimFixed a code generation problem in the constant folding optimization code 5027193267Sjkimwhere incorrect code was generated if a constant was reduced to a buffer 5028193267Sjkimobject (i.e., a reduced type 5 opcode.) 5029151937Sjkim 5030193267SjkimFixed a typechecking problem for the ToBuffer operator. Caused by an 5031193267Sjkimincorrect return type in the internal opcode information table. 5032151937Sjkim 5033151937Sjkim---------------------------------------- 5034151937Sjkim25 January 2005. Summary of changes for version 20050125: 5035151937Sjkim 5036151937Sjkim1) ACPI CA Core Subsystem: 5037151937Sjkim 5038193267SjkimFixed a recently introduced problem with the Global Lock where the 5039193267Sjkimunderlying semaphore was not created. This problem was introduced in 5040193267Sjkimversion 20050114, and caused an AE_AML_NO_OPERAND exception during an 5041193267SjkimAcquire() operation on _GL. 5042151937Sjkim 5043193267SjkimThe local object cache is now optional, and is disabled by default. Both 5044193267SjkimAcpiExec and the iASL compiler enable the cache because they run in user 5045193267Sjkimmode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 5046193267Sjkimto enable the local cache. 5047151937Sjkim 5048193267SjkimFixed an issue in the internal function AcpiUtEvaluateObject concerning the 5049193267Sjkimoptional "implicit return" support where an error was returned if no return 5050193267Sjkimobject was expected, but one was implicitly returned. AE_OK is now returned 5051193267Sjkimin this case and the implicitly returned object is deleted. 5052193267SjkimAcpiUtEvaluateObject is only occasionally used, and only to execute reserved 5053193267Sjkimmethods such as _STA and _INI where the return type is known up front. 5054151937Sjkim 5055193267SjkimFixed a few issues with the internal convert-to-integer code. It now returns 5056193267Sjkiman error if an attempt is made to convert a null string, a string of only 5057193267Sjkimblanks/tabs, or a zero-length buffer. This affects both implicit conversion 5058193267Sjkimand explicit conversion via the ToInteger() operator. 5059151937Sjkim 5060193267SjkimThe internal debug code in AcpiUtAcquireMutex has been commented out. It is 5061193267Sjkimnot needed for normal operation and should increase the performance of the 5062193267Sjkimentire subsystem. The code remains in case it is needed for debug purposes 5063193267Sjkimagain. 5064151937Sjkim 5065193267SjkimThe AcpiExec source and makefile are included in the Unix/Linux package for 5066193267Sjkimthe first time. 5067151937Sjkim 5068193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5069193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5070193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5071193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5072193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5073193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5074193267Sjkimthe compiler options used during generation. 5075151937Sjkim 5076151937Sjkim Previous Release: 5077151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 5078151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 5079151937Sjkim Current Release: 5080151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 5081151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 5082151937Sjkim 5083151937Sjkim2) iASL Compiler/Disassembler: 5084151937Sjkim 5085193267SjkimSwitch/Case support: A warning is now issued if the type of the Switch value 5086193267Sjkimcannot be determined at compile time. For example, Switch(Arg0) will 5087193267Sjkimgenerate the warning, and the type is assumed to be an integer. As per the 5088193267SjkimACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 5089193267Sjkimwarning. 5090151937Sjkim 5091193267SjkimSwitch/Case support: Implemented support for buffer and string objects as 5092193267Sjkimthe switch value. This is an ACPI 3.0 feature, now that LEqual supports 5093193267Sjkimbuffers and strings. 5094151937Sjkim 5095193267SjkimSwitch/Case support: The emitted code for the LEqual() comparisons now uses 5096193267Sjkimthe switch value as the first operand, not the second. The case value is now 5097193267Sjkimthe second operand, and this allows the case value to be implicitly 5098193267Sjkimconverted to the type of the switch value, not the other way around. 5099151937Sjkim 5100193267SjkimSwitch/Case support: Temporary variables are now emitted immediately within 5101193267Sjkimthe control method, not at the global level. This means that there are now 5102193267Sjkim36 temps available per-method, not 36 temps per-module as was the case with 5103193267Sjkimthe earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 5104151937Sjkim 5105151937Sjkim---------------------------------------- 5106151937Sjkim14 January 2005. Summary of changes for version 20050114: 5107151937Sjkim 5108193267SjkimAdded 2005 copyright to all module headers. This affects every module in 5109193267Sjkimthe core subsystem, iASL compiler, and the utilities. 5110151937Sjkim 5111151937Sjkim1) ACPI CA Core Subsystem: 5112151937Sjkim 5113193267SjkimFixed an issue with the String-to-Buffer conversion code where the string 5114193267Sjkimnull terminator was not included in the buffer after conversion, but there 5115193267Sjkimis existing ASL that assumes the string null terminator is included. This is 5116193267Sjkimthe root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 5117193267Sjkimintroduced in the previous version when the code was updated to correctly 5118193267Sjkimset the converted buffer size as per the ACPI specification. The ACPI spec 5119193267Sjkimis ambiguous and will be updated to specify that the null terminator must be 5120193267Sjkimincluded in the converted buffer. This also affects the ToBuffer() ASL 5121193267Sjkimoperator. 5122151937Sjkim 5123193267SjkimFixed a problem with the Mid() ASL/AML operator where it did not work 5124193267Sjkimcorrectly on Buffer objects. Newly created sub-buffers were not being marked 5125193267Sjkimas initialized. 5126151937Sjkim 5127167802Sjkim 5128193267SjkimFixed a problem in AcpiTbFindTable where incorrect string compares were 5129193267Sjkimperformed on the OemId and OemTableId table header fields. These fields are 5130193267Sjkimnot null terminated, so strncmp is now used instead of strcmp. 5131151937Sjkim 5132193267SjkimImplemented a restriction on the Store() ASL/AML operator to align the 5133193267Sjkimbehavior with the ACPI specification. Previously, any object could be used 5134193267Sjkimas the source operand. Now, the only objects that may be used are Integers, 5135193267SjkimBuffers, Strings, Packages, Object References, and DDB Handles. If 5136193267Sjkimnecessary, the original behavior can be restored by enabling the 5137151937SjkimEnableInterpreterSlack flag. 5138151937Sjkim 5139193267SjkimEnhanced the optional "implicit return" support to allow an implicit return 5140193267Sjkimvalue from methods that are invoked externally via the AcpiEvaluateObject 5141193267Sjkiminterface. This enables implicit returns from the _STA and _INI methods, 5142193267Sjkimfor example. 5143151937Sjkim 5144193267SjkimChanged the Revision() ASL/AML operator to return the current version of the 5145193267SjkimAML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 5146193267Sjkimthe supported ACPI version (This is the function of the _REV method). 5147151937Sjkim 5148193267SjkimUpdated the _REV predefined method to return the currently supported version 5149193267Sjkimof ACPI, now 3. 5150151937Sjkim 5151151937SjkimImplemented batch mode option for the AcpiExec utility (-b). 5152151937Sjkim 5153193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5154193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5155193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5156193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5157193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5158193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5159193267Sjkimthe compiler options used during generation. 5160151937Sjkim 5161151937Sjkim Previous Release: 5162151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5163151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 5164151937Sjkim Current Release: 5165151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 5166151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 5167151937Sjkim 5168151937Sjkim---------------------------------------- 5169151937Sjkim10 December 2004. Summary of changes for version 20041210: 5170151937Sjkim 5171193267SjkimACPI 3.0 support is nearing completion in both the iASL compiler and the 5172193267SjkimACPI CA core subsystem. 5173151937Sjkim 5174151937Sjkim1) ACPI CA Core Subsystem: 5175151937Sjkim 5176193267SjkimFixed a problem in the ToDecimalString operator where the resulting string 5177193267Sjkimlength was incorrectly calculated. The length is now calculated exactly, 5178193267Sjkimeliminating incorrect AE_STRING_LIMIT exceptions. 5179151937Sjkim 5180193267SjkimFixed a problem in the ToHexString operator to allow a maximum 200 character 5181193267Sjkimstring to be produced. 5182151937Sjkim 5183193267SjkimFixed a problem in the internal string-to-buffer and buffer-to-buffer copy 5184193267Sjkimroutine where the length of the resulting buffer was not truncated to the 5185193267Sjkimnew size (if the target buffer already existed). 5186151937Sjkim 5187193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5188193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5189193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5190193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5191193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5192193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5193193267Sjkimthe compiler options used during generation. 5194151937Sjkim 5195151937Sjkim Previous Release: 5196151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5197151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 5198151937Sjkim Current Release: 5199151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5200151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 5201151937Sjkim 5202151937Sjkim 5203151937Sjkim2) iASL Compiler/Disassembler: 5204151937Sjkim 5205193267SjkimImplemented the new ACPI 3.0 resource template macros - DWordSpace, 5206193267SjkimExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 5207193267SjkimIncludes support in the disassembler. 5208151937Sjkim 5209193267SjkimImplemented support for the new (ACPI 3.0) parameter to the Register macro, 5210193267SjkimAccessSize. 5211151937Sjkim 5212193267SjkimFixed a problem where the _HE resource name for the Interrupt macro was 5213193267Sjkimreferencing bit 0 instead of bit 1. 5214151937Sjkim 5215193267SjkimImplemented check for maximum 255 interrupts in the Interrupt macro. 5216151937Sjkim 5217193267SjkimFixed a problem with the predefined resource descriptor names where 5218193267Sjkimincorrect AML code was generated if the offset within the resource buffer 5219193267Sjkimwas 0 or 1. The optimizer shortened the AML code to a single byte opcode 5220193267Sjkimbut did not update the surrounding package lengths. 5221151937Sjkim 5222193267SjkimChanges to the Dma macro: All channels within the channel list must be in 5223193267Sjkimthe range 0-7. Maximum 8 channels can be specified. BusMaster operand is 5224193267Sjkimoptional (default is BusMaster). 5225151937Sjkim 5226193267SjkimImplemented check for maximum 7 data bytes for the VendorShort macro. 5227151937Sjkim 5228193267SjkimThe ReadWrite parameter is now optional for the Memory32 and similar macros. 5229151937Sjkim 5230151937Sjkim---------------------------------------- 5231151937Sjkim03 December 2004. Summary of changes for version 20041203: 5232151937Sjkim 5233151937Sjkim1) ACPI CA Core Subsystem: 5234151937Sjkim 5235193267SjkimThe low-level field insertion/extraction code (exfldio) has been completely 5236193267Sjkimrewritten to eliminate unnecessary complexity, bugs, and boundary 5237193267Sjkimconditions. 5238151937Sjkim 5239193267SjkimFixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 5240193267Sjkimoperators where the input operand could be inadvertently deleted if no 5241193267Sjkimconversion was necessary (e.g., if the input to ToInteger was an Integer 5242193267Sjkimobject.) 5243151937Sjkim 5244193267SjkimFixed a problem with the ToDecimalString and ToHexString where an incorrect 5245193267Sjkimexception code was returned if the resulting string would be > 200 chars. 5246193267SjkimAE_STRING_LIMIT is now returned. 5247151937Sjkim 5248193267SjkimFixed a problem with the Concatenate operator where AE_OK was always 5249193267Sjkimreturned, even if the operation failed. 5250151937Sjkim 5251193267SjkimFixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 5252193267Sjkimsemaphores to be allocated. 5253151937Sjkim 5254193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5255193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5256193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5257193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5258193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5259193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5260193267Sjkimthe compiler options used during generation. 5261151937Sjkim 5262151937Sjkim Previous Release: 5263151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 5264151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 5265151937Sjkim Current Release: 5266151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5267151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 5268151937Sjkim 5269151937Sjkim 5270151937Sjkim2) iASL Compiler/Disassembler: 5271151937Sjkim 5272193267SjkimFixed typechecking for the ObjectType and SizeOf operators. Problem was 5273193267Sjkimrecently introduced in 20041119. 5274151937Sjkim 5275193267SjkimFixed a problem with the ToUUID macro where the upper nybble of each buffer 5276193267Sjkimbyte was inadvertently set to zero. 5277151937Sjkim 5278151937Sjkim---------------------------------------- 5279138287Smarks19 November 2004. Summary of changes for version 20041119: 5280138287Smarks 5281138287Smarks1) ACPI CA Core Subsystem: 5282138287Smarks 5283193267SjkimFixed a problem in the internal ConvertToInteger routine where new integers 5284193267Sjkimwere not truncated to 32 bits for 32-bit ACPI tables. This routine converts 5285193267Sjkimbuffers and strings to integers. 5286138287Smarks 5287193267SjkimImplemented support to store a value to an Index() on a String object. This 5288193267Sjkimis an ACPI 2.0 feature that had not yet been implemented. 5289138287Smarks 5290193267SjkimImplemented new behavior for storing objects to individual package elements 5291193267Sjkim(via the Index() operator). The previous behavior was to invoke the implicit 5292193267Sjkimconversion rules if an object was already present at the index. The new 5293193267Sjkimbehavior is to simply delete any existing object and directly store the new 5294193267Sjkimobject. Although the ACPI specification seems unclear on this subject, other 5295193267SjkimACPI implementations behave in this manner. (This is the root of the 5296193267SjkimAE_BAD_HEX_CONSTANT issue.) 5297138287Smarks 5298193267SjkimModified the RSDP memory scan mechanism to support the extended checksum for 5299193267SjkimACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 5300193267SjkimRSDP signature is found with a valid checksum. 5301138287Smarks 5302193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5303193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5304193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5305193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5306193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5307193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5308193267Sjkimthe compiler options used during generation. 5309138287Smarks 5310151937Sjkim Previous Release: 5311151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 5312151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 5313151937Sjkim Current Release: 5314151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 5315151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 5316138287Smarks 5317138287Smarks 5318138287Smarks2) iASL Compiler/Disassembler: 5319138287Smarks 5320138287SmarksFixed a missing semicolon in the aslcompiler.y file. 5321138287Smarks 5322138287Smarks---------------------------------------- 5323138287Smarks05 November 2004. Summary of changes for version 20041105: 5324138287Smarks 5325138287Smarks1) ACPI CA Core Subsystem: 5326138287Smarks 5327193267SjkimImplemented support for FADT revision 2. This was an interim table (between 5328193267SjkimACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 5329138287Smarks 5330193267SjkimImplemented optional support to allow uninitialized LocalX and ArgX 5331193267Sjkimvariables in a control method. The variables are initialized to an Integer 5332193267Sjkimobject with a value of zero. This support is enabled by setting the 5333193267SjkimAcpiGbl_EnableInterpreterSlack flag to TRUE. 5334138287Smarks 5335193267SjkimImplemented support for Integer objects for the SizeOf operator. Either 4 5336193267Sjkimor 8 is returned, depending on the current integer size (32-bit or 64-bit, 5337193267Sjkimdepending on the parent table revision). 5338138287Smarks 5339193267SjkimFixed a problem in the implementation of the SizeOf and ObjectType operators 5340193267Sjkimwhere the operand was resolved to a value too early, causing incorrect 5341193267Sjkimreturn values for some objects. 5342138287Smarks 5343138287SmarksFixed some possible memory leaks during exceptional conditions. 5344138287Smarks 5345193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5346193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5347193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5348193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5349193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5350193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5351193267Sjkimthe compiler options used during generation. 5352138287Smarks 5353138287Smarks Previous Release: 5354138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5355138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 5356138287Smarks Current Release: 5357138287Smarks Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 5358138287Smarks Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 5359138287Smarks 5360138287Smarks 5361138287Smarks2) iASL Compiler/Disassembler: 5362138287Smarks 5363138287SmarksImplemented support for all ACPI 3.0 reserved names and methods. 5364138287Smarks 5365193267SjkimImplemented all ACPI 3.0 grammar elements in the front-end, including 5366193267Sjkimsupport for semicolons. 5367138287Smarks 5368138287SmarksImplemented the ACPI 3.0 Function() and ToUUID() macros 5369138287Smarks 5370193267SjkimFixed a problem in the disassembler where a Scope() operator would not be 5371193267Sjkimemitted properly if the target of the scope was in another table. 5372138287Smarks 5373138287Smarks---------------------------------------- 5374138287Smarks15 October 2004. Summary of changes for version 20041015: 5375138287Smarks 5376193267SjkimNote: ACPI CA is currently undergoing an in-depth and complete formal 5377193267Sjkimevaluation to test/verify the following areas. Other suggestions are 5378193267Sjkimwelcome. This will result in an increase in the frequency of releases and 5379193267Sjkimthe number of bug fixes in the next few months. 5380138287Smarks - Functional tests for all ASL/AML operators 5381138287Smarks - All implicit/explicit type conversions 5382138287Smarks - Bit fields and operation regions 5383138287Smarks - 64-bit math support and 32-bit-only "truncated" math support 5384138287Smarks - Exceptional conditions, both compiler and interpreter 5385138287Smarks - Dynamic object deletion and memory leaks 5386138287Smarks - ACPI 3.0 support when implemented 5387138287Smarks - External interfaces to the ACPI subsystem 5388138287Smarks 5389138287Smarks 5390138287Smarks1) ACPI CA Core Subsystem: 5391138287Smarks 5392193267SjkimFixed two alignment issues on 64-bit platforms - within debug statements in 5393193267SjkimAcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 5394193267Sjkimfield within the non-aligned ACPI generic address structure. 5395138287Smarks 5396193267SjkimFixed a problem in the Increment and Decrement operators where incorrect 5397193267Sjkimoperand resolution could result in the inadvertent modification of the 5398193267Sjkimoriginal integer when the integer is passed into another method as an 5399193267Sjkimargument and the arg is then incremented/decremented. 5400138287Smarks 5401193267SjkimFixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 5402193267SjkimBCD number were truncated during conversion. 5403138287Smarks 5404193267SjkimFixed a problem in the ToDecimal operator where the length of the resulting 5405193267Sjkimstring could be set incorrectly too long if the input operand was a Buffer 5406193267Sjkimobject. 5407138287Smarks 5408193267SjkimFixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 5409193267Sjkimwithin a buffer would prematurely terminate a compare between buffer 5410193267Sjkimobjects. 5411138287Smarks 5412193267SjkimAdded a check for string overflow (>200 characters as per the ACPI 5413193267Sjkimspecification) during the Concatenate operator with two string operands. 5414138287Smarks 5415193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5416193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5417193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5418193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5419193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5420193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5421193267Sjkimthe compiler options used during generation. 5422138287Smarks 5423138287Smarks Previous Release: 5424138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5425138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 5426138287Smarks Current Release: 5427138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5428138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 5429138287Smarks 5430138287Smarks 5431167802Sjkim 5432138287Smarks2) iASL Compiler/Disassembler: 5433138287Smarks 5434193267SjkimAllow the use of the ObjectType operator on uninitialized Locals and Args 5435193267Sjkim(returns 0 as per the ACPI specification). 5436138287Smarks 5437193267SjkimFixed a problem where the compiler would fault if there was a syntax error 5438193267Sjkimin the FieldName of all of the various CreateXXXField operators. 5439138287Smarks 5440193267SjkimDisallow the use of lower case letters within the EISAID macro, as per the 5441193267SjkimACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 5442193267SjkimU is an uppercase letter and N is a hex digit. 5443138287Smarks 5444138287Smarks 5445138287Smarks---------------------------------------- 5446138287Smarks06 October 2004. Summary of changes for version 20041006: 5447138287Smarks 5448138287Smarks1) ACPI CA Core Subsystem: 5449138287Smarks 5450193267SjkimImplemented support for the ACPI 3.0 Timer operator. This ASL function 5451193267Sjkimimplements a 64-bit timer with 100 nanosecond granularity. 5452138287Smarks 5453193267SjkimDefined a new OSL interface, AcpiOsGetTimer. This interface is used to 5454193267Sjkimimplement the ACPI 3.0 Timer operator. This allows the host OS to implement 5455193267Sjkimthe timer with the best clock available. Also, it keeps the core subsystem 5456193267Sjkimout of the clock handling business, since the host OS (usually) performs 5457193267Sjkimthis function. 5458138287Smarks 5459193267SjkimFixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 5460193267Sjkimfunctions use a 64-bit address which is part of the packed ACPI Generic 5461193267SjkimAddress Structure. Since the structure is non-aligned, the alignment macros 5462193267Sjkimare now used to extract the address to a local variable before use. 5463138287Smarks 5464193267SjkimFixed a problem where the ToInteger operator assumed all input strings were 5465193267Sjkimhexadecimal. The operator now handles both decimal strings and hex strings 5466193267Sjkim(prefixed with "0x"). 5467138287Smarks 5468193267SjkimFixed a problem where the string length in the string object created as a 5469193267Sjkimresult of the internal ConvertToString procedure could be incorrect. This 5470193267Sjkimpotentially affected all implicit conversions and also the ToDecimalString 5471193267Sjkimand ToHexString operators. 5472138287Smarks 5473193267SjkimFixed two problems in the ToString operator. If the length parameter was 5474193267Sjkimzero, an incorrect string object was created and the value of the input 5475193267Sjkimlength parameter was inadvertently changed from zero to Ones. 5476138287Smarks 5477193267SjkimFixed a problem where the optional ResourceSource string in the ExtendedIRQ 5478193267Sjkimresource macro was ignored. 5479138287Smarks 5480193267SjkimSimplified the interfaces to the internal division functions, reducing code 5481193267Sjkimsize and complexity. 5482138287Smarks 5483193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5484193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5485193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5486193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5487193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5488193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5489193267Sjkimthe compiler options used during generation. 5490138287Smarks 5491138287Smarks Previous Release: 5492138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 5493138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 5494138287Smarks Current Release: 5495138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5496138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 5497138287Smarks 5498138287Smarks 5499138287Smarks2) iASL Compiler/Disassembler: 5500138287Smarks 5501138287SmarksImplemented support for the ACPI 3.0 Timer operator. 5502138287Smarks 5503193267SjkimFixed a problem where the Default() operator was inadvertently ignored in a 5504193267SjkimSwitch/Case block. This was a problem in the translation of the Switch 5505193267Sjkimstatement to If...Else pairs. 5506138287Smarks 5507193267SjkimAdded support to allow a standalone Return operator, with no parentheses (or 5508193267Sjkimoperands). 5509138287Smarks 5510193267SjkimFixed a problem with code generation for the ElseIf operator where the 5511193267Sjkimtranslated Else...If parse tree was improperly constructed leading to the 5512193267Sjkimloss of some code. 5513138287Smarks 5514138287Smarks---------------------------------------- 5515138287Smarks22 September 2004. Summary of changes for version 20040922: 5516138287Smarks 5517138287Smarks1) ACPI CA Core Subsystem: 5518138287Smarks 5519193267SjkimFixed a problem with the implementation of the LNot() operator where "Ones" 5520193267Sjkimwas not returned for the TRUE case. Changed the code to return Ones instead 5521193267Sjkimof (!Arg) which was usually 1. This change affects iASL constant folding for 5522193267Sjkimthis operator also. 5523138287Smarks 5524193267SjkimFixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 5525193267Sjkiminitialized properly -- Now zero the entire buffer in this case where the 5526193267Sjkimbuffer already exists. 5527138287Smarks 5528193267SjkimChanged the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 5529193267SjkimMilliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 5530193267Sjkimrelated code considerably. This will require changes/updates to all OS 5531193267Sjkiminterface layers (OSLs.) 5532138287Smarks 5533193267SjkimImplemented a new external interface, AcpiInstallExceptionHandler, to allow 5534193267Sjkima system exception handler to be installed. This handler is invoked upon any 5535193267Sjkimrun-time exception that occurs during control method execution. 5536138287Smarks 5537193267SjkimAdded support for the DSDT in AcpiTbFindTable. This allows the 5538138287SmarksDataTableRegion() operator to access the local copy of the DSDT. 5539138287Smarks 5540193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5541193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5542193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5543193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5544193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5545193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5546193267Sjkimthe compiler options used during generation. 5547138287Smarks 5548138287Smarks Previous Release: 5549138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 5550138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 5551138287Smarks Current Release: 5552138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 5553138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 5554138287Smarks 5555138287Smarks 5556138287Smarks2) iASL Compiler/Disassembler: 5557138287Smarks 5558193267SjkimFixed a problem with constant folding and the LNot operator. LNot was 5559193267Sjkimreturning 1 in the TRUE case, not Ones as per the ACPI specification. This 5560193267Sjkimcould result in the generation of an incorrect folded/reduced constant. 5561138287Smarks 5562193267SjkimEnd-Of-File is now allowed within a "//"-style comment. A parse error no 5563193267Sjkimlonger occurs if such a comment is at the very end of the input ASL source 5564193267Sjkimfile. 5565138287Smarks 5566193267SjkimImplemented the "-r" option to override the Revision in the table header. 5567193267SjkimThe initial use of this option will be to simplify the evaluation of the AML 5568193267Sjkiminterpreter by allowing a single ASL source module to be compiled for either 5569193267Sjkim32-bit or 64-bit integers. 5570138287Smarks 5571138287Smarks 5572138287Smarks---------------------------------------- 5573138287Smarks27 August 2004. Summary of changes for version 20040827: 5574138287Smarks 5575138287Smarks1) ACPI CA Core Subsystem: 5576138287Smarks 5577193267Sjkim- Implemented support for implicit object conversion in the non-numeric 5578193267Sjkimlogical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 5579193267SjkimLNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 5580193267Sjkimthe second operand is implicitly converted on the fly to match the type of 5581193267Sjkimthe first operand. For example: 5582138287Smarks 5583138287Smarks LEqual (Source1, Source2) 5584138287Smarks 5585193267SjkimSource1 and Source2 must each evaluate to an integer, a string, or a buffer. 5586193267SjkimThe data type of Source1 dictates the required type of Source2. Source2 is 5587193267Sjkimimplicitly converted if necessary to match the type of Source1. 5588138287Smarks 5589193267Sjkim- Updated and corrected the behavior of the string conversion support. The 5590193267Sjkimrules concerning conversion of buffers to strings (according to the ACPI 5591193267Sjkimspecification) are as follows: 5592138287Smarks 5593193267SjkimToDecimalString - explicit byte-wise conversion of buffer to string of 5594193267Sjkimdecimal values (0-255) separated by commas. ToHexString - explicit byte-wise 5595193267Sjkimconversion of buffer to string of hex values (0-FF) separated by commas. 5596193267SjkimToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 5597193267Sjkimcopy with no transform except NULL terminated. Any other implicit buffer-to- 5598193267Sjkimstring conversion - byte-wise conversion of buffer to string of hex values 5599193267Sjkim(0-FF) separated by spaces. 5600138287Smarks 5601138287Smarks- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 5602138287Smarks 5603193267Sjkim- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 5604193267Sjkimone byte too short in the case of a node in the root scope. This could 5605193267Sjkimcause a fault during debug output. 5606138287Smarks 5607193267Sjkim- Code and Data Size: Current and previous core subsystem library sizes are 5608193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5609193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5610193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5611193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5612193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5613193267Sjkimthe compiler options used during generation. 5614138287Smarks 5615138287Smarks Previous Release: 5616138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 5617138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 5618138287Smarks Current Release: 5619138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 5620138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 5621138287Smarks 5622138287Smarks 5623138287Smarks2) iASL Compiler/Disassembler: 5624138287Smarks 5625138287Smarks- Fixed a Linux generation error. 5626138287Smarks 5627138287Smarks 5628138287Smarks---------------------------------------- 5629138287Smarks16 August 2004. Summary of changes for version 20040816: 5630138287Smarks 5631138287Smarks1) ACPI CA Core Subsystem: 5632138287Smarks 5633193267SjkimDesigned and implemented support within the AML interpreter for the so- 5634193267Sjkimcalled "implicit return". This support returns the result of the last ASL 5635193267Sjkimoperation within a control method, in the absence of an explicit Return() 5636193267Sjkimoperator. A few machines depend on this behavior, even though it is not 5637193267Sjkimexplicitly supported by the ASL language. It is optional support that can 5638193267Sjkimbe enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 5639138287Smarks 5640193267SjkimRemoved support for the PCI_Config address space from the internal low level 5641193267Sjkimhardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 5642193267Sjkimsupport was not used internally, and would not work correctly anyway because 5643193267Sjkimthe PCI bus number and segment number were not supported. There are 5644193267Sjkimseparate interfaces for PCI configuration space access because of the unique 5645138287Smarksinterface. 5646138287Smarks 5647193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5648193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5649193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5650193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5651193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5652193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5653193267Sjkimthe compiler options used during generation. 5654138287Smarks 5655138287Smarks Previous Release: 5656138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5657138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 5658138287Smarks Current Release: 5659138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 5660138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 5661138287Smarks 5662138287Smarks 5663138287Smarks2) iASL Compiler/Disassembler: 5664138287Smarks 5665193267SjkimFixed a problem where constants in ASL expressions at the root level (not 5666193267Sjkimwithin a control method) could be inadvertently truncated during code 5667193267Sjkimgeneration. This problem was introduced in the 20040715 release. 5668138287Smarks 5669138287Smarks 5670138287Smarks---------------------------------------- 5671138287Smarks15 July 2004. Summary of changes for version 20040715: 5672138287Smarks 5673138287Smarks1) ACPI CA Core Subsystem: 5674138287Smarks 5675193267SjkimRestructured the internal HW GPE interfaces to pass/track the current state 5676193267Sjkimof interrupts (enabled/disabled) in order to avoid possible deadlock and 5677193267Sjkimincrease flexibility of the interfaces. 5678138287Smarks 5679193267SjkimImplemented a "lexicographical compare" for String and Buffer objects within 5680193267Sjkimthe logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 5681193267Sjkimas per further clarification to the ACPI specification. Behavior is similar 5682193267Sjkimto C library "strcmp". 5683138287Smarks 5684193267SjkimCompleted a major reduction in CPU stack use for the AcpiGetFirmwareTable 5685193267Sjkimexternal function. In the 32-bit non-debug case, the stack use has been 5686193267Sjkimreduced from 168 bytes to 32 bytes. 5687138287Smarks 5688193267SjkimDeployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 5689193267Sjkimwhose purpose is to allow the AML interpreter to forgive certain bad AML 5690193267Sjkimconstructs. Default setting is FALSE. 5691138287Smarks 5692193267SjkimImplemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 5693193267Sjkimsupport code. If enabled, it allows field access to go beyond the end of a 5694193267Sjkimregion definition if the field is within the region length rounded up to the 5695193267Sjkimnext access width boundary (a common coding error.) 5696138287Smarks 5697193267SjkimRenamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 5698193267SjkimACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 5699193267Sjkimsymbols are lowercased by the latest version of the AcpiSrc tool. 5700138287Smarks 5701193267SjkimThe prototypes for the PCI interfaces in acpiosxf.h have been updated to 5702193267Sjkimrename "Register" to simply "Reg" to prevent certain compilers from 5703193267Sjkimcomplaining. 5704138287Smarks 5705193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5706193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5707193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5708193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5709193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5710193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5711193267Sjkimthe compiler options used during generation. 5712138287Smarks 5713138287Smarks Previous Release: 5714138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5715138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 5716138287Smarks Current Release: 5717138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5718138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 5719138287Smarks 5720138287Smarks 5721138287Smarks2) iASL Compiler/Disassembler: 5722138287Smarks 5723193267SjkimImplemented full support for Package objects within the Case() operator. 5724193267SjkimNote: The Break() operator is currently not supported within Case blocks 5725193267Sjkim(TermLists) as there is some question about backward compatibility with ACPI 5726193267Sjkim1.0 interpreters. 5727138287Smarks 5728167802Sjkim 5729193267SjkimFixed a problem where complex terms were not supported properly within the 5730193267SjkimSwitch() operator. 5731138287Smarks 5732193267SjkimEliminated extraneous warning for compiler-emitted reserved names of the 5733193267Sjkimform "_T_x". (Used in Switch/Case operators.) 5734138287Smarks 5735193267SjkimEliminated optimization messages for "_T_x" objects and small constants 5736193267Sjkimwithin the DefinitionBlock operator. 5737138287Smarks 5738138287Smarks 5739138287Smarks---------------------------------------- 5740138287Smarks15 June 2004. Summary of changes for version 20040615: 5741138287Smarks 5742138287Smarks1) ACPI CA Core Subsystem: 5743138287Smarks 5744193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 5745193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 5746193267SjkimLLessEqual. 5747138287Smarks 5748193267SjkimAll directory names in the entire source package are lower case, as they 5749193267Sjkimwere in earlier releases. 5750138287Smarks 5751193267SjkimImplemented "Disassemble" command in the AML debugger that will disassemble 5752193267Sjkima single control method. 5753138287Smarks 5754193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5755193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5756193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5757193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5758193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5759193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5760193267Sjkimthe compiler options used during generation. 5761138287Smarks 5762138287Smarks Previous Release: 5763138287Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 5764138287Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 5765167802Sjkim 5766138287Smarks Current Release: 5767138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5768138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 5769138287Smarks 5770138287Smarks 5771138287Smarks2) iASL Compiler/Disassembler: 5772138287Smarks 5773193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 5774193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 5775193267SjkimLLessEqual. 5776138287Smarks 5777193267SjkimAll directory names in the entire source package are lower case, as they 5778193267Sjkimwere in earlier releases. 5779138287Smarks 5780193267SjkimFixed a fault when using the -g or -d<nofilename> options if the FADT was 5781193267Sjkimnot found. 5782138287Smarks 5783193267SjkimFixed an issue with the Windows version of the compiler where later versions 5784193267Sjkimof Windows place the FADT in the registry under the name "FADT" and not 5785193267Sjkim"FACP" as earlier versions did. This applies when using the -g or - 5786193267Sjkimd<nofilename> options. The compiler now looks for both strings as 5787193267Sjkimnecessary. 5788138287Smarks 5789193267SjkimFixed a problem with compiler namepath optimization where a namepath within 5790193267Sjkimthe Scope() operator could not be optimized if the namepath was a subpath of 5791193267Sjkimthe current scope path. 5792138287Smarks 5793138287Smarks---------------------------------------- 5794131440Smarks27 May 2004. Summary of changes for version 20040527: 5795131440Smarks 5796131440Smarks1) ACPI CA Core Subsystem: 5797131440Smarks 5798193267SjkimCompleted a new design and implementation for EBDA (Extended BIOS Data Area) 5799193267Sjkimsupport in the RSDP scan code. The original code improperly scanned for the 5800193267SjkimEBDA by simply scanning from memory location 0 to 0x400. The correct method 5801193267Sjkimis to first obtain the EBDA pointer from within the BIOS data area, then 5802193267Sjkimscan 1K of memory starting at the EBDA pointer. There appear to be few if 5803131440Smarksany machines that place the RSDP in the EBDA, however. 5804131440Smarks 5805193267SjkimIntegrated a fix for a possible fault during evaluation of BufferField 5806193267Sjkimarguments. Obsolete code that was causing the problem was removed. 5807131440Smarks 5808193267SjkimFound and fixed a problem in the Field Support Code where data could be 5809193267Sjkimcorrupted on a bit field read that starts on an aligned boundary but does 5810193267Sjkimnot end on an aligned boundary. Merged the read/write "datum length" 5811193267Sjkimcalculation code into a common procedure. 5812131440Smarks 5813131440SmarksRolled in a couple of changes to the FreeBSD-specific header. 5814131440Smarks 5815167802Sjkim 5816193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5817193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5818193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5819193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5820193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5821193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5822193267Sjkimthe compiler options used during generation. 5823131440Smarks 5824131440Smarks Previous Release: 5825131440Smarks Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5826131440Smarks Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5827131440Smarks Current Release: 5828131440Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 5829131440Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 5830131440Smarks 5831131440Smarks 5832131440Smarks2) iASL Compiler/Disassembler: 5833131440Smarks 5834193267SjkimFixed a generation warning produced by some overly-verbose compilers for a 5835193267Sjkim64-bit constant. 5836131440Smarks 5837131440Smarks---------------------------------------- 5838129684Snjl14 May 2004. Summary of changes for version 20040514: 5839129684Snjl 5840129684Snjl1) ACPI CA Core Subsystem: 5841129684Snjl 5842193267SjkimFixed a problem where hardware GPE enable bits sometimes not set properly 5843193267Sjkimduring and after GPE method execution. Result of 04/27 changes. 5844129684Snjl 5845129684SnjlRemoved extra "clear all GPEs" when sleeping/waking. 5846129684Snjl 5847193267SjkimRemoved AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 5848193267SjkimAcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 5849193267Sjkimthe new AcpiEv* calls as appropriate. 5850129684Snjl 5851193267SjkimACPI_OS_NAME was removed from the OS-specific headers. The default name is 5852193267Sjkimnow "Microsoft Windows NT" for maximum compatibility. However this can be 5853193267Sjkimchanged by modifying the acconfig.h file. 5854129684Snjl 5855193267SjkimAllow a single invocation of AcpiInstallNotifyHandler for a handler that 5856193267Sjkimtraps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 5857129684Snjl 5858193267SjkimRun _INI methods on ThermalZone objects. This is against the ACPI 5859193267Sjkimspecification, but there is apparently ASL code in the field that has these 5860193267Sjkim_INI methods, and apparently "other" AML interpreters execute them. 5861129684Snjl 5862193267SjkimPerformed a full 16/32/64 bit lint that resulted in some small changes. 5863129684Snjl 5864193267SjkimAdded a sleep simulation command to the AML debugger to test sleep code. 5865129684Snjl 5866193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5867193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5868193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5869193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5870193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5871193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5872193267Sjkimthe compiler options used during generation. 5873129684Snjl 5874129684Snjl Previous Release: 5875129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5876129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5877129684Snjl Current Release: 5878129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5879129684Snjl Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5880129684Snjl 5881129684Snjl---------------------------------------- 5882129684Snjl27 April 2004. Summary of changes for version 20040427: 5883129684Snjl 5884129684Snjl1) ACPI CA Core Subsystem: 5885129684Snjl 5886193267SjkimCompleted a major overhaul of the GPE handling within ACPI CA. There are 5887193267Sjkimnow three types of GPEs: wake-only, runtime-only, and combination wake/run. 5888193267SjkimThe only GPEs allowed to be combination wake/run are for button-style 5889193267Sjkimdevices such as a control-method power button, control-method sleep button, 5890193267Sjkimor a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 5891193267Sjkimreferenced by any _PRW methods are marked for "runtime" and hardware 5892193267Sjkimenabled. Any GPE that is referenced by a _PRW method is marked for "wake" 5893193267Sjkim(and disabled at runtime). However, at sleep time, only those GPEs that 5894193267Sjkimhave been specifically enabled for wake via the AcpiEnableGpe interface will 5895193267Sjkimactually be hardware enabled. 5896129684Snjl 5897193267SjkimA new external interface has been added, AcpiSetGpeType(), that is meant to 5898193267Sjkimbe used by device drivers to force a GPE to a particular type. It will be 5899193267Sjkimespecially useful for the drivers for the button devices mentioned above. 5900129684Snjl 5901193267SjkimCompleted restructuring of the ACPI CA initialization sequence so that 5902193267Sjkimdefault operation region handlers are installed before GPEs are initialized 5903193267Sjkimand the _PRW methods are executed. This will prevent errors when the _PRW 5904193267Sjkimmethods attempt to access system memory or I/O space. 5905129684Snjl 5906193267SjkimGPE enable/disable no longer reads the GPE enable register. We now keep the 5907193267Sjkimenable info for runtime and wake separate and in the GPE_EVENT_INFO. We 5908193267Sjkimthus no longer depend on the hardware to maintain these bits. 5909129684Snjl 5910193267SjkimAlways clear the wake status and fixed/GPE status bits before sleep, even 5911193267Sjkimfor state S5. 5912129684Snjl 5913193267SjkimImproved the AML debugger output for displaying the GPE blocks and their 5914193267Sjkimcurrent status. 5915129684Snjl 5916193267SjkimAdded new strings for the _OSI method, of the form "Windows 2001 SPx" where 5917193267Sjkimx = 0,1,2,3,4. 5918129684Snjl 5919193267SjkimFixed a problem where the physical address was incorrectly calculated when 5920193267Sjkimthe Load() operator was used to directly load from an Operation Region (vs. 5921193267Sjkimloading from a Field object.) Also added check for minimum table length for 5922193267Sjkimthis case. 5923129684Snjl 5924193267SjkimFix for multiple mutex acquisition. Restore original thread SyncLevel on 5925193267Sjkimmutex release. 5926129684Snjl 5927193267SjkimAdded ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 5928129684Snjlconsistency with the other fields returned. 5929129684Snjl 5930193267SjkimShrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 5931193267Sjkimstructure for each GPE in the system, so the size of this structure is 5932193267Sjkimimportant. 5933129684Snjl 5934193267SjkimCPU stack requirement reduction: Cleaned up the method execution and object 5935193267Sjkimevaluation paths so that now a parameter structure is passed, instead of 5936193267Sjkimcopying the various method parameters over and over again. 5937129684Snjl 5938193267SjkimIn evregion.c: Correctly exit and reenter the interpreter region if and 5939193267Sjkimonly if dispatching an operation region request to a user-installed handler. 5940193267SjkimDo not exit/reenter when dispatching to a default handler (e.g., default 5941193267Sjkimsystem memory or I/O handlers) 5942129684Snjl 5943129684Snjl 5944193267SjkimNotes for updating drivers for the new GPE support. The following changes 5945193267Sjkimmust be made to ACPI-related device drivers that are attached to one or more 5946193267SjkimGPEs: (This information will be added to the ACPI CA Programmer Reference.) 5947129684Snjl 5948193267Sjkim1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 5949193267Sjkimexplicitly call AcpiEnableGpe. 5950193267Sjkim2) There is a new interface called AcpiSetGpeType. This should be called 5951193267Sjkimbefore enabling the GPE. Also, this interface will automatically disable 5952193267Sjkimthe GPE if it is currently enabled. 5953129684Snjl3) AcpiEnableGpe no longer supports a GPE type flag. 5954129684Snjl 5955129684SnjlSpecific drivers that must be changed: 5956129684Snjl1) EC driver: 5957193267Sjkim AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 5958129684SnjlAeGpeHandler, NULL); 5959129684Snjl AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 5960129684Snjl AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 5961129684Snjl 5962129684Snjl2) Button Drivers (Power, Lid, Sleep): 5963129684SnjlRun _PRW method under parent device 5964129684SnjlIf _PRW exists: /* This is a control-method button */ 5965129684Snjl Extract GPE number and possibly GpeDevice 5966129684Snjl AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 5967129684Snjl AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 5968129684Snjl 5969193267SjkimFor all other devices that have _PRWs, we automatically set the GPE type to 5970193267SjkimACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 5971193267Sjkimmust be done on a selective basis, usually requiring some kind of user app 5972193267Sjkimto allow the user to pick the wake devices. 5973129684Snjl 5974129684Snjl 5975193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5976193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5977193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5978193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5979193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5980193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5981193267Sjkimthe compiler options used during generation. 5982129684Snjl 5983129684Snjl Previous Release: 5984129684Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5985129684Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5986129684Snjl Current Release: 5987167802Sjkim 5988129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5989129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5990129684Snjl 5991129684Snjl 5992129684Snjl 5993129684Snjl---------------------------------------- 5994128212Snjl02 April 2004. Summary of changes for version 20040402: 5995128212Snjl 5996128212Snjl1) ACPI CA Core Subsystem: 5997128212Snjl 5998193267SjkimFixed an interpreter problem where an indirect store through an ArgX 5999193267Sjkimparameter was incorrectly applying the "implicit conversion rules" during 6000193267Sjkimthe store. From the ACPI specification: "If the target is a method local or 6001193267Sjkimargument (LocalX or ArgX), no conversion is performed and the result is 6002193267Sjkimstored directly to the target". The new behavior is to disable implicit 6003193267Sjkimconversion during ALL stores to an ArgX. 6004128212Snjl 6005193267SjkimChanged the behavior of the _PRW method scan to ignore any and all errors 6006193267Sjkimreturned by a given _PRW. This prevents the scan from aborting from the 6007193267Sjkimfailure of any single _PRW. 6008128212Snjl 6009193267SjkimMoved the runtime configuration parameters from the global init procedure to 6010193267Sjkimstatic variables in acglobal.h. This will allow the host to override the 6011193267Sjkimdefault values easily. 6012128212Snjl 6013193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6014193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6015193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6016193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6017193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6018193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6019193267Sjkimthe compiler options used during generation. 6020128212Snjl 6021128212Snjl Previous Release: 6022128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 6023128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 6024128212Snjl Current Release: 6025128212Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 6026128212Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 6027128212Snjl 6028128212Snjl 6029128212Snjl2) iASL Compiler/Disassembler: 6030128212Snjl 6031193267SjkimiASL now fully disassembles SSDTs. However, External() statements are not 6032193267Sjkimgenerated automatically for unresolved symbols at this time. This is a 6033193267Sjkimplanned feature for future implementation. 6034128212Snjl 6035193267SjkimFixed a scoping problem in the disassembler that occurs when the type of the 6036193267Sjkimtarget of a Scope() operator is overridden. This problem caused an 6037193267Sjkimincorrectly nested internal namespace to be constructed. 6038128212Snjl 6039193267SjkimAny warnings or errors that are emitted during disassembly are now commented 6040193267Sjkimout automatically so that the resulting file can be recompiled without any 6041193267Sjkimhand editing. 6042128212Snjl 6043128212Snjl---------------------------------------- 6044128212Snjl26 March 2004. Summary of changes for version 20040326: 6045128212Snjl 6046128212Snjl1) ACPI CA Core Subsystem: 6047128212Snjl 6048193267SjkimImplemented support for "wake" GPEs via interaction between GPEs and the 6049193267Sjkim_PRW methods. Every GPE that is pointed to by one or more _PRWs is 6050193267Sjkimidentified as a WAKE GPE and by default will no longer be enabled at 6051193267Sjkimruntime. Previously, we were blindly enabling all GPEs with a corresponding 6052193267Sjkim_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 6053193267Sjkimbelieve this has been the cause of thousands of "spurious" GPEs on some 6054128212Snjlsystems. 6055128212Snjl 6056193267SjkimThis new GPE behavior is can be reverted to the original behavior (enable 6057193267SjkimALL GPEs at runtime) via a runtime flag. 6058128212Snjl 6059193267SjkimFixed a problem where aliased control methods could not access objects 6060193267Sjkimproperly. The proper scope within the namespace was not initialized 6061193267Sjkim(transferred to the target of the aliased method) before executing the 6062193267Sjkimtarget method. 6063128212Snjl 6064193267SjkimFixed a potential race condition on internal object deletion on the return 6065193267Sjkimobject in AcpiEvaluateObject. 6066128212Snjl 6067193267SjkimIntegrated a fix for resource descriptors where both _MEM and _MTP were 6068193267Sjkimbeing extracted instead of just _MEM. (i.e. bitmask was incorrectly too 6069193267Sjkimwide, 0x0F instead of 0x03.) 6070128212Snjl 6071193267SjkimAdded a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 6072193267Sjkimfault in some cases. 6073128212Snjl 6074128212SnjlUpdated Notify() values for debug statements in evmisc.c 6075128212Snjl 6076193267SjkimReturn proper status from AcpiUtMutexInitialize, not just simply AE_OK. 6077128212Snjl 6078193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6079193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6080193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6081193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6082193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6083193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6084193267Sjkimthe compiler options used during generation. 6085128212Snjl 6086128212Snjl Previous Release: 6087167802Sjkim 6088128212Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 6089128212Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 6090128212Snjl Current Release: 6091128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 6092128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 6093128212Snjl 6094128212Snjl---------------------------------------- 6095127175Snjl11 March 2004. Summary of changes for version 20040311: 6096127175Snjl 6097127175Snjl1) ACPI CA Core Subsystem: 6098127175Snjl 6099193267SjkimFixed a problem where errors occurring during the parse phase of control 6100193267Sjkimmethod execution did not abort cleanly. For example, objects created and 6101193267Sjkiminstalled in the namespace were not deleted. This caused all subsequent 6102193267Sjkiminvocations of the method to return the AE_ALREADY_EXISTS exception. 6103127175Snjl 6104193267SjkimImplemented a mechanism to force a control method to "Serialized" execution 6105193267Sjkimif the method attempts to create namespace objects. (The root of the 6106193267SjkimAE_ALREADY_EXISTS problem.) 6107127175Snjl 6108193267SjkimImplemented support for the predefined _OSI "internal" control method. 6109193267SjkimInitial supported strings are "Linux", "Windows 2000", "Windows 2001", and 6110193267Sjkim"Windows 2001.1", and can be easily upgraded for new strings as necessary. 6111193267SjkimThis feature will allow "other" operating systems to execute the fully 6112193267Sjkimtested, "Windows" code path through the ASL code 6113127175Snjl 6114193267SjkimGlobal Lock Support: Now allows multiple acquires and releases with any 6115193267Sjkiminternal thread. Removed concept of "owning thread" for this special mutex. 6116127175Snjl 6117193267SjkimFixed two functions that were inappropriately declaring large objects on the 6118193267SjkimCPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 6119193267Sjkimmethod execution considerably. 6120127175Snjl 6121193267SjkimFixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 6122193267SjkimS4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 6123127175Snjl 6124193267SjkimFixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 6125193267Sjkimdefined on the machine. 6126127175Snjl 6127193267SjkimImplemented two runtime options: One to force all control method execution 6128193267Sjkimto "Serialized" to mimic Windows behavior, another to disable _OSI support 6129193267Sjkimif it causes problems on a given machine. 6130127175Snjl 6131193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6132193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6133193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6134193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6135193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6136193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6137193267Sjkimthe compiler options used during generation. 6138127175Snjl 6139127175Snjl Previous Release: 6140127175Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 6141127175Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 6142127175Snjl Current Release: 6143127175Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 6144127175Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 6145127175Snjl 6146127175Snjl2) iASL Compiler/Disassembler: 6147127175Snjl 6148193267SjkimFixed an array size problem for FreeBSD that would cause the compiler to 6149193267Sjkimfault. 6150127175Snjl 6151127175Snjl---------------------------------------- 6152126372Snjl20 February 2004. Summary of changes for version 20040220: 6153126372Snjl 6154167802Sjkim 6155126372Snjl1) ACPI CA Core Subsystem: 6156126372Snjl 6157193267SjkimImplemented execution of _SxD methods for Device objects in the 6158126372SnjlGetObjectInfo interface. 6159126372Snjl 6160126372SnjlFixed calls to _SST method to pass the correct arguments. 6161126372Snjl 6162126372SnjlAdded a call to _SST on wake to restore to "working" state. 6163126372Snjl 6164193267SjkimCheck for End-Of-Buffer failure case in the WalkResources interface. 6165126372Snjl 6166193267SjkimIntegrated fix for 64-bit alignment issue in acglobal.h by moving two 6167193267Sjkimstructures to the beginning of the file. 6168126372Snjl 6169126372SnjlAfter wake, clear GPE status register(s) before enabling GPEs. 6170126372Snjl 6171193267SjkimAfter wake, clear/enable power button. (Perhaps we should clear/enable all 6172193267Sjkimfixed events upon wake.) 6173126372Snjl 6174126372SnjlFixed a couple of possible memory leaks in the Namespace manager. 6175126372Snjl 6176126372SnjlIntegrated latest acnetbsd.h file. 6177126372Snjl 6178126372Snjl---------------------------------------- 6179126372Snjl11 February 2004. Summary of changes for version 20040211: 6180126372Snjl 6181167802Sjkim 6182126372Snjl1) ACPI CA Core Subsystem: 6183126372Snjl 6184193267SjkimCompleted investigation and implementation of the call-by-reference 6185193267Sjkimmechanism for control method arguments. 6186126372Snjl 6187193267SjkimFixed a problem where a store of an object into an indexed package could 6188193267Sjkimfail if the store occurs within a different method than the method that 6189193267Sjkimcreated the package. 6190126372Snjl 6191193267SjkimFixed a problem where the ToDecimal operator could return incorrect results. 6192126372Snjl 6193193267SjkimFixed a problem where the CopyObject operator could fail on some of the more 6194193267Sjkimobscure objects (e.g., Reference objects.) 6195126372Snjl 6196193267SjkimImproved the output of the Debug object to display buffer, package, and 6197193267Sjkimindex objects. 6198126372Snjl 6199193267SjkimFixed a problem where constructs of the form "RefOf (ArgX)" did not return 6200193267Sjkimthe expected result. 6201126372Snjl 6202193267SjkimAdded permanent ACPI_REPORT_ERROR macros for all instances of the 6203126372SnjlACPI_AML_INTERNAL exception. 6204126372Snjl 6205126372SnjlIntegrated latest version of acfreebsd.h 6206126372Snjl 6207126372Snjl---------------------------------------- 6208126372Snjl16 January 2004. Summary of changes for version 20040116: 6209126372Snjl 6210193267SjkimThe purpose of this release is primarily to update the copyright years in 6211193267Sjkimeach module, thus causing a huge number of diffs. There are a few small 6212193267Sjkimfunctional changes, however. 6213126372Snjl 6214126372Snjl1) ACPI CA Core Subsystem: 6215126372Snjl 6216193267SjkimImproved error messages when there is a problem finding one or more of the 6217193267Sjkimrequired base ACPI tables 6218126372Snjl 6219126372SnjlReintroduced the definition of APIC_HEADER in actbl.h 6220126372Snjl 6221126372SnjlChanged definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 6222126372Snjl 6223126372SnjlRemoved extraneous reference to NewObj in dsmthdat.c 6224126372Snjl 6225126372Snjl2) iASL compiler 6226126372Snjl 6227193267SjkimFixed a problem introduced in December that disabled the correct disassembly 6228193267Sjkimof Resource Templates 6229126372Snjl 6230126372Snjl 6231126372Snjl---------------------------------------- 6232126372Snjl03 December 2003. Summary of changes for version 20031203: 6233126372Snjl 6234126372Snjl1) ACPI CA Core Subsystem: 6235126372Snjl 6236126372SnjlChanged the initialization of Operation Regions during subsystem 6237126372Snjlinit to perform two entire walks of the ACPI namespace; The first 6238126372Snjlto initialize the regions themselves, the second to execute the 6239126372Snjl_REG methods. This fixed some interdependencies across _REG 6240126372Snjlmethods found on some machines. 6241126372Snjl 6242126372SnjlFixed a problem where a Store(Local0, Local1) could simply update 6243126372Snjlthe object reference count, and not create a new copy of the 6244126372Snjlobject if the Local1 is uninitialized. 6245126372Snjl 6246126372SnjlImplemented support for the _SST reserved method during sleep 6247126372Snjltransitions. 6248126372Snjl 6249126372SnjlImplemented support to clear the SLP_TYP and SLP_EN bits when 6250126372Snjlwaking up, this is apparently required by some machines. 6251126372Snjl 6252193267SjkimWhen sleeping, clear the wake status only if SleepState is not S5. 6253126372Snjl 6254126372SnjlFixed a problem in AcpiRsExtendedIrqResource() where an incorrect 6255126372Snjlpointer arithmetic advanced a string pointer too far. 6256126372Snjl 6257126372SnjlFixed a problem in AcpiTbGetTablePtr() where a garbage pointer 6258126372Snjlcould be returned if the requested table has not been loaded. 6259126372Snjl 6260193267SjkimWithin the support for IRQ resources, restructured the handling of 6261126372Snjlthe active and edge/level bits. 6262126372Snjl 6263126372SnjlFixed a few problems in AcpiPsxExecute() where memory could be 6264126372Snjlleaked under certain error conditions. 6265126372Snjl 6266126372SnjlImproved error messages for the cases where the ACPI mode could 6267126372Snjlnot be entered. 6268126372Snjl 6269126372SnjlCode and Data Size: Current and previous core subsystem library 6270126372Snjlsizes are shown below. These are the code and data sizes for the 6271126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6272126372Snjlthese values do not include any ACPI driver or OSPM code. The 6273126372Snjldebug version of the code includes the debug output trace 6274126372Snjlmechanism and has a much larger code and data size. Note that 6275193267Sjkimthese values will vary depending on the efficiency of the compiler 6276126372Snjland the compiler options used during generation. 6277126372Snjl 6278126372Snjl Previous Release (20031029): 6279126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 6280126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 6281126372Snjl Current Release: 6282126372Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 6283126372Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 6284126372Snjl 6285126372Snjl2) iASL Compiler/Disassembler: 6286126372Snjl 6287126372SnjlImplemented a fix for the iASL disassembler where a bad index was 6288126372Snjlgenerated. This was most noticeable on 64-bit platforms 6289126372Snjl 6290126372Snjl 6291126372Snjl---------------------------------------- 6292126372Snjl29 October 2003. Summary of changes for version 20031029: 6293126372Snjl 6294126372Snjl1) ACPI CA Core Subsystem: 6295126372Snjl 6296167802Sjkim 6297126372SnjlFixed a problem where a level-triggered GPE with an associated 6298126372Snjl_Lxx control method was incorrectly cleared twice. 6299126372Snjl 6300126372SnjlFixed a problem with the Field support code where an access can 6301126372Snjloccur beyond the end-of-region if the field is non-aligned but 6302126372Snjlextends to the very end of the parent region (resulted in an 6303126372SnjlAE_AML_REGION_LIMIT exception.) 6304126372Snjl 6305126372SnjlFixed a problem with ACPI Fixed Events where an RT Clock handler 6306193267Sjkimwould not get invoked on an RTC event. The RTC event bitmasks for 6307126372Snjlthe PM1 registers were not being initialized properly. 6308126372Snjl 6309126372SnjlImplemented support for executing _STA and _INI methods for 6310126372SnjlProcessor objects. Although this is currently not part of the 6311193267SjkimACPI specification, there is existing ASL code that depends on the 6312126372Snjlinit-time execution of these methods. 6313126372Snjl 6314126372SnjlImplemented and deployed a GetDescriptorName function to decode 6315126372Snjlthe various types of internal descriptors. Guards against null 6316126372Snjldescriptors during debug output also. 6317126372Snjl 6318126372SnjlImplemented and deployed a GetNodeName function to extract the 4- 6319193267Sjkimcharacter namespace node name. This function simplifies the debug 6320193267Sjkimand error output, as well as guarding against null pointers during 6321126372Snjloutput. 6322126372Snjl 6323126372SnjlImplemented and deployed the ACPI_FORMAT_UINT64 helper macro to 6324126372Snjlsimplify the debug and error output of 64-bit integers. This 6325126372Snjlmacro replaces the HIDWORD and LODWORD macros for dumping these 6326126372Snjlintegers. 6327126372Snjl 6328126372SnjlUpdated the implementation of the Stall() operator to only call 6329126372SnjlAcpiOsStall(), and also return an error if the operand is larger 6330126372Snjlthan 255. This preserves the required behavior of not 6331126372Snjlrelinquishing the processor, as would happen if AcpiOsSleep() was 6332126372Snjlcalled for "long stalls". 6333126372Snjl 6334126372SnjlConstructs of the form "Store(LocalX,LocalX)" where LocalX is not 6335126372Snjlinitialized are now treated as NOOPs. 6336126372Snjl 6337126372SnjlCleaned up a handful of warnings during 64-bit generation. 6338126372Snjl 6339126372SnjlFixed a reported error where and incorrect GPE number was passed 6340126372Snjlto the GPE dispatch handler. This value is only used for error 6341193267Sjkimoutput, however. Used this opportunity to clean up and streamline 6342126372Snjlthe GPE dispatch code. 6343126372Snjl 6344126372SnjlCode and Data Size: Current and previous core subsystem library 6345126372Snjlsizes are shown below. These are the code and data sizes for the 6346126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6347126372Snjlthese values do not include any ACPI driver or OSPM code. The 6348167802Sjkim 6349126372Snjldebug version of the code includes the debug output trace 6350126372Snjlmechanism and has a much larger code and data size. Note that 6351193267Sjkimthese values will vary depending on the efficiency of the compiler 6352126372Snjland the compiler options used during generation. 6353126372Snjl 6354126372Snjl Previous Release (20031002): 6355126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 6356126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 6357126372Snjl Current Release: 6358126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 6359126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 6360126372Snjl 6361126372Snjl 6362126372Snjl2) iASL Compiler/Disassembler: 6363126372Snjl 6364193267SjkimUpdated the iASL compiler to return an error if the operand to the 6365126372SnjlStall() operator is larger than 255. 6366126372Snjl 6367126372Snjl 6368126372Snjl---------------------------------------- 6369126372Snjl02 October 2003. Summary of changes for version 20031002: 6370126372Snjl 6371126372Snjl 6372126372Snjl1) ACPI CA Core Subsystem: 6373126372Snjl 6374126372SnjlFixed a problem with Index Fields where the index was not 6375126372Snjlincremented for fields that require multiple writes to the 6376126372Snjlindex/data registers (Fields that are wider than the data 6377126372Snjlregister.) 6378126372Snjl 6379126372SnjlFixed a problem with all Field objects where a write could go 6380126372Snjlbeyond the end-of-field if the field was larger than the access 6381193267Sjkimgranularity and therefore required multiple writes to complete the 6382126372Snjlrequest. An extra write beyond the end of the field could happen 6383126372Snjlinadvertently. 6384126372Snjl 6385126372SnjlFixed a problem with Index Fields where a BUFFER_OVERFLOW error 6386126372Snjlwould incorrectly be returned if the width of the Data Register 6387126372Snjlwas larger than the specified field access width. 6388126372Snjl 6389126372SnjlCompleted fixes for LoadTable() and Unload() and verified their 6390126372Snjloperation. Implemented full support for the "DdbHandle" object 6391126372Snjlthroughout the ACPI CA subsystem. 6392126372Snjl 6393126372SnjlImplemented full support for the MADT and ECDT tables in the ACPI 6394126372SnjlCA header files. Even though these tables are not directly 6395126372Snjlconsumed by ACPI CA, the header definitions are useful for ACPI 6396126372Snjldevice drivers. 6397126372Snjl 6398126372SnjlIntegrated resource descriptor fixes posted to the Linux ACPI 6399126372Snjllist. This included checks for minimum descriptor length, and 6400126372Snjlsupport for trailing NULL strings within descriptors that have 6401126372Snjloptional string elements. 6402126372Snjl 6403126372SnjlCode and Data Size: Current and previous core subsystem library 6404126372Snjlsizes are shown below. These are the code and data sizes for the 6405126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6406126372Snjlthese values do not include any ACPI driver or OSPM code. The 6407126372Snjldebug version of the code includes the debug output trace 6408126372Snjlmechanism and has a much larger code and data size. Note that 6409193267Sjkimthese values will vary depending on the efficiency of the compiler 6410126372Snjland the compiler options used during generation. 6411126372Snjl 6412126372Snjl Previous Release (20030918): 6413126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 6414126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 6415126372Snjl Current Release: 6416126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 6417126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 6418126372Snjl 6419126372Snjl 6420126372Snjl2) iASL Compiler: 6421126372Snjl 6422126372SnjlImplemented detection of non-ASCII characters within the input 6423126372Snjlsource ASL file. This catches attempts to compile binary (AML) 6424126372Snjlfiles early in the compile, with an informative error message. 6425126372Snjl 6426126372SnjlFixed a problem where the disassembler would fault if the output 6427193267Sjkimfilename could not be generated or if the output file could not be 6428126372Snjlopened. 6429126372Snjl 6430126372Snjl---------------------------------------- 6431126372Snjl18 September 2003. Summary of changes for version 20030918: 6432126372Snjl 6433126372Snjl 6434126372Snjl1) ACPI CA Core Subsystem: 6435126372Snjl 6436126372SnjlFound and fixed a longstanding problem with the late execution of 6437126372Snjlthe various deferred AML opcodes (such as Operation Regions, 6438126372SnjlBuffer Fields, Buffers, and Packages). If the name string 6439126372Snjlspecified for the name of the new object placed the object in a 6440126372Snjlscope other than the current scope, the initialization/execution 6441126372Snjlof the opcode failed. The solution to this problem was to 6442126372Snjlimplement a mechanism where the late execution of such opcodes 6443126372Snjldoes not attempt to lookup/create the name a second time in an 6444126372Snjlincorrect scope. This fixes the "region size computed 6445126372Snjlincorrectly" problem. 6446126372Snjl 6447193267SjkimFixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 6448126372SnjlGlobal Lock AE_BAD_PARAMETER error. 6449126372Snjl 6450126372SnjlFixed several 64-bit issues with prototypes, casting and data 6451126372Snjltypes. 6452126372Snjl 6453126372SnjlRemoved duplicate prototype from acdisasm.h 6454126372Snjl 6455126372SnjlFixed an issue involving EC Operation Region Detach (Shaohua Li) 6456126372Snjl 6457126372SnjlCode and Data Size: Current and previous core subsystem library 6458126372Snjlsizes are shown below. These are the code and data sizes for the 6459126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6460126372Snjlthese values do not include any ACPI driver or OSPM code. The 6461126372Snjldebug version of the code includes the debug output trace 6462126372Snjlmechanism and has a much larger code and data size. Note that 6463193267Sjkimthese values will vary depending on the efficiency of the compiler 6464126372Snjland the compiler options used during generation. 6465126372Snjl 6466126372Snjl Previous Release: 6467167802Sjkim 6468126372Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 6469126372Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 6470126372Snjl Current Release: 6471126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 6472126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 6473126372Snjl 6474126372Snjl 6475126372Snjl2) Linux: 6476126372Snjl 6477126372SnjlFixed the AcpiOsSleep implementation in osunixxf.c to pass the 6478126372Snjlcorrect sleep time in seconds. 6479126372Snjl 6480126372Snjl---------------------------------------- 6481126372Snjl14 July 2003. Summary of changes for version 20030619: 6482126372Snjl 6483126372Snjl1) ACPI CA Core Subsystem: 6484126372Snjl 6485126372SnjlParse SSDTs in order discovered, as opposed to reverse order 6486126372Snjl(Hrvoje Habjanic) 6487126372Snjl 6488126372SnjlFixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 6489126372SnjlKlausner, 6490126372Snjl Nate Lawson) 6491126372Snjl 6492126372Snjl 6493126372Snjl2) Linux: 6494126372Snjl 6495126372SnjlDynamically allocate SDT list (suggested by Andi Kleen) 6496126372Snjl 6497126372Snjlproc function return value cleanups (Andi Kleen) 6498126372Snjl 6499126372SnjlCorrectly handle NMI watchdog during long stalls (Andrew Morton) 6500126372Snjl 6501126372SnjlMake it so acpismp=force works (reported by Andrew Morton) 6502126372Snjl 6503126372Snjl 6504126372Snjl---------------------------------------- 6505117521Snjl19 June 2003. Summary of changes for version 20030619: 6506117521Snjl 6507117521Snjl1) ACPI CA Core Subsystem: 6508117521Snjl 6509193267SjkimFix To/FromBCD, eliminating the need for an arch-specific #define. 6510117521Snjl 6511117521SnjlDo not acquire a semaphore in the S5 shutdown path. 6512117521Snjl 6513117521SnjlFix ex_digits_needed for 0. (Takayoshi Kochi) 6514117521Snjl 6515117521SnjlFix sleep/stall code reversal. (Andi Kleen) 6516117521Snjl 6517117521SnjlRevert a change having to do with control method calling 6518117521Snjlsemantics. 6519117521Snjl 6520117521Snjl2) Linux: 6521117521Snjl 6522117521Snjlacpiphp update (Takayoshi Kochi) 6523117521Snjl 6524117521SnjlExport acpi_disabled for sonypi (Stelian Pop) 6525117521Snjl 6526117521SnjlMention acpismp=force in config help 6527117521Snjl 6528117521SnjlRe-add acpitable.c and acpismp=force. This improves backwards 6529167802Sjkim 6530193267Sjkimcompatibility and also cleans up the code to a significant degree. 6531117521Snjl 6532117521SnjlAdd ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 6533117521Snjl 6534117521Snjl---------------------------------------- 6535117521Snjl22 May 2003. Summary of changes for version 20030522: 6536117521Snjl 6537117521Snjl1) ACPI CA Core Subsystem: 6538117521Snjl 6539117521SnjlFound and fixed a reported problem where an AE_NOT_FOUND error 6540117521Snjloccurred occasionally during _BST evaluation. This turned out to 6541117521Snjlbe an Owner ID allocation issue where a called method did not get 6542193267Sjkima new ID assigned to it. Eventually, (after 64k calls), the Owner 6543193267SjkimID UINT16 would wraparound so that the ID would be the same as the 6544126372Snjlcaller's and the called method would delete the caller's 6545117521Snjlnamespace. 6546117521Snjl 6547117521SnjlImplemented extended error reporting for control methods that are 6548117521Snjlaborted due to a run-time exception. Output includes the exact 6549193267SjkimAML instruction that caused the method abort, a dump of the method 6550126372Snjllocals and arguments at the time of the abort, and a trace of all 6551126372Snjlnested control method calls. 6552117521Snjl 6553117521SnjlModified the interpreter to allow the creation of buffers of zero 6554117521Snjllength from the AML code. Implemented new code to ensure that no 6555117521Snjlattempt is made to actually allocate a memory buffer (of length 6556193267Sjkimzero) - instead, a simple buffer object with a NULL buffer pointer 6557126372Snjland length zero is created. A warning is no longer issued when 6558126372Snjlthe AML attempts to create a zero-length buffer. 6559117521Snjl 6560117521SnjlImplemented a workaround for the "leading asterisk issue" in 6561117521Snjl_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 6562117521Snjlasterisk is automatically removed if present in any HID, UID, or 6563117521SnjlCID strings. The iASL compiler will still flag this asterisk as 6564117521Snjlan error, however. 6565117521Snjl 6566193267SjkimImplemented full support for _CID methods that return a package of 6567193267Sjkimmultiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 6568126372Snjlnow additionally returns a device _CID list if present. This 6569126372Snjlrequired a change to the external interface in order to pass an 6570126372SnjlACPI_BUFFER object as a parameter since the _CID list is of 6571117521Snjlvariable length. 6572117521Snjl 6573117521SnjlFixed a problem with the new AE_SAME_HANDLER exception where 6574117521Snjlhandler initialization code did not know about this exception. 6575117521Snjl 6576117521SnjlCode and Data Size: Current and previous core subsystem library 6577117521Snjlsizes are shown below. These are the code and data sizes for the 6578117521Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6579117521Snjlthese values do not include any ACPI driver or OSPM code. The 6580117521Snjldebug version of the code includes the debug output trace 6581117521Snjlmechanism and has a much larger code and data size. Note that 6582193267Sjkimthese values will vary depending on the efficiency of the compiler 6583126372Snjland the compiler options used during generation. 6584117521Snjl 6585117521Snjl Previous Release (20030509): 6586117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 6587117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 6588117521Snjl Current Release: 6589117521Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 6590117521Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 6591117521Snjl 6592117521Snjl 6593117521Snjl2) Linux: 6594117521Snjl 6595117521SnjlFixed a bug in which we would reinitialize the ACPI interrupt 6596193267Sjkimafter it was already working, thus disabling all ACPI and the IRQs 6597126372Snjlfor any other device sharing the interrupt. (Thanks to Stian 6598117521SnjlJordet) 6599117521Snjl 6600117521SnjlToshiba driver update (John Belmonte) 6601117521Snjl 6602117521SnjlReturn only 0 or 1 for our interrupt handler status (Andrew 6603117521SnjlMorton) 6604117521Snjl 6605117521Snjl 6606117521Snjl3) iASL Compiler: 6607117521Snjl 6608117521SnjlFixed a reported problem where multiple (nested) ElseIf() 6609117521Snjlstatements were not handled correctly by the compiler, resulting 6610117521Snjlin incorrect warnings and incorrect AML code. This was a problem 6611117521Snjlin both the ASL parser and the code generator. 6612117521Snjl 6613117521Snjl 6614117521Snjl4) Documentation: 6615117521Snjl 6616193267SjkimAdded changes to existing interfaces, new exception codes, and new 6617126372Snjltext concerning reference count object management versus garbage 6618126372Snjlcollection. 6619117521Snjl 6620117521Snjl---------------------------------------- 6621117521Snjl09 May 2003. Summary of changes for version 20030509. 6622117521Snjl 6623117521Snjl 6624117521Snjl1) ACPI CA Core Subsystem: 6625117521Snjl 6626117521SnjlChanged the subsystem initialization sequence to hold off 6627193267Sjkiminstallation of address space handlers until the hardware has been 6628193267Sjkiminitialized and the system has entered ACPI mode. This is because 6629126372Snjlthe installation of space handlers can cause _REG methods to be 6630193267Sjkimrun. Previously, the _REG methods could potentially be run before 6631126372SnjlACPI mode was enabled. 6632117521Snjl 6633193267SjkimFixed some memory leak issues related to address space handler and 6634126372Snjlnotify handler installation. There were some problems with the 6635126372Snjlreference count mechanism caused by the fact that the handler 6636117521Snjlobjects are shared across several namespace objects. 6637117521Snjl 6638117521SnjlFixed a reported problem where reference counts within the 6639117521Snjlnamespace were not properly updated when named objects created by 6640117521Snjlmethod execution were deleted. 6641117521Snjl 6642117521SnjlFixed a reported problem where multiple SSDTs caused a deletion 6643117521Snjlissue during subsystem termination. Restructured the table data 6644117521Snjlstructures to simplify the linked lists and the related code. 6645117521Snjl 6646117521SnjlFixed a problem where the table ID associated with secondary 6647193267Sjkimtables (SSDTs) was not being propagated into the namespace objects 6648126372Snjlcreated by those tables. This would only present a problem for 6649126372Snjltables that are unloaded at run-time, however. 6650117521Snjl 6651117521SnjlUpdated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 6652117521Snjltype as the length parameter (instead of UINT32). 6653117521Snjl 6654117521SnjlSolved a long-standing problem where an ALREADY_EXISTS error 6655117521Snjlappears on various systems. This problem could happen when there 6656117521Snjlare multiple PCI_Config operation regions under a single PCI root 6657117521Snjlbus. This doesn't happen very frequently, but there are some 6658117521Snjlsystems that do this in the ASL. 6659117521Snjl 6660117521SnjlFixed a reported problem where the internal DeleteNode function 6661117521Snjlwas incorrectly handling the case where a namespace node was the 6662117521Snjlfirst in the parent's child list, and had additional peers (not 6663117521Snjlthe only child, but first in the list of children.) 6664117521Snjl 6665193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6666126372Snjlbelow. These are the code and data sizes for the acpica.lib 6667126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6668126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6669126372Snjlversion of the code includes the debug output trace mechanism and 6670193267Sjkimhas a much larger code and data size. Note that these values will 6671126372Snjlvary depending on the efficiency of the compiler and the compiler 6672126372Snjloptions used during generation. 6673117521Snjl 6674117521Snjl Previous Release 6675117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 6676117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 6677117521Snjl Current Release: 6678117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 6679117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 6680117521Snjl 6681117521Snjl 6682117521Snjl2) Linux: 6683117521Snjl 6684117521SnjlAllow ":" in OS override string (Ducrot Bruno) 6685117521Snjl 6686117521SnjlKobject fix (Greg KH) 6687117521Snjl 6688117521Snjl 6689117521Snjl3 iASL Compiler/Disassembler: 6690117521Snjl 6691117521SnjlFixed a problem in the generation of the C source code files (AML 6692117521Snjlis emitted in C source statements for BIOS inclusion) where the 6693193267SjkimAscii dump that appears within a C comment at the end of each line 6694126372Snjlcould cause a compile time error if the AML sequence happens to 6695126372Snjlhave an open comment or close comment sequence embedded. 6696117521Snjl 6697117521Snjl 6698117521Snjl---------------------------------------- 6699117521Snjl24 April 2003. Summary of changes for version 20030424. 6700117521Snjl 6701117521Snjl 6702117521Snjl1) ACPI CA Core Subsystem: 6703117521Snjl 6704117521SnjlSupport for big-endian systems has been implemented. Most of the 6705193267Sjkimsupport has been invisibly added behind big-endian versions of the 6706126372SnjlACPI_MOVE_* macros. 6707117521Snjl 6708117521SnjlFixed a problem in AcpiHwDisableGpeBlock() and 6709117521SnjlAcpiHwClearGpeBlock() where an incorrect offset was passed to the 6710117521Snjllow level hardware write routine. The offset parameter was 6711193267Sjkimactually eliminated from the low level read/write routines because 6712126372Snjlthey had become obsolete. 6713117521Snjl 6714117521SnjlFixed a problem where a handler object was deleted twice during 6715117521Snjlthe removal of a fixed event handler. 6716117521Snjl 6717117521Snjl 6718117521Snjl2) Linux: 6719117521Snjl 6720117521SnjlA fix for SMP systems with link devices was contributed by 6721167802Sjkim 6722117521SnjlCompaq's Dan Zink. 6723117521Snjl 6724117521Snjl(2.5) Return whether we handled the interrupt in our IRQ handler. 6725193267Sjkim(Linux ISRs no longer return void, so we can propagate the handler 6726126372Snjlreturn value from the ACPI CA core back to the OS.) 6727117521Snjl 6728117521Snjl 6729167802Sjkim 6730117521Snjl3) Documentation: 6731117521Snjl 6732117521SnjlThe ACPI CA Programmer Reference has been updated to reflect new 6733117521Snjlinterfaces and changes to existing interfaces. 6734117521Snjl 6735117521Snjl---------------------------------------- 6736117521Snjl28 March 2003. Summary of changes for version 20030328. 6737117521Snjl 6738117521Snjl1) ACPI CA Core Subsystem: 6739117521Snjl 6740117521SnjlThe GPE Block Device support has been completed. New interfaces 6741117521Snjlare AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 6742117521Snjlinterfaces (enable, disable, clear, getstatus) have been split 6743117521Snjlinto separate interfaces for Fixed Events and General Purpose 6744117521SnjlEvents (GPEs) in order to support GPE Block Devices properly. 6745117521Snjl 6746117521SnjlFixed a problem where the error message "Failed to acquire 6747117521Snjlsemaphore" would appear during operations on the embedded 6748117521Snjlcontroller (EC). 6749117521Snjl 6750193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6751126372Snjlbelow. These are the code and data sizes for the acpica.lib 6752126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6753126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6754126372Snjlversion of the code includes the debug output trace mechanism and 6755193267Sjkimhas a much larger code and data size. Note that these values will 6756126372Snjlvary depending on the efficiency of the compiler and the compiler 6757126372Snjloptions used during generation. 6758117521Snjl 6759117521Snjl Previous Release 6760117521Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 6761117521Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 6762117521Snjl Current Release: 6763117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 6764117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 6765117521Snjl 6766117521Snjl 6767117521Snjl---------------------------------------- 6768114237Snjl28 February 2003. Summary of changes for version 20030228. 6769114237Snjl 6770114237Snjl 6771114237Snjl1) ACPI CA Core Subsystem: 6772114237Snjl 6773114237SnjlThe GPE handling and dispatch code has been completely overhauled 6774114237Snjlin preparation for support of GPE Block Devices (ID ACPI0006). 6775114237SnjlThis affects internal data structures and code only; there should 6776114237Snjlbe no differences visible externally. One new file has been 6777114237Snjladded, evgpeblk.c 6778114237Snjl 6779114237SnjlThe FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 6780114237Snjlfields that are used to determine the GPE block lengths. The 6781114237SnjlREGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 6782193267Sjkimstructures are ignored. This is per the ACPI specification but it 6783126372Snjlisn't very clear. The full 256 Block 0/1 GPEs are now supported 6784193267Sjkim(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 6785114237Snjl 6786114237SnjlIn the SCI interrupt handler, removed the read of the PM1_CONTROL 6787114237Snjlregister to look at the SCI_EN bit. On some machines, this read 6788114237Snjlcauses an SMI event and greatly slows down SCI events. (This may 6789114237Snjlin fact be the cause of slow battery status response on some 6790114237Snjlsystems.) 6791114237Snjl 6792193267SjkimFixed a problem where a store of a NULL string to a package object 6793126372Snjlcould cause the premature deletion of the object. This was seen 6794126372Snjlduring execution of the battery _BIF method on some systems, 6795126372Snjlresulting in no battery data being returned. 6796114237Snjl 6797114237SnjlAdded AcpiWalkResources interface to simplify parsing of resource 6798114237Snjllists. 6799114237Snjl 6800193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6801126372Snjlbelow. These are the code and data sizes for the acpica.lib 6802126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6803126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6804126372Snjlversion of the code includes the debug output trace mechanism and 6805193267Sjkimhas a much larger code and data size. Note that these values will 6806126372Snjlvary depending on the efficiency of the compiler and the compiler 6807126372Snjloptions used during generation. 6808114237Snjl 6809114237Snjl Previous Release 6810114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6811114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6812114237Snjl Current Release: 6813114237Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 6814114237Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 6815114237Snjl 6816114237Snjl 6817114237Snjl2) Linux 6818114237Snjl 6819114237SnjlS3 fixes (Ole Rohne) 6820114237Snjl 6821114237SnjlUpdate ACPI PHP driver with to use new acpi_walk_resource API 6822114237Snjl(Bjorn Helgaas) 6823114237Snjl 6824114237SnjlAdd S4BIOS support (Pavel Machek) 6825114237Snjl 6826114237SnjlMap in entire table before performing checksum (John Stultz) 6827114237Snjl 6828193267SjkimExpand the mem= cmdline to allow the specification of reserved and 6829126372SnjlACPI DATA blocks (Pavel Machek) 6830114237Snjl 6831114237SnjlNever use ACPI on VISWS 6832114237Snjl 6833114237SnjlFix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 6834114237Snjl 6835114237SnjlRevert a change that allowed P_BLK lengths to be 4 or 5. This is 6836114237Snjlcausing us to think that some systems support C2 when they really 6837114237Snjldon't. 6838114237Snjl 6839114237SnjlDo not count processor objects for non-present CPUs (Thanks to 6840114237SnjlDominik Brodowski) 6841114237Snjl 6842114237Snjl 6843114237Snjl3) iASL Compiler: 6844114237Snjl 6845114237SnjlFixed a problem where ASL include files could not be found and 6846114237Snjlopened. 6847114237Snjl 6848114237SnjlAdded support for the _PDC reserved name. 6849114237Snjl 6850114237Snjl 6851117521Snjl---------------------------------------- 6852114237Snjl22 January 2003. Summary of changes for version 20030122. 6853114237Snjl 6854114237Snjl 6855114237Snjl1) ACPI CA Core Subsystem: 6856114237Snjl 6857114237SnjlAdded a check for constructs of the form: Store (Local0, Local0) 6858114237Snjlwhere Local0 is not initialized. Apparently, some BIOS 6859193267Sjkimprogrammers believe that this is a NOOP. Since this store doesn't 6860126372Snjldo anything anyway, the new prototype behavior will ignore this 6861126372Snjlerror. This is a case where we can relax the strict checking in 6862126372Snjlthe interpreter in the name of compatibility. 6863114237Snjl 6864114237Snjl 6865114237Snjl2) Linux 6866114237Snjl 6867114237SnjlThe AcpiSrc Source Conversion Utility has been released with the 6868114237SnjlLinux package for the first time. This is the utility that is 6869193267Sjkimused to convert the ACPI CA base source code to the Linux version. 6870114237Snjl 6871114237Snjl(Both) Handle P_BLK lengths shorter than 6 more gracefully 6872114237Snjl 6873114237Snjl(Both) Move more headers to include/acpi, and delete an unused 6874114237Snjlheader. 6875114237Snjl 6876114237Snjl(Both) Move drivers/acpi/include directory to include/acpi 6877114237Snjl 6878114237Snjl(Both) Boot functions don't use cmdline, so don't pass it around 6879114237Snjl 6880114237Snjl(Both) Remove include of unused header (Adrian Bunk) 6881114237Snjl 6882114237Snjl(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 6883114237Snjlthe 6884193267Sjkimformer now also includes the latter, acpiphp.h only needs the one, 6885126372Snjlnow. 6886114237Snjl 6887193267Sjkim(2.5) Make it possible to select method of bios restoring after S3 6888114237Snjlresume. [=> no more ugly ifdefs] (Pavel Machek) 6889114237Snjl 6890114237Snjl(2.5) Make proc write interfaces work (Pavel Machek) 6891114237Snjl 6892114237Snjl(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 6893114237Snjl 6894114237Snjl(2.5) Break out ACPI Perf code into its own module, under cpufreq 6895114237Snjl(Dominik Brodowski) 6896114237Snjl 6897114237Snjl(2.4) S4BIOS support (Ducrot Bruno) 6898114237Snjl 6899114237Snjl(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 6900114237SnjlVisinoni) 6901114237Snjl 6902114237Snjl 6903114237Snjl3) iASL Compiler: 6904114237Snjl 6905114237SnjlAdded support to disassemble SSDT and PSDTs. 6906114237Snjl 6907114237SnjlImplemented support to obtain SSDTs from the Windows registry if 6908114237Snjlavailable. 6909114237Snjl 6910114237Snjl 6911102550Siwasaki---------------------------------------- 6912114237Snjl09 January 2003. Summary of changes for version 20030109. 6913114237Snjl 6914114237Snjl1) ACPI CA Core Subsystem: 6915114237Snjl 6916114237SnjlChanged the behavior of the internal Buffer-to-String conversion 6917193267Sjkimfunction. The current ACPI specification states that the contents 6918126372Snjlof the buffer are "converted to a string of two-character 6919126372Snjlhexadecimal numbers, each separated by a space". Unfortunately, 6920193267Sjkimthis definition is not backwards compatible with existing ACPI 1.0 6921193267Sjkimimplementations (although the behavior was not defined in the ACPI 6922126372Snjl1.0 specification). The new behavior simply copies data from the 6923193267Sjkimbuffer to the string until a null character is found or the end of 6924126372Snjlthe buffer is reached. The new String object is always null 6925126372Snjlterminated. This problem was seen during the generation of _BIF 6926126372Snjlbattery data where incorrect strings were returned for battery 6927126372Snjltype, etc. This will also require an errata to the ACPI 6928126372Snjlspecification. 6929114237Snjl 6930114237SnjlRenamed all instances of NATIVE_UINT and NATIVE_INT to 6931114237SnjlACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 6932114237Snjl 6933114237SnjlCopyright in all module headers (both Linux and non-Linux) has be 6934114237Snjlupdated to 2003. 6935114237Snjl 6936193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6937126372Snjlbelow. These are the code and data sizes for the acpica.lib 6938126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6939126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6940126372Snjlversion of the code includes the debug output trace mechanism and 6941193267Sjkimhas a much larger code and data size. Note that these values will 6942126372Snjlvary depending on the efficiency of the compiler and the compiler 6943126372Snjloptions used during generation. 6944114237Snjl 6945114237Snjl Previous Release 6946114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6947114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6948114237Snjl Current Release: 6949114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6950114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6951114237Snjl 6952114237Snjl 6953114237Snjl2) Linux 6954114237Snjl 6955114237SnjlFixed an oops on module insertion/removal (Matthew Tippett) 6956114237Snjl 6957114237Snjl(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 6958114237Snjl 6959114237Snjl(2.5) Replace pr_debug (Randy Dunlap) 6960114237Snjl 6961114237Snjl(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 6962114237Snjl 6963114237Snjl(Both) Eliminate spawning of thread from timer callback, in favor 6964114237Snjlof schedule_work() 6965114237Snjl 6966114237Snjl(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 6967114237Snjl 6968114237Snjl(Both) Added define for Fixed Function HW region (Matthew Wilcox) 6969114237Snjl 6970114237Snjl(Both) Add missing statics to button.c (Pavel Machek) 6971114237Snjl 6972114237SnjlSeveral changes have been made to the source code translation 6973114237Snjlutility that generates the Linux Code in order to make the code 6974114237Snjlmore "Linux-like": 6975114237Snjl 6976114237SnjlAll typedefs on structs and unions have been removed in keeping 6977114237Snjlwith the Linux coding style. 6978114237Snjl 6979114237SnjlRemoved the non-Linux SourceSafe module revision number from each 6980114237Snjlmodule header. 6981114237Snjl 6982114237SnjlCompleted major overhaul of symbols to be lowercased for linux. 6983114237SnjlDoubled the number of symbols that are lowercased. 6984114237Snjl 6985114237SnjlFixed a problem where identifiers within procedure headers and 6986114237Snjlwithin quotes were not fully lower cased (they were left with a 6987114237Snjlstarting capital.) 6988114237Snjl 6989114237SnjlSome C macros whose only purpose is to allow the generation of 16- 6990114237Snjlbit code are now completely removed in the Linux code, increasing 6991114237Snjlreadability and maintainability. 6992114237Snjl 6993114237Snjl---------------------------------------- 6994114237Snjl 6995114237Snjl12 December 2002. Summary of changes for version 20021212. 6996114237Snjl 6997114237Snjl 6998114237Snjl1) ACPI CA Core Subsystem: 6999114237Snjl 7000114237SnjlFixed a problem where the creation of a zero-length AML Buffer 7001114237Snjlwould cause a fault. 7002114237Snjl 7003193267SjkimFixed a problem where a Buffer object that pointed to a static AML 7004126372Snjlbuffer (in an ACPI table) could inadvertently be deleted, causing 7005126372Snjlmemory corruption. 7006114237Snjl 7007114237SnjlFixed a problem where a user buffer (passed in to the external 7008114237SnjlACPI CA interfaces) could be overwritten if the buffer was too 7009114237Snjlsmall to complete the operation, causing memory corruption. 7010114237Snjl 7011114237SnjlFixed a problem in the Buffer-to-String conversion code where a 7012114237Snjlstring of length one was always returned, regardless of the size 7013114237Snjlof the input Buffer object. 7014114237Snjl 7015114237SnjlRemoved the NATIVE_CHAR data type across the entire source due to 7016114237Snjllack of need and lack of consistent use. 7017114237Snjl 7018193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7019126372Snjlbelow. These are the code and data sizes for the acpica.lib 7020126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7021126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7022126372Snjlversion of the code includes the debug output trace mechanism and 7023193267Sjkimhas a much larger code and data size. Note that these values will 7024126372Snjlvary depending on the efficiency of the compiler and the compiler 7025126372Snjloptions used during generation. 7026114237Snjl 7027114237Snjl Previous Release 7028114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 7029114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 7030114237Snjl Current Release: 7031114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7032114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7033114237Snjl 7034114237Snjl 7035114237Snjl---------------------------------------- 7036114237Snjl05 December 2002. Summary of changes for version 20021205. 7037114237Snjl 7038114237Snjl1) ACPI CA Core Subsystem: 7039114237Snjl 7040114237SnjlFixed a problem where a store to a String or Buffer object could 7041114237Snjlcause corruption of the DSDT if the object type being stored was 7042114237Snjlthe same as the target object type and the length of the object 7043114237Snjlbeing stored was equal to or smaller than the original (existing) 7044114237Snjltarget object. This was seen to cause corruption of battery _BIF 7045114237Snjlbuffers if the _BIF method modified the buffer on the fly. 7046114237Snjl 7047193267SjkimFixed a problem where an internal error was generated if a control 7048126372Snjlmethod invocation was used in an OperationRegion, Buffer, or 7049126372SnjlPackage declaration. This was caused by the deferred parsing of 7050126372Snjlthe control method and thus the deferred creation of the internal 7051126372Snjlmethod object. The solution to this problem was to create the 7052126372Snjlinternal method object at the moment the method is encountered in 7053126372Snjlthe first pass - so that subsequent references to the method will 7054126372Snjlable to obtain the required parameter count and thus properly 7055126372Snjlparse the method invocation. This problem presented itself as an 7056126372SnjlAE_AML_INTERNAL during the pass 1 parse phase during table load. 7057114237Snjl 7058114237SnjlFixed a problem where the internal String object copy routine did 7059193267Sjkimnot always allocate sufficient memory for the target String object 7060126372Snjland caused memory corruption. This problem was seen to cause 7061126372Snjl"Allocation already present in list!" errors as memory allocation 7062126372Snjlbecame corrupted. 7063114237Snjl 7064193267SjkimImplemented a new function for the evaluation of namespace objects 7065126372Snjlthat allows the specification of the allowable return object 7066126372Snjltypes. This simplifies a lot of code that checks for a return 7067126372Snjlobject of one or more specific objects returned from the 7068114237Snjlevaluation (such as _STA, etc.) This may become and external 7069114237Snjlfunction if it would be useful to ACPI-related drivers. 7070114237Snjl 7071114237SnjlCompleted another round of prefixing #defines with "ACPI_" for 7072114237Snjlclarity. 7073114237Snjl 7074114237SnjlCompleted additional code restructuring to allow more modular 7075114237Snjllinking for iASL compiler and AcpiExec. Several files were split 7076114237Snjlcreating new files. New files: nsparse.c dsinit.c evgpe.c 7077114237Snjl 7078114237SnjlImplemented an abort mechanism to terminate an executing control 7079193267Sjkimmethod via the AML debugger. This feature is useful for debugging 7080126372Snjlcontrol methods that depend (wait) for specific hardware 7081126372Snjlresponses. 7082114237Snjl 7083193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7084126372Snjlbelow. These are the code and data sizes for the acpica.lib 7085126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7086126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7087126372Snjlversion of the code includes the debug output trace mechanism and 7088193267Sjkimhas a much larger code and data size. Note that these values will 7089126372Snjlvary depending on the efficiency of the compiler and the compiler 7090126372Snjloptions used during generation. 7091114237Snjl 7092114237Snjl Previous Release 7093114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7094114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 7095114237Snjl Current Release: 7096114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 7097114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 7098114237Snjl 7099114237Snjl 7100114237Snjl2) iASL Compiler/Disassembler 7101114237Snjl 7102114237SnjlFixed a compiler code generation problem for "Interrupt" Resource 7103114237SnjlDescriptors. If specified in the ASL, the optional "Resource 7104114237SnjlSource Index" and "Resource Source" fields were not inserted into 7105114237Snjlthe correct location within the AML resource descriptor, creating 7106114237Snjlan invalid descriptor. 7107114237Snjl 7108193267SjkimFixed a disassembler problem for "Interrupt" resource descriptors. 7109126372SnjlThe optional "Resource Source Index" and "Resource Source" fields 7110126372Snjlwere ignored. 7111114237Snjl 7112114237Snjl 7113114237Snjl---------------------------------------- 7114114237Snjl22 November 2002. Summary of changes for version 20021122. 7115114237Snjl 7116114237Snjl 7117114237Snjl1) ACPI CA Core Subsystem: 7118114237Snjl 7119114237SnjlFixed a reported problem where an object stored to a Method Local 7120114237Snjlor Arg was not copied to a new object during the store - the 7121114237Snjlobject pointer was simply copied to the Local/Arg. This caused 7122114237Snjlall subsequent operations on the Local/Arg to also affect the 7123114237Snjloriginal source of the store operation. 7124114237Snjl 7125114237SnjlFixed a problem where a store operation to a Method Local or Arg 7126114237Snjlwas not completed properly if the Local/Arg contained a reference 7127114237Snjl(from RefOf) to a named field. The general-purpose store-to- 7128114237Snjlnamespace-node code is now used so that this case is handled 7129114237Snjlautomatically. 7130114237Snjl 7131193267SjkimFixed a problem where the internal object copy routine would cause 7132126372Snjla protection fault if the object being copied was a Package and 7133126372Snjlcontained either 1) a NULL package element or 2) a nested sub- 7134114237Snjlpackage. 7135114237Snjl 7136114237SnjlFixed a problem with the GPE initialization that resulted from an 7137114237Snjlambiguity in the ACPI specification. One section of the 7138114237Snjlspecification states that both the address and length of the GPE 7139193267Sjkimblock must be zero if the block is not supported. Another section 7140126372Snjlimplies that only the address need be zero if the block is not 7141193267Sjkimsupported. The code has been changed so that both the address and 7142126372Snjlthe length must be non-zero to indicate a valid GPE block (i.e., 7143126372Snjlif either the address or the length is zero, the GPE block is 7144126372Snjlinvalid.) 7145114237Snjl 7146193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7147126372Snjlbelow. These are the code and data sizes for the acpica.lib 7148126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7149126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7150126372Snjlversion of the code includes the debug output trace mechanism and 7151193267Sjkimhas a much larger code and data size. Note that these values will 7152126372Snjlvary depending on the efficiency of the compiler and the compiler 7153126372Snjloptions used during generation. 7154114237Snjl 7155114237Snjl Previous Release 7156114237Snjl Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 7157114237Snjl Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 7158114237Snjl Current Release: 7159114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7160114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 7161114237Snjl 7162114237Snjl 7163114237Snjl2) Linux 7164114237Snjl 7165114237SnjlCleaned up EC driver. Exported an external EC read/write 7166114237Snjlinterface. By going through this, other drivers (most notably 7167114237Snjlsonypi) will be able to serialize access to the EC. 7168114237Snjl 7169114237Snjl 7170114237Snjl3) iASL Compiler/Disassembler 7171114237Snjl 7172114237SnjlImplemented support to optionally generate include files for both 7173114237SnjlASM and C (the -i switch). This simplifies BIOS development by 7174114237Snjlautomatically creating include files that contain external 7175114237Snjldeclarations for the symbols that are created within the 7176167802Sjkim 7177114237Snjl(optionally generated) ASM and C AML source files. 7178114237Snjl 7179114237Snjl 7180114237Snjl---------------------------------------- 7181107325Siwasaki15 November 2002. Summary of changes for version 20021115. 7182104470Siwasaki 7183107325Siwasaki1) ACPI CA Core Subsystem: 7184107325Siwasaki 7185114237SnjlFixed a memory leak problem where an error during resolution of 7186167802Sjkim 7187114237Snjlmethod arguments during a method invocation from another method 7188114237Snjlfailed to cleanup properly by deleting all successfully resolved 7189114237Snjlargument objects. 7190107325Siwasaki 7191114237SnjlFixed a problem where the target of the Index() operator was not 7192114237Snjlcorrectly constructed if the source object was a package. This 7193114237Snjlproblem has not been detected because the use of a target operand 7194114237Snjlwith Index() is very rare. 7195107325Siwasaki 7196107325SiwasakiFixed a problem with the Index() operator where an attempt was 7197107325Siwasakimade to delete the operand objects twice. 7198107325Siwasaki 7199107325SiwasakiFixed a problem where an attempt was made to delete an operand 7200114237Snjltwice during execution of the CondRefOf() operator if the target 7201114237Snjldid not exist. 7202107325Siwasaki 7203114237SnjlImplemented the first of perhaps several internal create object 7204193267Sjkimfunctions that create and initialize a specific object type. This 7205126372Snjlconsolidates duplicated code wherever the object is created, thus 7206126372Snjlshrinking the size of the subsystem. 7207107325Siwasaki 7208114237SnjlImplemented improved debug/error messages for errors that occur 7209114237Snjlduring nested method invocations. All executing method pathnames 7210193267Sjkimare displayed (with the error) as the call stack is unwound - thus 7211126372Snjlsimplifying debug. 7212107325Siwasaki 7213107325SiwasakiFixed a problem introduced in the 10/02 release that caused 7214114237Snjlpremature deletion of a buffer object if a buffer was used as an 7215114237SnjlASL operand where an integer operand is required (Thus causing an 7216193267Sjkimimplicit object conversion from Buffer to Integer.) The change in 7217126372Snjlthe 10/02 release was attempting to fix a memory leak (albeit 7218114237Snjlincorrectly.) 7219107325Siwasaki 7220193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7221126372Snjlbelow. These are the code and data sizes for the acpica.lib 7222126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7223126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7224126372Snjlversion of the code includes the debug output trace mechanism and 7225193267Sjkimhas a much larger code and data size. Note that these values will 7226126372Snjlvary depending on the efficiency of the compiler and the compiler 7227126372Snjloptions used during generation. 7228107325Siwasaki 7229107325Siwasaki Previous Release 7230107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 7231107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 7232107325Siwasaki Current Release: 7233107325Siwasaki Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 7234107325Siwasaki Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 7235107325Siwasaki 7236107325Siwasaki 7237107325Siwasaki2) Linux 7238107325Siwasaki 7239114237SnjlChanged the implementation of the ACPI semaphores to use down() 7240114237Snjlinstead of down_interruptable(). It is important that the 7241114237Snjlexecution of ACPI control methods not be interrupted by signals. 7242114237SnjlMethods must run to completion, or the system may be left in an 7243114237Snjlunknown/unstable state. 7244107325Siwasaki 7245193267SjkimFixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 7246126372Snjl(Shawn Starr) 7247107325Siwasaki 7248107325Siwasaki 7249107325Siwasaki3) iASL Compiler/Disassembler 7250107325Siwasaki 7251107325Siwasaki 7252114237SnjlChanged the default location of output files. All output files 7253114237Snjlare now placed in the current directory by default instead of in 7254114237Snjlthe directory of the source file. This change may affect some 7255114237Snjlexisting makefiles, but it brings the behavior of the compiler in 7256114237Snjlline with other similar tools. The location of the output files 7257114237Snjlcan be overridden with the -p command line switch. 7258107325Siwasaki 7259114237Snjl 7260107325Siwasaki---------------------------------------- 7261107325Siwasaki11 November 2002. Summary of changes for version 20021111. 7262107325Siwasaki 7263107325Siwasaki 7264114237Snjl0) ACPI Specification 2.0B is released and is now available at: 7265114237Snjlhttp://www.acpi.info/index.html 7266107325Siwasaki 7267107325Siwasaki 7268107325Siwasaki1) ACPI CA Core Subsystem: 7269107325Siwasaki 7270107325SiwasakiImplemented support for the ACPI 2.0 SMBus Operation Regions. 7271114237SnjlThis includes the early detection and handoff of the request to 7272114237Snjlthe SMBus region handler (avoiding all of the complex field 7273107325Siwasakisupport code), and support for the bidirectional return packet 7274107325Siwasakifrom an SMBus write operation. This paves the way for the 7275107325Siwasakidevelopment of SMBus drivers in each host operating system. 7276107325Siwasaki 7277107325SiwasakiFixed a problem where the semaphore WAIT_FOREVER constant was 7278107325Siwasakidefined as 32 bits, but must be 16 bits according to the ACPI 7279107325Siwasakispecification. This had the side effect of causing ASL 7280107325SiwasakiMutex/Event timeouts even though the ASL code requested a wait 7281107325Siwasakiforever. Changed all internal references to the ACPI timeout 7282193267Sjkimparameter to 16 bits to prevent future problems. Changed the name 7283126372Snjlof WAIT_FOREVER to ACPI_WAIT_FOREVER. 7284107325Siwasaki 7285193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7286126372Snjlbelow. These are the code and data sizes for the acpica.lib 7287126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7288126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7289126372Snjlversion of the code includes the debug output trace mechanism and 7290193267Sjkimhas a much larger code and data size. Note that these values will 7291126372Snjlvary depending on the efficiency of the compiler and the compiler 7292126372Snjloptions used during generation. 7293107325Siwasaki 7294107325Siwasaki Previous Release 7295107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7296107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 7297107325Siwasaki Current Release: 7298107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 7299107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 7300107325Siwasaki 7301107325Siwasaki 7302107325Siwasaki2) Linux 7303107325Siwasaki 7304107325SiwasakiModule loading/unloading fixes (John Cagle) 7305107325Siwasaki 7306107325Siwasaki 7307107325Siwasaki3) iASL Compiler/Disassembler 7308107325Siwasaki 7309107325SiwasakiAdded support for the SMBBlockProcessCall keyword (ACPI 2.0) 7310107325Siwasaki 7311107325SiwasakiImplemented support for the disassembly of all SMBus protocol 7312107325Siwasakikeywords (SMBQuick, SMBWord, etc.) 7313107325Siwasaki 7314107325Siwasaki---------------------------------------- 7315107325Siwasaki01 November 2002. Summary of changes for version 20021101. 7316107325Siwasaki 7317107325Siwasaki 7318107325Siwasaki1) ACPI CA Core Subsystem: 7319107325Siwasaki 7320193267SjkimFixed a problem where platforms that have a GPE1 block but no GPE0 7321126372Snjlblock were not handled correctly. This resulted in a "GPE 7322114237Snjloverlap" error message. GPE0 is no longer required. 7323107325Siwasaki 7324107325SiwasakiRemoved code added in the previous release that inserted nodes 7325114237Snjlinto the namespace in alphabetical order. This caused some side- 7326114237Snjleffects on various machines. The root cause of the problem is 7327114237Snjlstill under investigation since in theory, the internal ordering 7328114237Snjlof the namespace nodes should not matter. 7329107325Siwasaki 7330107325Siwasaki 7331114237SnjlEnhanced error reporting for the case where a named object is not 7332114237Snjlfound during control method execution. The full ACPI namepath 7333114237Snjl(name reference) of the object that was not found is displayed in 7334114237Snjlthis case. 7335107325Siwasaki 7336193267SjkimNote: as a result of the overhaul of the namespace object types in 7337126372Snjlthe previous release, the namespace nodes for the predefined 7338114237Snjlscopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 7339114237Snjlinstead of ACPI_TYPE_ANY. This simplifies the namespace 7340114237Snjlmanagement code but may affect code that walks the namespace tree 7341114237Snjllooking for specific object types. 7342114237Snjl 7343193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7344126372Snjlbelow. These are the code and data sizes for the acpica.lib 7345126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7346126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7347126372Snjlversion of the code includes the debug output trace mechanism and 7348193267Sjkimhas a much larger code and data size. Note that these values will 7349126372Snjlvary depending on the efficiency of the compiler and the compiler 7350126372Snjloptions used during generation. 7351107325Siwasaki 7352107325Siwasaki Previous Release 7353107325Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 7354107325Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 7355107325Siwasaki Current Release: 7356107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7357107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 7358107325Siwasaki 7359107325Siwasaki 7360107325Siwasaki2) Linux 7361107325Siwasaki 7362107325SiwasakiFixed a problem introduced in the previous release where the 7363193267SjkimProcessor and Thermal objects were not recognized and installed in 7364193267Sjkim/proc. This was related to the scope type change described above. 7365107325Siwasaki 7366107325Siwasaki 7367107325Siwasaki3) iASL Compiler/Disassembler 7368107325Siwasaki 7369114237SnjlImplemented the -g option to get all of the required ACPI tables 7370114237Snjlfrom the registry and save them to files (Windows version of the 7371193267Sjkimcompiler only.) The required tables are the FADT, FACS, and DSDT. 7372107325Siwasaki 7373114237SnjlAdded ACPI table checksum validation during table disassembly in 7374114237Snjlorder to catch corrupted tables. 7375107325Siwasaki 7376107325Siwasaki 7377107325Siwasaki---------------------------------------- 7378107325Siwasaki22 October 2002. Summary of changes for version 20021022. 7379107325Siwasaki 7380107325Siwasaki1) ACPI CA Core Subsystem: 7381107325Siwasaki 7382114237SnjlImplemented a restriction on the Scope operator that the target 7383114237Snjlmust already exist in the namespace at the time the operator is 7384114237Snjlencountered (during table load or method execution). In other 7385114237Snjlwords, forward references are not allowed and Scope() cannot 7386114237Snjlcreate a new object. This changes the previous behavior where the 7387193267Sjkiminterpreter would create the name if not found. This new behavior 7388126372Snjlcorrectly enables the search-to-root algorithm during namespace 7389126372Snjllookup of the target name. Because of this upsearch, this fixes 7390126372Snjlthe known Compaq _SB_.OKEC problem and makes both the AML 7391126372Snjlinterpreter and iASL compiler compatible with other ACPI 7392114237Snjlimplementations. 7393107325Siwasaki 7394114237SnjlCompleted a major overhaul of the internal ACPI object types for 7395114237Snjlthe ACPI Namespace and the associated operand objects. Many of 7396114237Snjlthese types had become obsolete with the introduction of the two- 7397114237Snjlpass namespace load. This cleanup simplifies the code and makes 7398114237Snjlthe entire namespace load mechanism much clearer and easier to 7399114237Snjlunderstand. 7400107325Siwasaki 7401114237SnjlImproved debug output for tracking scope opening/closing to help 7402114237Snjldiagnose scoping issues. The old scope name as well as the new 7403114237Snjlscope name are displayed. Also improved error messages for 7404114237Snjlproblems with ASL Mutex objects and error messages for GPE 7405114237Snjlproblems. 7406107325Siwasaki 7407107325SiwasakiCleaned up the namespace dump code, removed obsolete code. 7408107325Siwasaki 7409114237SnjlAll string output (for all namespace/object dumps) now uses the 7410193267Sjkimcommon ACPI string output procedure which handles escapes properly 7411126372Snjland does not emit non-printable characters. 7412107325Siwasaki 7413107325SiwasakiFixed some issues with constants in the 64-bit version of the 7414107325Siwasakilocal C library (utclib.c) 7415107325Siwasaki 7416107325Siwasaki 7417107325Siwasaki2) Linux 7418107325Siwasaki 7419107325SiwasakiEC Driver: No longer attempts to acquire the Global Lock at 7420107325Siwasakiinterrupt level. 7421107325Siwasaki 7422107325Siwasaki 7423107325Siwasaki3) iASL Compiler/Disassembler 7424107325Siwasaki 7425193267SjkimImplemented ACPI 2.0B grammar change that disallows all Type 1 and 7426126372Snjl2 opcodes outside of a control method. This means that the 7427114237Snjl"executable" operators (versus the "namespace" operators) cannot 7428193267Sjkimbe used at the table level; they can only be used within a control 7429126372Snjlmethod. 7430107325Siwasaki 7431107325SiwasakiImplemented the restriction on the Scope() operator where the 7432107325Siwasakitarget must already exist in the namespace at the time the 7433114237Snjloperator is encountered (during ASL compilation). In other words, 7434193267Sjkimforward references are not allowed and Scope() cannot create a new 7435126372Snjlobject. This makes the iASL compiler compatible with other ACPI 7436193267Sjkimimplementations and makes the Scope() implementation adhere to the 7437126372SnjlACPI specification. 7438107325Siwasaki 7439193267SjkimFixed a problem where namepath optimization for the Alias operator 7440193267Sjkimwas optimizing the wrong path (of the two namepaths.) This caused 7441126372Snjla "Missing alias link" error message. 7442107325Siwasaki 7443114237SnjlFixed a problem where an "unknown reserved name" warning could be 7444114237Snjlincorrectly generated for names like "_SB" when the trailing 7445114237Snjlunderscore is not used in the original ASL. 7446107325Siwasaki 7447107325SiwasakiFixed a problem where the reserved name check did not handle 7448114237SnjlNamePaths with multiple NameSegs correctly. The first nameseg of 7449114237Snjlthe NamePath was examined instead of the last NameSeg. 7450107325Siwasaki 7451107325Siwasaki 7452107325Siwasaki---------------------------------------- 7453107325Siwasaki 7454104470Siwasaki02 October 2002. Summary of changes for this release. 7455104470Siwasaki 7456104470Siwasaki 7457104470Siwasaki1) ACPI CA Core Subsystem version 20021002: 7458104470Siwasaki 7459104470SiwasakiFixed a problem where a store/copy of a string to an existing 7460193267Sjkimstring did not always set the string length properly in the String 7461126372Snjlobject. 7462104470Siwasaki 7463104470SiwasakiFixed a reported problem with the ToString operator where the 7464193267Sjkimbehavior was identical to the ToHexString operator instead of just 7465126372Snjlsimply converting a raw buffer to a string data type. 7466104470Siwasaki 7467104470SiwasakiFixed a problem where CopyObject and the other "explicit" 7468193267Sjkimconversion operators were not updating the internal namespace node 7469126372Snjltype as part of the store operation. 7470104470Siwasaki 7471104470SiwasakiFixed a memory leak during implicit source operand conversion 7472193267Sjkimwhere the original object was not deleted if it was converted to a 7473126372Snjlnew object of a different type. 7474104470Siwasaki 7475193267SjkimEnhanced error messages for all problems associated with namespace 7476193267Sjkimlookups. Common procedure generates and prints the lookup name as 7477126372Snjlwell as the formatted status. 7478104470Siwasaki 7479104470SiwasakiCompleted implementation of a new design for the Alias support 7480193267Sjkimwithin the namespace. The existing design did not handle the case 7481193267Sjkimwhere a new object was assigned to one of the two names due to the 7482193267Sjkimuse of an explicit conversion operator, resulting in the two names 7483126372Snjlpointing to two different objects. The new design simply points 7484126372Snjlthe Alias name to the original name node - not to the object. 7485193267SjkimThis results in a level of indirection that must be handled in the 7486126372Snjlname resolution mechanism. 7487104470Siwasaki 7488193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7489126372Snjlbelow. These are the code and data sizes for the acpica.lib 7490126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7491126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7492126372Snjlversion of the code includes the debug output trace mechanism and 7493193267Sjkimhas a larger code and data size. Note that these values will vary 7494126372Snjldepending on the efficiency of the compiler and the compiler 7495126372Snjloptions used during generation. 7496104470Siwasaki 7497104470Siwasaki Previous Release 7498104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 7499104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 7500104470Siwasaki Current Release: 7501104470Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 7502104470Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 7503104470Siwasaki 7504104470Siwasaki 7505104470Siwasaki2) Linux 7506104470Siwasaki 7507104470SiwasakiInitialize thermal driver's timer before it is used. (Knut 7508104470SiwasakiNeumann) 7509104470Siwasaki 7510104470SiwasakiAllow handling negative celsius values. (Kochi Takayoshi) 7511104470Siwasaki 7512114237SnjlFix thermal management and make trip points. R/W (Pavel Machek) 7513104470Siwasaki 7514104470SiwasakiFix /proc/acpi/sleep. (P. Christeas) 7515104470Siwasaki 7516104470SiwasakiIA64 fixes. (David Mosberger) 7517104470Siwasaki 7518104470SiwasakiFix reversed logic in blacklist code. (Sergio Monteiro Basto) 7519104470Siwasaki 7520104470SiwasakiReplace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 7521104470SiwasakiBrodowski) 7522104470Siwasaki 7523104470Siwasaki 7524104470Siwasaki3) iASL Compiler/Disassembler 7525104470Siwasaki 7526104470SiwasakiClarified some warning/error messages. 7527104470Siwasaki 7528104470Siwasaki 7529104470Siwasaki---------------------------------------- 7530104470Siwasaki18 September 2002. Summary of changes for this release. 7531104470Siwasaki 7532104470Siwasaki 7533104470Siwasaki1) ACPI CA Core Subsystem version 20020918: 7534104470Siwasaki 7535114237SnjlFixed a reported problem with reference chaining (via the Index() 7536193267Sjkimand RefOf() operators) in the ObjectType() and SizeOf() operators. 7537126372SnjlThe definition of these operators includes the dereferencing of 7538126372Snjlall chained references to return information on the base object. 7539104470Siwasaki 7540104470SiwasakiFixed a problem with stores to indexed package elements - the 7541104470Siwasakiexisting code would not complete the store if an "implicit 7542114237Snjlconversion" was not performed. In other words, if the existing 7543114237Snjlobject (package element) was to be replaced completely, the code 7544114237Snjldidn't handle this case. 7545104470Siwasaki 7546104470SiwasakiRelaxed typechecking on the ASL "Scope" operator to allow the 7547104470Siwasakitarget name to refer to an object of type Integer, String, or 7548104470SiwasakiBuffer, in addition to the scoping object types (Device, 7549104470Siwasakipredefined Scopes, Processor, PowerResource, and ThermalZone.) 7550114237SnjlThis allows existing AML code that has workarounds for a bug in 7551193267SjkimWindows to function properly. A warning is issued, however. This 7552126372Snjlaffects both the AML interpreter and the iASL compiler. Below is 7553126372Snjlan example of this type of ASL code: 7554104470Siwasaki 7555104470Siwasaki Name(DEB,0x00) 7556104470Siwasaki Scope(DEB) 7557104470Siwasaki { 7558104470Siwasaki 7559114237SnjlFixed some reported problems with 64-bit integer support in the 7560114237Snjllocal implementation of C library functions (clib.c) 7561104470Siwasaki 7562104470Siwasaki 7563104470Siwasaki2) Linux 7564104470Siwasaki 7565104470SiwasakiUse ACPI fix map region instead of IOAPIC region, since it is 7566104470Siwasakiundefined in non-SMP. 7567104470Siwasaki 7568114237SnjlEnsure that the SCI has the proper polarity and trigger, even on 7569114237Snjlsystems that do not have an interrupt override entry in the MADT. 7570104470Siwasaki 7571104470Siwasaki2.5 big driver reorganization (Pat Mochel) 7572104470Siwasaki 7573104470SiwasakiUse early table mapping code from acpitable.c (Andi Kleen) 7574104470Siwasaki 7575104470SiwasakiNew blacklist entries (Andi Kleen) 7576104470Siwasaki 7577114237SnjlBlacklist improvements. Split blacklist code out into a separate 7578114237Snjlfile. Move checking the blacklist to very early. Previously, we 7579114237Snjlwould use ACPI tables, and then halfway through init, check the 7580114237Snjlblacklist -- too late. Now, it's early enough to completely fall- 7581114237Snjlback to non-ACPI. 7582104470Siwasaki 7583104470Siwasaki 7584104470Siwasaki3) iASL Compiler/Disassembler version 20020918: 7585104470Siwasaki 7586114237SnjlFixed a problem where the typechecking code didn't know that an 7587114237Snjlalias could point to a method. In other words, aliases were not 7588114237Snjlbeing dereferenced during typechecking. 7589104470Siwasaki 7590104470Siwasaki 7591104470Siwasaki---------------------------------------- 7592104470Siwasaki29 August 2002. Summary of changes for this release. 7593104470Siwasaki 7594104470Siwasaki1) ACPI CA Core Subsystem Version 20020829: 7595104470Siwasaki 7596114237SnjlIf the target of a Scope() operator already exists, it must be an 7597114237Snjlobject type that actually opens a scope -- such as a Device, 7598193267SjkimMethod, Scope, etc. This is a fatal runtime error. Similar error 7599126372Snjlcheck has been added to the iASL compiler also. 7600104470Siwasaki 7601114237SnjlTightened up the namespace load to disallow multiple names in the 7602114237Snjlsame scope. This previously was allowed if both objects were of 7603114237Snjlthe same type. (i.e., a lookup was the same as entering a new 7604114237Snjlname). 7605104470Siwasaki 7606104470Siwasaki 7607104470Siwasaki2) Linux 7608104470Siwasaki 7609104470SiwasakiEnsure that the ACPI interrupt has the proper trigger and 7610104470Siwasakipolarity. 7611104470Siwasaki 7612104470Siwasakilocal_irq_disable is extraneous. (Matthew Wilcox) 7613104470Siwasaki 7614104470SiwasakiMake "acpi=off" actually do what it says, and not use the ACPI 7615104470Siwasakiinterpreter *or* the tables. 7616104470Siwasaki 7617193267SjkimAdded arch-neutral support for parsing SLIT and SRAT tables (Kochi 7618126372SnjlTakayoshi) 7619104470Siwasaki 7620104470Siwasaki 7621104470Siwasaki3) iASL Compiler/Disassembler Version 20020829: 7622104470Siwasaki 7623104470SiwasakiImplemented namepath optimization for name declarations. For 7624104470Siwasakiexample, a declaration like "Method (\_SB_.ABCD)" would get 7625104470Siwasakioptimized to "Method (ABCD)" if the declaration is within the 7626104470Siwasaki\_SB_ scope. This optimization is in addition to the named 7627104470Siwasakireference path optimization first released in the previous 7628114237Snjlversion. This would seem to complete all possible optimizations 7629114237Snjlfor namepaths within the ASL/AML. 7630104470Siwasaki 7631114237SnjlIf the target of a Scope() operator already exists, it must be an 7632114237Snjlobject type that actually opens a scope -- such as a Device, 7633114237SnjlMethod, Scope, etc. 7634104470Siwasaki 7635114237SnjlImplemented a check and warning for unreachable code in the same 7636114237Snjlblock below a Return() statement. 7637104470Siwasaki 7638114237SnjlFixed a problem where the listing file was not generated if the 7639114237Snjlcompiler aborted if the maximum error count was exceeded (200). 7640104470Siwasaki 7641193267SjkimFixed a problem where the typechecking of method return values was 7642126372Snjlbroken. This includes the check for a return value when the 7643114237Snjlmethod is invoked as a TermArg (a return value is expected.) 7644104470Siwasaki 7645104470SiwasakiFixed a reported problem where EOF conditions during a quoted 7646104470Siwasakistring or comment caused a fault. 7647104470Siwasaki 7648104470Siwasaki 7649104470Siwasaki---------------------------------------- 7650102550Siwasaki15 August 2002. Summary of changes for this release. 7651102550Siwasaki 7652102550Siwasaki1) ACPI CA Core Subsystem Version 20020815: 7653102550Siwasaki 7654114237SnjlFixed a reported problem where a Store to a method argument that 7655193267Sjkimcontains a reference did not perform the indirect store correctly. 7656126372SnjlThis problem was created during the conversion to the new 7657126372Snjlreference object model - the indirect store to a method argument 7658126372Snjlcode was not updated to reflect the new model. 7659102550Siwasaki 7660114237SnjlReworked the ACPI mode change code to better conform to ACPI 2.0, 7661193267Sjkimhandle corner cases, and improve code legibility (Kochi Takayoshi) 7662102550Siwasaki 7663102550SiwasakiFixed a problem with the pathname parsing for the carat (^) 7664114237Snjlprefix. The heavy use of the carat operator by the new namepath 7665193267Sjkimoptimization in the iASL compiler uncovered a problem with the AML 7666126372Snjlinterpreter handling of this prefix. In the case where one or 7667126372Snjlmore carats precede a single nameseg, the nameseg was treated as 7668126372Snjlstandalone and the search rule (to root) was inadvertently 7669114237Snjlapplied. This could cause both the iASL compiler and the 7670114237Snjlinterpreter to find the wrong object or to miss the error that 7671114237Snjlshould occur if the object does not exist at that exact pathname. 7672102550Siwasaki 7673114237SnjlFound and fixed the problem where the HP Pavilion DSDT would not 7674193267Sjkimload. This was a relatively minor tweak to the table loading code 7675126372Snjl(a problem caused by the unexpected encounter with a method 7676193267Sjkiminvocation not within a control method), but it does not solve the 7677126372Snjloverall issue of the execution of AML code at the table level. 7678126372SnjlThis investigation is still ongoing. 7679102550Siwasaki 7680193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7681126372Snjlbelow. These are the code and data sizes for the acpica.lib 7682126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7683126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7684126372Snjlversion of the code includes the debug output trace mechanism and 7685193267Sjkimhas a larger code and data size. Note that these values will vary 7686126372Snjldepending on the efficiency of the compiler and the compiler 7687126372Snjloptions used during generation. 7688102550Siwasaki 7689102550Siwasaki Previous Release 7690104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 7691104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 7692102550Siwasaki Current Release: 7693104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 7694104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 7695102550Siwasaki 7696102550Siwasaki 7697102550Siwasaki2) Linux 7698102550Siwasaki 7699102550SiwasakiRemove redundant slab.h include (Brad Hards) 7700102550Siwasaki 7701102550SiwasakiFix several bugs in thermal.c (Herbert Nachtnebel) 7702102550Siwasaki 7703102550SiwasakiMake CONFIG_ACPI_BOOT work properly (Pavel Machek) 7704102550Siwasaki 7705104470SiwasakiChange acpi_system_suspend to use updated irq functions (Pavel 7706104470SiwasakiMachek) 7707102550Siwasaki 7708102550SiwasakiExport acpi_get_firmware_table (Matthew Wilcox) 7709102550Siwasaki 7710102550SiwasakiUse proper root proc entry for ACPI (Kochi Takayoshi) 7711102550Siwasaki 7712102550SiwasakiFix early-boot table parsing (Bjorn Helgaas) 7713102550Siwasaki 7714102550Siwasaki 7715102550Siwasaki3) iASL Compiler/Disassembler 7716102550Siwasaki 7717114237SnjlReworked the compiler options to make them more consistent and to 7718114237Snjluse two-letter options where appropriate. We were running out of 7719114237Snjlsensible letters. This may break some makefiles, so check the 7720114237Snjlcurrent options list by invoking the compiler with no parameters. 7721102550Siwasaki 7722102550SiwasakiCompleted the design and implementation of the ASL namepath 7723114237Snjloptimization option for the compiler. This option optimizes all 7724114237Snjlreferences to named objects to the shortest possible path. The 7725193267Sjkimfirst attempt tries to utilize a single nameseg (4 characters) and 7726126372Snjlthe "search-to-root" algorithm used by the interpreter. If that 7727126372Snjlcannot be used (because either the name is not in the search path 7728126372Snjlor there is a conflict with another object with the same name), 7729126372Snjlthe pathname is optimized using the carat prefix (usually a 7730126372Snjlshorter string than specifying the entire path from the root.) 7731102550Siwasaki 7732114237SnjlImplemented support to obtain the DSDT from the Windows registry 7733114237Snjl(when the disassembly option is specified with no input file). 7734114237SnjlAdded this code as the implementation for AcpiOsTableOverride in 7735114237Snjlthe Windows OSL. Migrated the 16-bit code (used in the AcpiDump 7736114237Snjlutility) to scan memory for the DSDT to the AcpiOsTableOverride 7737114237Snjlfunction in the DOS OSL to make the disassembler truly OS 7738114237Snjlindependent. 7739102550Siwasaki 7740114237SnjlImplemented a new option to disassemble and compile in one step. 7741114237SnjlWhen used without an input filename, this option will grab the 7742193267SjkimDSDT from the local machine, disassemble it, and compile it in one 7743126372Snjlstep. 7744102550Siwasaki 7745114237SnjlAdded a warning message for invalid escapes (a backslash followed 7746114237Snjlby any character other than the allowable escapes). This catches 7747114237Snjlthe quoted string error "\_SB_" (which should be "\\_SB_" ). 7748167802Sjkim 7749193267SjkimAlso, there are numerous instances in the ACPI specification where 7750126372Snjlthis error occurs. 7751102550Siwasaki 7752104470SiwasakiAdded a compiler option to disable all optimizations. This is 7753114237Snjlbasically the "compatibility mode" because by using this option, 7754114237Snjlthe AML code will come out exactly the same as other ASL 7755114237Snjlcompilers. 7756102550Siwasaki 7757114237SnjlAdded error messages for incorrectly ordered dependent resource 7758114237Snjlfunctions. This includes: missing EndDependentFn macro at end of 7759114237Snjldependent resource list, nested dependent function macros (both 7760114237Snjlstart and end), and missing StartDependentFn macro. These are 7761114237Snjlcommon errors that should be caught at compile time. 7762102550Siwasaki 7763114237SnjlImplemented _OSI support for the disassembler and compiler. _OSI 7764114237Snjlmust be included in the namespace for proper disassembly (because 7765114237Snjlthe disassembler must know the number of arguments.) 7766102550Siwasaki 7767104470SiwasakiAdded an "optimization" message type that is optional (off by 7768114237Snjldefault). This message is used for all optimizations - including 7769193267Sjkimconstant folding, integer optimization, and namepath optimization. 7770102550Siwasaki 7771102550Siwasaki---------------------------------------- 7772102550Siwasaki25 July 2002. Summary of changes for this release. 7773102550Siwasaki 7774102550Siwasaki 7775102550Siwasaki1) ACPI CA Core Subsystem Version 20020725: 7776102550Siwasaki 7777114237SnjlThe AML Disassembler has been enhanced to produce compilable ASL 7778193267Sjkimcode and has been integrated into the iASL compiler (see below) as 7779126372Snjlwell as the single-step disassembly for the AML debugger and the 7780126372Snjldisassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 7781126372Snjlresource templates and macros are fully supported. The 7782114237Snjldisassembler has been tested on over 30 different AML files, 7783114237Snjlproducing identical AML when the resulting disassembled ASL file 7784114237Snjlis recompiled with the same ASL compiler. 7785102550Siwasaki 7786114237SnjlModified the Resource Manager to allow zero interrupts and zero 7787114237Snjldma channels during the GetCurrentResources call. This was 7788114237Snjlcausing problems on some platforms. 7789102550Siwasaki 7790114237SnjlAdded the AcpiOsRedirectOutput interface to the OSL to simplify 7791114237Snjloutput redirection for the AcpiOsPrintf and AcpiOsVprintf 7792114237Snjlinterfaces. 7793102550Siwasaki 7794193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7795126372Snjlbelow. These are the code and data sizes for the acpica.lib 7796126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7797126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7798126372Snjlversion of the code includes the debug output trace mechanism and 7799193267Sjkimhas a larger code and data size. Note that these values will vary 7800126372Snjldepending on the efficiency of the compiler and the compiler 7801126372Snjloptions used during generation. 7802102550Siwasaki 7803102550Siwasaki Previous Release 7804104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7805104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7806102550Siwasaki Current Release: 7807104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 7808104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 7809102550Siwasaki 7810102550Siwasaki 7811102550Siwasaki2) Linux 7812102550Siwasaki 7813102550SiwasakiFixed a panic in the EC driver (Dominik Brodowski) 7814102550Siwasaki 7815114237SnjlImplemented checksum of the R/XSDT itself during Linux table scan 7816114237Snjl(Richard Schaal) 7817102550Siwasaki 7818102550Siwasaki 7819102550Siwasaki3) iASL compiler 7820102550Siwasaki 7821114237SnjlThe AML disassembler is integrated into the compiler. The "-d" 7822114237Snjloption invokes the disassembler to completely disassemble an 7823114237Snjlinput AML file, producing as output a text ASL file with the 7824114237Snjlextension ".dsl" (to avoid name collisions with existing .asl 7825114237Snjlsource files.) A future enhancement will allow the disassembler 7826114237Snjlto obtain the BIOS DSDT from the registry under Windows. 7827102550Siwasaki 7828102550SiwasakiFixed a problem with the VendorShort and VendorLong resource 7829102550Siwasakidescriptors where an invalid AML sequence was created. 7830102550Siwasaki 7831114237SnjlImplemented a fix for BufferData term in the ASL parser. It was 7832114237Snjlinadvertently defined twice, allowing invalid syntax to pass and 7833114237Snjlcausing reduction conflicts. 7834102550Siwasaki 7835104470SiwasakiFixed a problem where the Ones opcode could get converted to a 7836193267Sjkimvalue of zero if "Ones" was used where a byte, word or dword value 7837126372Snjlwas expected. The 64-bit value is now truncated to the correct 7838126372Snjlsize with the correct value. 7839102550Siwasaki 7840102550Siwasaki 7841167802Sjkim 7842102550Siwasaki---------------------------------------- 7843102550Siwasaki02 July 2002. Summary of changes for this release. 7844102550Siwasaki 7845102550Siwasaki 7846102550Siwasaki1) ACPI CA Core Subsystem Version 20020702: 7847102550Siwasaki 7848114237SnjlThe Table Manager code has been restructured to add several new 7849114237Snjlfeatures. Tables that are not required by the core subsystem 7850114237Snjl(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 7851193267Sjkimvalidated in any way and are returned from AcpiGetFirmwareTable if 7852126372Snjlrequested. The AcpiOsTableOverride interface is now called for 7853126372Snjleach table that is loaded by the subsystem in order to allow the 7854126372Snjlhost to override any table it chooses. Previously, only the DSDT 7855126372Snjlcould be overridden. Added one new files, tbrsdt.c and 7856114237Snjltbgetall.c. 7857102550Siwasaki 7858193267SjkimFixed a problem with the conversion of internal package objects to 7859126372Snjlexternal objects (when a package is returned from a control 7860114237Snjlmethod.) The return buffer length was set to zero instead of the 7861114237Snjlproper length of the package object. 7862102550Siwasaki 7863104470SiwasakiFixed a reported problem with the use of the RefOf and DeRefOf 7864114237Snjloperators when passing reference arguments to control methods. A 7865114237Snjlnew type of Reference object is used internally for references 7866114237Snjlproduced by the RefOf operator. 7867102550Siwasaki 7868193267SjkimAdded additional error messages in the Resource Manager to explain 7869126372SnjlAE_BAD_DATA errors when they occur during resource parsing. 7870102550Siwasaki 7871104470SiwasakiSplit the AcpiEnableSubsystem into two primitives to enable a 7872193267Sjkimfiner granularity initialization sequence. These two calls should 7873126372Snjlbe called in this order: AcpiEnableSubsystem (flags), 7874114237SnjlAcpiInitializeObjects (flags). The flags parameter remains the 7875114237Snjlsame. 7876102550Siwasaki 7877102550Siwasaki 7878102550Siwasaki2) Linux 7879102550Siwasaki 7880114237SnjlUpdated the ACPI utilities module to understand the new style of 7881193267Sjkimfully resolved package objects that are now returned from the core 7882126372Snjlsubsystem. This eliminates errors of the form: 7883102550Siwasaki 7884102550Siwasaki ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 7885102550Siwasaki acpi_utils-0430 [145] acpi_evaluate_reference: 7886102550Siwasaki Invalid element in package (not a device reference) 7887102550Siwasaki 7888102550SiwasakiThe method evaluation utility uses the new buffer allocation 7889102550Siwasakischeme instead of calling AcpiEvaluate Object twice. 7890102550Siwasaki 7891102550SiwasakiAdded support for ECDT. This allows the use of the Embedded 7892167802Sjkim 7893114237SnjlController before the namespace has been fully initialized, which 7894114237Snjlis necessary for ACPI 2.0 support, and for some laptops to 7895114237Snjlinitialize properly. (Laptops using ECDT are still rare, so only 7896114237Snjllimited testing was performed of the added functionality.) 7897102550Siwasaki 7898102550SiwasakiFixed memory leaks in the EC driver. 7899102550Siwasaki 7900102550SiwasakiEliminated a brittle code structure in acpi_bus_init(). 7901102550Siwasaki 7902114237SnjlEliminated the acpi_evaluate() helper function in utils.c. It is 7903114237Snjlno longer needed since acpi_evaluate_object can optionally 7904104470Siwasakiallocate memory for the return object. 7905102550Siwasaki 7906193267SjkimImplemented fix for keyboard hang when getting battery readings on 7907126372Snjlsome systems (Stephen White) 7908102550Siwasaki 7909102550SiwasakiPCI IRQ routing update (Dominik Brodowski) 7910102550Siwasaki 7911114237SnjlFix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 7912114237Snjlsupport 7913102550Siwasaki 7914102550Siwasaki---------------------------------------- 7915102550Siwasaki11 June 2002. Summary of changes for this release. 7916102550Siwasaki 7917102550Siwasaki 7918102550Siwasaki1) ACPI CA Core Subsystem Version 20020611: 7919102550Siwasaki 7920104470SiwasakiFixed a reported problem where constants such as Zero and One 7921114237Snjlappearing within _PRT packages were not handled correctly within 7922114237Snjlthe resource manager code. Originally reported against the ASL 7923114237Snjlcompiler because the code generator now optimizes integers to 7924193267Sjkimtheir minimal AML representation (i.e. AML constants if possible.) 7925126372SnjlThe _PRT code now handles all AML constant opcodes correctly 7926126372Snjl(Zero, One, Ones, Revision). 7927102550Siwasaki 7928102550SiwasakiFixed a problem with the Concatenate operator in the AML 7929193267Sjkiminterpreter where a buffer result object was incorrectly marked as 7930126372Snjlnot fully evaluated, causing a run-time error of AE_AML_INTERNAL. 7931102550Siwasaki 7932104470SiwasakiAll package sub-objects are now fully resolved before they are 7933114237Snjlreturned from the external ACPI interfaces. This means that name 7934114237Snjlstrings are resolved to object handles, and constant operators 7935114237Snjl(Zero, One, Ones, Revision) are resolved to Integers. 7936102550Siwasaki 7937102550SiwasakiImplemented immediate resolution of the AML Constant opcodes 7938104470Siwasaki(Zero, One, Ones, Revision) to Integer objects upon detection 7939104470Siwasakiwithin the AML stream. This has simplified and reduced the 7940104470Siwasakigenerated code size of the subsystem by eliminating about 10 7941104470Siwasakiswitch statements for these constants (which previously were 7942193267Sjkimcontained in Reference objects.) The complicating issues are that 7943126372Snjlthe Zero opcode is used as a "placeholder" for unspecified 7944193267Sjkimoptional target operands and stores to constants are defined to be 7945126372Snjlno-ops. 7946102550Siwasaki 7947193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7948126372Snjlbelow. These are the code and data sizes for the acpica.lib 7949114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7950114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7951114237Snjlversion of the code includes the debug output trace mechanism and 7952193267Sjkimhas a larger code and data size. Note that these values will vary 7953126372Snjldepending on the efficiency of the compiler and the compiler 7954114237Snjloptions used during generation. 7955102550Siwasaki 7956102550Siwasaki Previous Release 7957104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7958104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7959102550Siwasaki Current Release: 7960104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7961104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7962102550Siwasaki 7963102550Siwasaki 7964102550Siwasaki2) Linux 7965102550Siwasaki 7966167802Sjkim 7967104470SiwasakiAdded preliminary support for obtaining _TRA data for PCI root 7968104470Siwasakibridges (Bjorn Helgaas). 7969102550Siwasaki 7970102550Siwasaki 7971102550Siwasaki3) iASL Compiler Version X2046: 7972102550Siwasaki 7973193267SjkimFixed a problem where the "_DDN" reserved name was defined to be a 7974126372Snjlcontrol method with one argument. There are no arguments, and 7975114237Snjl_DDN does not have to be a control method. 7976102550Siwasaki 7977114237SnjlFixed a problem with the Linux version of the compiler where the 7978114237Snjlsource lines printed with error messages were the wrong lines. 7979114237SnjlThis turned out to be the "LF versus CR/LF" difference between 7980114237SnjlWindows and Unix. This appears to be the longstanding issue 7981114237Snjlconcerning listing output and error messages. 7982102550Siwasaki 7983114237SnjlFixed a problem with the Linux version of compiler where opcode 7984114237Snjlnames within error messages were wrong. This was caused by a 7985114237Snjlslight difference in the output of the Flex tool on Linux versus 7986114237SnjlWindows. 7987102550Siwasaki 7988193267SjkimFixed a problem with the Linux compiler where the hex output files 7989126372Snjlcontained some garbage data caused by an internal buffer overrun. 7990102550Siwasaki 7991102550Siwasaki 7992102550Siwasaki---------------------------------------- 7993102550Siwasaki17 May 2002. Summary of changes for this release. 7994102550Siwasaki 7995102550Siwasaki 7996102550Siwasaki1) ACPI CA Core Subsystem Version 20020517: 7997102550Siwasaki 7998102550SiwasakiImplemented a workaround to an BIOS bug discovered on the HP 7999104470SiwasakiOmniBook where the FADT revision number and the table size are 8000193267Sjkiminconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 8001126372Snjlbehavior is to fallback to using only the ACPI 1.0 fields of the 8002126372SnjlFADT if the table is too small to be a ACPI 2.0 table as claimed 8003126372Snjlby the revision number. Although this is a BIOS bug, this is a 8004126372Snjlcase where the workaround is simple enough and with no side 8005126372Snjleffects, so it seemed prudent to add it. A warning message is 8006126372Snjlissued, however. 8007102550Siwasaki 8008193267SjkimImplemented minimum size checks for the fixed-length ACPI tables - 8009126372Snjl- the FADT and FACS, as well as consistency checks between the 8010114237Snjlrevision number and the table size. 8011102550Siwasaki 8012114237SnjlFixed a reported problem in the table override support where the 8013114237Snjlnew table pointer was incorrectly treated as a physical address 8014114237Snjlinstead of a logical address. 8015102550Siwasaki 8016114237SnjlEliminated the use of the AE_AML_ERROR exception and replaced it 8017114237Snjlwith more descriptive codes. 8018102550Siwasaki 8019193267SjkimFixed a problem where an exception would occur if an ASL Field was 8020126372Snjldefined with no named Field Units underneath it (used by some 8021114237Snjlindex fields). 8022102550Siwasaki 8023193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8024126372Snjlbelow. These are the code and data sizes for the acpica.lib 8025126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8026126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8027126372Snjlversion of the code includes the debug output trace mechanism and 8028193267Sjkimhas a larger code and data size. Note that these values will vary 8029126372Snjldepending on the efficiency of the compiler and the compiler 8030126372Snjloptions used during generation. 8031102550Siwasaki 8032102550Siwasaki Previous Release 8033104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 8034104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 8035102550Siwasaki Current Release: 8036104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 8037104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 8038102550Siwasaki 8039102550Siwasaki 8040102550Siwasaki 8041102550Siwasaki2) Linux 8042102550Siwasaki 8043114237SnjlMuch work done on ACPI init (MADT and PCI IRQ routing support). 8044114237Snjl(Paul D. and Dominik Brodowski) 8045102550Siwasaki 8046102550SiwasakiFix PCI IRQ-related panic on boot (Sam Revitch) 8047102550Siwasaki 8048102550SiwasakiSet BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 8049102550Siwasaki 8050102550SiwasakiFix "MHz" typo (Dominik Brodowski) 8051102550Siwasaki 8052102550SiwasakiFix RTC year 2000 issue (Dominik Brodowski) 8053102550Siwasaki 8054102550SiwasakiPreclude multiple button proc entries (Eric Brunet) 8055102550Siwasaki 8056102550SiwasakiMoved arch-specific code out of include/platform/aclinux.h 8057102550Siwasaki 8058102550Siwasaki3) iASL Compiler Version X2044: 8059102550Siwasaki 8060193267SjkimImplemented error checking for the string used in the EISAID macro 8061193267Sjkim(Usually used in the definition of the _HID object.) The code now 8062126372Snjlstrictly enforces the PnP format - exactly 7 characters, 3 8063126372Snjluppercase letters and 4 hex digits. 8064102550Siwasaki 8065102550SiwasakiIf a raw string is used in the definition of the _HID object 8066102550Siwasaki(instead of the EISAID macro), the string must contain all 8067114237Snjlalphanumeric characters (e.g., "*PNP0011" is not allowed because 8068114237Snjlof the asterisk.) 8069102550Siwasaki 8070114237SnjlImplemented checking for invalid use of ACPI reserved names for 8071114237Snjlmost of the name creation operators (Name, Device, Event, Mutex, 8072114237SnjlOperationRegion, PowerResource, Processor, and ThermalZone.) 8073114237SnjlPreviously, this check was only performed for control methods. 8074102550Siwasaki 8075114237SnjlImplemented an additional check on the Name operator to emit an 8076114237Snjlerror if a reserved name that must be implemented in ASL as a 8077114237Snjlcontrol method is used. We know that a reserved name must be a 8078114237Snjlmethod if it is defined with input arguments. 8079102550Siwasaki 8080193267SjkimThe warning emitted when a namespace object reference is not found 8081126372Snjlduring the cross reference phase has been changed into an error. 8082193267SjkimThe "External" directive should be used for names defined in other 8083126372Snjlmodules. 8084102550Siwasaki 8085102550Siwasaki 8086102550Siwasaki4) Tools and Utilities 8087102550Siwasaki 8088114237SnjlThe 16-bit tools (adump16 and aexec16) have been regenerated and 8089114237Snjltested. 8090102550Siwasaki 8091193267SjkimFixed a problem with the output of both acpidump and adump16 where 8092126372Snjlthe indentation of closing parentheses and brackets was not 8093167802Sjkim 8094114237Snjlaligned properly with the parent block. 8095102550Siwasaki 8096102550Siwasaki 8097102550Siwasaki---------------------------------------- 8098102550Siwasaki03 May 2002. Summary of changes for this release. 8099102550Siwasaki 8100102550Siwasaki 8101102550Siwasaki1) ACPI CA Core Subsystem Version 20020503: 8102102550Siwasaki 8103114237SnjlAdded support a new OSL interface that allows the host operating 8104167802Sjkim 8105114237Snjlsystem software to override the DSDT found in the firmware - 8106193267SjkimAcpiOsTableOverride. With this interface, the OSL can examine the 8107126372Snjlversion of the firmware DSDT and replace it with a different one 8108126372Snjlif desired. 8109102550Siwasaki 8110114237SnjlAdded new external interfaces for accessing ACPI registers from 8111114237Snjldevice drivers and other system software - AcpiGetRegister and 8112114237SnjlAcpiSetRegister. This was simply an externalization of the 8113114237Snjlexisting AcpiHwBitRegister interfaces. 8114102550Siwasaki 8115104470SiwasakiFixed a regression introduced in the previous build where the 8116104470SiwasakiASL/AML CreateField operator always returned an error, 8117102550Siwasaki"destination must be a NS Node". 8118102550Siwasaki 8119114237SnjlExtended the maximum time (before failure) to successfully enable 8120114237SnjlACPI mode to 3 seconds. 8121102550Siwasaki 8122193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8123126372Snjlbelow. These are the code and data sizes for the acpica.lib 8124126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8125126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8126126372Snjlversion of the code includes the debug output trace mechanism and 8127193267Sjkimhas a larger code and data size. Note that these values will vary 8128126372Snjldepending on the efficiency of the compiler and the compiler 8129126372Snjloptions used during generation. 8130102550Siwasaki 8131102550Siwasaki Previous Release 8132104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 8133104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 8134102550Siwasaki Current Release: 8135104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 8136104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 8137102550Siwasaki 8138102550Siwasaki 8139102550Siwasaki2) Linux 8140102550Siwasaki 8141104470SiwasakiEnhanced ACPI init code for SMP. We are now fully MPS and $PIR- 8142193267Sjkimfree. While 3 out of 4 of our in-house systems work fine, the last 8143126372Snjlone still hangs when testing the LAPIC timer. 8144102550Siwasaki 8145114237SnjlRenamed many files in 2.5 kernel release to omit "acpi_" from the 8146114237Snjlname. 8147102550Siwasaki 8148102550SiwasakiAdded warning on boot for Presario 711FR. 8149102550Siwasaki 8150102550SiwasakiSleep improvements (Pavel Machek) 8151102550Siwasaki 8152102550SiwasakiACPI can now be built without CONFIG_PCI enabled. 8153102550Siwasaki 8154102550SiwasakiIA64: Fixed memory map functions (JI Lee) 8155102550Siwasaki 8156102550Siwasaki 8157102550Siwasaki3) iASL Compiler Version X2043: 8158102550Siwasaki 8159114237SnjlAdded support to allow the compiler to be integrated into the MS 8160114237SnjlVC++ development environment for one-button compilation of single 8161114237Snjlfiles or entire projects -- with error-to-source-line mapping. 8162102550Siwasaki 8163104470SiwasakiImplemented support for compile-time constant folding for the 8164104470SiwasakiType3, Type4, and Type5 opcodes first defined in the ACPI 2.0 8165104470Siwasakispecification. This allows the ASL writer to use expressions 8166104470Siwasakiinstead of Integer/Buffer/String constants in terms that must 8167114237Snjlevaluate to constants at compile time and will also simplify the 8168114237Snjlemitted AML in any such sub-expressions that can be folded 8169104470Siwasaki(evaluated at compile-time.) This increases the size of the 8170104470Siwasakicompiler significantly because a portion of the ACPI CA AML 8171104470Siwasakiinterpreter is included within the compiler in order to pre- 8172104470Siwasakievaluate constant expressions. 8173102550Siwasaki 8174114237Snjl 8175102550SiwasakiFixed a problem with the "Unicode" ASL macro that caused the 8176114237Snjlcompiler to fault. (This macro is used in conjunction with the 8177114237Snjl_STR reserved name.) 8178102550Siwasaki 8179114237SnjlImplemented an AML opcode optimization to use the Zero, One, and 8180114237SnjlOnes opcodes where possible to further reduce the size of integer 8181114237Snjlconstants and thus reduce the overall size of the generated AML 8182114237Snjlcode. 8183102550Siwasaki 8184193267SjkimImplemented error checking for new reserved terms for ACPI version 8185126372Snjl2.0A. 8186102550Siwasaki 8187104470SiwasakiImplemented the -qr option to display the current list of ACPI 8188104470Siwasakireserved names known to the compiler. 8189102550Siwasaki 8190104470SiwasakiImplemented the -qc option to display the current list of ASL 8191104470Siwasakioperators that are allowed within constant expressions and can 8192193267Sjkimtherefore be folded at compile time if the operands are constants. 8193102550Siwasaki 8194102550Siwasaki 8195102550Siwasaki4) Documentation 8196102550Siwasaki 8197193267SjkimUpdated the Programmer's Reference for new interfaces, data types, 8198126372Snjland memory allocation model options. 8199102550Siwasaki 8200114237SnjlUpdated the iASL Compiler User Reference to apply new format and 8201114237Snjladd information about new features and options. 8202102550Siwasaki 8203102550Siwasaki---------------------------------------- 8204102550Siwasaki19 April 2002. Summary of changes for this release. 8205102550Siwasaki 8206102550Siwasaki1) ACPI CA Core Subsystem Version 20020419: 8207102550Siwasaki 8208114237SnjlThe source code base for the Core Subsystem has been completely 8209114237Snjlcleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 8210114237Snjlversions. The Lint option files used are included in the 8211114237Snjl/acpi/generate/lint directory. 8212102550Siwasaki 8213102550SiwasakiImplemented enhanced status/error checking across the entire 8214114237SnjlHardware manager subsystem. Any hardware errors (reported from 8215114237Snjlthe OSL) are now bubbled up and will abort a running control 8216114237Snjlmethod. 8217102550Siwasaki 8218167802Sjkim 8219114237SnjlFixed a problem where the per-ACPI-table integer width (32 or 64) 8220114237Snjlwas stored only with control method nodes, causing a fault when 8221114237Snjlnon-control method code was executed during table loading. The 8222114237Snjlsolution implemented uses a global variable to indicate table 8223114237Snjlwidth across the entire ACPI subsystem. Therefore, ACPI CA does 8224114237Snjlnot support mixed integer widths across different ACPI tables 8225114237Snjl(DSDT, SSDT). 8226102550Siwasaki 8227114237SnjlFixed a problem where NULL extended fields (X fields) in an ACPI 8228114237Snjl2.0 ACPI FADT caused the table load to fail. Although the 8229114237Snjlexisting ACPI specification is a bit fuzzy on this topic, the new 8230114237Snjlbehavior is to fall back on a ACPI 1.0 field if the corresponding 8231193267SjkimACPI 2.0 X field is zero (even though the table revision indicates 8232193267Sjkima full ACPI 2.0 table.) The ACPI specification will be updated to 8233126372Snjlclarify this issue. 8234102550Siwasaki 8235104470SiwasakiFixed a problem with the SystemMemory operation region handler 8236104470Siwasakiwhere memory was always accessed byte-wise even if the AML- 8237104470Siwasakispecified access width was larger than a byte. This caused 8238104470Siwasakiproblems on systems with memory-mapped I/O. Memory is now 8239193267Sjkimaccessed with the width specified. On systems that do not support 8240193267Sjkimnon-aligned transfers, a check is made to guarantee proper address 8241126372Snjlalignment before proceeding in order to avoid an AML-caused 8242126372Snjlalignment fault within the kernel. 8243102550Siwasaki 8244102550Siwasaki 8245114237SnjlFixed a problem with the ExtendedIrq resource where only one byte 8246114237Snjlof the 4-byte Irq field was extracted. 8247102550Siwasaki 8248114237SnjlFixed the AcpiExDigitsNeeded() procedure to support _UID. This 8249114237Snjlfunction was out of date and required a rewrite. 8250114237Snjl 8251193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8252126372Snjlbelow. These are the code and data sizes for the acpica.lib 8253126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8254126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8255126372Snjlversion of the code includes the debug output trace mechanism and 8256193267Sjkimhas a larger code and data size. Note that these values will vary 8257126372Snjldepending on the efficiency of the compiler and the compiler 8258126372Snjloptions used during generation. 8259102550Siwasaki 8260102550Siwasaki Previous Release 8261104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 8262104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 8263102550Siwasaki Current Release: 8264104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 8265104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 8266102550Siwasaki 8267102550Siwasaki 8268102550Siwasaki2) Linux 8269102550Siwasaki 8270102550SiwasakiPCI IRQ routing fixes (Dominik Brodowski) 8271102550Siwasaki 8272102550Siwasaki 8273102550Siwasaki3) iASL Compiler Version X2042: 8274102550Siwasaki 8275104470SiwasakiImplemented an additional compile-time error check for a field 8276104470Siwasakiunit whose size + minimum access width would cause a run-time 8277114237Snjlaccess beyond the end-of-region. Previously, only the field size 8278114237Snjlitself was checked. 8279102550Siwasaki 8280104470SiwasakiThe Core subsystem and iASL compiler now share a common parse 8281104470Siwasakiobject in preparation for compile-time evaluation of the type 8282104470Siwasaki3/4/5 ASL operators. 8283102550Siwasaki 8284102550Siwasaki 8285102550Siwasaki---------------------------------------- 8286102550SiwasakiSummary of changes for this release: 03_29_02 8287102550Siwasaki 8288102550Siwasaki1) ACPI CA Core Subsystem Version 20020329: 8289102550Siwasaki 8290104470SiwasakiImplemented support for late evaluation of TermArg operands to 8291193267SjkimBuffer and Package objects. This allows complex expressions to be 8292126372Snjlused in the declarations of these object types. 8293102550Siwasaki 8294193267SjkimFixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 8295126372Snjl1.0, if the field was larger than 32 bits, it was returned as a 8296126372Snjlbuffer - otherwise it was returned as an integer. In ACPI 2.0, 8297193267Sjkimthe field is returned as a buffer only if the field is larger than 8298126372Snjl64 bits. The TableRevision is now considered when making this 8299126372Snjlconversion to avoid incompatibility with existing ASL code. 8300102550Siwasaki 8301104470SiwasakiImplemented logical addressing for AcpiOsGetRootPointer. This 8302114237Snjlallows an RSDP with either a logical or physical address. With 8303114237Snjlthis support, the host OS can now override all ACPI tables with 8304114237Snjlone logical RSDP. Includes implementation of "typed" pointer 8305114237Snjlsupport to allow a common data type for both physical and logical 8306114237Snjlpointers internally. This required a change to the 8307114237SnjlAcpiOsGetRootPointer interface. 8308102550Siwasaki 8309193267SjkimImplemented the use of ACPI 2.0 Generic Address Structures for all 8310193267SjkimGPE, Fixed Event, and PM Timer I/O. This allows the use of memory 8311126372Snjlmapped I/O for these ACPI features. 8312102550Siwasaki 8313102550SiwasakiInitialization now ignores not only non-required tables (All 8314114237Snjltables other than the FADT, FACS, DSDT, and SSDTs), but also does 8315114237Snjlnot validate the table headers of unrecognized tables. 8316102550Siwasaki 8317102550SiwasakiFixed a problem where a notify handler could only be 8318102550Siwasakiinstalled/removed on an object of type Device. All "notify" 8319167802Sjkim 8320102550Siwasakiobjects are now supported -- Devices, Processor, Power, and 8321102550SiwasakiThermal. 8322102550Siwasaki 8323114237SnjlRemoved most verbosity from the ACPI_DB_INFO debug level. Only 8324193267Sjkimcritical information is returned when this debug level is enabled. 8325102550Siwasaki 8326193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8327126372Snjlbelow. These are the code and data sizes for the acpica.lib 8328126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8329126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8330126372Snjlversion of the code includes the debug output trace mechanism and 8331193267Sjkimhas a larger code and data size. Note that these values will vary 8332126372Snjldepending on the efficiency of the compiler and the compiler 8333126372Snjloptions used during generation. 8334102550Siwasaki 8335102550Siwasaki Previous Release 8336104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 8337104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 8338102550Siwasaki Current Release: 8339104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 8340104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 8341102550Siwasaki 8342102550Siwasaki 8343102550Siwasaki2) Linux: 8344102550Siwasaki 8345114237SnjlThe processor driver (acpi_processor.c) now fully supports ACPI 8346114237Snjl2.0-based processor performance control (e.g. Intel(R) 8347114237SnjlSpeedStep(TM) technology) Note that older laptops that only have 8348114237Snjlthe Intel "applet" interface are not supported through this. The 8349114237Snjl'limit' and 'performance' interface (/proc) are fully functional. 8350114237Snjl[Note that basic policy for controlling performance state 8351114237Snjltransitions will be included in the next version of ospmd.] The 8352114237Snjlidle handler was modified to more aggressively use C2, and PIIX4 8353114237Snjlerrata handling underwent a complete overhaul (big thanks to 8354114237SnjlDominik Brodowski). 8355102550Siwasaki 8356114237SnjlAdded support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 8357114237Snjlbased devices in the ACPI namespace are now dynamically bound 8358114237Snjl(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 8359114237SnjlThis allows, among other things, ACPI to resolve bus numbers for 8360114237Snjlsubordinate PCI bridges. 8361102550Siwasaki 8362104470SiwasakiEnhanced PCI IRQ routing to get the proper bus number for _PRT 8363104470Siwasakientries defined underneath PCI bridges. 8364102550Siwasaki 8365104470SiwasakiAdded IBM 600E to bad bios list due to invalid _ADR value for 8366104470SiwasakiPIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 8367102550Siwasaki 8368114237SnjlIn the process of adding full MADT support (e.g. IOAPIC) for IA32 8369114237Snjl(acpi.c, mpparse.c) -- stay tuned. 8370102550Siwasaki 8371102550SiwasakiAdded back visual differentiation between fixed-feature and 8372114237Snjlcontrol-method buttons in dmesg. Buttons are also subtyped (e.g. 8373114237Snjlbutton/power/PWRF) to simplify button identification. 8374102550Siwasaki 8375114237SnjlWe no longer use -Wno-unused when compiling debug. Please ignore 8376114237Snjlany "_THIS_MODULE defined but not used" messages. 8377102550Siwasaki 8378102550SiwasakiCan now shut down the system using "magic sysrq" key. 8379102550Siwasaki 8380102550Siwasaki 8381102550Siwasaki3) iASL Compiler version 2041: 8382102550Siwasaki 8383104470SiwasakiFixed a problem where conversion errors for hex/octal/decimal 8384104470Siwasakiconstants were not reported. 8385102550Siwasaki 8386193267SjkimImplemented a fix for the General Register template Address field. 8387126372SnjlThis field was 8 bits when it should be 64. 8388102550Siwasaki 8389193267SjkimFixed a problem where errors/warnings were no longer being emitted 8390126372Snjlwithin the listing output file. 8391102550Siwasaki 8392114237SnjlImplemented the ACPI 2.0A restriction on ACPI Table Signatures to 8393114237Snjlexactly 4 characters, alphanumeric only. 8394102550Siwasaki 8395102550Siwasaki 8396102550Siwasaki 8397102550Siwasaki 8398102550Siwasaki---------------------------------------- 8399102550SiwasakiSummary of changes for this release: 03_08_02 8400102550Siwasaki 8401102550Siwasaki 8402102550Siwasaki1) ACPI CA Core Subsystem Version 20020308: 8403102550Siwasaki 8404114237SnjlFixed a problem with AML Fields where the use of the "AccessAny" 8405193267Sjkimkeyword could cause an interpreter error due to attempting to read 8406126372Snjlor write beyond the end of the parent Operation Region. 8407102550Siwasaki 8408193267SjkimFixed a problem in the SystemMemory Operation Region handler where 8409126372Snjlan attempt was made to map memory beyond the end of the region. 8410126372SnjlThis was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 8411126372Snjlerrors on some Linux systems. 8412102550Siwasaki 8413114237SnjlFixed a problem where the interpreter/namespace "search to root" 8414114237Snjlalgorithm was not functioning for some object types. Relaxed the 8415114237Snjlinternal restriction on the search to allow upsearches for all 8416114237Snjlexternal object types as well as most internal types. 8417102550Siwasaki 8418102550Siwasaki 8419102550Siwasaki2) Linux: 8420102550Siwasaki 8421193267SjkimWe now use safe_halt() macro versus individual calls to sti | hlt. 8422102550Siwasaki 8423193267SjkimWriting to the processor limit interface should now work. "echo 1" 8424126372Snjlwill increase the limit, 2 will decrease, and 0 will reset to the 8425167802Sjkim 8426126372Snjldefault. 8427102550Siwasaki 8428102550Siwasaki 8429102550Siwasaki3) ASL compiler: 8430102550Siwasaki 8431102550SiwasakiFixed segfault on Linux version. 8432102550Siwasaki 8433102550Siwasaki 8434102550Siwasaki---------------------------------------- 8435102550SiwasakiSummary of changes for this release: 02_25_02 8436102550Siwasaki 8437102550Siwasaki1) ACPI CA Core Subsystem: 8438102550Siwasaki 8439102550Siwasaki 8440102550SiwasakiFixed a problem where the GPE bit masks were not initialized 8441102550Siwasakiproperly, causing erratic GPE behavior. 8442102550Siwasaki 8443193267SjkimImplemented limited support for multiple calling conventions. The 8444126372Snjlcode can be generated with either the VPL (variable parameter 8445114237Snjllist, or "C") convention, or the FPL (fixed parameter list, or 8446114237Snjl"Pascal") convention. The core subsystem is about 3.4% smaller 8447114237Snjlwhen generated with FPL. 8448102550Siwasaki 8449102550Siwasaki 8450102550Siwasaki2) Linux 8451102550Siwasaki 8452114237SnjlRe-add some /proc/acpi/event functionality that was lost during 8453114237Snjlthe rewrite 8454102550Siwasaki 8455193267SjkimResolved issue with /proc events for fixed-feature buttons showing 8456126372Snjlup as the system device. 8457102550Siwasaki 8458193267SjkimFixed checks on C2/C3 latencies to be inclusive of maximum values. 8459102550Siwasaki 8460114237SnjlReplaced AE_ERRORs in acpi_osl.c with more specific error codes. 8461102550Siwasaki 8462114237SnjlChanged ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 8463102550Siwasaki 8464104470SiwasakiFixed limit interface & usage to fix bugs with passive cooling 8465104470Siwasakihysterisis. 8466102550Siwasaki 8467102550SiwasakiRestructured PRT support. 8468102550Siwasaki 8469102550Siwasaki 8470102550Siwasaki---------------------------------------- 8471102550SiwasakiSummary of changes for this label: 02_14_02 8472102550Siwasaki 8473102550Siwasaki 8474102550Siwasaki1) ACPI CA Core Subsystem: 8475102550Siwasaki 8476114237SnjlImplemented support in AcpiLoadTable to allow loading of FACS and 8477114237SnjlFADT tables. 8478102550Siwasaki 8479114237SnjlSuport for the now-obsolete interim 0.71 64-bit ACPI tables has 8480193267Sjkimbeen removed. All 64-bit platforms should be migrated to the ACPI 8481193267Sjkim2.0 tables. The actbl71.h header has been removed from the source 8482126372Snjltree. 8483102550Siwasaki 8484114237SnjlAll C macros defined within the subsystem have been prefixed with 8485114237Snjl"ACPI_" to avoid collision with other system include files. 8486102550Siwasaki 8487193267SjkimRemoved the return value for the two AcpiOsPrint interfaces, since 8488126372Snjlit is never used and causes lint warnings for ignoring the return 8489126372Snjlvalue. 8490102550Siwasaki 8491104470SiwasakiAdded error checking to all internal mutex acquire and release 8492104470Siwasakicalls. Although a failure from one of these interfaces is 8493104470Siwasakiprobably a fatal system error, these checks will cause the 8494114237Snjlimmediate abort of the currently executing method or interface. 8495102550Siwasaki 8496114237SnjlFixed a problem where the AcpiSetCurrentResources interface could 8497193267Sjkimfault. This was a side effect of the deployment of the new memory 8498126372Snjlallocation model. 8499102550Siwasaki 8500193267SjkimFixed a couple of problems with the Global Lock support introduced 8501193267Sjkimin the last major build. The "common" (1.0/2.0) internal FACS was 8502126372Snjlbeing overwritten with the FACS signature and clobbering the 8503126372SnjlGlobal Lock pointer. Also, the actual firmware FACS was being 8504126372Snjlunmapped after construction of the "common" FACS, preventing 8505126372Snjlaccess to the actual Global Lock field within it. The "common" 8506126372Snjlinternal FACS is no longer installed as an actual ACPI table; it 8507126372Snjlis used simply as a global. 8508102550Siwasaki 8509193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8510126372Snjlbelow. These are the code and data sizes for the acpica.lib 8511126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8512126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8513126372Snjlversion of the code includes the debug output trace mechanism and 8514193267Sjkimhas a larger code and data size. Note that these values will vary 8515126372Snjldepending on the efficiency of the compiler and the compiler 8516126372Snjloptions used during generation. 8517102550Siwasaki 8518102550Siwasaki Previous Release (02_07_01) 8519104470Siwasaki Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 8520104470Siwasaki Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 8521102550Siwasaki Current Release: 8522104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 8523104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 8524102550Siwasaki 8525102550Siwasaki 8526102550Siwasaki2) Linux 8527102550Siwasaki 8528102550SiwasakiUpdated Linux-specific code for core macro and OSL interface 8529102550Siwasakichanges described above. 8530102550Siwasaki 8531114237SnjlImproved /proc/acpi/event. It now can be opened only once and has 8532114237Snjlproper poll functionality. 8533102550Siwasaki 8534102550SiwasakiFixed and restructured power management (acpi_bus). 8535102550Siwasaki 8536193267SjkimOnly create /proc "view by type" when devices of that class exist. 8537102550Siwasaki 8538104470SiwasakiFixed "charging/discharging" bug (and others) in acpi_battery. 8539102550Siwasaki 8540102550SiwasakiImproved thermal zone code. 8541102550Siwasaki 8542102550Siwasaki 8543102550Siwasaki3) ASL Compiler, version X2039: 8544102550Siwasaki 8545114237Snjl 8546114237SnjlImplemented the new compiler restriction on ASL String hex/octal 8547193267Sjkimescapes to non-null, ASCII values. An error results if an invalid 8548126372Snjlvalue is used. (This will require an ACPI 2.0 specification 8549126372Snjlchange.) 8550102550Siwasaki 8551193267SjkimAML object labels that are output to the optional C and ASM source 8552126372Snjlare now prefixed with both the ACPI table signature and table ID 8553126372Snjlto help guarantee uniqueness within a large BIOS project. 8554102550Siwasaki 8555102550Siwasaki 8556102550Siwasaki---------------------------------------- 8557102550SiwasakiSummary of changes for this label: 02_01_02 8558102550Siwasaki 8559102550Siwasaki1) ACPI CA Core Subsystem: 8560102550Siwasaki 8561114237SnjlACPI 2.0 support is complete in the entire Core Subsystem and the 8562114237SnjlASL compiler. All new ACPI 2.0 operators are implemented and all 8563114237Snjlother changes for ACPI 2.0 support are complete. With 8564193267Sjkimsimultaneous code and data optimizations throughout the subsystem, 8565126372SnjlACPI 2.0 support has been implemented with almost no additional 8566126372Snjlcost in terms of code and data size. 8567102550Siwasaki 8568114237SnjlImplemented a new mechanism for allocation of return buffers. If 8569114237Snjlthe buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 8570114237Snjlbe allocated on behalf of the caller. Consolidated all return 8571114237Snjlbuffer validation and allocation to a common procedure. Return 8572193267Sjkimbuffers will be allocated via the primary OSL allocation interface 8573193267Sjkimsince it appears that a separate pool is not needed by most users. 8574126372SnjlIf a separate pool is required for these buffers, the caller can 8575126372Snjlstill use the original mechanism and pre-allocate the buffer(s). 8576102550Siwasaki 8577102550SiwasakiImplemented support for string operands within the DerefOf 8578102550Siwasakioperator. 8579102550Siwasaki 8580114237SnjlRestructured the Hardware and Event managers to be table driven, 8581114237Snjlsimplifying the source code and reducing the amount of generated 8582114237Snjlcode. 8583102550Siwasaki 8584102550SiwasakiSplit the common read/write low-level ACPI register bitfield 8585104470Siwasakiprocedure into a separate read and write, simplifying the code 8586104470Siwasakiconsiderably. 8587102550Siwasaki 8588114237SnjlObsoleted the AcpiOsCallocate OSL interface. This interface was 8589114237Snjlused only a handful of times and didn't have enough critical mass 8590193267Sjkimfor a separate interface. Replaced with a common calloc procedure 8591126372Snjlin the core. 8592102550Siwasaki 8593104470SiwasakiFixed a reported problem with the GPE number mapping mechanism 8594104470Siwasakithat allows GPE1 numbers to be non-contiguous with GPE0. 8595114237SnjlReorganized the GPE information and shrunk a large array that was 8596114237Snjloriginally large enough to hold info for all possible GPEs (256) 8597114237Snjlto simply large enough to hold all GPEs up to the largest GPE 8598114237Snjlnumber on the machine. 8599102550Siwasaki 8600114237SnjlFixed a reported problem with resource structure alignment on 64- 8601114237Snjlbit platforms. 8602102550Siwasaki 8603102550SiwasakiChanged the AcpiEnableEvent and AcpiDisableEvent external 8604102550Siwasakiinterfaces to not require any flags for the common case of 8605102550Siwasakienabling/disabling a GPE. 8606102550Siwasaki 8607104470SiwasakiImplemented support to allow a "Notify" on a Processor object. 8608102550Siwasaki 8609114237SnjlMost TBDs in comments within the source code have been resolved 8610114237Snjland eliminated. 8611102550Siwasaki 8612167802Sjkim 8613102550SiwasakiFixed a problem in the interpreter where a standalone parent 8614102550Siwasakiprefix (^) was not handled correctly in the interpreter and 8615102550Siwasakidebugger. 8616102550Siwasaki 8617102550SiwasakiRemoved obsolete and unnecessary GPE save/restore code. 8618102550Siwasaki 8619193267SjkimImplemented Field support in the ASL Load operator. This allows a 8620126372Snjltable to be loaded from a named field, in addition to loading a 8621114237Snjltable directly from an Operation Region. 8622102550Siwasaki 8623193267SjkimImplemented timeout and handle support in the external Global Lock 8624126372Snjlinterfaces. 8625102550Siwasaki 8626114237SnjlFixed a problem in the AcpiDump utility where pathnames were no 8627193267Sjkimlonger being generated correctly during the dump of named objects. 8628102550Siwasaki 8629102550SiwasakiModified the AML debugger to give a full display of if/while 8630102550Siwasakipredicates instead of just one AML opcode at a time. (The 8631193267Sjkimpredicate can have several nested ASL statements.) The old method 8632126372Snjlwas confusing during single stepping. 8633102550Siwasaki 8634193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8635126372Snjlbelow. These are the code and data sizes for the acpica.lib 8636114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8637114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 8638114237Snjlversion of the code includes the debug output trace mechanism and 8639193267Sjkimhas a larger code and data size. Note that these values will vary 8640126372Snjldepending on the efficiency of the compiler and the compiler 8641114237Snjloptions used during generation. 8642102550Siwasaki 8643102550Siwasaki Previous Release (12_18_01) 8644114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 8645114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 8646102550Siwasaki Current Release: 8647114237Snjl Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 8648114237Snjl Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 8649102550Siwasaki 8650102550Siwasaki2) Linux 8651102550Siwasaki 8652104470Siwasaki Implemented fix for PIIX reverse throttling errata (Processor 8653104470Siwasakidriver) 8654102550Siwasaki 8655102550SiwasakiAdded new Limit interface (Processor and Thermal drivers) 8656102550Siwasaki 8657102550SiwasakiNew thermal policy (Thermal driver) 8658102550Siwasaki 8659102550SiwasakiMany updates to /proc 8660102550Siwasaki 8661102550SiwasakiBattery "low" event support (Battery driver) 8662102550Siwasaki 8663104470SiwasakiSupports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 8664102550Siwasaki 8665104470SiwasakiIA32 - IA64 initialization unification, no longer experimental 8666102550Siwasaki 8667102550SiwasakiMenuconfig options redesigned 8668102550Siwasaki 8669102550Siwasaki3) ASL Compiler, version X2037: 8670102550Siwasaki 8671193267SjkimImplemented several new output features to simplify integration of 8672126372SnjlAML code into firmware: 1) Output the AML in C source code with 8673193267Sjkimlabels for each named ASL object. The original ASL source code 8674193267Sjkimis interleaved as C comments. 2) Output the AML in ASM source code 8675126372Snjlwith labels and interleaved ASL source. 3) Output the AML in 8676126372Snjlraw hex table form, in either C or ASM. 8677102550Siwasaki 8678102550SiwasakiImplemented support for optional string parameters to the 8679102550SiwasakiLoadTable operator. 8680102550Siwasaki 8681104470SiwasakiCompleted support for embedded escape sequences within string 8682114237Snjlliterals. The compiler now supports all single character escapes 8683114237Snjlas well as the Octal and Hex escapes. Note: the insertion of a 8684114237Snjlnull byte into a string literal (via the hex/octal escape) causes 8685114237Snjlthe string to be immediately terminated. A warning is issued. 8686102550Siwasaki 8687104470SiwasakiFixed a problem where incorrect AML was generated for the case 8688104470Siwasakiwhere an ASL namepath consists of a single parent prefix ( 8689102550Siwasaki 8690102550Siwasaki) with no trailing name segments. 8691102550Siwasaki 8692102550SiwasakiThe compiler has been successfully generated with a 64-bit C 8693102550Siwasakicompiler. 8694102550Siwasaki 8695102550Siwasaki 8696102550Siwasaki 8697102550Siwasaki 8698102550Siwasaki---------------------------------------- 8699102550SiwasakiSummary of changes for this label: 12_18_01 8700102550Siwasaki 8701102550Siwasaki1) Linux 8702102550Siwasaki 8703114237SnjlEnhanced blacklist with reason and severity fields. Any table's 8704114237Snjlsignature may now be used to identify a blacklisted system. 8705102550Siwasaki 8706114237SnjlCall _PIC control method to inform the firmware which interrupt 8707114237Snjlmodel the OS is using. Turn on any disabled link devices. 8708102550Siwasaki 8709102550SiwasakiCleaned up busmgr /proc error handling (Andreas Dilger) 8710102550Siwasaki 8711102550Siwasaki 2) ACPI CA Core Subsystem: 8712102550Siwasaki 8713193267SjkimImplemented ACPI 2.0 semantics for the "Break" operator (Exit from 8714126372Snjlwhile loop) 8715102550Siwasaki 8716102550SiwasakiCompleted implementation of the ACPI 2.0 "Continue", 8717102550Siwasaki"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 8718193267Sjkimoperators. All new ACPI 2.0 operators are now implemented in both 8719193267Sjkimthe ASL compiler and the AML interpreter. The only remaining ACPI 8720126372Snjl2.0 task is support for the String data type in the DerefOf 8721193267Sjkimoperator. Fixed a problem with AcquireMutex where the status code 8722126372Snjlwas lost if the caller had to actually wait for the mutex. 8723102550Siwasaki 8724104470SiwasakiIncreased the maximum ASL Field size from 64K bits to 4G bits. 8725102550Siwasaki 8726193267SjkimCompleted implementation of the external Global Lock interfaces -- 8727126372SnjlAcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 8728126372SnjlHandler parameters were added. 8729102550Siwasaki 8730102550SiwasakiCompleted another pass at removing warnings and issues when 8731114237Snjlcompiling with 64-bit compilers. The code now compiles cleanly 8732114237Snjlwith the Intel 64-bit C/C++ compiler. Most notably, the pointer 8733114237Snjladd and subtract (diff) macros have changed considerably. 8734102550Siwasaki 8735167802Sjkim 8736114237SnjlCreated and deployed a new ACPI_SIZE type that is 64-bits wide on 8737114237Snjl64-bit platforms, 32-bits on all others. This type is used 8738193267Sjkimwherever memory allocation and/or the C sizeof() operator is used, 8739126372Snjland affects the OSL memory allocation interfaces AcpiOsAllocate 8740126372Snjland AcpiOsCallocate. 8741102550Siwasaki 8742102550SiwasakiImplemented sticky user breakpoints in the AML debugger. 8743102550Siwasaki 8744193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8745126372Snjlbelow. These are the code and data sizes for the acpica.lib 8746114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8747114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 8748114237Snjlversion of the code includes the debug output trace mechanism and 8749114237Snjlhas a larger code and data size. Note that these values will vary 8750114237Snjldepending on the efficiency of the compiler and the compiler 8751114237Snjloptions used during generation. 8752102550Siwasaki 8753102550Siwasaki Previous Release (12_05_01) 8754114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 8755114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 8756102550Siwasaki Current Release: 8757114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 8758114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 8759102550Siwasaki 8760102550Siwasaki 3) ASL Compiler, version X2034: 8761102550Siwasaki 8762114237SnjlNow checks for (and generates an error if detected) the use of a 8763114237SnjlBreak or Continue statement without an enclosing While statement. 8764102550Siwasaki 8765167802Sjkim 8766102550SiwasakiSuccessfully generated the compiler with the Intel 64-bit C 8767102550Siwasakicompiler. 8768102550Siwasaki 8769102550Siwasaki ---------------------------------------- 8770102550SiwasakiSummary of changes for this label: 12_05_01 8771102550Siwasaki 8772102550Siwasaki 1) ACPI CA Core Subsystem: 8773102550Siwasaki 8774102550SiwasakiThe ACPI 2.0 CopyObject operator is fully implemented. This 8775104470Siwasakioperator creates a new copy of an object (and is also used to 8776193267Sjkimbypass the "implicit conversion" mechanism of the Store operator.) 8777102550Siwasaki 8778102550SiwasakiThe ACPI 2.0 semantics for the SizeOf operator are fully 8779102550Siwasakiimplemented. The change is that performing a SizeOf on a 8780114237Snjlreference object causes an automatic dereference of the object to 8781114237Snjltha actual value before the size is evaluated. This behavior was 8782114237Snjlundefined in ACPI 1.0. 8783102550Siwasaki 8784114237SnjlThe ACPI 2.0 semantics for the Extended IRQ resource descriptor 8785114237Snjlhave been implemented. The interrupt polarity and mode are now 8786114237Snjlindependently set. 8787102550Siwasaki 8788114237SnjlFixed a problem where ASL Constants (Zero, One, Ones, Revision) 8789114237Snjlappearing in Package objects were not properly converted to 8790114237Snjlintegers when the internal Package was converted to an external 8791114237Snjlobject (via the AcpiEvaluateObject interface.) 8792102550Siwasaki 8793114237SnjlFixed a problem with the namespace object deletion mechanism for 8794114237Snjlobjects created by control methods. There were two parts to this 8795193267Sjkimproblem: 1) Objects created during the initialization phase method 8796193267Sjkimparse were not being deleted, and 2) The object owner ID mechanism 8797126372Snjlto track objects was broken. 8798102550Siwasaki 8799114237SnjlFixed a problem where the use of the ASL Scope operator within a 8800114237Snjlcontrol method would result in an invalid opcode exception. 8801102550Siwasaki 8802114237SnjlFixed a problem introduced in the previous label where the buffer 8803114237Snjllength required for the _PRT structure was not being returned 8804114237Snjlcorrectly. 8805102550Siwasaki 8806193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8807126372Snjlbelow. These are the code and data sizes for the acpica.lib 8808114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8809114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 8810114237Snjlversion of the code includes the debug output trace mechanism and 8811193267Sjkimhas a larger code and data size. Note that these values will vary 8812126372Snjldepending on the efficiency of the compiler and the compiler 8813114237Snjloptions used during generation. 8814102550Siwasaki 8815102550Siwasaki Previous Release (11_20_01) 8816114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8817114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8818102550Siwasaki 8819102550Siwasaki Current Release: 8820114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 8821114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 8822102550Siwasaki 8823102550Siwasaki 2) Linux: 8824102550Siwasaki 8825102550SiwasakiUpdated all files to apply cleanly against 2.4.16. 8826102550Siwasaki 8827104470SiwasakiAdded basic PCI Interrupt Routing Table (PRT) support for IA32 8828114237Snjl(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 8829114237Snjlversion supports both static and dyanmic PRT entries, but dynamic 8830114237Snjlentries are treated as if they were static (not yet 8831114237Snjlreconfigurable). Architecture- specific code to use this data is 8832114237Snjlabsent on IA32 but should be available shortly. 8833102550Siwasaki 8834114237SnjlChanged the initialization sequence to start the ACPI interpreter 8835114237Snjl(acpi_init) prior to initialization of the PCI driver (pci_init) 8836114237Snjlin init/main.c. This ordering is required to support PRT and 8837114237Snjlfacilitate other (future) enhancement. A side effect is that the 8838193267SjkimACPI bus driver and certain device drivers can no longer be loaded 8839126372Snjlas modules. 8840102550Siwasaki 8841104470SiwasakiModified the 'make menuconfig' options to allow PCI Interrupt 8842104470SiwasakiRouting support to be included without the ACPI Bus and other 8843104470Siwasakidevice drivers. 8844102550Siwasaki 8845102550Siwasaki 3) ASL Compiler, version X2033: 8846102550Siwasaki 8847102550SiwasakiFixed some issues with the use of the new CopyObject and 8848102550SiwasakiDataTableRegion operators. Both are fully functional. 8849102550Siwasaki 8850102550Siwasaki ---------------------------------------- 8851102550SiwasakiSummary of changes for this label: 11_20_01 8852102550Siwasaki 8853102550Siwasaki 20 November 2001. Summary of changes for this release. 8854102550Siwasaki 8855102550Siwasaki 1) ACPI CA Core Subsystem: 8856102550Siwasaki 8857104470SiwasakiUpdated Index support to match ACPI 2.0 semantics. Storing a 8858193267SjkimInteger, String, or Buffer to an Index of a Buffer will store only 8859126372Snjlthe least-significant byte of the source to the Indexed buffer 8860126372Snjlbyte. Multiple writes are not performed. 8861102550Siwasaki 8862104470SiwasakiFixed a problem where the access type used in an AccessAs ASL 8863104470Siwasakioperator was not recorded correctly into the field object. 8864102550Siwasaki 8865102550SiwasakiFixed a problem where ASL Event objects were created in a 8866114237Snjlsignalled state. Events are now created in an unsignalled state. 8867102550Siwasaki 8868114237SnjlThe internal object cache is now purged after table loading and 8869114237Snjlinitialization to reduce the use of dynamic kernel memory -- on 8870114237Snjlthe assumption that object use is greatest during the parse phase 8871193267Sjkimof the entire table (versus the run-time use of individual control 8872126372Snjlmethods.) 8873102550Siwasaki 8874102550SiwasakiACPI 2.0 variable-length packages are now fully operational. 8875102550Siwasaki 8876193267SjkimCode and Data Size: Code and Data optimizations have permitted new 8877126372Snjlfeature development with an actual reduction in the library size. 8878126372SnjlCurrent core subsystem library sizes are shown below. These are 8879126372Snjlthe code and data sizes for the acpica.lib produced by the 8880193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8881126372Snjlany ACPI driver or OSPM code. The debug version of the code 8882126372Snjlincludes the debug output trace mechanism and has a larger code 8883126372Snjland data size. Note that these values will vary depending on the 8884126372Snjlefficiency of the compiler and the compiler options used during 8885126372Snjlgeneration. 8886102550Siwasaki 8887102550Siwasaki Previous Release (11_09_01): 8888114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8889114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8890102550Siwasaki 8891102550Siwasaki Current Release: 8892114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8893114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8894102550Siwasaki 8895102550Siwasaki 2) Linux: 8896102550Siwasaki 8897114237SnjlEnhanced the ACPI boot-time initialization code to allow the use 8898114237Snjlof Local APIC tables for processor enumeration on IA-32, and to 8899114237Snjlpave the way for a fully MPS-free boot (on SMP systems) in the 8900114237Snjlnear future. This functionality replaces 8901114237Snjlarch/i386/kernel/acpitables.c, which was introduced in an earlier 8902114237Snjl2.4.15-preX release. To enable this feature you must add 8903114237Snjl"acpi_boot=on" to the kernel command line -- see the help entry 8904193267Sjkimfor CONFIG_ACPI_BOOT for more information. An IA-64 release is in 8905126372Snjlthe works... 8906102550Siwasaki 8907114237SnjlRestructured the configuration options to allow boot-time table 8908114237Snjlparsing support without inclusion of the ACPI Interpreter (and 8909114237Snjlother) code. 8910102550Siwasaki 8911193267SjkimNOTE: This release does not include fixes for the reported events, 8912126372Snjlpower-down, and thermal passive cooling issues (coming soon). 8913102550Siwasaki 8914102550Siwasaki 3) ASL Compiler: 8915102550Siwasaki 8916114237SnjlAdded additional typechecking for Fields within restricted access 8917114237SnjlOperation Regions. All fields within EC and CMOS regions must be 8918114237Snjldeclared with ByteAcc. All fields withing SMBus regions must be 8919114237Snjldeclared with the BufferAcc access type. 8920102550Siwasaki 8921114237SnjlFixed a problem where the listing file output of control methods 8922114237Snjlno longer interleaved the actual AML code with the ASL source 8923114237Snjlcode. 8924102550Siwasaki 8925102550Siwasaki 8926102550Siwasaki 8927167802Sjkim 8928102550Siwasaki---------------------------------------- 8929102550SiwasakiSummary of changes for this label: 11_09_01 8930102550Siwasaki 8931102550Siwasaki1) ACPI CA Core Subsystem: 8932102550Siwasaki 8933114237SnjlImplemented ACPI 2.0-defined support for writes to fields with a 8934193267SjkimBuffer, String, or Integer source operand that is smaller than the 8935126372Snjltarget field. In these cases, the source operand is zero-extended 8936126372Snjlto fill the target field. 8937102550Siwasaki 8938104470SiwasakiFixed a problem where a Field starting bit offset (within the 8939104470Siwasakiparent operation region) was calculated incorrectly if the 8940167802Sjkim 8941104470Siwasakialignment of the field differed from the access width. This 8942114237Snjlaffected CreateWordField, CreateDwordField, CreateQwordField, and 8943114237Snjlpossibly other fields that use the "AccessAny" keyword. 8944102550Siwasaki 8945114237SnjlFixed a problem introduced in the 11_02_01 release where indirect 8946114237Snjlstores through method arguments did not operate correctly. 8947102550Siwasaki 8948102550Siwasaki2) Linux: 8949102550Siwasaki 8950102550SiwasakiImplemented boot-time ACPI table parsing support 8951114237Snjl(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 8952114237Snjlfacilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 8953114237Snjllegacy BIOS interfaces (e.g. MPS) for the configuration of system 8954193267Sjkimprocessors, memory, and interrupts during setup_arch(). Note that 8955126372Snjlthis patch does not include the required architecture-specific 8956126372Snjlchanges required to apply this information -- subsequent patches 8957126372Snjlwill be posted for both IA32 and IA64 to achieve this. 8958102550Siwasaki 8959114237SnjlAdded low-level sleep support for IA32 platforms, courtesy of Pat 8960114237SnjlMochel. This allows IA32 systems to transition to/from various 8961114237Snjlsleeping states (e.g. S1, S3), although the lack of a centralized 8962114237Snjldriver model and power-manageable drivers will prevent its 8963114237Snjl(successful) use on most systems. 8964102550Siwasaki 8965114237SnjlRevamped the ACPI 'menuconfig' layout: created new "ACPI Support" 8966193267Sjkimsubmenu, unified IA32 and IA64 options, added new "Boot using ACPI 8967126372Snjltables" option, etc. 8968102550Siwasaki 8969114237SnjlIncreased the default timeout for the EC driver from 1ms to 10ms 8970114237Snjl(1000 cycles of 10us) to try to address AE_TIME errors during EC 8971114237Snjltransactions. 8972102550Siwasaki 8973102550Siwasaki ---------------------------------------- 8974102550SiwasakiSummary of changes for this label: 11_02_01 8975102550Siwasaki 8976102550Siwasaki1) ACPI CA Core Subsystem: 8977102550Siwasaki 8978102550SiwasakiACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 8979102550Siwasaki(QWordAcc keyword). All ACPI 2.0 64-bit support is now 8980102550Siwasakiimplemented. 8981102550Siwasaki 8982114237SnjlOSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 8983114237Snjlchanges to support ACPI 2.0 Qword field access. Read/Write 8984193267SjkimPciConfiguration(), Read/Write Memory(), and Read/Write Port() now 8985126372Snjlaccept an ACPI_INTEGER (64 bits) as the value parameter. Also, 8986193267Sjkimthe value parameter for the address space handler interface is now 8987193267Sjkiman ACPI_INTEGER. OSL implementations of these interfaces must now 8988126372Snjlhandle the case where the Width parameter is 64. 8989102550Siwasaki 8990104470SiwasakiIndex Fields: Fixed a problem where unaligned bit assembly and 8991104470Siwasakidisassembly for IndexFields was not supported correctly. 8992102550Siwasaki 8993102550SiwasakiIndex and Bank Fields: Nested Index and Bank Fields are now 8994104470Siwasakisupported. During field access, a check is performed to ensure 8995114237Snjlthat the value written to an Index or Bank register is not out of 8996114237Snjlthe range of the register. The Index (or Bank) register is 8997114237Snjlwritten before each access to the field data. Future support will 8998114237Snjlinclude allowing individual IndexFields to be wider than the 8999114237SnjlDataRegister width. 9000102550Siwasaki 9001114237SnjlFields: Fixed a problem where the AML interpreter was incorrectly 9002114237Snjlattempting to write beyond the end of a Field/OpRegion. This was 9003114237Snjla boundary case that occurred when a DWORD field was written to a 9004114237SnjlBYTE access OpRegion, forcing multiple writes and causing the 9005114237Snjlinterpreter to write one datum too many. 9006102550Siwasaki 9007102550SiwasakiFields: Fixed a problem with Field/OpRegion access where the 9008114237Snjlstarting bit address of a field was incorrectly calculated if the 9009114237Snjlcurrent access type was wider than a byte (WordAcc, DwordAcc, or 9010114237SnjlQwordAcc). 9011102550Siwasaki 9012104470SiwasakiFields: Fixed a problem where forward references to individual 9013193267SjkimFieldUnits (individual Field names within a Field definition) were 9014126372Snjlnot resolved during the AML table load. 9015102550Siwasaki 9016104470SiwasakiFields: Fixed a problem where forward references from a Field 9017104470Siwasakidefinition to the parent Operation Region definition were not 9018104470Siwasakiresolved during the AML table load. 9019104470Siwasaki 9020114237SnjlFields: Duplicate FieldUnit names within a scope are now detected 9021114237Snjlduring AML table load. 9022102550Siwasaki 9023193267SjkimAcpi Interfaces: Fixed a problem where the AcpiGetName() interface 9024126372Snjlreturned an incorrect name for the root node. 9025102550Siwasaki 9026193267SjkimCode and Data Size: Code and Data optimizations have permitted new 9027126372Snjlfeature development with an actual reduction in the library size. 9028126372SnjlCurrent core subsystem library sizes are shown below. These are 9029126372Snjlthe code and data sizes for the acpica.lib produced by the 9030193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9031126372Snjlany ACPI driver or OSPM code. The debug version of the code 9032126372Snjlincludes the debug output trace mechanism and has a larger code 9033126372Snjland data size. Note that these values will vary depending on the 9034126372Snjlefficiency of the compiler and the compiler options used during 9035126372Snjlgeneration. 9036102550Siwasaki 9037102550Siwasaki Previous Release (10_18_01): 9038114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 9039114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 9040102550Siwasaki 9041102550Siwasaki Current Release: 9042114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9043114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9044102550Siwasaki 9045102550Siwasaki 2) Linux: 9046102550Siwasaki 9047102550SiwasakiImproved /proc processor output (Pavel Machek) Re-added 9048102550SiwasakiMODULE_LICENSE("GPL") to all modules. 9049102550Siwasaki 9050102550Siwasaki 3) ASL Compiler version X2030: 9051102550Siwasaki 9052104470SiwasakiDuplicate FieldUnit names within a scope are now detected and 9053104470Siwasakiflagged as errors. 9054102550Siwasaki 9055102550Siwasaki 4) Documentation: 9056102550Siwasaki 9057104470SiwasakiProgrammer Reference updated to reflect OSL and address space 9058104470Siwasakihandler interface changes described above. 9059102550Siwasaki 9060102550Siwasaki---------------------------------------- 9061102550SiwasakiSummary of changes for this label: 10_18_01 9062102550Siwasaki 9063102550SiwasakiACPI CA Core Subsystem: 9064102550Siwasaki 9065193267SjkimFixed a problem with the internal object reference count mechanism 9066126372Snjlthat occasionally caused premature object deletion. This resolves 9067126372Snjlall of the outstanding problem reports where an object is deleted 9068193267Sjkimin the middle of an interpreter evaluation. Although this problem 9069126372Snjlonly showed up in rather obscure cases, the solution to the 9070126372Snjlproblem involved an adjustment of all reference counts involving 9071126372Snjlobjects attached to namespace nodes. 9072102550Siwasaki 9073102550SiwasakiFixed a problem with Field support in the interpreter where 9074114237Snjlwriting to an aligned field whose length is an exact multiple (2 9075193267Sjkimor greater) of the field access granularity would cause an attempt 9076126372Snjlto write beyond the end of the field. 9077102550Siwasaki 9078102550SiwasakiThe top level AML opcode execution functions within the 9079102550Siwasakiinterpreter have been renamed with a more meaningful and 9080102550Siwasakiconsistent naming convention. The modules exmonad.c and 9081102550Siwasakiexdyadic.c were eliminated. New modules are exoparg1.c, 9082102550Siwasakiexoparg2.c, exoparg3.c, and exoparg6.c. 9083102550Siwasaki 9084114237SnjlSupport for the ACPI 2.0 "Mid" ASL operator has been implemented. 9085102550Siwasaki 9086114237SnjlFixed a problem where the AML debugger was causing some internal 9087114237Snjlobjects to not be deleted during subsystem termination. 9088102550Siwasaki 9089104470SiwasakiFixed a problem with the external AcpiEvaluateObject interface 9090104470Siwasakiwhere the subsystem would fault if the named object to be 9091104470Siwasakievaluated refered to a constant such as Zero, Ones, etc. 9092102550Siwasaki 9093102550SiwasakiFixed a problem with IndexFields and BankFields where the 9094114237Snjlsubsystem would fault if the index, data, or bank registers were 9095114237Snjlnot defined in the same scope as the field itself. 9096102550Siwasaki 9097104470SiwasakiAdded printf format string checking for compilers that support 9098104470Siwasakithis feature. Corrected more than 50 instances of issues with 9099104470Siwasakiformat specifiers within invocations of ACPI_DEBUG_PRINT 9100104470Siwasakithroughout the core subsystem code. 9101102550Siwasaki 9102104470SiwasakiThe ASL "Revision" operator now returns the ACPI support level 9103193267Sjkimimplemented in the core - the value "2" since the ACPI 2.0 support 9104126372Snjlis more than 50% implemented. 9105102550Siwasaki 9106114237SnjlEnhanced the output of the AML debugger "dump namespace" command 9107114237Snjlto output in a more human-readable form. 9108102550Siwasaki 9109114237SnjlCurrent core subsystem library code sizes are shown below. These 9110167802Sjkim 9111114237Snjlare the code and data sizes for the acpica.lib produced by the 9112193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9113126372Snjlany ACPI driver or OSPM code. The debug version of the code 9114126372Snjlincludes the full debug trace mechanism -- leading to a much 9115167802Sjkim 9116114237Snjllarger code and data size. Note that these values will vary 9117114237Snjldepending on the efficiency of the compiler and the compiler 9118114237Snjloptions used during generation. 9119102550Siwasaki 9120102550Siwasaki Previous Label (09_20_01): 9121114237Snjl Non-Debug Version: 65K Code, 5K Data, 70K Total 9122114237Snjl Debug Version: 138K Code, 58K Data, 196K Total 9123102550Siwasaki 9124102550Siwasaki This Label: 9125102550Siwasaki 9126114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 9127114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 9128114237Snjl 9129102550SiwasakiLinux: 9130102550Siwasaki 9131104470SiwasakiImplemented a "Bad BIOS Blacklist" to track machines that have 9132104470Siwasakiknown ASL/AML problems. 9133102550Siwasaki 9134193267SjkimEnhanced the /proc interface for the thermal zone driver and added 9135126372Snjlsupport for _HOT (the critical suspend trip point). The 'info' 9136193267Sjkimfile now includes threshold/policy information, and allows setting 9137126372Snjlof _SCP (cooling preference) and _TZP (polling frequency) values 9138193267Sjkimto the 'info' file. Examples: "echo tzp=5 > info" sets the polling 9139126372Snjlfrequency to 5 seconds, and "echo scp=1 > info" sets the cooling 9140126372Snjlpreference to the passive/quiet mode (if supported by the ASL). 9141102550Siwasaki 9142104470SiwasakiImplemented a workaround for a gcc bug that resuted in an OOPs 9143104470Siwasakiwhen loading the control method battery driver. 9144102550Siwasaki 9145102550Siwasaki ---------------------------------------- 9146102550SiwasakiSummary of changes for this label: 09_20_01 9147102550Siwasaki 9148102550Siwasaki ACPI CA Core Subsystem: 9149102550Siwasaki 9150104470SiwasakiThe AcpiEnableEvent and AcpiDisableEvent interfaces have been 9151104470Siwasakimodified to allow individual GPE levels to be flagged as wake- 9152114237Snjlenabled (i.e., these GPEs are to remain enabled when the platform 9153114237Snjlsleeps.) 9154102550Siwasaki 9155104470SiwasakiThe AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 9156104470Siwasakisupport wake-enabled GPEs. This means that upon entering the 9157104470Siwasakisleep state, all GPEs that are not wake-enabled are disabled. 9158104470SiwasakiWhen leaving the sleep state, these GPEs are reenabled. 9159102550Siwasaki 9160114237SnjlA local double-precision divide/modulo module has been added to 9161114237Snjlenhance portability to OS kernels where a 64-bit math library is 9162114237Snjlnot available. The new module is "utmath.c". 9163102550Siwasaki 9164104470SiwasakiSeveral optimizations have been made to reduce the use of CPU 9165114237Snjlstack. Originally over 2K, the maximum stack usage is now below 9166114237Snjl2K at 1860 bytes (1.82k) 9167102550Siwasaki 9168114237SnjlFixed a problem with the AcpiGetFirmwareTable interface where the 9169193267Sjkimroot table pointer was not mapped into a logical address properly. 9170102550Siwasaki 9171193267SjkimFixed a problem where a NULL pointer was being dereferenced in the 9172126372Snjlinterpreter code for the ASL Notify operator. 9173102550Siwasaki 9174102550SiwasakiFixed a problem where the use of the ASL Revision operator 9175114237Snjlreturned an error. This operator now returns the current version 9176114237Snjlof the ACPI CA core subsystem. 9177102550Siwasaki 9178114237SnjlFixed a problem where objects passed as control method parameters 9179114237Snjlto AcpiEvaluateObject were always deleted at method termination. 9180114237SnjlHowever, these objects may end up being stored into the namespace 9181114237Snjlby the called method. The object reference count mechanism was 9182114237Snjlapplied to these objects instead of a force delete. 9183102550Siwasaki 9184114237SnjlFixed a problem where static strings or buffers (contained in the 9185114237SnjlAML code) that are declared as package elements within the ASL 9186114237Snjlcode could cause a fault because the interpreter would attempt to 9187114237Snjldelete them. These objects are now marked with the "static 9188114237Snjlobject" flag to prevent any attempt to delete them. 9189102550Siwasaki 9190114237SnjlImplemented an interpreter optimization to use operands directly 9191114237Snjlfrom the state object instead of extracting the operands to local 9192114237Snjlvariables. This reduces stack use and code size, and improves 9193114237Snjlperformance. 9194102550Siwasaki 9195193267SjkimThe module exxface.c was eliminated as it was an unnecessary extra 9196126372Snjllayer of code. 9197102550Siwasaki 9198114237SnjlCurrent core subsystem library code sizes are shown below. These 9199114237Snjlare the code and data sizes for the acpica.lib produced by the 9200193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9201126372Snjlany ACPI driver or OSPM code. The debug version of the code 9202126372Snjlincludes the full debug trace mechanism -- leading to a much 9203114237Snjllarger code and data size. Note that these values will vary 9204114237Snjldepending on the efficiency of the compiler and the compiler 9205114237Snjloptions used during generation. 9206102550Siwasaki 9207102550Siwasaki Non-Debug Version: 65K Code, 5K Data, 70K Total 9208114237Snjl(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 9209114237SnjlTotal (Previously 195K) 9210102550Siwasaki 9211102550SiwasakiLinux: 9212102550Siwasaki 9213114237SnjlSupport for ACPI 2.0 64-bit integers has been added. All ACPI 9214114237SnjlInteger objects are now 64 bits wide 9215102550Siwasaki 9216114237SnjlAll Acpi data types and structures are now in lower case. Only 9217114237SnjlAcpi macros are upper case for differentiation. 9218102550Siwasaki 9219102550Siwasaki Documentation: 9220102550Siwasaki 9221102550SiwasakiChanges to the external interfaces as described above. 9222102550Siwasaki 9223102550Siwasaki ---------------------------------------- 9224102550SiwasakiSummary of changes for this label: 08_31_01 9225102550Siwasaki 9226102550Siwasaki ACPI CA Core Subsystem: 9227102550Siwasaki 9228114237SnjlA bug with interpreter implementation of the ASL Divide operator 9229114237Snjlwas found and fixed. The implicit function return value (not the 9230114237Snjlexplicit store operands) was returning the remainder instead of 9231114237Snjlthe quotient. This was a longstanding bug and it fixes several 9232114237Snjlknown outstanding issues on various platforms. 9233102550Siwasaki 9234104470SiwasakiThe ACPI_DEBUG_PRINT and function trace entry/exit macros have 9235193267Sjkimbeen further optimized for size. There are 700 invocations of the 9236126372SnjlDEBUG_PRINT macro alone, so each optimization reduces the size of 9237126372Snjlthe debug version of the subsystem significantly. 9238102550Siwasaki 9239114237SnjlA stack trace mechanism has been implemented. The maximum stack 9240193267Sjkimusage is about 2K on 32-bit platforms. The debugger command "stat 9241126372Snjlstack" will display the current maximum stack usage. 9242102550Siwasaki 9243114237SnjlAll public symbols and global variables within the subsystem are 9244114237Snjlnow prefixed with the string "Acpi". This keeps all of the 9245114237Snjlsymbols grouped together in a kernel map, and avoids conflicts 9246114237Snjlwith other kernel subsystems. 9247102550Siwasaki 9248114237SnjlMost of the internal fixed lookup tables have been moved into the 9249114237Snjlcode segment via the const operator. 9250102550Siwasaki 9251104470SiwasakiSeveral enhancements have been made to the interpreter to both 9252104470Siwasakireduce the code size and improve performance. 9253102550Siwasaki 9254114237SnjlCurrent core subsystem library code sizes are shown below. These 9255114237Snjlare the code and data sizes for the acpica.lib produced by the 9256193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9257126372Snjlany ACPI driver or OSPM code. The debug version of the code 9258126372Snjlincludes the full debug trace mechanism which contains over 700 9259126372Snjlinvocations of the DEBUG_PRINT macro, 500 function entry macro 9260126372Snjlinvocations, and over 900 function exit macro invocations -- 9261126372Snjlleading to a much larger code and data size. Note that these 9262114237Snjlvalues will vary depending on the efficiency of the compiler and 9263114237Snjlthe compiler options used during generation. 9264102550Siwasaki 9265102550Siwasaki Non-Debug Version: 64K Code, 5K Data, 69K Total 9266102550SiwasakiDebug Version: 137K Code, 58K Data, 195K Total 9267102550Siwasaki 9268102550Siwasaki Linux: 9269102550Siwasaki 9270104470SiwasakiImplemented wbinvd() macro, pending a kernel-wide definition. 9271102550Siwasaki 9272102550SiwasakiFixed /proc/acpi/event to handle poll() and short reads. 9273102550Siwasaki 9274102550Siwasaki ASL Compiler, version X2026: 9275102550Siwasaki 9276104470SiwasakiFixed a problem introduced in the previous label where the AML 9277167802Sjkim 9278104470Siwasakicode emitted for package objects produced packages with zero 9279104470Siwasakilength. 9280102550Siwasaki 9281102550Siwasaki ---------------------------------------- 9282102550SiwasakiSummary of changes for this label: 08_16_01 9283102550Siwasaki 9284102550SiwasakiACPI CA Core Subsystem: 9285102550Siwasaki 9286114237SnjlThe following ACPI 2.0 ASL operators have been implemented in the 9287114237SnjlAML interpreter (These are already supported by the Intel ASL 9288193267Sjkimcompiler): ToDecimalString, ToHexString, ToString, ToInteger, and 9289126372SnjlToBuffer. Support for 64-bit AML constants is implemented in the 9290126372SnjlAML parser, debugger, and disassembler. 9291102550Siwasaki 9292114237SnjlThe internal memory tracking mechanism (leak detection code) has 9293114237Snjlbeen upgraded to reduce the memory overhead (a separate tracking 9294114237Snjlblock is no longer allocated for each memory allocation), and now 9295114237Snjlsupports all of the internal object caches. 9296102550Siwasaki 9297114237SnjlThe data structures and code for the internal object caches have 9298114237Snjlbeen coelesced and optimized so that there is a single cache and 9299114237Snjlmemory list data structure and a single group of functions that 9300114237Snjlimplement generic cache management. This has reduced the code 9301114237Snjlsize in both the debug and release versions of the subsystem. 9302102550Siwasaki 9303193267SjkimThe DEBUG_PRINT macro(s) have been optimized for size and replaced 9304126372Snjlby ACPI_DEBUG_PRINT. The syntax for this macro is slightly 9305126372Snjldifferent, because it generates a single call to an internal 9306126372Snjlfunction. This results in a savings of about 90 bytes per 9307193267Sjkiminvocation, resulting in an overall code and data savings of about 9308126372Snjl16% in the debug version of the subsystem. 9309102550Siwasaki 9310102550Siwasaki Linux: 9311102550Siwasaki 9312114237SnjlFixed C3 disk corruption problems and re-enabled C3 on supporting 9313114237Snjlmachines. 9314102550Siwasaki 9315102550SiwasakiIntegrated low-level sleep code by Patrick Mochel. 9316102550Siwasaki 9317102550SiwasakiFurther tweaked source code Linuxization. 9318102550Siwasaki 9319102550SiwasakiOther minor fixes. 9320102550Siwasaki 9321102550Siwasaki ASL Compiler: 9322102550Siwasaki 9323114237SnjlSupport for ACPI 2.0 variable length packages is fixed/completed. 9324102550Siwasaki 9325114237SnjlFixed a problem where the optional length parameter for the ACPI 9326114237Snjl2.0 ToString operator. 9327102550Siwasaki 9328114237SnjlFixed multiple extraneous error messages when a syntax error is 9329114237Snjldetected within the declaration line of a control method. 9330102550Siwasaki 9331102550Siwasaki ---------------------------------------- 9332102550SiwasakiSummary of changes for this label: 07_17_01 9333102550Siwasaki 9334102550SiwasakiACPI CA Core Subsystem: 9335102550Siwasaki 9336104470SiwasakiAdded a new interface named AcpiGetFirmwareTable to obtain any 9337193267SjkimACPI table via the ACPI signature. The interface can be called at 9338126372Snjlany time during kernel initialization, even before the kernel 9339193267Sjkimvirtual memory manager is initialized and paging is enabled. This 9340126372Snjlallows kernel subsystems to obtain ACPI tables very early, even 9341126372Snjlbefore the ACPI CA subsystem is initialized. 9342102550Siwasaki 9343104470SiwasakiFixed a problem where Fields defined with the AnyAcc attribute 9344104470Siwasakicould be resolved to the incorrect address under the following 9345114237Snjlconditions: 1) the field width is larger than 8 bits and 2) the 9346114237Snjlparent operation region is not defined on a DWORD boundary. 9347102550Siwasaki 9348114237SnjlFixed a problem where the interpreter is not being locked during 9349114237Snjlnamespace initialization (during execution of the _INI control 9350114237Snjlmethods), causing an error when an attempt is made to release it 9351114237Snjllater. 9352102550Siwasaki 9353104470SiwasakiACPI 2.0 support in the AML Interpreter has begun and will be 9354114237Snjlongoing throughout the rest of this year. In this label, The Mod 9355114237Snjloperator is implemented. 9356102550Siwasaki 9357102550SiwasakiAdded a new data type to contain full PCI addresses named 9358193267SjkimACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 9359126372Snjland Function values. 9360102550Siwasaki 9361102550Siwasaki Linux: 9362102550Siwasaki 9363102550SiwasakiEnhanced the Linux version of the source code to change most 9364102550Siwasakicapitalized ACPI type names to lowercase. For example, all 9365114237Snjlinstances of ACPI_STATUS are changed to acpi_status. This will 9366114237Snjlresult in a large diff, but the change is strictly cosmetic and 9367114237Snjlaligns the CA code closer to the Linux coding standard. 9368102550Siwasaki 9369102550SiwasakiOSL Interfaces: 9370102550Siwasaki 9371193267SjkimThe interfaces to the PCI configuration space have been changed to 9372193267Sjkimadd the PCI Segment number and to split the single 32-bit combined 9373126372SnjlDeviceFunction field into two 16-bit fields. This was 9374114237Snjlaccomplished by moving the four values that define an address in 9375114237SnjlPCI configuration space (segment, bus, device, and function) to 9376114237Snjlthe new ACPI_PCI_ID structure. 9377102550Siwasaki 9378104470SiwasakiThe changes to the PCI configuration space interfaces led to a 9379104470Siwasakireexamination of the complete set of address space access 9380114237Snjlinterfaces for PCI, I/O, and Memory. The previously existing 18 9381114237Snjlinterfaces have proven difficult to maintain (any small change 9382193267Sjkimmust be propagated across at least 6 interfaces) and do not easily 9383193267Sjkimallow for future expansion to 64 bits if necessary. Also, on some 9384126372Snjlsystems, it would not be appropriate to demultiplex the access 9385126372Snjlwidth (8, 16, 32,or 64) before calling the OSL if the 9386114237Snjlcorresponding native OS interfaces contain a similar access width 9387114237Snjlparameter. For these reasons, the 18 address space interfaces 9388114237Snjlhave been replaced by these 6 new ones: 9389102550Siwasaki 9390102550SiwasakiAcpiOsReadPciConfiguration 9391102550SiwasakiAcpiOsWritePciConfiguration 9392102550SiwasakiAcpiOsReadMemory 9393102550SiwasakiAcpiOsWriteMemory 9394102550SiwasakiAcpiOsReadPort 9395102550SiwasakiAcpiOsWritePort 9396102550Siwasaki 9397114237SnjlAdded a new interface named AcpiOsGetRootPointer to allow the OSL 9398114237Snjlto perform the platform and/or OS-specific actions necessary to 9399114237Snjlobtain the ACPI RSDP table pointer. On IA-32 platforms, this 9400114237Snjlinterface will simply call down to the CA core to perform the low- 9401114237Snjlmemory search for the table. On IA-64, the RSDP is obtained from 9402114237SnjlEFI. Migrating this interface to the OSL allows the CA core to 9403167802Sjkim 9404114237Snjlremain OS and platform independent. 9405102550Siwasaki 9406104470SiwasakiAdded a new interface named AcpiOsSignal to provide a generic 9407114237Snjl"function code and pointer" interface for various miscellaneous 9408114237Snjlsignals and notifications that must be made to the host OS. The 9409114237Snjlfirst such signals are intended to support the ASL Fatal and 9410114237SnjlBreakpoint operators. In the latter case, the AcpiOsBreakpoint 9411114237Snjlinterface has been obsoleted. 9412102550Siwasaki 9413102550SiwasakiThe definition of the AcpiFormatException interface has been 9414114237Snjlchanged to simplify its use. The caller no longer must supply a 9415114237Snjlbuffer to the call; A pointer to a const string is now returned 9416114237Snjldirectly. This allows the call to be easily used in printf 9417114237Snjlstatements, etc. since the caller does not have to manage a local 9418114237Snjlbuffer. 9419102550Siwasaki 9420114237Snjl 9421102550Siwasaki ASL Compiler, Version X2025: 9422102550Siwasaki 9423114237SnjlThe ACPI 2.0 Switch/Case/Default operators have been implemented 9424114237Snjland are fully functional. They will work with all ACPI 1.0 9425193267Sjkiminterpreters, since the operators are simply translated to If/Else 9426126372Snjlpairs. 9427102550Siwasaki 9428104470SiwasakiThe ACPI 2.0 ElseIf operator is implemented and will also work 9429104470Siwasakiwith 1.0 interpreters, for the same reason. 9430102550Siwasaki 9431114237SnjlImplemented support for ACPI 2.0 variable-length packages. These 9432114237Snjlpackages have a separate opcode, and their size is determined by 9433114237Snjlthe interpreter at run-time. 9434102550Siwasaki 9435193267SjkimDocumentation The ACPI CA Programmer Reference has been updated to 9436126372Snjlreflect the new interfaces and changes to existing interfaces. 9437102550Siwasaki 9438102550Siwasaki ------------------------------------------ 9439102550SiwasakiSummary of changes for this label: 06_15_01 9440102550Siwasaki 9441102550Siwasaki ACPI CA Core Subsystem: 9442102550Siwasaki 9443102550SiwasakiFixed a problem where a DWORD-accessed field within a Buffer 9444114237Snjlobject would get its byte address inadvertently rounded down to 9445114237Snjlthe nearest DWORD. Buffers are always Byte-accessible. 9446102550Siwasaki 9447102550Siwasaki ASL Compiler, version X2024: 9448102550Siwasaki 9449114237SnjlFixed a problem where the Switch() operator would either fault or 9450114237Snjlhang the compiler. Note however, that the AML code for this ACPI 9451114237Snjl2.0 operator is not yet implemented. 9452102550Siwasaki 9453114237SnjlCompiler uses the new AcpiOsGetTimer interface to obtain compile 9454114237Snjltimings. 9455102550Siwasaki 9456114237SnjlImplementation of the CreateField operator automatically converts 9457114237Snjla reference to a named field within a resource descriptor from a 9458114237Snjlbyte offset to a bit offset if required. 9459102550Siwasaki 9460102550SiwasakiAdded some missing named fields from the resource descriptor 9461193267Sjkimsupport. These are the names that are automatically created by the 9462126372Snjlcompiler to reference fields within a descriptor. They are only 9463126372Snjlvalid at compile time and are not passed through to the AML 9464114237Snjlinterpreter. 9465102550Siwasaki 9466104470SiwasakiResource descriptor named fields are now typed as Integers and 9467104470Siwasakisubject to compile-time typechecking when used in expressions. 9468102550Siwasaki 9469102550Siwasaki ------------------------------------------ 9470102550SiwasakiSummary of changes for this label: 05_18_01 9471102550Siwasaki 9472102550Siwasaki ACPI CA Core Subsystem: 9473102550Siwasaki 9474114237SnjlFixed a couple of problems in the Field support code where bits 9475193267Sjkimfrom adjacent fields could be returned along with the proper field 9476126372Snjlbits. Restructured the field support code to improve performance, 9477126372Snjlreadability and maintainability. 9478102550Siwasaki 9479114237SnjlNew DEBUG_PRINTP macro automatically inserts the procedure name 9480114237Snjlinto the output, saving hundreds of copies of procedure name 9481114237Snjlstrings within the source, shrinking the memory footprint of the 9482114237Snjldebug version of the core subsystem. 9483102550Siwasaki 9484102550Siwasaki Source Code Structure: 9485102550Siwasaki 9486104470SiwasakiThe source code directory tree was restructured to reflect the 9487114237Snjlcurrent organization of the component architecture. Some files 9488114237Snjland directories have been moved and/or renamed. 9489102550Siwasaki 9490102550Siwasaki Linux: 9491102550Siwasaki 9492102550SiwasakiFixed leaking kacpidpc processes. 9493102550Siwasaki 9494102550SiwasakiFixed queueing event data even when /proc/acpi/event is not 9495102550Siwasakiopened. 9496102550Siwasaki 9497102550Siwasaki ASL Compiler, version X2020: 9498102550Siwasaki 9499114237SnjlMemory allocation performance enhancement - over 24X compile time 9500114237Snjlimprovement on large ASL files. Parse nodes and namestring 9501114237Snjlbuffers are now allocated from a large internal compiler buffer. 9502102550Siwasaki 9503102550SiwasakiThe temporary .SRC file is deleted unless the "-s" option is 9504102550Siwasakispecified 9505102550Siwasaki 9506193267SjkimThe "-d" debug output option now sends all output to the .DBG file 9507126372Snjlinstead of the console. 9508102550Siwasaki 9509102550Siwasaki"External" second parameter is now optional 9510102550Siwasaki 9511102550Siwasaki"ElseIf" syntax now properly allows the predicate 9512102550Siwasaki 9513102550SiwasakiLast operand to "Load" now recognized as a Target operand 9514102550Siwasaki 9515102550SiwasakiDebug object can now be used anywhere as a normal object. 9516102550Siwasaki 9517102550SiwasakiResourceTemplate now returns an object of type BUFFER 9518102550Siwasaki 9519102550SiwasakiEISAID now returns an object of type INTEGER 9520102550Siwasaki 9521102550Siwasaki"Index" now works with a STRING operand 9522102550Siwasaki 9523102550Siwasaki"LoadTable" now accepts optional parameters 9524102550Siwasaki 9525102550Siwasaki"ToString" length parameter is now optional 9526102550Siwasaki 9527102550Siwasaki"Interrupt (ResourceType," parse error fixed. 9528102550Siwasaki 9529104470Siwasaki"Register" with a user-defined region space parse error fixed 9530102550Siwasaki 9531114237SnjlEscaped backslash at the end of a string ("\\") scan/parse error 9532114237Snjlfixed 9533102550Siwasaki 9534102550Siwasaki"Revision" is now an object of type INTEGER. 9535102550Siwasaki 9536102550Siwasaki 9537102550Siwasaki 9538102550Siwasaki------------------------------------------ 9539102550SiwasakiSummary of changes for this label: 05_02_01 9540102550Siwasaki 9541102550SiwasakiLinux: 9542102550Siwasaki 9543102550Siwasaki/proc/acpi/event now blocks properly. 9544102550Siwasaki 9545102550SiwasakiRemoved /proc/sys/acpi. You can still dump your DSDT from 9546102550Siwasaki/proc/acpi/dsdt. 9547102550Siwasaki 9548102550Siwasaki ACPI CA Core Subsystem: 9549102550Siwasaki 9550193267SjkimFixed a problem introduced in the previous label where some of the 9551126372Snjl"small" resource descriptor types were not recognized. 9552102550Siwasaki 9553193267SjkimImproved error messages for the case where an ASL Field is outside 9554126372Snjlthe range of the parent operation region. 9555102550Siwasaki 9556102550Siwasaki ASL Compiler, version X2018: 9557102550Siwasaki 9558167802Sjkim 9559193267SjkimAdded error detection for ASL Fields that extend beyond the length 9560126372Snjlof the parent operation region (only if the length of the region 9561126372Snjlis known at compile time.) This includes fields that have a 9562126372Snjlminimum access width that is smaller than the parent region, and 9563126372Snjlindividual field units that are partially or entirely beyond the 9564126372Snjlextent of the parent. 9565102550Siwasaki 9566102550Siwasaki 9567102550Siwasaki 9568102550Siwasaki------------------------------------------ 9569102550SiwasakiSummary of changes for this label: 04_27_01 9570102550Siwasaki 9571102550Siwasaki ACPI CA Core Subsystem: 9572102550Siwasaki 9573193267SjkimFixed a problem where the namespace mutex could be released at the 9574126372Snjlwrong time during execution of AcpiRemoveAddressSpaceHandler. 9575102550Siwasaki 9576104470SiwasakiAdded optional thread ID output for debug traces, to simplify 9577114237Snjldebugging of multiple threads. Added context switch notification 9578114237Snjlwhen the debug code realizes that a different thread is now 9579114237Snjlexecuting ACPI code. 9580102550Siwasaki 9581114237SnjlSome additional external data types have been prefixed with the 9582114237Snjlstring "ACPI_" for consistency. This may effect existing code. 9583193267SjkimThe data types affected are the external callback typedefs - e.g., 9584167802Sjkim 9585126372SnjlWALK_CALLBACK becomes ACPI_WALK_CALLBACK. 9586102550Siwasaki 9587102550Siwasaki Linux: 9588102550Siwasaki 9589102550SiwasakiFixed an issue with the OSL semaphore implementation where a 9590102550Siwasakithread was waking up with an error from receiving a SIGCHLD 9591102550Siwasakisignal. 9592102550Siwasaki 9593114237SnjlLinux version of ACPI CA now uses the system C library for string 9594114237Snjlmanipulation routines instead of a local implementation. 9595102550Siwasaki 9596102550SiwasakiCleaned up comments and removed TBDs. 9597102550Siwasaki 9598102550Siwasaki ASL Compiler, version X2017: 9599102550Siwasaki 9600102550SiwasakiEnhanced error detection and reporting for all file I/O 9601102550Siwasakioperations. 9602102550Siwasaki 9603102550Siwasaki Documentation: 9604102550Siwasaki 9605102550SiwasakiProgrammer Reference updated to version 1.06. 9606102550Siwasaki 9607102550Siwasaki 9608102550Siwasaki 9609102550Siwasaki------------------------------------------ 9610102550SiwasakiSummary of changes for this label: 04_13_01 9611102550Siwasaki 9612102550Siwasaki ACPI CA Core Subsystem: 9613102550Siwasaki 9614102550SiwasakiRestructured support for BufferFields and RegionFields. 9615104470SiwasakiBankFields support is now fully operational. All known 32-bit 9616114237Snjllimitations on field sizes have been removed. Both BufferFields 9617114237Snjland (Operation) RegionFields are now supported by the same field 9618114237Snjlmanagement code. 9619102550Siwasaki 9620114237SnjlResource support now supports QWORD address and IO resources. The 9621114237Snjl16/32/64 bit address structures and the Extended IRQ structure 9622114237Snjlhave been changed to properly handle Source Resource strings. 9623102550Siwasaki 9624114237SnjlA ThreadId of -1 is now used to indicate a "mutex not acquired" 9625193267Sjkimcondition internally and must never be returned by AcpiOsThreadId. 9626126372SnjlThis reserved value was changed from 0 since Unix systems allow a 9627126372Snjlthread ID of 0. 9628102550Siwasaki 9629102550SiwasakiLinux: 9630102550Siwasaki 9631102550SiwasakiDriver code reorganized to enhance portability 9632102550Siwasaki 9633102550SiwasakiAdded a kernel configuration option to control ACPI_DEBUG 9634102550Siwasaki 9635102550SiwasakiFixed the EC driver to honor _GLK. 9636102550Siwasaki 9637102550SiwasakiASL Compiler, version X2016: 9638102550Siwasaki 9639114237SnjlFixed support for the "FixedHw" keyword. Previously, the FixedHw 9640114237Snjladdress space was set to 0, not 0x7f as it should be. 9641102550Siwasaki 9642102550Siwasaki ------------------------------------------ 9643102550SiwasakiSummary of changes for this label: 03_13_01 9644102550Siwasaki 9645102550Siwasaki ACPI CA Core Subsystem: 9646102550Siwasaki 9647104470SiwasakiDuring ACPI initialization, the _SB_._INI method is now run if 9648104470Siwasakipresent. 9649102550Siwasaki 9650193267SjkimNotify handler fix - notifies are deferred until the parent method 9651126372Snjlcompletes execution. This fixes the "mutex already acquired" 9652126372Snjlissue seen occasionally. 9653102550Siwasaki 9654104470SiwasakiPart of the "implicit conversion" rules in ACPI 2.0 have been 9655114237Snjlfound to cause compatibility problems with existing ASL/AML. The 9656114237Snjlconvert "result-to-target-type" implementation has been removed 9657114237Snjlfor stores to method Args and Locals. Source operand conversion 9658114237Snjlis still fully implemented. Possible changes to ACPI 2.0 9659114237Snjlspecification pending. 9660102550Siwasaki 9661104470SiwasakiFix to AcpiRsCalculatePciRoutingTableLength to return correct 9662104470Siwasakilength. 9663102550Siwasaki 9664102550SiwasakiFix for compiler warnings for 64-bit compiles. 9665102550Siwasaki 9666102550Siwasaki Linux: 9667102550Siwasaki 9668102550Siwasaki/proc output aligned for easier parsing. 9669102550Siwasaki 9670102550SiwasakiRelease-version compile problem fixed. 9671102550Siwasaki 9672104470SiwasakiNew kernel configuration options documented in Configure.help. 9673102550Siwasaki 9674102550SiwasakiIBM 600E - Fixed Sleep button may generate "Invalid <NULL> 9675102550Siwasakicontext" message. 9676102550Siwasaki 9677102550Siwasaki OSPM: 9678102550Siwasaki 9679102550SiwasakiPower resource driver integrated with bus manager. 9680102550Siwasaki 9681102550SiwasakiFixed kernel fault during active cooling for thermal zones. 9682102550Siwasaki 9683102550SiwasakiSource Code: 9684102550Siwasaki 9685102550SiwasakiThe source code tree has been restructured. 9686102550Siwasaki 9687102550Siwasaki 9688102550Siwasaki 9689102550Siwasaki------------------------------------------ 9690102550SiwasakiSummary of changes for this label: 03_02_01 9691102550Siwasaki 9692102550Siwasaki Linux OS Services Layer (OSL): 9693102550Siwasaki 9694102550SiwasakiMajor revision of all Linux-specific code. 9695102550Siwasaki 9696102550SiwasakiModularized all ACPI-specific drivers. 9697102550Siwasaki 9698102550SiwasakiAdded new thermal zone and power resource drivers. 9699102550Siwasaki 9700114237SnjlRevamped /proc interface (new functionality is under /proc/acpi). 9701102550Siwasaki 9702102550SiwasakiNew kernel configuration options. 9703102550Siwasaki 9704102550Siwasaki Linux known issues: 9705102550Siwasaki 9706114237SnjlNew kernel configuration options not documented in Configure.help 9707114237Snjlyet. 9708102550Siwasaki 9709114237Snjl 9710102550SiwasakiModule dependencies not currently implemented. If used, they 9711102550Siwasakishould be loaded in this order: busmgr, power, ec, system, 9712102550Siwasakiprocessor, battery, ac_adapter, button, thermal. 9713102550Siwasaki 9714102550SiwasakiModules will not load if CONFIG_MODVERSION is set. 9715102550Siwasaki 9716102550SiwasakiIBM 600E - entering S5 may reboot instead of shutting down. 9717102550Siwasaki 9718104470SiwasakiIBM 600E - Sleep button may generate "Invalid <NULL> context" 9719104470Siwasakimessage. 9720102550Siwasaki 9721104470SiwasakiSome systems may fail with "execution mutex already acquired" 9722104470Siwasakimessage. 9723102550Siwasaki 9724102550Siwasaki ACPI CA Core Subsystem: 9725102550Siwasaki 9726114237SnjlAdded a new OSL Interface, AcpiOsGetThreadId. This was required 9727193267Sjkimfor the deadlock detection code. Defined to return a non-zero, 32- 9728126372Snjlbit thread ID for the currently executing thread. May be a non- 9729126372Snjlzero constant integer on single-thread systems. 9730102550Siwasaki 9731193267SjkimImplemented deadlock detection for internal subsystem mutexes. We 9732126372Snjlmay add conditional compilation for this code (debug only) later. 9733102550Siwasaki 9734104470SiwasakiASL/AML Mutex object semantics are now fully supported. This 9735114237Snjlincludes multiple acquires/releases by owner and support for the 9736167802Sjkim 9737114237SnjlMutex SyncLevel parameter. 9738102550Siwasaki 9739102550SiwasakiA new "Force Release" mechanism automatically frees all ASL 9740104470SiwasakiMutexes that have been acquired but not released when a thread 9741114237Snjlexits the interpreter. This forces conformance to the ACPI spec 9742114237Snjl("All mutexes must be released when an invocation exits") and 9743114237Snjlprevents deadlocked ASL threads. This mechanism can be expanded 9744114237Snjl(later) to monitor other resource acquisitions if OEM ASL code 9745114237Snjlcontinues to misbehave (which it will). 9746102550Siwasaki 9747104470SiwasakiSeveral new ACPI exception codes have been added for the Mutex 9748104470Siwasakisupport. 9749102550Siwasaki 9750104470SiwasakiRecursive method calls are now allowed and supported (the ACPI 9751114237Snjlspec does in fact allow recursive method calls.) The number of 9752114237Snjlrecursive calls is subject to the restrictions imposed by the 9753114237SnjlSERIALIZED method keyword and SyncLevel (ACPI 2.0) method 9754104470Siwasakiparameter. 9755102550Siwasaki 9756102550SiwasakiImplemented support for the SyncLevel parameter for control 9757102550Siwasakimethods (ACPI 2.0 feature) 9758102550Siwasaki 9759114237SnjlFixed a deadlock problem when multiple threads attempted to use 9760114237Snjlthe interpreter. 9761102550Siwasaki 9762102550SiwasakiFixed a problem where the string length of a String package 9763102550Siwasakielement was not always set in a package returned from 9764102550SiwasakiAcpiEvaluateObject. 9765102550Siwasaki 9766114237SnjlFixed a problem where the length of a String package element was 9767114237Snjlnot always included in the length of the overall package returned 9768114237Snjlfrom AcpiEvaluateObject. 9769102550Siwasaki 9770102550SiwasakiAdded external interfaces (Acpi*) to the ACPI debug memory 9771102550Siwasakimanager. This manager keeps a list of all outstanding 9772193267Sjkimallocations, and can therefore detect memory leaks and attempts to 9773126372Snjlfree memory blocks more than once. Useful for code such as the 9774114237Snjlpower manager, etc. May not be appropriate for device drivers. 9775114237SnjlPerformance with the debug code enabled is slow. 9776102550Siwasaki 9777102550SiwasakiThe ACPI Global Lock is now an optional hardware element. 9778102550Siwasaki 9779102550Siwasaki ASL Compiler Version X2015: 9780102550Siwasaki 9781102550SiwasakiIntegrated changes to allow the compiler to be generated on 9782102550Siwasakimultiple platforms. 9783102550Siwasaki 9784102550SiwasakiLinux makefile added to generate the compiler on Linux 9785102550Siwasaki 9786102550Siwasaki Source Code: 9787102550Siwasaki 9788102550SiwasakiAll platform-specific headers have been moved to their own 9789102550Siwasakisubdirectory, Include/Platform. 9790102550Siwasaki 9791102550SiwasakiNew source file added, Interpreter/ammutex.c 9792102550Siwasaki 9793102550SiwasakiNew header file, Include/acstruct.h 9794102550Siwasaki 9795102550Siwasaki Documentation: 9796102550Siwasaki 9797114237SnjlThe programmer reference has been updated for the following new 9798114237Snjlinterfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 9799102550Siwasaki 9800102550Siwasaki ------------------------------------------ 9801102550SiwasakiSummary of changes for this label: 02_08_01 9802102550Siwasaki 9803102550SiwasakiCore ACPI CA Subsystem: Fixed a problem where an error was 9804193267Sjkimincorrectly returned if the return resource buffer was larger than 9805126372Snjlthe actual data (in the resource interfaces). 9806102550Siwasaki 9807114237SnjlReferences to named objects within packages are resolved to the 9808167802Sjkim 9809114237Snjlfull pathname string before packages are returned directly (via 9810114237Snjlthe AcpiEvaluateObject interface) or indirectly via the resource 9811114237Snjlinterfaces. 9812102550Siwasaki 9813102550SiwasakiLinux OS Services Layer (OSL): 9814102550Siwasaki 9815102550SiwasakiImproved /proc battery interface. 9816102550Siwasaki 9817102550Siwasaki 9818104470SiwasakiAdded C-state debugging output and other miscellaneous fixes. 9819102550Siwasaki 9820102550SiwasakiASL Compiler Version X2014: 9821102550Siwasaki 9822114237SnjlAll defined method arguments can now be used as local variables, 9823114237Snjlincluding the ones that are not actually passed in as parameters. 9824114237SnjlThe compiler tracks initialization of the arguments and issues an 9825114237Snjlexception if they are used without prior assignment (just like 9826114237Snjllocals). 9827102550Siwasaki 9828193267SjkimThe -o option now specifies a filename prefix that is used for all 9829126372Snjloutput files, including the AML output file. Otherwise, the 9830114237Snjldefault behavior is as follows: 1) the AML goes to the file 9831114237Snjlspecified in the DSDT. 2) all other output files use the input 9832114237Snjlsource filename as the base. 9833102550Siwasaki 9834102550Siwasaki ------------------------------------------ 9835102550SiwasakiSummary of changes for this label: 01_25_01 9836102550Siwasaki 9837114237SnjlCore ACPI CA Subsystem: Restructured the implementation of object 9838114237Snjlstore support within the interpreter. This includes support for 9839114237Snjlthe Store operator as well as any ASL operators that include a 9840114237Snjltarget operand. 9841102550Siwasaki 9842102550SiwasakiPartially implemented support for Implicit Result-to-Target 9843114237Snjlconversion. This is when a result object is converted on the fly 9844114237Snjlto the type of an existing target object. Completion of this 9845114237Snjlsupport is pending further analysis of the ACPI specification 9846114237Snjlconcerning this matter. 9847102550Siwasaki 9848114237SnjlCPU-specific code has been removed from the subsystem (hardware 9849114237Snjldirectory). 9850102550Siwasaki 9851102550SiwasakiNew Power Management Timer functions added 9852102550Siwasaki 9853114237SnjlLinux OS Services Layer (OSL): Moved system state transition code 9854114237Snjlto the core, fixed it, and modified Linux OSL accordingly. 9855102550Siwasaki 9856102550SiwasakiFixed C2 and C3 latency calculations. 9857102550Siwasaki 9858102550Siwasaki 9859114237SnjlWe no longer use the compilation date for the version message on 9860193267Sjkiminitialization, but retrieve the version from AcpiGetSystemInfo(). 9861102550Siwasaki 9862102550SiwasakiIncorporated for fix Sony VAIO machines. 9863102550Siwasaki 9864104470SiwasakiDocumentation: The Programmer Reference has been updated and 9865104470Siwasakireformatted. 9866102550Siwasaki 9867102550Siwasaki 9868102550SiwasakiASL Compiler: Version X2013: Fixed a problem where the line 9869102550Siwasakinumbering and error reporting could get out of sync in the 9870102550Siwasakipresence of multiple include files. 9871102550Siwasaki 9872102550Siwasaki ------------------------------------------ 9873102550SiwasakiSummary of changes for this label: 01_15_01 9874102550Siwasaki 9875102550SiwasakiCore ACPI CA Subsystem: 9876102550Siwasaki 9877114237SnjlImplemented support for type conversions in the execution of the 9878114237SnjlASL Concatenate operator (The second operand is converted to 9879114237Snjlmatch the type of the first operand before concatenation.) 9880102550Siwasaki 9881102550SiwasakiSupport for implicit source operand conversion is partially 9882114237Snjlimplemented. The ASL source operand types Integer, Buffer, and 9883114237SnjlString are freely interchangeable for most ASL operators and are 9884114237Snjlconverted by the interpreter on the fly as required. Implicit 9885114237SnjlTarget operand conversion (where the result is converted to the 9886114237Snjltarget type before storing) is not yet implemented. 9887102550Siwasaki 9888102550SiwasakiSupport for 32-bit and 64-bit BCD integers is implemented. 9889102550Siwasaki 9890193267SjkimProblem fixed where a field read on an aligned field could cause a 9891126372Snjlread past the end of the field. 9892102550Siwasaki 9893114237SnjlNew exception, AE_AML_NO_RETURN_VALUE, is returned when a method 9894114237Snjldoes not return a value, but the caller expects one. (The ASL 9895114237Snjlcompiler flags this as a warning.) 9896102550Siwasaki 9897102550SiwasakiASL Compiler: 9898102550Siwasaki 9899102550SiwasakiVersion X2011: 9900102550Siwasaki1. Static typechecking of all operands is implemented. This 9901193267Sjkimprevents the use of invalid objects (such as using a Package where 9902126372Snjlan Integer is required) at compile time instead of at interpreter 9903126372Snjlrun-time. 9904114237Snjl2. The ASL source line is printed with ALL errors and warnings. 9905102550Siwasaki3. Bug fix for source EOF without final linefeed. 9906193267Sjkim4. Debug option is split into a parse trace and a namespace trace. 9907102550Siwasaki5. Namespace output option (-n) includes initial values for 9908102550Siwasakiintegers and strings. 9909102550Siwasaki6. Parse-only option added for quick syntax checking. 9910102550Siwasaki7. Compiler checks for duplicate ACPI name declarations 9911102550Siwasaki 9912102550SiwasakiVersion X2012: 9913102550Siwasaki1. Relaxed typechecking to allow interchangeability between 9914114237Snjlstrings, integers, and buffers. These types are now converted by 9915114237Snjlthe interpreter at runtime. 9916114237Snjl2. Compiler reports time taken by each internal subsystem in the 9917114237Snjldebug output file. 9918102550Siwasaki 9919102550Siwasaki 9920102550Siwasaki ------------------------------------------ 9921102550SiwasakiSummary of changes for this label: 12_14_00 9922102550Siwasaki 9923102550SiwasakiASL Compiler: 9924102550Siwasaki 9925104470SiwasakiThis is the first official release of the compiler. Since the 9926104470Siwasakicompiler requires elements of the Core Subsystem, this label 9927104470Siwasakisynchronizes everything. 9928102550Siwasaki 9929102550Siwasaki------------------------------------------ 9930102550SiwasakiSummary of changes for this label: 12_08_00 9931102550Siwasaki 9932102550Siwasaki 9933114237SnjlFixed a problem where named references within the ASL definition 9934114237Snjlof both OperationRegions and CreateXXXFields did not work 9935114237Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 9936114237Snjlinitialization of the region/field. This is similar (but not 9937114237Snjlrelated internally) to the problem that was fixed in the last 9938114237Snjllabel. 9939114237Snjl 9940102550SiwasakiImplemented both 32-bit and 64-bit support for the BCD ASL 9941102550Siwasakifunctions ToBCD and FromBCD. 9942102550Siwasaki 9943102550SiwasakiUpdated all legal headers to include "2000" in the copyright 9944102550Siwasakiyears. 9945102550Siwasaki 9946102550Siwasaki ------------------------------------------ 9947102550SiwasakiSummary of changes for this label: 12_01_00 9948102550Siwasaki 9949193267SjkimFixed a problem where method invocations within the ASL definition 9950126372Snjlof both OperationRegions and CreateXXXFields did not work 9951126372Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 9952114237Snjlinitialization of the region/field: 9953102550Siwasaki 9954114237Snjl nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 9955114237Snjl[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 9956114237Snjl(0x3005) 9957102550Siwasaki 9958102550SiwasakiFixed a problem where operators with more than one nested 9959104470Siwasakisubexpression would fail. The symptoms were varied, by mostly 9960114237SnjlAE_AML_OPERAND_TYPE errors. This was actually a rather serious 9961114237Snjlproblem that has gone unnoticed until now. 9962102550Siwasaki 9963102550Siwasaki Subtract (Add (1,2), Multiply (3,4)) 9964102550Siwasaki 9965114237SnjlFixed a problem where AcpiGetHandle didn't quite get fixed in the 9966114237Snjlprevious build (The prefix part of a relative path was handled 9967114237Snjlincorrectly). 9968102550Siwasaki 9969114237SnjlFixed a problem where Operation Region initialization failed if 9970114237Snjlthe operation region name was a "namepath" instead of a simple 9971114237Snjl"nameseg". Symptom was an AE_NO_OPERAND error. 9972102550Siwasaki 9973114237SnjlFixed a problem where an assignment to a local variable via the 9974114237Snjlindirect RefOf mechanism only worked for the first such 9975102550Siwasakiassignment. Subsequent assignments were ignored. 9976102550Siwasaki 9977102550Siwasaki ------------------------------------------ 9978102550SiwasakiSummary of changes for this label: 11_15_00 9979102550Siwasaki 9980193267SjkimACPI 2.0 table support with backwards support for ACPI 1.0 and the 9981193267Sjkim0.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 9982126372Snjlthe AML interpreter does NOT have support for the new 2.0 ASL 9983126372Snjlgrammar terms at this time. 9984102550Siwasaki 9985193267SjkimAll ACPI hardware access is via the GAS structures in the ACPI 2.0 9986126372SnjlFADT. 9987102550Siwasaki 9988193267SjkimAll physical memory addresses across all platforms are now 64 bits 9989126372Snjlwide. Logical address width remains dependent on the platform 9990126372Snjl(i.e., "void *"). 9991102550Siwasaki 9992114237SnjlAcpiOsMapMemory interface changed to a 64-bit physical address. 9993102550Siwasaki 9994114237SnjlThe AML interpreter integer size is now 64 bits, as per the ACPI 9995114237Snjl2.0 specification. 9996102550Siwasaki 9997104470SiwasakiFor backwards compatibility with ACPI 1.0, ACPI tables with a 9998104470Siwasakirevision number less than 2 use 32-bit integers only. 9999102550Siwasaki 10000114237SnjlFixed a problem where the evaluation of OpRegion operands did not 10001114237Snjlalways resolve them to numbers properly. 10002102550Siwasaki 10003102550Siwasaki------------------------------------------ 10004102550SiwasakiSummary of changes for this label: 10_20_00 10005102550Siwasaki 10006114237SnjlFix for CBN_._STA issue. This fix will allow correct access to 10007114237SnjlCBN_ OpRegions when the _STA returns 0x8. 10008102550Siwasaki 10009104470SiwasakiSupport to convert ACPI constants (Ones, Zeros, One) to actual 10010104470Siwasakivalues before a package object is returned 10011102550Siwasaki 10012104470SiwasakiFix for method call as predicate to if/while construct causing 10013104470Siwasakiincorrect if/while behavior 10014102550Siwasaki 10015114237SnjlFix for Else block package lengths sometimes calculated wrong (if 10016114237Snjlblock > 63 bytes) 10017102550Siwasaki 10018102550SiwasakiFix for Processor object length field, was always zero 10019102550Siwasaki 10020102550SiwasakiTable load abort if FACP sanity check fails 10021102550Siwasaki 10022102550SiwasakiFix for problem with Scope(name) if name already exists 10023102550Siwasaki 10024102550SiwasakiWarning emitted if a named object referenced cannot be found 10025102550Siwasaki(resolved) during method execution. 10026102550Siwasaki 10027102550Siwasaki 10028102550Siwasaki 10029102550Siwasaki 10030102550Siwasaki 10031102550Siwasaki------------------------------------------ 10032102550SiwasakiSummary of changes for this label: 9_29_00 10033102550Siwasaki 10034114237SnjlNew table initialization interfaces: AcpiInitializeSubsystem no 10035114237Snjllonger has any parameters AcpiFindRootPointer - Find the RSDP (if 10036114237Snjlnecessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 10037114237Snjl>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 10038114237SnjlAcpiLoadTables 10039102550Siwasaki 10040193267SjkimNote: These interface changes require changes to all existing OSDs 10041102550Siwasaki 10042114237SnjlThe PCI_Config default address space handler is always installed 10043114237Snjlat the root namespace object. 10044102550Siwasaki 10045102550Siwasaki------------------------------------------- 10046102550SiwasakiSummary of changes for this label: 09_15_00 10047102550Siwasaki 10048102550SiwasakiThe new initialization architecture is implemented. New 10049114237Snjlinterfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 10050114237SnjlAcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 10051167802Sjkim 10052114237Snjl(Namespace is automatically loaded when a table is loaded) 10053102550Siwasaki 10054193267SjkimThe ACPI_OPERAND_OBJECT has been optimized to shrink its size from 10055126372Snjl52 bytes to 32 bytes. There is usually one of these for every 10056126372Snjlnamespace object, so the memory savings is significant. 10057102550Siwasaki 10058114237SnjlImplemented just-in-time evaluation of the CreateField operators. 10059102550Siwasaki 10060102550SiwasakiBug fixes for IA-64 support have been integrated. 10061102550Siwasaki 10062102550SiwasakiAdditional code review comments have been implemented 10063102550Siwasaki 10064193267SjkimThe so-called "third pass parse" has been replaced by a final walk 10065193267Sjkimthrough the namespace to initialize all operation regions (address 10066126372Snjlspaces) and fields that have not yet been initialized during the 10067126372Snjlexecution of the various _INI and REG methods. 10068102550Siwasaki 10069102550SiwasakiNew file - namespace/nsinit.c 10070102550Siwasaki 10071102550Siwasaki------------------------------------------- 10072102550SiwasakiSummary of changes for this label: 09_01_00 10073102550Siwasaki 10074193267SjkimNamespace manager data structures have been reworked to change the 10075126372Snjlprimary object from a table to a single object. This has 10076193267Sjkimresulted in dynamic memory savings of 3X within the namespace and 10077126372Snjl2X overall in the ACPI CA subsystem. 10078102550Siwasaki 10079102550SiwasakiFixed problem where the call to AcpiEvFindPciRootBuses was 10080102550Siwasakiinadvertently left commented out. 10081102550Siwasaki 10082114237SnjlReduced the warning count when generating the source with the GCC 10083114237Snjlcompiler. 10084102550Siwasaki 10085102550SiwasakiRevision numbers added to each module header showing the 10086104470SiwasakiSourceSafe version of the file. Please refer to this version 10087114237Snjlnumber when giving us feedback or comments on individual modules. 10088102550Siwasaki 10089114237SnjlThe main object types within the subsystem have been renamed to 10090114237Snjlclarify their purpose: 10091102550Siwasaki 10092102550SiwasakiACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 10093102550SiwasakiACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 10094102550SiwasakiACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 10095102550Siwasaki 10096114237SnjlNOTE: no changes to the initialization sequence are included in 10097114237Snjlthis label. 10098102550Siwasaki 10099102550Siwasaki------------------------------------------- 10100102550SiwasakiSummary of changes for this label: 08_23_00 10101102550Siwasaki 10102102550SiwasakiFixed problem where TerminateControlMethod was being called 10103102550Siwasakimultiple times per method 10104102550Siwasaki 10105193267SjkimFixed debugger problem where single stepping caused a semaphore to 10106126372Snjlbe oversignalled 10107102550Siwasaki 10108104470SiwasakiImproved performance through additional parse object caching - 10109104470Siwasakiadded ACPI_EXTENDED_OP type 10110102550Siwasaki 10111102550Siwasaki------------------------------------------- 10112102550SiwasakiSummary of changes for this label: 08_10_00 10113102550Siwasaki 10114102550SiwasakiParser/Interpreter integration: Eliminated the creation of 10115102550Siwasakicomplete parse trees for ACPI tables and control methods. 10116114237SnjlInstead, parse subtrees are created and then deleted as soon as 10117193267Sjkimthey are processed (Either entered into the namespace or executed 10118126372Snjlby the interpreter). This reduces the use of dynamic kernel 10119126372Snjlmemory significantly. (about 10X) 10120102550Siwasaki 10121114237SnjlException codes broken into classes and renumbered. Be sure to 10122114237Snjlrecompile all code that includes acexcep.h. Hopefully we won't 10123114237Snjlhave to renumber the codes again now that they are split into 10124114237Snjlclasses (environment, programmer, AML code, ACPI table, and 10125114237Snjlinternal). 10126102550Siwasaki 10127104470SiwasakiFixed some additional alignment issues in the Resource Manager 10128104470Siwasakisubcomponent 10129102550Siwasaki 10130114237SnjlImplemented semaphore tracking in the AcpiExec utility, and fixed 10131114237Snjlseveral places where mutexes/semaphores were being unlocked 10132114237Snjlwithout a corresponding lock operation. There are no known 10133114237Snjlsemaphore or mutex "leaks" at this time. 10134102550Siwasaki 10135114237SnjlFixed the case where an ASL Return operator is used to return an 10136114237Snjlunnamed package. 10137102550Siwasaki 10138102550Siwasaki------------------------------------------- 10139102550SiwasakiSummary of changes for this label: 07_28_00 10140102550Siwasaki 10141102550SiwasakiFixed a problem with the way addresses were calculated in 10142114237SnjlAcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 10143114237Snjlmanifested itself when a Field was created with WordAccess or 10144193267SjkimDwordAccess, but the field unit defined within the Field was less 10145167802Sjkim 10146126372Snjlthan a Word or Dword. 10147102550Siwasaki 10148102550SiwasakiFixed a problem in AmlDumpOperands() module's loop to pull 10149104470Siwasakioperands off of the operand stack to display information. The 10150114237Snjlproblem manifested itself as a TLB error on 64-bit systems when 10151114237Snjlaccessing an operand stack with two or more operands. 10152102550Siwasaki 10153114237SnjlFixed a problem with the PCI configuration space handlers where 10154114237Snjlcontext was getting confused between accesses. This required a 10155114237Snjlchange to the generic address space handler and address space 10156193267Sjkimsetup definitions. Handlers now get both a global handler context 10157126372Snjl(this is the one passed in by the user when executing 10158114237SnjlAcpiInstallAddressSpaceHandler() and a specific region context 10159114237Snjlthat is unique to each region (For example, the _ADR, _SEG and 10160114237Snjl_BBN values associated with a specific region). The generic 10161114237Snjlfunction definitions have changed to the following: 10162102550Siwasaki 10163114237Snjltypedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 10164114237SnjlUINT32 Address, UINT32 BitWidth, UINT32 *Value, void 10165104470Siwasaki*HandlerContext, // This used to be void *Context void 10166102550Siwasaki*RegionContext); // This is an additional parameter 10167102550Siwasaki 10168102550Siwasakitypedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 10169102550SiwasakiRegionHandle, UINT32 Function, void *HandlerContext, void 10170102550Siwasaki**RegionContext); // This used to be **ReturnContext 10171102550Siwasaki 10172102550Siwasaki------------------------------------------- 10173102550SiwasakiSummary of changes for this label: 07_21_00 10174102550Siwasaki 10175102550SiwasakiMajor file consolidation and rename. All files within the 10176193267Sjkiminterpreter have been renamed as well as most header files. This 10177126372Snjlwas done to prevent collisions with existing files in the host 10178126372SnjlOSs -- filenames such as "config.h" and "global.h" seem to be 10179126372Snjlquite common. The VC project files have been updated. All 10180114237Snjlmakefiles will require modification. 10181102550Siwasaki 10182114237SnjlThe parser/interpreter integration continues in Phase 5 with the 10183114237Snjlimplementation of a complete 2-pass parse (the AML is parsed 10184114237Snjltwice) for each table; This avoids the construction of a huge 10185114237Snjlparse tree and therefore reduces the amount of dynamic memory 10186114237Snjlrequired by the subsystem. Greater use of the parse object cache 10187114237Snjlmeans that performance is unaffected. 10188102550Siwasaki 10189102550SiwasakiMany comments from the two code reviews have been rolled in. 10190102550Siwasaki 10191102550SiwasakiThe 64-bit alignment support is complete. 10192102550Siwasaki 10193102550Siwasaki------------------------------------------- 10194102550SiwasakiSummary of changes for this label: 06_30_00 10195102550Siwasaki 10196114237SnjlWith a nod and a tip of the hat to the technology of yesteryear, 10197114237Snjlwe've added support in the source code for 80 column output 10198114237Snjldevices. The code is now mostly constrained to 80 columns or 10199114237Snjlless to support environments and editors that 1) cannot display 10200114237Snjlor print more than 80 characters on a single line, and 2) cannot 10201114237Snjldisable line wrapping. 10202102550Siwasaki 10203104470SiwasakiA major restructuring of the namespace data structure has been 10204104470Siwasakicompleted. The result is 1) cleaner and more 10205114237Snjlunderstandable/maintainable code, and 2) a significant reduction 10206114237Snjlin the dynamic memory requirement for each named ACPI object 10207114237Snjl(almost half). 10208102550Siwasaki 10209102550Siwasaki------------------------------------------- 10210102550SiwasakiSummary of changes for this label: 06_23_00 10211102550Siwasaki 10212114237SnjlLinux support has been added. In order to obtain approval to get 10213114237Snjlthe ACPI CA subsystem into the Linux kernel, we've had to make 10214114237Snjlquite a few changes to the base subsystem that will affect all 10215114237Snjlusers (all the changes are generic and OS- independent). The 10216114237Snjleffects of these global changes have been somewhat far reaching. 10217114237SnjlFiles have been merged and/or renamed and interfaces have been 10218114237Snjlrenamed. The major changes are described below. 10219102550Siwasaki 10220102550SiwasakiOsd* interfaces renamed to AcpiOs* to eliminate namespace 10221102550Siwasakipollution/confusion within our target kernels. All OSD 10222114237Snjlinterfaces must be modified to match the new naming convention. 10223102550Siwasaki 10224193267SjkimFiles merged across the subsystem. A number of the smaller source 10225126372Snjland header files have been merged to reduce the file count and 10226126372Snjlincrease the density of the existing files. There are too many 10227126372Snjlto list here. In general, makefiles that call out individual 10228126372Snjlfiles will require rebuilding. 10229102550Siwasaki 10230104470SiwasakiInterpreter files renamed. All interpreter files now have the 10231104470Siwasakiprefix am* instead of ie* and is*. 10232102550Siwasaki 10233104470SiwasakiHeader files renamed: The acapi.h file is now acpixf.h. The 10234114237Snjlacpiosd.h file is now acpiosxf.h. We are removing references to 10235114237Snjlthe acronym "API" since it is somewhat windowsy. The new name is 10236114237Snjl"external interface" or xface or xf in the filenames.j 10237102550Siwasaki 10238102550Siwasaki 10239114237SnjlAll manifest constants have been forced to upper case (some were 10240193267Sjkimmixed case.) Also, the string "ACPI_" has been prepended to many 10241126372Snjl(not all) of the constants, typedefs, and structs. 10242102550Siwasaki 10243102550SiwasakiThe globals "DebugLevel" and "DebugLayer" have been renamed 10244102550Siwasaki"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 10245102550Siwasaki 10246102550SiwasakiAll other globals within the subsystem are now prefixed with 10247102550Siwasaki"AcpiGbl_" Internal procedures within the subsystem are now 10248114237Snjlprefixed with "Acpi" (with only a few exceptions). The original 10249193267Sjkimtwo-letter abbreviation for the subcomponent remains after "Acpi" 10250126372Snjl- for example, CmCallocate became AcpiCmCallocate. 10251102550Siwasaki 10252102550SiwasakiAdded a source code translation/conversion utility. Used to 10253114237Snjlgenerate the Linux source code, it can be modified to generate 10254114237Snjlother types of source as well. Can also be used to cleanup 10255114237Snjlexisting source by removing extraneous spaces and blank lines. 10256114237SnjlFound in tools/acpisrc/* 10257102550Siwasaki 10258102550SiwasakiOsdUnMapMemory was renamed to OsdUnmapMemory and then 10259102550SiwasakiAcpiOsUnmapMemory. (UnMap became Unmap). 10260102550Siwasaki 10261114237SnjlA "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 10262114237SnjlWhen set to one, this indicates that the caller wants to use the 10263167802Sjkim 10264114237Snjlsemaphore as a mutex, not a counting semaphore. ACPI CA uses 10265114237Snjlboth types. However, implementers of this call may want to use 10266114237Snjldifferent OS primitives depending on the type of semaphore 10267114237Snjlrequested. For example, some operating systems provide separate 10268167802Sjkim 10269193267Sjkim"mutex" and "semaphore" interfaces - where the mutex interface is 10270126372Snjlmuch faster because it doesn't have all the overhead of a full 10271126372Snjlsemaphore implementation. 10272102550Siwasaki 10273104470SiwasakiFixed a deadlock problem where a method that accesses the PCI 10274114237Snjladdress space can block forever if it is the first access to the 10275114237Snjlspace. 10276102550Siwasaki 10277102550Siwasaki------------------------------------------- 10278102550SiwasakiSummary of changes for this label: 06_02_00 10279102550Siwasaki 10280102550SiwasakiSupport for environments that cannot handle unaligned data 10281114237Snjlaccesses (e.g. firmware and OS environments devoid of alignment 10282193267Sjkimhandler technology namely SAL/EFI and the IA-64 Linux kernel) has 10283126372Snjlbeen added (via configurable macros) in these three areas: - 10284114237SnjlTransfer of data from the raw AML byte stream is done via byte 10285193267Sjkimmoves instead of word/dword/qword moves. - External objects are 10286126372Snjlaligned within the user buffer, including package elements (sub- 10287193267Sjkimobjects). - Conversion of name strings to UINT32 Acpi Names is now 10288126372Snjldone byte-wise. 10289102550Siwasaki 10290102550SiwasakiThe Store operator was modified to mimic Microsoft's 10291102550Siwasakiimplementation when storing to a Buffer Field. 10292102550Siwasaki 10293102550SiwasakiAdded a check of the BM_STS bit before entering C3. 10294102550Siwasaki 10295114237SnjlThe methods subdirectory has been obsoleted and removed. A new 10296114237Snjlfile, cmeval.c subsumes the functionality. 10297102550Siwasaki 10298102550SiwasakiA 16-bit (DOS) version of AcpiExec has been developed. The 10299102550Siwasakimakefile is under the acpiexec directory. 10300