changes.txt revision 228110
1117521Snjl---------------------------------------- 2228110Sjkim23 November 2011. Summary of changes for version 20111123: 3222544Sjkim 4222544SjkimThis release is available at www.acpica.org/downloads 5228110SjkimThe ACPI 5.0 specification is available at www.acpi.info 6222544Sjkim 7228110Sjkim0) ACPI 5.0 Support: 8228110Sjkim 9228110SjkimThis release contains full support for the ACPI 5.0 specification, as 10228110Sjkimsummarized below. 11228110Sjkim 12228110SjkimReduced Hardware Support: 13228110Sjkim------------------------- 14228110Sjkim 15228110SjkimThis support allows for ACPI systems without the usual ACPI hardware. This 16228110Sjkimsupport is enabled by a flag in the revision 5 FADT. If it is set, ACPICA will 17228110Sjkimnot attempt to initialize or use any of the usual ACPI hardware. Note, when 18228110Sjkimthis flag is set, all of the following ACPI hardware is assumed to be not 19228110Sjkimpresent and is not initialized or accessed: 20228110Sjkim 21228110Sjkim General Purpose Events (GPEs) 22228110Sjkim Fixed Events (PM1a/PM1b and PM Control) 23228110Sjkim Power Management Timer and Console Buttons (power/sleep) 24228110Sjkim Real-time Clock Alarm 25228110Sjkim Global Lock 26228110Sjkim System Control Interrupt (SCI) 27228110Sjkim The FACS is assumed to be non-existent 28228110Sjkim 29228110SjkimACPI Tables: 30228110Sjkim------------ 31228110Sjkim 32228110SjkimAll new tables and updates to existing tables are fully supported in the 33228110SjkimACPICA headers (for use by device drivers), the disassembler, and the iASL 34228110SjkimData Table Compiler. ACPI 5.0 defines these new tables: 35228110Sjkim 36228110Sjkim BGRT /* Boot Graphics Resource Table */ 37228110Sjkim DRTM /* Dynamic Root of Trust for Measurement table */ 38228110Sjkim FPDT /* Firmware Performance Data Table */ 39228110Sjkim GTDT /* Generic Timer Description Table */ 40228110Sjkim MPST /* Memory Power State Table */ 41228110Sjkim PCCT /* Platform Communications Channel Table */ 42228110Sjkim PMTT /* Platform Memory Topology Table */ 43228110Sjkim RASF /* RAS Feature table */ 44228110Sjkim 45228110SjkimOperation Regions/SpaceIDs: 46228110Sjkim--------------------------- 47228110Sjkim 48228110SjkimAll new operation regions are fully supported by the iASL compiler, the 49228110Sjkimdisassembler, and the ACPICA runtime code (for dispatch to region handlers.) 50228110SjkimThe new operation region Space IDs are: 51228110Sjkim 52228110Sjkim GeneralPurposeIo 53228110Sjkim GenericSerialBus 54228110Sjkim 55228110SjkimResource Descriptors: 56228110Sjkim--------------------- 57228110Sjkim 58228110SjkimAll new ASL resource descriptors are fully supported by the iASL compiler, the 59228110SjkimASL/AML disassembler, and the ACPICA runtime Resource Manager code (including 60228110Sjkimall new predefined resource tags). New descriptors are: 61228110Sjkim 62228110Sjkim FixedDma 63228110Sjkim GpioIo 64228110Sjkim GpioInt 65228110Sjkim I2cSerialBus 66228110Sjkim SpiSerialBus 67228110Sjkim UartSerialBus 68228110Sjkim 69228110SjkimASL/AML Operators, New and Modified: 70228110Sjkim------------------------------------ 71228110Sjkim 72228110SjkimOne new operator is added, the Connection operator, which is used to associate 73228110Sjkima GeneralPurposeIo or GenericSerialBus resource descriptor with individual 74228110Sjkimfield objects within an operation region. Several new protocols are associated 75228110Sjkimwith the AccessAs operator. All are fully supported by the iASL compiler, 76228110Sjkimdisassembler, and runtime ACPICA AML interpreter: 77228110Sjkim 78228110Sjkim Connection // Declare Field Connection attributes 79228110Sjkim AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 80228110Sjkim AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol 81228110Sjkim AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 82228110Sjkim RawDataBuffer // Data type for Vendor Data fields 83228110Sjkim 84228110SjkimPredefined ASL/AML Objects: 85228110Sjkim--------------------------- 86228110Sjkim 87228110SjkimAll new predefined objects/control-methods are supported by the iASL compiler 88228110Sjkimand the ACPICA runtime validation/repair (arguments and return values.) New 89228110Sjkimpredefined names include the following: 90228110Sjkim 91228110SjkimStandard Predefined Names (Objects or Control Methods): 92228110Sjkim _AEI, _CLS, _CPC, _CWS, _DEP, 93228110Sjkim _DLM, _EVT, _GCP, _CRT, _GWS, 94228110Sjkim _HRV, _PRE, _PSE, _SRT, _SUB. 95228110Sjkim 96228110SjkimResource Tags (Names used to access individual fields within resource 97228110Sjkimdescriptors): 98228110Sjkim _DBT, _DPL, _DRS, _END, _FLC, 99228110Sjkim _IOR, _LIN, _MOD, _PAR, _PHA, 100228110Sjkim _PIN, _PPI, _POL, _RXL, _SLV, 101228110Sjkim _SPE, _STB, _TXL, _VEN. 102228110Sjkim 103228110SjkimACPICA External Interfaces: 104228110Sjkim--------------------------- 105228110Sjkim 106228110SjkimSeveral new interfaces have been defined for use by ACPI-related device 107228110Sjkimdrivers and other host OS services: 108228110Sjkim 109228110SjkimAcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS to 110228110Sjkimacquire and release AML mutexes that are defined in the DSDT/SSDT tables 111228110Sjkimprovided by the BIOS. They are intended to be used in conjunction with the 112228110SjkimACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 113228110Sjkimmutual exclusion with the AML code/interpreter. 114228110Sjkim 115228110SjkimAcpiGetEventResources: Returns the (formatted) resource descriptors as defined 116228110Sjkimby the ACPI 5.0 _AEI object (ACPI Event Information). This object provides 117228110Sjkimresource descriptors associated with hardware-reduced platform events, similar 118228110Sjkimto the AcpiGetCurrentResources interface. 119228110Sjkim 120228110SjkimOperation Region Handlers: For General Purpose IO and Generic Serial Bus 121228110Sjkimoperation regions, information about the Connection() object and any optional 122228110Sjkimlength information is passed to the region handler within the Context 123228110Sjkimparameter. 124228110Sjkim 125228110SjkimAcpiBufferToResource: This interface converts a raw AML buffer containing a 126228110Sjkimresource template or resource descriptor to the ACPI_RESOURCE internal format 127228110Sjkimsuitable for use by device drivers. Can be used by an operation region handler 128228110Sjkimto convert the Connection() buffer object into a ACPI_RESOURCE. 129228110Sjkim 130228110SjkimMiscellaneous/Tools/TestSuites: 131228110Sjkim------------------------------- 132228110Sjkim 133228110SjkimSupport for extended _HID names (Four alpha characters instead of three). 134228110SjkimSupport for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 135228110SjkimSupport for ACPI 5.0 features in the ASLTS test suite. 136228110SjkimFully updated documentation (ACPICA and iASL reference documents.) 137228110Sjkim 138228110SjkimACPI Table Definition Language: 139228110Sjkim------------------------------- 140228110Sjkim 141228110SjkimSupport for this language was implemented and released as a subsystem of the 142228110SjkimiASL compiler in 2010. (See the iASL compiler User Guide.) 143228110Sjkim 144228110Sjkim 145228110SjkimNon-ACPI 5.0 changes for this release: 146228110Sjkim-------------------------------------- 147228110Sjkim 148228110Sjkim1) ACPICA Core Subsystem: 149228110Sjkim 150228110SjkimFix a problem with operation region declarations where a failure can occur if 151228110Sjkimthe region name and an argument that evaluates to an object (such as the 152228110Sjkimregion address) are in different namespace scopes. Lin Ming, ACPICA BZ 937. 153228110Sjkim 154228110SjkimDo not abort an ACPI table load if an invalid space ID is found within. This 155228110Sjkimwill be caught later if the offending method is executed. ACPICA BZ 925. 156228110Sjkim 157228110SjkimFixed an issue with the FFixedHW space ID where the ID was not always 158228110Sjkimrecognized properly (Both ACPICA and iASL). ACPICA BZ 926. 159228110Sjkim 160228110SjkimFixed a problem with the 32-bit generation of the unix-specific OSL 161228110Sjkim(osunixxf.c). Lin Ming, ACPICA BZ 936. 162228110Sjkim 163228110SjkimSeveral changes made to enable generation with the GCC 4.6 compiler. ACPICA BZ 164228110Sjkim935. 165228110Sjkim 166228110SjkimNew error messages: Unsupported I/O requests (not 8/16/32 bit), and Index/Bank 167228110Sjkimfield registers out-of-range. 168228110Sjkim 169228110Sjkim2) iASL Compiler/Disassembler and Tools: 170228110Sjkim 171228110SjkimiASL: Implemented the __PATH__ operator, which returns the full pathname of 172228110Sjkimthe current source file. 173228110Sjkim 174228110SjkimAcpiHelp: Automatically display expanded keyword information for all ASL 175228110Sjkimoperators. 176228110Sjkim 177228110SjkimDebugger: Add "Template" command to disassemble/dump resource template 178228110Sjkimbuffers. 179228110Sjkim 180228110SjkimAdded a new master script to generate and execute the ASLTS test suite. 181228110SjkimAutomatically handles 32- and 64-bit generation. See tests/aslts.sh 182228110Sjkim 183228110SjkimiASL: Fix problem with listing generation during processing of the Switch() 184228110Sjkimoperator where AML listing was disabled until the entire Switch block was 185228110Sjkimcompleted. 186228110Sjkim 187228110SjkimiASL: Improve support for semicolon statement terminators. Fix "invalid 188228110Sjkimcharacter" message for some cases when the semicolon is used. Semicolons are 189228110Sjkimnow allowed after every <Term> grammar element. ACPICA BZ 927. 190228110Sjkim 191228110SjkimiASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 923. 192228110Sjkim 193228110SjkimDisassembler: Fix problem with disassembly of the DataTableRegion operator 194228110Sjkimwhere an inadvertent "Unhandled deferred opcode" message could be generated. 195228110Sjkim 196228110Sjkim3) Example Code and Data Size 197228110Sjkim 198228110SjkimThese are the sizes for the OS-independent acpica.lib produced by the 199228110SjkimMicrosoft Visual C++ 9.0 32-bit compiler. The debug version of the code 200228110Sjkimincludes the debug output trace mechanism and has a much larger code and data 201228110Sjkimsize. 202228110Sjkim 203228110Sjkim Previous Release: 204228110Sjkim Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 205228110Sjkim Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 206228110Sjkim Current Release: 207228110Sjkim Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 208228110Sjkim Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 209228110Sjkim 210228110Sjkim---------------------------------------- 211228110Sjkim22 September 2011. Summary of changes for version 20110922: 212228110Sjkim 213228110Sjkim0) ACPI 5.0 News: 214228110Sjkim 215228110SjkimSupport for ACPI 5.0 in ACPICA has been underway for several months and will 216228110Sjkimbe released at the same time that ACPI 5.0 is officially released. 217228110Sjkim 218228110SjkimThe ACPI 5.0 specification is on track for release in the next few months. 219228110Sjkim 220228110Sjkim1) ACPICA Core Subsystem: 221228110Sjkim 222228110SjkimFixed a problem where the maximum sleep time for the Sleep() operator was 223228110Sjkimintended to be limited to two seconds, but was inadvertently limited to 20 224228110Sjkimseconds instead. 225228110Sjkim 226228110SjkimLinux and Unix makefiles: Added header file dependencies to ensure correct 227228110Sjkimgeneration of ACPICA core code and utilities. Also simplified the makefiles 228228110Sjkimconsiderably through the use of the vpath variable to specify search paths. 229228110SjkimACPICA BZ 924. 230228110Sjkim 231228110Sjkim2) iASL Compiler/Disassembler and Tools: 232228110Sjkim 233228110SjkimiASL: Implemented support to check the access length for all fields created to 234228110Sjkimaccess named Resource Descriptor fields. For example, if a resource field is 235228110Sjkimdefined to be two bits, a warning is issued if a CreateXxxxField() is used 236228110Sjkimwith an incorrect bit length. This is implemented for all current resource 237228110Sjkimdescriptor names. ACPICA BZ 930. 238228110Sjkim 239228110SjkimDisassembler: Fixed a byte ordering problem with the output of 24-bit and 56- 240228110Sjkimbit integers. 241228110Sjkim 242228110SjkimiASL: Fixed a couple of issues associated with variable-length package 243228110Sjkimobjects. 1) properly handle constants like One, Ones, Zero -- do not make a 244228110SjkimVAR_PACKAGE when these are used as a package length. 2) Allow the VAR_PACKAGE 245228110Sjkimopcode (in addition to PACKAGE) when validating object types for predefined 246228110Sjkimnames. 247228110Sjkim 248228110SjkimiASL: Emit statistics for all output files (instead of just the ASL input and 249228110SjkimAML output). Includes listings, hex files, etc. 250228110Sjkim 251228110SjkimiASL: Added -G option to the table compiler to allow the compilation of custom 252228110SjkimACPI tables. The only part of a table that is required is the standard 36-byte 253228110SjkimACPI header. 254228110Sjkim 255228110SjkimAcpiXtract: Ported to the standard ACPICA environment (with ACPICA headers), 256228110Sjkimwhich also adds correct 64-bit support. Also, now all output filenames are 257228110Sjkimcompletely lower case. 258228110Sjkim 259228110SjkimAcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 260228110Sjkimloading table files. A warning is issued for any such tables. The only 261228110Sjkimexception is an FADT. This also fixes a possible fault when attempting to load 262228110Sjkimnon-AML tables. ACPICA BZ 932. 263228110Sjkim 264228110SjkimAcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a 265228110Sjkimmissing table terminator could cause a fault when using the -p option. 266228110Sjkim 267228110SjkimAcpiSrc: Fixed a possible divide-by-zero fault when generating file 268228110Sjkimstatistics. 269228110Sjkim 270228110Sjkim3) Example Code and Data Size 271228110Sjkim 272228110SjkimThese are the sizes for the OS-independent acpica.lib produced by the 273228110SjkimMicrosoft Visual C++ 9.0 32-bit compiler. The debug version of the code 274228110Sjkimincludes the debug output trace mechanism and has a much larger code and data 275228110Sjkimsize. 276228110Sjkim 277228110Sjkim Previous Release (VC 9.0): 278228110Sjkim Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 279228110Sjkim Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 280228110Sjkim Current Release (VC 9.0): 281228110Sjkim Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 282228110Sjkim Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 283228110Sjkim 284228110Sjkim 285228110Sjkim---------------------------------------- 286228110Sjkim23 June 2011. Summary of changes for version 20110623: 287228110Sjkim 288222544Sjkim1) ACPI CA Core Subsystem: 289222544Sjkim 290228110SjkimUpdated the predefined name repair mechanism to not attempt repair of a _TSS 291228110Sjkimreturn object if a _PSS object is present. We can only sort the _TSS return 292228110Sjkimpackage if there is no _PSS within the same scope. This is because if _PSS is 293228110Sjkimpresent, the ACPI specification dictates that the _TSS Power Dissipation field 294228110Sjkimis to be ignored, and therefore some BIOSs leave garbage values in the _TSS 295228110SjkimPower field(s). In this case, it is best to just return the _TSS package as- 296228110Sjkimis. Reported by, and fixed with assistance from Fenghua Yu. 297228110Sjkim 298228110SjkimAdded an option to globally disable the control method return value validation 299228110Sjkimand repair. This runtime option can be used to disable return value repair if 300228110Sjkimthis is causing a problem on a particular machine. Also added an option to 301228110SjkimAcpiExec (-dr) to set this disable flag. 302228110Sjkim 303228110SjkimAll makefiles and project files: Major changes to improve generation of ACPICA 304228110Sjkimtools. ACPICA BZ 912: 305228110Sjkim Reduce default optimization levels to improve compatibility 306228110Sjkim For Linux, add strict-aliasing=0 for gcc 4 307228110Sjkim Cleanup and simplify use of command line defines 308228110Sjkim Cleanup multithread library support 309228110Sjkim Improve usage messages 310228110Sjkim 311228110SjkimLinux-specific header: update handling of THREAD_ID and pthread. For the 32- 312228110Sjkimbit case, improve casting to eliminate possible warnings, especially with the 313228110Sjkimacpica tools. 314228110Sjkim 315228110SjkimExample Code and Data Size: These are the sizes for the OS-independent 316228110Sjkimacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 317228110Sjkimversion of the code includes the debug output trace mechanism and has a much 318228110Sjkimlarger code and data size. 319228110Sjkim 320228110Sjkim Previous Release (VC 9.0): 321228110Sjkim Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 322228110Sjkim Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 323228110Sjkim Current Release (VC 9.0): 324228110Sjkim Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 325228110Sjkim Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 326228110Sjkim 327228110Sjkim2) iASL Compiler/Disassembler and Tools: 328228110Sjkim 329228110SjkimWith this release, a new utility named "acpihelp" has been added to the ACPICA 330228110Sjkimpackage. This utility summarizes the ACPI specification chapters for the ASL 331228110Sjkimand AML languages. It generates under Linux/Unix as well as Windows, and 332228110Sjkimprovides the following functionality: 333228110Sjkim Find/display ASL operator(s) -- with description and syntax. 334228110Sjkim Find/display ASL keyword(s) -- with exact spelling and descriptions. 335228110Sjkim Find/display ACPI predefined name(s) -- with description, number 336228110Sjkim of arguments, and the return value data type. 337228110Sjkim Find/display AML opcode name(s) -- with opcode, arguments, and grammar. 338228110Sjkim Decode/display AML opcode -- with opcode name, arguments, and grammar. 339228110Sjkim 340228110SjkimService Layers: Make multi-thread support configurable. Conditionally compile 341228110Sjkimthe multi-thread support so that threading libraries will not be linked if not 342228110Sjkimnecessary. The only tool that requires multi-thread support is AcpiExec. 343228110Sjkim 344228110SjkimiASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions of 345228110SjkimBison appear to want the interface to yyerror to be a const char * (or at 346228110Sjkimleast this is a problem when generating iASL on some systems.) ACPICA BZ 923 347228110SjkimPierre Lejeune. 348228110Sjkim 349228110SjkimTools: Fix for systems where O_BINARY is not defined. Only used for Windows 350228110Sjkimversions of the tools. 351228110Sjkim 352228110Sjkim---------------------------------------- 353228110Sjkim27 May 2011. Summary of changes for version 20110527: 354228110Sjkim 355228110Sjkim1) ACPI CA Core Subsystem: 356228110Sjkim 357222544SjkimASL Load() operator: Reinstate most restrictions on the incoming ACPI table 358222544Sjkimsignature. Now, only allow SSDT, OEMx, and a null signature. History: 359222544Sjkim 1) Originally, we checked the table signature for "SSDT" or "PSDT". 360222544Sjkim (PSDT is now obsolete.) 361222544Sjkim 2) We added support for OEMx tables, signature "OEM" plus a fourth 362222544Sjkim "don't care" character. 363222544Sjkim 3) Valid tables were encountered with a null signature, so we just 364222544Sjkim gave up on validating the signature, (05/2008). 365222544Sjkim 4) We encountered non-AML tables such as the MADT, which caused 366222544Sjkim interpreter errors and kernel faults. So now, we once again allow 367222544Sjkim only SSDT, OEMx, and now, also a null signature. (05/2011). 368222544Sjkim 369222544SjkimAdded the missing _TDL predefined name to the global name list in order to 370222544Sjkimenable validation. Affects both the core ACPICA code and the iASL compiler. 371222544Sjkim 372222544SjkimExample Code and Data Size: These are the sizes for the OS-independent 373222544Sjkimacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 374222544Sjkimversion of the code includes the debug output trace mechanism and has a much 375222544Sjkimlarger code and data size. 376222544Sjkim 377222544Sjkim Previous Release (VC 9.0): 378222544Sjkim Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 379222544Sjkim Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 380222544Sjkim Current Release (VC 9.0): 381222544Sjkim Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 382222544Sjkim Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 383222544Sjkim 384222544Sjkim2) iASL Compiler/Disassembler and Tools: 385222544Sjkim 386222544SjkimDebugger/AcpiExec: Implemented support for "complex" method arguments on the 387222544Sjkimdebugger command line. This adds support beyond simple integers -- including 388222544SjkimStrings, Buffers, and Packages. Includes support for nested packages. 389222544SjkimIncreased the default command line buffer size to accommodate these arguments. 390222544SjkimSee the ACPICA reference for details and syntax. ACPICA BZ 917. 391222544Sjkim 392222544SjkimDebugger/AcpiExec: Implemented support for "default" method arguments for the 393222544SjkimExecute/Debug command. Now, the debugger will always invoke a control method 394222544Sjkimwith the required number of arguments -- even if the command line specifies 395222544Sjkimnone or insufficient arguments. It uses default integer values for any missing 396222544Sjkimarguments. Also fixes a bug where only six method arguments maximum were 397222544Sjkimsupported instead of the required seven. 398222544Sjkim 399222544SjkimDebugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine and 400222544Sjkimalso return status in order to prevent buffer overruns. See the ACPICA 401222544Sjkimreference for details and syntax. ACPICA BZ 921 402222544Sjkim 403222544SjkimiASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 404222544Sjkimmakefiles to simplify support for the two different but similar parser 405222544Sjkimgenerators, bison and yacc. 406222544Sjkim 407222544SjkimUpdated the generic unix makefile for gcc 4. The default gcc version is now 408222544Sjkimexpected to be 4 or greater, since options specific to gcc 4 are used. 409222544Sjkim 410222544Sjkim---------------------------------------- 411220663Sjkim13 April 2011. Summary of changes for version 20110413: 412220663Sjkim 413220663Sjkim1) ACPI CA Core Subsystem: 414220663Sjkim 415220663SjkimImplemented support to execute a so-called "orphan" _REG method under the EC 416222544Sjkimdevice. This change will force the execution of a _REG method underneath the 417222544SjkimEC 418220663Sjkimdevice even if there is no corresponding operation region of type 419220663SjkimEmbeddedControl. Fixes a problem seen on some machines and apparently is 420220663Sjkimcompatible with Windows behavior. ACPICA BZ 875. 421220663Sjkim 422220663SjkimAdded more predefined methods that are eligible for automatic NULL package 423222544Sjkimelement removal. This change adds another group of predefined names to the 424222544Sjkimlist 425220663Sjkimof names that can be repaired by having NULL package elements dynamically 426220663Sjkimremoved. This group are those methods that return a single variable-length 427220663Sjkimpackage containing simple data types such as integers, buffers, strings. This 428222544Sjkimincludes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, _PSL, 429222544Sjkim_Sx, 430220663Sjkimand _TZD. ACPICA BZ 914. 431220663Sjkim 432222544SjkimSplit and segregated all internal global lock functions to a new file, 433222544Sjkimevglock.c. 434220663Sjkim 435222544SjkimUpdated internal address SpaceID for DataTable regions. Moved this internal 436222544Sjkimspace 437222544Sjkimid in preparation for ACPI 5.0 changes that will include some new space IDs. 438222544SjkimThis 439220663Sjkimchange should not affect user/host code. 440220663Sjkim 441222544SjkimExample Code and Data Size: These are the sizes for the OS-independent 442222544Sjkimacpica.lib 443220663Sjkimproduced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 444222544Sjkimthe code includes the debug output trace mechanism and has a much larger code 445222544Sjkimand 446220663Sjkimdata size. 447220663Sjkim 448220663Sjkim Previous Release (VC 9.0): 449220663Sjkim Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 450220663Sjkim Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 451220663Sjkim Current Release (VC 9.0): 452220663Sjkim Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 453220663Sjkim Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 454220663Sjkim 455220663Sjkim2) iASL Compiler/Disassembler and Tools: 456220663Sjkim 457220663SjkimiASL/DTC: Major update for new grammar features. Allow generic data types in 458220663Sjkimcustom ACPI tables. Field names are now optional. Any line can be split to 459220663Sjkimmultiple lines using the continuation char (\). Large buffers now use line- 460222544Sjkimcontinuation character(s) and no colon on the continuation lines. See the 461222544Sjkimgrammar 462220663Sjkimupdate in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob Moore. 463220663Sjkim 464220663SjkimiASL: Mark ASL "Return()" and the simple "Return" as "Null" return statements. 465222544SjkimSince the parser stuffs a "zero" as the return value for these statements (due 466222544Sjkimto 467220663Sjkimthe underlying AML grammar), they were seen as "return with value" by the iASL 468220663Sjkimsemantic checking. They are now seen correctly as "null" return statements. 469220663Sjkim 470220663SjkimiASL: Check if a_REG declaration has a corresponding Operation Region. Adds a 471220663Sjkimcheck for each _REG to ensure that there is in fact a corresponding operation 472222544Sjkimregion declaration in the same scope. If not, the _REG method is not very 473222544Sjkimuseful 474220663Sjkimsince it probably won't be executed. ACPICA BZ 915. 475220663Sjkim 476222544SjkimiASL/DTC: Finish support for expression evaluation. Added a new expression 477222544Sjkimparser 478222544Sjkimthat implements c-style operator precedence and parenthesization. ACPICA 479222544Sjkimbugzilla 480220663Sjkim908. 481220663Sjkim 482222544SjkimDisassembler/DTC: Remove support for () and <> style comments in data tables. 483222544SjkimNow 484222544Sjkimthat DTC has full expression support, we don't want to have comment strings 485222544Sjkimthat 486222544Sjkimstart with a parentheses or a less-than symbol. Now, only the standard /* and 487222544Sjkim// 488220663Sjkimcomments are supported, as well as the bracket [] comments. 489220663Sjkim 490222544SjkimAcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 491222544Sjkim"unusual" 492220663Sjkimheaders in the acpidump file. Update the header validation to support these 493220663Sjkimtables. Problem introduced in previous AcpiXtract version in the change to 494220663Sjkimsupport "wrong checksum" error messages emitted by acpidump utility. 495220663Sjkim 496222544SjkimiASL: Add a * option to generate all template files (as a synonym for ALL) as 497222544Sjkimin 498220663Sjkim"iasl -T *" or "iasl -T ALL". 499220663Sjkim 500220663SjkimiASL/DTC: Do not abort compiler on fatal errors. We do not want to completely 501220663Sjkimabort the compiler on "fatal" errors, simply should abort the current compile. 502220663SjkimThis allows multiple compiles with a single (possibly wildcard) compiler 503220663Sjkiminvocation. 504220663Sjkim 505220663Sjkim---------------------------------------- 506219707Sjkim16 March 2011. Summary of changes for version 20110316: 507219707Sjkim 508219707Sjkim1) ACPI CA Core Subsystem: 509219707Sjkim 510219707SjkimFixed a problem caused by a _PRW method appearing at the namespace root scope 511222544Sjkimduring the setup of wake GPEs. A fault could occur if a _PRW directly under 512222544Sjkimthe 513219707Sjkimroot object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 514219707Sjkim 515219707SjkimImplemented support for "spurious" Global Lock interrupts. On some systems, a 516219707Sjkimglobal lock interrupt can occur without the pending flag being set. Upon a GL 517219707Sjkiminterrupt, we now ensure that a thread is actually waiting for the lock before 518219707Sjkimsignaling GL availability. Rafael Wysocki, Bob Moore. 519219707Sjkim 520222544SjkimExample Code and Data Size: These are the sizes for the OS-independent 521222544Sjkimacpica.lib 522219707Sjkimproduced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug version of 523222544Sjkimthe code includes the debug output trace mechanism and has a much larger code 524222544Sjkimand 525219707Sjkimdata size. 526219707Sjkim 527219707Sjkim Previous Release (VC 9.0): 528219707Sjkim Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 529219707Sjkim Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 530219707Sjkim Current Release (VC 9.0): 531219707Sjkim Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 532219707Sjkim Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 533219707Sjkim 534219707Sjkim2) iASL Compiler/Disassembler and Tools: 535219707Sjkim 536219707SjkimImplemented full support for the "SLIC" ACPI table. Includes support in the 537219707Sjkimheader files, disassembler, table compiler, and template generator. Bob Moore, 538219707SjkimLin Ming. 539219707Sjkim 540219707SjkimAcpiXtract: Correctly handle embedded comments and messages from AcpiDump. 541222544SjkimApparently some or all versions of acpidump will occasionally emit a comment 542222544Sjkimlike 543219707Sjkim"Wrong checksum", etc., into the dump file. This was causing problems for 544219707SjkimAcpiXtract. ACPICA BZ 905. 545219707Sjkim 546219707SjkimiASL: Fix the Linux makefile by removing an inadvertent double file inclusion. 547219707SjkimACPICA BZ 913. 548219707Sjkim 549222544SjkimAcpiExec: Update installation of operation region handlers. Install one 550222544Sjkimhandler 551219707Sjkimfor a user-defined address space. This is used by the ASL test suite (ASLTS). 552219707Sjkim 553219707Sjkim---------------------------------------- 554218590Sjkim11 February 2011. Summary of changes for version 20110211: 555218590Sjkim 556218590Sjkim1) ACPI CA Core Subsystem: 557218590Sjkim 558218590SjkimAdded a mechanism to defer _REG methods for some early-installed handlers. 559218590SjkimMost user handlers should be installed before call to AcpiEnableSubsystem. 560218590SjkimHowever, Event handlers and region handlers should be installed after 561218590SjkimAcpiInitializeObjects. Override handlers for the "default" regions should be 562218590Sjkiminstalled early, however. This change executes all _REG methods for the 563218590Sjkimdefault regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 564218590Sjkimchicken/egg issues between them. ACPICA BZ 848. 565218590Sjkim 566218590SjkimImplemented an optimization for GPE detection. This optimization will simply 567218590Sjkimignore GPE registers that contain no enabled GPEs -- there is no need to 568218590Sjkimread the register since this information is available internally. This 569218590Sjkimbecomes more important on machines with a large GPE space. ACPICA bugzilla 570218590Sjkim884. Lin Ming. Suggestion from Joe Liu. 571218590Sjkim 572218590SjkimRemoved all use of the highly unreliable FADT revision field. The revision 573218590Sjkimnumber in the FADT has been found to be completely unreliable and cannot be 574218590Sjkimtrusted. Only the actual table length can be used to infer the version. This 575218590Sjkimchange updates the ACPICA core and the disassembler so that both no longer 576218590Sjkimeven look at the FADT version and instead depend solely upon the FADT 577218590Sjkimlength. 578218590Sjkim 579218590SjkimFix an unresolved name issue for the no-debug and no-error-message source 580218590Sjkimgeneration cases. The _AcpiModuleName was left undefined in these cases, but 581218590Sjkimit is actually needed as a parameter to some interfaces. Define 582218590Sjkim_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 583218590Sjkim 584218590SjkimSplit several large files (makefiles and project files updated) 585218590Sjkim utglobal.c -> utdecode.c 586218590Sjkim dbcomds.c -> dbmethod.c dbnames.c 587218590Sjkim dsopcode.c -> dsargs.c dscontrol.c 588218590Sjkim dsload.c -> dsload2.c 589218590Sjkim aslanalyze.c -> aslbtypes.c aslwalks.c 590218590Sjkim 591218590SjkimExample Code and Data Size: These are the sizes for the OS-independent 592218590Sjkimacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 593218590Sjkimdebug version of the code includes the debug output trace mechanism and has 594218590Sjkima much larger code and data size. 595218590Sjkim 596218590Sjkim Previous Release (VC 9.0): 597218590Sjkim Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 598218590Sjkim Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 599218590Sjkim Current Release (VC 9.0): 600218590Sjkim Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 601218590Sjkim Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 602218590Sjkim 603218590Sjkim2) iASL Compiler/Disassembler and Tools: 604218590Sjkim 605218590SjkimiASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 606218590SjkimThese are useful C-style macros with the standard definitions. ACPICA 607218590Sjkimbugzilla 898. 608218590Sjkim 609218590SjkimiASL/DTC: Added support for integer expressions and labels. Support for full 610218590Sjkimexpressions for all integer fields in all ACPI tables. Support for labels in 611218590Sjkim"generic" portions of tables such as UEFI. See the iASL reference manual. 612218590Sjkim 613218590SjkimDebugger: Added a command to display the status of global handlers. The 614218590Sjkim"handlers" command will display op region, fixed event, and miscellaneous 615218590Sjkimglobal handlers. installation status -- and for op regions, whether default 616218590Sjkimor user-installed handler will be used. 617218590Sjkim 618218590SjkimiASL: Warn if reserved method incorrectly returns a value. Many predefined 619218590Sjkimnames are defined such that they do not return a value. If implemented as a 620218590Sjkimmethod, issue a warning if such a name explicitly returns a value. ACPICA 621218590SjkimBugzilla 855. 622218590Sjkim 623218590SjkimiASL: Added detection of GPE method name conflicts. Detects a conflict where 624218590Sjkimthere are two GPE methods of the form _Lxy and _Exy in the same scope. (For 625218590Sjkimexample, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 626218590Sjkim 627218590SjkimiASL/DTC: Fixed a couple input scanner issues with comments and line 628218590Sjkimnumbers. Comment remover could get confused and miss a comment ending. Fixed 629218590Sjkima problem with line counter maintenance. 630218590Sjkim 631218590SjkimiASL/DTC: Reduced the severity of some errors from fatal to error. There is 632218590Sjkimno need to abort on simple errors within a field definition. 633218590Sjkim 634218590SjkimDebugger: Simplified the output of the help command. All help output now in 635218590Sjkima single screen, instead of help subcommands. ACPICA Bugzilla 897. 636218590Sjkim 637218590Sjkim---------------------------------------- 638217365Sjkim12 January 2011. Summary of changes for version 20110112: 639217365Sjkim 640217365Sjkim1) ACPI CA Core Subsystem: 641217365Sjkim 642217365SjkimFixed a race condition between method execution and namespace walks that can 643217365Sjkimpossibly cause a fault. The problem was apparently introduced in version 644220663Sjkim20100528 as a result of a performance optimization that reduces the number of 645217365Sjkimnamespace walks upon method exit by using the delete_namespace_subtree 646217365Sjkimfunction instead of the delete_namespace_by_owner function used previously. 647217365SjkimBug is a missing namespace lock in the delete_namespace_subtree function. 648217365Sjkimdana.myers@oracle.com 649217365Sjkim 650217365SjkimFixed several issues and a possible fault with the automatic "serialized" 651220663Sjkimmethod support. History: This support changes a method to "serialized" on the 652217365Sjkimfly if the method generates an AE_ALREADY_EXISTS error, indicating the 653217365Sjkimpossibility that it cannot handle reentrancy. This fix repairs a couple of 654217365Sjkimissues seen in the field, especially on machines with many cores: 655217365Sjkim 656217365Sjkim 1) Delete method children only upon the exit of the last thread, 657217365Sjkim so as to not delete objects out from under other running threads 658217365Sjkim (and possibly causing a fault.) 659217365Sjkim 2) Set the "serialized" bit for the method only upon the exit of the 660217365Sjkim Last thread, so as to not cause deadlock when running threads 661217365Sjkim attempt to exit. 662217365Sjkim 3) Cleanup the use of the AML "MethodFlags" and internal method flags 663217365Sjkim so that there is no longer any confusion between the two. 664217365Sjkim 665217365Sjkim Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 666217365Sjkim 667217365SjkimDebugger: Now lock the namespace for duration of a namespace dump. Prevents 668217365Sjkimissues if the namespace is changing dynamically underneath the debugger. 669217365SjkimEspecially affects temporary namespace nodes, since the debugger displays 670217365Sjkimthese also. 671217365Sjkim 672217365SjkimUpdated the ordering of include files. The ACPICA headers should appear 673217365Sjkimbefore any compiler-specific headers (stdio.h, etc.) so that acenv.h can set 674217365Sjkimany necessary compiler-specific defines, etc. Affects the ACPI-related tools 675217365Sjkimand utilities. 676217365Sjkim 677217365SjkimUpdated all ACPICA copyrights and signons to 2011. Added the 2011 copyright 678217365Sjkimto all module headers and signons, including the Linux header. This affects 679217365Sjkimvirtually every file in the ACPICA core subsystem, iASL compiler, and all 680217365Sjkimutilities. 681217365Sjkim 682217365SjkimAdded project files for MS Visual Studio 2008 (VC++ 9.0). The original 683217365Sjkimproject files for VC++ 6.0 are now obsolete. New project files can be found 684217365Sjkimunder acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 685217365Sjkimdetails. 686217365Sjkim 687217365SjkimExample Code and Data Size: These are the sizes for the OS-independent 688217365Sjkimacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 689220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 690217365Sjkimmuch larger code and data size. 691217365Sjkim 692217365Sjkim Previous Release (VC 6.0): 693217365Sjkim Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 694217365Sjkim Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 695217365Sjkim Current Release (VC 9.0): 696217365Sjkim Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 697217365Sjkim Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 698217365Sjkim 699217365Sjkim2) iASL Compiler/Disassembler and Tools: 700217365Sjkim 701220663SjkimiASL: Added generic data types to the Data Table compiler. Add "generic" data 702217365Sjkimtypes such as UINT32, String, Unicode, etc., to simplify the generation of 703217365Sjkimplatform-defined tables such as UEFI. Lin Ming. 704217365Sjkim 705220663SjkimiASL: Added listing support for the Data Table Compiler. Adds listing support 706217365Sjkim(-l) to display actual binary output for each line of input code. 707217365Sjkim 708217365Sjkim---------------------------------------- 709216471Sjkim09 December 2010. Summary of changes for version 20101209: 710216471Sjkim 711216471Sjkim1) ACPI CA Core Subsystem: 712216471Sjkim 713216471SjkimCompleted the major overhaul of the GPE support code that was begun in July 714216471Sjkim2010. Major features include: removal of _PRW execution in ACPICA (host 715216471Sjkimexecutes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 716216471Sjkimchanges to existing interfaces, simplification of GPE handler operation, and 717216471Sjkima handful of new interfaces: 718216471Sjkim 719216471Sjkim AcpiUpdateAllGpes 720216471Sjkim AcpiFinishGpe 721216471Sjkim AcpiSetupGpeForWake 722216471Sjkim AcpiSetGpeWakeMask 723216471Sjkim One new file, evxfgpe.c to consolidate all external GPE interfaces. 724216471Sjkim 725216471SjkimSee the ACPICA Programmer Reference for full details and programming 726216471Sjkiminformation. See the new section 4.4 "General Purpose Event (GPE) Support" 727216471Sjkimfor a full overview, and section 8.7 "ACPI General Purpose Event Management" 728216471Sjkimfor programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 729216471SjkimBob Moore, Rafael Wysocki. 730216471Sjkim 731216471SjkimImplemented a new GPE feature for Windows compatibility, the "Implicit Wake 732216471SjkimGPE Notify". This feature will automatically issue a Notify(2) on a device 733216471Sjkimwhen a Wake GPE is received if there is no corresponding GPE method or 734216471Sjkimhandler. ACPICA BZ 870. 735216471Sjkim 736216471SjkimFixed a problem with the Scope() operator during table parse and load phase. 737220663SjkimDuring load phase (table load or method execution), the scope operator should 738216471Sjkimnot enter the target into the namespace. Instead, it should open a new scope 739216471Sjkimat the target location. Linux BZ 19462, ACPICA BZ 882. 740216471Sjkim 741216471SjkimExample Code and Data Size: These are the sizes for the OS-independent 742216471Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 743220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 744216471Sjkimmuch larger code and data size. 745216471Sjkim 746216471Sjkim Previous Release: 747216471Sjkim Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 748216471Sjkim Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 749216471Sjkim Current Release: 750216471Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 751216471Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 752216471Sjkim 753216471Sjkim2) iASL Compiler/Disassembler and Tools: 754216471Sjkim 755216471SjkimiASL: Relax the alphanumeric restriction on _CID strings. These strings are 756216471Sjkim"bus-specific" per the ACPI specification, and therefore any characters are 757216471Sjkimacceptable. The only checks that can be performed are for a null string and 758216471Sjkimperhaps for a leading asterisk. ACPICA BZ 886. 759216471Sjkim 760216471SjkimiASL: Fixed a problem where a syntax error that caused a premature EOF 761216471Sjkimcondition on the source file emitted a very confusing error message. The 762216471Sjkimpremature EOF is now detected correctly. ACPICA BZ 891. 763216471Sjkim 764216471SjkimDisassembler: Decode the AccessSize within a Generic Address Structure (byte 765216471Sjkimaccess, word access, etc.) Note, this field does not allow arbitrary bit 766216471Sjkimaccess, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 767216471Sjkim 768216471SjkimNew: AcpiNames utility - Example namespace dump utility. Shows an example of 769216471SjkimACPICA configuration for a minimal namespace dump utility. Uses table and 770216471Sjkimnamespace managers, but no AML interpreter. Does not add any functionality 771216471Sjkimover AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 772216471Sjkimpartition and configure ACPICA. ACPICA BZ 883. 773216471Sjkim 774216471SjkimAML Debugger: Increased the debugger buffer size for method return objects. 775216471SjkimWas 4K, increased to 16K. Also enhanced error messages for debugger method 776216471Sjkimexecution, including the buffer overflow case. 777216471Sjkim 778216471Sjkim---------------------------------------- 779213806Sjkim13 October 2010. Summary of changes for version 20101013: 780213806Sjkim 781213806Sjkim1) ACPI CA Core Subsystem: 782213806Sjkim 783213806SjkimAdded support to clear the PCIEXP_WAKE event. When clearing ACPI events, now 784213806Sjkimclear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 785213806SjkimHwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 786213806Sjkim 787213806SjkimChanged the type of the predefined namespace object _TZ from ThermalZone to 788213806SjkimDevice. This was found to be confusing to the host software that processes 789213806Sjkimthe various thermal zones, since _TZ is not really a ThermalZone. However, a 790213806SjkimNotify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 791213806SjkimZhang. 792213806Sjkim 793213806SjkimAdded Windows Vista SP2 to the list of supported _OSI strings. The actual 794213806Sjkimstring is "Windows 2006 SP2". 795213806Sjkim 796213806SjkimEliminated duplicate code in AcpiUtExecute* functions. Now that the nsrepair 797213806Sjkimcode automatically repairs _HID-related strings, this type of code is no 798213806Sjkimlonger needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 799213806Sjkim 800213806SjkimExample Code and Data Size: These are the sizes for the OS-independent 801213806Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 802220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 803213806Sjkimmuch larger code and data size. 804213806Sjkim 805213806Sjkim Previous Release: 806213806Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 807213806Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 808213806Sjkim Current Release: 809213806Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 810213806Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 811213806Sjkim 812213806Sjkim2) iASL Compiler/Disassembler and Tools: 813213806Sjkim 814213806SjkimiASL: Implemented additional compile-time validation for _HID strings. The 815220663Sjkimnon-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length of 816213806Sjkimthe string must be exactly seven or eight characters. For both _HID and _CID 817213806Sjkimstrings, all characters must be alphanumeric. ACPICA BZ 874. 818213806Sjkim 819213806SjkimiASL: Allow certain "null" resource descriptors. Some BIOS code creates 820220663Sjkimdescriptors that are mostly or all zeros, with the expectation that they will 821220663Sjkimbe filled in at runtime. iASL now allows this as long as there is a "resource 822213806Sjkimtag" (name) associated with the descriptor, which gives the ASL a handle 823213806Sjkimneeded to modify the descriptor. ACPICA BZ 873. 824213806Sjkim 825213806SjkimAdded single-thread support to the generic Unix application OSL. Primarily 826213806Sjkimfor iASL support, this change removes the use of semaphores in the single- 827213806Sjkimthreaded ACPICA tools/applications - increasing performance. The 828213806Sjkim_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 829213806Sjkimoption. ACPICA BZ 879. 830213806Sjkim 831220663SjkimAcpiExec: several fixes for the 64-bit version. Adds XSDT support and support 832213806Sjkimfor 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 833213806Sjkim 834213806SjkimiASL: Moved all compiler messages to a new file, aslmessages.h. 835213806Sjkim 836213806Sjkim---------------------------------------- 837212761Sjkim15 September 2010. Summary of changes for version 20100915: 838212761Sjkim 839212761Sjkim1) ACPI CA Core Subsystem: 840212761Sjkim 841220663SjkimRemoved the AcpiOsDerivePciId OSL interface. The various host implementations 842212761Sjkimof this function were not OS-dependent and are now obsolete and can be 843212761Sjkimremoved from all host OSLs. This function has been replaced by 844212761SjkimAcpiHwDerivePciId, which is now part of the ACPICA core code. 845212761SjkimAcpiHwDerivePciId has been implemented without recursion. Adds one new 846212761Sjkimmodule, hwpci.c. ACPICA BZ 857. 847212761Sjkim 848212761SjkimImplemented a dynamic repair for _HID and _CID strings. The following 849212761Sjkimproblems are now repaired at runtime: 1) Remove a leading asterisk in the 850212761Sjkimstring, and 2) the entire string is uppercased. Both repairs are in 851212761Sjkimaccordance with the ACPI specification and will simplify host driver code. 852212761SjkimACPICA BZ 871. 853212761Sjkim 854212761SjkimThe ACPI_THREAD_ID type is no longer configurable, internally it is now 855220663Sjkimalways UINT64. This simplifies the ACPICA code, especially any printf output. 856212761SjkimUINT64 is the only common data type for all thread_id types across all 857212761Sjkimoperating systems. It is now up to the host OSL to cast the native thread_id 858212761Sjkimtype to UINT64 before returning the value to ACPICA (via AcpiOsGetThreadId). 859212761SjkimLin Ming, Bob Moore. 860212761Sjkim 861212761SjkimAdded the ACPI_INLINE type to enhance the ACPICA configuration. The "inline" 862212761Sjkimkeyword is not standard across compilers, and this type allows inline to be 863212761Sjkimconfigured on a per-compiler basis. Lin Ming. 864212761Sjkim 865212761SjkimMade the system global AcpiGbl_SystemAwakeAndRunning publically available. 866212761SjkimAdded an extern for this boolean in acpixf.h. Some hosts utilize this value 867212761Sjkimduring suspend/restore operations. ACPICA BZ 869. 868212761Sjkim 869212761SjkimAll code that implements error/warning messages with the "ACPI:" prefix has 870212761Sjkimbeen moved to a new module, utxferror.c. 871212761Sjkim 872212761SjkimThe UINT64_OVERLAY was moved to utmath.c, which is the only module where it 873212761Sjkimis used. ACPICA BZ 829. Lin Ming, Bob Moore. 874212761Sjkim 875212761SjkimExample Code and Data Size: These are the sizes for the OS-independent 876212761Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 877220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 878212761Sjkimmuch larger code and data size. 879212761Sjkim 880212761Sjkim Previous Release: 881212761Sjkim Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 882212761Sjkim Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 883212761Sjkim Current Release: 884212761Sjkim Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 885212761Sjkim Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 886212761Sjkim 887212761Sjkim2) iASL Compiler/Disassembler and Tools: 888212761Sjkim 889212761SjkimiASL/Disassembler: Write ACPI errors to stderr instead of the output file. 890212761SjkimThis keeps the output files free of random error messages that may originate 891212761Sjkimfrom within the namespace/interpreter code. Used this opportunity to merge 892212761Sjkimall ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 893212761Sjkim866. Lin Ming, Bob Moore. 894212761Sjkim 895212761SjkimTools: update some printfs for ansi warnings on size_t. Handle width change 896212761Sjkimof size_t on 32-bit versus 64-bit generations. Lin Ming. 897212761Sjkim 898212761Sjkim---------------------------------------- 899210976Sjkim06 August 2010. Summary of changes for version 20100806: 900210976Sjkim 901210976Sjkim1) ACPI CA Core Subsystem: 902210976Sjkim 903210976SjkimDesigned and implemented a new host interface to the _OSI support code. This 904210976Sjkimwill allow the host to dynamically add or remove multiple _OSI strings, as 905210976Sjkimwell as install an optional handler that is called for each _OSI invocation. 906220663SjkimAlso added a new AML debugger command, 'osi' to display and modify the global 907210976Sjkim_OSI string table, and test support in the AcpiExec utility. See the ACPICA 908210976Sjkimreference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 909210976SjkimNew Functions: 910210976Sjkim AcpiInstallInterface - Add an _OSI string. 911210976Sjkim AcpiRemoveInterface - Delete an _OSI string. 912210976Sjkim AcpiInstallInterfaceHandler - Install optional _OSI handler. 913210976SjkimObsolete Functions: 914210976Sjkim AcpiOsValidateInterface - no longer used. 915210976SjkimNew Files: 916210976Sjkim source/components/utilities/utosi.c 917210976Sjkim 918210976SjkimRe-introduced the support to enable multi-byte transfers for Embedded 919210976SjkimController (EC) operation regions. A reported problem was found to be a bug 920210976Sjkimin the host OS, not in the multi-byte support. Previously, the maximum data 921210976Sjkimsize passed to the EC operation region handler was a single byte. There are 922210976Sjkimoften EC Fields larger than one byte that need to be transferred, and it is 923210976Sjkimuseful for the EC driver to lock these as a single transaction. This change 924210976Sjkimenables single transfers larger than 8 bits. This effectively changes the 925210976Sjkimaccess to the EC space from ByteAcc to AnyAcc, and will probably require 926210976Sjkimchanges to the host OS Embedded Controller driver to enable 16/32/64/256-bit 927210976Sjkimtransfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 928210976Sjkim 929210976SjkimFixed a problem with the prototype for AcpiOsReadPciConfiguration. The 930210976Sjkimprototype in acpiosxf.h had the output value pointer as a (void *). 931210976SjkimIt should be a (UINT64 *). This may affect some host OSL code. 932210976Sjkim 933210976SjkimFixed a couple problems with the recently modified Linux makefiles for iASL 934210976Sjkimand AcpiExec. These new makefiles place the generated object files in the 935220663Sjkimlocal directory so that there can be no collisions between the files that are 936210976Sjkimshared between them that are compiled with different options. 937210976Sjkim 938210976SjkimExample Code and Data Size: These are the sizes for the OS-independent 939210976Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 940220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 941210976Sjkimmuch larger code and data size. 942210976Sjkim 943210976Sjkim Previous Release: 944210976Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 945210976Sjkim Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 946210976Sjkim Current Release: 947210976Sjkim Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 948210976Sjkim Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 949210976Sjkim 950210976Sjkim2) iASL Compiler/Disassembler and Tools: 951210976Sjkim 952210976SjkimiASL/Disassembler: Added a new option (-da, "disassemble all") to load the 953210976Sjkimnamespace from and disassemble an entire group of AML files. Useful for 954210976Sjkimloading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) and 955210976Sjkimdisassembling with one simple command. ACPICA BZ 865. Lin Ming. 956210976Sjkim 957210976SjkimiASL: Allow multiple invocations of -e option. This change allows multiple 958210976Sjkimuses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 834. 959210976SjkimLin Ming. 960210976Sjkim 961210976Sjkim---------------------------------------- 962209746Sjkim02 July 2010. Summary of changes for version 20100702: 963209746Sjkim 964209746Sjkim1) ACPI CA Core Subsystem: 965209746Sjkim 966209746SjkimImplemented several updates to the recently added GPE reference count 967209746Sjkimsupport. The model for "wake" GPEs is changing to give the host OS complete 968209746Sjkimcontrol of these GPEs. Eventually, the ACPICA core will not execute any _PRW 969209746Sjkimmethods, since the host already must execute them. Also, additional changes 970209746Sjkimwere made to help ensure that the reference counts are kept in proper 971209746Sjkimsynchronization with reality. Rafael J. Wysocki. 972209746Sjkim 973209746Sjkim1) Ensure that GPEs are not enabled twice during initialization. 974209746Sjkim2) Ensure that GPE enable masks stay in sync with the reference count. 975209746Sjkim3) Do not inadvertently enable GPEs when writing GPE registers. 976209746Sjkim4) Remove the internal wake reference counter and add new AcpiGpeWakeup 977209746Sjkiminterface. This interface will set or clear individual GPEs for wakeup. 978209746Sjkim5) Remove GpeType argument from AcpiEnable and AcpiDisable. These interfaces 979209746Sjkimare now used for "runtime" GPEs only. 980209746Sjkim 981220663SjkimChanged the behavior of the GPE install/remove handler interfaces. The GPE is 982209746Sjkimno longer disabled during this process, as it was found to cause problems on 983209746Sjkimsome machines. Rafael J. Wysocki. 984209746Sjkim 985209746SjkimReverted a change introduced in version 20100528 to enable Embedded 986220663SjkimController multi-byte transfers. This change was found to cause problems with 987209746SjkimIndex Fields and possibly Bank Fields. It will be reintroduced when these 988209746Sjkimproblems have been resolved. 989209746Sjkim 990209746SjkimFixed a problem with references to Alias objects within Package Objects. A 991209746Sjkimreference to an Alias within the definition of a Package was not always 992209746Sjkimresolved properly. Aliases to objects like Processors, Thermal zones, etc. 993220663Sjkimwere resolved to the actual object instead of a reference to the object as it 994209746Sjkimshould be. Package objects are only allowed to contain integer, string, 995209746Sjkimbuffer, package, and reference objects. Redhat bugzilla 608648. 996209746Sjkim 997209746SjkimExample Code and Data Size: These are the sizes for the OS-independent 998209746Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 999220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1000209746Sjkimmuch larger code and data size. 1001209746Sjkim 1002209746Sjkim Previous Release: 1003209746Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1004209746Sjkim Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1005209746Sjkim Current Release: 1006209746Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1007209746Sjkim Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 1008209746Sjkim 1009209746Sjkim2) iASL Compiler/Disassembler and Tools: 1010209746Sjkim 1011209746SjkimiASL: Implemented a new compiler subsystem to allow definition and 1012209746Sjkimcompilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. These 1013209746Sjkimare called "ACPI Data Tables", and the new compiler is the "Data Table 1014209746SjkimCompiler". This compiler is intended to simplify the existing error-prone 1015209746Sjkimprocess of creating these tables for the BIOS, as well as allowing the 1016209746Sjkimdisassembly, modification, recompilation, and override of existing ACPI data 1017209746Sjkimtables. See the iASL User Guide for detailed information. 1018209746Sjkim 1019209746SjkimiASL: Implemented a new Template Generator option in support of the new Data 1020209746SjkimTable Compiler. This option will create examples of all known ACPI tables 1021209746Sjkimthat can be used as the basis for table development. See the iASL 1022209746Sjkimdocumentation and the -T option. 1023209746Sjkim 1024209746SjkimDisassembler and headers: Added support for the WDDT ACPI table (Watchdog 1025209746SjkimDescriptor Table). 1026209746Sjkim 1027209746SjkimUpdated the Linux makefiles for iASL and AcpiExec to place the generated 1028209746Sjkimobject files in the local directory so that there can be no collisions 1029209746Sjkimbetween the shared files between them that are generated with different 1030209746Sjkimoptions. 1031209746Sjkim 1032209746SjkimAdded support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 1033209746Sjkimthe #define __APPLE__ to enable this support. 1034209746Sjkim 1035209746Sjkim---------------------------------------- 1036209746Sjkim28 May 2010. Summary of changes for version 20100528: 1037209746Sjkim 1038209746SjkimNote: The ACPI 4.0a specification was released on April 5, 2010 and is 1039209746Sjkimavailable at www.acpi.info. This is primarily an errata release. 1040209746Sjkim 1041209746Sjkim1) ACPI CA Core Subsystem: 1042209746Sjkim 1043209746SjkimUndefined ACPI tables: We are looking for the definitions for the following 1044209746SjkimACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 1045209746Sjkim 1046209746SjkimImplemented support to enable multi-byte transfers for Embedded Controller 1047209746Sjkim(EC) operation regions. Previously, the maximum data size passed to the EC 1048209746Sjkimoperation region handler was a single byte. There are often EC Fields larger 1049220663Sjkimthan one byte that need to be transferred, and it is useful for the EC driver 1050209746Sjkimto lock these as a single transaction. This change enables single transfers 1051209746Sjkimlarger than 8 bits. This effectively changes the access to the EC space from 1052209746SjkimByteAcc to AnyAcc, and will probably require changes to the host OS Embedded 1053209746SjkimController driver to enable 16/32/64/256-bit transfers in addition to 8-bit 1054209746Sjkimtransfers. Alexey Starikovskiy, Lin Ming 1055209746Sjkim 1056209746SjkimImplemented a performance enhancement for namespace search and access. This 1057209746Sjkimchange enhances the performance of namespace searches and walks by adding a 1058209746Sjkimbackpointer to the parent in each namespace node. On large namespaces, this 1059209746Sjkimchange can improve overall ACPI performance by up to 9X. Adding a pointer to 1060209746Sjkimeach namespace node increases the overall size of the internal namespace by 1061209746Sjkimabout 5%, since each namespace entry usually consists of both a namespace 1062209746Sjkimnode and an ACPI operand object. However, this is the first growth of the 1063209746Sjkimnamespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 1064209746Sjkim 1065209746SjkimImplemented a performance optimization that reduces the number of namespace 1066220663Sjkimwalks. On control method exit, only walk the namespace if the method is known 1067220663Sjkimto have created namespace objects outside of its local scope. Previously, the 1068209746Sjkimentire namespace was traversed on each control method exit. This change can 1069220663Sjkimimprove overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob Moore. 1070209746Sjkim 1071220663SjkimAdded support to truncate I/O addresses to 16 bits for Windows compatibility. 1072209746SjkimSome ASL code has been seen in the field that inadvertently has bits set 1073209746Sjkimabove bit 15. This feature is optional and is enabled if the BIOS requests 1074209746Sjkimany Windows OSI strings. It can also be enabled by the host OS. Matthew 1075209746SjkimGarrett, Bob Moore. 1076209746Sjkim 1077209746SjkimAdded support to limit the maximum time for the ASL Sleep() operator. To 1078209746Sjkimprevent accidental deep sleeps, limit the maximum time that Sleep() will 1079209746Sjkimactually sleep. Configurable, the default maximum is two seconds. ACPICA 1080209746Sjkimbugzilla 854. 1081209746Sjkim 1082209746SjkimAdded run-time validation support for the _WDG and_WED Microsoft predefined 1083209746Sjkimmethods. These objects are defined by "Windows Instrumentation", and are not 1084209746Sjkimpart of the ACPI spec. ACPICA BZ 860. 1085209746Sjkim 1086209746SjkimExpanded all statistic counters used during namespace and device 1087209746Sjkiminitialization from 16 to 32 bits in order to support very large namespaces. 1088209746Sjkim 1089220663SjkimReplaced all instances of %d in printf format specifiers with %u since nearly 1090209746Sjkimall integers in ACPICA are unsigned. 1091209746Sjkim 1092220663SjkimFixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly returned 1093209746Sjkimas AE_NO_HANDLER. 1094209746Sjkim 1095209746SjkimExample Code and Data Size: These are the sizes for the OS-independent 1096209746Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1097220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1098209746Sjkimmuch larger code and data size. 1099209746Sjkim 1100209746Sjkim Previous Release: 1101209746Sjkim Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1102209746Sjkim Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1103209746Sjkim Current Release: 1104209746Sjkim Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 1105209746Sjkim Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 1106209746Sjkim 1107209746Sjkim2) iASL Compiler/Disassembler and Tools: 1108209746Sjkim 1109209746SjkimiASL: Added compiler support for the _WDG and_WED Microsoft predefined 1110209746Sjkimmethods. These objects are defined by "Windows Instrumentation", and are not 1111209746Sjkimpart of the ACPI spec. ACPICA BZ 860. 1112209746Sjkim 1113209746SjkimAcpiExec: added option to disable the memory tracking mechanism. The -dt 1114209746Sjkimoption will disable the tracking mechanism, which improves performance 1115209746Sjkimconsiderably. 1116209746Sjkim 1117209746SjkimAcpiExec: Restructured the command line options into -d (disable) and -e 1118209746Sjkim(enable) options. 1119209746Sjkim 1120209746Sjkim---------------------------------------- 1121207344Sjkim28 April 2010. Summary of changes for version 20100428: 1122207344Sjkim 1123207344Sjkim1) ACPI CA Core Subsystem: 1124207344Sjkim 1125207344SjkimImplemented GPE support for dynamically loaded ACPI tables. For all GPEs, 1126207344Sjkimincluding FADT-based and GPE Block Devices, execute any _PRW methods in the 1127207344Sjkimnew table, and process any _Lxx/_Exx GPE methods in the new table. Any 1128207344Sjkimruntime GPE that is referenced by an _Lxx/_Exx method in the new table is 1129207344Sjkimimmediately enabled. Handles the FADT-defined GPEs as well as GPE Block 1130207344SjkimDevices. Provides compatibility with other ACPI implementations. Two new 1131220663Sjkimfiles added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. 1132207344Sjkim 1133207344SjkimFixed a regression introduced in version 20100331 within the table manager 1134207344Sjkimwhere initial table loading could fail. This was introduced in the fix for 1135207344SjkimAcpiReallocateRootTable. Also, renamed some of fields in the table manager 1136207344Sjkimdata structures to clarify their meaning and use. 1137207344Sjkim 1138207344SjkimFixed a possible allocation overrun during internal object copy in 1139207344SjkimAcpiUtCopySimpleObject. The original code did not correctly handle the case 1140207344Sjkimwhere the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. 1141207344Sjkim 1142207344SjkimUpdated the allocation dump routine, AcpiUtDumpAllocation and fixed a 1143220663Sjkimpossible access beyond end-of-allocation. Also, now fully validate descriptor 1144207344Sjkim(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 1145207344Sjkim 1146207344SjkimExample Code and Data Size: These are the sizes for the OS-independent 1147207344Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1148220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1149207344Sjkimmuch larger code and data size. 1150207344Sjkim 1151207344Sjkim Previous Release: 1152207344Sjkim Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1153207344Sjkim Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1154207344Sjkim Current Release: 1155207344Sjkim Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 1156207344Sjkim Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 1157207344Sjkim 1158207344Sjkim2) iASL Compiler/Disassembler and Tools: 1159207344Sjkim 1160207344SjkimiASL: Implemented Min/Max/Len/Gran validation for address resource 1161207344Sjkimdescriptors. This change implements validation for the address fields that 1162207344Sjkimare common to all address-type resource descriptors. These checks are 1163207344Sjkimimplemented: Checks for valid Min/Max, length within the Min/Max window, 1164207344Sjkimvalid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 1165220663Sjkimtable 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c 1166207344Sjkimand aslrestype2.c files into five new files. ACPICA BZ 840. 1167207344Sjkim 1168207344SjkimiASL: Added support for the _Wxx predefined names. This support was missing 1169207344Sjkimand these names were not recognized by the compiler as valid predefined 1170207344Sjkimnames. ACPICA BZ 851. 1171207344Sjkim 1172207344SjkimiASL: Added an error for all predefined names that are defined to return no 1173207344Sjkimvalue and thus must be implemented as Control Methods. These include all of 1174207344Sjkimthe _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 1175207344Sjkimnames such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 1176207344Sjkim 1177207344SjkimiASL: Implemented the -ts option to emit hex AML data in ASL format, as an 1178207344SjkimASL Buffer. Allows ACPI tables to be easily included within ASL files, to be 1179207344Sjkimdynamically loaded via the Load() operator. Also cleaned up output for the - 1180207344Sjkimta and -tc options. ACPICA BZ 853. 1181207344Sjkim 1182207344SjkimTests: Added a new file with examples of extended iASL error checking. 1183207344SjkimDemonstrates the advanced error checking ability of the iASL compiler. 1184207344SjkimAvailable at tests/misc/badcode.asl. 1185207344Sjkim 1186207344Sjkim---------------------------------------- 1187206117Sjkim31 March 2010. Summary of changes for version 20100331: 1188206117Sjkim 1189206117Sjkim1) ACPI CA Core Subsystem: 1190206117Sjkim 1191206117SjkimCompleted a major update for the GPE support in order to improve support for 1192206117Sjkimshared GPEs and to simplify both host OS and ACPICA code. Added a reference 1193206117Sjkimcount mechanism to support shared GPEs that require multiple device drivers. 1194206117SjkimSeveral external interfaces have changed. One external interface has been 1195206117Sjkimremoved. One new external interface was added. Most of the GPE external 1196206117Sjkiminterfaces now use the GPE spinlock instead of the events mutex (and the 1197206117SjkimFlags parameter for many GPE interfaces has been removed.) See the updated 1198206117SjkimACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 1199206117SjkimWysocki. ACPICA BZ 831. 1200206117Sjkim 1201206117SjkimChanged: 1202206117Sjkim AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 1203206117SjkimRemoved: 1204206117Sjkim AcpiSetGpeType 1205206117SjkimNew: 1206206117Sjkim AcpiSetGpe 1207206117Sjkim 1208206117SjkimImplemented write support for DataTable operation regions. These regions are 1209220663Sjkimdefined via the DataTableRegion() operator. Previously, only read support was 1210220663Sjkimimplemented. The ACPI specification allows DataTableRegions to be read/write, 1211206117Sjkimhowever. 1212206117Sjkim 1213206117SjkimImplemented a new subsystem option to force a copy of the DSDT to local 1214206117Sjkimmemory. Optionally copy the entire DSDT to local memory (instead of simply 1215206117Sjkimmapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 1216206117Sjkimthe original DSDT, creating the need for this option. Default is FALSE, do 1217206117Sjkimnot copy the DSDT. 1218206117Sjkim 1219206117SjkimImplemented detection of a corrupted or replaced DSDT. This change adds 1220220663Sjkimsupport to detect a DSDT that has been corrupted and/or replaced from outside 1221206117Sjkimthe OS (by firmware). This is typically catastrophic for the system, but has 1222206117Sjkimbeen seen on some machines. Once this problem has been detected, the DSDT 1223206117Sjkimcopy option can be enabled via system configuration. Lin Ming, Bob Moore. 1224206117Sjkim 1225206117SjkimFixed two problems with AcpiReallocateRootTable during the root table copy. 1226206117SjkimWhen copying the root table to the new allocation, the length used was 1227206117Sjkimincorrect. The new size was used instead of the current table size, meaning 1228206117Sjkimtoo much data was copied. Also, the count of available slots for ACPI tables 1229206117Sjkimwas not set correctly. Alexey Starikovskiy, Bob Moore. 1230206117Sjkim 1231206117SjkimExample Code and Data Size: These are the sizes for the OS-independent 1232206117Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1233220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1234206117Sjkimmuch larger code and data size. 1235206117Sjkim 1236206117Sjkim Previous Release: 1237206117Sjkim Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1238206117Sjkim Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1239206117Sjkim Current Release: 1240206117Sjkim Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 1241206117Sjkim Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 1242206117Sjkim 1243206117Sjkim2) iASL Compiler/Disassembler and Tools: 1244206117Sjkim 1245206117SjkimiASL: Implement limited typechecking for values returned from predefined 1246206117Sjkimcontrol methods. The type of any returned static (unnamed) object is now 1247206117Sjkimvalidated. For example, Return(1). ACPICA BZ 786. 1248206117Sjkim 1249220663SjkimiASL: Fixed a predefined name object verification regression. Fixes a problem 1250206117Sjkimintroduced in version 20100304. An error is incorrectly generated if a 1251206117Sjkimpredefined name is declared as a static named object with a value defined 1252206117Sjkimusing the keywords "Zero", "One", or "Ones". Lin Ming. 1253206117Sjkim 1254206117SjkimiASL: Added Windows 7 support for the -g option (get local ACPI tables) by 1255206117Sjkimreducing the requested registry access rights. ACPICA BZ 842. 1256206117Sjkim 1257206117SjkimDisassembler: fixed a possible fault when generating External() statements. 1258206117SjkimIntroduced in commit ae7d6fd: Properly handle externals with parent-prefix 1259206117Sjkim(carat). Fixes a string length allocation calculation. Lin Ming. 1260206117Sjkim 1261206117Sjkim---------------------------------------- 1262204773Sjkim04 March 2010. Summary of changes for version 20100304: 1263204773Sjkim 1264204773Sjkim1) ACPI CA Core Subsystem: 1265204773Sjkim 1266204773SjkimFixed a possible problem with the AML Mutex handling function 1267204773SjkimAcpiExReleaseMutex where the function could fault under the very rare 1268220663Sjkimcondition when the interpreter has blocked, the interpreter lock is released, 1269204773Sjkimthe interpreter is then reentered via the same thread, and attempts to 1270220663Sjkimacquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 1271204773SjkimMing. 1272204773Sjkim 1273204773SjkimImplemented additional configuration support for the AML "Debug Object". 1274204773SjkimOutput from the debug object can now be enabled via a global variable, 1275220663SjkimAcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 1276204773SjkimThis debug output is now available in the release version of ACPICA instead 1277204773Sjkimof just the debug version. Also, the entire debug output module can now be 1278204773Sjkimconfigured out of the ACPICA build if desired. One new file added, 1279204773Sjkimexecuter/exdebug.c. Lin Ming, Bob Moore. 1280204773Sjkim 1281204773SjkimAdded header support for the ACPI MCHI table (Management Controller Host 1282220663SjkimInterface Table). This table was added in ACPI 4.0, but the defining document 1283204773Sjkimhas only recently become available. 1284204773Sjkim 1285204773SjkimStandardized output of integer values for ACPICA warnings/errors. Always use 1286204773Sjkim0x prefix for hex output, always use %u for unsigned integer decimal output. 1287204773SjkimAffects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 1288204773Sjkiminvocations.) These invocations were converted from the original 1289204773SjkimACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 1290204773Sjkim 1291204773SjkimExample Code and Data Size: These are the sizes for the OS-independent 1292204773Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1293220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1294204773Sjkimmuch larger code and data size. 1295204773Sjkim 1296204773Sjkim Previous Release: 1297204773Sjkim Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1298204773Sjkim Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1299204773Sjkim Current Release: 1300204773Sjkim Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 1301204773Sjkim Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 1302204773Sjkim 1303204773Sjkim2) iASL Compiler/Disassembler and Tools: 1304204773Sjkim 1305204773SjkimiASL: Implemented typechecking support for static (non-control method) 1306204773Sjkimpredefined named objects that are declared with the Name() operator. For 1307204773Sjkimexample, the type of this object is now validated to be of type Integer: 1308220663SjkimName(_BBN, 1). This change migrates the compiler to using the core predefined 1309204773Sjkimname table instead of maintaining a local version. Added a new file, 1310204773Sjkimaslpredef.c. ACPICA BZ 832. 1311204773Sjkim 1312204773SjkimDisassembler: Added support for the ACPI 4.0 MCHI table. 1313204773Sjkim 1314204773Sjkim---------------------------------------- 1315202771Sjkim21 January 2010. Summary of changes for version 20100121: 1316202771Sjkim 1317202771Sjkim1) ACPI CA Core Subsystem: 1318202771Sjkim 1319202771SjkimAdded the 2010 copyright to all module headers and signons. This affects 1320202771Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, the 1321202771Sjkimtools/utilities, and the test suites. 1322202771Sjkim 1323220663SjkimImplemented a change to the AcpiGetDevices interface to eliminate unnecessary 1324202771Sjkiminvocations of the _STA method. In the case where a specific _HID is 1325202771Sjkimrequested, do not run _STA until a _HID match is found. This eliminates 1326220663Sjkimpotentially dozens of _STA calls during a search for a particular device/HID, 1327202771Sjkimwhich in turn can improve boot times. ACPICA BZ 828. Lin Ming. 1328202771Sjkim 1329220663SjkimImplemented an additional repair for predefined method return values. Attempt 1330220663Sjkimto repair unexpected NULL elements within returned Package objects. Create an 1331220663SjkimInteger of value zero, a NULL String, or a zero-length Buffer as appropriate. 1332202771SjkimACPICA BZ 818. Lin Ming, Bob Moore. 1333202771Sjkim 1334202771SjkimRemoved the obsolete ACPI_INTEGER data type. This type was introduced as the 1335202771Sjkimcode was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 1336202771Sjkim64-bit AML integers). It is now obsolete and this change removes it from the 1337202771SjkimACPICA code base, replaced by UINT64. The original typedef has been retained 1338202771Sjkimfor now for compatibility with existing device driver code. ACPICA BZ 824. 1339202771Sjkim 1340202771SjkimRemoved the unused UINT32_STRUCT type, and the obsolete Integer64 field in 1341202771Sjkimthe parse tree object. 1342202771Sjkim 1343220663SjkimAdded additional warning options for the gcc-4 generation. Updated the source 1344202771Sjkimaccordingly. This includes some code restructuring to eliminate unreachable 1345202771Sjkimcode, elimination of some gotos, elimination of unused return values, some 1346202771Sjkimadditional casting, and removal of redundant declarations. 1347202771Sjkim 1348202771SjkimExample Code and Data Size: These are the sizes for the OS-independent 1349202771Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1350220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1351202771Sjkimmuch larger code and data size. 1352202771Sjkim 1353202771Sjkim Previous Release: 1354202771Sjkim Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1355202771Sjkim Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1356202771Sjkim Current Release: 1357202771Sjkim Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 1358202771Sjkim Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 1359202771Sjkim 1360202771Sjkim2) iASL Compiler/Disassembler and Tools: 1361202771Sjkim 1362202771SjkimNo functional changes for this release. 1363202771Sjkim 1364202771Sjkim---------------------------------------- 1365200553Sjkim14 December 2009. Summary of changes for version 20091214: 1366200553Sjkim 1367200553Sjkim1) ACPI CA Core Subsystem: 1368200553Sjkim 1369200553SjkimEnhanced automatic data type conversions for predefined name repairs. This 1370200553Sjkimchange expands the automatic repairs/conversions for predefined name return 1371200553Sjkimvalues to make Integers, Strings, and Buffers fully interchangeable. Also, a 1372220663SjkimBuffer can be converted to a Package of Integers if necessary. The nsrepair.c 1373200553Sjkimmodule was completely restructured. Lin Ming, Bob Moore. 1374200553Sjkim 1375220663SjkimImplemented automatic removal of null package elements during predefined name 1376200553Sjkimrepairs. This change will automatically remove embedded and trailing NULL 1377200553Sjkimpackage elements from returned package objects that are defined to contain a 1378200553Sjkimvariable number of sub-packages. The driver is then presented with a package 1379200553Sjkimwith no null elements to deal with. ACPICA BZ 819. 1380200553Sjkim 1381200553SjkimImplemented a repair for the predefined _FDE and _GTM names. The expected 1382200553Sjkimreturn value for both names is a Buffer of 5 DWORDs. This repair fixes two 1383200553Sjkimpossible problems (both seen in the field), where a package of integers is 1384220663Sjkimreturned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. 1385200553Sjkim 1386200553SjkimImplemented additional module-level code support. This change will properly 1387200553Sjkimexecute module-level code that is not at the root of the namespace (under a 1388200553SjkimDevice object, etc.). Now executes the code within the current scope instead 1389200553Sjkimof the root. ACPICA BZ 762. Lin Ming. 1390200553Sjkim 1391200553SjkimFixed possible mutex acquisition errors when running _REG methods. Fixes a 1392200553Sjkimproblem where mutex errors can occur when running a _REG method that is in 1393200553Sjkimthe same scope as a method-defined operation region or an operation region 1394200553Sjkimunder a module-level IF block. This type of code is rare, so the problem has 1395200553Sjkimnot been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 1396200553Sjkim 1397200553SjkimFixed a possible memory leak during module-level code execution. An object 1398200553Sjkimcould be leaked for each block of executed module-level code if the 1399220663Sjkiminterpreter slack mode is enabled This change deletes any implicitly returned 1400200553Sjkimobject from the module-level code block. Lin Ming. 1401200553Sjkim 1402200553SjkimRemoved messages for successful predefined repair(s). The repair mechanism 1403200553Sjkimwas considered too wordy. Now, messages are only unconditionally emitted if 1404200553Sjkimthe return object cannot be repaired. Existing messages for successful 1405200553Sjkimrepairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. 1406200553Sjkim 1407200553SjkimExample Code and Data Size: These are the sizes for the OS-independent 1408200553Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1409220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1410200553Sjkimmuch larger code and data size. 1411200553Sjkim 1412200553Sjkim Previous Release: 1413200553Sjkim Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1414200553Sjkim Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1415200553Sjkim Current Release: 1416200553Sjkim Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 1417200553Sjkim Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 1418200553Sjkim 1419200553Sjkim2) iASL Compiler/Disassembler and Tools: 1420200553Sjkim 1421220663SjkimiASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 1422200553Sjkimwere no longer automatically removed at the termination of the compile. 1423200553Sjkim 1424200553Sjkimacpiexec: Implemented the -f option to specify default region fill value. 1425200553SjkimThis option specifies the value used to initialize buffers that simulate 1426200553Sjkimoperation regions. Default value is zero. Useful for debugging problems that 1427200553Sjkimdepend on a specific initial value for a region or field. 1428200553Sjkim 1429200553Sjkim---------------------------------------- 1430199337Sjkim12 November 2009. Summary of changes for version 20091112: 1431199337Sjkim 1432199337Sjkim1) ACPI CA Core Subsystem: 1433199337Sjkim 1434199337SjkimImplemented a post-order callback to AcpiWalkNamespace. The existing 1435199337Sjkiminterface only has a pre-order callback. This change adds an additional 1436199337Sjkimparameter for a post-order callback which will be more useful for bus scans. 1437199337SjkimACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 1438199337Sjkim 1439199337SjkimModified the behavior of the operation region memory mapping cache for 1440199337SjkimSystemMemory. Ensure that the memory mappings created for operation regions 1441199337Sjkimdo not cross 4K page boundaries. Crossing a page boundary while mapping 1442199337Sjkimregions can cause kernel warnings on some hosts if the pages have different 1443199337Sjkimattributes. Such regions are probably BIOS bugs, and this is the workaround. 1444199337SjkimLinux BZ 14445. Lin Ming. 1445199337Sjkim 1446199337SjkimImplemented an automatic repair for predefined methods that must return 1447220663Sjkimsorted lists. This change will repair (by sorting) packages returned by _ALR, 1448220663Sjkim_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 1449199337Sjkimand do not contain NULL package elements. Adds one new file, 1450199337Sjkimnamespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 1451199337Sjkim 1452199337SjkimFixed a possible fault during predefined name validation if a return Package 1453199337Sjkimobject contains NULL elements. Also adds a warning if a NULL element is 1454220663Sjkimfollowed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 1455199337Sjkiminclude repair or removal of all such NULL elements where possible. 1456199337Sjkim 1457199337SjkimImplemented additional module-level executable AML code support. This change 1458199337Sjkimwill execute module-level code that is not at the root of the namespace 1459220663Sjkim(under a Device object, etc.) at table load time. Module-level executable AML 1460199337Sjkimcode has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 1461199337Sjkim 1462199337SjkimImplemented a new internal function to create Integer objects. This function 1463199337Sjkimsimplifies miscellaneous object creation code. ACPICA BZ 823. 1464199337Sjkim 1465199337SjkimReduced the severity of predefined repair messages, Warning to Info. Since 1466199337Sjkimthe object was successfully repaired, a warning is too severe. Reduced to an 1467220663Sjkiminfo message for now. These messages may eventually be changed to debug-only. 1468199337SjkimACPICA BZ 812. 1469199337Sjkim 1470199337SjkimExample Code and Data Size: These are the sizes for the OS-independent 1471199337Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1472220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1473199337Sjkimmuch larger code and data size. 1474199337Sjkim 1475199337Sjkim Previous Release: 1476199337Sjkim Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1477199337Sjkim Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1478199337Sjkim Current Release: 1479199337Sjkim Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 1480199337Sjkim Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 1481199337Sjkim 1482199337Sjkim2) iASL Compiler/Disassembler and Tools: 1483199337Sjkim 1484199337SjkimiASL: Implemented Switch() with While(1) so that Break works correctly. This 1485199337Sjkimchange correctly implements the Switch operator with a surrounding While(1) 1486199337Sjkimso that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 1487199337Sjkim 1488199337SjkimiASL: Added a message if a package initializer list is shorter than package 1489199337Sjkimlength. Adds a new remark for a Package() declaration if an initializer list 1490199337Sjkimexists, but is shorter than the declared length of the package. Although 1491199337Sjkimtechnically legal, this is probably a coding error and it is seen in the 1492199337Sjkimfield. ACPICA BZ 815. Lin Ming, Bob Moore. 1493199337Sjkim 1494220663SjkimiASL: Fixed a problem where the compiler could fault after the maximum number 1495199337Sjkimof errors was reached (200). 1496199337Sjkim 1497220663Sjkimacpixtract: Fixed a possible warning for pointer cast if the compiler warning 1498199337Sjkimlevel set very high. 1499199337Sjkim 1500199337Sjkim---------------------------------------- 1501198237Sjkim13 October 2009. Summary of changes for version 20091013: 1502197104Sjkim 1503197104Sjkim1) ACPI CA Core Subsystem: 1504197104Sjkim 1505198237SjkimFixed a problem where an Operation Region _REG method could be executed more 1506198237Sjkimthan once. If a custom address space handler is installed by the host before 1507198237Sjkimthe "initialize operation regions" phase of the ACPICA initialization, any 1508198237Sjkim_REG methods for that address space could be executed twice. This change 1509198237Sjkimfixes the problem. ACPICA BZ 427. Lin Ming. 1510198237Sjkim 1511198237SjkimFixed a possible memory leak for the Scope() ASL operator. When the exact 1512198237Sjkiminvocation of "Scope(\)" is executed (change scope to root), one internal 1513198237Sjkimoperand object was leaked. Lin Ming. 1514198237Sjkim 1515198237SjkimImplemented a run-time repair for the _MAT predefined method. If the _MAT 1516198237Sjkimreturn value is defined as a Field object in the AML, and the field 1517220663Sjkimsize is less than or equal to the default width of an integer (32 or 64),_MAT 1518198237Sjkimcan incorrectly return an Integer instead of a Buffer. ACPICA now 1519198237Sjkimautomatically repairs this problem. ACPICA BZ 810. 1520198237Sjkim 1521198237SjkimImplemented a run-time repair for the _BIF and _BIX predefined methods. The 1522198237Sjkim"OEM Information" field is often incorrectly returned as an Integer with 1523198237Sjkimvalue zero if the field is not supported by the platform. This is due to an 1524198237Sjkimambiguity in the ACPI specification. The field should always be a string. 1525198237SjkimACPICA now automatically repairs this problem by returning a NULL string 1526198237Sjkimwithin the returned Package. ACPICA BZ 807. 1527198237Sjkim 1528198237SjkimExample Code and Data Size: These are the sizes for the OS-independent 1529198237Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1530220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1531198237Sjkimmuch larger code and data size. 1532198237Sjkim 1533198237Sjkim Previous Release: 1534198237Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1535198237Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1536198237Sjkim Current Release: 1537198237Sjkim Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 1538198237Sjkim Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 1539198237Sjkim 1540198237Sjkim2) iASL Compiler/Disassembler and Tools: 1541198237Sjkim 1542198237SjkimDisassembler: Fixed a problem where references to external symbols that 1543198237Sjkimcontained one or more parent-prefixes (carats) were not handled correctly, 1544198237Sjkimpossibly causing a fault. ACPICA BZ 806. Lin Ming. 1545198237Sjkim 1546198237SjkimDisassembler: Restructured the code so that all functions that handle 1547198237Sjkimexternal symbols are in a single module. One new file is added, 1548198237Sjkimcommon/dmextern.c. 1549198237Sjkim 1550198237SjkimAML Debugger: Added a max count argument for the Batch command (which 1551198237Sjkimexecutes multiple predefined methods within the namespace.) 1552198237Sjkim 1553198237SjkimiASL: Updated the compiler documentation (User Reference.) Available at 1554198237Sjkimhttp://www.acpica.org/documentation/. ACPICA BZ 750. 1555198237Sjkim 1556198237SjkimAcpiXtract: Updated for Lint and other formatting changes. Close all open 1557198237Sjkimfiles. 1558198237Sjkim 1559198237Sjkim---------------------------------------- 1560198237Sjkim03 September 2009. Summary of changes for version 20090903: 1561198237Sjkim 1562198237Sjkim1) ACPI CA Core Subsystem: 1563198237Sjkim 1564197104SjkimFor Windows Vista compatibility, added the automatic execution of an _INI 1565197104Sjkimmethod located at the namespace root (\_INI). This method is executed at 1566197104Sjkimtable load time. This support is in addition to the automatic execution of 1567197104Sjkim\_SB._INI. Lin Ming. 1568197104Sjkim 1569197104SjkimFixed a possible memory leak in the interpreter for AML package objects if 1570197104Sjkimthe package initializer list is longer than the defined size of the package. 1571197104SjkimThis apparently can only happen if the BIOS changes the package size on the 1572197104Sjkimfly (seen in a _PSS object), as ASL compilers do not allow this. The 1573220663Sjkiminterpreter will truncate the package to the defined size (and issue an error 1574220663Sjkimmessage), but previously could leave the extra objects undeleted if they were 1575197104Sjkimpre-created during the argument processing (such is the case if the package 1576197104Sjkimconsists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 1577197104Sjkim 1578197104SjkimFixed a problem seen when a Buffer or String is stored to itself via ASL. 1579197104SjkimThis has been reported in the field. Previously, ACPICA would zero out the 1580197104Sjkimbuffer/string. Now, the operation is treated as a noop. Provides Windows 1581197104Sjkimcompatibility. ACPICA BZ 803. Lin Ming. 1582197104Sjkim 1583197104SjkimRemoved an extraneous error message for ASL constructs of the form 1584197104SjkimStore(LocalX,LocalX) when LocalX is uninitialized. These curious statements 1585197104Sjkimare seen in many BIOSs and are once again treated as NOOPs and no error is 1586197104Sjkimemitted when they are encountered. ACPICA BZ 785. 1587197104Sjkim 1588197104SjkimFixed an extraneous warning message if a _DSM reserved method returns a 1589197104SjkimPackage object. _DSM can return any type of object, so validation on the 1590197104Sjkimreturn type cannot be performed. ACPICA BZ 802. 1591197104Sjkim 1592197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 1593197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1594220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1595197104Sjkimmuch larger code and data size. 1596197104Sjkim 1597197104Sjkim Previous Release: 1598197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1599197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1600197104Sjkim Current Release: 1601197104Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 1602197104Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 1603197104Sjkim 1604197104Sjkim2) iASL Compiler/Disassembler and Tools: 1605197104Sjkim 1606197104SjkimiASL: Fixed a problem with the use of the Alias operator and Resource 1607197104SjkimTemplates. The correct alias is now constructed and no error is emitted. 1608197104SjkimACPICA BZ 738. 1609197104Sjkim 1610197104SjkimiASL: Implemented the -I option to specify additional search directories for 1611197104Sjkiminclude files. Allows multiple additional search paths for include files. 1612197104SjkimDirectories are searched in the order specified on the command line (after 1613197104Sjkimthe local directory is searched.) ACPICA BZ 800. 1614197104Sjkim 1615197104SjkimiASL: Fixed a problem where the full pathname for include files was not 1616197104Sjkimemitted for warnings/errors. This caused the IDE support to not work 1617197104Sjkimproperly. ACPICA BZ 765. 1618197104Sjkim 1619197104SjkimiASL: Implemented the -@ option to specify a Windows-style response file 1620197104Sjkimcontaining additional command line options. ACPICA BZ 801. 1621197104Sjkim 1622197104SjkimAcpiExec: Added support to load multiple AML files simultaneously (such as a 1623197104SjkimDSDT and multiple SSDTs). Also added support for wildcards within the AML 1624197104Sjkimpathname. These features allow all machine tables to be easily loaded and 1625197104Sjkimdebugged together. ACPICA BZ 804. 1626197104Sjkim 1627197104SjkimDisassembler: Added missing support for disassembly of HEST table Error Bank 1628197104Sjkimsubtables. 1629197104Sjkim 1630197104Sjkim---------------------------------------- 1631197104Sjkim30 July 2009. Summary of changes for version 20090730: 1632197104Sjkim 1633197104SjkimThe ACPI 4.0 implementation for ACPICA is complete with this release. 1634197104Sjkim 1635197104Sjkim1) ACPI CA Core Subsystem: 1636197104Sjkim 1637197104SjkimACPI 4.0: Added header file support for all new and changed ACPI tables. 1638197104SjkimCompletely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 1639197104Sjkimfor ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 1640197104SjkimEINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 1641197104Sjkimhave been some ACPI 4.0 changes to other existing tables. Split the large 1642197104Sjkimactbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 1643197104Sjkim 1644220663SjkimACPI 4.0: Implemented predefined name validation for all new names. There are 1645220663Sjkim31 new names in ACPI 4.0. The predefined validation module was split into two 1646197104Sjkimfiles. The new file is namespace/nsrepair.c. ACPICA BZ 770. 1647197104Sjkim 1648197104SjkimImplemented support for so-called "module-level executable code". This is 1649220663Sjkimexecutable AML code that exists outside of any control method and is intended 1650220663Sjkimto be executed at table load time. Although illegal since ACPI 2.0, this type 1651197104Sjkimof code still exists and is apparently still being created. Blocks of this 1652197104Sjkimcode are now detected and executed as intended. Currently, the code blocks 1653197104Sjkimmust exist under either an If, Else, or While construct; these are the 1654197104Sjkimtypical cases seen in the field. ACPICA BZ 762. Lin Ming. 1655197104Sjkim 1656197104SjkimImplemented an automatic dynamic repair for predefined names that return 1657197104Sjkimnested Package objects. This applies to predefined names that are defined to 1658197104Sjkimreturn a variable-length Package of sub-packages. If the number of sub- 1659197104Sjkimpackages is one, BIOS code is occasionally seen that creates a simple single 1660197104Sjkimpackage with no sub-packages. This code attempts to fix the problem by 1661197104Sjkimwrapping a new package object around the existing package. These methods can 1662197104Sjkimbe repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 1663197104Sjkim790. 1664197104Sjkim 1665197104SjkimFixed a regression introduced in 20090625 for the AcpiGetDevices interface. 1666220663SjkimThe _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 1667197104SjkimBZ 793. 1668197104Sjkim 1669197104SjkimFixed a problem with AcpiReset where the reset would silently fail if the 1670197104Sjkimregister was one of the protected I/O ports. AcpiReset now bypasses the port 1671197104Sjkimvalidation mechanism. This may eventually be driven into the AcpiRead/Write 1672197104Sjkiminterfaces. 1673197104Sjkim 1674197104SjkimFixed a regression related to the recent update of the AcpiRead/Write 1675197104Sjkiminterfaces. A sleep/suspend could fail if the optional PM2 Control register 1676197104Sjkimdoes not exist during an attempt to write the Bus Master Arbitration bit. 1677197104Sjkim(However, some hosts already delete the code that writes this bit, and the 1678197104Sjkimcode may in fact be obsolete at this date.) ACPICA BZ 799. 1679197104Sjkim 1680220663SjkimFixed a problem where AcpiTerminate could fault if inadvertently called twice 1681197104Sjkimin succession. ACPICA BZ 795. 1682197104Sjkim 1683197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 1684197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1685220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1686197104Sjkimmuch larger code and data size. 1687197104Sjkim 1688197104Sjkim Previous Release: 1689197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 1690197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 1691197104Sjkim Current Release: 1692197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 1693197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 1694197104Sjkim 1695197104Sjkim2) iASL Compiler/Disassembler and Tools: 1696197104Sjkim 1697197104SjkimACPI 4.0: Implemented disassembler support for all new ACPI tables and 1698197104Sjkimchanges to existing tables. ACPICA BZ 775. 1699197104Sjkim 1700197104Sjkim---------------------------------------- 1701197104Sjkim25 June 2009. Summary of changes for version 20090625: 1702197104Sjkim 1703197104SjkimThe ACPI 4.0 Specification was released on June 16 and is available at 1704197104Sjkimwww.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 1705197104Sjkimcontinue for the next few releases. 1706197104Sjkim 1707197104Sjkim1) ACPI CA Core Subsystem: 1708197104Sjkim 1709197104SjkimACPI 4.0: Implemented interpreter support for the IPMI operation region 1710197104Sjkimaddress space. Includes support for bi-directional data buffers and an IPMI 1711197104Sjkimaddress space handler (to be installed by an IPMI device driver.) ACPICA BZ 1712197104Sjkim773. Lin Ming. 1713197104Sjkim 1714197104SjkimACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 1715197104Sjkimsupport in both the header files and the disassembler. 1716197104Sjkim 1717197104SjkimCompleted a major update for the AcpiGetObjectInfo external interface. 1718197104SjkimChanges include: 1719197104Sjkim - Support for variable, unlimited length HID, UID, and CID strings. 1720197104Sjkim - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 1721197104Sjkim - Call the _SxW power methods on behalf of a device object. 1722197104Sjkim - Determine if a device is a PCI root bridge. 1723197104Sjkim - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 1724197104SjkimThese changes will require an update to all callers of this interface. See 1725197104Sjkimthe updated ACPICA Programmer Reference for details. One new source file has 1726197104Sjkimbeen added - utilities/utids.c. ACPICA BZ 368, 780. 1727197104Sjkim 1728197104SjkimUpdated the AcpiRead and AcpiWrite external interfaces to support 64-bit 1729197104Sjkimtransfers. The Value parameter has been extended from 32 bits to 64 bits in 1730220663Sjkimorder to support new ACPI 4.0 tables. These changes will require an update to 1731197104Sjkimall callers of these interfaces. See the ACPICA Programmer Reference for 1732197104Sjkimdetails. ACPICA BZ 768. 1733197104Sjkim 1734197104SjkimFixed several problems with AcpiAttachData. The handler was not invoked when 1735197104Sjkimthe host node was deleted. The data sub-object was not automatically deleted 1736197104Sjkimwhen the host node was deleted. The interface to the handler had an unused 1737197104Sjkimparameter, this was removed. ACPICA BZ 778. 1738197104Sjkim 1739197104SjkimEnhanced the function that dumps ACPI table headers. All non-printable 1740197104Sjkimcharacters in the string fields are now replaced with '?' (Signature, OemId, 1741197104SjkimOemTableId, and CompilerId.) ACPI tables with non-printable characters in 1742197104Sjkimthese fields are occasionally seen in the field. ACPICA BZ 788. 1743197104Sjkim 1744197104SjkimFixed a problem with predefined method repair code where the code that 1745197104Sjkimattempts to repair/convert an object of incorrect type is only executed on 1746197104Sjkimthe first time the predefined method is called. The mechanism that disables 1747197104Sjkimwarnings on subsequent calls was interfering with the repair mechanism. 1748197104SjkimACPICA BZ 781. 1749197104Sjkim 1750197104SjkimFixed a possible memory leak in the predefined validation/repair code when a 1751197104Sjkimbuffer is automatically converted to an expected string object. 1752197104Sjkim 1753197104SjkimRemoved obsolete 16-bit files from the distribution and from the current git 1754197104Sjkimtree head. ACPICA BZ 776. 1755197104Sjkim 1756197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 1757197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1758220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1759197104Sjkimmuch larger code and data size. 1760197104Sjkim 1761197104Sjkim Previous Release: 1762197104Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 1763197104Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 1764197104Sjkim Current Release: 1765197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 1766197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 1767197104Sjkim 1768197104Sjkim2) iASL Compiler/Disassembler and Tools: 1769197104Sjkim 1770197104SjkimACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 1771197104Sjkimoperation region keyword. ACPICA BZ 771, 772. Lin Ming. 1772197104Sjkim 1773197104SjkimACPI 4.0: iASL - implemented compile-time validation support for all new 1774197104Sjkimpredefined names and control methods (31 total). ACPICA BZ 769. 1775197104Sjkim 1776197104Sjkim---------------------------------------- 1777193267Sjkim21 May 2009. Summary of changes for version 20090521: 1778193267Sjkim 1779193267Sjkim1) ACPI CA Core Subsystem: 1780193267Sjkim 1781193267SjkimDisabled the preservation of the SCI enable bit in the PM1 control register. 1782220663SjkimThe SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 1783193267Sjkima "preserved" bit - "OSPM always preserves this bit position", section 1784193267Sjkim4.7.3.2.1. However, some machines fail if this bit is in fact preserved 1785193267Sjkimbecause the bit needs to be explicitly set by the OS as a workaround. No 1786193267Sjkimmachines fail if the bit is not preserved. Therefore, ACPICA no longer 1787193267Sjkimattempts to preserve this bit. 1788193267Sjkim 1789193267SjkimFixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 1790193267Sjkimincorrectly formed _PRT package could cause a fault. Added validation to 1791193267Sjkimensure that each package element is actually a sub-package. 1792193267Sjkim 1793193267SjkimImplemented a new interface to install or override a single control method, 1794220663SjkimAcpiInstallMethod. This interface is useful when debugging in order to repair 1795193267Sjkiman existing method or to install a missing method without having to override 1796193267Sjkimthe entire ACPI table. See the ACPICA Programmer Reference for use and 1797193267Sjkimexamples. Lin Ming, Bob Moore. 1798193267Sjkim 1799193267SjkimFixed several reference count issues with the DdbHandle object that is 1800193267Sjkimcreated from a Load or LoadTable operator. Prevent premature deletion of the 1801193267Sjkimobject. Also, mark the object as invalid once the table has been unloaded. 1802193267SjkimThis is needed because the handle itself may not be deleted after the table 1803193267Sjkimunload, depending on whether it has been stored in a named object by the 1804193267Sjkimcaller. Lin Ming. 1805193267Sjkim 1806193267SjkimFixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 1807193267Sjkimmutexes of the same sync level are acquired but then not released in strict 1808220663Sjkimopposite order, the internally maintained Current Sync Level becomes confused 1809193267Sjkimand can cause subsequent execution errors. ACPICA BZ 471. 1810193267Sjkim 1811193267SjkimChanged the allowable release order for ASL mutex objects. The ACPI 4.0 1812193267Sjkimspecification has been changed to make the SyncLevel for mutex objects more 1813193267Sjkimuseful. When releasing a mutex, the SyncLevel of the mutex must now be the 1814193267Sjkimsame as the current sync level. This makes more sense than the previous rule 1815193267Sjkim(SyncLevel less than or equal). This change updates the code to match the 1816193267Sjkimspecification. 1817193267Sjkim 1818193267SjkimFixed a problem with the local version of the AcpiOsPurgeCache function. The 1819193267Sjkim(local) cache must be locked during all cache object deletions. Andrew 1820193267SjkimBaumann. 1821193267Sjkim 1822193267SjkimUpdated the Load operator to use operation region interfaces. This replaces 1823193267Sjkimdirect memory mapping with region access calls. Now, all region accesses go 1824193267Sjkimthrough the installed region handler as they should. 1825193267Sjkim 1826193267SjkimSimplified and optimized the NsGetNextNode function. Reduced parameter count 1827193267Sjkimand reduced code for this frequently used function. 1828193267Sjkim 1829193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1830193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1831220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1832193267Sjkimmuch larger code and data size. 1833193267Sjkim 1834193267Sjkim Previous Release: 1835193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 1836193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 1837193267Sjkim Current Release: 1838193267Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 1839193267Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 1840193267Sjkim 1841193267Sjkim2) iASL Compiler/Disassembler and Tools: 1842193267Sjkim 1843193267SjkimDisassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 1844193267Sjkimwith sub-table disassembly and handling invalid sub-tables. Attempt recovery 1845193267Sjkimafter an invalid sub-table ID. 1846193267Sjkim 1847193267Sjkim---------------------------------------- 1848193267Sjkim22 April 2009. Summary of changes for version 20090422: 1849193267Sjkim 1850193267Sjkim1) ACPI CA Core Subsystem: 1851193267Sjkim 1852193267SjkimFixed a compatibility issue with the recently released I/O port protection 1853193267Sjkimmechanism. For windows compatibility, 1) On a port protection violation, 1854193267Sjkimsimply ignore the request and do not return an exception (allow the control 1855193267Sjkimmethod to continue execution.) 2) If only part of the request overlaps a 1856220663Sjkimprotected port, read/write the individual ports that are not protected. Linux 1857193267SjkimBZ 13036. Lin Ming 1858193267Sjkim 1859220663SjkimEnhanced the execution of the ASL/AML BreakPoint operator so that it actually 1860193267Sjkimbreaks into the AML debugger if the debugger is present. This matches the 1861193267SjkimACPI-defined behavior. 1862193267Sjkim 1863193267SjkimFixed several possible warnings related to the use of the configurable 1864193267SjkimACPI_THREAD_ID. This type can now be configured as either an integer or a 1865193267Sjkimpointer with no warnings. Also fixes several warnings in printf-like 1866193267Sjkimstatements for the 64-bit build when the type is configured as a pointer. 1867193267SjkimACPICA BZ 766, 767. 1868193267Sjkim 1869193267SjkimFixed a number of possible warnings when compiling with gcc 4+ (depending on 1870193267Sjkimwarning options.) Examples include printf formats, aliasing, unused globals, 1871193267Sjkimmissing prototypes, missing switch default statements, use of non-ANSI 1872220663Sjkimlibrary functions, use of non-ANSI constructs. See generate/unix/Makefile for 1873193267Sjkima list of warning options used with gcc 3 and 4. ACPICA BZ 735. 1874193267Sjkim 1875193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1876193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1877220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 1878193267Sjkimmuch larger code and data size. 1879193267Sjkim 1880193267Sjkim Previous Release: 1881193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 1882193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 1883193267Sjkim Current Release: 1884193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 1885193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 1886193267Sjkim 1887193267Sjkim2) iASL Compiler/Disassembler and Tools: 1888193267Sjkim 1889220663SjkimiASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 1890193267Sjkimthe 64-bit build. 1891193267Sjkim 1892220663SjkimiASL: Fixed a problem where the Unix/Linux versions of the compiler could not 1893193267Sjkimcorrectly digest Windows/DOS formatted files (with CR/LF). 1894193267Sjkim 1895193267SjkimiASL: Added a new option for "quiet mode" (-va) that produces only the 1896193267Sjkimcompilation summary, not individual errors and warnings. Useful for large 1897193267Sjkimbatch compilations. 1898193267Sjkim 1899193267SjkimAcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 1900193267Sjkimtimeout that can be used to detect hang conditions during execution of AML 1901193267Sjkimcode (includes both internal semaphores and AML-defined mutexes and events.) 1902193267Sjkim 1903193267SjkimAdded new makefiles for the generation of acpica in a generic unix-like 1904193267Sjkimenvironment. These makefiles are intended to generate the acpica tools and 1905193267Sjkimutilities from the original acpica git source tree structure. 1906193267Sjkim 1907193267SjkimTest Suites: Updated and cleaned up the documentation files. Updated the 1908193267Sjkimcopyrights to 2009, affecting all source files. Use the new version of iASL 1909193267Sjkimwith quiet mode. Increased the number of available semaphores in the Windows 1910193267SjkimOSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 1911193267Sjkiman alternate implementation of the semaphore timeout to allow aslts to 1912193267Sjkimexecute fully on Cygwin. 1913193267Sjkim 1914193267Sjkim---------------------------------------- 1915193267Sjkim20 March 2009. Summary of changes for version 20090320: 1916193267Sjkim 1917193267Sjkim1) ACPI CA Core Subsystem: 1918193267Sjkim 1919193267SjkimFixed a possible race condition between AcpiWalkNamespace and dynamic table 1920220663Sjkimunloads. Added a reader/writer locking mechanism to allow multiple concurrent 1921220663Sjkimnamespace walks (readers), but block a dynamic table unload until it can gain 1922193267Sjkimexclusive write access to the namespace. This fixes a problem where a table 1923193267Sjkimunload could (possibly catastrophically) delete the portion of the namespace 1924193267Sjkimthat is currently being examined by a walk. Adds a new file, utlock.c, that 1925193267Sjkimimplements the reader/writer lock mechanism. ACPICA BZ 749. 1926193267Sjkim 1927193267SjkimFixed a regression introduced in version 20090220 where a change to the FADT 1928193267Sjkimhandling could cause the ACPICA subsystem to access non-existent I/O ports. 1929193267Sjkim 1930193267SjkimModified the handling of FADT register and table (FACS/DSDT) addresses. The 1931193267SjkimFADT can contain both 32-bit and 64-bit versions of these addresses. 1932193267SjkimPreviously, the 64-bit versions were favored, meaning that if both 32 and 64 1933193267Sjkimversions were valid, but not equal, the 64-bit version was used. This was 1934193267Sjkimfound to cause some machines to fail. Now, in this case, the 32-bit version 1935193267Sjkimis used instead. This now matches the Windows behavior. 1936193267Sjkim 1937193267SjkimImplemented a new mechanism to protect certain I/O ports. Provides Microsoft 1938193267Sjkimcompatibility and protects the standard PC I/O ports from access via AML 1939193267Sjkimcode. Adds a new file, hwvalid.c 1940193267Sjkim 1941193267SjkimFixed a possible extraneous warning message from the FADT support. The 1942193267Sjkimmessage warns of a 32/64 length mismatch between the legacy and GAS 1943193267Sjkimdefinitions for a register. 1944193267Sjkim 1945193267SjkimRemoved the obsolete AcpiOsValidateAddress OSL interface. This interface is 1946193267Sjkimmade obsolete by the port protection mechanism above. It was previously used 1947193267Sjkimto validate the entire address range of an operation region, which could be 1948193267Sjkimincorrect if the range included illegal ports, but fields within the 1949193267Sjkimoperation region did not actually access those ports. Validation is now 1950193267Sjkimperformed on a per-field basis instead of the entire region. 1951193267Sjkim 1952193267SjkimModified the handling of the PM1 Status Register ignored bit (bit 11.) 1953193267SjkimIgnored bits must be "preserved" according to the ACPI spec. Usually, this 1954193267Sjkimmeans a read/modify/write when writing to the register. However, for status 1955220663Sjkimregisters, writing a one means clear the event. Writing a zero means preserve 1956193267Sjkimthe event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 1957193267Sjkimand the ACPICA code now simply always writes a zero to the ignored bit. 1958193267Sjkim 1959193267SjkimModified the handling of ignored bits for the PM1 A/B Control Registers. As 1960193267Sjkimper the ACPI specification, for the control registers, preserve 1961193267Sjkim(read/modify/write) all bits that are defined as either reserved or ignored. 1962193267Sjkim 1963193267SjkimUpdated the handling of write-only bits in the PM1 A/B Control Registers. 1964193267SjkimWhen reading the register, zero the write-only bits as per the ACPI spec. 1965193267SjkimACPICA BZ 443. Lin Ming. 1966193267Sjkim 1967193267SjkimRemoved "Linux" from the list of supported _OSI strings. Linux no longer 1968193267Sjkimwants to reply true to this request. The Windows strings are the only paths 1969193267Sjkimthrough the AML that are tested and known to work properly. 1970193267Sjkim 1971193267Sjkim Previous Release: 1972193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 1973193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 1974193267Sjkim Current Release: 1975193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 1976193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 1977193267Sjkim 1978193267Sjkim2) iASL Compiler/Disassembler and Tools: 1979193267Sjkim 1980193267SjkimAcpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 1981193267Sjkimaetables.c 1982193267Sjkim 1983193267Sjkim---------------------------------------- 1984193267Sjkim20 February 2009. Summary of changes for version 20090220: 1985193267Sjkim 1986193267Sjkim1) ACPI CA Core Subsystem: 1987193267Sjkim 1988193267SjkimOptimized the ACPI register locking. Removed locking for reads from the ACPI 1989193267Sjkimbit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 1990193267Sjkimnot required when reading the single-bit registers. The 1991193267SjkimAcpiGetRegisterUnlocked function is no longer needed and has been removed. 1992193267SjkimThis will improve performance for reads on these registers. ACPICA BZ 760. 1993193267Sjkim 1994193267SjkimFixed the parameter validation for AcpiRead/Write. Now return 1995220663SjkimAE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 1996193267Sjkimthe register has an address of zero. Previously, these cases simply returned 1997193267SjkimAE_OK. For optional registers such as PM1B status/enable/control, the caller 1998193267Sjkimshould check for a valid register address before calling. ACPICA BZ 748. 1999193267Sjkim 2000193267SjkimRenamed the external ACPI bit register access functions. Renamed 2001193267SjkimAcpiGetRegister and AcpiSetRegister to clarify the purpose of these 2002193267Sjkimfunctions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 2003193267SjkimAlso, restructured the code for these functions by simplifying the code path 2004193267Sjkimand condensing duplicate code to reduce code size. 2005193267Sjkim 2006193267SjkimAdded new functions to transparently handle the possibly split PM1 A/B 2007193267Sjkimregisters. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 2008220663Sjkimnow handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 2009193267Sjkim746. 2010193267Sjkim 2011193267SjkimAdded a function to handle the PM1 control registers, AcpiHwWritePm1Control. 2012220663SjkimThis function writes both of the PM1 control registers (A/B). These registers 2013193267Sjkimare different than the PM1 A/B status and enable registers in that different 2014193267Sjkimvalues can be written to the A/B registers. Most notably, the SLP_TYP bits 2015220663Sjkimcan be different, as per the values returned from the _Sx predefined methods. 2016193267Sjkim 2017193267SjkimRemoved an extra register write within AcpiHwClearAcpiStatus. This function 2018193267Sjkimwas writing an optional PM1B status register twice. The existing call to the 2019193267Sjkimlow-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 2020193267Sjkimregister. ACPICA BZ 751. 2021193267Sjkim 2022220663SjkimSplit out the PM1 Status registers from the FADT. Added new globals for these 2023193267Sjkimregisters (A/B), similar to the way the PM1 Enable registers are handled. 2024193267SjkimInstead of overloading the FADT Event Register blocks. This makes the code 2025193267Sjkimclearer and less prone to error. 2026193267Sjkim 2027220663SjkimFixed the warning message for when the platform contains too many ACPI tables 2028220663Sjkimfor the default size of the global root table data structure. The calculation 2029193267Sjkimfor the truncation value was incorrect. 2030193267Sjkim 2031193267SjkimRemoved the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 2032193267Sjkimobsolete macro, since it is now a simple reference to ->common.type. There 2033193267Sjkimwere about 150 invocations of the macro across 41 files. ACPICA BZ 755. 2034193267Sjkim 2035193267SjkimRemoved the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 2036193267SjkimTYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 2037193267Sjkimsimply SLEEP_TYPE. ACPICA BZ 754. 2038193267Sjkim 2039193267SjkimConditionally compile the AcpiSetFirmwareWakingVector64 function. This 2040193267Sjkimfunction is only needed on 64-bit host operating systems and is thus not 2041193267Sjkimincluded for 32-bit hosts. 2042193267Sjkim 2043220663SjkimDebug output: print the input and result for invocations of the _OSI reserved 2044193267Sjkimcontrol method via the ACPI_LV_INFO debug level. Also, reduced some of the 2045193267Sjkimverbosity of this debug level. Len Brown. 2046193267Sjkim 2047193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2048193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2049220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2050193267Sjkimmuch larger code and data size. 2051193267Sjkim 2052193267Sjkim Previous Release: 2053193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2054193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2055193267Sjkim Current Release: 2056193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 2057193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 2058193267Sjkim 2059193267Sjkim2) iASL Compiler/Disassembler and Tools: 2060193267Sjkim 2061193267SjkimDisassembler: Decode the FADT PM_Profile field. Emit ascii names for the 2062193267Sjkimvarious legal performance profiles. 2063193267Sjkim 2064193267Sjkim---------------------------------------- 2065193267Sjkim23 January 2009. Summary of changes for version 20090123: 2066193267Sjkim 2067193267Sjkim1) ACPI CA Core Subsystem: 2068193267Sjkim 2069193267SjkimAdded the 2009 copyright to all module headers and signons. This affects 2070193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 2071193267Sjkimthe tools/utilities. 2072193267Sjkim 2073193267SjkimImplemented a change to allow the host to override any ACPI table, including 2074220663Sjkimdynamically loaded tables. Previously, only the DSDT could be replaced by the 2075193267Sjkimhost. With this change, the AcpiOsTableOverride interface is called for each 2076193267Sjkimtable found in the RSDT/XSDT during ACPICA initialization, and also whenever 2077193267Sjkima table is dynamically loaded via the AML Load operator. 2078193267Sjkim 2079193267SjkimUpdated FADT flag definitions, especially the Boot Architecture flags. 2080193267Sjkim 2081193267SjkimDebugger: For the Find command, automatically pad the input ACPI name with 2082193267Sjkimunderscores if the name is shorter than 4 characters. This enables a match 2083193267Sjkimwith the actual namespace entry which is itself padded with underscores. 2084193267Sjkim 2085193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2086193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2087220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2088193267Sjkimmuch larger code and data size. 2089193267Sjkim 2090193267Sjkim Previous Release: 2091193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2092193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2093193267Sjkim Current Release: 2094193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 2095193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 2096193267Sjkim 2097193267Sjkim2) iASL Compiler/Disassembler and Tools: 2098193267Sjkim 2099193267SjkimFix build error under Bison-2.4. 2100193267Sjkim 2101193267SjkimDissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 2102193267Sjkimflags. Now decode all flags, regardless of the FADT version. Flag output 2103193267Sjkimincludes the FADT version which first defined each flag. 2104193267Sjkim 2105193267SjkimThe iASL -g option now dumps the RSDT to a file (in addition to the FADT and 2106193267SjkimDSDT). Windows only. 2107193267Sjkim 2108193267Sjkim---------------------------------------- 2109193267Sjkim04 December 2008. Summary of changes for version 20081204: 2110193267Sjkim 2111193267Sjkim1) ACPI CA Core Subsystem: 2112193267Sjkim 2113193267SjkimThe ACPICA Programmer Reference has been completely updated and revamped for 2114193267Sjkimthis release. This includes updates to the external interfaces, OSL 2115193267Sjkiminterfaces, the overview sections, and the debugger reference. 2116193267Sjkim 2117193267SjkimSeveral new ACPICA interfaces have been implemented and documented in the 2118193267Sjkimprogrammer reference: 2119193267SjkimAcpiReset - Writes the reset value to the FADT-defined reset register. 2120193267SjkimAcpiDisableAllGpes - Disable all available GPEs. 2121193267SjkimAcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 2122193267SjkimAcpiGetGpeDevice - Get the GPE block device associated with a GPE. 2123193267SjkimAcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 2124193267SjkimAcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 2125193267SjkimAcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 2126193267Sjkim 2127193267SjkimMost of the public ACPI hardware-related interfaces have been moved to a new 2128193267Sjkimfile, components/hardware/hwxface.c 2129193267Sjkim 2130193267SjkimEnhanced the FADT parsing and low-level ACPI register access: The ACPI 2131193267Sjkimregister lengths within the FADT are now used, and the low level ACPI 2132193267Sjkimregister access no longer hardcodes the ACPI register lengths. Given that 2133220663Sjkimthere may be some risk in actually trusting the FADT register lengths, a run- 2134193267Sjkimtime option was added to fall back to the default hardcoded lengths if the 2135193267SjkimFADT proves to contain incorrect values - UseDefaultRegisterWidths. This 2136193267Sjkimoption is set to true for now, and a warning is issued if a suspicious FADT 2137193267Sjkimregister length is overridden with the default value. 2138193267Sjkim 2139193267SjkimFixed a reference count issue in NsRepairObject. This problem was introduced 2140193267Sjkimin version 20081031 as part of a fix to repair Buffer objects within 2141193267SjkimPackages. Lin Ming. 2142193267Sjkim 2143193267SjkimAdded semaphore support to the Linux/Unix application OS-services layer 2144193267Sjkim(OSL). ACPICA BZ 448. Lin Ming. 2145193267Sjkim 2146220663SjkimAdded the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 2147193267Sjkimbe implemented in the OSL, or will binary semaphores be used instead. 2148193267Sjkim 2149193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2150193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2151220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2152193267Sjkimmuch larger code and data size. 2153193267Sjkim 2154193267Sjkim Previous Release: 2155193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2156193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2157193267Sjkim Current Release: 2158193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 2159193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 2160193267Sjkim 2161193267Sjkim2) iASL Compiler/Disassembler and Tools: 2162193267Sjkim 2163220663SjkimiASL: Completed the '-e' option to include additional ACPI tables in order to 2164193267Sjkimaid with disassembly and External statement generation. ACPICA BZ 742. Lin 2165193267SjkimMing. 2166193267Sjkim 2167193267SjkimiASL: Removed the "named object in while loop" error. The compiler cannot 2168193267Sjkimdetermine how many times a loop will execute. ACPICA BZ 730. 2169193267Sjkim 2170193267SjkimDisassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 2171193267SjkimBZ 743. 2172193267Sjkim 2173193267SjkimDisassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 2174193267Sjkim 2175193267Sjkim---------------------------------------- 2176193267Sjkim31 October 2008. Summary of changes for version 20081031: 2177193267Sjkim 2178193267Sjkim1) ACPI CA Core Subsystem: 2179193267Sjkim 2180220663SjkimRestructured the ACPICA header files into public/private. acpi.h now includes 2181193267Sjkimonly the "public" acpica headers. All other acpica headers are "private" and 2182193267Sjkimshould not be included by acpica users. One new file, accommon.h is used to 2183193267Sjkiminclude the commonly used private headers for acpica code generation. Future 2184193267Sjkimplans include moving all private headers to a new subdirectory. 2185193267Sjkim 2186193267SjkimImplemented an automatic Buffer->String return value conversion for 2187193267Sjkimpredefined ACPI methods. For these methods (such as _BIF), added automatic 2188193267Sjkimconversion for return objects that are required to be a String, but a Buffer 2189193267Sjkimwas found instead. This can happen when reading string battery data from an 2190193267Sjkimoperation region, because it used to be difficult to convert the data from 2191193267Sjkimbuffer to string from within the ASL. Ensures that the host OS is provided 2192193267Sjkimwith a valid null-terminated string. Linux BZ 11822. 2193193267Sjkim 2194193267SjkimUpdated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 2195193267Sjkiminto two: one for the 32-bit vector, another for the 64-bit vector. This is 2196193267Sjkimrequired because the host OS must setup the wake much differently for each 2197220663Sjkimvector (real vs. protected mode, etc.) and the interface itself should not be 2198193267Sjkimdeciding which vector to use. Also, eliminated the GetFirmwareWakingVector 2199193267Sjkiminterface, as it served no purpose (only the firmware reads the vector, OS 2200193267Sjkimonly writes the vector.) ACPICA BZ 731. 2201193267Sjkim 2202193267SjkimImplemented a mechanism to escape infinite AML While() loops. Added a loop 2203193267Sjkimcounter to force exit from AML While loops if the count becomes too large. 2204193267SjkimThis can occur in poorly written AML when the hardware does not respond 2205193267Sjkimwithin a while loop and the loop does not implement a timeout. The maximum 2206193267Sjkimloop count is configurable. A new exception code is returned when a loop is 2207193267Sjkimbroken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 2208193267Sjkim 2209193267SjkimOptimized the execution of AML While loops. Previously, a control state 2210193267Sjkimobject was allocated and freed for each execution of the loop. The 2211193267Sjkimoptimization is to simply reuse the control state for each iteration. This 2212193267Sjkimspeeds up the raw loop execution time by about 5%. 2213193267Sjkim 2214193267SjkimEnhanced the implicit return mechanism. For Windows compatibility, return an 2215193267Sjkimimplicit integer of value zero for methods that contain no executable code. 2216193267SjkimSuch methods are seen in the field as stubs (presumably), and can cause 2217193267Sjkimdrivers to fail if they expect a return value. Lin Ming. 2218193267Sjkim 2219193267SjkimAllow multiple backslashes as root prefixes in namepaths. In a fully 2220193267Sjkimqualified namepath, allow multiple backslash prefixes. This can happen (and 2221193267Sjkimis seen in the field) because of the use of a double-backslash in strings 2222193267Sjkim(since backslash is the escape character) causing confusion. ACPICA BZ 739 2223193267SjkimLin Ming. 2224193267Sjkim 2225193267SjkimEmit a warning if two different FACS or DSDT tables are discovered in the 2226193267SjkimFADT. Checks if there are two valid but different addresses for the FACS and 2227193267SjkimDSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 2228193267Sjkim 2229193267SjkimConsolidated the method argument count validation code. Merged the code that 2230193267Sjkimvalidates control method argument counts into the predefined validation 2231193267Sjkimmodule. Eliminates possible multiple warnings for incorrect argument counts. 2232193267Sjkim 2233193267SjkimImplemented ACPICA example code. Includes code for ACPICA initialization, 2234193267Sjkimhandler installation, and calling a control method. Available at 2235193267Sjkimsource/tools/examples. 2236193267Sjkim 2237193267SjkimAdded a global pointer for FACS table to simplify internal FACS access. Use 2238220663Sjkimthe global pointer instead of using AcpiGetTableByIndex for each FACS access. 2239193267SjkimThis simplifies the code for the Global Lock and the Firmware Waking 2240193267SjkimVector(s). 2241193267Sjkim 2242193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2243193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2244220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2245193267Sjkimmuch larger code and data size. 2246193267Sjkim 2247193267Sjkim Previous Release: 2248193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2249193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2250193267Sjkim Current Release: 2251193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 2252193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 2253193267Sjkim 2254193267Sjkim2) iASL Compiler/Disassembler and Tools: 2255193267Sjkim 2256193267SjkimiASL: Improved disassembly of external method calls. Added the -e option to 2257220663Sjkimallow the inclusion of additional ACPI tables to help with the disassembly of 2258193267Sjkimmethod invocations and the generation of external declarations during the 2259193267Sjkimdisassembly. Certain external method invocations cannot be disassembled 2260193267Sjkimproperly without the actual declaration of the method. Use the -e option to 2261193267Sjkiminclude the table where the external method(s) are actually declared. Most 2262193267Sjkimuseful for disassembling SSDTs that make method calls back to the master 2263193267SjkimDSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 2264193267Sjkim-e dsdt.aml ssdt1.aml 2265193267Sjkim 2266193267SjkimiASL: Fix to allow references to aliases within ASL namepaths. Fixes a 2267193267Sjkimproblem where the use of an alias within a namepath would result in a not 2268193267Sjkimfound error or cause the compiler to fault. Also now allows forward 2269193267Sjkimreferences from the Alias operator itself. ACPICA BZ 738. 2270193267Sjkim 2271193267Sjkim---------------------------------------- 2272193267Sjkim26 September 2008. Summary of changes for version 20080926: 2273193267Sjkim 2274193267Sjkim1) ACPI CA Core Subsystem: 2275193267Sjkim 2276193267SjkimDesigned and implemented a mechanism to validate predefined ACPI methods and 2277220663Sjkimobjects. This code validates the predefined ACPI objects (objects whose names 2278193267Sjkimstart with underscore) that appear in the namespace, at the time they are 2279193267Sjkimevaluated. The argument count and the type of the returned object are 2280193267Sjkimvalidated against the ACPI specification. The purpose of this validation is 2281193267Sjkimto detect problems with the BIOS-implemented predefined ACPI objects before 2282220663Sjkimthe results are returned to the ACPI-related drivers. Future enhancements may 2283193267Sjkiminclude actual repair of incorrect return objects where possible. Two new 2284193267Sjkimfiles are nspredef.c and acpredef.h. 2285193267Sjkim 2286193267SjkimFixed a fault in the AML parser if a memory allocation fails during the Op 2287193267Sjkimcompletion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 2288193267Sjkim 2289193267SjkimFixed an issue with implicit return compatibility. This change improves the 2290193267Sjkimimplicit return mechanism to be more compatible with the MS interpreter. Lin 2291193267SjkimMing, ACPICA BZ 349. 2292193267Sjkim 2293193267SjkimImplemented support for zero-length buffer-to-string conversions. Allow zero 2294193267Sjkimlength strings during interpreter buffer-to-string conversions. For example, 2295193267Sjkimduring the ToDecimalString and ToHexString operators, as well as implicit 2296193267Sjkimconversions. Fiodor Suietov, ACPICA BZ 585. 2297193267Sjkim 2298193267SjkimFixed two possible memory leaks in the error exit paths of 2299193267SjkimAcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 2300193267Sjkimsimilar in that they use a stack of state objects in order to eliminate 2301193267Sjkimrecursion. The stack must be fully unwound and deallocated if an error 2302193267Sjkimoccurs. Lin Ming. ACPICA BZ 383. 2303193267Sjkim 2304220663SjkimRemoved the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 2305193267SjkimACPI register table. This bit does not exist and is unused. Lin Ming, Bob 2306193267SjkimMoore ACPICA BZ 442. 2307193267Sjkim 2308193267SjkimRemoved the obsolete version number in module headers. Removed the 2309193267Sjkim"$Revision" number that appeared in each module header. This version number 2310193267Sjkimwas useful under SourceSafe and CVS, but has no meaning under git. It is not 2311193267Sjkimonly incorrect, it could also be misleading. 2312193267Sjkim 2313193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2314193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2315220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2316193267Sjkimmuch larger code and data size. 2317193267Sjkim 2318193267Sjkim Previous Release: 2319193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2320193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2321193267Sjkim Current Release: 2322193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 2323193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 2324193267Sjkim 2325193267Sjkim---------------------------------------- 2326193267Sjkim29 August 2008. Summary of changes for version 20080829: 2327193267Sjkim 2328193267Sjkim1) ACPI CA Core Subsystem: 2329193267Sjkim 2330193267SjkimCompleted a major cleanup of the internal ACPI_OPERAND_OBJECT of type 2331193267SjkimReference. Changes include the elimination of cheating on the Object field 2332193267Sjkimfor the DdbHandle subtype, addition of a reference class field to 2333220663Sjkimdifferentiate the various reference types (instead of an AML opcode), and the 2334193267Sjkimcleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 2335193267Sjkim 2336193267SjkimReduce an error to a warning for an incorrect method argument count. 2337193267SjkimPreviously aborted with an error if too few arguments were passed to a 2338220663Sjkimcontrol method via the external ACPICA interface. Now issue a warning instead 2339193267Sjkimand continue. Handles the case where the method inadvertently declares too 2340193267Sjkimmany arguments, but does not actually use the extra ones. Applies mainly to 2341193267Sjkimthe predefined methods. Lin Ming. Linux BZ 11032. 2342193267Sjkim 2343220663SjkimDisallow the evaluation of named object types with no intrinsic value. Return 2344220663SjkimAE_TYPE for objects that have no value and therefore evaluation is undefined: 2345193267SjkimDevice, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 2346193267Sjkimthese types were allowed, but an exception would be generated at some point 2347193267Sjkimduring the evaluation. Now, the error is generated up front. 2348193267Sjkim 2349193267SjkimFixed a possible memory leak in the AcpiNsGetExternalPathname function 2350193267Sjkim(nsnames.c). Fixes a leak in the error exit path. 2351193267Sjkim 2352220663SjkimRemoved the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 2353220663Sjkimlevels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 2354193267Sjkiminterfaces. Also added ACPI_DB_EVENTS to correspond with the existing 2355193267SjkimACPI_LV_EVENTS. 2356193267Sjkim 2357193267SjkimRemoved obsolete and/or unused exception codes from the acexcep.h header. 2358193267SjkimThere is the possibility that certain device drivers may be affected if they 2359193267Sjkimuse any of these exceptions. 2360193267Sjkim 2361193267SjkimThe ACPICA documentation has been added to the public git source tree, under 2362193267Sjkimacpica/documents. Included are the ACPICA programmer reference, the iASL 2363193267Sjkimcompiler reference, and the changes.txt release logfile. 2364193267Sjkim 2365193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2366193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2367220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2368193267Sjkimmuch larger code and data size. 2369193267Sjkim 2370193267Sjkim Previous Release: 2371193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2372193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2373193267Sjkim Current Release: 2374193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2375193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 2376193267Sjkim 2377193267Sjkim2) iASL Compiler/Disassembler and Tools: 2378193267Sjkim 2379193267SjkimAllow multiple argument counts for the predefined _SCP method. ACPI 3.0 2380193267Sjkimdefines _SCP with 3 arguments. Previous versions defined it with only 1 2381193267Sjkimargument. iASL now allows both definitions. 2382193267Sjkim 2383193267SjkimiASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 2384193267Sjkimlength subtables when disassembling ACPI tables. Also fixed a couple of 2385193267Sjkimerrors where a full 16-bit table type field was not extracted from the input 2386193267Sjkimproperly. 2387193267Sjkim 2388193267Sjkimacpisrc: Improve comment counting mechanism for generating source code 2389193267Sjkimstatistics. Count first and last lines of multi-line comments as whitespace, 2390193267Sjkimnot comment lines. Handle Linux legal header in addition to standard acpica 2391193267Sjkimheader. 2392193267Sjkim 2393193267Sjkim---------------------------------------- 2394193267Sjkim 2395193267Sjkim29 July 2008. Summary of changes for version 20080729: 2396193267Sjkim 2397193267Sjkim1) ACPI CA Core Subsystem: 2398193267Sjkim 2399193267SjkimFix a possible deadlock in the GPE dispatch. Remove call to 2400220663SjkimAcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 2401193267Sjkimto acquire the GPE lock but can deadlock since the GPE lock is already held 2402193267Sjkimat dispatch time. This code was introduced in version 20060831 as a response 2403193267Sjkimto Linux BZ 6881 and has since been removed from Linux. 2404193267Sjkim 2405220663SjkimAdd a function to dereference returned reference objects. Examines the return 2406193267Sjkimobject from a call to AcpiEvaluateObject. Any Index or RefOf references are 2407193267Sjkimautomatically dereferenced in an attempt to return something useful (these 2408193267Sjkimreference types cannot be converted into an external ACPI_OBJECT.) Provides 2409193267SjkimMS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 2410193267Sjkim 2411193267Sjkimx2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 2412193267Sjkimsubtables for the MADT and one new subtable for the SRAT. Includes 2413193267Sjkimdisassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 2414193267SjkimSpecification, June 2008. 2415193267Sjkim 2416193267SjkimAdditional error checking for pathname utilities. Add error check after all 2417193267Sjkimcalls to AcpiNsGetPathnameLength. Add status return from 2418193267SjkimAcpiNsBuildExternalPath and check after all calls. Add parameter validation 2419193267Sjkimto AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 2420193267Sjkim 2421193267SjkimReturn status from the global init function AcpiUtGlobalInitialize. This is 2422193267Sjkimused by both the kernel subsystem and the utilities such as iASL compiler. 2423193267SjkimThe function could possibly fail when the caches are initialized. Yang Yi. 2424193267Sjkim 2425193267SjkimAdd a function to decode reference object types to strings. Created for 2426193267Sjkimimproved error messages. 2427193267Sjkim 2428220663SjkimImprove object conversion error messages. Better error messages during object 2429220663Sjkimconversion from internal to the external ACPI_OBJECT. Used for external calls 2430193267Sjkimto AcpiEvaluateObject. 2431193267Sjkim 2432193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2433193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2434220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2435193267Sjkimmuch larger code and data size. 2436193267Sjkim 2437193267Sjkim Previous Release: 2438193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2439193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2440193267Sjkim Current Release: 2441193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 2442193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 2443193267Sjkim 2444193267Sjkim2) iASL Compiler/Disassembler and Tools: 2445193267Sjkim 2446193267SjkimDebugger: fix a possible hang when evaluating non-methods. Fixes a problem 2447193267Sjkimintroduced in version 20080701. If the object being evaluated (via execute 2448193267Sjkimcommand) is not a method, the debugger can hang while trying to obtain non- 2449193267Sjkimexistent parameters. 2450193267Sjkim 2451193267SjkimiASL: relax error for using reserved "_T_x" identifiers. These names can 2452193267Sjkimappear in a disassembled ASL file if they were emitted by the original 2453193267Sjkimcompiler. Instead of issuing an error or warning and forcing the user to 2454193267Sjkimmanually change these names, issue a remark instead. 2455193267Sjkim 2456220663SjkimiASL: error if named object created in while loop. Emit an error if any named 2457193267Sjkimobject is created within a While loop. If allowed, this code will generate a 2458220663Sjkimrun-time error on the second iteration of the loop when an attempt is made to 2459193267Sjkimcreate the same named object twice. ACPICA bugzilla 730. 2460193267Sjkim 2461193267SjkimiASL: Support absolute pathnames for include files. Add support for absolute 2462193267Sjkimpathnames within the Include operator. previously, only relative pathnames 2463193267Sjkimwere supported. 2464193267Sjkim 2465220663SjkimiASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 2466193267SjkimThe ACPI spec requires one interrupt minimum. BZ 423 2467193267Sjkim 2468193267SjkimiASL: Handle a missing ResourceSource arg, with a present SourceIndex. 2469193267SjkimHandles the case for the Interrupt Resource Descriptor where 2470193267Sjkimthe ResourceSource argument is omitted but ResourceSourceIndex 2471193267Sjkimis present. Now leave room for the Index. BZ 426 2472193267Sjkim 2473193267SjkimiASL: Prevent error message if CondRefOf target does not exist. Fixes cases 2474193267Sjkimwhere an error message is emitted if the target does not exist. BZ 516 2475193267Sjkim 2476193267SjkimiASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 2477220663Sjkim(get ACPI tables on Windows). This was apparently broken in version 20070919. 2478193267Sjkim 2479220663SjkimAcpiXtract: Handle EOF while extracting data. Correctly handle the case where 2480193267Sjkimthe EOF happens immediately after the last table in the input file. Print 2481193267Sjkimcompletion message. Previously, no message was displayed in this case. 2482193267Sjkim 2483193267Sjkim---------------------------------------- 2484193267Sjkim01 July 2008. Summary of changes for version 20080701: 2485193267Sjkim 2486193267Sjkim0) Git source tree / acpica.org 2487193267Sjkim 2488193267SjkimFixed a problem where a git-clone from http would not transfer the entire 2489193267Sjkimsource tree. 2490193267Sjkim 2491193267Sjkim1) ACPI CA Core Subsystem: 2492193267Sjkim 2493193267SjkimImplemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 2494193267Sjkimenable bit. Now performs a read-change-write of the enable register instead 2495193267Sjkimof simply writing out the cached enable mask. This will prevent inadvertent 2496220663Sjkimenabling of GPEs if a rogue GPE is received during initialization (before GPE 2497193267Sjkimhandlers are installed.) 2498193267Sjkim 2499193267SjkimImplemented a copy for dynamically loaded tables. Previously, dynamically 2500193267Sjkimloaded tables were simply mapped - but on some machines this memory is 2501193267Sjkimcorrupted after suspend. Now copy the table to a local buffer. For the 2502193267SjkimOpRegion case, added checksum verify. Use the table length from the table 2503193267Sjkimheader, not the region length. For the Buffer case, use the table length 2504193267Sjkimalso. Dennis Noordsij, Bob Moore. BZ 10734 2505193267Sjkim 2506220663SjkimFixed a problem where the same ACPI table could not be dynamically loaded and 2507193267Sjkimunloaded more than once. Without this change, a table cannot be loaded again 2508193267Sjkimonce it has been loaded/unloaded one time. The current mechanism does not 2509220663Sjkimunregister a table upon an unload. During a load, if the same table is found, 2510193267Sjkimthis no longer returns an exception. BZ 722 2511193267Sjkim 2512193267SjkimFixed a problem where the wrong descriptor length was calculated for the 2513193267SjkimEndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 2514193267Sjkimare calculated as 12 bytes long, but the actual length in the internal 2515193267Sjkimdescriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 2516193267Sjkimby Linn Crosetto. BZ 728 2517193267Sjkim 2518193267SjkimFixed a possible memory leak in the Unload operator. The DdbHandle returned 2519220663Sjkimby Load() did not have its reference count decremented during unload, leading 2520193267Sjkimto a memory leak. Lin Ming. BZ 727 2521193267Sjkim 2522193267SjkimFixed a possible memory leak when deleting thermal/processor objects. Any 2523193267Sjkimassociated notify handlers (and objects) were not being deleted. Fiodor 2524193267SjkimSuietov. BZ 506 2525193267Sjkim 2526193267SjkimFixed the ordering of the ASCII names in the global mutex table to match the 2527220663Sjkimactual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 2528193267SjkimVegard Nossum. BZ 726 2529193267Sjkim 2530193267SjkimEnhanced the AcpiGetObjectInfo interface to return the number of required 2531193267Sjkimarguments if the object is a control method. Added this call to the debugger 2532193267Sjkimso the proper number of default arguments are passed to a method. This 2533193267Sjkimprevents a warning when executing methods from AcpiExec. 2534193267Sjkim 2535193267SjkimAdded a check for an invalid handle in AcpiGetObjectInfo. Return 2536193267SjkimAE_BAD_PARAMETER if input handle is invalid. BZ 474 2537193267Sjkim 2538193267SjkimFixed an extraneous warning from exconfig.c on the 64-bit build. 2539193267Sjkim 2540193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2541193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2542220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2543193267Sjkimmuch larger code and data size. 2544193267Sjkim 2545193267Sjkim Previous Release: 2546193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2547193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2548193267Sjkim Current Release: 2549193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 2550193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 2551193267Sjkim 2552193267Sjkim2) iASL Compiler/Disassembler and Tools: 2553193267Sjkim 2554193267SjkimiASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 2555193267Sjkimresource descriptor names. 2556193267Sjkim 2557220663SjkimiASL: Detect invalid ASCII characters in input (windows version). Removed the 2558193267Sjkim"-CF" flag from the flex compile, enables correct detection of non-ASCII 2559193267Sjkimcharacters in the input. BZ 441 2560193267Sjkim 2561193267SjkimiASL: Eliminate warning when result of LoadTable is not used. Eliminate the 2562193267Sjkim"result of operation not used" warning when the DDB handle returned from 2563193267SjkimLoadTable is not used. The warning is not needed. BZ 590 2564193267Sjkim 2565220663SjkimAcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 2566220663Sjkimpass address of table to the AML. Added option to disable OpRegion simulation 2567220663Sjkimto allow creation of an OpRegion with a real address that was passed to _CFG. 2568193267SjkimAll of this allows testing of the Load and Unload operators from AcpiExec. 2569193267Sjkim 2570193267SjkimDebugger: update tables command for unloaded tables. Handle unloaded tables 2571193267Sjkimand use the standard table header output routine. 2572193267Sjkim 2573193267Sjkim---------------------------------------- 2574193267Sjkim09 June 2008. Summary of changes for version 20080609: 2575193267Sjkim 2576193267Sjkim1) ACPI CA Core Subsystem: 2577193267Sjkim 2578193267SjkimImplemented a workaround for reversed _PRT entries. A significant number of 2579193267SjkimBIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 2580193267Sjkimchange dynamically detects and repairs this problem. Provides compatibility 2581193267Sjkimwith MS ACPI. BZ 6859 2582193267Sjkim 2583193267SjkimSimplified the internal ACPI hardware interfaces to eliminate the locking 2584193267Sjkimflag parameter from Register Read/Write. Added a new external interface, 2585193267SjkimAcpiGetRegisterUnlocked. 2586193267Sjkim 2587220663SjkimFixed a problem where the invocation of a GPE control method could hang. This 2588193267Sjkimwas a regression introduced in 20080514. The new method argument count 2589193267Sjkimvalidation mechanism can enter an infinite loop when a GPE method is 2590220663Sjkimdispatched. Problem fixed by removing the obsolete code that passed GPE block 2591193267Sjkiminformation to the notify handler via the control method parameter pointer. 2592193267Sjkim 2593193267SjkimFixed a problem where the _SST execution status was incorrectly returned to 2594193267Sjkimthe caller of AcpiEnterSleepStatePrep. This was a regression introduced in 2595193267Sjkim20080514. _SST is optional and a NOT_FOUND exception should never be 2596193267Sjkimreturned. BZ 716 2597193267Sjkim 2598193267SjkimFixed a problem where a deleted object could be accessed from within the AML 2599220663Sjkimparser. This was a regression introduced in version 20080123 as a fix for the 2600193267SjkimUnload operator. Lin Ming. BZ 10669 2601193267Sjkim 2602193267SjkimCleaned up the debug operand dump mechanism. Eliminated unnecessary operands 2603193267Sjkimand eliminated the use of a negative index in a loop. Operands are now 2604193267Sjkimdisplayed in the correct order, not backwards. This also fixes a regression 2605193267Sjkimintroduced in 20080514 on 64-bit systems where the elimination of 2606193267SjkimACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 2607193267Sjkim 2608193267SjkimFixed a possible memory leak in EvPciConfigRegionSetup where the error exit 2609193267Sjkimpath did not delete a locally allocated structure. 2610193267Sjkim 2611193267SjkimUpdated definitions for the DMAR and SRAT tables to synchronize with the 2612193267Sjkimcurrent specifications. Includes disassembler support. 2613193267Sjkim 2614193267SjkimFixed a problem in the mutex debug code (in utmutex.c) where an incorrect 2615193267Sjkimloop termination value was used. Loop terminated on iteration early, missing 2616193267Sjkimone mutex. Linn Crosetto 2617193267Sjkim 2618193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2619193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2620220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2621193267Sjkimmuch larger code and data size. 2622193267Sjkim 2623193267Sjkim Previous Release: 2624193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2625193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2626193267Sjkim Current Release: 2627193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 2628193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 2629193267Sjkim 2630193267Sjkim2) iASL Compiler/Disassembler and Tools: 2631193267Sjkim 2632193267SjkimDisassembler: Implemented support for EisaId() within _CID objects. Now 2633193267Sjkimdisassemble integer _CID objects back to EisaId invocations, including 2634193267Sjkimmultiple integers within _CID packages. Includes single-step support for 2635193267Sjkimdebugger also. 2636193267Sjkim 2637193267SjkimDisassembler: Added support for DMAR and SRAT table definition changes. 2638193267Sjkim 2639193267Sjkim---------------------------------------- 2640193267Sjkim14 May 2008. Summary of changes for version 20080514: 2641193267Sjkim 2642193267Sjkim1) ACPI CA Core Subsystem: 2643193267Sjkim 2644193267SjkimFixed a problem where GPEs were enabled too early during the ACPICA 2645193267Sjkiminitialization. This could lead to "handler not installed" errors on some 2646193267Sjkimmachines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 2647193267Sjkimensures that all operation regions and devices throughout the namespace have 2648193267Sjkimbeen initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 2649193267Sjkim 2650193267SjkimImplemented a change to the enter sleep code. Moved execution of the _GTS 2651193267Sjkimmethod to just before setting sleep enable bit. The execution was moved from 2652193267SjkimAcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 2653193267Sjkimimmediately before the SLP_EN bit is set, as per the ACPI specification. 2654193267SjkimLuming Yu, BZ 1653. 2655193267Sjkim 2656193267SjkimImplemented a fix to disable unknown GPEs (2nd version). Now always disable 2657193267Sjkimthe GPE, even if ACPICA thinks that that it is already disabled. It is 2658193267Sjkimpossible that the AML or some other code has enabled the GPE unbeknownst to 2659193267Sjkimthe ACPICA code. 2660193267Sjkim 2661220663SjkimFixed a problem with the Field operator where zero-length fields would return 2662220663Sjkiman AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 2663193267Sjkimfield declarations in Field(), BankField(), and IndexField(). BZ 10606. 2664193267Sjkim 2665193267SjkimImplemented a fix for the Load operator, now load the table at the namespace 2666193267Sjkimroot. This reverts a change introduced in version 20071019. The table is now 2667193267Sjkimloaded at the namespace root even though this goes against the ACPI 2668193267Sjkimspecification. This provides compatibility with other ACPI implementations. 2669220663SjkimThe ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 2670193267Sjkim 2671220663SjkimFixed a problem where ACPICA would not Load() tables with unusual signatures. 2672193267SjkimNow ignore ACPI table signature for Load() operator. Only "SSDT" is 2673193267Sjkimacceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 2674220663SjkimTherefore, signature validation is worthless. Apparently MS ACPI accepts such 2675193267Sjkimsignatures, ACPICA must be compatible. BZ 10454. 2676193267Sjkim 2677193267SjkimFixed a possible negative array index in AcpiUtValidateException. Added NULL 2678193267Sjkimfields to the exception string arrays to eliminate a -1 subtraction on the 2679193267SjkimSubStatus field. 2680193267Sjkim 2681193267SjkimUpdated the debug tracking macros to reduce overall code and data size. 2682193267SjkimChanged ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 2683193267Sjkiminstead of pointers to static strings. Jan Beulich and Bob Moore. 2684193267Sjkim 2685193267SjkimImplemented argument count checking in control method invocation via 2686193267SjkimAcpiEvaluateObject. Now emit an error if too few arguments, warning if too 2687193267Sjkimmany. This applies only to extern programmatic control method execution, not 2688193267Sjkimmethod-to-method calls within the AML. Lin Ming. 2689193267Sjkim 2690193267SjkimEliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 2691220663Sjkimlonger needed, especially with the removal of 16-bit support. It was replaced 2692220663Sjkimmostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 2693193267Sjkim32/64-bit platforms is required. 2694193267Sjkim 2695193267SjkimAdded the C const qualifier for appropriate string constants -- mostly 2696193267SjkimMODULE_NAME and printf format strings. Jan Beulich. 2697193267Sjkim 2698193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2699193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2700220663Sjkimdebug version of the code includes the debug output trace mechanism and has a 2701193267Sjkimmuch larger code and data size. 2702193267Sjkim 2703193267Sjkim Previous Release: 2704193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 2705193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 2706193267Sjkim Current Release: 2707193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 2708193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 2709193267Sjkim 2710193267Sjkim2) iASL Compiler/Disassembler and Tools: 2711193267Sjkim 2712193267SjkimImplemented ACPI table revision ID validation in the disassembler. Zero is 2713193267Sjkimalways invalid. For DSDTs, the ID controls the interpreter integer width. 1 2714193267Sjkimmeans 32-bit and this is unusual. 2 or greater is 64-bit. 2715193267Sjkim 2716193267Sjkim---------------------------------------- 2717193267Sjkim21 March 2008. Summary of changes for version 20080321: 2718193267Sjkim 2719193267Sjkim1) ACPI CA Core Subsystem: 2720193267Sjkim 2721193267SjkimImplemented an additional change to the GPE support in order to suppress 2722193267Sjkimspurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 2723193267Sjkimdisable incoming GPEs that are neither enabled nor disabled -- meaning that 2724220663Sjkimthe GPE is unknown to the system. This should prevent future interrupt floods 2725193267Sjkimfrom that GPE. BZ 6217 (Zhang Rui) 2726193267Sjkim 2727193267SjkimFixed a problem where NULL package elements were not returned to the 2728193267SjkimAcpiEvaluateObject interface correctly. The element was simply ignored 2729193267Sjkiminstead of returning a NULL ACPI_OBJECT package element, potentially causing 2730193267Sjkima buffer overflow and/or confusing the caller who expected a fixed number of 2731193267Sjkimelements. BZ 10132 (Lin Ming, Bob Moore) 2732193267Sjkim 2733220663SjkimFixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 2734193267SjkimQword), Field, BankField, and IndexField operators when invoked from inside 2735193267Sjkiman executing control method. In this case, these operators created namespace 2736193267Sjkimnodes that were incorrectly left marked as permanent nodes instead of 2737193267Sjkimtemporary nodes. This could cause a problem if there is race condition 2738193267Sjkimbetween an exiting control method and a running namespace walk. (Reported by 2739193267SjkimLinn Crosetto) 2740193267Sjkim 2741193267SjkimFixed a problem where the CreateField and CreateXXXField operators would 2742193267Sjkimincorrectly allow duplicate names (the name of the field) with no exception 2743193267Sjkimgenerated. 2744193267Sjkim 2745220663SjkimImplemented several changes for Notify handling. Added support for new Notify 2746193267Sjkimvalues (ACPI 2.0+) and improved the Notify debug output. Notify on 2747193267SjkimPowerResource objects is no longer allowed, as per the ACPI specification. 2748193267Sjkim(Bob Moore, Zhang Rui) 2749193267Sjkim 2750193267SjkimAll Reference Objects returned via the AcpiEvaluateObject interface are now 2751220663Sjkimmarked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 2752193267SjkimNULL objects - either NULL package elements or unresolved named references. 2753193267Sjkim 2754193267SjkimFixed a problem where an extraneous debug message was produced for package 2755193267Sjkimobjects (when debugging enabled). The message "Package List length larger 2756193267Sjkimthan NumElements count" is now produced in the correct case, and is now an 2757193267Sjkimerror message rather than a debug message. Added a debug message for the 2758220663Sjkimopposite case, where NumElements is larger than the Package List (the package 2759193267Sjkimwill be padded out with NULL elements as per the ACPI spec.) 2760193267Sjkim 2761193267SjkimImplemented several improvements for the output of the ASL "Debug" object to 2762193267Sjkimclarify and keep all data for a given object on one output line. 2763193267Sjkim 2764193267SjkimFixed two size calculation issues with the variable-length Start Dependent 2765193267Sjkimresource descriptor. 2766193267Sjkim 2767193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2768193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2769193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2770193267Sjkima much larger code and data size. 2771193267Sjkim 2772193267Sjkim Previous Release: 2773193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 2774193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 2775193267Sjkim Current Release: 2776193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 2777193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 2778193267Sjkim 2779193267Sjkim2) iASL Compiler/Disassembler and Tools: 2780193267Sjkim 2781193267SjkimFixed a problem with the use of the Switch operator where execution of the 2782193267Sjkimcontaining method by multiple concurrent threads could cause an 2783193267SjkimAE_ALREADY_EXISTS exception. This is caused by the fact that there is no 2784193267Sjkimactual Switch opcode, it must be simulated with local named temporary 2785193267Sjkimvariables and if/else pairs. The solution chosen was to mark any method that 2786193267Sjkimuses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 2787193267Sjkim 2788193267Sjkim---------------------------------------- 2789193267Sjkim13 February 2008. Summary of changes for version 20080213: 2790193267Sjkim 2791193267Sjkim1) ACPI CA Core Subsystem: 2792193267Sjkim 2793193267SjkimImplemented another MS compatibility design change for GPE/Notify handling. 2794193267SjkimGPEs are now cleared/enabled asynchronously to allow all pending notifies to 2795193267Sjkimcomplete first. It is expected that the OSL will queue the enable request 2796220663Sjkimbehind all pending notify requests (may require changes to the local host OSL 2797193267Sjkimin AcpiOsExecute). Alexey Starikovskiy. 2798193267Sjkim 2799193267SjkimFixed a problem where buffer and package objects passed as arguments to a 2800193267Sjkimcontrol method via the external AcpiEvaluateObject interface could cause an 2801193267SjkimAE_AML_INTERNAL exception depending on the order and type of operators 2802193267Sjkimexecuted by the target control method. 2803193267Sjkim 2804193267SjkimFixed a problem where resource descriptor size optimization could cause a 2805193267Sjkimproblem when a _CRS resource template is passed to a _SRS method. The _SRS 2806193267Sjkimresource template must use the same descriptors (with the same size) as 2807193267Sjkimreturned from _CRS. This change affects the following resource descriptors: 2808193267SjkimIRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 2809193267Sjkim 2810193267SjkimFixed a problem where a CopyObject to RegionField, BankField, and IndexField 2811220663Sjkimobjects did not perform an implicit conversion as it should. These types must 2812220663Sjkimretain their initial type permanently as per the ACPI specification. However, 2813193267Sjkima CopyObject to all other object types should not perform an implicit 2814193267Sjkimconversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 2815193267Sjkim 2816193267SjkimFixed a problem with the AcpiGetDevices interface where the mechanism to 2817193267Sjkimmatch device CIDs did not examine the entire list of available CIDs, but 2818193267Sjkiminstead aborted on the first non-matching CID. Andrew Patterson. 2819193267Sjkim 2820220663SjkimFixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 2821193267Sjkiminadvertently changed to return a 16-bit value instead of a 32-bit value, 2822193267Sjkimtruncating the upper dword of a 64-bit value. This macro is only used to 2823193267Sjkimdisplay debug output, so no incorrect calculations were made. Also, 2824193267Sjkimreimplemented the macro so that a 64-bit shift is not performed by 2825193267Sjkiminefficient compilers. 2826193267Sjkim 2827193267SjkimAdded missing va_end statements that should correspond with each va_start 2828193267Sjkimstatement. 2829193267Sjkim 2830193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2831193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2832193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2833193267Sjkima much larger code and data size. 2834193267Sjkim 2835193267Sjkim Previous Release: 2836193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 2837193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 2838193267Sjkim Current Release: 2839193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 2840193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 2841193267Sjkim 2842193267Sjkim2) iASL Compiler/Disassembler and Tools: 2843193267Sjkim 2844193267SjkimImplemented full disassembler support for the following new ACPI tables: 2845193267SjkimBERT, EINJ, and ERST. Implemented partial disassembler support for the 2846193267Sjkimcomplicated HEST table. These tables support the Windows Hardware Error 2847193267SjkimArchitecture (WHEA). 2848193267Sjkim 2849193267Sjkim---------------------------------------- 2850193267Sjkim23 January 2008. Summary of changes for version 20080123: 2851193267Sjkim 2852193267Sjkim1) ACPI CA Core Subsystem: 2853193267Sjkim 2854193267SjkimAdded the 2008 copyright to all module headers and signons. This affects 2855193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 2856193267Sjkimthe tools/utilities. 2857193267Sjkim 2858193267SjkimFixed a problem with the SizeOf operator when used with Package and Buffer 2859193267Sjkimobjects. These objects have deferred execution for some arguments, and the 2860220663Sjkimexecution is now completed before the SizeOf is executed. This problem caused 2861193267Sjkimunexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 2862193267Sjkim9558 2863193267Sjkim 2864220663SjkimImplemented an enhancement to the interpreter "slack mode". In the absence of 2865193267Sjkiman explicit return or an implicitly returned object from the last executed 2866220663Sjkimopcode, a control method will now implicitly return an integer of value 0 for 2867193267SjkimMicrosoft compatibility. (Lin Ming) BZ 392 2868193267Sjkim 2869220663SjkimFixed a problem with the Load operator where an exception was not returned in 2870193267Sjkimthe case where the table is already loaded. (Lin Ming) BZ 463 2871193267Sjkim 2872220663SjkimImplemented support for the use of DDBHandles as an Indexed Reference, as per 2873193267Sjkimthe ACPI spec. (Lin Ming) BZ 486 2874193267Sjkim 2875193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 2876193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 2877193267Sjkim 2878193267SjkimFixed a problem with the LoadTable operator where the OemId and OemTableId 2879193267Sjkiminput strings could cause unexpected failures if they were shorter than the 2880193267Sjkimmaximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 2881193267Sjkim 2882193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 2883193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 2884193267Sjkim 2885220663SjkimImplemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 2886193267SjkimIBFT, UEFI, WDAT. Disassembler support is forthcoming. 2887193267Sjkim 2888193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2889193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2890193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2891193267Sjkima much larger code and data size. 2892193267Sjkim 2893193267Sjkim Previous Release: 2894193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 2895193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 2896193267Sjkim Current Release: 2897193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 2898193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 2899193267Sjkim 2900193267Sjkim2) iASL Compiler/Disassembler and Tools: 2901193267Sjkim 2902193267SjkimImplemented support in the disassembler for checksum validation on incoming 2903220663Sjkimbinary DSDTs and SSDTs. If incorrect, a message is displayed within the table 2904193267Sjkimheader dump at the start of the disassembly. 2905193267Sjkim 2906193267SjkimImplemented additional debugging information in the namespace listing file 2907193267Sjkimcreated during compilation. In addition to the namespace hierarchy, the full 2908193267Sjkimpathname to each namespace object is displayed. 2909193267Sjkim 2910193267SjkimFixed a problem with the disassembler where invalid ACPI tables could cause 2911193267Sjkimfaults or infinite loops. 2912193267Sjkim 2913193267SjkimFixed an unexpected parse error when using the optional "parameter types" 2914193267Sjkimlist in a control method declaration. (Lin Ming) BZ 397 2915193267Sjkim 2916193267SjkimFixed a problem where two External declarations with the same name did not 2917193267Sjkimcause an error (Lin Ming) BZ 509 2918193267Sjkim 2919193267SjkimImplemented support for full TermArgs (adding Argx, Localx and method 2920193267Sjkiminvocation) for the ParameterData parameter to the LoadTable operator. (Lin 2921193267SjkimMing) BZ 583,587 2922193267Sjkim 2923193267Sjkim---------------------------------------- 2924193267Sjkim19 December 2007. Summary of changes for version 20071219: 2925193267Sjkim 2926193267Sjkim1) ACPI CA Core Subsystem: 2927193267Sjkim 2928193267SjkimImplemented full support for deferred execution for the TermArg string 2929193267Sjkimarguments for DataTableRegion. This enables forward references and full 2930220663Sjkimoperand resolution for the three string arguments. Similar to OperationRegion 2931193267Sjkimdeferred argument execution.) Lin Ming. BZ 430 2932193267Sjkim 2933193267SjkimImplemented full argument resolution support for the BankValue argument to 2934193267SjkimBankField. Previously, only constants were supported, now any TermArg may be 2935193267Sjkimused. Lin Ming BZ 387, 393 2936193267Sjkim 2937193267SjkimFixed a problem with AcpiGetDevices where the search of a branch of the 2938193267Sjkimdevice tree could be terminated prematurely. In accordance with the ACPI 2939193267Sjkimspecification, the search down the current branch is terminated if a device 2940193267Sjkimis both not present and not functional (instead of just not present.) Yakui 2941193267SjkimZhao. 2942193267Sjkim 2943193267SjkimFixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 2944193267Sjkimthe underlying AML code changed the GPE enable registers. Now, any unknown 2945220663Sjkimincoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 2946193267Sjkiminstead of simply ignored. Rui Zhang. 2947193267Sjkim 2948193267SjkimFixed a problem with Index Fields where the Index register was incorrectly 2949193267Sjkimlimited to a maximum of 32 bits. Now any size may be used. 2950193267Sjkim 2951193267SjkimFixed a couple memory leaks associated with "implicit return" objects when 2952193267Sjkimthe AML Interpreter slack mode is enabled. Lin Ming BZ 349 2953193267Sjkim 2954193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2955193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2956193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2957193267Sjkima much larger code and data size. 2958193267Sjkim 2959193267Sjkim Previous Release: 2960193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 2961193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 2962193267Sjkim Current Release: 2963193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 2964193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 2965193267Sjkim 2966193267Sjkim---------------------------------------- 2967193267Sjkim14 November 2007. Summary of changes for version 20071114: 2968193267Sjkim 2969193267Sjkim1) ACPI CA Core Subsystem: 2970193267Sjkim 2971193267SjkimImplemented event counters for each of the Fixed Events, the ACPI SCI 2972193267Sjkim(interrupt) itself, and control methods executed. Named 2973193267SjkimAcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 2974193267Sjkimshould be useful for debugging and statistics. 2975193267Sjkim 2976193267SjkimImplemented a new external interface, AcpiGetStatistics, to retrieve the 2977193267Sjkimcontents of the various event counters. Returns the current values for 2978193267SjkimAcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 2979193267SjkimAcpiMethodCount. The interface can be expanded in the future if new counters 2980193267Sjkimare added. Device drivers should use this interface rather than access the 2981193267Sjkimcounters directly. 2982193267Sjkim 2983193267SjkimFixed a problem with the FromBCD and ToBCD operators. With some compilers, 2984193267Sjkimthe ShortDivide function worked incorrectly, causing problems with the BCD 2985193267Sjkimfunctions with large input values. A truncation from 64-bit to 32-bit 2986193267Sjkiminadvertently occurred. Internal BZ 435. Lin Ming 2987193267Sjkim 2988193267SjkimFixed a problem with Index references passed as method arguments. References 2989193267Sjkimpassed as arguments to control methods were dereferenced immediately (before 2990193267Sjkimcontrol was passed to the called method). The references are now correctly 2991193267Sjkimpassed directly to the called method. BZ 5389. Lin Ming 2992193267Sjkim 2993193267SjkimFixed a problem with CopyObject used in conjunction with the Index operator. 2994193267SjkimThe reference was incorrectly dereferenced before the copy. The reference is 2995193267Sjkimnow correctly copied. BZ 5391. Lin Ming 2996193267Sjkim 2997193267SjkimFixed a problem with Control Method references within Package objects. These 2998193267Sjkimreferences are now correctly generated. This completes the package 2999193267Sjkimconstruction overhaul that began in version 20071019. 3000193267Sjkim 3001193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3002193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3003193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3004193267Sjkima much larger code and data size. 3005193267Sjkim 3006193267Sjkim Previous Release: 3007193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3008193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3009193267Sjkim Current Release: 3010193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 3011193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 3012193267Sjkim 3013193267Sjkim 3014193267Sjkim2) iASL Compiler/Disassembler and Tools: 3015193267Sjkim 3016193267SjkimThe AcpiExec utility now installs handlers for all of the predefined 3017193267SjkimOperation Region types. New types supported are: PCI_Config, CMOS, and 3018193267SjkimPCIBARTarget. 3019193267Sjkim 3020193267SjkimFixed a problem with the 64-bit version of AcpiExec where the extended (64- 3021193267Sjkimbit) address fields for the DSDT and FACS within the FADT were not being 3022193267Sjkimused, causing truncation of the upper 32-bits of these addresses. Lin Ming 3023193267Sjkimand Bob Moore 3024193267Sjkim 3025193267Sjkim---------------------------------------- 3026193267Sjkim19 October 2007. Summary of changes for version 20071019: 3027193267Sjkim 3028193267Sjkim1) ACPI CA Core Subsystem: 3029193267Sjkim 3030193267SjkimFixed a problem with the Alias operator when the target of the alias is a 3031193267Sjkimnamed ASL operator that opens a new scope -- Scope, Device, PowerResource, 3032193267SjkimProcessor, and ThermalZone. In these cases, any children of the original 3033193267Sjkimoperator could not be accessed via the alias, potentially causing unexpected 3034193267SjkimAE_NOT_FOUND exceptions. (BZ 9067) 3035193267Sjkim 3036193267SjkimFixed a problem with the Package operator where all named references were 3037193267Sjkimcreated as object references and left otherwise unresolved. According to the 3038193267SjkimACPI specification, a Package can only contain Data Objects or references to 3039193267Sjkimcontrol methods. The implication is that named references to Data Objects 3040193267Sjkim(Integer, Buffer, String, Package, BufferField, Field) should be resolved 3041193267Sjkimimmediately upon package creation. This is the approach taken with this 3042193267Sjkimchange. References to all other named objects (Methods, Devices, Scopes, 3043193267Sjkimetc.) are all now properly created as reference objects. (BZ 5328) 3044193267Sjkim 3045193267SjkimReverted a change to Notify handling that was introduced in version 3046193267Sjkim20070508. This version changed the Notify handling from asynchronous to 3047193267Sjkimfully synchronous (Device driver Notify handling with respect to the Notify 3048193267SjkimASL operator). It was found that this change caused more problems than it 3049193267Sjkimsolved and was removed by most users. 3050193267Sjkim 3051193267SjkimFixed a problem with the Increment and Decrement operators where the type of 3052193267Sjkimthe target object could be unexpectedly and incorrectly changed. (BZ 353) 3053193267SjkimLin Ming. 3054193267Sjkim 3055193267SjkimFixed a problem with the Load and LoadTable operators where the table 3056193267Sjkimlocation within the namespace was ignored. Instead, the table was always 3057193267Sjkimloaded into the root or current scope. Lin Ming. 3058193267Sjkim 3059193267SjkimFixed a problem with the Load operator when loading a table from a buffer 3060193267Sjkimobject. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 3061193267Sjkim 3062193267SjkimFixed a problem with the Debug object where a store of a DdbHandle reference 3063193267Sjkimobject to the Debug object could cause a fault. 3064193267Sjkim 3065193267SjkimAdded a table checksum verification for the Load operator, in the case where 3066193267Sjkimthe load is from a buffer. (BZ 578). 3067193267Sjkim 3068193267SjkimImplemented additional parameter validation for the LoadTable operator. The 3069193267Sjkimlength of the input strings SignatureString, OemIdString, and OemTableId are 3070193267Sjkimnow checked for maximum lengths. (BZ 582) Lin Ming. 3071193267Sjkim 3072193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3073193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3074193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3075193267Sjkima much larger code and data size. 3076193267Sjkim 3077193267Sjkim Previous Release: 3078193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3079193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3080193267Sjkim Current Release: 3081193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 3082193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 3083193267Sjkim 3084193267Sjkim 3085193267Sjkim2) iASL Compiler/Disassembler: 3086193267Sjkim 3087193267SjkimFixed a problem where if a single file was specified and the file did not 3088193267Sjkimexist, no error message was emitted. (Introduced with wildcard support in 3089193267Sjkimversion 20070917.) 3090193267Sjkim 3091193267Sjkim---------------------------------------- 3092193267Sjkim19 September 2007. Summary of changes for version 20070919: 3093193267Sjkim 3094193267Sjkim1) ACPI CA Core Subsystem: 3095193267Sjkim 3096193267SjkimDesigned and implemented new external interfaces to install and remove 3097193267Sjkimhandlers for ACPI table-related events. Current events that are defined are 3098193267SjkimLOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 3099193267Sjkimthey are dynamically loaded and unloaded. See AcpiInstallTableHandler and 3100193267SjkimAcpiRemoveTableHandler. (Lin Ming and Bob Moore) 3101193267Sjkim 3102193267SjkimFixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 3103193267Sjkim(acpi_serialized option on Linux) could cause some systems to hang during 3104193267Sjkiminitialization. (Bob Moore) BZ 8171 3105193267Sjkim 3106193267SjkimFixed a problem where objects of certain types (Device, ThermalZone, 3107193267SjkimProcessor, PowerResource) can be not found if they are declared and 3108193267Sjkimreferenced from within the same control method (Lin Ming) BZ 341 3109193267Sjkim 3110193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3111193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3112193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3113193267Sjkima much larger code and data size. 3114193267Sjkim 3115193267Sjkim Previous Release: 3116193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3117193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3118193267Sjkim Current Release: 3119193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 3120193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 3121193267Sjkim 3122193267Sjkim 3123193267Sjkim2) iASL Compiler/Disassembler: 3124193267Sjkim 3125193267SjkimImplemented support to allow multiple files to be compiled/disassembled in a 3126193267Sjkimsingle invocation. This includes command line wildcard support for both the 3127193267SjkimWindows and Unix versions of the compiler. This feature simplifies the 3128193267Sjkimdisassembly and compilation of multiple ACPI tables in a single directory. 3129193267Sjkim 3130193267Sjkim---------------------------------------- 3131193267Sjkim08 May 2007. Summary of changes for version 20070508: 3132193267Sjkim 3133193267Sjkim1) ACPI CA Core Subsystem: 3134193267Sjkim 3135193267SjkimImplemented a Microsoft compatibility design change for the handling of the 3136193267SjkimNotify AML operator. Previously, notify handlers were dispatched and 3137193267Sjkimexecuted completely asynchronously in a deferred thread. The new design 3138193267Sjkimstill executes the notify handlers in a different thread, but the original 3139193267Sjkimthread that executed the Notify() now waits at a synchronization point for 3140193267Sjkimthe notify handler to complete. Some machines depend on a synchronous Notify 3141193267Sjkimoperator in order to operate correctly. 3142193267Sjkim 3143193267SjkimImplemented support to allow Package objects to be passed as method 3144193267Sjkimarguments to the external AcpiEvaluateObject interface. Previously, this 3145193267Sjkimwould return the AE_NOT_IMPLEMENTED exception. This feature had not been 3146193267Sjkimimplemented since there were no reserved control methods that required it 3147193267Sjkimuntil recently. 3148193267Sjkim 3149193267SjkimFixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 3150193267Sjkimcontained invalid non-zero values in reserved fields could cause later 3151193267Sjkimfailures because these fields have meaning in later revisions of the FADT. 3152193267SjkimFor incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 3153193267Sjkimare: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 3154193267Sjkim 3155193267SjkimFixed a problem where the Global Lock handle was not properly updated if a 3156193267Sjkimthread that acquired the Global Lock via executing AML code then attempted 3157193267Sjkimto acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 3158193267SjkimLiu. 3159193267Sjkim 3160193267SjkimFixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 3161193267Sjkimcould be corrupted if the interrupt being removed was at the head of the 3162193267Sjkimlist. Reported by Linn Crosetto. 3163193267Sjkim 3164193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3165193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3166193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3167193267Sjkima much larger code and data size. 3168193267Sjkim 3169193267Sjkim Previous Release: 3170193267Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3171193267Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3172193267Sjkim Current Release: 3173193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 3174193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 3175193267Sjkim 3176193267Sjkim---------------------------------------- 3177167802Sjkim20 March 2007. Summary of changes for version 20070320: 3178167802Sjkim 3179167802Sjkim1) ACPI CA Core Subsystem: 3180167802Sjkim 3181193267SjkimImplemented a change to the order of interpretation and evaluation of AML 3182193267Sjkimoperand objects within the AML interpreter. The interpreter now evaluates 3183193267Sjkimoperands in the order that they appear in the AML stream (and the 3184193267Sjkimcorresponding ASL code), instead of in the reverse order (after the entire 3185193267Sjkimoperand list has been parsed). The previous behavior caused several subtle 3186193267Sjkimincompatibilities with the Microsoft AML interpreter as well as being 3187193267Sjkimsomewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 3188167802Sjkim 3189193267SjkimImplemented a change to the ACPI Global Lock support. All interfaces to the 3190193267Sjkimglobal lock now allow the same thread to acquire the lock multiple times. 3191193267SjkimThis affects the AcpiAcquireGlobalLock external interface to the global lock 3192193267Sjkimas well as the internal use of the global lock to support AML fields -- a 3193193267Sjkimcontrol method that is holding the global lock can now simultaneously access 3194193267SjkimAML fields that require global lock protection. Previously, in both cases, 3195193267Sjkimthis would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 3196193267SjkimAcpiAcquireGlobalLock is of special interest to drivers for the Embedded 3197193267SjkimController. There is no change to the behavior of the AML Acquire operator, 3198193267Sjkimas this can already be used to acquire a mutex multiple times by the same 3199193267Sjkimthread. BZ 8066. With assistance from Alexey Starikovskiy. 3200167802Sjkim 3201193267SjkimFixed a problem where invalid objects could be referenced in the AML 3202193267SjkimInterpreter after error conditions. During operand evaluation, ensure that 3203193267Sjkimthe internal "Return Object" field is cleared on error and only valid 3204193267Sjkimpointers are stored there. Caused occasional access to deleted objects that 3205193267Sjkimresulted in "large reference count" warning messages. Valery Podrezov. 3206167802Sjkim 3207193267SjkimFixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 3208193267Sjkimdeeply nested control method invocations. BZ 7873, local BZ 487. Valery 3209193267SjkimPodrezov. 3210167802Sjkim 3211193267SjkimFixed an internal problem with the handling of result objects on the 3212193267Sjkiminterpreter result stack. BZ 7872. Valery Podrezov. 3213167802Sjkim 3214193267SjkimRemoved obsolete code that handled the case where AML_NAME_OP is the target 3215193267Sjkimof a reference (Reference.Opcode). This code was no longer necessary. BZ 3216193267Sjkim7874. Valery Podrezov. 3217167802Sjkim 3218193267SjkimRemoved obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 3219193267Sjkimremnant from the previously discontinued 16-bit support. 3220167802Sjkim 3221193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3222193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3223193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3224193267Sjkima much larger code and data size. 3225167802Sjkim 3226167802Sjkim Previous Release: 3227167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3228167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3229167802Sjkim Current Release: 3230167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3231167802Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 3232167802Sjkim 3233167802Sjkim---------------------------------------- 3234167802Sjkim26 January 2007. Summary of changes for version 20070126: 3235167802Sjkim 3236167802Sjkim1) ACPI CA Core Subsystem: 3237167802Sjkim 3238193267SjkimAdded the 2007 copyright to all module headers and signons. This affects 3239193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 3240193267Sjkimthe utilities. 3241167802Sjkim 3242193267SjkimImplemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 3243193267Sjkimduring a table load. A bad pointer was passed in the case where the DSDT is 3244193267Sjkimoverridden, causing a fault in this case. 3245167802Sjkim 3246193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3247193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3248193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3249193267Sjkima much larger code and data size. 3250167802Sjkim 3251167802Sjkim Previous Release: 3252167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3253167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3254167802Sjkim Current Release: 3255167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3256167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3257167802Sjkim 3258167802Sjkim---------------------------------------- 3259167802Sjkim15 December 2006. Summary of changes for version 20061215: 3260167802Sjkim 3261167802Sjkim1) ACPI CA Core Subsystem: 3262167802Sjkim 3263193267SjkimSupport for 16-bit ACPICA has been completely removed since it is no longer 3264193267Sjkimnecessary and it clutters the code. All 16-bit macros, types, and 3265193267Sjkimconditional compiles have been removed, cleaning up and simplifying the code 3266193267Sjkimacross the entire subsystem. DOS support is no longer needed since the 3267193267Sjkimbootable Linux firmware kit is now available. 3268167802Sjkim 3269193267SjkimThe handler for the Global Lock is now removed during AcpiTerminate to 3270193267Sjkimenable a clean subsystem restart, via the implementation of the 3271193267SjkimAcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 3272193267SjkimHP) 3273167802Sjkim 3274193267SjkimImplemented enhancements to the multithreading support within the debugger 3275193267Sjkimto enable improved multithreading debugging and evaluation of the subsystem. 3276167802Sjkim(Valery Podrezov) 3277167802Sjkim 3278193267SjkimDebugger: Enhanced the Statistics/Memory command to emit the total (maximum) 3279193267Sjkimmemory used during the execution, as well as the maximum memory consumed by 3280193267Sjkimeach of the various object types. (Valery Podrezov) 3281167802Sjkim 3282193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3283193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3284193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3285193267Sjkima much larger code and data size. 3286193267Sjkim 3287167802Sjkim Previous Release: 3288167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3289167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3290167802Sjkim Current Release: 3291167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 3292167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 3293167802Sjkim 3294167802Sjkim 3295167802Sjkim2) iASL Compiler/Disassembler and Tools: 3296167802Sjkim 3297193267SjkimAcpiExec: Implemented a new option (-m) to display full memory use 3298193267Sjkimstatistics upon subsystem/program termination. (Valery Podrezov) 3299167802Sjkim 3300167802Sjkim---------------------------------------- 3301167802Sjkim09 November 2006. Summary of changes for version 20061109: 3302167802Sjkim 3303167802Sjkim1) ACPI CA Core Subsystem: 3304167802Sjkim 3305193267SjkimOptimized the Load ASL operator in the case where the source operand is an 3306193267Sjkimoperation region. Simply map the operation region memory, instead of 3307193267Sjkimperforming a bytewise read. (Region must be of type SystemMemory, see 3308193267Sjkimbelow.) 3309167802Sjkim 3310193267SjkimFixed the Load ASL operator for the case where the source operand is a 3311193267Sjkimregion field. A buffer object is also allowed as the source operand. BZ 480 3312167802Sjkim 3313193267SjkimFixed a problem where the Load ASL operator allowed the source operand to be 3314193267Sjkiman operation region of any type. It is now restricted to regions of type 3315193267SjkimSystemMemory, as per the ACPI specification. BZ 481 3316167802Sjkim 3317193267SjkimAdditional cleanup and optimizations for the new Table Manager code. 3318167802Sjkim 3319193267SjkimAcpiEnable will now fail if all of the required ACPI tables are not loaded 3320193267Sjkim(FADT, FACS, DSDT). BZ 477 3321167802Sjkim 3322193267SjkimAdded #pragma pack(8/4) to acobject.h to ensure that the structures in this 3323193267Sjkimheader are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 3324193267Sjkimmanually optimized to be aligned and will not work if it is byte-packed. 3325167802Sjkim 3326193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3327193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3328193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3329193267Sjkima much larger code and data size. 3330167802Sjkim 3331167802Sjkim Previous Release: 3332167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3333167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3334167802Sjkim Current Release: 3335167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 3336167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 3337167802Sjkim 3338167802Sjkim 3339167802Sjkim2) iASL Compiler/Disassembler and Tools: 3340167802Sjkim 3341193267SjkimFixed a problem where the presence of the _OSI predefined control method 3342193267Sjkimwithin complex expressions could cause an internal compiler error. 3343167802Sjkim 3344193267SjkimAcpiExec: Implemented full region support for multiple address spaces. 3345193267SjkimSpaceId is now part of the REGION object. BZ 429 3346167802Sjkim 3347167802Sjkim---------------------------------------- 3348167802Sjkim11 October 2006. Summary of changes for version 20061011: 3349167802Sjkim 3350167802Sjkim1) ACPI CA Core Subsystem: 3351167802Sjkim 3352193267SjkimCompleted an AML interpreter performance enhancement for control method 3353193267Sjkimexecution. Previously a 2-pass parse/execution, control methods are now 3354193267Sjkimcompletely parsed and executed in a single pass. This improves overall 3355193267Sjkiminterpreter performance by ~25%, reduces code size, and reduces CPU stack 3356193267Sjkimuse. (Valery Podrezov + interpreter changes in version 20051202 that 3357193267Sjkimeliminated namespace loading during the pass one parse.) 3358167802Sjkim 3359193267SjkimImplemented _CID support for PCI Root Bridge detection. If the _HID does not 3360193267Sjkimmatch the predefined PCI Root Bridge IDs, the _CID list (if present) is now 3361193267Sjkimobtained and also checked for an ID match. 3362167802Sjkim 3363193267SjkimImplemented additional support for the PCI _ADR execution: upsearch until a 3364193267Sjkimdevice scope is found before executing _ADR. This allows PCI_Config 3365193267Sjkimoperation regions to be declared locally within control methods underneath 3366193267SjkimPCI device objects. 3367167802Sjkim 3368193267SjkimFixed a problem with a possible race condition between threads executing 3369193267SjkimAcpiWalkNamespace and the AML interpreter. This condition was removed by 3370193267Sjkimmodifying AcpiWalkNamespace to (by default) ignore all temporary namespace 3371193267Sjkimentries created during any concurrent control method execution. An 3372193267Sjkimadditional namespace race condition is known to exist between 3373193267SjkimAcpiWalkNamespace and the Load/Unload ASL operators and is still under 3374193267Sjkiminvestigation. 3375167802Sjkim 3376193267SjkimRestructured the AML ParseLoop function, breaking it into several 3377193267Sjkimsubfunctions in order to reduce CPU stack use and improve maintainability. 3378193267Sjkim(Mikhail Kouzmich) 3379167802Sjkim 3380193267SjkimAcpiGetHandle: Fix for parameter validation to detect invalid combinations 3381193267Sjkimof prefix handle and pathname. BZ 478 3382167802Sjkim 3383193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3384193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3385193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3386193267Sjkima much larger code and data size. 3387167802Sjkim 3388167802Sjkim Previous Release: 3389167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3390167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3391167802Sjkim Current Release: 3392167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 3393167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 3394167802Sjkim 3395167802Sjkim2) iASL Compiler/Disassembler and Tools: 3396167802Sjkim 3397193267SjkimPorted the -g option (get local ACPI tables) to the new ACPICA Table Manager 3398193267Sjkimto restore original behavior. 3399167802Sjkim 3400167802Sjkim---------------------------------------- 3401167802Sjkim27 September 2006. Summary of changes for version 20060927: 3402167802Sjkim 3403167802Sjkim1) ACPI CA Core Subsystem: 3404167802Sjkim 3405193267SjkimRemoved the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 3406193267SjkimThese functions now use a spinlock for mutual exclusion and the interrupt 3407193267Sjkimlevel indication flag is not needed. 3408167802Sjkim 3409193267SjkimFixed a problem with the Global Lock where the lock could appear to be 3410193267Sjkimobtained before it is actually obtained. The global lock semaphore was 3411193267Sjkiminadvertently created with one unit instead of zero units. (BZ 464) Fiodor 3412193267SjkimSuietov. 3413167802Sjkim 3414193267SjkimFixed a possible memory leak and fault in AcpiExResolveObjectToValue during 3415193267Sjkima read from a buffer or region field. (BZ 458) Fiodor Suietov. 3416167802Sjkim 3417193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3418193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3419193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3420193267Sjkima much larger code and data size. 3421167802Sjkim 3422167802Sjkim Previous Release: 3423167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3424167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3425167802Sjkim Current Release: 3426167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3427167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 3428167802Sjkim 3429167802Sjkim 3430167802Sjkim2) iASL Compiler/Disassembler and Tools: 3431167802Sjkim 3432193267SjkimFixed a compilation problem with the pre-defined Resource Descriptor field 3433193267Sjkimnames where an "object does not exist" error could be incorrectly generated 3434193267Sjkimif the parent ResourceTemplate pathname places the template within a 3435193267Sjkimdifferent namespace scope than the current scope. (BZ 7212) 3436167802Sjkim 3437193267SjkimFixed a problem where the compiler could hang after syntax errors detected 3438193267Sjkimin an ElseIf construct. (BZ 453) 3439167802Sjkim 3440193267SjkimFixed a problem with the AmlFilename parameter to the DefinitionBlock() 3441193267Sjkimoperator. An incorrect output filename was produced when this parameter was 3442193267Sjkima null string (""). Now, the original input filename is used as the AML 3443193267Sjkimoutput filename, with an ".aml" extension. 3444167802Sjkim 3445193267SjkimImplemented a generic batch command mode for the AcpiExec utility (execute 3446193267Sjkimany AML debugger command) (Valery Podrezov). 3447167802Sjkim 3448167802Sjkim---------------------------------------- 3449167802Sjkim12 September 2006. Summary of changes for version 20060912: 3450167802Sjkim 3451167802Sjkim1) ACPI CA Core Subsystem: 3452167802Sjkim 3453193267SjkimEnhanced the implementation of the "serialized mode" of the interpreter 3454193267Sjkim(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 3455193267Sjkimspecified, instead of creating a serialization semaphore per control method, 3456193267Sjkimthe interpreter lock is simply no longer released before a blocking 3457193267Sjkimoperation during control method execution. This effectively makes the AML 3458193267SjkimInterpreter single-threaded. The overhead of a semaphore per-method is 3459193267Sjkimeliminated. 3460167802Sjkim 3461193267SjkimFixed a regression where an error was no longer emitted if a control method 3462193267Sjkimattempts to create 2 objects of the same name. This once again returns 3463193267SjkimAE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 3464193267Sjkimwill dynamically serialize the control method to possible prevent future 3465193267Sjkimerrors. (BZ 440) 3466167802Sjkim 3467193267SjkimIntegrated a fix for a problem with PCI Express HID detection in the PCI 3468193267SjkimConfig Space setup procedure. (BZ 7145) 3469167802Sjkim 3470193267SjkimMoved all FADT-related functions to a new file, tbfadt.c. Eliminated the 3471193267SjkimAcpiHwInitialize function - the FADT registers are now validated when the 3472193267Sjkimtable is loaded. 3473167802Sjkim 3474193267SjkimAdded two new warnings during FADT verification - 1) if the FADT is larger 3475193267Sjkimthan the largest known FADT version, and 2) if there is a mismatch between a 3476193267Sjkim32-bit block address and the 64-bit X counterpart (when both are non-zero.) 3477167802Sjkim 3478193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3479193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3480193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3481193267Sjkima much larger code and data size. 3482167802Sjkim 3483167802Sjkim Previous Release: 3484167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3485167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3486167802Sjkim Current Release: 3487167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 3488167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 3489167802Sjkim 3490167802Sjkim 3491167802Sjkim2) iASL Compiler/Disassembler and Tools: 3492167802Sjkim 3493193267SjkimFixed a problem with the implementation of the Switch() operator where the 3494193267Sjkimtemporary variable was declared too close to the actual Switch, instead of 3495193267Sjkimat method level. This could cause a problem if the Switch() operator is 3496193267Sjkimwithin a while loop, causing an error on the second iteration. (BZ 460) 3497167802Sjkim 3498193267SjkimDisassembler - fix for error emitted for unknown type for target of scope 3499193267Sjkimoperator. Now, ignore it and continue. 3500167802Sjkim 3501193267SjkimDisassembly of an FADT now verifies the input FADT and reports any errors 3502193267Sjkimfound. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 3503167802Sjkim 3504193267SjkimDisassembly of raw data buffers with byte initialization data now prefixes 3505193267Sjkimeach output line with the current buffer offset. 3506167802Sjkim 3507193267SjkimDisassembly of ASF! table now includes all variable-length data fields at 3508193267Sjkimthe end of some of the subtables. 3509167802Sjkim 3510193267SjkimThe disassembler now emits a comment if a buffer appears to be a 3511193267SjkimResourceTemplate, but cannot be disassembled as such because the EndTag does 3512193267Sjkimnot appear at the very end of the buffer. 3513167802Sjkim 3514193267SjkimAcpiExec - Added the "-t" command line option to enable the serialized mode 3515193267Sjkimof the AML interpreter. 3516167802Sjkim 3517167802Sjkim---------------------------------------- 3518167802Sjkim31 August 2006. Summary of changes for version 20060831: 3519167802Sjkim 3520167802Sjkim1) ACPI CA Core Subsystem: 3521167802Sjkim 3522167802SjkimMiscellaneous fixes for the Table Manager: 3523193267Sjkim- Correctly initialize internal common FADT for all 64-bit "X" fields 3524167802Sjkim- Fixed a couple table mapping issues during table load 3525167802Sjkim- Fixed a couple alignment issues for IA64 3526167802Sjkim- Initialize input array to zero in AcpiInitializeTables 3527193267Sjkim- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 3528193267SjkimAcpiGetTableByIndex 3529167802Sjkim 3530193267SjkimChange for GPE support: when a "wake" GPE is received, all wake GPEs are now 3531193267Sjkimimmediately disabled to prevent the waking GPE from firing again and to 3532193267Sjkimprevent other wake GPEs from interrupting the wake process. 3533167802Sjkim 3534193267SjkimAdded the AcpiGpeCount global that tracks the number of processed GPEs, to 3535193267Sjkimbe used for debugging systems with a large number of ACPI interrupts. 3536167802Sjkim 3537193267SjkimImplemented support for the "DMAR" ACPI table (DMA Redirection Table) in 3538193267Sjkimboth the ACPICA headers and the disassembler. 3539167802Sjkim 3540193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3541193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3542193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3543193267Sjkima much larger code and data size. 3544167802Sjkim 3545167802Sjkim Previous Release: 3546167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3547167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3548167802Sjkim Current Release: 3549167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 3550167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 3551167802Sjkim 3552167802Sjkim 3553167802Sjkim2) iASL Compiler/Disassembler and Tools: 3554167802Sjkim 3555167802SjkimDisassembler support for the DMAR ACPI table. 3556167802Sjkim 3557167802Sjkim---------------------------------------- 3558167802Sjkim23 August 2006. Summary of changes for version 20060823: 3559167802Sjkim 3560167802Sjkim1) ACPI CA Core Subsystem: 3561167802Sjkim 3562193267SjkimThe Table Manager component has been completely redesigned and 3563193267Sjkimreimplemented. The new design is much simpler, and reduces the overall code 3564193267Sjkimand data size of the kernel-resident ACPICA by approximately 5%. Also, it is 3565193267Sjkimnow possible to obtain the ACPI tables very early during kernel 3566193267Sjkiminitialization, even before dynamic memory management is initialized. 3567193267Sjkim(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 3568167802Sjkim 3569167802SjkimObsolete ACPICA interfaces: 3570167802Sjkim 3571193267Sjkim- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 3572193267Sjkimtime). 3573167802Sjkim- AcpiLoadTable: Not needed. 3574167802Sjkim- AcpiUnloadTable: Not needed. 3575167802Sjkim 3576167802SjkimNew ACPICA interfaces: 3577167802Sjkim 3578193267Sjkim- AcpiInitializeTables: Must be called before the table manager can be used. 3579193267Sjkim- AcpiReallocateRootTable: Used to transfer the root table to dynamically 3580193267Sjkimallocated memory after it becomes available. 3581193267Sjkim- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 3582193267Sjkimin the RSDT/XSDT. 3583167802Sjkim 3584167802SjkimOther ACPICA changes: 3585167802Sjkim 3586193267Sjkim- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 3587193267SjkimAcpiOsUnmapMemory to free this mapping. 3588193267Sjkim- AcpiGetTable returns the actual mapped table. The mapping is managed 3589193267Sjkiminternally and must not be deleted by the caller. Use of this interface 3590193267Sjkimcauses no additional dynamic memory allocation. 3591193267Sjkim- AcpiFindRootPointer: Support for physical addressing has been eliminated, 3592193267Sjkimit appeared to be unused. 3593193267Sjkim- The interface to AcpiOsMapMemory has changed to be consistent with the 3594193267Sjkimother allocation interfaces. 3595193267Sjkim- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 3596193267Sjkimparameters. 3597193267Sjkim- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 3598193267Sjkimbit platforms. Was previously 64 bits on all platforms. 3599193267Sjkim- The interface to the ACPI Global Lock acquire/release macros have changed 3600193267Sjkimslightly since ACPICA no longer keeps a local copy of the FACS with a 3601193267Sjkimconstructed pointer to the actual global lock. 3602167802Sjkim 3603167802SjkimPorting to the new table manager: 3604167802Sjkim 3605193267Sjkim- AcpiInitializeTables: Must be called once, and can be called anytime 3606193267Sjkimduring the OS initialization process. It allows the host to specify an area 3607193267Sjkimof memory to be used to store the internal version of the RSDT/XSDT (root 3608193267Sjkimtable). This allows the host to access ACPI tables before memory management 3609193267Sjkimis initialized and running. 3610193267Sjkim- AcpiReallocateRootTable: Can be called after memory management is running 3611193267Sjkimto copy the root table to a dynamically allocated array, freeing up the 3612193267Sjkimscratch memory specified in the call to AcpiInitializeTables. 3613193267Sjkim- AcpiSubsystemInitialize: This existing interface is independent of the 3614193267SjkimTable Manager, and does not have to be called before the Table Manager can 3615193267Sjkimbe used, it only must be called before the rest of ACPICA can be used. 3616193267Sjkim- ACPI Tables: Some changes have been made to the names and structure of the 3617193267Sjkimactbl.h and actbl1.h header files and may require changes to existing code. 3618193267SjkimFor example, bitfields have been completely removed because of their lack of 3619193267Sjkimportability across C compilers. 3620193267Sjkim- Update interfaces to the Global Lock acquire/release macros if local 3621193267Sjkimversions are used. (see acwin.h) 3622167802Sjkim 3623167802SjkimObsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 3624167802Sjkim 3625167802SjkimNew files: tbfind.c 3626167802Sjkim 3627193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3628193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3629193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3630193267Sjkima much larger code and data size. 3631167802Sjkim 3632167802Sjkim Previous Release: 3633167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3634167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3635167802Sjkim Current Release: 3636167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 3637167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 3638167802Sjkim 3639167802Sjkim 3640167802Sjkim2) iASL Compiler/Disassembler and Tools: 3641167802Sjkim 3642167802SjkimNo changes for this release. 3643167802Sjkim 3644167802Sjkim---------------------------------------- 3645167802Sjkim21 July 2006. Summary of changes for version 20060721: 3646167802Sjkim 3647167802Sjkim1) ACPI CA Core Subsystem: 3648167802Sjkim 3649193267SjkimThe full source code for the ASL test suite used to validate the iASL 3650193267Sjkimcompiler and the ACPICA core subsystem is being released with the ACPICA 3651193267Sjkimsource for the first time. The source is contained in a separate package and 3652193267Sjkimconsists of over 1100 files that exercise all ASL/AML operators. The package 3653193267Sjkimshould appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 3654167802SjkimSuietov) 3655167802Sjkim 3656193267SjkimCompleted a new design and implementation for support of the ACPI Global 3657193267SjkimLock. On the OS side, the global lock is now treated as a standard AML 3658193267Sjkimmutex. Previously, multiple OS threads could "acquire" the global lock 3659193267Sjkimsimultaneously. However, this could cause the BIOS to be starved out of the 3660193267Sjkimlock - especially in cases such as the Embedded Controller driver where 3661193267Sjkimthere is a tight coupling between the OS and the BIOS. 3662167802Sjkim 3663193267SjkimImplemented an optimization for the ACPI Global Lock interrupt mechanism. 3664193267SjkimThe Global Lock interrupt handler no longer queues the execution of a 3665193267Sjkimseparate thread to signal the global lock semaphore. Instead, the semaphore 3666193267Sjkimis signaled directly from the interrupt handler. 3667167802Sjkim 3668193267SjkimImplemented support within the AML interpreter for package objects that 3669193267Sjkimcontain a larger AML length (package list length) than the package element 3670193267Sjkimcount. In this case, the length of the package is truncated to match the 3671193267Sjkimpackage element count. Some BIOS code apparently modifies the package length 3672193267Sjkimon the fly, and this change supports this behavior. Provides compatibility 3673193267Sjkimwith the MS AML interpreter. (With assistance from Fiodor Suietov) 3674167802Sjkim 3675193267SjkimImplemented a temporary fix for the BankValue parameter of a Bank Field to 3676193267Sjkimsupport all constant values, now including the Zero and One opcodes. 3677193267SjkimEvaluation of this parameter must eventually be converted to a full TermArg 3678193267Sjkimevaluation. A not-implemented error is now returned (temporarily) for non- 3679193267Sjkimconstant values for this parameter. 3680167802Sjkim 3681167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3682193267Sjkim- Fix for premature object deletion after CopyObject on Operation Region (BZ 3683193267Sjkim350) 3684167802Sjkim 3685193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3686193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3687193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3688193267Sjkima much larger code and data size. 3689167802Sjkim 3690167802Sjkim Previous Release: 3691167802Sjkim Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 3692167802Sjkim Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 3693167802Sjkim Current Release: 3694167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3695167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3696167802Sjkim 3697167802Sjkim 3698167802Sjkim2) iASL Compiler/Disassembler and Tools: 3699167802Sjkim 3700167802SjkimNo changes for this release. 3701167802Sjkim 3702167802Sjkim---------------------------------------- 3703167802Sjkim07 July 2006. Summary of changes for version 20060707: 3704167802Sjkim 3705167802Sjkim1) ACPI CA Core Subsystem: 3706167802Sjkim 3707193267SjkimAdded the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 3708193267Sjkimthat do not allow the initialization of address pointers within packed 3709193267Sjkimstructures - even though the hardware itself may support misaligned 3710193267Sjkimtransfers. Some of the debug data structures are packed by default to 3711193267Sjkimminimize size. 3712167802Sjkim 3713193267SjkimAdded an error message for the case where AcpiOsGetThreadId() returns zero. 3714193267SjkimA non-zero value is required by the core ACPICA code to ensure the proper 3715193267Sjkimoperation of AML mutexes and recursive control methods. 3716167802Sjkim 3717193267SjkimThe DSDT is now the only ACPI table that determines whether the AML 3718193267Sjkiminterpreter is in 32-bit or 64-bit mode. Not really a functional change, but 3719193267Sjkimthe hooks for per-table 32/64 switching have been removed from the code. A 3720193267Sjkimclarification to the ACPI specification is forthcoming in ACPI 3.0B. 3721167802Sjkim 3722193267SjkimFixed a possible leak of an OwnerID in the error path of 3723193267SjkimAcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 3724193267Sjkimdeletion to a single place in AcpiTbUninstallTable to correct possible leaks 3725193267Sjkimwhen using the AcpiTbDeleteTablesByType interface (with assistance from 3726193267SjkimLance Ortiz.) 3727167802Sjkim 3728193267SjkimFixed a problem with Serialized control methods where the semaphore 3729193267Sjkimassociated with the method could be over-signaled after multiple method 3730193267Sjkiminvocations. 3731167802Sjkim 3732193267SjkimFixed two issues with the locking of the internal namespace data structure. 3733193267SjkimBoth the Unload() operator and AcpiUnloadTable interface now lock the 3734193267Sjkimnamespace during the namespace deletion associated with the table unload 3735193267Sjkim(with assistance from Linn Crosetto.) 3736167802Sjkim 3737167802SjkimFixed problem reports (Valery Podrezov) integrated: 3738193267Sjkim- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 3739167802Sjkim 3740167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3741167802Sjkim- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 3742193267Sjkim- On Address Space handler deletion, needless deactivation call (BZ 374) 3743193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 3744193267Sjkim- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 3745193267Sjkim(BZ 376) 3746193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 3747167802Sjkim- Minimum Length of RSDT should be validated (BZ 379) 3748193267Sjkim- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 3749193267SjkimHandler (BZ (380) 3750193267Sjkim- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 3751193267Sjkim(BZ 381) 3752167802Sjkim 3753193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3754193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3755193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3756193267Sjkima much larger code and data size. 3757167802Sjkim 3758167802Sjkim Previous Release: 3759167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 3760167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 3761167802Sjkim Current Release: 3762167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 3763167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 3764167802Sjkim 3765167802Sjkim 3766167802Sjkim2) iASL Compiler/Disassembler and Tools: 3767167802Sjkim 3768167802SjkimFixed problem reports: 3769193267SjkimCompiler segfault when ASL contains a long (>1024) String declaration (BZ 3770193267Sjkim436) 3771167802Sjkim 3772167802Sjkim---------------------------------------- 3773167802Sjkim23 June 2006. Summary of changes for version 20060623: 3774167802Sjkim 3775167802Sjkim1) ACPI CA Core Subsystem: 3776167802Sjkim 3777193267SjkimImplemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 3778193267Sjkimallows the type to be customized to the host OS for improved efficiency 3779193267Sjkim(since a spinlock is usually a very small object.) 3780167802Sjkim 3781193267SjkimImplemented support for "ignored" bits in the ACPI registers. According to 3782193267Sjkimthe ACPI specification, these bits should be preserved when writing the 3783193267Sjkimregisters via a read/modify/write cycle. There are 3 bits preserved in this 3784193267Sjkimmanner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 3785167802Sjkim 3786193267SjkimImplemented the initial deployment of new OSL mutex interfaces. Since some 3787193267Sjkimhost operating systems have separate mutex and semaphore objects, this 3788193267Sjkimfeature was requested. The base code now uses mutexes (and the new mutex 3789193267Sjkiminterfaces) wherever a binary semaphore was used previously. However, for 3790193267Sjkimthe current release, the mutex interfaces are defined as macros to map them 3791193267Sjkimto the existing semaphore interfaces. Therefore, no OSL changes are required 3792193267Sjkimat this time. (See acpiosxf.h) 3793167802Sjkim 3794193267SjkimFixed several problems with the support for the control method SyncLevel 3795193267Sjkimparameter. The SyncLevel now works according to the ACPI specification and 3796193267Sjkimin concert with the Mutex SyncLevel parameter, since the current SyncLevel 3797193267Sjkimis a property of the executing thread. Mutual exclusion for control methods 3798193267Sjkimis now implemented with a mutex instead of a semaphore. 3799167802Sjkim 3800193267SjkimFixed three instances of the use of the C shift operator in the bitfield 3801193267Sjkimsupport code (exfldio.c) to avoid the use of a shift value larger than the 3802193267Sjkimtarget data width. The behavior of C compilers is undefined in this case and 3803193267Sjkimcan cause unpredictable results, and therefore the case must be detected and 3804193267Sjkimavoided. (Fiodor Suietov) 3805167802Sjkim 3806193267SjkimAdded an info message whenever an SSDT or OEM table is loaded dynamically 3807193267Sjkimvia the Load() or LoadTable() ASL operators. This should improve debugging 3808193267Sjkimcapability since it will show exactly what tables have been loaded (beyond 3809193267Sjkimthe tables present in the RSDT/XSDT.) 3810167802Sjkim 3811193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3812193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3813193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3814193267Sjkima much larger code and data size. 3815167802Sjkim 3816167802Sjkim Previous Release: 3817167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 3818167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 3819167802Sjkim Current Release: 3820167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 3821167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 3822167802Sjkim 3823167802Sjkim 3824167802Sjkim2) iASL Compiler/Disassembler and Tools: 3825167802Sjkim 3826167802SjkimNo changes for this release. 3827167802Sjkim 3828167802Sjkim---------------------------------------- 3829167802Sjkim08 June 2006. Summary of changes for version 20060608: 3830167802Sjkim 3831167802Sjkim1) ACPI CA Core Subsystem: 3832167802Sjkim 3833193267SjkimConverted the locking mutex used for the ACPI hardware to a spinlock. This 3834193267Sjkimchange should eliminate all problems caused by attempting to acquire a 3835193267Sjkimsemaphore at interrupt level, and it means that all ACPICA external 3836193267Sjkiminterfaces that directly access the ACPI hardware can be safely called from 3837193267Sjkiminterrupt level. OSL code that implements the semaphore interfaces should be 3838193267Sjkimable to eliminate any workarounds for being called at interrupt level. 3839167802Sjkim 3840193267SjkimFixed a regression introduced in 20060526 where the ACPI device 3841193267Sjkiminitialization could be prematurely aborted with an AE_NOT_FOUND if a device 3842193267Sjkimdid not have an optional _INI method. 3843167802Sjkim 3844193267SjkimFixed an IndexField issue where a write to the Data Register should be 3845193267Sjkimlimited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 3846193267SjkimFiodor Suietov) 3847167802Sjkim 3848167802SjkimFixed problem reports (Valery Podrezov) integrated: 3849193267Sjkim- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 3850167802Sjkim 3851167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3852193267Sjkim- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 3853167802Sjkim 3854193267SjkimRemoved four global mutexes that were obsolete and were no longer being 3855193267Sjkimused. 3856167802Sjkim 3857193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3858193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3859193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3860193267Sjkima much larger code and data size. 3861167802Sjkim 3862167802Sjkim Previous Release: 3863167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 3864167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 3865167802Sjkim Current Release: 3866167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 3867167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 3868167802Sjkim 3869167802Sjkim 3870167802Sjkim2) iASL Compiler/Disassembler and Tools: 3871167802Sjkim 3872193267SjkimFixed a fault when using -g option (get tables from registry) on Windows 3873193267Sjkimmachines. 3874167802Sjkim 3875167802SjkimFixed problem reports integrated: 3876193267Sjkim- Generate error if CreateField NumBits parameter is zero. (BZ 405) 3877193267Sjkim- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 3878193267SjkimSuietov) 3879167802Sjkim- Global table revision override (-r) is ignored (BZ 413) 3880167802Sjkim 3881167802Sjkim---------------------------------------- 3882167802Sjkim26 May 2006. Summary of changes for version 20060526: 3883167802Sjkim 3884167802Sjkim1) ACPI CA Core Subsystem: 3885167802Sjkim 3886193267SjkimRestructured, flattened, and simplified the internal interfaces for 3887193267Sjkimnamespace object evaluation - resulting in smaller code, less CPU stack use, 3888193267Sjkimand fewer interfaces. (With assistance from Mikhail Kouzmich) 3889167802Sjkim 3890193267SjkimFixed a problem with the CopyObject operator where the first parameter was 3891193267Sjkimnot typed correctly for the parser, interpreter, compiler, and disassembler. 3892193267SjkimCaused various errors and unexpected behavior. 3893167802Sjkim 3894193267SjkimFixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 3895193267Sjkimproduced incorrect results with some C compilers. Since the behavior of C 3896193267Sjkimcompilers when the shift value is larger than the datatype width is 3897193267Sjkimapparently not well defined, the interpreter now detects this condition and 3898193267Sjkimsimply returns zero as expected in all such cases. (BZ 395) 3899167802Sjkim 3900167802SjkimFixed problem reports (Valery Podrezov) integrated: 3901193267Sjkim- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 3902193267Sjkim- Allow interpreter to handle nested method declarations (BZ 5361) 3903167802Sjkim 3904167802SjkimFixed problem reports (Fiodor Suietov) integrated: 3905193267Sjkim- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 3906193267Sjkim- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 3907193267Sjkim- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 3908193267Sjkim- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 3909167802Sjkim- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 3910193267Sjkim- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 3911167802Sjkim- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 3912167802Sjkim- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 3913193267Sjkim- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 3914193267Sjkim- Status of the Global Initialization Handler call not used (BZ 366) 3915193267Sjkim- Incorrect object parameter to Global Initialization Handler (BZ 367) 3916167802Sjkim 3917193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3918193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3919193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3920193267Sjkima much larger code and data size. 3921167802Sjkim 3922167802Sjkim Previous Release: 3923167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 3924167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 3925167802Sjkim Current Release: 3926167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 3927167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 3928167802Sjkim 3929167802Sjkim 3930167802Sjkim2) iASL Compiler/Disassembler and Tools: 3931167802Sjkim 3932193267SjkimModified the parser to allow the names IO, DMA, and IRQ to be used as 3933193267Sjkimnamespace identifiers with no collision with existing resource descriptor 3934193267Sjkimmacro names. This provides compatibility with other ASL compilers and is 3935193267Sjkimmost useful for disassembly/recompilation of existing tables without parse 3936167802Sjkimerrors. (With assistance from Thomas Renninger) 3937167802Sjkim 3938193267SjkimDisassembler: fixed an incorrect disassembly problem with the 3939193267SjkimDataTableRegion and CopyObject operators. Fixed a possible fault during 3940193267Sjkimdisassembly of some Alias operators. 3941167802Sjkim 3942167802Sjkim---------------------------------------- 3943167802Sjkim12 May 2006. Summary of changes for version 20060512: 3944167802Sjkim 3945167802Sjkim1) ACPI CA Core Subsystem: 3946167802Sjkim 3947193267SjkimReplaced the AcpiOsQueueForExecution interface with a new interface named 3948193267SjkimAcpiOsExecute. The major difference is that the new interface does not have 3949193267Sjkima Priority parameter, this appeared to be useless and has been replaced by a 3950193267SjkimType parameter. The Type tells the host what type of execution is being 3951193267Sjkimrequested, such as global lock handler, notify handler, GPE handler, etc. 3952193267SjkimThis allows the host to queue and execute the request as appropriate for the 3953193267Sjkimrequest type, possibly using different work queues and different priorities 3954193267Sjkimfor the various request types. This enables fixes for multithreading 3955193267Sjkimdeadlock problems such as BZ #5534, and will require changes to all existing 3956193267SjkimOS interface layers. (Alexey Starikovskiy and Bob Moore) 3957167802Sjkim 3958193267SjkimFixed a possible memory leak associated with the support for the so-called 3959193267Sjkim"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 3960193267SjkimSuietov) 3961167802Sjkim 3962193267SjkimFixed a problem with the Load() operator where a table load from an 3963193267Sjkimoperation region could overwrite an internal table buffer by up to 7 bytes 3964193267Sjkimand cause alignment faults on IPF systems. (With assistance from Luming Yu) 3965167802Sjkim 3966193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 3967193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3968193267Sjkimdebug version of the code includes the debug output trace mechanism and has 3969193267Sjkima much larger code and data size. 3970167802Sjkim 3971167802Sjkim Previous Release: 3972167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 3973167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 3974167802Sjkim Current Release: 3975167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 3976167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 3977167802Sjkim 3978167802Sjkim 3979167802Sjkim 3980167802Sjkim2) iASL Compiler/Disassembler and Tools: 3981167802Sjkim 3982193267SjkimDisassembler: Implemented support to cross reference the internal namespace 3983193267Sjkimand automatically generate ASL External() statements for symbols not defined 3984193267Sjkimwithin the current table being disassembled. This will simplify the 3985193267Sjkimdisassembly and recompilation of interdependent tables such as SSDTs since 3986193267Sjkimthese statements will no longer have to be added manually. 3987167802Sjkim 3988193267SjkimDisassembler: Implemented experimental support to automatically detect 3989193267Sjkiminvocations of external control methods and generate appropriate External() 3990193267Sjkimstatements. This is problematic because the AML cannot be correctly parsed 3991193267Sjkimuntil the number of arguments for each control method is known. Currently, 3992193267Sjkimstandalone method invocations and invocations as the source operand of a 3993193267SjkimStore() statement are supported. 3994167802Sjkim 3995193267SjkimDisassembler: Implemented support for the ASL pseudo-operators LNotEqual, 3996193267SjkimLLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 3997193267SjkimLNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 3998193267Sjkimmore readable and likely closer to the original ASL source. 3999167802Sjkim 4000167802Sjkim---------------------------------------- 4001167802Sjkim21 April 2006. Summary of changes for version 20060421: 4002167802Sjkim 4003167802Sjkim1) ACPI CA Core Subsystem: 4004167802Sjkim 4005193267SjkimRemoved a device initialization optimization introduced in 20051216 where 4006193267Sjkimthe _STA method was not run unless an _INI was also present for the same 4007193267Sjkimdevice. This optimization could cause problems because it could allow _INI 4008193267Sjkimmethods to be run within a not-present device subtree. (If a not-present 4009193267Sjkimdevice had no _INI, _STA would not be run, the not-present status would not 4010193267Sjkimbe discovered, and the children of the device would be incorrectly 4011167802Sjkimtraversed.) 4012167802Sjkim 4013193267SjkimImplemented a new _STA optimization where namespace subtrees that do not 4014193267Sjkimcontain _INI are identified and ignored during device initialization. 4015193267SjkimSelectively running _STA can significantly improve boot time on large 4016193267Sjkimmachines (with assistance from Len Brown.) 4017167802Sjkim 4018193267SjkimImplemented support for the device initialization case where the returned 4019193267Sjkim_STA flags indicate a device not-present but functioning. In this case, _INI 4020193267Sjkimis not run, but the device children are examined for presence, as per the 4021193267SjkimACPI specification. 4022167802Sjkim 4023193267SjkimImplemented an additional change to the IndexField support in order to 4024193267Sjkimconform to MS behavior. The value written to the Index Register is not 4025193267Sjkimsimply a byte offset, it is a byte offset in units of the access width of 4026193267Sjkimthe parent Index Field. (Fiodor Suietov) 4027167802Sjkim 4028193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateAddress. This 4029193267Sjkiminterface is called during the creation of all AML operation regions, and 4030193267Sjkimallows the host OS to exert control over what addresses it will allow the 4031193267SjkimAML code to access. Operation Regions whose addresses are disallowed will 4032193267Sjkimcause a runtime exception when they are actually accessed (will not affect 4033193267Sjkimor abort table loading.) See oswinxf or osunixxf for an example 4034167802Sjkimimplementation. 4035167802Sjkim 4036193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateInterface. This 4037193267Sjkiminterface allows the host OS to match the various "optional" 4038193267Sjkiminterface/behavior strings for the _OSI predefined control method as 4039193267Sjkimappropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 4040193267Sjkimfor an example implementation. 4041167802Sjkim 4042193267SjkimRestructured and corrected various problems in the exception handling code 4043193267Sjkimpaths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 4044193267Sjkim(with assistance from Takayoshi Kochi.) 4045167802Sjkim 4046193267SjkimModified the Linux source converter to ignore quoted string literals while 4047193267Sjkimconverting identifiers from mixed to lower case. This will correct problems 4048193267Sjkimwith the disassembler and other areas where such strings must not be 4049193267Sjkimmodified. 4050167802Sjkim 4051193267SjkimThe ACPI_FUNCTION_* macros no longer require quotes around the function 4052193267Sjkimname. This allows the Linux source converter to convert the names, now that 4053193267Sjkimthe converter ignores quoted strings. 4054167802Sjkim 4055193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 4056193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4057193267Sjkimdebug version of the code includes the debug output trace mechanism and has 4058193267Sjkima much larger code and data size. 4059193267Sjkim 4060167802Sjkim Previous Release: 4061167802Sjkim 4062167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4063167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4064167802Sjkim Current Release: 4065167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 4066167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 4067167802Sjkim 4068167802Sjkim 4069167802Sjkim2) iASL Compiler/Disassembler and Tools: 4070167802Sjkim 4071193267SjkimImplemented 3 new warnings for iASL, and implemented multiple warning levels 4072193267Sjkim(w2 flag). 4073167802Sjkim 4074193267Sjkim1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 4075193267SjkimWAIT_FOREVER (0xFFFF) and the code does not examine the return value to 4076193267Sjkimcheck for the possible timeout, a warning is issued. 4077167802Sjkim 4078193267Sjkim2) Useless operators: If an ASL operator does not specify an optional target 4079193267Sjkimoperand and it also does not use the function return value from the 4080193267Sjkimoperator, a warning is issued since the operator effectively does nothing. 4081167802Sjkim 4082193267Sjkim3) Unreferenced objects: If a namespace object is created, but never 4083193267Sjkimreferenced, a warning is issued. This is a warning level 2 since there are 4084193267Sjkimcases where this is ok, such as when a secondary table is loaded that uses 4085193267Sjkimthe unreferenced objects. Even so, care is taken to only flag objects that 4086193267Sjkimdon't look like they will ever be used. For example, the reserved methods 4087193267Sjkim(starting with an underscore) are usually not referenced because it is 4088193267Sjkimexpected that the OS will invoke them. 4089167802Sjkim 4090167802Sjkim---------------------------------------- 4091167802Sjkim31 March 2006. Summary of changes for version 20060331: 4092167802Sjkim 4093167802Sjkim1) ACPI CA Core Subsystem: 4094167802Sjkim 4095193267SjkimImplemented header file support for the following additional ACPI tables: 4096193267SjkimASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 4097193267Sjkimall current and known ACPI tables are now defined in the ACPICA headers and 4098193267Sjkimare available for use by device drivers and other software. 4099167802Sjkim 4100193267SjkimImplemented support to allow tables that contain ACPI names with invalid 4101193267Sjkimcharacters to be loaded. Previously, this would cause the table load to 4102193267Sjkimfail, but since there are several known cases of such tables on existing 4103193267Sjkimmachines, this change was made to enable ACPI support for them. Also, this 4104193267Sjkimmatches the behavior of the Microsoft ACPI implementation. 4105167802Sjkim 4106193267SjkimFixed a couple regressions introduced during the memory optimization in the 4107193267Sjkim20060317 release. The namespace node definition required additional 4108193267Sjkimreorganization and an internal datatype that had been changed to 8-bit was 4109193267Sjkimrestored to 32-bit. (Valery Podrezov) 4110167802Sjkim 4111193267SjkimFixed a problem where a null pointer passed to AcpiUtDeleteGenericState 4112193267Sjkimcould be passed through to AcpiOsReleaseObject which is unexpected. Such 4113193267Sjkimnull pointers are now trapped and ignored, matching the behavior of the 4114193267Sjkimprevious implementation before the deployment of AcpiOsReleaseObject. 4115167802Sjkim(Valery Podrezov, Fiodor Suietov) 4116167802Sjkim 4117193267SjkimFixed a memory mapping leak during the deletion of a SystemMemory operation 4118193267Sjkimregion where a cached memory mapping was not deleted. This became a 4119193267Sjkimnoticeable problem for operation regions that are defined within frequently 4120193267Sjkimused control methods. (Dana Meyers) 4121167802Sjkim 4122193267SjkimReorganized the ACPI table header files into two main files: one for the 4123193267SjkimACPI tables consumed by the ACPICA core, and another for the miscellaneous 4124193267SjkimACPI tables that are consumed by the drivers and other software. The various 4125193267SjkimFADT definitions were merged into one common section and three different 4126193267Sjkimtables (ACPI 1.0, 1.0+, and 2.0) 4127167802Sjkim 4128193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 4129193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4130193267Sjkimdebug version of the code includes the debug output trace mechanism and has 4131193267Sjkima much larger code and data size. 4132167802Sjkim 4133167802Sjkim Previous Release: 4134167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4135167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4136167802Sjkim Current Release: 4137167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 4138167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 4139167802Sjkim 4140167802Sjkim 4141167802Sjkim2) iASL Compiler/Disassembler and Tools: 4142167802Sjkim 4143193267SjkimDisassembler: Implemented support to decode and format all non-AML ACPI 4144193267Sjkimtables (tables other than DSDTs and SSDTs.) This includes the new tables 4145193267Sjkimadded to the ACPICA headers, therefore all current and known ACPI tables are 4146193267Sjkimsupported. 4147167802Sjkim 4148193267SjkimDisassembler: The change to allow ACPI names with invalid characters also 4149193267Sjkimenables the disassembly of such tables. Invalid characters within names are 4150193267Sjkimchanged to '*' to make the name printable; the iASL compiler will still 4151193267Sjkimgenerate an error for such names, however, since this is an invalid ACPI 4152193267Sjkimcharacter. 4153167802Sjkim 4154193267SjkimImplemented an option for AcpiXtract (-a) to extract all tables found in the 4155193267Sjkiminput file. The default invocation extracts only the DSDTs and SSDTs. 4156167802Sjkim 4157193267SjkimFixed a couple of gcc generation issues for iASL and AcpiExec and added a 4158193267Sjkimmakefile for the AcpiXtract utility. 4159167802Sjkim 4160167802Sjkim---------------------------------------- 4161167802Sjkim17 March 2006. Summary of changes for version 20060317: 4162167802Sjkim 4163167802Sjkim1) ACPI CA Core Subsystem: 4164167802Sjkim 4165193267SjkimImplemented the use of a cache object for all internal namespace nodes. 4166193267SjkimSince there are about 1000 static nodes in a typical system, this will 4167193267Sjkimdecrease memory use for cache implementations that minimize per-allocation 4168193267Sjkimoverhead (such as a slab allocator.) 4169167802Sjkim 4170193267SjkimRemoved the reference count mechanism for internal namespace nodes, since it 4171193267Sjkimwas deemed unnecessary. This reduces the size of each namespace node by 4172193267Sjkimabout 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 4173193267Sjkimand 32 bytes for the 64-bit case. 4174167802Sjkim 4175193267SjkimOptimized several internal data structures to reduce object size on 64-bit 4176193267Sjkimplatforms by packing data within the 64-bit alignment. This includes the 4177193267Sjkimfrequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 4178193267Sjkiminstances corresponding to the namespace objects. 4179167802Sjkim 4180193267SjkimAdded two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 4181193267Sjkimand "Windows 2006". 4182167802Sjkim 4183193267SjkimSplit the allocation tracking mechanism out to a separate file, from 4184193267Sjkimutalloc.c to uttrack.c. This mechanism appears to be only useful for 4185193267Sjkimapplication-level code. Kernels may wish to not include uttrack.c in 4186193267Sjkimdistributions. 4187167802Sjkim 4188193267SjkimRemoved all remnants of the obsolete ACPI_REPORT_* macros and the associated 4189193267Sjkimcode. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 4190193267Sjkimmacros.) 4191167802Sjkim 4192193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 4193193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4194193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 4195193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 4196193267Sjkimvalues will vary depending on the efficiency of the compiler and the 4197193267Sjkimcompiler options used during generation. 4198167802Sjkim 4199167802Sjkim Previous Release: 4200167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4201167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4202167802Sjkim Current Release: 4203167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 4204167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 4205167802Sjkim 4206167802Sjkim 4207167802Sjkim2) iASL Compiler/Disassembler and Tools: 4208167802Sjkim 4209193267SjkimImplemented an ANSI C version of the acpixtract utility. This version will 4210193267Sjkimautomatically extract the DSDT and all SSDTs from the input acpidump text 4211193267Sjkimfile and dump the binary output to separate files. It can also display a 4212193267Sjkimsummary of the input file including the headers for each table found and 4213193267Sjkimwill extract any single ACPI table, with any signature. (See 4214167802Sjkimsource/tools/acpixtract) 4215167802Sjkim 4216167802Sjkim---------------------------------------- 4217167802Sjkim10 March 2006. Summary of changes for version 20060310: 4218167802Sjkim 4219167802Sjkim1) ACPI CA Core Subsystem: 4220167802Sjkim 4221193267SjkimTagged all external interfaces to the subsystem with the new 4222193267SjkimACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 4223193267Sjkimkernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 4224193267Sjkimmacro. The default definition is NULL. 4225167802Sjkim 4226193267SjkimAdded the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 4227193267SjkimThis allows the host to define this as necessary to simplify kernel 4228193267Sjkimintegration. The default definition is ACPI_NATIVE_UINT. 4229167802Sjkim 4230193267SjkimFixed two interpreter problems related to error processing, the deletion of 4231193267Sjkimobjects, and placing invalid pointers onto the internal operator result 4232193267Sjkimstack. BZ 6028, 6151 (Valery Podrezov) 4233167802Sjkim 4234193267SjkimIncreased the reference count threshold where a warning is emitted for large 4235193267Sjkimreference counts in order to eliminate unnecessary warnings on systems with 4236193267Sjkimlarge namespaces (especially 64-bit.) Increased the value from 0x400 to 4237193267Sjkim0x800. 4238167802Sjkim 4239193267SjkimDue to universal disagreement as to the meaning of the 'c' in the calloc() 4240193267Sjkimfunction, the ACPI_MEM_CALLOCATE macro has been renamed to 4241193267SjkimACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 4242193267SjkimACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 4243193267SjkimACPI_FREE. 4244167802Sjkim 4245193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 4246193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4247193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 4248193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 4249193267Sjkimvalues will vary depending on the efficiency of the compiler and the 4250193267Sjkimcompiler options used during generation. 4251167802Sjkim 4252167802Sjkim Previous Release: 4253167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4254167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4255167802Sjkim Current Release: 4256167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4257167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 4258167802Sjkim 4259167802Sjkim 4260167802Sjkim2) iASL Compiler/Disassembler: 4261167802Sjkim 4262193267SjkimDisassembler: implemented support for symbolic resource descriptor 4263193267Sjkimreferences. If a CreateXxxxField operator references a fixed offset within a 4264193267Sjkimresource descriptor, a name is assigned to the descriptor and the offset is 4265193267Sjkimtranslated to the appropriate resource tag and pathname. The addition of 4266193267Sjkimthis support brings the disassembled code very close to the original ASL 4267193267Sjkimsource code and helps eliminate run-time errors when the disassembled code 4268193267Sjkimis modified (and recompiled) in such a way as to invalidate the original 4269193267Sjkimfixed offsets. 4270167802Sjkim 4271193267SjkimImplemented support for a Descriptor Name as the last parameter to the ASL 4272193267SjkimRegister() macro. This parameter was inadvertently left out of the ACPI 4273193267Sjkimspecification, and will be added for ACPI 3.0b. 4274167802Sjkim 4275193267SjkimFixed a problem where the use of the "_OSI" string (versus the full path 4276193267Sjkim"\_OSI") caused an internal compiler error. ("No back ptr to op") 4277167802Sjkim 4278193267SjkimFixed a problem with the error message that occurs when an invalid string is 4279193267Sjkimused for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 4280193267SjkimThe correct message is now displayed. 4281167802Sjkim 4282167802Sjkim---------------------------------------- 4283167802Sjkim17 February 2006. Summary of changes for version 20060217: 4284167802Sjkim 4285167802Sjkim1) ACPI CA Core Subsystem: 4286167802Sjkim 4287193267SjkimImplemented a change to the IndexField support to match the behavior of the 4288193267SjkimMicrosoft AML interpreter. The value written to the Index register is now a 4289193267Sjkimbyte offset, no longer an index based upon the width of the Data register. 4290193267SjkimThis should fix IndexField problems seen on some machines where the Data 4291193267Sjkimregister is not exactly one byte wide. The ACPI specification will be 4292193267Sjkimclarified on this point. 4293167802Sjkim 4294193267SjkimFixed a problem where several resource descriptor types could overrun the 4295193267Sjkiminternal descriptor buffer due to size miscalculation: VendorShort, 4296193267SjkimVendorLong, and Interrupt. This was noticed on IA64 machines, but could 4297193267Sjkimaffect all platforms. 4298167802Sjkim 4299193267SjkimFixed a problem where individual resource descriptors were misaligned within 4300193267Sjkimthe internal buffer, causing alignment faults on IA64 platforms. 4301167802Sjkim 4302193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 4303193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 4304193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 4305193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 4306193267Sjkimvalues will vary depending on the efficiency of the compiler and the 4307193267Sjkimcompiler options used during generation. 4308167802Sjkim 4309167802Sjkim Previous Release: 4310167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4311167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4312167802Sjkim Current Release: 4313167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 4314167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 4315167802Sjkim 4316167802Sjkim 4317167802Sjkim2) iASL Compiler/Disassembler: 4318167802Sjkim 4319193267SjkimImplemented support for new reserved names: _WDG and _WED are Microsoft 4320193267Sjkimextensions for Windows Instrumentation Management, _TDL is a new ACPI- 4321193267Sjkimdefined method (Throttling Depth Limit.) 4322167802Sjkim 4323193267SjkimFixed a problem where a zero-length VendorShort or VendorLong resource 4324193267Sjkimdescriptor was incorrectly emitted as a descriptor of length one. 4325167802Sjkim 4326167802Sjkim---------------------------------------- 4327167802Sjkim10 February 2006. Summary of changes for version 20060210: 4328167802Sjkim 4329167802Sjkim1) ACPI CA Core Subsystem: 4330167802Sjkim 4331193267SjkimRemoved a couple of extraneous ACPI_ERROR messages that appeared during 4332193267Sjkimnormal execution. These became apparent after the conversion from 4333193267SjkimACPI_DEBUG_PRINT. 4334167802Sjkim 4335193267SjkimFixed a problem where the CreateField operator could hang if the BitIndex or 4336193267SjkimNumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 4337167802Sjkim 4338193267SjkimFixed a problem where a DeRefOf operation on a buffer object incorrectly 4339193267Sjkimfailed with an exception. This also fixes a couple of related RefOf and 4340193267SjkimDeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 4341167802Sjkim 4342193267SjkimFixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 4343193267SjkimAE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 4344193267Sjkim5480) 4345167802Sjkim 4346193267SjkimImplemented a memory cleanup at the end of the execution of each iteration 4347193267Sjkimof an AML While() loop, preventing the accumulation of outstanding objects. 4348193267Sjkim(Valery Podrezov, BZ 5427) 4349167802Sjkim 4350193267SjkimEliminated a chunk of duplicate code in the object resolution code. (Valery 4351193267SjkimPodrezov, BZ 5336) 4352167802Sjkim 4353167802SjkimFixed several warnings during the 64-bit code generation. 4354167802Sjkim 4355193267SjkimThe AcpiSrc source code conversion tool now inserts one line of whitespace 4356193267Sjkimafter an if() statement that is followed immediately by a comment, improving 4357193267Sjkimreadability of the Linux code. 4358167802Sjkim 4359193267SjkimCode and Data Size: The current and previous library sizes for the core 4360193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4361193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4362193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4363193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4364193267Sjkimand data size. Note that these values will vary depending on the efficiency 4365193267Sjkimof the compiler and the compiler options used during generation. 4366167802Sjkim 4367167802Sjkim Previous Release: 4368167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4369167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4370167802Sjkim Current Release: 4371167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 4372167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 4373167802Sjkim 4374167802Sjkim 4375167802Sjkim2) iASL Compiler/Disassembler: 4376167802Sjkim 4377193267SjkimFixed a problem with the disassembly of a BankField operator with a complex 4378193267Sjkimexpression for the BankValue parameter. 4379167802Sjkim 4380167802Sjkim---------------------------------------- 4381167802Sjkim27 January 2006. Summary of changes for version 20060127: 4382167802Sjkim 4383167802Sjkim1) ACPI CA Core Subsystem: 4384167802Sjkim 4385193267SjkimImplemented support in the Resource Manager to allow unresolved namestring 4386193267Sjkimreferences within resource package objects for the _PRT method. This support 4387193267Sjkimis in addition to the previously implemented unresolved reference support 4388193267Sjkimwithin the AML parser. If the interpreter slack mode is enabled, these 4389193267Sjkimunresolved references will be passed through to the caller as a NULL package 4390167802Sjkimentry. 4391167802Sjkim 4392193267SjkimImplemented and deployed new macros and functions for error and warning 4393193267Sjkimmessages across the subsystem. These macros are simpler and generate less 4394193267Sjkimcode than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 4395193267SjkimACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 4396193267Sjkimmacros remain defined to allow ACPI drivers time to migrate to the new 4397193267Sjkimmacros. 4398167802Sjkim 4399193267SjkimImplemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 4400193267SjkimAcquire/Release Lock OSL interfaces. 4401167802Sjkim 4402193267SjkimFixed a problem where Alias ASL operators are sometimes not correctly 4403193267Sjkimresolved, in both the interpreter and the iASL compiler. 4404167802Sjkim 4405193267SjkimFixed several problems with the implementation of the ConcatenateResTemplate 4406193267SjkimASL operator. As per the ACPI specification, zero length buffers are now 4407193267Sjkimtreated as a single EndTag. One-length buffers always cause a fatal 4408193267Sjkimexception. Non-zero length buffers that do not end with a full 2-byte EndTag 4409167802Sjkimcause a fatal exception. 4410167802Sjkim 4411193267SjkimFixed a possible structure overwrite in the AcpiGetObjectInfo external 4412193267Sjkiminterface. (With assistance from Thomas Renninger) 4413167802Sjkim 4414193267SjkimCode and Data Size: The current and previous library sizes for the core 4415193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4416193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4417193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4418193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4419193267Sjkimand data size. Note that these values will vary depending on the efficiency 4420193267Sjkimof the compiler and the compiler options used during generation. 4421167802Sjkim 4422167802Sjkim Previous Release: 4423167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4424167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4425167802Sjkim Current Release: 4426167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 4427167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 4428167802Sjkim 4429167802Sjkim 4430167802Sjkim2) iASL Compiler/Disassembler: 4431167802Sjkim 4432193267SjkimFixed an internal error that was generated for any forward references to ASL 4433193267SjkimAlias objects. 4434167802Sjkim 4435167802Sjkim---------------------------------------- 4436167802Sjkim13 January 2006. Summary of changes for version 20060113: 4437167802Sjkim 4438167802Sjkim1) ACPI CA Core Subsystem: 4439167802Sjkim 4440193267SjkimAdded 2006 copyright to all module headers and signons. This affects 4441193267Sjkimvirtually every file in the ACPICA core subsystem, iASL compiler, and the 4442193267Sjkimutilities. 4443193267Sjkim 4444193267SjkimEnhanced the ACPICA error reporting in order to simplify user migration to 4445193267Sjkimthe non-debug version of ACPICA. Replaced all instances of the 4446193267SjkimACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 4447193267Sjkimlevels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 4448193267Sjkimrespectively. This preserves all error and warning messages in the non-debug 4449193267Sjkimversion of the ACPICA code (this has been referred to as the "debug lite" 4450193267Sjkimoption.) Over 200 cases were converted to create a total of over 380 4451193267Sjkimerror/warning messages across the ACPICA code. This increases the code and 4452193267Sjkimdata size of the default non-debug version of the code somewhat (about 13K), 4453193267Sjkimbut all error/warning reporting may be disabled if desired (and code 4454193267Sjkimeliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 4455193267Sjkimconfiguration option. The size of the debug version of ACPICA remains about 4456193267Sjkimthe same. 4457167802Sjkim 4458193267SjkimFixed a memory leak within the AML Debugger "Set" command. One object was 4459193267Sjkimnot properly deleted for every successful invocation of the command. 4460167802Sjkim 4461193267SjkimCode and Data Size: The current and previous library sizes for the core 4462193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4463193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4464193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4465193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4466193267Sjkimand data size. Note that these values will vary depending on the efficiency 4467193267Sjkimof the compiler and the compiler options used during generation. 4468167802Sjkim 4469167802Sjkim Previous Release: 4470167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4471167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4472167802Sjkim Current Release: 4473167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 4474167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 4475167802Sjkim 4476167802Sjkim 4477167802Sjkim2) iASL Compiler/Disassembler: 4478167802Sjkim 4479193267SjkimThe compiler now officially supports the ACPI 3.0a specification that was 4480193267Sjkimreleased on December 30, 2005. (Specification is available at www.acpi.info) 4481167802Sjkim 4482167802Sjkim---------------------------------------- 4483167802Sjkim16 December 2005. Summary of changes for version 20051216: 4484167802Sjkim 4485167802Sjkim1) ACPI CA Core Subsystem: 4486167802Sjkim 4487193267SjkimImplemented optional support to allow unresolved names within ASL Package 4488193267Sjkimobjects. A null object is inserted in the package when a named reference 4489193267Sjkimcannot be located in the current namespace. Enabled via the interpreter 4490193267Sjkimslack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 4491193267Sjkimthat contain such code. 4492167802Sjkim 4493193267SjkimImplemented an optimization to the initialization sequence that can improve 4494193267Sjkimboot time. During ACPI device initialization, the _STA method is now run if 4495193267Sjkimand only if the _INI method exists. The _STA method is used to determine if 4496193267Sjkimthe device is present; An _INI can only be run if _STA returns present, but 4497193267Sjkimit is a waste of time to run the _STA method if the _INI does not exist. 4498167802Sjkim(Prototype and assistance from Dong Wei) 4499167802Sjkim 4500193267SjkimImplemented use of the C99 uintptr_t for the pointer casting macros if it is 4501193267Sjkimavailable in the current compiler. Otherwise, the default (void *) cast is 4502193267Sjkimused as before. 4503167802Sjkim 4504193267SjkimFixed some possible memory leaks found within the execution path of the 4505193267SjkimBreak, Continue, If, and CreateField operators. (Valery Podrezov) 4506167802Sjkim 4507193267SjkimFixed a problem introduced in the 20051202 release where an exception is 4508193267Sjkimgenerated during method execution if a control method attempts to declare 4509193267Sjkimanother method. 4510167802Sjkim 4511193267SjkimMoved resource descriptor string constants that are used by both the AML 4512193267Sjkimdisassembler and AML debugger to the common utilities directory so that 4513193267Sjkimthese components are independent. 4514167802Sjkim 4515193267SjkimImplemented support in the AcpiExec utility (-e switch) to globally ignore 4516193267Sjkimexceptions during control method execution (method is not aborted.) 4517167802Sjkim 4518193267SjkimAdded the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 4519193267Sjkimgeneration. 4520167802Sjkim 4521193267SjkimCode and Data Size: The current and previous library sizes for the core 4522193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4523193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4524193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4525193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4526193267Sjkimand data size. Note that these values will vary depending on the efficiency 4527193267Sjkimof the compiler and the compiler options used during generation. 4528167802Sjkim 4529167802Sjkim Previous Release: 4530167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4531167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4532167802Sjkim Current Release: 4533167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 4534167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 4535167802Sjkim 4536167802Sjkim 4537167802Sjkim2) iASL Compiler/Disassembler: 4538167802Sjkim 4539193267SjkimFixed a problem where a CPU stack overflow fault could occur if a recursive 4540193267Sjkimmethod call was made from within a Return statement. 4541167802Sjkim 4542167802Sjkim---------------------------------------- 4543167802Sjkim02 December 2005. Summary of changes for version 20051202: 4544167802Sjkim 4545167802Sjkim1) ACPI CA Core Subsystem: 4546167802Sjkim 4547193267SjkimModified the parsing of control methods to no longer create namespace 4548193267Sjkimobjects during the first pass of the parse. Objects are now created only 4549193267Sjkimduring the execute phase, at the moment the namespace creation operator is 4550193267Sjkimencountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 4551193267Sjkimshould eliminate ALREADY_EXISTS exceptions seen on some machines where 4552193267Sjkimreentrant control methods are protected by an AML mutex. The mutex will now 4553193267Sjkimcorrectly block multiple threads from attempting to create the same object 4554193267Sjkimmore than once. 4555167802Sjkim 4556193267SjkimIncreased the number of available Owner Ids for namespace object tracking 4557193267Sjkimfrom 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 4558193267Sjkimsome machines with a large number of ACPI tables (either static or dynamic). 4559167802Sjkim 4560193267SjkimFixed a problem with the AcpiExec utility where a fault could occur when the 4561193267Sjkim-b switch (batch mode) is used. 4562167802Sjkim 4563193267SjkimEnhanced the namespace dump routine to output the owner ID for each 4564193267Sjkimnamespace object. 4565167802Sjkim 4566193267SjkimCode and Data Size: The current and previous library sizes for the core 4567193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4568193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4569193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4570193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4571193267Sjkimand data size. Note that these values will vary depending on the efficiency 4572193267Sjkimof the compiler and the compiler options used during generation. 4573167802Sjkim 4574167802Sjkim Previous Release: 4575167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4576167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4577167802Sjkim Current Release: 4578167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4579167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 4580167802Sjkim 4581167802Sjkim 4582167802Sjkim2) iASL Compiler/Disassembler: 4583167802Sjkim 4584193267SjkimFixed a parse error during compilation of certain Switch/Case constructs. To 4585193267Sjkimsimplify the parse, the grammar now allows for multiple Default statements 4586193267Sjkimand this error is now detected and flagged during the analysis phase. 4587167802Sjkim 4588193267SjkimDisassembler: The disassembly now includes the contents of the original 4589193267Sjkimtable header within a comment at the start of the file. This includes the 4590193267Sjkimname and version of the original ASL compiler. 4591167802Sjkim 4592167802Sjkim---------------------------------------- 4593167802Sjkim17 November 2005. Summary of changes for version 20051117: 4594167802Sjkim 4595167802Sjkim1) ACPI CA Core Subsystem: 4596167802Sjkim 4597193267SjkimFixed a problem in the AML parser where the method thread count could be 4598193267Sjkimdecremented below zero if any errors occurred during the method parse phase. 4599193267SjkimThis should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 4600193267SjkimThis also fixed a related regression with the mechanism that detects and 4601193267Sjkimcorrects methods that cannot properly handle reentrancy (related to the 4602193267Sjkimdeployment of the new OwnerId mechanism.) 4603167802Sjkim 4604193267SjkimEliminated the pre-parsing of control methods (to detect errors) during 4605193267Sjkimtable load. Related to the problem above, this was causing unwind issues if 4606193267Sjkimany errors occurred during the parse, and it seemed to be overkill. A table 4607193267Sjkimload should not be aborted if there are problems with any single control 4608193267Sjkimmethod, thus rendering this feature rather pointless. 4609167802Sjkim 4610193267SjkimFixed a problem with the new table-driven resource manager where an internal 4611193267Sjkimbuffer overflow could occur for small resource templates. 4612167802Sjkim 4613193267SjkimImplemented a new external interface, AcpiGetVendorResource. This interface 4614193267Sjkimwill find and return a vendor-defined resource descriptor within a _CRS or 4615193267Sjkim_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 4616167802Sjkim 4617193267SjkimRemoved the length limit (200) on string objects as per the upcoming ACPI 4618193267Sjkim3.0A specification. This affects the following areas of the interpreter: 1) 4619193267Sjkimany implicit conversion of a Buffer to a String, 2) a String object result 4620193267Sjkimof the ASL Concatentate operator, 3) the String object result of the ASL 4621193267SjkimToString operator. 4622167802Sjkim 4623193267SjkimFixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 4624193267Sjkimon a semaphore object would incorrectly timeout. This allows the 4625193267Sjkimmultithreading features of the AcpiExec utility to work properly under 4626193267SjkimWindows. 4627167802Sjkim 4628193267SjkimUpdated the Linux makefiles for the iASL compiler and AcpiExec to include 4629193267Sjkimthe recently added file named "utresrc.c". 4630167802Sjkim 4631193267SjkimCode and Data Size: The current and previous library sizes for the core 4632193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4633193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4634193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4635193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4636193267Sjkimand data size. Note that these values will vary depending on the efficiency 4637193267Sjkimof the compiler and the compiler options used during generation. 4638167802Sjkim 4639167802Sjkim Previous Release: 4640167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 4641167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4642167802Sjkim Current Release: 4643167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 4644167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4645167802Sjkim 4646167802Sjkim 4647167802Sjkim2) iASL Compiler/Disassembler: 4648167802Sjkim 4649193267SjkimRemoved the limit (200) on string objects as per the upcoming ACPI 3.0A 4650193267Sjkimspecification. For the iASL compiler, this means that string literals within 4651193267Sjkimthe source ASL can be of any length. 4652167802Sjkim 4653193267SjkimEnhanced the listing output to dump the AML code for resource descriptors 4654193267Sjkimimmediately after the ASL code for each descriptor, instead of in a block at 4655193267Sjkimthe end of the entire resource template. 4656167802Sjkim 4657193267SjkimEnhanced the compiler debug output to dump the entire original parse tree 4658193267Sjkimconstructed during the parse phase, before any transforms are applied to the 4659193267Sjkimtree. The transformed tree is dumped also. 4660167802Sjkim 4661167802Sjkim---------------------------------------- 4662167802Sjkim02 November 2005. Summary of changes for version 20051102: 4663167802Sjkim 4664167802Sjkim1) ACPI CA Core Subsystem: 4665167802Sjkim 4666193267SjkimModified the subsystem initialization sequence to improve GPE support. The 4667193267SjkimGPE initialization has been split into two parts in order to defer execution 4668193267Sjkimof the _PRW methods (Power Resources for Wake) until after the hardware is 4669193267Sjkimfully initialized and the SCI handler is installed. This allows the _PRW 4670193267Sjkimmethods to access fields protected by the Global Lock. This will fix systems 4671193267Sjkimwhere a NO_GLOBAL_LOCK exception has been seen during initialization. 4672167802Sjkim 4673193267SjkimConverted the ACPI internal object disassemble and display code within the 4674193267SjkimAML debugger to fully table-driven operation, reducing code size and 4675193267Sjkimincreasing maintainability. 4676167802Sjkim 4677193267SjkimFixed a regression with the ConcatenateResTemplate() ASL operator introduced 4678193267Sjkimin the 20051021 release. 4679167802Sjkim 4680193267SjkimImplemented support for "local" internal ACPI object types within the 4681193267Sjkimdebugger "Object" command and the AcpiWalkNamespace external interfaces. 4682193267SjkimThese local types include RegionFields, BankFields, IndexFields, Alias, and 4683193267Sjkimreference objects. 4684167802Sjkim 4685193267SjkimMoved common AML resource handling code into a new file, "utresrc.c". This 4686193267Sjkimcode is shared by both the Resource Manager and the AML Debugger. 4687167802Sjkim 4688193267SjkimCode and Data Size: The current and previous library sizes for the core 4689193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4690193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4691193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4692193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4693193267Sjkimand data size. Note that these values will vary depending on the efficiency 4694193267Sjkimof the compiler and the compiler options used during generation. 4695167802Sjkim 4696167802Sjkim Previous Release: 4697167802Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 4698167802Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 4699167802Sjkim Current Release: 4700167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 4701167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 4702167802Sjkim 4703167802Sjkim 4704167802Sjkim2) iASL Compiler/Disassembler: 4705167802Sjkim 4706193267SjkimFixed a problem with very large initializer lists (more than 4000 elements) 4707193267Sjkimfor both Buffer and Package objects where the parse stack could overflow. 4708167802Sjkim 4709193267SjkimEnhanced the pre-compile source code scan for non-ASCII characters to ignore 4710193267Sjkimcharacters within comment fields. The scan is now always performed and is no 4711193267Sjkimlonger optional, detecting invalid characters within a source file 4712193267Sjkimimmediately rather than during the parse phase or later. 4713167802Sjkim 4714193267SjkimEnhanced the ASL grammar definition to force early reductions on all list- 4715193267Sjkimstyle grammar elements so that the overall parse stack usage is greatly 4716193267Sjkimreduced. This should improve performance and reduce the possibility of parse 4717193267Sjkimstack overflow. 4718167802Sjkim 4719193267SjkimEliminated all reduce/reduce conflicts in the iASL parser generation. Also, 4720193267Sjkimwith the addition of a %expected statement, the compiler generates from 4721193267Sjkimsource with no warnings. 4722167802Sjkim 4723193267SjkimFixed a possible segment fault in the disassembler if the input filename 4724193267Sjkimdoes not contain a "dot" extension (Thomas Renninger). 4725167802Sjkim 4726167802Sjkim---------------------------------------- 4727151937Sjkim21 October 2005. Summary of changes for version 20051021: 4728151937Sjkim 4729151937Sjkim1) ACPI CA Core Subsystem: 4730151937Sjkim 4731193267SjkimImplemented support for the EM64T and other x86-64 processors. This 4732193267Sjkimessentially entails recognizing that these processors support non-aligned 4733193267Sjkimmemory transfers. Previously, all 64-bit processors were assumed to lack 4734193267Sjkimhardware support for non-aligned transfers. 4735151937Sjkim 4736193267SjkimCompleted conversion of the Resource Manager to nearly full table-driven 4737193267Sjkimoperation. Specifically, the resource conversion code (convert AML to 4738193267Sjkiminternal format and the reverse) and the debug code to dump internal 4739193267Sjkimresource descriptors are fully table-driven, reducing code and data size and 4740193267Sjkimimproving maintainability. 4741151937Sjkim 4742193267SjkimThe OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 4743193267Sjkimon 64-bit processors instead of a fixed 32-bit word. (With assistance from 4744193267SjkimAlexey Starikovskiy) 4745151937Sjkim 4746193267SjkimImplemented support within the resource conversion code for the Type- 4747193267SjkimSpecific byte within the various ACPI 3.0 *WordSpace macros. 4748151937Sjkim 4749193267SjkimFixed some issues within the resource conversion code for the type-specific 4750193267Sjkimflags for both Memory and I/O address resource descriptors. For Memory, 4751193267Sjkimimplemented support for the MTP and TTP flags. For I/O, split the TRS and 4752193267SjkimTTP flags into two separate fields. 4753151937Sjkim 4754193267SjkimCode and Data Size: The current and previous library sizes for the core 4755193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4756193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4757193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4758193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4759193267Sjkimand data size. Note that these values will vary depending on the efficiency 4760193267Sjkimof the compiler and the compiler options used during generation. 4761151937Sjkim 4762151937Sjkim Previous Release: 4763151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 4764151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 4765151937Sjkim Current Release: 4766151937Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 4767151937Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 4768151937Sjkim 4769151937Sjkim 4770167802Sjkim 4771151937Sjkim2) iASL Compiler/Disassembler: 4772151937Sjkim 4773193267SjkimRelaxed a compiler restriction that disallowed a ResourceIndex byte if the 4774193267Sjkimcorresponding ResourceSource string was not also present in a resource 4775193267Sjkimdescriptor declaration. This restriction caused problems with existing 4776193267SjkimAML/ASL code that includes the Index byte without the string. When such AML 4777193267Sjkimwas disassembled, it could not be compiled without modification. Further, 4778193267Sjkimthe modified code created a resource template with a different size than the 4779193267Sjkimoriginal, breaking code that used fixed offsets into the resource template 4780193267Sjkimbuffer. 4781151937Sjkim 4782193267SjkimRemoved a recent feature of the disassembler to ignore a lone ResourceIndex 4783193267Sjkimbyte. This byte is now emitted if present so that the exact AML can be 4784193267Sjkimreproduced when the disassembled code is recompiled. 4785151937Sjkim 4786193267SjkimImproved comments and text alignment for the resource descriptor code 4787193267Sjkimemitted by the disassembler. 4788151937Sjkim 4789193267SjkimImplemented disassembler support for the ACPI 3.0 AccessSize field within a 4790193267SjkimRegister() resource descriptor. 4791151937Sjkim 4792151937Sjkim---------------------------------------- 4793151937Sjkim30 September 2005. Summary of changes for version 20050930: 4794151937Sjkim 4795151937Sjkim1) ACPI CA Core Subsystem: 4796151937Sjkim 4797193267SjkimCompleted a major overhaul of the Resource Manager code - specifically, 4798193267Sjkimoptimizations in the area of the AML/internal resource conversion code. The 4799193267Sjkimcode has been optimized to simplify and eliminate duplicated code, CPU stack 4800193267Sjkimuse has been decreased by optimizing function parameters and local 4801193267Sjkimvariables, and naming conventions across the manager have been standardized 4802193267Sjkimfor clarity and ease of maintenance (this includes function, parameter, 4803193267Sjkimvariable, and struct/typedef names.) The update may force changes in some 4804193267Sjkimdriver code, depending on how resources are handled by the host OS. 4805151937Sjkim 4806193267SjkimAll Resource Manager dispatch and information tables have been moved to a 4807193267Sjkimsingle location for clarity and ease of maintenance. One new file was 4808193267Sjkimcreated, named "rsinfo.c". 4809151937Sjkim 4810193267SjkimThe ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 4811193267Sjkimguarantee that the argument is not evaluated twice, making them less prone 4812193267Sjkimto macro side-effects. However, since there exists the possibility of 4813193267Sjkimadditional stack use if a particular compiler cannot optimize them (such as 4814193267Sjkimin the debug generation case), the original macros are optionally available. 4815193267SjkimNote that some invocations of the return_VALUE macro may now cause size 4816193267Sjkimmismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 4817193267Sjkimeliminate these. (From Randy Dunlap) 4818151937Sjkim 4819193267SjkimImplemented a new mechanism to enable debug tracing for individual control 4820193267Sjkimmethods. A new external interface, AcpiDebugTrace, is provided to enable 4821193267Sjkimthis mechanism. The intent is to allow the host OS to easily enable and 4822193267Sjkimdisable tracing for problematic control methods. This interface can be 4823193267Sjkimeasily exposed to a user or debugger interface if desired. See the file 4824151937Sjkimpsxface.c for details. 4825151937Sjkim 4826193267SjkimAcpiUtCallocate will now return a valid pointer if a length of zero is 4827193267Sjkimspecified - a length of one is used and a warning is issued. This matches 4828193267Sjkimthe behavior of AcpiUtAllocate. 4829151937Sjkim 4830193267SjkimCode and Data Size: The current and previous library sizes for the core 4831193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4832193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4833193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4834193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4835193267Sjkimand data size. Note that these values will vary depending on the efficiency 4836193267Sjkimof the compiler and the compiler options used during generation. 4837151937Sjkim 4838151937Sjkim Previous Release: 4839151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 4840151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 4841151937Sjkim Current Release: 4842151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 4843151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 4844151937Sjkim 4845151937Sjkim 4846151937Sjkim2) iASL Compiler/Disassembler: 4847151937Sjkim 4848193267SjkimA remark is issued if the effective compile-time length of a package or 4849193267Sjkimbuffer is zero. Previously, this was a warning. 4850151937Sjkim 4851151937Sjkim---------------------------------------- 4852151937Sjkim16 September 2005. Summary of changes for version 20050916: 4853151937Sjkim 4854151937Sjkim1) ACPI CA Core Subsystem: 4855151937Sjkim 4856193267SjkimFixed a problem within the Resource Manager where support for the Generic 4857193267SjkimRegister descriptor was not fully implemented. This descriptor is now fully 4858193267Sjkimrecognized, parsed, disassembled, and displayed. 4859151937Sjkim 4860193267SjkimCompletely restructured the Resource Manager code to utilize table-driven 4861193267Sjkimdispatch and lookup, eliminating many of the large switch() statements. This 4862193267Sjkimreduces overall subsystem code size and code complexity. Affects the 4863193267Sjkimresource parsing and construction, disassembly, and debug dump output. 4864151937Sjkim 4865193267SjkimCleaned up and restructured the debug dump output for all resource 4866193267Sjkimdescriptors. Improved readability of the output and reduced code size. 4867151937Sjkim 4868193267SjkimFixed a problem where changes to internal data structures caused the 4869193267Sjkimoptional ACPI_MUTEX_DEBUG code to fail compilation if specified. 4870151937Sjkim 4871193267SjkimCode and Data Size: The current and previous library sizes for the core 4872193267Sjkimsubsystem are shown below. These are the code and data sizes for the 4873193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 4874193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 4875193267Sjkimcode includes the debug output trace mechanism and has a much larger code 4876193267Sjkimand data size. Note that these values will vary depending on the efficiency 4877193267Sjkimof the compiler and the compiler options used during generation. 4878151937Sjkim 4879151937Sjkim Previous Release: 4880151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 4881151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 4882151937Sjkim Current Release: 4883151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 4884151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 4885151937Sjkim 4886151937Sjkim 4887151937Sjkim2) iASL Compiler/Disassembler: 4888151937Sjkim 4889193267SjkimUpdated the disassembler to automatically insert an EndDependentFn() macro 4890193267Sjkiminto the ASL stream if this macro is missing in the original AML code, 4891193267Sjkimsimplifying compilation of the resulting ASL module. 4892151937Sjkim 4893193267SjkimFixed a problem in the disassembler where a disassembled ResourceSource 4894193267Sjkimstring (within a large resource descriptor) was not surrounded by quotes and 4895193267Sjkimnot followed by a comma, causing errors when the resulting ASL module was 4896193267Sjkimcompiled. Also, escape sequences within a ResourceSource string are now 4897193267Sjkimhandled correctly (especially "\\") 4898151937Sjkim 4899151937Sjkim---------------------------------------- 4900151937Sjkim02 September 2005. Summary of changes for version 20050902: 4901151937Sjkim 4902151937Sjkim1) ACPI CA Core Subsystem: 4903151937Sjkim 4904193267SjkimFixed a problem with the internal Owner ID allocation and deallocation 4905193267Sjkimmechanisms for control method execution and recursive method invocation. 4906193267SjkimThis should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 4907193267Sjkimmessages seen on some systems. Recursive method invocation depth is 4908193267Sjkimcurrently limited to 255. (Alexey Starikovskiy) 4909151937Sjkim 4910193267SjkimCompletely eliminated all vestiges of support for the "module-level 4911193267Sjkimexecutable code" until this support is fully implemented and debugged. This 4912193267Sjkimshould eliminate the NO_RETURN_VALUE exceptions seen during table load on 4913193267Sjkimsome systems that invoke this support. 4914151937Sjkim 4915193267SjkimFixed a problem within the resource manager code where the transaction flags 4916193267Sjkimfor a 64-bit address descriptor were handled incorrectly in the type- 4917193267Sjkimspecific flag byte. 4918151937Sjkim 4919193267SjkimConsolidated duplicate code within the address descriptor resource manager 4920193267Sjkimcode, reducing overall subsystem code size. 4921151937Sjkim 4922193267SjkimFixed a fault when using the AML debugger "disassemble" command to 4923193267Sjkimdisassemble individual control methods. 4924151937Sjkim 4925193267SjkimRemoved references to the "release_current" directory within the Unix 4926193267Sjkimrelease package. 4927151937Sjkim 4928193267SjkimCode and Data Size: The current and previous core subsystem library sizes 4929193267Sjkimare shown below. These are the code and data sizes for the acpica.lib 4930193267Sjkimproduced by the Microsoft Visual C++ 6.0 compiler. These values do not 4931193267Sjkiminclude any ACPI driver or OSPM code. The debug version of the code includes 4932193267Sjkimthe debug output trace mechanism and has a much larger code and data size. 4933193267SjkimNote that these values will vary depending on the efficiency of the compiler 4934193267Sjkimand the compiler options used during generation. 4935151937Sjkim 4936151937Sjkim Previous Release: 4937151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4938151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 4939151937Sjkim Current Release: 4940151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 4941151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 4942151937Sjkim 4943151937Sjkim 4944151937Sjkim2) iASL Compiler/Disassembler: 4945151937Sjkim 4946193267SjkimImplemented an error check for illegal duplicate values in the interrupt and 4947193267Sjkimdma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 4948193267SjkimInterrupt(). 4949151937Sjkim 4950193267SjkimImplemented error checking for the Irq() and IrqNoFlags() macros to detect 4951193267Sjkimtoo many values in the interrupt list (16 max) and invalid values in the 4952193267Sjkimlist (range 0 - 15) 4953151937Sjkim 4954193267SjkimThe maximum length string literal within an ASL file is now restricted to 4955193267Sjkim200 characters as per the ACPI specification. 4956151937Sjkim 4957193267SjkimFixed a fault when using the -ln option (generate namespace listing). 4958151937Sjkim 4959193267SjkimImplemented an error check to determine if a DescriptorName within a 4960193267Sjkimresource descriptor has already been used within the current scope. 4961151937Sjkim 4962151937Sjkim---------------------------------------- 4963151937Sjkim15 August 2005. Summary of changes for version 20050815: 4964193267Sjkim 4965151937Sjkim1) ACPI CA Core Subsystem: 4966193267Sjkim 4967193267SjkimImplemented a full bytewise compare to determine if a table load request is 4968193267Sjkimattempting to load a duplicate table. The compare is performed if the table 4969193267Sjkimsignatures and table lengths match. This will allow different tables with 4970193267Sjkimthe same OEM Table ID and revision to be loaded - probably against the ACPI 4971193267Sjkimspecification, but discovered in the field nonetheless. 4972193267Sjkim 4973193267SjkimAdded the changes.txt logfile to each of the zipped release packages. 4974193267Sjkim 4975193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4976193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4977193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4978193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4979193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4980193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4981193267Sjkimthe compiler options used during generation. 4982193267Sjkim 4983151937Sjkim Previous Release: 4984151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4985151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 4986151937Sjkim Current Release: 4987151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 4988151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 4989193267Sjkim 4990193267Sjkim 4991151937Sjkim2) iASL Compiler/Disassembler: 4992193267Sjkim 4993193267SjkimFixed a problem where incorrect AML code could be generated for Package 4994193267Sjkimobjects if optimization is disabled (via the -oa switch). 4995193267Sjkim 4996193267SjkimFixed a problem with where incorrect AML code is generated for variable- 4997193267Sjkimlength packages when the package length is not specified and the number of 4998193267Sjkiminitializer values is greater than 255. 4999193267Sjkim 5000151937Sjkim 5001151937Sjkim---------------------------------------- 5002151937Sjkim29 July 2005. Summary of changes for version 20050729: 5003151937Sjkim 5004151937Sjkim1) ACPI CA Core Subsystem: 5005151937Sjkim 5006193267SjkimImplemented support to ignore an attempt to install/load a particular ACPI 5007193267Sjkimtable more than once. Apparently there exists BIOS code that repeatedly 5008193267Sjkimattempts to load the same SSDT upon certain events. With assistance from 5009193267SjkimVenkatesh Pallipadi. 5010151937Sjkim 5011193267SjkimRestructured the main interface to the AML parser in order to correctly 5012193267Sjkimhandle all exceptional conditions. This will prevent leakage of the OwnerId 5013193267Sjkimresource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 5014193267Sjkimmachines. With assistance from Alexey Starikovskiy. 5015151937Sjkim 5016193267SjkimSupport for "module level code" has been disabled in this version due to a 5017193267Sjkimnumber of issues that have appeared on various machines. The support can be 5018193267Sjkimenabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 5019193267Sjkimcompilation. When the issues are fully resolved, the code will be enabled by 5020151937Sjkimdefault again. 5021151937Sjkim 5022193267SjkimModified the internal functions for debug print support to define the 5023193267SjkimFunctionName parameter as a (const char *) for compatibility with compiler 5024193267Sjkimbuilt-in macros such as __FUNCTION__, etc. 5025151937Sjkim 5026151937SjkimLinted the entire ACPICA source tree for both 32-bit and 64-bit. 5027151937Sjkim 5028193267SjkimImplemented support to display an object count summary for the AML Debugger 5029193267Sjkimcommands Object and Methods. 5030151937Sjkim 5031193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5032193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5033193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5034193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5035193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5036193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5037193267Sjkimthe compiler options used during generation. 5038151937Sjkim 5039151937Sjkim Previous Release: 5040151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5041151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5042151937Sjkim Current Release: 5043151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 5044151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 5045151937Sjkim 5046151937Sjkim 5047151937Sjkim2) iASL Compiler/Disassembler: 5048151937Sjkim 5049193267SjkimFixed a regression that appeared in the 20050708 version of the compiler 5050193267Sjkimwhere an error message was inadvertently emitted for invocations of the _OSI 5051193267Sjkimreserved control method. 5052151937Sjkim 5053151937Sjkim---------------------------------------- 5054151937Sjkim08 July 2005. Summary of changes for version 20050708: 5055151937Sjkim 5056151937Sjkim1) ACPI CA Core Subsystem: 5057151937Sjkim 5058193267SjkimThe use of the CPU stack in the debug version of the subsystem has been 5059193267Sjkimconsiderably reduced. Previously, a debug structure was declared in every 5060193267Sjkimfunction that used the debug macros. This structure has been removed in 5061193267Sjkimfavor of declaring the individual elements as parameters to the debug 5062193267Sjkimfunctions. This reduces the cumulative stack use during nested execution of 5063193267SjkimACPI function calls at the cost of a small increase in the code size of the 5064193267Sjkimdebug version of the subsystem. With assistance from Alexey Starikovskiy and 5065193267SjkimLen Brown. 5066151937Sjkim 5067193267SjkimAdded the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 5068193267Sjkimheaders to define a macro that will return the current function name at 5069193267Sjkimruntime (such as __FUNCTION__ or _func_, etc.) The function name is used by 5070193267Sjkimthe debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 5071193267Sjkimcompiler-dependent header, the function name is saved on the CPU stack (one 5072193267Sjkimpointer per function.) This mechanism is used because apparently there 5073193267Sjkimexists no standard ANSI-C defined macro that that returns the function name. 5074151937Sjkim 5075193267SjkimRedesigned and reimplemented the "Owner ID" mechanism used to track 5076193267Sjkimnamespace objects created/deleted by ACPI tables and control method 5077193267Sjkimexecution. A bitmap is now used to allocate and free the IDs, thus solving 5078193267Sjkimthe wraparound problem present in the previous implementation. The size of 5079193267Sjkimthe namespace node descriptor was reduced by 2 bytes as a result (Alexey 5080151937SjkimStarikovskiy). 5081151937Sjkim 5082193267SjkimRemoved the UINT32_BIT and UINT16_BIT types that were used for the bitfield 5083193267Sjkimflag definitions within the headers for the predefined ACPI tables. These 5084193267Sjkimhave been replaced by UINT8_BIT in order to increase the code portability of 5085193267Sjkimthe subsystem. If the use of UINT8 remains a problem, we may be forced to 5086193267Sjkimeliminate bitfields entirely because of a lack of portability. 5087151937Sjkim 5088193267SjkimEnhanced the performance of the AcpiUtUpdateObjectReference procedure. This 5089193267Sjkimis a frequently used function and this improvement increases the performance 5090193267Sjkimof the entire subsystem (Alexey Starikovskiy). 5091151937Sjkim 5092193267SjkimFixed several possible memory leaks and the inverse - premature object 5093193267Sjkimdeletion (Alexey Starikovskiy). 5094151937Sjkim 5095193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5096193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5097193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5098193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5099193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5100193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5101193267Sjkimthe compiler options used during generation. 5102151937Sjkim 5103151937Sjkim Previous Release: 5104151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5105151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5106151937Sjkim Current Release: 5107151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 5108151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 5109151937Sjkim 5110151937Sjkim---------------------------------------- 5111151937Sjkim24 June 2005. Summary of changes for version 20050624: 5112151937Sjkim 5113151937Sjkim1) ACPI CA Core Subsystem: 5114151937Sjkim 5115193267SjkimModified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 5116193267Sjkimthe host-defined cache object. This allows the OSL implementation to define 5117193267Sjkimand type this object in any manner desired, simplifying the OSL 5118193267Sjkimimplementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 5119193267SjkimLinux, and should be defined in the OS-specific header file for other 5120193267Sjkimoperating systems as required. 5121151937Sjkim 5122193267SjkimChanged the interface to AcpiOsAcquireObject to directly return the 5123193267Sjkimrequested object as the function return (instead of ACPI_STATUS.) This 5124193267Sjkimchange was made for performance reasons, since this is the purpose of the 5125193267Sjkiminterface in the first place. AcpiOsAcquireObject is now similar to the 5126193267SjkimAcpiOsAllocate interface. 5127151937Sjkim 5128193267SjkimImplemented a new AML debugger command named Businfo. This command displays 5129193267Sjkiminformation about all devices that have an associate _PRT object. The _ADR, 5130193267Sjkim_HID, _UID, and _CID are displayed for these devices. 5131151937Sjkim 5132193267SjkimModified the initialization sequence in AcpiInitializeSubsystem to call the 5133193267SjkimOSL interface AcpiOslInitialize first, before any local initialization. This 5134193267Sjkimchange was required because the global initialization now calls OSL 5135193267Sjkiminterfaces. 5136151937Sjkim 5137193267SjkimEnhanced the Dump command to display the entire contents of Package objects 5138193267Sjkim(including all sub-objects and their values.) 5139151937Sjkim 5140193267SjkimRestructured the code base to split some files because of size and/or 5141193267Sjkimbecause the code logically belonged in a separate file. New files are listed 5142193267Sjkimbelow. All makefiles and project files included in the ACPI CA release have 5143193267Sjkimbeen updated. 5144151937Sjkim utilities/utcache.c /* Local cache interfaces */ 5145151937Sjkim utilities/utmutex.c /* Local mutex support */ 5146151937Sjkim utilities/utstate.c /* State object support */ 5147151937Sjkim interpreter/parser/psloop.c /* Main AML parse loop */ 5148151937Sjkim 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. 5156151937Sjkim 5157151937Sjkim Previous Release: 5158151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5159151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5160151937Sjkim Current Release: 5161151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 5162151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 5163151937Sjkim 5164151937Sjkim 5165151937Sjkim2) iASL Compiler/Disassembler: 5166151937Sjkim 5167193267SjkimFixed a regression introduced in version 20050513 where the use of a Package 5168193267Sjkimobject within a Case() statement caused a compile time exception. The 5169193267Sjkimoriginal behavior has been restored (a Match() operator is emitted.) 5170151937Sjkim 5171151937Sjkim---------------------------------------- 5172151937Sjkim17 June 2005. Summary of changes for version 20050617: 5173151937Sjkim 5174151937Sjkim1) ACPI CA Core Subsystem: 5175151937Sjkim 5176193267SjkimMoved the object cache operations into the OS interface layer (OSL) to allow 5177193267Sjkimthe host OS to handle these operations if desired (for example, the Linux 5178193267SjkimOSL will invoke the slab allocator). This support is optional; the compile 5179193267Sjkimtime define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 5180193267Sjkimcode in the ACPI CA core. The new OSL interfaces are shown below. See 5181193267Sjkimutalloc.c for an example implementation, and acpiosxf.h for the exact 5182193267Sjkiminterface definitions. With assistance from Alexey Starikovskiy. 5183151937Sjkim AcpiOsCreateCache 5184151937Sjkim AcpiOsDeleteCache 5185151937Sjkim AcpiOsPurgeCache 5186151937Sjkim AcpiOsAcquireObject 5187151937Sjkim AcpiOsReleaseObject 5188151937Sjkim 5189193267SjkimModified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 5190193267Sjkimand restore a flags parameter. This fits better with many OS lock models. 5191193267SjkimNote: the current execution state (interrupt handler or not) is no longer 5192193267Sjkimpassed to these interfaces. If necessary, the OSL must determine this state 5193193267Sjkimby itself, a simple and fast operation. With assistance from Alexey 5194151937SjkimStarikovskiy. 5195151937Sjkim 5196193267SjkimFixed a problem in the ACPI table handling where a valid XSDT was assumed 5197193267Sjkimpresent if the revision of the RSDP was 2 or greater. According to the ACPI 5198193267Sjkimspecification, the XSDT is optional in all cases, and the table manager 5199193267Sjkimtherefore now checks for both an RSDP >=2 and a valid XSDT pointer. 5200193267SjkimOtherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 5201193267Sjkimonly the RSDT. 5202151937Sjkim 5203193267SjkimFixed an interpreter problem with the Mid() operator in the case of an input 5204193267Sjkimstring where the resulting output string is of zero length. It now correctly 5205193267Sjkimreturns a valid, null terminated string object instead of a string object 5206193267Sjkimwith a null pointer. 5207151937Sjkim 5208193267SjkimFixed a problem with the control method argument handling to allow a store 5209193267Sjkimto an Arg object that already contains an object of type Device. The Device 5210193267Sjkimobject is now correctly overwritten. Previously, an error was returned. 5211151937Sjkim 5212167802Sjkim 5213193267SjkimEnhanced the debugger Find command to emit object values in addition to the 5214193267Sjkimfound object pathnames. The output format is the same as the dump namespace 5215193267Sjkimcommand. 5216151937Sjkim 5217193267SjkimEnhanced the debugger Set command. It now has the ability to set the value 5218193267Sjkimof any Named integer object in the namespace (Previously, only method locals 5219193267Sjkimand args could be set.) 5220151937Sjkim 5221193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5222193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5223193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5224193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5225193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5226193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5227193267Sjkimthe compiler options used during generation. 5228151937Sjkim 5229151937Sjkim Previous Release: 5230151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5231151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5232151937Sjkim Current Release: 5233151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 5234151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 5235151937Sjkim 5236151937Sjkim 5237151937Sjkim2) iASL Compiler/Disassembler: 5238151937Sjkim 5239193267SjkimFixed a regression in the disassembler where if/else/while constructs were 5240193267Sjkimoutput incorrectly. This problem was introduced in the previous release 5241193267Sjkim(20050526). This problem also affected the single-step disassembly in the 5242193267Sjkimdebugger. 5243151937Sjkim 5244193267SjkimFixed a problem where compiling the reserved _OSI method would randomly (but 5245193267Sjkimrarely) produce compile errors. 5246151937Sjkim 5247193267SjkimEnhanced the disassembler to emit compilable code in the face of incorrect 5248193267SjkimAML resource descriptors. If the optional ResourceSourceIndex is present, 5249193267Sjkimbut the ResourceSource is not, do not emit the ResourceSourceIndex in the 5250193267Sjkimdisassembly. Otherwise, the resulting code cannot be compiled without 5251193267Sjkimerrors. 5252151937Sjkim 5253151937Sjkim---------------------------------------- 5254151937Sjkim26 May 2005. Summary of changes for version 20050526: 5255151937Sjkim 5256151937Sjkim1) ACPI CA Core Subsystem: 5257151937Sjkim 5258193267SjkimImplemented support to execute Type 1 and Type 2 AML opcodes appearing at 5259193267Sjkimthe module level (not within a control method.) These opcodes are executed 5260193267Sjkimexactly once at the time the table is loaded. This type of code was legal up 5261193267Sjkimuntil the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 5262193267Sjkimorder to provide backwards compatibility with earlier BIOS implementations. 5263193267SjkimThis eliminates the "Encountered executable code at module level" warning 5264193267Sjkimthat was previously generated upon detection of such code. 5265151937Sjkim 5266193267SjkimFixed a problem in the interpreter where an AE_NOT_FOUND exception could 5267193267Sjkiminadvertently be generated during the lookup of namespace objects in the 5268193267Sjkimsecond pass parse of ACPI tables and control methods. It appears that this 5269193267Sjkimproblem could occur during the resolution of forward references to namespace 5270193267Sjkimobjects. 5271151937Sjkim 5272193267SjkimAdded the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 5273193267Sjkimcorresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 5274193267Sjkimallows the deadlock detection debug code to be compiled out in the normal 5275193267Sjkimcase, improving mutex performance (and overall subsystem performance) 5276193267Sjkimconsiderably. 5277151937Sjkim 5278193267SjkimImplemented a handful of miscellaneous fixes for possible memory leaks on 5279193267Sjkimerror conditions and error handling control paths. These fixes were 5280193267Sjkimsuggested by FreeBSD and the Coverity Prevent source code analysis tool. 5281151937Sjkim 5282193267SjkimAdded a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 5283193267Sjkimto prevent a fault in this error case. 5284151937Sjkim 5285193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5286193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5287193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5288193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5289193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5290193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5291193267Sjkimthe compiler options used during generation. 5292151937Sjkim 5293151937Sjkim Previous Release: 5294151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5295151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5296151937Sjkim Current Release: 5297151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 5298151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 5299151937Sjkim 5300151937Sjkim 5301151937Sjkim2) iASL Compiler/Disassembler: 5302151937Sjkim 5303193267SjkimImplemented support to allow Type 1 and Type 2 ASL operators to appear at 5304193267Sjkimthe module level (not within a control method.) These operators will be 5305193267Sjkimexecuted once at the time the table is loaded. This type of code was legal 5306193267Sjkimup until the release of ACPI 2.0B (2002) and is now supported by the iASL 5307193267Sjkimcompiler in order to provide backwards compatibility with earlier BIOS ASL 5308193267Sjkimcode. 5309151937Sjkim 5310193267SjkimThe ACPI integer width (specified via the table revision ID or the -r 5311193267Sjkimoverride, 32 or 64 bits) is now used internally during compile-time constant 5312193267Sjkimfolding to ensure that constants are truncated to 32 bits if necessary. 5313193267SjkimPreviously, the revision ID value was only emitted in the AML table header. 5314151937Sjkim 5315193267SjkimAn error message is now generated for the Mutex and Method operators if the 5316193267SjkimSyncLevel parameter is outside the legal range of 0 through 15. 5317151937Sjkim 5318193267SjkimFixed a problem with the Method operator ParameterTypes list handling (ACPI 5319193267Sjkim3.0). Previously, more than 2 types or 2 arguments generated a syntax error. 5320193267SjkimThe actual underlying implementation of method argument typechecking is 5321193267Sjkimstill under development, however. 5322151937Sjkim 5323151937Sjkim---------------------------------------- 5324151937Sjkim13 May 2005. Summary of changes for version 20050513: 5325151937Sjkim 5326151937Sjkim1) ACPI CA Core Subsystem: 5327151937Sjkim 5328193267SjkimImplemented support for PCI Express root bridges -- added support for device 5329193267SjkimPNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 5330151937Sjkim 5331193267SjkimThe interpreter now automatically truncates incoming 64-bit constants to 32 5332193267Sjkimbits if currently executing out of a 32-bit ACPI table (Revision < 2). This 5333193267Sjkimalso affects the iASL compiler constant folding. (Note: as per below, the 5334193267SjkimiASL compiler no longer allows 64-bit constants within 32-bit tables.) 5335151937Sjkim 5336193267SjkimFixed a problem where string and buffer objects with "static" pointers 5337193267Sjkim(pointers to initialization data within an ACPI table) were not handled 5338193267Sjkimconsistently. The internal object copy operation now always copies the data 5339193267Sjkimto a newly allocated buffer, regardless of whether the source object is 5340193267Sjkimstatic or not. 5341151937Sjkim 5342193267SjkimFixed a problem with the FromBCD operator where an implicit result 5343193267Sjkimconversion was improperly performed while storing the result to the target 5344193267Sjkimoperand. Since this is an "explicit conversion" operator, the implicit 5345193267Sjkimconversion should never be performed on the output. 5346151937Sjkim 5347193267SjkimFixed a problem with the CopyObject operator where a copy to an existing 5348193267Sjkimnamed object did not always completely overwrite the existing object stored 5349193267Sjkimat name. Specifically, a buffer-to-buffer copy did not delete the existing 5350193267Sjkimbuffer. 5351151937Sjkim 5352193267SjkimReplaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 5353193267Sjkimstructs for consistency. 5354151937Sjkim 5355193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5356193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5357193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5358193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5359193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5360193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5361193267Sjkimthe compiler options used during generation. 5362151937Sjkim 5363151937Sjkim Previous Release: 5364151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5365151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5366151937Sjkim Current Release: (Same sizes) 5367151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5368151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5369151937Sjkim 5370151937Sjkim 5371151937Sjkim2) iASL Compiler/Disassembler: 5372151937Sjkim 5373193267SjkimThe compiler now emits a warning if an attempt is made to generate a 64-bit 5374193267Sjkiminteger constant from within a 32-bit ACPI table (Revision < 2). The integer 5375193267Sjkimis truncated to 32 bits. 5376151937Sjkim 5377193267SjkimFixed a problem with large package objects: if the static length of the 5378193267Sjkimpackage is greater than 255, the "variable length package" opcode is 5379193267Sjkimemitted. Previously, this caused an error. This requires an update to the 5380193267SjkimACPI spec, since it currently (incorrectly) states that packages larger than 5381193267Sjkim255 elements are not allowed. 5382151937Sjkim 5383193267SjkimThe disassembler now correctly handles variable length packages and packages 5384193267Sjkimlarger than 255 elements. 5385151937Sjkim 5386151937Sjkim---------------------------------------- 5387151937Sjkim08 April 2005. Summary of changes for version 20050408: 5388151937Sjkim 5389151937Sjkim1) ACPI CA Core Subsystem: 5390151937Sjkim 5391193267SjkimFixed three cases in the interpreter where an "index" argument to an ASL 5392193267Sjkimfunction was still (internally) 32 bits instead of the required 64 bits. 5393193267SjkimThis was the Index argument to the Index, Mid, and Match operators. 5394151937Sjkim 5395193267SjkimThe "strupr" function is now permanently local (AcpiUtStrupr), since this is 5396193267Sjkimnot a POSIX-defined function and not present in most kernel-level C 5397193267Sjkimlibraries. All references to the C library strupr function have been removed 5398193267Sjkimfrom the headers. 5399151937Sjkim 5400193267SjkimCompleted the deployment of static functions/prototypes. All prototypes with 5401193267Sjkimthe static attribute have been moved from the headers to the owning C file. 5402151937Sjkim 5403193267SjkimImplemented an extract option (-e) for the AcpiBin utility (AML binary 5404193267Sjkimutility). This option allows the utility to extract individual ACPI tables 5405193267Sjkimfrom the output of AcpiDmp. It provides the same functionality of the 5406193267Sjkimacpixtract.pl perl script without the worry of setting the correct perl 5407193267Sjkimoptions. AcpiBin runs on Windows and has not yet been generated/validated in 5408193267Sjkimthe Linux/Unix environment (but should be soon). 5409193267Sjkim 5410193267SjkimUpdated and fixed the table dump option for AcpiBin (-d). This option 5411193267Sjkimconverts a single ACPI table to a hex/ascii file, similar to the output of 5412193267SjkimAcpiDmp. 5413151937Sjkim 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. 5421151937Sjkim 5422151937Sjkim Previous Release: 5423151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5424151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5425151937Sjkim Current Release: 5426151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 5427151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 5428151937Sjkim 5429151937Sjkim 5430151937Sjkim2) iASL Compiler/Disassembler: 5431151937Sjkim 5432193267SjkimDisassembler fix: Added a check to ensure that the table length found in the 5433193267SjkimACPI table header within the input file is not longer than the actual input 5434193267Sjkimfile size. This indicates some kind of file or table corruption. 5435151937Sjkim 5436151937Sjkim---------------------------------------- 5437151937Sjkim29 March 2005. Summary of changes for version 20050329: 5438151937Sjkim 5439151937Sjkim1) ACPI CA Core Subsystem: 5440151937Sjkim 5441193267SjkimAn error is now generated if an attempt is made to create a Buffer Field of 5442193267Sjkimlength zero (A CreateField with a length operand of zero.) 5443151937Sjkim 5444193267SjkimThe interpreter now issues a warning whenever executable code at the module 5445193267Sjkimlevel is detected during ACPI table load. This will give some idea of the 5446193267Sjkimprevalence of this type of code. 5447151937Sjkim 5448193267SjkimImplemented support for references to named objects (other than control 5449193267Sjkimmethods) within package objects. 5450151937Sjkim 5451193267SjkimEnhanced package object output for the debug object. Package objects are now 5452193267Sjkimcompletely dumped, showing all elements. 5453151937Sjkim 5454193267SjkimEnhanced miscellaneous object output for the debug object. Any object can 5455193267Sjkimnow be written to the debug object (for example, a device object can be 5456193267Sjkimwritten, and the type of the object will be displayed.) 5457151937Sjkim 5458193267SjkimThe "static" qualifier has been added to all local functions across both the 5459193267Sjkimcore subsystem and the iASL compiler. 5460151937Sjkim 5461193267SjkimThe number of "long" lines (> 80 chars) within the source has been 5462193267Sjkimsignificantly reduced, by about 1/3. 5463151937Sjkim 5464193267SjkimCleaned up all header files to ensure that all CA/iASL functions are 5465193267Sjkimprototyped (even static functions) and the formatting is consistent. 5466151937Sjkim 5467151937SjkimTwo new header files have been added, acopcode.h and acnames.h. 5468151937Sjkim 5469151937SjkimRemoved several obsolete functions that were no longer used. 5470151937Sjkim 5471193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5472193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5473193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5474193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5475193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5476193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5477193267Sjkimthe compiler options used during generation. 5478151937Sjkim 5479151937Sjkim Previous Release: 5480151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5481151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5482151937Sjkim Current Release: 5483151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 5484151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 5485151937Sjkim 5486151937Sjkim 5487167802Sjkim 5488151937Sjkim2) iASL Compiler/Disassembler: 5489151937Sjkim 5490193267SjkimFixed a problem with the resource descriptor generation/support. For the 5491193267SjkimResourceSourceIndex and the ResourceSource fields, both must be present, or 5492193267Sjkimboth must be not present - can't have one without the other. 5493151937Sjkim 5494193267SjkimThe compiler now returns non-zero from the main procedure if any errors have 5495193267Sjkimoccurred during the compilation. 5496151937Sjkim 5497151937Sjkim 5498151937Sjkim---------------------------------------- 5499151937Sjkim09 March 2005. Summary of changes for version 20050309: 5500151937Sjkim 5501151937Sjkim1) ACPI CA Core Subsystem: 5502151937Sjkim 5503193267SjkimThe string-to-buffer implicit conversion code has been modified again after 5504193267Sjkima change to the ACPI specification. In order to match the behavior of the 5505193267Sjkimother major ACPI implementation, the target buffer is no longer truncated if 5506193267Sjkimthe source string is smaller than an existing target buffer. This change 5507193267Sjkimrequires an update to the ACPI spec, and should eliminate the recent 5508151937SjkimAE_AML_BUFFER_LIMIT issues. 5509151937Sjkim 5510193267SjkimThe "implicit return" support was rewritten to a new algorithm that solves 5511193267Sjkimthe general case. Rather than attempt to determine when a method is about to 5512193267Sjkimexit, the result of every ASL operator is saved momentarily until the very 5513193267Sjkimnext ASL operator is executed. Therefore, no matter how the method exits, 5514193267Sjkimthere will always be a saved implicit return value. This feature is only 5515193267Sjkimenabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 5516193267SjkimAE_AML_NO_RETURN_VALUE errors when enabled. 5517151937Sjkim 5518193267SjkimImplemented implicit conversion support for the predicate (operand) of the 5519193267SjkimIf, Else, and While operators. String and Buffer arguments are automatically 5520193267Sjkimconverted to Integers. 5521151937Sjkim 5522193267SjkimChanged the string-to-integer conversion behavior to match the new ACPI 5523193267Sjkimerrata: "If no integer object exists, a new integer is created. The ASCII 5524193267Sjkimstring is interpreted as a hexadecimal constant. Each string character is 5525193267Sjkiminterpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 5526193267Sjkimwith the first character as the most significant digit, and ending with the 5527193267Sjkimfirst non-hexadecimal character or end-of-string." This means that the first 5528193267Sjkimnon-hex character terminates the conversion and this is the code that was 5529193267Sjkimchanged. 5530151937Sjkim 5531193267SjkimFixed a problem where the ObjectType operator would fail (fault) when used 5532193267Sjkimon an Index of a Package which pointed to a null package element. The 5533193267Sjkimoperator now properly returns zero (Uninitialized) in this case. 5534151937Sjkim 5535193267SjkimFixed a problem where the While operator used excessive memory by not 5536193267Sjkimproperly popping the result stack during execution. There was no memory leak 5537193267Sjkimafter execution, however. (Code provided by Valery Podrezov.) 5538151937Sjkim 5539193267SjkimFixed a problem where references to control methods within Package objects 5540193267Sjkimcaused the method to be invoked, instead of producing a reference object 5541193267Sjkimpointing to the method. 5542151937Sjkim 5543193267SjkimRestructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 5544193267Sjkimimprove performance and reduce code size. (Code provided by Alexey 5545193267SjkimStarikovskiy.) 5546151937Sjkim 5547193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5548193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5549193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5550193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5551193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5552193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5553193267Sjkimthe compiler options used during generation. 5554151937Sjkim 5555151937Sjkim Previous Release: 5556151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5557151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5558151937Sjkim Current Release: 5559151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5560151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 5561151937Sjkim 5562151937Sjkim 5563151937Sjkim2) iASL Compiler/Disassembler: 5564151937Sjkim 5565193267SjkimFixed a problem with the Return operator with no arguments. Since the AML 5566193267Sjkimgrammar for the byte encoding requires an operand for the Return opcode, the 5567193267Sjkimcompiler now emits a Return(Zero) for this case. An ACPI specification 5568193267Sjkimupdate has been written for this case. 5569151937Sjkim 5570193267SjkimFor tables other than the DSDT, namepath optimization is automatically 5571193267Sjkimdisabled. This is because SSDTs can be loaded anywhere in the namespace, the 5572193267Sjkimcompiler has no knowledge of where, and thus cannot optimize namepaths. 5573151937Sjkim 5574193267SjkimAdded "ProcessorObj" to the ObjectTypeKeyword list. This object type was 5575193267Sjkiminadvertently omitted from the ACPI specification, and will require an 5576193267Sjkimupdate to the spec. 5577151937Sjkim 5578193267SjkimThe source file scan for ASCII characters is now optional (-a). This change 5579193267Sjkimwas made because some vendors place non-ascii characters within comments. 5580193267SjkimHowever, the scan is simply a brute-force byte compare to ensure all 5581193267Sjkimcharacters in the file are in the range 0x00 to 0x7F. 5582151937Sjkim 5583193267SjkimFixed a problem with the CondRefOf operator where the compiler was 5584193267Sjkiminappropriately checking for the existence of the target. Since the point of 5585193267Sjkimthe operator is to check for the existence of the target at run-time, the 5586193267Sjkimcompiler no longer checks for the target existence. 5587151937Sjkim 5588193267SjkimFixed a problem where errors generated from the internal AML interpreter 5589193267Sjkimduring constant folding were not handled properly, causing a fault. 5590151937Sjkim 5591193267SjkimFixed a problem with overly aggressive range checking for the Stall 5592193267Sjkimoperator. The valid range (max 255) is now only checked if the operand is of 5593193267Sjkimtype Integer. All other operand types cannot be statically checked. 5594151937Sjkim 5595193267SjkimFixed a problem where control method references within the RefOf, DeRefOf, 5596193267Sjkimand ObjectType operators were not treated properly. They are now treated as 5597193267Sjkimactual references, not method invocations. 5598151937Sjkim 5599193267SjkimFixed and enhanced the "list namespace" option (-ln). This option was broken 5600193267Sjkima number of releases ago. 5601151937Sjkim 5602193267SjkimImproved error handling for the Field, IndexField, and BankField operators. 5603193267SjkimThe compiler now cleanly reports and recovers from errors in the field 5604193267Sjkimcomponent (FieldUnit) list. 5605151937Sjkim 5606193267SjkimFixed a disassembler problem where the optional ResourceDescriptor fields 5607193267SjkimTRS and TTP were not always handled correctly. 5608151937Sjkim 5609151937SjkimDisassembler - Comments in output now use "//" instead of "/*" 5610151937Sjkim 5611151937Sjkim---------------------------------------- 5612151937Sjkim28 February 2005. Summary of changes for version 20050228: 5613151937Sjkim 5614151937Sjkim1) ACPI CA Core Subsystem: 5615151937Sjkim 5616193267SjkimFixed a problem where the result of an Index() operator (an object 5617193267Sjkimreference) must increment the reference count on the target object for the 5618193267Sjkimlife of the object reference. 5619151937Sjkim 5620193267SjkimImplemented AML Interpreter and Debugger support for the new ACPI 3.0 5621193267SjkimExtended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 5622193267Sjkimresource descriptors. 5623151937Sjkim 5624193267SjkimImplemented support in the _OSI method for the ACPI 3.0 "Extended Address 5625193267SjkimSpace Descriptor" string, indicating interpreter support for the descriptors 5626193267Sjkimabove. 5627151937Sjkim 5628151937SjkimImplemented header support for the new ACPI 3.0 FADT flag bits. 5629151937Sjkim 5630193267SjkimImplemented header support for the new ACPI 3.0 PCI Express bits for the PM1 5631193267Sjkimstatus/enable registers. 5632151937Sjkim 5633193267SjkimUpdated header support for the MADT processor local Apic struct and MADT 5634193267Sjkimplatform interrupt source struct for new ACPI 3.0 fields. 5635151937Sjkim 5636151937SjkimImplemented header support for the SRAT and SLIT ACPI tables. 5637151937Sjkim 5638193267SjkimImplemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 5639193267Sjkimat runtime. 5640151937Sjkim 5641193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5642193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5643193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5644193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5645193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5646193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5647193267Sjkimthe compiler options used during generation. 5648151937Sjkim 5649151937Sjkim Previous Release: 5650151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 5651151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 5652151937Sjkim Current Release: 5653151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5654151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 5655151937Sjkim 5656151937Sjkim 5657151937Sjkim2) iASL Compiler/Disassembler: 5658151937Sjkim 5659193267SjkimFixed a problem with the internal 64-bit String-to-integer conversion with 5660193267Sjkimstrings less than two characters long. 5661151937Sjkim 5662193267SjkimFixed a problem with constant folding where the result of the Index() 5663193267Sjkimoperator can not be considered a constant. This means that Index() cannot be 5664193267Sjkima type3 opcode and this will require an update to the ACPI specification. 5665151937Sjkim 5666193267SjkimDisassembler: Implemented support for the TTP, MTP, and TRS resource 5667193267Sjkimdescriptor fields. These fields were inadvertently ignored and not output in 5668193267Sjkimthe disassembly of the resource descriptor. 5669151937Sjkim 5670151937Sjkim 5671151937Sjkim ---------------------------------------- 5672151937Sjkim11 February 2005. Summary of changes for version 20050211: 5673151937Sjkim 5674151937Sjkim1) ACPI CA Core Subsystem: 5675151937Sjkim 5676193267SjkimImplemented ACPI 3.0 support for implicit conversion within the Match() 5677193267Sjkimoperator. MatchObjects can now be of type integer, buffer, or string instead 5678193267Sjkimof just type integer. Package elements are implicitly converted to the type 5679193267Sjkimof the MatchObject. This change aligns the behavior of Match() with the 5680193267Sjkimbehavior of the other logical operators (LLess(), etc.) It also requires an 5681193267Sjkimerrata change to the ACPI specification as this support was intended for 5682193267SjkimACPI 3.0, but was inadvertently omitted. 5683151937Sjkim 5684193267SjkimFixed a problem with the internal implicit "to buffer" conversion. Strings 5685193267Sjkimthat are converted to buffers will cause buffer truncation if the string is 5686193267Sjkimsmaller than the target buffer. Integers that are converted to buffers will 5687193267Sjkimnot cause buffer truncation, only zero extension (both as per the ACPI 5688193267Sjkimspec.) The problem was introduced when code was added to truncate the 5689193267Sjkimbuffer, but this should not be performed in all cases, only the string case. 5690151937Sjkim 5691193267SjkimFixed a problem with the Buffer and Package operators where the interpreter 5692193267Sjkimwould get confused if two such operators were used as operands to an ASL 5693193267Sjkimoperator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 5694193267Sjkimstack was not being popped after the execution of these operators, resulting 5695193267Sjkimin an AE_NO_RETURN_VALUE exception. 5696151937Sjkim 5697193267SjkimFixed a problem with constructs of the form Store(Index(...),...). The 5698193267Sjkimreference object returned from Index was inadvertently resolved to an actual 5699193267Sjkimvalue. This problem was introduced in version 20050114 when the behavior of 5700193267SjkimStore() was modified to restrict the object types that can be used as the 5701151937Sjkimsource operand (to match the ACPI specification.) 5702151937Sjkim 5703193267SjkimReduced excessive stack use within the AcpiGetObjectInfo procedure. 5704151937Sjkim 5705193267SjkimAdded a fix to aclinux.h to allow generation of AcpiExec on Linux. 5706151937Sjkim 5707193267SjkimUpdated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 5708151937Sjkim 5709193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5710193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5711193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5712193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5713193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5714193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5715193267Sjkimthe compiler options used during generation. 5716151937Sjkim 5717151937Sjkim Previous Release: 5718151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 5719151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 5720151937Sjkim Current Release: 5721151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 5722151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 5723151937Sjkim 5724151937Sjkim 5725151937Sjkim2) iASL Compiler/Disassembler: 5726151937Sjkim 5727193267SjkimFixed a code generation problem in the constant folding optimization code 5728193267Sjkimwhere incorrect code was generated if a constant was reduced to a buffer 5729193267Sjkimobject (i.e., a reduced type 5 opcode.) 5730151937Sjkim 5731193267SjkimFixed a typechecking problem for the ToBuffer operator. Caused by an 5732193267Sjkimincorrect return type in the internal opcode information table. 5733151937Sjkim 5734151937Sjkim---------------------------------------- 5735151937Sjkim25 January 2005. Summary of changes for version 20050125: 5736151937Sjkim 5737151937Sjkim1) ACPI CA Core Subsystem: 5738151937Sjkim 5739193267SjkimFixed a recently introduced problem with the Global Lock where the 5740193267Sjkimunderlying semaphore was not created. This problem was introduced in 5741193267Sjkimversion 20050114, and caused an AE_AML_NO_OPERAND exception during an 5742193267SjkimAcquire() operation on _GL. 5743151937Sjkim 5744193267SjkimThe local object cache is now optional, and is disabled by default. Both 5745193267SjkimAcpiExec and the iASL compiler enable the cache because they run in user 5746193267Sjkimmode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 5747193267Sjkimto enable the local cache. 5748151937Sjkim 5749193267SjkimFixed an issue in the internal function AcpiUtEvaluateObject concerning the 5750193267Sjkimoptional "implicit return" support where an error was returned if no return 5751193267Sjkimobject was expected, but one was implicitly returned. AE_OK is now returned 5752193267Sjkimin this case and the implicitly returned object is deleted. 5753193267SjkimAcpiUtEvaluateObject is only occasionally used, and only to execute reserved 5754193267Sjkimmethods such as _STA and _INI where the return type is known up front. 5755151937Sjkim 5756193267SjkimFixed a few issues with the internal convert-to-integer code. It now returns 5757193267Sjkiman error if an attempt is made to convert a null string, a string of only 5758193267Sjkimblanks/tabs, or a zero-length buffer. This affects both implicit conversion 5759193267Sjkimand explicit conversion via the ToInteger() operator. 5760151937Sjkim 5761193267SjkimThe internal debug code in AcpiUtAcquireMutex has been commented out. It is 5762193267Sjkimnot needed for normal operation and should increase the performance of the 5763193267Sjkimentire subsystem. The code remains in case it is needed for debug purposes 5764193267Sjkimagain. 5765151937Sjkim 5766193267SjkimThe AcpiExec source and makefile are included in the Unix/Linux package for 5767193267Sjkimthe first time. 5768151937Sjkim 5769193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5770193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5771193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5772193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5773193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5774193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5775193267Sjkimthe compiler options used during generation. 5776151937Sjkim 5777151937Sjkim Previous Release: 5778151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 5779151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 5780151937Sjkim Current Release: 5781151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 5782151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 5783151937Sjkim 5784151937Sjkim2) iASL Compiler/Disassembler: 5785151937Sjkim 5786193267SjkimSwitch/Case support: A warning is now issued if the type of the Switch value 5787193267Sjkimcannot be determined at compile time. For example, Switch(Arg0) will 5788193267Sjkimgenerate the warning, and the type is assumed to be an integer. As per the 5789193267SjkimACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 5790193267Sjkimwarning. 5791151937Sjkim 5792193267SjkimSwitch/Case support: Implemented support for buffer and string objects as 5793193267Sjkimthe switch value. This is an ACPI 3.0 feature, now that LEqual supports 5794193267Sjkimbuffers and strings. 5795151937Sjkim 5796193267SjkimSwitch/Case support: The emitted code for the LEqual() comparisons now uses 5797193267Sjkimthe switch value as the first operand, not the second. The case value is now 5798193267Sjkimthe second operand, and this allows the case value to be implicitly 5799193267Sjkimconverted to the type of the switch value, not the other way around. 5800151937Sjkim 5801193267SjkimSwitch/Case support: Temporary variables are now emitted immediately within 5802193267Sjkimthe control method, not at the global level. This means that there are now 5803193267Sjkim36 temps available per-method, not 36 temps per-module as was the case with 5804193267Sjkimthe earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 5805151937Sjkim 5806151937Sjkim---------------------------------------- 5807151937Sjkim14 January 2005. Summary of changes for version 20050114: 5808151937Sjkim 5809193267SjkimAdded 2005 copyright to all module headers. This affects every module in 5810193267Sjkimthe core subsystem, iASL compiler, and the utilities. 5811151937Sjkim 5812151937Sjkim1) ACPI CA Core Subsystem: 5813151937Sjkim 5814193267SjkimFixed an issue with the String-to-Buffer conversion code where the string 5815193267Sjkimnull terminator was not included in the buffer after conversion, but there 5816193267Sjkimis existing ASL that assumes the string null terminator is included. This is 5817193267Sjkimthe root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 5818193267Sjkimintroduced in the previous version when the code was updated to correctly 5819193267Sjkimset the converted buffer size as per the ACPI specification. The ACPI spec 5820193267Sjkimis ambiguous and will be updated to specify that the null terminator must be 5821193267Sjkimincluded in the converted buffer. This also affects the ToBuffer() ASL 5822193267Sjkimoperator. 5823151937Sjkim 5824193267SjkimFixed a problem with the Mid() ASL/AML operator where it did not work 5825193267Sjkimcorrectly on Buffer objects. Newly created sub-buffers were not being marked 5826193267Sjkimas initialized. 5827151937Sjkim 5828167802Sjkim 5829193267SjkimFixed a problem in AcpiTbFindTable where incorrect string compares were 5830193267Sjkimperformed on the OemId and OemTableId table header fields. These fields are 5831193267Sjkimnot null terminated, so strncmp is now used instead of strcmp. 5832151937Sjkim 5833193267SjkimImplemented a restriction on the Store() ASL/AML operator to align the 5834193267Sjkimbehavior with the ACPI specification. Previously, any object could be used 5835193267Sjkimas the source operand. Now, the only objects that may be used are Integers, 5836193267SjkimBuffers, Strings, Packages, Object References, and DDB Handles. If 5837193267Sjkimnecessary, the original behavior can be restored by enabling the 5838151937SjkimEnableInterpreterSlack flag. 5839151937Sjkim 5840193267SjkimEnhanced the optional "implicit return" support to allow an implicit return 5841193267Sjkimvalue from methods that are invoked externally via the AcpiEvaluateObject 5842193267Sjkiminterface. This enables implicit returns from the _STA and _INI methods, 5843193267Sjkimfor example. 5844151937Sjkim 5845193267SjkimChanged the Revision() ASL/AML operator to return the current version of the 5846193267SjkimAML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 5847193267Sjkimthe supported ACPI version (This is the function of the _REV method). 5848151937Sjkim 5849193267SjkimUpdated the _REV predefined method to return the currently supported version 5850193267Sjkimof ACPI, now 3. 5851151937Sjkim 5852151937SjkimImplemented batch mode option for the AcpiExec utility (-b). 5853151937Sjkim 5854193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5855193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5856193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5857193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5858193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5859193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5860193267Sjkimthe compiler options used during generation. 5861151937Sjkim 5862151937Sjkim Previous Release: 5863151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5864151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 5865151937Sjkim Current Release: 5866151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 5867151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 5868151937Sjkim 5869151937Sjkim---------------------------------------- 5870151937Sjkim10 December 2004. Summary of changes for version 20041210: 5871151937Sjkim 5872193267SjkimACPI 3.0 support is nearing completion in both the iASL compiler and the 5873193267SjkimACPI CA core subsystem. 5874151937Sjkim 5875151937Sjkim1) ACPI CA Core Subsystem: 5876151937Sjkim 5877193267SjkimFixed a problem in the ToDecimalString operator where the resulting string 5878193267Sjkimlength was incorrectly calculated. The length is now calculated exactly, 5879193267Sjkimeliminating incorrect AE_STRING_LIMIT exceptions. 5880151937Sjkim 5881193267SjkimFixed a problem in the ToHexString operator to allow a maximum 200 character 5882193267Sjkimstring to be produced. 5883151937Sjkim 5884193267SjkimFixed a problem in the internal string-to-buffer and buffer-to-buffer copy 5885193267Sjkimroutine where the length of the resulting buffer was not truncated to the 5886193267Sjkimnew size (if the target buffer already existed). 5887151937Sjkim 5888193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5889193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5890193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5891193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5892193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5893193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5894193267Sjkimthe compiler options used during generation. 5895151937Sjkim 5896151937Sjkim Previous Release: 5897151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5898151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 5899151937Sjkim Current Release: 5900151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5901151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 5902151937Sjkim 5903151937Sjkim 5904151937Sjkim2) iASL Compiler/Disassembler: 5905151937Sjkim 5906193267SjkimImplemented the new ACPI 3.0 resource template macros - DWordSpace, 5907193267SjkimExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 5908193267SjkimIncludes support in the disassembler. 5909151937Sjkim 5910193267SjkimImplemented support for the new (ACPI 3.0) parameter to the Register macro, 5911193267SjkimAccessSize. 5912151937Sjkim 5913193267SjkimFixed a problem where the _HE resource name for the Interrupt macro was 5914193267Sjkimreferencing bit 0 instead of bit 1. 5915151937Sjkim 5916193267SjkimImplemented check for maximum 255 interrupts in the Interrupt macro. 5917151937Sjkim 5918193267SjkimFixed a problem with the predefined resource descriptor names where 5919193267Sjkimincorrect AML code was generated if the offset within the resource buffer 5920193267Sjkimwas 0 or 1. The optimizer shortened the AML code to a single byte opcode 5921193267Sjkimbut did not update the surrounding package lengths. 5922151937Sjkim 5923193267SjkimChanges to the Dma macro: All channels within the channel list must be in 5924193267Sjkimthe range 0-7. Maximum 8 channels can be specified. BusMaster operand is 5925193267Sjkimoptional (default is BusMaster). 5926151937Sjkim 5927193267SjkimImplemented check for maximum 7 data bytes for the VendorShort macro. 5928151937Sjkim 5929193267SjkimThe ReadWrite parameter is now optional for the Memory32 and similar macros. 5930151937Sjkim 5931151937Sjkim---------------------------------------- 5932151937Sjkim03 December 2004. Summary of changes for version 20041203: 5933151937Sjkim 5934151937Sjkim1) ACPI CA Core Subsystem: 5935151937Sjkim 5936193267SjkimThe low-level field insertion/extraction code (exfldio) has been completely 5937193267Sjkimrewritten to eliminate unnecessary complexity, bugs, and boundary 5938193267Sjkimconditions. 5939151937Sjkim 5940193267SjkimFixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 5941193267Sjkimoperators where the input operand could be inadvertently deleted if no 5942193267Sjkimconversion was necessary (e.g., if the input to ToInteger was an Integer 5943193267Sjkimobject.) 5944151937Sjkim 5945193267SjkimFixed a problem with the ToDecimalString and ToHexString where an incorrect 5946193267Sjkimexception code was returned if the resulting string would be > 200 chars. 5947193267SjkimAE_STRING_LIMIT is now returned. 5948151937Sjkim 5949193267SjkimFixed a problem with the Concatenate operator where AE_OK was always 5950193267Sjkimreturned, even if the operation failed. 5951151937Sjkim 5952193267SjkimFixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 5953193267Sjkimsemaphores to be allocated. 5954151937Sjkim 5955193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5956193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5957193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5958193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5959193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5960193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5961193267Sjkimthe compiler options used during generation. 5962151937Sjkim 5963151937Sjkim Previous Release: 5964151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 5965151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 5966151937Sjkim Current Release: 5967151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 5968151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 5969151937Sjkim 5970151937Sjkim 5971151937Sjkim2) iASL Compiler/Disassembler: 5972151937Sjkim 5973193267SjkimFixed typechecking for the ObjectType and SizeOf operators. Problem was 5974193267Sjkimrecently introduced in 20041119. 5975151937Sjkim 5976193267SjkimFixed a problem with the ToUUID macro where the upper nybble of each buffer 5977193267Sjkimbyte was inadvertently set to zero. 5978151937Sjkim 5979151937Sjkim---------------------------------------- 5980138287Smarks19 November 2004. Summary of changes for version 20041119: 5981138287Smarks 5982138287Smarks1) ACPI CA Core Subsystem: 5983138287Smarks 5984193267SjkimFixed a problem in the internal ConvertToInteger routine where new integers 5985193267Sjkimwere not truncated to 32 bits for 32-bit ACPI tables. This routine converts 5986193267Sjkimbuffers and strings to integers. 5987138287Smarks 5988193267SjkimImplemented support to store a value to an Index() on a String object. This 5989193267Sjkimis an ACPI 2.0 feature that had not yet been implemented. 5990138287Smarks 5991193267SjkimImplemented new behavior for storing objects to individual package elements 5992193267Sjkim(via the Index() operator). The previous behavior was to invoke the implicit 5993193267Sjkimconversion rules if an object was already present at the index. The new 5994193267Sjkimbehavior is to simply delete any existing object and directly store the new 5995193267Sjkimobject. Although the ACPI specification seems unclear on this subject, other 5996193267SjkimACPI implementations behave in this manner. (This is the root of the 5997193267SjkimAE_BAD_HEX_CONSTANT issue.) 5998138287Smarks 5999193267SjkimModified the RSDP memory scan mechanism to support the extended checksum for 6000193267SjkimACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 6001193267SjkimRSDP signature is found with a valid checksum. 6002138287Smarks 6003193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6004193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6005193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6006193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6007193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6008193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6009193267Sjkimthe compiler options used during generation. 6010138287Smarks 6011151937Sjkim Previous Release: 6012151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6013151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6014151937Sjkim Current Release: 6015151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6016151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6017138287Smarks 6018138287Smarks 6019138287Smarks2) iASL Compiler/Disassembler: 6020138287Smarks 6021138287SmarksFixed a missing semicolon in the aslcompiler.y file. 6022138287Smarks 6023138287Smarks---------------------------------------- 6024138287Smarks05 November 2004. Summary of changes for version 20041105: 6025138287Smarks 6026138287Smarks1) ACPI CA Core Subsystem: 6027138287Smarks 6028193267SjkimImplemented support for FADT revision 2. This was an interim table (between 6029193267SjkimACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 6030138287Smarks 6031193267SjkimImplemented optional support to allow uninitialized LocalX and ArgX 6032193267Sjkimvariables in a control method. The variables are initialized to an Integer 6033193267Sjkimobject with a value of zero. This support is enabled by setting the 6034193267SjkimAcpiGbl_EnableInterpreterSlack flag to TRUE. 6035138287Smarks 6036193267SjkimImplemented support for Integer objects for the SizeOf operator. Either 4 6037193267Sjkimor 8 is returned, depending on the current integer size (32-bit or 64-bit, 6038193267Sjkimdepending on the parent table revision). 6039138287Smarks 6040193267SjkimFixed a problem in the implementation of the SizeOf and ObjectType operators 6041193267Sjkimwhere the operand was resolved to a value too early, causing incorrect 6042193267Sjkimreturn values for some objects. 6043138287Smarks 6044138287SmarksFixed some possible memory leaks during exceptional conditions. 6045138287Smarks 6046193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6047193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6048193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6049193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6050193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6051193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6052193267Sjkimthe compiler options used during generation. 6053138287Smarks 6054138287Smarks Previous Release: 6055138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6056138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6057138287Smarks Current Release: 6058138287Smarks Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 6059138287Smarks Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 6060138287Smarks 6061138287Smarks 6062138287Smarks2) iASL Compiler/Disassembler: 6063138287Smarks 6064138287SmarksImplemented support for all ACPI 3.0 reserved names and methods. 6065138287Smarks 6066193267SjkimImplemented all ACPI 3.0 grammar elements in the front-end, including 6067193267Sjkimsupport for semicolons. 6068138287Smarks 6069138287SmarksImplemented the ACPI 3.0 Function() and ToUUID() macros 6070138287Smarks 6071193267SjkimFixed a problem in the disassembler where a Scope() operator would not be 6072193267Sjkimemitted properly if the target of the scope was in another table. 6073138287Smarks 6074138287Smarks---------------------------------------- 6075138287Smarks15 October 2004. Summary of changes for version 20041015: 6076138287Smarks 6077193267SjkimNote: ACPI CA is currently undergoing an in-depth and complete formal 6078193267Sjkimevaluation to test/verify the following areas. Other suggestions are 6079193267Sjkimwelcome. This will result in an increase in the frequency of releases and 6080193267Sjkimthe number of bug fixes in the next few months. 6081138287Smarks - Functional tests for all ASL/AML operators 6082138287Smarks - All implicit/explicit type conversions 6083138287Smarks - Bit fields and operation regions 6084138287Smarks - 64-bit math support and 32-bit-only "truncated" math support 6085138287Smarks - Exceptional conditions, both compiler and interpreter 6086138287Smarks - Dynamic object deletion and memory leaks 6087138287Smarks - ACPI 3.0 support when implemented 6088138287Smarks - External interfaces to the ACPI subsystem 6089138287Smarks 6090138287Smarks 6091138287Smarks1) ACPI CA Core Subsystem: 6092138287Smarks 6093193267SjkimFixed two alignment issues on 64-bit platforms - within debug statements in 6094193267SjkimAcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 6095193267Sjkimfield within the non-aligned ACPI generic address structure. 6096138287Smarks 6097193267SjkimFixed a problem in the Increment and Decrement operators where incorrect 6098193267Sjkimoperand resolution could result in the inadvertent modification of the 6099193267Sjkimoriginal integer when the integer is passed into another method as an 6100193267Sjkimargument and the arg is then incremented/decremented. 6101138287Smarks 6102193267SjkimFixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 6103193267SjkimBCD number were truncated during conversion. 6104138287Smarks 6105193267SjkimFixed a problem in the ToDecimal operator where the length of the resulting 6106193267Sjkimstring could be set incorrectly too long if the input operand was a Buffer 6107193267Sjkimobject. 6108138287Smarks 6109193267SjkimFixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 6110193267Sjkimwithin a buffer would prematurely terminate a compare between buffer 6111193267Sjkimobjects. 6112138287Smarks 6113193267SjkimAdded a check for string overflow (>200 characters as per the ACPI 6114193267Sjkimspecification) during the Concatenate operator with two string operands. 6115138287Smarks 6116193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6117193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6118193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6119193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6120193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6121193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6122193267Sjkimthe compiler options used during generation. 6123138287Smarks 6124138287Smarks Previous Release: 6125138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6126138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6127138287Smarks Current Release: 6128138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6129138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 6130138287Smarks 6131138287Smarks 6132167802Sjkim 6133138287Smarks2) iASL Compiler/Disassembler: 6134138287Smarks 6135193267SjkimAllow the use of the ObjectType operator on uninitialized Locals and Args 6136193267Sjkim(returns 0 as per the ACPI specification). 6137138287Smarks 6138193267SjkimFixed a problem where the compiler would fault if there was a syntax error 6139193267Sjkimin the FieldName of all of the various CreateXXXField operators. 6140138287Smarks 6141193267SjkimDisallow the use of lower case letters within the EISAID macro, as per the 6142193267SjkimACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 6143193267SjkimU is an uppercase letter and N is a hex digit. 6144138287Smarks 6145138287Smarks 6146138287Smarks---------------------------------------- 6147138287Smarks06 October 2004. Summary of changes for version 20041006: 6148138287Smarks 6149138287Smarks1) ACPI CA Core Subsystem: 6150138287Smarks 6151193267SjkimImplemented support for the ACPI 3.0 Timer operator. This ASL function 6152193267Sjkimimplements a 64-bit timer with 100 nanosecond granularity. 6153138287Smarks 6154193267SjkimDefined a new OSL interface, AcpiOsGetTimer. This interface is used to 6155193267Sjkimimplement the ACPI 3.0 Timer operator. This allows the host OS to implement 6156193267Sjkimthe timer with the best clock available. Also, it keeps the core subsystem 6157193267Sjkimout of the clock handling business, since the host OS (usually) performs 6158193267Sjkimthis function. 6159138287Smarks 6160193267SjkimFixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 6161193267Sjkimfunctions use a 64-bit address which is part of the packed ACPI Generic 6162193267SjkimAddress Structure. Since the structure is non-aligned, the alignment macros 6163193267Sjkimare now used to extract the address to a local variable before use. 6164138287Smarks 6165193267SjkimFixed a problem where the ToInteger operator assumed all input strings were 6166193267Sjkimhexadecimal. The operator now handles both decimal strings and hex strings 6167193267Sjkim(prefixed with "0x"). 6168138287Smarks 6169193267SjkimFixed a problem where the string length in the string object created as a 6170193267Sjkimresult of the internal ConvertToString procedure could be incorrect. This 6171193267Sjkimpotentially affected all implicit conversions and also the ToDecimalString 6172193267Sjkimand ToHexString operators. 6173138287Smarks 6174193267SjkimFixed two problems in the ToString operator. If the length parameter was 6175193267Sjkimzero, an incorrect string object was created and the value of the input 6176193267Sjkimlength parameter was inadvertently changed from zero to Ones. 6177138287Smarks 6178193267SjkimFixed a problem where the optional ResourceSource string in the ExtendedIRQ 6179193267Sjkimresource macro was ignored. 6180138287Smarks 6181193267SjkimSimplified the interfaces to the internal division functions, reducing code 6182193267Sjkimsize and complexity. 6183138287Smarks 6184193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6185193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6186193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6187193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6188193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6189193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6190193267Sjkimthe compiler options used during generation. 6191138287Smarks 6192138287Smarks Previous Release: 6193138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6194138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6195138287Smarks Current Release: 6196138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6197138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 6198138287Smarks 6199138287Smarks 6200138287Smarks2) iASL Compiler/Disassembler: 6201138287Smarks 6202138287SmarksImplemented support for the ACPI 3.0 Timer operator. 6203138287Smarks 6204193267SjkimFixed a problem where the Default() operator was inadvertently ignored in a 6205193267SjkimSwitch/Case block. This was a problem in the translation of the Switch 6206193267Sjkimstatement to If...Else pairs. 6207138287Smarks 6208193267SjkimAdded support to allow a standalone Return operator, with no parentheses (or 6209193267Sjkimoperands). 6210138287Smarks 6211193267SjkimFixed a problem with code generation for the ElseIf operator where the 6212193267Sjkimtranslated Else...If parse tree was improperly constructed leading to the 6213193267Sjkimloss of some code. 6214138287Smarks 6215138287Smarks---------------------------------------- 6216138287Smarks22 September 2004. Summary of changes for version 20040922: 6217138287Smarks 6218138287Smarks1) ACPI CA Core Subsystem: 6219138287Smarks 6220193267SjkimFixed a problem with the implementation of the LNot() operator where "Ones" 6221193267Sjkimwas not returned for the TRUE case. Changed the code to return Ones instead 6222193267Sjkimof (!Arg) which was usually 1. This change affects iASL constant folding for 6223193267Sjkimthis operator also. 6224138287Smarks 6225193267SjkimFixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 6226193267Sjkiminitialized properly -- Now zero the entire buffer in this case where the 6227193267Sjkimbuffer already exists. 6228138287Smarks 6229193267SjkimChanged the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 6230193267SjkimMilliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 6231193267Sjkimrelated code considerably. This will require changes/updates to all OS 6232193267Sjkiminterface layers (OSLs.) 6233138287Smarks 6234193267SjkimImplemented a new external interface, AcpiInstallExceptionHandler, to allow 6235193267Sjkima system exception handler to be installed. This handler is invoked upon any 6236193267Sjkimrun-time exception that occurs during control method execution. 6237138287Smarks 6238193267SjkimAdded support for the DSDT in AcpiTbFindTable. This allows the 6239138287SmarksDataTableRegion() operator to access the local copy of the DSDT. 6240138287Smarks 6241193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6242193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6243193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6244193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6245193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6246193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6247193267Sjkimthe compiler options used during generation. 6248138287Smarks 6249138287Smarks Previous Release: 6250138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6251138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6252138287Smarks Current Release: 6253138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 6254138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 6255138287Smarks 6256138287Smarks 6257138287Smarks2) iASL Compiler/Disassembler: 6258138287Smarks 6259193267SjkimFixed a problem with constant folding and the LNot operator. LNot was 6260193267Sjkimreturning 1 in the TRUE case, not Ones as per the ACPI specification. This 6261193267Sjkimcould result in the generation of an incorrect folded/reduced constant. 6262138287Smarks 6263193267SjkimEnd-Of-File is now allowed within a "//"-style comment. A parse error no 6264193267Sjkimlonger occurs if such a comment is at the very end of the input ASL source 6265193267Sjkimfile. 6266138287Smarks 6267193267SjkimImplemented the "-r" option to override the Revision in the table header. 6268193267SjkimThe initial use of this option will be to simplify the evaluation of the AML 6269193267Sjkiminterpreter by allowing a single ASL source module to be compiled for either 6270193267Sjkim32-bit or 64-bit integers. 6271138287Smarks 6272138287Smarks 6273138287Smarks---------------------------------------- 6274138287Smarks27 August 2004. Summary of changes for version 20040827: 6275138287Smarks 6276138287Smarks1) ACPI CA Core Subsystem: 6277138287Smarks 6278193267Sjkim- Implemented support for implicit object conversion in the non-numeric 6279193267Sjkimlogical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 6280193267SjkimLNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 6281193267Sjkimthe second operand is implicitly converted on the fly to match the type of 6282193267Sjkimthe first operand. For example: 6283138287Smarks 6284138287Smarks LEqual (Source1, Source2) 6285138287Smarks 6286193267SjkimSource1 and Source2 must each evaluate to an integer, a string, or a buffer. 6287193267SjkimThe data type of Source1 dictates the required type of Source2. Source2 is 6288193267Sjkimimplicitly converted if necessary to match the type of Source1. 6289138287Smarks 6290193267Sjkim- Updated and corrected the behavior of the string conversion support. The 6291193267Sjkimrules concerning conversion of buffers to strings (according to the ACPI 6292193267Sjkimspecification) are as follows: 6293138287Smarks 6294193267SjkimToDecimalString - explicit byte-wise conversion of buffer to string of 6295193267Sjkimdecimal values (0-255) separated by commas. ToHexString - explicit byte-wise 6296193267Sjkimconversion of buffer to string of hex values (0-FF) separated by commas. 6297193267SjkimToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 6298193267Sjkimcopy with no transform except NULL terminated. Any other implicit buffer-to- 6299193267Sjkimstring conversion - byte-wise conversion of buffer to string of hex values 6300193267Sjkim(0-FF) separated by spaces. 6301138287Smarks 6302138287Smarks- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 6303138287Smarks 6304193267Sjkim- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 6305193267Sjkimone byte too short in the case of a node in the root scope. This could 6306193267Sjkimcause a fault during debug output. 6307138287Smarks 6308193267Sjkim- Code and Data Size: Current and previous core subsystem library sizes are 6309193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6310193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6311193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6312193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6313193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6314193267Sjkimthe compiler options used during generation. 6315138287Smarks 6316138287Smarks Previous Release: 6317138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6318138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6319138287Smarks Current Release: 6320138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 6321138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 6322138287Smarks 6323138287Smarks 6324138287Smarks2) iASL Compiler/Disassembler: 6325138287Smarks 6326138287Smarks- Fixed a Linux generation error. 6327138287Smarks 6328138287Smarks 6329138287Smarks---------------------------------------- 6330138287Smarks16 August 2004. Summary of changes for version 20040816: 6331138287Smarks 6332138287Smarks1) ACPI CA Core Subsystem: 6333138287Smarks 6334193267SjkimDesigned and implemented support within the AML interpreter for the so- 6335193267Sjkimcalled "implicit return". This support returns the result of the last ASL 6336193267Sjkimoperation within a control method, in the absence of an explicit Return() 6337193267Sjkimoperator. A few machines depend on this behavior, even though it is not 6338193267Sjkimexplicitly supported by the ASL language. It is optional support that can 6339193267Sjkimbe enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 6340138287Smarks 6341193267SjkimRemoved support for the PCI_Config address space from the internal low level 6342193267Sjkimhardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 6343193267Sjkimsupport was not used internally, and would not work correctly anyway because 6344193267Sjkimthe PCI bus number and segment number were not supported. There are 6345193267Sjkimseparate interfaces for PCI configuration space access because of the unique 6346138287Smarksinterface. 6347138287Smarks 6348193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6349193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6350193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6351193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6352193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6353193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6354193267Sjkimthe compiler options used during generation. 6355138287Smarks 6356138287Smarks Previous Release: 6357138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6358138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6359138287Smarks Current Release: 6360138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 6361138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 6362138287Smarks 6363138287Smarks 6364138287Smarks2) iASL Compiler/Disassembler: 6365138287Smarks 6366193267SjkimFixed a problem where constants in ASL expressions at the root level (not 6367193267Sjkimwithin a control method) could be inadvertently truncated during code 6368193267Sjkimgeneration. This problem was introduced in the 20040715 release. 6369138287Smarks 6370138287Smarks 6371138287Smarks---------------------------------------- 6372138287Smarks15 July 2004. Summary of changes for version 20040715: 6373138287Smarks 6374138287Smarks1) ACPI CA Core Subsystem: 6375138287Smarks 6376193267SjkimRestructured the internal HW GPE interfaces to pass/track the current state 6377193267Sjkimof interrupts (enabled/disabled) in order to avoid possible deadlock and 6378193267Sjkimincrease flexibility of the interfaces. 6379138287Smarks 6380193267SjkimImplemented a "lexicographical compare" for String and Buffer objects within 6381193267Sjkimthe logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 6382193267Sjkimas per further clarification to the ACPI specification. Behavior is similar 6383193267Sjkimto C library "strcmp". 6384138287Smarks 6385193267SjkimCompleted a major reduction in CPU stack use for the AcpiGetFirmwareTable 6386193267Sjkimexternal function. In the 32-bit non-debug case, the stack use has been 6387193267Sjkimreduced from 168 bytes to 32 bytes. 6388138287Smarks 6389193267SjkimDeployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 6390193267Sjkimwhose purpose is to allow the AML interpreter to forgive certain bad AML 6391193267Sjkimconstructs. Default setting is FALSE. 6392138287Smarks 6393193267SjkimImplemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 6394193267Sjkimsupport code. If enabled, it allows field access to go beyond the end of a 6395193267Sjkimregion definition if the field is within the region length rounded up to the 6396193267Sjkimnext access width boundary (a common coding error.) 6397138287Smarks 6398193267SjkimRenamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 6399193267SjkimACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 6400193267Sjkimsymbols are lowercased by the latest version of the AcpiSrc tool. 6401138287Smarks 6402193267SjkimThe prototypes for the PCI interfaces in acpiosxf.h have been updated to 6403193267Sjkimrename "Register" to simply "Reg" to prevent certain compilers from 6404193267Sjkimcomplaining. 6405138287Smarks 6406193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6407193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6408193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6409193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6410193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6411193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6412193267Sjkimthe compiler options used during generation. 6413138287Smarks 6414138287Smarks Previous Release: 6415138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6416138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6417138287Smarks Current Release: 6418138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 6419138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 6420138287Smarks 6421138287Smarks 6422138287Smarks2) iASL Compiler/Disassembler: 6423138287Smarks 6424193267SjkimImplemented full support for Package objects within the Case() operator. 6425193267SjkimNote: The Break() operator is currently not supported within Case blocks 6426193267Sjkim(TermLists) as there is some question about backward compatibility with ACPI 6427193267Sjkim1.0 interpreters. 6428138287Smarks 6429167802Sjkim 6430193267SjkimFixed a problem where complex terms were not supported properly within the 6431193267SjkimSwitch() operator. 6432138287Smarks 6433193267SjkimEliminated extraneous warning for compiler-emitted reserved names of the 6434193267Sjkimform "_T_x". (Used in Switch/Case operators.) 6435138287Smarks 6436193267SjkimEliminated optimization messages for "_T_x" objects and small constants 6437193267Sjkimwithin the DefinitionBlock operator. 6438138287Smarks 6439138287Smarks 6440138287Smarks---------------------------------------- 6441138287Smarks15 June 2004. Summary of changes for version 20040615: 6442138287Smarks 6443138287Smarks1) ACPI CA Core Subsystem: 6444138287Smarks 6445193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 6446193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6447193267SjkimLLessEqual. 6448138287Smarks 6449193267SjkimAll directory names in the entire source package are lower case, as they 6450193267Sjkimwere in earlier releases. 6451138287Smarks 6452193267SjkimImplemented "Disassemble" command in the AML debugger that will disassemble 6453193267Sjkima single control method. 6454138287Smarks 6455193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6456193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6457193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6458193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6459193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6460193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6461193267Sjkimthe compiler options used during generation. 6462138287Smarks 6463138287Smarks Previous Release: 6464138287Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6465138287Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6466167802Sjkim 6467138287Smarks Current Release: 6468138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 6469138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 6470138287Smarks 6471138287Smarks 6472138287Smarks2) iASL Compiler/Disassembler: 6473138287Smarks 6474193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 6475193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 6476193267SjkimLLessEqual. 6477138287Smarks 6478193267SjkimAll directory names in the entire source package are lower case, as they 6479193267Sjkimwere in earlier releases. 6480138287Smarks 6481193267SjkimFixed a fault when using the -g or -d<nofilename> options if the FADT was 6482193267Sjkimnot found. 6483138287Smarks 6484193267SjkimFixed an issue with the Windows version of the compiler where later versions 6485193267Sjkimof Windows place the FADT in the registry under the name "FADT" and not 6486193267Sjkim"FACP" as earlier versions did. This applies when using the -g or - 6487193267Sjkimd<nofilename> options. The compiler now looks for both strings as 6488193267Sjkimnecessary. 6489138287Smarks 6490193267SjkimFixed a problem with compiler namepath optimization where a namepath within 6491193267Sjkimthe Scope() operator could not be optimized if the namepath was a subpath of 6492193267Sjkimthe current scope path. 6493138287Smarks 6494138287Smarks---------------------------------------- 6495131440Smarks27 May 2004. Summary of changes for version 20040527: 6496131440Smarks 6497131440Smarks1) ACPI CA Core Subsystem: 6498131440Smarks 6499193267SjkimCompleted a new design and implementation for EBDA (Extended BIOS Data Area) 6500193267Sjkimsupport in the RSDP scan code. The original code improperly scanned for the 6501193267SjkimEBDA by simply scanning from memory location 0 to 0x400. The correct method 6502193267Sjkimis to first obtain the EBDA pointer from within the BIOS data area, then 6503193267Sjkimscan 1K of memory starting at the EBDA pointer. There appear to be few if 6504131440Smarksany machines that place the RSDP in the EBDA, however. 6505131440Smarks 6506193267SjkimIntegrated a fix for a possible fault during evaluation of BufferField 6507193267Sjkimarguments. Obsolete code that was causing the problem was removed. 6508131440Smarks 6509193267SjkimFound and fixed a problem in the Field Support Code where data could be 6510193267Sjkimcorrupted on a bit field read that starts on an aligned boundary but does 6511193267Sjkimnot end on an aligned boundary. Merged the read/write "datum length" 6512193267Sjkimcalculation code into a common procedure. 6513131440Smarks 6514131440SmarksRolled in a couple of changes to the FreeBSD-specific header. 6515131440Smarks 6516167802Sjkim 6517193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6518193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6519193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6520193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6521193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6522193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6523193267Sjkimthe compiler options used during generation. 6524131440Smarks 6525131440Smarks Previous Release: 6526131440Smarks Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6527131440Smarks Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6528131440Smarks Current Release: 6529131440Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 6530131440Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 6531131440Smarks 6532131440Smarks 6533131440Smarks2) iASL Compiler/Disassembler: 6534131440Smarks 6535193267SjkimFixed a generation warning produced by some overly-verbose compilers for a 6536193267Sjkim64-bit constant. 6537131440Smarks 6538131440Smarks---------------------------------------- 6539129684Snjl14 May 2004. Summary of changes for version 20040514: 6540129684Snjl 6541129684Snjl1) ACPI CA Core Subsystem: 6542129684Snjl 6543193267SjkimFixed a problem where hardware GPE enable bits sometimes not set properly 6544193267Sjkimduring and after GPE method execution. Result of 04/27 changes. 6545129684Snjl 6546129684SnjlRemoved extra "clear all GPEs" when sleeping/waking. 6547129684Snjl 6548193267SjkimRemoved AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 6549193267SjkimAcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 6550193267Sjkimthe new AcpiEv* calls as appropriate. 6551129684Snjl 6552193267SjkimACPI_OS_NAME was removed from the OS-specific headers. The default name is 6553193267Sjkimnow "Microsoft Windows NT" for maximum compatibility. However this can be 6554193267Sjkimchanged by modifying the acconfig.h file. 6555129684Snjl 6556193267SjkimAllow a single invocation of AcpiInstallNotifyHandler for a handler that 6557193267Sjkimtraps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 6558129684Snjl 6559193267SjkimRun _INI methods on ThermalZone objects. This is against the ACPI 6560193267Sjkimspecification, but there is apparently ASL code in the field that has these 6561193267Sjkim_INI methods, and apparently "other" AML interpreters execute them. 6562129684Snjl 6563193267SjkimPerformed a full 16/32/64 bit lint that resulted in some small changes. 6564129684Snjl 6565193267SjkimAdded a sleep simulation command to the AML debugger to test sleep code. 6566129684Snjl 6567193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6568193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6569193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6570193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6571193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6572193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6573193267Sjkimthe compiler options used during generation. 6574129684Snjl 6575129684Snjl Previous Release: 6576129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6577129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6578129684Snjl Current Release: 6579129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6580129684Snjl Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 6581129684Snjl 6582129684Snjl---------------------------------------- 6583129684Snjl27 April 2004. Summary of changes for version 20040427: 6584129684Snjl 6585129684Snjl1) ACPI CA Core Subsystem: 6586129684Snjl 6587193267SjkimCompleted a major overhaul of the GPE handling within ACPI CA. There are 6588193267Sjkimnow three types of GPEs: wake-only, runtime-only, and combination wake/run. 6589193267SjkimThe only GPEs allowed to be combination wake/run are for button-style 6590193267Sjkimdevices such as a control-method power button, control-method sleep button, 6591193267Sjkimor a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 6592193267Sjkimreferenced by any _PRW methods are marked for "runtime" and hardware 6593193267Sjkimenabled. Any GPE that is referenced by a _PRW method is marked for "wake" 6594193267Sjkim(and disabled at runtime). However, at sleep time, only those GPEs that 6595193267Sjkimhave been specifically enabled for wake via the AcpiEnableGpe interface will 6596193267Sjkimactually be hardware enabled. 6597129684Snjl 6598193267SjkimA new external interface has been added, AcpiSetGpeType(), that is meant to 6599193267Sjkimbe used by device drivers to force a GPE to a particular type. It will be 6600193267Sjkimespecially useful for the drivers for the button devices mentioned above. 6601129684Snjl 6602193267SjkimCompleted restructuring of the ACPI CA initialization sequence so that 6603193267Sjkimdefault operation region handlers are installed before GPEs are initialized 6604193267Sjkimand the _PRW methods are executed. This will prevent errors when the _PRW 6605193267Sjkimmethods attempt to access system memory or I/O space. 6606129684Snjl 6607193267SjkimGPE enable/disable no longer reads the GPE enable register. We now keep the 6608193267Sjkimenable info for runtime and wake separate and in the GPE_EVENT_INFO. We 6609193267Sjkimthus no longer depend on the hardware to maintain these bits. 6610129684Snjl 6611193267SjkimAlways clear the wake status and fixed/GPE status bits before sleep, even 6612193267Sjkimfor state S5. 6613129684Snjl 6614193267SjkimImproved the AML debugger output for displaying the GPE blocks and their 6615193267Sjkimcurrent status. 6616129684Snjl 6617193267SjkimAdded new strings for the _OSI method, of the form "Windows 2001 SPx" where 6618193267Sjkimx = 0,1,2,3,4. 6619129684Snjl 6620193267SjkimFixed a problem where the physical address was incorrectly calculated when 6621193267Sjkimthe Load() operator was used to directly load from an Operation Region (vs. 6622193267Sjkimloading from a Field object.) Also added check for minimum table length for 6623193267Sjkimthis case. 6624129684Snjl 6625193267SjkimFix for multiple mutex acquisition. Restore original thread SyncLevel on 6626193267Sjkimmutex release. 6627129684Snjl 6628193267SjkimAdded ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 6629129684Snjlconsistency with the other fields returned. 6630129684Snjl 6631193267SjkimShrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 6632193267Sjkimstructure for each GPE in the system, so the size of this structure is 6633193267Sjkimimportant. 6634129684Snjl 6635193267SjkimCPU stack requirement reduction: Cleaned up the method execution and object 6636193267Sjkimevaluation paths so that now a parameter structure is passed, instead of 6637193267Sjkimcopying the various method parameters over and over again. 6638129684Snjl 6639193267SjkimIn evregion.c: Correctly exit and reenter the interpreter region if and 6640193267Sjkimonly if dispatching an operation region request to a user-installed handler. 6641193267SjkimDo not exit/reenter when dispatching to a default handler (e.g., default 6642193267Sjkimsystem memory or I/O handlers) 6643129684Snjl 6644129684Snjl 6645193267SjkimNotes for updating drivers for the new GPE support. The following changes 6646193267Sjkimmust be made to ACPI-related device drivers that are attached to one or more 6647193267SjkimGPEs: (This information will be added to the ACPI CA Programmer Reference.) 6648129684Snjl 6649193267Sjkim1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 6650193267Sjkimexplicitly call AcpiEnableGpe. 6651193267Sjkim2) There is a new interface called AcpiSetGpeType. This should be called 6652193267Sjkimbefore enabling the GPE. Also, this interface will automatically disable 6653193267Sjkimthe GPE if it is currently enabled. 6654129684Snjl3) AcpiEnableGpe no longer supports a GPE type flag. 6655129684Snjl 6656129684SnjlSpecific drivers that must be changed: 6657129684Snjl1) EC driver: 6658193267Sjkim AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 6659129684SnjlAeGpeHandler, NULL); 6660129684Snjl AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 6661129684Snjl AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 6662129684Snjl 6663129684Snjl2) Button Drivers (Power, Lid, Sleep): 6664129684SnjlRun _PRW method under parent device 6665129684SnjlIf _PRW exists: /* This is a control-method button */ 6666129684Snjl Extract GPE number and possibly GpeDevice 6667129684Snjl AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 6668129684Snjl AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 6669129684Snjl 6670193267SjkimFor all other devices that have _PRWs, we automatically set the GPE type to 6671193267SjkimACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 6672193267Sjkimmust be done on a selective basis, usually requiring some kind of user app 6673193267Sjkimto allow the user to pick the wake devices. 6674129684Snjl 6675129684Snjl 6676193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6677193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6678193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6679193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6680193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6681193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6682193267Sjkimthe compiler options used during generation. 6683129684Snjl 6684129684Snjl Previous Release: 6685129684Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 6686129684Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 6687129684Snjl Current Release: 6688167802Sjkim 6689129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 6690129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 6691129684Snjl 6692129684Snjl 6693129684Snjl 6694129684Snjl---------------------------------------- 6695128212Snjl02 April 2004. Summary of changes for version 20040402: 6696128212Snjl 6697128212Snjl1) ACPI CA Core Subsystem: 6698128212Snjl 6699193267SjkimFixed an interpreter problem where an indirect store through an ArgX 6700193267Sjkimparameter was incorrectly applying the "implicit conversion rules" during 6701193267Sjkimthe store. From the ACPI specification: "If the target is a method local or 6702193267Sjkimargument (LocalX or ArgX), no conversion is performed and the result is 6703193267Sjkimstored directly to the target". The new behavior is to disable implicit 6704193267Sjkimconversion during ALL stores to an ArgX. 6705128212Snjl 6706193267SjkimChanged the behavior of the _PRW method scan to ignore any and all errors 6707193267Sjkimreturned by a given _PRW. This prevents the scan from aborting from the 6708193267Sjkimfailure of any single _PRW. 6709128212Snjl 6710193267SjkimMoved the runtime configuration parameters from the global init procedure to 6711193267Sjkimstatic variables in acglobal.h. This will allow the host to override the 6712193267Sjkimdefault values easily. 6713128212Snjl 6714193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6715193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6716193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6717193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6718193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6719193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6720193267Sjkimthe compiler options used during generation. 6721128212Snjl 6722128212Snjl Previous Release: 6723128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 6724128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 6725128212Snjl Current Release: 6726128212Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 6727128212Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 6728128212Snjl 6729128212Snjl 6730128212Snjl2) iASL Compiler/Disassembler: 6731128212Snjl 6732193267SjkimiASL now fully disassembles SSDTs. However, External() statements are not 6733193267Sjkimgenerated automatically for unresolved symbols at this time. This is a 6734193267Sjkimplanned feature for future implementation. 6735128212Snjl 6736193267SjkimFixed a scoping problem in the disassembler that occurs when the type of the 6737193267Sjkimtarget of a Scope() operator is overridden. This problem caused an 6738193267Sjkimincorrectly nested internal namespace to be constructed. 6739128212Snjl 6740193267SjkimAny warnings or errors that are emitted during disassembly are now commented 6741193267Sjkimout automatically so that the resulting file can be recompiled without any 6742193267Sjkimhand editing. 6743128212Snjl 6744128212Snjl---------------------------------------- 6745128212Snjl26 March 2004. Summary of changes for version 20040326: 6746128212Snjl 6747128212Snjl1) ACPI CA Core Subsystem: 6748128212Snjl 6749193267SjkimImplemented support for "wake" GPEs via interaction between GPEs and the 6750193267Sjkim_PRW methods. Every GPE that is pointed to by one or more _PRWs is 6751193267Sjkimidentified as a WAKE GPE and by default will no longer be enabled at 6752193267Sjkimruntime. Previously, we were blindly enabling all GPEs with a corresponding 6753193267Sjkim_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 6754193267Sjkimbelieve this has been the cause of thousands of "spurious" GPEs on some 6755128212Snjlsystems. 6756128212Snjl 6757193267SjkimThis new GPE behavior is can be reverted to the original behavior (enable 6758193267SjkimALL GPEs at runtime) via a runtime flag. 6759128212Snjl 6760193267SjkimFixed a problem where aliased control methods could not access objects 6761193267Sjkimproperly. The proper scope within the namespace was not initialized 6762193267Sjkim(transferred to the target of the aliased method) before executing the 6763193267Sjkimtarget method. 6764128212Snjl 6765193267SjkimFixed a potential race condition on internal object deletion on the return 6766193267Sjkimobject in AcpiEvaluateObject. 6767128212Snjl 6768193267SjkimIntegrated a fix for resource descriptors where both _MEM and _MTP were 6769193267Sjkimbeing extracted instead of just _MEM. (i.e. bitmask was incorrectly too 6770193267Sjkimwide, 0x0F instead of 0x03.) 6771128212Snjl 6772193267SjkimAdded a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 6773193267Sjkimfault in some cases. 6774128212Snjl 6775128212SnjlUpdated Notify() values for debug statements in evmisc.c 6776128212Snjl 6777193267SjkimReturn proper status from AcpiUtMutexInitialize, not just simply AE_OK. 6778128212Snjl 6779193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6780193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6781193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6782193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6783193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6784193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6785193267Sjkimthe compiler options used during generation. 6786128212Snjl 6787128212Snjl Previous Release: 6788167802Sjkim 6789128212Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 6790128212Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 6791128212Snjl Current Release: 6792128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 6793128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 6794128212Snjl 6795128212Snjl---------------------------------------- 6796127175Snjl11 March 2004. Summary of changes for version 20040311: 6797127175Snjl 6798127175Snjl1) ACPI CA Core Subsystem: 6799127175Snjl 6800193267SjkimFixed a problem where errors occurring during the parse phase of control 6801193267Sjkimmethod execution did not abort cleanly. For example, objects created and 6802193267Sjkiminstalled in the namespace were not deleted. This caused all subsequent 6803193267Sjkiminvocations of the method to return the AE_ALREADY_EXISTS exception. 6804127175Snjl 6805193267SjkimImplemented a mechanism to force a control method to "Serialized" execution 6806193267Sjkimif the method attempts to create namespace objects. (The root of the 6807193267SjkimAE_ALREADY_EXISTS problem.) 6808127175Snjl 6809193267SjkimImplemented support for the predefined _OSI "internal" control method. 6810193267SjkimInitial supported strings are "Linux", "Windows 2000", "Windows 2001", and 6811193267Sjkim"Windows 2001.1", and can be easily upgraded for new strings as necessary. 6812193267SjkimThis feature will allow "other" operating systems to execute the fully 6813193267Sjkimtested, "Windows" code path through the ASL code 6814127175Snjl 6815193267SjkimGlobal Lock Support: Now allows multiple acquires and releases with any 6816193267Sjkiminternal thread. Removed concept of "owning thread" for this special mutex. 6817127175Snjl 6818193267SjkimFixed two functions that were inappropriately declaring large objects on the 6819193267SjkimCPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 6820193267Sjkimmethod execution considerably. 6821127175Snjl 6822193267SjkimFixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 6823193267SjkimS4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 6824127175Snjl 6825193267SjkimFixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 6826193267Sjkimdefined on the machine. 6827127175Snjl 6828193267SjkimImplemented two runtime options: One to force all control method execution 6829193267Sjkimto "Serialized" to mimic Windows behavior, another to disable _OSI support 6830193267Sjkimif it causes problems on a given machine. 6831127175Snjl 6832193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 6833193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 6834193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 6835193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 6836193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 6837193267Sjkimthat these values will vary depending on the efficiency of the compiler and 6838193267Sjkimthe compiler options used during generation. 6839127175Snjl 6840127175Snjl Previous Release: 6841127175Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 6842127175Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 6843127175Snjl Current Release: 6844127175Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 6845127175Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 6846127175Snjl 6847127175Snjl2) iASL Compiler/Disassembler: 6848127175Snjl 6849193267SjkimFixed an array size problem for FreeBSD that would cause the compiler to 6850193267Sjkimfault. 6851127175Snjl 6852127175Snjl---------------------------------------- 6853126372Snjl20 February 2004. Summary of changes for version 20040220: 6854126372Snjl 6855167802Sjkim 6856126372Snjl1) ACPI CA Core Subsystem: 6857126372Snjl 6858193267SjkimImplemented execution of _SxD methods for Device objects in the 6859126372SnjlGetObjectInfo interface. 6860126372Snjl 6861126372SnjlFixed calls to _SST method to pass the correct arguments. 6862126372Snjl 6863126372SnjlAdded a call to _SST on wake to restore to "working" state. 6864126372Snjl 6865193267SjkimCheck for End-Of-Buffer failure case in the WalkResources interface. 6866126372Snjl 6867193267SjkimIntegrated fix for 64-bit alignment issue in acglobal.h by moving two 6868193267Sjkimstructures to the beginning of the file. 6869126372Snjl 6870126372SnjlAfter wake, clear GPE status register(s) before enabling GPEs. 6871126372Snjl 6872193267SjkimAfter wake, clear/enable power button. (Perhaps we should clear/enable all 6873193267Sjkimfixed events upon wake.) 6874126372Snjl 6875126372SnjlFixed a couple of possible memory leaks in the Namespace manager. 6876126372Snjl 6877126372SnjlIntegrated latest acnetbsd.h file. 6878126372Snjl 6879126372Snjl---------------------------------------- 6880126372Snjl11 February 2004. Summary of changes for version 20040211: 6881126372Snjl 6882167802Sjkim 6883126372Snjl1) ACPI CA Core Subsystem: 6884126372Snjl 6885193267SjkimCompleted investigation and implementation of the call-by-reference 6886193267Sjkimmechanism for control method arguments. 6887126372Snjl 6888193267SjkimFixed a problem where a store of an object into an indexed package could 6889193267Sjkimfail if the store occurs within a different method than the method that 6890193267Sjkimcreated the package. 6891126372Snjl 6892193267SjkimFixed a problem where the ToDecimal operator could return incorrect results. 6893126372Snjl 6894193267SjkimFixed a problem where the CopyObject operator could fail on some of the more 6895193267Sjkimobscure objects (e.g., Reference objects.) 6896126372Snjl 6897193267SjkimImproved the output of the Debug object to display buffer, package, and 6898193267Sjkimindex objects. 6899126372Snjl 6900193267SjkimFixed a problem where constructs of the form "RefOf (ArgX)" did not return 6901193267Sjkimthe expected result. 6902126372Snjl 6903193267SjkimAdded permanent ACPI_REPORT_ERROR macros for all instances of the 6904126372SnjlACPI_AML_INTERNAL exception. 6905126372Snjl 6906126372SnjlIntegrated latest version of acfreebsd.h 6907126372Snjl 6908126372Snjl---------------------------------------- 6909126372Snjl16 January 2004. Summary of changes for version 20040116: 6910126372Snjl 6911193267SjkimThe purpose of this release is primarily to update the copyright years in 6912193267Sjkimeach module, thus causing a huge number of diffs. There are a few small 6913193267Sjkimfunctional changes, however. 6914126372Snjl 6915126372Snjl1) ACPI CA Core Subsystem: 6916126372Snjl 6917193267SjkimImproved error messages when there is a problem finding one or more of the 6918193267Sjkimrequired base ACPI tables 6919126372Snjl 6920126372SnjlReintroduced the definition of APIC_HEADER in actbl.h 6921126372Snjl 6922126372SnjlChanged definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 6923126372Snjl 6924126372SnjlRemoved extraneous reference to NewObj in dsmthdat.c 6925126372Snjl 6926126372Snjl2) iASL compiler 6927126372Snjl 6928193267SjkimFixed a problem introduced in December that disabled the correct disassembly 6929193267Sjkimof Resource Templates 6930126372Snjl 6931126372Snjl 6932126372Snjl---------------------------------------- 6933126372Snjl03 December 2003. Summary of changes for version 20031203: 6934126372Snjl 6935126372Snjl1) ACPI CA Core Subsystem: 6936126372Snjl 6937126372SnjlChanged the initialization of Operation Regions during subsystem 6938126372Snjlinit to perform two entire walks of the ACPI namespace; The first 6939126372Snjlto initialize the regions themselves, the second to execute the 6940126372Snjl_REG methods. This fixed some interdependencies across _REG 6941126372Snjlmethods found on some machines. 6942126372Snjl 6943126372SnjlFixed a problem where a Store(Local0, Local1) could simply update 6944126372Snjlthe object reference count, and not create a new copy of the 6945126372Snjlobject if the Local1 is uninitialized. 6946126372Snjl 6947126372SnjlImplemented support for the _SST reserved method during sleep 6948126372Snjltransitions. 6949126372Snjl 6950126372SnjlImplemented support to clear the SLP_TYP and SLP_EN bits when 6951126372Snjlwaking up, this is apparently required by some machines. 6952126372Snjl 6953193267SjkimWhen sleeping, clear the wake status only if SleepState is not S5. 6954126372Snjl 6955126372SnjlFixed a problem in AcpiRsExtendedIrqResource() where an incorrect 6956126372Snjlpointer arithmetic advanced a string pointer too far. 6957126372Snjl 6958126372SnjlFixed a problem in AcpiTbGetTablePtr() where a garbage pointer 6959126372Snjlcould be returned if the requested table has not been loaded. 6960126372Snjl 6961193267SjkimWithin the support for IRQ resources, restructured the handling of 6962126372Snjlthe active and edge/level bits. 6963126372Snjl 6964126372SnjlFixed a few problems in AcpiPsxExecute() where memory could be 6965126372Snjlleaked under certain error conditions. 6966126372Snjl 6967126372SnjlImproved error messages for the cases where the ACPI mode could 6968126372Snjlnot be entered. 6969126372Snjl 6970126372SnjlCode and Data Size: Current and previous core subsystem library 6971126372Snjlsizes are shown below. These are the code and data sizes for the 6972126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6973126372Snjlthese values do not include any ACPI driver or OSPM code. The 6974126372Snjldebug version of the code includes the debug output trace 6975126372Snjlmechanism and has a much larger code and data size. Note that 6976193267Sjkimthese values will vary depending on the efficiency of the compiler 6977126372Snjland the compiler options used during generation. 6978126372Snjl 6979126372Snjl Previous Release (20031029): 6980126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 6981126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 6982126372Snjl Current Release: 6983126372Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 6984126372Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 6985126372Snjl 6986126372Snjl2) iASL Compiler/Disassembler: 6987126372Snjl 6988126372SnjlImplemented a fix for the iASL disassembler where a bad index was 6989126372Snjlgenerated. This was most noticeable on 64-bit platforms 6990126372Snjl 6991126372Snjl 6992126372Snjl---------------------------------------- 6993126372Snjl29 October 2003. Summary of changes for version 20031029: 6994126372Snjl 6995126372Snjl1) ACPI CA Core Subsystem: 6996126372Snjl 6997167802Sjkim 6998126372SnjlFixed a problem where a level-triggered GPE with an associated 6999126372Snjl_Lxx control method was incorrectly cleared twice. 7000126372Snjl 7001126372SnjlFixed a problem with the Field support code where an access can 7002126372Snjloccur beyond the end-of-region if the field is non-aligned but 7003126372Snjlextends to the very end of the parent region (resulted in an 7004126372SnjlAE_AML_REGION_LIMIT exception.) 7005126372Snjl 7006126372SnjlFixed a problem with ACPI Fixed Events where an RT Clock handler 7007193267Sjkimwould not get invoked on an RTC event. The RTC event bitmasks for 7008126372Snjlthe PM1 registers were not being initialized properly. 7009126372Snjl 7010126372SnjlImplemented support for executing _STA and _INI methods for 7011126372SnjlProcessor objects. Although this is currently not part of the 7012193267SjkimACPI specification, there is existing ASL code that depends on the 7013126372Snjlinit-time execution of these methods. 7014126372Snjl 7015126372SnjlImplemented and deployed a GetDescriptorName function to decode 7016126372Snjlthe various types of internal descriptors. Guards against null 7017126372Snjldescriptors during debug output also. 7018126372Snjl 7019126372SnjlImplemented and deployed a GetNodeName function to extract the 4- 7020193267Sjkimcharacter namespace node name. This function simplifies the debug 7021193267Sjkimand error output, as well as guarding against null pointers during 7022126372Snjloutput. 7023126372Snjl 7024126372SnjlImplemented and deployed the ACPI_FORMAT_UINT64 helper macro to 7025126372Snjlsimplify the debug and error output of 64-bit integers. This 7026126372Snjlmacro replaces the HIDWORD and LODWORD macros for dumping these 7027126372Snjlintegers. 7028126372Snjl 7029126372SnjlUpdated the implementation of the Stall() operator to only call 7030126372SnjlAcpiOsStall(), and also return an error if the operand is larger 7031126372Snjlthan 255. This preserves the required behavior of not 7032126372Snjlrelinquishing the processor, as would happen if AcpiOsSleep() was 7033126372Snjlcalled for "long stalls". 7034126372Snjl 7035126372SnjlConstructs of the form "Store(LocalX,LocalX)" where LocalX is not 7036126372Snjlinitialized are now treated as NOOPs. 7037126372Snjl 7038126372SnjlCleaned up a handful of warnings during 64-bit generation. 7039126372Snjl 7040126372SnjlFixed a reported error where and incorrect GPE number was passed 7041126372Snjlto the GPE dispatch handler. This value is only used for error 7042193267Sjkimoutput, however. Used this opportunity to clean up and streamline 7043126372Snjlthe GPE dispatch code. 7044126372Snjl 7045126372SnjlCode and Data Size: Current and previous core subsystem library 7046126372Snjlsizes are shown below. These are the code and data sizes for the 7047126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7048126372Snjlthese values do not include any ACPI driver or OSPM code. The 7049167802Sjkim 7050126372Snjldebug version of the code includes the debug output trace 7051126372Snjlmechanism and has a much larger code and data size. Note that 7052193267Sjkimthese values will vary depending on the efficiency of the compiler 7053126372Snjland the compiler options used during generation. 7054126372Snjl 7055126372Snjl Previous Release (20031002): 7056126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7057126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7058126372Snjl Current Release: 7059126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 7060126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 7061126372Snjl 7062126372Snjl 7063126372Snjl2) iASL Compiler/Disassembler: 7064126372Snjl 7065193267SjkimUpdated the iASL compiler to return an error if the operand to the 7066126372SnjlStall() operator is larger than 255. 7067126372Snjl 7068126372Snjl 7069126372Snjl---------------------------------------- 7070126372Snjl02 October 2003. Summary of changes for version 20031002: 7071126372Snjl 7072126372Snjl 7073126372Snjl1) ACPI CA Core Subsystem: 7074126372Snjl 7075126372SnjlFixed a problem with Index Fields where the index was not 7076126372Snjlincremented for fields that require multiple writes to the 7077126372Snjlindex/data registers (Fields that are wider than the data 7078126372Snjlregister.) 7079126372Snjl 7080126372SnjlFixed a problem with all Field objects where a write could go 7081126372Snjlbeyond the end-of-field if the field was larger than the access 7082193267Sjkimgranularity and therefore required multiple writes to complete the 7083126372Snjlrequest. An extra write beyond the end of the field could happen 7084126372Snjlinadvertently. 7085126372Snjl 7086126372SnjlFixed a problem with Index Fields where a BUFFER_OVERFLOW error 7087126372Snjlwould incorrectly be returned if the width of the Data Register 7088126372Snjlwas larger than the specified field access width. 7089126372Snjl 7090126372SnjlCompleted fixes for LoadTable() and Unload() and verified their 7091126372Snjloperation. Implemented full support for the "DdbHandle" object 7092126372Snjlthroughout the ACPI CA subsystem. 7093126372Snjl 7094126372SnjlImplemented full support for the MADT and ECDT tables in the ACPI 7095126372SnjlCA header files. Even though these tables are not directly 7096126372Snjlconsumed by ACPI CA, the header definitions are useful for ACPI 7097126372Snjldevice drivers. 7098126372Snjl 7099126372SnjlIntegrated resource descriptor fixes posted to the Linux ACPI 7100126372Snjllist. This included checks for minimum descriptor length, and 7101126372Snjlsupport for trailing NULL strings within descriptors that have 7102126372Snjloptional string elements. 7103126372Snjl 7104126372SnjlCode and Data Size: Current and previous core subsystem library 7105126372Snjlsizes are shown below. These are the code and data sizes for the 7106126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7107126372Snjlthese values do not include any ACPI driver or OSPM code. The 7108126372Snjldebug version of the code includes the debug output trace 7109126372Snjlmechanism and has a much larger code and data size. Note that 7110193267Sjkimthese values will vary depending on the efficiency of the compiler 7111126372Snjland the compiler options used during generation. 7112126372Snjl 7113126372Snjl Previous Release (20030918): 7114126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7115126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7116126372Snjl Current Release: 7117126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 7118126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 7119126372Snjl 7120126372Snjl 7121126372Snjl2) iASL Compiler: 7122126372Snjl 7123126372SnjlImplemented detection of non-ASCII characters within the input 7124126372Snjlsource ASL file. This catches attempts to compile binary (AML) 7125126372Snjlfiles early in the compile, with an informative error message. 7126126372Snjl 7127126372SnjlFixed a problem where the disassembler would fault if the output 7128193267Sjkimfilename could not be generated or if the output file could not be 7129126372Snjlopened. 7130126372Snjl 7131126372Snjl---------------------------------------- 7132126372Snjl18 September 2003. Summary of changes for version 20030918: 7133126372Snjl 7134126372Snjl 7135126372Snjl1) ACPI CA Core Subsystem: 7136126372Snjl 7137126372SnjlFound and fixed a longstanding problem with the late execution of 7138126372Snjlthe various deferred AML opcodes (such as Operation Regions, 7139126372SnjlBuffer Fields, Buffers, and Packages). If the name string 7140126372Snjlspecified for the name of the new object placed the object in a 7141126372Snjlscope other than the current scope, the initialization/execution 7142126372Snjlof the opcode failed. The solution to this problem was to 7143126372Snjlimplement a mechanism where the late execution of such opcodes 7144126372Snjldoes not attempt to lookup/create the name a second time in an 7145126372Snjlincorrect scope. This fixes the "region size computed 7146126372Snjlincorrectly" problem. 7147126372Snjl 7148193267SjkimFixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 7149126372SnjlGlobal Lock AE_BAD_PARAMETER error. 7150126372Snjl 7151126372SnjlFixed several 64-bit issues with prototypes, casting and data 7152126372Snjltypes. 7153126372Snjl 7154126372SnjlRemoved duplicate prototype from acdisasm.h 7155126372Snjl 7156126372SnjlFixed an issue involving EC Operation Region Detach (Shaohua Li) 7157126372Snjl 7158126372SnjlCode and Data Size: Current and previous core subsystem library 7159126372Snjlsizes are shown below. These are the code and data sizes for the 7160126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7161126372Snjlthese values do not include any ACPI driver or OSPM code. The 7162126372Snjldebug version of the code includes the debug output trace 7163126372Snjlmechanism and has a much larger code and data size. Note that 7164193267Sjkimthese values will vary depending on the efficiency of the compiler 7165126372Snjland the compiler options used during generation. 7166126372Snjl 7167126372Snjl Previous Release: 7168167802Sjkim 7169126372Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7170126372Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7171126372Snjl Current Release: 7172126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 7173126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 7174126372Snjl 7175126372Snjl 7176126372Snjl2) Linux: 7177126372Snjl 7178126372SnjlFixed the AcpiOsSleep implementation in osunixxf.c to pass the 7179126372Snjlcorrect sleep time in seconds. 7180126372Snjl 7181126372Snjl---------------------------------------- 7182126372Snjl14 July 2003. Summary of changes for version 20030619: 7183126372Snjl 7184126372Snjl1) ACPI CA Core Subsystem: 7185126372Snjl 7186126372SnjlParse SSDTs in order discovered, as opposed to reverse order 7187126372Snjl(Hrvoje Habjanic) 7188126372Snjl 7189126372SnjlFixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 7190126372SnjlKlausner, 7191126372Snjl Nate Lawson) 7192126372Snjl 7193126372Snjl 7194126372Snjl2) Linux: 7195126372Snjl 7196126372SnjlDynamically allocate SDT list (suggested by Andi Kleen) 7197126372Snjl 7198126372Snjlproc function return value cleanups (Andi Kleen) 7199126372Snjl 7200126372SnjlCorrectly handle NMI watchdog during long stalls (Andrew Morton) 7201126372Snjl 7202126372SnjlMake it so acpismp=force works (reported by Andrew Morton) 7203126372Snjl 7204126372Snjl 7205126372Snjl---------------------------------------- 7206117521Snjl19 June 2003. Summary of changes for version 20030619: 7207117521Snjl 7208117521Snjl1) ACPI CA Core Subsystem: 7209117521Snjl 7210193267SjkimFix To/FromBCD, eliminating the need for an arch-specific #define. 7211117521Snjl 7212117521SnjlDo not acquire a semaphore in the S5 shutdown path. 7213117521Snjl 7214117521SnjlFix ex_digits_needed for 0. (Takayoshi Kochi) 7215117521Snjl 7216117521SnjlFix sleep/stall code reversal. (Andi Kleen) 7217117521Snjl 7218117521SnjlRevert a change having to do with control method calling 7219117521Snjlsemantics. 7220117521Snjl 7221117521Snjl2) Linux: 7222117521Snjl 7223117521Snjlacpiphp update (Takayoshi Kochi) 7224117521Snjl 7225117521SnjlExport acpi_disabled for sonypi (Stelian Pop) 7226117521Snjl 7227117521SnjlMention acpismp=force in config help 7228117521Snjl 7229117521SnjlRe-add acpitable.c and acpismp=force. This improves backwards 7230167802Sjkim 7231193267Sjkimcompatibility and also cleans up the code to a significant degree. 7232117521Snjl 7233117521SnjlAdd ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 7234117521Snjl 7235117521Snjl---------------------------------------- 7236117521Snjl22 May 2003. Summary of changes for version 20030522: 7237117521Snjl 7238117521Snjl1) ACPI CA Core Subsystem: 7239117521Snjl 7240117521SnjlFound and fixed a reported problem where an AE_NOT_FOUND error 7241117521Snjloccurred occasionally during _BST evaluation. This turned out to 7242117521Snjlbe an Owner ID allocation issue where a called method did not get 7243193267Sjkima new ID assigned to it. Eventually, (after 64k calls), the Owner 7244193267SjkimID UINT16 would wraparound so that the ID would be the same as the 7245126372Snjlcaller's and the called method would delete the caller's 7246117521Snjlnamespace. 7247117521Snjl 7248117521SnjlImplemented extended error reporting for control methods that are 7249117521Snjlaborted due to a run-time exception. Output includes the exact 7250193267SjkimAML instruction that caused the method abort, a dump of the method 7251126372Snjllocals and arguments at the time of the abort, and a trace of all 7252126372Snjlnested control method calls. 7253117521Snjl 7254117521SnjlModified the interpreter to allow the creation of buffers of zero 7255117521Snjllength from the AML code. Implemented new code to ensure that no 7256117521Snjlattempt is made to actually allocate a memory buffer (of length 7257193267Sjkimzero) - instead, a simple buffer object with a NULL buffer pointer 7258126372Snjland length zero is created. A warning is no longer issued when 7259126372Snjlthe AML attempts to create a zero-length buffer. 7260117521Snjl 7261117521SnjlImplemented a workaround for the "leading asterisk issue" in 7262117521Snjl_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 7263117521Snjlasterisk is automatically removed if present in any HID, UID, or 7264117521SnjlCID strings. The iASL compiler will still flag this asterisk as 7265117521Snjlan error, however. 7266117521Snjl 7267193267SjkimImplemented full support for _CID methods that return a package of 7268193267Sjkimmultiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 7269126372Snjlnow additionally returns a device _CID list if present. This 7270126372Snjlrequired a change to the external interface in order to pass an 7271126372SnjlACPI_BUFFER object as a parameter since the _CID list is of 7272117521Snjlvariable length. 7273117521Snjl 7274117521SnjlFixed a problem with the new AE_SAME_HANDLER exception where 7275117521Snjlhandler initialization code did not know about this exception. 7276117521Snjl 7277117521SnjlCode and Data Size: Current and previous core subsystem library 7278117521Snjlsizes are shown below. These are the code and data sizes for the 7279117521Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 7280117521Snjlthese values do not include any ACPI driver or OSPM code. The 7281117521Snjldebug version of the code includes the debug output trace 7282117521Snjlmechanism and has a much larger code and data size. Note that 7283193267Sjkimthese values will vary depending on the efficiency of the compiler 7284126372Snjland the compiler options used during generation. 7285117521Snjl 7286117521Snjl Previous Release (20030509): 7287117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7288117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7289117521Snjl Current Release: 7290117521Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 7291117521Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 7292117521Snjl 7293117521Snjl 7294117521Snjl2) Linux: 7295117521Snjl 7296117521SnjlFixed a bug in which we would reinitialize the ACPI interrupt 7297193267Sjkimafter it was already working, thus disabling all ACPI and the IRQs 7298126372Snjlfor any other device sharing the interrupt. (Thanks to Stian 7299117521SnjlJordet) 7300117521Snjl 7301117521SnjlToshiba driver update (John Belmonte) 7302117521Snjl 7303117521SnjlReturn only 0 or 1 for our interrupt handler status (Andrew 7304117521SnjlMorton) 7305117521Snjl 7306117521Snjl 7307117521Snjl3) iASL Compiler: 7308117521Snjl 7309117521SnjlFixed a reported problem where multiple (nested) ElseIf() 7310117521Snjlstatements were not handled correctly by the compiler, resulting 7311117521Snjlin incorrect warnings and incorrect AML code. This was a problem 7312117521Snjlin both the ASL parser and the code generator. 7313117521Snjl 7314117521Snjl 7315117521Snjl4) Documentation: 7316117521Snjl 7317193267SjkimAdded changes to existing interfaces, new exception codes, and new 7318126372Snjltext concerning reference count object management versus garbage 7319126372Snjlcollection. 7320117521Snjl 7321117521Snjl---------------------------------------- 7322117521Snjl09 May 2003. Summary of changes for version 20030509. 7323117521Snjl 7324117521Snjl 7325117521Snjl1) ACPI CA Core Subsystem: 7326117521Snjl 7327117521SnjlChanged the subsystem initialization sequence to hold off 7328193267Sjkiminstallation of address space handlers until the hardware has been 7329193267Sjkiminitialized and the system has entered ACPI mode. This is because 7330126372Snjlthe installation of space handlers can cause _REG methods to be 7331193267Sjkimrun. Previously, the _REG methods could potentially be run before 7332126372SnjlACPI mode was enabled. 7333117521Snjl 7334193267SjkimFixed some memory leak issues related to address space handler and 7335126372Snjlnotify handler installation. There were some problems with the 7336126372Snjlreference count mechanism caused by the fact that the handler 7337117521Snjlobjects are shared across several namespace objects. 7338117521Snjl 7339117521SnjlFixed a reported problem where reference counts within the 7340117521Snjlnamespace were not properly updated when named objects created by 7341117521Snjlmethod execution were deleted. 7342117521Snjl 7343117521SnjlFixed a reported problem where multiple SSDTs caused a deletion 7344117521Snjlissue during subsystem termination. Restructured the table data 7345117521Snjlstructures to simplify the linked lists and the related code. 7346117521Snjl 7347117521SnjlFixed a problem where the table ID associated with secondary 7348193267Sjkimtables (SSDTs) was not being propagated into the namespace objects 7349126372Snjlcreated by those tables. This would only present a problem for 7350126372Snjltables that are unloaded at run-time, however. 7351117521Snjl 7352117521SnjlUpdated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 7353117521Snjltype as the length parameter (instead of UINT32). 7354117521Snjl 7355117521SnjlSolved a long-standing problem where an ALREADY_EXISTS error 7356117521Snjlappears on various systems. This problem could happen when there 7357117521Snjlare multiple PCI_Config operation regions under a single PCI root 7358117521Snjlbus. This doesn't happen very frequently, but there are some 7359117521Snjlsystems that do this in the ASL. 7360117521Snjl 7361117521SnjlFixed a reported problem where the internal DeleteNode function 7362117521Snjlwas incorrectly handling the case where a namespace node was the 7363117521Snjlfirst in the parent's child list, and had additional peers (not 7364117521Snjlthe only child, but first in the list of children.) 7365117521Snjl 7366193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7367126372Snjlbelow. These are the code and data sizes for the acpica.lib 7368126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7369126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7370126372Snjlversion of the code includes the debug output trace mechanism and 7371193267Sjkimhas a much larger code and data size. Note that these values will 7372126372Snjlvary depending on the efficiency of the compiler and the compiler 7373126372Snjloptions used during generation. 7374117521Snjl 7375117521Snjl Previous Release 7376117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7377117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7378117521Snjl Current Release: 7379117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 7380117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 7381117521Snjl 7382117521Snjl 7383117521Snjl2) Linux: 7384117521Snjl 7385117521SnjlAllow ":" in OS override string (Ducrot Bruno) 7386117521Snjl 7387117521SnjlKobject fix (Greg KH) 7388117521Snjl 7389117521Snjl 7390117521Snjl3 iASL Compiler/Disassembler: 7391117521Snjl 7392117521SnjlFixed a problem in the generation of the C source code files (AML 7393117521Snjlis emitted in C source statements for BIOS inclusion) where the 7394193267SjkimAscii dump that appears within a C comment at the end of each line 7395126372Snjlcould cause a compile time error if the AML sequence happens to 7396126372Snjlhave an open comment or close comment sequence embedded. 7397117521Snjl 7398117521Snjl 7399117521Snjl---------------------------------------- 7400117521Snjl24 April 2003. Summary of changes for version 20030424. 7401117521Snjl 7402117521Snjl 7403117521Snjl1) ACPI CA Core Subsystem: 7404117521Snjl 7405117521SnjlSupport for big-endian systems has been implemented. Most of the 7406193267Sjkimsupport has been invisibly added behind big-endian versions of the 7407126372SnjlACPI_MOVE_* macros. 7408117521Snjl 7409117521SnjlFixed a problem in AcpiHwDisableGpeBlock() and 7410117521SnjlAcpiHwClearGpeBlock() where an incorrect offset was passed to the 7411117521Snjllow level hardware write routine. The offset parameter was 7412193267Sjkimactually eliminated from the low level read/write routines because 7413126372Snjlthey had become obsolete. 7414117521Snjl 7415117521SnjlFixed a problem where a handler object was deleted twice during 7416117521Snjlthe removal of a fixed event handler. 7417117521Snjl 7418117521Snjl 7419117521Snjl2) Linux: 7420117521Snjl 7421117521SnjlA fix for SMP systems with link devices was contributed by 7422167802Sjkim 7423117521SnjlCompaq's Dan Zink. 7424117521Snjl 7425117521Snjl(2.5) Return whether we handled the interrupt in our IRQ handler. 7426193267Sjkim(Linux ISRs no longer return void, so we can propagate the handler 7427126372Snjlreturn value from the ACPI CA core back to the OS.) 7428117521Snjl 7429117521Snjl 7430167802Sjkim 7431117521Snjl3) Documentation: 7432117521Snjl 7433117521SnjlThe ACPI CA Programmer Reference has been updated to reflect new 7434117521Snjlinterfaces and changes to existing interfaces. 7435117521Snjl 7436117521Snjl---------------------------------------- 7437117521Snjl28 March 2003. Summary of changes for version 20030328. 7438117521Snjl 7439117521Snjl1) ACPI CA Core Subsystem: 7440117521Snjl 7441117521SnjlThe GPE Block Device support has been completed. New interfaces 7442117521Snjlare AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 7443117521Snjlinterfaces (enable, disable, clear, getstatus) have been split 7444117521Snjlinto separate interfaces for Fixed Events and General Purpose 7445117521SnjlEvents (GPEs) in order to support GPE Block Devices properly. 7446117521Snjl 7447117521SnjlFixed a problem where the error message "Failed to acquire 7448117521Snjlsemaphore" would appear during operations on the embedded 7449117521Snjlcontroller (EC). 7450117521Snjl 7451193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7452126372Snjlbelow. These are the code and data sizes for the acpica.lib 7453126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7454126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7455126372Snjlversion of the code includes the debug output trace mechanism and 7456193267Sjkimhas a much larger code and data size. Note that these values will 7457126372Snjlvary depending on the efficiency of the compiler and the compiler 7458126372Snjloptions used during generation. 7459117521Snjl 7460117521Snjl Previous Release 7461117521Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7462117521Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7463117521Snjl Current Release: 7464117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 7465117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 7466117521Snjl 7467117521Snjl 7468117521Snjl---------------------------------------- 7469114237Snjl28 February 2003. Summary of changes for version 20030228. 7470114237Snjl 7471114237Snjl 7472114237Snjl1) ACPI CA Core Subsystem: 7473114237Snjl 7474114237SnjlThe GPE handling and dispatch code has been completely overhauled 7475114237Snjlin preparation for support of GPE Block Devices (ID ACPI0006). 7476114237SnjlThis affects internal data structures and code only; there should 7477114237Snjlbe no differences visible externally. One new file has been 7478114237Snjladded, evgpeblk.c 7479114237Snjl 7480114237SnjlThe FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 7481114237Snjlfields that are used to determine the GPE block lengths. The 7482114237SnjlREGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 7483193267Sjkimstructures are ignored. This is per the ACPI specification but it 7484126372Snjlisn't very clear. The full 256 Block 0/1 GPEs are now supported 7485193267Sjkim(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 7486114237Snjl 7487114237SnjlIn the SCI interrupt handler, removed the read of the PM1_CONTROL 7488114237Snjlregister to look at the SCI_EN bit. On some machines, this read 7489114237Snjlcauses an SMI event and greatly slows down SCI events. (This may 7490114237Snjlin fact be the cause of slow battery status response on some 7491114237Snjlsystems.) 7492114237Snjl 7493193267SjkimFixed a problem where a store of a NULL string to a package object 7494126372Snjlcould cause the premature deletion of the object. This was seen 7495126372Snjlduring execution of the battery _BIF method on some systems, 7496126372Snjlresulting in no battery data being returned. 7497114237Snjl 7498114237SnjlAdded AcpiWalkResources interface to simplify parsing of resource 7499114237Snjllists. 7500114237Snjl 7501193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7502126372Snjlbelow. These are the code and data sizes for the acpica.lib 7503126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7504126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7505126372Snjlversion of the code includes the debug output trace mechanism and 7506193267Sjkimhas a much larger code and data size. Note that these values will 7507126372Snjlvary depending on the efficiency of the compiler and the compiler 7508126372Snjloptions used during generation. 7509114237Snjl 7510114237Snjl Previous Release 7511114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7512114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7513114237Snjl Current Release: 7514114237Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 7515114237Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 7516114237Snjl 7517114237Snjl 7518114237Snjl2) Linux 7519114237Snjl 7520114237SnjlS3 fixes (Ole Rohne) 7521114237Snjl 7522114237SnjlUpdate ACPI PHP driver with to use new acpi_walk_resource API 7523114237Snjl(Bjorn Helgaas) 7524114237Snjl 7525114237SnjlAdd S4BIOS support (Pavel Machek) 7526114237Snjl 7527114237SnjlMap in entire table before performing checksum (John Stultz) 7528114237Snjl 7529193267SjkimExpand the mem= cmdline to allow the specification of reserved and 7530126372SnjlACPI DATA blocks (Pavel Machek) 7531114237Snjl 7532114237SnjlNever use ACPI on VISWS 7533114237Snjl 7534114237SnjlFix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 7535114237Snjl 7536114237SnjlRevert a change that allowed P_BLK lengths to be 4 or 5. This is 7537114237Snjlcausing us to think that some systems support C2 when they really 7538114237Snjldon't. 7539114237Snjl 7540114237SnjlDo not count processor objects for non-present CPUs (Thanks to 7541114237SnjlDominik Brodowski) 7542114237Snjl 7543114237Snjl 7544114237Snjl3) iASL Compiler: 7545114237Snjl 7546114237SnjlFixed a problem where ASL include files could not be found and 7547114237Snjlopened. 7548114237Snjl 7549114237SnjlAdded support for the _PDC reserved name. 7550114237Snjl 7551114237Snjl 7552117521Snjl---------------------------------------- 7553114237Snjl22 January 2003. Summary of changes for version 20030122. 7554114237Snjl 7555114237Snjl 7556114237Snjl1) ACPI CA Core Subsystem: 7557114237Snjl 7558114237SnjlAdded a check for constructs of the form: Store (Local0, Local0) 7559114237Snjlwhere Local0 is not initialized. Apparently, some BIOS 7560193267Sjkimprogrammers believe that this is a NOOP. Since this store doesn't 7561126372Snjldo anything anyway, the new prototype behavior will ignore this 7562126372Snjlerror. This is a case where we can relax the strict checking in 7563126372Snjlthe interpreter in the name of compatibility. 7564114237Snjl 7565114237Snjl 7566114237Snjl2) Linux 7567114237Snjl 7568114237SnjlThe AcpiSrc Source Conversion Utility has been released with the 7569114237SnjlLinux package for the first time. This is the utility that is 7570193267Sjkimused to convert the ACPI CA base source code to the Linux version. 7571114237Snjl 7572114237Snjl(Both) Handle P_BLK lengths shorter than 6 more gracefully 7573114237Snjl 7574114237Snjl(Both) Move more headers to include/acpi, and delete an unused 7575114237Snjlheader. 7576114237Snjl 7577114237Snjl(Both) Move drivers/acpi/include directory to include/acpi 7578114237Snjl 7579114237Snjl(Both) Boot functions don't use cmdline, so don't pass it around 7580114237Snjl 7581114237Snjl(Both) Remove include of unused header (Adrian Bunk) 7582114237Snjl 7583114237Snjl(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 7584114237Snjlthe 7585193267Sjkimformer now also includes the latter, acpiphp.h only needs the one, 7586126372Snjlnow. 7587114237Snjl 7588193267Sjkim(2.5) Make it possible to select method of bios restoring after S3 7589114237Snjlresume. [=> no more ugly ifdefs] (Pavel Machek) 7590114237Snjl 7591114237Snjl(2.5) Make proc write interfaces work (Pavel Machek) 7592114237Snjl 7593114237Snjl(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 7594114237Snjl 7595114237Snjl(2.5) Break out ACPI Perf code into its own module, under cpufreq 7596114237Snjl(Dominik Brodowski) 7597114237Snjl 7598114237Snjl(2.4) S4BIOS support (Ducrot Bruno) 7599114237Snjl 7600114237Snjl(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 7601114237SnjlVisinoni) 7602114237Snjl 7603114237Snjl 7604114237Snjl3) iASL Compiler: 7605114237Snjl 7606114237SnjlAdded support to disassemble SSDT and PSDTs. 7607114237Snjl 7608114237SnjlImplemented support to obtain SSDTs from the Windows registry if 7609114237Snjlavailable. 7610114237Snjl 7611114237Snjl 7612102550Siwasaki---------------------------------------- 7613114237Snjl09 January 2003. Summary of changes for version 20030109. 7614114237Snjl 7615114237Snjl1) ACPI CA Core Subsystem: 7616114237Snjl 7617114237SnjlChanged the behavior of the internal Buffer-to-String conversion 7618193267Sjkimfunction. The current ACPI specification states that the contents 7619126372Snjlof the buffer are "converted to a string of two-character 7620126372Snjlhexadecimal numbers, each separated by a space". Unfortunately, 7621193267Sjkimthis definition is not backwards compatible with existing ACPI 1.0 7622193267Sjkimimplementations (although the behavior was not defined in the ACPI 7623126372Snjl1.0 specification). The new behavior simply copies data from the 7624193267Sjkimbuffer to the string until a null character is found or the end of 7625126372Snjlthe buffer is reached. The new String object is always null 7626126372Snjlterminated. This problem was seen during the generation of _BIF 7627126372Snjlbattery data where incorrect strings were returned for battery 7628126372Snjltype, etc. This will also require an errata to the ACPI 7629126372Snjlspecification. 7630114237Snjl 7631114237SnjlRenamed all instances of NATIVE_UINT and NATIVE_INT to 7632114237SnjlACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 7633114237Snjl 7634114237SnjlCopyright in all module headers (both Linux and non-Linux) has be 7635114237Snjlupdated to 2003. 7636114237Snjl 7637193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7638126372Snjlbelow. These are the code and data sizes for the acpica.lib 7639126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7640126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7641126372Snjlversion of the code includes the debug output trace mechanism and 7642193267Sjkimhas a much larger code and data size. Note that these values will 7643126372Snjlvary depending on the efficiency of the compiler and the compiler 7644126372Snjloptions used during generation. 7645114237Snjl 7646114237Snjl Previous Release 7647114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7648114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7649114237Snjl Current Release: 7650114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7651114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7652114237Snjl 7653114237Snjl 7654114237Snjl2) Linux 7655114237Snjl 7656114237SnjlFixed an oops on module insertion/removal (Matthew Tippett) 7657114237Snjl 7658114237Snjl(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 7659114237Snjl 7660114237Snjl(2.5) Replace pr_debug (Randy Dunlap) 7661114237Snjl 7662114237Snjl(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 7663114237Snjl 7664114237Snjl(Both) Eliminate spawning of thread from timer callback, in favor 7665114237Snjlof schedule_work() 7666114237Snjl 7667114237Snjl(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 7668114237Snjl 7669114237Snjl(Both) Added define for Fixed Function HW region (Matthew Wilcox) 7670114237Snjl 7671114237Snjl(Both) Add missing statics to button.c (Pavel Machek) 7672114237Snjl 7673114237SnjlSeveral changes have been made to the source code translation 7674114237Snjlutility that generates the Linux Code in order to make the code 7675114237Snjlmore "Linux-like": 7676114237Snjl 7677114237SnjlAll typedefs on structs and unions have been removed in keeping 7678114237Snjlwith the Linux coding style. 7679114237Snjl 7680114237SnjlRemoved the non-Linux SourceSafe module revision number from each 7681114237Snjlmodule header. 7682114237Snjl 7683114237SnjlCompleted major overhaul of symbols to be lowercased for linux. 7684114237SnjlDoubled the number of symbols that are lowercased. 7685114237Snjl 7686114237SnjlFixed a problem where identifiers within procedure headers and 7687114237Snjlwithin quotes were not fully lower cased (they were left with a 7688114237Snjlstarting capital.) 7689114237Snjl 7690114237SnjlSome C macros whose only purpose is to allow the generation of 16- 7691114237Snjlbit code are now completely removed in the Linux code, increasing 7692114237Snjlreadability and maintainability. 7693114237Snjl 7694114237Snjl---------------------------------------- 7695114237Snjl 7696114237Snjl12 December 2002. Summary of changes for version 20021212. 7697114237Snjl 7698114237Snjl 7699114237Snjl1) ACPI CA Core Subsystem: 7700114237Snjl 7701114237SnjlFixed a problem where the creation of a zero-length AML Buffer 7702114237Snjlwould cause a fault. 7703114237Snjl 7704193267SjkimFixed a problem where a Buffer object that pointed to a static AML 7705126372Snjlbuffer (in an ACPI table) could inadvertently be deleted, causing 7706126372Snjlmemory corruption. 7707114237Snjl 7708114237SnjlFixed a problem where a user buffer (passed in to the external 7709114237SnjlACPI CA interfaces) could be overwritten if the buffer was too 7710114237Snjlsmall to complete the operation, causing memory corruption. 7711114237Snjl 7712114237SnjlFixed a problem in the Buffer-to-String conversion code where a 7713114237Snjlstring of length one was always returned, regardless of the size 7714114237Snjlof the input Buffer object. 7715114237Snjl 7716114237SnjlRemoved the NATIVE_CHAR data type across the entire source due to 7717114237Snjllack of need and lack of consistent use. 7718114237Snjl 7719193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7720126372Snjlbelow. These are the code and data sizes for the acpica.lib 7721126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7722126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7723126372Snjlversion of the code includes the debug output trace mechanism and 7724193267Sjkimhas a much larger code and data size. Note that these values will 7725126372Snjlvary depending on the efficiency of the compiler and the compiler 7726126372Snjloptions used during generation. 7727114237Snjl 7728114237Snjl Previous Release 7729114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 7730114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 7731114237Snjl Current Release: 7732114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 7733114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 7734114237Snjl 7735114237Snjl 7736114237Snjl---------------------------------------- 7737114237Snjl05 December 2002. Summary of changes for version 20021205. 7738114237Snjl 7739114237Snjl1) ACPI CA Core Subsystem: 7740114237Snjl 7741114237SnjlFixed a problem where a store to a String or Buffer object could 7742114237Snjlcause corruption of the DSDT if the object type being stored was 7743114237Snjlthe same as the target object type and the length of the object 7744114237Snjlbeing stored was equal to or smaller than the original (existing) 7745114237Snjltarget object. This was seen to cause corruption of battery _BIF 7746114237Snjlbuffers if the _BIF method modified the buffer on the fly. 7747114237Snjl 7748193267SjkimFixed a problem where an internal error was generated if a control 7749126372Snjlmethod invocation was used in an OperationRegion, Buffer, or 7750126372SnjlPackage declaration. This was caused by the deferred parsing of 7751126372Snjlthe control method and thus the deferred creation of the internal 7752126372Snjlmethod object. The solution to this problem was to create the 7753126372Snjlinternal method object at the moment the method is encountered in 7754126372Snjlthe first pass - so that subsequent references to the method will 7755126372Snjlable to obtain the required parameter count and thus properly 7756126372Snjlparse the method invocation. This problem presented itself as an 7757126372SnjlAE_AML_INTERNAL during the pass 1 parse phase during table load. 7758114237Snjl 7759114237SnjlFixed a problem where the internal String object copy routine did 7760193267Sjkimnot always allocate sufficient memory for the target String object 7761126372Snjland caused memory corruption. This problem was seen to cause 7762126372Snjl"Allocation already present in list!" errors as memory allocation 7763126372Snjlbecame corrupted. 7764114237Snjl 7765193267SjkimImplemented a new function for the evaluation of namespace objects 7766126372Snjlthat allows the specification of the allowable return object 7767126372Snjltypes. This simplifies a lot of code that checks for a return 7768126372Snjlobject of one or more specific objects returned from the 7769114237Snjlevaluation (such as _STA, etc.) This may become and external 7770114237Snjlfunction if it would be useful to ACPI-related drivers. 7771114237Snjl 7772114237SnjlCompleted another round of prefixing #defines with "ACPI_" for 7773114237Snjlclarity. 7774114237Snjl 7775114237SnjlCompleted additional code restructuring to allow more modular 7776114237Snjllinking for iASL compiler and AcpiExec. Several files were split 7777114237Snjlcreating new files. New files: nsparse.c dsinit.c evgpe.c 7778114237Snjl 7779114237SnjlImplemented an abort mechanism to terminate an executing control 7780193267Sjkimmethod via the AML debugger. This feature is useful for debugging 7781126372Snjlcontrol methods that depend (wait) for specific hardware 7782126372Snjlresponses. 7783114237Snjl 7784193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7785126372Snjlbelow. These are the code and data sizes for the acpica.lib 7786126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7787126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7788126372Snjlversion of the code includes the debug output trace mechanism and 7789193267Sjkimhas a much larger code and data size. Note that these values will 7790126372Snjlvary depending on the efficiency of the compiler and the compiler 7791126372Snjloptions used during generation. 7792114237Snjl 7793114237Snjl Previous Release 7794114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7795114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 7796114237Snjl Current Release: 7797114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 7798114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 7799114237Snjl 7800114237Snjl 7801114237Snjl2) iASL Compiler/Disassembler 7802114237Snjl 7803114237SnjlFixed a compiler code generation problem for "Interrupt" Resource 7804114237SnjlDescriptors. If specified in the ASL, the optional "Resource 7805114237SnjlSource Index" and "Resource Source" fields were not inserted into 7806114237Snjlthe correct location within the AML resource descriptor, creating 7807114237Snjlan invalid descriptor. 7808114237Snjl 7809193267SjkimFixed a disassembler problem for "Interrupt" resource descriptors. 7810126372SnjlThe optional "Resource Source Index" and "Resource Source" fields 7811126372Snjlwere ignored. 7812114237Snjl 7813114237Snjl 7814114237Snjl---------------------------------------- 7815114237Snjl22 November 2002. Summary of changes for version 20021122. 7816114237Snjl 7817114237Snjl 7818114237Snjl1) ACPI CA Core Subsystem: 7819114237Snjl 7820114237SnjlFixed a reported problem where an object stored to a Method Local 7821114237Snjlor Arg was not copied to a new object during the store - the 7822114237Snjlobject pointer was simply copied to the Local/Arg. This caused 7823114237Snjlall subsequent operations on the Local/Arg to also affect the 7824114237Snjloriginal source of the store operation. 7825114237Snjl 7826114237SnjlFixed a problem where a store operation to a Method Local or Arg 7827114237Snjlwas not completed properly if the Local/Arg contained a reference 7828114237Snjl(from RefOf) to a named field. The general-purpose store-to- 7829114237Snjlnamespace-node code is now used so that this case is handled 7830114237Snjlautomatically. 7831114237Snjl 7832193267SjkimFixed a problem where the internal object copy routine would cause 7833126372Snjla protection fault if the object being copied was a Package and 7834126372Snjlcontained either 1) a NULL package element or 2) a nested sub- 7835114237Snjlpackage. 7836114237Snjl 7837114237SnjlFixed a problem with the GPE initialization that resulted from an 7838114237Snjlambiguity in the ACPI specification. One section of the 7839114237Snjlspecification states that both the address and length of the GPE 7840193267Sjkimblock must be zero if the block is not supported. Another section 7841126372Snjlimplies that only the address need be zero if the block is not 7842193267Sjkimsupported. The code has been changed so that both the address and 7843126372Snjlthe length must be non-zero to indicate a valid GPE block (i.e., 7844126372Snjlif either the address or the length is zero, the GPE block is 7845126372Snjlinvalid.) 7846114237Snjl 7847193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7848126372Snjlbelow. These are the code and data sizes for the acpica.lib 7849126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7850126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7851126372Snjlversion of the code includes the debug output trace mechanism and 7852193267Sjkimhas a much larger code and data size. Note that these values will 7853126372Snjlvary depending on the efficiency of the compiler and the compiler 7854126372Snjloptions used during generation. 7855114237Snjl 7856114237Snjl Previous Release 7857114237Snjl Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 7858114237Snjl Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 7859114237Snjl Current Release: 7860114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7861114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 7862114237Snjl 7863114237Snjl 7864114237Snjl2) Linux 7865114237Snjl 7866114237SnjlCleaned up EC driver. Exported an external EC read/write 7867114237Snjlinterface. By going through this, other drivers (most notably 7868114237Snjlsonypi) will be able to serialize access to the EC. 7869114237Snjl 7870114237Snjl 7871114237Snjl3) iASL Compiler/Disassembler 7872114237Snjl 7873114237SnjlImplemented support to optionally generate include files for both 7874114237SnjlASM and C (the -i switch). This simplifies BIOS development by 7875114237Snjlautomatically creating include files that contain external 7876114237Snjldeclarations for the symbols that are created within the 7877167802Sjkim 7878114237Snjl(optionally generated) ASM and C AML source files. 7879114237Snjl 7880114237Snjl 7881114237Snjl---------------------------------------- 7882107325Siwasaki15 November 2002. Summary of changes for version 20021115. 7883104470Siwasaki 7884107325Siwasaki1) ACPI CA Core Subsystem: 7885107325Siwasaki 7886114237SnjlFixed a memory leak problem where an error during resolution of 7887167802Sjkim 7888114237Snjlmethod arguments during a method invocation from another method 7889114237Snjlfailed to cleanup properly by deleting all successfully resolved 7890114237Snjlargument objects. 7891107325Siwasaki 7892114237SnjlFixed a problem where the target of the Index() operator was not 7893114237Snjlcorrectly constructed if the source object was a package. This 7894114237Snjlproblem has not been detected because the use of a target operand 7895114237Snjlwith Index() is very rare. 7896107325Siwasaki 7897107325SiwasakiFixed a problem with the Index() operator where an attempt was 7898107325Siwasakimade to delete the operand objects twice. 7899107325Siwasaki 7900107325SiwasakiFixed a problem where an attempt was made to delete an operand 7901114237Snjltwice during execution of the CondRefOf() operator if the target 7902114237Snjldid not exist. 7903107325Siwasaki 7904114237SnjlImplemented the first of perhaps several internal create object 7905193267Sjkimfunctions that create and initialize a specific object type. This 7906126372Snjlconsolidates duplicated code wherever the object is created, thus 7907126372Snjlshrinking the size of the subsystem. 7908107325Siwasaki 7909114237SnjlImplemented improved debug/error messages for errors that occur 7910114237Snjlduring nested method invocations. All executing method pathnames 7911193267Sjkimare displayed (with the error) as the call stack is unwound - thus 7912126372Snjlsimplifying debug. 7913107325Siwasaki 7914107325SiwasakiFixed a problem introduced in the 10/02 release that caused 7915114237Snjlpremature deletion of a buffer object if a buffer was used as an 7916114237SnjlASL operand where an integer operand is required (Thus causing an 7917193267Sjkimimplicit object conversion from Buffer to Integer.) The change in 7918126372Snjlthe 10/02 release was attempting to fix a memory leak (albeit 7919114237Snjlincorrectly.) 7920107325Siwasaki 7921193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7922126372Snjlbelow. These are the code and data sizes for the acpica.lib 7923126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7924126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7925126372Snjlversion of the code includes the debug output trace mechanism and 7926193267Sjkimhas a much larger code and data size. Note that these values will 7927126372Snjlvary depending on the efficiency of the compiler and the compiler 7928126372Snjloptions used during generation. 7929107325Siwasaki 7930107325Siwasaki Previous Release 7931107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 7932107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 7933107325Siwasaki Current Release: 7934107325Siwasaki Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 7935107325Siwasaki Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 7936107325Siwasaki 7937107325Siwasaki 7938107325Siwasaki2) Linux 7939107325Siwasaki 7940114237SnjlChanged the implementation of the ACPI semaphores to use down() 7941114237Snjlinstead of down_interruptable(). It is important that the 7942114237Snjlexecution of ACPI control methods not be interrupted by signals. 7943114237SnjlMethods must run to completion, or the system may be left in an 7944114237Snjlunknown/unstable state. 7945107325Siwasaki 7946193267SjkimFixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 7947126372Snjl(Shawn Starr) 7948107325Siwasaki 7949107325Siwasaki 7950107325Siwasaki3) iASL Compiler/Disassembler 7951107325Siwasaki 7952107325Siwasaki 7953114237SnjlChanged the default location of output files. All output files 7954114237Snjlare now placed in the current directory by default instead of in 7955114237Snjlthe directory of the source file. This change may affect some 7956114237Snjlexisting makefiles, but it brings the behavior of the compiler in 7957114237Snjlline with other similar tools. The location of the output files 7958114237Snjlcan be overridden with the -p command line switch. 7959107325Siwasaki 7960114237Snjl 7961107325Siwasaki---------------------------------------- 7962107325Siwasaki11 November 2002. Summary of changes for version 20021111. 7963107325Siwasaki 7964107325Siwasaki 7965114237Snjl0) ACPI Specification 2.0B is released and is now available at: 7966114237Snjlhttp://www.acpi.info/index.html 7967107325Siwasaki 7968107325Siwasaki 7969107325Siwasaki1) ACPI CA Core Subsystem: 7970107325Siwasaki 7971107325SiwasakiImplemented support for the ACPI 2.0 SMBus Operation Regions. 7972114237SnjlThis includes the early detection and handoff of the request to 7973114237Snjlthe SMBus region handler (avoiding all of the complex field 7974107325Siwasakisupport code), and support for the bidirectional return packet 7975107325Siwasakifrom an SMBus write operation. This paves the way for the 7976107325Siwasakidevelopment of SMBus drivers in each host operating system. 7977107325Siwasaki 7978107325SiwasakiFixed a problem where the semaphore WAIT_FOREVER constant was 7979107325Siwasakidefined as 32 bits, but must be 16 bits according to the ACPI 7980107325Siwasakispecification. This had the side effect of causing ASL 7981107325SiwasakiMutex/Event timeouts even though the ASL code requested a wait 7982107325Siwasakiforever. Changed all internal references to the ACPI timeout 7983193267Sjkimparameter to 16 bits to prevent future problems. Changed the name 7984126372Snjlof WAIT_FOREVER to ACPI_WAIT_FOREVER. 7985107325Siwasaki 7986193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7987126372Snjlbelow. These are the code and data sizes for the acpica.lib 7988126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7989126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7990126372Snjlversion of the code includes the debug output trace mechanism and 7991193267Sjkimhas a much larger code and data size. Note that these values will 7992126372Snjlvary depending on the efficiency of the compiler and the compiler 7993126372Snjloptions used during generation. 7994107325Siwasaki 7995107325Siwasaki Previous Release 7996107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 7997107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 7998107325Siwasaki Current Release: 7999107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 8000107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 8001107325Siwasaki 8002107325Siwasaki 8003107325Siwasaki2) Linux 8004107325Siwasaki 8005107325SiwasakiModule loading/unloading fixes (John Cagle) 8006107325Siwasaki 8007107325Siwasaki 8008107325Siwasaki3) iASL Compiler/Disassembler 8009107325Siwasaki 8010107325SiwasakiAdded support for the SMBBlockProcessCall keyword (ACPI 2.0) 8011107325Siwasaki 8012107325SiwasakiImplemented support for the disassembly of all SMBus protocol 8013107325Siwasakikeywords (SMBQuick, SMBWord, etc.) 8014107325Siwasaki 8015107325Siwasaki---------------------------------------- 8016107325Siwasaki01 November 2002. Summary of changes for version 20021101. 8017107325Siwasaki 8018107325Siwasaki 8019107325Siwasaki1) ACPI CA Core Subsystem: 8020107325Siwasaki 8021193267SjkimFixed a problem where platforms that have a GPE1 block but no GPE0 8022126372Snjlblock were not handled correctly. This resulted in a "GPE 8023114237Snjloverlap" error message. GPE0 is no longer required. 8024107325Siwasaki 8025107325SiwasakiRemoved code added in the previous release that inserted nodes 8026114237Snjlinto the namespace in alphabetical order. This caused some side- 8027114237Snjleffects on various machines. The root cause of the problem is 8028114237Snjlstill under investigation since in theory, the internal ordering 8029114237Snjlof the namespace nodes should not matter. 8030107325Siwasaki 8031107325Siwasaki 8032114237SnjlEnhanced error reporting for the case where a named object is not 8033114237Snjlfound during control method execution. The full ACPI namepath 8034114237Snjl(name reference) of the object that was not found is displayed in 8035114237Snjlthis case. 8036107325Siwasaki 8037193267SjkimNote: as a result of the overhaul of the namespace object types in 8038126372Snjlthe previous release, the namespace nodes for the predefined 8039114237Snjlscopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 8040114237Snjlinstead of ACPI_TYPE_ANY. This simplifies the namespace 8041114237Snjlmanagement code but may affect code that walks the namespace tree 8042114237Snjllooking for specific object types. 8043114237Snjl 8044193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8045126372Snjlbelow. These are the code and data sizes for the acpica.lib 8046126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8047126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8048126372Snjlversion of the code includes the debug output trace mechanism and 8049193267Sjkimhas a much larger code and data size. Note that these values will 8050126372Snjlvary depending on the efficiency of the compiler and the compiler 8051126372Snjloptions used during generation. 8052107325Siwasaki 8053107325Siwasaki Previous Release 8054107325Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8055107325Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8056107325Siwasaki Current Release: 8057107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 8058107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 8059107325Siwasaki 8060107325Siwasaki 8061107325Siwasaki2) Linux 8062107325Siwasaki 8063107325SiwasakiFixed a problem introduced in the previous release where the 8064193267SjkimProcessor and Thermal objects were not recognized and installed in 8065193267Sjkim/proc. This was related to the scope type change described above. 8066107325Siwasaki 8067107325Siwasaki 8068107325Siwasaki3) iASL Compiler/Disassembler 8069107325Siwasaki 8070114237SnjlImplemented the -g option to get all of the required ACPI tables 8071114237Snjlfrom the registry and save them to files (Windows version of the 8072193267Sjkimcompiler only.) The required tables are the FADT, FACS, and DSDT. 8073107325Siwasaki 8074114237SnjlAdded ACPI table checksum validation during table disassembly in 8075114237Snjlorder to catch corrupted tables. 8076107325Siwasaki 8077107325Siwasaki 8078107325Siwasaki---------------------------------------- 8079107325Siwasaki22 October 2002. Summary of changes for version 20021022. 8080107325Siwasaki 8081107325Siwasaki1) ACPI CA Core Subsystem: 8082107325Siwasaki 8083114237SnjlImplemented a restriction on the Scope operator that the target 8084114237Snjlmust already exist in the namespace at the time the operator is 8085114237Snjlencountered (during table load or method execution). In other 8086114237Snjlwords, forward references are not allowed and Scope() cannot 8087114237Snjlcreate a new object. This changes the previous behavior where the 8088193267Sjkiminterpreter would create the name if not found. This new behavior 8089126372Snjlcorrectly enables the search-to-root algorithm during namespace 8090126372Snjllookup of the target name. Because of this upsearch, this fixes 8091126372Snjlthe known Compaq _SB_.OKEC problem and makes both the AML 8092126372Snjlinterpreter and iASL compiler compatible with other ACPI 8093114237Snjlimplementations. 8094107325Siwasaki 8095114237SnjlCompleted a major overhaul of the internal ACPI object types for 8096114237Snjlthe ACPI Namespace and the associated operand objects. Many of 8097114237Snjlthese types had become obsolete with the introduction of the two- 8098114237Snjlpass namespace load. This cleanup simplifies the code and makes 8099114237Snjlthe entire namespace load mechanism much clearer and easier to 8100114237Snjlunderstand. 8101107325Siwasaki 8102114237SnjlImproved debug output for tracking scope opening/closing to help 8103114237Snjldiagnose scoping issues. The old scope name as well as the new 8104114237Snjlscope name are displayed. Also improved error messages for 8105114237Snjlproblems with ASL Mutex objects and error messages for GPE 8106114237Snjlproblems. 8107107325Siwasaki 8108107325SiwasakiCleaned up the namespace dump code, removed obsolete code. 8109107325Siwasaki 8110114237SnjlAll string output (for all namespace/object dumps) now uses the 8111193267Sjkimcommon ACPI string output procedure which handles escapes properly 8112126372Snjland does not emit non-printable characters. 8113107325Siwasaki 8114107325SiwasakiFixed some issues with constants in the 64-bit version of the 8115107325Siwasakilocal C library (utclib.c) 8116107325Siwasaki 8117107325Siwasaki 8118107325Siwasaki2) Linux 8119107325Siwasaki 8120107325SiwasakiEC Driver: No longer attempts to acquire the Global Lock at 8121107325Siwasakiinterrupt level. 8122107325Siwasaki 8123107325Siwasaki 8124107325Siwasaki3) iASL Compiler/Disassembler 8125107325Siwasaki 8126193267SjkimImplemented ACPI 2.0B grammar change that disallows all Type 1 and 8127126372Snjl2 opcodes outside of a control method. This means that the 8128114237Snjl"executable" operators (versus the "namespace" operators) cannot 8129193267Sjkimbe used at the table level; they can only be used within a control 8130126372Snjlmethod. 8131107325Siwasaki 8132107325SiwasakiImplemented the restriction on the Scope() operator where the 8133107325Siwasakitarget must already exist in the namespace at the time the 8134114237Snjloperator is encountered (during ASL compilation). In other words, 8135193267Sjkimforward references are not allowed and Scope() cannot create a new 8136126372Snjlobject. This makes the iASL compiler compatible with other ACPI 8137193267Sjkimimplementations and makes the Scope() implementation adhere to the 8138126372SnjlACPI specification. 8139107325Siwasaki 8140193267SjkimFixed a problem where namepath optimization for the Alias operator 8141193267Sjkimwas optimizing the wrong path (of the two namepaths.) This caused 8142126372Snjla "Missing alias link" error message. 8143107325Siwasaki 8144114237SnjlFixed a problem where an "unknown reserved name" warning could be 8145114237Snjlincorrectly generated for names like "_SB" when the trailing 8146114237Snjlunderscore is not used in the original ASL. 8147107325Siwasaki 8148107325SiwasakiFixed a problem where the reserved name check did not handle 8149114237SnjlNamePaths with multiple NameSegs correctly. The first nameseg of 8150114237Snjlthe NamePath was examined instead of the last NameSeg. 8151107325Siwasaki 8152107325Siwasaki 8153107325Siwasaki---------------------------------------- 8154107325Siwasaki 8155104470Siwasaki02 October 2002. Summary of changes for this release. 8156104470Siwasaki 8157104470Siwasaki 8158104470Siwasaki1) ACPI CA Core Subsystem version 20021002: 8159104470Siwasaki 8160104470SiwasakiFixed a problem where a store/copy of a string to an existing 8161193267Sjkimstring did not always set the string length properly in the String 8162126372Snjlobject. 8163104470Siwasaki 8164104470SiwasakiFixed a reported problem with the ToString operator where the 8165193267Sjkimbehavior was identical to the ToHexString operator instead of just 8166126372Snjlsimply converting a raw buffer to a string data type. 8167104470Siwasaki 8168104470SiwasakiFixed a problem where CopyObject and the other "explicit" 8169193267Sjkimconversion operators were not updating the internal namespace node 8170126372Snjltype as part of the store operation. 8171104470Siwasaki 8172104470SiwasakiFixed a memory leak during implicit source operand conversion 8173193267Sjkimwhere the original object was not deleted if it was converted to a 8174126372Snjlnew object of a different type. 8175104470Siwasaki 8176193267SjkimEnhanced error messages for all problems associated with namespace 8177193267Sjkimlookups. Common procedure generates and prints the lookup name as 8178126372Snjlwell as the formatted status. 8179104470Siwasaki 8180104470SiwasakiCompleted implementation of a new design for the Alias support 8181193267Sjkimwithin the namespace. The existing design did not handle the case 8182193267Sjkimwhere a new object was assigned to one of the two names due to the 8183193267Sjkimuse of an explicit conversion operator, resulting in the two names 8184126372Snjlpointing to two different objects. The new design simply points 8185126372Snjlthe Alias name to the original name node - not to the object. 8186193267SjkimThis results in a level of indirection that must be handled in the 8187126372Snjlname resolution mechanism. 8188104470Siwasaki 8189193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8190126372Snjlbelow. These are the code and data sizes for the acpica.lib 8191126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8192126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8193126372Snjlversion of the code includes the debug output trace mechanism and 8194193267Sjkimhas a larger code and data size. Note that these values will vary 8195126372Snjldepending on the efficiency of the compiler and the compiler 8196126372Snjloptions used during generation. 8197104470Siwasaki 8198104470Siwasaki Previous Release 8199104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8200104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8201104470Siwasaki Current Release: 8202104470Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 8203104470Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 8204104470Siwasaki 8205104470Siwasaki 8206104470Siwasaki2) Linux 8207104470Siwasaki 8208104470SiwasakiInitialize thermal driver's timer before it is used. (Knut 8209104470SiwasakiNeumann) 8210104470Siwasaki 8211104470SiwasakiAllow handling negative celsius values. (Kochi Takayoshi) 8212104470Siwasaki 8213114237SnjlFix thermal management and make trip points. R/W (Pavel Machek) 8214104470Siwasaki 8215104470SiwasakiFix /proc/acpi/sleep. (P. Christeas) 8216104470Siwasaki 8217104470SiwasakiIA64 fixes. (David Mosberger) 8218104470Siwasaki 8219104470SiwasakiFix reversed logic in blacklist code. (Sergio Monteiro Basto) 8220104470Siwasaki 8221104470SiwasakiReplace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 8222104470SiwasakiBrodowski) 8223104470Siwasaki 8224104470Siwasaki 8225104470Siwasaki3) iASL Compiler/Disassembler 8226104470Siwasaki 8227104470SiwasakiClarified some warning/error messages. 8228104470Siwasaki 8229104470Siwasaki 8230104470Siwasaki---------------------------------------- 8231104470Siwasaki18 September 2002. Summary of changes for this release. 8232104470Siwasaki 8233104470Siwasaki 8234104470Siwasaki1) ACPI CA Core Subsystem version 20020918: 8235104470Siwasaki 8236114237SnjlFixed a reported problem with reference chaining (via the Index() 8237193267Sjkimand RefOf() operators) in the ObjectType() and SizeOf() operators. 8238126372SnjlThe definition of these operators includes the dereferencing of 8239126372Snjlall chained references to return information on the base object. 8240104470Siwasaki 8241104470SiwasakiFixed a problem with stores to indexed package elements - the 8242104470Siwasakiexisting code would not complete the store if an "implicit 8243114237Snjlconversion" was not performed. In other words, if the existing 8244114237Snjlobject (package element) was to be replaced completely, the code 8245114237Snjldidn't handle this case. 8246104470Siwasaki 8247104470SiwasakiRelaxed typechecking on the ASL "Scope" operator to allow the 8248104470Siwasakitarget name to refer to an object of type Integer, String, or 8249104470SiwasakiBuffer, in addition to the scoping object types (Device, 8250104470Siwasakipredefined Scopes, Processor, PowerResource, and ThermalZone.) 8251114237SnjlThis allows existing AML code that has workarounds for a bug in 8252193267SjkimWindows to function properly. A warning is issued, however. This 8253126372Snjlaffects both the AML interpreter and the iASL compiler. Below is 8254126372Snjlan example of this type of ASL code: 8255104470Siwasaki 8256104470Siwasaki Name(DEB,0x00) 8257104470Siwasaki Scope(DEB) 8258104470Siwasaki { 8259104470Siwasaki 8260114237SnjlFixed some reported problems with 64-bit integer support in the 8261114237Snjllocal implementation of C library functions (clib.c) 8262104470Siwasaki 8263104470Siwasaki 8264104470Siwasaki2) Linux 8265104470Siwasaki 8266104470SiwasakiUse ACPI fix map region instead of IOAPIC region, since it is 8267104470Siwasakiundefined in non-SMP. 8268104470Siwasaki 8269114237SnjlEnsure that the SCI has the proper polarity and trigger, even on 8270114237Snjlsystems that do not have an interrupt override entry in the MADT. 8271104470Siwasaki 8272104470Siwasaki2.5 big driver reorganization (Pat Mochel) 8273104470Siwasaki 8274104470SiwasakiUse early table mapping code from acpitable.c (Andi Kleen) 8275104470Siwasaki 8276104470SiwasakiNew blacklist entries (Andi Kleen) 8277104470Siwasaki 8278114237SnjlBlacklist improvements. Split blacklist code out into a separate 8279114237Snjlfile. Move checking the blacklist to very early. Previously, we 8280114237Snjlwould use ACPI tables, and then halfway through init, check the 8281114237Snjlblacklist -- too late. Now, it's early enough to completely fall- 8282114237Snjlback to non-ACPI. 8283104470Siwasaki 8284104470Siwasaki 8285104470Siwasaki3) iASL Compiler/Disassembler version 20020918: 8286104470Siwasaki 8287114237SnjlFixed a problem where the typechecking code didn't know that an 8288114237Snjlalias could point to a method. In other words, aliases were not 8289114237Snjlbeing dereferenced during typechecking. 8290104470Siwasaki 8291104470Siwasaki 8292104470Siwasaki---------------------------------------- 8293104470Siwasaki29 August 2002. Summary of changes for this release. 8294104470Siwasaki 8295104470Siwasaki1) ACPI CA Core Subsystem Version 20020829: 8296104470Siwasaki 8297114237SnjlIf the target of a Scope() operator already exists, it must be an 8298114237Snjlobject type that actually opens a scope -- such as a Device, 8299193267SjkimMethod, Scope, etc. This is a fatal runtime error. Similar error 8300126372Snjlcheck has been added to the iASL compiler also. 8301104470Siwasaki 8302114237SnjlTightened up the namespace load to disallow multiple names in the 8303114237Snjlsame scope. This previously was allowed if both objects were of 8304114237Snjlthe same type. (i.e., a lookup was the same as entering a new 8305114237Snjlname). 8306104470Siwasaki 8307104470Siwasaki 8308104470Siwasaki2) Linux 8309104470Siwasaki 8310104470SiwasakiEnsure that the ACPI interrupt has the proper trigger and 8311104470Siwasakipolarity. 8312104470Siwasaki 8313104470Siwasakilocal_irq_disable is extraneous. (Matthew Wilcox) 8314104470Siwasaki 8315104470SiwasakiMake "acpi=off" actually do what it says, and not use the ACPI 8316104470Siwasakiinterpreter *or* the tables. 8317104470Siwasaki 8318193267SjkimAdded arch-neutral support for parsing SLIT and SRAT tables (Kochi 8319126372SnjlTakayoshi) 8320104470Siwasaki 8321104470Siwasaki 8322104470Siwasaki3) iASL Compiler/Disassembler Version 20020829: 8323104470Siwasaki 8324104470SiwasakiImplemented namepath optimization for name declarations. For 8325104470Siwasakiexample, a declaration like "Method (\_SB_.ABCD)" would get 8326104470Siwasakioptimized to "Method (ABCD)" if the declaration is within the 8327104470Siwasaki\_SB_ scope. This optimization is in addition to the named 8328104470Siwasakireference path optimization first released in the previous 8329114237Snjlversion. This would seem to complete all possible optimizations 8330114237Snjlfor namepaths within the ASL/AML. 8331104470Siwasaki 8332114237SnjlIf the target of a Scope() operator already exists, it must be an 8333114237Snjlobject type that actually opens a scope -- such as a Device, 8334114237SnjlMethod, Scope, etc. 8335104470Siwasaki 8336114237SnjlImplemented a check and warning for unreachable code in the same 8337114237Snjlblock below a Return() statement. 8338104470Siwasaki 8339114237SnjlFixed a problem where the listing file was not generated if the 8340114237Snjlcompiler aborted if the maximum error count was exceeded (200). 8341104470Siwasaki 8342193267SjkimFixed a problem where the typechecking of method return values was 8343126372Snjlbroken. This includes the check for a return value when the 8344114237Snjlmethod is invoked as a TermArg (a return value is expected.) 8345104470Siwasaki 8346104470SiwasakiFixed a reported problem where EOF conditions during a quoted 8347104470Siwasakistring or comment caused a fault. 8348104470Siwasaki 8349104470Siwasaki 8350104470Siwasaki---------------------------------------- 8351102550Siwasaki15 August 2002. Summary of changes for this release. 8352102550Siwasaki 8353102550Siwasaki1) ACPI CA Core Subsystem Version 20020815: 8354102550Siwasaki 8355114237SnjlFixed a reported problem where a Store to a method argument that 8356193267Sjkimcontains a reference did not perform the indirect store correctly. 8357126372SnjlThis problem was created during the conversion to the new 8358126372Snjlreference object model - the indirect store to a method argument 8359126372Snjlcode was not updated to reflect the new model. 8360102550Siwasaki 8361114237SnjlReworked the ACPI mode change code to better conform to ACPI 2.0, 8362193267Sjkimhandle corner cases, and improve code legibility (Kochi Takayoshi) 8363102550Siwasaki 8364102550SiwasakiFixed a problem with the pathname parsing for the carat (^) 8365114237Snjlprefix. The heavy use of the carat operator by the new namepath 8366193267Sjkimoptimization in the iASL compiler uncovered a problem with the AML 8367126372Snjlinterpreter handling of this prefix. In the case where one or 8368126372Snjlmore carats precede a single nameseg, the nameseg was treated as 8369126372Snjlstandalone and the search rule (to root) was inadvertently 8370114237Snjlapplied. This could cause both the iASL compiler and the 8371114237Snjlinterpreter to find the wrong object or to miss the error that 8372114237Snjlshould occur if the object does not exist at that exact pathname. 8373102550Siwasaki 8374114237SnjlFound and fixed the problem where the HP Pavilion DSDT would not 8375193267Sjkimload. This was a relatively minor tweak to the table loading code 8376126372Snjl(a problem caused by the unexpected encounter with a method 8377193267Sjkiminvocation not within a control method), but it does not solve the 8378126372Snjloverall issue of the execution of AML code at the table level. 8379126372SnjlThis investigation is still ongoing. 8380102550Siwasaki 8381193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8382126372Snjlbelow. These are the code and data sizes for the acpica.lib 8383126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8384126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8385126372Snjlversion of the code includes the debug output trace mechanism and 8386193267Sjkimhas a larger code and data size. Note that these values will vary 8387126372Snjldepending on the efficiency of the compiler and the compiler 8388126372Snjloptions used during generation. 8389102550Siwasaki 8390102550Siwasaki Previous Release 8391104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8392104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8393102550Siwasaki Current Release: 8394104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 8395104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 8396102550Siwasaki 8397102550Siwasaki 8398102550Siwasaki2) Linux 8399102550Siwasaki 8400102550SiwasakiRemove redundant slab.h include (Brad Hards) 8401102550Siwasaki 8402102550SiwasakiFix several bugs in thermal.c (Herbert Nachtnebel) 8403102550Siwasaki 8404102550SiwasakiMake CONFIG_ACPI_BOOT work properly (Pavel Machek) 8405102550Siwasaki 8406104470SiwasakiChange acpi_system_suspend to use updated irq functions (Pavel 8407104470SiwasakiMachek) 8408102550Siwasaki 8409102550SiwasakiExport acpi_get_firmware_table (Matthew Wilcox) 8410102550Siwasaki 8411102550SiwasakiUse proper root proc entry for ACPI (Kochi Takayoshi) 8412102550Siwasaki 8413102550SiwasakiFix early-boot table parsing (Bjorn Helgaas) 8414102550Siwasaki 8415102550Siwasaki 8416102550Siwasaki3) iASL Compiler/Disassembler 8417102550Siwasaki 8418114237SnjlReworked the compiler options to make them more consistent and to 8419114237Snjluse two-letter options where appropriate. We were running out of 8420114237Snjlsensible letters. This may break some makefiles, so check the 8421114237Snjlcurrent options list by invoking the compiler with no parameters. 8422102550Siwasaki 8423102550SiwasakiCompleted the design and implementation of the ASL namepath 8424114237Snjloptimization option for the compiler. This option optimizes all 8425114237Snjlreferences to named objects to the shortest possible path. The 8426193267Sjkimfirst attempt tries to utilize a single nameseg (4 characters) and 8427126372Snjlthe "search-to-root" algorithm used by the interpreter. If that 8428126372Snjlcannot be used (because either the name is not in the search path 8429126372Snjlor there is a conflict with another object with the same name), 8430126372Snjlthe pathname is optimized using the carat prefix (usually a 8431126372Snjlshorter string than specifying the entire path from the root.) 8432102550Siwasaki 8433114237SnjlImplemented support to obtain the DSDT from the Windows registry 8434114237Snjl(when the disassembly option is specified with no input file). 8435114237SnjlAdded this code as the implementation for AcpiOsTableOverride in 8436114237Snjlthe Windows OSL. Migrated the 16-bit code (used in the AcpiDump 8437114237Snjlutility) to scan memory for the DSDT to the AcpiOsTableOverride 8438114237Snjlfunction in the DOS OSL to make the disassembler truly OS 8439114237Snjlindependent. 8440102550Siwasaki 8441114237SnjlImplemented a new option to disassemble and compile in one step. 8442114237SnjlWhen used without an input filename, this option will grab the 8443193267SjkimDSDT from the local machine, disassemble it, and compile it in one 8444126372Snjlstep. 8445102550Siwasaki 8446114237SnjlAdded a warning message for invalid escapes (a backslash followed 8447114237Snjlby any character other than the allowable escapes). This catches 8448114237Snjlthe quoted string error "\_SB_" (which should be "\\_SB_" ). 8449167802Sjkim 8450193267SjkimAlso, there are numerous instances in the ACPI specification where 8451126372Snjlthis error occurs. 8452102550Siwasaki 8453104470SiwasakiAdded a compiler option to disable all optimizations. This is 8454114237Snjlbasically the "compatibility mode" because by using this option, 8455114237Snjlthe AML code will come out exactly the same as other ASL 8456114237Snjlcompilers. 8457102550Siwasaki 8458114237SnjlAdded error messages for incorrectly ordered dependent resource 8459114237Snjlfunctions. This includes: missing EndDependentFn macro at end of 8460114237Snjldependent resource list, nested dependent function macros (both 8461114237Snjlstart and end), and missing StartDependentFn macro. These are 8462114237Snjlcommon errors that should be caught at compile time. 8463102550Siwasaki 8464114237SnjlImplemented _OSI support for the disassembler and compiler. _OSI 8465114237Snjlmust be included in the namespace for proper disassembly (because 8466114237Snjlthe disassembler must know the number of arguments.) 8467102550Siwasaki 8468104470SiwasakiAdded an "optimization" message type that is optional (off by 8469114237Snjldefault). This message is used for all optimizations - including 8470193267Sjkimconstant folding, integer optimization, and namepath optimization. 8471102550Siwasaki 8472102550Siwasaki---------------------------------------- 8473102550Siwasaki25 July 2002. Summary of changes for this release. 8474102550Siwasaki 8475102550Siwasaki 8476102550Siwasaki1) ACPI CA Core Subsystem Version 20020725: 8477102550Siwasaki 8478114237SnjlThe AML Disassembler has been enhanced to produce compilable ASL 8479193267Sjkimcode and has been integrated into the iASL compiler (see below) as 8480126372Snjlwell as the single-step disassembly for the AML debugger and the 8481126372Snjldisassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 8482126372Snjlresource templates and macros are fully supported. The 8483114237Snjldisassembler has been tested on over 30 different AML files, 8484114237Snjlproducing identical AML when the resulting disassembled ASL file 8485114237Snjlis recompiled with the same ASL compiler. 8486102550Siwasaki 8487114237SnjlModified the Resource Manager to allow zero interrupts and zero 8488114237Snjldma channels during the GetCurrentResources call. This was 8489114237Snjlcausing problems on some platforms. 8490102550Siwasaki 8491114237SnjlAdded the AcpiOsRedirectOutput interface to the OSL to simplify 8492114237Snjloutput redirection for the AcpiOsPrintf and AcpiOsVprintf 8493114237Snjlinterfaces. 8494102550Siwasaki 8495193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8496126372Snjlbelow. These are the code and data sizes for the acpica.lib 8497126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8498126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8499126372Snjlversion of the code includes the debug output trace mechanism and 8500193267Sjkimhas a larger code and data size. Note that these values will vary 8501126372Snjldepending on the efficiency of the compiler and the compiler 8502126372Snjloptions used during generation. 8503102550Siwasaki 8504102550Siwasaki Previous Release 8505104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8506104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8507102550Siwasaki Current Release: 8508104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 8509104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 8510102550Siwasaki 8511102550Siwasaki 8512102550Siwasaki2) Linux 8513102550Siwasaki 8514102550SiwasakiFixed a panic in the EC driver (Dominik Brodowski) 8515102550Siwasaki 8516114237SnjlImplemented checksum of the R/XSDT itself during Linux table scan 8517114237Snjl(Richard Schaal) 8518102550Siwasaki 8519102550Siwasaki 8520102550Siwasaki3) iASL compiler 8521102550Siwasaki 8522114237SnjlThe AML disassembler is integrated into the compiler. The "-d" 8523114237Snjloption invokes the disassembler to completely disassemble an 8524114237Snjlinput AML file, producing as output a text ASL file with the 8525114237Snjlextension ".dsl" (to avoid name collisions with existing .asl 8526114237Snjlsource files.) A future enhancement will allow the disassembler 8527114237Snjlto obtain the BIOS DSDT from the registry under Windows. 8528102550Siwasaki 8529102550SiwasakiFixed a problem with the VendorShort and VendorLong resource 8530102550Siwasakidescriptors where an invalid AML sequence was created. 8531102550Siwasaki 8532114237SnjlImplemented a fix for BufferData term in the ASL parser. It was 8533114237Snjlinadvertently defined twice, allowing invalid syntax to pass and 8534114237Snjlcausing reduction conflicts. 8535102550Siwasaki 8536104470SiwasakiFixed a problem where the Ones opcode could get converted to a 8537193267Sjkimvalue of zero if "Ones" was used where a byte, word or dword value 8538126372Snjlwas expected. The 64-bit value is now truncated to the correct 8539126372Snjlsize with the correct value. 8540102550Siwasaki 8541102550Siwasaki 8542167802Sjkim 8543102550Siwasaki---------------------------------------- 8544102550Siwasaki02 July 2002. Summary of changes for this release. 8545102550Siwasaki 8546102550Siwasaki 8547102550Siwasaki1) ACPI CA Core Subsystem Version 20020702: 8548102550Siwasaki 8549114237SnjlThe Table Manager code has been restructured to add several new 8550114237Snjlfeatures. Tables that are not required by the core subsystem 8551114237Snjl(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 8552193267Sjkimvalidated in any way and are returned from AcpiGetFirmwareTable if 8553126372Snjlrequested. The AcpiOsTableOverride interface is now called for 8554126372Snjleach table that is loaded by the subsystem in order to allow the 8555126372Snjlhost to override any table it chooses. Previously, only the DSDT 8556126372Snjlcould be overridden. Added one new files, tbrsdt.c and 8557114237Snjltbgetall.c. 8558102550Siwasaki 8559193267SjkimFixed a problem with the conversion of internal package objects to 8560126372Snjlexternal objects (when a package is returned from a control 8561114237Snjlmethod.) The return buffer length was set to zero instead of the 8562114237Snjlproper length of the package object. 8563102550Siwasaki 8564104470SiwasakiFixed a reported problem with the use of the RefOf and DeRefOf 8565114237Snjloperators when passing reference arguments to control methods. A 8566114237Snjlnew type of Reference object is used internally for references 8567114237Snjlproduced by the RefOf operator. 8568102550Siwasaki 8569193267SjkimAdded additional error messages in the Resource Manager to explain 8570126372SnjlAE_BAD_DATA errors when they occur during resource parsing. 8571102550Siwasaki 8572104470SiwasakiSplit the AcpiEnableSubsystem into two primitives to enable a 8573193267Sjkimfiner granularity initialization sequence. These two calls should 8574126372Snjlbe called in this order: AcpiEnableSubsystem (flags), 8575114237SnjlAcpiInitializeObjects (flags). The flags parameter remains the 8576114237Snjlsame. 8577102550Siwasaki 8578102550Siwasaki 8579102550Siwasaki2) Linux 8580102550Siwasaki 8581114237SnjlUpdated the ACPI utilities module to understand the new style of 8582193267Sjkimfully resolved package objects that are now returned from the core 8583126372Snjlsubsystem. This eliminates errors of the form: 8584102550Siwasaki 8585102550Siwasaki ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 8586102550Siwasaki acpi_utils-0430 [145] acpi_evaluate_reference: 8587102550Siwasaki Invalid element in package (not a device reference) 8588102550Siwasaki 8589102550SiwasakiThe method evaluation utility uses the new buffer allocation 8590102550Siwasakischeme instead of calling AcpiEvaluate Object twice. 8591102550Siwasaki 8592102550SiwasakiAdded support for ECDT. This allows the use of the Embedded 8593167802Sjkim 8594114237SnjlController before the namespace has been fully initialized, which 8595114237Snjlis necessary for ACPI 2.0 support, and for some laptops to 8596114237Snjlinitialize properly. (Laptops using ECDT are still rare, so only 8597114237Snjllimited testing was performed of the added functionality.) 8598102550Siwasaki 8599102550SiwasakiFixed memory leaks in the EC driver. 8600102550Siwasaki 8601102550SiwasakiEliminated a brittle code structure in acpi_bus_init(). 8602102550Siwasaki 8603114237SnjlEliminated the acpi_evaluate() helper function in utils.c. It is 8604114237Snjlno longer needed since acpi_evaluate_object can optionally 8605104470Siwasakiallocate memory for the return object. 8606102550Siwasaki 8607193267SjkimImplemented fix for keyboard hang when getting battery readings on 8608126372Snjlsome systems (Stephen White) 8609102550Siwasaki 8610102550SiwasakiPCI IRQ routing update (Dominik Brodowski) 8611102550Siwasaki 8612114237SnjlFix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 8613114237Snjlsupport 8614102550Siwasaki 8615102550Siwasaki---------------------------------------- 8616102550Siwasaki11 June 2002. Summary of changes for this release. 8617102550Siwasaki 8618102550Siwasaki 8619102550Siwasaki1) ACPI CA Core Subsystem Version 20020611: 8620102550Siwasaki 8621104470SiwasakiFixed a reported problem where constants such as Zero and One 8622114237Snjlappearing within _PRT packages were not handled correctly within 8623114237Snjlthe resource manager code. Originally reported against the ASL 8624114237Snjlcompiler because the code generator now optimizes integers to 8625193267Sjkimtheir minimal AML representation (i.e. AML constants if possible.) 8626126372SnjlThe _PRT code now handles all AML constant opcodes correctly 8627126372Snjl(Zero, One, Ones, Revision). 8628102550Siwasaki 8629102550SiwasakiFixed a problem with the Concatenate operator in the AML 8630193267Sjkiminterpreter where a buffer result object was incorrectly marked as 8631126372Snjlnot fully evaluated, causing a run-time error of AE_AML_INTERNAL. 8632102550Siwasaki 8633104470SiwasakiAll package sub-objects are now fully resolved before they are 8634114237Snjlreturned from the external ACPI interfaces. This means that name 8635114237Snjlstrings are resolved to object handles, and constant operators 8636114237Snjl(Zero, One, Ones, Revision) are resolved to Integers. 8637102550Siwasaki 8638102550SiwasakiImplemented immediate resolution of the AML Constant opcodes 8639104470Siwasaki(Zero, One, Ones, Revision) to Integer objects upon detection 8640104470Siwasakiwithin the AML stream. This has simplified and reduced the 8641104470Siwasakigenerated code size of the subsystem by eliminating about 10 8642104470Siwasakiswitch statements for these constants (which previously were 8643193267Sjkimcontained in Reference objects.) The complicating issues are that 8644126372Snjlthe Zero opcode is used as a "placeholder" for unspecified 8645193267Sjkimoptional target operands and stores to constants are defined to be 8646126372Snjlno-ops. 8647102550Siwasaki 8648193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8649126372Snjlbelow. These are the code and data sizes for the acpica.lib 8650114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8651114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 8652114237Snjlversion of the code includes the debug output trace mechanism and 8653193267Sjkimhas a larger code and data size. Note that these values will vary 8654126372Snjldepending on the efficiency of the compiler and the compiler 8655114237Snjloptions used during generation. 8656102550Siwasaki 8657102550Siwasaki Previous Release 8658104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 8659104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 8660102550Siwasaki Current Release: 8661104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 8662104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 8663102550Siwasaki 8664102550Siwasaki 8665102550Siwasaki2) Linux 8666102550Siwasaki 8667167802Sjkim 8668104470SiwasakiAdded preliminary support for obtaining _TRA data for PCI root 8669104470Siwasakibridges (Bjorn Helgaas). 8670102550Siwasaki 8671102550Siwasaki 8672102550Siwasaki3) iASL Compiler Version X2046: 8673102550Siwasaki 8674193267SjkimFixed a problem where the "_DDN" reserved name was defined to be a 8675126372Snjlcontrol method with one argument. There are no arguments, and 8676114237Snjl_DDN does not have to be a control method. 8677102550Siwasaki 8678114237SnjlFixed a problem with the Linux version of the compiler where the 8679114237Snjlsource lines printed with error messages were the wrong lines. 8680114237SnjlThis turned out to be the "LF versus CR/LF" difference between 8681114237SnjlWindows and Unix. This appears to be the longstanding issue 8682114237Snjlconcerning listing output and error messages. 8683102550Siwasaki 8684114237SnjlFixed a problem with the Linux version of compiler where opcode 8685114237Snjlnames within error messages were wrong. This was caused by a 8686114237Snjlslight difference in the output of the Flex tool on Linux versus 8687114237SnjlWindows. 8688102550Siwasaki 8689193267SjkimFixed a problem with the Linux compiler where the hex output files 8690126372Snjlcontained some garbage data caused by an internal buffer overrun. 8691102550Siwasaki 8692102550Siwasaki 8693102550Siwasaki---------------------------------------- 8694102550Siwasaki17 May 2002. Summary of changes for this release. 8695102550Siwasaki 8696102550Siwasaki 8697102550Siwasaki1) ACPI CA Core Subsystem Version 20020517: 8698102550Siwasaki 8699102550SiwasakiImplemented a workaround to an BIOS bug discovered on the HP 8700104470SiwasakiOmniBook where the FADT revision number and the table size are 8701193267Sjkiminconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 8702126372Snjlbehavior is to fallback to using only the ACPI 1.0 fields of the 8703126372SnjlFADT if the table is too small to be a ACPI 2.0 table as claimed 8704126372Snjlby the revision number. Although this is a BIOS bug, this is a 8705126372Snjlcase where the workaround is simple enough and with no side 8706126372Snjleffects, so it seemed prudent to add it. A warning message is 8707126372Snjlissued, however. 8708102550Siwasaki 8709193267SjkimImplemented minimum size checks for the fixed-length ACPI tables - 8710126372Snjl- the FADT and FACS, as well as consistency checks between the 8711114237Snjlrevision number and the table size. 8712102550Siwasaki 8713114237SnjlFixed a reported problem in the table override support where the 8714114237Snjlnew table pointer was incorrectly treated as a physical address 8715114237Snjlinstead of a logical address. 8716102550Siwasaki 8717114237SnjlEliminated the use of the AE_AML_ERROR exception and replaced it 8718114237Snjlwith more descriptive codes. 8719102550Siwasaki 8720193267SjkimFixed a problem where an exception would occur if an ASL Field was 8721126372Snjldefined with no named Field Units underneath it (used by some 8722114237Snjlindex fields). 8723102550Siwasaki 8724193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8725126372Snjlbelow. These are the code and data sizes for the acpica.lib 8726126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8727126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8728126372Snjlversion of the code includes the debug output trace mechanism and 8729193267Sjkimhas a larger code and data size. Note that these values will vary 8730126372Snjldepending on the efficiency of the compiler and the compiler 8731126372Snjloptions used during generation. 8732102550Siwasaki 8733102550Siwasaki Previous Release 8734104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 8735104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 8736102550Siwasaki Current Release: 8737104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 8738104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 8739102550Siwasaki 8740102550Siwasaki 8741102550Siwasaki 8742102550Siwasaki2) Linux 8743102550Siwasaki 8744114237SnjlMuch work done on ACPI init (MADT and PCI IRQ routing support). 8745114237Snjl(Paul D. and Dominik Brodowski) 8746102550Siwasaki 8747102550SiwasakiFix PCI IRQ-related panic on boot (Sam Revitch) 8748102550Siwasaki 8749102550SiwasakiSet BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 8750102550Siwasaki 8751102550SiwasakiFix "MHz" typo (Dominik Brodowski) 8752102550Siwasaki 8753102550SiwasakiFix RTC year 2000 issue (Dominik Brodowski) 8754102550Siwasaki 8755102550SiwasakiPreclude multiple button proc entries (Eric Brunet) 8756102550Siwasaki 8757102550SiwasakiMoved arch-specific code out of include/platform/aclinux.h 8758102550Siwasaki 8759102550Siwasaki3) iASL Compiler Version X2044: 8760102550Siwasaki 8761193267SjkimImplemented error checking for the string used in the EISAID macro 8762193267Sjkim(Usually used in the definition of the _HID object.) The code now 8763126372Snjlstrictly enforces the PnP format - exactly 7 characters, 3 8764126372Snjluppercase letters and 4 hex digits. 8765102550Siwasaki 8766102550SiwasakiIf a raw string is used in the definition of the _HID object 8767102550Siwasaki(instead of the EISAID macro), the string must contain all 8768114237Snjlalphanumeric characters (e.g., "*PNP0011" is not allowed because 8769114237Snjlof the asterisk.) 8770102550Siwasaki 8771114237SnjlImplemented checking for invalid use of ACPI reserved names for 8772114237Snjlmost of the name creation operators (Name, Device, Event, Mutex, 8773114237SnjlOperationRegion, PowerResource, Processor, and ThermalZone.) 8774114237SnjlPreviously, this check was only performed for control methods. 8775102550Siwasaki 8776114237SnjlImplemented an additional check on the Name operator to emit an 8777114237Snjlerror if a reserved name that must be implemented in ASL as a 8778114237Snjlcontrol method is used. We know that a reserved name must be a 8779114237Snjlmethod if it is defined with input arguments. 8780102550Siwasaki 8781193267SjkimThe warning emitted when a namespace object reference is not found 8782126372Snjlduring the cross reference phase has been changed into an error. 8783193267SjkimThe "External" directive should be used for names defined in other 8784126372Snjlmodules. 8785102550Siwasaki 8786102550Siwasaki 8787102550Siwasaki4) Tools and Utilities 8788102550Siwasaki 8789114237SnjlThe 16-bit tools (adump16 and aexec16) have been regenerated and 8790114237Snjltested. 8791102550Siwasaki 8792193267SjkimFixed a problem with the output of both acpidump and adump16 where 8793126372Snjlthe indentation of closing parentheses and brackets was not 8794167802Sjkim 8795114237Snjlaligned properly with the parent block. 8796102550Siwasaki 8797102550Siwasaki 8798102550Siwasaki---------------------------------------- 8799102550Siwasaki03 May 2002. Summary of changes for this release. 8800102550Siwasaki 8801102550Siwasaki 8802102550Siwasaki1) ACPI CA Core Subsystem Version 20020503: 8803102550Siwasaki 8804114237SnjlAdded support a new OSL interface that allows the host operating 8805167802Sjkim 8806114237Snjlsystem software to override the DSDT found in the firmware - 8807193267SjkimAcpiOsTableOverride. With this interface, the OSL can examine the 8808126372Snjlversion of the firmware DSDT and replace it with a different one 8809126372Snjlif desired. 8810102550Siwasaki 8811114237SnjlAdded new external interfaces for accessing ACPI registers from 8812114237Snjldevice drivers and other system software - AcpiGetRegister and 8813114237SnjlAcpiSetRegister. This was simply an externalization of the 8814114237Snjlexisting AcpiHwBitRegister interfaces. 8815102550Siwasaki 8816104470SiwasakiFixed a regression introduced in the previous build where the 8817104470SiwasakiASL/AML CreateField operator always returned an error, 8818102550Siwasaki"destination must be a NS Node". 8819102550Siwasaki 8820114237SnjlExtended the maximum time (before failure) to successfully enable 8821114237SnjlACPI mode to 3 seconds. 8822102550Siwasaki 8823193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8824126372Snjlbelow. These are the code and data sizes for the acpica.lib 8825126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8826126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8827126372Snjlversion of the code includes the debug output trace mechanism and 8828193267Sjkimhas a larger code and data size. Note that these values will vary 8829126372Snjldepending on the efficiency of the compiler and the compiler 8830126372Snjloptions used during generation. 8831102550Siwasaki 8832102550Siwasaki Previous Release 8833104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 8834104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 8835102550Siwasaki Current Release: 8836104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 8837104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 8838102550Siwasaki 8839102550Siwasaki 8840102550Siwasaki2) Linux 8841102550Siwasaki 8842104470SiwasakiEnhanced ACPI init code for SMP. We are now fully MPS and $PIR- 8843193267Sjkimfree. While 3 out of 4 of our in-house systems work fine, the last 8844126372Snjlone still hangs when testing the LAPIC timer. 8845102550Siwasaki 8846114237SnjlRenamed many files in 2.5 kernel release to omit "acpi_" from the 8847114237Snjlname. 8848102550Siwasaki 8849102550SiwasakiAdded warning on boot for Presario 711FR. 8850102550Siwasaki 8851102550SiwasakiSleep improvements (Pavel Machek) 8852102550Siwasaki 8853102550SiwasakiACPI can now be built without CONFIG_PCI enabled. 8854102550Siwasaki 8855102550SiwasakiIA64: Fixed memory map functions (JI Lee) 8856102550Siwasaki 8857102550Siwasaki 8858102550Siwasaki3) iASL Compiler Version X2043: 8859102550Siwasaki 8860114237SnjlAdded support to allow the compiler to be integrated into the MS 8861114237SnjlVC++ development environment for one-button compilation of single 8862114237Snjlfiles or entire projects -- with error-to-source-line mapping. 8863102550Siwasaki 8864104470SiwasakiImplemented support for compile-time constant folding for the 8865104470SiwasakiType3, Type4, and Type5 opcodes first defined in the ACPI 2.0 8866104470Siwasakispecification. This allows the ASL writer to use expressions 8867104470Siwasakiinstead of Integer/Buffer/String constants in terms that must 8868114237Snjlevaluate to constants at compile time and will also simplify the 8869114237Snjlemitted AML in any such sub-expressions that can be folded 8870104470Siwasaki(evaluated at compile-time.) This increases the size of the 8871104470Siwasakicompiler significantly because a portion of the ACPI CA AML 8872104470Siwasakiinterpreter is included within the compiler in order to pre- 8873104470Siwasakievaluate constant expressions. 8874102550Siwasaki 8875114237Snjl 8876102550SiwasakiFixed a problem with the "Unicode" ASL macro that caused the 8877114237Snjlcompiler to fault. (This macro is used in conjunction with the 8878114237Snjl_STR reserved name.) 8879102550Siwasaki 8880114237SnjlImplemented an AML opcode optimization to use the Zero, One, and 8881114237SnjlOnes opcodes where possible to further reduce the size of integer 8882114237Snjlconstants and thus reduce the overall size of the generated AML 8883114237Snjlcode. 8884102550Siwasaki 8885193267SjkimImplemented error checking for new reserved terms for ACPI version 8886126372Snjl2.0A. 8887102550Siwasaki 8888104470SiwasakiImplemented the -qr option to display the current list of ACPI 8889104470Siwasakireserved names known to the compiler. 8890102550Siwasaki 8891104470SiwasakiImplemented the -qc option to display the current list of ASL 8892104470Siwasakioperators that are allowed within constant expressions and can 8893193267Sjkimtherefore be folded at compile time if the operands are constants. 8894102550Siwasaki 8895102550Siwasaki 8896102550Siwasaki4) Documentation 8897102550Siwasaki 8898193267SjkimUpdated the Programmer's Reference for new interfaces, data types, 8899126372Snjland memory allocation model options. 8900102550Siwasaki 8901114237SnjlUpdated the iASL Compiler User Reference to apply new format and 8902114237Snjladd information about new features and options. 8903102550Siwasaki 8904102550Siwasaki---------------------------------------- 8905102550Siwasaki19 April 2002. Summary of changes for this release. 8906102550Siwasaki 8907102550Siwasaki1) ACPI CA Core Subsystem Version 20020419: 8908102550Siwasaki 8909114237SnjlThe source code base for the Core Subsystem has been completely 8910114237Snjlcleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 8911114237Snjlversions. The Lint option files used are included in the 8912114237Snjl/acpi/generate/lint directory. 8913102550Siwasaki 8914102550SiwasakiImplemented enhanced status/error checking across the entire 8915114237SnjlHardware manager subsystem. Any hardware errors (reported from 8916114237Snjlthe OSL) are now bubbled up and will abort a running control 8917114237Snjlmethod. 8918102550Siwasaki 8919167802Sjkim 8920114237SnjlFixed a problem where the per-ACPI-table integer width (32 or 64) 8921114237Snjlwas stored only with control method nodes, causing a fault when 8922114237Snjlnon-control method code was executed during table loading. The 8923114237Snjlsolution implemented uses a global variable to indicate table 8924114237Snjlwidth across the entire ACPI subsystem. Therefore, ACPI CA does 8925114237Snjlnot support mixed integer widths across different ACPI tables 8926114237Snjl(DSDT, SSDT). 8927102550Siwasaki 8928114237SnjlFixed a problem where NULL extended fields (X fields) in an ACPI 8929114237Snjl2.0 ACPI FADT caused the table load to fail. Although the 8930114237Snjlexisting ACPI specification is a bit fuzzy on this topic, the new 8931114237Snjlbehavior is to fall back on a ACPI 1.0 field if the corresponding 8932193267SjkimACPI 2.0 X field is zero (even though the table revision indicates 8933193267Sjkima full ACPI 2.0 table.) The ACPI specification will be updated to 8934126372Snjlclarify this issue. 8935102550Siwasaki 8936104470SiwasakiFixed a problem with the SystemMemory operation region handler 8937104470Siwasakiwhere memory was always accessed byte-wise even if the AML- 8938104470Siwasakispecified access width was larger than a byte. This caused 8939104470Siwasakiproblems on systems with memory-mapped I/O. Memory is now 8940193267Sjkimaccessed with the width specified. On systems that do not support 8941193267Sjkimnon-aligned transfers, a check is made to guarantee proper address 8942126372Snjlalignment before proceeding in order to avoid an AML-caused 8943126372Snjlalignment fault within the kernel. 8944102550Siwasaki 8945102550Siwasaki 8946114237SnjlFixed a problem with the ExtendedIrq resource where only one byte 8947114237Snjlof the 4-byte Irq field was extracted. 8948102550Siwasaki 8949114237SnjlFixed the AcpiExDigitsNeeded() procedure to support _UID. This 8950114237Snjlfunction was out of date and required a rewrite. 8951114237Snjl 8952193267SjkimCode and Data Size: Current core subsystem library sizes are shown 8953126372Snjlbelow. These are the code and data sizes for the acpica.lib 8954126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 8955126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 8956126372Snjlversion of the code includes the debug output trace mechanism and 8957193267Sjkimhas a larger code and data size. Note that these values will vary 8958126372Snjldepending on the efficiency of the compiler and the compiler 8959126372Snjloptions used during generation. 8960102550Siwasaki 8961102550Siwasaki Previous Release 8962104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 8963104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 8964102550Siwasaki Current Release: 8965104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 8966104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 8967102550Siwasaki 8968102550Siwasaki 8969102550Siwasaki2) Linux 8970102550Siwasaki 8971102550SiwasakiPCI IRQ routing fixes (Dominik Brodowski) 8972102550Siwasaki 8973102550Siwasaki 8974102550Siwasaki3) iASL Compiler Version X2042: 8975102550Siwasaki 8976104470SiwasakiImplemented an additional compile-time error check for a field 8977104470Siwasakiunit whose size + minimum access width would cause a run-time 8978114237Snjlaccess beyond the end-of-region. Previously, only the field size 8979114237Snjlitself was checked. 8980102550Siwasaki 8981104470SiwasakiThe Core subsystem and iASL compiler now share a common parse 8982104470Siwasakiobject in preparation for compile-time evaluation of the type 8983104470Siwasaki3/4/5 ASL operators. 8984102550Siwasaki 8985102550Siwasaki 8986102550Siwasaki---------------------------------------- 8987102550SiwasakiSummary of changes for this release: 03_29_02 8988102550Siwasaki 8989102550Siwasaki1) ACPI CA Core Subsystem Version 20020329: 8990102550Siwasaki 8991104470SiwasakiImplemented support for late evaluation of TermArg operands to 8992193267SjkimBuffer and Package objects. This allows complex expressions to be 8993126372Snjlused in the declarations of these object types. 8994102550Siwasaki 8995193267SjkimFixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 8996126372Snjl1.0, if the field was larger than 32 bits, it was returned as a 8997126372Snjlbuffer - otherwise it was returned as an integer. In ACPI 2.0, 8998193267Sjkimthe field is returned as a buffer only if the field is larger than 8999126372Snjl64 bits. The TableRevision is now considered when making this 9000126372Snjlconversion to avoid incompatibility with existing ASL code. 9001102550Siwasaki 9002104470SiwasakiImplemented logical addressing for AcpiOsGetRootPointer. This 9003114237Snjlallows an RSDP with either a logical or physical address. With 9004114237Snjlthis support, the host OS can now override all ACPI tables with 9005114237Snjlone logical RSDP. Includes implementation of "typed" pointer 9006114237Snjlsupport to allow a common data type for both physical and logical 9007114237Snjlpointers internally. This required a change to the 9008114237SnjlAcpiOsGetRootPointer interface. 9009102550Siwasaki 9010193267SjkimImplemented the use of ACPI 2.0 Generic Address Structures for all 9011193267SjkimGPE, Fixed Event, and PM Timer I/O. This allows the use of memory 9012126372Snjlmapped I/O for these ACPI features. 9013102550Siwasaki 9014102550SiwasakiInitialization now ignores not only non-required tables (All 9015114237Snjltables other than the FADT, FACS, DSDT, and SSDTs), but also does 9016114237Snjlnot validate the table headers of unrecognized tables. 9017102550Siwasaki 9018102550SiwasakiFixed a problem where a notify handler could only be 9019102550Siwasakiinstalled/removed on an object of type Device. All "notify" 9020167802Sjkim 9021102550Siwasakiobjects are now supported -- Devices, Processor, Power, and 9022102550SiwasakiThermal. 9023102550Siwasaki 9024114237SnjlRemoved most verbosity from the ACPI_DB_INFO debug level. Only 9025193267Sjkimcritical information is returned when this debug level is enabled. 9026102550Siwasaki 9027193267SjkimCode and Data Size: Current core subsystem library sizes are shown 9028126372Snjlbelow. These are the code and data sizes for the acpica.lib 9029126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 9030126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 9031126372Snjlversion of the code includes the debug output trace mechanism and 9032193267Sjkimhas a larger code and data size. Note that these values will vary 9033126372Snjldepending on the efficiency of the compiler and the compiler 9034126372Snjloptions used during generation. 9035102550Siwasaki 9036102550Siwasaki Previous Release 9037104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9038104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9039102550Siwasaki Current Release: 9040104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 9041104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 9042102550Siwasaki 9043102550Siwasaki 9044102550Siwasaki2) Linux: 9045102550Siwasaki 9046114237SnjlThe processor driver (acpi_processor.c) now fully supports ACPI 9047114237Snjl2.0-based processor performance control (e.g. Intel(R) 9048114237SnjlSpeedStep(TM) technology) Note that older laptops that only have 9049114237Snjlthe Intel "applet" interface are not supported through this. The 9050114237Snjl'limit' and 'performance' interface (/proc) are fully functional. 9051114237Snjl[Note that basic policy for controlling performance state 9052114237Snjltransitions will be included in the next version of ospmd.] The 9053114237Snjlidle handler was modified to more aggressively use C2, and PIIX4 9054114237Snjlerrata handling underwent a complete overhaul (big thanks to 9055114237SnjlDominik Brodowski). 9056102550Siwasaki 9057114237SnjlAdded support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 9058114237Snjlbased devices in the ACPI namespace are now dynamically bound 9059114237Snjl(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 9060114237SnjlThis allows, among other things, ACPI to resolve bus numbers for 9061114237Snjlsubordinate PCI bridges. 9062102550Siwasaki 9063104470SiwasakiEnhanced PCI IRQ routing to get the proper bus number for _PRT 9064104470Siwasakientries defined underneath PCI bridges. 9065102550Siwasaki 9066104470SiwasakiAdded IBM 600E to bad bios list due to invalid _ADR value for 9067104470SiwasakiPIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 9068102550Siwasaki 9069114237SnjlIn the process of adding full MADT support (e.g. IOAPIC) for IA32 9070114237Snjl(acpi.c, mpparse.c) -- stay tuned. 9071102550Siwasaki 9072102550SiwasakiAdded back visual differentiation between fixed-feature and 9073114237Snjlcontrol-method buttons in dmesg. Buttons are also subtyped (e.g. 9074114237Snjlbutton/power/PWRF) to simplify button identification. 9075102550Siwasaki 9076114237SnjlWe no longer use -Wno-unused when compiling debug. Please ignore 9077114237Snjlany "_THIS_MODULE defined but not used" messages. 9078102550Siwasaki 9079102550SiwasakiCan now shut down the system using "magic sysrq" key. 9080102550Siwasaki 9081102550Siwasaki 9082102550Siwasaki3) iASL Compiler version 2041: 9083102550Siwasaki 9084104470SiwasakiFixed a problem where conversion errors for hex/octal/decimal 9085104470Siwasakiconstants were not reported. 9086102550Siwasaki 9087193267SjkimImplemented a fix for the General Register template Address field. 9088126372SnjlThis field was 8 bits when it should be 64. 9089102550Siwasaki 9090193267SjkimFixed a problem where errors/warnings were no longer being emitted 9091126372Snjlwithin the listing output file. 9092102550Siwasaki 9093114237SnjlImplemented the ACPI 2.0A restriction on ACPI Table Signatures to 9094114237Snjlexactly 4 characters, alphanumeric only. 9095102550Siwasaki 9096102550Siwasaki 9097102550Siwasaki 9098102550Siwasaki 9099102550Siwasaki---------------------------------------- 9100102550SiwasakiSummary of changes for this release: 03_08_02 9101102550Siwasaki 9102102550Siwasaki 9103102550Siwasaki1) ACPI CA Core Subsystem Version 20020308: 9104102550Siwasaki 9105114237SnjlFixed a problem with AML Fields where the use of the "AccessAny" 9106193267Sjkimkeyword could cause an interpreter error due to attempting to read 9107126372Snjlor write beyond the end of the parent Operation Region. 9108102550Siwasaki 9109193267SjkimFixed a problem in the SystemMemory Operation Region handler where 9110126372Snjlan attempt was made to map memory beyond the end of the region. 9111126372SnjlThis was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 9112126372Snjlerrors on some Linux systems. 9113102550Siwasaki 9114114237SnjlFixed a problem where the interpreter/namespace "search to root" 9115114237Snjlalgorithm was not functioning for some object types. Relaxed the 9116114237Snjlinternal restriction on the search to allow upsearches for all 9117114237Snjlexternal object types as well as most internal types. 9118102550Siwasaki 9119102550Siwasaki 9120102550Siwasaki2) Linux: 9121102550Siwasaki 9122193267SjkimWe now use safe_halt() macro versus individual calls to sti | hlt. 9123102550Siwasaki 9124193267SjkimWriting to the processor limit interface should now work. "echo 1" 9125126372Snjlwill increase the limit, 2 will decrease, and 0 will reset to the 9126167802Sjkim 9127126372Snjldefault. 9128102550Siwasaki 9129102550Siwasaki 9130102550Siwasaki3) ASL compiler: 9131102550Siwasaki 9132102550SiwasakiFixed segfault on Linux version. 9133102550Siwasaki 9134102550Siwasaki 9135102550Siwasaki---------------------------------------- 9136102550SiwasakiSummary of changes for this release: 02_25_02 9137102550Siwasaki 9138102550Siwasaki1) ACPI CA Core Subsystem: 9139102550Siwasaki 9140102550Siwasaki 9141102550SiwasakiFixed a problem where the GPE bit masks were not initialized 9142102550Siwasakiproperly, causing erratic GPE behavior. 9143102550Siwasaki 9144193267SjkimImplemented limited support for multiple calling conventions. The 9145126372Snjlcode can be generated with either the VPL (variable parameter 9146114237Snjllist, or "C") convention, or the FPL (fixed parameter list, or 9147114237Snjl"Pascal") convention. The core subsystem is about 3.4% smaller 9148114237Snjlwhen generated with FPL. 9149102550Siwasaki 9150102550Siwasaki 9151102550Siwasaki2) Linux 9152102550Siwasaki 9153114237SnjlRe-add some /proc/acpi/event functionality that was lost during 9154114237Snjlthe rewrite 9155102550Siwasaki 9156193267SjkimResolved issue with /proc events for fixed-feature buttons showing 9157126372Snjlup as the system device. 9158102550Siwasaki 9159193267SjkimFixed checks on C2/C3 latencies to be inclusive of maximum values. 9160102550Siwasaki 9161114237SnjlReplaced AE_ERRORs in acpi_osl.c with more specific error codes. 9162102550Siwasaki 9163114237SnjlChanged ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 9164102550Siwasaki 9165104470SiwasakiFixed limit interface & usage to fix bugs with passive cooling 9166104470Siwasakihysterisis. 9167102550Siwasaki 9168102550SiwasakiRestructured PRT support. 9169102550Siwasaki 9170102550Siwasaki 9171102550Siwasaki---------------------------------------- 9172102550SiwasakiSummary of changes for this label: 02_14_02 9173102550Siwasaki 9174102550Siwasaki 9175102550Siwasaki1) ACPI CA Core Subsystem: 9176102550Siwasaki 9177114237SnjlImplemented support in AcpiLoadTable to allow loading of FACS and 9178114237SnjlFADT tables. 9179102550Siwasaki 9180114237SnjlSuport for the now-obsolete interim 0.71 64-bit ACPI tables has 9181193267Sjkimbeen removed. All 64-bit platforms should be migrated to the ACPI 9182193267Sjkim2.0 tables. The actbl71.h header has been removed from the source 9183126372Snjltree. 9184102550Siwasaki 9185114237SnjlAll C macros defined within the subsystem have been prefixed with 9186114237Snjl"ACPI_" to avoid collision with other system include files. 9187102550Siwasaki 9188193267SjkimRemoved the return value for the two AcpiOsPrint interfaces, since 9189126372Snjlit is never used and causes lint warnings for ignoring the return 9190126372Snjlvalue. 9191102550Siwasaki 9192104470SiwasakiAdded error checking to all internal mutex acquire and release 9193104470Siwasakicalls. Although a failure from one of these interfaces is 9194104470Siwasakiprobably a fatal system error, these checks will cause the 9195114237Snjlimmediate abort of the currently executing method or interface. 9196102550Siwasaki 9197114237SnjlFixed a problem where the AcpiSetCurrentResources interface could 9198193267Sjkimfault. This was a side effect of the deployment of the new memory 9199126372Snjlallocation model. 9200102550Siwasaki 9201193267SjkimFixed a couple of problems with the Global Lock support introduced 9202193267Sjkimin the last major build. The "common" (1.0/2.0) internal FACS was 9203126372Snjlbeing overwritten with the FACS signature and clobbering the 9204126372SnjlGlobal Lock pointer. Also, the actual firmware FACS was being 9205126372Snjlunmapped after construction of the "common" FACS, preventing 9206126372Snjlaccess to the actual Global Lock field within it. The "common" 9207126372Snjlinternal FACS is no longer installed as an actual ACPI table; it 9208126372Snjlis used simply as a global. 9209102550Siwasaki 9210193267SjkimCode and Data Size: Current core subsystem library sizes are shown 9211126372Snjlbelow. These are the code and data sizes for the acpica.lib 9212126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 9213126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 9214126372Snjlversion of the code includes the debug output trace mechanism and 9215193267Sjkimhas a larger code and data size. Note that these values will vary 9216126372Snjldepending on the efficiency of the compiler and the compiler 9217126372Snjloptions used during generation. 9218102550Siwasaki 9219102550Siwasaki Previous Release (02_07_01) 9220104470Siwasaki Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9221104470Siwasaki Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9222102550Siwasaki Current Release: 9223104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 9224104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 9225102550Siwasaki 9226102550Siwasaki 9227102550Siwasaki2) Linux 9228102550Siwasaki 9229102550SiwasakiUpdated Linux-specific code for core macro and OSL interface 9230102550Siwasakichanges described above. 9231102550Siwasaki 9232114237SnjlImproved /proc/acpi/event. It now can be opened only once and has 9233114237Snjlproper poll functionality. 9234102550Siwasaki 9235102550SiwasakiFixed and restructured power management (acpi_bus). 9236102550Siwasaki 9237193267SjkimOnly create /proc "view by type" when devices of that class exist. 9238102550Siwasaki 9239104470SiwasakiFixed "charging/discharging" bug (and others) in acpi_battery. 9240102550Siwasaki 9241102550SiwasakiImproved thermal zone code. 9242102550Siwasaki 9243102550Siwasaki 9244102550Siwasaki3) ASL Compiler, version X2039: 9245102550Siwasaki 9246114237Snjl 9247114237SnjlImplemented the new compiler restriction on ASL String hex/octal 9248193267Sjkimescapes to non-null, ASCII values. An error results if an invalid 9249126372Snjlvalue is used. (This will require an ACPI 2.0 specification 9250126372Snjlchange.) 9251102550Siwasaki 9252193267SjkimAML object labels that are output to the optional C and ASM source 9253126372Snjlare now prefixed with both the ACPI table signature and table ID 9254126372Snjlto help guarantee uniqueness within a large BIOS project. 9255102550Siwasaki 9256102550Siwasaki 9257102550Siwasaki---------------------------------------- 9258102550SiwasakiSummary of changes for this label: 02_01_02 9259102550Siwasaki 9260102550Siwasaki1) ACPI CA Core Subsystem: 9261102550Siwasaki 9262114237SnjlACPI 2.0 support is complete in the entire Core Subsystem and the 9263114237SnjlASL compiler. All new ACPI 2.0 operators are implemented and all 9264114237Snjlother changes for ACPI 2.0 support are complete. With 9265193267Sjkimsimultaneous code and data optimizations throughout the subsystem, 9266126372SnjlACPI 2.0 support has been implemented with almost no additional 9267126372Snjlcost in terms of code and data size. 9268102550Siwasaki 9269114237SnjlImplemented a new mechanism for allocation of return buffers. If 9270114237Snjlthe buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 9271114237Snjlbe allocated on behalf of the caller. Consolidated all return 9272114237Snjlbuffer validation and allocation to a common procedure. Return 9273193267Sjkimbuffers will be allocated via the primary OSL allocation interface 9274193267Sjkimsince it appears that a separate pool is not needed by most users. 9275126372SnjlIf a separate pool is required for these buffers, the caller can 9276126372Snjlstill use the original mechanism and pre-allocate the buffer(s). 9277102550Siwasaki 9278102550SiwasakiImplemented support for string operands within the DerefOf 9279102550Siwasakioperator. 9280102550Siwasaki 9281114237SnjlRestructured the Hardware and Event managers to be table driven, 9282114237Snjlsimplifying the source code and reducing the amount of generated 9283114237Snjlcode. 9284102550Siwasaki 9285102550SiwasakiSplit the common read/write low-level ACPI register bitfield 9286104470Siwasakiprocedure into a separate read and write, simplifying the code 9287104470Siwasakiconsiderably. 9288102550Siwasaki 9289114237SnjlObsoleted the AcpiOsCallocate OSL interface. This interface was 9290114237Snjlused only a handful of times and didn't have enough critical mass 9291193267Sjkimfor a separate interface. Replaced with a common calloc procedure 9292126372Snjlin the core. 9293102550Siwasaki 9294104470SiwasakiFixed a reported problem with the GPE number mapping mechanism 9295104470Siwasakithat allows GPE1 numbers to be non-contiguous with GPE0. 9296114237SnjlReorganized the GPE information and shrunk a large array that was 9297114237Snjloriginally large enough to hold info for all possible GPEs (256) 9298114237Snjlto simply large enough to hold all GPEs up to the largest GPE 9299114237Snjlnumber on the machine. 9300102550Siwasaki 9301114237SnjlFixed a reported problem with resource structure alignment on 64- 9302114237Snjlbit platforms. 9303102550Siwasaki 9304102550SiwasakiChanged the AcpiEnableEvent and AcpiDisableEvent external 9305102550Siwasakiinterfaces to not require any flags for the common case of 9306102550Siwasakienabling/disabling a GPE. 9307102550Siwasaki 9308104470SiwasakiImplemented support to allow a "Notify" on a Processor object. 9309102550Siwasaki 9310114237SnjlMost TBDs in comments within the source code have been resolved 9311114237Snjland eliminated. 9312102550Siwasaki 9313167802Sjkim 9314102550SiwasakiFixed a problem in the interpreter where a standalone parent 9315102550Siwasakiprefix (^) was not handled correctly in the interpreter and 9316102550Siwasakidebugger. 9317102550Siwasaki 9318102550SiwasakiRemoved obsolete and unnecessary GPE save/restore code. 9319102550Siwasaki 9320193267SjkimImplemented Field support in the ASL Load operator. This allows a 9321126372Snjltable to be loaded from a named field, in addition to loading a 9322114237Snjltable directly from an Operation Region. 9323102550Siwasaki 9324193267SjkimImplemented timeout and handle support in the external Global Lock 9325126372Snjlinterfaces. 9326102550Siwasaki 9327114237SnjlFixed a problem in the AcpiDump utility where pathnames were no 9328193267Sjkimlonger being generated correctly during the dump of named objects. 9329102550Siwasaki 9330102550SiwasakiModified the AML debugger to give a full display of if/while 9331102550Siwasakipredicates instead of just one AML opcode at a time. (The 9332193267Sjkimpredicate can have several nested ASL statements.) The old method 9333126372Snjlwas confusing during single stepping. 9334102550Siwasaki 9335193267SjkimCode and Data Size: Current core subsystem library sizes are shown 9336126372Snjlbelow. These are the code and data sizes for the acpica.lib 9337114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 9338114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 9339114237Snjlversion of the code includes the debug output trace mechanism and 9340193267Sjkimhas a larger code and data size. Note that these values will vary 9341126372Snjldepending on the efficiency of the compiler and the compiler 9342114237Snjloptions used during generation. 9343102550Siwasaki 9344102550Siwasaki Previous Release (12_18_01) 9345114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9346114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9347102550Siwasaki Current Release: 9348114237Snjl Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 9349114237Snjl Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 9350102550Siwasaki 9351102550Siwasaki2) Linux 9352102550Siwasaki 9353104470Siwasaki Implemented fix for PIIX reverse throttling errata (Processor 9354104470Siwasakidriver) 9355102550Siwasaki 9356102550SiwasakiAdded new Limit interface (Processor and Thermal drivers) 9357102550Siwasaki 9358102550SiwasakiNew thermal policy (Thermal driver) 9359102550Siwasaki 9360102550SiwasakiMany updates to /proc 9361102550Siwasaki 9362102550SiwasakiBattery "low" event support (Battery driver) 9363102550Siwasaki 9364104470SiwasakiSupports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 9365102550Siwasaki 9366104470SiwasakiIA32 - IA64 initialization unification, no longer experimental 9367102550Siwasaki 9368102550SiwasakiMenuconfig options redesigned 9369102550Siwasaki 9370102550Siwasaki3) ASL Compiler, version X2037: 9371102550Siwasaki 9372193267SjkimImplemented several new output features to simplify integration of 9373126372SnjlAML code into firmware: 1) Output the AML in C source code with 9374193267Sjkimlabels for each named ASL object. The original ASL source code 9375193267Sjkimis interleaved as C comments. 2) Output the AML in ASM source code 9376126372Snjlwith labels and interleaved ASL source. 3) Output the AML in 9377126372Snjlraw hex table form, in either C or ASM. 9378102550Siwasaki 9379102550SiwasakiImplemented support for optional string parameters to the 9380102550SiwasakiLoadTable operator. 9381102550Siwasaki 9382104470SiwasakiCompleted support for embedded escape sequences within string 9383114237Snjlliterals. The compiler now supports all single character escapes 9384114237Snjlas well as the Octal and Hex escapes. Note: the insertion of a 9385114237Snjlnull byte into a string literal (via the hex/octal escape) causes 9386114237Snjlthe string to be immediately terminated. A warning is issued. 9387102550Siwasaki 9388104470SiwasakiFixed a problem where incorrect AML was generated for the case 9389104470Siwasakiwhere an ASL namepath consists of a single parent prefix ( 9390102550Siwasaki 9391102550Siwasaki) with no trailing name segments. 9392102550Siwasaki 9393102550SiwasakiThe compiler has been successfully generated with a 64-bit C 9394102550Siwasakicompiler. 9395102550Siwasaki 9396102550Siwasaki 9397102550Siwasaki 9398102550Siwasaki 9399102550Siwasaki---------------------------------------- 9400102550SiwasakiSummary of changes for this label: 12_18_01 9401102550Siwasaki 9402102550Siwasaki1) Linux 9403102550Siwasaki 9404114237SnjlEnhanced blacklist with reason and severity fields. Any table's 9405114237Snjlsignature may now be used to identify a blacklisted system. 9406102550Siwasaki 9407114237SnjlCall _PIC control method to inform the firmware which interrupt 9408114237Snjlmodel the OS is using. Turn on any disabled link devices. 9409102550Siwasaki 9410102550SiwasakiCleaned up busmgr /proc error handling (Andreas Dilger) 9411102550Siwasaki 9412102550Siwasaki 2) ACPI CA Core Subsystem: 9413102550Siwasaki 9414193267SjkimImplemented ACPI 2.0 semantics for the "Break" operator (Exit from 9415126372Snjlwhile loop) 9416102550Siwasaki 9417102550SiwasakiCompleted implementation of the ACPI 2.0 "Continue", 9418102550Siwasaki"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 9419193267Sjkimoperators. All new ACPI 2.0 operators are now implemented in both 9420193267Sjkimthe ASL compiler and the AML interpreter. The only remaining ACPI 9421126372Snjl2.0 task is support for the String data type in the DerefOf 9422193267Sjkimoperator. Fixed a problem with AcquireMutex where the status code 9423126372Snjlwas lost if the caller had to actually wait for the mutex. 9424102550Siwasaki 9425104470SiwasakiIncreased the maximum ASL Field size from 64K bits to 4G bits. 9426102550Siwasaki 9427193267SjkimCompleted implementation of the external Global Lock interfaces -- 9428126372SnjlAcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 9429126372SnjlHandler parameters were added. 9430102550Siwasaki 9431102550SiwasakiCompleted another pass at removing warnings and issues when 9432114237Snjlcompiling with 64-bit compilers. The code now compiles cleanly 9433114237Snjlwith the Intel 64-bit C/C++ compiler. Most notably, the pointer 9434114237Snjladd and subtract (diff) macros have changed considerably. 9435102550Siwasaki 9436167802Sjkim 9437114237SnjlCreated and deployed a new ACPI_SIZE type that is 64-bits wide on 9438114237Snjl64-bit platforms, 32-bits on all others. This type is used 9439193267Sjkimwherever memory allocation and/or the C sizeof() operator is used, 9440126372Snjland affects the OSL memory allocation interfaces AcpiOsAllocate 9441126372Snjland AcpiOsCallocate. 9442102550Siwasaki 9443102550SiwasakiImplemented sticky user breakpoints in the AML debugger. 9444102550Siwasaki 9445193267SjkimCode and Data Size: Current core subsystem library sizes are shown 9446126372Snjlbelow. These are the code and data sizes for the acpica.lib 9447114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 9448114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 9449114237Snjlversion of the code includes the debug output trace mechanism and 9450114237Snjlhas a larger code and data size. Note that these values will vary 9451114237Snjldepending on the efficiency of the compiler and the compiler 9452114237Snjloptions used during generation. 9453102550Siwasaki 9454102550Siwasaki Previous Release (12_05_01) 9455114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9456114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9457102550Siwasaki Current Release: 9458114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 9459114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 9460102550Siwasaki 9461102550Siwasaki 3) ASL Compiler, version X2034: 9462102550Siwasaki 9463114237SnjlNow checks for (and generates an error if detected) the use of a 9464114237SnjlBreak or Continue statement without an enclosing While statement. 9465102550Siwasaki 9466167802Sjkim 9467102550SiwasakiSuccessfully generated the compiler with the Intel 64-bit C 9468102550Siwasakicompiler. 9469102550Siwasaki 9470102550Siwasaki ---------------------------------------- 9471102550SiwasakiSummary of changes for this label: 12_05_01 9472102550Siwasaki 9473102550Siwasaki 1) ACPI CA Core Subsystem: 9474102550Siwasaki 9475102550SiwasakiThe ACPI 2.0 CopyObject operator is fully implemented. This 9476104470Siwasakioperator creates a new copy of an object (and is also used to 9477193267Sjkimbypass the "implicit conversion" mechanism of the Store operator.) 9478102550Siwasaki 9479102550SiwasakiThe ACPI 2.0 semantics for the SizeOf operator are fully 9480102550Siwasakiimplemented. The change is that performing a SizeOf on a 9481114237Snjlreference object causes an automatic dereference of the object to 9482114237Snjltha actual value before the size is evaluated. This behavior was 9483114237Snjlundefined in ACPI 1.0. 9484102550Siwasaki 9485114237SnjlThe ACPI 2.0 semantics for the Extended IRQ resource descriptor 9486114237Snjlhave been implemented. The interrupt polarity and mode are now 9487114237Snjlindependently set. 9488102550Siwasaki 9489114237SnjlFixed a problem where ASL Constants (Zero, One, Ones, Revision) 9490114237Snjlappearing in Package objects were not properly converted to 9491114237Snjlintegers when the internal Package was converted to an external 9492114237Snjlobject (via the AcpiEvaluateObject interface.) 9493102550Siwasaki 9494114237SnjlFixed a problem with the namespace object deletion mechanism for 9495114237Snjlobjects created by control methods. There were two parts to this 9496193267Sjkimproblem: 1) Objects created during the initialization phase method 9497193267Sjkimparse were not being deleted, and 2) The object owner ID mechanism 9498126372Snjlto track objects was broken. 9499102550Siwasaki 9500114237SnjlFixed a problem where the use of the ASL Scope operator within a 9501114237Snjlcontrol method would result in an invalid opcode exception. 9502102550Siwasaki 9503114237SnjlFixed a problem introduced in the previous label where the buffer 9504114237Snjllength required for the _PRT structure was not being returned 9505114237Snjlcorrectly. 9506102550Siwasaki 9507193267SjkimCode and Data Size: Current core subsystem library sizes are shown 9508126372Snjlbelow. These are the code and data sizes for the acpica.lib 9509114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 9510114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 9511114237Snjlversion of the code includes the debug output trace mechanism and 9512193267Sjkimhas a larger code and data size. Note that these values will vary 9513126372Snjldepending on the efficiency of the compiler and the compiler 9514114237Snjloptions used during generation. 9515102550Siwasaki 9516102550Siwasaki Previous Release (11_20_01) 9517114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9518114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9519102550Siwasaki 9520102550Siwasaki Current Release: 9521114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 9522114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 9523102550Siwasaki 9524102550Siwasaki 2) Linux: 9525102550Siwasaki 9526102550SiwasakiUpdated all files to apply cleanly against 2.4.16. 9527102550Siwasaki 9528104470SiwasakiAdded basic PCI Interrupt Routing Table (PRT) support for IA32 9529114237Snjl(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 9530114237Snjlversion supports both static and dyanmic PRT entries, but dynamic 9531114237Snjlentries are treated as if they were static (not yet 9532114237Snjlreconfigurable). Architecture- specific code to use this data is 9533114237Snjlabsent on IA32 but should be available shortly. 9534102550Siwasaki 9535114237SnjlChanged the initialization sequence to start the ACPI interpreter 9536114237Snjl(acpi_init) prior to initialization of the PCI driver (pci_init) 9537114237Snjlin init/main.c. This ordering is required to support PRT and 9538114237Snjlfacilitate other (future) enhancement. A side effect is that the 9539193267SjkimACPI bus driver and certain device drivers can no longer be loaded 9540126372Snjlas modules. 9541102550Siwasaki 9542104470SiwasakiModified the 'make menuconfig' options to allow PCI Interrupt 9543104470SiwasakiRouting support to be included without the ACPI Bus and other 9544104470Siwasakidevice drivers. 9545102550Siwasaki 9546102550Siwasaki 3) ASL Compiler, version X2033: 9547102550Siwasaki 9548102550SiwasakiFixed some issues with the use of the new CopyObject and 9549102550SiwasakiDataTableRegion operators. Both are fully functional. 9550102550Siwasaki 9551102550Siwasaki ---------------------------------------- 9552102550SiwasakiSummary of changes for this label: 11_20_01 9553102550Siwasaki 9554102550Siwasaki 20 November 2001. Summary of changes for this release. 9555102550Siwasaki 9556102550Siwasaki 1) ACPI CA Core Subsystem: 9557102550Siwasaki 9558104470SiwasakiUpdated Index support to match ACPI 2.0 semantics. Storing a 9559193267SjkimInteger, String, or Buffer to an Index of a Buffer will store only 9560126372Snjlthe least-significant byte of the source to the Indexed buffer 9561126372Snjlbyte. Multiple writes are not performed. 9562102550Siwasaki 9563104470SiwasakiFixed a problem where the access type used in an AccessAs ASL 9564104470Siwasakioperator was not recorded correctly into the field object. 9565102550Siwasaki 9566102550SiwasakiFixed a problem where ASL Event objects were created in a 9567114237Snjlsignalled state. Events are now created in an unsignalled state. 9568102550Siwasaki 9569114237SnjlThe internal object cache is now purged after table loading and 9570114237Snjlinitialization to reduce the use of dynamic kernel memory -- on 9571114237Snjlthe assumption that object use is greatest during the parse phase 9572193267Sjkimof the entire table (versus the run-time use of individual control 9573126372Snjlmethods.) 9574102550Siwasaki 9575102550SiwasakiACPI 2.0 variable-length packages are now fully operational. 9576102550Siwasaki 9577193267SjkimCode and Data Size: Code and Data optimizations have permitted new 9578126372Snjlfeature development with an actual reduction in the library size. 9579126372SnjlCurrent core subsystem library sizes are shown below. These are 9580126372Snjlthe code and data sizes for the acpica.lib produced by the 9581193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9582126372Snjlany ACPI driver or OSPM code. The debug version of the code 9583126372Snjlincludes the debug output trace mechanism and has a larger code 9584126372Snjland data size. Note that these values will vary depending on the 9585126372Snjlefficiency of the compiler and the compiler options used during 9586126372Snjlgeneration. 9587102550Siwasaki 9588102550Siwasaki Previous Release (11_09_01): 9589114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9590114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9591102550Siwasaki 9592102550Siwasaki Current Release: 9593114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 9594114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 9595102550Siwasaki 9596102550Siwasaki 2) Linux: 9597102550Siwasaki 9598114237SnjlEnhanced the ACPI boot-time initialization code to allow the use 9599114237Snjlof Local APIC tables for processor enumeration on IA-32, and to 9600114237Snjlpave the way for a fully MPS-free boot (on SMP systems) in the 9601114237Snjlnear future. This functionality replaces 9602114237Snjlarch/i386/kernel/acpitables.c, which was introduced in an earlier 9603114237Snjl2.4.15-preX release. To enable this feature you must add 9604114237Snjl"acpi_boot=on" to the kernel command line -- see the help entry 9605193267Sjkimfor CONFIG_ACPI_BOOT for more information. An IA-64 release is in 9606126372Snjlthe works... 9607102550Siwasaki 9608114237SnjlRestructured the configuration options to allow boot-time table 9609114237Snjlparsing support without inclusion of the ACPI Interpreter (and 9610114237Snjlother) code. 9611102550Siwasaki 9612193267SjkimNOTE: This release does not include fixes for the reported events, 9613126372Snjlpower-down, and thermal passive cooling issues (coming soon). 9614102550Siwasaki 9615102550Siwasaki 3) ASL Compiler: 9616102550Siwasaki 9617114237SnjlAdded additional typechecking for Fields within restricted access 9618114237SnjlOperation Regions. All fields within EC and CMOS regions must be 9619114237Snjldeclared with ByteAcc. All fields withing SMBus regions must be 9620114237Snjldeclared with the BufferAcc access type. 9621102550Siwasaki 9622114237SnjlFixed a problem where the listing file output of control methods 9623114237Snjlno longer interleaved the actual AML code with the ASL source 9624114237Snjlcode. 9625102550Siwasaki 9626102550Siwasaki 9627102550Siwasaki 9628167802Sjkim 9629102550Siwasaki---------------------------------------- 9630102550SiwasakiSummary of changes for this label: 11_09_01 9631102550Siwasaki 9632102550Siwasaki1) ACPI CA Core Subsystem: 9633102550Siwasaki 9634114237SnjlImplemented ACPI 2.0-defined support for writes to fields with a 9635193267SjkimBuffer, String, or Integer source operand that is smaller than the 9636126372Snjltarget field. In these cases, the source operand is zero-extended 9637126372Snjlto fill the target field. 9638102550Siwasaki 9639104470SiwasakiFixed a problem where a Field starting bit offset (within the 9640104470Siwasakiparent operation region) was calculated incorrectly if the 9641167802Sjkim 9642104470Siwasakialignment of the field differed from the access width. This 9643114237Snjlaffected CreateWordField, CreateDwordField, CreateQwordField, and 9644114237Snjlpossibly other fields that use the "AccessAny" keyword. 9645102550Siwasaki 9646114237SnjlFixed a problem introduced in the 11_02_01 release where indirect 9647114237Snjlstores through method arguments did not operate correctly. 9648102550Siwasaki 9649102550Siwasaki2) Linux: 9650102550Siwasaki 9651102550SiwasakiImplemented boot-time ACPI table parsing support 9652114237Snjl(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 9653114237Snjlfacilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 9654114237Snjllegacy BIOS interfaces (e.g. MPS) for the configuration of system 9655193267Sjkimprocessors, memory, and interrupts during setup_arch(). Note that 9656126372Snjlthis patch does not include the required architecture-specific 9657126372Snjlchanges required to apply this information -- subsequent patches 9658126372Snjlwill be posted for both IA32 and IA64 to achieve this. 9659102550Siwasaki 9660114237SnjlAdded low-level sleep support for IA32 platforms, courtesy of Pat 9661114237SnjlMochel. This allows IA32 systems to transition to/from various 9662114237Snjlsleeping states (e.g. S1, S3), although the lack of a centralized 9663114237Snjldriver model and power-manageable drivers will prevent its 9664114237Snjl(successful) use on most systems. 9665102550Siwasaki 9666114237SnjlRevamped the ACPI 'menuconfig' layout: created new "ACPI Support" 9667193267Sjkimsubmenu, unified IA32 and IA64 options, added new "Boot using ACPI 9668126372Snjltables" option, etc. 9669102550Siwasaki 9670114237SnjlIncreased the default timeout for the EC driver from 1ms to 10ms 9671114237Snjl(1000 cycles of 10us) to try to address AE_TIME errors during EC 9672114237Snjltransactions. 9673102550Siwasaki 9674102550Siwasaki ---------------------------------------- 9675102550SiwasakiSummary of changes for this label: 11_02_01 9676102550Siwasaki 9677102550Siwasaki1) ACPI CA Core Subsystem: 9678102550Siwasaki 9679102550SiwasakiACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 9680102550Siwasaki(QWordAcc keyword). All ACPI 2.0 64-bit support is now 9681102550Siwasakiimplemented. 9682102550Siwasaki 9683114237SnjlOSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 9684114237Snjlchanges to support ACPI 2.0 Qword field access. Read/Write 9685193267SjkimPciConfiguration(), Read/Write Memory(), and Read/Write Port() now 9686126372Snjlaccept an ACPI_INTEGER (64 bits) as the value parameter. Also, 9687193267Sjkimthe value parameter for the address space handler interface is now 9688193267Sjkiman ACPI_INTEGER. OSL implementations of these interfaces must now 9689126372Snjlhandle the case where the Width parameter is 64. 9690102550Siwasaki 9691104470SiwasakiIndex Fields: Fixed a problem where unaligned bit assembly and 9692104470Siwasakidisassembly for IndexFields was not supported correctly. 9693102550Siwasaki 9694102550SiwasakiIndex and Bank Fields: Nested Index and Bank Fields are now 9695104470Siwasakisupported. During field access, a check is performed to ensure 9696114237Snjlthat the value written to an Index or Bank register is not out of 9697114237Snjlthe range of the register. The Index (or Bank) register is 9698114237Snjlwritten before each access to the field data. Future support will 9699114237Snjlinclude allowing individual IndexFields to be wider than the 9700114237SnjlDataRegister width. 9701102550Siwasaki 9702114237SnjlFields: Fixed a problem where the AML interpreter was incorrectly 9703114237Snjlattempting to write beyond the end of a Field/OpRegion. This was 9704114237Snjla boundary case that occurred when a DWORD field was written to a 9705114237SnjlBYTE access OpRegion, forcing multiple writes and causing the 9706114237Snjlinterpreter to write one datum too many. 9707102550Siwasaki 9708102550SiwasakiFields: Fixed a problem with Field/OpRegion access where the 9709114237Snjlstarting bit address of a field was incorrectly calculated if the 9710114237Snjlcurrent access type was wider than a byte (WordAcc, DwordAcc, or 9711114237SnjlQwordAcc). 9712102550Siwasaki 9713104470SiwasakiFields: Fixed a problem where forward references to individual 9714193267SjkimFieldUnits (individual Field names within a Field definition) were 9715126372Snjlnot resolved during the AML table load. 9716102550Siwasaki 9717104470SiwasakiFields: Fixed a problem where forward references from a Field 9718104470Siwasakidefinition to the parent Operation Region definition were not 9719104470Siwasakiresolved during the AML table load. 9720104470Siwasaki 9721114237SnjlFields: Duplicate FieldUnit names within a scope are now detected 9722114237Snjlduring AML table load. 9723102550Siwasaki 9724193267SjkimAcpi Interfaces: Fixed a problem where the AcpiGetName() interface 9725126372Snjlreturned an incorrect name for the root node. 9726102550Siwasaki 9727193267SjkimCode and Data Size: Code and Data optimizations have permitted new 9728126372Snjlfeature development with an actual reduction in the library size. 9729126372SnjlCurrent core subsystem library sizes are shown below. These are 9730126372Snjlthe code and data sizes for the acpica.lib produced by the 9731193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9732126372Snjlany ACPI driver or OSPM code. The debug version of the code 9733126372Snjlincludes the debug output trace mechanism and has a larger code 9734126372Snjland data size. Note that these values will vary depending on the 9735126372Snjlefficiency of the compiler and the compiler options used during 9736126372Snjlgeneration. 9737102550Siwasaki 9738102550Siwasaki Previous Release (10_18_01): 9739114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 9740114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 9741102550Siwasaki 9742102550Siwasaki Current Release: 9743114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 9744114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 9745102550Siwasaki 9746102550Siwasaki 2) Linux: 9747102550Siwasaki 9748102550SiwasakiImproved /proc processor output (Pavel Machek) Re-added 9749102550SiwasakiMODULE_LICENSE("GPL") to all modules. 9750102550Siwasaki 9751102550Siwasaki 3) ASL Compiler version X2030: 9752102550Siwasaki 9753104470SiwasakiDuplicate FieldUnit names within a scope are now detected and 9754104470Siwasakiflagged as errors. 9755102550Siwasaki 9756102550Siwasaki 4) Documentation: 9757102550Siwasaki 9758104470SiwasakiProgrammer Reference updated to reflect OSL and address space 9759104470Siwasakihandler interface changes described above. 9760102550Siwasaki 9761102550Siwasaki---------------------------------------- 9762102550SiwasakiSummary of changes for this label: 10_18_01 9763102550Siwasaki 9764102550SiwasakiACPI CA Core Subsystem: 9765102550Siwasaki 9766193267SjkimFixed a problem with the internal object reference count mechanism 9767126372Snjlthat occasionally caused premature object deletion. This resolves 9768126372Snjlall of the outstanding problem reports where an object is deleted 9769193267Sjkimin the middle of an interpreter evaluation. Although this problem 9770126372Snjlonly showed up in rather obscure cases, the solution to the 9771126372Snjlproblem involved an adjustment of all reference counts involving 9772126372Snjlobjects attached to namespace nodes. 9773102550Siwasaki 9774102550SiwasakiFixed a problem with Field support in the interpreter where 9775114237Snjlwriting to an aligned field whose length is an exact multiple (2 9776193267Sjkimor greater) of the field access granularity would cause an attempt 9777126372Snjlto write beyond the end of the field. 9778102550Siwasaki 9779102550SiwasakiThe top level AML opcode execution functions within the 9780102550Siwasakiinterpreter have been renamed with a more meaningful and 9781102550Siwasakiconsistent naming convention. The modules exmonad.c and 9782102550Siwasakiexdyadic.c were eliminated. New modules are exoparg1.c, 9783102550Siwasakiexoparg2.c, exoparg3.c, and exoparg6.c. 9784102550Siwasaki 9785114237SnjlSupport for the ACPI 2.0 "Mid" ASL operator has been implemented. 9786102550Siwasaki 9787114237SnjlFixed a problem where the AML debugger was causing some internal 9788114237Snjlobjects to not be deleted during subsystem termination. 9789102550Siwasaki 9790104470SiwasakiFixed a problem with the external AcpiEvaluateObject interface 9791104470Siwasakiwhere the subsystem would fault if the named object to be 9792104470Siwasakievaluated refered to a constant such as Zero, Ones, etc. 9793102550Siwasaki 9794102550SiwasakiFixed a problem with IndexFields and BankFields where the 9795114237Snjlsubsystem would fault if the index, data, or bank registers were 9796114237Snjlnot defined in the same scope as the field itself. 9797102550Siwasaki 9798104470SiwasakiAdded printf format string checking for compilers that support 9799104470Siwasakithis feature. Corrected more than 50 instances of issues with 9800104470Siwasakiformat specifiers within invocations of ACPI_DEBUG_PRINT 9801104470Siwasakithroughout the core subsystem code. 9802102550Siwasaki 9803104470SiwasakiThe ASL "Revision" operator now returns the ACPI support level 9804193267Sjkimimplemented in the core - the value "2" since the ACPI 2.0 support 9805126372Snjlis more than 50% implemented. 9806102550Siwasaki 9807114237SnjlEnhanced the output of the AML debugger "dump namespace" command 9808114237Snjlto output in a more human-readable form. 9809102550Siwasaki 9810114237SnjlCurrent core subsystem library code sizes are shown below. These 9811167802Sjkim 9812114237Snjlare the code and data sizes for the acpica.lib produced by the 9813193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9814126372Snjlany ACPI driver or OSPM code. The debug version of the code 9815126372Snjlincludes the full debug trace mechanism -- leading to a much 9816167802Sjkim 9817114237Snjllarger code and data size. Note that these values will vary 9818114237Snjldepending on the efficiency of the compiler and the compiler 9819114237Snjloptions used during generation. 9820102550Siwasaki 9821102550Siwasaki Previous Label (09_20_01): 9822114237Snjl Non-Debug Version: 65K Code, 5K Data, 70K Total 9823114237Snjl Debug Version: 138K Code, 58K Data, 196K Total 9824102550Siwasaki 9825102550Siwasaki This Label: 9826102550Siwasaki 9827114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 9828114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 9829114237Snjl 9830102550SiwasakiLinux: 9831102550Siwasaki 9832104470SiwasakiImplemented a "Bad BIOS Blacklist" to track machines that have 9833104470Siwasakiknown ASL/AML problems. 9834102550Siwasaki 9835193267SjkimEnhanced the /proc interface for the thermal zone driver and added 9836126372Snjlsupport for _HOT (the critical suspend trip point). The 'info' 9837193267Sjkimfile now includes threshold/policy information, and allows setting 9838126372Snjlof _SCP (cooling preference) and _TZP (polling frequency) values 9839193267Sjkimto the 'info' file. Examples: "echo tzp=5 > info" sets the polling 9840126372Snjlfrequency to 5 seconds, and "echo scp=1 > info" sets the cooling 9841126372Snjlpreference to the passive/quiet mode (if supported by the ASL). 9842102550Siwasaki 9843104470SiwasakiImplemented a workaround for a gcc bug that resuted in an OOPs 9844104470Siwasakiwhen loading the control method battery driver. 9845102550Siwasaki 9846102550Siwasaki ---------------------------------------- 9847102550SiwasakiSummary of changes for this label: 09_20_01 9848102550Siwasaki 9849102550Siwasaki ACPI CA Core Subsystem: 9850102550Siwasaki 9851104470SiwasakiThe AcpiEnableEvent and AcpiDisableEvent interfaces have been 9852104470Siwasakimodified to allow individual GPE levels to be flagged as wake- 9853114237Snjlenabled (i.e., these GPEs are to remain enabled when the platform 9854114237Snjlsleeps.) 9855102550Siwasaki 9856104470SiwasakiThe AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 9857104470Siwasakisupport wake-enabled GPEs. This means that upon entering the 9858104470Siwasakisleep state, all GPEs that are not wake-enabled are disabled. 9859104470SiwasakiWhen leaving the sleep state, these GPEs are reenabled. 9860102550Siwasaki 9861114237SnjlA local double-precision divide/modulo module has been added to 9862114237Snjlenhance portability to OS kernels where a 64-bit math library is 9863114237Snjlnot available. The new module is "utmath.c". 9864102550Siwasaki 9865104470SiwasakiSeveral optimizations have been made to reduce the use of CPU 9866114237Snjlstack. Originally over 2K, the maximum stack usage is now below 9867114237Snjl2K at 1860 bytes (1.82k) 9868102550Siwasaki 9869114237SnjlFixed a problem with the AcpiGetFirmwareTable interface where the 9870193267Sjkimroot table pointer was not mapped into a logical address properly. 9871102550Siwasaki 9872193267SjkimFixed a problem where a NULL pointer was being dereferenced in the 9873126372Snjlinterpreter code for the ASL Notify operator. 9874102550Siwasaki 9875102550SiwasakiFixed a problem where the use of the ASL Revision operator 9876114237Snjlreturned an error. This operator now returns the current version 9877114237Snjlof the ACPI CA core subsystem. 9878102550Siwasaki 9879114237SnjlFixed a problem where objects passed as control method parameters 9880114237Snjlto AcpiEvaluateObject were always deleted at method termination. 9881114237SnjlHowever, these objects may end up being stored into the namespace 9882114237Snjlby the called method. The object reference count mechanism was 9883114237Snjlapplied to these objects instead of a force delete. 9884102550Siwasaki 9885114237SnjlFixed a problem where static strings or buffers (contained in the 9886114237SnjlAML code) that are declared as package elements within the ASL 9887114237Snjlcode could cause a fault because the interpreter would attempt to 9888114237Snjldelete them. These objects are now marked with the "static 9889114237Snjlobject" flag to prevent any attempt to delete them. 9890102550Siwasaki 9891114237SnjlImplemented an interpreter optimization to use operands directly 9892114237Snjlfrom the state object instead of extracting the operands to local 9893114237Snjlvariables. This reduces stack use and code size, and improves 9894114237Snjlperformance. 9895102550Siwasaki 9896193267SjkimThe module exxface.c was eliminated as it was an unnecessary extra 9897126372Snjllayer of code. 9898102550Siwasaki 9899114237SnjlCurrent core subsystem library code sizes are shown below. These 9900114237Snjlare the code and data sizes for the acpica.lib produced by the 9901193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9902126372Snjlany ACPI driver or OSPM code. The debug version of the code 9903126372Snjlincludes the full debug trace mechanism -- leading to a much 9904114237Snjllarger code and data size. Note that these values will vary 9905114237Snjldepending on the efficiency of the compiler and the compiler 9906114237Snjloptions used during generation. 9907102550Siwasaki 9908102550Siwasaki Non-Debug Version: 65K Code, 5K Data, 70K Total 9909114237Snjl(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 9910114237SnjlTotal (Previously 195K) 9911102550Siwasaki 9912102550SiwasakiLinux: 9913102550Siwasaki 9914114237SnjlSupport for ACPI 2.0 64-bit integers has been added. All ACPI 9915114237SnjlInteger objects are now 64 bits wide 9916102550Siwasaki 9917114237SnjlAll Acpi data types and structures are now in lower case. Only 9918114237SnjlAcpi macros are upper case for differentiation. 9919102550Siwasaki 9920102550Siwasaki Documentation: 9921102550Siwasaki 9922102550SiwasakiChanges to the external interfaces as described above. 9923102550Siwasaki 9924102550Siwasaki ---------------------------------------- 9925102550SiwasakiSummary of changes for this label: 08_31_01 9926102550Siwasaki 9927102550Siwasaki ACPI CA Core Subsystem: 9928102550Siwasaki 9929114237SnjlA bug with interpreter implementation of the ASL Divide operator 9930114237Snjlwas found and fixed. The implicit function return value (not the 9931114237Snjlexplicit store operands) was returning the remainder instead of 9932114237Snjlthe quotient. This was a longstanding bug and it fixes several 9933114237Snjlknown outstanding issues on various platforms. 9934102550Siwasaki 9935104470SiwasakiThe ACPI_DEBUG_PRINT and function trace entry/exit macros have 9936193267Sjkimbeen further optimized for size. There are 700 invocations of the 9937126372SnjlDEBUG_PRINT macro alone, so each optimization reduces the size of 9938126372Snjlthe debug version of the subsystem significantly. 9939102550Siwasaki 9940114237SnjlA stack trace mechanism has been implemented. The maximum stack 9941193267Sjkimusage is about 2K on 32-bit platforms. The debugger command "stat 9942126372Snjlstack" will display the current maximum stack usage. 9943102550Siwasaki 9944114237SnjlAll public symbols and global variables within the subsystem are 9945114237Snjlnow prefixed with the string "Acpi". This keeps all of the 9946114237Snjlsymbols grouped together in a kernel map, and avoids conflicts 9947114237Snjlwith other kernel subsystems. 9948102550Siwasaki 9949114237SnjlMost of the internal fixed lookup tables have been moved into the 9950114237Snjlcode segment via the const operator. 9951102550Siwasaki 9952104470SiwasakiSeveral enhancements have been made to the interpreter to both 9953104470Siwasakireduce the code size and improve performance. 9954102550Siwasaki 9955114237SnjlCurrent core subsystem library code sizes are shown below. These 9956114237Snjlare the code and data sizes for the acpica.lib produced by the 9957193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 9958126372Snjlany ACPI driver or OSPM code. The debug version of the code 9959126372Snjlincludes the full debug trace mechanism which contains over 700 9960126372Snjlinvocations of the DEBUG_PRINT macro, 500 function entry macro 9961126372Snjlinvocations, and over 900 function exit macro invocations -- 9962126372Snjlleading to a much larger code and data size. Note that these 9963114237Snjlvalues will vary depending on the efficiency of the compiler and 9964114237Snjlthe compiler options used during generation. 9965102550Siwasaki 9966102550Siwasaki Non-Debug Version: 64K Code, 5K Data, 69K Total 9967102550SiwasakiDebug Version: 137K Code, 58K Data, 195K Total 9968102550Siwasaki 9969102550Siwasaki Linux: 9970102550Siwasaki 9971104470SiwasakiImplemented wbinvd() macro, pending a kernel-wide definition. 9972102550Siwasaki 9973102550SiwasakiFixed /proc/acpi/event to handle poll() and short reads. 9974102550Siwasaki 9975102550Siwasaki ASL Compiler, version X2026: 9976102550Siwasaki 9977104470SiwasakiFixed a problem introduced in the previous label where the AML 9978167802Sjkim 9979104470Siwasakicode emitted for package objects produced packages with zero 9980104470Siwasakilength. 9981102550Siwasaki 9982102550Siwasaki ---------------------------------------- 9983102550SiwasakiSummary of changes for this label: 08_16_01 9984102550Siwasaki 9985102550SiwasakiACPI CA Core Subsystem: 9986102550Siwasaki 9987114237SnjlThe following ACPI 2.0 ASL operators have been implemented in the 9988114237SnjlAML interpreter (These are already supported by the Intel ASL 9989193267Sjkimcompiler): ToDecimalString, ToHexString, ToString, ToInteger, and 9990126372SnjlToBuffer. Support for 64-bit AML constants is implemented in the 9991126372SnjlAML parser, debugger, and disassembler. 9992102550Siwasaki 9993114237SnjlThe internal memory tracking mechanism (leak detection code) has 9994114237Snjlbeen upgraded to reduce the memory overhead (a separate tracking 9995114237Snjlblock is no longer allocated for each memory allocation), and now 9996114237Snjlsupports all of the internal object caches. 9997102550Siwasaki 9998114237SnjlThe data structures and code for the internal object caches have 9999114237Snjlbeen coelesced and optimized so that there is a single cache and 10000114237Snjlmemory list data structure and a single group of functions that 10001114237Snjlimplement generic cache management. This has reduced the code 10002114237Snjlsize in both the debug and release versions of the subsystem. 10003102550Siwasaki 10004193267SjkimThe DEBUG_PRINT macro(s) have been optimized for size and replaced 10005126372Snjlby ACPI_DEBUG_PRINT. The syntax for this macro is slightly 10006126372Snjldifferent, because it generates a single call to an internal 10007126372Snjlfunction. This results in a savings of about 90 bytes per 10008193267Sjkiminvocation, resulting in an overall code and data savings of about 10009126372Snjl16% in the debug version of the subsystem. 10010102550Siwasaki 10011102550Siwasaki Linux: 10012102550Siwasaki 10013114237SnjlFixed C3 disk corruption problems and re-enabled C3 on supporting 10014114237Snjlmachines. 10015102550Siwasaki 10016102550SiwasakiIntegrated low-level sleep code by Patrick Mochel. 10017102550Siwasaki 10018102550SiwasakiFurther tweaked source code Linuxization. 10019102550Siwasaki 10020102550SiwasakiOther minor fixes. 10021102550Siwasaki 10022102550Siwasaki ASL Compiler: 10023102550Siwasaki 10024114237SnjlSupport for ACPI 2.0 variable length packages is fixed/completed. 10025102550Siwasaki 10026114237SnjlFixed a problem where the optional length parameter for the ACPI 10027114237Snjl2.0 ToString operator. 10028102550Siwasaki 10029114237SnjlFixed multiple extraneous error messages when a syntax error is 10030114237Snjldetected within the declaration line of a control method. 10031102550Siwasaki 10032102550Siwasaki ---------------------------------------- 10033102550SiwasakiSummary of changes for this label: 07_17_01 10034102550Siwasaki 10035102550SiwasakiACPI CA Core Subsystem: 10036102550Siwasaki 10037104470SiwasakiAdded a new interface named AcpiGetFirmwareTable to obtain any 10038193267SjkimACPI table via the ACPI signature. The interface can be called at 10039126372Snjlany time during kernel initialization, even before the kernel 10040193267Sjkimvirtual memory manager is initialized and paging is enabled. This 10041126372Snjlallows kernel subsystems to obtain ACPI tables very early, even 10042126372Snjlbefore the ACPI CA subsystem is initialized. 10043102550Siwasaki 10044104470SiwasakiFixed a problem where Fields defined with the AnyAcc attribute 10045104470Siwasakicould be resolved to the incorrect address under the following 10046114237Snjlconditions: 1) the field width is larger than 8 bits and 2) the 10047114237Snjlparent operation region is not defined on a DWORD boundary. 10048102550Siwasaki 10049114237SnjlFixed a problem where the interpreter is not being locked during 10050114237Snjlnamespace initialization (during execution of the _INI control 10051114237Snjlmethods), causing an error when an attempt is made to release it 10052114237Snjllater. 10053102550Siwasaki 10054104470SiwasakiACPI 2.0 support in the AML Interpreter has begun and will be 10055114237Snjlongoing throughout the rest of this year. In this label, The Mod 10056114237Snjloperator is implemented. 10057102550Siwasaki 10058102550SiwasakiAdded a new data type to contain full PCI addresses named 10059193267SjkimACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 10060126372Snjland Function values. 10061102550Siwasaki 10062102550Siwasaki Linux: 10063102550Siwasaki 10064102550SiwasakiEnhanced the Linux version of the source code to change most 10065102550Siwasakicapitalized ACPI type names to lowercase. For example, all 10066114237Snjlinstances of ACPI_STATUS are changed to acpi_status. This will 10067114237Snjlresult in a large diff, but the change is strictly cosmetic and 10068114237Snjlaligns the CA code closer to the Linux coding standard. 10069102550Siwasaki 10070102550SiwasakiOSL Interfaces: 10071102550Siwasaki 10072193267SjkimThe interfaces to the PCI configuration space have been changed to 10073193267Sjkimadd the PCI Segment number and to split the single 32-bit combined 10074126372SnjlDeviceFunction field into two 16-bit fields. This was 10075114237Snjlaccomplished by moving the four values that define an address in 10076114237SnjlPCI configuration space (segment, bus, device, and function) to 10077114237Snjlthe new ACPI_PCI_ID structure. 10078102550Siwasaki 10079104470SiwasakiThe changes to the PCI configuration space interfaces led to a 10080104470Siwasakireexamination of the complete set of address space access 10081114237Snjlinterfaces for PCI, I/O, and Memory. The previously existing 18 10082114237Snjlinterfaces have proven difficult to maintain (any small change 10083193267Sjkimmust be propagated across at least 6 interfaces) and do not easily 10084193267Sjkimallow for future expansion to 64 bits if necessary. Also, on some 10085126372Snjlsystems, it would not be appropriate to demultiplex the access 10086126372Snjlwidth (8, 16, 32,or 64) before calling the OSL if the 10087114237Snjlcorresponding native OS interfaces contain a similar access width 10088114237Snjlparameter. For these reasons, the 18 address space interfaces 10089114237Snjlhave been replaced by these 6 new ones: 10090102550Siwasaki 10091102550SiwasakiAcpiOsReadPciConfiguration 10092102550SiwasakiAcpiOsWritePciConfiguration 10093102550SiwasakiAcpiOsReadMemory 10094102550SiwasakiAcpiOsWriteMemory 10095102550SiwasakiAcpiOsReadPort 10096102550SiwasakiAcpiOsWritePort 10097102550Siwasaki 10098114237SnjlAdded a new interface named AcpiOsGetRootPointer to allow the OSL 10099114237Snjlto perform the platform and/or OS-specific actions necessary to 10100114237Snjlobtain the ACPI RSDP table pointer. On IA-32 platforms, this 10101114237Snjlinterface will simply call down to the CA core to perform the low- 10102114237Snjlmemory search for the table. On IA-64, the RSDP is obtained from 10103114237SnjlEFI. Migrating this interface to the OSL allows the CA core to 10104167802Sjkim 10105114237Snjlremain OS and platform independent. 10106102550Siwasaki 10107104470SiwasakiAdded a new interface named AcpiOsSignal to provide a generic 10108114237Snjl"function code and pointer" interface for various miscellaneous 10109114237Snjlsignals and notifications that must be made to the host OS. The 10110114237Snjlfirst such signals are intended to support the ASL Fatal and 10111114237SnjlBreakpoint operators. In the latter case, the AcpiOsBreakpoint 10112114237Snjlinterface has been obsoleted. 10113102550Siwasaki 10114102550SiwasakiThe definition of the AcpiFormatException interface has been 10115114237Snjlchanged to simplify its use. The caller no longer must supply a 10116114237Snjlbuffer to the call; A pointer to a const string is now returned 10117114237Snjldirectly. This allows the call to be easily used in printf 10118114237Snjlstatements, etc. since the caller does not have to manage a local 10119114237Snjlbuffer. 10120102550Siwasaki 10121114237Snjl 10122102550Siwasaki ASL Compiler, Version X2025: 10123102550Siwasaki 10124114237SnjlThe ACPI 2.0 Switch/Case/Default operators have been implemented 10125114237Snjland are fully functional. They will work with all ACPI 1.0 10126193267Sjkiminterpreters, since the operators are simply translated to If/Else 10127126372Snjlpairs. 10128102550Siwasaki 10129104470SiwasakiThe ACPI 2.0 ElseIf operator is implemented and will also work 10130104470Siwasakiwith 1.0 interpreters, for the same reason. 10131102550Siwasaki 10132114237SnjlImplemented support for ACPI 2.0 variable-length packages. These 10133114237Snjlpackages have a separate opcode, and their size is determined by 10134114237Snjlthe interpreter at run-time. 10135102550Siwasaki 10136193267SjkimDocumentation The ACPI CA Programmer Reference has been updated to 10137126372Snjlreflect the new interfaces and changes to existing interfaces. 10138102550Siwasaki 10139102550Siwasaki ------------------------------------------ 10140102550SiwasakiSummary of changes for this label: 06_15_01 10141102550Siwasaki 10142102550Siwasaki ACPI CA Core Subsystem: 10143102550Siwasaki 10144102550SiwasakiFixed a problem where a DWORD-accessed field within a Buffer 10145114237Snjlobject would get its byte address inadvertently rounded down to 10146114237Snjlthe nearest DWORD. Buffers are always Byte-accessible. 10147102550Siwasaki 10148102550Siwasaki ASL Compiler, version X2024: 10149102550Siwasaki 10150114237SnjlFixed a problem where the Switch() operator would either fault or 10151114237Snjlhang the compiler. Note however, that the AML code for this ACPI 10152114237Snjl2.0 operator is not yet implemented. 10153102550Siwasaki 10154114237SnjlCompiler uses the new AcpiOsGetTimer interface to obtain compile 10155114237Snjltimings. 10156102550Siwasaki 10157114237SnjlImplementation of the CreateField operator automatically converts 10158114237Snjla reference to a named field within a resource descriptor from a 10159114237Snjlbyte offset to a bit offset if required. 10160102550Siwasaki 10161102550SiwasakiAdded some missing named fields from the resource descriptor 10162193267Sjkimsupport. These are the names that are automatically created by the 10163126372Snjlcompiler to reference fields within a descriptor. They are only 10164126372Snjlvalid at compile time and are not passed through to the AML 10165114237Snjlinterpreter. 10166102550Siwasaki 10167104470SiwasakiResource descriptor named fields are now typed as Integers and 10168104470Siwasakisubject to compile-time typechecking when used in expressions. 10169102550Siwasaki 10170102550Siwasaki ------------------------------------------ 10171102550SiwasakiSummary of changes for this label: 05_18_01 10172102550Siwasaki 10173102550Siwasaki ACPI CA Core Subsystem: 10174102550Siwasaki 10175114237SnjlFixed a couple of problems in the Field support code where bits 10176193267Sjkimfrom adjacent fields could be returned along with the proper field 10177126372Snjlbits. Restructured the field support code to improve performance, 10178126372Snjlreadability and maintainability. 10179102550Siwasaki 10180114237SnjlNew DEBUG_PRINTP macro automatically inserts the procedure name 10181114237Snjlinto the output, saving hundreds of copies of procedure name 10182114237Snjlstrings within the source, shrinking the memory footprint of the 10183114237Snjldebug version of the core subsystem. 10184102550Siwasaki 10185102550Siwasaki Source Code Structure: 10186102550Siwasaki 10187104470SiwasakiThe source code directory tree was restructured to reflect the 10188114237Snjlcurrent organization of the component architecture. Some files 10189114237Snjland directories have been moved and/or renamed. 10190102550Siwasaki 10191102550Siwasaki Linux: 10192102550Siwasaki 10193102550SiwasakiFixed leaking kacpidpc processes. 10194102550Siwasaki 10195102550SiwasakiFixed queueing event data even when /proc/acpi/event is not 10196102550Siwasakiopened. 10197102550Siwasaki 10198102550Siwasaki ASL Compiler, version X2020: 10199102550Siwasaki 10200114237SnjlMemory allocation performance enhancement - over 24X compile time 10201114237Snjlimprovement on large ASL files. Parse nodes and namestring 10202114237Snjlbuffers are now allocated from a large internal compiler buffer. 10203102550Siwasaki 10204102550SiwasakiThe temporary .SRC file is deleted unless the "-s" option is 10205102550Siwasakispecified 10206102550Siwasaki 10207193267SjkimThe "-d" debug output option now sends all output to the .DBG file 10208126372Snjlinstead of the console. 10209102550Siwasaki 10210102550Siwasaki"External" second parameter is now optional 10211102550Siwasaki 10212102550Siwasaki"ElseIf" syntax now properly allows the predicate 10213102550Siwasaki 10214102550SiwasakiLast operand to "Load" now recognized as a Target operand 10215102550Siwasaki 10216102550SiwasakiDebug object can now be used anywhere as a normal object. 10217102550Siwasaki 10218102550SiwasakiResourceTemplate now returns an object of type BUFFER 10219102550Siwasaki 10220102550SiwasakiEISAID now returns an object of type INTEGER 10221102550Siwasaki 10222102550Siwasaki"Index" now works with a STRING operand 10223102550Siwasaki 10224102550Siwasaki"LoadTable" now accepts optional parameters 10225102550Siwasaki 10226102550Siwasaki"ToString" length parameter is now optional 10227102550Siwasaki 10228102550Siwasaki"Interrupt (ResourceType," parse error fixed. 10229102550Siwasaki 10230104470Siwasaki"Register" with a user-defined region space parse error fixed 10231102550Siwasaki 10232114237SnjlEscaped backslash at the end of a string ("\\") scan/parse error 10233114237Snjlfixed 10234102550Siwasaki 10235102550Siwasaki"Revision" is now an object of type INTEGER. 10236102550Siwasaki 10237102550Siwasaki 10238102550Siwasaki 10239102550Siwasaki------------------------------------------ 10240102550SiwasakiSummary of changes for this label: 05_02_01 10241102550Siwasaki 10242102550SiwasakiLinux: 10243102550Siwasaki 10244102550Siwasaki/proc/acpi/event now blocks properly. 10245102550Siwasaki 10246102550SiwasakiRemoved /proc/sys/acpi. You can still dump your DSDT from 10247102550Siwasaki/proc/acpi/dsdt. 10248102550Siwasaki 10249102550Siwasaki ACPI CA Core Subsystem: 10250102550Siwasaki 10251193267SjkimFixed a problem introduced in the previous label where some of the 10252126372Snjl"small" resource descriptor types were not recognized. 10253102550Siwasaki 10254193267SjkimImproved error messages for the case where an ASL Field is outside 10255126372Snjlthe range of the parent operation region. 10256102550Siwasaki 10257102550Siwasaki ASL Compiler, version X2018: 10258102550Siwasaki 10259167802Sjkim 10260193267SjkimAdded error detection for ASL Fields that extend beyond the length 10261126372Snjlof the parent operation region (only if the length of the region 10262126372Snjlis known at compile time.) This includes fields that have a 10263126372Snjlminimum access width that is smaller than the parent region, and 10264126372Snjlindividual field units that are partially or entirely beyond the 10265126372Snjlextent of the parent. 10266102550Siwasaki 10267102550Siwasaki 10268102550Siwasaki 10269102550Siwasaki------------------------------------------ 10270102550SiwasakiSummary of changes for this label: 04_27_01 10271102550Siwasaki 10272102550Siwasaki ACPI CA Core Subsystem: 10273102550Siwasaki 10274193267SjkimFixed a problem where the namespace mutex could be released at the 10275126372Snjlwrong time during execution of AcpiRemoveAddressSpaceHandler. 10276102550Siwasaki 10277104470SiwasakiAdded optional thread ID output for debug traces, to simplify 10278114237Snjldebugging of multiple threads. Added context switch notification 10279114237Snjlwhen the debug code realizes that a different thread is now 10280114237Snjlexecuting ACPI code. 10281102550Siwasaki 10282114237SnjlSome additional external data types have been prefixed with the 10283114237Snjlstring "ACPI_" for consistency. This may effect existing code. 10284193267SjkimThe data types affected are the external callback typedefs - e.g., 10285167802Sjkim 10286126372SnjlWALK_CALLBACK becomes ACPI_WALK_CALLBACK. 10287102550Siwasaki 10288102550Siwasaki Linux: 10289102550Siwasaki 10290102550SiwasakiFixed an issue with the OSL semaphore implementation where a 10291102550Siwasakithread was waking up with an error from receiving a SIGCHLD 10292102550Siwasakisignal. 10293102550Siwasaki 10294114237SnjlLinux version of ACPI CA now uses the system C library for string 10295114237Snjlmanipulation routines instead of a local implementation. 10296102550Siwasaki 10297102550SiwasakiCleaned up comments and removed TBDs. 10298102550Siwasaki 10299102550Siwasaki ASL Compiler, version X2017: 10300102550Siwasaki 10301102550SiwasakiEnhanced error detection and reporting for all file I/O 10302102550Siwasakioperations. 10303102550Siwasaki 10304102550Siwasaki Documentation: 10305102550Siwasaki 10306102550SiwasakiProgrammer Reference updated to version 1.06. 10307102550Siwasaki 10308102550Siwasaki 10309102550Siwasaki 10310102550Siwasaki------------------------------------------ 10311102550SiwasakiSummary of changes for this label: 04_13_01 10312102550Siwasaki 10313102550Siwasaki ACPI CA Core Subsystem: 10314102550Siwasaki 10315102550SiwasakiRestructured support for BufferFields and RegionFields. 10316104470SiwasakiBankFields support is now fully operational. All known 32-bit 10317114237Snjllimitations on field sizes have been removed. Both BufferFields 10318114237Snjland (Operation) RegionFields are now supported by the same field 10319114237Snjlmanagement code. 10320102550Siwasaki 10321114237SnjlResource support now supports QWORD address and IO resources. The 10322114237Snjl16/32/64 bit address structures and the Extended IRQ structure 10323114237Snjlhave been changed to properly handle Source Resource strings. 10324102550Siwasaki 10325114237SnjlA ThreadId of -1 is now used to indicate a "mutex not acquired" 10326193267Sjkimcondition internally and must never be returned by AcpiOsThreadId. 10327126372SnjlThis reserved value was changed from 0 since Unix systems allow a 10328126372Snjlthread ID of 0. 10329102550Siwasaki 10330102550SiwasakiLinux: 10331102550Siwasaki 10332102550SiwasakiDriver code reorganized to enhance portability 10333102550Siwasaki 10334102550SiwasakiAdded a kernel configuration option to control ACPI_DEBUG 10335102550Siwasaki 10336102550SiwasakiFixed the EC driver to honor _GLK. 10337102550Siwasaki 10338102550SiwasakiASL Compiler, version X2016: 10339102550Siwasaki 10340114237SnjlFixed support for the "FixedHw" keyword. Previously, the FixedHw 10341114237Snjladdress space was set to 0, not 0x7f as it should be. 10342102550Siwasaki 10343102550Siwasaki ------------------------------------------ 10344102550SiwasakiSummary of changes for this label: 03_13_01 10345102550Siwasaki 10346102550Siwasaki ACPI CA Core Subsystem: 10347102550Siwasaki 10348104470SiwasakiDuring ACPI initialization, the _SB_._INI method is now run if 10349104470Siwasakipresent. 10350102550Siwasaki 10351193267SjkimNotify handler fix - notifies are deferred until the parent method 10352126372Snjlcompletes execution. This fixes the "mutex already acquired" 10353126372Snjlissue seen occasionally. 10354102550Siwasaki 10355104470SiwasakiPart of the "implicit conversion" rules in ACPI 2.0 have been 10356114237Snjlfound to cause compatibility problems with existing ASL/AML. The 10357114237Snjlconvert "result-to-target-type" implementation has been removed 10358114237Snjlfor stores to method Args and Locals. Source operand conversion 10359114237Snjlis still fully implemented. Possible changes to ACPI 2.0 10360114237Snjlspecification pending. 10361102550Siwasaki 10362104470SiwasakiFix to AcpiRsCalculatePciRoutingTableLength to return correct 10363104470Siwasakilength. 10364102550Siwasaki 10365102550SiwasakiFix for compiler warnings for 64-bit compiles. 10366102550Siwasaki 10367102550Siwasaki Linux: 10368102550Siwasaki 10369102550Siwasaki/proc output aligned for easier parsing. 10370102550Siwasaki 10371102550SiwasakiRelease-version compile problem fixed. 10372102550Siwasaki 10373104470SiwasakiNew kernel configuration options documented in Configure.help. 10374102550Siwasaki 10375102550SiwasakiIBM 600E - Fixed Sleep button may generate "Invalid <NULL> 10376102550Siwasakicontext" message. 10377102550Siwasaki 10378102550Siwasaki OSPM: 10379102550Siwasaki 10380102550SiwasakiPower resource driver integrated with bus manager. 10381102550Siwasaki 10382102550SiwasakiFixed kernel fault during active cooling for thermal zones. 10383102550Siwasaki 10384102550SiwasakiSource Code: 10385102550Siwasaki 10386102550SiwasakiThe source code tree has been restructured. 10387102550Siwasaki 10388102550Siwasaki 10389102550Siwasaki 10390102550Siwasaki------------------------------------------ 10391102550SiwasakiSummary of changes for this label: 03_02_01 10392102550Siwasaki 10393102550Siwasaki Linux OS Services Layer (OSL): 10394102550Siwasaki 10395102550SiwasakiMajor revision of all Linux-specific code. 10396102550Siwasaki 10397102550SiwasakiModularized all ACPI-specific drivers. 10398102550Siwasaki 10399102550SiwasakiAdded new thermal zone and power resource drivers. 10400102550Siwasaki 10401114237SnjlRevamped /proc interface (new functionality is under /proc/acpi). 10402102550Siwasaki 10403102550SiwasakiNew kernel configuration options. 10404102550Siwasaki 10405102550Siwasaki Linux known issues: 10406102550Siwasaki 10407114237SnjlNew kernel configuration options not documented in Configure.help 10408114237Snjlyet. 10409102550Siwasaki 10410114237Snjl 10411102550SiwasakiModule dependencies not currently implemented. If used, they 10412102550Siwasakishould be loaded in this order: busmgr, power, ec, system, 10413102550Siwasakiprocessor, battery, ac_adapter, button, thermal. 10414102550Siwasaki 10415102550SiwasakiModules will not load if CONFIG_MODVERSION is set. 10416102550Siwasaki 10417102550SiwasakiIBM 600E - entering S5 may reboot instead of shutting down. 10418102550Siwasaki 10419104470SiwasakiIBM 600E - Sleep button may generate "Invalid <NULL> context" 10420104470Siwasakimessage. 10421102550Siwasaki 10422104470SiwasakiSome systems may fail with "execution mutex already acquired" 10423104470Siwasakimessage. 10424102550Siwasaki 10425102550Siwasaki ACPI CA Core Subsystem: 10426102550Siwasaki 10427114237SnjlAdded a new OSL Interface, AcpiOsGetThreadId. This was required 10428193267Sjkimfor the deadlock detection code. Defined to return a non-zero, 32- 10429126372Snjlbit thread ID for the currently executing thread. May be a non- 10430126372Snjlzero constant integer on single-thread systems. 10431102550Siwasaki 10432193267SjkimImplemented deadlock detection for internal subsystem mutexes. We 10433126372Snjlmay add conditional compilation for this code (debug only) later. 10434102550Siwasaki 10435104470SiwasakiASL/AML Mutex object semantics are now fully supported. This 10436114237Snjlincludes multiple acquires/releases by owner and support for the 10437167802Sjkim 10438114237SnjlMutex SyncLevel parameter. 10439102550Siwasaki 10440102550SiwasakiA new "Force Release" mechanism automatically frees all ASL 10441104470SiwasakiMutexes that have been acquired but not released when a thread 10442114237Snjlexits the interpreter. This forces conformance to the ACPI spec 10443114237Snjl("All mutexes must be released when an invocation exits") and 10444114237Snjlprevents deadlocked ASL threads. This mechanism can be expanded 10445114237Snjl(later) to monitor other resource acquisitions if OEM ASL code 10446114237Snjlcontinues to misbehave (which it will). 10447102550Siwasaki 10448104470SiwasakiSeveral new ACPI exception codes have been added for the Mutex 10449104470Siwasakisupport. 10450102550Siwasaki 10451104470SiwasakiRecursive method calls are now allowed and supported (the ACPI 10452114237Snjlspec does in fact allow recursive method calls.) The number of 10453114237Snjlrecursive calls is subject to the restrictions imposed by the 10454114237SnjlSERIALIZED method keyword and SyncLevel (ACPI 2.0) method 10455104470Siwasakiparameter. 10456102550Siwasaki 10457102550SiwasakiImplemented support for the SyncLevel parameter for control 10458102550Siwasakimethods (ACPI 2.0 feature) 10459102550Siwasaki 10460114237SnjlFixed a deadlock problem when multiple threads attempted to use 10461114237Snjlthe interpreter. 10462102550Siwasaki 10463102550SiwasakiFixed a problem where the string length of a String package 10464102550Siwasakielement was not always set in a package returned from 10465102550SiwasakiAcpiEvaluateObject. 10466102550Siwasaki 10467114237SnjlFixed a problem where the length of a String package element was 10468114237Snjlnot always included in the length of the overall package returned 10469114237Snjlfrom AcpiEvaluateObject. 10470102550Siwasaki 10471102550SiwasakiAdded external interfaces (Acpi*) to the ACPI debug memory 10472102550Siwasakimanager. This manager keeps a list of all outstanding 10473193267Sjkimallocations, and can therefore detect memory leaks and attempts to 10474126372Snjlfree memory blocks more than once. Useful for code such as the 10475114237Snjlpower manager, etc. May not be appropriate for device drivers. 10476114237SnjlPerformance with the debug code enabled is slow. 10477102550Siwasaki 10478102550SiwasakiThe ACPI Global Lock is now an optional hardware element. 10479102550Siwasaki 10480102550Siwasaki ASL Compiler Version X2015: 10481102550Siwasaki 10482102550SiwasakiIntegrated changes to allow the compiler to be generated on 10483102550Siwasakimultiple platforms. 10484102550Siwasaki 10485102550SiwasakiLinux makefile added to generate the compiler on Linux 10486102550Siwasaki 10487102550Siwasaki Source Code: 10488102550Siwasaki 10489102550SiwasakiAll platform-specific headers have been moved to their own 10490102550Siwasakisubdirectory, Include/Platform. 10491102550Siwasaki 10492102550SiwasakiNew source file added, Interpreter/ammutex.c 10493102550Siwasaki 10494102550SiwasakiNew header file, Include/acstruct.h 10495102550Siwasaki 10496102550Siwasaki Documentation: 10497102550Siwasaki 10498114237SnjlThe programmer reference has been updated for the following new 10499114237Snjlinterfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 10500102550Siwasaki 10501102550Siwasaki ------------------------------------------ 10502102550SiwasakiSummary of changes for this label: 02_08_01 10503102550Siwasaki 10504102550SiwasakiCore ACPI CA Subsystem: Fixed a problem where an error was 10505193267Sjkimincorrectly returned if the return resource buffer was larger than 10506126372Snjlthe actual data (in the resource interfaces). 10507102550Siwasaki 10508114237SnjlReferences to named objects within packages are resolved to the 10509167802Sjkim 10510114237Snjlfull pathname string before packages are returned directly (via 10511114237Snjlthe AcpiEvaluateObject interface) or indirectly via the resource 10512114237Snjlinterfaces. 10513102550Siwasaki 10514102550SiwasakiLinux OS Services Layer (OSL): 10515102550Siwasaki 10516102550SiwasakiImproved /proc battery interface. 10517102550Siwasaki 10518102550Siwasaki 10519104470SiwasakiAdded C-state debugging output and other miscellaneous fixes. 10520102550Siwasaki 10521102550SiwasakiASL Compiler Version X2014: 10522102550Siwasaki 10523114237SnjlAll defined method arguments can now be used as local variables, 10524114237Snjlincluding the ones that are not actually passed in as parameters. 10525114237SnjlThe compiler tracks initialization of the arguments and issues an 10526114237Snjlexception if they are used without prior assignment (just like 10527114237Snjllocals). 10528102550Siwasaki 10529193267SjkimThe -o option now specifies a filename prefix that is used for all 10530126372Snjloutput files, including the AML output file. Otherwise, the 10531114237Snjldefault behavior is as follows: 1) the AML goes to the file 10532114237Snjlspecified in the DSDT. 2) all other output files use the input 10533114237Snjlsource filename as the base. 10534102550Siwasaki 10535102550Siwasaki ------------------------------------------ 10536102550SiwasakiSummary of changes for this label: 01_25_01 10537102550Siwasaki 10538114237SnjlCore ACPI CA Subsystem: Restructured the implementation of object 10539114237Snjlstore support within the interpreter. This includes support for 10540114237Snjlthe Store operator as well as any ASL operators that include a 10541114237Snjltarget operand. 10542102550Siwasaki 10543102550SiwasakiPartially implemented support for Implicit Result-to-Target 10544114237Snjlconversion. This is when a result object is converted on the fly 10545114237Snjlto the type of an existing target object. Completion of this 10546114237Snjlsupport is pending further analysis of the ACPI specification 10547114237Snjlconcerning this matter. 10548102550Siwasaki 10549114237SnjlCPU-specific code has been removed from the subsystem (hardware 10550114237Snjldirectory). 10551102550Siwasaki 10552102550SiwasakiNew Power Management Timer functions added 10553102550Siwasaki 10554114237SnjlLinux OS Services Layer (OSL): Moved system state transition code 10555114237Snjlto the core, fixed it, and modified Linux OSL accordingly. 10556102550Siwasaki 10557102550SiwasakiFixed C2 and C3 latency calculations. 10558102550Siwasaki 10559102550Siwasaki 10560114237SnjlWe no longer use the compilation date for the version message on 10561193267Sjkiminitialization, but retrieve the version from AcpiGetSystemInfo(). 10562102550Siwasaki 10563102550SiwasakiIncorporated for fix Sony VAIO machines. 10564102550Siwasaki 10565104470SiwasakiDocumentation: The Programmer Reference has been updated and 10566104470Siwasakireformatted. 10567102550Siwasaki 10568102550Siwasaki 10569102550SiwasakiASL Compiler: Version X2013: Fixed a problem where the line 10570102550Siwasakinumbering and error reporting could get out of sync in the 10571102550Siwasakipresence of multiple include files. 10572102550Siwasaki 10573102550Siwasaki ------------------------------------------ 10574102550SiwasakiSummary of changes for this label: 01_15_01 10575102550Siwasaki 10576102550SiwasakiCore ACPI CA Subsystem: 10577102550Siwasaki 10578114237SnjlImplemented support for type conversions in the execution of the 10579114237SnjlASL Concatenate operator (The second operand is converted to 10580114237Snjlmatch the type of the first operand before concatenation.) 10581102550Siwasaki 10582102550SiwasakiSupport for implicit source operand conversion is partially 10583114237Snjlimplemented. The ASL source operand types Integer, Buffer, and 10584114237SnjlString are freely interchangeable for most ASL operators and are 10585114237Snjlconverted by the interpreter on the fly as required. Implicit 10586114237SnjlTarget operand conversion (where the result is converted to the 10587114237Snjltarget type before storing) is not yet implemented. 10588102550Siwasaki 10589102550SiwasakiSupport for 32-bit and 64-bit BCD integers is implemented. 10590102550Siwasaki 10591193267SjkimProblem fixed where a field read on an aligned field could cause a 10592126372Snjlread past the end of the field. 10593102550Siwasaki 10594114237SnjlNew exception, AE_AML_NO_RETURN_VALUE, is returned when a method 10595114237Snjldoes not return a value, but the caller expects one. (The ASL 10596114237Snjlcompiler flags this as a warning.) 10597102550Siwasaki 10598102550SiwasakiASL Compiler: 10599102550Siwasaki 10600102550SiwasakiVersion X2011: 10601102550Siwasaki1. Static typechecking of all operands is implemented. This 10602193267Sjkimprevents the use of invalid objects (such as using a Package where 10603126372Snjlan Integer is required) at compile time instead of at interpreter 10604126372Snjlrun-time. 10605114237Snjl2. The ASL source line is printed with ALL errors and warnings. 10606102550Siwasaki3. Bug fix for source EOF without final linefeed. 10607193267Sjkim4. Debug option is split into a parse trace and a namespace trace. 10608102550Siwasaki5. Namespace output option (-n) includes initial values for 10609102550Siwasakiintegers and strings. 10610102550Siwasaki6. Parse-only option added for quick syntax checking. 10611102550Siwasaki7. Compiler checks for duplicate ACPI name declarations 10612102550Siwasaki 10613102550SiwasakiVersion X2012: 10614102550Siwasaki1. Relaxed typechecking to allow interchangeability between 10615114237Snjlstrings, integers, and buffers. These types are now converted by 10616114237Snjlthe interpreter at runtime. 10617114237Snjl2. Compiler reports time taken by each internal subsystem in the 10618114237Snjldebug output file. 10619102550Siwasaki 10620102550Siwasaki 10621102550Siwasaki ------------------------------------------ 10622102550SiwasakiSummary of changes for this label: 12_14_00 10623102550Siwasaki 10624102550SiwasakiASL Compiler: 10625102550Siwasaki 10626104470SiwasakiThis is the first official release of the compiler. Since the 10627104470Siwasakicompiler requires elements of the Core Subsystem, this label 10628104470Siwasakisynchronizes everything. 10629102550Siwasaki 10630102550Siwasaki------------------------------------------ 10631102550SiwasakiSummary of changes for this label: 12_08_00 10632102550Siwasaki 10633102550Siwasaki 10634114237SnjlFixed a problem where named references within the ASL definition 10635114237Snjlof both OperationRegions and CreateXXXFields did not work 10636114237Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 10637114237Snjlinitialization of the region/field. This is similar (but not 10638114237Snjlrelated internally) to the problem that was fixed in the last 10639114237Snjllabel. 10640114237Snjl 10641102550SiwasakiImplemented both 32-bit and 64-bit support for the BCD ASL 10642102550Siwasakifunctions ToBCD and FromBCD. 10643102550Siwasaki 10644102550SiwasakiUpdated all legal headers to include "2000" in the copyright 10645102550Siwasakiyears. 10646102550Siwasaki 10647102550Siwasaki ------------------------------------------ 10648102550SiwasakiSummary of changes for this label: 12_01_00 10649102550Siwasaki 10650193267SjkimFixed a problem where method invocations within the ASL definition 10651126372Snjlof both OperationRegions and CreateXXXFields did not work 10652126372Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 10653114237Snjlinitialization of the region/field: 10654102550Siwasaki 10655114237Snjl nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 10656114237Snjl[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 10657114237Snjl(0x3005) 10658102550Siwasaki 10659102550SiwasakiFixed a problem where operators with more than one nested 10660104470Siwasakisubexpression would fail. The symptoms were varied, by mostly 10661114237SnjlAE_AML_OPERAND_TYPE errors. This was actually a rather serious 10662114237Snjlproblem that has gone unnoticed until now. 10663102550Siwasaki 10664102550Siwasaki Subtract (Add (1,2), Multiply (3,4)) 10665102550Siwasaki 10666114237SnjlFixed a problem where AcpiGetHandle didn't quite get fixed in the 10667114237Snjlprevious build (The prefix part of a relative path was handled 10668114237Snjlincorrectly). 10669102550Siwasaki 10670114237SnjlFixed a problem where Operation Region initialization failed if 10671114237Snjlthe operation region name was a "namepath" instead of a simple 10672114237Snjl"nameseg". Symptom was an AE_NO_OPERAND error. 10673102550Siwasaki 10674114237SnjlFixed a problem where an assignment to a local variable via the 10675114237Snjlindirect RefOf mechanism only worked for the first such 10676102550Siwasakiassignment. Subsequent assignments were ignored. 10677102550Siwasaki 10678102550Siwasaki ------------------------------------------ 10679102550SiwasakiSummary of changes for this label: 11_15_00 10680102550Siwasaki 10681193267SjkimACPI 2.0 table support with backwards support for ACPI 1.0 and the 10682193267Sjkim0.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 10683126372Snjlthe AML interpreter does NOT have support for the new 2.0 ASL 10684126372Snjlgrammar terms at this time. 10685102550Siwasaki 10686193267SjkimAll ACPI hardware access is via the GAS structures in the ACPI 2.0 10687126372SnjlFADT. 10688102550Siwasaki 10689193267SjkimAll physical memory addresses across all platforms are now 64 bits 10690126372Snjlwide. Logical address width remains dependent on the platform 10691126372Snjl(i.e., "void *"). 10692102550Siwasaki 10693114237SnjlAcpiOsMapMemory interface changed to a 64-bit physical address. 10694102550Siwasaki 10695114237SnjlThe AML interpreter integer size is now 64 bits, as per the ACPI 10696114237Snjl2.0 specification. 10697102550Siwasaki 10698104470SiwasakiFor backwards compatibility with ACPI 1.0, ACPI tables with a 10699104470Siwasakirevision number less than 2 use 32-bit integers only. 10700102550Siwasaki 10701114237SnjlFixed a problem where the evaluation of OpRegion operands did not 10702114237Snjlalways resolve them to numbers properly. 10703102550Siwasaki 10704102550Siwasaki------------------------------------------ 10705102550SiwasakiSummary of changes for this label: 10_20_00 10706102550Siwasaki 10707114237SnjlFix for CBN_._STA issue. This fix will allow correct access to 10708114237SnjlCBN_ OpRegions when the _STA returns 0x8. 10709102550Siwasaki 10710104470SiwasakiSupport to convert ACPI constants (Ones, Zeros, One) to actual 10711104470Siwasakivalues before a package object is returned 10712102550Siwasaki 10713104470SiwasakiFix for method call as predicate to if/while construct causing 10714104470Siwasakiincorrect if/while behavior 10715102550Siwasaki 10716114237SnjlFix for Else block package lengths sometimes calculated wrong (if 10717114237Snjlblock > 63 bytes) 10718102550Siwasaki 10719102550SiwasakiFix for Processor object length field, was always zero 10720102550Siwasaki 10721102550SiwasakiTable load abort if FACP sanity check fails 10722102550Siwasaki 10723102550SiwasakiFix for problem with Scope(name) if name already exists 10724102550Siwasaki 10725102550SiwasakiWarning emitted if a named object referenced cannot be found 10726102550Siwasaki(resolved) during method execution. 10727102550Siwasaki 10728102550Siwasaki 10729102550Siwasaki 10730102550Siwasaki 10731102550Siwasaki 10732102550Siwasaki------------------------------------------ 10733102550SiwasakiSummary of changes for this label: 9_29_00 10734102550Siwasaki 10735114237SnjlNew table initialization interfaces: AcpiInitializeSubsystem no 10736114237Snjllonger has any parameters AcpiFindRootPointer - Find the RSDP (if 10737114237Snjlnecessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 10738114237Snjl>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 10739114237SnjlAcpiLoadTables 10740102550Siwasaki 10741193267SjkimNote: These interface changes require changes to all existing OSDs 10742102550Siwasaki 10743114237SnjlThe PCI_Config default address space handler is always installed 10744114237Snjlat the root namespace object. 10745102550Siwasaki 10746102550Siwasaki------------------------------------------- 10747102550SiwasakiSummary of changes for this label: 09_15_00 10748102550Siwasaki 10749102550SiwasakiThe new initialization architecture is implemented. New 10750114237Snjlinterfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 10751114237SnjlAcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 10752167802Sjkim 10753114237Snjl(Namespace is automatically loaded when a table is loaded) 10754102550Siwasaki 10755193267SjkimThe ACPI_OPERAND_OBJECT has been optimized to shrink its size from 10756126372Snjl52 bytes to 32 bytes. There is usually one of these for every 10757126372Snjlnamespace object, so the memory savings is significant. 10758102550Siwasaki 10759114237SnjlImplemented just-in-time evaluation of the CreateField operators. 10760102550Siwasaki 10761102550SiwasakiBug fixes for IA-64 support have been integrated. 10762102550Siwasaki 10763102550SiwasakiAdditional code review comments have been implemented 10764102550Siwasaki 10765193267SjkimThe so-called "third pass parse" has been replaced by a final walk 10766193267Sjkimthrough the namespace to initialize all operation regions (address 10767126372Snjlspaces) and fields that have not yet been initialized during the 10768126372Snjlexecution of the various _INI and REG methods. 10769102550Siwasaki 10770102550SiwasakiNew file - namespace/nsinit.c 10771102550Siwasaki 10772102550Siwasaki------------------------------------------- 10773102550SiwasakiSummary of changes for this label: 09_01_00 10774102550Siwasaki 10775193267SjkimNamespace manager data structures have been reworked to change the 10776126372Snjlprimary object from a table to a single object. This has 10777193267Sjkimresulted in dynamic memory savings of 3X within the namespace and 10778126372Snjl2X overall in the ACPI CA subsystem. 10779102550Siwasaki 10780102550SiwasakiFixed problem where the call to AcpiEvFindPciRootBuses was 10781102550Siwasakiinadvertently left commented out. 10782102550Siwasaki 10783114237SnjlReduced the warning count when generating the source with the GCC 10784114237Snjlcompiler. 10785102550Siwasaki 10786102550SiwasakiRevision numbers added to each module header showing the 10787104470SiwasakiSourceSafe version of the file. Please refer to this version 10788114237Snjlnumber when giving us feedback or comments on individual modules. 10789102550Siwasaki 10790114237SnjlThe main object types within the subsystem have been renamed to 10791114237Snjlclarify their purpose: 10792102550Siwasaki 10793102550SiwasakiACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 10794102550SiwasakiACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 10795102550SiwasakiACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 10796102550Siwasaki 10797114237SnjlNOTE: no changes to the initialization sequence are included in 10798114237Snjlthis label. 10799102550Siwasaki 10800102550Siwasaki------------------------------------------- 10801102550SiwasakiSummary of changes for this label: 08_23_00 10802102550Siwasaki 10803102550SiwasakiFixed problem where TerminateControlMethod was being called 10804102550Siwasakimultiple times per method 10805102550Siwasaki 10806193267SjkimFixed debugger problem where single stepping caused a semaphore to 10807126372Snjlbe oversignalled 10808102550Siwasaki 10809104470SiwasakiImproved performance through additional parse object caching - 10810104470Siwasakiadded ACPI_EXTENDED_OP type 10811102550Siwasaki 10812102550Siwasaki------------------------------------------- 10813102550SiwasakiSummary of changes for this label: 08_10_00 10814102550Siwasaki 10815102550SiwasakiParser/Interpreter integration: Eliminated the creation of 10816102550Siwasakicomplete parse trees for ACPI tables and control methods. 10817114237SnjlInstead, parse subtrees are created and then deleted as soon as 10818193267Sjkimthey are processed (Either entered into the namespace or executed 10819126372Snjlby the interpreter). This reduces the use of dynamic kernel 10820126372Snjlmemory significantly. (about 10X) 10821102550Siwasaki 10822114237SnjlException codes broken into classes and renumbered. Be sure to 10823114237Snjlrecompile all code that includes acexcep.h. Hopefully we won't 10824114237Snjlhave to renumber the codes again now that they are split into 10825114237Snjlclasses (environment, programmer, AML code, ACPI table, and 10826114237Snjlinternal). 10827102550Siwasaki 10828104470SiwasakiFixed some additional alignment issues in the Resource Manager 10829104470Siwasakisubcomponent 10830102550Siwasaki 10831114237SnjlImplemented semaphore tracking in the AcpiExec utility, and fixed 10832114237Snjlseveral places where mutexes/semaphores were being unlocked 10833114237Snjlwithout a corresponding lock operation. There are no known 10834114237Snjlsemaphore or mutex "leaks" at this time. 10835102550Siwasaki 10836114237SnjlFixed the case where an ASL Return operator is used to return an 10837114237Snjlunnamed package. 10838102550Siwasaki 10839102550Siwasaki------------------------------------------- 10840102550SiwasakiSummary of changes for this label: 07_28_00 10841102550Siwasaki 10842102550SiwasakiFixed a problem with the way addresses were calculated in 10843114237SnjlAcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 10844114237Snjlmanifested itself when a Field was created with WordAccess or 10845193267SjkimDwordAccess, but the field unit defined within the Field was less 10846167802Sjkim 10847126372Snjlthan a Word or Dword. 10848102550Siwasaki 10849102550SiwasakiFixed a problem in AmlDumpOperands() module's loop to pull 10850104470Siwasakioperands off of the operand stack to display information. The 10851114237Snjlproblem manifested itself as a TLB error on 64-bit systems when 10852114237Snjlaccessing an operand stack with two or more operands. 10853102550Siwasaki 10854114237SnjlFixed a problem with the PCI configuration space handlers where 10855114237Snjlcontext was getting confused between accesses. This required a 10856114237Snjlchange to the generic address space handler and address space 10857193267Sjkimsetup definitions. Handlers now get both a global handler context 10858126372Snjl(this is the one passed in by the user when executing 10859114237SnjlAcpiInstallAddressSpaceHandler() and a specific region context 10860114237Snjlthat is unique to each region (For example, the _ADR, _SEG and 10861114237Snjl_BBN values associated with a specific region). The generic 10862114237Snjlfunction definitions have changed to the following: 10863102550Siwasaki 10864114237Snjltypedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 10865114237SnjlUINT32 Address, UINT32 BitWidth, UINT32 *Value, void 10866104470Siwasaki*HandlerContext, // This used to be void *Context void 10867102550Siwasaki*RegionContext); // This is an additional parameter 10868102550Siwasaki 10869102550Siwasakitypedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 10870102550SiwasakiRegionHandle, UINT32 Function, void *HandlerContext, void 10871102550Siwasaki**RegionContext); // This used to be **ReturnContext 10872102550Siwasaki 10873102550Siwasaki------------------------------------------- 10874102550SiwasakiSummary of changes for this label: 07_21_00 10875102550Siwasaki 10876102550SiwasakiMajor file consolidation and rename. All files within the 10877193267Sjkiminterpreter have been renamed as well as most header files. This 10878126372Snjlwas done to prevent collisions with existing files in the host 10879126372SnjlOSs -- filenames such as "config.h" and "global.h" seem to be 10880126372Snjlquite common. The VC project files have been updated. All 10881114237Snjlmakefiles will require modification. 10882102550Siwasaki 10883114237SnjlThe parser/interpreter integration continues in Phase 5 with the 10884114237Snjlimplementation of a complete 2-pass parse (the AML is parsed 10885114237Snjltwice) for each table; This avoids the construction of a huge 10886114237Snjlparse tree and therefore reduces the amount of dynamic memory 10887114237Snjlrequired by the subsystem. Greater use of the parse object cache 10888114237Snjlmeans that performance is unaffected. 10889102550Siwasaki 10890102550SiwasakiMany comments from the two code reviews have been rolled in. 10891102550Siwasaki 10892102550SiwasakiThe 64-bit alignment support is complete. 10893102550Siwasaki 10894102550Siwasaki------------------------------------------- 10895102550SiwasakiSummary of changes for this label: 06_30_00 10896102550Siwasaki 10897114237SnjlWith a nod and a tip of the hat to the technology of yesteryear, 10898114237Snjlwe've added support in the source code for 80 column output 10899114237Snjldevices. The code is now mostly constrained to 80 columns or 10900114237Snjlless to support environments and editors that 1) cannot display 10901114237Snjlor print more than 80 characters on a single line, and 2) cannot 10902114237Snjldisable line wrapping. 10903102550Siwasaki 10904104470SiwasakiA major restructuring of the namespace data structure has been 10905104470Siwasakicompleted. The result is 1) cleaner and more 10906114237Snjlunderstandable/maintainable code, and 2) a significant reduction 10907114237Snjlin the dynamic memory requirement for each named ACPI object 10908114237Snjl(almost half). 10909102550Siwasaki 10910102550Siwasaki------------------------------------------- 10911102550SiwasakiSummary of changes for this label: 06_23_00 10912102550Siwasaki 10913114237SnjlLinux support has been added. In order to obtain approval to get 10914114237Snjlthe ACPI CA subsystem into the Linux kernel, we've had to make 10915114237Snjlquite a few changes to the base subsystem that will affect all 10916114237Snjlusers (all the changes are generic and OS- independent). The 10917114237Snjleffects of these global changes have been somewhat far reaching. 10918114237SnjlFiles have been merged and/or renamed and interfaces have been 10919114237Snjlrenamed. The major changes are described below. 10920102550Siwasaki 10921102550SiwasakiOsd* interfaces renamed to AcpiOs* to eliminate namespace 10922102550Siwasakipollution/confusion within our target kernels. All OSD 10923114237Snjlinterfaces must be modified to match the new naming convention. 10924102550Siwasaki 10925193267SjkimFiles merged across the subsystem. A number of the smaller source 10926126372Snjland header files have been merged to reduce the file count and 10927126372Snjlincrease the density of the existing files. There are too many 10928126372Snjlto list here. In general, makefiles that call out individual 10929126372Snjlfiles will require rebuilding. 10930102550Siwasaki 10931104470SiwasakiInterpreter files renamed. All interpreter files now have the 10932104470Siwasakiprefix am* instead of ie* and is*. 10933102550Siwasaki 10934104470SiwasakiHeader files renamed: The acapi.h file is now acpixf.h. The 10935114237Snjlacpiosd.h file is now acpiosxf.h. We are removing references to 10936114237Snjlthe acronym "API" since it is somewhat windowsy. The new name is 10937114237Snjl"external interface" or xface or xf in the filenames.j 10938102550Siwasaki 10939102550Siwasaki 10940114237SnjlAll manifest constants have been forced to upper case (some were 10941193267Sjkimmixed case.) Also, the string "ACPI_" has been prepended to many 10942126372Snjl(not all) of the constants, typedefs, and structs. 10943102550Siwasaki 10944102550SiwasakiThe globals "DebugLevel" and "DebugLayer" have been renamed 10945102550Siwasaki"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 10946102550Siwasaki 10947102550SiwasakiAll other globals within the subsystem are now prefixed with 10948102550Siwasaki"AcpiGbl_" Internal procedures within the subsystem are now 10949114237Snjlprefixed with "Acpi" (with only a few exceptions). The original 10950193267Sjkimtwo-letter abbreviation for the subcomponent remains after "Acpi" 10951126372Snjl- for example, CmCallocate became AcpiCmCallocate. 10952102550Siwasaki 10953102550SiwasakiAdded a source code translation/conversion utility. Used to 10954114237Snjlgenerate the Linux source code, it can be modified to generate 10955114237Snjlother types of source as well. Can also be used to cleanup 10956114237Snjlexisting source by removing extraneous spaces and blank lines. 10957114237SnjlFound in tools/acpisrc/* 10958102550Siwasaki 10959102550SiwasakiOsdUnMapMemory was renamed to OsdUnmapMemory and then 10960102550SiwasakiAcpiOsUnmapMemory. (UnMap became Unmap). 10961102550Siwasaki 10962114237SnjlA "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 10963114237SnjlWhen set to one, this indicates that the caller wants to use the 10964167802Sjkim 10965114237Snjlsemaphore as a mutex, not a counting semaphore. ACPI CA uses 10966114237Snjlboth types. However, implementers of this call may want to use 10967114237Snjldifferent OS primitives depending on the type of semaphore 10968114237Snjlrequested. For example, some operating systems provide separate 10969167802Sjkim 10970193267Sjkim"mutex" and "semaphore" interfaces - where the mutex interface is 10971126372Snjlmuch faster because it doesn't have all the overhead of a full 10972126372Snjlsemaphore implementation. 10973102550Siwasaki 10974104470SiwasakiFixed a deadlock problem where a method that accesses the PCI 10975114237Snjladdress space can block forever if it is the first access to the 10976114237Snjlspace. 10977102550Siwasaki 10978102550Siwasaki------------------------------------------- 10979102550SiwasakiSummary of changes for this label: 06_02_00 10980102550Siwasaki 10981102550SiwasakiSupport for environments that cannot handle unaligned data 10982114237Snjlaccesses (e.g. firmware and OS environments devoid of alignment 10983193267Sjkimhandler technology namely SAL/EFI and the IA-64 Linux kernel) has 10984126372Snjlbeen added (via configurable macros) in these three areas: - 10985114237SnjlTransfer of data from the raw AML byte stream is done via byte 10986193267Sjkimmoves instead of word/dword/qword moves. - External objects are 10987126372Snjlaligned within the user buffer, including package elements (sub- 10988193267Sjkimobjects). - Conversion of name strings to UINT32 Acpi Names is now 10989126372Snjldone byte-wise. 10990102550Siwasaki 10991102550SiwasakiThe Store operator was modified to mimic Microsoft's 10992102550Siwasakiimplementation when storing to a Buffer Field. 10993102550Siwasaki 10994102550SiwasakiAdded a check of the BM_STS bit before entering C3. 10995102550Siwasaki 10996114237SnjlThe methods subdirectory has been obsoleted and removed. A new 10997114237Snjlfile, cmeval.c subsumes the functionality. 10998102550Siwasaki 10999102550SiwasakiA 16-bit (DOS) version of AcpiExec has been developed. The 11000102550Siwasakimakefile is under the acpiexec directory. 11001