changes.txt revision 199337
1117521Snjl---------------------------------------- 2199337Sjkim12 November 2009. Summary of changes for version 20091112: 3199337Sjkim 4199337SjkimThis release is available at www.acpica.org/downloads 5199337Sjkim 6199337Sjkim1) ACPI CA Core Subsystem: 7199337Sjkim 8199337SjkimImplemented a post-order callback to AcpiWalkNamespace. The existing 9199337Sjkiminterface only has a pre-order callback. This change adds an additional 10199337Sjkimparameter for a post-order callback which will be more useful for bus scans. 11199337SjkimACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 12199337Sjkim 13199337SjkimModified the behavior of the operation region memory mapping cache for 14199337SjkimSystemMemory. Ensure that the memory mappings created for operation regions 15199337Sjkimdo not cross 4K page boundaries. Crossing a page boundary while mapping 16199337Sjkimregions can cause kernel warnings on some hosts if the pages have different 17199337Sjkimattributes. Such regions are probably BIOS bugs, and this is the workaround. 18199337SjkimLinux BZ 14445. Lin Ming. 19199337Sjkim 20199337SjkimImplemented an automatic repair for predefined methods that must return 21199337Sjkimsorted lists. This change will repair (by sorting) packages returned by _ALR, 22199337Sjkim_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 23199337Sjkimand do not contain NULL package elements. Adds one new file, 24199337Sjkimnamespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 25199337Sjkim 26199337SjkimFixed a possible fault during predefined name validation if a return Package 27199337Sjkimobject contains NULL elements. Also adds a warning if a NULL element is 28199337Sjkimfollowed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 29199337Sjkiminclude repair or removal of all such NULL elements where possible. 30199337Sjkim 31199337SjkimImplemented additional module-level executable AML code support. This change 32199337Sjkimwill execute module-level code that is not at the root of the namespace 33199337Sjkim(under a Device object, etc.) at table load time. Module-level executable AML 34199337Sjkimcode has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 35199337Sjkim 36199337SjkimImplemented a new internal function to create Integer objects. This function 37199337Sjkimsimplifies miscellaneous object creation code. ACPICA BZ 823. 38199337Sjkim 39199337SjkimReduced the severity of predefined repair messages, Warning to Info. Since 40199337Sjkimthe object was successfully repaired, a warning is too severe. Reduced to an 41199337Sjkiminfo message for now. These messages may eventually be changed to debug-only. 42199337SjkimACPICA BZ 812. 43199337Sjkim 44199337SjkimExample Code and Data Size: These are the sizes for the OS-independent 45199337Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 46199337Sjkimdebug version of the code includes the debug output trace mechanism and has a 47199337Sjkimmuch larger code and data size. 48199337Sjkim 49199337Sjkim Previous Release: 50199337Sjkim Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 51199337Sjkim Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 52199337Sjkim Current Release: 53199337Sjkim Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 54199337Sjkim Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 55199337Sjkim 56199337Sjkim2) iASL Compiler/Disassembler and Tools: 57199337Sjkim 58199337SjkimiASL: Implemented Switch() with While(1) so that Break works correctly. This 59199337Sjkimchange correctly implements the Switch operator with a surrounding While(1) 60199337Sjkimso that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 61199337Sjkim 62199337SjkimiASL: Added a message if a package initializer list is shorter than package 63199337Sjkimlength. Adds a new remark for a Package() declaration if an initializer list 64199337Sjkimexists, but is shorter than the declared length of the package. Although 65199337Sjkimtechnically legal, this is probably a coding error and it is seen in the 66199337Sjkimfield. ACPICA BZ 815. Lin Ming, Bob Moore. 67199337Sjkim 68199337SjkimiASL: Fixed a problem where the compiler could fault after the maximum number 69199337Sjkimof errors was reached (200). 70199337Sjkim 71199337Sjkimacpixtract: Fixed a possible warning for pointer cast if the compiler warning 72199337Sjkimlevel set very high. 73199337Sjkim 74199337Sjkim---------------------------------------- 75198237Sjkim13 October 2009. Summary of changes for version 20091013: 76197104Sjkim 77197104SjkimThis release is available at www.acpica.org/downloads 78197104Sjkim 79197104Sjkim1) ACPI CA Core Subsystem: 80197104Sjkim 81198237SjkimFixed a problem where an Operation Region _REG method could be executed more 82198237Sjkimthan once. If a custom address space handler is installed by the host before 83198237Sjkimthe "initialize operation regions" phase of the ACPICA initialization, any 84198237Sjkim_REG methods for that address space could be executed twice. This change 85198237Sjkimfixes the problem. ACPICA BZ 427. Lin Ming. 86198237Sjkim 87198237SjkimFixed a possible memory leak for the Scope() ASL operator. When the exact 88198237Sjkiminvocation of "Scope(\)" is executed (change scope to root), one internal 89198237Sjkimoperand object was leaked. Lin Ming. 90198237Sjkim 91198237SjkimImplemented a run-time repair for the _MAT predefined method. If the _MAT 92198237Sjkimreturn value is defined as a Field object in the AML, and the field 93198237Sjkimsize is less than or equal to the default width of an integer (32 or 64),_MAT 94198237Sjkimcan incorrectly return an Integer instead of a Buffer. ACPICA now 95198237Sjkimautomatically repairs this problem. ACPICA BZ 810. 96198237Sjkim 97198237SjkimImplemented a run-time repair for the _BIF and _BIX predefined methods. The 98198237Sjkim"OEM Information" field is often incorrectly returned as an Integer with 99198237Sjkimvalue zero if the field is not supported by the platform. This is due to an 100198237Sjkimambiguity in the ACPI specification. The field should always be a string. 101198237SjkimACPICA now automatically repairs this problem by returning a NULL string 102198237Sjkimwithin the returned Package. ACPICA BZ 807. 103198237Sjkim 104198237SjkimExample Code and Data Size: These are the sizes for the OS-independent 105198237Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 106198237Sjkimdebug version of the code includes the debug output trace mechanism and has a 107198237Sjkimmuch larger code and data size. 108198237Sjkim 109198237Sjkim Previous Release: 110198237Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 111198237Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 112198237Sjkim Current Release: 113198237Sjkim Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 114198237Sjkim Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 115198237Sjkim 116198237Sjkim2) iASL Compiler/Disassembler and Tools: 117198237Sjkim 118198237SjkimDisassembler: Fixed a problem where references to external symbols that 119198237Sjkimcontained one or more parent-prefixes (carats) were not handled correctly, 120198237Sjkimpossibly causing a fault. ACPICA BZ 806. Lin Ming. 121198237Sjkim 122198237SjkimDisassembler: Restructured the code so that all functions that handle 123198237Sjkimexternal symbols are in a single module. One new file is added, 124198237Sjkimcommon/dmextern.c. 125198237Sjkim 126198237SjkimAML Debugger: Added a max count argument for the Batch command (which 127198237Sjkimexecutes multiple predefined methods within the namespace.) 128198237Sjkim 129198237SjkimiASL: Updated the compiler documentation (User Reference.) Available at 130198237Sjkimhttp://www.acpica.org/documentation/. ACPICA BZ 750. 131198237Sjkim 132198237SjkimAcpiXtract: Updated for Lint and other formatting changes. Close all open 133198237Sjkimfiles. 134198237Sjkim 135198237Sjkim---------------------------------------- 136198237Sjkim03 September 2009. Summary of changes for version 20090903: 137198237Sjkim 138198237Sjkim1) ACPI CA Core Subsystem: 139198237Sjkim 140197104SjkimFor Windows Vista compatibility, added the automatic execution of an _INI 141197104Sjkimmethod located at the namespace root (\_INI). This method is executed at 142197104Sjkimtable load time. This support is in addition to the automatic execution of 143197104Sjkim\_SB._INI. Lin Ming. 144197104Sjkim 145197104SjkimFixed a possible memory leak in the interpreter for AML package objects if 146197104Sjkimthe package initializer list is longer than the defined size of the package. 147197104SjkimThis apparently can only happen if the BIOS changes the package size on the 148197104Sjkimfly (seen in a _PSS object), as ASL compilers do not allow this. The 149197104Sjkiminterpreter will truncate the package to the defined size (and issue an error 150197104Sjkimmessage), but previously could leave the extra objects undeleted if they were 151197104Sjkimpre-created during the argument processing (such is the case if the package 152197104Sjkimconsists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 153197104Sjkim 154197104SjkimFixed a problem seen when a Buffer or String is stored to itself via ASL. 155197104SjkimThis has been reported in the field. Previously, ACPICA would zero out the 156197104Sjkimbuffer/string. Now, the operation is treated as a noop. Provides Windows 157197104Sjkimcompatibility. ACPICA BZ 803. Lin Ming. 158197104Sjkim 159197104SjkimRemoved an extraneous error message for ASL constructs of the form 160197104SjkimStore(LocalX,LocalX) when LocalX is uninitialized. These curious statements 161197104Sjkimare seen in many BIOSs and are once again treated as NOOPs and no error is 162197104Sjkimemitted when they are encountered. ACPICA BZ 785. 163197104Sjkim 164197104SjkimFixed an extraneous warning message if a _DSM reserved method returns a 165197104SjkimPackage object. _DSM can return any type of object, so validation on the 166197104Sjkimreturn type cannot be performed. ACPICA BZ 802. 167197104Sjkim 168197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 169197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 170197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 171197104Sjkimmuch larger code and data size. 172197104Sjkim 173197104Sjkim Previous Release: 174197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 175197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 176197104Sjkim Current Release: 177197104Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 178197104Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 179197104Sjkim 180197104Sjkim2) iASL Compiler/Disassembler and Tools: 181197104Sjkim 182197104SjkimiASL: Fixed a problem with the use of the Alias operator and Resource 183197104SjkimTemplates. The correct alias is now constructed and no error is emitted. 184197104SjkimACPICA BZ 738. 185197104Sjkim 186197104SjkimiASL: Implemented the -I option to specify additional search directories for 187197104Sjkiminclude files. Allows multiple additional search paths for include files. 188197104SjkimDirectories are searched in the order specified on the command line (after 189197104Sjkimthe local directory is searched.) ACPICA BZ 800. 190197104Sjkim 191197104SjkimiASL: Fixed a problem where the full pathname for include files was not 192197104Sjkimemitted for warnings/errors. This caused the IDE support to not work 193197104Sjkimproperly. ACPICA BZ 765. 194197104Sjkim 195197104SjkimiASL: Implemented the -@ option to specify a Windows-style response file 196197104Sjkimcontaining additional command line options. ACPICA BZ 801. 197197104Sjkim 198197104SjkimAcpiExec: Added support to load multiple AML files simultaneously (such as a 199197104SjkimDSDT and multiple SSDTs). Also added support for wildcards within the AML 200197104Sjkimpathname. These features allow all machine tables to be easily loaded and 201197104Sjkimdebugged together. ACPICA BZ 804. 202197104Sjkim 203197104SjkimDisassembler: Added missing support for disassembly of HEST table Error Bank 204197104Sjkimsubtables. 205197104Sjkim 206197104Sjkim---------------------------------------- 207197104Sjkim30 July 2009. Summary of changes for version 20090730: 208197104Sjkim 209197104SjkimThe ACPI 4.0 implementation for ACPICA is complete with this release. 210197104Sjkim 211197104Sjkim1) ACPI CA Core Subsystem: 212197104Sjkim 213197104SjkimACPI 4.0: Added header file support for all new and changed ACPI tables. 214197104SjkimCompletely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 215197104Sjkimfor ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 216197104SjkimEINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 217197104Sjkimhave been some ACPI 4.0 changes to other existing tables. Split the large 218197104Sjkimactbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 219197104Sjkim 220197104SjkimACPI 4.0: Implemented predefined name validation for all new names. There are 221197104Sjkim31 new names in ACPI 4.0. The predefined validation module was split into two 222197104Sjkimfiles. The new file is namespace/nsrepair.c. ACPICA BZ 770. 223197104Sjkim 224197104SjkimImplemented support for so-called "module-level executable code". This is 225197104Sjkimexecutable AML code that exists outside of any control method and is intended 226197104Sjkimto be executed at table load time. Although illegal since ACPI 2.0, this type 227197104Sjkimof code still exists and is apparently still being created. Blocks of this 228197104Sjkimcode are now detected and executed as intended. Currently, the code blocks 229197104Sjkimmust exist under either an If, Else, or While construct; these are the 230197104Sjkimtypical cases seen in the field. ACPICA BZ 762. Lin Ming. 231197104Sjkim 232197104SjkimImplemented an automatic dynamic repair for predefined names that return 233197104Sjkimnested Package objects. This applies to predefined names that are defined to 234197104Sjkimreturn a variable-length Package of sub-packages. If the number of sub- 235197104Sjkimpackages is one, BIOS code is occasionally seen that creates a simple single 236197104Sjkimpackage with no sub-packages. This code attempts to fix the problem by 237197104Sjkimwrapping a new package object around the existing package. These methods can 238197104Sjkimbe repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 239197104Sjkim790. 240197104Sjkim 241197104SjkimFixed a regression introduced in 20090625 for the AcpiGetDevices interface. 242197104SjkimThe _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 243197104SjkimBZ 793. 244197104Sjkim 245197104SjkimFixed a problem with AcpiReset where the reset would silently fail if the 246197104Sjkimregister was one of the protected I/O ports. AcpiReset now bypasses the port 247197104Sjkimvalidation mechanism. This may eventually be driven into the AcpiRead/Write 248197104Sjkiminterfaces. 249197104Sjkim 250197104SjkimFixed a regression related to the recent update of the AcpiRead/Write 251197104Sjkiminterfaces. A sleep/suspend could fail if the optional PM2 Control register 252197104Sjkimdoes not exist during an attempt to write the Bus Master Arbitration bit. 253197104Sjkim(However, some hosts already delete the code that writes this bit, and the 254197104Sjkimcode may in fact be obsolete at this date.) ACPICA BZ 799. 255197104Sjkim 256197104SjkimFixed a problem where AcpiTerminate could fault if inadvertently called twice 257197104Sjkimin succession. ACPICA BZ 795. 258197104Sjkim 259197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 260197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 261197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 262197104Sjkimmuch larger code and data size. 263197104Sjkim 264197104Sjkim Previous Release: 265197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 266197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 267197104Sjkim Current Release: 268197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 269197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 270197104Sjkim 271197104Sjkim2) iASL Compiler/Disassembler and Tools: 272197104Sjkim 273197104SjkimACPI 4.0: Implemented disassembler support for all new ACPI tables and 274197104Sjkimchanges to existing tables. ACPICA BZ 775. 275197104Sjkim 276197104Sjkim---------------------------------------- 277197104Sjkim25 June 2009. Summary of changes for version 20090625: 278197104Sjkim 279197104SjkimThe ACPI 4.0 Specification was released on June 16 and is available at 280197104Sjkimwww.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 281197104Sjkimcontinue for the next few releases. 282197104Sjkim 283197104Sjkim1) ACPI CA Core Subsystem: 284197104Sjkim 285197104SjkimACPI 4.0: Implemented interpreter support for the IPMI operation region 286197104Sjkimaddress space. Includes support for bi-directional data buffers and an IPMI 287197104Sjkimaddress space handler (to be installed by an IPMI device driver.) ACPICA BZ 288197104Sjkim773. Lin Ming. 289197104Sjkim 290197104SjkimACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 291197104Sjkimsupport in both the header files and the disassembler. 292197104Sjkim 293197104SjkimCompleted a major update for the AcpiGetObjectInfo external interface. 294197104SjkimChanges include: 295197104Sjkim - Support for variable, unlimited length HID, UID, and CID strings. 296197104Sjkim - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 297197104Sjkim - Call the _SxW power methods on behalf of a device object. 298197104Sjkim - Determine if a device is a PCI root bridge. 299197104Sjkim - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 300197104SjkimThese changes will require an update to all callers of this interface. See 301197104Sjkimthe updated ACPICA Programmer Reference for details. One new source file has 302197104Sjkimbeen added - utilities/utids.c. ACPICA BZ 368, 780. 303197104Sjkim 304197104SjkimUpdated the AcpiRead and AcpiWrite external interfaces to support 64-bit 305197104Sjkimtransfers. The Value parameter has been extended from 32 bits to 64 bits in 306197104Sjkimorder to support new ACPI 4.0 tables. These changes will require an update to 307197104Sjkimall callers of these interfaces. See the ACPICA Programmer Reference for 308197104Sjkimdetails. ACPICA BZ 768. 309197104Sjkim 310197104SjkimFixed several problems with AcpiAttachData. The handler was not invoked when 311197104Sjkimthe host node was deleted. The data sub-object was not automatically deleted 312197104Sjkimwhen the host node was deleted. The interface to the handler had an unused 313197104Sjkimparameter, this was removed. ACPICA BZ 778. 314197104Sjkim 315197104SjkimEnhanced the function that dumps ACPI table headers. All non-printable 316197104Sjkimcharacters in the string fields are now replaced with '?' (Signature, OemId, 317197104SjkimOemTableId, and CompilerId.) ACPI tables with non-printable characters in 318197104Sjkimthese fields are occasionally seen in the field. ACPICA BZ 788. 319197104Sjkim 320197104SjkimFixed a problem with predefined method repair code where the code that 321197104Sjkimattempts to repair/convert an object of incorrect type is only executed on 322197104Sjkimthe first time the predefined method is called. The mechanism that disables 323197104Sjkimwarnings on subsequent calls was interfering with the repair mechanism. 324197104SjkimACPICA BZ 781. 325197104Sjkim 326197104SjkimFixed a possible memory leak in the predefined validation/repair code when a 327197104Sjkimbuffer is automatically converted to an expected string object. 328197104Sjkim 329197104SjkimRemoved obsolete 16-bit files from the distribution and from the current git 330197104Sjkimtree head. ACPICA BZ 776. 331197104Sjkim 332197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 333197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 334197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 335197104Sjkimmuch larger code and data size. 336197104Sjkim 337197104Sjkim Previous Release: 338197104Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 339197104Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 340197104Sjkim Current Release: 341197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 342197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 343197104Sjkim 344197104Sjkim2) iASL Compiler/Disassembler and Tools: 345197104Sjkim 346197104SjkimACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 347197104Sjkimoperation region keyword. ACPICA BZ 771, 772. Lin Ming. 348197104Sjkim 349197104SjkimACPI 4.0: iASL - implemented compile-time validation support for all new 350197104Sjkimpredefined names and control methods (31 total). ACPICA BZ 769. 351197104Sjkim 352197104Sjkim---------------------------------------- 353193267Sjkim21 May 2009. Summary of changes for version 20090521: 354193267Sjkim 355193267Sjkim1) ACPI CA Core Subsystem: 356193267Sjkim 357193267SjkimDisabled the preservation of the SCI enable bit in the PM1 control register. 358193267SjkimThe SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 359193267Sjkima "preserved" bit - "OSPM always preserves this bit position", section 360193267Sjkim4.7.3.2.1. However, some machines fail if this bit is in fact preserved 361193267Sjkimbecause the bit needs to be explicitly set by the OS as a workaround. No 362193267Sjkimmachines fail if the bit is not preserved. Therefore, ACPICA no longer 363193267Sjkimattempts to preserve this bit. 364193267Sjkim 365193267SjkimFixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 366193267Sjkimincorrectly formed _PRT package could cause a fault. Added validation to 367193267Sjkimensure that each package element is actually a sub-package. 368193267Sjkim 369193267SjkimImplemented a new interface to install or override a single control method, 370193267SjkimAcpiInstallMethod. This interface is useful when debugging in order to repair 371193267Sjkiman existing method or to install a missing method without having to override 372193267Sjkimthe entire ACPI table. See the ACPICA Programmer Reference for use and 373193267Sjkimexamples. Lin Ming, Bob Moore. 374193267Sjkim 375193267SjkimFixed several reference count issues with the DdbHandle object that is 376193267Sjkimcreated from a Load or LoadTable operator. Prevent premature deletion of the 377193267Sjkimobject. Also, mark the object as invalid once the table has been unloaded. 378193267SjkimThis is needed because the handle itself may not be deleted after the table 379193267Sjkimunload, depending on whether it has been stored in a named object by the 380193267Sjkimcaller. Lin Ming. 381193267Sjkim 382193267SjkimFixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 383193267Sjkimmutexes of the same sync level are acquired but then not released in strict 384193267Sjkimopposite order, the internally maintained Current Sync Level becomes confused 385193267Sjkimand can cause subsequent execution errors. ACPICA BZ 471. 386193267Sjkim 387193267SjkimChanged the allowable release order for ASL mutex objects. The ACPI 4.0 388193267Sjkimspecification has been changed to make the SyncLevel for mutex objects more 389193267Sjkimuseful. When releasing a mutex, the SyncLevel of the mutex must now be the 390193267Sjkimsame as the current sync level. This makes more sense than the previous rule 391193267Sjkim(SyncLevel less than or equal). This change updates the code to match the 392193267Sjkimspecification. 393193267Sjkim 394193267SjkimFixed a problem with the local version of the AcpiOsPurgeCache function. The 395193267Sjkim(local) cache must be locked during all cache object deletions. Andrew 396193267SjkimBaumann. 397193267Sjkim 398193267SjkimUpdated the Load operator to use operation region interfaces. This replaces 399193267Sjkimdirect memory mapping with region access calls. Now, all region accesses go 400193267Sjkimthrough the installed region handler as they should. 401193267Sjkim 402193267SjkimSimplified and optimized the NsGetNextNode function. Reduced parameter count 403193267Sjkimand reduced code for this frequently used function. 404193267Sjkim 405193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 406193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 407193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 408193267Sjkimmuch larger code and data size. 409193267Sjkim 410193267Sjkim Previous Release: 411193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 412193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 413193267Sjkim Current Release: 414193267Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 415193267Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 416193267Sjkim 417193267Sjkim2) iASL Compiler/Disassembler and Tools: 418193267Sjkim 419193267SjkimDisassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 420193267Sjkimwith sub-table disassembly and handling invalid sub-tables. Attempt recovery 421193267Sjkimafter an invalid sub-table ID. 422193267Sjkim 423193267Sjkim---------------------------------------- 424193267Sjkim22 April 2009. Summary of changes for version 20090422: 425193267Sjkim 426193267Sjkim1) ACPI CA Core Subsystem: 427193267Sjkim 428193267SjkimFixed a compatibility issue with the recently released I/O port protection 429193267Sjkimmechanism. For windows compatibility, 1) On a port protection violation, 430193267Sjkimsimply ignore the request and do not return an exception (allow the control 431193267Sjkimmethod to continue execution.) 2) If only part of the request overlaps a 432193267Sjkimprotected port, read/write the individual ports that are not protected. Linux 433193267SjkimBZ 13036. Lin Ming 434193267Sjkim 435193267SjkimEnhanced the execution of the ASL/AML BreakPoint operator so that it actually 436193267Sjkimbreaks into the AML debugger if the debugger is present. This matches the 437193267SjkimACPI-defined behavior. 438193267Sjkim 439193267SjkimFixed several possible warnings related to the use of the configurable 440193267SjkimACPI_THREAD_ID. This type can now be configured as either an integer or a 441193267Sjkimpointer with no warnings. Also fixes several warnings in printf-like 442193267Sjkimstatements for the 64-bit build when the type is configured as a pointer. 443193267SjkimACPICA BZ 766, 767. 444193267Sjkim 445193267SjkimFixed a number of possible warnings when compiling with gcc 4+ (depending on 446193267Sjkimwarning options.) Examples include printf formats, aliasing, unused globals, 447193267Sjkimmissing prototypes, missing switch default statements, use of non-ANSI 448193267Sjkimlibrary functions, use of non-ANSI constructs. See generate/unix/Makefile for 449193267Sjkima list of warning options used with gcc 3 and 4. ACPICA BZ 735. 450193267Sjkim 451193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 452193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 453193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 454193267Sjkimmuch larger code and data size. 455193267Sjkim 456193267Sjkim Previous Release: 457193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 458193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 459193267Sjkim Current Release: 460193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 461193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 462193267Sjkim 463193267Sjkim2) iASL Compiler/Disassembler and Tools: 464193267Sjkim 465193267SjkimiASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 466193267Sjkimthe 64-bit build. 467193267Sjkim 468193267SjkimiASL: Fixed a problem where the Unix/Linux versions of the compiler could not 469193267Sjkimcorrectly digest Windows/DOS formatted files (with CR/LF). 470193267Sjkim 471193267SjkimiASL: Added a new option for "quiet mode" (-va) that produces only the 472193267Sjkimcompilation summary, not individual errors and warnings. Useful for large 473193267Sjkimbatch compilations. 474193267Sjkim 475193267SjkimAcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 476193267Sjkimtimeout that can be used to detect hang conditions during execution of AML 477193267Sjkimcode (includes both internal semaphores and AML-defined mutexes and events.) 478193267Sjkim 479193267SjkimAdded new makefiles for the generation of acpica in a generic unix-like 480193267Sjkimenvironment. These makefiles are intended to generate the acpica tools and 481193267Sjkimutilities from the original acpica git source tree structure. 482193267Sjkim 483193267SjkimTest Suites: Updated and cleaned up the documentation files. Updated the 484193267Sjkimcopyrights to 2009, affecting all source files. Use the new version of iASL 485193267Sjkimwith quiet mode. Increased the number of available semaphores in the Windows 486193267SjkimOSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 487193267Sjkiman alternate implementation of the semaphore timeout to allow aslts to 488193267Sjkimexecute fully on Cygwin. 489193267Sjkim 490193267Sjkim---------------------------------------- 491193267Sjkim20 March 2009. Summary of changes for version 20090320: 492193267Sjkim 493193267Sjkim1) ACPI CA Core Subsystem: 494193267Sjkim 495193267SjkimFixed a possible race condition between AcpiWalkNamespace and dynamic table 496193267Sjkimunloads. Added a reader/writer locking mechanism to allow multiple concurrent 497193267Sjkimnamespace walks (readers), but block a dynamic table unload until it can gain 498193267Sjkimexclusive write access to the namespace. This fixes a problem where a table 499193267Sjkimunload could (possibly catastrophically) delete the portion of the namespace 500193267Sjkimthat is currently being examined by a walk. Adds a new file, utlock.c, that 501193267Sjkimimplements the reader/writer lock mechanism. ACPICA BZ 749. 502193267Sjkim 503193267SjkimFixed a regression introduced in version 20090220 where a change to the FADT 504193267Sjkimhandling could cause the ACPICA subsystem to access non-existent I/O ports. 505193267Sjkim 506193267SjkimModified the handling of FADT register and table (FACS/DSDT) addresses. The 507193267SjkimFADT can contain both 32-bit and 64-bit versions of these addresses. 508193267SjkimPreviously, the 64-bit versions were favored, meaning that if both 32 and 64 509193267Sjkimversions were valid, but not equal, the 64-bit version was used. This was 510193267Sjkimfound to cause some machines to fail. Now, in this case, the 32-bit version 511193267Sjkimis used instead. This now matches the Windows behavior. 512193267Sjkim 513193267SjkimImplemented a new mechanism to protect certain I/O ports. Provides Microsoft 514193267Sjkimcompatibility and protects the standard PC I/O ports from access via AML 515193267Sjkimcode. Adds a new file, hwvalid.c 516193267Sjkim 517193267SjkimFixed a possible extraneous warning message from the FADT support. The 518193267Sjkimmessage warns of a 32/64 length mismatch between the legacy and GAS 519193267Sjkimdefinitions for a register. 520193267Sjkim 521193267SjkimRemoved the obsolete AcpiOsValidateAddress OSL interface. This interface is 522193267Sjkimmade obsolete by the port protection mechanism above. It was previously used 523193267Sjkimto validate the entire address range of an operation region, which could be 524193267Sjkimincorrect if the range included illegal ports, but fields within the 525193267Sjkimoperation region did not actually access those ports. Validation is now 526193267Sjkimperformed on a per-field basis instead of the entire region. 527193267Sjkim 528193267SjkimModified the handling of the PM1 Status Register ignored bit (bit 11.) 529193267SjkimIgnored bits must be "preserved" according to the ACPI spec. Usually, this 530193267Sjkimmeans a read/modify/write when writing to the register. However, for status 531193267Sjkimregisters, writing a one means clear the event. Writing a zero means preserve 532193267Sjkimthe event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 533193267Sjkimand the ACPICA code now simply always writes a zero to the ignored bit. 534193267Sjkim 535193267SjkimModified the handling of ignored bits for the PM1 A/B Control Registers. As 536193267Sjkimper the ACPI specification, for the control registers, preserve 537193267Sjkim(read/modify/write) all bits that are defined as either reserved or ignored. 538193267Sjkim 539193267SjkimUpdated the handling of write-only bits in the PM1 A/B Control Registers. 540193267SjkimWhen reading the register, zero the write-only bits as per the ACPI spec. 541193267SjkimACPICA BZ 443. Lin Ming. 542193267Sjkim 543193267SjkimRemoved "Linux" from the list of supported _OSI strings. Linux no longer 544193267Sjkimwants to reply true to this request. The Windows strings are the only paths 545193267Sjkimthrough the AML that are tested and known to work properly. 546193267Sjkim 547193267Sjkim Previous Release: 548193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 549193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 550193267Sjkim Current Release: 551193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 552193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 553193267Sjkim 554193267Sjkim2) iASL Compiler/Disassembler and Tools: 555193267Sjkim 556193267SjkimAcpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 557193267Sjkimaetables.c 558193267Sjkim 559193267Sjkim---------------------------------------- 560193267Sjkim20 February 2009. Summary of changes for version 20090220: 561193267Sjkim 562193267Sjkim1) ACPI CA Core Subsystem: 563193267Sjkim 564193267SjkimOptimized the ACPI register locking. Removed locking for reads from the ACPI 565193267Sjkimbit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 566193267Sjkimnot required when reading the single-bit registers. The 567193267SjkimAcpiGetRegisterUnlocked function is no longer needed and has been removed. 568193267SjkimThis will improve performance for reads on these registers. ACPICA BZ 760. 569193267Sjkim 570193267SjkimFixed the parameter validation for AcpiRead/Write. Now return 571193267SjkimAE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 572193267Sjkimthe register has an address of zero. Previously, these cases simply returned 573193267SjkimAE_OK. For optional registers such as PM1B status/enable/control, the caller 574193267Sjkimshould check for a valid register address before calling. ACPICA BZ 748. 575193267Sjkim 576193267SjkimRenamed the external ACPI bit register access functions. Renamed 577193267SjkimAcpiGetRegister and AcpiSetRegister to clarify the purpose of these 578193267Sjkimfunctions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 579193267SjkimAlso, restructured the code for these functions by simplifying the code path 580193267Sjkimand condensing duplicate code to reduce code size. 581193267Sjkim 582193267SjkimAdded new functions to transparently handle the possibly split PM1 A/B 583193267Sjkimregisters. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 584193267Sjkimnow handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 585193267Sjkim746. 586193267Sjkim 587193267SjkimAdded a function to handle the PM1 control registers, AcpiHwWritePm1Control. 588193267SjkimThis function writes both of the PM1 control registers (A/B). These registers 589193267Sjkimare different than the PM1 A/B status and enable registers in that different 590193267Sjkimvalues can be written to the A/B registers. Most notably, the SLP_TYP bits 591193267Sjkimcan be different, as per the values returned from the _Sx predefined methods. 592193267Sjkim 593193267SjkimRemoved an extra register write within AcpiHwClearAcpiStatus. This function 594193267Sjkimwas writing an optional PM1B status register twice. The existing call to the 595193267Sjkimlow-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 596193267Sjkimregister. ACPICA BZ 751. 597193267Sjkim 598193267SjkimSplit out the PM1 Status registers from the FADT. Added new globals for these 599193267Sjkimregisters (A/B), similar to the way the PM1 Enable registers are handled. 600193267SjkimInstead of overloading the FADT Event Register blocks. This makes the code 601193267Sjkimclearer and less prone to error. 602193267Sjkim 603193267SjkimFixed the warning message for when the platform contains too many ACPI tables 604193267Sjkimfor the default size of the global root table data structure. The calculation 605193267Sjkimfor the truncation value was incorrect. 606193267Sjkim 607193267SjkimRemoved the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 608193267Sjkimobsolete macro, since it is now a simple reference to ->common.type. There 609193267Sjkimwere about 150 invocations of the macro across 41 files. ACPICA BZ 755. 610193267Sjkim 611193267SjkimRemoved the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 612193267SjkimTYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 613193267Sjkimsimply SLEEP_TYPE. ACPICA BZ 754. 614193267Sjkim 615193267SjkimConditionally compile the AcpiSetFirmwareWakingVector64 function. This 616193267Sjkimfunction is only needed on 64-bit host operating systems and is thus not 617193267Sjkimincluded for 32-bit hosts. 618193267Sjkim 619193267SjkimDebug output: print the input and result for invocations of the _OSI reserved 620193267Sjkimcontrol method via the ACPI_LV_INFO debug level. Also, reduced some of the 621193267Sjkimverbosity of this debug level. Len Brown. 622193267Sjkim 623193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 624193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 625193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 626193267Sjkimmuch larger code and data size. 627193267Sjkim 628193267Sjkim Previous Release: 629193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 630193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 631193267Sjkim Current Release: 632193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 633193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 634193267Sjkim 635193267Sjkim2) iASL Compiler/Disassembler and Tools: 636193267Sjkim 637193267SjkimDisassembler: Decode the FADT PM_Profile field. Emit ascii names for the 638193267Sjkimvarious legal performance profiles. 639193267Sjkim 640193267Sjkim---------------------------------------- 641193267Sjkim23 January 2009. Summary of changes for version 20090123: 642193267Sjkim 643193267Sjkim1) ACPI CA Core Subsystem: 644193267Sjkim 645193267SjkimAdded the 2009 copyright to all module headers and signons. This affects 646193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 647193267Sjkimthe tools/utilities. 648193267Sjkim 649193267SjkimImplemented a change to allow the host to override any ACPI table, including 650193267Sjkimdynamically loaded tables. Previously, only the DSDT could be replaced by the 651193267Sjkimhost. With this change, the AcpiOsTableOverride interface is called for each 652193267Sjkimtable found in the RSDT/XSDT during ACPICA initialization, and also whenever 653193267Sjkima table is dynamically loaded via the AML Load operator. 654193267Sjkim 655193267SjkimUpdated FADT flag definitions, especially the Boot Architecture flags. 656193267Sjkim 657193267SjkimDebugger: For the Find command, automatically pad the input ACPI name with 658193267Sjkimunderscores if the name is shorter than 4 characters. This enables a match 659193267Sjkimwith the actual namespace entry which is itself padded with underscores. 660193267Sjkim 661193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 662193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 663193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 664193267Sjkimmuch larger code and data size. 665193267Sjkim 666193267Sjkim Previous Release: 667193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 668193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 669193267Sjkim Current Release: 670193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 671193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 672193267Sjkim 673193267Sjkim2) iASL Compiler/Disassembler and Tools: 674193267Sjkim 675193267SjkimFix build error under Bison-2.4. 676193267Sjkim 677193267SjkimDissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 678193267Sjkimflags. Now decode all flags, regardless of the FADT version. Flag output 679193267Sjkimincludes the FADT version which first defined each flag. 680193267Sjkim 681193267SjkimThe iASL -g option now dumps the RSDT to a file (in addition to the FADT and 682193267SjkimDSDT). Windows only. 683193267Sjkim 684193267Sjkim---------------------------------------- 685193267Sjkim04 December 2008. Summary of changes for version 20081204: 686193267Sjkim 687193267Sjkim1) ACPI CA Core Subsystem: 688193267Sjkim 689193267SjkimThe ACPICA Programmer Reference has been completely updated and revamped for 690193267Sjkimthis release. This includes updates to the external interfaces, OSL 691193267Sjkiminterfaces, the overview sections, and the debugger reference. 692193267Sjkim 693193267SjkimSeveral new ACPICA interfaces have been implemented and documented in the 694193267Sjkimprogrammer reference: 695193267SjkimAcpiReset - Writes the reset value to the FADT-defined reset register. 696193267SjkimAcpiDisableAllGpes - Disable all available GPEs. 697193267SjkimAcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 698193267SjkimAcpiGetGpeDevice - Get the GPE block device associated with a GPE. 699193267SjkimAcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 700193267SjkimAcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 701193267SjkimAcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 702193267Sjkim 703193267SjkimMost of the public ACPI hardware-related interfaces have been moved to a new 704193267Sjkimfile, components/hardware/hwxface.c 705193267Sjkim 706193267SjkimEnhanced the FADT parsing and low-level ACPI register access: The ACPI 707193267Sjkimregister lengths within the FADT are now used, and the low level ACPI 708193267Sjkimregister access no longer hardcodes the ACPI register lengths. Given that 709193267Sjkimthere may be some risk in actually trusting the FADT register lengths, a run- 710193267Sjkimtime option was added to fall back to the default hardcoded lengths if the 711193267SjkimFADT proves to contain incorrect values - UseDefaultRegisterWidths. This 712193267Sjkimoption is set to true for now, and a warning is issued if a suspicious FADT 713193267Sjkimregister length is overridden with the default value. 714193267Sjkim 715193267SjkimFixed a reference count issue in NsRepairObject. This problem was introduced 716193267Sjkimin version 20081031 as part of a fix to repair Buffer objects within 717193267SjkimPackages. Lin Ming. 718193267Sjkim 719193267SjkimAdded semaphore support to the Linux/Unix application OS-services layer 720193267Sjkim(OSL). ACPICA BZ 448. Lin Ming. 721193267Sjkim 722193267SjkimAdded the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 723193267Sjkimbe implemented in the OSL, or will binary semaphores be used instead. 724193267Sjkim 725193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 726193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 727193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 728193267Sjkimmuch larger code and data size. 729193267Sjkim 730193267Sjkim Previous Release: 731193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 732193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 733193267Sjkim Current Release: 734193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 735193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 736193267Sjkim 737193267Sjkim2) iASL Compiler/Disassembler and Tools: 738193267Sjkim 739193267SjkimiASL: Completed the '-e' option to include additional ACPI tables in order to 740193267Sjkimaid with disassembly and External statement generation. ACPICA BZ 742. Lin 741193267SjkimMing. 742193267Sjkim 743193267SjkimiASL: Removed the "named object in while loop" error. The compiler cannot 744193267Sjkimdetermine how many times a loop will execute. ACPICA BZ 730. 745193267Sjkim 746193267SjkimDisassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 747193267SjkimBZ 743. 748193267Sjkim 749193267SjkimDisassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 750193267Sjkim 751193267Sjkim---------------------------------------- 752193267Sjkim31 October 2008. Summary of changes for version 20081031: 753193267Sjkim 754193267Sjkim1) ACPI CA Core Subsystem: 755193267Sjkim 756193267SjkimRestructured the ACPICA header files into public/private. acpi.h now includes 757193267Sjkimonly the "public" acpica headers. All other acpica headers are "private" and 758193267Sjkimshould not be included by acpica users. One new file, accommon.h is used to 759193267Sjkiminclude the commonly used private headers for acpica code generation. Future 760193267Sjkimplans include moving all private headers to a new subdirectory. 761193267Sjkim 762193267SjkimImplemented an automatic Buffer->String return value conversion for 763193267Sjkimpredefined ACPI methods. For these methods (such as _BIF), added automatic 764193267Sjkimconversion for return objects that are required to be a String, but a Buffer 765193267Sjkimwas found instead. This can happen when reading string battery data from an 766193267Sjkimoperation region, because it used to be difficult to convert the data from 767193267Sjkimbuffer to string from within the ASL. Ensures that the host OS is provided 768193267Sjkimwith a valid null-terminated string. Linux BZ 11822. 769193267Sjkim 770193267SjkimUpdated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 771193267Sjkiminto two: one for the 32-bit vector, another for the 64-bit vector. This is 772193267Sjkimrequired because the host OS must setup the wake much differently for each 773193267Sjkimvector (real vs. protected mode, etc.) and the interface itself should not be 774193267Sjkimdeciding which vector to use. Also, eliminated the GetFirmwareWakingVector 775193267Sjkiminterface, as it served no purpose (only the firmware reads the vector, OS 776193267Sjkimonly writes the vector.) ACPICA BZ 731. 777193267Sjkim 778193267SjkimImplemented a mechanism to escape infinite AML While() loops. Added a loop 779193267Sjkimcounter to force exit from AML While loops if the count becomes too large. 780193267SjkimThis can occur in poorly written AML when the hardware does not respond 781193267Sjkimwithin a while loop and the loop does not implement a timeout. The maximum 782193267Sjkimloop count is configurable. A new exception code is returned when a loop is 783193267Sjkimbroken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 784193267Sjkim 785193267SjkimOptimized the execution of AML While loops. Previously, a control state 786193267Sjkimobject was allocated and freed for each execution of the loop. The 787193267Sjkimoptimization is to simply reuse the control state for each iteration. This 788193267Sjkimspeeds up the raw loop execution time by about 5%. 789193267Sjkim 790193267SjkimEnhanced the implicit return mechanism. For Windows compatibility, return an 791193267Sjkimimplicit integer of value zero for methods that contain no executable code. 792193267SjkimSuch methods are seen in the field as stubs (presumably), and can cause 793193267Sjkimdrivers to fail if they expect a return value. Lin Ming. 794193267Sjkim 795193267SjkimAllow multiple backslashes as root prefixes in namepaths. In a fully 796193267Sjkimqualified namepath, allow multiple backslash prefixes. This can happen (and 797193267Sjkimis seen in the field) because of the use of a double-backslash in strings 798193267Sjkim(since backslash is the escape character) causing confusion. ACPICA BZ 739 799193267SjkimLin Ming. 800193267Sjkim 801193267SjkimEmit a warning if two different FACS or DSDT tables are discovered in the 802193267SjkimFADT. Checks if there are two valid but different addresses for the FACS and 803193267SjkimDSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 804193267Sjkim 805193267SjkimConsolidated the method argument count validation code. Merged the code that 806193267Sjkimvalidates control method argument counts into the predefined validation 807193267Sjkimmodule. Eliminates possible multiple warnings for incorrect argument counts. 808193267Sjkim 809193267SjkimImplemented ACPICA example code. Includes code for ACPICA initialization, 810193267Sjkimhandler installation, and calling a control method. Available at 811193267Sjkimsource/tools/examples. 812193267Sjkim 813193267SjkimAdded a global pointer for FACS table to simplify internal FACS access. Use 814193267Sjkimthe global pointer instead of using AcpiGetTableByIndex for each FACS access. 815193267SjkimThis simplifies the code for the Global Lock and the Firmware Waking 816193267SjkimVector(s). 817193267Sjkim 818193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 819193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 820193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 821193267Sjkimmuch larger code and data size. 822193267Sjkim 823193267Sjkim Previous Release: 824193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 825193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 826193267Sjkim Current Release: 827193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 828193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 829193267Sjkim 830193267Sjkim2) iASL Compiler/Disassembler and Tools: 831193267Sjkim 832193267SjkimiASL: Improved disassembly of external method calls. Added the -e option to 833193267Sjkimallow the inclusion of additional ACPI tables to help with the disassembly of 834193267Sjkimmethod invocations and the generation of external declarations during the 835193267Sjkimdisassembly. Certain external method invocations cannot be disassembled 836193267Sjkimproperly without the actual declaration of the method. Use the -e option to 837193267Sjkiminclude the table where the external method(s) are actually declared. Most 838193267Sjkimuseful for disassembling SSDTs that make method calls back to the master 839193267SjkimDSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 840193267Sjkim-e dsdt.aml ssdt1.aml 841193267Sjkim 842193267SjkimiASL: Fix to allow references to aliases within ASL namepaths. Fixes a 843193267Sjkimproblem where the use of an alias within a namepath would result in a not 844193267Sjkimfound error or cause the compiler to fault. Also now allows forward 845193267Sjkimreferences from the Alias operator itself. ACPICA BZ 738. 846193267Sjkim 847193267Sjkim---------------------------------------- 848193267Sjkim26 September 2008. Summary of changes for version 20080926: 849193267Sjkim 850193267Sjkim1) ACPI CA Core Subsystem: 851193267Sjkim 852193267SjkimDesigned and implemented a mechanism to validate predefined ACPI methods and 853193267Sjkimobjects. This code validates the predefined ACPI objects (objects whose names 854193267Sjkimstart with underscore) that appear in the namespace, at the time they are 855193267Sjkimevaluated. The argument count and the type of the returned object are 856193267Sjkimvalidated against the ACPI specification. The purpose of this validation is 857193267Sjkimto detect problems with the BIOS-implemented predefined ACPI objects before 858193267Sjkimthe results are returned to the ACPI-related drivers. Future enhancements may 859193267Sjkiminclude actual repair of incorrect return objects where possible. Two new 860193267Sjkimfiles are nspredef.c and acpredef.h. 861193267Sjkim 862193267SjkimFixed a fault in the AML parser if a memory allocation fails during the Op 863193267Sjkimcompletion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 864193267Sjkim 865193267SjkimFixed an issue with implicit return compatibility. This change improves the 866193267Sjkimimplicit return mechanism to be more compatible with the MS interpreter. Lin 867193267SjkimMing, ACPICA BZ 349. 868193267Sjkim 869193267SjkimImplemented support for zero-length buffer-to-string conversions. Allow zero 870193267Sjkimlength strings during interpreter buffer-to-string conversions. For example, 871193267Sjkimduring the ToDecimalString and ToHexString operators, as well as implicit 872193267Sjkimconversions. Fiodor Suietov, ACPICA BZ 585. 873193267Sjkim 874193267SjkimFixed two possible memory leaks in the error exit paths of 875193267SjkimAcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 876193267Sjkimsimilar in that they use a stack of state objects in order to eliminate 877193267Sjkimrecursion. The stack must be fully unwound and deallocated if an error 878193267Sjkimoccurs. Lin Ming. ACPICA BZ 383. 879193267Sjkim 880193267SjkimRemoved the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 881193267SjkimACPI register table. This bit does not exist and is unused. Lin Ming, Bob 882193267SjkimMoore ACPICA BZ 442. 883193267Sjkim 884193267SjkimRemoved the obsolete version number in module headers. Removed the 885193267Sjkim"$Revision" number that appeared in each module header. This version number 886193267Sjkimwas useful under SourceSafe and CVS, but has no meaning under git. It is not 887193267Sjkimonly incorrect, it could also be misleading. 888193267Sjkim 889193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 890193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 891193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 892193267Sjkimmuch larger code and data size. 893193267Sjkim 894193267Sjkim Previous Release: 895193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 896193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 897193267Sjkim Current Release: 898193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 899193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 900193267Sjkim 901193267Sjkim---------------------------------------- 902193267Sjkim29 August 2008. Summary of changes for version 20080829: 903193267Sjkim 904193267Sjkim1) ACPI CA Core Subsystem: 905193267Sjkim 906193267SjkimCompleted a major cleanup of the internal ACPI_OPERAND_OBJECT of type 907193267SjkimReference. Changes include the elimination of cheating on the Object field 908193267Sjkimfor the DdbHandle subtype, addition of a reference class field to 909193267Sjkimdifferentiate the various reference types (instead of an AML opcode), and the 910193267Sjkimcleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 911193267Sjkim 912193267SjkimReduce an error to a warning for an incorrect method argument count. 913193267SjkimPreviously aborted with an error if too few arguments were passed to a 914193267Sjkimcontrol method via the external ACPICA interface. Now issue a warning instead 915193267Sjkimand continue. Handles the case where the method inadvertently declares too 916193267Sjkimmany arguments, but does not actually use the extra ones. Applies mainly to 917193267Sjkimthe predefined methods. Lin Ming. Linux BZ 11032. 918193267Sjkim 919193267SjkimDisallow the evaluation of named object types with no intrinsic value. Return 920193267SjkimAE_TYPE for objects that have no value and therefore evaluation is undefined: 921193267SjkimDevice, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 922193267Sjkimthese types were allowed, but an exception would be generated at some point 923193267Sjkimduring the evaluation. Now, the error is generated up front. 924193267Sjkim 925193267SjkimFixed a possible memory leak in the AcpiNsGetExternalPathname function 926193267Sjkim(nsnames.c). Fixes a leak in the error exit path. 927193267Sjkim 928193267SjkimRemoved the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 929193267Sjkimlevels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 930193267Sjkiminterfaces. Also added ACPI_DB_EVENTS to correspond with the existing 931193267SjkimACPI_LV_EVENTS. 932193267Sjkim 933193267SjkimRemoved obsolete and/or unused exception codes from the acexcep.h header. 934193267SjkimThere is the possibility that certain device drivers may be affected if they 935193267Sjkimuse any of these exceptions. 936193267Sjkim 937193267SjkimThe ACPICA documentation has been added to the public git source tree, under 938193267Sjkimacpica/documents. Included are the ACPICA programmer reference, the iASL 939193267Sjkimcompiler reference, and the changes.txt release logfile. 940193267Sjkim 941193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 942193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 943193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 944193267Sjkimmuch larger code and data size. 945193267Sjkim 946193267Sjkim Previous Release: 947193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 948193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 949193267Sjkim Current Release: 950193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 951193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 952193267Sjkim 953193267Sjkim2) iASL Compiler/Disassembler and Tools: 954193267Sjkim 955193267SjkimAllow multiple argument counts for the predefined _SCP method. ACPI 3.0 956193267Sjkimdefines _SCP with 3 arguments. Previous versions defined it with only 1 957193267Sjkimargument. iASL now allows both definitions. 958193267Sjkim 959193267SjkimiASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 960193267Sjkimlength subtables when disassembling ACPI tables. Also fixed a couple of 961193267Sjkimerrors where a full 16-bit table type field was not extracted from the input 962193267Sjkimproperly. 963193267Sjkim 964193267Sjkimacpisrc: Improve comment counting mechanism for generating source code 965193267Sjkimstatistics. Count first and last lines of multi-line comments as whitespace, 966193267Sjkimnot comment lines. Handle Linux legal header in addition to standard acpica 967193267Sjkimheader. 968193267Sjkim 969193267Sjkim---------------------------------------- 970193267Sjkim 971193267Sjkim29 July 2008. Summary of changes for version 20080729: 972193267Sjkim 973193267SjkimThis release is available at http://acpica.org/downloads 974193267SjkimDirect git access via http://www.acpica.org/repos/acpica.git 975193267Sjkim 976193267Sjkim1) ACPI CA Core Subsystem: 977193267Sjkim 978193267SjkimFix a possible deadlock in the GPE dispatch. Remove call to 979193267SjkimAcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 980193267Sjkimto acquire the GPE lock but can deadlock since the GPE lock is already held 981193267Sjkimat dispatch time. This code was introduced in version 20060831 as a response 982193267Sjkimto Linux BZ 6881 and has since been removed from Linux. 983193267Sjkim 984193267SjkimAdd a function to dereference returned reference objects. Examines the return 985193267Sjkimobject from a call to AcpiEvaluateObject. Any Index or RefOf references are 986193267Sjkimautomatically dereferenced in an attempt to return something useful (these 987193267Sjkimreference types cannot be converted into an external ACPI_OBJECT.) Provides 988193267SjkimMS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 989193267Sjkim 990193267Sjkimx2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 991193267Sjkimsubtables for the MADT and one new subtable for the SRAT. Includes 992193267Sjkimdisassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 993193267SjkimSpecification, June 2008. 994193267Sjkim 995193267SjkimAdditional error checking for pathname utilities. Add error check after all 996193267Sjkimcalls to AcpiNsGetPathnameLength. Add status return from 997193267SjkimAcpiNsBuildExternalPath and check after all calls. Add parameter validation 998193267Sjkimto AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 999193267Sjkim 1000193267SjkimReturn status from the global init function AcpiUtGlobalInitialize. This is 1001193267Sjkimused by both the kernel subsystem and the utilities such as iASL compiler. 1002193267SjkimThe function could possibly fail when the caches are initialized. Yang Yi. 1003193267Sjkim 1004193267SjkimAdd a function to decode reference object types to strings. Created for 1005193267Sjkimimproved error messages. 1006193267Sjkim 1007193267SjkimImprove object conversion error messages. Better error messages during object 1008193267Sjkimconversion from internal to the external ACPI_OBJECT. Used for external calls 1009193267Sjkimto AcpiEvaluateObject. 1010193267Sjkim 1011193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1012193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1013193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1014193267Sjkimmuch larger code and data size. 1015193267Sjkim 1016193267Sjkim Previous Release: 1017193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1018193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1019193267Sjkim Current Release: 1020193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1021193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 1022193267Sjkim 1023193267Sjkim2) iASL Compiler/Disassembler and Tools: 1024193267Sjkim 1025193267SjkimDebugger: fix a possible hang when evaluating non-methods. Fixes a problem 1026193267Sjkimintroduced in version 20080701. If the object being evaluated (via execute 1027193267Sjkimcommand) is not a method, the debugger can hang while trying to obtain non- 1028193267Sjkimexistent parameters. 1029193267Sjkim 1030193267SjkimiASL: relax error for using reserved "_T_x" identifiers. These names can 1031193267Sjkimappear in a disassembled ASL file if they were emitted by the original 1032193267Sjkimcompiler. Instead of issuing an error or warning and forcing the user to 1033193267Sjkimmanually change these names, issue a remark instead. 1034193267Sjkim 1035193267SjkimiASL: error if named object created in while loop. Emit an error if any named 1036193267Sjkimobject is created within a While loop. If allowed, this code will generate a 1037193267Sjkimrun-time error on the second iteration of the loop when an attempt is made to 1038193267Sjkimcreate the same named object twice. ACPICA bugzilla 730. 1039193267Sjkim 1040193267SjkimiASL: Support absolute pathnames for include files. Add support for absolute 1041193267Sjkimpathnames within the Include operator. previously, only relative pathnames 1042193267Sjkimwere supported. 1043193267Sjkim 1044193267SjkimiASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 1045193267SjkimThe ACPI spec requires one interrupt minimum. BZ 423 1046193267Sjkim 1047193267SjkimiASL: Handle a missing ResourceSource arg, with a present SourceIndex. 1048193267SjkimHandles the case for the Interrupt Resource Descriptor where 1049193267Sjkimthe ResourceSource argument is omitted but ResourceSourceIndex 1050193267Sjkimis present. Now leave room for the Index. BZ 426 1051193267Sjkim 1052193267SjkimiASL: Prevent error message if CondRefOf target does not exist. Fixes cases 1053193267Sjkimwhere an error message is emitted if the target does not exist. BZ 516 1054193267Sjkim 1055193267SjkimiASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 1056193267Sjkim(get ACPI tables on Windows). This was apparently broken in version 20070919. 1057193267Sjkim 1058193267SjkimAcpiXtract: Handle EOF while extracting data. Correctly handle the case where 1059193267Sjkimthe EOF happens immediately after the last table in the input file. Print 1060193267Sjkimcompletion message. Previously, no message was displayed in this case. 1061193267Sjkim 1062193267Sjkim---------------------------------------- 1063193267Sjkim01 July 2008. Summary of changes for version 20080701: 1064193267Sjkim 1065193267SjkimThis release is available at http://acpica.org/downloads 1066193267SjkimDirect git access via http://www.acpica.org/repos/acpica.git 1067193267Sjkim 1068193267Sjkim0) Git source tree / acpica.org 1069193267Sjkim 1070193267SjkimFixed a problem where a git-clone from http would not transfer the entire 1071193267Sjkimsource tree. 1072193267Sjkim 1073193267Sjkim1) ACPI CA Core Subsystem: 1074193267Sjkim 1075193267SjkimImplemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 1076193267Sjkimenable bit. Now performs a read-change-write of the enable register instead 1077193267Sjkimof simply writing out the cached enable mask. This will prevent inadvertent 1078193267Sjkimenabling of GPEs if a rogue GPE is received during initialization (before GPE 1079193267Sjkimhandlers are installed.) 1080193267Sjkim 1081193267SjkimImplemented a copy for dynamically loaded tables. Previously, dynamically 1082193267Sjkimloaded tables were simply mapped - but on some machines this memory is 1083193267Sjkimcorrupted after suspend. Now copy the table to a local buffer. For the 1084193267SjkimOpRegion case, added checksum verify. Use the table length from the table 1085193267Sjkimheader, not the region length. For the Buffer case, use the table length 1086193267Sjkimalso. Dennis Noordsij, Bob Moore. BZ 10734 1087193267Sjkim 1088193267SjkimFixed a problem where the same ACPI table could not be dynamically loaded and 1089193267Sjkimunloaded more than once. Without this change, a table cannot be loaded again 1090193267Sjkimonce it has been loaded/unloaded one time. The current mechanism does not 1091193267Sjkimunregister a table upon an unload. During a load, if the same table is found, 1092193267Sjkimthis no longer returns an exception. BZ 722 1093193267Sjkim 1094193267SjkimFixed a problem where the wrong descriptor length was calculated for the 1095193267SjkimEndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 1096193267Sjkimare calculated as 12 bytes long, but the actual length in the internal 1097193267Sjkimdescriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 1098193267Sjkimby Linn Crosetto. BZ 728 1099193267Sjkim 1100193267SjkimFixed a possible memory leak in the Unload operator. The DdbHandle returned 1101193267Sjkimby Load() did not have its reference count decremented during unload, leading 1102193267Sjkimto a memory leak. Lin Ming. BZ 727 1103193267Sjkim 1104193267SjkimFixed a possible memory leak when deleting thermal/processor objects. Any 1105193267Sjkimassociated notify handlers (and objects) were not being deleted. Fiodor 1106193267SjkimSuietov. BZ 506 1107193267Sjkim 1108193267SjkimFixed the ordering of the ASCII names in the global mutex table to match the 1109193267Sjkimactual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 1110193267SjkimVegard Nossum. BZ 726 1111193267Sjkim 1112193267SjkimEnhanced the AcpiGetObjectInfo interface to return the number of required 1113193267Sjkimarguments if the object is a control method. Added this call to the debugger 1114193267Sjkimso the proper number of default arguments are passed to a method. This 1115193267Sjkimprevents a warning when executing methods from AcpiExec. 1116193267Sjkim 1117193267SjkimAdded a check for an invalid handle in AcpiGetObjectInfo. Return 1118193267SjkimAE_BAD_PARAMETER if input handle is invalid. BZ 474 1119193267Sjkim 1120193267SjkimFixed an extraneous warning from exconfig.c on the 64-bit build. 1121193267Sjkim 1122193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1123193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1124193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1125193267Sjkimmuch larger code and data size. 1126193267Sjkim 1127193267Sjkim Previous Release: 1128193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1129193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1130193267Sjkim Current Release: 1131193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1132193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1133193267Sjkim 1134193267Sjkim2) iASL Compiler/Disassembler and Tools: 1135193267Sjkim 1136193267SjkimiASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 1137193267Sjkimresource descriptor names. 1138193267Sjkim 1139193267SjkimiASL: Detect invalid ASCII characters in input (windows version). Removed the 1140193267Sjkim"-CF" flag from the flex compile, enables correct detection of non-ASCII 1141193267Sjkimcharacters in the input. BZ 441 1142193267Sjkim 1143193267SjkimiASL: Eliminate warning when result of LoadTable is not used. Eliminate the 1144193267Sjkim"result of operation not used" warning when the DDB handle returned from 1145193267SjkimLoadTable is not used. The warning is not needed. BZ 590 1146193267Sjkim 1147193267SjkimAcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 1148193267Sjkimpass address of table to the AML. Added option to disable OpRegion simulation 1149193267Sjkimto allow creation of an OpRegion with a real address that was passed to _CFG. 1150193267SjkimAll of this allows testing of the Load and Unload operators from AcpiExec. 1151193267Sjkim 1152193267SjkimDebugger: update tables command for unloaded tables. Handle unloaded tables 1153193267Sjkimand use the standard table header output routine. 1154193267Sjkim 1155193267Sjkim---------------------------------------- 1156193267Sjkim09 June 2008. Summary of changes for version 20080609: 1157193267Sjkim 1158193267Sjkim1) ACPI CA Core Subsystem: 1159193267Sjkim 1160193267SjkimImplemented a workaround for reversed _PRT entries. A significant number of 1161193267SjkimBIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 1162193267Sjkimchange dynamically detects and repairs this problem. Provides compatibility 1163193267Sjkimwith MS ACPI. BZ 6859 1164193267Sjkim 1165193267SjkimSimplified the internal ACPI hardware interfaces to eliminate the locking 1166193267Sjkimflag parameter from Register Read/Write. Added a new external interface, 1167193267SjkimAcpiGetRegisterUnlocked. 1168193267Sjkim 1169193267SjkimFixed a problem where the invocation of a GPE control method could hang. This 1170193267Sjkimwas a regression introduced in 20080514. The new method argument count 1171193267Sjkimvalidation mechanism can enter an infinite loop when a GPE method is 1172193267Sjkimdispatched. Problem fixed by removing the obsolete code that passed GPE block 1173193267Sjkiminformation to the notify handler via the control method parameter pointer. 1174193267Sjkim 1175193267SjkimFixed a problem where the _SST execution status was incorrectly returned to 1176193267Sjkimthe caller of AcpiEnterSleepStatePrep. This was a regression introduced in 1177193267Sjkim20080514. _SST is optional and a NOT_FOUND exception should never be 1178193267Sjkimreturned. BZ 716 1179193267Sjkim 1180193267SjkimFixed a problem where a deleted object could be accessed from within the AML 1181193267Sjkimparser. This was a regression introduced in version 20080123 as a fix for the 1182193267SjkimUnload operator. Lin Ming. BZ 10669 1183193267Sjkim 1184193267SjkimCleaned up the debug operand dump mechanism. Eliminated unnecessary operands 1185193267Sjkimand eliminated the use of a negative index in a loop. Operands are now 1186193267Sjkimdisplayed in the correct order, not backwards. This also fixes a regression 1187193267Sjkimintroduced in 20080514 on 64-bit systems where the elimination of 1188193267SjkimACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 1189193267Sjkim 1190193267SjkimFixed a possible memory leak in EvPciConfigRegionSetup where the error exit 1191193267Sjkimpath did not delete a locally allocated structure. 1192193267Sjkim 1193193267SjkimUpdated definitions for the DMAR and SRAT tables to synchronize with the 1194193267Sjkimcurrent specifications. Includes disassembler support. 1195193267Sjkim 1196193267SjkimFixed a problem in the mutex debug code (in utmutex.c) where an incorrect 1197193267Sjkimloop termination value was used. Loop terminated on iteration early, missing 1198193267Sjkimone mutex. Linn Crosetto 1199193267Sjkim 1200193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1201193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1202193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1203193267Sjkimmuch larger code and data size. 1204193267Sjkim 1205193267Sjkim Previous Release: 1206193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1207193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1208193267Sjkim Current Release: 1209193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1210193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1211193267Sjkim 1212193267Sjkim2) iASL Compiler/Disassembler and Tools: 1213193267Sjkim 1214193267SjkimDisassembler: Implemented support for EisaId() within _CID objects. Now 1215193267Sjkimdisassemble integer _CID objects back to EisaId invocations, including 1216193267Sjkimmultiple integers within _CID packages. Includes single-step support for 1217193267Sjkimdebugger also. 1218193267Sjkim 1219193267SjkimDisassembler: Added support for DMAR and SRAT table definition changes. 1220193267Sjkim 1221193267Sjkim---------------------------------------- 1222193267Sjkim14 May 2008. Summary of changes for version 20080514: 1223193267Sjkim 1224193267Sjkim1) ACPI CA Core Subsystem: 1225193267Sjkim 1226193267SjkimFixed a problem where GPEs were enabled too early during the ACPICA 1227193267Sjkiminitialization. This could lead to "handler not installed" errors on some 1228193267Sjkimmachines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 1229193267Sjkimensures that all operation regions and devices throughout the namespace have 1230193267Sjkimbeen initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 1231193267Sjkim 1232193267SjkimImplemented a change to the enter sleep code. Moved execution of the _GTS 1233193267Sjkimmethod to just before setting sleep enable bit. The execution was moved from 1234193267SjkimAcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 1235193267Sjkimimmediately before the SLP_EN bit is set, as per the ACPI specification. 1236193267SjkimLuming Yu, BZ 1653. 1237193267Sjkim 1238193267SjkimImplemented a fix to disable unknown GPEs (2nd version). Now always disable 1239193267Sjkimthe GPE, even if ACPICA thinks that that it is already disabled. It is 1240193267Sjkimpossible that the AML or some other code has enabled the GPE unbeknownst to 1241193267Sjkimthe ACPICA code. 1242193267Sjkim 1243193267SjkimFixed a problem with the Field operator where zero-length fields would return 1244193267Sjkiman AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 1245193267Sjkimfield declarations in Field(), BankField(), and IndexField(). BZ 10606. 1246193267Sjkim 1247193267SjkimImplemented a fix for the Load operator, now load the table at the namespace 1248193267Sjkimroot. This reverts a change introduced in version 20071019. The table is now 1249193267Sjkimloaded at the namespace root even though this goes against the ACPI 1250193267Sjkimspecification. This provides compatibility with other ACPI implementations. 1251193267SjkimThe ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 1252193267Sjkim 1253193267SjkimFixed a problem where ACPICA would not Load() tables with unusual signatures. 1254193267SjkimNow ignore ACPI table signature for Load() operator. Only "SSDT" is 1255193267Sjkimacceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 1256193267SjkimTherefore, signature validation is worthless. Apparently MS ACPI accepts such 1257193267Sjkimsignatures, ACPICA must be compatible. BZ 10454. 1258193267Sjkim 1259193267SjkimFixed a possible negative array index in AcpiUtValidateException. Added NULL 1260193267Sjkimfields to the exception string arrays to eliminate a -1 subtraction on the 1261193267SjkimSubStatus field. 1262193267Sjkim 1263193267SjkimUpdated the debug tracking macros to reduce overall code and data size. 1264193267SjkimChanged ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 1265193267Sjkiminstead of pointers to static strings. Jan Beulich and Bob Moore. 1266193267Sjkim 1267193267SjkimImplemented argument count checking in control method invocation via 1268193267SjkimAcpiEvaluateObject. Now emit an error if too few arguments, warning if too 1269193267Sjkimmany. This applies only to extern programmatic control method execution, not 1270193267Sjkimmethod-to-method calls within the AML. Lin Ming. 1271193267Sjkim 1272193267SjkimEliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 1273193267Sjkimlonger needed, especially with the removal of 16-bit support. It was replaced 1274193267Sjkimmostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 1275193267Sjkim32/64-bit platforms is required. 1276193267Sjkim 1277193267SjkimAdded the C const qualifier for appropriate string constants -- mostly 1278193267SjkimMODULE_NAME and printf format strings. Jan Beulich. 1279193267Sjkim 1280193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1281193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1282193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1283193267Sjkimmuch larger code and data size. 1284193267Sjkim 1285193267Sjkim Previous Release: 1286193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1287193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1288193267Sjkim Current Release: 1289193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1290193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1291193267Sjkim 1292193267Sjkim2) iASL Compiler/Disassembler and Tools: 1293193267Sjkim 1294193267SjkimImplemented ACPI table revision ID validation in the disassembler. Zero is 1295193267Sjkimalways invalid. For DSDTs, the ID controls the interpreter integer width. 1 1296193267Sjkimmeans 32-bit and this is unusual. 2 or greater is 64-bit. 1297193267Sjkim 1298193267Sjkim---------------------------------------- 1299193267Sjkim21 March 2008. Summary of changes for version 20080321: 1300193267Sjkim 1301193267Sjkim1) ACPI CA Core Subsystem: 1302193267Sjkim 1303193267SjkimImplemented an additional change to the GPE support in order to suppress 1304193267Sjkimspurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 1305193267Sjkimdisable incoming GPEs that are neither enabled nor disabled -- meaning that 1306193267Sjkimthe GPE is unknown to the system. This should prevent future interrupt floods 1307193267Sjkimfrom that GPE. BZ 6217 (Zhang Rui) 1308193267Sjkim 1309193267SjkimFixed a problem where NULL package elements were not returned to the 1310193267SjkimAcpiEvaluateObject interface correctly. The element was simply ignored 1311193267Sjkiminstead of returning a NULL ACPI_OBJECT package element, potentially causing 1312193267Sjkima buffer overflow and/or confusing the caller who expected a fixed number of 1313193267Sjkimelements. BZ 10132 (Lin Ming, Bob Moore) 1314193267Sjkim 1315193267SjkimFixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 1316193267SjkimQword), Field, BankField, and IndexField operators when invoked from inside 1317193267Sjkiman executing control method. In this case, these operators created namespace 1318193267Sjkimnodes that were incorrectly left marked as permanent nodes instead of 1319193267Sjkimtemporary nodes. This could cause a problem if there is race condition 1320193267Sjkimbetween an exiting control method and a running namespace walk. (Reported by 1321193267SjkimLinn Crosetto) 1322193267Sjkim 1323193267SjkimFixed a problem where the CreateField and CreateXXXField operators would 1324193267Sjkimincorrectly allow duplicate names (the name of the field) with no exception 1325193267Sjkimgenerated. 1326193267Sjkim 1327193267SjkimImplemented several changes for Notify handling. Added support for new Notify 1328193267Sjkimvalues (ACPI 2.0+) and improved the Notify debug output. Notify on 1329193267SjkimPowerResource objects is no longer allowed, as per the ACPI specification. 1330193267Sjkim(Bob Moore, Zhang Rui) 1331193267Sjkim 1332193267SjkimAll Reference Objects returned via the AcpiEvaluateObject interface are now 1333193267Sjkimmarked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 1334193267SjkimNULL objects - either NULL package elements or unresolved named references. 1335193267Sjkim 1336193267SjkimFixed a problem where an extraneous debug message was produced for package 1337193267Sjkimobjects (when debugging enabled). The message "Package List length larger 1338193267Sjkimthan NumElements count" is now produced in the correct case, and is now an 1339193267Sjkimerror message rather than a debug message. Added a debug message for the 1340193267Sjkimopposite case, where NumElements is larger than the Package List (the package 1341193267Sjkimwill be padded out with NULL elements as per the ACPI spec.) 1342193267Sjkim 1343193267SjkimImplemented several improvements for the output of the ASL "Debug" object to 1344193267Sjkimclarify and keep all data for a given object on one output line. 1345193267Sjkim 1346193267SjkimFixed two size calculation issues with the variable-length Start Dependent 1347193267Sjkimresource descriptor. 1348193267Sjkim 1349193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1350193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1351193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1352193267Sjkima much larger code and data size. 1353193267Sjkim 1354193267Sjkim Previous Release: 1355193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1356193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1357193267Sjkim Current Release: 1358193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1359193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1360193267Sjkim 1361193267Sjkim2) iASL Compiler/Disassembler and Tools: 1362193267Sjkim 1363193267SjkimFixed a problem with the use of the Switch operator where execution of the 1364193267Sjkimcontaining method by multiple concurrent threads could cause an 1365193267SjkimAE_ALREADY_EXISTS exception. This is caused by the fact that there is no 1366193267Sjkimactual Switch opcode, it must be simulated with local named temporary 1367193267Sjkimvariables and if/else pairs. The solution chosen was to mark any method that 1368193267Sjkimuses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 1369193267Sjkim 1370193267Sjkim---------------------------------------- 1371193267Sjkim13 February 2008. Summary of changes for version 20080213: 1372193267Sjkim 1373193267Sjkim1) ACPI CA Core Subsystem: 1374193267Sjkim 1375193267SjkimImplemented another MS compatibility design change for GPE/Notify handling. 1376193267SjkimGPEs are now cleared/enabled asynchronously to allow all pending notifies to 1377193267Sjkimcomplete first. It is expected that the OSL will queue the enable request 1378193267Sjkimbehind all pending notify requests (may require changes to the local host OSL 1379193267Sjkimin AcpiOsExecute). Alexey Starikovskiy. 1380193267Sjkim 1381193267SjkimFixed a problem where buffer and package objects passed as arguments to a 1382193267Sjkimcontrol method via the external AcpiEvaluateObject interface could cause an 1383193267SjkimAE_AML_INTERNAL exception depending on the order and type of operators 1384193267Sjkimexecuted by the target control method. 1385193267Sjkim 1386193267SjkimFixed a problem where resource descriptor size optimization could cause a 1387193267Sjkimproblem when a _CRS resource template is passed to a _SRS method. The _SRS 1388193267Sjkimresource template must use the same descriptors (with the same size) as 1389193267Sjkimreturned from _CRS. This change affects the following resource descriptors: 1390193267SjkimIRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 1391193267Sjkim 1392193267SjkimFixed a problem where a CopyObject to RegionField, BankField, and IndexField 1393193267Sjkimobjects did not perform an implicit conversion as it should. These types must 1394193267Sjkimretain their initial type permanently as per the ACPI specification. However, 1395193267Sjkima CopyObject to all other object types should not perform an implicit 1396193267Sjkimconversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 1397193267Sjkim 1398193267SjkimFixed a problem with the AcpiGetDevices interface where the mechanism to 1399193267Sjkimmatch device CIDs did not examine the entire list of available CIDs, but 1400193267Sjkiminstead aborted on the first non-matching CID. Andrew Patterson. 1401193267Sjkim 1402193267SjkimFixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 1403193267Sjkiminadvertently changed to return a 16-bit value instead of a 32-bit value, 1404193267Sjkimtruncating the upper dword of a 64-bit value. This macro is only used to 1405193267Sjkimdisplay debug output, so no incorrect calculations were made. Also, 1406193267Sjkimreimplemented the macro so that a 64-bit shift is not performed by 1407193267Sjkiminefficient compilers. 1408193267Sjkim 1409193267SjkimAdded missing va_end statements that should correspond with each va_start 1410193267Sjkimstatement. 1411193267Sjkim 1412193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1413193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1414193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1415193267Sjkima much larger code and data size. 1416193267Sjkim 1417193267Sjkim Previous Release: 1418193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1419193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1420193267Sjkim Current Release: 1421193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1422193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1423193267Sjkim 1424193267Sjkim2) iASL Compiler/Disassembler and Tools: 1425193267Sjkim 1426193267SjkimImplemented full disassembler support for the following new ACPI tables: 1427193267SjkimBERT, EINJ, and ERST. Implemented partial disassembler support for the 1428193267Sjkimcomplicated HEST table. These tables support the Windows Hardware Error 1429193267SjkimArchitecture (WHEA). 1430193267Sjkim 1431193267Sjkim---------------------------------------- 1432193267Sjkim23 January 2008. Summary of changes for version 20080123: 1433193267Sjkim 1434193267Sjkim1) ACPI CA Core Subsystem: 1435193267Sjkim 1436193267SjkimAdded the 2008 copyright to all module headers and signons. This affects 1437193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 1438193267Sjkimthe tools/utilities. 1439193267Sjkim 1440193267SjkimFixed a problem with the SizeOf operator when used with Package and Buffer 1441193267Sjkimobjects. These objects have deferred execution for some arguments, and the 1442193267Sjkimexecution is now completed before the SizeOf is executed. This problem caused 1443193267Sjkimunexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 1444193267Sjkim9558 1445193267Sjkim 1446193267SjkimImplemented an enhancement to the interpreter "slack mode". In the absence of 1447193267Sjkiman explicit return or an implicitly returned object from the last executed 1448193267Sjkimopcode, a control method will now implicitly return an integer of value 0 for 1449193267SjkimMicrosoft compatibility. (Lin Ming) BZ 392 1450193267Sjkim 1451193267SjkimFixed a problem with the Load operator where an exception was not returned in 1452193267Sjkimthe case where the table is already loaded. (Lin Ming) BZ 463 1453193267Sjkim 1454193267SjkimImplemented support for the use of DDBHandles as an Indexed Reference, as per 1455193267Sjkimthe ACPI spec. (Lin Ming) BZ 486 1456193267Sjkim 1457193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 1458193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 1459193267Sjkim 1460193267SjkimFixed a problem with the LoadTable operator where the OemId and OemTableId 1461193267Sjkiminput strings could cause unexpected failures if they were shorter than the 1462193267Sjkimmaximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 1463193267Sjkim 1464193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 1465193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 1466193267Sjkim 1467193267SjkimImplemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 1468193267SjkimIBFT, UEFI, WDAT. Disassembler support is forthcoming. 1469193267Sjkim 1470193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1471193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1472193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1473193267Sjkima much larger code and data size. 1474193267Sjkim 1475193267Sjkim Previous Release: 1476193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1477193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1478193267Sjkim Current Release: 1479193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1480193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1481193267Sjkim 1482193267Sjkim2) iASL Compiler/Disassembler and Tools: 1483193267Sjkim 1484193267SjkimImplemented support in the disassembler for checksum validation on incoming 1485193267Sjkimbinary DSDTs and SSDTs. If incorrect, a message is displayed within the table 1486193267Sjkimheader dump at the start of the disassembly. 1487193267Sjkim 1488193267SjkimImplemented additional debugging information in the namespace listing file 1489193267Sjkimcreated during compilation. In addition to the namespace hierarchy, the full 1490193267Sjkimpathname to each namespace object is displayed. 1491193267Sjkim 1492193267SjkimFixed a problem with the disassembler where invalid ACPI tables could cause 1493193267Sjkimfaults or infinite loops. 1494193267Sjkim 1495193267SjkimFixed an unexpected parse error when using the optional "parameter types" 1496193267Sjkimlist in a control method declaration. (Lin Ming) BZ 397 1497193267Sjkim 1498193267SjkimFixed a problem where two External declarations with the same name did not 1499193267Sjkimcause an error (Lin Ming) BZ 509 1500193267Sjkim 1501193267SjkimImplemented support for full TermArgs (adding Argx, Localx and method 1502193267Sjkiminvocation) for the ParameterData parameter to the LoadTable operator. (Lin 1503193267SjkimMing) BZ 583,587 1504193267Sjkim 1505193267Sjkim---------------------------------------- 1506193267Sjkim19 December 2007. Summary of changes for version 20071219: 1507193267Sjkim 1508193267Sjkim1) ACPI CA Core Subsystem: 1509193267Sjkim 1510193267SjkimImplemented full support for deferred execution for the TermArg string 1511193267Sjkimarguments for DataTableRegion. This enables forward references and full 1512193267Sjkimoperand resolution for the three string arguments. Similar to OperationRegion 1513193267Sjkimdeferred argument execution.) Lin Ming. BZ 430 1514193267Sjkim 1515193267SjkimImplemented full argument resolution support for the BankValue argument to 1516193267SjkimBankField. Previously, only constants were supported, now any TermArg may be 1517193267Sjkimused. Lin Ming BZ 387, 393 1518193267Sjkim 1519193267SjkimFixed a problem with AcpiGetDevices where the search of a branch of the 1520193267Sjkimdevice tree could be terminated prematurely. In accordance with the ACPI 1521193267Sjkimspecification, the search down the current branch is terminated if a device 1522193267Sjkimis both not present and not functional (instead of just not present.) Yakui 1523193267SjkimZhao. 1524193267Sjkim 1525193267SjkimFixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 1526193267Sjkimthe underlying AML code changed the GPE enable registers. Now, any unknown 1527193267Sjkimincoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 1528193267Sjkiminstead of simply ignored. Rui Zhang. 1529193267Sjkim 1530193267SjkimFixed a problem with Index Fields where the Index register was incorrectly 1531193267Sjkimlimited to a maximum of 32 bits. Now any size may be used. 1532193267Sjkim 1533193267SjkimFixed a couple memory leaks associated with "implicit return" objects when 1534193267Sjkimthe AML Interpreter slack mode is enabled. Lin Ming BZ 349 1535193267Sjkim 1536193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1537193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1538193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1539193267Sjkima much larger code and data size. 1540193267Sjkim 1541193267Sjkim Previous Release: 1542193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1543193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1544193267Sjkim Current Release: 1545193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1546193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1547193267Sjkim 1548193267Sjkim---------------------------------------- 1549193267Sjkim14 November 2007. Summary of changes for version 20071114: 1550193267Sjkim 1551193267Sjkim1) ACPI CA Core Subsystem: 1552193267Sjkim 1553193267SjkimImplemented event counters for each of the Fixed Events, the ACPI SCI 1554193267Sjkim(interrupt) itself, and control methods executed. Named 1555193267SjkimAcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 1556193267Sjkimshould be useful for debugging and statistics. 1557193267Sjkim 1558193267SjkimImplemented a new external interface, AcpiGetStatistics, to retrieve the 1559193267Sjkimcontents of the various event counters. Returns the current values for 1560193267SjkimAcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 1561193267SjkimAcpiMethodCount. The interface can be expanded in the future if new counters 1562193267Sjkimare added. Device drivers should use this interface rather than access the 1563193267Sjkimcounters directly. 1564193267Sjkim 1565193267SjkimFixed a problem with the FromBCD and ToBCD operators. With some compilers, 1566193267Sjkimthe ShortDivide function worked incorrectly, causing problems with the BCD 1567193267Sjkimfunctions with large input values. A truncation from 64-bit to 32-bit 1568193267Sjkiminadvertently occurred. Internal BZ 435. Lin Ming 1569193267Sjkim 1570193267SjkimFixed a problem with Index references passed as method arguments. References 1571193267Sjkimpassed as arguments to control methods were dereferenced immediately (before 1572193267Sjkimcontrol was passed to the called method). The references are now correctly 1573193267Sjkimpassed directly to the called method. BZ 5389. Lin Ming 1574193267Sjkim 1575193267SjkimFixed a problem with CopyObject used in conjunction with the Index operator. 1576193267SjkimThe reference was incorrectly dereferenced before the copy. The reference is 1577193267Sjkimnow correctly copied. BZ 5391. Lin Ming 1578193267Sjkim 1579193267SjkimFixed a problem with Control Method references within Package objects. These 1580193267Sjkimreferences are now correctly generated. This completes the package 1581193267Sjkimconstruction overhaul that began in version 20071019. 1582193267Sjkim 1583193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1584193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1585193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1586193267Sjkima much larger code and data size. 1587193267Sjkim 1588193267Sjkim Previous Release: 1589193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1590193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1591193267Sjkim Current Release: 1592193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1593193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1594193267Sjkim 1595193267Sjkim 1596193267Sjkim2) iASL Compiler/Disassembler and Tools: 1597193267Sjkim 1598193267SjkimThe AcpiExec utility now installs handlers for all of the predefined 1599193267SjkimOperation Region types. New types supported are: PCI_Config, CMOS, and 1600193267SjkimPCIBARTarget. 1601193267Sjkim 1602193267SjkimFixed a problem with the 64-bit version of AcpiExec where the extended (64- 1603193267Sjkimbit) address fields for the DSDT and FACS within the FADT were not being 1604193267Sjkimused, causing truncation of the upper 32-bits of these addresses. Lin Ming 1605193267Sjkimand Bob Moore 1606193267Sjkim 1607193267Sjkim---------------------------------------- 1608193267Sjkim19 October 2007. Summary of changes for version 20071019: 1609193267Sjkim 1610193267Sjkim1) ACPI CA Core Subsystem: 1611193267Sjkim 1612193267SjkimFixed a problem with the Alias operator when the target of the alias is a 1613193267Sjkimnamed ASL operator that opens a new scope -- Scope, Device, PowerResource, 1614193267SjkimProcessor, and ThermalZone. In these cases, any children of the original 1615193267Sjkimoperator could not be accessed via the alias, potentially causing unexpected 1616193267SjkimAE_NOT_FOUND exceptions. (BZ 9067) 1617193267Sjkim 1618193267SjkimFixed a problem with the Package operator where all named references were 1619193267Sjkimcreated as object references and left otherwise unresolved. According to the 1620193267SjkimACPI specification, a Package can only contain Data Objects or references to 1621193267Sjkimcontrol methods. The implication is that named references to Data Objects 1622193267Sjkim(Integer, Buffer, String, Package, BufferField, Field) should be resolved 1623193267Sjkimimmediately upon package creation. This is the approach taken with this 1624193267Sjkimchange. References to all other named objects (Methods, Devices, Scopes, 1625193267Sjkimetc.) are all now properly created as reference objects. (BZ 5328) 1626193267Sjkim 1627193267SjkimReverted a change to Notify handling that was introduced in version 1628193267Sjkim20070508. This version changed the Notify handling from asynchronous to 1629193267Sjkimfully synchronous (Device driver Notify handling with respect to the Notify 1630193267SjkimASL operator). It was found that this change caused more problems than it 1631193267Sjkimsolved and was removed by most users. 1632193267Sjkim 1633193267SjkimFixed a problem with the Increment and Decrement operators where the type of 1634193267Sjkimthe target object could be unexpectedly and incorrectly changed. (BZ 353) 1635193267SjkimLin Ming. 1636193267Sjkim 1637193267SjkimFixed a problem with the Load and LoadTable operators where the table 1638193267Sjkimlocation within the namespace was ignored. Instead, the table was always 1639193267Sjkimloaded into the root or current scope. Lin Ming. 1640193267Sjkim 1641193267SjkimFixed a problem with the Load operator when loading a table from a buffer 1642193267Sjkimobject. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 1643193267Sjkim 1644193267SjkimFixed a problem with the Debug object where a store of a DdbHandle reference 1645193267Sjkimobject to the Debug object could cause a fault. 1646193267Sjkim 1647193267SjkimAdded a table checksum verification for the Load operator, in the case where 1648193267Sjkimthe load is from a buffer. (BZ 578). 1649193267Sjkim 1650193267SjkimImplemented additional parameter validation for the LoadTable operator. The 1651193267Sjkimlength of the input strings SignatureString, OemIdString, and OemTableId are 1652193267Sjkimnow checked for maximum lengths. (BZ 582) Lin Ming. 1653193267Sjkim 1654193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1655193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1656193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1657193267Sjkima much larger code and data size. 1658193267Sjkim 1659193267Sjkim Previous Release: 1660193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1661193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1662193267Sjkim Current Release: 1663193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1664193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1665193267Sjkim 1666193267Sjkim 1667193267Sjkim2) iASL Compiler/Disassembler: 1668193267Sjkim 1669193267SjkimFixed a problem where if a single file was specified and the file did not 1670193267Sjkimexist, no error message was emitted. (Introduced with wildcard support in 1671193267Sjkimversion 20070917.) 1672193267Sjkim 1673193267Sjkim---------------------------------------- 1674193267Sjkim19 September 2007. Summary of changes for version 20070919: 1675193267Sjkim 1676193267Sjkim1) ACPI CA Core Subsystem: 1677193267Sjkim 1678193267SjkimDesigned and implemented new external interfaces to install and remove 1679193267Sjkimhandlers for ACPI table-related events. Current events that are defined are 1680193267SjkimLOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 1681193267Sjkimthey are dynamically loaded and unloaded. See AcpiInstallTableHandler and 1682193267SjkimAcpiRemoveTableHandler. (Lin Ming and Bob Moore) 1683193267Sjkim 1684193267SjkimFixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 1685193267Sjkim(acpi_serialized option on Linux) could cause some systems to hang during 1686193267Sjkiminitialization. (Bob Moore) BZ 8171 1687193267Sjkim 1688193267SjkimFixed a problem where objects of certain types (Device, ThermalZone, 1689193267SjkimProcessor, PowerResource) can be not found if they are declared and 1690193267Sjkimreferenced from within the same control method (Lin Ming) BZ 341 1691193267Sjkim 1692193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1693193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1694193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1695193267Sjkima much larger code and data size. 1696193267Sjkim 1697193267Sjkim Previous Release: 1698193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1699193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1700193267Sjkim Current Release: 1701193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1702193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1703193267Sjkim 1704193267Sjkim 1705193267Sjkim2) iASL Compiler/Disassembler: 1706193267Sjkim 1707193267SjkimImplemented support to allow multiple files to be compiled/disassembled in a 1708193267Sjkimsingle invocation. This includes command line wildcard support for both the 1709193267SjkimWindows and Unix versions of the compiler. This feature simplifies the 1710193267Sjkimdisassembly and compilation of multiple ACPI tables in a single directory. 1711193267Sjkim 1712193267Sjkim---------------------------------------- 1713193267Sjkim08 May 2007. Summary of changes for version 20070508: 1714193267Sjkim 1715193267Sjkim1) ACPI CA Core Subsystem: 1716193267Sjkim 1717193267SjkimImplemented a Microsoft compatibility design change for the handling of the 1718193267SjkimNotify AML operator. Previously, notify handlers were dispatched and 1719193267Sjkimexecuted completely asynchronously in a deferred thread. The new design 1720193267Sjkimstill executes the notify handlers in a different thread, but the original 1721193267Sjkimthread that executed the Notify() now waits at a synchronization point for 1722193267Sjkimthe notify handler to complete. Some machines depend on a synchronous Notify 1723193267Sjkimoperator in order to operate correctly. 1724193267Sjkim 1725193267SjkimImplemented support to allow Package objects to be passed as method 1726193267Sjkimarguments to the external AcpiEvaluateObject interface. Previously, this 1727193267Sjkimwould return the AE_NOT_IMPLEMENTED exception. This feature had not been 1728193267Sjkimimplemented since there were no reserved control methods that required it 1729193267Sjkimuntil recently. 1730193267Sjkim 1731193267SjkimFixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 1732193267Sjkimcontained invalid non-zero values in reserved fields could cause later 1733193267Sjkimfailures because these fields have meaning in later revisions of the FADT. 1734193267SjkimFor incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 1735193267Sjkimare: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 1736193267Sjkim 1737193267SjkimFixed a problem where the Global Lock handle was not properly updated if a 1738193267Sjkimthread that acquired the Global Lock via executing AML code then attempted 1739193267Sjkimto acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 1740193267SjkimLiu. 1741193267Sjkim 1742193267SjkimFixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 1743193267Sjkimcould be corrupted if the interrupt being removed was at the head of the 1744193267Sjkimlist. Reported by Linn Crosetto. 1745193267Sjkim 1746193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1747193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1748193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1749193267Sjkima much larger code and data size. 1750193267Sjkim 1751193267Sjkim Previous Release: 1752193267Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1753193267Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 1754193267Sjkim Current Release: 1755193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1756193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1757193267Sjkim 1758193267Sjkim---------------------------------------- 1759167802Sjkim20 March 2007. Summary of changes for version 20070320: 1760167802Sjkim 1761167802Sjkim1) ACPI CA Core Subsystem: 1762167802Sjkim 1763193267SjkimImplemented a change to the order of interpretation and evaluation of AML 1764193267Sjkimoperand objects within the AML interpreter. The interpreter now evaluates 1765193267Sjkimoperands in the order that they appear in the AML stream (and the 1766193267Sjkimcorresponding ASL code), instead of in the reverse order (after the entire 1767193267Sjkimoperand list has been parsed). The previous behavior caused several subtle 1768193267Sjkimincompatibilities with the Microsoft AML interpreter as well as being 1769193267Sjkimsomewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 1770167802Sjkim 1771193267SjkimImplemented a change to the ACPI Global Lock support. All interfaces to the 1772193267Sjkimglobal lock now allow the same thread to acquire the lock multiple times. 1773193267SjkimThis affects the AcpiAcquireGlobalLock external interface to the global lock 1774193267Sjkimas well as the internal use of the global lock to support AML fields -- a 1775193267Sjkimcontrol method that is holding the global lock can now simultaneously access 1776193267SjkimAML fields that require global lock protection. Previously, in both cases, 1777193267Sjkimthis would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 1778193267SjkimAcpiAcquireGlobalLock is of special interest to drivers for the Embedded 1779193267SjkimController. There is no change to the behavior of the AML Acquire operator, 1780193267Sjkimas this can already be used to acquire a mutex multiple times by the same 1781193267Sjkimthread. BZ 8066. With assistance from Alexey Starikovskiy. 1782167802Sjkim 1783193267SjkimFixed a problem where invalid objects could be referenced in the AML 1784193267SjkimInterpreter after error conditions. During operand evaluation, ensure that 1785193267Sjkimthe internal "Return Object" field is cleared on error and only valid 1786193267Sjkimpointers are stored there. Caused occasional access to deleted objects that 1787193267Sjkimresulted in "large reference count" warning messages. Valery Podrezov. 1788167802Sjkim 1789193267SjkimFixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 1790193267Sjkimdeeply nested control method invocations. BZ 7873, local BZ 487. Valery 1791193267SjkimPodrezov. 1792167802Sjkim 1793193267SjkimFixed an internal problem with the handling of result objects on the 1794193267Sjkiminterpreter result stack. BZ 7872. Valery Podrezov. 1795167802Sjkim 1796193267SjkimRemoved obsolete code that handled the case where AML_NAME_OP is the target 1797193267Sjkimof a reference (Reference.Opcode). This code was no longer necessary. BZ 1798193267Sjkim7874. Valery Podrezov. 1799167802Sjkim 1800193267SjkimRemoved obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 1801193267Sjkimremnant from the previously discontinued 16-bit support. 1802167802Sjkim 1803193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1804193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1805193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1806193267Sjkima much larger code and data size. 1807167802Sjkim 1808167802Sjkim Previous Release: 1809167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1810167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1811167802Sjkim Current Release: 1812167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1813167802Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 1814167802Sjkim 1815167802Sjkim---------------------------------------- 1816167802Sjkim26 January 2007. Summary of changes for version 20070126: 1817167802Sjkim 1818167802Sjkim1) ACPI CA Core Subsystem: 1819167802Sjkim 1820193267SjkimAdded the 2007 copyright to all module headers and signons. This affects 1821193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 1822193267Sjkimthe utilities. 1823167802Sjkim 1824193267SjkimImplemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 1825193267Sjkimduring a table load. A bad pointer was passed in the case where the DSDT is 1826193267Sjkimoverridden, causing a fault in this case. 1827167802Sjkim 1828193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1829193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1830193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1831193267Sjkima much larger code and data size. 1832167802Sjkim 1833167802Sjkim Previous Release: 1834167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1835167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1836167802Sjkim Current Release: 1837167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1838167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1839167802Sjkim 1840167802Sjkim---------------------------------------- 1841167802Sjkim15 December 2006. Summary of changes for version 20061215: 1842167802Sjkim 1843167802Sjkim1) ACPI CA Core Subsystem: 1844167802Sjkim 1845193267SjkimSupport for 16-bit ACPICA has been completely removed since it is no longer 1846193267Sjkimnecessary and it clutters the code. All 16-bit macros, types, and 1847193267Sjkimconditional compiles have been removed, cleaning up and simplifying the code 1848193267Sjkimacross the entire subsystem. DOS support is no longer needed since the 1849193267Sjkimbootable Linux firmware kit is now available. 1850167802Sjkim 1851193267SjkimThe handler for the Global Lock is now removed during AcpiTerminate to 1852193267Sjkimenable a clean subsystem restart, via the implementation of the 1853193267SjkimAcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 1854193267SjkimHP) 1855167802Sjkim 1856193267SjkimImplemented enhancements to the multithreading support within the debugger 1857193267Sjkimto enable improved multithreading debugging and evaluation of the subsystem. 1858167802Sjkim(Valery Podrezov) 1859167802Sjkim 1860193267SjkimDebugger: Enhanced the Statistics/Memory command to emit the total (maximum) 1861193267Sjkimmemory used during the execution, as well as the maximum memory consumed by 1862193267Sjkimeach of the various object types. (Valery Podrezov) 1863167802Sjkim 1864193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1865193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1866193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1867193267Sjkima much larger code and data size. 1868193267Sjkim 1869167802Sjkim Previous Release: 1870167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 1871167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 1872167802Sjkim Current Release: 1873167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1874167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1875167802Sjkim 1876167802Sjkim 1877167802Sjkim2) iASL Compiler/Disassembler and Tools: 1878167802Sjkim 1879193267SjkimAcpiExec: Implemented a new option (-m) to display full memory use 1880193267Sjkimstatistics upon subsystem/program termination. (Valery Podrezov) 1881167802Sjkim 1882167802Sjkim---------------------------------------- 1883167802Sjkim09 November 2006. Summary of changes for version 20061109: 1884167802Sjkim 1885167802Sjkim1) ACPI CA Core Subsystem: 1886167802Sjkim 1887193267SjkimOptimized the Load ASL operator in the case where the source operand is an 1888193267Sjkimoperation region. Simply map the operation region memory, instead of 1889193267Sjkimperforming a bytewise read. (Region must be of type SystemMemory, see 1890193267Sjkimbelow.) 1891167802Sjkim 1892193267SjkimFixed the Load ASL operator for the case where the source operand is a 1893193267Sjkimregion field. A buffer object is also allowed as the source operand. BZ 480 1894167802Sjkim 1895193267SjkimFixed a problem where the Load ASL operator allowed the source operand to be 1896193267Sjkiman operation region of any type. It is now restricted to regions of type 1897193267SjkimSystemMemory, as per the ACPI specification. BZ 481 1898167802Sjkim 1899193267SjkimAdditional cleanup and optimizations for the new Table Manager code. 1900167802Sjkim 1901193267SjkimAcpiEnable will now fail if all of the required ACPI tables are not loaded 1902193267Sjkim(FADT, FACS, DSDT). BZ 477 1903167802Sjkim 1904193267SjkimAdded #pragma pack(8/4) to acobject.h to ensure that the structures in this 1905193267Sjkimheader are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 1906193267Sjkimmanually optimized to be aligned and will not work if it is byte-packed. 1907167802Sjkim 1908193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1909193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1910193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1911193267Sjkima much larger code and data size. 1912167802Sjkim 1913167802Sjkim Previous Release: 1914167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 1915167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 1916167802Sjkim Current Release: 1917167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 1918167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 1919167802Sjkim 1920167802Sjkim 1921167802Sjkim2) iASL Compiler/Disassembler and Tools: 1922167802Sjkim 1923193267SjkimFixed a problem where the presence of the _OSI predefined control method 1924193267Sjkimwithin complex expressions could cause an internal compiler error. 1925167802Sjkim 1926193267SjkimAcpiExec: Implemented full region support for multiple address spaces. 1927193267SjkimSpaceId is now part of the REGION object. BZ 429 1928167802Sjkim 1929167802Sjkim---------------------------------------- 1930167802Sjkim11 October 2006. Summary of changes for version 20061011: 1931167802Sjkim 1932167802Sjkim1) ACPI CA Core Subsystem: 1933167802Sjkim 1934193267SjkimCompleted an AML interpreter performance enhancement for control method 1935193267Sjkimexecution. Previously a 2-pass parse/execution, control methods are now 1936193267Sjkimcompletely parsed and executed in a single pass. This improves overall 1937193267Sjkiminterpreter performance by ~25%, reduces code size, and reduces CPU stack 1938193267Sjkimuse. (Valery Podrezov + interpreter changes in version 20051202 that 1939193267Sjkimeliminated namespace loading during the pass one parse.) 1940167802Sjkim 1941193267SjkimImplemented _CID support for PCI Root Bridge detection. If the _HID does not 1942193267Sjkimmatch the predefined PCI Root Bridge IDs, the _CID list (if present) is now 1943193267Sjkimobtained and also checked for an ID match. 1944167802Sjkim 1945193267SjkimImplemented additional support for the PCI _ADR execution: upsearch until a 1946193267Sjkimdevice scope is found before executing _ADR. This allows PCI_Config 1947193267Sjkimoperation regions to be declared locally within control methods underneath 1948193267SjkimPCI device objects. 1949167802Sjkim 1950193267SjkimFixed a problem with a possible race condition between threads executing 1951193267SjkimAcpiWalkNamespace and the AML interpreter. This condition was removed by 1952193267Sjkimmodifying AcpiWalkNamespace to (by default) ignore all temporary namespace 1953193267Sjkimentries created during any concurrent control method execution. An 1954193267Sjkimadditional namespace race condition is known to exist between 1955193267SjkimAcpiWalkNamespace and the Load/Unload ASL operators and is still under 1956193267Sjkiminvestigation. 1957167802Sjkim 1958193267SjkimRestructured the AML ParseLoop function, breaking it into several 1959193267Sjkimsubfunctions in order to reduce CPU stack use and improve maintainability. 1960193267Sjkim(Mikhail Kouzmich) 1961167802Sjkim 1962193267SjkimAcpiGetHandle: Fix for parameter validation to detect invalid combinations 1963193267Sjkimof prefix handle and pathname. BZ 478 1964167802Sjkim 1965193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1966193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1967193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1968193267Sjkima much larger code and data size. 1969167802Sjkim 1970167802Sjkim Previous Release: 1971167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1972167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 1973167802Sjkim Current Release: 1974167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 1975167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 1976167802Sjkim 1977167802Sjkim2) iASL Compiler/Disassembler and Tools: 1978167802Sjkim 1979193267SjkimPorted the -g option (get local ACPI tables) to the new ACPICA Table Manager 1980193267Sjkimto restore original behavior. 1981167802Sjkim 1982167802Sjkim---------------------------------------- 1983167802Sjkim27 September 2006. Summary of changes for version 20060927: 1984167802Sjkim 1985167802Sjkim1) ACPI CA Core Subsystem: 1986167802Sjkim 1987193267SjkimRemoved the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 1988193267SjkimThese functions now use a spinlock for mutual exclusion and the interrupt 1989193267Sjkimlevel indication flag is not needed. 1990167802Sjkim 1991193267SjkimFixed a problem with the Global Lock where the lock could appear to be 1992193267Sjkimobtained before it is actually obtained. The global lock semaphore was 1993193267Sjkiminadvertently created with one unit instead of zero units. (BZ 464) Fiodor 1994193267SjkimSuietov. 1995167802Sjkim 1996193267SjkimFixed a possible memory leak and fault in AcpiExResolveObjectToValue during 1997193267Sjkima read from a buffer or region field. (BZ 458) Fiodor Suietov. 1998167802Sjkim 1999193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2000193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2001193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2002193267Sjkima much larger code and data size. 2003167802Sjkim 2004167802Sjkim Previous Release: 2005167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2006167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2007167802Sjkim Current Release: 2008167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2009167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 2010167802Sjkim 2011167802Sjkim 2012167802Sjkim2) iASL Compiler/Disassembler and Tools: 2013167802Sjkim 2014193267SjkimFixed a compilation problem with the pre-defined Resource Descriptor field 2015193267Sjkimnames where an "object does not exist" error could be incorrectly generated 2016193267Sjkimif the parent ResourceTemplate pathname places the template within a 2017193267Sjkimdifferent namespace scope than the current scope. (BZ 7212) 2018167802Sjkim 2019193267SjkimFixed a problem where the compiler could hang after syntax errors detected 2020193267Sjkimin an ElseIf construct. (BZ 453) 2021167802Sjkim 2022193267SjkimFixed a problem with the AmlFilename parameter to the DefinitionBlock() 2023193267Sjkimoperator. An incorrect output filename was produced when this parameter was 2024193267Sjkima null string (""). Now, the original input filename is used as the AML 2025193267Sjkimoutput filename, with an ".aml" extension. 2026167802Sjkim 2027193267SjkimImplemented a generic batch command mode for the AcpiExec utility (execute 2028193267Sjkimany AML debugger command) (Valery Podrezov). 2029167802Sjkim 2030167802Sjkim---------------------------------------- 2031167802Sjkim12 September 2006. Summary of changes for version 20060912: 2032167802Sjkim 2033167802Sjkim1) ACPI CA Core Subsystem: 2034167802Sjkim 2035193267SjkimEnhanced the implementation of the "serialized mode" of the interpreter 2036193267Sjkim(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 2037193267Sjkimspecified, instead of creating a serialization semaphore per control method, 2038193267Sjkimthe interpreter lock is simply no longer released before a blocking 2039193267Sjkimoperation during control method execution. This effectively makes the AML 2040193267SjkimInterpreter single-threaded. The overhead of a semaphore per-method is 2041193267Sjkimeliminated. 2042167802Sjkim 2043193267SjkimFixed a regression where an error was no longer emitted if a control method 2044193267Sjkimattempts to create 2 objects of the same name. This once again returns 2045193267SjkimAE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 2046193267Sjkimwill dynamically serialize the control method to possible prevent future 2047193267Sjkimerrors. (BZ 440) 2048167802Sjkim 2049193267SjkimIntegrated a fix for a problem with PCI Express HID detection in the PCI 2050193267SjkimConfig Space setup procedure. (BZ 7145) 2051167802Sjkim 2052193267SjkimMoved all FADT-related functions to a new file, tbfadt.c. Eliminated the 2053193267SjkimAcpiHwInitialize function - the FADT registers are now validated when the 2054193267Sjkimtable is loaded. 2055167802Sjkim 2056193267SjkimAdded two new warnings during FADT verification - 1) if the FADT is larger 2057193267Sjkimthan the largest known FADT version, and 2) if there is a mismatch between a 2058193267Sjkim32-bit block address and the 64-bit X counterpart (when both are non-zero.) 2059167802Sjkim 2060193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2061193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2062193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2063193267Sjkima much larger code and data size. 2064167802Sjkim 2065167802Sjkim Previous Release: 2066167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2067167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2068167802Sjkim Current Release: 2069167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2070167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2071167802Sjkim 2072167802Sjkim 2073167802Sjkim2) iASL Compiler/Disassembler and Tools: 2074167802Sjkim 2075193267SjkimFixed a problem with the implementation of the Switch() operator where the 2076193267Sjkimtemporary variable was declared too close to the actual Switch, instead of 2077193267Sjkimat method level. This could cause a problem if the Switch() operator is 2078193267Sjkimwithin a while loop, causing an error on the second iteration. (BZ 460) 2079167802Sjkim 2080193267SjkimDisassembler - fix for error emitted for unknown type for target of scope 2081193267Sjkimoperator. Now, ignore it and continue. 2082167802Sjkim 2083193267SjkimDisassembly of an FADT now verifies the input FADT and reports any errors 2084193267Sjkimfound. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 2085167802Sjkim 2086193267SjkimDisassembly of raw data buffers with byte initialization data now prefixes 2087193267Sjkimeach output line with the current buffer offset. 2088167802Sjkim 2089193267SjkimDisassembly of ASF! table now includes all variable-length data fields at 2090193267Sjkimthe end of some of the subtables. 2091167802Sjkim 2092193267SjkimThe disassembler now emits a comment if a buffer appears to be a 2093193267SjkimResourceTemplate, but cannot be disassembled as such because the EndTag does 2094193267Sjkimnot appear at the very end of the buffer. 2095167802Sjkim 2096193267SjkimAcpiExec - Added the "-t" command line option to enable the serialized mode 2097193267Sjkimof the AML interpreter. 2098167802Sjkim 2099167802Sjkim---------------------------------------- 2100167802Sjkim31 August 2006. Summary of changes for version 20060831: 2101167802Sjkim 2102167802Sjkim1) ACPI CA Core Subsystem: 2103167802Sjkim 2104167802SjkimMiscellaneous fixes for the Table Manager: 2105193267Sjkim- Correctly initialize internal common FADT for all 64-bit "X" fields 2106167802Sjkim- Fixed a couple table mapping issues during table load 2107167802Sjkim- Fixed a couple alignment issues for IA64 2108167802Sjkim- Initialize input array to zero in AcpiInitializeTables 2109193267Sjkim- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 2110193267SjkimAcpiGetTableByIndex 2111167802Sjkim 2112193267SjkimChange for GPE support: when a "wake" GPE is received, all wake GPEs are now 2113193267Sjkimimmediately disabled to prevent the waking GPE from firing again and to 2114193267Sjkimprevent other wake GPEs from interrupting the wake process. 2115167802Sjkim 2116193267SjkimAdded the AcpiGpeCount global that tracks the number of processed GPEs, to 2117193267Sjkimbe used for debugging systems with a large number of ACPI interrupts. 2118167802Sjkim 2119193267SjkimImplemented support for the "DMAR" ACPI table (DMA Redirection Table) in 2120193267Sjkimboth the ACPICA headers and the disassembler. 2121167802Sjkim 2122193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2123193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2124193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2125193267Sjkima much larger code and data size. 2126167802Sjkim 2127167802Sjkim Previous Release: 2128167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2129167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2130167802Sjkim Current Release: 2131167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2132167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2133167802Sjkim 2134167802Sjkim 2135167802Sjkim2) iASL Compiler/Disassembler and Tools: 2136167802Sjkim 2137167802SjkimDisassembler support for the DMAR ACPI table. 2138167802Sjkim 2139167802Sjkim---------------------------------------- 2140167802Sjkim23 August 2006. Summary of changes for version 20060823: 2141167802Sjkim 2142167802Sjkim1) ACPI CA Core Subsystem: 2143167802Sjkim 2144193267SjkimThe Table Manager component has been completely redesigned and 2145193267Sjkimreimplemented. The new design is much simpler, and reduces the overall code 2146193267Sjkimand data size of the kernel-resident ACPICA by approximately 5%. Also, it is 2147193267Sjkimnow possible to obtain the ACPI tables very early during kernel 2148193267Sjkiminitialization, even before dynamic memory management is initialized. 2149193267Sjkim(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 2150167802Sjkim 2151167802SjkimObsolete ACPICA interfaces: 2152167802Sjkim 2153193267Sjkim- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 2154193267Sjkimtime). 2155167802Sjkim- AcpiLoadTable: Not needed. 2156167802Sjkim- AcpiUnloadTable: Not needed. 2157167802Sjkim 2158167802SjkimNew ACPICA interfaces: 2159167802Sjkim 2160193267Sjkim- AcpiInitializeTables: Must be called before the table manager can be used. 2161193267Sjkim- AcpiReallocateRootTable: Used to transfer the root table to dynamically 2162193267Sjkimallocated memory after it becomes available. 2163193267Sjkim- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 2164193267Sjkimin the RSDT/XSDT. 2165167802Sjkim 2166167802SjkimOther ACPICA changes: 2167167802Sjkim 2168193267Sjkim- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 2169193267SjkimAcpiOsUnmapMemory to free this mapping. 2170193267Sjkim- AcpiGetTable returns the actual mapped table. The mapping is managed 2171193267Sjkiminternally and must not be deleted by the caller. Use of this interface 2172193267Sjkimcauses no additional dynamic memory allocation. 2173193267Sjkim- AcpiFindRootPointer: Support for physical addressing has been eliminated, 2174193267Sjkimit appeared to be unused. 2175193267Sjkim- The interface to AcpiOsMapMemory has changed to be consistent with the 2176193267Sjkimother allocation interfaces. 2177193267Sjkim- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 2178193267Sjkimparameters. 2179193267Sjkim- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 2180193267Sjkimbit platforms. Was previously 64 bits on all platforms. 2181193267Sjkim- The interface to the ACPI Global Lock acquire/release macros have changed 2182193267Sjkimslightly since ACPICA no longer keeps a local copy of the FACS with a 2183193267Sjkimconstructed pointer to the actual global lock. 2184167802Sjkim 2185167802SjkimPorting to the new table manager: 2186167802Sjkim 2187193267Sjkim- AcpiInitializeTables: Must be called once, and can be called anytime 2188193267Sjkimduring the OS initialization process. It allows the host to specify an area 2189193267Sjkimof memory to be used to store the internal version of the RSDT/XSDT (root 2190193267Sjkimtable). This allows the host to access ACPI tables before memory management 2191193267Sjkimis initialized and running. 2192193267Sjkim- AcpiReallocateRootTable: Can be called after memory management is running 2193193267Sjkimto copy the root table to a dynamically allocated array, freeing up the 2194193267Sjkimscratch memory specified in the call to AcpiInitializeTables. 2195193267Sjkim- AcpiSubsystemInitialize: This existing interface is independent of the 2196193267SjkimTable Manager, and does not have to be called before the Table Manager can 2197193267Sjkimbe used, it only must be called before the rest of ACPICA can be used. 2198193267Sjkim- ACPI Tables: Some changes have been made to the names and structure of the 2199193267Sjkimactbl.h and actbl1.h header files and may require changes to existing code. 2200193267SjkimFor example, bitfields have been completely removed because of their lack of 2201193267Sjkimportability across C compilers. 2202193267Sjkim- Update interfaces to the Global Lock acquire/release macros if local 2203193267Sjkimversions are used. (see acwin.h) 2204167802Sjkim 2205167802SjkimObsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 2206167802Sjkim 2207167802SjkimNew files: tbfind.c 2208167802Sjkim 2209193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2210193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2211193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2212193267Sjkima much larger code and data size. 2213167802Sjkim 2214167802Sjkim Previous Release: 2215167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2216167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2217167802Sjkim Current Release: 2218167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2219167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2220167802Sjkim 2221167802Sjkim 2222167802Sjkim2) iASL Compiler/Disassembler and Tools: 2223167802Sjkim 2224167802SjkimNo changes for this release. 2225167802Sjkim 2226167802Sjkim---------------------------------------- 2227167802Sjkim21 July 2006. Summary of changes for version 20060721: 2228167802Sjkim 2229167802Sjkim1) ACPI CA Core Subsystem: 2230167802Sjkim 2231193267SjkimThe full source code for the ASL test suite used to validate the iASL 2232193267Sjkimcompiler and the ACPICA core subsystem is being released with the ACPICA 2233193267Sjkimsource for the first time. The source is contained in a separate package and 2234193267Sjkimconsists of over 1100 files that exercise all ASL/AML operators. The package 2235193267Sjkimshould appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 2236167802SjkimSuietov) 2237167802Sjkim 2238193267SjkimCompleted a new design and implementation for support of the ACPI Global 2239193267SjkimLock. On the OS side, the global lock is now treated as a standard AML 2240193267Sjkimmutex. Previously, multiple OS threads could "acquire" the global lock 2241193267Sjkimsimultaneously. However, this could cause the BIOS to be starved out of the 2242193267Sjkimlock - especially in cases such as the Embedded Controller driver where 2243193267Sjkimthere is a tight coupling between the OS and the BIOS. 2244167802Sjkim 2245193267SjkimImplemented an optimization for the ACPI Global Lock interrupt mechanism. 2246193267SjkimThe Global Lock interrupt handler no longer queues the execution of a 2247193267Sjkimseparate thread to signal the global lock semaphore. Instead, the semaphore 2248193267Sjkimis signaled directly from the interrupt handler. 2249167802Sjkim 2250193267SjkimImplemented support within the AML interpreter for package objects that 2251193267Sjkimcontain a larger AML length (package list length) than the package element 2252193267Sjkimcount. In this case, the length of the package is truncated to match the 2253193267Sjkimpackage element count. Some BIOS code apparently modifies the package length 2254193267Sjkimon the fly, and this change supports this behavior. Provides compatibility 2255193267Sjkimwith the MS AML interpreter. (With assistance from Fiodor Suietov) 2256167802Sjkim 2257193267SjkimImplemented a temporary fix for the BankValue parameter of a Bank Field to 2258193267Sjkimsupport all constant values, now including the Zero and One opcodes. 2259193267SjkimEvaluation of this parameter must eventually be converted to a full TermArg 2260193267Sjkimevaluation. A not-implemented error is now returned (temporarily) for non- 2261193267Sjkimconstant values for this parameter. 2262167802Sjkim 2263167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2264193267Sjkim- Fix for premature object deletion after CopyObject on Operation Region (BZ 2265193267Sjkim350) 2266167802Sjkim 2267193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2268193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2269193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2270193267Sjkima much larger code and data size. 2271167802Sjkim 2272167802Sjkim Previous Release: 2273167802Sjkim Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 2274167802Sjkim Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 2275167802Sjkim Current Release: 2276167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2277167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2278167802Sjkim 2279167802Sjkim 2280167802Sjkim2) iASL Compiler/Disassembler and Tools: 2281167802Sjkim 2282167802SjkimNo changes for this release. 2283167802Sjkim 2284167802Sjkim---------------------------------------- 2285167802Sjkim07 July 2006. Summary of changes for version 20060707: 2286167802Sjkim 2287167802Sjkim1) ACPI CA Core Subsystem: 2288167802Sjkim 2289193267SjkimAdded the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 2290193267Sjkimthat do not allow the initialization of address pointers within packed 2291193267Sjkimstructures - even though the hardware itself may support misaligned 2292193267Sjkimtransfers. Some of the debug data structures are packed by default to 2293193267Sjkimminimize size. 2294167802Sjkim 2295193267SjkimAdded an error message for the case where AcpiOsGetThreadId() returns zero. 2296193267SjkimA non-zero value is required by the core ACPICA code to ensure the proper 2297193267Sjkimoperation of AML mutexes and recursive control methods. 2298167802Sjkim 2299193267SjkimThe DSDT is now the only ACPI table that determines whether the AML 2300193267Sjkiminterpreter is in 32-bit or 64-bit mode. Not really a functional change, but 2301193267Sjkimthe hooks for per-table 32/64 switching have been removed from the code. A 2302193267Sjkimclarification to the ACPI specification is forthcoming in ACPI 3.0B. 2303167802Sjkim 2304193267SjkimFixed a possible leak of an OwnerID in the error path of 2305193267SjkimAcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 2306193267Sjkimdeletion to a single place in AcpiTbUninstallTable to correct possible leaks 2307193267Sjkimwhen using the AcpiTbDeleteTablesByType interface (with assistance from 2308193267SjkimLance Ortiz.) 2309167802Sjkim 2310193267SjkimFixed a problem with Serialized control methods where the semaphore 2311193267Sjkimassociated with the method could be over-signaled after multiple method 2312193267Sjkiminvocations. 2313167802Sjkim 2314193267SjkimFixed two issues with the locking of the internal namespace data structure. 2315193267SjkimBoth the Unload() operator and AcpiUnloadTable interface now lock the 2316193267Sjkimnamespace during the namespace deletion associated with the table unload 2317193267Sjkim(with assistance from Linn Crosetto.) 2318167802Sjkim 2319167802SjkimFixed problem reports (Valery Podrezov) integrated: 2320193267Sjkim- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 2321167802Sjkim 2322167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2323167802Sjkim- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 2324193267Sjkim- On Address Space handler deletion, needless deactivation call (BZ 374) 2325193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 2326193267Sjkim- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 2327193267Sjkim(BZ 376) 2328193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 2329167802Sjkim- Minimum Length of RSDT should be validated (BZ 379) 2330193267Sjkim- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 2331193267SjkimHandler (BZ (380) 2332193267Sjkim- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 2333193267Sjkim(BZ 381) 2334167802Sjkim 2335193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2336193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2337193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2338193267Sjkima much larger code and data size. 2339167802Sjkim 2340167802Sjkim Previous Release: 2341167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2342167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2343167802Sjkim Current Release: 2344167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2345167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2346167802Sjkim 2347167802Sjkim 2348167802Sjkim2) iASL Compiler/Disassembler and Tools: 2349167802Sjkim 2350167802SjkimFixed problem reports: 2351193267SjkimCompiler segfault when ASL contains a long (>1024) String declaration (BZ 2352193267Sjkim436) 2353167802Sjkim 2354167802Sjkim---------------------------------------- 2355167802Sjkim23 June 2006. Summary of changes for version 20060623: 2356167802Sjkim 2357167802Sjkim1) ACPI CA Core Subsystem: 2358167802Sjkim 2359193267SjkimImplemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 2360193267Sjkimallows the type to be customized to the host OS for improved efficiency 2361193267Sjkim(since a spinlock is usually a very small object.) 2362167802Sjkim 2363193267SjkimImplemented support for "ignored" bits in the ACPI registers. According to 2364193267Sjkimthe ACPI specification, these bits should be preserved when writing the 2365193267Sjkimregisters via a read/modify/write cycle. There are 3 bits preserved in this 2366193267Sjkimmanner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 2367167802Sjkim 2368193267SjkimImplemented the initial deployment of new OSL mutex interfaces. Since some 2369193267Sjkimhost operating systems have separate mutex and semaphore objects, this 2370193267Sjkimfeature was requested. The base code now uses mutexes (and the new mutex 2371193267Sjkiminterfaces) wherever a binary semaphore was used previously. However, for 2372193267Sjkimthe current release, the mutex interfaces are defined as macros to map them 2373193267Sjkimto the existing semaphore interfaces. Therefore, no OSL changes are required 2374193267Sjkimat this time. (See acpiosxf.h) 2375167802Sjkim 2376193267SjkimFixed several problems with the support for the control method SyncLevel 2377193267Sjkimparameter. The SyncLevel now works according to the ACPI specification and 2378193267Sjkimin concert with the Mutex SyncLevel parameter, since the current SyncLevel 2379193267Sjkimis a property of the executing thread. Mutual exclusion for control methods 2380193267Sjkimis now implemented with a mutex instead of a semaphore. 2381167802Sjkim 2382193267SjkimFixed three instances of the use of the C shift operator in the bitfield 2383193267Sjkimsupport code (exfldio.c) to avoid the use of a shift value larger than the 2384193267Sjkimtarget data width. The behavior of C compilers is undefined in this case and 2385193267Sjkimcan cause unpredictable results, and therefore the case must be detected and 2386193267Sjkimavoided. (Fiodor Suietov) 2387167802Sjkim 2388193267SjkimAdded an info message whenever an SSDT or OEM table is loaded dynamically 2389193267Sjkimvia the Load() or LoadTable() ASL operators. This should improve debugging 2390193267Sjkimcapability since it will show exactly what tables have been loaded (beyond 2391193267Sjkimthe tables present in the RSDT/XSDT.) 2392167802Sjkim 2393193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2394193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2395193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2396193267Sjkima much larger code and data size. 2397167802Sjkim 2398167802Sjkim Previous Release: 2399167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2400167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2401167802Sjkim Current Release: 2402167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2403167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2404167802Sjkim 2405167802Sjkim 2406167802Sjkim2) iASL Compiler/Disassembler and Tools: 2407167802Sjkim 2408167802SjkimNo changes for this release. 2409167802Sjkim 2410167802Sjkim---------------------------------------- 2411167802Sjkim08 June 2006. Summary of changes for version 20060608: 2412167802Sjkim 2413167802Sjkim1) ACPI CA Core Subsystem: 2414167802Sjkim 2415193267SjkimConverted the locking mutex used for the ACPI hardware to a spinlock. This 2416193267Sjkimchange should eliminate all problems caused by attempting to acquire a 2417193267Sjkimsemaphore at interrupt level, and it means that all ACPICA external 2418193267Sjkiminterfaces that directly access the ACPI hardware can be safely called from 2419193267Sjkiminterrupt level. OSL code that implements the semaphore interfaces should be 2420193267Sjkimable to eliminate any workarounds for being called at interrupt level. 2421167802Sjkim 2422193267SjkimFixed a regression introduced in 20060526 where the ACPI device 2423193267Sjkiminitialization could be prematurely aborted with an AE_NOT_FOUND if a device 2424193267Sjkimdid not have an optional _INI method. 2425167802Sjkim 2426193267SjkimFixed an IndexField issue where a write to the Data Register should be 2427193267Sjkimlimited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 2428193267SjkimFiodor Suietov) 2429167802Sjkim 2430167802SjkimFixed problem reports (Valery Podrezov) integrated: 2431193267Sjkim- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 2432167802Sjkim 2433167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2434193267Sjkim- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 2435167802Sjkim 2436193267SjkimRemoved four global mutexes that were obsolete and were no longer being 2437193267Sjkimused. 2438167802Sjkim 2439193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2440193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2441193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2442193267Sjkima much larger code and data size. 2443167802Sjkim 2444167802Sjkim Previous Release: 2445167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2446167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2447167802Sjkim Current Release: 2448167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2449167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2450167802Sjkim 2451167802Sjkim 2452167802Sjkim2) iASL Compiler/Disassembler and Tools: 2453167802Sjkim 2454193267SjkimFixed a fault when using -g option (get tables from registry) on Windows 2455193267Sjkimmachines. 2456167802Sjkim 2457167802SjkimFixed problem reports integrated: 2458193267Sjkim- Generate error if CreateField NumBits parameter is zero. (BZ 405) 2459193267Sjkim- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 2460193267SjkimSuietov) 2461167802Sjkim- Global table revision override (-r) is ignored (BZ 413) 2462167802Sjkim 2463167802Sjkim---------------------------------------- 2464167802Sjkim26 May 2006. Summary of changes for version 20060526: 2465167802Sjkim 2466167802Sjkim1) ACPI CA Core Subsystem: 2467167802Sjkim 2468193267SjkimRestructured, flattened, and simplified the internal interfaces for 2469193267Sjkimnamespace object evaluation - resulting in smaller code, less CPU stack use, 2470193267Sjkimand fewer interfaces. (With assistance from Mikhail Kouzmich) 2471167802Sjkim 2472193267SjkimFixed a problem with the CopyObject operator where the first parameter was 2473193267Sjkimnot typed correctly for the parser, interpreter, compiler, and disassembler. 2474193267SjkimCaused various errors and unexpected behavior. 2475167802Sjkim 2476193267SjkimFixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 2477193267Sjkimproduced incorrect results with some C compilers. Since the behavior of C 2478193267Sjkimcompilers when the shift value is larger than the datatype width is 2479193267Sjkimapparently not well defined, the interpreter now detects this condition and 2480193267Sjkimsimply returns zero as expected in all such cases. (BZ 395) 2481167802Sjkim 2482167802SjkimFixed problem reports (Valery Podrezov) integrated: 2483193267Sjkim- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 2484193267Sjkim- Allow interpreter to handle nested method declarations (BZ 5361) 2485167802Sjkim 2486167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2487193267Sjkim- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 2488193267Sjkim- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 2489193267Sjkim- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 2490193267Sjkim- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 2491167802Sjkim- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 2492193267Sjkim- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 2493167802Sjkim- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 2494167802Sjkim- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 2495193267Sjkim- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 2496193267Sjkim- Status of the Global Initialization Handler call not used (BZ 366) 2497193267Sjkim- Incorrect object parameter to Global Initialization Handler (BZ 367) 2498167802Sjkim 2499193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2500193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2501193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2502193267Sjkima much larger code and data size. 2503167802Sjkim 2504167802Sjkim Previous Release: 2505167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2506167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2507167802Sjkim Current Release: 2508167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2509167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2510167802Sjkim 2511167802Sjkim 2512167802Sjkim2) iASL Compiler/Disassembler and Tools: 2513167802Sjkim 2514193267SjkimModified the parser to allow the names IO, DMA, and IRQ to be used as 2515193267Sjkimnamespace identifiers with no collision with existing resource descriptor 2516193267Sjkimmacro names. This provides compatibility with other ASL compilers and is 2517193267Sjkimmost useful for disassembly/recompilation of existing tables without parse 2518167802Sjkimerrors. (With assistance from Thomas Renninger) 2519167802Sjkim 2520193267SjkimDisassembler: fixed an incorrect disassembly problem with the 2521193267SjkimDataTableRegion and CopyObject operators. Fixed a possible fault during 2522193267Sjkimdisassembly of some Alias operators. 2523167802Sjkim 2524167802Sjkim---------------------------------------- 2525167802Sjkim12 May 2006. Summary of changes for version 20060512: 2526167802Sjkim 2527167802Sjkim1) ACPI CA Core Subsystem: 2528167802Sjkim 2529193267SjkimReplaced the AcpiOsQueueForExecution interface with a new interface named 2530193267SjkimAcpiOsExecute. The major difference is that the new interface does not have 2531193267Sjkima Priority parameter, this appeared to be useless and has been replaced by a 2532193267SjkimType parameter. The Type tells the host what type of execution is being 2533193267Sjkimrequested, such as global lock handler, notify handler, GPE handler, etc. 2534193267SjkimThis allows the host to queue and execute the request as appropriate for the 2535193267Sjkimrequest type, possibly using different work queues and different priorities 2536193267Sjkimfor the various request types. This enables fixes for multithreading 2537193267Sjkimdeadlock problems such as BZ #5534, and will require changes to all existing 2538193267SjkimOS interface layers. (Alexey Starikovskiy and Bob Moore) 2539167802Sjkim 2540193267SjkimFixed a possible memory leak associated with the support for the so-called 2541193267Sjkim"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 2542193267SjkimSuietov) 2543167802Sjkim 2544193267SjkimFixed a problem with the Load() operator where a table load from an 2545193267Sjkimoperation region could overwrite an internal table buffer by up to 7 bytes 2546193267Sjkimand cause alignment faults on IPF systems. (With assistance from Luming Yu) 2547167802Sjkim 2548193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2549193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2550193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2551193267Sjkima much larger code and data size. 2552167802Sjkim 2553167802Sjkim Previous Release: 2554167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2555167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2556167802Sjkim Current Release: 2557167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2558167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2559167802Sjkim 2560167802Sjkim 2561167802Sjkim 2562167802Sjkim2) iASL Compiler/Disassembler and Tools: 2563167802Sjkim 2564193267SjkimDisassembler: Implemented support to cross reference the internal namespace 2565193267Sjkimand automatically generate ASL External() statements for symbols not defined 2566193267Sjkimwithin the current table being disassembled. This will simplify the 2567193267Sjkimdisassembly and recompilation of interdependent tables such as SSDTs since 2568193267Sjkimthese statements will no longer have to be added manually. 2569167802Sjkim 2570193267SjkimDisassembler: Implemented experimental support to automatically detect 2571193267Sjkiminvocations of external control methods and generate appropriate External() 2572193267Sjkimstatements. This is problematic because the AML cannot be correctly parsed 2573193267Sjkimuntil the number of arguments for each control method is known. Currently, 2574193267Sjkimstandalone method invocations and invocations as the source operand of a 2575193267SjkimStore() statement are supported. 2576167802Sjkim 2577193267SjkimDisassembler: Implemented support for the ASL pseudo-operators LNotEqual, 2578193267SjkimLLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 2579193267SjkimLNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 2580193267Sjkimmore readable and likely closer to the original ASL source. 2581167802Sjkim 2582167802Sjkim---------------------------------------- 2583167802Sjkim21 April 2006. Summary of changes for version 20060421: 2584167802Sjkim 2585167802Sjkim1) ACPI CA Core Subsystem: 2586167802Sjkim 2587193267SjkimRemoved a device initialization optimization introduced in 20051216 where 2588193267Sjkimthe _STA method was not run unless an _INI was also present for the same 2589193267Sjkimdevice. This optimization could cause problems because it could allow _INI 2590193267Sjkimmethods to be run within a not-present device subtree. (If a not-present 2591193267Sjkimdevice had no _INI, _STA would not be run, the not-present status would not 2592193267Sjkimbe discovered, and the children of the device would be incorrectly 2593167802Sjkimtraversed.) 2594167802Sjkim 2595193267SjkimImplemented a new _STA optimization where namespace subtrees that do not 2596193267Sjkimcontain _INI are identified and ignored during device initialization. 2597193267SjkimSelectively running _STA can significantly improve boot time on large 2598193267Sjkimmachines (with assistance from Len Brown.) 2599167802Sjkim 2600193267SjkimImplemented support for the device initialization case where the returned 2601193267Sjkim_STA flags indicate a device not-present but functioning. In this case, _INI 2602193267Sjkimis not run, but the device children are examined for presence, as per the 2603193267SjkimACPI specification. 2604167802Sjkim 2605193267SjkimImplemented an additional change to the IndexField support in order to 2606193267Sjkimconform to MS behavior. The value written to the Index Register is not 2607193267Sjkimsimply a byte offset, it is a byte offset in units of the access width of 2608193267Sjkimthe parent Index Field. (Fiodor Suietov) 2609167802Sjkim 2610193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateAddress. This 2611193267Sjkiminterface is called during the creation of all AML operation regions, and 2612193267Sjkimallows the host OS to exert control over what addresses it will allow the 2613193267SjkimAML code to access. Operation Regions whose addresses are disallowed will 2614193267Sjkimcause a runtime exception when they are actually accessed (will not affect 2615193267Sjkimor abort table loading.) See oswinxf or osunixxf for an example 2616167802Sjkimimplementation. 2617167802Sjkim 2618193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateInterface. This 2619193267Sjkiminterface allows the host OS to match the various "optional" 2620193267Sjkiminterface/behavior strings for the _OSI predefined control method as 2621193267Sjkimappropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 2622193267Sjkimfor an example implementation. 2623167802Sjkim 2624193267SjkimRestructured and corrected various problems in the exception handling code 2625193267Sjkimpaths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 2626193267Sjkim(with assistance from Takayoshi Kochi.) 2627167802Sjkim 2628193267SjkimModified the Linux source converter to ignore quoted string literals while 2629193267Sjkimconverting identifiers from mixed to lower case. This will correct problems 2630193267Sjkimwith the disassembler and other areas where such strings must not be 2631193267Sjkimmodified. 2632167802Sjkim 2633193267SjkimThe ACPI_FUNCTION_* macros no longer require quotes around the function 2634193267Sjkimname. This allows the Linux source converter to convert the names, now that 2635193267Sjkimthe converter ignores quoted strings. 2636167802Sjkim 2637193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2638193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2639193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2640193267Sjkima much larger code and data size. 2641193267Sjkim 2642167802Sjkim Previous Release: 2643167802Sjkim 2644167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2645167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2646167802Sjkim Current Release: 2647167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2648167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2649167802Sjkim 2650167802Sjkim 2651167802Sjkim2) iASL Compiler/Disassembler and Tools: 2652167802Sjkim 2653193267SjkimImplemented 3 new warnings for iASL, and implemented multiple warning levels 2654193267Sjkim(w2 flag). 2655167802Sjkim 2656193267Sjkim1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 2657193267SjkimWAIT_FOREVER (0xFFFF) and the code does not examine the return value to 2658193267Sjkimcheck for the possible timeout, a warning is issued. 2659167802Sjkim 2660193267Sjkim2) Useless operators: If an ASL operator does not specify an optional target 2661193267Sjkimoperand and it also does not use the function return value from the 2662193267Sjkimoperator, a warning is issued since the operator effectively does nothing. 2663167802Sjkim 2664193267Sjkim3) Unreferenced objects: If a namespace object is created, but never 2665193267Sjkimreferenced, a warning is issued. This is a warning level 2 since there are 2666193267Sjkimcases where this is ok, such as when a secondary table is loaded that uses 2667193267Sjkimthe unreferenced objects. Even so, care is taken to only flag objects that 2668193267Sjkimdon't look like they will ever be used. For example, the reserved methods 2669193267Sjkim(starting with an underscore) are usually not referenced because it is 2670193267Sjkimexpected that the OS will invoke them. 2671167802Sjkim 2672167802Sjkim---------------------------------------- 2673167802Sjkim31 March 2006. Summary of changes for version 20060331: 2674167802Sjkim 2675167802Sjkim1) ACPI CA Core Subsystem: 2676167802Sjkim 2677193267SjkimImplemented header file support for the following additional ACPI tables: 2678193267SjkimASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 2679193267Sjkimall current and known ACPI tables are now defined in the ACPICA headers and 2680193267Sjkimare available for use by device drivers and other software. 2681167802Sjkim 2682193267SjkimImplemented support to allow tables that contain ACPI names with invalid 2683193267Sjkimcharacters to be loaded. Previously, this would cause the table load to 2684193267Sjkimfail, but since there are several known cases of such tables on existing 2685193267Sjkimmachines, this change was made to enable ACPI support for them. Also, this 2686193267Sjkimmatches the behavior of the Microsoft ACPI implementation. 2687167802Sjkim 2688193267SjkimFixed a couple regressions introduced during the memory optimization in the 2689193267Sjkim20060317 release. The namespace node definition required additional 2690193267Sjkimreorganization and an internal datatype that had been changed to 8-bit was 2691193267Sjkimrestored to 32-bit. (Valery Podrezov) 2692167802Sjkim 2693193267SjkimFixed a problem where a null pointer passed to AcpiUtDeleteGenericState 2694193267Sjkimcould be passed through to AcpiOsReleaseObject which is unexpected. Such 2695193267Sjkimnull pointers are now trapped and ignored, matching the behavior of the 2696193267Sjkimprevious implementation before the deployment of AcpiOsReleaseObject. 2697167802Sjkim(Valery Podrezov, Fiodor Suietov) 2698167802Sjkim 2699193267SjkimFixed a memory mapping leak during the deletion of a SystemMemory operation 2700193267Sjkimregion where a cached memory mapping was not deleted. This became a 2701193267Sjkimnoticeable problem for operation regions that are defined within frequently 2702193267Sjkimused control methods. (Dana Meyers) 2703167802Sjkim 2704193267SjkimReorganized the ACPI table header files into two main files: one for the 2705193267SjkimACPI tables consumed by the ACPICA core, and another for the miscellaneous 2706193267SjkimACPI tables that are consumed by the drivers and other software. The various 2707193267SjkimFADT definitions were merged into one common section and three different 2708193267Sjkimtables (ACPI 1.0, 1.0+, and 2.0) 2709167802Sjkim 2710193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2711193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2712193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2713193267Sjkima much larger code and data size. 2714167802Sjkim 2715167802Sjkim Previous Release: 2716167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 2717167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2718167802Sjkim Current Release: 2719167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2720167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2721167802Sjkim 2722167802Sjkim 2723167802Sjkim2) iASL Compiler/Disassembler and Tools: 2724167802Sjkim 2725193267SjkimDisassembler: Implemented support to decode and format all non-AML ACPI 2726193267Sjkimtables (tables other than DSDTs and SSDTs.) This includes the new tables 2727193267Sjkimadded to the ACPICA headers, therefore all current and known ACPI tables are 2728193267Sjkimsupported. 2729167802Sjkim 2730193267SjkimDisassembler: The change to allow ACPI names with invalid characters also 2731193267Sjkimenables the disassembly of such tables. Invalid characters within names are 2732193267Sjkimchanged to '*' to make the name printable; the iASL compiler will still 2733193267Sjkimgenerate an error for such names, however, since this is an invalid ACPI 2734193267Sjkimcharacter. 2735167802Sjkim 2736193267SjkimImplemented an option for AcpiXtract (-a) to extract all tables found in the 2737193267Sjkiminput file. The default invocation extracts only the DSDTs and SSDTs. 2738167802Sjkim 2739193267SjkimFixed a couple of gcc generation issues for iASL and AcpiExec and added a 2740193267Sjkimmakefile for the AcpiXtract utility. 2741167802Sjkim 2742167802Sjkim---------------------------------------- 2743167802Sjkim17 March 2006. Summary of changes for version 20060317: 2744167802Sjkim 2745167802Sjkim1) ACPI CA Core Subsystem: 2746167802Sjkim 2747193267SjkimImplemented the use of a cache object for all internal namespace nodes. 2748193267SjkimSince there are about 1000 static nodes in a typical system, this will 2749193267Sjkimdecrease memory use for cache implementations that minimize per-allocation 2750193267Sjkimoverhead (such as a slab allocator.) 2751167802Sjkim 2752193267SjkimRemoved the reference count mechanism for internal namespace nodes, since it 2753193267Sjkimwas deemed unnecessary. This reduces the size of each namespace node by 2754193267Sjkimabout 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 2755193267Sjkimand 32 bytes for the 64-bit case. 2756167802Sjkim 2757193267SjkimOptimized several internal data structures to reduce object size on 64-bit 2758193267Sjkimplatforms by packing data within the 64-bit alignment. This includes the 2759193267Sjkimfrequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 2760193267Sjkiminstances corresponding to the namespace objects. 2761167802Sjkim 2762193267SjkimAdded two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 2763193267Sjkimand "Windows 2006". 2764167802Sjkim 2765193267SjkimSplit the allocation tracking mechanism out to a separate file, from 2766193267Sjkimutalloc.c to uttrack.c. This mechanism appears to be only useful for 2767193267Sjkimapplication-level code. Kernels may wish to not include uttrack.c in 2768193267Sjkimdistributions. 2769167802Sjkim 2770193267SjkimRemoved all remnants of the obsolete ACPI_REPORT_* macros and the associated 2771193267Sjkimcode. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 2772193267Sjkimmacros.) 2773167802Sjkim 2774193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 2775193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2776193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 2777193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 2778193267Sjkimvalues will vary depending on the efficiency of the compiler and the 2779193267Sjkimcompiler options used during generation. 2780167802Sjkim 2781167802Sjkim Previous Release: 2782167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2783167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2784167802Sjkim Current Release: 2785167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 2786167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2787167802Sjkim 2788167802Sjkim 2789167802Sjkim2) iASL Compiler/Disassembler and Tools: 2790167802Sjkim 2791193267SjkimImplemented an ANSI C version of the acpixtract utility. This version will 2792193267Sjkimautomatically extract the DSDT and all SSDTs from the input acpidump text 2793193267Sjkimfile and dump the binary output to separate files. It can also display a 2794193267Sjkimsummary of the input file including the headers for each table found and 2795193267Sjkimwill extract any single ACPI table, with any signature. (See 2796167802Sjkimsource/tools/acpixtract) 2797167802Sjkim 2798167802Sjkim---------------------------------------- 2799167802Sjkim10 March 2006. Summary of changes for version 20060310: 2800167802Sjkim 2801167802Sjkim1) ACPI CA Core Subsystem: 2802167802Sjkim 2803193267SjkimTagged all external interfaces to the subsystem with the new 2804193267SjkimACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 2805193267Sjkimkernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 2806193267Sjkimmacro. The default definition is NULL. 2807167802Sjkim 2808193267SjkimAdded the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 2809193267SjkimThis allows the host to define this as necessary to simplify kernel 2810193267Sjkimintegration. The default definition is ACPI_NATIVE_UINT. 2811167802Sjkim 2812193267SjkimFixed two interpreter problems related to error processing, the deletion of 2813193267Sjkimobjects, and placing invalid pointers onto the internal operator result 2814193267Sjkimstack. BZ 6028, 6151 (Valery Podrezov) 2815167802Sjkim 2816193267SjkimIncreased the reference count threshold where a warning is emitted for large 2817193267Sjkimreference counts in order to eliminate unnecessary warnings on systems with 2818193267Sjkimlarge namespaces (especially 64-bit.) Increased the value from 0x400 to 2819193267Sjkim0x800. 2820167802Sjkim 2821193267SjkimDue to universal disagreement as to the meaning of the 'c' in the calloc() 2822193267Sjkimfunction, the ACPI_MEM_CALLOCATE macro has been renamed to 2823193267SjkimACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 2824193267SjkimACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 2825193267SjkimACPI_FREE. 2826167802Sjkim 2827193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 2828193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2829193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 2830193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 2831193267Sjkimvalues will vary depending on the efficiency of the compiler and the 2832193267Sjkimcompiler options used during generation. 2833167802Sjkim 2834167802Sjkim Previous Release: 2835167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 2836167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2837167802Sjkim Current Release: 2838167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2839167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2840167802Sjkim 2841167802Sjkim 2842167802Sjkim2) iASL Compiler/Disassembler: 2843167802Sjkim 2844193267SjkimDisassembler: implemented support for symbolic resource descriptor 2845193267Sjkimreferences. If a CreateXxxxField operator references a fixed offset within a 2846193267Sjkimresource descriptor, a name is assigned to the descriptor and the offset is 2847193267Sjkimtranslated to the appropriate resource tag and pathname. The addition of 2848193267Sjkimthis support brings the disassembled code very close to the original ASL 2849193267Sjkimsource code and helps eliminate run-time errors when the disassembled code 2850193267Sjkimis modified (and recompiled) in such a way as to invalidate the original 2851193267Sjkimfixed offsets. 2852167802Sjkim 2853193267SjkimImplemented support for a Descriptor Name as the last parameter to the ASL 2854193267SjkimRegister() macro. This parameter was inadvertently left out of the ACPI 2855193267Sjkimspecification, and will be added for ACPI 3.0b. 2856167802Sjkim 2857193267SjkimFixed a problem where the use of the "_OSI" string (versus the full path 2858193267Sjkim"\_OSI") caused an internal compiler error. ("No back ptr to op") 2859167802Sjkim 2860193267SjkimFixed a problem with the error message that occurs when an invalid string is 2861193267Sjkimused for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 2862193267SjkimThe correct message is now displayed. 2863167802Sjkim 2864167802Sjkim---------------------------------------- 2865167802Sjkim17 February 2006. Summary of changes for version 20060217: 2866167802Sjkim 2867167802Sjkim1) ACPI CA Core Subsystem: 2868167802Sjkim 2869193267SjkimImplemented a change to the IndexField support to match the behavior of the 2870193267SjkimMicrosoft AML interpreter. The value written to the Index register is now a 2871193267Sjkimbyte offset, no longer an index based upon the width of the Data register. 2872193267SjkimThis should fix IndexField problems seen on some machines where the Data 2873193267Sjkimregister is not exactly one byte wide. The ACPI specification will be 2874193267Sjkimclarified on this point. 2875167802Sjkim 2876193267SjkimFixed a problem where several resource descriptor types could overrun the 2877193267Sjkiminternal descriptor buffer due to size miscalculation: VendorShort, 2878193267SjkimVendorLong, and Interrupt. This was noticed on IA64 machines, but could 2879193267Sjkimaffect all platforms. 2880167802Sjkim 2881193267SjkimFixed a problem where individual resource descriptors were misaligned within 2882193267Sjkimthe internal buffer, causing alignment faults on IA64 platforms. 2883167802Sjkim 2884193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 2885193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2886193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 2887193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 2888193267Sjkimvalues will vary depending on the efficiency of the compiler and the 2889193267Sjkimcompiler options used during generation. 2890167802Sjkim 2891167802Sjkim Previous Release: 2892167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2893167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2894167802Sjkim Current Release: 2895167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 2896167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2897167802Sjkim 2898167802Sjkim 2899167802Sjkim2) iASL Compiler/Disassembler: 2900167802Sjkim 2901193267SjkimImplemented support for new reserved names: _WDG and _WED are Microsoft 2902193267Sjkimextensions for Windows Instrumentation Management, _TDL is a new ACPI- 2903193267Sjkimdefined method (Throttling Depth Limit.) 2904167802Sjkim 2905193267SjkimFixed a problem where a zero-length VendorShort or VendorLong resource 2906193267Sjkimdescriptor was incorrectly emitted as a descriptor of length one. 2907167802Sjkim 2908167802Sjkim---------------------------------------- 2909167802Sjkim10 February 2006. Summary of changes for version 20060210: 2910167802Sjkim 2911167802Sjkim1) ACPI CA Core Subsystem: 2912167802Sjkim 2913193267SjkimRemoved a couple of extraneous ACPI_ERROR messages that appeared during 2914193267Sjkimnormal execution. These became apparent after the conversion from 2915193267SjkimACPI_DEBUG_PRINT. 2916167802Sjkim 2917193267SjkimFixed a problem where the CreateField operator could hang if the BitIndex or 2918193267SjkimNumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 2919167802Sjkim 2920193267SjkimFixed a problem where a DeRefOf operation on a buffer object incorrectly 2921193267Sjkimfailed with an exception. This also fixes a couple of related RefOf and 2922193267SjkimDeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 2923167802Sjkim 2924193267SjkimFixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 2925193267SjkimAE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 2926193267Sjkim5480) 2927167802Sjkim 2928193267SjkimImplemented a memory cleanup at the end of the execution of each iteration 2929193267Sjkimof an AML While() loop, preventing the accumulation of outstanding objects. 2930193267Sjkim(Valery Podrezov, BZ 5427) 2931167802Sjkim 2932193267SjkimEliminated a chunk of duplicate code in the object resolution code. (Valery 2933193267SjkimPodrezov, BZ 5336) 2934167802Sjkim 2935167802SjkimFixed several warnings during the 64-bit code generation. 2936167802Sjkim 2937193267SjkimThe AcpiSrc source code conversion tool now inserts one line of whitespace 2938193267Sjkimafter an if() statement that is followed immediately by a comment, improving 2939193267Sjkimreadability of the Linux code. 2940167802Sjkim 2941193267SjkimCode and Data Size: The current and previous library sizes for the core 2942193267Sjkimsubsystem are shown below. These are the code and data sizes for the 2943193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2944193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 2945193267Sjkimcode includes the debug output trace mechanism and has a much larger code 2946193267Sjkimand data size. Note that these values will vary depending on the efficiency 2947193267Sjkimof the compiler and the compiler options used during generation. 2948167802Sjkim 2949167802Sjkim Previous Release: 2950167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 2951167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 2952167802Sjkim Current Release: 2953167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2954167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2955167802Sjkim 2956167802Sjkim 2957167802Sjkim2) iASL Compiler/Disassembler: 2958167802Sjkim 2959193267SjkimFixed a problem with the disassembly of a BankField operator with a complex 2960193267Sjkimexpression for the BankValue parameter. 2961167802Sjkim 2962167802Sjkim---------------------------------------- 2963167802Sjkim27 January 2006. Summary of changes for version 20060127: 2964167802Sjkim 2965167802Sjkim1) ACPI CA Core Subsystem: 2966167802Sjkim 2967193267SjkimImplemented support in the Resource Manager to allow unresolved namestring 2968193267Sjkimreferences within resource package objects for the _PRT method. This support 2969193267Sjkimis in addition to the previously implemented unresolved reference support 2970193267Sjkimwithin the AML parser. If the interpreter slack mode is enabled, these 2971193267Sjkimunresolved references will be passed through to the caller as a NULL package 2972167802Sjkimentry. 2973167802Sjkim 2974193267SjkimImplemented and deployed new macros and functions for error and warning 2975193267Sjkimmessages across the subsystem. These macros are simpler and generate less 2976193267Sjkimcode than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 2977193267SjkimACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 2978193267Sjkimmacros remain defined to allow ACPI drivers time to migrate to the new 2979193267Sjkimmacros. 2980167802Sjkim 2981193267SjkimImplemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 2982193267SjkimAcquire/Release Lock OSL interfaces. 2983167802Sjkim 2984193267SjkimFixed a problem where Alias ASL operators are sometimes not correctly 2985193267Sjkimresolved, in both the interpreter and the iASL compiler. 2986167802Sjkim 2987193267SjkimFixed several problems with the implementation of the ConcatenateResTemplate 2988193267SjkimASL operator. As per the ACPI specification, zero length buffers are now 2989193267Sjkimtreated as a single EndTag. One-length buffers always cause a fatal 2990193267Sjkimexception. Non-zero length buffers that do not end with a full 2-byte EndTag 2991167802Sjkimcause a fatal exception. 2992167802Sjkim 2993193267SjkimFixed a possible structure overwrite in the AcpiGetObjectInfo external 2994193267Sjkiminterface. (With assistance from Thomas Renninger) 2995167802Sjkim 2996193267SjkimCode and Data Size: The current and previous library sizes for the core 2997193267Sjkimsubsystem are shown below. These are the code and data sizes for the 2998193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2999193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3000193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3001193267Sjkimand data size. Note that these values will vary depending on the efficiency 3002193267Sjkimof the compiler and the compiler options used during generation. 3003167802Sjkim 3004167802Sjkim Previous Release: 3005167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 3006167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 3007167802Sjkim Current Release: 3008167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 3009167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 3010167802Sjkim 3011167802Sjkim 3012167802Sjkim2) iASL Compiler/Disassembler: 3013167802Sjkim 3014193267SjkimFixed an internal error that was generated for any forward references to ASL 3015193267SjkimAlias objects. 3016167802Sjkim 3017167802Sjkim---------------------------------------- 3018167802Sjkim13 January 2006. Summary of changes for version 20060113: 3019167802Sjkim 3020167802Sjkim1) ACPI CA Core Subsystem: 3021167802Sjkim 3022193267SjkimAdded 2006 copyright to all module headers and signons. This affects 3023193267Sjkimvirtually every file in the ACPICA core subsystem, iASL compiler, and the 3024193267Sjkimutilities. 3025193267Sjkim 3026193267SjkimEnhanced the ACPICA error reporting in order to simplify user migration to 3027193267Sjkimthe non-debug version of ACPICA. Replaced all instances of the 3028193267SjkimACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 3029193267Sjkimlevels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 3030193267Sjkimrespectively. This preserves all error and warning messages in the non-debug 3031193267Sjkimversion of the ACPICA code (this has been referred to as the "debug lite" 3032193267Sjkimoption.) Over 200 cases were converted to create a total of over 380 3033193267Sjkimerror/warning messages across the ACPICA code. This increases the code and 3034193267Sjkimdata size of the default non-debug version of the code somewhat (about 13K), 3035193267Sjkimbut all error/warning reporting may be disabled if desired (and code 3036193267Sjkimeliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 3037193267Sjkimconfiguration option. The size of the debug version of ACPICA remains about 3038193267Sjkimthe same. 3039167802Sjkim 3040193267SjkimFixed a memory leak within the AML Debugger "Set" command. One object was 3041193267Sjkimnot properly deleted for every successful invocation of the command. 3042167802Sjkim 3043193267SjkimCode and Data Size: The current and previous library sizes for the core 3044193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3045193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3046193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3047193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3048193267Sjkimand data size. Note that these values will vary depending on the efficiency 3049193267Sjkimof the compiler and the compiler options used during generation. 3050167802Sjkim 3051167802Sjkim Previous Release: 3052167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 3053167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 3054167802Sjkim Current Release: 3055167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 3056167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 3057167802Sjkim 3058167802Sjkim 3059167802Sjkim2) iASL Compiler/Disassembler: 3060167802Sjkim 3061193267SjkimThe compiler now officially supports the ACPI 3.0a specification that was 3062193267Sjkimreleased on December 30, 2005. (Specification is available at www.acpi.info) 3063167802Sjkim 3064167802Sjkim---------------------------------------- 3065167802Sjkim16 December 2005. Summary of changes for version 20051216: 3066167802Sjkim 3067167802Sjkim1) ACPI CA Core Subsystem: 3068167802Sjkim 3069193267SjkimImplemented optional support to allow unresolved names within ASL Package 3070193267Sjkimobjects. A null object is inserted in the package when a named reference 3071193267Sjkimcannot be located in the current namespace. Enabled via the interpreter 3072193267Sjkimslack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 3073193267Sjkimthat contain such code. 3074167802Sjkim 3075193267SjkimImplemented an optimization to the initialization sequence that can improve 3076193267Sjkimboot time. During ACPI device initialization, the _STA method is now run if 3077193267Sjkimand only if the _INI method exists. The _STA method is used to determine if 3078193267Sjkimthe device is present; An _INI can only be run if _STA returns present, but 3079193267Sjkimit is a waste of time to run the _STA method if the _INI does not exist. 3080167802Sjkim(Prototype and assistance from Dong Wei) 3081167802Sjkim 3082193267SjkimImplemented use of the C99 uintptr_t for the pointer casting macros if it is 3083193267Sjkimavailable in the current compiler. Otherwise, the default (void *) cast is 3084193267Sjkimused as before. 3085167802Sjkim 3086193267SjkimFixed some possible memory leaks found within the execution path of the 3087193267SjkimBreak, Continue, If, and CreateField operators. (Valery Podrezov) 3088167802Sjkim 3089193267SjkimFixed a problem introduced in the 20051202 release where an exception is 3090193267Sjkimgenerated during method execution if a control method attempts to declare 3091193267Sjkimanother method. 3092167802Sjkim 3093193267SjkimMoved resource descriptor string constants that are used by both the AML 3094193267Sjkimdisassembler and AML debugger to the common utilities directory so that 3095193267Sjkimthese components are independent. 3096167802Sjkim 3097193267SjkimImplemented support in the AcpiExec utility (-e switch) to globally ignore 3098193267Sjkimexceptions during control method execution (method is not aborted.) 3099167802Sjkim 3100193267SjkimAdded the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 3101193267Sjkimgeneration. 3102167802Sjkim 3103193267SjkimCode and Data Size: The current and previous library sizes for the core 3104193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3105193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3106193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3107193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3108193267Sjkimand data size. Note that these values will vary depending on the efficiency 3109193267Sjkimof the compiler and the compiler options used during generation. 3110167802Sjkim 3111167802Sjkim Previous Release: 3112167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3113167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3114167802Sjkim Current Release: 3115167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 3116167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 3117167802Sjkim 3118167802Sjkim 3119167802Sjkim2) iASL Compiler/Disassembler: 3120167802Sjkim 3121193267SjkimFixed a problem where a CPU stack overflow fault could occur if a recursive 3122193267Sjkimmethod call was made from within a Return statement. 3123167802Sjkim 3124167802Sjkim---------------------------------------- 3125167802Sjkim02 December 2005. Summary of changes for version 20051202: 3126167802Sjkim 3127167802Sjkim1) ACPI CA Core Subsystem: 3128167802Sjkim 3129193267SjkimModified the parsing of control methods to no longer create namespace 3130193267Sjkimobjects during the first pass of the parse. Objects are now created only 3131193267Sjkimduring the execute phase, at the moment the namespace creation operator is 3132193267Sjkimencountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 3133193267Sjkimshould eliminate ALREADY_EXISTS exceptions seen on some machines where 3134193267Sjkimreentrant control methods are protected by an AML mutex. The mutex will now 3135193267Sjkimcorrectly block multiple threads from attempting to create the same object 3136193267Sjkimmore than once. 3137167802Sjkim 3138193267SjkimIncreased the number of available Owner Ids for namespace object tracking 3139193267Sjkimfrom 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 3140193267Sjkimsome machines with a large number of ACPI tables (either static or dynamic). 3141167802Sjkim 3142193267SjkimFixed a problem with the AcpiExec utility where a fault could occur when the 3143193267Sjkim-b switch (batch mode) is used. 3144167802Sjkim 3145193267SjkimEnhanced the namespace dump routine to output the owner ID for each 3146193267Sjkimnamespace object. 3147167802Sjkim 3148193267SjkimCode and Data Size: The current and previous library sizes for the core 3149193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3150193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3151193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3152193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3153193267Sjkimand data size. Note that these values will vary depending on the efficiency 3154193267Sjkimof the compiler and the compiler options used during generation. 3155167802Sjkim 3156167802Sjkim Previous Release: 3157167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3158167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3159167802Sjkim Current Release: 3160167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3161167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3162167802Sjkim 3163167802Sjkim 3164167802Sjkim2) iASL Compiler/Disassembler: 3165167802Sjkim 3166193267SjkimFixed a parse error during compilation of certain Switch/Case constructs. To 3167193267Sjkimsimplify the parse, the grammar now allows for multiple Default statements 3168193267Sjkimand this error is now detected and flagged during the analysis phase. 3169167802Sjkim 3170193267SjkimDisassembler: The disassembly now includes the contents of the original 3171193267Sjkimtable header within a comment at the start of the file. This includes the 3172193267Sjkimname and version of the original ASL compiler. 3173167802Sjkim 3174167802Sjkim---------------------------------------- 3175167802Sjkim17 November 2005. Summary of changes for version 20051117: 3176167802Sjkim 3177167802Sjkim1) ACPI CA Core Subsystem: 3178167802Sjkim 3179193267SjkimFixed a problem in the AML parser where the method thread count could be 3180193267Sjkimdecremented below zero if any errors occurred during the method parse phase. 3181193267SjkimThis should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 3182193267SjkimThis also fixed a related regression with the mechanism that detects and 3183193267Sjkimcorrects methods that cannot properly handle reentrancy (related to the 3184193267Sjkimdeployment of the new OwnerId mechanism.) 3185167802Sjkim 3186193267SjkimEliminated the pre-parsing of control methods (to detect errors) during 3187193267Sjkimtable load. Related to the problem above, this was causing unwind issues if 3188193267Sjkimany errors occurred during the parse, and it seemed to be overkill. A table 3189193267Sjkimload should not be aborted if there are problems with any single control 3190193267Sjkimmethod, thus rendering this feature rather pointless. 3191167802Sjkim 3192193267SjkimFixed a problem with the new table-driven resource manager where an internal 3193193267Sjkimbuffer overflow could occur for small resource templates. 3194167802Sjkim 3195193267SjkimImplemented a new external interface, AcpiGetVendorResource. This interface 3196193267Sjkimwill find and return a vendor-defined resource descriptor within a _CRS or 3197193267Sjkim_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 3198167802Sjkim 3199193267SjkimRemoved the length limit (200) on string objects as per the upcoming ACPI 3200193267Sjkim3.0A specification. This affects the following areas of the interpreter: 1) 3201193267Sjkimany implicit conversion of a Buffer to a String, 2) a String object result 3202193267Sjkimof the ASL Concatentate operator, 3) the String object result of the ASL 3203193267SjkimToString operator. 3204167802Sjkim 3205193267SjkimFixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 3206193267Sjkimon a semaphore object would incorrectly timeout. This allows the 3207193267Sjkimmultithreading features of the AcpiExec utility to work properly under 3208193267SjkimWindows. 3209167802Sjkim 3210193267SjkimUpdated the Linux makefiles for the iASL compiler and AcpiExec to include 3211193267Sjkimthe recently added file named "utresrc.c". 3212167802Sjkim 3213193267SjkimCode and Data Size: The current and previous library sizes for the core 3214193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3215193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3216193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3217193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3218193267Sjkimand data size. Note that these values will vary depending on the efficiency 3219193267Sjkimof the compiler and the compiler options used during generation. 3220167802Sjkim 3221167802Sjkim Previous Release: 3222167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3223167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3224167802Sjkim Current Release: 3225167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3226167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3227167802Sjkim 3228167802Sjkim 3229167802Sjkim2) iASL Compiler/Disassembler: 3230167802Sjkim 3231193267SjkimRemoved the limit (200) on string objects as per the upcoming ACPI 3.0A 3232193267Sjkimspecification. For the iASL compiler, this means that string literals within 3233193267Sjkimthe source ASL can be of any length. 3234167802Sjkim 3235193267SjkimEnhanced the listing output to dump the AML code for resource descriptors 3236193267Sjkimimmediately after the ASL code for each descriptor, instead of in a block at 3237193267Sjkimthe end of the entire resource template. 3238167802Sjkim 3239193267SjkimEnhanced the compiler debug output to dump the entire original parse tree 3240193267Sjkimconstructed during the parse phase, before any transforms are applied to the 3241193267Sjkimtree. The transformed tree is dumped also. 3242167802Sjkim 3243167802Sjkim---------------------------------------- 3244167802Sjkim02 November 2005. Summary of changes for version 20051102: 3245167802Sjkim 3246167802Sjkim1) ACPI CA Core Subsystem: 3247167802Sjkim 3248193267SjkimModified the subsystem initialization sequence to improve GPE support. The 3249193267SjkimGPE initialization has been split into two parts in order to defer execution 3250193267Sjkimof the _PRW methods (Power Resources for Wake) until after the hardware is 3251193267Sjkimfully initialized and the SCI handler is installed. This allows the _PRW 3252193267Sjkimmethods to access fields protected by the Global Lock. This will fix systems 3253193267Sjkimwhere a NO_GLOBAL_LOCK exception has been seen during initialization. 3254167802Sjkim 3255193267SjkimConverted the ACPI internal object disassemble and display code within the 3256193267SjkimAML debugger to fully table-driven operation, reducing code size and 3257193267Sjkimincreasing maintainability. 3258167802Sjkim 3259193267SjkimFixed a regression with the ConcatenateResTemplate() ASL operator introduced 3260193267Sjkimin the 20051021 release. 3261167802Sjkim 3262193267SjkimImplemented support for "local" internal ACPI object types within the 3263193267Sjkimdebugger "Object" command and the AcpiWalkNamespace external interfaces. 3264193267SjkimThese local types include RegionFields, BankFields, IndexFields, Alias, and 3265193267Sjkimreference objects. 3266167802Sjkim 3267193267SjkimMoved common AML resource handling code into a new file, "utresrc.c". This 3268193267Sjkimcode is shared by both the Resource Manager and the AML Debugger. 3269167802Sjkim 3270193267SjkimCode and Data Size: The current and previous library sizes for the core 3271193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3272193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3273193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3274193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3275193267Sjkimand data size. Note that these values will vary depending on the efficiency 3276193267Sjkimof the compiler and the compiler options used during generation. 3277167802Sjkim 3278167802Sjkim Previous Release: 3279167802Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3280167802Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3281167802Sjkim Current Release: 3282167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3283167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3284167802Sjkim 3285167802Sjkim 3286167802Sjkim2) iASL Compiler/Disassembler: 3287167802Sjkim 3288193267SjkimFixed a problem with very large initializer lists (more than 4000 elements) 3289193267Sjkimfor both Buffer and Package objects where the parse stack could overflow. 3290167802Sjkim 3291193267SjkimEnhanced the pre-compile source code scan for non-ASCII characters to ignore 3292193267Sjkimcharacters within comment fields. The scan is now always performed and is no 3293193267Sjkimlonger optional, detecting invalid characters within a source file 3294193267Sjkimimmediately rather than during the parse phase or later. 3295167802Sjkim 3296193267SjkimEnhanced the ASL grammar definition to force early reductions on all list- 3297193267Sjkimstyle grammar elements so that the overall parse stack usage is greatly 3298193267Sjkimreduced. This should improve performance and reduce the possibility of parse 3299193267Sjkimstack overflow. 3300167802Sjkim 3301193267SjkimEliminated all reduce/reduce conflicts in the iASL parser generation. Also, 3302193267Sjkimwith the addition of a %expected statement, the compiler generates from 3303193267Sjkimsource with no warnings. 3304167802Sjkim 3305193267SjkimFixed a possible segment fault in the disassembler if the input filename 3306193267Sjkimdoes not contain a "dot" extension (Thomas Renninger). 3307167802Sjkim 3308167802Sjkim---------------------------------------- 3309151937Sjkim21 October 2005. Summary of changes for version 20051021: 3310151937Sjkim 3311151937Sjkim1) ACPI CA Core Subsystem: 3312151937Sjkim 3313193267SjkimImplemented support for the EM64T and other x86-64 processors. This 3314193267Sjkimessentially entails recognizing that these processors support non-aligned 3315193267Sjkimmemory transfers. Previously, all 64-bit processors were assumed to lack 3316193267Sjkimhardware support for non-aligned transfers. 3317151937Sjkim 3318193267SjkimCompleted conversion of the Resource Manager to nearly full table-driven 3319193267Sjkimoperation. Specifically, the resource conversion code (convert AML to 3320193267Sjkiminternal format and the reverse) and the debug code to dump internal 3321193267Sjkimresource descriptors are fully table-driven, reducing code and data size and 3322193267Sjkimimproving maintainability. 3323151937Sjkim 3324193267SjkimThe OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 3325193267Sjkimon 64-bit processors instead of a fixed 32-bit word. (With assistance from 3326193267SjkimAlexey Starikovskiy) 3327151937Sjkim 3328193267SjkimImplemented support within the resource conversion code for the Type- 3329193267SjkimSpecific byte within the various ACPI 3.0 *WordSpace macros. 3330151937Sjkim 3331193267SjkimFixed some issues within the resource conversion code for the type-specific 3332193267Sjkimflags for both Memory and I/O address resource descriptors. For Memory, 3333193267Sjkimimplemented support for the MTP and TTP flags. For I/O, split the TRS and 3334193267SjkimTTP flags into two separate fields. 3335151937Sjkim 3336193267SjkimCode and Data Size: The current and previous library sizes for the core 3337193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3338193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3339193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3340193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3341193267Sjkimand data size. Note that these values will vary depending on the efficiency 3342193267Sjkimof the compiler and the compiler options used during generation. 3343151937Sjkim 3344151937Sjkim Previous Release: 3345151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3346151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3347151937Sjkim Current Release: 3348151937Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3349151937Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3350151937Sjkim 3351151937Sjkim 3352167802Sjkim 3353151937Sjkim2) iASL Compiler/Disassembler: 3354151937Sjkim 3355193267SjkimRelaxed a compiler restriction that disallowed a ResourceIndex byte if the 3356193267Sjkimcorresponding ResourceSource string was not also present in a resource 3357193267Sjkimdescriptor declaration. This restriction caused problems with existing 3358193267SjkimAML/ASL code that includes the Index byte without the string. When such AML 3359193267Sjkimwas disassembled, it could not be compiled without modification. Further, 3360193267Sjkimthe modified code created a resource template with a different size than the 3361193267Sjkimoriginal, breaking code that used fixed offsets into the resource template 3362193267Sjkimbuffer. 3363151937Sjkim 3364193267SjkimRemoved a recent feature of the disassembler to ignore a lone ResourceIndex 3365193267Sjkimbyte. This byte is now emitted if present so that the exact AML can be 3366193267Sjkimreproduced when the disassembled code is recompiled. 3367151937Sjkim 3368193267SjkimImproved comments and text alignment for the resource descriptor code 3369193267Sjkimemitted by the disassembler. 3370151937Sjkim 3371193267SjkimImplemented disassembler support for the ACPI 3.0 AccessSize field within a 3372193267SjkimRegister() resource descriptor. 3373151937Sjkim 3374151937Sjkim---------------------------------------- 3375151937Sjkim30 September 2005. Summary of changes for version 20050930: 3376151937Sjkim 3377151937Sjkim1) ACPI CA Core Subsystem: 3378151937Sjkim 3379193267SjkimCompleted a major overhaul of the Resource Manager code - specifically, 3380193267Sjkimoptimizations in the area of the AML/internal resource conversion code. The 3381193267Sjkimcode has been optimized to simplify and eliminate duplicated code, CPU stack 3382193267Sjkimuse has been decreased by optimizing function parameters and local 3383193267Sjkimvariables, and naming conventions across the manager have been standardized 3384193267Sjkimfor clarity and ease of maintenance (this includes function, parameter, 3385193267Sjkimvariable, and struct/typedef names.) The update may force changes in some 3386193267Sjkimdriver code, depending on how resources are handled by the host OS. 3387151937Sjkim 3388193267SjkimAll Resource Manager dispatch and information tables have been moved to a 3389193267Sjkimsingle location for clarity and ease of maintenance. One new file was 3390193267Sjkimcreated, named "rsinfo.c". 3391151937Sjkim 3392193267SjkimThe ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 3393193267Sjkimguarantee that the argument is not evaluated twice, making them less prone 3394193267Sjkimto macro side-effects. However, since there exists the possibility of 3395193267Sjkimadditional stack use if a particular compiler cannot optimize them (such as 3396193267Sjkimin the debug generation case), the original macros are optionally available. 3397193267SjkimNote that some invocations of the return_VALUE macro may now cause size 3398193267Sjkimmismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 3399193267Sjkimeliminate these. (From Randy Dunlap) 3400151937Sjkim 3401193267SjkimImplemented a new mechanism to enable debug tracing for individual control 3402193267Sjkimmethods. A new external interface, AcpiDebugTrace, is provided to enable 3403193267Sjkimthis mechanism. The intent is to allow the host OS to easily enable and 3404193267Sjkimdisable tracing for problematic control methods. This interface can be 3405193267Sjkimeasily exposed to a user or debugger interface if desired. See the file 3406151937Sjkimpsxface.c for details. 3407151937Sjkim 3408193267SjkimAcpiUtCallocate will now return a valid pointer if a length of zero is 3409193267Sjkimspecified - a length of one is used and a warning is issued. This matches 3410193267Sjkimthe behavior of AcpiUtAllocate. 3411151937Sjkim 3412193267SjkimCode and Data Size: The current and previous library sizes for the core 3413193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3414193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3415193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3416193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3417193267Sjkimand data size. Note that these values will vary depending on the efficiency 3418193267Sjkimof the compiler and the compiler options used during generation. 3419151937Sjkim 3420151937Sjkim Previous Release: 3421151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3422151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3423151937Sjkim Current Release: 3424151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3425151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3426151937Sjkim 3427151937Sjkim 3428151937Sjkim2) iASL Compiler/Disassembler: 3429151937Sjkim 3430193267SjkimA remark is issued if the effective compile-time length of a package or 3431193267Sjkimbuffer is zero. Previously, this was a warning. 3432151937Sjkim 3433151937Sjkim---------------------------------------- 3434151937Sjkim16 September 2005. Summary of changes for version 20050916: 3435151937Sjkim 3436151937Sjkim1) ACPI CA Core Subsystem: 3437151937Sjkim 3438193267SjkimFixed a problem within the Resource Manager where support for the Generic 3439193267SjkimRegister descriptor was not fully implemented. This descriptor is now fully 3440193267Sjkimrecognized, parsed, disassembled, and displayed. 3441151937Sjkim 3442193267SjkimCompletely restructured the Resource Manager code to utilize table-driven 3443193267Sjkimdispatch and lookup, eliminating many of the large switch() statements. This 3444193267Sjkimreduces overall subsystem code size and code complexity. Affects the 3445193267Sjkimresource parsing and construction, disassembly, and debug dump output. 3446151937Sjkim 3447193267SjkimCleaned up and restructured the debug dump output for all resource 3448193267Sjkimdescriptors. Improved readability of the output and reduced code size. 3449151937Sjkim 3450193267SjkimFixed a problem where changes to internal data structures caused the 3451193267Sjkimoptional ACPI_MUTEX_DEBUG code to fail compilation if specified. 3452151937Sjkim 3453193267SjkimCode and Data Size: The current and previous library sizes for the core 3454193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3455193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3456193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3457193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3458193267Sjkimand data size. Note that these values will vary depending on the efficiency 3459193267Sjkimof the compiler and the compiler options used during generation. 3460151937Sjkim 3461151937Sjkim Previous Release: 3462151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3463151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3464151937Sjkim Current Release: 3465151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3466151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3467151937Sjkim 3468151937Sjkim 3469151937Sjkim2) iASL Compiler/Disassembler: 3470151937Sjkim 3471193267SjkimUpdated the disassembler to automatically insert an EndDependentFn() macro 3472193267Sjkiminto the ASL stream if this macro is missing in the original AML code, 3473193267Sjkimsimplifying compilation of the resulting ASL module. 3474151937Sjkim 3475193267SjkimFixed a problem in the disassembler where a disassembled ResourceSource 3476193267Sjkimstring (within a large resource descriptor) was not surrounded by quotes and 3477193267Sjkimnot followed by a comma, causing errors when the resulting ASL module was 3478193267Sjkimcompiled. Also, escape sequences within a ResourceSource string are now 3479193267Sjkimhandled correctly (especially "\\") 3480151937Sjkim 3481151937Sjkim---------------------------------------- 3482151937Sjkim02 September 2005. Summary of changes for version 20050902: 3483151937Sjkim 3484151937Sjkim1) ACPI CA Core Subsystem: 3485151937Sjkim 3486193267SjkimFixed a problem with the internal Owner ID allocation and deallocation 3487193267Sjkimmechanisms for control method execution and recursive method invocation. 3488193267SjkimThis should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 3489193267Sjkimmessages seen on some systems. Recursive method invocation depth is 3490193267Sjkimcurrently limited to 255. (Alexey Starikovskiy) 3491151937Sjkim 3492193267SjkimCompletely eliminated all vestiges of support for the "module-level 3493193267Sjkimexecutable code" until this support is fully implemented and debugged. This 3494193267Sjkimshould eliminate the NO_RETURN_VALUE exceptions seen during table load on 3495193267Sjkimsome systems that invoke this support. 3496151937Sjkim 3497193267SjkimFixed a problem within the resource manager code where the transaction flags 3498193267Sjkimfor a 64-bit address descriptor were handled incorrectly in the type- 3499193267Sjkimspecific flag byte. 3500151937Sjkim 3501193267SjkimConsolidated duplicate code within the address descriptor resource manager 3502193267Sjkimcode, reducing overall subsystem code size. 3503151937Sjkim 3504193267SjkimFixed a fault when using the AML debugger "disassemble" command to 3505193267Sjkimdisassemble individual control methods. 3506151937Sjkim 3507193267SjkimRemoved references to the "release_current" directory within the Unix 3508193267Sjkimrelease package. 3509151937Sjkim 3510193267SjkimCode and Data Size: The current and previous core subsystem library sizes 3511193267Sjkimare shown below. These are the code and data sizes for the acpica.lib 3512193267Sjkimproduced by the Microsoft Visual C++ 6.0 compiler. These values do not 3513193267Sjkiminclude any ACPI driver or OSPM code. The debug version of the code includes 3514193267Sjkimthe debug output trace mechanism and has a much larger code and data size. 3515193267SjkimNote that these values will vary depending on the efficiency of the compiler 3516193267Sjkimand the compiler options used during generation. 3517151937Sjkim 3518151937Sjkim Previous Release: 3519151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3520151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3521151937Sjkim Current Release: 3522151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3523151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3524151937Sjkim 3525151937Sjkim 3526151937Sjkim2) iASL Compiler/Disassembler: 3527151937Sjkim 3528193267SjkimImplemented an error check for illegal duplicate values in the interrupt and 3529193267Sjkimdma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 3530193267SjkimInterrupt(). 3531151937Sjkim 3532193267SjkimImplemented error checking for the Irq() and IrqNoFlags() macros to detect 3533193267Sjkimtoo many values in the interrupt list (16 max) and invalid values in the 3534193267Sjkimlist (range 0 - 15) 3535151937Sjkim 3536193267SjkimThe maximum length string literal within an ASL file is now restricted to 3537193267Sjkim200 characters as per the ACPI specification. 3538151937Sjkim 3539193267SjkimFixed a fault when using the -ln option (generate namespace listing). 3540151937Sjkim 3541193267SjkimImplemented an error check to determine if a DescriptorName within a 3542193267Sjkimresource descriptor has already been used within the current scope. 3543151937Sjkim 3544151937Sjkim---------------------------------------- 3545151937Sjkim15 August 2005. Summary of changes for version 20050815: 3546193267Sjkim 3547151937Sjkim1) ACPI CA Core Subsystem: 3548193267Sjkim 3549193267SjkimImplemented a full bytewise compare to determine if a table load request is 3550193267Sjkimattempting to load a duplicate table. The compare is performed if the table 3551193267Sjkimsignatures and table lengths match. This will allow different tables with 3552193267Sjkimthe same OEM Table ID and revision to be loaded - probably against the ACPI 3553193267Sjkimspecification, but discovered in the field nonetheless. 3554193267Sjkim 3555193267SjkimAdded the changes.txt logfile to each of the zipped release packages. 3556193267Sjkim 3557193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3558193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3559193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3560193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3561193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3562193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3563193267Sjkimthe compiler options used during generation. 3564193267Sjkim 3565151937Sjkim Previous Release: 3566151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3567151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3568151937Sjkim Current Release: 3569151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3570151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3571193267Sjkim 3572193267Sjkim 3573151937Sjkim2) iASL Compiler/Disassembler: 3574193267Sjkim 3575193267SjkimFixed a problem where incorrect AML code could be generated for Package 3576193267Sjkimobjects if optimization is disabled (via the -oa switch). 3577193267Sjkim 3578193267SjkimFixed a problem with where incorrect AML code is generated for variable- 3579193267Sjkimlength packages when the package length is not specified and the number of 3580193267Sjkiminitializer values is greater than 255. 3581193267Sjkim 3582151937Sjkim 3583151937Sjkim---------------------------------------- 3584151937Sjkim29 July 2005. Summary of changes for version 20050729: 3585151937Sjkim 3586151937Sjkim1) ACPI CA Core Subsystem: 3587151937Sjkim 3588193267SjkimImplemented support to ignore an attempt to install/load a particular ACPI 3589193267Sjkimtable more than once. Apparently there exists BIOS code that repeatedly 3590193267Sjkimattempts to load the same SSDT upon certain events. With assistance from 3591193267SjkimVenkatesh Pallipadi. 3592151937Sjkim 3593193267SjkimRestructured the main interface to the AML parser in order to correctly 3594193267Sjkimhandle all exceptional conditions. This will prevent leakage of the OwnerId 3595193267Sjkimresource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 3596193267Sjkimmachines. With assistance from Alexey Starikovskiy. 3597151937Sjkim 3598193267SjkimSupport for "module level code" has been disabled in this version due to a 3599193267Sjkimnumber of issues that have appeared on various machines. The support can be 3600193267Sjkimenabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 3601193267Sjkimcompilation. When the issues are fully resolved, the code will be enabled by 3602151937Sjkimdefault again. 3603151937Sjkim 3604193267SjkimModified the internal functions for debug print support to define the 3605193267SjkimFunctionName parameter as a (const char *) for compatibility with compiler 3606193267Sjkimbuilt-in macros such as __FUNCTION__, etc. 3607151937Sjkim 3608151937SjkimLinted the entire ACPICA source tree for both 32-bit and 64-bit. 3609151937Sjkim 3610193267SjkimImplemented support to display an object count summary for the AML Debugger 3611193267Sjkimcommands Object and Methods. 3612151937Sjkim 3613193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3614193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3615193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3616193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3617193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3618193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3619193267Sjkimthe compiler options used during generation. 3620151937Sjkim 3621151937Sjkim Previous Release: 3622151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3623151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3624151937Sjkim Current Release: 3625151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3626151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3627151937Sjkim 3628151937Sjkim 3629151937Sjkim2) iASL Compiler/Disassembler: 3630151937Sjkim 3631193267SjkimFixed a regression that appeared in the 20050708 version of the compiler 3632193267Sjkimwhere an error message was inadvertently emitted for invocations of the _OSI 3633193267Sjkimreserved control method. 3634151937Sjkim 3635151937Sjkim---------------------------------------- 3636151937Sjkim08 July 2005. Summary of changes for version 20050708: 3637151937Sjkim 3638151937Sjkim1) ACPI CA Core Subsystem: 3639151937Sjkim 3640193267SjkimThe use of the CPU stack in the debug version of the subsystem has been 3641193267Sjkimconsiderably reduced. Previously, a debug structure was declared in every 3642193267Sjkimfunction that used the debug macros. This structure has been removed in 3643193267Sjkimfavor of declaring the individual elements as parameters to the debug 3644193267Sjkimfunctions. This reduces the cumulative stack use during nested execution of 3645193267SjkimACPI function calls at the cost of a small increase in the code size of the 3646193267Sjkimdebug version of the subsystem. With assistance from Alexey Starikovskiy and 3647193267SjkimLen Brown. 3648151937Sjkim 3649193267SjkimAdded the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 3650193267Sjkimheaders to define a macro that will return the current function name at 3651193267Sjkimruntime (such as __FUNCTION__ or _func_, etc.) The function name is used by 3652193267Sjkimthe debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 3653193267Sjkimcompiler-dependent header, the function name is saved on the CPU stack (one 3654193267Sjkimpointer per function.) This mechanism is used because apparently there 3655193267Sjkimexists no standard ANSI-C defined macro that that returns the function name. 3656151937Sjkim 3657193267SjkimRedesigned and reimplemented the "Owner ID" mechanism used to track 3658193267Sjkimnamespace objects created/deleted by ACPI tables and control method 3659193267Sjkimexecution. A bitmap is now used to allocate and free the IDs, thus solving 3660193267Sjkimthe wraparound problem present in the previous implementation. The size of 3661193267Sjkimthe namespace node descriptor was reduced by 2 bytes as a result (Alexey 3662151937SjkimStarikovskiy). 3663151937Sjkim 3664193267SjkimRemoved the UINT32_BIT and UINT16_BIT types that were used for the bitfield 3665193267Sjkimflag definitions within the headers for the predefined ACPI tables. These 3666193267Sjkimhave been replaced by UINT8_BIT in order to increase the code portability of 3667193267Sjkimthe subsystem. If the use of UINT8 remains a problem, we may be forced to 3668193267Sjkimeliminate bitfields entirely because of a lack of portability. 3669151937Sjkim 3670193267SjkimEnhanced the performance of the AcpiUtUpdateObjectReference procedure. This 3671193267Sjkimis a frequently used function and this improvement increases the performance 3672193267Sjkimof the entire subsystem (Alexey Starikovskiy). 3673151937Sjkim 3674193267SjkimFixed several possible memory leaks and the inverse - premature object 3675193267Sjkimdeletion (Alexey Starikovskiy). 3676151937Sjkim 3677193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3678193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3679193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3680193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3681193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3682193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3683193267Sjkimthe compiler options used during generation. 3684151937Sjkim 3685151937Sjkim Previous Release: 3686151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3687151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3688151937Sjkim Current Release: 3689151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3690151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3691151937Sjkim 3692151937Sjkim---------------------------------------- 3693151937Sjkim24 June 2005. Summary of changes for version 20050624: 3694151937Sjkim 3695151937Sjkim1) ACPI CA Core Subsystem: 3696151937Sjkim 3697193267SjkimModified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 3698193267Sjkimthe host-defined cache object. This allows the OSL implementation to define 3699193267Sjkimand type this object in any manner desired, simplifying the OSL 3700193267Sjkimimplementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 3701193267SjkimLinux, and should be defined in the OS-specific header file for other 3702193267Sjkimoperating systems as required. 3703151937Sjkim 3704193267SjkimChanged the interface to AcpiOsAcquireObject to directly return the 3705193267Sjkimrequested object as the function return (instead of ACPI_STATUS.) This 3706193267Sjkimchange was made for performance reasons, since this is the purpose of the 3707193267Sjkiminterface in the first place. AcpiOsAcquireObject is now similar to the 3708193267SjkimAcpiOsAllocate interface. 3709151937Sjkim 3710193267SjkimImplemented a new AML debugger command named Businfo. This command displays 3711193267Sjkiminformation about all devices that have an associate _PRT object. The _ADR, 3712193267Sjkim_HID, _UID, and _CID are displayed for these devices. 3713151937Sjkim 3714193267SjkimModified the initialization sequence in AcpiInitializeSubsystem to call the 3715193267SjkimOSL interface AcpiOslInitialize first, before any local initialization. This 3716193267Sjkimchange was required because the global initialization now calls OSL 3717193267Sjkiminterfaces. 3718151937Sjkim 3719193267SjkimEnhanced the Dump command to display the entire contents of Package objects 3720193267Sjkim(including all sub-objects and their values.) 3721151937Sjkim 3722193267SjkimRestructured the code base to split some files because of size and/or 3723193267Sjkimbecause the code logically belonged in a separate file. New files are listed 3724193267Sjkimbelow. All makefiles and project files included in the ACPI CA release have 3725193267Sjkimbeen updated. 3726151937Sjkim utilities/utcache.c /* Local cache interfaces */ 3727151937Sjkim utilities/utmutex.c /* Local mutex support */ 3728151937Sjkim utilities/utstate.c /* State object support */ 3729151937Sjkim interpreter/parser/psloop.c /* Main AML parse loop */ 3730151937Sjkim 3731193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3732193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3733193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3734193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3735193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3736193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3737193267Sjkimthe compiler options used during generation. 3738151937Sjkim 3739151937Sjkim Previous Release: 3740151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 3741151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 3742151937Sjkim Current Release: 3743151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3744151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3745151937Sjkim 3746151937Sjkim 3747151937Sjkim2) iASL Compiler/Disassembler: 3748151937Sjkim 3749193267SjkimFixed a regression introduced in version 20050513 where the use of a Package 3750193267Sjkimobject within a Case() statement caused a compile time exception. The 3751193267Sjkimoriginal behavior has been restored (a Match() operator is emitted.) 3752151937Sjkim 3753151937Sjkim---------------------------------------- 3754151937Sjkim17 June 2005. Summary of changes for version 20050617: 3755151937Sjkim 3756151937Sjkim1) ACPI CA Core Subsystem: 3757151937Sjkim 3758193267SjkimMoved the object cache operations into the OS interface layer (OSL) to allow 3759193267Sjkimthe host OS to handle these operations if desired (for example, the Linux 3760193267SjkimOSL will invoke the slab allocator). This support is optional; the compile 3761193267Sjkimtime define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 3762193267Sjkimcode in the ACPI CA core. The new OSL interfaces are shown below. See 3763193267Sjkimutalloc.c for an example implementation, and acpiosxf.h for the exact 3764193267Sjkiminterface definitions. With assistance from Alexey Starikovskiy. 3765151937Sjkim AcpiOsCreateCache 3766151937Sjkim AcpiOsDeleteCache 3767151937Sjkim AcpiOsPurgeCache 3768151937Sjkim AcpiOsAcquireObject 3769151937Sjkim AcpiOsReleaseObject 3770151937Sjkim 3771193267SjkimModified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 3772193267Sjkimand restore a flags parameter. This fits better with many OS lock models. 3773193267SjkimNote: the current execution state (interrupt handler or not) is no longer 3774193267Sjkimpassed to these interfaces. If necessary, the OSL must determine this state 3775193267Sjkimby itself, a simple and fast operation. With assistance from Alexey 3776151937SjkimStarikovskiy. 3777151937Sjkim 3778193267SjkimFixed a problem in the ACPI table handling where a valid XSDT was assumed 3779193267Sjkimpresent if the revision of the RSDP was 2 or greater. According to the ACPI 3780193267Sjkimspecification, the XSDT is optional in all cases, and the table manager 3781193267Sjkimtherefore now checks for both an RSDP >=2 and a valid XSDT pointer. 3782193267SjkimOtherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 3783193267Sjkimonly the RSDT. 3784151937Sjkim 3785193267SjkimFixed an interpreter problem with the Mid() operator in the case of an input 3786193267Sjkimstring where the resulting output string is of zero length. It now correctly 3787193267Sjkimreturns a valid, null terminated string object instead of a string object 3788193267Sjkimwith a null pointer. 3789151937Sjkim 3790193267SjkimFixed a problem with the control method argument handling to allow a store 3791193267Sjkimto an Arg object that already contains an object of type Device. The Device 3792193267Sjkimobject is now correctly overwritten. Previously, an error was returned. 3793151937Sjkim 3794167802Sjkim 3795193267SjkimEnhanced the debugger Find command to emit object values in addition to the 3796193267Sjkimfound object pathnames. The output format is the same as the dump namespace 3797193267Sjkimcommand. 3798151937Sjkim 3799193267SjkimEnhanced the debugger Set command. It now has the ability to set the value 3800193267Sjkimof any Named integer object in the namespace (Previously, only method locals 3801193267Sjkimand args could be set.) 3802151937Sjkim 3803193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3804193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3805193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3806193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3807193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3808193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3809193267Sjkimthe compiler options used during generation. 3810151937Sjkim 3811151937Sjkim Previous Release: 3812151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 3813151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 3814151937Sjkim Current Release: 3815151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 3816151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 3817151937Sjkim 3818151937Sjkim 3819151937Sjkim2) iASL Compiler/Disassembler: 3820151937Sjkim 3821193267SjkimFixed a regression in the disassembler where if/else/while constructs were 3822193267Sjkimoutput incorrectly. This problem was introduced in the previous release 3823193267Sjkim(20050526). This problem also affected the single-step disassembly in the 3824193267Sjkimdebugger. 3825151937Sjkim 3826193267SjkimFixed a problem where compiling the reserved _OSI method would randomly (but 3827193267Sjkimrarely) produce compile errors. 3828151937Sjkim 3829193267SjkimEnhanced the disassembler to emit compilable code in the face of incorrect 3830193267SjkimAML resource descriptors. If the optional ResourceSourceIndex is present, 3831193267Sjkimbut the ResourceSource is not, do not emit the ResourceSourceIndex in the 3832193267Sjkimdisassembly. Otherwise, the resulting code cannot be compiled without 3833193267Sjkimerrors. 3834151937Sjkim 3835151937Sjkim---------------------------------------- 3836151937Sjkim26 May 2005. Summary of changes for version 20050526: 3837151937Sjkim 3838151937Sjkim1) ACPI CA Core Subsystem: 3839151937Sjkim 3840193267SjkimImplemented support to execute Type 1 and Type 2 AML opcodes appearing at 3841193267Sjkimthe module level (not within a control method.) These opcodes are executed 3842193267Sjkimexactly once at the time the table is loaded. This type of code was legal up 3843193267Sjkimuntil the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 3844193267Sjkimorder to provide backwards compatibility with earlier BIOS implementations. 3845193267SjkimThis eliminates the "Encountered executable code at module level" warning 3846193267Sjkimthat was previously generated upon detection of such code. 3847151937Sjkim 3848193267SjkimFixed a problem in the interpreter where an AE_NOT_FOUND exception could 3849193267Sjkiminadvertently be generated during the lookup of namespace objects in the 3850193267Sjkimsecond pass parse of ACPI tables and control methods. It appears that this 3851193267Sjkimproblem could occur during the resolution of forward references to namespace 3852193267Sjkimobjects. 3853151937Sjkim 3854193267SjkimAdded the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 3855193267Sjkimcorresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 3856193267Sjkimallows the deadlock detection debug code to be compiled out in the normal 3857193267Sjkimcase, improving mutex performance (and overall subsystem performance) 3858193267Sjkimconsiderably. 3859151937Sjkim 3860193267SjkimImplemented a handful of miscellaneous fixes for possible memory leaks on 3861193267Sjkimerror conditions and error handling control paths. These fixes were 3862193267Sjkimsuggested by FreeBSD and the Coverity Prevent source code analysis tool. 3863151937Sjkim 3864193267SjkimAdded a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 3865193267Sjkimto prevent a fault in this error case. 3866151937Sjkim 3867193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3868193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3869193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3870193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3871193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3872193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3873193267Sjkimthe compiler options used during generation. 3874151937Sjkim 3875151937Sjkim Previous Release: 3876151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3877151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3878151937Sjkim Current Release: 3879151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 3880151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 3881151937Sjkim 3882151937Sjkim 3883151937Sjkim2) iASL Compiler/Disassembler: 3884151937Sjkim 3885193267SjkimImplemented support to allow Type 1 and Type 2 ASL operators to appear at 3886193267Sjkimthe module level (not within a control method.) These operators will be 3887193267Sjkimexecuted once at the time the table is loaded. This type of code was legal 3888193267Sjkimup until the release of ACPI 2.0B (2002) and is now supported by the iASL 3889193267Sjkimcompiler in order to provide backwards compatibility with earlier BIOS ASL 3890193267Sjkimcode. 3891151937Sjkim 3892193267SjkimThe ACPI integer width (specified via the table revision ID or the -r 3893193267Sjkimoverride, 32 or 64 bits) is now used internally during compile-time constant 3894193267Sjkimfolding to ensure that constants are truncated to 32 bits if necessary. 3895193267SjkimPreviously, the revision ID value was only emitted in the AML table header. 3896151937Sjkim 3897193267SjkimAn error message is now generated for the Mutex and Method operators if the 3898193267SjkimSyncLevel parameter is outside the legal range of 0 through 15. 3899151937Sjkim 3900193267SjkimFixed a problem with the Method operator ParameterTypes list handling (ACPI 3901193267Sjkim3.0). Previously, more than 2 types or 2 arguments generated a syntax error. 3902193267SjkimThe actual underlying implementation of method argument typechecking is 3903193267Sjkimstill under development, however. 3904151937Sjkim 3905151937Sjkim---------------------------------------- 3906151937Sjkim13 May 2005. Summary of changes for version 20050513: 3907151937Sjkim 3908151937Sjkim1) ACPI CA Core Subsystem: 3909151937Sjkim 3910193267SjkimImplemented support for PCI Express root bridges -- added support for device 3911193267SjkimPNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 3912151937Sjkim 3913193267SjkimThe interpreter now automatically truncates incoming 64-bit constants to 32 3914193267Sjkimbits if currently executing out of a 32-bit ACPI table (Revision < 2). This 3915193267Sjkimalso affects the iASL compiler constant folding. (Note: as per below, the 3916193267SjkimiASL compiler no longer allows 64-bit constants within 32-bit tables.) 3917151937Sjkim 3918193267SjkimFixed a problem where string and buffer objects with "static" pointers 3919193267Sjkim(pointers to initialization data within an ACPI table) were not handled 3920193267Sjkimconsistently. The internal object copy operation now always copies the data 3921193267Sjkimto a newly allocated buffer, regardless of whether the source object is 3922193267Sjkimstatic or not. 3923151937Sjkim 3924193267SjkimFixed a problem with the FromBCD operator where an implicit result 3925193267Sjkimconversion was improperly performed while storing the result to the target 3926193267Sjkimoperand. Since this is an "explicit conversion" operator, the implicit 3927193267Sjkimconversion should never be performed on the output. 3928151937Sjkim 3929193267SjkimFixed a problem with the CopyObject operator where a copy to an existing 3930193267Sjkimnamed object did not always completely overwrite the existing object stored 3931193267Sjkimat name. Specifically, a buffer-to-buffer copy did not delete the existing 3932193267Sjkimbuffer. 3933151937Sjkim 3934193267SjkimReplaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 3935193267Sjkimstructs for consistency. 3936151937Sjkim 3937193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3938193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3939193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3940193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3941193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3942193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3943193267Sjkimthe compiler options used during generation. 3944151937Sjkim 3945151937Sjkim Previous Release: 3946151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3947151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3948151937Sjkim Current Release: (Same sizes) 3949151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3950151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3951151937Sjkim 3952151937Sjkim 3953151937Sjkim2) iASL Compiler/Disassembler: 3954151937Sjkim 3955193267SjkimThe compiler now emits a warning if an attempt is made to generate a 64-bit 3956193267Sjkiminteger constant from within a 32-bit ACPI table (Revision < 2). The integer 3957193267Sjkimis truncated to 32 bits. 3958151937Sjkim 3959193267SjkimFixed a problem with large package objects: if the static length of the 3960193267Sjkimpackage is greater than 255, the "variable length package" opcode is 3961193267Sjkimemitted. Previously, this caused an error. This requires an update to the 3962193267SjkimACPI spec, since it currently (incorrectly) states that packages larger than 3963193267Sjkim255 elements are not allowed. 3964151937Sjkim 3965193267SjkimThe disassembler now correctly handles variable length packages and packages 3966193267Sjkimlarger than 255 elements. 3967151937Sjkim 3968151937Sjkim---------------------------------------- 3969151937Sjkim08 April 2005. Summary of changes for version 20050408: 3970151937Sjkim 3971151937Sjkim1) ACPI CA Core Subsystem: 3972151937Sjkim 3973193267SjkimFixed three cases in the interpreter where an "index" argument to an ASL 3974193267Sjkimfunction was still (internally) 32 bits instead of the required 64 bits. 3975193267SjkimThis was the Index argument to the Index, Mid, and Match operators. 3976151937Sjkim 3977193267SjkimThe "strupr" function is now permanently local (AcpiUtStrupr), since this is 3978193267Sjkimnot a POSIX-defined function and not present in most kernel-level C 3979193267Sjkimlibraries. All references to the C library strupr function have been removed 3980193267Sjkimfrom the headers. 3981151937Sjkim 3982193267SjkimCompleted the deployment of static functions/prototypes. All prototypes with 3983193267Sjkimthe static attribute have been moved from the headers to the owning C file. 3984151937Sjkim 3985193267SjkimImplemented an extract option (-e) for the AcpiBin utility (AML binary 3986193267Sjkimutility). This option allows the utility to extract individual ACPI tables 3987193267Sjkimfrom the output of AcpiDmp. It provides the same functionality of the 3988193267Sjkimacpixtract.pl perl script without the worry of setting the correct perl 3989193267Sjkimoptions. AcpiBin runs on Windows and has not yet been generated/validated in 3990193267Sjkimthe Linux/Unix environment (but should be soon). 3991193267Sjkim 3992193267SjkimUpdated and fixed the table dump option for AcpiBin (-d). This option 3993193267Sjkimconverts a single ACPI table to a hex/ascii file, similar to the output of 3994193267SjkimAcpiDmp. 3995151937Sjkim 3996193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3997193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3998193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3999193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4000193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4001193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4002193267Sjkimthe compiler options used during generation. 4003151937Sjkim 4004151937Sjkim Previous Release: 4005151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 4006151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 4007151937Sjkim Current Release: 4008151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4009151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4010151937Sjkim 4011151937Sjkim 4012151937Sjkim2) iASL Compiler/Disassembler: 4013151937Sjkim 4014193267SjkimDisassembler fix: Added a check to ensure that the table length found in the 4015193267SjkimACPI table header within the input file is not longer than the actual input 4016193267Sjkimfile size. This indicates some kind of file or table corruption. 4017151937Sjkim 4018151937Sjkim---------------------------------------- 4019151937Sjkim29 March 2005. Summary of changes for version 20050329: 4020151937Sjkim 4021151937Sjkim1) ACPI CA Core Subsystem: 4022151937Sjkim 4023193267SjkimAn error is now generated if an attempt is made to create a Buffer Field of 4024193267Sjkimlength zero (A CreateField with a length operand of zero.) 4025151937Sjkim 4026193267SjkimThe interpreter now issues a warning whenever executable code at the module 4027193267Sjkimlevel is detected during ACPI table load. This will give some idea of the 4028193267Sjkimprevalence of this type of code. 4029151937Sjkim 4030193267SjkimImplemented support for references to named objects (other than control 4031193267Sjkimmethods) within package objects. 4032151937Sjkim 4033193267SjkimEnhanced package object output for the debug object. Package objects are now 4034193267Sjkimcompletely dumped, showing all elements. 4035151937Sjkim 4036193267SjkimEnhanced miscellaneous object output for the debug object. Any object can 4037193267Sjkimnow be written to the debug object (for example, a device object can be 4038193267Sjkimwritten, and the type of the object will be displayed.) 4039151937Sjkim 4040193267SjkimThe "static" qualifier has been added to all local functions across both the 4041193267Sjkimcore subsystem and the iASL compiler. 4042151937Sjkim 4043193267SjkimThe number of "long" lines (> 80 chars) within the source has been 4044193267Sjkimsignificantly reduced, by about 1/3. 4045151937Sjkim 4046193267SjkimCleaned up all header files to ensure that all CA/iASL functions are 4047193267Sjkimprototyped (even static functions) and the formatting is consistent. 4048151937Sjkim 4049151937SjkimTwo new header files have been added, acopcode.h and acnames.h. 4050151937Sjkim 4051151937SjkimRemoved several obsolete functions that were no longer used. 4052151937Sjkim 4053193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4054193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4055193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4056193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4057193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4058193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4059193267Sjkimthe compiler options used during generation. 4060151937Sjkim 4061151937Sjkim Previous Release: 4062151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4063151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4064151937Sjkim Current Release: 4065151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 4066151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 4067151937Sjkim 4068151937Sjkim 4069167802Sjkim 4070151937Sjkim2) iASL Compiler/Disassembler: 4071151937Sjkim 4072193267SjkimFixed a problem with the resource descriptor generation/support. For the 4073193267SjkimResourceSourceIndex and the ResourceSource fields, both must be present, or 4074193267Sjkimboth must be not present - can't have one without the other. 4075151937Sjkim 4076193267SjkimThe compiler now returns non-zero from the main procedure if any errors have 4077193267Sjkimoccurred during the compilation. 4078151937Sjkim 4079151937Sjkim 4080151937Sjkim---------------------------------------- 4081151937Sjkim09 March 2005. Summary of changes for version 20050309: 4082151937Sjkim 4083151937Sjkim1) ACPI CA Core Subsystem: 4084151937Sjkim 4085193267SjkimThe string-to-buffer implicit conversion code has been modified again after 4086193267Sjkima change to the ACPI specification. In order to match the behavior of the 4087193267Sjkimother major ACPI implementation, the target buffer is no longer truncated if 4088193267Sjkimthe source string is smaller than an existing target buffer. This change 4089193267Sjkimrequires an update to the ACPI spec, and should eliminate the recent 4090151937SjkimAE_AML_BUFFER_LIMIT issues. 4091151937Sjkim 4092193267SjkimThe "implicit return" support was rewritten to a new algorithm that solves 4093193267Sjkimthe general case. Rather than attempt to determine when a method is about to 4094193267Sjkimexit, the result of every ASL operator is saved momentarily until the very 4095193267Sjkimnext ASL operator is executed. Therefore, no matter how the method exits, 4096193267Sjkimthere will always be a saved implicit return value. This feature is only 4097193267Sjkimenabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 4098193267SjkimAE_AML_NO_RETURN_VALUE errors when enabled. 4099151937Sjkim 4100193267SjkimImplemented implicit conversion support for the predicate (operand) of the 4101193267SjkimIf, Else, and While operators. String and Buffer arguments are automatically 4102193267Sjkimconverted to Integers. 4103151937Sjkim 4104193267SjkimChanged the string-to-integer conversion behavior to match the new ACPI 4105193267Sjkimerrata: "If no integer object exists, a new integer is created. The ASCII 4106193267Sjkimstring is interpreted as a hexadecimal constant. Each string character is 4107193267Sjkiminterpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 4108193267Sjkimwith the first character as the most significant digit, and ending with the 4109193267Sjkimfirst non-hexadecimal character or end-of-string." This means that the first 4110193267Sjkimnon-hex character terminates the conversion and this is the code that was 4111193267Sjkimchanged. 4112151937Sjkim 4113193267SjkimFixed a problem where the ObjectType operator would fail (fault) when used 4114193267Sjkimon an Index of a Package which pointed to a null package element. The 4115193267Sjkimoperator now properly returns zero (Uninitialized) in this case. 4116151937Sjkim 4117193267SjkimFixed a problem where the While operator used excessive memory by not 4118193267Sjkimproperly popping the result stack during execution. There was no memory leak 4119193267Sjkimafter execution, however. (Code provided by Valery Podrezov.) 4120151937Sjkim 4121193267SjkimFixed a problem where references to control methods within Package objects 4122193267Sjkimcaused the method to be invoked, instead of producing a reference object 4123193267Sjkimpointing to the method. 4124151937Sjkim 4125193267SjkimRestructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 4126193267Sjkimimprove performance and reduce code size. (Code provided by Alexey 4127193267SjkimStarikovskiy.) 4128151937Sjkim 4129193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4130193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4131193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4132193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4133193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4134193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4135193267Sjkimthe compiler options used during generation. 4136151937Sjkim 4137151937Sjkim Previous Release: 4138151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4139151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4140151937Sjkim Current Release: 4141151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4142151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4143151937Sjkim 4144151937Sjkim 4145151937Sjkim2) iASL Compiler/Disassembler: 4146151937Sjkim 4147193267SjkimFixed a problem with the Return operator with no arguments. Since the AML 4148193267Sjkimgrammar for the byte encoding requires an operand for the Return opcode, the 4149193267Sjkimcompiler now emits a Return(Zero) for this case. An ACPI specification 4150193267Sjkimupdate has been written for this case. 4151151937Sjkim 4152193267SjkimFor tables other than the DSDT, namepath optimization is automatically 4153193267Sjkimdisabled. This is because SSDTs can be loaded anywhere in the namespace, the 4154193267Sjkimcompiler has no knowledge of where, and thus cannot optimize namepaths. 4155151937Sjkim 4156193267SjkimAdded "ProcessorObj" to the ObjectTypeKeyword list. This object type was 4157193267Sjkiminadvertently omitted from the ACPI specification, and will require an 4158193267Sjkimupdate to the spec. 4159151937Sjkim 4160193267SjkimThe source file scan for ASCII characters is now optional (-a). This change 4161193267Sjkimwas made because some vendors place non-ascii characters within comments. 4162193267SjkimHowever, the scan is simply a brute-force byte compare to ensure all 4163193267Sjkimcharacters in the file are in the range 0x00 to 0x7F. 4164151937Sjkim 4165193267SjkimFixed a problem with the CondRefOf operator where the compiler was 4166193267Sjkiminappropriately checking for the existence of the target. Since the point of 4167193267Sjkimthe operator is to check for the existence of the target at run-time, the 4168193267Sjkimcompiler no longer checks for the target existence. 4169151937Sjkim 4170193267SjkimFixed a problem where errors generated from the internal AML interpreter 4171193267Sjkimduring constant folding were not handled properly, causing a fault. 4172151937Sjkim 4173193267SjkimFixed a problem with overly aggressive range checking for the Stall 4174193267Sjkimoperator. The valid range (max 255) is now only checked if the operand is of 4175193267Sjkimtype Integer. All other operand types cannot be statically checked. 4176151937Sjkim 4177193267SjkimFixed a problem where control method references within the RefOf, DeRefOf, 4178193267Sjkimand ObjectType operators were not treated properly. They are now treated as 4179193267Sjkimactual references, not method invocations. 4180151937Sjkim 4181193267SjkimFixed and enhanced the "list namespace" option (-ln). This option was broken 4182193267Sjkima number of releases ago. 4183151937Sjkim 4184193267SjkimImproved error handling for the Field, IndexField, and BankField operators. 4185193267SjkimThe compiler now cleanly reports and recovers from errors in the field 4186193267Sjkimcomponent (FieldUnit) list. 4187151937Sjkim 4188193267SjkimFixed a disassembler problem where the optional ResourceDescriptor fields 4189193267SjkimTRS and TTP were not always handled correctly. 4190151937Sjkim 4191151937SjkimDisassembler - Comments in output now use "//" instead of "/*" 4192151937Sjkim 4193151937Sjkim---------------------------------------- 4194151937Sjkim28 February 2005. Summary of changes for version 20050228: 4195151937Sjkim 4196151937Sjkim1) ACPI CA Core Subsystem: 4197151937Sjkim 4198193267SjkimFixed a problem where the result of an Index() operator (an object 4199193267Sjkimreference) must increment the reference count on the target object for the 4200193267Sjkimlife of the object reference. 4201151937Sjkim 4202193267SjkimImplemented AML Interpreter and Debugger support for the new ACPI 3.0 4203193267SjkimExtended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 4204193267Sjkimresource descriptors. 4205151937Sjkim 4206193267SjkimImplemented support in the _OSI method for the ACPI 3.0 "Extended Address 4207193267SjkimSpace Descriptor" string, indicating interpreter support for the descriptors 4208193267Sjkimabove. 4209151937Sjkim 4210151937SjkimImplemented header support for the new ACPI 3.0 FADT flag bits. 4211151937Sjkim 4212193267SjkimImplemented header support for the new ACPI 3.0 PCI Express bits for the PM1 4213193267Sjkimstatus/enable registers. 4214151937Sjkim 4215193267SjkimUpdated header support for the MADT processor local Apic struct and MADT 4216193267Sjkimplatform interrupt source struct for new ACPI 3.0 fields. 4217151937Sjkim 4218151937SjkimImplemented header support for the SRAT and SLIT ACPI tables. 4219151937Sjkim 4220193267SjkimImplemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 4221193267Sjkimat runtime. 4222151937Sjkim 4223193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4224193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4225193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4226193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4227193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4228193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4229193267Sjkimthe compiler options used during generation. 4230151937Sjkim 4231151937Sjkim Previous Release: 4232151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4233151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4234151937Sjkim Current Release: 4235151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4236151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4237151937Sjkim 4238151937Sjkim 4239151937Sjkim2) iASL Compiler/Disassembler: 4240151937Sjkim 4241193267SjkimFixed a problem with the internal 64-bit String-to-integer conversion with 4242193267Sjkimstrings less than two characters long. 4243151937Sjkim 4244193267SjkimFixed a problem with constant folding where the result of the Index() 4245193267Sjkimoperator can not be considered a constant. This means that Index() cannot be 4246193267Sjkima type3 opcode and this will require an update to the ACPI specification. 4247151937Sjkim 4248193267SjkimDisassembler: Implemented support for the TTP, MTP, and TRS resource 4249193267Sjkimdescriptor fields. These fields were inadvertently ignored and not output in 4250193267Sjkimthe disassembly of the resource descriptor. 4251151937Sjkim 4252151937Sjkim 4253151937Sjkim ---------------------------------------- 4254151937Sjkim11 February 2005. Summary of changes for version 20050211: 4255151937Sjkim 4256151937Sjkim1) ACPI CA Core Subsystem: 4257151937Sjkim 4258193267SjkimImplemented ACPI 3.0 support for implicit conversion within the Match() 4259193267Sjkimoperator. MatchObjects can now be of type integer, buffer, or string instead 4260193267Sjkimof just type integer. Package elements are implicitly converted to the type 4261193267Sjkimof the MatchObject. This change aligns the behavior of Match() with the 4262193267Sjkimbehavior of the other logical operators (LLess(), etc.) It also requires an 4263193267Sjkimerrata change to the ACPI specification as this support was intended for 4264193267SjkimACPI 3.0, but was inadvertently omitted. 4265151937Sjkim 4266193267SjkimFixed a problem with the internal implicit "to buffer" conversion. Strings 4267193267Sjkimthat are converted to buffers will cause buffer truncation if the string is 4268193267Sjkimsmaller than the target buffer. Integers that are converted to buffers will 4269193267Sjkimnot cause buffer truncation, only zero extension (both as per the ACPI 4270193267Sjkimspec.) The problem was introduced when code was added to truncate the 4271193267Sjkimbuffer, but this should not be performed in all cases, only the string case. 4272151937Sjkim 4273193267SjkimFixed a problem with the Buffer and Package operators where the interpreter 4274193267Sjkimwould get confused if two such operators were used as operands to an ASL 4275193267Sjkimoperator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 4276193267Sjkimstack was not being popped after the execution of these operators, resulting 4277193267Sjkimin an AE_NO_RETURN_VALUE exception. 4278151937Sjkim 4279193267SjkimFixed a problem with constructs of the form Store(Index(...),...). The 4280193267Sjkimreference object returned from Index was inadvertently resolved to an actual 4281193267Sjkimvalue. This problem was introduced in version 20050114 when the behavior of 4282193267SjkimStore() was modified to restrict the object types that can be used as the 4283151937Sjkimsource operand (to match the ACPI specification.) 4284151937Sjkim 4285193267SjkimReduced excessive stack use within the AcpiGetObjectInfo procedure. 4286151937Sjkim 4287193267SjkimAdded a fix to aclinux.h to allow generation of AcpiExec on Linux. 4288151937Sjkim 4289193267SjkimUpdated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 4290151937Sjkim 4291193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4292193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4293193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4294193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4295193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4296193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4297193267Sjkimthe compiler options used during generation. 4298151937Sjkim 4299151937Sjkim Previous Release: 4300151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4301151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4302151937Sjkim Current Release: 4303151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4304151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4305151937Sjkim 4306151937Sjkim 4307151937Sjkim2) iASL Compiler/Disassembler: 4308151937Sjkim 4309193267SjkimFixed a code generation problem in the constant folding optimization code 4310193267Sjkimwhere incorrect code was generated if a constant was reduced to a buffer 4311193267Sjkimobject (i.e., a reduced type 5 opcode.) 4312151937Sjkim 4313193267SjkimFixed a typechecking problem for the ToBuffer operator. Caused by an 4314193267Sjkimincorrect return type in the internal opcode information table. 4315151937Sjkim 4316151937Sjkim---------------------------------------- 4317151937Sjkim25 January 2005. Summary of changes for version 20050125: 4318151937Sjkim 4319151937Sjkim1) ACPI CA Core Subsystem: 4320151937Sjkim 4321193267SjkimFixed a recently introduced problem with the Global Lock where the 4322193267Sjkimunderlying semaphore was not created. This problem was introduced in 4323193267Sjkimversion 20050114, and caused an AE_AML_NO_OPERAND exception during an 4324193267SjkimAcquire() operation on _GL. 4325151937Sjkim 4326193267SjkimThe local object cache is now optional, and is disabled by default. Both 4327193267SjkimAcpiExec and the iASL compiler enable the cache because they run in user 4328193267Sjkimmode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 4329193267Sjkimto enable the local cache. 4330151937Sjkim 4331193267SjkimFixed an issue in the internal function AcpiUtEvaluateObject concerning the 4332193267Sjkimoptional "implicit return" support where an error was returned if no return 4333193267Sjkimobject was expected, but one was implicitly returned. AE_OK is now returned 4334193267Sjkimin this case and the implicitly returned object is deleted. 4335193267SjkimAcpiUtEvaluateObject is only occasionally used, and only to execute reserved 4336193267Sjkimmethods such as _STA and _INI where the return type is known up front. 4337151937Sjkim 4338193267SjkimFixed a few issues with the internal convert-to-integer code. It now returns 4339193267Sjkiman error if an attempt is made to convert a null string, a string of only 4340193267Sjkimblanks/tabs, or a zero-length buffer. This affects both implicit conversion 4341193267Sjkimand explicit conversion via the ToInteger() operator. 4342151937Sjkim 4343193267SjkimThe internal debug code in AcpiUtAcquireMutex has been commented out. It is 4344193267Sjkimnot needed for normal operation and should increase the performance of the 4345193267Sjkimentire subsystem. The code remains in case it is needed for debug purposes 4346193267Sjkimagain. 4347151937Sjkim 4348193267SjkimThe AcpiExec source and makefile are included in the Unix/Linux package for 4349193267Sjkimthe first time. 4350151937Sjkim 4351193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4352193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4353193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4354193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4355193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4356193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4357193267Sjkimthe compiler options used during generation. 4358151937Sjkim 4359151937Sjkim Previous Release: 4360151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4361151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4362151937Sjkim Current Release: 4363151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4364151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4365151937Sjkim 4366151937Sjkim2) iASL Compiler/Disassembler: 4367151937Sjkim 4368193267SjkimSwitch/Case support: A warning is now issued if the type of the Switch value 4369193267Sjkimcannot be determined at compile time. For example, Switch(Arg0) will 4370193267Sjkimgenerate the warning, and the type is assumed to be an integer. As per the 4371193267SjkimACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 4372193267Sjkimwarning. 4373151937Sjkim 4374193267SjkimSwitch/Case support: Implemented support for buffer and string objects as 4375193267Sjkimthe switch value. This is an ACPI 3.0 feature, now that LEqual supports 4376193267Sjkimbuffers and strings. 4377151937Sjkim 4378193267SjkimSwitch/Case support: The emitted code for the LEqual() comparisons now uses 4379193267Sjkimthe switch value as the first operand, not the second. The case value is now 4380193267Sjkimthe second operand, and this allows the case value to be implicitly 4381193267Sjkimconverted to the type of the switch value, not the other way around. 4382151937Sjkim 4383193267SjkimSwitch/Case support: Temporary variables are now emitted immediately within 4384193267Sjkimthe control method, not at the global level. This means that there are now 4385193267Sjkim36 temps available per-method, not 36 temps per-module as was the case with 4386193267Sjkimthe earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 4387151937Sjkim 4388151937Sjkim---------------------------------------- 4389151937Sjkim14 January 2005. Summary of changes for version 20050114: 4390151937Sjkim 4391193267SjkimAdded 2005 copyright to all module headers. This affects every module in 4392193267Sjkimthe core subsystem, iASL compiler, and the utilities. 4393151937Sjkim 4394151937Sjkim1) ACPI CA Core Subsystem: 4395151937Sjkim 4396193267SjkimFixed an issue with the String-to-Buffer conversion code where the string 4397193267Sjkimnull terminator was not included in the buffer after conversion, but there 4398193267Sjkimis existing ASL that assumes the string null terminator is included. This is 4399193267Sjkimthe root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 4400193267Sjkimintroduced in the previous version when the code was updated to correctly 4401193267Sjkimset the converted buffer size as per the ACPI specification. The ACPI spec 4402193267Sjkimis ambiguous and will be updated to specify that the null terminator must be 4403193267Sjkimincluded in the converted buffer. This also affects the ToBuffer() ASL 4404193267Sjkimoperator. 4405151937Sjkim 4406193267SjkimFixed a problem with the Mid() ASL/AML operator where it did not work 4407193267Sjkimcorrectly on Buffer objects. Newly created sub-buffers were not being marked 4408193267Sjkimas initialized. 4409151937Sjkim 4410167802Sjkim 4411193267SjkimFixed a problem in AcpiTbFindTable where incorrect string compares were 4412193267Sjkimperformed on the OemId and OemTableId table header fields. These fields are 4413193267Sjkimnot null terminated, so strncmp is now used instead of strcmp. 4414151937Sjkim 4415193267SjkimImplemented a restriction on the Store() ASL/AML operator to align the 4416193267Sjkimbehavior with the ACPI specification. Previously, any object could be used 4417193267Sjkimas the source operand. Now, the only objects that may be used are Integers, 4418193267SjkimBuffers, Strings, Packages, Object References, and DDB Handles. If 4419193267Sjkimnecessary, the original behavior can be restored by enabling the 4420151937SjkimEnableInterpreterSlack flag. 4421151937Sjkim 4422193267SjkimEnhanced the optional "implicit return" support to allow an implicit return 4423193267Sjkimvalue from methods that are invoked externally via the AcpiEvaluateObject 4424193267Sjkiminterface. This enables implicit returns from the _STA and _INI methods, 4425193267Sjkimfor example. 4426151937Sjkim 4427193267SjkimChanged the Revision() ASL/AML operator to return the current version of the 4428193267SjkimAML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 4429193267Sjkimthe supported ACPI version (This is the function of the _REV method). 4430151937Sjkim 4431193267SjkimUpdated the _REV predefined method to return the currently supported version 4432193267Sjkimof ACPI, now 3. 4433151937Sjkim 4434151937SjkimImplemented batch mode option for the AcpiExec utility (-b). 4435151937Sjkim 4436193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4437193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4438193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4439193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4440193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4441193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4442193267Sjkimthe compiler options used during generation. 4443151937Sjkim 4444151937Sjkim Previous Release: 4445151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4446151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4447151937Sjkim Current Release: 4448151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4449151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4450151937Sjkim 4451151937Sjkim---------------------------------------- 4452151937Sjkim10 December 2004. Summary of changes for version 20041210: 4453151937Sjkim 4454193267SjkimACPI 3.0 support is nearing completion in both the iASL compiler and the 4455193267SjkimACPI CA core subsystem. 4456151937Sjkim 4457151937Sjkim1) ACPI CA Core Subsystem: 4458151937Sjkim 4459193267SjkimFixed a problem in the ToDecimalString operator where the resulting string 4460193267Sjkimlength was incorrectly calculated. The length is now calculated exactly, 4461193267Sjkimeliminating incorrect AE_STRING_LIMIT exceptions. 4462151937Sjkim 4463193267SjkimFixed a problem in the ToHexString operator to allow a maximum 200 character 4464193267Sjkimstring to be produced. 4465151937Sjkim 4466193267SjkimFixed a problem in the internal string-to-buffer and buffer-to-buffer copy 4467193267Sjkimroutine where the length of the resulting buffer was not truncated to the 4468193267Sjkimnew size (if the target buffer already existed). 4469151937Sjkim 4470193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4471193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4472193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4473193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4474193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4475193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4476193267Sjkimthe compiler options used during generation. 4477151937Sjkim 4478151937Sjkim Previous Release: 4479151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4480151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4481151937Sjkim Current Release: 4482151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4483151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4484151937Sjkim 4485151937Sjkim 4486151937Sjkim2) iASL Compiler/Disassembler: 4487151937Sjkim 4488193267SjkimImplemented the new ACPI 3.0 resource template macros - DWordSpace, 4489193267SjkimExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 4490193267SjkimIncludes support in the disassembler. 4491151937Sjkim 4492193267SjkimImplemented support for the new (ACPI 3.0) parameter to the Register macro, 4493193267SjkimAccessSize. 4494151937Sjkim 4495193267SjkimFixed a problem where the _HE resource name for the Interrupt macro was 4496193267Sjkimreferencing bit 0 instead of bit 1. 4497151937Sjkim 4498193267SjkimImplemented check for maximum 255 interrupts in the Interrupt macro. 4499151937Sjkim 4500193267SjkimFixed a problem with the predefined resource descriptor names where 4501193267Sjkimincorrect AML code was generated if the offset within the resource buffer 4502193267Sjkimwas 0 or 1. The optimizer shortened the AML code to a single byte opcode 4503193267Sjkimbut did not update the surrounding package lengths. 4504151937Sjkim 4505193267SjkimChanges to the Dma macro: All channels within the channel list must be in 4506193267Sjkimthe range 0-7. Maximum 8 channels can be specified. BusMaster operand is 4507193267Sjkimoptional (default is BusMaster). 4508151937Sjkim 4509193267SjkimImplemented check for maximum 7 data bytes for the VendorShort macro. 4510151937Sjkim 4511193267SjkimThe ReadWrite parameter is now optional for the Memory32 and similar macros. 4512151937Sjkim 4513151937Sjkim---------------------------------------- 4514151937Sjkim03 December 2004. Summary of changes for version 20041203: 4515151937Sjkim 4516151937Sjkim1) ACPI CA Core Subsystem: 4517151937Sjkim 4518193267SjkimThe low-level field insertion/extraction code (exfldio) has been completely 4519193267Sjkimrewritten to eliminate unnecessary complexity, bugs, and boundary 4520193267Sjkimconditions. 4521151937Sjkim 4522193267SjkimFixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 4523193267Sjkimoperators where the input operand could be inadvertently deleted if no 4524193267Sjkimconversion was necessary (e.g., if the input to ToInteger was an Integer 4525193267Sjkimobject.) 4526151937Sjkim 4527193267SjkimFixed a problem with the ToDecimalString and ToHexString where an incorrect 4528193267Sjkimexception code was returned if the resulting string would be > 200 chars. 4529193267SjkimAE_STRING_LIMIT is now returned. 4530151937Sjkim 4531193267SjkimFixed a problem with the Concatenate operator where AE_OK was always 4532193267Sjkimreturned, even if the operation failed. 4533151937Sjkim 4534193267SjkimFixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 4535193267Sjkimsemaphores to be allocated. 4536151937Sjkim 4537193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4538193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4539193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4540193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4541193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4542193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4543193267Sjkimthe compiler options used during generation. 4544151937Sjkim 4545151937Sjkim Previous Release: 4546151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4547151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4548151937Sjkim Current Release: 4549151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4550151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4551151937Sjkim 4552151937Sjkim 4553151937Sjkim2) iASL Compiler/Disassembler: 4554151937Sjkim 4555193267SjkimFixed typechecking for the ObjectType and SizeOf operators. Problem was 4556193267Sjkimrecently introduced in 20041119. 4557151937Sjkim 4558193267SjkimFixed a problem with the ToUUID macro where the upper nybble of each buffer 4559193267Sjkimbyte was inadvertently set to zero. 4560151937Sjkim 4561151937Sjkim---------------------------------------- 4562138287Smarks19 November 2004. Summary of changes for version 20041119: 4563138287Smarks 4564138287Smarks1) ACPI CA Core Subsystem: 4565138287Smarks 4566193267SjkimFixed a problem in the internal ConvertToInteger routine where new integers 4567193267Sjkimwere not truncated to 32 bits for 32-bit ACPI tables. This routine converts 4568193267Sjkimbuffers and strings to integers. 4569138287Smarks 4570193267SjkimImplemented support to store a value to an Index() on a String object. This 4571193267Sjkimis an ACPI 2.0 feature that had not yet been implemented. 4572138287Smarks 4573193267SjkimImplemented new behavior for storing objects to individual package elements 4574193267Sjkim(via the Index() operator). The previous behavior was to invoke the implicit 4575193267Sjkimconversion rules if an object was already present at the index. The new 4576193267Sjkimbehavior is to simply delete any existing object and directly store the new 4577193267Sjkimobject. Although the ACPI specification seems unclear on this subject, other 4578193267SjkimACPI implementations behave in this manner. (This is the root of the 4579193267SjkimAE_BAD_HEX_CONSTANT issue.) 4580138287Smarks 4581193267SjkimModified the RSDP memory scan mechanism to support the extended checksum for 4582193267SjkimACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 4583193267SjkimRSDP signature is found with a valid checksum. 4584138287Smarks 4585193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4586193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4587193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4588193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4589193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4590193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4591193267Sjkimthe compiler options used during generation. 4592138287Smarks 4593151937Sjkim Previous Release: 4594151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4595151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4596151937Sjkim Current Release: 4597151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4598151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4599138287Smarks 4600138287Smarks 4601138287Smarks2) iASL Compiler/Disassembler: 4602138287Smarks 4603138287SmarksFixed a missing semicolon in the aslcompiler.y file. 4604138287Smarks 4605138287Smarks---------------------------------------- 4606138287Smarks05 November 2004. Summary of changes for version 20041105: 4607138287Smarks 4608138287Smarks1) ACPI CA Core Subsystem: 4609138287Smarks 4610193267SjkimImplemented support for FADT revision 2. This was an interim table (between 4611193267SjkimACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 4612138287Smarks 4613193267SjkimImplemented optional support to allow uninitialized LocalX and ArgX 4614193267Sjkimvariables in a control method. The variables are initialized to an Integer 4615193267Sjkimobject with a value of zero. This support is enabled by setting the 4616193267SjkimAcpiGbl_EnableInterpreterSlack flag to TRUE. 4617138287Smarks 4618193267SjkimImplemented support for Integer objects for the SizeOf operator. Either 4 4619193267Sjkimor 8 is returned, depending on the current integer size (32-bit or 64-bit, 4620193267Sjkimdepending on the parent table revision). 4621138287Smarks 4622193267SjkimFixed a problem in the implementation of the SizeOf and ObjectType operators 4623193267Sjkimwhere the operand was resolved to a value too early, causing incorrect 4624193267Sjkimreturn values for some objects. 4625138287Smarks 4626138287SmarksFixed some possible memory leaks during exceptional conditions. 4627138287Smarks 4628193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4629193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4630193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4631193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4632193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4633193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4634193267Sjkimthe compiler options used during generation. 4635138287Smarks 4636138287Smarks Previous Release: 4637138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4638138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4639138287Smarks Current Release: 4640138287Smarks Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4641138287Smarks Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4642138287Smarks 4643138287Smarks 4644138287Smarks2) iASL Compiler/Disassembler: 4645138287Smarks 4646138287SmarksImplemented support for all ACPI 3.0 reserved names and methods. 4647138287Smarks 4648193267SjkimImplemented all ACPI 3.0 grammar elements in the front-end, including 4649193267Sjkimsupport for semicolons. 4650138287Smarks 4651138287SmarksImplemented the ACPI 3.0 Function() and ToUUID() macros 4652138287Smarks 4653193267SjkimFixed a problem in the disassembler where a Scope() operator would not be 4654193267Sjkimemitted properly if the target of the scope was in another table. 4655138287Smarks 4656138287Smarks---------------------------------------- 4657138287Smarks15 October 2004. Summary of changes for version 20041015: 4658138287Smarks 4659193267SjkimNote: ACPI CA is currently undergoing an in-depth and complete formal 4660193267Sjkimevaluation to test/verify the following areas. Other suggestions are 4661193267Sjkimwelcome. This will result in an increase in the frequency of releases and 4662193267Sjkimthe number of bug fixes in the next few months. 4663138287Smarks - Functional tests for all ASL/AML operators 4664138287Smarks - All implicit/explicit type conversions 4665138287Smarks - Bit fields and operation regions 4666138287Smarks - 64-bit math support and 32-bit-only "truncated" math support 4667138287Smarks - Exceptional conditions, both compiler and interpreter 4668138287Smarks - Dynamic object deletion and memory leaks 4669138287Smarks - ACPI 3.0 support when implemented 4670138287Smarks - External interfaces to the ACPI subsystem 4671138287Smarks 4672138287Smarks 4673138287Smarks1) ACPI CA Core Subsystem: 4674138287Smarks 4675193267SjkimFixed two alignment issues on 64-bit platforms - within debug statements in 4676193267SjkimAcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 4677193267Sjkimfield within the non-aligned ACPI generic address structure. 4678138287Smarks 4679193267SjkimFixed a problem in the Increment and Decrement operators where incorrect 4680193267Sjkimoperand resolution could result in the inadvertent modification of the 4681193267Sjkimoriginal integer when the integer is passed into another method as an 4682193267Sjkimargument and the arg is then incremented/decremented. 4683138287Smarks 4684193267SjkimFixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 4685193267SjkimBCD number were truncated during conversion. 4686138287Smarks 4687193267SjkimFixed a problem in the ToDecimal operator where the length of the resulting 4688193267Sjkimstring could be set incorrectly too long if the input operand was a Buffer 4689193267Sjkimobject. 4690138287Smarks 4691193267SjkimFixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 4692193267Sjkimwithin a buffer would prematurely terminate a compare between buffer 4693193267Sjkimobjects. 4694138287Smarks 4695193267SjkimAdded a check for string overflow (>200 characters as per the ACPI 4696193267Sjkimspecification) during the Concatenate operator with two string operands. 4697138287Smarks 4698193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4699193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4700193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4701193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4702193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4703193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4704193267Sjkimthe compiler options used during generation. 4705138287Smarks 4706138287Smarks Previous Release: 4707138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4708138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 4709138287Smarks Current Release: 4710138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4711138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4712138287Smarks 4713138287Smarks 4714167802Sjkim 4715138287Smarks2) iASL Compiler/Disassembler: 4716138287Smarks 4717193267SjkimAllow the use of the ObjectType operator on uninitialized Locals and Args 4718193267Sjkim(returns 0 as per the ACPI specification). 4719138287Smarks 4720193267SjkimFixed a problem where the compiler would fault if there was a syntax error 4721193267Sjkimin the FieldName of all of the various CreateXXXField operators. 4722138287Smarks 4723193267SjkimDisallow the use of lower case letters within the EISAID macro, as per the 4724193267SjkimACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 4725193267SjkimU is an uppercase letter and N is a hex digit. 4726138287Smarks 4727138287Smarks 4728138287Smarks---------------------------------------- 4729138287Smarks06 October 2004. Summary of changes for version 20041006: 4730138287Smarks 4731138287Smarks1) ACPI CA Core Subsystem: 4732138287Smarks 4733193267SjkimImplemented support for the ACPI 3.0 Timer operator. This ASL function 4734193267Sjkimimplements a 64-bit timer with 100 nanosecond granularity. 4735138287Smarks 4736193267SjkimDefined a new OSL interface, AcpiOsGetTimer. This interface is used to 4737193267Sjkimimplement the ACPI 3.0 Timer operator. This allows the host OS to implement 4738193267Sjkimthe timer with the best clock available. Also, it keeps the core subsystem 4739193267Sjkimout of the clock handling business, since the host OS (usually) performs 4740193267Sjkimthis function. 4741138287Smarks 4742193267SjkimFixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 4743193267Sjkimfunctions use a 64-bit address which is part of the packed ACPI Generic 4744193267SjkimAddress Structure. Since the structure is non-aligned, the alignment macros 4745193267Sjkimare now used to extract the address to a local variable before use. 4746138287Smarks 4747193267SjkimFixed a problem where the ToInteger operator assumed all input strings were 4748193267Sjkimhexadecimal. The operator now handles both decimal strings and hex strings 4749193267Sjkim(prefixed with "0x"). 4750138287Smarks 4751193267SjkimFixed a problem where the string length in the string object created as a 4752193267Sjkimresult of the internal ConvertToString procedure could be incorrect. This 4753193267Sjkimpotentially affected all implicit conversions and also the ToDecimalString 4754193267Sjkimand ToHexString operators. 4755138287Smarks 4756193267SjkimFixed two problems in the ToString operator. If the length parameter was 4757193267Sjkimzero, an incorrect string object was created and the value of the input 4758193267Sjkimlength parameter was inadvertently changed from zero to Ones. 4759138287Smarks 4760193267SjkimFixed a problem where the optional ResourceSource string in the ExtendedIRQ 4761193267Sjkimresource macro was ignored. 4762138287Smarks 4763193267SjkimSimplified the interfaces to the internal division functions, reducing code 4764193267Sjkimsize and complexity. 4765138287Smarks 4766193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4767193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4768193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4769193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4770193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4771193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4772193267Sjkimthe compiler options used during generation. 4773138287Smarks 4774138287Smarks Previous Release: 4775138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 4776138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 4777138287Smarks Current Release: 4778138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4779138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 4780138287Smarks 4781138287Smarks 4782138287Smarks2) iASL Compiler/Disassembler: 4783138287Smarks 4784138287SmarksImplemented support for the ACPI 3.0 Timer operator. 4785138287Smarks 4786193267SjkimFixed a problem where the Default() operator was inadvertently ignored in a 4787193267SjkimSwitch/Case block. This was a problem in the translation of the Switch 4788193267Sjkimstatement to If...Else pairs. 4789138287Smarks 4790193267SjkimAdded support to allow a standalone Return operator, with no parentheses (or 4791193267Sjkimoperands). 4792138287Smarks 4793193267SjkimFixed a problem with code generation for the ElseIf operator where the 4794193267Sjkimtranslated Else...If parse tree was improperly constructed leading to the 4795193267Sjkimloss of some code. 4796138287Smarks 4797138287Smarks---------------------------------------- 4798138287Smarks22 September 2004. Summary of changes for version 20040922: 4799138287Smarks 4800138287Smarks1) ACPI CA Core Subsystem: 4801138287Smarks 4802193267SjkimFixed a problem with the implementation of the LNot() operator where "Ones" 4803193267Sjkimwas not returned for the TRUE case. Changed the code to return Ones instead 4804193267Sjkimof (!Arg) which was usually 1. This change affects iASL constant folding for 4805193267Sjkimthis operator also. 4806138287Smarks 4807193267SjkimFixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 4808193267Sjkiminitialized properly -- Now zero the entire buffer in this case where the 4809193267Sjkimbuffer already exists. 4810138287Smarks 4811193267SjkimChanged the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 4812193267SjkimMilliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 4813193267Sjkimrelated code considerably. This will require changes/updates to all OS 4814193267Sjkiminterface layers (OSLs.) 4815138287Smarks 4816193267SjkimImplemented a new external interface, AcpiInstallExceptionHandler, to allow 4817193267Sjkima system exception handler to be installed. This handler is invoked upon any 4818193267Sjkimrun-time exception that occurs during control method execution. 4819138287Smarks 4820193267SjkimAdded support for the DSDT in AcpiTbFindTable. This allows the 4821138287SmarksDataTableRegion() operator to access the local copy of the DSDT. 4822138287Smarks 4823193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4824193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4825193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4826193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4827193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4828193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4829193267Sjkimthe compiler options used during generation. 4830138287Smarks 4831138287Smarks Previous Release: 4832138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 4833138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 4834138287Smarks Current Release: 4835138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 4836138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 4837138287Smarks 4838138287Smarks 4839138287Smarks2) iASL Compiler/Disassembler: 4840138287Smarks 4841193267SjkimFixed a problem with constant folding and the LNot operator. LNot was 4842193267Sjkimreturning 1 in the TRUE case, not Ones as per the ACPI specification. This 4843193267Sjkimcould result in the generation of an incorrect folded/reduced constant. 4844138287Smarks 4845193267SjkimEnd-Of-File is now allowed within a "//"-style comment. A parse error no 4846193267Sjkimlonger occurs if such a comment is at the very end of the input ASL source 4847193267Sjkimfile. 4848138287Smarks 4849193267SjkimImplemented the "-r" option to override the Revision in the table header. 4850193267SjkimThe initial use of this option will be to simplify the evaluation of the AML 4851193267Sjkiminterpreter by allowing a single ASL source module to be compiled for either 4852193267Sjkim32-bit or 64-bit integers. 4853138287Smarks 4854138287Smarks 4855138287Smarks---------------------------------------- 4856138287Smarks27 August 2004. Summary of changes for version 20040827: 4857138287Smarks 4858138287Smarks1) ACPI CA Core Subsystem: 4859138287Smarks 4860193267Sjkim- Implemented support for implicit object conversion in the non-numeric 4861193267Sjkimlogical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 4862193267SjkimLNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 4863193267Sjkimthe second operand is implicitly converted on the fly to match the type of 4864193267Sjkimthe first operand. For example: 4865138287Smarks 4866138287Smarks LEqual (Source1, Source2) 4867138287Smarks 4868193267SjkimSource1 and Source2 must each evaluate to an integer, a string, or a buffer. 4869193267SjkimThe data type of Source1 dictates the required type of Source2. Source2 is 4870193267Sjkimimplicitly converted if necessary to match the type of Source1. 4871138287Smarks 4872193267Sjkim- Updated and corrected the behavior of the string conversion support. The 4873193267Sjkimrules concerning conversion of buffers to strings (according to the ACPI 4874193267Sjkimspecification) are as follows: 4875138287Smarks 4876193267SjkimToDecimalString - explicit byte-wise conversion of buffer to string of 4877193267Sjkimdecimal values (0-255) separated by commas. ToHexString - explicit byte-wise 4878193267Sjkimconversion of buffer to string of hex values (0-FF) separated by commas. 4879193267SjkimToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 4880193267Sjkimcopy with no transform except NULL terminated. Any other implicit buffer-to- 4881193267Sjkimstring conversion - byte-wise conversion of buffer to string of hex values 4882193267Sjkim(0-FF) separated by spaces. 4883138287Smarks 4884138287Smarks- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 4885138287Smarks 4886193267Sjkim- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 4887193267Sjkimone byte too short in the case of a node in the root scope. This could 4888193267Sjkimcause a fault during debug output. 4889138287Smarks 4890193267Sjkim- Code and Data Size: Current and previous core subsystem library sizes are 4891193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4892193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4893193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4894193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4895193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4896193267Sjkimthe compiler options used during generation. 4897138287Smarks 4898138287Smarks Previous Release: 4899138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 4900138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 4901138287Smarks Current Release: 4902138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 4903138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 4904138287Smarks 4905138287Smarks 4906138287Smarks2) iASL Compiler/Disassembler: 4907138287Smarks 4908138287Smarks- Fixed a Linux generation error. 4909138287Smarks 4910138287Smarks 4911138287Smarks---------------------------------------- 4912138287Smarks16 August 2004. Summary of changes for version 20040816: 4913138287Smarks 4914138287Smarks1) ACPI CA Core Subsystem: 4915138287Smarks 4916193267SjkimDesigned and implemented support within the AML interpreter for the so- 4917193267Sjkimcalled "implicit return". This support returns the result of the last ASL 4918193267Sjkimoperation within a control method, in the absence of an explicit Return() 4919193267Sjkimoperator. A few machines depend on this behavior, even though it is not 4920193267Sjkimexplicitly supported by the ASL language. It is optional support that can 4921193267Sjkimbe enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 4922138287Smarks 4923193267SjkimRemoved support for the PCI_Config address space from the internal low level 4924193267Sjkimhardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 4925193267Sjkimsupport was not used internally, and would not work correctly anyway because 4926193267Sjkimthe PCI bus number and segment number were not supported. There are 4927193267Sjkimseparate interfaces for PCI configuration space access because of the unique 4928138287Smarksinterface. 4929138287Smarks 4930193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4931193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4932193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4933193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4934193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4935193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4936193267Sjkimthe compiler options used during generation. 4937138287Smarks 4938138287Smarks Previous Release: 4939138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4940138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 4941138287Smarks Current Release: 4942138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 4943138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 4944138287Smarks 4945138287Smarks 4946138287Smarks2) iASL Compiler/Disassembler: 4947138287Smarks 4948193267SjkimFixed a problem where constants in ASL expressions at the root level (not 4949193267Sjkimwithin a control method) could be inadvertently truncated during code 4950193267Sjkimgeneration. This problem was introduced in the 20040715 release. 4951138287Smarks 4952138287Smarks 4953138287Smarks---------------------------------------- 4954138287Smarks15 July 2004. Summary of changes for version 20040715: 4955138287Smarks 4956138287Smarks1) ACPI CA Core Subsystem: 4957138287Smarks 4958193267SjkimRestructured the internal HW GPE interfaces to pass/track the current state 4959193267Sjkimof interrupts (enabled/disabled) in order to avoid possible deadlock and 4960193267Sjkimincrease flexibility of the interfaces. 4961138287Smarks 4962193267SjkimImplemented a "lexicographical compare" for String and Buffer objects within 4963193267Sjkimthe logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 4964193267Sjkimas per further clarification to the ACPI specification. Behavior is similar 4965193267Sjkimto C library "strcmp". 4966138287Smarks 4967193267SjkimCompleted a major reduction in CPU stack use for the AcpiGetFirmwareTable 4968193267Sjkimexternal function. In the 32-bit non-debug case, the stack use has been 4969193267Sjkimreduced from 168 bytes to 32 bytes. 4970138287Smarks 4971193267SjkimDeployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 4972193267Sjkimwhose purpose is to allow the AML interpreter to forgive certain bad AML 4973193267Sjkimconstructs. Default setting is FALSE. 4974138287Smarks 4975193267SjkimImplemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 4976193267Sjkimsupport code. If enabled, it allows field access to go beyond the end of a 4977193267Sjkimregion definition if the field is within the region length rounded up to the 4978193267Sjkimnext access width boundary (a common coding error.) 4979138287Smarks 4980193267SjkimRenamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 4981193267SjkimACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 4982193267Sjkimsymbols are lowercased by the latest version of the AcpiSrc tool. 4983138287Smarks 4984193267SjkimThe prototypes for the PCI interfaces in acpiosxf.h have been updated to 4985193267Sjkimrename "Register" to simply "Reg" to prevent certain compilers from 4986193267Sjkimcomplaining. 4987138287Smarks 4988193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4989193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4990193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4991193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4992193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4993193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4994193267Sjkimthe compiler options used during generation. 4995138287Smarks 4996138287Smarks Previous Release: 4997138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4998138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 4999138287Smarks Current Release: 5000138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5001138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 5002138287Smarks 5003138287Smarks 5004138287Smarks2) iASL Compiler/Disassembler: 5005138287Smarks 5006193267SjkimImplemented full support for Package objects within the Case() operator. 5007193267SjkimNote: The Break() operator is currently not supported within Case blocks 5008193267Sjkim(TermLists) as there is some question about backward compatibility with ACPI 5009193267Sjkim1.0 interpreters. 5010138287Smarks 5011167802Sjkim 5012193267SjkimFixed a problem where complex terms were not supported properly within the 5013193267SjkimSwitch() operator. 5014138287Smarks 5015193267SjkimEliminated extraneous warning for compiler-emitted reserved names of the 5016193267Sjkimform "_T_x". (Used in Switch/Case operators.) 5017138287Smarks 5018193267SjkimEliminated optimization messages for "_T_x" objects and small constants 5019193267Sjkimwithin the DefinitionBlock operator. 5020138287Smarks 5021138287Smarks 5022138287Smarks---------------------------------------- 5023138287Smarks15 June 2004. Summary of changes for version 20040615: 5024138287Smarks 5025138287Smarks1) ACPI CA Core Subsystem: 5026138287Smarks 5027193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 5028193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 5029193267SjkimLLessEqual. 5030138287Smarks 5031193267SjkimAll directory names in the entire source package are lower case, as they 5032193267Sjkimwere in earlier releases. 5033138287Smarks 5034193267SjkimImplemented "Disassemble" command in the AML debugger that will disassemble 5035193267Sjkima single control method. 5036138287Smarks 5037193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5038193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5039193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5040193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5041193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5042193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5043193267Sjkimthe compiler options used during generation. 5044138287Smarks 5045138287Smarks Previous Release: 5046138287Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 5047138287Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 5048167802Sjkim 5049138287Smarks Current Release: 5050138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5051138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 5052138287Smarks 5053138287Smarks 5054138287Smarks2) iASL Compiler/Disassembler: 5055138287Smarks 5056193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 5057193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 5058193267SjkimLLessEqual. 5059138287Smarks 5060193267SjkimAll directory names in the entire source package are lower case, as they 5061193267Sjkimwere in earlier releases. 5062138287Smarks 5063193267SjkimFixed a fault when using the -g or -d<nofilename> options if the FADT was 5064193267Sjkimnot found. 5065138287Smarks 5066193267SjkimFixed an issue with the Windows version of the compiler where later versions 5067193267Sjkimof Windows place the FADT in the registry under the name "FADT" and not 5068193267Sjkim"FACP" as earlier versions did. This applies when using the -g or - 5069193267Sjkimd<nofilename> options. The compiler now looks for both strings as 5070193267Sjkimnecessary. 5071138287Smarks 5072193267SjkimFixed a problem with compiler namepath optimization where a namepath within 5073193267Sjkimthe Scope() operator could not be optimized if the namepath was a subpath of 5074193267Sjkimthe current scope path. 5075138287Smarks 5076138287Smarks---------------------------------------- 5077131440Smarks27 May 2004. Summary of changes for version 20040527: 5078131440Smarks 5079131440Smarks1) ACPI CA Core Subsystem: 5080131440Smarks 5081193267SjkimCompleted a new design and implementation for EBDA (Extended BIOS Data Area) 5082193267Sjkimsupport in the RSDP scan code. The original code improperly scanned for the 5083193267SjkimEBDA by simply scanning from memory location 0 to 0x400. The correct method 5084193267Sjkimis to first obtain the EBDA pointer from within the BIOS data area, then 5085193267Sjkimscan 1K of memory starting at the EBDA pointer. There appear to be few if 5086131440Smarksany machines that place the RSDP in the EBDA, however. 5087131440Smarks 5088193267SjkimIntegrated a fix for a possible fault during evaluation of BufferField 5089193267Sjkimarguments. Obsolete code that was causing the problem was removed. 5090131440Smarks 5091193267SjkimFound and fixed a problem in the Field Support Code where data could be 5092193267Sjkimcorrupted on a bit field read that starts on an aligned boundary but does 5093193267Sjkimnot end on an aligned boundary. Merged the read/write "datum length" 5094193267Sjkimcalculation code into a common procedure. 5095131440Smarks 5096131440SmarksRolled in a couple of changes to the FreeBSD-specific header. 5097131440Smarks 5098167802Sjkim 5099193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5100193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5101193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5102193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5103193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5104193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5105193267Sjkimthe compiler options used during generation. 5106131440Smarks 5107131440Smarks Previous Release: 5108131440Smarks Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5109131440Smarks Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5110131440Smarks Current Release: 5111131440Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 5112131440Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 5113131440Smarks 5114131440Smarks 5115131440Smarks2) iASL Compiler/Disassembler: 5116131440Smarks 5117193267SjkimFixed a generation warning produced by some overly-verbose compilers for a 5118193267Sjkim64-bit constant. 5119131440Smarks 5120131440Smarks---------------------------------------- 5121129684Snjl14 May 2004. Summary of changes for version 20040514: 5122129684Snjl 5123129684Snjl1) ACPI CA Core Subsystem: 5124129684Snjl 5125193267SjkimFixed a problem where hardware GPE enable bits sometimes not set properly 5126193267Sjkimduring and after GPE method execution. Result of 04/27 changes. 5127129684Snjl 5128129684SnjlRemoved extra "clear all GPEs" when sleeping/waking. 5129129684Snjl 5130193267SjkimRemoved AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 5131193267SjkimAcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 5132193267Sjkimthe new AcpiEv* calls as appropriate. 5133129684Snjl 5134193267SjkimACPI_OS_NAME was removed from the OS-specific headers. The default name is 5135193267Sjkimnow "Microsoft Windows NT" for maximum compatibility. However this can be 5136193267Sjkimchanged by modifying the acconfig.h file. 5137129684Snjl 5138193267SjkimAllow a single invocation of AcpiInstallNotifyHandler for a handler that 5139193267Sjkimtraps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 5140129684Snjl 5141193267SjkimRun _INI methods on ThermalZone objects. This is against the ACPI 5142193267Sjkimspecification, but there is apparently ASL code in the field that has these 5143193267Sjkim_INI methods, and apparently "other" AML interpreters execute them. 5144129684Snjl 5145193267SjkimPerformed a full 16/32/64 bit lint that resulted in some small changes. 5146129684Snjl 5147193267SjkimAdded a sleep simulation command to the AML debugger to test sleep code. 5148129684Snjl 5149193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5150193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5151193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5152193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5153193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5154193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5155193267Sjkimthe compiler options used during generation. 5156129684Snjl 5157129684Snjl Previous Release: 5158129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5159129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5160129684Snjl Current Release: 5161129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5162129684Snjl Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5163129684Snjl 5164129684Snjl---------------------------------------- 5165129684Snjl27 April 2004. Summary of changes for version 20040427: 5166129684Snjl 5167129684Snjl1) ACPI CA Core Subsystem: 5168129684Snjl 5169193267SjkimCompleted a major overhaul of the GPE handling within ACPI CA. There are 5170193267Sjkimnow three types of GPEs: wake-only, runtime-only, and combination wake/run. 5171193267SjkimThe only GPEs allowed to be combination wake/run are for button-style 5172193267Sjkimdevices such as a control-method power button, control-method sleep button, 5173193267Sjkimor a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 5174193267Sjkimreferenced by any _PRW methods are marked for "runtime" and hardware 5175193267Sjkimenabled. Any GPE that is referenced by a _PRW method is marked for "wake" 5176193267Sjkim(and disabled at runtime). However, at sleep time, only those GPEs that 5177193267Sjkimhave been specifically enabled for wake via the AcpiEnableGpe interface will 5178193267Sjkimactually be hardware enabled. 5179129684Snjl 5180193267SjkimA new external interface has been added, AcpiSetGpeType(), that is meant to 5181193267Sjkimbe used by device drivers to force a GPE to a particular type. It will be 5182193267Sjkimespecially useful for the drivers for the button devices mentioned above. 5183129684Snjl 5184193267SjkimCompleted restructuring of the ACPI CA initialization sequence so that 5185193267Sjkimdefault operation region handlers are installed before GPEs are initialized 5186193267Sjkimand the _PRW methods are executed. This will prevent errors when the _PRW 5187193267Sjkimmethods attempt to access system memory or I/O space. 5188129684Snjl 5189193267SjkimGPE enable/disable no longer reads the GPE enable register. We now keep the 5190193267Sjkimenable info for runtime and wake separate and in the GPE_EVENT_INFO. We 5191193267Sjkimthus no longer depend on the hardware to maintain these bits. 5192129684Snjl 5193193267SjkimAlways clear the wake status and fixed/GPE status bits before sleep, even 5194193267Sjkimfor state S5. 5195129684Snjl 5196193267SjkimImproved the AML debugger output for displaying the GPE blocks and their 5197193267Sjkimcurrent status. 5198129684Snjl 5199193267SjkimAdded new strings for the _OSI method, of the form "Windows 2001 SPx" where 5200193267Sjkimx = 0,1,2,3,4. 5201129684Snjl 5202193267SjkimFixed a problem where the physical address was incorrectly calculated when 5203193267Sjkimthe Load() operator was used to directly load from an Operation Region (vs. 5204193267Sjkimloading from a Field object.) Also added check for minimum table length for 5205193267Sjkimthis case. 5206129684Snjl 5207193267SjkimFix for multiple mutex acquisition. Restore original thread SyncLevel on 5208193267Sjkimmutex release. 5209129684Snjl 5210193267SjkimAdded ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 5211129684Snjlconsistency with the other fields returned. 5212129684Snjl 5213193267SjkimShrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 5214193267Sjkimstructure for each GPE in the system, so the size of this structure is 5215193267Sjkimimportant. 5216129684Snjl 5217193267SjkimCPU stack requirement reduction: Cleaned up the method execution and object 5218193267Sjkimevaluation paths so that now a parameter structure is passed, instead of 5219193267Sjkimcopying the various method parameters over and over again. 5220129684Snjl 5221193267SjkimIn evregion.c: Correctly exit and reenter the interpreter region if and 5222193267Sjkimonly if dispatching an operation region request to a user-installed handler. 5223193267SjkimDo not exit/reenter when dispatching to a default handler (e.g., default 5224193267Sjkimsystem memory or I/O handlers) 5225129684Snjl 5226129684Snjl 5227193267SjkimNotes for updating drivers for the new GPE support. The following changes 5228193267Sjkimmust be made to ACPI-related device drivers that are attached to one or more 5229193267SjkimGPEs: (This information will be added to the ACPI CA Programmer Reference.) 5230129684Snjl 5231193267Sjkim1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 5232193267Sjkimexplicitly call AcpiEnableGpe. 5233193267Sjkim2) There is a new interface called AcpiSetGpeType. This should be called 5234193267Sjkimbefore enabling the GPE. Also, this interface will automatically disable 5235193267Sjkimthe GPE if it is currently enabled. 5236129684Snjl3) AcpiEnableGpe no longer supports a GPE type flag. 5237129684Snjl 5238129684SnjlSpecific drivers that must be changed: 5239129684Snjl1) EC driver: 5240193267Sjkim AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 5241129684SnjlAeGpeHandler, NULL); 5242129684Snjl AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 5243129684Snjl AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 5244129684Snjl 5245129684Snjl2) Button Drivers (Power, Lid, Sleep): 5246129684SnjlRun _PRW method under parent device 5247129684SnjlIf _PRW exists: /* This is a control-method button */ 5248129684Snjl Extract GPE number and possibly GpeDevice 5249129684Snjl AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 5250129684Snjl AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 5251129684Snjl 5252193267SjkimFor all other devices that have _PRWs, we automatically set the GPE type to 5253193267SjkimACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 5254193267Sjkimmust be done on a selective basis, usually requiring some kind of user app 5255193267Sjkimto allow the user to pick the wake devices. 5256129684Snjl 5257129684Snjl 5258193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5259193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5260193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5261193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5262193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5263193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5264193267Sjkimthe compiler options used during generation. 5265129684Snjl 5266129684Snjl Previous Release: 5267129684Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5268129684Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5269129684Snjl Current Release: 5270167802Sjkim 5271129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5272129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5273129684Snjl 5274129684Snjl 5275129684Snjl 5276129684Snjl---------------------------------------- 5277128212Snjl02 April 2004. Summary of changes for version 20040402: 5278128212Snjl 5279128212Snjl1) ACPI CA Core Subsystem: 5280128212Snjl 5281193267SjkimFixed an interpreter problem where an indirect store through an ArgX 5282193267Sjkimparameter was incorrectly applying the "implicit conversion rules" during 5283193267Sjkimthe store. From the ACPI specification: "If the target is a method local or 5284193267Sjkimargument (LocalX or ArgX), no conversion is performed and the result is 5285193267Sjkimstored directly to the target". The new behavior is to disable implicit 5286193267Sjkimconversion during ALL stores to an ArgX. 5287128212Snjl 5288193267SjkimChanged the behavior of the _PRW method scan to ignore any and all errors 5289193267Sjkimreturned by a given _PRW. This prevents the scan from aborting from the 5290193267Sjkimfailure of any single _PRW. 5291128212Snjl 5292193267SjkimMoved the runtime configuration parameters from the global init procedure to 5293193267Sjkimstatic variables in acglobal.h. This will allow the host to override the 5294193267Sjkimdefault values easily. 5295128212Snjl 5296193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5297193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5298193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5299193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5300193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5301193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5302193267Sjkimthe compiler options used during generation. 5303128212Snjl 5304128212Snjl Previous Release: 5305128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5306128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5307128212Snjl Current Release: 5308128212Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5309128212Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5310128212Snjl 5311128212Snjl 5312128212Snjl2) iASL Compiler/Disassembler: 5313128212Snjl 5314193267SjkimiASL now fully disassembles SSDTs. However, External() statements are not 5315193267Sjkimgenerated automatically for unresolved symbols at this time. This is a 5316193267Sjkimplanned feature for future implementation. 5317128212Snjl 5318193267SjkimFixed a scoping problem in the disassembler that occurs when the type of the 5319193267Sjkimtarget of a Scope() operator is overridden. This problem caused an 5320193267Sjkimincorrectly nested internal namespace to be constructed. 5321128212Snjl 5322193267SjkimAny warnings or errors that are emitted during disassembly are now commented 5323193267Sjkimout automatically so that the resulting file can be recompiled without any 5324193267Sjkimhand editing. 5325128212Snjl 5326128212Snjl---------------------------------------- 5327128212Snjl26 March 2004. Summary of changes for version 20040326: 5328128212Snjl 5329128212Snjl1) ACPI CA Core Subsystem: 5330128212Snjl 5331193267SjkimImplemented support for "wake" GPEs via interaction between GPEs and the 5332193267Sjkim_PRW methods. Every GPE that is pointed to by one or more _PRWs is 5333193267Sjkimidentified as a WAKE GPE and by default will no longer be enabled at 5334193267Sjkimruntime. Previously, we were blindly enabling all GPEs with a corresponding 5335193267Sjkim_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 5336193267Sjkimbelieve this has been the cause of thousands of "spurious" GPEs on some 5337128212Snjlsystems. 5338128212Snjl 5339193267SjkimThis new GPE behavior is can be reverted to the original behavior (enable 5340193267SjkimALL GPEs at runtime) via a runtime flag. 5341128212Snjl 5342193267SjkimFixed a problem where aliased control methods could not access objects 5343193267Sjkimproperly. The proper scope within the namespace was not initialized 5344193267Sjkim(transferred to the target of the aliased method) before executing the 5345193267Sjkimtarget method. 5346128212Snjl 5347193267SjkimFixed a potential race condition on internal object deletion on the return 5348193267Sjkimobject in AcpiEvaluateObject. 5349128212Snjl 5350193267SjkimIntegrated a fix for resource descriptors where both _MEM and _MTP were 5351193267Sjkimbeing extracted instead of just _MEM. (i.e. bitmask was incorrectly too 5352193267Sjkimwide, 0x0F instead of 0x03.) 5353128212Snjl 5354193267SjkimAdded a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 5355193267Sjkimfault in some cases. 5356128212Snjl 5357128212SnjlUpdated Notify() values for debug statements in evmisc.c 5358128212Snjl 5359193267SjkimReturn proper status from AcpiUtMutexInitialize, not just simply AE_OK. 5360128212Snjl 5361193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5362193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5363193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5364193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5365193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5366193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5367193267Sjkimthe compiler options used during generation. 5368128212Snjl 5369128212Snjl Previous Release: 5370167802Sjkim 5371128212Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5372128212Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5373128212Snjl Current Release: 5374128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5375128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5376128212Snjl 5377128212Snjl---------------------------------------- 5378127175Snjl11 March 2004. Summary of changes for version 20040311: 5379127175Snjl 5380127175Snjl1) ACPI CA Core Subsystem: 5381127175Snjl 5382193267SjkimFixed a problem where errors occurring during the parse phase of control 5383193267Sjkimmethod execution did not abort cleanly. For example, objects created and 5384193267Sjkiminstalled in the namespace were not deleted. This caused all subsequent 5385193267Sjkiminvocations of the method to return the AE_ALREADY_EXISTS exception. 5386127175Snjl 5387193267SjkimImplemented a mechanism to force a control method to "Serialized" execution 5388193267Sjkimif the method attempts to create namespace objects. (The root of the 5389193267SjkimAE_ALREADY_EXISTS problem.) 5390127175Snjl 5391193267SjkimImplemented support for the predefined _OSI "internal" control method. 5392193267SjkimInitial supported strings are "Linux", "Windows 2000", "Windows 2001", and 5393193267Sjkim"Windows 2001.1", and can be easily upgraded for new strings as necessary. 5394193267SjkimThis feature will allow "other" operating systems to execute the fully 5395193267Sjkimtested, "Windows" code path through the ASL code 5396127175Snjl 5397193267SjkimGlobal Lock Support: Now allows multiple acquires and releases with any 5398193267Sjkiminternal thread. Removed concept of "owning thread" for this special mutex. 5399127175Snjl 5400193267SjkimFixed two functions that were inappropriately declaring large objects on the 5401193267SjkimCPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 5402193267Sjkimmethod execution considerably. 5403127175Snjl 5404193267SjkimFixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 5405193267SjkimS4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 5406127175Snjl 5407193267SjkimFixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 5408193267Sjkimdefined on the machine. 5409127175Snjl 5410193267SjkimImplemented two runtime options: One to force all control method execution 5411193267Sjkimto "Serialized" to mimic Windows behavior, another to disable _OSI support 5412193267Sjkimif it causes problems on a given machine. 5413127175Snjl 5414193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5415193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5416193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5417193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5418193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5419193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5420193267Sjkimthe compiler options used during generation. 5421127175Snjl 5422127175Snjl Previous Release: 5423127175Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5424127175Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5425127175Snjl Current Release: 5426127175Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5427127175Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5428127175Snjl 5429127175Snjl2) iASL Compiler/Disassembler: 5430127175Snjl 5431193267SjkimFixed an array size problem for FreeBSD that would cause the compiler to 5432193267Sjkimfault. 5433127175Snjl 5434127175Snjl---------------------------------------- 5435126372Snjl20 February 2004. Summary of changes for version 20040220: 5436126372Snjl 5437167802Sjkim 5438126372Snjl1) ACPI CA Core Subsystem: 5439126372Snjl 5440193267SjkimImplemented execution of _SxD methods for Device objects in the 5441126372SnjlGetObjectInfo interface. 5442126372Snjl 5443126372SnjlFixed calls to _SST method to pass the correct arguments. 5444126372Snjl 5445126372SnjlAdded a call to _SST on wake to restore to "working" state. 5446126372Snjl 5447193267SjkimCheck for End-Of-Buffer failure case in the WalkResources interface. 5448126372Snjl 5449193267SjkimIntegrated fix for 64-bit alignment issue in acglobal.h by moving two 5450193267Sjkimstructures to the beginning of the file. 5451126372Snjl 5452126372SnjlAfter wake, clear GPE status register(s) before enabling GPEs. 5453126372Snjl 5454193267SjkimAfter wake, clear/enable power button. (Perhaps we should clear/enable all 5455193267Sjkimfixed events upon wake.) 5456126372Snjl 5457126372SnjlFixed a couple of possible memory leaks in the Namespace manager. 5458126372Snjl 5459126372SnjlIntegrated latest acnetbsd.h file. 5460126372Snjl 5461126372Snjl---------------------------------------- 5462126372Snjl11 February 2004. Summary of changes for version 20040211: 5463126372Snjl 5464167802Sjkim 5465126372Snjl1) ACPI CA Core Subsystem: 5466126372Snjl 5467193267SjkimCompleted investigation and implementation of the call-by-reference 5468193267Sjkimmechanism for control method arguments. 5469126372Snjl 5470193267SjkimFixed a problem where a store of an object into an indexed package could 5471193267Sjkimfail if the store occurs within a different method than the method that 5472193267Sjkimcreated the package. 5473126372Snjl 5474193267SjkimFixed a problem where the ToDecimal operator could return incorrect results. 5475126372Snjl 5476193267SjkimFixed a problem where the CopyObject operator could fail on some of the more 5477193267Sjkimobscure objects (e.g., Reference objects.) 5478126372Snjl 5479193267SjkimImproved the output of the Debug object to display buffer, package, and 5480193267Sjkimindex objects. 5481126372Snjl 5482193267SjkimFixed a problem where constructs of the form "RefOf (ArgX)" did not return 5483193267Sjkimthe expected result. 5484126372Snjl 5485193267SjkimAdded permanent ACPI_REPORT_ERROR macros for all instances of the 5486126372SnjlACPI_AML_INTERNAL exception. 5487126372Snjl 5488126372SnjlIntegrated latest version of acfreebsd.h 5489126372Snjl 5490126372Snjl---------------------------------------- 5491126372Snjl16 January 2004. Summary of changes for version 20040116: 5492126372Snjl 5493193267SjkimThe purpose of this release is primarily to update the copyright years in 5494193267Sjkimeach module, thus causing a huge number of diffs. There are a few small 5495193267Sjkimfunctional changes, however. 5496126372Snjl 5497126372Snjl1) ACPI CA Core Subsystem: 5498126372Snjl 5499193267SjkimImproved error messages when there is a problem finding one or more of the 5500193267Sjkimrequired base ACPI tables 5501126372Snjl 5502126372SnjlReintroduced the definition of APIC_HEADER in actbl.h 5503126372Snjl 5504126372SnjlChanged definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 5505126372Snjl 5506126372SnjlRemoved extraneous reference to NewObj in dsmthdat.c 5507126372Snjl 5508126372Snjl2) iASL compiler 5509126372Snjl 5510193267SjkimFixed a problem introduced in December that disabled the correct disassembly 5511193267Sjkimof Resource Templates 5512126372Snjl 5513126372Snjl 5514126372Snjl---------------------------------------- 5515126372Snjl03 December 2003. Summary of changes for version 20031203: 5516126372Snjl 5517126372Snjl1) ACPI CA Core Subsystem: 5518126372Snjl 5519126372SnjlChanged the initialization of Operation Regions during subsystem 5520126372Snjlinit to perform two entire walks of the ACPI namespace; The first 5521126372Snjlto initialize the regions themselves, the second to execute the 5522126372Snjl_REG methods. This fixed some interdependencies across _REG 5523126372Snjlmethods found on some machines. 5524126372Snjl 5525126372SnjlFixed a problem where a Store(Local0, Local1) could simply update 5526126372Snjlthe object reference count, and not create a new copy of the 5527126372Snjlobject if the Local1 is uninitialized. 5528126372Snjl 5529126372SnjlImplemented support for the _SST reserved method during sleep 5530126372Snjltransitions. 5531126372Snjl 5532126372SnjlImplemented support to clear the SLP_TYP and SLP_EN bits when 5533126372Snjlwaking up, this is apparently required by some machines. 5534126372Snjl 5535193267SjkimWhen sleeping, clear the wake status only if SleepState is not S5. 5536126372Snjl 5537126372SnjlFixed a problem in AcpiRsExtendedIrqResource() where an incorrect 5538126372Snjlpointer arithmetic advanced a string pointer too far. 5539126372Snjl 5540126372SnjlFixed a problem in AcpiTbGetTablePtr() where a garbage pointer 5541126372Snjlcould be returned if the requested table has not been loaded. 5542126372Snjl 5543193267SjkimWithin the support for IRQ resources, restructured the handling of 5544126372Snjlthe active and edge/level bits. 5545126372Snjl 5546126372SnjlFixed a few problems in AcpiPsxExecute() where memory could be 5547126372Snjlleaked under certain error conditions. 5548126372Snjl 5549126372SnjlImproved error messages for the cases where the ACPI mode could 5550126372Snjlnot be entered. 5551126372Snjl 5552126372SnjlCode and Data Size: Current and previous core subsystem library 5553126372Snjlsizes are shown below. These are the code and data sizes for the 5554126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5555126372Snjlthese values do not include any ACPI driver or OSPM code. The 5556126372Snjldebug version of the code includes the debug output trace 5557126372Snjlmechanism and has a much larger code and data size. Note that 5558193267Sjkimthese values will vary depending on the efficiency of the compiler 5559126372Snjland the compiler options used during generation. 5560126372Snjl 5561126372Snjl Previous Release (20031029): 5562126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5563126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5564126372Snjl Current Release: 5565126372Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5566126372Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5567126372Snjl 5568126372Snjl2) iASL Compiler/Disassembler: 5569126372Snjl 5570126372SnjlImplemented a fix for the iASL disassembler where a bad index was 5571126372Snjlgenerated. This was most noticeable on 64-bit platforms 5572126372Snjl 5573126372Snjl 5574126372Snjl---------------------------------------- 5575126372Snjl29 October 2003. Summary of changes for version 20031029: 5576126372Snjl 5577126372Snjl1) ACPI CA Core Subsystem: 5578126372Snjl 5579167802Sjkim 5580126372SnjlFixed a problem where a level-triggered GPE with an associated 5581126372Snjl_Lxx control method was incorrectly cleared twice. 5582126372Snjl 5583126372SnjlFixed a problem with the Field support code where an access can 5584126372Snjloccur beyond the end-of-region if the field is non-aligned but 5585126372Snjlextends to the very end of the parent region (resulted in an 5586126372SnjlAE_AML_REGION_LIMIT exception.) 5587126372Snjl 5588126372SnjlFixed a problem with ACPI Fixed Events where an RT Clock handler 5589193267Sjkimwould not get invoked on an RTC event. The RTC event bitmasks for 5590126372Snjlthe PM1 registers were not being initialized properly. 5591126372Snjl 5592126372SnjlImplemented support for executing _STA and _INI methods for 5593126372SnjlProcessor objects. Although this is currently not part of the 5594193267SjkimACPI specification, there is existing ASL code that depends on the 5595126372Snjlinit-time execution of these methods. 5596126372Snjl 5597126372SnjlImplemented and deployed a GetDescriptorName function to decode 5598126372Snjlthe various types of internal descriptors. Guards against null 5599126372Snjldescriptors during debug output also. 5600126372Snjl 5601126372SnjlImplemented and deployed a GetNodeName function to extract the 4- 5602193267Sjkimcharacter namespace node name. This function simplifies the debug 5603193267Sjkimand error output, as well as guarding against null pointers during 5604126372Snjloutput. 5605126372Snjl 5606126372SnjlImplemented and deployed the ACPI_FORMAT_UINT64 helper macro to 5607126372Snjlsimplify the debug and error output of 64-bit integers. This 5608126372Snjlmacro replaces the HIDWORD and LODWORD macros for dumping these 5609126372Snjlintegers. 5610126372Snjl 5611126372SnjlUpdated the implementation of the Stall() operator to only call 5612126372SnjlAcpiOsStall(), and also return an error if the operand is larger 5613126372Snjlthan 255. This preserves the required behavior of not 5614126372Snjlrelinquishing the processor, as would happen if AcpiOsSleep() was 5615126372Snjlcalled for "long stalls". 5616126372Snjl 5617126372SnjlConstructs of the form "Store(LocalX,LocalX)" where LocalX is not 5618126372Snjlinitialized are now treated as NOOPs. 5619126372Snjl 5620126372SnjlCleaned up a handful of warnings during 64-bit generation. 5621126372Snjl 5622126372SnjlFixed a reported error where and incorrect GPE number was passed 5623126372Snjlto the GPE dispatch handler. This value is only used for error 5624193267Sjkimoutput, however. Used this opportunity to clean up and streamline 5625126372Snjlthe GPE dispatch code. 5626126372Snjl 5627126372SnjlCode and Data Size: Current and previous core subsystem library 5628126372Snjlsizes are shown below. These are the code and data sizes for the 5629126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5630126372Snjlthese values do not include any ACPI driver or OSPM code. The 5631167802Sjkim 5632126372Snjldebug version of the code includes the debug output trace 5633126372Snjlmechanism and has a much larger code and data size. Note that 5634193267Sjkimthese values will vary depending on the efficiency of the compiler 5635126372Snjland the compiler options used during generation. 5636126372Snjl 5637126372Snjl Previous Release (20031002): 5638126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5639126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5640126372Snjl Current Release: 5641126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5642126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5643126372Snjl 5644126372Snjl 5645126372Snjl2) iASL Compiler/Disassembler: 5646126372Snjl 5647193267SjkimUpdated the iASL compiler to return an error if the operand to the 5648126372SnjlStall() operator is larger than 255. 5649126372Snjl 5650126372Snjl 5651126372Snjl---------------------------------------- 5652126372Snjl02 October 2003. Summary of changes for version 20031002: 5653126372Snjl 5654126372Snjl 5655126372Snjl1) ACPI CA Core Subsystem: 5656126372Snjl 5657126372SnjlFixed a problem with Index Fields where the index was not 5658126372Snjlincremented for fields that require multiple writes to the 5659126372Snjlindex/data registers (Fields that are wider than the data 5660126372Snjlregister.) 5661126372Snjl 5662126372SnjlFixed a problem with all Field objects where a write could go 5663126372Snjlbeyond the end-of-field if the field was larger than the access 5664193267Sjkimgranularity and therefore required multiple writes to complete the 5665126372Snjlrequest. An extra write beyond the end of the field could happen 5666126372Snjlinadvertently. 5667126372Snjl 5668126372SnjlFixed a problem with Index Fields where a BUFFER_OVERFLOW error 5669126372Snjlwould incorrectly be returned if the width of the Data Register 5670126372Snjlwas larger than the specified field access width. 5671126372Snjl 5672126372SnjlCompleted fixes for LoadTable() and Unload() and verified their 5673126372Snjloperation. Implemented full support for the "DdbHandle" object 5674126372Snjlthroughout the ACPI CA subsystem. 5675126372Snjl 5676126372SnjlImplemented full support for the MADT and ECDT tables in the ACPI 5677126372SnjlCA header files. Even though these tables are not directly 5678126372Snjlconsumed by ACPI CA, the header definitions are useful for ACPI 5679126372Snjldevice drivers. 5680126372Snjl 5681126372SnjlIntegrated resource descriptor fixes posted to the Linux ACPI 5682126372Snjllist. This included checks for minimum descriptor length, and 5683126372Snjlsupport for trailing NULL strings within descriptors that have 5684126372Snjloptional string elements. 5685126372Snjl 5686126372SnjlCode and Data Size: Current and previous core subsystem library 5687126372Snjlsizes are shown below. These are the code and data sizes for the 5688126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5689126372Snjlthese values do not include any ACPI driver or OSPM code. The 5690126372Snjldebug version of the code includes the debug output trace 5691126372Snjlmechanism and has a much larger code and data size. Note that 5692193267Sjkimthese values will vary depending on the efficiency of the compiler 5693126372Snjland the compiler options used during generation. 5694126372Snjl 5695126372Snjl Previous Release (20030918): 5696126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5697126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5698126372Snjl Current Release: 5699126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5700126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5701126372Snjl 5702126372Snjl 5703126372Snjl2) iASL Compiler: 5704126372Snjl 5705126372SnjlImplemented detection of non-ASCII characters within the input 5706126372Snjlsource ASL file. This catches attempts to compile binary (AML) 5707126372Snjlfiles early in the compile, with an informative error message. 5708126372Snjl 5709126372SnjlFixed a problem where the disassembler would fault if the output 5710193267Sjkimfilename could not be generated or if the output file could not be 5711126372Snjlopened. 5712126372Snjl 5713126372Snjl---------------------------------------- 5714126372Snjl18 September 2003. Summary of changes for version 20030918: 5715126372Snjl 5716126372Snjl 5717126372Snjl1) ACPI CA Core Subsystem: 5718126372Snjl 5719126372SnjlFound and fixed a longstanding problem with the late execution of 5720126372Snjlthe various deferred AML opcodes (such as Operation Regions, 5721126372SnjlBuffer Fields, Buffers, and Packages). If the name string 5722126372Snjlspecified for the name of the new object placed the object in a 5723126372Snjlscope other than the current scope, the initialization/execution 5724126372Snjlof the opcode failed. The solution to this problem was to 5725126372Snjlimplement a mechanism where the late execution of such opcodes 5726126372Snjldoes not attempt to lookup/create the name a second time in an 5727126372Snjlincorrect scope. This fixes the "region size computed 5728126372Snjlincorrectly" problem. 5729126372Snjl 5730193267SjkimFixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 5731126372SnjlGlobal Lock AE_BAD_PARAMETER error. 5732126372Snjl 5733126372SnjlFixed several 64-bit issues with prototypes, casting and data 5734126372Snjltypes. 5735126372Snjl 5736126372SnjlRemoved duplicate prototype from acdisasm.h 5737126372Snjl 5738126372SnjlFixed an issue involving EC Operation Region Detach (Shaohua Li) 5739126372Snjl 5740126372SnjlCode and Data Size: Current and previous core subsystem library 5741126372Snjlsizes are shown below. These are the code and data sizes for the 5742126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5743126372Snjlthese values do not include any ACPI driver or OSPM code. The 5744126372Snjldebug version of the code includes the debug output trace 5745126372Snjlmechanism and has a much larger code and data size. Note that 5746193267Sjkimthese values will vary depending on the efficiency of the compiler 5747126372Snjland the compiler options used during generation. 5748126372Snjl 5749126372Snjl Previous Release: 5750167802Sjkim 5751126372Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 5752126372Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 5753126372Snjl Current Release: 5754126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5755126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5756126372Snjl 5757126372Snjl 5758126372Snjl2) Linux: 5759126372Snjl 5760126372SnjlFixed the AcpiOsSleep implementation in osunixxf.c to pass the 5761126372Snjlcorrect sleep time in seconds. 5762126372Snjl 5763126372Snjl---------------------------------------- 5764126372Snjl14 July 2003. Summary of changes for version 20030619: 5765126372Snjl 5766126372Snjl1) ACPI CA Core Subsystem: 5767126372Snjl 5768126372SnjlParse SSDTs in order discovered, as opposed to reverse order 5769126372Snjl(Hrvoje Habjanic) 5770126372Snjl 5771126372SnjlFixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 5772126372SnjlKlausner, 5773126372Snjl Nate Lawson) 5774126372Snjl 5775126372Snjl 5776126372Snjl2) Linux: 5777126372Snjl 5778126372SnjlDynamically allocate SDT list (suggested by Andi Kleen) 5779126372Snjl 5780126372Snjlproc function return value cleanups (Andi Kleen) 5781126372Snjl 5782126372SnjlCorrectly handle NMI watchdog during long stalls (Andrew Morton) 5783126372Snjl 5784126372SnjlMake it so acpismp=force works (reported by Andrew Morton) 5785126372Snjl 5786126372Snjl 5787126372Snjl---------------------------------------- 5788117521Snjl19 June 2003. Summary of changes for version 20030619: 5789117521Snjl 5790117521Snjl1) ACPI CA Core Subsystem: 5791117521Snjl 5792193267SjkimFix To/FromBCD, eliminating the need for an arch-specific #define. 5793117521Snjl 5794117521SnjlDo not acquire a semaphore in the S5 shutdown path. 5795117521Snjl 5796117521SnjlFix ex_digits_needed for 0. (Takayoshi Kochi) 5797117521Snjl 5798117521SnjlFix sleep/stall code reversal. (Andi Kleen) 5799117521Snjl 5800117521SnjlRevert a change having to do with control method calling 5801117521Snjlsemantics. 5802117521Snjl 5803117521Snjl2) Linux: 5804117521Snjl 5805117521Snjlacpiphp update (Takayoshi Kochi) 5806117521Snjl 5807117521SnjlExport acpi_disabled for sonypi (Stelian Pop) 5808117521Snjl 5809117521SnjlMention acpismp=force in config help 5810117521Snjl 5811117521SnjlRe-add acpitable.c and acpismp=force. This improves backwards 5812167802Sjkim 5813193267Sjkimcompatibility and also cleans up the code to a significant degree. 5814117521Snjl 5815117521SnjlAdd ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 5816117521Snjl 5817117521Snjl---------------------------------------- 5818117521Snjl22 May 2003. Summary of changes for version 20030522: 5819117521Snjl 5820117521Snjl1) ACPI CA Core Subsystem: 5821117521Snjl 5822117521SnjlFound and fixed a reported problem where an AE_NOT_FOUND error 5823117521Snjloccurred occasionally during _BST evaluation. This turned out to 5824117521Snjlbe an Owner ID allocation issue where a called method did not get 5825193267Sjkima new ID assigned to it. Eventually, (after 64k calls), the Owner 5826193267SjkimID UINT16 would wraparound so that the ID would be the same as the 5827126372Snjlcaller's and the called method would delete the caller's 5828117521Snjlnamespace. 5829117521Snjl 5830117521SnjlImplemented extended error reporting for control methods that are 5831117521Snjlaborted due to a run-time exception. Output includes the exact 5832193267SjkimAML instruction that caused the method abort, a dump of the method 5833126372Snjllocals and arguments at the time of the abort, and a trace of all 5834126372Snjlnested control method calls. 5835117521Snjl 5836117521SnjlModified the interpreter to allow the creation of buffers of zero 5837117521Snjllength from the AML code. Implemented new code to ensure that no 5838117521Snjlattempt is made to actually allocate a memory buffer (of length 5839193267Sjkimzero) - instead, a simple buffer object with a NULL buffer pointer 5840126372Snjland length zero is created. A warning is no longer issued when 5841126372Snjlthe AML attempts to create a zero-length buffer. 5842117521Snjl 5843117521SnjlImplemented a workaround for the "leading asterisk issue" in 5844117521Snjl_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 5845117521Snjlasterisk is automatically removed if present in any HID, UID, or 5846117521SnjlCID strings. The iASL compiler will still flag this asterisk as 5847117521Snjlan error, however. 5848117521Snjl 5849193267SjkimImplemented full support for _CID methods that return a package of 5850193267Sjkimmultiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 5851126372Snjlnow additionally returns a device _CID list if present. This 5852126372Snjlrequired a change to the external interface in order to pass an 5853126372SnjlACPI_BUFFER object as a parameter since the _CID list is of 5854117521Snjlvariable length. 5855117521Snjl 5856117521SnjlFixed a problem with the new AE_SAME_HANDLER exception where 5857117521Snjlhandler initialization code did not know about this exception. 5858117521Snjl 5859117521SnjlCode and Data Size: Current and previous core subsystem library 5860117521Snjlsizes are shown below. These are the code and data sizes for the 5861117521Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5862117521Snjlthese values do not include any ACPI driver or OSPM code. The 5863117521Snjldebug version of the code includes the debug output trace 5864117521Snjlmechanism and has a much larger code and data size. Note that 5865193267Sjkimthese values will vary depending on the efficiency of the compiler 5866126372Snjland the compiler options used during generation. 5867117521Snjl 5868117521Snjl Previous Release (20030509): 5869117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 5870117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 5871117521Snjl Current Release: 5872117521Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 5873117521Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 5874117521Snjl 5875117521Snjl 5876117521Snjl2) Linux: 5877117521Snjl 5878117521SnjlFixed a bug in which we would reinitialize the ACPI interrupt 5879193267Sjkimafter it was already working, thus disabling all ACPI and the IRQs 5880126372Snjlfor any other device sharing the interrupt. (Thanks to Stian 5881117521SnjlJordet) 5882117521Snjl 5883117521SnjlToshiba driver update (John Belmonte) 5884117521Snjl 5885117521SnjlReturn only 0 or 1 for our interrupt handler status (Andrew 5886117521SnjlMorton) 5887117521Snjl 5888117521Snjl 5889117521Snjl3) iASL Compiler: 5890117521Snjl 5891117521SnjlFixed a reported problem where multiple (nested) ElseIf() 5892117521Snjlstatements were not handled correctly by the compiler, resulting 5893117521Snjlin incorrect warnings and incorrect AML code. This was a problem 5894117521Snjlin both the ASL parser and the code generator. 5895117521Snjl 5896117521Snjl 5897117521Snjl4) Documentation: 5898117521Snjl 5899193267SjkimAdded changes to existing interfaces, new exception codes, and new 5900126372Snjltext concerning reference count object management versus garbage 5901126372Snjlcollection. 5902117521Snjl 5903117521Snjl---------------------------------------- 5904117521Snjl09 May 2003. Summary of changes for version 20030509. 5905117521Snjl 5906117521Snjl 5907117521Snjl1) ACPI CA Core Subsystem: 5908117521Snjl 5909117521SnjlChanged the subsystem initialization sequence to hold off 5910193267Sjkiminstallation of address space handlers until the hardware has been 5911193267Sjkiminitialized and the system has entered ACPI mode. This is because 5912126372Snjlthe installation of space handlers can cause _REG methods to be 5913193267Sjkimrun. Previously, the _REG methods could potentially be run before 5914126372SnjlACPI mode was enabled. 5915117521Snjl 5916193267SjkimFixed some memory leak issues related to address space handler and 5917126372Snjlnotify handler installation. There were some problems with the 5918126372Snjlreference count mechanism caused by the fact that the handler 5919117521Snjlobjects are shared across several namespace objects. 5920117521Snjl 5921117521SnjlFixed a reported problem where reference counts within the 5922117521Snjlnamespace were not properly updated when named objects created by 5923117521Snjlmethod execution were deleted. 5924117521Snjl 5925117521SnjlFixed a reported problem where multiple SSDTs caused a deletion 5926117521Snjlissue during subsystem termination. Restructured the table data 5927117521Snjlstructures to simplify the linked lists and the related code. 5928117521Snjl 5929117521SnjlFixed a problem where the table ID associated with secondary 5930193267Sjkimtables (SSDTs) was not being propagated into the namespace objects 5931126372Snjlcreated by those tables. This would only present a problem for 5932126372Snjltables that are unloaded at run-time, however. 5933117521Snjl 5934117521SnjlUpdated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 5935117521Snjltype as the length parameter (instead of UINT32). 5936117521Snjl 5937117521SnjlSolved a long-standing problem where an ALREADY_EXISTS error 5938117521Snjlappears on various systems. This problem could happen when there 5939117521Snjlare multiple PCI_Config operation regions under a single PCI root 5940117521Snjlbus. This doesn't happen very frequently, but there are some 5941117521Snjlsystems that do this in the ASL. 5942117521Snjl 5943117521SnjlFixed a reported problem where the internal DeleteNode function 5944117521Snjlwas incorrectly handling the case where a namespace node was the 5945117521Snjlfirst in the parent's child list, and had additional peers (not 5946117521Snjlthe only child, but first in the list of children.) 5947117521Snjl 5948193267SjkimCode and Data Size: Current core subsystem library sizes are shown 5949126372Snjlbelow. These are the code and data sizes for the acpica.lib 5950126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 5951126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 5952126372Snjlversion of the code includes the debug output trace mechanism and 5953193267Sjkimhas a much larger code and data size. Note that these values will 5954126372Snjlvary depending on the efficiency of the compiler and the compiler 5955126372Snjloptions used during generation. 5956117521Snjl 5957117521Snjl Previous Release 5958117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 5959117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 5960117521Snjl Current Release: 5961117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 5962117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 5963117521Snjl 5964117521Snjl 5965117521Snjl2) Linux: 5966117521Snjl 5967117521SnjlAllow ":" in OS override string (Ducrot Bruno) 5968117521Snjl 5969117521SnjlKobject fix (Greg KH) 5970117521Snjl 5971117521Snjl 5972117521Snjl3 iASL Compiler/Disassembler: 5973117521Snjl 5974117521SnjlFixed a problem in the generation of the C source code files (AML 5975117521Snjlis emitted in C source statements for BIOS inclusion) where the 5976193267SjkimAscii dump that appears within a C comment at the end of each line 5977126372Snjlcould cause a compile time error if the AML sequence happens to 5978126372Snjlhave an open comment or close comment sequence embedded. 5979117521Snjl 5980117521Snjl 5981117521Snjl---------------------------------------- 5982117521Snjl24 April 2003. Summary of changes for version 20030424. 5983117521Snjl 5984117521Snjl 5985117521Snjl1) ACPI CA Core Subsystem: 5986117521Snjl 5987117521SnjlSupport for big-endian systems has been implemented. Most of the 5988193267Sjkimsupport has been invisibly added behind big-endian versions of the 5989126372SnjlACPI_MOVE_* macros. 5990117521Snjl 5991117521SnjlFixed a problem in AcpiHwDisableGpeBlock() and 5992117521SnjlAcpiHwClearGpeBlock() where an incorrect offset was passed to the 5993117521Snjllow level hardware write routine. The offset parameter was 5994193267Sjkimactually eliminated from the low level read/write routines because 5995126372Snjlthey had become obsolete. 5996117521Snjl 5997117521SnjlFixed a problem where a handler object was deleted twice during 5998117521Snjlthe removal of a fixed event handler. 5999117521Snjl 6000117521Snjl 6001117521Snjl2) Linux: 6002117521Snjl 6003117521SnjlA fix for SMP systems with link devices was contributed by 6004167802Sjkim 6005117521SnjlCompaq's Dan Zink. 6006117521Snjl 6007117521Snjl(2.5) Return whether we handled the interrupt in our IRQ handler. 6008193267Sjkim(Linux ISRs no longer return void, so we can propagate the handler 6009126372Snjlreturn value from the ACPI CA core back to the OS.) 6010117521Snjl 6011117521Snjl 6012167802Sjkim 6013117521Snjl3) Documentation: 6014117521Snjl 6015117521SnjlThe ACPI CA Programmer Reference has been updated to reflect new 6016117521Snjlinterfaces and changes to existing interfaces. 6017117521Snjl 6018117521Snjl---------------------------------------- 6019117521Snjl28 March 2003. Summary of changes for version 20030328. 6020117521Snjl 6021117521Snjl1) ACPI CA Core Subsystem: 6022117521Snjl 6023117521SnjlThe GPE Block Device support has been completed. New interfaces 6024117521Snjlare AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 6025117521Snjlinterfaces (enable, disable, clear, getstatus) have been split 6026117521Snjlinto separate interfaces for Fixed Events and General Purpose 6027117521SnjlEvents (GPEs) in order to support GPE Block Devices properly. 6028117521Snjl 6029117521SnjlFixed a problem where the error message "Failed to acquire 6030117521Snjlsemaphore" would appear during operations on the embedded 6031117521Snjlcontroller (EC). 6032117521Snjl 6033193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6034126372Snjlbelow. These are the code and data sizes for the acpica.lib 6035126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6036126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6037126372Snjlversion of the code includes the debug output trace mechanism and 6038193267Sjkimhas a much larger code and data size. Note that these values will 6039126372Snjlvary depending on the efficiency of the compiler and the compiler 6040126372Snjloptions used during generation. 6041117521Snjl 6042117521Snjl Previous Release 6043117521Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 6044117521Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 6045117521Snjl Current Release: 6046117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 6047117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 6048117521Snjl 6049117521Snjl 6050117521Snjl---------------------------------------- 6051114237Snjl28 February 2003. Summary of changes for version 20030228. 6052114237Snjl 6053114237Snjl 6054114237Snjl1) ACPI CA Core Subsystem: 6055114237Snjl 6056114237SnjlThe GPE handling and dispatch code has been completely overhauled 6057114237Snjlin preparation for support of GPE Block Devices (ID ACPI0006). 6058114237SnjlThis affects internal data structures and code only; there should 6059114237Snjlbe no differences visible externally. One new file has been 6060114237Snjladded, evgpeblk.c 6061114237Snjl 6062114237SnjlThe FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 6063114237Snjlfields that are used to determine the GPE block lengths. The 6064114237SnjlREGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 6065193267Sjkimstructures are ignored. This is per the ACPI specification but it 6066126372Snjlisn't very clear. The full 256 Block 0/1 GPEs are now supported 6067193267Sjkim(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 6068114237Snjl 6069114237SnjlIn the SCI interrupt handler, removed the read of the PM1_CONTROL 6070114237Snjlregister to look at the SCI_EN bit. On some machines, this read 6071114237Snjlcauses an SMI event and greatly slows down SCI events. (This may 6072114237Snjlin fact be the cause of slow battery status response on some 6073114237Snjlsystems.) 6074114237Snjl 6075193267SjkimFixed a problem where a store of a NULL string to a package object 6076126372Snjlcould cause the premature deletion of the object. This was seen 6077126372Snjlduring execution of the battery _BIF method on some systems, 6078126372Snjlresulting in no battery data being returned. 6079114237Snjl 6080114237SnjlAdded AcpiWalkResources interface to simplify parsing of resource 6081114237Snjllists. 6082114237Snjl 6083193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6084126372Snjlbelow. These are the code and data sizes for the acpica.lib 6085126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6086126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6087126372Snjlversion of the code includes the debug output trace mechanism and 6088193267Sjkimhas a much larger code and data size. Note that these values will 6089126372Snjlvary depending on the efficiency of the compiler and the compiler 6090126372Snjloptions used during generation. 6091114237Snjl 6092114237Snjl Previous Release 6093114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6094114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6095114237Snjl Current Release: 6096114237Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 6097114237Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 6098114237Snjl 6099114237Snjl 6100114237Snjl2) Linux 6101114237Snjl 6102114237SnjlS3 fixes (Ole Rohne) 6103114237Snjl 6104114237SnjlUpdate ACPI PHP driver with to use new acpi_walk_resource API 6105114237Snjl(Bjorn Helgaas) 6106114237Snjl 6107114237SnjlAdd S4BIOS support (Pavel Machek) 6108114237Snjl 6109114237SnjlMap in entire table before performing checksum (John Stultz) 6110114237Snjl 6111193267SjkimExpand the mem= cmdline to allow the specification of reserved and 6112126372SnjlACPI DATA blocks (Pavel Machek) 6113114237Snjl 6114114237SnjlNever use ACPI on VISWS 6115114237Snjl 6116114237SnjlFix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 6117114237Snjl 6118114237SnjlRevert a change that allowed P_BLK lengths to be 4 or 5. This is 6119114237Snjlcausing us to think that some systems support C2 when they really 6120114237Snjldon't. 6121114237Snjl 6122114237SnjlDo not count processor objects for non-present CPUs (Thanks to 6123114237SnjlDominik Brodowski) 6124114237Snjl 6125114237Snjl 6126114237Snjl3) iASL Compiler: 6127114237Snjl 6128114237SnjlFixed a problem where ASL include files could not be found and 6129114237Snjlopened. 6130114237Snjl 6131114237SnjlAdded support for the _PDC reserved name. 6132114237Snjl 6133114237Snjl 6134117521Snjl---------------------------------------- 6135114237Snjl22 January 2003. Summary of changes for version 20030122. 6136114237Snjl 6137114237Snjl 6138114237Snjl1) ACPI CA Core Subsystem: 6139114237Snjl 6140114237SnjlAdded a check for constructs of the form: Store (Local0, Local0) 6141114237Snjlwhere Local0 is not initialized. Apparently, some BIOS 6142193267Sjkimprogrammers believe that this is a NOOP. Since this store doesn't 6143126372Snjldo anything anyway, the new prototype behavior will ignore this 6144126372Snjlerror. This is a case where we can relax the strict checking in 6145126372Snjlthe interpreter in the name of compatibility. 6146114237Snjl 6147114237Snjl 6148114237Snjl2) Linux 6149114237Snjl 6150114237SnjlThe AcpiSrc Source Conversion Utility has been released with the 6151114237SnjlLinux package for the first time. This is the utility that is 6152193267Sjkimused to convert the ACPI CA base source code to the Linux version. 6153114237Snjl 6154114237Snjl(Both) Handle P_BLK lengths shorter than 6 more gracefully 6155114237Snjl 6156114237Snjl(Both) Move more headers to include/acpi, and delete an unused 6157114237Snjlheader. 6158114237Snjl 6159114237Snjl(Both) Move drivers/acpi/include directory to include/acpi 6160114237Snjl 6161114237Snjl(Both) Boot functions don't use cmdline, so don't pass it around 6162114237Snjl 6163114237Snjl(Both) Remove include of unused header (Adrian Bunk) 6164114237Snjl 6165114237Snjl(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 6166114237Snjlthe 6167193267Sjkimformer now also includes the latter, acpiphp.h only needs the one, 6168126372Snjlnow. 6169114237Snjl 6170193267Sjkim(2.5) Make it possible to select method of bios restoring after S3 6171114237Snjlresume. [=> no more ugly ifdefs] (Pavel Machek) 6172114237Snjl 6173114237Snjl(2.5) Make proc write interfaces work (Pavel Machek) 6174114237Snjl 6175114237Snjl(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 6176114237Snjl 6177114237Snjl(2.5) Break out ACPI Perf code into its own module, under cpufreq 6178114237Snjl(Dominik Brodowski) 6179114237Snjl 6180114237Snjl(2.4) S4BIOS support (Ducrot Bruno) 6181114237Snjl 6182114237Snjl(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 6183114237SnjlVisinoni) 6184114237Snjl 6185114237Snjl 6186114237Snjl3) iASL Compiler: 6187114237Snjl 6188114237SnjlAdded support to disassemble SSDT and PSDTs. 6189114237Snjl 6190114237SnjlImplemented support to obtain SSDTs from the Windows registry if 6191114237Snjlavailable. 6192114237Snjl 6193114237Snjl 6194102550Siwasaki---------------------------------------- 6195114237Snjl09 January 2003. Summary of changes for version 20030109. 6196114237Snjl 6197114237Snjl1) ACPI CA Core Subsystem: 6198114237Snjl 6199114237SnjlChanged the behavior of the internal Buffer-to-String conversion 6200193267Sjkimfunction. The current ACPI specification states that the contents 6201126372Snjlof the buffer are "converted to a string of two-character 6202126372Snjlhexadecimal numbers, each separated by a space". Unfortunately, 6203193267Sjkimthis definition is not backwards compatible with existing ACPI 1.0 6204193267Sjkimimplementations (although the behavior was not defined in the ACPI 6205126372Snjl1.0 specification). The new behavior simply copies data from the 6206193267Sjkimbuffer to the string until a null character is found or the end of 6207126372Snjlthe buffer is reached. The new String object is always null 6208126372Snjlterminated. This problem was seen during the generation of _BIF 6209126372Snjlbattery data where incorrect strings were returned for battery 6210126372Snjltype, etc. This will also require an errata to the ACPI 6211126372Snjlspecification. 6212114237Snjl 6213114237SnjlRenamed all instances of NATIVE_UINT and NATIVE_INT to 6214114237SnjlACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 6215114237Snjl 6216114237SnjlCopyright in all module headers (both Linux and non-Linux) has be 6217114237Snjlupdated to 2003. 6218114237Snjl 6219193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6220126372Snjlbelow. These are the code and data sizes for the acpica.lib 6221126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6222126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6223126372Snjlversion of the code includes the debug output trace mechanism and 6224193267Sjkimhas a much larger code and data size. Note that these values will 6225126372Snjlvary depending on the efficiency of the compiler and the compiler 6226126372Snjloptions used during generation. 6227114237Snjl 6228114237Snjl Previous Release 6229114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6230114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6231114237Snjl Current Release: 6232114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6233114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6234114237Snjl 6235114237Snjl 6236114237Snjl2) Linux 6237114237Snjl 6238114237SnjlFixed an oops on module insertion/removal (Matthew Tippett) 6239114237Snjl 6240114237Snjl(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 6241114237Snjl 6242114237Snjl(2.5) Replace pr_debug (Randy Dunlap) 6243114237Snjl 6244114237Snjl(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 6245114237Snjl 6246114237Snjl(Both) Eliminate spawning of thread from timer callback, in favor 6247114237Snjlof schedule_work() 6248114237Snjl 6249114237Snjl(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 6250114237Snjl 6251114237Snjl(Both) Added define for Fixed Function HW region (Matthew Wilcox) 6252114237Snjl 6253114237Snjl(Both) Add missing statics to button.c (Pavel Machek) 6254114237Snjl 6255114237SnjlSeveral changes have been made to the source code translation 6256114237Snjlutility that generates the Linux Code in order to make the code 6257114237Snjlmore "Linux-like": 6258114237Snjl 6259114237SnjlAll typedefs on structs and unions have been removed in keeping 6260114237Snjlwith the Linux coding style. 6261114237Snjl 6262114237SnjlRemoved the non-Linux SourceSafe module revision number from each 6263114237Snjlmodule header. 6264114237Snjl 6265114237SnjlCompleted major overhaul of symbols to be lowercased for linux. 6266114237SnjlDoubled the number of symbols that are lowercased. 6267114237Snjl 6268114237SnjlFixed a problem where identifiers within procedure headers and 6269114237Snjlwithin quotes were not fully lower cased (they were left with a 6270114237Snjlstarting capital.) 6271114237Snjl 6272114237SnjlSome C macros whose only purpose is to allow the generation of 16- 6273114237Snjlbit code are now completely removed in the Linux code, increasing 6274114237Snjlreadability and maintainability. 6275114237Snjl 6276114237Snjl---------------------------------------- 6277114237Snjl 6278114237Snjl12 December 2002. Summary of changes for version 20021212. 6279114237Snjl 6280114237Snjl 6281114237Snjl1) ACPI CA Core Subsystem: 6282114237Snjl 6283114237SnjlFixed a problem where the creation of a zero-length AML Buffer 6284114237Snjlwould cause a fault. 6285114237Snjl 6286193267SjkimFixed a problem where a Buffer object that pointed to a static AML 6287126372Snjlbuffer (in an ACPI table) could inadvertently be deleted, causing 6288126372Snjlmemory corruption. 6289114237Snjl 6290114237SnjlFixed a problem where a user buffer (passed in to the external 6291114237SnjlACPI CA interfaces) could be overwritten if the buffer was too 6292114237Snjlsmall to complete the operation, causing memory corruption. 6293114237Snjl 6294114237SnjlFixed a problem in the Buffer-to-String conversion code where a 6295114237Snjlstring of length one was always returned, regardless of the size 6296114237Snjlof the input Buffer object. 6297114237Snjl 6298114237SnjlRemoved the NATIVE_CHAR data type across the entire source due to 6299114237Snjllack of need and lack of consistent use. 6300114237Snjl 6301193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6302126372Snjlbelow. These are the code and data sizes for the acpica.lib 6303126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6304126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6305126372Snjlversion of the code includes the debug output trace mechanism and 6306193267Sjkimhas a much larger code and data size. Note that these values will 6307126372Snjlvary depending on the efficiency of the compiler and the compiler 6308126372Snjloptions used during generation. 6309114237Snjl 6310114237Snjl Previous Release 6311114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6312114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6313114237Snjl Current Release: 6314114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6315114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6316114237Snjl 6317114237Snjl 6318114237Snjl---------------------------------------- 6319114237Snjl05 December 2002. Summary of changes for version 20021205. 6320114237Snjl 6321114237Snjl1) ACPI CA Core Subsystem: 6322114237Snjl 6323114237SnjlFixed a problem where a store to a String or Buffer object could 6324114237Snjlcause corruption of the DSDT if the object type being stored was 6325114237Snjlthe same as the target object type and the length of the object 6326114237Snjlbeing stored was equal to or smaller than the original (existing) 6327114237Snjltarget object. This was seen to cause corruption of battery _BIF 6328114237Snjlbuffers if the _BIF method modified the buffer on the fly. 6329114237Snjl 6330193267SjkimFixed a problem where an internal error was generated if a control 6331126372Snjlmethod invocation was used in an OperationRegion, Buffer, or 6332126372SnjlPackage declaration. This was caused by the deferred parsing of 6333126372Snjlthe control method and thus the deferred creation of the internal 6334126372Snjlmethod object. The solution to this problem was to create the 6335126372Snjlinternal method object at the moment the method is encountered in 6336126372Snjlthe first pass - so that subsequent references to the method will 6337126372Snjlable to obtain the required parameter count and thus properly 6338126372Snjlparse the method invocation. This problem presented itself as an 6339126372SnjlAE_AML_INTERNAL during the pass 1 parse phase during table load. 6340114237Snjl 6341114237SnjlFixed a problem where the internal String object copy routine did 6342193267Sjkimnot always allocate sufficient memory for the target String object 6343126372Snjland caused memory corruption. This problem was seen to cause 6344126372Snjl"Allocation already present in list!" errors as memory allocation 6345126372Snjlbecame corrupted. 6346114237Snjl 6347193267SjkimImplemented a new function for the evaluation of namespace objects 6348126372Snjlthat allows the specification of the allowable return object 6349126372Snjltypes. This simplifies a lot of code that checks for a return 6350126372Snjlobject of one or more specific objects returned from the 6351114237Snjlevaluation (such as _STA, etc.) This may become and external 6352114237Snjlfunction if it would be useful to ACPI-related drivers. 6353114237Snjl 6354114237SnjlCompleted another round of prefixing #defines with "ACPI_" for 6355114237Snjlclarity. 6356114237Snjl 6357114237SnjlCompleted additional code restructuring to allow more modular 6358114237Snjllinking for iASL compiler and AcpiExec. Several files were split 6359114237Snjlcreating new files. New files: nsparse.c dsinit.c evgpe.c 6360114237Snjl 6361114237SnjlImplemented an abort mechanism to terminate an executing control 6362193267Sjkimmethod via the AML debugger. This feature is useful for debugging 6363126372Snjlcontrol methods that depend (wait) for specific hardware 6364126372Snjlresponses. 6365114237Snjl 6366193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6367126372Snjlbelow. These are the code and data sizes for the acpica.lib 6368126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6369126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6370126372Snjlversion of the code includes the debug output trace mechanism and 6371193267Sjkimhas a much larger code and data size. Note that these values will 6372126372Snjlvary depending on the efficiency of the compiler and the compiler 6373126372Snjloptions used during generation. 6374114237Snjl 6375114237Snjl Previous Release 6376114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6377114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6378114237Snjl Current Release: 6379114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6380114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6381114237Snjl 6382114237Snjl 6383114237Snjl2) iASL Compiler/Disassembler 6384114237Snjl 6385114237SnjlFixed a compiler code generation problem for "Interrupt" Resource 6386114237SnjlDescriptors. If specified in the ASL, the optional "Resource 6387114237SnjlSource Index" and "Resource Source" fields were not inserted into 6388114237Snjlthe correct location within the AML resource descriptor, creating 6389114237Snjlan invalid descriptor. 6390114237Snjl 6391193267SjkimFixed a disassembler problem for "Interrupt" resource descriptors. 6392126372SnjlThe optional "Resource Source Index" and "Resource Source" fields 6393126372Snjlwere ignored. 6394114237Snjl 6395114237Snjl 6396114237Snjl---------------------------------------- 6397114237Snjl22 November 2002. Summary of changes for version 20021122. 6398114237Snjl 6399114237Snjl 6400114237Snjl1) ACPI CA Core Subsystem: 6401114237Snjl 6402114237SnjlFixed a reported problem where an object stored to a Method Local 6403114237Snjlor Arg was not copied to a new object during the store - the 6404114237Snjlobject pointer was simply copied to the Local/Arg. This caused 6405114237Snjlall subsequent operations on the Local/Arg to also affect the 6406114237Snjloriginal source of the store operation. 6407114237Snjl 6408114237SnjlFixed a problem where a store operation to a Method Local or Arg 6409114237Snjlwas not completed properly if the Local/Arg contained a reference 6410114237Snjl(from RefOf) to a named field. The general-purpose store-to- 6411114237Snjlnamespace-node code is now used so that this case is handled 6412114237Snjlautomatically. 6413114237Snjl 6414193267SjkimFixed a problem where the internal object copy routine would cause 6415126372Snjla protection fault if the object being copied was a Package and 6416126372Snjlcontained either 1) a NULL package element or 2) a nested sub- 6417114237Snjlpackage. 6418114237Snjl 6419114237SnjlFixed a problem with the GPE initialization that resulted from an 6420114237Snjlambiguity in the ACPI specification. One section of the 6421114237Snjlspecification states that both the address and length of the GPE 6422193267Sjkimblock must be zero if the block is not supported. Another section 6423126372Snjlimplies that only the address need be zero if the block is not 6424193267Sjkimsupported. The code has been changed so that both the address and 6425126372Snjlthe length must be non-zero to indicate a valid GPE block (i.e., 6426126372Snjlif either the address or the length is zero, the GPE block is 6427126372Snjlinvalid.) 6428114237Snjl 6429193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6430126372Snjlbelow. These are the code and data sizes for the acpica.lib 6431126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6432126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6433126372Snjlversion of the code includes the debug output trace mechanism and 6434193267Sjkimhas a much larger code and data size. Note that these values will 6435126372Snjlvary depending on the efficiency of the compiler and the compiler 6436126372Snjloptions used during generation. 6437114237Snjl 6438114237Snjl Previous Release 6439114237Snjl Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6440114237Snjl Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6441114237Snjl Current Release: 6442114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6443114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6444114237Snjl 6445114237Snjl 6446114237Snjl2) Linux 6447114237Snjl 6448114237SnjlCleaned up EC driver. Exported an external EC read/write 6449114237Snjlinterface. By going through this, other drivers (most notably 6450114237Snjlsonypi) will be able to serialize access to the EC. 6451114237Snjl 6452114237Snjl 6453114237Snjl3) iASL Compiler/Disassembler 6454114237Snjl 6455114237SnjlImplemented support to optionally generate include files for both 6456114237SnjlASM and C (the -i switch). This simplifies BIOS development by 6457114237Snjlautomatically creating include files that contain external 6458114237Snjldeclarations for the symbols that are created within the 6459167802Sjkim 6460114237Snjl(optionally generated) ASM and C AML source files. 6461114237Snjl 6462114237Snjl 6463114237Snjl---------------------------------------- 6464107325Siwasaki15 November 2002. Summary of changes for version 20021115. 6465104470Siwasaki 6466107325Siwasaki1) ACPI CA Core Subsystem: 6467107325Siwasaki 6468114237SnjlFixed a memory leak problem where an error during resolution of 6469167802Sjkim 6470114237Snjlmethod arguments during a method invocation from another method 6471114237Snjlfailed to cleanup properly by deleting all successfully resolved 6472114237Snjlargument objects. 6473107325Siwasaki 6474114237SnjlFixed a problem where the target of the Index() operator was not 6475114237Snjlcorrectly constructed if the source object was a package. This 6476114237Snjlproblem has not been detected because the use of a target operand 6477114237Snjlwith Index() is very rare. 6478107325Siwasaki 6479107325SiwasakiFixed a problem with the Index() operator where an attempt was 6480107325Siwasakimade to delete the operand objects twice. 6481107325Siwasaki 6482107325SiwasakiFixed a problem where an attempt was made to delete an operand 6483114237Snjltwice during execution of the CondRefOf() operator if the target 6484114237Snjldid not exist. 6485107325Siwasaki 6486114237SnjlImplemented the first of perhaps several internal create object 6487193267Sjkimfunctions that create and initialize a specific object type. This 6488126372Snjlconsolidates duplicated code wherever the object is created, thus 6489126372Snjlshrinking the size of the subsystem. 6490107325Siwasaki 6491114237SnjlImplemented improved debug/error messages for errors that occur 6492114237Snjlduring nested method invocations. All executing method pathnames 6493193267Sjkimare displayed (with the error) as the call stack is unwound - thus 6494126372Snjlsimplifying debug. 6495107325Siwasaki 6496107325SiwasakiFixed a problem introduced in the 10/02 release that caused 6497114237Snjlpremature deletion of a buffer object if a buffer was used as an 6498114237SnjlASL operand where an integer operand is required (Thus causing an 6499193267Sjkimimplicit object conversion from Buffer to Integer.) The change in 6500126372Snjlthe 10/02 release was attempting to fix a memory leak (albeit 6501114237Snjlincorrectly.) 6502107325Siwasaki 6503193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6504126372Snjlbelow. These are the code and data sizes for the acpica.lib 6505126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6506126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6507126372Snjlversion of the code includes the debug output trace mechanism and 6508193267Sjkimhas a much larger code and data size. Note that these values will 6509126372Snjlvary depending on the efficiency of the compiler and the compiler 6510126372Snjloptions used during generation. 6511107325Siwasaki 6512107325Siwasaki Previous Release 6513107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6514107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6515107325Siwasaki Current Release: 6516107325Siwasaki Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6517107325Siwasaki Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6518107325Siwasaki 6519107325Siwasaki 6520107325Siwasaki2) Linux 6521107325Siwasaki 6522114237SnjlChanged the implementation of the ACPI semaphores to use down() 6523114237Snjlinstead of down_interruptable(). It is important that the 6524114237Snjlexecution of ACPI control methods not be interrupted by signals. 6525114237SnjlMethods must run to completion, or the system may be left in an 6526114237Snjlunknown/unstable state. 6527107325Siwasaki 6528193267SjkimFixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 6529126372Snjl(Shawn Starr) 6530107325Siwasaki 6531107325Siwasaki 6532107325Siwasaki3) iASL Compiler/Disassembler 6533107325Siwasaki 6534107325Siwasaki 6535114237SnjlChanged the default location of output files. All output files 6536114237Snjlare now placed in the current directory by default instead of in 6537114237Snjlthe directory of the source file. This change may affect some 6538114237Snjlexisting makefiles, but it brings the behavior of the compiler in 6539114237Snjlline with other similar tools. The location of the output files 6540114237Snjlcan be overridden with the -p command line switch. 6541107325Siwasaki 6542114237Snjl 6543107325Siwasaki---------------------------------------- 6544107325Siwasaki11 November 2002. Summary of changes for version 20021111. 6545107325Siwasaki 6546107325Siwasaki 6547114237Snjl0) ACPI Specification 2.0B is released and is now available at: 6548114237Snjlhttp://www.acpi.info/index.html 6549107325Siwasaki 6550107325Siwasaki 6551107325Siwasaki1) ACPI CA Core Subsystem: 6552107325Siwasaki 6553107325SiwasakiImplemented support for the ACPI 2.0 SMBus Operation Regions. 6554114237SnjlThis includes the early detection and handoff of the request to 6555114237Snjlthe SMBus region handler (avoiding all of the complex field 6556107325Siwasakisupport code), and support for the bidirectional return packet 6557107325Siwasakifrom an SMBus write operation. This paves the way for the 6558107325Siwasakidevelopment of SMBus drivers in each host operating system. 6559107325Siwasaki 6560107325SiwasakiFixed a problem where the semaphore WAIT_FOREVER constant was 6561107325Siwasakidefined as 32 bits, but must be 16 bits according to the ACPI 6562107325Siwasakispecification. This had the side effect of causing ASL 6563107325SiwasakiMutex/Event timeouts even though the ASL code requested a wait 6564107325Siwasakiforever. Changed all internal references to the ACPI timeout 6565193267Sjkimparameter to 16 bits to prevent future problems. Changed the name 6566126372Snjlof WAIT_FOREVER to ACPI_WAIT_FOREVER. 6567107325Siwasaki 6568193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6569126372Snjlbelow. These are the code and data sizes for the acpica.lib 6570126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6571126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6572126372Snjlversion of the code includes the debug output trace mechanism and 6573193267Sjkimhas a much larger code and data size. Note that these values will 6574126372Snjlvary depending on the efficiency of the compiler and the compiler 6575126372Snjloptions used during generation. 6576107325Siwasaki 6577107325Siwasaki Previous Release 6578107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6579107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6580107325Siwasaki Current Release: 6581107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6582107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6583107325Siwasaki 6584107325Siwasaki 6585107325Siwasaki2) Linux 6586107325Siwasaki 6587107325SiwasakiModule loading/unloading fixes (John Cagle) 6588107325Siwasaki 6589107325Siwasaki 6590107325Siwasaki3) iASL Compiler/Disassembler 6591107325Siwasaki 6592107325SiwasakiAdded support for the SMBBlockProcessCall keyword (ACPI 2.0) 6593107325Siwasaki 6594107325SiwasakiImplemented support for the disassembly of all SMBus protocol 6595107325Siwasakikeywords (SMBQuick, SMBWord, etc.) 6596107325Siwasaki 6597107325Siwasaki---------------------------------------- 6598107325Siwasaki01 November 2002. Summary of changes for version 20021101. 6599107325Siwasaki 6600107325Siwasaki 6601107325Siwasaki1) ACPI CA Core Subsystem: 6602107325Siwasaki 6603193267SjkimFixed a problem where platforms that have a GPE1 block but no GPE0 6604126372Snjlblock were not handled correctly. This resulted in a "GPE 6605114237Snjloverlap" error message. GPE0 is no longer required. 6606107325Siwasaki 6607107325SiwasakiRemoved code added in the previous release that inserted nodes 6608114237Snjlinto the namespace in alphabetical order. This caused some side- 6609114237Snjleffects on various machines. The root cause of the problem is 6610114237Snjlstill under investigation since in theory, the internal ordering 6611114237Snjlof the namespace nodes should not matter. 6612107325Siwasaki 6613107325Siwasaki 6614114237SnjlEnhanced error reporting for the case where a named object is not 6615114237Snjlfound during control method execution. The full ACPI namepath 6616114237Snjl(name reference) of the object that was not found is displayed in 6617114237Snjlthis case. 6618107325Siwasaki 6619193267SjkimNote: as a result of the overhaul of the namespace object types in 6620126372Snjlthe previous release, the namespace nodes for the predefined 6621114237Snjlscopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 6622114237Snjlinstead of ACPI_TYPE_ANY. This simplifies the namespace 6623114237Snjlmanagement code but may affect code that walks the namespace tree 6624114237Snjllooking for specific object types. 6625114237Snjl 6626193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6627126372Snjlbelow. These are the code and data sizes for the acpica.lib 6628126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6629126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6630126372Snjlversion of the code includes the debug output trace mechanism and 6631193267Sjkimhas a much larger code and data size. Note that these values will 6632126372Snjlvary depending on the efficiency of the compiler and the compiler 6633126372Snjloptions used during generation. 6634107325Siwasaki 6635107325Siwasaki Previous Release 6636107325Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6637107325Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6638107325Siwasaki Current Release: 6639107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6640107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6641107325Siwasaki 6642107325Siwasaki 6643107325Siwasaki2) Linux 6644107325Siwasaki 6645107325SiwasakiFixed a problem introduced in the previous release where the 6646193267SjkimProcessor and Thermal objects were not recognized and installed in 6647193267Sjkim/proc. This was related to the scope type change described above. 6648107325Siwasaki 6649107325Siwasaki 6650107325Siwasaki3) iASL Compiler/Disassembler 6651107325Siwasaki 6652114237SnjlImplemented the -g option to get all of the required ACPI tables 6653114237Snjlfrom the registry and save them to files (Windows version of the 6654193267Sjkimcompiler only.) The required tables are the FADT, FACS, and DSDT. 6655107325Siwasaki 6656114237SnjlAdded ACPI table checksum validation during table disassembly in 6657114237Snjlorder to catch corrupted tables. 6658107325Siwasaki 6659107325Siwasaki 6660107325Siwasaki---------------------------------------- 6661107325Siwasaki22 October 2002. Summary of changes for version 20021022. 6662107325Siwasaki 6663107325Siwasaki1) ACPI CA Core Subsystem: 6664107325Siwasaki 6665114237SnjlImplemented a restriction on the Scope operator that the target 6666114237Snjlmust already exist in the namespace at the time the operator is 6667114237Snjlencountered (during table load or method execution). In other 6668114237Snjlwords, forward references are not allowed and Scope() cannot 6669114237Snjlcreate a new object. This changes the previous behavior where the 6670193267Sjkiminterpreter would create the name if not found. This new behavior 6671126372Snjlcorrectly enables the search-to-root algorithm during namespace 6672126372Snjllookup of the target name. Because of this upsearch, this fixes 6673126372Snjlthe known Compaq _SB_.OKEC problem and makes both the AML 6674126372Snjlinterpreter and iASL compiler compatible with other ACPI 6675114237Snjlimplementations. 6676107325Siwasaki 6677114237SnjlCompleted a major overhaul of the internal ACPI object types for 6678114237Snjlthe ACPI Namespace and the associated operand objects. Many of 6679114237Snjlthese types had become obsolete with the introduction of the two- 6680114237Snjlpass namespace load. This cleanup simplifies the code and makes 6681114237Snjlthe entire namespace load mechanism much clearer and easier to 6682114237Snjlunderstand. 6683107325Siwasaki 6684114237SnjlImproved debug output for tracking scope opening/closing to help 6685114237Snjldiagnose scoping issues. The old scope name as well as the new 6686114237Snjlscope name are displayed. Also improved error messages for 6687114237Snjlproblems with ASL Mutex objects and error messages for GPE 6688114237Snjlproblems. 6689107325Siwasaki 6690107325SiwasakiCleaned up the namespace dump code, removed obsolete code. 6691107325Siwasaki 6692114237SnjlAll string output (for all namespace/object dumps) now uses the 6693193267Sjkimcommon ACPI string output procedure which handles escapes properly 6694126372Snjland does not emit non-printable characters. 6695107325Siwasaki 6696107325SiwasakiFixed some issues with constants in the 64-bit version of the 6697107325Siwasakilocal C library (utclib.c) 6698107325Siwasaki 6699107325Siwasaki 6700107325Siwasaki2) Linux 6701107325Siwasaki 6702107325SiwasakiEC Driver: No longer attempts to acquire the Global Lock at 6703107325Siwasakiinterrupt level. 6704107325Siwasaki 6705107325Siwasaki 6706107325Siwasaki3) iASL Compiler/Disassembler 6707107325Siwasaki 6708193267SjkimImplemented ACPI 2.0B grammar change that disallows all Type 1 and 6709126372Snjl2 opcodes outside of a control method. This means that the 6710114237Snjl"executable" operators (versus the "namespace" operators) cannot 6711193267Sjkimbe used at the table level; they can only be used within a control 6712126372Snjlmethod. 6713107325Siwasaki 6714107325SiwasakiImplemented the restriction on the Scope() operator where the 6715107325Siwasakitarget must already exist in the namespace at the time the 6716114237Snjloperator is encountered (during ASL compilation). In other words, 6717193267Sjkimforward references are not allowed and Scope() cannot create a new 6718126372Snjlobject. This makes the iASL compiler compatible with other ACPI 6719193267Sjkimimplementations and makes the Scope() implementation adhere to the 6720126372SnjlACPI specification. 6721107325Siwasaki 6722193267SjkimFixed a problem where namepath optimization for the Alias operator 6723193267Sjkimwas optimizing the wrong path (of the two namepaths.) This caused 6724126372Snjla "Missing alias link" error message. 6725107325Siwasaki 6726114237SnjlFixed a problem where an "unknown reserved name" warning could be 6727114237Snjlincorrectly generated for names like "_SB" when the trailing 6728114237Snjlunderscore is not used in the original ASL. 6729107325Siwasaki 6730107325SiwasakiFixed a problem where the reserved name check did not handle 6731114237SnjlNamePaths with multiple NameSegs correctly. The first nameseg of 6732114237Snjlthe NamePath was examined instead of the last NameSeg. 6733107325Siwasaki 6734107325Siwasaki 6735107325Siwasaki---------------------------------------- 6736107325Siwasaki 6737104470Siwasaki02 October 2002. Summary of changes for this release. 6738104470Siwasaki 6739104470Siwasaki 6740104470Siwasaki1) ACPI CA Core Subsystem version 20021002: 6741104470Siwasaki 6742104470SiwasakiFixed a problem where a store/copy of a string to an existing 6743193267Sjkimstring did not always set the string length properly in the String 6744126372Snjlobject. 6745104470Siwasaki 6746104470SiwasakiFixed a reported problem with the ToString operator where the 6747193267Sjkimbehavior was identical to the ToHexString operator instead of just 6748126372Snjlsimply converting a raw buffer to a string data type. 6749104470Siwasaki 6750104470SiwasakiFixed a problem where CopyObject and the other "explicit" 6751193267Sjkimconversion operators were not updating the internal namespace node 6752126372Snjltype as part of the store operation. 6753104470Siwasaki 6754104470SiwasakiFixed a memory leak during implicit source operand conversion 6755193267Sjkimwhere the original object was not deleted if it was converted to a 6756126372Snjlnew object of a different type. 6757104470Siwasaki 6758193267SjkimEnhanced error messages for all problems associated with namespace 6759193267Sjkimlookups. Common procedure generates and prints the lookup name as 6760126372Snjlwell as the formatted status. 6761104470Siwasaki 6762104470SiwasakiCompleted implementation of a new design for the Alias support 6763193267Sjkimwithin the namespace. The existing design did not handle the case 6764193267Sjkimwhere a new object was assigned to one of the two names due to the 6765193267Sjkimuse of an explicit conversion operator, resulting in the two names 6766126372Snjlpointing to two different objects. The new design simply points 6767126372Snjlthe Alias name to the original name node - not to the object. 6768193267SjkimThis results in a level of indirection that must be handled in the 6769126372Snjlname resolution mechanism. 6770104470Siwasaki 6771193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6772126372Snjlbelow. These are the code and data sizes for the acpica.lib 6773126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6774126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6775126372Snjlversion of the code includes the debug output trace mechanism and 6776193267Sjkimhas a larger code and data size. Note that these values will vary 6777126372Snjldepending on the efficiency of the compiler and the compiler 6778126372Snjloptions used during generation. 6779104470Siwasaki 6780104470Siwasaki Previous Release 6781104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 6782104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 6783104470Siwasaki Current Release: 6784104470Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6785104470Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6786104470Siwasaki 6787104470Siwasaki 6788104470Siwasaki2) Linux 6789104470Siwasaki 6790104470SiwasakiInitialize thermal driver's timer before it is used. (Knut 6791104470SiwasakiNeumann) 6792104470Siwasaki 6793104470SiwasakiAllow handling negative celsius values. (Kochi Takayoshi) 6794104470Siwasaki 6795114237SnjlFix thermal management and make trip points. R/W (Pavel Machek) 6796104470Siwasaki 6797104470SiwasakiFix /proc/acpi/sleep. (P. Christeas) 6798104470Siwasaki 6799104470SiwasakiIA64 fixes. (David Mosberger) 6800104470Siwasaki 6801104470SiwasakiFix reversed logic in blacklist code. (Sergio Monteiro Basto) 6802104470Siwasaki 6803104470SiwasakiReplace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 6804104470SiwasakiBrodowski) 6805104470Siwasaki 6806104470Siwasaki 6807104470Siwasaki3) iASL Compiler/Disassembler 6808104470Siwasaki 6809104470SiwasakiClarified some warning/error messages. 6810104470Siwasaki 6811104470Siwasaki 6812104470Siwasaki---------------------------------------- 6813104470Siwasaki18 September 2002. Summary of changes for this release. 6814104470Siwasaki 6815104470Siwasaki 6816104470Siwasaki1) ACPI CA Core Subsystem version 20020918: 6817104470Siwasaki 6818114237SnjlFixed a reported problem with reference chaining (via the Index() 6819193267Sjkimand RefOf() operators) in the ObjectType() and SizeOf() operators. 6820126372SnjlThe definition of these operators includes the dereferencing of 6821126372Snjlall chained references to return information on the base object. 6822104470Siwasaki 6823104470SiwasakiFixed a problem with stores to indexed package elements - the 6824104470Siwasakiexisting code would not complete the store if an "implicit 6825114237Snjlconversion" was not performed. In other words, if the existing 6826114237Snjlobject (package element) was to be replaced completely, the code 6827114237Snjldidn't handle this case. 6828104470Siwasaki 6829104470SiwasakiRelaxed typechecking on the ASL "Scope" operator to allow the 6830104470Siwasakitarget name to refer to an object of type Integer, String, or 6831104470SiwasakiBuffer, in addition to the scoping object types (Device, 6832104470Siwasakipredefined Scopes, Processor, PowerResource, and ThermalZone.) 6833114237SnjlThis allows existing AML code that has workarounds for a bug in 6834193267SjkimWindows to function properly. A warning is issued, however. This 6835126372Snjlaffects both the AML interpreter and the iASL compiler. Below is 6836126372Snjlan example of this type of ASL code: 6837104470Siwasaki 6838104470Siwasaki Name(DEB,0x00) 6839104470Siwasaki Scope(DEB) 6840104470Siwasaki { 6841104470Siwasaki 6842114237SnjlFixed some reported problems with 64-bit integer support in the 6843114237Snjllocal implementation of C library functions (clib.c) 6844104470Siwasaki 6845104470Siwasaki 6846104470Siwasaki2) Linux 6847104470Siwasaki 6848104470SiwasakiUse ACPI fix map region instead of IOAPIC region, since it is 6849104470Siwasakiundefined in non-SMP. 6850104470Siwasaki 6851114237SnjlEnsure that the SCI has the proper polarity and trigger, even on 6852114237Snjlsystems that do not have an interrupt override entry in the MADT. 6853104470Siwasaki 6854104470Siwasaki2.5 big driver reorganization (Pat Mochel) 6855104470Siwasaki 6856104470SiwasakiUse early table mapping code from acpitable.c (Andi Kleen) 6857104470Siwasaki 6858104470SiwasakiNew blacklist entries (Andi Kleen) 6859104470Siwasaki 6860114237SnjlBlacklist improvements. Split blacklist code out into a separate 6861114237Snjlfile. Move checking the blacklist to very early. Previously, we 6862114237Snjlwould use ACPI tables, and then halfway through init, check the 6863114237Snjlblacklist -- too late. Now, it's early enough to completely fall- 6864114237Snjlback to non-ACPI. 6865104470Siwasaki 6866104470Siwasaki 6867104470Siwasaki3) iASL Compiler/Disassembler version 20020918: 6868104470Siwasaki 6869114237SnjlFixed a problem where the typechecking code didn't know that an 6870114237Snjlalias could point to a method. In other words, aliases were not 6871114237Snjlbeing dereferenced during typechecking. 6872104470Siwasaki 6873104470Siwasaki 6874104470Siwasaki---------------------------------------- 6875104470Siwasaki29 August 2002. Summary of changes for this release. 6876104470Siwasaki 6877104470Siwasaki1) ACPI CA Core Subsystem Version 20020829: 6878104470Siwasaki 6879114237SnjlIf the target of a Scope() operator already exists, it must be an 6880114237Snjlobject type that actually opens a scope -- such as a Device, 6881193267SjkimMethod, Scope, etc. This is a fatal runtime error. Similar error 6882126372Snjlcheck has been added to the iASL compiler also. 6883104470Siwasaki 6884114237SnjlTightened up the namespace load to disallow multiple names in the 6885114237Snjlsame scope. This previously was allowed if both objects were of 6886114237Snjlthe same type. (i.e., a lookup was the same as entering a new 6887114237Snjlname). 6888104470Siwasaki 6889104470Siwasaki 6890104470Siwasaki2) Linux 6891104470Siwasaki 6892104470SiwasakiEnsure that the ACPI interrupt has the proper trigger and 6893104470Siwasakipolarity. 6894104470Siwasaki 6895104470Siwasakilocal_irq_disable is extraneous. (Matthew Wilcox) 6896104470Siwasaki 6897104470SiwasakiMake "acpi=off" actually do what it says, and not use the ACPI 6898104470Siwasakiinterpreter *or* the tables. 6899104470Siwasaki 6900193267SjkimAdded arch-neutral support for parsing SLIT and SRAT tables (Kochi 6901126372SnjlTakayoshi) 6902104470Siwasaki 6903104470Siwasaki 6904104470Siwasaki3) iASL Compiler/Disassembler Version 20020829: 6905104470Siwasaki 6906104470SiwasakiImplemented namepath optimization for name declarations. For 6907104470Siwasakiexample, a declaration like "Method (\_SB_.ABCD)" would get 6908104470Siwasakioptimized to "Method (ABCD)" if the declaration is within the 6909104470Siwasaki\_SB_ scope. This optimization is in addition to the named 6910104470Siwasakireference path optimization first released in the previous 6911114237Snjlversion. This would seem to complete all possible optimizations 6912114237Snjlfor namepaths within the ASL/AML. 6913104470Siwasaki 6914114237SnjlIf the target of a Scope() operator already exists, it must be an 6915114237Snjlobject type that actually opens a scope -- such as a Device, 6916114237SnjlMethod, Scope, etc. 6917104470Siwasaki 6918114237SnjlImplemented a check and warning for unreachable code in the same 6919114237Snjlblock below a Return() statement. 6920104470Siwasaki 6921114237SnjlFixed a problem where the listing file was not generated if the 6922114237Snjlcompiler aborted if the maximum error count was exceeded (200). 6923104470Siwasaki 6924193267SjkimFixed a problem where the typechecking of method return values was 6925126372Snjlbroken. This includes the check for a return value when the 6926114237Snjlmethod is invoked as a TermArg (a return value is expected.) 6927104470Siwasaki 6928104470SiwasakiFixed a reported problem where EOF conditions during a quoted 6929104470Siwasakistring or comment caused a fault. 6930104470Siwasaki 6931104470Siwasaki 6932104470Siwasaki---------------------------------------- 6933102550Siwasaki15 August 2002. Summary of changes for this release. 6934102550Siwasaki 6935102550Siwasaki1) ACPI CA Core Subsystem Version 20020815: 6936102550Siwasaki 6937114237SnjlFixed a reported problem where a Store to a method argument that 6938193267Sjkimcontains a reference did not perform the indirect store correctly. 6939126372SnjlThis problem was created during the conversion to the new 6940126372Snjlreference object model - the indirect store to a method argument 6941126372Snjlcode was not updated to reflect the new model. 6942102550Siwasaki 6943114237SnjlReworked the ACPI mode change code to better conform to ACPI 2.0, 6944193267Sjkimhandle corner cases, and improve code legibility (Kochi Takayoshi) 6945102550Siwasaki 6946102550SiwasakiFixed a problem with the pathname parsing for the carat (^) 6947114237Snjlprefix. The heavy use of the carat operator by the new namepath 6948193267Sjkimoptimization in the iASL compiler uncovered a problem with the AML 6949126372Snjlinterpreter handling of this prefix. In the case where one or 6950126372Snjlmore carats precede a single nameseg, the nameseg was treated as 6951126372Snjlstandalone and the search rule (to root) was inadvertently 6952114237Snjlapplied. This could cause both the iASL compiler and the 6953114237Snjlinterpreter to find the wrong object or to miss the error that 6954114237Snjlshould occur if the object does not exist at that exact pathname. 6955102550Siwasaki 6956114237SnjlFound and fixed the problem where the HP Pavilion DSDT would not 6957193267Sjkimload. This was a relatively minor tweak to the table loading code 6958126372Snjl(a problem caused by the unexpected encounter with a method 6959193267Sjkiminvocation not within a control method), but it does not solve the 6960126372Snjloverall issue of the execution of AML code at the table level. 6961126372SnjlThis investigation is still ongoing. 6962102550Siwasaki 6963193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6964126372Snjlbelow. These are the code and data sizes for the acpica.lib 6965126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6966126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6967126372Snjlversion of the code includes the debug output trace mechanism and 6968193267Sjkimhas a larger code and data size. Note that these values will vary 6969126372Snjldepending on the efficiency of the compiler and the compiler 6970126372Snjloptions used during generation. 6971102550Siwasaki 6972102550Siwasaki Previous Release 6973104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 6974104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 6975102550Siwasaki Current Release: 6976104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 6977104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 6978102550Siwasaki 6979102550Siwasaki 6980102550Siwasaki2) Linux 6981102550Siwasaki 6982102550SiwasakiRemove redundant slab.h include (Brad Hards) 6983102550Siwasaki 6984102550SiwasakiFix several bugs in thermal.c (Herbert Nachtnebel) 6985102550Siwasaki 6986102550SiwasakiMake CONFIG_ACPI_BOOT work properly (Pavel Machek) 6987102550Siwasaki 6988104470SiwasakiChange acpi_system_suspend to use updated irq functions (Pavel 6989104470SiwasakiMachek) 6990102550Siwasaki 6991102550SiwasakiExport acpi_get_firmware_table (Matthew Wilcox) 6992102550Siwasaki 6993102550SiwasakiUse proper root proc entry for ACPI (Kochi Takayoshi) 6994102550Siwasaki 6995102550SiwasakiFix early-boot table parsing (Bjorn Helgaas) 6996102550Siwasaki 6997102550Siwasaki 6998102550Siwasaki3) iASL Compiler/Disassembler 6999102550Siwasaki 7000114237SnjlReworked the compiler options to make them more consistent and to 7001114237Snjluse two-letter options where appropriate. We were running out of 7002114237Snjlsensible letters. This may break some makefiles, so check the 7003114237Snjlcurrent options list by invoking the compiler with no parameters. 7004102550Siwasaki 7005102550SiwasakiCompleted the design and implementation of the ASL namepath 7006114237Snjloptimization option for the compiler. This option optimizes all 7007114237Snjlreferences to named objects to the shortest possible path. The 7008193267Sjkimfirst attempt tries to utilize a single nameseg (4 characters) and 7009126372Snjlthe "search-to-root" algorithm used by the interpreter. If that 7010126372Snjlcannot be used (because either the name is not in the search path 7011126372Snjlor there is a conflict with another object with the same name), 7012126372Snjlthe pathname is optimized using the carat prefix (usually a 7013126372Snjlshorter string than specifying the entire path from the root.) 7014102550Siwasaki 7015114237SnjlImplemented support to obtain the DSDT from the Windows registry 7016114237Snjl(when the disassembly option is specified with no input file). 7017114237SnjlAdded this code as the implementation for AcpiOsTableOverride in 7018114237Snjlthe Windows OSL. Migrated the 16-bit code (used in the AcpiDump 7019114237Snjlutility) to scan memory for the DSDT to the AcpiOsTableOverride 7020114237Snjlfunction in the DOS OSL to make the disassembler truly OS 7021114237Snjlindependent. 7022102550Siwasaki 7023114237SnjlImplemented a new option to disassemble and compile in one step. 7024114237SnjlWhen used without an input filename, this option will grab the 7025193267SjkimDSDT from the local machine, disassemble it, and compile it in one 7026126372Snjlstep. 7027102550Siwasaki 7028114237SnjlAdded a warning message for invalid escapes (a backslash followed 7029114237Snjlby any character other than the allowable escapes). This catches 7030114237Snjlthe quoted string error "\_SB_" (which should be "\\_SB_" ). 7031167802Sjkim 7032193267SjkimAlso, there are numerous instances in the ACPI specification where 7033126372Snjlthis error occurs. 7034102550Siwasaki 7035104470SiwasakiAdded a compiler option to disable all optimizations. This is 7036114237Snjlbasically the "compatibility mode" because by using this option, 7037114237Snjlthe AML code will come out exactly the same as other ASL 7038114237Snjlcompilers. 7039102550Siwasaki 7040114237SnjlAdded error messages for incorrectly ordered dependent resource 7041114237Snjlfunctions. This includes: missing EndDependentFn macro at end of 7042114237Snjldependent resource list, nested dependent function macros (both 7043114237Snjlstart and end), and missing StartDependentFn macro. These are 7044114237Snjlcommon errors that should be caught at compile time. 7045102550Siwasaki 7046114237SnjlImplemented _OSI support for the disassembler and compiler. _OSI 7047114237Snjlmust be included in the namespace for proper disassembly (because 7048114237Snjlthe disassembler must know the number of arguments.) 7049102550Siwasaki 7050104470SiwasakiAdded an "optimization" message type that is optional (off by 7051114237Snjldefault). This message is used for all optimizations - including 7052193267Sjkimconstant folding, integer optimization, and namepath optimization. 7053102550Siwasaki 7054102550Siwasaki---------------------------------------- 7055102550Siwasaki25 July 2002. Summary of changes for this release. 7056102550Siwasaki 7057102550Siwasaki 7058102550Siwasaki1) ACPI CA Core Subsystem Version 20020725: 7059102550Siwasaki 7060114237SnjlThe AML Disassembler has been enhanced to produce compilable ASL 7061193267Sjkimcode and has been integrated into the iASL compiler (see below) as 7062126372Snjlwell as the single-step disassembly for the AML debugger and the 7063126372Snjldisassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 7064126372Snjlresource templates and macros are fully supported. The 7065114237Snjldisassembler has been tested on over 30 different AML files, 7066114237Snjlproducing identical AML when the resulting disassembled ASL file 7067114237Snjlis recompiled with the same ASL compiler. 7068102550Siwasaki 7069114237SnjlModified the Resource Manager to allow zero interrupts and zero 7070114237Snjldma channels during the GetCurrentResources call. This was 7071114237Snjlcausing problems on some platforms. 7072102550Siwasaki 7073114237SnjlAdded the AcpiOsRedirectOutput interface to the OSL to simplify 7074114237Snjloutput redirection for the AcpiOsPrintf and AcpiOsVprintf 7075114237Snjlinterfaces. 7076102550Siwasaki 7077193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7078126372Snjlbelow. These are the code and data sizes for the acpica.lib 7079126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7080126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7081126372Snjlversion of the code includes the debug output trace mechanism and 7082193267Sjkimhas a larger code and data size. Note that these values will vary 7083126372Snjldepending on the efficiency of the compiler and the compiler 7084126372Snjloptions used during generation. 7085102550Siwasaki 7086102550Siwasaki Previous Release 7087104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7088104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7089102550Siwasaki Current Release: 7090104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 7091104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 7092102550Siwasaki 7093102550Siwasaki 7094102550Siwasaki2) Linux 7095102550Siwasaki 7096102550SiwasakiFixed a panic in the EC driver (Dominik Brodowski) 7097102550Siwasaki 7098114237SnjlImplemented checksum of the R/XSDT itself during Linux table scan 7099114237Snjl(Richard Schaal) 7100102550Siwasaki 7101102550Siwasaki 7102102550Siwasaki3) iASL compiler 7103102550Siwasaki 7104114237SnjlThe AML disassembler is integrated into the compiler. The "-d" 7105114237Snjloption invokes the disassembler to completely disassemble an 7106114237Snjlinput AML file, producing as output a text ASL file with the 7107114237Snjlextension ".dsl" (to avoid name collisions with existing .asl 7108114237Snjlsource files.) A future enhancement will allow the disassembler 7109114237Snjlto obtain the BIOS DSDT from the registry under Windows. 7110102550Siwasaki 7111102550SiwasakiFixed a problem with the VendorShort and VendorLong resource 7112102550Siwasakidescriptors where an invalid AML sequence was created. 7113102550Siwasaki 7114114237SnjlImplemented a fix for BufferData term in the ASL parser. It was 7115114237Snjlinadvertently defined twice, allowing invalid syntax to pass and 7116114237Snjlcausing reduction conflicts. 7117102550Siwasaki 7118104470SiwasakiFixed a problem where the Ones opcode could get converted to a 7119193267Sjkimvalue of zero if "Ones" was used where a byte, word or dword value 7120126372Snjlwas expected. The 64-bit value is now truncated to the correct 7121126372Snjlsize with the correct value. 7122102550Siwasaki 7123102550Siwasaki 7124167802Sjkim 7125102550Siwasaki---------------------------------------- 7126102550Siwasaki02 July 2002. Summary of changes for this release. 7127102550Siwasaki 7128102550Siwasaki 7129102550Siwasaki1) ACPI CA Core Subsystem Version 20020702: 7130102550Siwasaki 7131114237SnjlThe Table Manager code has been restructured to add several new 7132114237Snjlfeatures. Tables that are not required by the core subsystem 7133114237Snjl(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 7134193267Sjkimvalidated in any way and are returned from AcpiGetFirmwareTable if 7135126372Snjlrequested. The AcpiOsTableOverride interface is now called for 7136126372Snjleach table that is loaded by the subsystem in order to allow the 7137126372Snjlhost to override any table it chooses. Previously, only the DSDT 7138126372Snjlcould be overridden. Added one new files, tbrsdt.c and 7139114237Snjltbgetall.c. 7140102550Siwasaki 7141193267SjkimFixed a problem with the conversion of internal package objects to 7142126372Snjlexternal objects (when a package is returned from a control 7143114237Snjlmethod.) The return buffer length was set to zero instead of the 7144114237Snjlproper length of the package object. 7145102550Siwasaki 7146104470SiwasakiFixed a reported problem with the use of the RefOf and DeRefOf 7147114237Snjloperators when passing reference arguments to control methods. A 7148114237Snjlnew type of Reference object is used internally for references 7149114237Snjlproduced by the RefOf operator. 7150102550Siwasaki 7151193267SjkimAdded additional error messages in the Resource Manager to explain 7152126372SnjlAE_BAD_DATA errors when they occur during resource parsing. 7153102550Siwasaki 7154104470SiwasakiSplit the AcpiEnableSubsystem into two primitives to enable a 7155193267Sjkimfiner granularity initialization sequence. These two calls should 7156126372Snjlbe called in this order: AcpiEnableSubsystem (flags), 7157114237SnjlAcpiInitializeObjects (flags). The flags parameter remains the 7158114237Snjlsame. 7159102550Siwasaki 7160102550Siwasaki 7161102550Siwasaki2) Linux 7162102550Siwasaki 7163114237SnjlUpdated the ACPI utilities module to understand the new style of 7164193267Sjkimfully resolved package objects that are now returned from the core 7165126372Snjlsubsystem. This eliminates errors of the form: 7166102550Siwasaki 7167102550Siwasaki ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 7168102550Siwasaki acpi_utils-0430 [145] acpi_evaluate_reference: 7169102550Siwasaki Invalid element in package (not a device reference) 7170102550Siwasaki 7171102550SiwasakiThe method evaluation utility uses the new buffer allocation 7172102550Siwasakischeme instead of calling AcpiEvaluate Object twice. 7173102550Siwasaki 7174102550SiwasakiAdded support for ECDT. This allows the use of the Embedded 7175167802Sjkim 7176114237SnjlController before the namespace has been fully initialized, which 7177114237Snjlis necessary for ACPI 2.0 support, and for some laptops to 7178114237Snjlinitialize properly. (Laptops using ECDT are still rare, so only 7179114237Snjllimited testing was performed of the added functionality.) 7180102550Siwasaki 7181102550SiwasakiFixed memory leaks in the EC driver. 7182102550Siwasaki 7183102550SiwasakiEliminated a brittle code structure in acpi_bus_init(). 7184102550Siwasaki 7185114237SnjlEliminated the acpi_evaluate() helper function in utils.c. It is 7186114237Snjlno longer needed since acpi_evaluate_object can optionally 7187104470Siwasakiallocate memory for the return object. 7188102550Siwasaki 7189193267SjkimImplemented fix for keyboard hang when getting battery readings on 7190126372Snjlsome systems (Stephen White) 7191102550Siwasaki 7192102550SiwasakiPCI IRQ routing update (Dominik Brodowski) 7193102550Siwasaki 7194114237SnjlFix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 7195114237Snjlsupport 7196102550Siwasaki 7197102550Siwasaki---------------------------------------- 7198102550Siwasaki11 June 2002. Summary of changes for this release. 7199102550Siwasaki 7200102550Siwasaki 7201102550Siwasaki1) ACPI CA Core Subsystem Version 20020611: 7202102550Siwasaki 7203104470SiwasakiFixed a reported problem where constants such as Zero and One 7204114237Snjlappearing within _PRT packages were not handled correctly within 7205114237Snjlthe resource manager code. Originally reported against the ASL 7206114237Snjlcompiler because the code generator now optimizes integers to 7207193267Sjkimtheir minimal AML representation (i.e. AML constants if possible.) 7208126372SnjlThe _PRT code now handles all AML constant opcodes correctly 7209126372Snjl(Zero, One, Ones, Revision). 7210102550Siwasaki 7211102550SiwasakiFixed a problem with the Concatenate operator in the AML 7212193267Sjkiminterpreter where a buffer result object was incorrectly marked as 7213126372Snjlnot fully evaluated, causing a run-time error of AE_AML_INTERNAL. 7214102550Siwasaki 7215104470SiwasakiAll package sub-objects are now fully resolved before they are 7216114237Snjlreturned from the external ACPI interfaces. This means that name 7217114237Snjlstrings are resolved to object handles, and constant operators 7218114237Snjl(Zero, One, Ones, Revision) are resolved to Integers. 7219102550Siwasaki 7220102550SiwasakiImplemented immediate resolution of the AML Constant opcodes 7221104470Siwasaki(Zero, One, Ones, Revision) to Integer objects upon detection 7222104470Siwasakiwithin the AML stream. This has simplified and reduced the 7223104470Siwasakigenerated code size of the subsystem by eliminating about 10 7224104470Siwasakiswitch statements for these constants (which previously were 7225193267Sjkimcontained in Reference objects.) The complicating issues are that 7226126372Snjlthe Zero opcode is used as a "placeholder" for unspecified 7227193267Sjkimoptional target operands and stores to constants are defined to be 7228126372Snjlno-ops. 7229102550Siwasaki 7230193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7231126372Snjlbelow. These are the code and data sizes for the acpica.lib 7232114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7233114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7234114237Snjlversion of the code includes the debug output trace mechanism and 7235193267Sjkimhas a larger code and data size. Note that these values will vary 7236126372Snjldepending on the efficiency of the compiler and the compiler 7237114237Snjloptions used during generation. 7238102550Siwasaki 7239102550Siwasaki Previous Release 7240104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7241104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7242102550Siwasaki Current Release: 7243104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7244104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7245102550Siwasaki 7246102550Siwasaki 7247102550Siwasaki2) Linux 7248102550Siwasaki 7249167802Sjkim 7250104470SiwasakiAdded preliminary support for obtaining _TRA data for PCI root 7251104470Siwasakibridges (Bjorn Helgaas). 7252102550Siwasaki 7253102550Siwasaki 7254102550Siwasaki3) iASL Compiler Version X2046: 7255102550Siwasaki 7256193267SjkimFixed a problem where the "_DDN" reserved name was defined to be a 7257126372Snjlcontrol method with one argument. There are no arguments, and 7258114237Snjl_DDN does not have to be a control method. 7259102550Siwasaki 7260114237SnjlFixed a problem with the Linux version of the compiler where the 7261114237Snjlsource lines printed with error messages were the wrong lines. 7262114237SnjlThis turned out to be the "LF versus CR/LF" difference between 7263114237SnjlWindows and Unix. This appears to be the longstanding issue 7264114237Snjlconcerning listing output and error messages. 7265102550Siwasaki 7266114237SnjlFixed a problem with the Linux version of compiler where opcode 7267114237Snjlnames within error messages were wrong. This was caused by a 7268114237Snjlslight difference in the output of the Flex tool on Linux versus 7269114237SnjlWindows. 7270102550Siwasaki 7271193267SjkimFixed a problem with the Linux compiler where the hex output files 7272126372Snjlcontained some garbage data caused by an internal buffer overrun. 7273102550Siwasaki 7274102550Siwasaki 7275102550Siwasaki---------------------------------------- 7276102550Siwasaki17 May 2002. Summary of changes for this release. 7277102550Siwasaki 7278102550Siwasaki 7279102550Siwasaki1) ACPI CA Core Subsystem Version 20020517: 7280102550Siwasaki 7281102550SiwasakiImplemented a workaround to an BIOS bug discovered on the HP 7282104470SiwasakiOmniBook where the FADT revision number and the table size are 7283193267Sjkiminconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 7284126372Snjlbehavior is to fallback to using only the ACPI 1.0 fields of the 7285126372SnjlFADT if the table is too small to be a ACPI 2.0 table as claimed 7286126372Snjlby the revision number. Although this is a BIOS bug, this is a 7287126372Snjlcase where the workaround is simple enough and with no side 7288126372Snjleffects, so it seemed prudent to add it. A warning message is 7289126372Snjlissued, however. 7290102550Siwasaki 7291193267SjkimImplemented minimum size checks for the fixed-length ACPI tables - 7292126372Snjl- the FADT and FACS, as well as consistency checks between the 7293114237Snjlrevision number and the table size. 7294102550Siwasaki 7295114237SnjlFixed a reported problem in the table override support where the 7296114237Snjlnew table pointer was incorrectly treated as a physical address 7297114237Snjlinstead of a logical address. 7298102550Siwasaki 7299114237SnjlEliminated the use of the AE_AML_ERROR exception and replaced it 7300114237Snjlwith more descriptive codes. 7301102550Siwasaki 7302193267SjkimFixed a problem where an exception would occur if an ASL Field was 7303126372Snjldefined with no named Field Units underneath it (used by some 7304114237Snjlindex fields). 7305102550Siwasaki 7306193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7307126372Snjlbelow. These are the code and data sizes for the acpica.lib 7308126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7309126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7310126372Snjlversion of the code includes the debug output trace mechanism and 7311193267Sjkimhas a larger code and data size. Note that these values will vary 7312126372Snjldepending on the efficiency of the compiler and the compiler 7313126372Snjloptions used during generation. 7314102550Siwasaki 7315102550Siwasaki Previous Release 7316104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7317104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7318102550Siwasaki Current Release: 7319104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7320104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7321102550Siwasaki 7322102550Siwasaki 7323102550Siwasaki 7324102550Siwasaki2) Linux 7325102550Siwasaki 7326114237SnjlMuch work done on ACPI init (MADT and PCI IRQ routing support). 7327114237Snjl(Paul D. and Dominik Brodowski) 7328102550Siwasaki 7329102550SiwasakiFix PCI IRQ-related panic on boot (Sam Revitch) 7330102550Siwasaki 7331102550SiwasakiSet BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 7332102550Siwasaki 7333102550SiwasakiFix "MHz" typo (Dominik Brodowski) 7334102550Siwasaki 7335102550SiwasakiFix RTC year 2000 issue (Dominik Brodowski) 7336102550Siwasaki 7337102550SiwasakiPreclude multiple button proc entries (Eric Brunet) 7338102550Siwasaki 7339102550SiwasakiMoved arch-specific code out of include/platform/aclinux.h 7340102550Siwasaki 7341102550Siwasaki3) iASL Compiler Version X2044: 7342102550Siwasaki 7343193267SjkimImplemented error checking for the string used in the EISAID macro 7344193267Sjkim(Usually used in the definition of the _HID object.) The code now 7345126372Snjlstrictly enforces the PnP format - exactly 7 characters, 3 7346126372Snjluppercase letters and 4 hex digits. 7347102550Siwasaki 7348102550SiwasakiIf a raw string is used in the definition of the _HID object 7349102550Siwasaki(instead of the EISAID macro), the string must contain all 7350114237Snjlalphanumeric characters (e.g., "*PNP0011" is not allowed because 7351114237Snjlof the asterisk.) 7352102550Siwasaki 7353114237SnjlImplemented checking for invalid use of ACPI reserved names for 7354114237Snjlmost of the name creation operators (Name, Device, Event, Mutex, 7355114237SnjlOperationRegion, PowerResource, Processor, and ThermalZone.) 7356114237SnjlPreviously, this check was only performed for control methods. 7357102550Siwasaki 7358114237SnjlImplemented an additional check on the Name operator to emit an 7359114237Snjlerror if a reserved name that must be implemented in ASL as a 7360114237Snjlcontrol method is used. We know that a reserved name must be a 7361114237Snjlmethod if it is defined with input arguments. 7362102550Siwasaki 7363193267SjkimThe warning emitted when a namespace object reference is not found 7364126372Snjlduring the cross reference phase has been changed into an error. 7365193267SjkimThe "External" directive should be used for names defined in other 7366126372Snjlmodules. 7367102550Siwasaki 7368102550Siwasaki 7369102550Siwasaki4) Tools and Utilities 7370102550Siwasaki 7371114237SnjlThe 16-bit tools (adump16 and aexec16) have been regenerated and 7372114237Snjltested. 7373102550Siwasaki 7374193267SjkimFixed a problem with the output of both acpidump and adump16 where 7375126372Snjlthe indentation of closing parentheses and brackets was not 7376167802Sjkim 7377114237Snjlaligned properly with the parent block. 7378102550Siwasaki 7379102550Siwasaki 7380102550Siwasaki---------------------------------------- 7381102550Siwasaki03 May 2002. Summary of changes for this release. 7382102550Siwasaki 7383102550Siwasaki 7384102550Siwasaki1) ACPI CA Core Subsystem Version 20020503: 7385102550Siwasaki 7386114237SnjlAdded support a new OSL interface that allows the host operating 7387167802Sjkim 7388114237Snjlsystem software to override the DSDT found in the firmware - 7389193267SjkimAcpiOsTableOverride. With this interface, the OSL can examine the 7390126372Snjlversion of the firmware DSDT and replace it with a different one 7391126372Snjlif desired. 7392102550Siwasaki 7393114237SnjlAdded new external interfaces for accessing ACPI registers from 7394114237Snjldevice drivers and other system software - AcpiGetRegister and 7395114237SnjlAcpiSetRegister. This was simply an externalization of the 7396114237Snjlexisting AcpiHwBitRegister interfaces. 7397102550Siwasaki 7398104470SiwasakiFixed a regression introduced in the previous build where the 7399104470SiwasakiASL/AML CreateField operator always returned an error, 7400102550Siwasaki"destination must be a NS Node". 7401102550Siwasaki 7402114237SnjlExtended the maximum time (before failure) to successfully enable 7403114237SnjlACPI mode to 3 seconds. 7404102550Siwasaki 7405193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7406126372Snjlbelow. These are the code and data sizes for the acpica.lib 7407126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7408126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7409126372Snjlversion of the code includes the debug output trace mechanism and 7410193267Sjkimhas a larger code and data size. Note that these values will vary 7411126372Snjldepending on the efficiency of the compiler and the compiler 7412126372Snjloptions used during generation. 7413102550Siwasaki 7414102550Siwasaki Previous Release 7415104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7416104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7417102550Siwasaki Current Release: 7418104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7419104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7420102550Siwasaki 7421102550Siwasaki 7422102550Siwasaki2) Linux 7423102550Siwasaki 7424104470SiwasakiEnhanced ACPI init code for SMP. We are now fully MPS and $PIR- 7425193267Sjkimfree. While 3 out of 4 of our in-house systems work fine, the last 7426126372Snjlone still hangs when testing the LAPIC timer. 7427102550Siwasaki 7428114237SnjlRenamed many files in 2.5 kernel release to omit "acpi_" from the 7429114237Snjlname. 7430102550Siwasaki 7431102550SiwasakiAdded warning on boot for Presario 711FR. 7432102550Siwasaki 7433102550SiwasakiSleep improvements (Pavel Machek) 7434102550Siwasaki 7435102550SiwasakiACPI can now be built without CONFIG_PCI enabled. 7436102550Siwasaki 7437102550SiwasakiIA64: Fixed memory map functions (JI Lee) 7438102550Siwasaki 7439102550Siwasaki 7440102550Siwasaki3) iASL Compiler Version X2043: 7441102550Siwasaki 7442114237SnjlAdded support to allow the compiler to be integrated into the MS 7443114237SnjlVC++ development environment for one-button compilation of single 7444114237Snjlfiles or entire projects -- with error-to-source-line mapping. 7445102550Siwasaki 7446104470SiwasakiImplemented support for compile-time constant folding for the 7447104470SiwasakiType3, Type4, and Type5 opcodes first defined in the ACPI 2.0 7448104470Siwasakispecification. This allows the ASL writer to use expressions 7449104470Siwasakiinstead of Integer/Buffer/String constants in terms that must 7450114237Snjlevaluate to constants at compile time and will also simplify the 7451114237Snjlemitted AML in any such sub-expressions that can be folded 7452104470Siwasaki(evaluated at compile-time.) This increases the size of the 7453104470Siwasakicompiler significantly because a portion of the ACPI CA AML 7454104470Siwasakiinterpreter is included within the compiler in order to pre- 7455104470Siwasakievaluate constant expressions. 7456102550Siwasaki 7457114237Snjl 7458102550SiwasakiFixed a problem with the "Unicode" ASL macro that caused the 7459114237Snjlcompiler to fault. (This macro is used in conjunction with the 7460114237Snjl_STR reserved name.) 7461102550Siwasaki 7462114237SnjlImplemented an AML opcode optimization to use the Zero, One, and 7463114237SnjlOnes opcodes where possible to further reduce the size of integer 7464114237Snjlconstants and thus reduce the overall size of the generated AML 7465114237Snjlcode. 7466102550Siwasaki 7467193267SjkimImplemented error checking for new reserved terms for ACPI version 7468126372Snjl2.0A. 7469102550Siwasaki 7470104470SiwasakiImplemented the -qr option to display the current list of ACPI 7471104470Siwasakireserved names known to the compiler. 7472102550Siwasaki 7473104470SiwasakiImplemented the -qc option to display the current list of ASL 7474104470Siwasakioperators that are allowed within constant expressions and can 7475193267Sjkimtherefore be folded at compile time if the operands are constants. 7476102550Siwasaki 7477102550Siwasaki 7478102550Siwasaki4) Documentation 7479102550Siwasaki 7480193267SjkimUpdated the Programmer's Reference for new interfaces, data types, 7481126372Snjland memory allocation model options. 7482102550Siwasaki 7483114237SnjlUpdated the iASL Compiler User Reference to apply new format and 7484114237Snjladd information about new features and options. 7485102550Siwasaki 7486102550Siwasaki---------------------------------------- 7487102550Siwasaki19 April 2002. Summary of changes for this release. 7488102550Siwasaki 7489102550Siwasaki1) ACPI CA Core Subsystem Version 20020419: 7490102550Siwasaki 7491114237SnjlThe source code base for the Core Subsystem has been completely 7492114237Snjlcleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 7493114237Snjlversions. The Lint option files used are included in the 7494114237Snjl/acpi/generate/lint directory. 7495102550Siwasaki 7496102550SiwasakiImplemented enhanced status/error checking across the entire 7497114237SnjlHardware manager subsystem. Any hardware errors (reported from 7498114237Snjlthe OSL) are now bubbled up and will abort a running control 7499114237Snjlmethod. 7500102550Siwasaki 7501167802Sjkim 7502114237SnjlFixed a problem where the per-ACPI-table integer width (32 or 64) 7503114237Snjlwas stored only with control method nodes, causing a fault when 7504114237Snjlnon-control method code was executed during table loading. The 7505114237Snjlsolution implemented uses a global variable to indicate table 7506114237Snjlwidth across the entire ACPI subsystem. Therefore, ACPI CA does 7507114237Snjlnot support mixed integer widths across different ACPI tables 7508114237Snjl(DSDT, SSDT). 7509102550Siwasaki 7510114237SnjlFixed a problem where NULL extended fields (X fields) in an ACPI 7511114237Snjl2.0 ACPI FADT caused the table load to fail. Although the 7512114237Snjlexisting ACPI specification is a bit fuzzy on this topic, the new 7513114237Snjlbehavior is to fall back on a ACPI 1.0 field if the corresponding 7514193267SjkimACPI 2.0 X field is zero (even though the table revision indicates 7515193267Sjkima full ACPI 2.0 table.) The ACPI specification will be updated to 7516126372Snjlclarify this issue. 7517102550Siwasaki 7518104470SiwasakiFixed a problem with the SystemMemory operation region handler 7519104470Siwasakiwhere memory was always accessed byte-wise even if the AML- 7520104470Siwasakispecified access width was larger than a byte. This caused 7521104470Siwasakiproblems on systems with memory-mapped I/O. Memory is now 7522193267Sjkimaccessed with the width specified. On systems that do not support 7523193267Sjkimnon-aligned transfers, a check is made to guarantee proper address 7524126372Snjlalignment before proceeding in order to avoid an AML-caused 7525126372Snjlalignment fault within the kernel. 7526102550Siwasaki 7527102550Siwasaki 7528114237SnjlFixed a problem with the ExtendedIrq resource where only one byte 7529114237Snjlof the 4-byte Irq field was extracted. 7530102550Siwasaki 7531114237SnjlFixed the AcpiExDigitsNeeded() procedure to support _UID. This 7532114237Snjlfunction was out of date and required a rewrite. 7533114237Snjl 7534193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7535126372Snjlbelow. These are the code and data sizes for the acpica.lib 7536126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7537126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7538126372Snjlversion of the code includes the debug output trace mechanism and 7539193267Sjkimhas a larger code and data size. Note that these values will vary 7540126372Snjldepending on the efficiency of the compiler and the compiler 7541126372Snjloptions used during generation. 7542102550Siwasaki 7543102550Siwasaki Previous Release 7544104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7545104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7546102550Siwasaki Current Release: 7547104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7548104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7549102550Siwasaki 7550102550Siwasaki 7551102550Siwasaki2) Linux 7552102550Siwasaki 7553102550SiwasakiPCI IRQ routing fixes (Dominik Brodowski) 7554102550Siwasaki 7555102550Siwasaki 7556102550Siwasaki3) iASL Compiler Version X2042: 7557102550Siwasaki 7558104470SiwasakiImplemented an additional compile-time error check for a field 7559104470Siwasakiunit whose size + minimum access width would cause a run-time 7560114237Snjlaccess beyond the end-of-region. Previously, only the field size 7561114237Snjlitself was checked. 7562102550Siwasaki 7563104470SiwasakiThe Core subsystem and iASL compiler now share a common parse 7564104470Siwasakiobject in preparation for compile-time evaluation of the type 7565104470Siwasaki3/4/5 ASL operators. 7566102550Siwasaki 7567102550Siwasaki 7568102550Siwasaki---------------------------------------- 7569102550SiwasakiSummary of changes for this release: 03_29_02 7570102550Siwasaki 7571102550Siwasaki1) ACPI CA Core Subsystem Version 20020329: 7572102550Siwasaki 7573104470SiwasakiImplemented support for late evaluation of TermArg operands to 7574193267SjkimBuffer and Package objects. This allows complex expressions to be 7575126372Snjlused in the declarations of these object types. 7576102550Siwasaki 7577193267SjkimFixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 7578126372Snjl1.0, if the field was larger than 32 bits, it was returned as a 7579126372Snjlbuffer - otherwise it was returned as an integer. In ACPI 2.0, 7580193267Sjkimthe field is returned as a buffer only if the field is larger than 7581126372Snjl64 bits. The TableRevision is now considered when making this 7582126372Snjlconversion to avoid incompatibility with existing ASL code. 7583102550Siwasaki 7584104470SiwasakiImplemented logical addressing for AcpiOsGetRootPointer. This 7585114237Snjlallows an RSDP with either a logical or physical address. With 7586114237Snjlthis support, the host OS can now override all ACPI tables with 7587114237Snjlone logical RSDP. Includes implementation of "typed" pointer 7588114237Snjlsupport to allow a common data type for both physical and logical 7589114237Snjlpointers internally. This required a change to the 7590114237SnjlAcpiOsGetRootPointer interface. 7591102550Siwasaki 7592193267SjkimImplemented the use of ACPI 2.0 Generic Address Structures for all 7593193267SjkimGPE, Fixed Event, and PM Timer I/O. This allows the use of memory 7594126372Snjlmapped I/O for these ACPI features. 7595102550Siwasaki 7596102550SiwasakiInitialization now ignores not only non-required tables (All 7597114237Snjltables other than the FADT, FACS, DSDT, and SSDTs), but also does 7598114237Snjlnot validate the table headers of unrecognized tables. 7599102550Siwasaki 7600102550SiwasakiFixed a problem where a notify handler could only be 7601102550Siwasakiinstalled/removed on an object of type Device. All "notify" 7602167802Sjkim 7603102550Siwasakiobjects are now supported -- Devices, Processor, Power, and 7604102550SiwasakiThermal. 7605102550Siwasaki 7606114237SnjlRemoved most verbosity from the ACPI_DB_INFO debug level. Only 7607193267Sjkimcritical information is returned when this debug level is enabled. 7608102550Siwasaki 7609193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7610126372Snjlbelow. These are the code and data sizes for the acpica.lib 7611126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7612126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7613126372Snjlversion of the code includes the debug output trace mechanism and 7614193267Sjkimhas a larger code and data size. Note that these values will vary 7615126372Snjldepending on the efficiency of the compiler and the compiler 7616126372Snjloptions used during generation. 7617102550Siwasaki 7618102550Siwasaki Previous Release 7619104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7620104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7621102550Siwasaki Current Release: 7622104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7623104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7624102550Siwasaki 7625102550Siwasaki 7626102550Siwasaki2) Linux: 7627102550Siwasaki 7628114237SnjlThe processor driver (acpi_processor.c) now fully supports ACPI 7629114237Snjl2.0-based processor performance control (e.g. Intel(R) 7630114237SnjlSpeedStep(TM) technology) Note that older laptops that only have 7631114237Snjlthe Intel "applet" interface are not supported through this. The 7632114237Snjl'limit' and 'performance' interface (/proc) are fully functional. 7633114237Snjl[Note that basic policy for controlling performance state 7634114237Snjltransitions will be included in the next version of ospmd.] The 7635114237Snjlidle handler was modified to more aggressively use C2, and PIIX4 7636114237Snjlerrata handling underwent a complete overhaul (big thanks to 7637114237SnjlDominik Brodowski). 7638102550Siwasaki 7639114237SnjlAdded support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 7640114237Snjlbased devices in the ACPI namespace are now dynamically bound 7641114237Snjl(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 7642114237SnjlThis allows, among other things, ACPI to resolve bus numbers for 7643114237Snjlsubordinate PCI bridges. 7644102550Siwasaki 7645104470SiwasakiEnhanced PCI IRQ routing to get the proper bus number for _PRT 7646104470Siwasakientries defined underneath PCI bridges. 7647102550Siwasaki 7648104470SiwasakiAdded IBM 600E to bad bios list due to invalid _ADR value for 7649104470SiwasakiPIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 7650102550Siwasaki 7651114237SnjlIn the process of adding full MADT support (e.g. IOAPIC) for IA32 7652114237Snjl(acpi.c, mpparse.c) -- stay tuned. 7653102550Siwasaki 7654102550SiwasakiAdded back visual differentiation between fixed-feature and 7655114237Snjlcontrol-method buttons in dmesg. Buttons are also subtyped (e.g. 7656114237Snjlbutton/power/PWRF) to simplify button identification. 7657102550Siwasaki 7658114237SnjlWe no longer use -Wno-unused when compiling debug. Please ignore 7659114237Snjlany "_THIS_MODULE defined but not used" messages. 7660102550Siwasaki 7661102550SiwasakiCan now shut down the system using "magic sysrq" key. 7662102550Siwasaki 7663102550Siwasaki 7664102550Siwasaki3) iASL Compiler version 2041: 7665102550Siwasaki 7666104470SiwasakiFixed a problem where conversion errors for hex/octal/decimal 7667104470Siwasakiconstants were not reported. 7668102550Siwasaki 7669193267SjkimImplemented a fix for the General Register template Address field. 7670126372SnjlThis field was 8 bits when it should be 64. 7671102550Siwasaki 7672193267SjkimFixed a problem where errors/warnings were no longer being emitted 7673126372Snjlwithin the listing output file. 7674102550Siwasaki 7675114237SnjlImplemented the ACPI 2.0A restriction on ACPI Table Signatures to 7676114237Snjlexactly 4 characters, alphanumeric only. 7677102550Siwasaki 7678102550Siwasaki 7679102550Siwasaki 7680102550Siwasaki 7681102550Siwasaki---------------------------------------- 7682102550SiwasakiSummary of changes for this release: 03_08_02 7683102550Siwasaki 7684102550Siwasaki 7685102550Siwasaki1) ACPI CA Core Subsystem Version 20020308: 7686102550Siwasaki 7687114237SnjlFixed a problem with AML Fields where the use of the "AccessAny" 7688193267Sjkimkeyword could cause an interpreter error due to attempting to read 7689126372Snjlor write beyond the end of the parent Operation Region. 7690102550Siwasaki 7691193267SjkimFixed a problem in the SystemMemory Operation Region handler where 7692126372Snjlan attempt was made to map memory beyond the end of the region. 7693126372SnjlThis was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 7694126372Snjlerrors on some Linux systems. 7695102550Siwasaki 7696114237SnjlFixed a problem where the interpreter/namespace "search to root" 7697114237Snjlalgorithm was not functioning for some object types. Relaxed the 7698114237Snjlinternal restriction on the search to allow upsearches for all 7699114237Snjlexternal object types as well as most internal types. 7700102550Siwasaki 7701102550Siwasaki 7702102550Siwasaki2) Linux: 7703102550Siwasaki 7704193267SjkimWe now use safe_halt() macro versus individual calls to sti | hlt. 7705102550Siwasaki 7706193267SjkimWriting to the processor limit interface should now work. "echo 1" 7707126372Snjlwill increase the limit, 2 will decrease, and 0 will reset to the 7708167802Sjkim 7709126372Snjldefault. 7710102550Siwasaki 7711102550Siwasaki 7712102550Siwasaki3) ASL compiler: 7713102550Siwasaki 7714102550SiwasakiFixed segfault on Linux version. 7715102550Siwasaki 7716102550Siwasaki 7717102550Siwasaki---------------------------------------- 7718102550SiwasakiSummary of changes for this release: 02_25_02 7719102550Siwasaki 7720102550Siwasaki1) ACPI CA Core Subsystem: 7721102550Siwasaki 7722102550Siwasaki 7723102550SiwasakiFixed a problem where the GPE bit masks were not initialized 7724102550Siwasakiproperly, causing erratic GPE behavior. 7725102550Siwasaki 7726193267SjkimImplemented limited support for multiple calling conventions. The 7727126372Snjlcode can be generated with either the VPL (variable parameter 7728114237Snjllist, or "C") convention, or the FPL (fixed parameter list, or 7729114237Snjl"Pascal") convention. The core subsystem is about 3.4% smaller 7730114237Snjlwhen generated with FPL. 7731102550Siwasaki 7732102550Siwasaki 7733102550Siwasaki2) Linux 7734102550Siwasaki 7735114237SnjlRe-add some /proc/acpi/event functionality that was lost during 7736114237Snjlthe rewrite 7737102550Siwasaki 7738193267SjkimResolved issue with /proc events for fixed-feature buttons showing 7739126372Snjlup as the system device. 7740102550Siwasaki 7741193267SjkimFixed checks on C2/C3 latencies to be inclusive of maximum values. 7742102550Siwasaki 7743114237SnjlReplaced AE_ERRORs in acpi_osl.c with more specific error codes. 7744102550Siwasaki 7745114237SnjlChanged ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 7746102550Siwasaki 7747104470SiwasakiFixed limit interface & usage to fix bugs with passive cooling 7748104470Siwasakihysterisis. 7749102550Siwasaki 7750102550SiwasakiRestructured PRT support. 7751102550Siwasaki 7752102550Siwasaki 7753102550Siwasaki---------------------------------------- 7754102550SiwasakiSummary of changes for this label: 02_14_02 7755102550Siwasaki 7756102550Siwasaki 7757102550Siwasaki1) ACPI CA Core Subsystem: 7758102550Siwasaki 7759114237SnjlImplemented support in AcpiLoadTable to allow loading of FACS and 7760114237SnjlFADT tables. 7761102550Siwasaki 7762114237SnjlSuport for the now-obsolete interim 0.71 64-bit ACPI tables has 7763193267Sjkimbeen removed. All 64-bit platforms should be migrated to the ACPI 7764193267Sjkim2.0 tables. The actbl71.h header has been removed from the source 7765126372Snjltree. 7766102550Siwasaki 7767114237SnjlAll C macros defined within the subsystem have been prefixed with 7768114237Snjl"ACPI_" to avoid collision with other system include files. 7769102550Siwasaki 7770193267SjkimRemoved the return value for the two AcpiOsPrint interfaces, since 7771126372Snjlit is never used and causes lint warnings for ignoring the return 7772126372Snjlvalue. 7773102550Siwasaki 7774104470SiwasakiAdded error checking to all internal mutex acquire and release 7775104470Siwasakicalls. Although a failure from one of these interfaces is 7776104470Siwasakiprobably a fatal system error, these checks will cause the 7777114237Snjlimmediate abort of the currently executing method or interface. 7778102550Siwasaki 7779114237SnjlFixed a problem where the AcpiSetCurrentResources interface could 7780193267Sjkimfault. This was a side effect of the deployment of the new memory 7781126372Snjlallocation model. 7782102550Siwasaki 7783193267SjkimFixed a couple of problems with the Global Lock support introduced 7784193267Sjkimin the last major build. The "common" (1.0/2.0) internal FACS was 7785126372Snjlbeing overwritten with the FACS signature and clobbering the 7786126372SnjlGlobal Lock pointer. Also, the actual firmware FACS was being 7787126372Snjlunmapped after construction of the "common" FACS, preventing 7788126372Snjlaccess to the actual Global Lock field within it. The "common" 7789126372Snjlinternal FACS is no longer installed as an actual ACPI table; it 7790126372Snjlis used simply as a global. 7791102550Siwasaki 7792193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7793126372Snjlbelow. These are the code and data sizes for the acpica.lib 7794126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7795126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7796126372Snjlversion of the code includes the debug output trace mechanism and 7797193267Sjkimhas a larger code and data size. Note that these values will vary 7798126372Snjldepending on the efficiency of the compiler and the compiler 7799126372Snjloptions used during generation. 7800102550Siwasaki 7801102550Siwasaki Previous Release (02_07_01) 7802104470Siwasaki Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 7803104470Siwasaki Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 7804102550Siwasaki Current Release: 7805104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7806104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7807102550Siwasaki 7808102550Siwasaki 7809102550Siwasaki2) Linux 7810102550Siwasaki 7811102550SiwasakiUpdated Linux-specific code for core macro and OSL interface 7812102550Siwasakichanges described above. 7813102550Siwasaki 7814114237SnjlImproved /proc/acpi/event. It now can be opened only once and has 7815114237Snjlproper poll functionality. 7816102550Siwasaki 7817102550SiwasakiFixed and restructured power management (acpi_bus). 7818102550Siwasaki 7819193267SjkimOnly create /proc "view by type" when devices of that class exist. 7820102550Siwasaki 7821104470SiwasakiFixed "charging/discharging" bug (and others) in acpi_battery. 7822102550Siwasaki 7823102550SiwasakiImproved thermal zone code. 7824102550Siwasaki 7825102550Siwasaki 7826102550Siwasaki3) ASL Compiler, version X2039: 7827102550Siwasaki 7828114237Snjl 7829114237SnjlImplemented the new compiler restriction on ASL String hex/octal 7830193267Sjkimescapes to non-null, ASCII values. An error results if an invalid 7831126372Snjlvalue is used. (This will require an ACPI 2.0 specification 7832126372Snjlchange.) 7833102550Siwasaki 7834193267SjkimAML object labels that are output to the optional C and ASM source 7835126372Snjlare now prefixed with both the ACPI table signature and table ID 7836126372Snjlto help guarantee uniqueness within a large BIOS project. 7837102550Siwasaki 7838102550Siwasaki 7839102550Siwasaki---------------------------------------- 7840102550SiwasakiSummary of changes for this label: 02_01_02 7841102550Siwasaki 7842102550Siwasaki1) ACPI CA Core Subsystem: 7843102550Siwasaki 7844114237SnjlACPI 2.0 support is complete in the entire Core Subsystem and the 7845114237SnjlASL compiler. All new ACPI 2.0 operators are implemented and all 7846114237Snjlother changes for ACPI 2.0 support are complete. With 7847193267Sjkimsimultaneous code and data optimizations throughout the subsystem, 7848126372SnjlACPI 2.0 support has been implemented with almost no additional 7849126372Snjlcost in terms of code and data size. 7850102550Siwasaki 7851114237SnjlImplemented a new mechanism for allocation of return buffers. If 7852114237Snjlthe buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 7853114237Snjlbe allocated on behalf of the caller. Consolidated all return 7854114237Snjlbuffer validation and allocation to a common procedure. Return 7855193267Sjkimbuffers will be allocated via the primary OSL allocation interface 7856193267Sjkimsince it appears that a separate pool is not needed by most users. 7857126372SnjlIf a separate pool is required for these buffers, the caller can 7858126372Snjlstill use the original mechanism and pre-allocate the buffer(s). 7859102550Siwasaki 7860102550SiwasakiImplemented support for string operands within the DerefOf 7861102550Siwasakioperator. 7862102550Siwasaki 7863114237SnjlRestructured the Hardware and Event managers to be table driven, 7864114237Snjlsimplifying the source code and reducing the amount of generated 7865114237Snjlcode. 7866102550Siwasaki 7867102550SiwasakiSplit the common read/write low-level ACPI register bitfield 7868104470Siwasakiprocedure into a separate read and write, simplifying the code 7869104470Siwasakiconsiderably. 7870102550Siwasaki 7871114237SnjlObsoleted the AcpiOsCallocate OSL interface. This interface was 7872114237Snjlused only a handful of times and didn't have enough critical mass 7873193267Sjkimfor a separate interface. Replaced with a common calloc procedure 7874126372Snjlin the core. 7875102550Siwasaki 7876104470SiwasakiFixed a reported problem with the GPE number mapping mechanism 7877104470Siwasakithat allows GPE1 numbers to be non-contiguous with GPE0. 7878114237SnjlReorganized the GPE information and shrunk a large array that was 7879114237Snjloriginally large enough to hold info for all possible GPEs (256) 7880114237Snjlto simply large enough to hold all GPEs up to the largest GPE 7881114237Snjlnumber on the machine. 7882102550Siwasaki 7883114237SnjlFixed a reported problem with resource structure alignment on 64- 7884114237Snjlbit platforms. 7885102550Siwasaki 7886102550SiwasakiChanged the AcpiEnableEvent and AcpiDisableEvent external 7887102550Siwasakiinterfaces to not require any flags for the common case of 7888102550Siwasakienabling/disabling a GPE. 7889102550Siwasaki 7890104470SiwasakiImplemented support to allow a "Notify" on a Processor object. 7891102550Siwasaki 7892114237SnjlMost TBDs in comments within the source code have been resolved 7893114237Snjland eliminated. 7894102550Siwasaki 7895167802Sjkim 7896102550SiwasakiFixed a problem in the interpreter where a standalone parent 7897102550Siwasakiprefix (^) was not handled correctly in the interpreter and 7898102550Siwasakidebugger. 7899102550Siwasaki 7900102550SiwasakiRemoved obsolete and unnecessary GPE save/restore code. 7901102550Siwasaki 7902193267SjkimImplemented Field support in the ASL Load operator. This allows a 7903126372Snjltable to be loaded from a named field, in addition to loading a 7904114237Snjltable directly from an Operation Region. 7905102550Siwasaki 7906193267SjkimImplemented timeout and handle support in the external Global Lock 7907126372Snjlinterfaces. 7908102550Siwasaki 7909114237SnjlFixed a problem in the AcpiDump utility where pathnames were no 7910193267Sjkimlonger being generated correctly during the dump of named objects. 7911102550Siwasaki 7912102550SiwasakiModified the AML debugger to give a full display of if/while 7913102550Siwasakipredicates instead of just one AML opcode at a time. (The 7914193267Sjkimpredicate can have several nested ASL statements.) The old method 7915126372Snjlwas confusing during single stepping. 7916102550Siwasaki 7917193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7918126372Snjlbelow. These are the code and data sizes for the acpica.lib 7919114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7920114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7921114237Snjlversion of the code includes the debug output trace mechanism and 7922193267Sjkimhas a larger code and data size. Note that these values will vary 7923126372Snjldepending on the efficiency of the compiler and the compiler 7924114237Snjloptions used during generation. 7925102550Siwasaki 7926102550Siwasaki Previous Release (12_18_01) 7927114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 7928114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 7929102550Siwasaki Current Release: 7930114237Snjl Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 7931114237Snjl Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 7932102550Siwasaki 7933102550Siwasaki2) Linux 7934102550Siwasaki 7935104470Siwasaki Implemented fix for PIIX reverse throttling errata (Processor 7936104470Siwasakidriver) 7937102550Siwasaki 7938102550SiwasakiAdded new Limit interface (Processor and Thermal drivers) 7939102550Siwasaki 7940102550SiwasakiNew thermal policy (Thermal driver) 7941102550Siwasaki 7942102550SiwasakiMany updates to /proc 7943102550Siwasaki 7944102550SiwasakiBattery "low" event support (Battery driver) 7945102550Siwasaki 7946104470SiwasakiSupports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 7947102550Siwasaki 7948104470SiwasakiIA32 - IA64 initialization unification, no longer experimental 7949102550Siwasaki 7950102550SiwasakiMenuconfig options redesigned 7951102550Siwasaki 7952102550Siwasaki3) ASL Compiler, version X2037: 7953102550Siwasaki 7954193267SjkimImplemented several new output features to simplify integration of 7955126372SnjlAML code into firmware: 1) Output the AML in C source code with 7956193267Sjkimlabels for each named ASL object. The original ASL source code 7957193267Sjkimis interleaved as C comments. 2) Output the AML in ASM source code 7958126372Snjlwith labels and interleaved ASL source. 3) Output the AML in 7959126372Snjlraw hex table form, in either C or ASM. 7960102550Siwasaki 7961102550SiwasakiImplemented support for optional string parameters to the 7962102550SiwasakiLoadTable operator. 7963102550Siwasaki 7964104470SiwasakiCompleted support for embedded escape sequences within string 7965114237Snjlliterals. The compiler now supports all single character escapes 7966114237Snjlas well as the Octal and Hex escapes. Note: the insertion of a 7967114237Snjlnull byte into a string literal (via the hex/octal escape) causes 7968114237Snjlthe string to be immediately terminated. A warning is issued. 7969102550Siwasaki 7970104470SiwasakiFixed a problem where incorrect AML was generated for the case 7971104470Siwasakiwhere an ASL namepath consists of a single parent prefix ( 7972102550Siwasaki 7973102550Siwasaki) with no trailing name segments. 7974102550Siwasaki 7975102550SiwasakiThe compiler has been successfully generated with a 64-bit C 7976102550Siwasakicompiler. 7977102550Siwasaki 7978102550Siwasaki 7979102550Siwasaki 7980102550Siwasaki 7981102550Siwasaki---------------------------------------- 7982102550SiwasakiSummary of changes for this label: 12_18_01 7983102550Siwasaki 7984102550Siwasaki1) Linux 7985102550Siwasaki 7986114237SnjlEnhanced blacklist with reason and severity fields. Any table's 7987114237Snjlsignature may now be used to identify a blacklisted system. 7988102550Siwasaki 7989114237SnjlCall _PIC control method to inform the firmware which interrupt 7990114237Snjlmodel the OS is using. Turn on any disabled link devices. 7991102550Siwasaki 7992102550SiwasakiCleaned up busmgr /proc error handling (Andreas Dilger) 7993102550Siwasaki 7994102550Siwasaki 2) ACPI CA Core Subsystem: 7995102550Siwasaki 7996193267SjkimImplemented ACPI 2.0 semantics for the "Break" operator (Exit from 7997126372Snjlwhile loop) 7998102550Siwasaki 7999102550SiwasakiCompleted implementation of the ACPI 2.0 "Continue", 8000102550Siwasaki"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 8001193267Sjkimoperators. All new ACPI 2.0 operators are now implemented in both 8002193267Sjkimthe ASL compiler and the AML interpreter. The only remaining ACPI 8003126372Snjl2.0 task is support for the String data type in the DerefOf 8004193267Sjkimoperator. Fixed a problem with AcquireMutex where the status code 8005126372Snjlwas lost if the caller had to actually wait for the mutex. 8006102550Siwasaki 8007104470SiwasakiIncreased the maximum ASL Field size from 64K bits to 4G bits. 8008102550Siwasaki 8009193267SjkimCompleted implementation of the external Global Lock interfaces -- 8010126372SnjlAcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 8011126372SnjlHandler parameters were added. 8012102550Siwasaki 8013102550SiwasakiCompleted another pass at removing warnings and issues when 8014114237Snjlcompiling with 64-bit compilers. The code now compiles cleanly 8015114237Snjlwith the Intel 64-bit C/C++ compiler. Most notably, the pointer 8016114237Snjladd and subtract (diff) macros have changed considerably. 8017102550Siwasaki 8018167802Sjkim 8019114237SnjlCreated and deployed a new ACPI_SIZE type that is 64-bits wide on 8020114237Snjl64-bit platforms, 32-bits on all others. This type is used 8021193267Sjkimwherever memory allocation and/or the C sizeof() operator is used, 8022126372Snjland affects the OSL memory allocation interfaces AcpiOsAllocate 8023126372Snjland AcpiOsCallocate. 8024102550Siwasaki 8025102550SiwasakiImplemented sticky user breakpoints in the AML debugger. 8026102550Siwasaki 8027193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8028126372Snjlbelow. These are the code and data sizes for the acpica.lib 8029114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8030114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 8031114237Snjlversion of the code includes the debug output trace mechanism and 8032114237Snjlhas a larger code and data size. Note that these values will vary 8033114237Snjldepending on the efficiency of the compiler and the compiler 8034114237Snjloptions used during generation. 8035102550Siwasaki 8036102550Siwasaki Previous Release (12_05_01) 8037114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 8038114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 8039102550Siwasaki Current Release: 8040114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 8041114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 8042102550Siwasaki 8043102550Siwasaki 3) ASL Compiler, version X2034: 8044102550Siwasaki 8045114237SnjlNow checks for (and generates an error if detected) the use of a 8046114237SnjlBreak or Continue statement without an enclosing While statement. 8047102550Siwasaki 8048167802Sjkim 8049102550SiwasakiSuccessfully generated the compiler with the Intel 64-bit C 8050102550Siwasakicompiler. 8051102550Siwasaki 8052102550Siwasaki ---------------------------------------- 8053102550SiwasakiSummary of changes for this label: 12_05_01 8054102550Siwasaki 8055102550Siwasaki 1) ACPI CA Core Subsystem: 8056102550Siwasaki 8057102550SiwasakiThe ACPI 2.0 CopyObject operator is fully implemented. This 8058104470Siwasakioperator creates a new copy of an object (and is also used to 8059193267Sjkimbypass the "implicit conversion" mechanism of the Store operator.) 8060102550Siwasaki 8061102550SiwasakiThe ACPI 2.0 semantics for the SizeOf operator are fully 8062102550Siwasakiimplemented. The change is that performing a SizeOf on a 8063114237Snjlreference object causes an automatic dereference of the object to 8064114237Snjltha actual value before the size is evaluated. This behavior was 8065114237Snjlundefined in ACPI 1.0. 8066102550Siwasaki 8067114237SnjlThe ACPI 2.0 semantics for the Extended IRQ resource descriptor 8068114237Snjlhave been implemented. The interrupt polarity and mode are now 8069114237Snjlindependently set. 8070102550Siwasaki 8071114237SnjlFixed a problem where ASL Constants (Zero, One, Ones, Revision) 8072114237Snjlappearing in Package objects were not properly converted to 8073114237Snjlintegers when the internal Package was converted to an external 8074114237Snjlobject (via the AcpiEvaluateObject interface.) 8075102550Siwasaki 8076114237SnjlFixed a problem with the namespace object deletion mechanism for 8077114237Snjlobjects created by control methods. There were two parts to this 8078193267Sjkimproblem: 1) Objects created during the initialization phase method 8079193267Sjkimparse were not being deleted, and 2) The object owner ID mechanism 8080126372Snjlto track objects was broken. 8081102550Siwasaki 8082114237SnjlFixed a problem where the use of the ASL Scope operator within a 8083114237Snjlcontrol method would result in an invalid opcode exception. 8084102550Siwasaki 8085114237SnjlFixed a problem introduced in the previous label where the buffer 8086114237Snjllength required for the _PRT structure was not being returned 8087114237Snjlcorrectly. 8088102550Siwasaki 8089193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8090126372Snjlbelow. These are the code and data sizes for the acpica.lib 8091114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8092114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 8093114237Snjlversion of the code includes the debug output trace mechanism and 8094193267Sjkimhas a larger code and data size. Note that these values will vary 8095126372Snjldepending on the efficiency of the compiler and the compiler 8096114237Snjloptions used during generation. 8097102550Siwasaki 8098102550Siwasaki Previous Release (11_20_01) 8099114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8100114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8101102550Siwasaki 8102102550Siwasaki Current Release: 8103114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 8104114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 8105102550Siwasaki 8106102550Siwasaki 2) Linux: 8107102550Siwasaki 8108102550SiwasakiUpdated all files to apply cleanly against 2.4.16. 8109102550Siwasaki 8110104470SiwasakiAdded basic PCI Interrupt Routing Table (PRT) support for IA32 8111114237Snjl(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 8112114237Snjlversion supports both static and dyanmic PRT entries, but dynamic 8113114237Snjlentries are treated as if they were static (not yet 8114114237Snjlreconfigurable). Architecture- specific code to use this data is 8115114237Snjlabsent on IA32 but should be available shortly. 8116102550Siwasaki 8117114237SnjlChanged the initialization sequence to start the ACPI interpreter 8118114237Snjl(acpi_init) prior to initialization of the PCI driver (pci_init) 8119114237Snjlin init/main.c. This ordering is required to support PRT and 8120114237Snjlfacilitate other (future) enhancement. A side effect is that the 8121193267SjkimACPI bus driver and certain device drivers can no longer be loaded 8122126372Snjlas modules. 8123102550Siwasaki 8124104470SiwasakiModified the 'make menuconfig' options to allow PCI Interrupt 8125104470SiwasakiRouting support to be included without the ACPI Bus and other 8126104470Siwasakidevice drivers. 8127102550Siwasaki 8128102550Siwasaki 3) ASL Compiler, version X2033: 8129102550Siwasaki 8130102550SiwasakiFixed some issues with the use of the new CopyObject and 8131102550SiwasakiDataTableRegion operators. Both are fully functional. 8132102550Siwasaki 8133102550Siwasaki ---------------------------------------- 8134102550SiwasakiSummary of changes for this label: 11_20_01 8135102550Siwasaki 8136102550Siwasaki 20 November 2001. Summary of changes for this release. 8137102550Siwasaki 8138102550Siwasaki 1) ACPI CA Core Subsystem: 8139102550Siwasaki 8140104470SiwasakiUpdated Index support to match ACPI 2.0 semantics. Storing a 8141193267SjkimInteger, String, or Buffer to an Index of a Buffer will store only 8142126372Snjlthe least-significant byte of the source to the Indexed buffer 8143126372Snjlbyte. Multiple writes are not performed. 8144102550Siwasaki 8145104470SiwasakiFixed a problem where the access type used in an AccessAs ASL 8146104470Siwasakioperator was not recorded correctly into the field object. 8147102550Siwasaki 8148102550SiwasakiFixed a problem where ASL Event objects were created in a 8149114237Snjlsignalled state. Events are now created in an unsignalled state. 8150102550Siwasaki 8151114237SnjlThe internal object cache is now purged after table loading and 8152114237Snjlinitialization to reduce the use of dynamic kernel memory -- on 8153114237Snjlthe assumption that object use is greatest during the parse phase 8154193267Sjkimof the entire table (versus the run-time use of individual control 8155126372Snjlmethods.) 8156102550Siwasaki 8157102550SiwasakiACPI 2.0 variable-length packages are now fully operational. 8158102550Siwasaki 8159193267SjkimCode and Data Size: Code and Data optimizations have permitted new 8160126372Snjlfeature development with an actual reduction in the library size. 8161126372SnjlCurrent core subsystem library sizes are shown below. These are 8162126372Snjlthe code and data sizes for the acpica.lib produced by the 8163193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8164126372Snjlany ACPI driver or OSPM code. The debug version of the code 8165126372Snjlincludes the debug output trace mechanism and has a larger code 8166126372Snjland data size. Note that these values will vary depending on the 8167126372Snjlefficiency of the compiler and the compiler options used during 8168126372Snjlgeneration. 8169102550Siwasaki 8170102550Siwasaki Previous Release (11_09_01): 8171114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8172114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8173102550Siwasaki 8174102550Siwasaki Current Release: 8175114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8176114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8177102550Siwasaki 8178102550Siwasaki 2) Linux: 8179102550Siwasaki 8180114237SnjlEnhanced the ACPI boot-time initialization code to allow the use 8181114237Snjlof Local APIC tables for processor enumeration on IA-32, and to 8182114237Snjlpave the way for a fully MPS-free boot (on SMP systems) in the 8183114237Snjlnear future. This functionality replaces 8184114237Snjlarch/i386/kernel/acpitables.c, which was introduced in an earlier 8185114237Snjl2.4.15-preX release. To enable this feature you must add 8186114237Snjl"acpi_boot=on" to the kernel command line -- see the help entry 8187193267Sjkimfor CONFIG_ACPI_BOOT for more information. An IA-64 release is in 8188126372Snjlthe works... 8189102550Siwasaki 8190114237SnjlRestructured the configuration options to allow boot-time table 8191114237Snjlparsing support without inclusion of the ACPI Interpreter (and 8192114237Snjlother) code. 8193102550Siwasaki 8194193267SjkimNOTE: This release does not include fixes for the reported events, 8195126372Snjlpower-down, and thermal passive cooling issues (coming soon). 8196102550Siwasaki 8197102550Siwasaki 3) ASL Compiler: 8198102550Siwasaki 8199114237SnjlAdded additional typechecking for Fields within restricted access 8200114237SnjlOperation Regions. All fields within EC and CMOS regions must be 8201114237Snjldeclared with ByteAcc. All fields withing SMBus regions must be 8202114237Snjldeclared with the BufferAcc access type. 8203102550Siwasaki 8204114237SnjlFixed a problem where the listing file output of control methods 8205114237Snjlno longer interleaved the actual AML code with the ASL source 8206114237Snjlcode. 8207102550Siwasaki 8208102550Siwasaki 8209102550Siwasaki 8210167802Sjkim 8211102550Siwasaki---------------------------------------- 8212102550SiwasakiSummary of changes for this label: 11_09_01 8213102550Siwasaki 8214102550Siwasaki1) ACPI CA Core Subsystem: 8215102550Siwasaki 8216114237SnjlImplemented ACPI 2.0-defined support for writes to fields with a 8217193267SjkimBuffer, String, or Integer source operand that is smaller than the 8218126372Snjltarget field. In these cases, the source operand is zero-extended 8219126372Snjlto fill the target field. 8220102550Siwasaki 8221104470SiwasakiFixed a problem where a Field starting bit offset (within the 8222104470Siwasakiparent operation region) was calculated incorrectly if the 8223167802Sjkim 8224104470Siwasakialignment of the field differed from the access width. This 8225114237Snjlaffected CreateWordField, CreateDwordField, CreateQwordField, and 8226114237Snjlpossibly other fields that use the "AccessAny" keyword. 8227102550Siwasaki 8228114237SnjlFixed a problem introduced in the 11_02_01 release where indirect 8229114237Snjlstores through method arguments did not operate correctly. 8230102550Siwasaki 8231102550Siwasaki2) Linux: 8232102550Siwasaki 8233102550SiwasakiImplemented boot-time ACPI table parsing support 8234114237Snjl(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 8235114237Snjlfacilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 8236114237Snjllegacy BIOS interfaces (e.g. MPS) for the configuration of system 8237193267Sjkimprocessors, memory, and interrupts during setup_arch(). Note that 8238126372Snjlthis patch does not include the required architecture-specific 8239126372Snjlchanges required to apply this information -- subsequent patches 8240126372Snjlwill be posted for both IA32 and IA64 to achieve this. 8241102550Siwasaki 8242114237SnjlAdded low-level sleep support for IA32 platforms, courtesy of Pat 8243114237SnjlMochel. This allows IA32 systems to transition to/from various 8244114237Snjlsleeping states (e.g. S1, S3), although the lack of a centralized 8245114237Snjldriver model and power-manageable drivers will prevent its 8246114237Snjl(successful) use on most systems. 8247102550Siwasaki 8248114237SnjlRevamped the ACPI 'menuconfig' layout: created new "ACPI Support" 8249193267Sjkimsubmenu, unified IA32 and IA64 options, added new "Boot using ACPI 8250126372Snjltables" option, etc. 8251102550Siwasaki 8252114237SnjlIncreased the default timeout for the EC driver from 1ms to 10ms 8253114237Snjl(1000 cycles of 10us) to try to address AE_TIME errors during EC 8254114237Snjltransactions. 8255102550Siwasaki 8256102550Siwasaki ---------------------------------------- 8257102550SiwasakiSummary of changes for this label: 11_02_01 8258102550Siwasaki 8259102550Siwasaki1) ACPI CA Core Subsystem: 8260102550Siwasaki 8261102550SiwasakiACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 8262102550Siwasaki(QWordAcc keyword). All ACPI 2.0 64-bit support is now 8263102550Siwasakiimplemented. 8264102550Siwasaki 8265114237SnjlOSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 8266114237Snjlchanges to support ACPI 2.0 Qword field access. Read/Write 8267193267SjkimPciConfiguration(), Read/Write Memory(), and Read/Write Port() now 8268126372Snjlaccept an ACPI_INTEGER (64 bits) as the value parameter. Also, 8269193267Sjkimthe value parameter for the address space handler interface is now 8270193267Sjkiman ACPI_INTEGER. OSL implementations of these interfaces must now 8271126372Snjlhandle the case where the Width parameter is 64. 8272102550Siwasaki 8273104470SiwasakiIndex Fields: Fixed a problem where unaligned bit assembly and 8274104470Siwasakidisassembly for IndexFields was not supported correctly. 8275102550Siwasaki 8276102550SiwasakiIndex and Bank Fields: Nested Index and Bank Fields are now 8277104470Siwasakisupported. During field access, a check is performed to ensure 8278114237Snjlthat the value written to an Index or Bank register is not out of 8279114237Snjlthe range of the register. The Index (or Bank) register is 8280114237Snjlwritten before each access to the field data. Future support will 8281114237Snjlinclude allowing individual IndexFields to be wider than the 8282114237SnjlDataRegister width. 8283102550Siwasaki 8284114237SnjlFields: Fixed a problem where the AML interpreter was incorrectly 8285114237Snjlattempting to write beyond the end of a Field/OpRegion. This was 8286114237Snjla boundary case that occurred when a DWORD field was written to a 8287114237SnjlBYTE access OpRegion, forcing multiple writes and causing the 8288114237Snjlinterpreter to write one datum too many. 8289102550Siwasaki 8290102550SiwasakiFields: Fixed a problem with Field/OpRegion access where the 8291114237Snjlstarting bit address of a field was incorrectly calculated if the 8292114237Snjlcurrent access type was wider than a byte (WordAcc, DwordAcc, or 8293114237SnjlQwordAcc). 8294102550Siwasaki 8295104470SiwasakiFields: Fixed a problem where forward references to individual 8296193267SjkimFieldUnits (individual Field names within a Field definition) were 8297126372Snjlnot resolved during the AML table load. 8298102550Siwasaki 8299104470SiwasakiFields: Fixed a problem where forward references from a Field 8300104470Siwasakidefinition to the parent Operation Region definition were not 8301104470Siwasakiresolved during the AML table load. 8302104470Siwasaki 8303114237SnjlFields: Duplicate FieldUnit names within a scope are now detected 8304114237Snjlduring AML table load. 8305102550Siwasaki 8306193267SjkimAcpi Interfaces: Fixed a problem where the AcpiGetName() interface 8307126372Snjlreturned an incorrect name for the root node. 8308102550Siwasaki 8309193267SjkimCode and Data Size: Code and Data optimizations have permitted new 8310126372Snjlfeature development with an actual reduction in the library size. 8311126372SnjlCurrent core subsystem library sizes are shown below. These are 8312126372Snjlthe code and data sizes for the acpica.lib produced by the 8313193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8314126372Snjlany ACPI driver or OSPM code. The debug version of the code 8315126372Snjlincludes the debug output trace mechanism and has a larger code 8316126372Snjland data size. Note that these values will vary depending on the 8317126372Snjlefficiency of the compiler and the compiler options used during 8318126372Snjlgeneration. 8319102550Siwasaki 8320102550Siwasaki Previous Release (10_18_01): 8321114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8322114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8323102550Siwasaki 8324102550Siwasaki Current Release: 8325114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8326114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8327102550Siwasaki 8328102550Siwasaki 2) Linux: 8329102550Siwasaki 8330102550SiwasakiImproved /proc processor output (Pavel Machek) Re-added 8331102550SiwasakiMODULE_LICENSE("GPL") to all modules. 8332102550Siwasaki 8333102550Siwasaki 3) ASL Compiler version X2030: 8334102550Siwasaki 8335104470SiwasakiDuplicate FieldUnit names within a scope are now detected and 8336104470Siwasakiflagged as errors. 8337102550Siwasaki 8338102550Siwasaki 4) Documentation: 8339102550Siwasaki 8340104470SiwasakiProgrammer Reference updated to reflect OSL and address space 8341104470Siwasakihandler interface changes described above. 8342102550Siwasaki 8343102550Siwasaki---------------------------------------- 8344102550SiwasakiSummary of changes for this label: 10_18_01 8345102550Siwasaki 8346102550SiwasakiACPI CA Core Subsystem: 8347102550Siwasaki 8348193267SjkimFixed a problem with the internal object reference count mechanism 8349126372Snjlthat occasionally caused premature object deletion. This resolves 8350126372Snjlall of the outstanding problem reports where an object is deleted 8351193267Sjkimin the middle of an interpreter evaluation. Although this problem 8352126372Snjlonly showed up in rather obscure cases, the solution to the 8353126372Snjlproblem involved an adjustment of all reference counts involving 8354126372Snjlobjects attached to namespace nodes. 8355102550Siwasaki 8356102550SiwasakiFixed a problem with Field support in the interpreter where 8357114237Snjlwriting to an aligned field whose length is an exact multiple (2 8358193267Sjkimor greater) of the field access granularity would cause an attempt 8359126372Snjlto write beyond the end of the field. 8360102550Siwasaki 8361102550SiwasakiThe top level AML opcode execution functions within the 8362102550Siwasakiinterpreter have been renamed with a more meaningful and 8363102550Siwasakiconsistent naming convention. The modules exmonad.c and 8364102550Siwasakiexdyadic.c were eliminated. New modules are exoparg1.c, 8365102550Siwasakiexoparg2.c, exoparg3.c, and exoparg6.c. 8366102550Siwasaki 8367114237SnjlSupport for the ACPI 2.0 "Mid" ASL operator has been implemented. 8368102550Siwasaki 8369114237SnjlFixed a problem where the AML debugger was causing some internal 8370114237Snjlobjects to not be deleted during subsystem termination. 8371102550Siwasaki 8372104470SiwasakiFixed a problem with the external AcpiEvaluateObject interface 8373104470Siwasakiwhere the subsystem would fault if the named object to be 8374104470Siwasakievaluated refered to a constant such as Zero, Ones, etc. 8375102550Siwasaki 8376102550SiwasakiFixed a problem with IndexFields and BankFields where the 8377114237Snjlsubsystem would fault if the index, data, or bank registers were 8378114237Snjlnot defined in the same scope as the field itself. 8379102550Siwasaki 8380104470SiwasakiAdded printf format string checking for compilers that support 8381104470Siwasakithis feature. Corrected more than 50 instances of issues with 8382104470Siwasakiformat specifiers within invocations of ACPI_DEBUG_PRINT 8383104470Siwasakithroughout the core subsystem code. 8384102550Siwasaki 8385104470SiwasakiThe ASL "Revision" operator now returns the ACPI support level 8386193267Sjkimimplemented in the core - the value "2" since the ACPI 2.0 support 8387126372Snjlis more than 50% implemented. 8388102550Siwasaki 8389114237SnjlEnhanced the output of the AML debugger "dump namespace" command 8390114237Snjlto output in a more human-readable form. 8391102550Siwasaki 8392114237SnjlCurrent core subsystem library code sizes are shown below. These 8393167802Sjkim 8394114237Snjlare the code and data sizes for the acpica.lib produced by the 8395193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8396126372Snjlany ACPI driver or OSPM code. The debug version of the code 8397126372Snjlincludes the full debug trace mechanism -- leading to a much 8398167802Sjkim 8399114237Snjllarger code and data size. Note that these values will vary 8400114237Snjldepending on the efficiency of the compiler and the compiler 8401114237Snjloptions used during generation. 8402102550Siwasaki 8403102550Siwasaki Previous Label (09_20_01): 8404114237Snjl Non-Debug Version: 65K Code, 5K Data, 70K Total 8405114237Snjl Debug Version: 138K Code, 58K Data, 196K Total 8406102550Siwasaki 8407102550Siwasaki This Label: 8408102550Siwasaki 8409114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8410114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8411114237Snjl 8412102550SiwasakiLinux: 8413102550Siwasaki 8414104470SiwasakiImplemented a "Bad BIOS Blacklist" to track machines that have 8415104470Siwasakiknown ASL/AML problems. 8416102550Siwasaki 8417193267SjkimEnhanced the /proc interface for the thermal zone driver and added 8418126372Snjlsupport for _HOT (the critical suspend trip point). The 'info' 8419193267Sjkimfile now includes threshold/policy information, and allows setting 8420126372Snjlof _SCP (cooling preference) and _TZP (polling frequency) values 8421193267Sjkimto the 'info' file. Examples: "echo tzp=5 > info" sets the polling 8422126372Snjlfrequency to 5 seconds, and "echo scp=1 > info" sets the cooling 8423126372Snjlpreference to the passive/quiet mode (if supported by the ASL). 8424102550Siwasaki 8425104470SiwasakiImplemented a workaround for a gcc bug that resuted in an OOPs 8426104470Siwasakiwhen loading the control method battery driver. 8427102550Siwasaki 8428102550Siwasaki ---------------------------------------- 8429102550SiwasakiSummary of changes for this label: 09_20_01 8430102550Siwasaki 8431102550Siwasaki ACPI CA Core Subsystem: 8432102550Siwasaki 8433104470SiwasakiThe AcpiEnableEvent and AcpiDisableEvent interfaces have been 8434104470Siwasakimodified to allow individual GPE levels to be flagged as wake- 8435114237Snjlenabled (i.e., these GPEs are to remain enabled when the platform 8436114237Snjlsleeps.) 8437102550Siwasaki 8438104470SiwasakiThe AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 8439104470Siwasakisupport wake-enabled GPEs. This means that upon entering the 8440104470Siwasakisleep state, all GPEs that are not wake-enabled are disabled. 8441104470SiwasakiWhen leaving the sleep state, these GPEs are reenabled. 8442102550Siwasaki 8443114237SnjlA local double-precision divide/modulo module has been added to 8444114237Snjlenhance portability to OS kernels where a 64-bit math library is 8445114237Snjlnot available. The new module is "utmath.c". 8446102550Siwasaki 8447104470SiwasakiSeveral optimizations have been made to reduce the use of CPU 8448114237Snjlstack. Originally over 2K, the maximum stack usage is now below 8449114237Snjl2K at 1860 bytes (1.82k) 8450102550Siwasaki 8451114237SnjlFixed a problem with the AcpiGetFirmwareTable interface where the 8452193267Sjkimroot table pointer was not mapped into a logical address properly. 8453102550Siwasaki 8454193267SjkimFixed a problem where a NULL pointer was being dereferenced in the 8455126372Snjlinterpreter code for the ASL Notify operator. 8456102550Siwasaki 8457102550SiwasakiFixed a problem where the use of the ASL Revision operator 8458114237Snjlreturned an error. This operator now returns the current version 8459114237Snjlof the ACPI CA core subsystem. 8460102550Siwasaki 8461114237SnjlFixed a problem where objects passed as control method parameters 8462114237Snjlto AcpiEvaluateObject were always deleted at method termination. 8463114237SnjlHowever, these objects may end up being stored into the namespace 8464114237Snjlby the called method. The object reference count mechanism was 8465114237Snjlapplied to these objects instead of a force delete. 8466102550Siwasaki 8467114237SnjlFixed a problem where static strings or buffers (contained in the 8468114237SnjlAML code) that are declared as package elements within the ASL 8469114237Snjlcode could cause a fault because the interpreter would attempt to 8470114237Snjldelete them. These objects are now marked with the "static 8471114237Snjlobject" flag to prevent any attempt to delete them. 8472102550Siwasaki 8473114237SnjlImplemented an interpreter optimization to use operands directly 8474114237Snjlfrom the state object instead of extracting the operands to local 8475114237Snjlvariables. This reduces stack use and code size, and improves 8476114237Snjlperformance. 8477102550Siwasaki 8478193267SjkimThe module exxface.c was eliminated as it was an unnecessary extra 8479126372Snjllayer of code. 8480102550Siwasaki 8481114237SnjlCurrent core subsystem library code sizes are shown below. These 8482114237Snjlare the code and data sizes for the acpica.lib produced by the 8483193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8484126372Snjlany ACPI driver or OSPM code. The debug version of the code 8485126372Snjlincludes the full debug trace mechanism -- leading to a much 8486114237Snjllarger code and data size. Note that these values will vary 8487114237Snjldepending on the efficiency of the compiler and the compiler 8488114237Snjloptions used during generation. 8489102550Siwasaki 8490102550Siwasaki Non-Debug Version: 65K Code, 5K Data, 70K Total 8491114237Snjl(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 8492114237SnjlTotal (Previously 195K) 8493102550Siwasaki 8494102550SiwasakiLinux: 8495102550Siwasaki 8496114237SnjlSupport for ACPI 2.0 64-bit integers has been added. All ACPI 8497114237SnjlInteger objects are now 64 bits wide 8498102550Siwasaki 8499114237SnjlAll Acpi data types and structures are now in lower case. Only 8500114237SnjlAcpi macros are upper case for differentiation. 8501102550Siwasaki 8502102550Siwasaki Documentation: 8503102550Siwasaki 8504102550SiwasakiChanges to the external interfaces as described above. 8505102550Siwasaki 8506102550Siwasaki ---------------------------------------- 8507102550SiwasakiSummary of changes for this label: 08_31_01 8508102550Siwasaki 8509102550Siwasaki ACPI CA Core Subsystem: 8510102550Siwasaki 8511114237SnjlA bug with interpreter implementation of the ASL Divide operator 8512114237Snjlwas found and fixed. The implicit function return value (not the 8513114237Snjlexplicit store operands) was returning the remainder instead of 8514114237Snjlthe quotient. This was a longstanding bug and it fixes several 8515114237Snjlknown outstanding issues on various platforms. 8516102550Siwasaki 8517104470SiwasakiThe ACPI_DEBUG_PRINT and function trace entry/exit macros have 8518193267Sjkimbeen further optimized for size. There are 700 invocations of the 8519126372SnjlDEBUG_PRINT macro alone, so each optimization reduces the size of 8520126372Snjlthe debug version of the subsystem significantly. 8521102550Siwasaki 8522114237SnjlA stack trace mechanism has been implemented. The maximum stack 8523193267Sjkimusage is about 2K on 32-bit platforms. The debugger command "stat 8524126372Snjlstack" will display the current maximum stack usage. 8525102550Siwasaki 8526114237SnjlAll public symbols and global variables within the subsystem are 8527114237Snjlnow prefixed with the string "Acpi". This keeps all of the 8528114237Snjlsymbols grouped together in a kernel map, and avoids conflicts 8529114237Snjlwith other kernel subsystems. 8530102550Siwasaki 8531114237SnjlMost of the internal fixed lookup tables have been moved into the 8532114237Snjlcode segment via the const operator. 8533102550Siwasaki 8534104470SiwasakiSeveral enhancements have been made to the interpreter to both 8535104470Siwasakireduce the code size and improve performance. 8536102550Siwasaki 8537114237SnjlCurrent core subsystem library code sizes are shown below. These 8538114237Snjlare the code and data sizes for the acpica.lib produced by the 8539193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8540126372Snjlany ACPI driver or OSPM code. The debug version of the code 8541126372Snjlincludes the full debug trace mechanism which contains over 700 8542126372Snjlinvocations of the DEBUG_PRINT macro, 500 function entry macro 8543126372Snjlinvocations, and over 900 function exit macro invocations -- 8544126372Snjlleading to a much larger code and data size. Note that these 8545114237Snjlvalues will vary depending on the efficiency of the compiler and 8546114237Snjlthe compiler options used during generation. 8547102550Siwasaki 8548102550Siwasaki Non-Debug Version: 64K Code, 5K Data, 69K Total 8549102550SiwasakiDebug Version: 137K Code, 58K Data, 195K Total 8550102550Siwasaki 8551102550Siwasaki Linux: 8552102550Siwasaki 8553104470SiwasakiImplemented wbinvd() macro, pending a kernel-wide definition. 8554102550Siwasaki 8555102550SiwasakiFixed /proc/acpi/event to handle poll() and short reads. 8556102550Siwasaki 8557102550Siwasaki ASL Compiler, version X2026: 8558102550Siwasaki 8559104470SiwasakiFixed a problem introduced in the previous label where the AML 8560167802Sjkim 8561104470Siwasakicode emitted for package objects produced packages with zero 8562104470Siwasakilength. 8563102550Siwasaki 8564102550Siwasaki ---------------------------------------- 8565102550SiwasakiSummary of changes for this label: 08_16_01 8566102550Siwasaki 8567102550SiwasakiACPI CA Core Subsystem: 8568102550Siwasaki 8569114237SnjlThe following ACPI 2.0 ASL operators have been implemented in the 8570114237SnjlAML interpreter (These are already supported by the Intel ASL 8571193267Sjkimcompiler): ToDecimalString, ToHexString, ToString, ToInteger, and 8572126372SnjlToBuffer. Support for 64-bit AML constants is implemented in the 8573126372SnjlAML parser, debugger, and disassembler. 8574102550Siwasaki 8575114237SnjlThe internal memory tracking mechanism (leak detection code) has 8576114237Snjlbeen upgraded to reduce the memory overhead (a separate tracking 8577114237Snjlblock is no longer allocated for each memory allocation), and now 8578114237Snjlsupports all of the internal object caches. 8579102550Siwasaki 8580114237SnjlThe data structures and code for the internal object caches have 8581114237Snjlbeen coelesced and optimized so that there is a single cache and 8582114237Snjlmemory list data structure and a single group of functions that 8583114237Snjlimplement generic cache management. This has reduced the code 8584114237Snjlsize in both the debug and release versions of the subsystem. 8585102550Siwasaki 8586193267SjkimThe DEBUG_PRINT macro(s) have been optimized for size and replaced 8587126372Snjlby ACPI_DEBUG_PRINT. The syntax for this macro is slightly 8588126372Snjldifferent, because it generates a single call to an internal 8589126372Snjlfunction. This results in a savings of about 90 bytes per 8590193267Sjkiminvocation, resulting in an overall code and data savings of about 8591126372Snjl16% in the debug version of the subsystem. 8592102550Siwasaki 8593102550Siwasaki Linux: 8594102550Siwasaki 8595114237SnjlFixed C3 disk corruption problems and re-enabled C3 on supporting 8596114237Snjlmachines. 8597102550Siwasaki 8598102550SiwasakiIntegrated low-level sleep code by Patrick Mochel. 8599102550Siwasaki 8600102550SiwasakiFurther tweaked source code Linuxization. 8601102550Siwasaki 8602102550SiwasakiOther minor fixes. 8603102550Siwasaki 8604102550Siwasaki ASL Compiler: 8605102550Siwasaki 8606114237SnjlSupport for ACPI 2.0 variable length packages is fixed/completed. 8607102550Siwasaki 8608114237SnjlFixed a problem where the optional length parameter for the ACPI 8609114237Snjl2.0 ToString operator. 8610102550Siwasaki 8611114237SnjlFixed multiple extraneous error messages when a syntax error is 8612114237Snjldetected within the declaration line of a control method. 8613102550Siwasaki 8614102550Siwasaki ---------------------------------------- 8615102550SiwasakiSummary of changes for this label: 07_17_01 8616102550Siwasaki 8617102550SiwasakiACPI CA Core Subsystem: 8618102550Siwasaki 8619104470SiwasakiAdded a new interface named AcpiGetFirmwareTable to obtain any 8620193267SjkimACPI table via the ACPI signature. The interface can be called at 8621126372Snjlany time during kernel initialization, even before the kernel 8622193267Sjkimvirtual memory manager is initialized and paging is enabled. This 8623126372Snjlallows kernel subsystems to obtain ACPI tables very early, even 8624126372Snjlbefore the ACPI CA subsystem is initialized. 8625102550Siwasaki 8626104470SiwasakiFixed a problem where Fields defined with the AnyAcc attribute 8627104470Siwasakicould be resolved to the incorrect address under the following 8628114237Snjlconditions: 1) the field width is larger than 8 bits and 2) the 8629114237Snjlparent operation region is not defined on a DWORD boundary. 8630102550Siwasaki 8631114237SnjlFixed a problem where the interpreter is not being locked during 8632114237Snjlnamespace initialization (during execution of the _INI control 8633114237Snjlmethods), causing an error when an attempt is made to release it 8634114237Snjllater. 8635102550Siwasaki 8636104470SiwasakiACPI 2.0 support in the AML Interpreter has begun and will be 8637114237Snjlongoing throughout the rest of this year. In this label, The Mod 8638114237Snjloperator is implemented. 8639102550Siwasaki 8640102550SiwasakiAdded a new data type to contain full PCI addresses named 8641193267SjkimACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 8642126372Snjland Function values. 8643102550Siwasaki 8644102550Siwasaki Linux: 8645102550Siwasaki 8646102550SiwasakiEnhanced the Linux version of the source code to change most 8647102550Siwasakicapitalized ACPI type names to lowercase. For example, all 8648114237Snjlinstances of ACPI_STATUS are changed to acpi_status. This will 8649114237Snjlresult in a large diff, but the change is strictly cosmetic and 8650114237Snjlaligns the CA code closer to the Linux coding standard. 8651102550Siwasaki 8652102550SiwasakiOSL Interfaces: 8653102550Siwasaki 8654193267SjkimThe interfaces to the PCI configuration space have been changed to 8655193267Sjkimadd the PCI Segment number and to split the single 32-bit combined 8656126372SnjlDeviceFunction field into two 16-bit fields. This was 8657114237Snjlaccomplished by moving the four values that define an address in 8658114237SnjlPCI configuration space (segment, bus, device, and function) to 8659114237Snjlthe new ACPI_PCI_ID structure. 8660102550Siwasaki 8661104470SiwasakiThe changes to the PCI configuration space interfaces led to a 8662104470Siwasakireexamination of the complete set of address space access 8663114237Snjlinterfaces for PCI, I/O, and Memory. The previously existing 18 8664114237Snjlinterfaces have proven difficult to maintain (any small change 8665193267Sjkimmust be propagated across at least 6 interfaces) and do not easily 8666193267Sjkimallow for future expansion to 64 bits if necessary. Also, on some 8667126372Snjlsystems, it would not be appropriate to demultiplex the access 8668126372Snjlwidth (8, 16, 32,or 64) before calling the OSL if the 8669114237Snjlcorresponding native OS interfaces contain a similar access width 8670114237Snjlparameter. For these reasons, the 18 address space interfaces 8671114237Snjlhave been replaced by these 6 new ones: 8672102550Siwasaki 8673102550SiwasakiAcpiOsReadPciConfiguration 8674102550SiwasakiAcpiOsWritePciConfiguration 8675102550SiwasakiAcpiOsReadMemory 8676102550SiwasakiAcpiOsWriteMemory 8677102550SiwasakiAcpiOsReadPort 8678102550SiwasakiAcpiOsWritePort 8679102550Siwasaki 8680114237SnjlAdded a new interface named AcpiOsGetRootPointer to allow the OSL 8681114237Snjlto perform the platform and/or OS-specific actions necessary to 8682114237Snjlobtain the ACPI RSDP table pointer. On IA-32 platforms, this 8683114237Snjlinterface will simply call down to the CA core to perform the low- 8684114237Snjlmemory search for the table. On IA-64, the RSDP is obtained from 8685114237SnjlEFI. Migrating this interface to the OSL allows the CA core to 8686167802Sjkim 8687114237Snjlremain OS and platform independent. 8688102550Siwasaki 8689104470SiwasakiAdded a new interface named AcpiOsSignal to provide a generic 8690114237Snjl"function code and pointer" interface for various miscellaneous 8691114237Snjlsignals and notifications that must be made to the host OS. The 8692114237Snjlfirst such signals are intended to support the ASL Fatal and 8693114237SnjlBreakpoint operators. In the latter case, the AcpiOsBreakpoint 8694114237Snjlinterface has been obsoleted. 8695102550Siwasaki 8696102550SiwasakiThe definition of the AcpiFormatException interface has been 8697114237Snjlchanged to simplify its use. The caller no longer must supply a 8698114237Snjlbuffer to the call; A pointer to a const string is now returned 8699114237Snjldirectly. This allows the call to be easily used in printf 8700114237Snjlstatements, etc. since the caller does not have to manage a local 8701114237Snjlbuffer. 8702102550Siwasaki 8703114237Snjl 8704102550Siwasaki ASL Compiler, Version X2025: 8705102550Siwasaki 8706114237SnjlThe ACPI 2.0 Switch/Case/Default operators have been implemented 8707114237Snjland are fully functional. They will work with all ACPI 1.0 8708193267Sjkiminterpreters, since the operators are simply translated to If/Else 8709126372Snjlpairs. 8710102550Siwasaki 8711104470SiwasakiThe ACPI 2.0 ElseIf operator is implemented and will also work 8712104470Siwasakiwith 1.0 interpreters, for the same reason. 8713102550Siwasaki 8714114237SnjlImplemented support for ACPI 2.0 variable-length packages. These 8715114237Snjlpackages have a separate opcode, and their size is determined by 8716114237Snjlthe interpreter at run-time. 8717102550Siwasaki 8718193267SjkimDocumentation The ACPI CA Programmer Reference has been updated to 8719126372Snjlreflect the new interfaces and changes to existing interfaces. 8720102550Siwasaki 8721102550Siwasaki ------------------------------------------ 8722102550SiwasakiSummary of changes for this label: 06_15_01 8723102550Siwasaki 8724102550Siwasaki ACPI CA Core Subsystem: 8725102550Siwasaki 8726102550SiwasakiFixed a problem where a DWORD-accessed field within a Buffer 8727114237Snjlobject would get its byte address inadvertently rounded down to 8728114237Snjlthe nearest DWORD. Buffers are always Byte-accessible. 8729102550Siwasaki 8730102550Siwasaki ASL Compiler, version X2024: 8731102550Siwasaki 8732114237SnjlFixed a problem where the Switch() operator would either fault or 8733114237Snjlhang the compiler. Note however, that the AML code for this ACPI 8734114237Snjl2.0 operator is not yet implemented. 8735102550Siwasaki 8736114237SnjlCompiler uses the new AcpiOsGetTimer interface to obtain compile 8737114237Snjltimings. 8738102550Siwasaki 8739114237SnjlImplementation of the CreateField operator automatically converts 8740114237Snjla reference to a named field within a resource descriptor from a 8741114237Snjlbyte offset to a bit offset if required. 8742102550Siwasaki 8743102550SiwasakiAdded some missing named fields from the resource descriptor 8744193267Sjkimsupport. These are the names that are automatically created by the 8745126372Snjlcompiler to reference fields within a descriptor. They are only 8746126372Snjlvalid at compile time and are not passed through to the AML 8747114237Snjlinterpreter. 8748102550Siwasaki 8749104470SiwasakiResource descriptor named fields are now typed as Integers and 8750104470Siwasakisubject to compile-time typechecking when used in expressions. 8751102550Siwasaki 8752102550Siwasaki ------------------------------------------ 8753102550SiwasakiSummary of changes for this label: 05_18_01 8754102550Siwasaki 8755102550Siwasaki ACPI CA Core Subsystem: 8756102550Siwasaki 8757114237SnjlFixed a couple of problems in the Field support code where bits 8758193267Sjkimfrom adjacent fields could be returned along with the proper field 8759126372Snjlbits. Restructured the field support code to improve performance, 8760126372Snjlreadability and maintainability. 8761102550Siwasaki 8762114237SnjlNew DEBUG_PRINTP macro automatically inserts the procedure name 8763114237Snjlinto the output, saving hundreds of copies of procedure name 8764114237Snjlstrings within the source, shrinking the memory footprint of the 8765114237Snjldebug version of the core subsystem. 8766102550Siwasaki 8767102550Siwasaki Source Code Structure: 8768102550Siwasaki 8769104470SiwasakiThe source code directory tree was restructured to reflect the 8770114237Snjlcurrent organization of the component architecture. Some files 8771114237Snjland directories have been moved and/or renamed. 8772102550Siwasaki 8773102550Siwasaki Linux: 8774102550Siwasaki 8775102550SiwasakiFixed leaking kacpidpc processes. 8776102550Siwasaki 8777102550SiwasakiFixed queueing event data even when /proc/acpi/event is not 8778102550Siwasakiopened. 8779102550Siwasaki 8780102550Siwasaki ASL Compiler, version X2020: 8781102550Siwasaki 8782114237SnjlMemory allocation performance enhancement - over 24X compile time 8783114237Snjlimprovement on large ASL files. Parse nodes and namestring 8784114237Snjlbuffers are now allocated from a large internal compiler buffer. 8785102550Siwasaki 8786102550SiwasakiThe temporary .SRC file is deleted unless the "-s" option is 8787102550Siwasakispecified 8788102550Siwasaki 8789193267SjkimThe "-d" debug output option now sends all output to the .DBG file 8790126372Snjlinstead of the console. 8791102550Siwasaki 8792102550Siwasaki"External" second parameter is now optional 8793102550Siwasaki 8794102550Siwasaki"ElseIf" syntax now properly allows the predicate 8795102550Siwasaki 8796102550SiwasakiLast operand to "Load" now recognized as a Target operand 8797102550Siwasaki 8798102550SiwasakiDebug object can now be used anywhere as a normal object. 8799102550Siwasaki 8800102550SiwasakiResourceTemplate now returns an object of type BUFFER 8801102550Siwasaki 8802102550SiwasakiEISAID now returns an object of type INTEGER 8803102550Siwasaki 8804102550Siwasaki"Index" now works with a STRING operand 8805102550Siwasaki 8806102550Siwasaki"LoadTable" now accepts optional parameters 8807102550Siwasaki 8808102550Siwasaki"ToString" length parameter is now optional 8809102550Siwasaki 8810102550Siwasaki"Interrupt (ResourceType," parse error fixed. 8811102550Siwasaki 8812104470Siwasaki"Register" with a user-defined region space parse error fixed 8813102550Siwasaki 8814114237SnjlEscaped backslash at the end of a string ("\\") scan/parse error 8815114237Snjlfixed 8816102550Siwasaki 8817102550Siwasaki"Revision" is now an object of type INTEGER. 8818102550Siwasaki 8819102550Siwasaki 8820102550Siwasaki 8821102550Siwasaki------------------------------------------ 8822102550SiwasakiSummary of changes for this label: 05_02_01 8823102550Siwasaki 8824102550SiwasakiLinux: 8825102550Siwasaki 8826102550Siwasaki/proc/acpi/event now blocks properly. 8827102550Siwasaki 8828102550SiwasakiRemoved /proc/sys/acpi. You can still dump your DSDT from 8829102550Siwasaki/proc/acpi/dsdt. 8830102550Siwasaki 8831102550Siwasaki ACPI CA Core Subsystem: 8832102550Siwasaki 8833193267SjkimFixed a problem introduced in the previous label where some of the 8834126372Snjl"small" resource descriptor types were not recognized. 8835102550Siwasaki 8836193267SjkimImproved error messages for the case where an ASL Field is outside 8837126372Snjlthe range of the parent operation region. 8838102550Siwasaki 8839102550Siwasaki ASL Compiler, version X2018: 8840102550Siwasaki 8841167802Sjkim 8842193267SjkimAdded error detection for ASL Fields that extend beyond the length 8843126372Snjlof the parent operation region (only if the length of the region 8844126372Snjlis known at compile time.) This includes fields that have a 8845126372Snjlminimum access width that is smaller than the parent region, and 8846126372Snjlindividual field units that are partially or entirely beyond the 8847126372Snjlextent of the parent. 8848102550Siwasaki 8849102550Siwasaki 8850102550Siwasaki 8851102550Siwasaki------------------------------------------ 8852102550SiwasakiSummary of changes for this label: 04_27_01 8853102550Siwasaki 8854102550Siwasaki ACPI CA Core Subsystem: 8855102550Siwasaki 8856193267SjkimFixed a problem where the namespace mutex could be released at the 8857126372Snjlwrong time during execution of AcpiRemoveAddressSpaceHandler. 8858102550Siwasaki 8859104470SiwasakiAdded optional thread ID output for debug traces, to simplify 8860114237Snjldebugging of multiple threads. Added context switch notification 8861114237Snjlwhen the debug code realizes that a different thread is now 8862114237Snjlexecuting ACPI code. 8863102550Siwasaki 8864114237SnjlSome additional external data types have been prefixed with the 8865114237Snjlstring "ACPI_" for consistency. This may effect existing code. 8866193267SjkimThe data types affected are the external callback typedefs - e.g., 8867167802Sjkim 8868126372SnjlWALK_CALLBACK becomes ACPI_WALK_CALLBACK. 8869102550Siwasaki 8870102550Siwasaki Linux: 8871102550Siwasaki 8872102550SiwasakiFixed an issue with the OSL semaphore implementation where a 8873102550Siwasakithread was waking up with an error from receiving a SIGCHLD 8874102550Siwasakisignal. 8875102550Siwasaki 8876114237SnjlLinux version of ACPI CA now uses the system C library for string 8877114237Snjlmanipulation routines instead of a local implementation. 8878102550Siwasaki 8879102550SiwasakiCleaned up comments and removed TBDs. 8880102550Siwasaki 8881102550Siwasaki ASL Compiler, version X2017: 8882102550Siwasaki 8883102550SiwasakiEnhanced error detection and reporting for all file I/O 8884102550Siwasakioperations. 8885102550Siwasaki 8886102550Siwasaki Documentation: 8887102550Siwasaki 8888102550SiwasakiProgrammer Reference updated to version 1.06. 8889102550Siwasaki 8890102550Siwasaki 8891102550Siwasaki 8892102550Siwasaki------------------------------------------ 8893102550SiwasakiSummary of changes for this label: 04_13_01 8894102550Siwasaki 8895102550Siwasaki ACPI CA Core Subsystem: 8896102550Siwasaki 8897102550SiwasakiRestructured support for BufferFields and RegionFields. 8898104470SiwasakiBankFields support is now fully operational. All known 32-bit 8899114237Snjllimitations on field sizes have been removed. Both BufferFields 8900114237Snjland (Operation) RegionFields are now supported by the same field 8901114237Snjlmanagement code. 8902102550Siwasaki 8903114237SnjlResource support now supports QWORD address and IO resources. The 8904114237Snjl16/32/64 bit address structures and the Extended IRQ structure 8905114237Snjlhave been changed to properly handle Source Resource strings. 8906102550Siwasaki 8907114237SnjlA ThreadId of -1 is now used to indicate a "mutex not acquired" 8908193267Sjkimcondition internally and must never be returned by AcpiOsThreadId. 8909126372SnjlThis reserved value was changed from 0 since Unix systems allow a 8910126372Snjlthread ID of 0. 8911102550Siwasaki 8912102550SiwasakiLinux: 8913102550Siwasaki 8914102550SiwasakiDriver code reorganized to enhance portability 8915102550Siwasaki 8916102550SiwasakiAdded a kernel configuration option to control ACPI_DEBUG 8917102550Siwasaki 8918102550SiwasakiFixed the EC driver to honor _GLK. 8919102550Siwasaki 8920102550SiwasakiASL Compiler, version X2016: 8921102550Siwasaki 8922114237SnjlFixed support for the "FixedHw" keyword. Previously, the FixedHw 8923114237Snjladdress space was set to 0, not 0x7f as it should be. 8924102550Siwasaki 8925102550Siwasaki ------------------------------------------ 8926102550SiwasakiSummary of changes for this label: 03_13_01 8927102550Siwasaki 8928102550Siwasaki ACPI CA Core Subsystem: 8929102550Siwasaki 8930104470SiwasakiDuring ACPI initialization, the _SB_._INI method is now run if 8931104470Siwasakipresent. 8932102550Siwasaki 8933193267SjkimNotify handler fix - notifies are deferred until the parent method 8934126372Snjlcompletes execution. This fixes the "mutex already acquired" 8935126372Snjlissue seen occasionally. 8936102550Siwasaki 8937104470SiwasakiPart of the "implicit conversion" rules in ACPI 2.0 have been 8938114237Snjlfound to cause compatibility problems with existing ASL/AML. The 8939114237Snjlconvert "result-to-target-type" implementation has been removed 8940114237Snjlfor stores to method Args and Locals. Source operand conversion 8941114237Snjlis still fully implemented. Possible changes to ACPI 2.0 8942114237Snjlspecification pending. 8943102550Siwasaki 8944104470SiwasakiFix to AcpiRsCalculatePciRoutingTableLength to return correct 8945104470Siwasakilength. 8946102550Siwasaki 8947102550SiwasakiFix for compiler warnings for 64-bit compiles. 8948102550Siwasaki 8949102550Siwasaki Linux: 8950102550Siwasaki 8951102550Siwasaki/proc output aligned for easier parsing. 8952102550Siwasaki 8953102550SiwasakiRelease-version compile problem fixed. 8954102550Siwasaki 8955104470SiwasakiNew kernel configuration options documented in Configure.help. 8956102550Siwasaki 8957102550SiwasakiIBM 600E - Fixed Sleep button may generate "Invalid <NULL> 8958102550Siwasakicontext" message. 8959102550Siwasaki 8960102550Siwasaki OSPM: 8961102550Siwasaki 8962102550SiwasakiPower resource driver integrated with bus manager. 8963102550Siwasaki 8964102550SiwasakiFixed kernel fault during active cooling for thermal zones. 8965102550Siwasaki 8966102550SiwasakiSource Code: 8967102550Siwasaki 8968102550SiwasakiThe source code tree has been restructured. 8969102550Siwasaki 8970102550Siwasaki 8971102550Siwasaki 8972102550Siwasaki------------------------------------------ 8973102550SiwasakiSummary of changes for this label: 03_02_01 8974102550Siwasaki 8975102550Siwasaki Linux OS Services Layer (OSL): 8976102550Siwasaki 8977102550SiwasakiMajor revision of all Linux-specific code. 8978102550Siwasaki 8979102550SiwasakiModularized all ACPI-specific drivers. 8980102550Siwasaki 8981102550SiwasakiAdded new thermal zone and power resource drivers. 8982102550Siwasaki 8983114237SnjlRevamped /proc interface (new functionality is under /proc/acpi). 8984102550Siwasaki 8985102550SiwasakiNew kernel configuration options. 8986102550Siwasaki 8987102550Siwasaki Linux known issues: 8988102550Siwasaki 8989114237SnjlNew kernel configuration options not documented in Configure.help 8990114237Snjlyet. 8991102550Siwasaki 8992114237Snjl 8993102550SiwasakiModule dependencies not currently implemented. If used, they 8994102550Siwasakishould be loaded in this order: busmgr, power, ec, system, 8995102550Siwasakiprocessor, battery, ac_adapter, button, thermal. 8996102550Siwasaki 8997102550SiwasakiModules will not load if CONFIG_MODVERSION is set. 8998102550Siwasaki 8999102550SiwasakiIBM 600E - entering S5 may reboot instead of shutting down. 9000102550Siwasaki 9001104470SiwasakiIBM 600E - Sleep button may generate "Invalid <NULL> context" 9002104470Siwasakimessage. 9003102550Siwasaki 9004104470SiwasakiSome systems may fail with "execution mutex already acquired" 9005104470Siwasakimessage. 9006102550Siwasaki 9007102550Siwasaki ACPI CA Core Subsystem: 9008102550Siwasaki 9009114237SnjlAdded a new OSL Interface, AcpiOsGetThreadId. This was required 9010193267Sjkimfor the deadlock detection code. Defined to return a non-zero, 32- 9011126372Snjlbit thread ID for the currently executing thread. May be a non- 9012126372Snjlzero constant integer on single-thread systems. 9013102550Siwasaki 9014193267SjkimImplemented deadlock detection for internal subsystem mutexes. We 9015126372Snjlmay add conditional compilation for this code (debug only) later. 9016102550Siwasaki 9017104470SiwasakiASL/AML Mutex object semantics are now fully supported. This 9018114237Snjlincludes multiple acquires/releases by owner and support for the 9019167802Sjkim 9020114237SnjlMutex SyncLevel parameter. 9021102550Siwasaki 9022102550SiwasakiA new "Force Release" mechanism automatically frees all ASL 9023104470SiwasakiMutexes that have been acquired but not released when a thread 9024114237Snjlexits the interpreter. This forces conformance to the ACPI spec 9025114237Snjl("All mutexes must be released when an invocation exits") and 9026114237Snjlprevents deadlocked ASL threads. This mechanism can be expanded 9027114237Snjl(later) to monitor other resource acquisitions if OEM ASL code 9028114237Snjlcontinues to misbehave (which it will). 9029102550Siwasaki 9030104470SiwasakiSeveral new ACPI exception codes have been added for the Mutex 9031104470Siwasakisupport. 9032102550Siwasaki 9033104470SiwasakiRecursive method calls are now allowed and supported (the ACPI 9034114237Snjlspec does in fact allow recursive method calls.) The number of 9035114237Snjlrecursive calls is subject to the restrictions imposed by the 9036114237SnjlSERIALIZED method keyword and SyncLevel (ACPI 2.0) method 9037104470Siwasakiparameter. 9038102550Siwasaki 9039102550SiwasakiImplemented support for the SyncLevel parameter for control 9040102550Siwasakimethods (ACPI 2.0 feature) 9041102550Siwasaki 9042114237SnjlFixed a deadlock problem when multiple threads attempted to use 9043114237Snjlthe interpreter. 9044102550Siwasaki 9045102550SiwasakiFixed a problem where the string length of a String package 9046102550Siwasakielement was not always set in a package returned from 9047102550SiwasakiAcpiEvaluateObject. 9048102550Siwasaki 9049114237SnjlFixed a problem where the length of a String package element was 9050114237Snjlnot always included in the length of the overall package returned 9051114237Snjlfrom AcpiEvaluateObject. 9052102550Siwasaki 9053102550SiwasakiAdded external interfaces (Acpi*) to the ACPI debug memory 9054102550Siwasakimanager. This manager keeps a list of all outstanding 9055193267Sjkimallocations, and can therefore detect memory leaks and attempts to 9056126372Snjlfree memory blocks more than once. Useful for code such as the 9057114237Snjlpower manager, etc. May not be appropriate for device drivers. 9058114237SnjlPerformance with the debug code enabled is slow. 9059102550Siwasaki 9060102550SiwasakiThe ACPI Global Lock is now an optional hardware element. 9061102550Siwasaki 9062102550Siwasaki ASL Compiler Version X2015: 9063102550Siwasaki 9064102550SiwasakiIntegrated changes to allow the compiler to be generated on 9065102550Siwasakimultiple platforms. 9066102550Siwasaki 9067102550SiwasakiLinux makefile added to generate the compiler on Linux 9068102550Siwasaki 9069102550Siwasaki Source Code: 9070102550Siwasaki 9071102550SiwasakiAll platform-specific headers have been moved to their own 9072102550Siwasakisubdirectory, Include/Platform. 9073102550Siwasaki 9074102550SiwasakiNew source file added, Interpreter/ammutex.c 9075102550Siwasaki 9076102550SiwasakiNew header file, Include/acstruct.h 9077102550Siwasaki 9078102550Siwasaki Documentation: 9079102550Siwasaki 9080114237SnjlThe programmer reference has been updated for the following new 9081114237Snjlinterfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 9082102550Siwasaki 9083102550Siwasaki ------------------------------------------ 9084102550SiwasakiSummary of changes for this label: 02_08_01 9085102550Siwasaki 9086102550SiwasakiCore ACPI CA Subsystem: Fixed a problem where an error was 9087193267Sjkimincorrectly returned if the return resource buffer was larger than 9088126372Snjlthe actual data (in the resource interfaces). 9089102550Siwasaki 9090114237SnjlReferences to named objects within packages are resolved to the 9091167802Sjkim 9092114237Snjlfull pathname string before packages are returned directly (via 9093114237Snjlthe AcpiEvaluateObject interface) or indirectly via the resource 9094114237Snjlinterfaces. 9095102550Siwasaki 9096102550SiwasakiLinux OS Services Layer (OSL): 9097102550Siwasaki 9098102550SiwasakiImproved /proc battery interface. 9099102550Siwasaki 9100102550Siwasaki 9101104470SiwasakiAdded C-state debugging output and other miscellaneous fixes. 9102102550Siwasaki 9103102550SiwasakiASL Compiler Version X2014: 9104102550Siwasaki 9105114237SnjlAll defined method arguments can now be used as local variables, 9106114237Snjlincluding the ones that are not actually passed in as parameters. 9107114237SnjlThe compiler tracks initialization of the arguments and issues an 9108114237Snjlexception if they are used without prior assignment (just like 9109114237Snjllocals). 9110102550Siwasaki 9111193267SjkimThe -o option now specifies a filename prefix that is used for all 9112126372Snjloutput files, including the AML output file. Otherwise, the 9113114237Snjldefault behavior is as follows: 1) the AML goes to the file 9114114237Snjlspecified in the DSDT. 2) all other output files use the input 9115114237Snjlsource filename as the base. 9116102550Siwasaki 9117102550Siwasaki ------------------------------------------ 9118102550SiwasakiSummary of changes for this label: 01_25_01 9119102550Siwasaki 9120114237SnjlCore ACPI CA Subsystem: Restructured the implementation of object 9121114237Snjlstore support within the interpreter. This includes support for 9122114237Snjlthe Store operator as well as any ASL operators that include a 9123114237Snjltarget operand. 9124102550Siwasaki 9125102550SiwasakiPartially implemented support for Implicit Result-to-Target 9126114237Snjlconversion. This is when a result object is converted on the fly 9127114237Snjlto the type of an existing target object. Completion of this 9128114237Snjlsupport is pending further analysis of the ACPI specification 9129114237Snjlconcerning this matter. 9130102550Siwasaki 9131114237SnjlCPU-specific code has been removed from the subsystem (hardware 9132114237Snjldirectory). 9133102550Siwasaki 9134102550SiwasakiNew Power Management Timer functions added 9135102550Siwasaki 9136114237SnjlLinux OS Services Layer (OSL): Moved system state transition code 9137114237Snjlto the core, fixed it, and modified Linux OSL accordingly. 9138102550Siwasaki 9139102550SiwasakiFixed C2 and C3 latency calculations. 9140102550Siwasaki 9141102550Siwasaki 9142114237SnjlWe no longer use the compilation date for the version message on 9143193267Sjkiminitialization, but retrieve the version from AcpiGetSystemInfo(). 9144102550Siwasaki 9145102550SiwasakiIncorporated for fix Sony VAIO machines. 9146102550Siwasaki 9147104470SiwasakiDocumentation: The Programmer Reference has been updated and 9148104470Siwasakireformatted. 9149102550Siwasaki 9150102550Siwasaki 9151102550SiwasakiASL Compiler: Version X2013: Fixed a problem where the line 9152102550Siwasakinumbering and error reporting could get out of sync in the 9153102550Siwasakipresence of multiple include files. 9154102550Siwasaki 9155102550Siwasaki ------------------------------------------ 9156102550SiwasakiSummary of changes for this label: 01_15_01 9157102550Siwasaki 9158102550SiwasakiCore ACPI CA Subsystem: 9159102550Siwasaki 9160114237SnjlImplemented support for type conversions in the execution of the 9161114237SnjlASL Concatenate operator (The second operand is converted to 9162114237Snjlmatch the type of the first operand before concatenation.) 9163102550Siwasaki 9164102550SiwasakiSupport for implicit source operand conversion is partially 9165114237Snjlimplemented. The ASL source operand types Integer, Buffer, and 9166114237SnjlString are freely interchangeable for most ASL operators and are 9167114237Snjlconverted by the interpreter on the fly as required. Implicit 9168114237SnjlTarget operand conversion (where the result is converted to the 9169114237Snjltarget type before storing) is not yet implemented. 9170102550Siwasaki 9171102550SiwasakiSupport for 32-bit and 64-bit BCD integers is implemented. 9172102550Siwasaki 9173193267SjkimProblem fixed where a field read on an aligned field could cause a 9174126372Snjlread past the end of the field. 9175102550Siwasaki 9176114237SnjlNew exception, AE_AML_NO_RETURN_VALUE, is returned when a method 9177114237Snjldoes not return a value, but the caller expects one. (The ASL 9178114237Snjlcompiler flags this as a warning.) 9179102550Siwasaki 9180102550SiwasakiASL Compiler: 9181102550Siwasaki 9182102550SiwasakiVersion X2011: 9183102550Siwasaki1. Static typechecking of all operands is implemented. This 9184193267Sjkimprevents the use of invalid objects (such as using a Package where 9185126372Snjlan Integer is required) at compile time instead of at interpreter 9186126372Snjlrun-time. 9187114237Snjl2. The ASL source line is printed with ALL errors and warnings. 9188102550Siwasaki3. Bug fix for source EOF without final linefeed. 9189193267Sjkim4. Debug option is split into a parse trace and a namespace trace. 9190102550Siwasaki5. Namespace output option (-n) includes initial values for 9191102550Siwasakiintegers and strings. 9192102550Siwasaki6. Parse-only option added for quick syntax checking. 9193102550Siwasaki7. Compiler checks for duplicate ACPI name declarations 9194102550Siwasaki 9195102550SiwasakiVersion X2012: 9196102550Siwasaki1. Relaxed typechecking to allow interchangeability between 9197114237Snjlstrings, integers, and buffers. These types are now converted by 9198114237Snjlthe interpreter at runtime. 9199114237Snjl2. Compiler reports time taken by each internal subsystem in the 9200114237Snjldebug output file. 9201102550Siwasaki 9202102550Siwasaki 9203102550Siwasaki ------------------------------------------ 9204102550SiwasakiSummary of changes for this label: 12_14_00 9205102550Siwasaki 9206102550SiwasakiASL Compiler: 9207102550Siwasaki 9208104470SiwasakiThis is the first official release of the compiler. Since the 9209104470Siwasakicompiler requires elements of the Core Subsystem, this label 9210104470Siwasakisynchronizes everything. 9211102550Siwasaki 9212102550Siwasaki------------------------------------------ 9213102550SiwasakiSummary of changes for this label: 12_08_00 9214102550Siwasaki 9215102550Siwasaki 9216114237SnjlFixed a problem where named references within the ASL definition 9217114237Snjlof both OperationRegions and CreateXXXFields did not work 9218114237Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 9219114237Snjlinitialization of the region/field. This is similar (but not 9220114237Snjlrelated internally) to the problem that was fixed in the last 9221114237Snjllabel. 9222114237Snjl 9223102550SiwasakiImplemented both 32-bit and 64-bit support for the BCD ASL 9224102550Siwasakifunctions ToBCD and FromBCD. 9225102550Siwasaki 9226102550SiwasakiUpdated all legal headers to include "2000" in the copyright 9227102550Siwasakiyears. 9228102550Siwasaki 9229102550Siwasaki ------------------------------------------ 9230102550SiwasakiSummary of changes for this label: 12_01_00 9231102550Siwasaki 9232193267SjkimFixed a problem where method invocations within the ASL definition 9233126372Snjlof both OperationRegions and CreateXXXFields did not work 9234126372Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 9235114237Snjlinitialization of the region/field: 9236102550Siwasaki 9237114237Snjl nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 9238114237Snjl[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 9239114237Snjl(0x3005) 9240102550Siwasaki 9241102550SiwasakiFixed a problem where operators with more than one nested 9242104470Siwasakisubexpression would fail. The symptoms were varied, by mostly 9243114237SnjlAE_AML_OPERAND_TYPE errors. This was actually a rather serious 9244114237Snjlproblem that has gone unnoticed until now. 9245102550Siwasaki 9246102550Siwasaki Subtract (Add (1,2), Multiply (3,4)) 9247102550Siwasaki 9248114237SnjlFixed a problem where AcpiGetHandle didn't quite get fixed in the 9249114237Snjlprevious build (The prefix part of a relative path was handled 9250114237Snjlincorrectly). 9251102550Siwasaki 9252114237SnjlFixed a problem where Operation Region initialization failed if 9253114237Snjlthe operation region name was a "namepath" instead of a simple 9254114237Snjl"nameseg". Symptom was an AE_NO_OPERAND error. 9255102550Siwasaki 9256114237SnjlFixed a problem where an assignment to a local variable via the 9257114237Snjlindirect RefOf mechanism only worked for the first such 9258102550Siwasakiassignment. Subsequent assignments were ignored. 9259102550Siwasaki 9260102550Siwasaki ------------------------------------------ 9261102550SiwasakiSummary of changes for this label: 11_15_00 9262102550Siwasaki 9263193267SjkimACPI 2.0 table support with backwards support for ACPI 1.0 and the 9264193267Sjkim0.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 9265126372Snjlthe AML interpreter does NOT have support for the new 2.0 ASL 9266126372Snjlgrammar terms at this time. 9267102550Siwasaki 9268193267SjkimAll ACPI hardware access is via the GAS structures in the ACPI 2.0 9269126372SnjlFADT. 9270102550Siwasaki 9271193267SjkimAll physical memory addresses across all platforms are now 64 bits 9272126372Snjlwide. Logical address width remains dependent on the platform 9273126372Snjl(i.e., "void *"). 9274102550Siwasaki 9275114237SnjlAcpiOsMapMemory interface changed to a 64-bit physical address. 9276102550Siwasaki 9277114237SnjlThe AML interpreter integer size is now 64 bits, as per the ACPI 9278114237Snjl2.0 specification. 9279102550Siwasaki 9280104470SiwasakiFor backwards compatibility with ACPI 1.0, ACPI tables with a 9281104470Siwasakirevision number less than 2 use 32-bit integers only. 9282102550Siwasaki 9283114237SnjlFixed a problem where the evaluation of OpRegion operands did not 9284114237Snjlalways resolve them to numbers properly. 9285102550Siwasaki 9286102550Siwasaki------------------------------------------ 9287102550SiwasakiSummary of changes for this label: 10_20_00 9288102550Siwasaki 9289114237SnjlFix for CBN_._STA issue. This fix will allow correct access to 9290114237SnjlCBN_ OpRegions when the _STA returns 0x8. 9291102550Siwasaki 9292104470SiwasakiSupport to convert ACPI constants (Ones, Zeros, One) to actual 9293104470Siwasakivalues before a package object is returned 9294102550Siwasaki 9295104470SiwasakiFix for method call as predicate to if/while construct causing 9296104470Siwasakiincorrect if/while behavior 9297102550Siwasaki 9298114237SnjlFix for Else block package lengths sometimes calculated wrong (if 9299114237Snjlblock > 63 bytes) 9300102550Siwasaki 9301102550SiwasakiFix for Processor object length field, was always zero 9302102550Siwasaki 9303102550SiwasakiTable load abort if FACP sanity check fails 9304102550Siwasaki 9305102550SiwasakiFix for problem with Scope(name) if name already exists 9306102550Siwasaki 9307102550SiwasakiWarning emitted if a named object referenced cannot be found 9308102550Siwasaki(resolved) during method execution. 9309102550Siwasaki 9310102550Siwasaki 9311102550Siwasaki 9312102550Siwasaki 9313102550Siwasaki 9314102550Siwasaki------------------------------------------ 9315102550SiwasakiSummary of changes for this label: 9_29_00 9316102550Siwasaki 9317114237SnjlNew table initialization interfaces: AcpiInitializeSubsystem no 9318114237Snjllonger has any parameters AcpiFindRootPointer - Find the RSDP (if 9319114237Snjlnecessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 9320114237Snjl>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 9321114237SnjlAcpiLoadTables 9322102550Siwasaki 9323193267SjkimNote: These interface changes require changes to all existing OSDs 9324102550Siwasaki 9325114237SnjlThe PCI_Config default address space handler is always installed 9326114237Snjlat the root namespace object. 9327102550Siwasaki 9328102550Siwasaki------------------------------------------- 9329102550SiwasakiSummary of changes for this label: 09_15_00 9330102550Siwasaki 9331102550SiwasakiThe new initialization architecture is implemented. New 9332114237Snjlinterfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 9333114237SnjlAcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 9334167802Sjkim 9335114237Snjl(Namespace is automatically loaded when a table is loaded) 9336102550Siwasaki 9337193267SjkimThe ACPI_OPERAND_OBJECT has been optimized to shrink its size from 9338126372Snjl52 bytes to 32 bytes. There is usually one of these for every 9339126372Snjlnamespace object, so the memory savings is significant. 9340102550Siwasaki 9341114237SnjlImplemented just-in-time evaluation of the CreateField operators. 9342102550Siwasaki 9343102550SiwasakiBug fixes for IA-64 support have been integrated. 9344102550Siwasaki 9345102550SiwasakiAdditional code review comments have been implemented 9346102550Siwasaki 9347193267SjkimThe so-called "third pass parse" has been replaced by a final walk 9348193267Sjkimthrough the namespace to initialize all operation regions (address 9349126372Snjlspaces) and fields that have not yet been initialized during the 9350126372Snjlexecution of the various _INI and REG methods. 9351102550Siwasaki 9352102550SiwasakiNew file - namespace/nsinit.c 9353102550Siwasaki 9354102550Siwasaki------------------------------------------- 9355102550SiwasakiSummary of changes for this label: 09_01_00 9356102550Siwasaki 9357193267SjkimNamespace manager data structures have been reworked to change the 9358126372Snjlprimary object from a table to a single object. This has 9359193267Sjkimresulted in dynamic memory savings of 3X within the namespace and 9360126372Snjl2X overall in the ACPI CA subsystem. 9361102550Siwasaki 9362102550SiwasakiFixed problem where the call to AcpiEvFindPciRootBuses was 9363102550Siwasakiinadvertently left commented out. 9364102550Siwasaki 9365114237SnjlReduced the warning count when generating the source with the GCC 9366114237Snjlcompiler. 9367102550Siwasaki 9368102550SiwasakiRevision numbers added to each module header showing the 9369104470SiwasakiSourceSafe version of the file. Please refer to this version 9370114237Snjlnumber when giving us feedback or comments on individual modules. 9371102550Siwasaki 9372114237SnjlThe main object types within the subsystem have been renamed to 9373114237Snjlclarify their purpose: 9374102550Siwasaki 9375102550SiwasakiACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 9376102550SiwasakiACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 9377102550SiwasakiACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 9378102550Siwasaki 9379114237SnjlNOTE: no changes to the initialization sequence are included in 9380114237Snjlthis label. 9381102550Siwasaki 9382102550Siwasaki------------------------------------------- 9383102550SiwasakiSummary of changes for this label: 08_23_00 9384102550Siwasaki 9385102550SiwasakiFixed problem where TerminateControlMethod was being called 9386102550Siwasakimultiple times per method 9387102550Siwasaki 9388193267SjkimFixed debugger problem where single stepping caused a semaphore to 9389126372Snjlbe oversignalled 9390102550Siwasaki 9391104470SiwasakiImproved performance through additional parse object caching - 9392104470Siwasakiadded ACPI_EXTENDED_OP type 9393102550Siwasaki 9394102550Siwasaki------------------------------------------- 9395102550SiwasakiSummary of changes for this label: 08_10_00 9396102550Siwasaki 9397102550SiwasakiParser/Interpreter integration: Eliminated the creation of 9398102550Siwasakicomplete parse trees for ACPI tables and control methods. 9399114237SnjlInstead, parse subtrees are created and then deleted as soon as 9400193267Sjkimthey are processed (Either entered into the namespace or executed 9401126372Snjlby the interpreter). This reduces the use of dynamic kernel 9402126372Snjlmemory significantly. (about 10X) 9403102550Siwasaki 9404114237SnjlException codes broken into classes and renumbered. Be sure to 9405114237Snjlrecompile all code that includes acexcep.h. Hopefully we won't 9406114237Snjlhave to renumber the codes again now that they are split into 9407114237Snjlclasses (environment, programmer, AML code, ACPI table, and 9408114237Snjlinternal). 9409102550Siwasaki 9410104470SiwasakiFixed some additional alignment issues in the Resource Manager 9411104470Siwasakisubcomponent 9412102550Siwasaki 9413114237SnjlImplemented semaphore tracking in the AcpiExec utility, and fixed 9414114237Snjlseveral places where mutexes/semaphores were being unlocked 9415114237Snjlwithout a corresponding lock operation. There are no known 9416114237Snjlsemaphore or mutex "leaks" at this time. 9417102550Siwasaki 9418114237SnjlFixed the case where an ASL Return operator is used to return an 9419114237Snjlunnamed package. 9420102550Siwasaki 9421102550Siwasaki------------------------------------------- 9422102550SiwasakiSummary of changes for this label: 07_28_00 9423102550Siwasaki 9424102550SiwasakiFixed a problem with the way addresses were calculated in 9425114237SnjlAcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 9426114237Snjlmanifested itself when a Field was created with WordAccess or 9427193267SjkimDwordAccess, but the field unit defined within the Field was less 9428167802Sjkim 9429126372Snjlthan a Word or Dword. 9430102550Siwasaki 9431102550SiwasakiFixed a problem in AmlDumpOperands() module's loop to pull 9432104470Siwasakioperands off of the operand stack to display information. The 9433114237Snjlproblem manifested itself as a TLB error on 64-bit systems when 9434114237Snjlaccessing an operand stack with two or more operands. 9435102550Siwasaki 9436114237SnjlFixed a problem with the PCI configuration space handlers where 9437114237Snjlcontext was getting confused between accesses. This required a 9438114237Snjlchange to the generic address space handler and address space 9439193267Sjkimsetup definitions. Handlers now get both a global handler context 9440126372Snjl(this is the one passed in by the user when executing 9441114237SnjlAcpiInstallAddressSpaceHandler() and a specific region context 9442114237Snjlthat is unique to each region (For example, the _ADR, _SEG and 9443114237Snjl_BBN values associated with a specific region). The generic 9444114237Snjlfunction definitions have changed to the following: 9445102550Siwasaki 9446114237Snjltypedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 9447114237SnjlUINT32 Address, UINT32 BitWidth, UINT32 *Value, void 9448104470Siwasaki*HandlerContext, // This used to be void *Context void 9449102550Siwasaki*RegionContext); // This is an additional parameter 9450102550Siwasaki 9451102550Siwasakitypedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 9452102550SiwasakiRegionHandle, UINT32 Function, void *HandlerContext, void 9453102550Siwasaki**RegionContext); // This used to be **ReturnContext 9454102550Siwasaki 9455102550Siwasaki------------------------------------------- 9456102550SiwasakiSummary of changes for this label: 07_21_00 9457102550Siwasaki 9458102550SiwasakiMajor file consolidation and rename. All files within the 9459193267Sjkiminterpreter have been renamed as well as most header files. This 9460126372Snjlwas done to prevent collisions with existing files in the host 9461126372SnjlOSs -- filenames such as "config.h" and "global.h" seem to be 9462126372Snjlquite common. The VC project files have been updated. All 9463114237Snjlmakefiles will require modification. 9464102550Siwasaki 9465114237SnjlThe parser/interpreter integration continues in Phase 5 with the 9466114237Snjlimplementation of a complete 2-pass parse (the AML is parsed 9467114237Snjltwice) for each table; This avoids the construction of a huge 9468114237Snjlparse tree and therefore reduces the amount of dynamic memory 9469114237Snjlrequired by the subsystem. Greater use of the parse object cache 9470114237Snjlmeans that performance is unaffected. 9471102550Siwasaki 9472102550SiwasakiMany comments from the two code reviews have been rolled in. 9473102550Siwasaki 9474102550SiwasakiThe 64-bit alignment support is complete. 9475102550Siwasaki 9476102550Siwasaki------------------------------------------- 9477102550SiwasakiSummary of changes for this label: 06_30_00 9478102550Siwasaki 9479114237SnjlWith a nod and a tip of the hat to the technology of yesteryear, 9480114237Snjlwe've added support in the source code for 80 column output 9481114237Snjldevices. The code is now mostly constrained to 80 columns or 9482114237Snjlless to support environments and editors that 1) cannot display 9483114237Snjlor print more than 80 characters on a single line, and 2) cannot 9484114237Snjldisable line wrapping. 9485102550Siwasaki 9486104470SiwasakiA major restructuring of the namespace data structure has been 9487104470Siwasakicompleted. The result is 1) cleaner and more 9488114237Snjlunderstandable/maintainable code, and 2) a significant reduction 9489114237Snjlin the dynamic memory requirement for each named ACPI object 9490114237Snjl(almost half). 9491102550Siwasaki 9492102550Siwasaki------------------------------------------- 9493102550SiwasakiSummary of changes for this label: 06_23_00 9494102550Siwasaki 9495114237SnjlLinux support has been added. In order to obtain approval to get 9496114237Snjlthe ACPI CA subsystem into the Linux kernel, we've had to make 9497114237Snjlquite a few changes to the base subsystem that will affect all 9498114237Snjlusers (all the changes are generic and OS- independent). The 9499114237Snjleffects of these global changes have been somewhat far reaching. 9500114237SnjlFiles have been merged and/or renamed and interfaces have been 9501114237Snjlrenamed. The major changes are described below. 9502102550Siwasaki 9503102550SiwasakiOsd* interfaces renamed to AcpiOs* to eliminate namespace 9504102550Siwasakipollution/confusion within our target kernels. All OSD 9505114237Snjlinterfaces must be modified to match the new naming convention. 9506102550Siwasaki 9507193267SjkimFiles merged across the subsystem. A number of the smaller source 9508126372Snjland header files have been merged to reduce the file count and 9509126372Snjlincrease the density of the existing files. There are too many 9510126372Snjlto list here. In general, makefiles that call out individual 9511126372Snjlfiles will require rebuilding. 9512102550Siwasaki 9513104470SiwasakiInterpreter files renamed. All interpreter files now have the 9514104470Siwasakiprefix am* instead of ie* and is*. 9515102550Siwasaki 9516104470SiwasakiHeader files renamed: The acapi.h file is now acpixf.h. The 9517114237Snjlacpiosd.h file is now acpiosxf.h. We are removing references to 9518114237Snjlthe acronym "API" since it is somewhat windowsy. The new name is 9519114237Snjl"external interface" or xface or xf in the filenames.j 9520102550Siwasaki 9521102550Siwasaki 9522114237SnjlAll manifest constants have been forced to upper case (some were 9523193267Sjkimmixed case.) Also, the string "ACPI_" has been prepended to many 9524126372Snjl(not all) of the constants, typedefs, and structs. 9525102550Siwasaki 9526102550SiwasakiThe globals "DebugLevel" and "DebugLayer" have been renamed 9527102550Siwasaki"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 9528102550Siwasaki 9529102550SiwasakiAll other globals within the subsystem are now prefixed with 9530102550Siwasaki"AcpiGbl_" Internal procedures within the subsystem are now 9531114237Snjlprefixed with "Acpi" (with only a few exceptions). The original 9532193267Sjkimtwo-letter abbreviation for the subcomponent remains after "Acpi" 9533126372Snjl- for example, CmCallocate became AcpiCmCallocate. 9534102550Siwasaki 9535102550SiwasakiAdded a source code translation/conversion utility. Used to 9536114237Snjlgenerate the Linux source code, it can be modified to generate 9537114237Snjlother types of source as well. Can also be used to cleanup 9538114237Snjlexisting source by removing extraneous spaces and blank lines. 9539114237SnjlFound in tools/acpisrc/* 9540102550Siwasaki 9541102550SiwasakiOsdUnMapMemory was renamed to OsdUnmapMemory and then 9542102550SiwasakiAcpiOsUnmapMemory. (UnMap became Unmap). 9543102550Siwasaki 9544114237SnjlA "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 9545114237SnjlWhen set to one, this indicates that the caller wants to use the 9546167802Sjkim 9547114237Snjlsemaphore as a mutex, not a counting semaphore. ACPI CA uses 9548114237Snjlboth types. However, implementers of this call may want to use 9549114237Snjldifferent OS primitives depending on the type of semaphore 9550114237Snjlrequested. For example, some operating systems provide separate 9551167802Sjkim 9552193267Sjkim"mutex" and "semaphore" interfaces - where the mutex interface is 9553126372Snjlmuch faster because it doesn't have all the overhead of a full 9554126372Snjlsemaphore implementation. 9555102550Siwasaki 9556104470SiwasakiFixed a deadlock problem where a method that accesses the PCI 9557114237Snjladdress space can block forever if it is the first access to the 9558114237Snjlspace. 9559102550Siwasaki 9560102550Siwasaki------------------------------------------- 9561102550SiwasakiSummary of changes for this label: 06_02_00 9562102550Siwasaki 9563102550SiwasakiSupport for environments that cannot handle unaligned data 9564114237Snjlaccesses (e.g. firmware and OS environments devoid of alignment 9565193267Sjkimhandler technology namely SAL/EFI and the IA-64 Linux kernel) has 9566126372Snjlbeen added (via configurable macros) in these three areas: - 9567114237SnjlTransfer of data from the raw AML byte stream is done via byte 9568193267Sjkimmoves instead of word/dword/qword moves. - External objects are 9569126372Snjlaligned within the user buffer, including package elements (sub- 9570193267Sjkimobjects). - Conversion of name strings to UINT32 Acpi Names is now 9571126372Snjldone byte-wise. 9572102550Siwasaki 9573102550SiwasakiThe Store operator was modified to mimic Microsoft's 9574102550Siwasakiimplementation when storing to a Buffer Field. 9575102550Siwasaki 9576102550SiwasakiAdded a check of the BM_STS bit before entering C3. 9577102550Siwasaki 9578114237SnjlThe methods subdirectory has been obsoleted and removed. A new 9579114237Snjlfile, cmeval.c subsumes the functionality. 9580102550Siwasaki 9581102550SiwasakiA 16-bit (DOS) version of AcpiExec has been developed. The 9582102550Siwasakimakefile is under the acpiexec directory. 9583