changes.txt revision 207344
1213237Sgonzo---------------------------------------- 2213237Sgonzo28 April 2010. Summary of changes for version 20100428: 3213237Sgonzo 4213237Sgonzo1) ACPI CA Core Subsystem: 5213237Sgonzo 6213237SgonzoImplemented GPE support for dynamically loaded ACPI tables. For all GPEs, 7213237Sgonzoincluding FADT-based and GPE Block Devices, execute any _PRW methods in the 8213237Sgonzonew table, and process any _Lxx/_Exx GPE methods in the new table. Any 9213237Sgonzoruntime GPE that is referenced by an _Lxx/_Exx method in the new table is 10213237Sgonzoimmediately enabled. Handles the FADT-defined GPEs as well as GPE Block 11213237SgonzoDevices. Provides compatibility with other ACPI implementations. Two new 12213237Sgonzofiles added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob Moore. 13213237Sgonzo 14213237SgonzoFixed a regression introduced in version 20100331 within the table manager 15213237Sgonzowhere initial table loading could fail. This was introduced in the fix for 16213237SgonzoAcpiReallocateRootTable. Also, renamed some of fields in the table manager 17213237Sgonzodata structures to clarify their meaning and use. 18213237Sgonzo 19213237SgonzoFixed a possible allocation overrun during internal object copy in 20213237SgonzoAcpiUtCopySimpleObject. The original code did not correctly handle the case 21213237Sgonzowhere the object to be copied was a namespace node. Lin Ming. ACPICA BZ 847. 22213237Sgonzo 23213237SgonzoUpdated the allocation dump routine, AcpiUtDumpAllocation and fixed a 24213237Sgonzopossible access beyond end-of-allocation. Also, now fully validate descriptor 25213237Sgonzo(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 26213237Sgonzo 27213237SgonzoExample Code and Data Size: These are the sizes for the OS-independent 28213237Sgonzoacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 29213237Sgonzodebug version of the code includes the debug output trace mechanism and has a 30213237Sgonzomuch larger code and data size. 31213237Sgonzo 32213237Sgonzo Previous Release: 33213237Sgonzo Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 34266135Sloos Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 35278786Sloos Current Release: 36266135Sloos Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 37266135Sloos Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 38266135Sloos 39266135Sloos2) iASL Compiler/Disassembler and Tools: 40266135Sloos 41266135SloosiASL: Implemented Min/Max/Len/Gran validation for address resource 42266135Sloosdescriptors. This change implements validation for the address fields that 43266135Sloosare common to all address-type resource descriptors. These checks are 44266135Sloosimplemented: Checks for valid Min/Max, length within the Min/Max window, 45266135Sloosvalid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 46266135Sloostable 6-40 in the ACPI 4.0a specification. Also split the large aslrestype1.c 47266135Sloosand aslrestype2.c files into five new files. ACPICA BZ 840. 48266135Sloos 49266135SloosiASL: Added support for the _Wxx predefined names. This support was missing 50266135Sloosand these names were not recognized by the compiler as valid predefined 51266135Sloosnames. ACPICA BZ 851. 52266135Sloos 53266135SloosiASL: Added an error for all predefined names that are defined to return no 54266135Sloosvalue and thus must be implemented as Control Methods. These include all of 55266135Sloosthe _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 56266135Sloosnames such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 57266135Sloos 58213237SgonzoiASL: Implemented the -ts option to emit hex AML data in ASL format, as an 59278786SloosASL Buffer. Allows ACPI tables to be easily included within ASL files, to be 60213237Sgonzodynamically loaded via the Load() operator. Also cleaned up output for the - 61213237Sgonzota and -tc options. ACPICA BZ 853. 62213237Sgonzo 63278786SloosTests: Added a new file with examples of extended iASL error checking. 64213237SgonzoDemonstrates the advanced error checking ability of the iASL compiler. 65213237SgonzoAvailable at tests/misc/badcode.asl. 66213237Sgonzo 67213237Sgonzo---------------------------------------- 68213237Sgonzo31 March 2010. Summary of changes for version 20100331: 69213237Sgonzo 70213237Sgonzo1) ACPI CA Core Subsystem: 71213237Sgonzo 72213237SgonzoCompleted a major update for the GPE support in order to improve support for 73213237Sgonzoshared GPEs and to simplify both host OS and ACPICA code. Added a reference 74213237Sgonzocount mechanism to support shared GPEs that require multiple device drivers. 75213237SgonzoSeveral external interfaces have changed. One external interface has been 76213237Sgonzoremoved. One new external interface was added. Most of the GPE external 77213237Sgonzointerfaces now use the GPE spinlock instead of the events mutex (and the 78213237SgonzoFlags parameter for many GPE interfaces has been removed.) See the updated 79213237SgonzoACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, Rafael 80213237SgonzoWysocki. ACPICA BZ 831. 81213237Sgonzo 82213237SgonzoChanged: 83213237Sgonzo AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 84213237SgonzoRemoved: 85213237Sgonzo AcpiSetGpeType 86213237SgonzoNew: 87213237Sgonzo AcpiSetGpe 88213237Sgonzo 89213237SgonzoImplemented write support for DataTable operation regions. These regions are 90213237Sgonzodefined via the DataTableRegion() operator. Previously, only read support was 91213237Sgonzoimplemented. The ACPI specification allows DataTableRegions to be read/write, 92213237Sgonzohowever. 93213237Sgonzo 94213237SgonzoImplemented a new subsystem option to force a copy of the DSDT to local 95213237Sgonzomemory. Optionally copy the entire DSDT to local memory (instead of simply 96213237Sgonzomapping it.) There are some (albeit very rare) BIOSs that corrupt or replace 97213237Sgonzothe original DSDT, creating the need for this option. Default is FALSE, do 98213237Sgonzonot copy the DSDT. 99213237Sgonzo 100213237SgonzoImplemented detection of a corrupted or replaced DSDT. This change adds 101213237Sgonzosupport to detect a DSDT that has been corrupted and/or replaced from outside 102213237Sgonzothe OS (by firmware). This is typically catastrophic for the system, but has 103213237Sgonzobeen seen on some machines. Once this problem has been detected, the DSDT 104213237Sgonzocopy option can be enabled via system configuration. Lin Ming, Bob Moore. 105213237Sgonzo 106213237SgonzoFixed two problems with AcpiReallocateRootTable during the root table copy. 107213237SgonzoWhen copying the root table to the new allocation, the length used was 108213237Sgonzoincorrect. The new size was used instead of the current table size, meaning 109213237Sgonzotoo much data was copied. Also, the count of available slots for ACPI tables 110213237Sgonzowas not set correctly. Alexey Starikovskiy, Bob Moore. 111213237Sgonzo 112213237SgonzoExample Code and Data Size: These are the sizes for the OS-independent 113213237Sgonzoacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 114213237Sgonzodebug version of the code includes the debug output trace mechanism and has a 115213237Sgonzomuch larger code and data size. 116213237Sgonzo 117213237Sgonzo Previous Release: 118213237Sgonzo Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 119213237Sgonzo Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 120213237Sgonzo Current Release: 121213237Sgonzo Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 122213237Sgonzo Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 123213237Sgonzo 124213237Sgonzo2) iASL Compiler/Disassembler and Tools: 125213237Sgonzo 126213237SgonzoiASL: Implement limited typechecking for values returned from predefined 127266135Slooscontrol methods. The type of any returned static (unnamed) object is now 128266135Sloosvalidated. For example, Return(1). ACPICA BZ 786. 129266135Sloos 130266135SloosiASL: Fixed a predefined name object verification regression. Fixes a problem 131266135Sloosintroduced in version 20100304. An error is incorrectly generated if a 132266135Sloospredefined name is declared as a static named object with a value defined 133266135Sloosusing the keywords "Zero", "One", or "Ones". Lin Ming. 134266135Sloos 135266135SloosiASL: Added Windows 7 support for the -g option (get local ACPI tables) by 136266135Sloosreducing the requested registry access rights. ACPICA BZ 842. 137266135Sloos 138266135SloosDisassembler: fixed a possible fault when generating External() statements. 139266135SloosIntroduced in commit ae7d6fd: Properly handle externals with parent-prefix 140(carat). Fixes a string length allocation calculation. Lin Ming. 141 142---------------------------------------- 14304 March 2010. Summary of changes for version 20100304: 144 1451) ACPI CA Core Subsystem: 146 147Fixed a possible problem with the AML Mutex handling function 148AcpiExReleaseMutex where the function could fault under the very rare 149condition when the interpreter has blocked, the interpreter lock is released, 150the interpreter is then reentered via the same thread, and attempts to 151acquire an AML mutex that was previously acquired. FreeBSD report 140979. Lin 152Ming. 153 154Implemented additional configuration support for the AML "Debug Object". 155Output from the debug object can now be enabled via a global variable, 156AcpiGbl_EnableAmlDebugObject. This will assist with remote machine debugging. 157This debug output is now available in the release version of ACPICA instead 158of just the debug version. Also, the entire debug output module can now be 159configured out of the ACPICA build if desired. One new file added, 160executer/exdebug.c. Lin Ming, Bob Moore. 161 162Added header support for the ACPI MCHI table (Management Controller Host 163Interface Table). This table was added in ACPI 4.0, but the defining document 164has only recently become available. 165 166Standardized output of integer values for ACPICA warnings/errors. Always use 1670x prefix for hex output, always use %u for unsigned integer decimal output. 168Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 169invocations.) These invocations were converted from the original 170ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 171 172Example Code and Data Size: These are the sizes for the OS-independent 173acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 174debug version of the code includes the debug output trace mechanism and has a 175much larger code and data size. 176 177 Previous Release: 178 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 179 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 180 Current Release: 181 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 182 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 183 1842) iASL Compiler/Disassembler and Tools: 185 186iASL: Implemented typechecking support for static (non-control method) 187predefined named objects that are declared with the Name() operator. For 188example, the type of this object is now validated to be of type Integer: 189Name(_BBN, 1). This change migrates the compiler to using the core predefined 190name table instead of maintaining a local version. Added a new file, 191aslpredef.c. ACPICA BZ 832. 192 193Disassembler: Added support for the ACPI 4.0 MCHI table. 194 195---------------------------------------- 19621 January 2010. Summary of changes for version 20100121: 197 1981) ACPI CA Core Subsystem: 199 200Added the 2010 copyright to all module headers and signons. This affects 201virtually every file in the ACPICA core subsystem, the iASL compiler, the 202tools/utilities, and the test suites. 203 204Implemented a change to the AcpiGetDevices interface to eliminate unnecessary 205invocations of the _STA method. In the case where a specific _HID is 206requested, do not run _STA until a _HID match is found. This eliminates 207potentially dozens of _STA calls during a search for a particular device/HID, 208which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 209 210Implemented an additional repair for predefined method return values. Attempt 211to repair unexpected NULL elements within returned Package objects. Create an 212Integer of value zero, a NULL String, or a zero-length Buffer as appropriate. 213ACPICA BZ 818. Lin Ming, Bob Moore. 214 215Removed the obsolete ACPI_INTEGER data type. This type was introduced as the 216code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 (with 21764-bit AML integers). It is now obsolete and this change removes it from the 218ACPICA code base, replaced by UINT64. The original typedef has been retained 219for now for compatibility with existing device driver code. ACPICA BZ 824. 220 221Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in 222the parse tree object. 223 224Added additional warning options for the gcc-4 generation. Updated the source 225accordingly. This includes some code restructuring to eliminate unreachable 226code, elimination of some gotos, elimination of unused return values, some 227additional casting, and removal of redundant declarations. 228 229Example Code and Data Size: These are the sizes for the OS-independent 230acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 231debug version of the code includes the debug output trace mechanism and has a 232much larger code and data size. 233 234 Previous Release: 235 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 236 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 237 Current Release: 238 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 239 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 240 2412) iASL Compiler/Disassembler and Tools: 242 243No functional changes for this release. 244 245---------------------------------------- 24614 December 2009. Summary of changes for version 20091214: 247 2481) ACPI CA Core Subsystem: 249 250Enhanced automatic data type conversions for predefined name repairs. This 251change expands the automatic repairs/conversions for predefined name return 252values to make Integers, Strings, and Buffers fully interchangeable. Also, a 253Buffer can be converted to a Package of Integers if necessary. The nsrepair.c 254module was completely restructured. Lin Ming, Bob Moore. 255 256Implemented automatic removal of null package elements during predefined name 257repairs. This change will automatically remove embedded and trailing NULL 258package elements from returned package objects that are defined to contain a 259variable number of sub-packages. The driver is then presented with a package 260with no null elements to deal with. ACPICA BZ 819. 261 262Implemented a repair for the predefined _FDE and _GTM names. The expected 263return value for both names is a Buffer of 5 DWORDs. This repair fixes two 264possible problems (both seen in the field), where a package of integers is 265returned, or a buffer of BYTEs is returned. With assistance from Jung-uk Kim. 266 267Implemented additional module-level code support. This change will properly 268execute module-level code that is not at the root of the namespace (under a 269Device object, etc.). Now executes the code within the current scope instead 270of the root. ACPICA BZ 762. Lin Ming. 271 272Fixed possible mutex acquisition errors when running _REG methods. Fixes a 273problem where mutex errors can occur when running a _REG method that is in 274the same scope as a method-defined operation region or an operation region 275under a module-level IF block. This type of code is rare, so the problem has 276not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 277 278Fixed a possible memory leak during module-level code execution. An object 279could be leaked for each block of executed module-level code if the 280interpreter slack mode is enabled This change deletes any implicitly returned 281object from the module-level code block. Lin Ming. 282 283Removed messages for successful predefined repair(s). The repair mechanism 284was considered too wordy. Now, messages are only unconditionally emitted if 285the return object cannot be repaired. Existing messages for successful 286repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 827. 287 288Example Code and Data Size: These are the sizes for the OS-independent 289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 290debug version of the code includes the debug output trace mechanism and has a 291much larger code and data size. 292 293 Previous Release: 294 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 295 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 296 Current Release: 297 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 298 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 299 3002) iASL Compiler/Disassembler and Tools: 301 302iASL: Fixed a regression introduced in 20091112 where intermediate .SRC files 303were no longer automatically removed at the termination of the compile. 304 305acpiexec: Implemented the -f option to specify default region fill value. 306This option specifies the value used to initialize buffers that simulate 307operation regions. Default value is zero. Useful for debugging problems that 308depend on a specific initial value for a region or field. 309 310---------------------------------------- 31112 November 2009. Summary of changes for version 20091112: 312 3131) ACPI CA Core Subsystem: 314 315Implemented a post-order callback to AcpiWalkNamespace. The existing 316interface only has a pre-order callback. This change adds an additional 317parameter for a post-order callback which will be more useful for bus scans. 318ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 319 320Modified the behavior of the operation region memory mapping cache for 321SystemMemory. Ensure that the memory mappings created for operation regions 322do not cross 4K page boundaries. Crossing a page boundary while mapping 323regions can cause kernel warnings on some hosts if the pages have different 324attributes. Such regions are probably BIOS bugs, and this is the workaround. 325Linux BZ 14445. Lin Ming. 326 327Implemented an automatic repair for predefined methods that must return 328sorted lists. This change will repair (by sorting) packages returned by _ALR, 329_PSS, and _TSS. Drivers can now assume that the packages are correctly sorted 330and do not contain NULL package elements. Adds one new file, 331namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 332 333Fixed a possible fault during predefined name validation if a return Package 334object contains NULL elements. Also adds a warning if a NULL element is 335followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement may 336include repair or removal of all such NULL elements where possible. 337 338Implemented additional module-level executable AML code support. This change 339will execute module-level code that is not at the root of the namespace 340(under a Device object, etc.) at table load time. Module-level executable AML 341code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 342 343Implemented a new internal function to create Integer objects. This function 344simplifies miscellaneous object creation code. ACPICA BZ 823. 345 346Reduced the severity of predefined repair messages, Warning to Info. Since 347the object was successfully repaired, a warning is too severe. Reduced to an 348info message for now. These messages may eventually be changed to debug-only. 349ACPICA BZ 812. 350 351Example Code and Data Size: These are the sizes for the OS-independent 352acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 353debug version of the code includes the debug output trace mechanism and has a 354much larger code and data size. 355 356 Previous Release: 357 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 358 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 359 Current Release: 360 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 361 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 362 3632) iASL Compiler/Disassembler and Tools: 364 365iASL: Implemented Switch() with While(1) so that Break works correctly. This 366change correctly implements the Switch operator with a surrounding While(1) 367so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 368 369iASL: Added a message if a package initializer list is shorter than package 370length. Adds a new remark for a Package() declaration if an initializer list 371exists, but is shorter than the declared length of the package. Although 372technically legal, this is probably a coding error and it is seen in the 373field. ACPICA BZ 815. Lin Ming, Bob Moore. 374 375iASL: Fixed a problem where the compiler could fault after the maximum number 376of errors was reached (200). 377 378acpixtract: Fixed a possible warning for pointer cast if the compiler warning 379level set very high. 380 381---------------------------------------- 38213 October 2009. Summary of changes for version 20091013: 383 3841) ACPI CA Core Subsystem: 385 386Fixed a problem where an Operation Region _REG method could be executed more 387than once. If a custom address space handler is installed by the host before 388the "initialize operation regions" phase of the ACPICA initialization, any 389_REG methods for that address space could be executed twice. This change 390fixes the problem. ACPICA BZ 427. Lin Ming. 391 392Fixed a possible memory leak for the Scope() ASL operator. When the exact 393invocation of "Scope(\)" is executed (change scope to root), one internal 394operand object was leaked. Lin Ming. 395 396Implemented a run-time repair for the _MAT predefined method. If the _MAT 397return value is defined as a Field object in the AML, and the field 398size is less than or equal to the default width of an integer (32 or 64),_MAT 399can incorrectly return an Integer instead of a Buffer. ACPICA now 400automatically repairs this problem. ACPICA BZ 810. 401 402Implemented a run-time repair for the _BIF and _BIX predefined methods. The 403"OEM Information" field is often incorrectly returned as an Integer with 404value zero if the field is not supported by the platform. This is due to an 405ambiguity in the ACPI specification. The field should always be a string. 406ACPICA now automatically repairs this problem by returning a NULL string 407within the returned Package. ACPICA BZ 807. 408 409Example Code and Data Size: These are the sizes for the OS-independent 410acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 411debug version of the code includes the debug output trace mechanism and has a 412much larger code and data size. 413 414 Previous Release: 415 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 416 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 417 Current Release: 418 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 419 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 420 4212) iASL Compiler/Disassembler and Tools: 422 423Disassembler: Fixed a problem where references to external symbols that 424contained one or more parent-prefixes (carats) were not handled correctly, 425possibly causing a fault. ACPICA BZ 806. Lin Ming. 426 427Disassembler: Restructured the code so that all functions that handle 428external symbols are in a single module. One new file is added, 429common/dmextern.c. 430 431AML Debugger: Added a max count argument for the Batch command (which 432executes multiple predefined methods within the namespace.) 433 434iASL: Updated the compiler documentation (User Reference.) Available at 435http://www.acpica.org/documentation/. ACPICA BZ 750. 436 437AcpiXtract: Updated for Lint and other formatting changes. Close all open 438files. 439 440---------------------------------------- 44103 September 2009. Summary of changes for version 20090903: 442 4431) ACPI CA Core Subsystem: 444 445For Windows Vista compatibility, added the automatic execution of an _INI 446method located at the namespace root (\_INI). This method is executed at 447table load time. This support is in addition to the automatic execution of 448\_SB._INI. Lin Ming. 449 450Fixed a possible memory leak in the interpreter for AML package objects if 451the package initializer list is longer than the defined size of the package. 452This apparently can only happen if the BIOS changes the package size on the 453fly (seen in a _PSS object), as ASL compilers do not allow this. The 454interpreter will truncate the package to the defined size (and issue an error 455message), but previously could leave the extra objects undeleted if they were 456pre-created during the argument processing (such is the case if the package 457consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 458 459Fixed a problem seen when a Buffer or String is stored to itself via ASL. 460This has been reported in the field. Previously, ACPICA would zero out the 461buffer/string. Now, the operation is treated as a noop. Provides Windows 462compatibility. ACPICA BZ 803. Lin Ming. 463 464Removed an extraneous error message for ASL constructs of the form 465Store(LocalX,LocalX) when LocalX is uninitialized. These curious statements 466are seen in many BIOSs and are once again treated as NOOPs and no error is 467emitted when they are encountered. ACPICA BZ 785. 468 469Fixed an extraneous warning message if a _DSM reserved method returns a 470Package object. _DSM can return any type of object, so validation on the 471return type cannot be performed. ACPICA BZ 802. 472 473Example Code and Data Size: These are the sizes for the OS-independent 474acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 475debug version of the code includes the debug output trace mechanism and has a 476much larger code and data size. 477 478 Previous Release: 479 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 480 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 481 Current Release: 482 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 483 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 484 4852) iASL Compiler/Disassembler and Tools: 486 487iASL: Fixed a problem with the use of the Alias operator and Resource 488Templates. The correct alias is now constructed and no error is emitted. 489ACPICA BZ 738. 490 491iASL: Implemented the -I option to specify additional search directories for 492include files. Allows multiple additional search paths for include files. 493Directories are searched in the order specified on the command line (after 494the local directory is searched.) ACPICA BZ 800. 495 496iASL: Fixed a problem where the full pathname for include files was not 497emitted for warnings/errors. This caused the IDE support to not work 498properly. ACPICA BZ 765. 499 500iASL: Implemented the -@ option to specify a Windows-style response file 501containing additional command line options. ACPICA BZ 801. 502 503AcpiExec: Added support to load multiple AML files simultaneously (such as a 504DSDT and multiple SSDTs). Also added support for wildcards within the AML 505pathname. These features allow all machine tables to be easily loaded and 506debugged together. ACPICA BZ 804. 507 508Disassembler: Added missing support for disassembly of HEST table Error Bank 509subtables. 510 511---------------------------------------- 51230 July 2009. Summary of changes for version 20090730: 513 514The ACPI 4.0 implementation for ACPICA is complete with this release. 515 5161) ACPI CA Core Subsystem: 517 518ACPI 4.0: Added header file support for all new and changed ACPI tables. 519Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 520for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 521EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 522have been some ACPI 4.0 changes to other existing tables. Split the large 523actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 524 525ACPI 4.0: Implemented predefined name validation for all new names. There are 52631 new names in ACPI 4.0. The predefined validation module was split into two 527files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 528 529Implemented support for so-called "module-level executable code". This is 530executable AML code that exists outside of any control method and is intended 531to be executed at table load time. Although illegal since ACPI 2.0, this type 532of code still exists and is apparently still being created. Blocks of this 533code are now detected and executed as intended. Currently, the code blocks 534must exist under either an If, Else, or While construct; these are the 535typical cases seen in the field. ACPICA BZ 762. Lin Ming. 536 537Implemented an automatic dynamic repair for predefined names that return 538nested Package objects. This applies to predefined names that are defined to 539return a variable-length Package of sub-packages. If the number of sub- 540packages is one, BIOS code is occasionally seen that creates a simple single 541package with no sub-packages. This code attempts to fix the problem by 542wrapping a new package object around the existing package. These methods can 543be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 544790. 545 546Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. 547The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 548BZ 793. 549 550Fixed a problem with AcpiReset where the reset would silently fail if the 551register was one of the protected I/O ports. AcpiReset now bypasses the port 552validation mechanism. This may eventually be driven into the AcpiRead/Write 553interfaces. 554 555Fixed a regression related to the recent update of the AcpiRead/Write 556interfaces. A sleep/suspend could fail if the optional PM2 Control register 557does not exist during an attempt to write the Bus Master Arbitration bit. 558(However, some hosts already delete the code that writes this bit, and the 559code may in fact be obsolete at this date.) ACPICA BZ 799. 560 561Fixed a problem where AcpiTerminate could fault if inadvertently called twice 562in succession. ACPICA BZ 795. 563 564Example Code and Data Size: These are the sizes for the OS-independent 565acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 566debug version of the code includes the debug output trace mechanism and has a 567much larger code and data size. 568 569 Previous Release: 570 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 571 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 572 Current Release: 573 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 574 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 575 5762) iASL Compiler/Disassembler and Tools: 577 578ACPI 4.0: Implemented disassembler support for all new ACPI tables and 579changes to existing tables. ACPICA BZ 775. 580 581---------------------------------------- 58225 June 2009. Summary of changes for version 20090625: 583 584The ACPI 4.0 Specification was released on June 16 and is available at 585www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 586continue for the next few releases. 587 5881) ACPI CA Core Subsystem: 589 590ACPI 4.0: Implemented interpreter support for the IPMI operation region 591address space. Includes support for bi-directional data buffers and an IPMI 592address space handler (to be installed by an IPMI device driver.) ACPICA BZ 593773. Lin Ming. 594 595ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 596support in both the header files and the disassembler. 597 598Completed a major update for the AcpiGetObjectInfo external interface. 599Changes include: 600 - Support for variable, unlimited length HID, UID, and CID strings. 601 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 602 - Call the _SxW power methods on behalf of a device object. 603 - Determine if a device is a PCI root bridge. 604 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 605These changes will require an update to all callers of this interface. See 606the updated ACPICA Programmer Reference for details. One new source file has 607been added - utilities/utids.c. ACPICA BZ 368, 780. 608 609Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 610transfers. The Value parameter has been extended from 32 bits to 64 bits in 611order to support new ACPI 4.0 tables. These changes will require an update to 612all callers of these interfaces. See the ACPICA Programmer Reference for 613details. ACPICA BZ 768. 614 615Fixed several problems with AcpiAttachData. The handler was not invoked when 616the host node was deleted. The data sub-object was not automatically deleted 617when the host node was deleted. The interface to the handler had an unused 618parameter, this was removed. ACPICA BZ 778. 619 620Enhanced the function that dumps ACPI table headers. All non-printable 621characters in the string fields are now replaced with '?' (Signature, OemId, 622OemTableId, and CompilerId.) ACPI tables with non-printable characters in 623these fields are occasionally seen in the field. ACPICA BZ 788. 624 625Fixed a problem with predefined method repair code where the code that 626attempts to repair/convert an object of incorrect type is only executed on 627the first time the predefined method is called. The mechanism that disables 628warnings on subsequent calls was interfering with the repair mechanism. 629ACPICA BZ 781. 630 631Fixed a possible memory leak in the predefined validation/repair code when a 632buffer is automatically converted to an expected string object. 633 634Removed obsolete 16-bit files from the distribution and from the current git 635tree head. ACPICA BZ 776. 636 637Example Code and Data Size: These are the sizes for the OS-independent 638acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 639debug version of the code includes the debug output trace mechanism and has a 640much larger code and data size. 641 642 Previous Release: 643 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 644 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 645 Current Release: 646 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 647 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 648 6492) iASL Compiler/Disassembler and Tools: 650 651ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 652operation region keyword. ACPICA BZ 771, 772. Lin Ming. 653 654ACPI 4.0: iASL - implemented compile-time validation support for all new 655predefined names and control methods (31 total). ACPICA BZ 769. 656 657---------------------------------------- 65821 May 2009. Summary of changes for version 20090521: 659 6601) ACPI CA Core Subsystem: 661 662Disabled the preservation of the SCI enable bit in the PM1 control register. 663The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 664a "preserved" bit - "OSPM always preserves this bit position", section 6654.7.3.2.1. However, some machines fail if this bit is in fact preserved 666because the bit needs to be explicitly set by the OS as a workaround. No 667machines fail if the bit is not preserved. Therefore, ACPICA no longer 668attempts to preserve this bit. 669 670Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 671incorrectly formed _PRT package could cause a fault. Added validation to 672ensure that each package element is actually a sub-package. 673 674Implemented a new interface to install or override a single control method, 675AcpiInstallMethod. This interface is useful when debugging in order to repair 676an existing method or to install a missing method without having to override 677the entire ACPI table. See the ACPICA Programmer Reference for use and 678examples. Lin Ming, Bob Moore. 679 680Fixed several reference count issues with the DdbHandle object that is 681created from a Load or LoadTable operator. Prevent premature deletion of the 682object. Also, mark the object as invalid once the table has been unloaded. 683This is needed because the handle itself may not be deleted after the table 684unload, depending on whether it has been stored in a named object by the 685caller. Lin Ming. 686 687Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 688mutexes of the same sync level are acquired but then not released in strict 689opposite order, the internally maintained Current Sync Level becomes confused 690and can cause subsequent execution errors. ACPICA BZ 471. 691 692Changed the allowable release order for ASL mutex objects. The ACPI 4.0 693specification has been changed to make the SyncLevel for mutex objects more 694useful. When releasing a mutex, the SyncLevel of the mutex must now be the 695same as the current sync level. This makes more sense than the previous rule 696(SyncLevel less than or equal). This change updates the code to match the 697specification. 698 699Fixed a problem with the local version of the AcpiOsPurgeCache function. The 700(local) cache must be locked during all cache object deletions. Andrew 701Baumann. 702 703Updated the Load operator to use operation region interfaces. This replaces 704direct memory mapping with region access calls. Now, all region accesses go 705through the installed region handler as they should. 706 707Simplified and optimized the NsGetNextNode function. Reduced parameter count 708and reduced code for this frequently used function. 709 710Example Code and Data Size: These are the sizes for the OS-independent 711acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 712debug version of the code includes the debug output trace mechanism and has a 713much larger code and data size. 714 715 Previous Release: 716 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 717 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 718 Current Release: 719 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 720 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 721 7222) iASL Compiler/Disassembler and Tools: 723 724Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 725with sub-table disassembly and handling invalid sub-tables. Attempt recovery 726after an invalid sub-table ID. 727 728---------------------------------------- 72922 April 2009. Summary of changes for version 20090422: 730 7311) ACPI CA Core Subsystem: 732 733Fixed a compatibility issue with the recently released I/O port protection 734mechanism. For windows compatibility, 1) On a port protection violation, 735simply ignore the request and do not return an exception (allow the control 736method to continue execution.) 2) If only part of the request overlaps a 737protected port, read/write the individual ports that are not protected. Linux 738BZ 13036. Lin Ming 739 740Enhanced the execution of the ASL/AML BreakPoint operator so that it actually 741breaks into the AML debugger if the debugger is present. This matches the 742ACPI-defined behavior. 743 744Fixed several possible warnings related to the use of the configurable 745ACPI_THREAD_ID. This type can now be configured as either an integer or a 746pointer with no warnings. Also fixes several warnings in printf-like 747statements for the 64-bit build when the type is configured as a pointer. 748ACPICA BZ 766, 767. 749 750Fixed a number of possible warnings when compiling with gcc 4+ (depending on 751warning options.) Examples include printf formats, aliasing, unused globals, 752missing prototypes, missing switch default statements, use of non-ANSI 753library functions, use of non-ANSI constructs. See generate/unix/Makefile for 754a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 755 756Example Code and Data Size: These are the sizes for the OS-independent 757acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 758debug version of the code includes the debug output trace mechanism and has a 759much larger code and data size. 760 761 Previous Release: 762 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 763 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 764 Current Release: 765 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 766 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 767 7682) iASL Compiler/Disassembler and Tools: 769 770iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 771the 64-bit build. 772 773iASL: Fixed a problem where the Unix/Linux versions of the compiler could not 774correctly digest Windows/DOS formatted files (with CR/LF). 775 776iASL: Added a new option for "quiet mode" (-va) that produces only the 777compilation summary, not individual errors and warnings. Useful for large 778batch compilations. 779 780AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 781timeout that can be used to detect hang conditions during execution of AML 782code (includes both internal semaphores and AML-defined mutexes and events.) 783 784Added new makefiles for the generation of acpica in a generic unix-like 785environment. These makefiles are intended to generate the acpica tools and 786utilities from the original acpica git source tree structure. 787 788Test Suites: Updated and cleaned up the documentation files. Updated the 789copyrights to 2009, affecting all source files. Use the new version of iASL 790with quiet mode. Increased the number of available semaphores in the Windows 791OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 792an alternate implementation of the semaphore timeout to allow aslts to 793execute fully on Cygwin. 794 795---------------------------------------- 79620 March 2009. Summary of changes for version 20090320: 797 7981) ACPI CA Core Subsystem: 799 800Fixed a possible race condition between AcpiWalkNamespace and dynamic table 801unloads. Added a reader/writer locking mechanism to allow multiple concurrent 802namespace walks (readers), but block a dynamic table unload until it can gain 803exclusive write access to the namespace. This fixes a problem where a table 804unload could (possibly catastrophically) delete the portion of the namespace 805that is currently being examined by a walk. Adds a new file, utlock.c, that 806implements the reader/writer lock mechanism. ACPICA BZ 749. 807 808Fixed a regression introduced in version 20090220 where a change to the FADT 809handling could cause the ACPICA subsystem to access non-existent I/O ports. 810 811Modified the handling of FADT register and table (FACS/DSDT) addresses. The 812FADT can contain both 32-bit and 64-bit versions of these addresses. 813Previously, the 64-bit versions were favored, meaning that if both 32 and 64 814versions were valid, but not equal, the 64-bit version was used. This was 815found to cause some machines to fail. Now, in this case, the 32-bit version 816is used instead. This now matches the Windows behavior. 817 818Implemented a new mechanism to protect certain I/O ports. Provides Microsoft 819compatibility and protects the standard PC I/O ports from access via AML 820code. Adds a new file, hwvalid.c 821 822Fixed a possible extraneous warning message from the FADT support. The 823message warns of a 32/64 length mismatch between the legacy and GAS 824definitions for a register. 825 826Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is 827made obsolete by the port protection mechanism above. It was previously used 828to validate the entire address range of an operation region, which could be 829incorrect if the range included illegal ports, but fields within the 830operation region did not actually access those ports. Validation is now 831performed on a per-field basis instead of the entire region. 832 833Modified the handling of the PM1 Status Register ignored bit (bit 11.) 834Ignored bits must be "preserved" according to the ACPI spec. Usually, this 835means a read/modify/write when writing to the register. However, for status 836registers, writing a one means clear the event. Writing a zero means preserve 837the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 838and the ACPICA code now simply always writes a zero to the ignored bit. 839 840Modified the handling of ignored bits for the PM1 A/B Control Registers. As 841per the ACPI specification, for the control registers, preserve 842(read/modify/write) all bits that are defined as either reserved or ignored. 843 844Updated the handling of write-only bits in the PM1 A/B Control Registers. 845When reading the register, zero the write-only bits as per the ACPI spec. 846ACPICA BZ 443. Lin Ming. 847 848Removed "Linux" from the list of supported _OSI strings. Linux no longer 849wants to reply true to this request. The Windows strings are the only paths 850through the AML that are tested and known to work properly. 851 852 Previous Release: 853 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 854 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 855 Current Release: 856 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 857 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 858 8592) iASL Compiler/Disassembler and Tools: 860 861Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 862aetables.c 863 864---------------------------------------- 86520 February 2009. Summary of changes for version 20090220: 866 8671) ACPI CA Core Subsystem: 868 869Optimized the ACPI register locking. Removed locking for reads from the ACPI 870bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 871not required when reading the single-bit registers. The 872AcpiGetRegisterUnlocked function is no longer needed and has been removed. 873This will improve performance for reads on these registers. ACPICA BZ 760. 874 875Fixed the parameter validation for AcpiRead/Write. Now return 876AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 877the register has an address of zero. Previously, these cases simply returned 878AE_OK. For optional registers such as PM1B status/enable/control, the caller 879should check for a valid register address before calling. ACPICA BZ 748. 880 881Renamed the external ACPI bit register access functions. Renamed 882AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 883functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 884Also, restructured the code for these functions by simplifying the code path 885and condensing duplicate code to reduce code size. 886 887Added new functions to transparently handle the possibly split PM1 A/B 888registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 889now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 890746. 891 892Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. 893This function writes both of the PM1 control registers (A/B). These registers 894are different than the PM1 A/B status and enable registers in that different 895values can be written to the A/B registers. Most notably, the SLP_TYP bits 896can be different, as per the values returned from the _Sx predefined methods. 897 898Removed an extra register write within AcpiHwClearAcpiStatus. This function 899was writing an optional PM1B status register twice. The existing call to the 900low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 901register. ACPICA BZ 751. 902 903Split out the PM1 Status registers from the FADT. Added new globals for these 904registers (A/B), similar to the way the PM1 Enable registers are handled. 905Instead of overloading the FADT Event Register blocks. This makes the code 906clearer and less prone to error. 907 908Fixed the warning message for when the platform contains too many ACPI tables 909for the default size of the global root table data structure. The calculation 910for the truncation value was incorrect. 911 912Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 913obsolete macro, since it is now a simple reference to ->common.type. There 914were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 915 916Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 917TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 918simply SLEEP_TYPE. ACPICA BZ 754. 919 920Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 921function is only needed on 64-bit host operating systems and is thus not 922included for 32-bit hosts. 923 924Debug output: print the input and result for invocations of the _OSI reserved 925control method via the ACPI_LV_INFO debug level. Also, reduced some of the 926verbosity of this debug level. Len Brown. 927 928Example Code and Data Size: These are the sizes for the OS-independent 929acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 930debug version of the code includes the debug output trace mechanism and has a 931much larger code and data size. 932 933 Previous Release: 934 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 935 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 936 Current Release: 937 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 938 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 939 9402) iASL Compiler/Disassembler and Tools: 941 942Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 943various legal performance profiles. 944 945---------------------------------------- 94623 January 2009. Summary of changes for version 20090123: 947 9481) ACPI CA Core Subsystem: 949 950Added the 2009 copyright to all module headers and signons. This affects 951virtually every file in the ACPICA core subsystem, the iASL compiler, and 952the tools/utilities. 953 954Implemented a change to allow the host to override any ACPI table, including 955dynamically loaded tables. Previously, only the DSDT could be replaced by the 956host. With this change, the AcpiOsTableOverride interface is called for each 957table found in the RSDT/XSDT during ACPICA initialization, and also whenever 958a table is dynamically loaded via the AML Load operator. 959 960Updated FADT flag definitions, especially the Boot Architecture flags. 961 962Debugger: For the Find command, automatically pad the input ACPI name with 963underscores if the name is shorter than 4 characters. This enables a match 964with the actual namespace entry which is itself padded with underscores. 965 966Example Code and Data Size: These are the sizes for the OS-independent 967acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 968debug version of the code includes the debug output trace mechanism and has a 969much larger code and data size. 970 971 Previous Release: 972 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 973 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 974 Current Release: 975 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 976 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 977 9782) iASL Compiler/Disassembler and Tools: 979 980Fix build error under Bison-2.4. 981 982Dissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 983flags. Now decode all flags, regardless of the FADT version. Flag output 984includes the FADT version which first defined each flag. 985 986The iASL -g option now dumps the RSDT to a file (in addition to the FADT and 987DSDT). Windows only. 988 989---------------------------------------- 99004 December 2008. Summary of changes for version 20081204: 991 9921) ACPI CA Core Subsystem: 993 994The ACPICA Programmer Reference has been completely updated and revamped for 995this release. This includes updates to the external interfaces, OSL 996interfaces, the overview sections, and the debugger reference. 997 998Several new ACPICA interfaces have been implemented and documented in the 999programmer reference: 1000AcpiReset - Writes the reset value to the FADT-defined reset register. 1001AcpiDisableAllGpes - Disable all available GPEs. 1002AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 1003AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 1004AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 1005AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 1006AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 1007 1008Most of the public ACPI hardware-related interfaces have been moved to a new 1009file, components/hardware/hwxface.c 1010 1011Enhanced the FADT parsing and low-level ACPI register access: The ACPI 1012register lengths within the FADT are now used, and the low level ACPI 1013register access no longer hardcodes the ACPI register lengths. Given that 1014there may be some risk in actually trusting the FADT register lengths, a run- 1015time option was added to fall back to the default hardcoded lengths if the 1016FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 1017option is set to true for now, and a warning is issued if a suspicious FADT 1018register length is overridden with the default value. 1019 1020Fixed a reference count issue in NsRepairObject. This problem was introduced 1021in version 20081031 as part of a fix to repair Buffer objects within 1022Packages. Lin Ming. 1023 1024Added semaphore support to the Linux/Unix application OS-services layer 1025(OSL). ACPICA BZ 448. Lin Ming. 1026 1027Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 1028be implemented in the OSL, or will binary semaphores be used instead. 1029 1030Example Code and Data Size: These are the sizes for the OS-independent 1031acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1032debug version of the code includes the debug output trace mechanism and has a 1033much larger code and data size. 1034 1035 Previous Release: 1036 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 1037 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 1038 Current Release: 1039 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 1040 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 1041 10422) iASL Compiler/Disassembler and Tools: 1043 1044iASL: Completed the '-e' option to include additional ACPI tables in order to 1045aid with disassembly and External statement generation. ACPICA BZ 742. Lin 1046Ming. 1047 1048iASL: Removed the "named object in while loop" error. The compiler cannot 1049determine how many times a loop will execute. ACPICA BZ 730. 1050 1051Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 1052BZ 743. 1053 1054Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 1055 1056---------------------------------------- 105731 October 2008. Summary of changes for version 20081031: 1058 10591) ACPI CA Core Subsystem: 1060 1061Restructured the ACPICA header files into public/private. acpi.h now includes 1062only the "public" acpica headers. All other acpica headers are "private" and 1063should not be included by acpica users. One new file, accommon.h is used to 1064include the commonly used private headers for acpica code generation. Future 1065plans include moving all private headers to a new subdirectory. 1066 1067Implemented an automatic Buffer->String return value conversion for 1068predefined ACPI methods. For these methods (such as _BIF), added automatic 1069conversion for return objects that are required to be a String, but a Buffer 1070was found instead. This can happen when reading string battery data from an 1071operation region, because it used to be difficult to convert the data from 1072buffer to string from within the ASL. Ensures that the host OS is provided 1073with a valid null-terminated string. Linux BZ 11822. 1074 1075Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 1076into two: one for the 32-bit vector, another for the 64-bit vector. This is 1077required because the host OS must setup the wake much differently for each 1078vector (real vs. protected mode, etc.) and the interface itself should not be 1079deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 1080interface, as it served no purpose (only the firmware reads the vector, OS 1081only writes the vector.) ACPICA BZ 731. 1082 1083Implemented a mechanism to escape infinite AML While() loops. Added a loop 1084counter to force exit from AML While loops if the count becomes too large. 1085This can occur in poorly written AML when the hardware does not respond 1086within a while loop and the loop does not implement a timeout. The maximum 1087loop count is configurable. A new exception code is returned when a loop is 1088broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 1089 1090Optimized the execution of AML While loops. Previously, a control state 1091object was allocated and freed for each execution of the loop. The 1092optimization is to simply reuse the control state for each iteration. This 1093speeds up the raw loop execution time by about 5%. 1094 1095Enhanced the implicit return mechanism. For Windows compatibility, return an 1096implicit integer of value zero for methods that contain no executable code. 1097Such methods are seen in the field as stubs (presumably), and can cause 1098drivers to fail if they expect a return value. Lin Ming. 1099 1100Allow multiple backslashes as root prefixes in namepaths. In a fully 1101qualified namepath, allow multiple backslash prefixes. This can happen (and 1102is seen in the field) because of the use of a double-backslash in strings 1103(since backslash is the escape character) causing confusion. ACPICA BZ 739 1104Lin Ming. 1105 1106Emit a warning if two different FACS or DSDT tables are discovered in the 1107FADT. Checks if there are two valid but different addresses for the FACS and 1108DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 1109 1110Consolidated the method argument count validation code. Merged the code that 1111validates control method argument counts into the predefined validation 1112module. Eliminates possible multiple warnings for incorrect argument counts. 1113 1114Implemented ACPICA example code. Includes code for ACPICA initialization, 1115handler installation, and calling a control method. Available at 1116source/tools/examples. 1117 1118Added a global pointer for FACS table to simplify internal FACS access. Use 1119the global pointer instead of using AcpiGetTableByIndex for each FACS access. 1120This simplifies the code for the Global Lock and the Firmware Waking 1121Vector(s). 1122 1123Example Code and Data Size: These are the sizes for the OS-independent 1124acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1125debug version of the code includes the debug output trace mechanism and has a 1126much larger code and data size. 1127 1128 Previous Release: 1129 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 1130 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 1131 Current Release: 1132 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 1133 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 1134 11352) iASL Compiler/Disassembler and Tools: 1136 1137iASL: Improved disassembly of external method calls. Added the -e option to 1138allow the inclusion of additional ACPI tables to help with the disassembly of 1139method invocations and the generation of external declarations during the 1140disassembly. Certain external method invocations cannot be disassembled 1141properly without the actual declaration of the method. Use the -e option to 1142include the table where the external method(s) are actually declared. Most 1143useful for disassembling SSDTs that make method calls back to the master 1144DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 1145-e dsdt.aml ssdt1.aml 1146 1147iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 1148problem where the use of an alias within a namepath would result in a not 1149found error or cause the compiler to fault. Also now allows forward 1150references from the Alias operator itself. ACPICA BZ 738. 1151 1152---------------------------------------- 115326 September 2008. Summary of changes for version 20080926: 1154 11551) ACPI CA Core Subsystem: 1156 1157Designed and implemented a mechanism to validate predefined ACPI methods and 1158objects. This code validates the predefined ACPI objects (objects whose names 1159start with underscore) that appear in the namespace, at the time they are 1160evaluated. The argument count and the type of the returned object are 1161validated against the ACPI specification. The purpose of this validation is 1162to detect problems with the BIOS-implemented predefined ACPI objects before 1163the results are returned to the ACPI-related drivers. Future enhancements may 1164include actual repair of incorrect return objects where possible. Two new 1165files are nspredef.c and acpredef.h. 1166 1167Fixed a fault in the AML parser if a memory allocation fails during the Op 1168completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 1169 1170Fixed an issue with implicit return compatibility. This change improves the 1171implicit return mechanism to be more compatible with the MS interpreter. Lin 1172Ming, ACPICA BZ 349. 1173 1174Implemented support for zero-length buffer-to-string conversions. Allow zero 1175length strings during interpreter buffer-to-string conversions. For example, 1176during the ToDecimalString and ToHexString operators, as well as implicit 1177conversions. Fiodor Suietov, ACPICA BZ 585. 1178 1179Fixed two possible memory leaks in the error exit paths of 1180AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 1181similar in that they use a stack of state objects in order to eliminate 1182recursion. The stack must be fully unwound and deallocated if an error 1183occurs. Lin Ming. ACPICA BZ 383. 1184 1185Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 1186ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 1187Moore ACPICA BZ 442. 1188 1189Removed the obsolete version number in module headers. Removed the 1190"$Revision" number that appeared in each module header. This version number 1191was useful under SourceSafe and CVS, but has no meaning under git. It is not 1192only incorrect, it could also be misleading. 1193 1194Example Code and Data Size: These are the sizes for the OS-independent 1195acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1196debug version of the code includes the debug output trace mechanism and has a 1197much larger code and data size. 1198 1199 Previous Release: 1200 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1201 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 1202 Current Release: 1203 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 1204 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 1205 1206---------------------------------------- 120729 August 2008. Summary of changes for version 20080829: 1208 12091) ACPI CA Core Subsystem: 1210 1211Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 1212Reference. Changes include the elimination of cheating on the Object field 1213for the DdbHandle subtype, addition of a reference class field to 1214differentiate the various reference types (instead of an AML opcode), and the 1215cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 1216 1217Reduce an error to a warning for an incorrect method argument count. 1218Previously aborted with an error if too few arguments were passed to a 1219control method via the external ACPICA interface. Now issue a warning instead 1220and continue. Handles the case where the method inadvertently declares too 1221many arguments, but does not actually use the extra ones. Applies mainly to 1222the predefined methods. Lin Ming. Linux BZ 11032. 1223 1224Disallow the evaluation of named object types with no intrinsic value. Return 1225AE_TYPE for objects that have no value and therefore evaluation is undefined: 1226Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 1227these types were allowed, but an exception would be generated at some point 1228during the evaluation. Now, the error is generated up front. 1229 1230Fixed a possible memory leak in the AcpiNsGetExternalPathname function 1231(nsnames.c). Fixes a leak in the error exit path. 1232 1233Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 1234levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 1235interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 1236ACPI_LV_EVENTS. 1237 1238Removed obsolete and/or unused exception codes from the acexcep.h header. 1239There is the possibility that certain device drivers may be affected if they 1240use any of these exceptions. 1241 1242The ACPICA documentation has been added to the public git source tree, under 1243acpica/documents. Included are the ACPICA programmer reference, the iASL 1244compiler reference, and the changes.txt release logfile. 1245 1246Example Code and Data Size: These are the sizes for the OS-independent 1247acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1248debug version of the code includes the debug output trace mechanism and has a 1249much larger code and data size. 1250 1251 Previous Release: 1252 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1253 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 1254 Current Release: 1255 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1256 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 1257 12582) iASL Compiler/Disassembler and Tools: 1259 1260Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 1261defines _SCP with 3 arguments. Previous versions defined it with only 1 1262argument. iASL now allows both definitions. 1263 1264iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 1265length subtables when disassembling ACPI tables. Also fixed a couple of 1266errors where a full 16-bit table type field was not extracted from the input 1267properly. 1268 1269acpisrc: Improve comment counting mechanism for generating source code 1270statistics. Count first and last lines of multi-line comments as whitespace, 1271not comment lines. Handle Linux legal header in addition to standard acpica 1272header. 1273 1274---------------------------------------- 1275 127629 July 2008. Summary of changes for version 20080729: 1277 12781) ACPI CA Core Subsystem: 1279 1280Fix a possible deadlock in the GPE dispatch. Remove call to 1281AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 1282to acquire the GPE lock but can deadlock since the GPE lock is already held 1283at dispatch time. This code was introduced in version 20060831 as a response 1284to Linux BZ 6881 and has since been removed from Linux. 1285 1286Add a function to dereference returned reference objects. Examines the return 1287object from a call to AcpiEvaluateObject. Any Index or RefOf references are 1288automatically dereferenced in an attempt to return something useful (these 1289reference types cannot be converted into an external ACPI_OBJECT.) Provides 1290MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 1291 1292x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 1293subtables for the MADT and one new subtable for the SRAT. Includes 1294disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 1295Specification, June 2008. 1296 1297Additional error checking for pathname utilities. Add error check after all 1298calls to AcpiNsGetPathnameLength. Add status return from 1299AcpiNsBuildExternalPath and check after all calls. Add parameter validation 1300to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 1301 1302Return status from the global init function AcpiUtGlobalInitialize. This is 1303used by both the kernel subsystem and the utilities such as iASL compiler. 1304The function could possibly fail when the caches are initialized. Yang Yi. 1305 1306Add a function to decode reference object types to strings. Created for 1307improved error messages. 1308 1309Improve object conversion error messages. Better error messages during object 1310conversion from internal to the external ACPI_OBJECT. Used for external calls 1311to AcpiEvaluateObject. 1312 1313Example Code and Data Size: These are the sizes for the OS-independent 1314acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1315debug version of the code includes the debug output trace mechanism and has a 1316much larger code and data size. 1317 1318 Previous Release: 1319 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1320 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1321 Current Release: 1322 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 1323 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 1324 13252) iASL Compiler/Disassembler and Tools: 1326 1327Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 1328introduced in version 20080701. If the object being evaluated (via execute 1329command) is not a method, the debugger can hang while trying to obtain non- 1330existent parameters. 1331 1332iASL: relax error for using reserved "_T_x" identifiers. These names can 1333appear in a disassembled ASL file if they were emitted by the original 1334compiler. Instead of issuing an error or warning and forcing the user to 1335manually change these names, issue a remark instead. 1336 1337iASL: error if named object created in while loop. Emit an error if any named 1338object is created within a While loop. If allowed, this code will generate a 1339run-time error on the second iteration of the loop when an attempt is made to 1340create the same named object twice. ACPICA bugzilla 730. 1341 1342iASL: Support absolute pathnames for include files. Add support for absolute 1343pathnames within the Include operator. previously, only relative pathnames 1344were supported. 1345 1346iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 1347The ACPI spec requires one interrupt minimum. BZ 423 1348 1349iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 1350Handles the case for the Interrupt Resource Descriptor where 1351the ResourceSource argument is omitted but ResourceSourceIndex 1352is present. Now leave room for the Index. BZ 426 1353 1354iASL: Prevent error message if CondRefOf target does not exist. Fixes cases 1355where an error message is emitted if the target does not exist. BZ 516 1356 1357iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 1358(get ACPI tables on Windows). This was apparently broken in version 20070919. 1359 1360AcpiXtract: Handle EOF while extracting data. Correctly handle the case where 1361the EOF happens immediately after the last table in the input file. Print 1362completion message. Previously, no message was displayed in this case. 1363 1364---------------------------------------- 136501 July 2008. Summary of changes for version 20080701: 1366 13670) Git source tree / acpica.org 1368 1369Fixed a problem where a git-clone from http would not transfer the entire 1370source tree. 1371 13721) ACPI CA Core Subsystem: 1373 1374Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 1375enable bit. Now performs a read-change-write of the enable register instead 1376of simply writing out the cached enable mask. This will prevent inadvertent 1377enabling of GPEs if a rogue GPE is received during initialization (before GPE 1378handlers are installed.) 1379 1380Implemented a copy for dynamically loaded tables. Previously, dynamically 1381loaded tables were simply mapped - but on some machines this memory is 1382corrupted after suspend. Now copy the table to a local buffer. For the 1383OpRegion case, added checksum verify. Use the table length from the table 1384header, not the region length. For the Buffer case, use the table length 1385also. Dennis Noordsij, Bob Moore. BZ 10734 1386 1387Fixed a problem where the same ACPI table could not be dynamically loaded and 1388unloaded more than once. Without this change, a table cannot be loaded again 1389once it has been loaded/unloaded one time. The current mechanism does not 1390unregister a table upon an unload. During a load, if the same table is found, 1391this no longer returns an exception. BZ 722 1392 1393Fixed a problem where the wrong descriptor length was calculated for the 1394EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 1395are calculated as 12 bytes long, but the actual length in the internal 1396descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 1397by Linn Crosetto. BZ 728 1398 1399Fixed a possible memory leak in the Unload operator. The DdbHandle returned 1400by Load() did not have its reference count decremented during unload, leading 1401to a memory leak. Lin Ming. BZ 727 1402 1403Fixed a possible memory leak when deleting thermal/processor objects. Any 1404associated notify handlers (and objects) were not being deleted. Fiodor 1405Suietov. BZ 506 1406 1407Fixed the ordering of the ASCII names in the global mutex table to match the 1408actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 1409Vegard Nossum. BZ 726 1410 1411Enhanced the AcpiGetObjectInfo interface to return the number of required 1412arguments if the object is a control method. Added this call to the debugger 1413so the proper number of default arguments are passed to a method. This 1414prevents a warning when executing methods from AcpiExec. 1415 1416Added a check for an invalid handle in AcpiGetObjectInfo. Return 1417AE_BAD_PARAMETER if input handle is invalid. BZ 474 1418 1419Fixed an extraneous warning from exconfig.c on the 64-bit build. 1420 1421Example Code and Data Size: These are the sizes for the OS-independent 1422acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1423debug version of the code includes the debug output trace mechanism and has a 1424much larger code and data size. 1425 1426 Previous Release: 1427 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1428 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1429 Current Release: 1430 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1431 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1432 14332) iASL Compiler/Disassembler and Tools: 1434 1435iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 1436resource descriptor names. 1437 1438iASL: Detect invalid ASCII characters in input (windows version). Removed the 1439"-CF" flag from the flex compile, enables correct detection of non-ASCII 1440characters in the input. BZ 441 1441 1442iASL: Eliminate warning when result of LoadTable is not used. Eliminate the 1443"result of operation not used" warning when the DDB handle returned from 1444LoadTable is not used. The warning is not needed. BZ 590 1445 1446AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 1447pass address of table to the AML. Added option to disable OpRegion simulation 1448to allow creation of an OpRegion with a real address that was passed to _CFG. 1449All of this allows testing of the Load and Unload operators from AcpiExec. 1450 1451Debugger: update tables command for unloaded tables. Handle unloaded tables 1452and use the standard table header output routine. 1453 1454---------------------------------------- 145509 June 2008. Summary of changes for version 20080609: 1456 14571) ACPI CA Core Subsystem: 1458 1459Implemented a workaround for reversed _PRT entries. A significant number of 1460BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 1461change dynamically detects and repairs this problem. Provides compatibility 1462with MS ACPI. BZ 6859 1463 1464Simplified the internal ACPI hardware interfaces to eliminate the locking 1465flag parameter from Register Read/Write. Added a new external interface, 1466AcpiGetRegisterUnlocked. 1467 1468Fixed a problem where the invocation of a GPE control method could hang. This 1469was a regression introduced in 20080514. The new method argument count 1470validation mechanism can enter an infinite loop when a GPE method is 1471dispatched. Problem fixed by removing the obsolete code that passed GPE block 1472information to the notify handler via the control method parameter pointer. 1473 1474Fixed a problem where the _SST execution status was incorrectly returned to 1475the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 147620080514. _SST is optional and a NOT_FOUND exception should never be 1477returned. BZ 716 1478 1479Fixed a problem where a deleted object could be accessed from within the AML 1480parser. This was a regression introduced in version 20080123 as a fix for the 1481Unload operator. Lin Ming. BZ 10669 1482 1483Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands 1484and eliminated the use of a negative index in a loop. Operands are now 1485displayed in the correct order, not backwards. This also fixes a regression 1486introduced in 20080514 on 64-bit systems where the elimination of 1487ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 1488 1489Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit 1490path did not delete a locally allocated structure. 1491 1492Updated definitions for the DMAR and SRAT tables to synchronize with the 1493current specifications. Includes disassembler support. 1494 1495Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 1496loop termination value was used. Loop terminated on iteration early, missing 1497one mutex. Linn Crosetto 1498 1499Example Code and Data Size: These are the sizes for the OS-independent 1500acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1501debug version of the code includes the debug output trace mechanism and has a 1502much larger code and data size. 1503 1504 Previous Release: 1505 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1506 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1507 Current Release: 1508 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1509 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1510 15112) iASL Compiler/Disassembler and Tools: 1512 1513Disassembler: Implemented support for EisaId() within _CID objects. Now 1514disassemble integer _CID objects back to EisaId invocations, including 1515multiple integers within _CID packages. Includes single-step support for 1516debugger also. 1517 1518Disassembler: Added support for DMAR and SRAT table definition changes. 1519 1520---------------------------------------- 152114 May 2008. Summary of changes for version 20080514: 1522 15231) ACPI CA Core Subsystem: 1524 1525Fixed a problem where GPEs were enabled too early during the ACPICA 1526initialization. This could lead to "handler not installed" errors on some 1527machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 1528ensures that all operation regions and devices throughout the namespace have 1529been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 1530 1531Implemented a change to the enter sleep code. Moved execution of the _GTS 1532method to just before setting sleep enable bit. The execution was moved from 1533AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 1534immediately before the SLP_EN bit is set, as per the ACPI specification. 1535Luming Yu, BZ 1653. 1536 1537Implemented a fix to disable unknown GPEs (2nd version). Now always disable 1538the GPE, even if ACPICA thinks that that it is already disabled. It is 1539possible that the AML or some other code has enabled the GPE unbeknownst to 1540the ACPICA code. 1541 1542Fixed a problem with the Field operator where zero-length fields would return 1543an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 1544field declarations in Field(), BankField(), and IndexField(). BZ 10606. 1545 1546Implemented a fix for the Load operator, now load the table at the namespace 1547root. This reverts a change introduced in version 20071019. The table is now 1548loaded at the namespace root even though this goes against the ACPI 1549specification. This provides compatibility with other ACPI implementations. 1550The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 1551 1552Fixed a problem where ACPICA would not Load() tables with unusual signatures. 1553Now ignore ACPI table signature for Load() operator. Only "SSDT" is 1554acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 1555Therefore, signature validation is worthless. Apparently MS ACPI accepts such 1556signatures, ACPICA must be compatible. BZ 10454. 1557 1558Fixed a possible negative array index in AcpiUtValidateException. Added NULL 1559fields to the exception string arrays to eliminate a -1 subtraction on the 1560SubStatus field. 1561 1562Updated the debug tracking macros to reduce overall code and data size. 1563Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 1564instead of pointers to static strings. Jan Beulich and Bob Moore. 1565 1566Implemented argument count checking in control method invocation via 1567AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 1568many. This applies only to extern programmatic control method execution, not 1569method-to-method calls within the AML. Lin Ming. 1570 1571Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 1572longer needed, especially with the removal of 16-bit support. It was replaced 1573mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 157432/64-bit platforms is required. 1575 1576Added the C const qualifier for appropriate string constants -- mostly 1577MODULE_NAME and printf format strings. Jan Beulich. 1578 1579Example Code and Data Size: These are the sizes for the OS-independent 1580acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1581debug version of the code includes the debug output trace mechanism and has a 1582much larger code and data size. 1583 1584 Previous Release: 1585 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1586 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1587 Current Release: 1588 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1589 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1590 15912) iASL Compiler/Disassembler and Tools: 1592 1593Implemented ACPI table revision ID validation in the disassembler. Zero is 1594always invalid. For DSDTs, the ID controls the interpreter integer width. 1 1595means 32-bit and this is unusual. 2 or greater is 64-bit. 1596 1597---------------------------------------- 159821 March 2008. Summary of changes for version 20080321: 1599 16001) ACPI CA Core Subsystem: 1601 1602Implemented an additional change to the GPE support in order to suppress 1603spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 1604disable incoming GPEs that are neither enabled nor disabled -- meaning that 1605the GPE is unknown to the system. This should prevent future interrupt floods 1606from that GPE. BZ 6217 (Zhang Rui) 1607 1608Fixed a problem where NULL package elements were not returned to the 1609AcpiEvaluateObject interface correctly. The element was simply ignored 1610instead of returning a NULL ACPI_OBJECT package element, potentially causing 1611a buffer overflow and/or confusing the caller who expected a fixed number of 1612elements. BZ 10132 (Lin Ming, Bob Moore) 1613 1614Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 1615Qword), Field, BankField, and IndexField operators when invoked from inside 1616an executing control method. In this case, these operators created namespace 1617nodes that were incorrectly left marked as permanent nodes instead of 1618temporary nodes. This could cause a problem if there is race condition 1619between an exiting control method and a running namespace walk. (Reported by 1620Linn Crosetto) 1621 1622Fixed a problem where the CreateField and CreateXXXField operators would 1623incorrectly allow duplicate names (the name of the field) with no exception 1624generated. 1625 1626Implemented several changes for Notify handling. Added support for new Notify 1627values (ACPI 2.0+) and improved the Notify debug output. Notify on 1628PowerResource objects is no longer allowed, as per the ACPI specification. 1629(Bob Moore, Zhang Rui) 1630 1631All Reference Objects returned via the AcpiEvaluateObject interface are now 1632marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 1633NULL objects - either NULL package elements or unresolved named references. 1634 1635Fixed a problem where an extraneous debug message was produced for package 1636objects (when debugging enabled). The message "Package List length larger 1637than NumElements count" is now produced in the correct case, and is now an 1638error message rather than a debug message. Added a debug message for the 1639opposite case, where NumElements is larger than the Package List (the package 1640will be padded out with NULL elements as per the ACPI spec.) 1641 1642Implemented several improvements for the output of the ASL "Debug" object to 1643clarify and keep all data for a given object on one output line. 1644 1645Fixed two size calculation issues with the variable-length Start Dependent 1646resource descriptor. 1647 1648Example Code and Data Size: These are the sizes for the OS-independent 1649acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1650debug version of the code includes the debug output trace mechanism and has 1651a much larger code and data size. 1652 1653 Previous Release: 1654 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1655 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1656 Current Release: 1657 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1658 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1659 16602) iASL Compiler/Disassembler and Tools: 1661 1662Fixed a problem with the use of the Switch operator where execution of the 1663containing method by multiple concurrent threads could cause an 1664AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 1665actual Switch opcode, it must be simulated with local named temporary 1666variables and if/else pairs. The solution chosen was to mark any method that 1667uses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 1668 1669---------------------------------------- 167013 February 2008. Summary of changes for version 20080213: 1671 16721) ACPI CA Core Subsystem: 1673 1674Implemented another MS compatibility design change for GPE/Notify handling. 1675GPEs are now cleared/enabled asynchronously to allow all pending notifies to 1676complete first. It is expected that the OSL will queue the enable request 1677behind all pending notify requests (may require changes to the local host OSL 1678in AcpiOsExecute). Alexey Starikovskiy. 1679 1680Fixed a problem where buffer and package objects passed as arguments to a 1681control method via the external AcpiEvaluateObject interface could cause an 1682AE_AML_INTERNAL exception depending on the order and type of operators 1683executed by the target control method. 1684 1685Fixed a problem where resource descriptor size optimization could cause a 1686problem when a _CRS resource template is passed to a _SRS method. The _SRS 1687resource template must use the same descriptors (with the same size) as 1688returned from _CRS. This change affects the following resource descriptors: 1689IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 1690 1691Fixed a problem where a CopyObject to RegionField, BankField, and IndexField 1692objects did not perform an implicit conversion as it should. These types must 1693retain their initial type permanently as per the ACPI specification. However, 1694a CopyObject to all other object types should not perform an implicit 1695conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 1696 1697Fixed a problem with the AcpiGetDevices interface where the mechanism to 1698match device CIDs did not examine the entire list of available CIDs, but 1699instead aborted on the first non-matching CID. Andrew Patterson. 1700 1701Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 1702inadvertently changed to return a 16-bit value instead of a 32-bit value, 1703truncating the upper dword of a 64-bit value. This macro is only used to 1704display debug output, so no incorrect calculations were made. Also, 1705reimplemented the macro so that a 64-bit shift is not performed by 1706inefficient compilers. 1707 1708Added missing va_end statements that should correspond with each va_start 1709statement. 1710 1711Example Code and Data Size: These are the sizes for the OS-independent 1712acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1713debug version of the code includes the debug output trace mechanism and has 1714a much larger code and data size. 1715 1716 Previous Release: 1717 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1718 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1719 Current Release: 1720 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1721 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1722 17232) iASL Compiler/Disassembler and Tools: 1724 1725Implemented full disassembler support for the following new ACPI tables: 1726BERT, EINJ, and ERST. Implemented partial disassembler support for the 1727complicated HEST table. These tables support the Windows Hardware Error 1728Architecture (WHEA). 1729 1730---------------------------------------- 173123 January 2008. Summary of changes for version 20080123: 1732 17331) ACPI CA Core Subsystem: 1734 1735Added the 2008 copyright to all module headers and signons. This affects 1736virtually every file in the ACPICA core subsystem, the iASL compiler, and 1737the tools/utilities. 1738 1739Fixed a problem with the SizeOf operator when used with Package and Buffer 1740objects. These objects have deferred execution for some arguments, and the 1741execution is now completed before the SizeOf is executed. This problem caused 1742unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 17439558 1744 1745Implemented an enhancement to the interpreter "slack mode". In the absence of 1746an explicit return or an implicitly returned object from the last executed 1747opcode, a control method will now implicitly return an integer of value 0 for 1748Microsoft compatibility. (Lin Ming) BZ 392 1749 1750Fixed a problem with the Load operator where an exception was not returned in 1751the case where the table is already loaded. (Lin Ming) BZ 463 1752 1753Implemented support for the use of DDBHandles as an Indexed Reference, as per 1754the ACPI spec. (Lin Ming) BZ 486 1755 1756Implemented support for UserTerm (Method invocation) for the Unload operator 1757as per the ACPI spec. (Lin Ming) BZ 580 1758 1759Fixed a problem with the LoadTable operator where the OemId and OemTableId 1760input strings could cause unexpected failures if they were shorter than the 1761maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 1762 1763Implemented support for UserTerm (Method invocation) for the Unload operator 1764as per the ACPI spec. (Lin Ming) BZ 580 1765 1766Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 1767IBFT, UEFI, WDAT. Disassembler support is forthcoming. 1768 1769Example Code and Data Size: These are the sizes for the OS-independent 1770acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1771debug version of the code includes the debug output trace mechanism and has 1772a much larger code and data size. 1773 1774 Previous Release: 1775 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1776 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1777 Current Release: 1778 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1779 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1780 17812) iASL Compiler/Disassembler and Tools: 1782 1783Implemented support in the disassembler for checksum validation on incoming 1784binary DSDTs and SSDTs. If incorrect, a message is displayed within the table 1785header dump at the start of the disassembly. 1786 1787Implemented additional debugging information in the namespace listing file 1788created during compilation. In addition to the namespace hierarchy, the full 1789pathname to each namespace object is displayed. 1790 1791Fixed a problem with the disassembler where invalid ACPI tables could cause 1792faults or infinite loops. 1793 1794Fixed an unexpected parse error when using the optional "parameter types" 1795list in a control method declaration. (Lin Ming) BZ 397 1796 1797Fixed a problem where two External declarations with the same name did not 1798cause an error (Lin Ming) BZ 509 1799 1800Implemented support for full TermArgs (adding Argx, Localx and method 1801invocation) for the ParameterData parameter to the LoadTable operator. (Lin 1802Ming) BZ 583,587 1803 1804---------------------------------------- 180519 December 2007. Summary of changes for version 20071219: 1806 18071) ACPI CA Core Subsystem: 1808 1809Implemented full support for deferred execution for the TermArg string 1810arguments for DataTableRegion. This enables forward references and full 1811operand resolution for the three string arguments. Similar to OperationRegion 1812deferred argument execution.) Lin Ming. BZ 430 1813 1814Implemented full argument resolution support for the BankValue argument to 1815BankField. Previously, only constants were supported, now any TermArg may be 1816used. Lin Ming BZ 387, 393 1817 1818Fixed a problem with AcpiGetDevices where the search of a branch of the 1819device tree could be terminated prematurely. In accordance with the ACPI 1820specification, the search down the current branch is terminated if a device 1821is both not present and not functional (instead of just not present.) Yakui 1822Zhao. 1823 1824Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 1825the underlying AML code changed the GPE enable registers. Now, any unknown 1826incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 1827instead of simply ignored. Rui Zhang. 1828 1829Fixed a problem with Index Fields where the Index register was incorrectly 1830limited to a maximum of 32 bits. Now any size may be used. 1831 1832Fixed a couple memory leaks associated with "implicit return" objects when 1833the AML Interpreter slack mode is enabled. Lin Ming BZ 349 1834 1835Example Code and Data Size: These are the sizes for the OS-independent 1836acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1837debug version of the code includes the debug output trace mechanism and has 1838a much larger code and data size. 1839 1840 Previous Release: 1841 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1842 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1843 Current Release: 1844 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1845 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1846 1847---------------------------------------- 184814 November 2007. Summary of changes for version 20071114: 1849 18501) ACPI CA Core Subsystem: 1851 1852Implemented event counters for each of the Fixed Events, the ACPI SCI 1853(interrupt) itself, and control methods executed. Named 1854AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 1855should be useful for debugging and statistics. 1856 1857Implemented a new external interface, AcpiGetStatistics, to retrieve the 1858contents of the various event counters. Returns the current values for 1859AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 1860AcpiMethodCount. The interface can be expanded in the future if new counters 1861are added. Device drivers should use this interface rather than access the 1862counters directly. 1863 1864Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 1865the ShortDivide function worked incorrectly, causing problems with the BCD 1866functions with large input values. A truncation from 64-bit to 32-bit 1867inadvertently occurred. Internal BZ 435. Lin Ming 1868 1869Fixed a problem with Index references passed as method arguments. References 1870passed as arguments to control methods were dereferenced immediately (before 1871control was passed to the called method). The references are now correctly 1872passed directly to the called method. BZ 5389. Lin Ming 1873 1874Fixed a problem with CopyObject used in conjunction with the Index operator. 1875The reference was incorrectly dereferenced before the copy. The reference is 1876now correctly copied. BZ 5391. Lin Ming 1877 1878Fixed a problem with Control Method references within Package objects. These 1879references are now correctly generated. This completes the package 1880construction overhaul that began in version 20071019. 1881 1882Example Code and Data Size: These are the sizes for the OS-independent 1883acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1884debug version of the code includes the debug output trace mechanism and has 1885a much larger code and data size. 1886 1887 Previous Release: 1888 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1889 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1890 Current Release: 1891 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1892 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1893 1894 18952) iASL Compiler/Disassembler and Tools: 1896 1897The AcpiExec utility now installs handlers for all of the predefined 1898Operation Region types. New types supported are: PCI_Config, CMOS, and 1899PCIBARTarget. 1900 1901Fixed a problem with the 64-bit version of AcpiExec where the extended (64- 1902bit) address fields for the DSDT and FACS within the FADT were not being 1903used, causing truncation of the upper 32-bits of these addresses. Lin Ming 1904and Bob Moore 1905 1906---------------------------------------- 190719 October 2007. Summary of changes for version 20071019: 1908 19091) ACPI CA Core Subsystem: 1910 1911Fixed a problem with the Alias operator when the target of the alias is a 1912named ASL operator that opens a new scope -- Scope, Device, PowerResource, 1913Processor, and ThermalZone. In these cases, any children of the original 1914operator could not be accessed via the alias, potentially causing unexpected 1915AE_NOT_FOUND exceptions. (BZ 9067) 1916 1917Fixed a problem with the Package operator where all named references were 1918created as object references and left otherwise unresolved. According to the 1919ACPI specification, a Package can only contain Data Objects or references to 1920control methods. The implication is that named references to Data Objects 1921(Integer, Buffer, String, Package, BufferField, Field) should be resolved 1922immediately upon package creation. This is the approach taken with this 1923change. References to all other named objects (Methods, Devices, Scopes, 1924etc.) are all now properly created as reference objects. (BZ 5328) 1925 1926Reverted a change to Notify handling that was introduced in version 192720070508. This version changed the Notify handling from asynchronous to 1928fully synchronous (Device driver Notify handling with respect to the Notify 1929ASL operator). It was found that this change caused more problems than it 1930solved and was removed by most users. 1931 1932Fixed a problem with the Increment and Decrement operators where the type of 1933the target object could be unexpectedly and incorrectly changed. (BZ 353) 1934Lin Ming. 1935 1936Fixed a problem with the Load and LoadTable operators where the table 1937location within the namespace was ignored. Instead, the table was always 1938loaded into the root or current scope. Lin Ming. 1939 1940Fixed a problem with the Load operator when loading a table from a buffer 1941object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 1942 1943Fixed a problem with the Debug object where a store of a DdbHandle reference 1944object to the Debug object could cause a fault. 1945 1946Added a table checksum verification for the Load operator, in the case where 1947the load is from a buffer. (BZ 578). 1948 1949Implemented additional parameter validation for the LoadTable operator. The 1950length of the input strings SignatureString, OemIdString, and OemTableId are 1951now checked for maximum lengths. (BZ 582) Lin Ming. 1952 1953Example Code and Data Size: These are the sizes for the OS-independent 1954acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1955debug version of the code includes the debug output trace mechanism and has 1956a much larger code and data size. 1957 1958 Previous Release: 1959 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1960 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1961 Current Release: 1962 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1963 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1964 1965 19662) iASL Compiler/Disassembler: 1967 1968Fixed a problem where if a single file was specified and the file did not 1969exist, no error message was emitted. (Introduced with wildcard support in 1970version 20070917.) 1971 1972---------------------------------------- 197319 September 2007. Summary of changes for version 20070919: 1974 19751) ACPI CA Core Subsystem: 1976 1977Designed and implemented new external interfaces to install and remove 1978handlers for ACPI table-related events. Current events that are defined are 1979LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 1980they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 1981AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 1982 1983Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 1984(acpi_serialized option on Linux) could cause some systems to hang during 1985initialization. (Bob Moore) BZ 8171 1986 1987Fixed a problem where objects of certain types (Device, ThermalZone, 1988Processor, PowerResource) can be not found if they are declared and 1989referenced from within the same control method (Lin Ming) BZ 341 1990 1991Example Code and Data Size: These are the sizes for the OS-independent 1992acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1993debug version of the code includes the debug output trace mechanism and has 1994a much larger code and data size. 1995 1996 Previous Release: 1997 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1998 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1999 Current Release: 2000 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 2001 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 2002 2003 20042) iASL Compiler/Disassembler: 2005 2006Implemented support to allow multiple files to be compiled/disassembled in a 2007single invocation. This includes command line wildcard support for both the 2008Windows and Unix versions of the compiler. This feature simplifies the 2009disassembly and compilation of multiple ACPI tables in a single directory. 2010 2011---------------------------------------- 201208 May 2007. Summary of changes for version 20070508: 2013 20141) ACPI CA Core Subsystem: 2015 2016Implemented a Microsoft compatibility design change for the handling of the 2017Notify AML operator. Previously, notify handlers were dispatched and 2018executed completely asynchronously in a deferred thread. The new design 2019still executes the notify handlers in a different thread, but the original 2020thread that executed the Notify() now waits at a synchronization point for 2021the notify handler to complete. Some machines depend on a synchronous Notify 2022operator in order to operate correctly. 2023 2024Implemented support to allow Package objects to be passed as method 2025arguments to the external AcpiEvaluateObject interface. Previously, this 2026would return the AE_NOT_IMPLEMENTED exception. This feature had not been 2027implemented since there were no reserved control methods that required it 2028until recently. 2029 2030Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 2031contained invalid non-zero values in reserved fields could cause later 2032failures because these fields have meaning in later revisions of the FADT. 2033For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 2034are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 2035 2036Fixed a problem where the Global Lock handle was not properly updated if a 2037thread that acquired the Global Lock via executing AML code then attempted 2038to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 2039Liu. 2040 2041Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 2042could be corrupted if the interrupt being removed was at the head of the 2043list. Reported by Linn Crosetto. 2044 2045Example Code and Data Size: These are the sizes for the OS-independent 2046acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2047debug version of the code includes the debug output trace mechanism and has 2048a much larger code and data size. 2049 2050 Previous Release: 2051 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2052 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 2053 Current Release: 2054 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 2055 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 2056 2057---------------------------------------- 205820 March 2007. Summary of changes for version 20070320: 2059 20601) ACPI CA Core Subsystem: 2061 2062Implemented a change to the order of interpretation and evaluation of AML 2063operand objects within the AML interpreter. The interpreter now evaluates 2064operands in the order that they appear in the AML stream (and the 2065corresponding ASL code), instead of in the reverse order (after the entire 2066operand list has been parsed). The previous behavior caused several subtle 2067incompatibilities with the Microsoft AML interpreter as well as being 2068somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 2069 2070Implemented a change to the ACPI Global Lock support. All interfaces to the 2071global lock now allow the same thread to acquire the lock multiple times. 2072This affects the AcpiAcquireGlobalLock external interface to the global lock 2073as well as the internal use of the global lock to support AML fields -- a 2074control method that is holding the global lock can now simultaneously access 2075AML fields that require global lock protection. Previously, in both cases, 2076this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 2077AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 2078Controller. There is no change to the behavior of the AML Acquire operator, 2079as this can already be used to acquire a mutex multiple times by the same 2080thread. BZ 8066. With assistance from Alexey Starikovskiy. 2081 2082Fixed a problem where invalid objects could be referenced in the AML 2083Interpreter after error conditions. During operand evaluation, ensure that 2084the internal "Return Object" field is cleared on error and only valid 2085pointers are stored there. Caused occasional access to deleted objects that 2086resulted in "large reference count" warning messages. Valery Podrezov. 2087 2088Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 2089deeply nested control method invocations. BZ 7873, local BZ 487. Valery 2090Podrezov. 2091 2092Fixed an internal problem with the handling of result objects on the 2093interpreter result stack. BZ 7872. Valery Podrezov. 2094 2095Removed obsolete code that handled the case where AML_NAME_OP is the target 2096of a reference (Reference.Opcode). This code was no longer necessary. BZ 20977874. Valery Podrezov. 2098 2099Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 2100remnant from the previously discontinued 16-bit support. 2101 2102Example Code and Data Size: These are the sizes for the OS-independent 2103acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2104debug version of the code includes the debug output trace mechanism and has 2105a much larger code and data size. 2106 2107 Previous Release: 2108 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2109 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2110 Current Release: 2111 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2112 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 2113 2114---------------------------------------- 211526 January 2007. Summary of changes for version 20070126: 2116 21171) ACPI CA Core Subsystem: 2118 2119Added the 2007 copyright to all module headers and signons. This affects 2120virtually every file in the ACPICA core subsystem, the iASL compiler, and 2121the utilities. 2122 2123Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 2124during a table load. A bad pointer was passed in the case where the DSDT is 2125overridden, causing a fault in this case. 2126 2127Example Code and Data Size: These are the sizes for the OS-independent 2128acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2129debug version of the code includes the debug output trace mechanism and has 2130a much larger code and data size. 2131 2132 Previous Release: 2133 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2134 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2135 Current Release: 2136 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2137 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2138 2139---------------------------------------- 214015 December 2006. Summary of changes for version 20061215: 2141 21421) ACPI CA Core Subsystem: 2143 2144Support for 16-bit ACPICA has been completely removed since it is no longer 2145necessary and it clutters the code. All 16-bit macros, types, and 2146conditional compiles have been removed, cleaning up and simplifying the code 2147across the entire subsystem. DOS support is no longer needed since the 2148bootable Linux firmware kit is now available. 2149 2150The handler for the Global Lock is now removed during AcpiTerminate to 2151enable a clean subsystem restart, via the implementation of the 2152AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 2153HP) 2154 2155Implemented enhancements to the multithreading support within the debugger 2156to enable improved multithreading debugging and evaluation of the subsystem. 2157(Valery Podrezov) 2158 2159Debugger: Enhanced the Statistics/Memory command to emit the total (maximum) 2160memory used during the execution, as well as the maximum memory consumed by 2161each of the various object types. (Valery Podrezov) 2162 2163Example Code and Data Size: These are the sizes for the OS-independent 2164acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2165debug version of the code includes the debug output trace mechanism and has 2166a much larger code and data size. 2167 2168 Previous Release: 2169 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 2170 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 2171 Current Release: 2172 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 2173 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 2174 2175 21762) iASL Compiler/Disassembler and Tools: 2177 2178AcpiExec: Implemented a new option (-m) to display full memory use 2179statistics upon subsystem/program termination. (Valery Podrezov) 2180 2181---------------------------------------- 218209 November 2006. Summary of changes for version 20061109: 2183 21841) ACPI CA Core Subsystem: 2185 2186Optimized the Load ASL operator in the case where the source operand is an 2187operation region. Simply map the operation region memory, instead of 2188performing a bytewise read. (Region must be of type SystemMemory, see 2189below.) 2190 2191Fixed the Load ASL operator for the case where the source operand is a 2192region field. A buffer object is also allowed as the source operand. BZ 480 2193 2194Fixed a problem where the Load ASL operator allowed the source operand to be 2195an operation region of any type. It is now restricted to regions of type 2196SystemMemory, as per the ACPI specification. BZ 481 2197 2198Additional cleanup and optimizations for the new Table Manager code. 2199 2200AcpiEnable will now fail if all of the required ACPI tables are not loaded 2201(FADT, FACS, DSDT). BZ 477 2202 2203Added #pragma pack(8/4) to acobject.h to ensure that the structures in this 2204header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 2205manually optimized to be aligned and will not work if it is byte-packed. 2206 2207Example Code and Data Size: These are the sizes for the OS-independent 2208acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2209debug version of the code includes the debug output trace mechanism and has 2210a much larger code and data size. 2211 2212 Previous Release: 2213 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 2214 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 2215 Current Release: 2216 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 2217 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 2218 2219 22202) iASL Compiler/Disassembler and Tools: 2221 2222Fixed a problem where the presence of the _OSI predefined control method 2223within complex expressions could cause an internal compiler error. 2224 2225AcpiExec: Implemented full region support for multiple address spaces. 2226SpaceId is now part of the REGION object. BZ 429 2227 2228---------------------------------------- 222911 October 2006. Summary of changes for version 20061011: 2230 22311) ACPI CA Core Subsystem: 2232 2233Completed an AML interpreter performance enhancement for control method 2234execution. Previously a 2-pass parse/execution, control methods are now 2235completely parsed and executed in a single pass. This improves overall 2236interpreter performance by ~25%, reduces code size, and reduces CPU stack 2237use. (Valery Podrezov + interpreter changes in version 20051202 that 2238eliminated namespace loading during the pass one parse.) 2239 2240Implemented _CID support for PCI Root Bridge detection. If the _HID does not 2241match the predefined PCI Root Bridge IDs, the _CID list (if present) is now 2242obtained and also checked for an ID match. 2243 2244Implemented additional support for the PCI _ADR execution: upsearch until a 2245device scope is found before executing _ADR. This allows PCI_Config 2246operation regions to be declared locally within control methods underneath 2247PCI device objects. 2248 2249Fixed a problem with a possible race condition between threads executing 2250AcpiWalkNamespace and the AML interpreter. This condition was removed by 2251modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 2252entries created during any concurrent control method execution. An 2253additional namespace race condition is known to exist between 2254AcpiWalkNamespace and the Load/Unload ASL operators and is still under 2255investigation. 2256 2257Restructured the AML ParseLoop function, breaking it into several 2258subfunctions in order to reduce CPU stack use and improve maintainability. 2259(Mikhail Kouzmich) 2260 2261AcpiGetHandle: Fix for parameter validation to detect invalid combinations 2262of prefix handle and pathname. BZ 478 2263 2264Example Code and Data Size: These are the sizes for the OS-independent 2265acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2266debug version of the code includes the debug output trace mechanism and has 2267a much larger code and data size. 2268 2269 Previous Release: 2270 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2271 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 2272 Current Release: 2273 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 2274 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 2275 22762) iASL Compiler/Disassembler and Tools: 2277 2278Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager 2279to restore original behavior. 2280 2281---------------------------------------- 228227 September 2006. Summary of changes for version 20060927: 2283 22841) ACPI CA Core Subsystem: 2285 2286Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 2287These functions now use a spinlock for mutual exclusion and the interrupt 2288level indication flag is not needed. 2289 2290Fixed a problem with the Global Lock where the lock could appear to be 2291obtained before it is actually obtained. The global lock semaphore was 2292inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 2293Suietov. 2294 2295Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during 2296a read from a buffer or region field. (BZ 458) Fiodor Suietov. 2297 2298Example Code and Data Size: These are the sizes for the OS-independent 2299acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2300debug version of the code includes the debug output trace mechanism and has 2301a much larger code and data size. 2302 2303 Previous Release: 2304 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2305 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2306 Current Release: 2307 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2308 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 2309 2310 23112) iASL Compiler/Disassembler and Tools: 2312 2313Fixed a compilation problem with the pre-defined Resource Descriptor field 2314names where an "object does not exist" error could be incorrectly generated 2315if the parent ResourceTemplate pathname places the template within a 2316different namespace scope than the current scope. (BZ 7212) 2317 2318Fixed a problem where the compiler could hang after syntax errors detected 2319in an ElseIf construct. (BZ 453) 2320 2321Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 2322operator. An incorrect output filename was produced when this parameter was 2323a null string (""). Now, the original input filename is used as the AML 2324output filename, with an ".aml" extension. 2325 2326Implemented a generic batch command mode for the AcpiExec utility (execute 2327any AML debugger command) (Valery Podrezov). 2328 2329---------------------------------------- 233012 September 2006. Summary of changes for version 20060912: 2331 23321) ACPI CA Core Subsystem: 2333 2334Enhanced the implementation of the "serialized mode" of the interpreter 2335(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 2336specified, instead of creating a serialization semaphore per control method, 2337the interpreter lock is simply no longer released before a blocking 2338operation during control method execution. This effectively makes the AML 2339Interpreter single-threaded. The overhead of a semaphore per-method is 2340eliminated. 2341 2342Fixed a regression where an error was no longer emitted if a control method 2343attempts to create 2 objects of the same name. This once again returns 2344AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 2345will dynamically serialize the control method to possible prevent future 2346errors. (BZ 440) 2347 2348Integrated a fix for a problem with PCI Express HID detection in the PCI 2349Config Space setup procedure. (BZ 7145) 2350 2351Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 2352AcpiHwInitialize function - the FADT registers are now validated when the 2353table is loaded. 2354 2355Added two new warnings during FADT verification - 1) if the FADT is larger 2356than the largest known FADT version, and 2) if there is a mismatch between a 235732-bit block address and the 64-bit X counterpart (when both are non-zero.) 2358 2359Example Code and Data Size: These are the sizes for the OS-independent 2360acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2361debug version of the code includes the debug output trace mechanism and has 2362a much larger code and data size. 2363 2364 Previous Release: 2365 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2366 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2367 Current Release: 2368 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 2369 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 2370 2371 23722) iASL Compiler/Disassembler and Tools: 2373 2374Fixed a problem with the implementation of the Switch() operator where the 2375temporary variable was declared too close to the actual Switch, instead of 2376at method level. This could cause a problem if the Switch() operator is 2377within a while loop, causing an error on the second iteration. (BZ 460) 2378 2379Disassembler - fix for error emitted for unknown type for target of scope 2380operator. Now, ignore it and continue. 2381 2382Disassembly of an FADT now verifies the input FADT and reports any errors 2383found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 2384 2385Disassembly of raw data buffers with byte initialization data now prefixes 2386each output line with the current buffer offset. 2387 2388Disassembly of ASF! table now includes all variable-length data fields at 2389the end of some of the subtables. 2390 2391The disassembler now emits a comment if a buffer appears to be a 2392ResourceTemplate, but cannot be disassembled as such because the EndTag does 2393not appear at the very end of the buffer. 2394 2395AcpiExec - Added the "-t" command line option to enable the serialized mode 2396of the AML interpreter. 2397 2398---------------------------------------- 239931 August 2006. Summary of changes for version 20060831: 2400 24011) ACPI CA Core Subsystem: 2402 2403Miscellaneous fixes for the Table Manager: 2404- Correctly initialize internal common FADT for all 64-bit "X" fields 2405- Fixed a couple table mapping issues during table load 2406- Fixed a couple alignment issues for IA64 2407- Initialize input array to zero in AcpiInitializeTables 2408- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 2409AcpiGetTableByIndex 2410 2411Change for GPE support: when a "wake" GPE is received, all wake GPEs are now 2412immediately disabled to prevent the waking GPE from firing again and to 2413prevent other wake GPEs from interrupting the wake process. 2414 2415Added the AcpiGpeCount global that tracks the number of processed GPEs, to 2416be used for debugging systems with a large number of ACPI interrupts. 2417 2418Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 2419both the ACPICA headers and the disassembler. 2420 2421Example Code and Data Size: These are the sizes for the OS-independent 2422acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2423debug version of the code includes the debug output trace mechanism and has 2424a much larger code and data size. 2425 2426 Previous Release: 2427 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2428 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2429 Current Release: 2430 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2431 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2432 2433 24342) iASL Compiler/Disassembler and Tools: 2435 2436Disassembler support for the DMAR ACPI table. 2437 2438---------------------------------------- 243923 August 2006. Summary of changes for version 20060823: 2440 24411) ACPI CA Core Subsystem: 2442 2443The Table Manager component has been completely redesigned and 2444reimplemented. The new design is much simpler, and reduces the overall code 2445and data size of the kernel-resident ACPICA by approximately 5%. Also, it is 2446now possible to obtain the ACPI tables very early during kernel 2447initialization, even before dynamic memory management is initialized. 2448(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 2449 2450Obsolete ACPICA interfaces: 2451 2452- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 2453time). 2454- AcpiLoadTable: Not needed. 2455- AcpiUnloadTable: Not needed. 2456 2457New ACPICA interfaces: 2458 2459- AcpiInitializeTables: Must be called before the table manager can be used. 2460- AcpiReallocateRootTable: Used to transfer the root table to dynamically 2461allocated memory after it becomes available. 2462- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 2463in the RSDT/XSDT. 2464 2465Other ACPICA changes: 2466 2467- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 2468AcpiOsUnmapMemory to free this mapping. 2469- AcpiGetTable returns the actual mapped table. The mapping is managed 2470internally and must not be deleted by the caller. Use of this interface 2471causes no additional dynamic memory allocation. 2472- AcpiFindRootPointer: Support for physical addressing has been eliminated, 2473it appeared to be unused. 2474- The interface to AcpiOsMapMemory has changed to be consistent with the 2475other allocation interfaces. 2476- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 2477parameters. 2478- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 2479bit platforms. Was previously 64 bits on all platforms. 2480- The interface to the ACPI Global Lock acquire/release macros have changed 2481slightly since ACPICA no longer keeps a local copy of the FACS with a 2482constructed pointer to the actual global lock. 2483 2484Porting to the new table manager: 2485 2486- AcpiInitializeTables: Must be called once, and can be called anytime 2487during the OS initialization process. It allows the host to specify an area 2488of memory to be used to store the internal version of the RSDT/XSDT (root 2489table). This allows the host to access ACPI tables before memory management 2490is initialized and running. 2491- AcpiReallocateRootTable: Can be called after memory management is running 2492to copy the root table to a dynamically allocated array, freeing up the 2493scratch memory specified in the call to AcpiInitializeTables. 2494- AcpiSubsystemInitialize: This existing interface is independent of the 2495Table Manager, and does not have to be called before the Table Manager can 2496be used, it only must be called before the rest of ACPICA can be used. 2497- ACPI Tables: Some changes have been made to the names and structure of the 2498actbl.h and actbl1.h header files and may require changes to existing code. 2499For example, bitfields have been completely removed because of their lack of 2500portability across C compilers. 2501- Update interfaces to the Global Lock acquire/release macros if local 2502versions are used. (see acwin.h) 2503 2504Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 2505 2506New files: tbfind.c 2507 2508Example Code and Data Size: These are the sizes for the OS-independent 2509acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2510debug version of the code includes the debug output trace mechanism and has 2511a much larger code and data size. 2512 2513 Previous Release: 2514 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2515 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2516 Current Release: 2517 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2518 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2519 2520 25212) iASL Compiler/Disassembler and Tools: 2522 2523No changes for this release. 2524 2525---------------------------------------- 252621 July 2006. Summary of changes for version 20060721: 2527 25281) ACPI CA Core Subsystem: 2529 2530The full source code for the ASL test suite used to validate the iASL 2531compiler and the ACPICA core subsystem is being released with the ACPICA 2532source for the first time. The source is contained in a separate package and 2533consists of over 1100 files that exercise all ASL/AML operators. The package 2534should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 2535Suietov) 2536 2537Completed a new design and implementation for support of the ACPI Global 2538Lock. On the OS side, the global lock is now treated as a standard AML 2539mutex. Previously, multiple OS threads could "acquire" the global lock 2540simultaneously. However, this could cause the BIOS to be starved out of the 2541lock - especially in cases such as the Embedded Controller driver where 2542there is a tight coupling between the OS and the BIOS. 2543 2544Implemented an optimization for the ACPI Global Lock interrupt mechanism. 2545The Global Lock interrupt handler no longer queues the execution of a 2546separate thread to signal the global lock semaphore. Instead, the semaphore 2547is signaled directly from the interrupt handler. 2548 2549Implemented support within the AML interpreter for package objects that 2550contain a larger AML length (package list length) than the package element 2551count. In this case, the length of the package is truncated to match the 2552package element count. Some BIOS code apparently modifies the package length 2553on the fly, and this change supports this behavior. Provides compatibility 2554with the MS AML interpreter. (With assistance from Fiodor Suietov) 2555 2556Implemented a temporary fix for the BankValue parameter of a Bank Field to 2557support all constant values, now including the Zero and One opcodes. 2558Evaluation of this parameter must eventually be converted to a full TermArg 2559evaluation. A not-implemented error is now returned (temporarily) for non- 2560constant values for this parameter. 2561 2562Fixed problem reports (Fiodor Suietov) integrated: 2563- Fix for premature object deletion after CopyObject on Operation Region (BZ 2564350) 2565 2566Example Code and Data Size: These are the sizes for the OS-independent 2567acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2568debug version of the code includes the debug output trace mechanism and has 2569a much larger code and data size. 2570 2571 Previous Release: 2572 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 2573 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 2574 Current Release: 2575 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2576 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2577 2578 25792) iASL Compiler/Disassembler and Tools: 2580 2581No changes for this release. 2582 2583---------------------------------------- 258407 July 2006. Summary of changes for version 20060707: 2585 25861) ACPI CA Core Subsystem: 2587 2588Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 2589that do not allow the initialization of address pointers within packed 2590structures - even though the hardware itself may support misaligned 2591transfers. Some of the debug data structures are packed by default to 2592minimize size. 2593 2594Added an error message for the case where AcpiOsGetThreadId() returns zero. 2595A non-zero value is required by the core ACPICA code to ensure the proper 2596operation of AML mutexes and recursive control methods. 2597 2598The DSDT is now the only ACPI table that determines whether the AML 2599interpreter is in 32-bit or 64-bit mode. Not really a functional change, but 2600the hooks for per-table 32/64 switching have been removed from the code. A 2601clarification to the ACPI specification is forthcoming in ACPI 3.0B. 2602 2603Fixed a possible leak of an OwnerID in the error path of 2604AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 2605deletion to a single place in AcpiTbUninstallTable to correct possible leaks 2606when using the AcpiTbDeleteTablesByType interface (with assistance from 2607Lance Ortiz.) 2608 2609Fixed a problem with Serialized control methods where the semaphore 2610associated with the method could be over-signaled after multiple method 2611invocations. 2612 2613Fixed two issues with the locking of the internal namespace data structure. 2614Both the Unload() operator and AcpiUnloadTable interface now lock the 2615namespace during the namespace deletion associated with the table unload 2616(with assistance from Linn Crosetto.) 2617 2618Fixed problem reports (Valery Podrezov) integrated: 2619- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 2620 2621Fixed problem reports (Fiodor Suietov) integrated: 2622- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 2623- On Address Space handler deletion, needless deactivation call (BZ 374) 2624- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 2625- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 2626(BZ 376) 2627- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 2628- Minimum Length of RSDT should be validated (BZ 379) 2629- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 2630Handler (BZ (380) 2631- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 2632(BZ 381) 2633 2634Example Code and Data Size: These are the sizes for the OS-independent 2635acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2636debug version of the code includes the debug output trace mechanism and has 2637a much larger code and data size. 2638 2639 Previous Release: 2640 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2641 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2642 Current Release: 2643 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2644 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2645 2646 26472) iASL Compiler/Disassembler and Tools: 2648 2649Fixed problem reports: 2650Compiler segfault when ASL contains a long (>1024) String declaration (BZ 2651436) 2652 2653---------------------------------------- 265423 June 2006. Summary of changes for version 20060623: 2655 26561) ACPI CA Core Subsystem: 2657 2658Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 2659allows the type to be customized to the host OS for improved efficiency 2660(since a spinlock is usually a very small object.) 2661 2662Implemented support for "ignored" bits in the ACPI registers. According to 2663the ACPI specification, these bits should be preserved when writing the 2664registers via a read/modify/write cycle. There are 3 bits preserved in this 2665manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 2666 2667Implemented the initial deployment of new OSL mutex interfaces. Since some 2668host operating systems have separate mutex and semaphore objects, this 2669feature was requested. The base code now uses mutexes (and the new mutex 2670interfaces) wherever a binary semaphore was used previously. However, for 2671the current release, the mutex interfaces are defined as macros to map them 2672to the existing semaphore interfaces. Therefore, no OSL changes are required 2673at this time. (See acpiosxf.h) 2674 2675Fixed several problems with the support for the control method SyncLevel 2676parameter. The SyncLevel now works according to the ACPI specification and 2677in concert with the Mutex SyncLevel parameter, since the current SyncLevel 2678is a property of the executing thread. Mutual exclusion for control methods 2679is now implemented with a mutex instead of a semaphore. 2680 2681Fixed three instances of the use of the C shift operator in the bitfield 2682support code (exfldio.c) to avoid the use of a shift value larger than the 2683target data width. The behavior of C compilers is undefined in this case and 2684can cause unpredictable results, and therefore the case must be detected and 2685avoided. (Fiodor Suietov) 2686 2687Added an info message whenever an SSDT or OEM table is loaded dynamically 2688via the Load() or LoadTable() ASL operators. This should improve debugging 2689capability since it will show exactly what tables have been loaded (beyond 2690the tables present in the RSDT/XSDT.) 2691 2692Example Code and Data Size: These are the sizes for the OS-independent 2693acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2694debug version of the code includes the debug output trace mechanism and has 2695a much larger code and data size. 2696 2697 Previous Release: 2698 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2699 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2700 Current Release: 2701 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2702 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2703 2704 27052) iASL Compiler/Disassembler and Tools: 2706 2707No changes for this release. 2708 2709---------------------------------------- 271008 June 2006. Summary of changes for version 20060608: 2711 27121) ACPI CA Core Subsystem: 2713 2714Converted the locking mutex used for the ACPI hardware to a spinlock. This 2715change should eliminate all problems caused by attempting to acquire a 2716semaphore at interrupt level, and it means that all ACPICA external 2717interfaces that directly access the ACPI hardware can be safely called from 2718interrupt level. OSL code that implements the semaphore interfaces should be 2719able to eliminate any workarounds for being called at interrupt level. 2720 2721Fixed a regression introduced in 20060526 where the ACPI device 2722initialization could be prematurely aborted with an AE_NOT_FOUND if a device 2723did not have an optional _INI method. 2724 2725Fixed an IndexField issue where a write to the Data Register should be 2726limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 2727Fiodor Suietov) 2728 2729Fixed problem reports (Valery Podrezov) integrated: 2730- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 2731 2732Fixed problem reports (Fiodor Suietov) integrated: 2733- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 2734 2735Removed four global mutexes that were obsolete and were no longer being 2736used. 2737 2738Example Code and Data Size: These are the sizes for the OS-independent 2739acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2740debug version of the code includes the debug output trace mechanism and has 2741a much larger code and data size. 2742 2743 Previous Release: 2744 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2745 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2746 Current Release: 2747 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2748 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2749 2750 27512) iASL Compiler/Disassembler and Tools: 2752 2753Fixed a fault when using -g option (get tables from registry) on Windows 2754machines. 2755 2756Fixed problem reports integrated: 2757- Generate error if CreateField NumBits parameter is zero. (BZ 405) 2758- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 2759Suietov) 2760- Global table revision override (-r) is ignored (BZ 413) 2761 2762---------------------------------------- 276326 May 2006. Summary of changes for version 20060526: 2764 27651) ACPI CA Core Subsystem: 2766 2767Restructured, flattened, and simplified the internal interfaces for 2768namespace object evaluation - resulting in smaller code, less CPU stack use, 2769and fewer interfaces. (With assistance from Mikhail Kouzmich) 2770 2771Fixed a problem with the CopyObject operator where the first parameter was 2772not typed correctly for the parser, interpreter, compiler, and disassembler. 2773Caused various errors and unexpected behavior. 2774 2775Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 2776produced incorrect results with some C compilers. Since the behavior of C 2777compilers when the shift value is larger than the datatype width is 2778apparently not well defined, the interpreter now detects this condition and 2779simply returns zero as expected in all such cases. (BZ 395) 2780 2781Fixed problem reports (Valery Podrezov) integrated: 2782- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 2783- Allow interpreter to handle nested method declarations (BZ 5361) 2784 2785Fixed problem reports (Fiodor Suietov) integrated: 2786- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 2787- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 2788- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 2789- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 2790- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 2791- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 2792- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 2793- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 2794- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 2795- Status of the Global Initialization Handler call not used (BZ 366) 2796- Incorrect object parameter to Global Initialization Handler (BZ 367) 2797 2798Example Code and Data Size: These are the sizes for the OS-independent 2799acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2800debug version of the code includes the debug output trace mechanism and has 2801a much larger code and data size. 2802 2803 Previous Release: 2804 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2805 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2806 Current Release: 2807 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2808 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2809 2810 28112) iASL Compiler/Disassembler and Tools: 2812 2813Modified the parser to allow the names IO, DMA, and IRQ to be used as 2814namespace identifiers with no collision with existing resource descriptor 2815macro names. This provides compatibility with other ASL compilers and is 2816most useful for disassembly/recompilation of existing tables without parse 2817errors. (With assistance from Thomas Renninger) 2818 2819Disassembler: fixed an incorrect disassembly problem with the 2820DataTableRegion and CopyObject operators. Fixed a possible fault during 2821disassembly of some Alias operators. 2822 2823---------------------------------------- 282412 May 2006. Summary of changes for version 20060512: 2825 28261) ACPI CA Core Subsystem: 2827 2828Replaced the AcpiOsQueueForExecution interface with a new interface named 2829AcpiOsExecute. The major difference is that the new interface does not have 2830a Priority parameter, this appeared to be useless and has been replaced by a 2831Type parameter. The Type tells the host what type of execution is being 2832requested, such as global lock handler, notify handler, GPE handler, etc. 2833This allows the host to queue and execute the request as appropriate for the 2834request type, possibly using different work queues and different priorities 2835for the various request types. This enables fixes for multithreading 2836deadlock problems such as BZ #5534, and will require changes to all existing 2837OS interface layers. (Alexey Starikovskiy and Bob Moore) 2838 2839Fixed a possible memory leak associated with the support for the so-called 2840"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 2841Suietov) 2842 2843Fixed a problem with the Load() operator where a table load from an 2844operation region could overwrite an internal table buffer by up to 7 bytes 2845and cause alignment faults on IPF systems. (With assistance from Luming Yu) 2846 2847Example Code and Data Size: These are the sizes for the OS-independent 2848acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2849debug version of the code includes the debug output trace mechanism and has 2850a much larger code and data size. 2851 2852 Previous Release: 2853 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2854 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2855 Current Release: 2856 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2857 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2858 2859 2860 28612) iASL Compiler/Disassembler and Tools: 2862 2863Disassembler: Implemented support to cross reference the internal namespace 2864and automatically generate ASL External() statements for symbols not defined 2865within the current table being disassembled. This will simplify the 2866disassembly and recompilation of interdependent tables such as SSDTs since 2867these statements will no longer have to be added manually. 2868 2869Disassembler: Implemented experimental support to automatically detect 2870invocations of external control methods and generate appropriate External() 2871statements. This is problematic because the AML cannot be correctly parsed 2872until the number of arguments for each control method is known. Currently, 2873standalone method invocations and invocations as the source operand of a 2874Store() statement are supported. 2875 2876Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 2877LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 2878LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 2879more readable and likely closer to the original ASL source. 2880 2881---------------------------------------- 288221 April 2006. Summary of changes for version 20060421: 2883 28841) ACPI CA Core Subsystem: 2885 2886Removed a device initialization optimization introduced in 20051216 where 2887the _STA method was not run unless an _INI was also present for the same 2888device. This optimization could cause problems because it could allow _INI 2889methods to be run within a not-present device subtree. (If a not-present 2890device had no _INI, _STA would not be run, the not-present status would not 2891be discovered, and the children of the device would be incorrectly 2892traversed.) 2893 2894Implemented a new _STA optimization where namespace subtrees that do not 2895contain _INI are identified and ignored during device initialization. 2896Selectively running _STA can significantly improve boot time on large 2897machines (with assistance from Len Brown.) 2898 2899Implemented support for the device initialization case where the returned 2900_STA flags indicate a device not-present but functioning. In this case, _INI 2901is not run, but the device children are examined for presence, as per the 2902ACPI specification. 2903 2904Implemented an additional change to the IndexField support in order to 2905conform to MS behavior. The value written to the Index Register is not 2906simply a byte offset, it is a byte offset in units of the access width of 2907the parent Index Field. (Fiodor Suietov) 2908 2909Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 2910interface is called during the creation of all AML operation regions, and 2911allows the host OS to exert control over what addresses it will allow the 2912AML code to access. Operation Regions whose addresses are disallowed will 2913cause a runtime exception when they are actually accessed (will not affect 2914or abort table loading.) See oswinxf or osunixxf for an example 2915implementation. 2916 2917Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 2918interface allows the host OS to match the various "optional" 2919interface/behavior strings for the _OSI predefined control method as 2920appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 2921for an example implementation. 2922 2923Restructured and corrected various problems in the exception handling code 2924paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 2925(with assistance from Takayoshi Kochi.) 2926 2927Modified the Linux source converter to ignore quoted string literals while 2928converting identifiers from mixed to lower case. This will correct problems 2929with the disassembler and other areas where such strings must not be 2930modified. 2931 2932The ACPI_FUNCTION_* macros no longer require quotes around the function 2933name. This allows the Linux source converter to convert the names, now that 2934the converter ignores quoted strings. 2935 2936Example Code and Data Size: These are the sizes for the OS-independent 2937acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2938debug version of the code includes the debug output trace mechanism and has 2939a much larger code and data size. 2940 2941 Previous Release: 2942 2943 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2944 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2945 Current Release: 2946 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2947 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2948 2949 29502) iASL Compiler/Disassembler and Tools: 2951 2952Implemented 3 new warnings for iASL, and implemented multiple warning levels 2953(w2 flag). 2954 29551) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 2956WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 2957check for the possible timeout, a warning is issued. 2958 29592) Useless operators: If an ASL operator does not specify an optional target 2960operand and it also does not use the function return value from the 2961operator, a warning is issued since the operator effectively does nothing. 2962 29633) Unreferenced objects: If a namespace object is created, but never 2964referenced, a warning is issued. This is a warning level 2 since there are 2965cases where this is ok, such as when a secondary table is loaded that uses 2966the unreferenced objects. Even so, care is taken to only flag objects that 2967don't look like they will ever be used. For example, the reserved methods 2968(starting with an underscore) are usually not referenced because it is 2969expected that the OS will invoke them. 2970 2971---------------------------------------- 297231 March 2006. Summary of changes for version 20060331: 2973 29741) ACPI CA Core Subsystem: 2975 2976Implemented header file support for the following additional ACPI tables: 2977ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 2978all current and known ACPI tables are now defined in the ACPICA headers and 2979are available for use by device drivers and other software. 2980 2981Implemented support to allow tables that contain ACPI names with invalid 2982characters to be loaded. Previously, this would cause the table load to 2983fail, but since there are several known cases of such tables on existing 2984machines, this change was made to enable ACPI support for them. Also, this 2985matches the behavior of the Microsoft ACPI implementation. 2986 2987Fixed a couple regressions introduced during the memory optimization in the 298820060317 release. The namespace node definition required additional 2989reorganization and an internal datatype that had been changed to 8-bit was 2990restored to 32-bit. (Valery Podrezov) 2991 2992Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 2993could be passed through to AcpiOsReleaseObject which is unexpected. Such 2994null pointers are now trapped and ignored, matching the behavior of the 2995previous implementation before the deployment of AcpiOsReleaseObject. 2996(Valery Podrezov, Fiodor Suietov) 2997 2998Fixed a memory mapping leak during the deletion of a SystemMemory operation 2999region where a cached memory mapping was not deleted. This became a 3000noticeable problem for operation regions that are defined within frequently 3001used control methods. (Dana Meyers) 3002 3003Reorganized the ACPI table header files into two main files: one for the 3004ACPI tables consumed by the ACPICA core, and another for the miscellaneous 3005ACPI tables that are consumed by the drivers and other software. The various 3006FADT definitions were merged into one common section and three different 3007tables (ACPI 1.0, 1.0+, and 2.0) 3008 3009Example Code and Data Size: These are the sizes for the OS-independent 3010acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3011debug version of the code includes the debug output trace mechanism and has 3012a much larger code and data size. 3013 3014 Previous Release: 3015 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 3016 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 3017 Current Release: 3018 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 3019 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 3020 3021 30222) iASL Compiler/Disassembler and Tools: 3023 3024Disassembler: Implemented support to decode and format all non-AML ACPI 3025tables (tables other than DSDTs and SSDTs.) This includes the new tables 3026added to the ACPICA headers, therefore all current and known ACPI tables are 3027supported. 3028 3029Disassembler: The change to allow ACPI names with invalid characters also 3030enables the disassembly of such tables. Invalid characters within names are 3031changed to '*' to make the name printable; the iASL compiler will still 3032generate an error for such names, however, since this is an invalid ACPI 3033character. 3034 3035Implemented an option for AcpiXtract (-a) to extract all tables found in the 3036input file. The default invocation extracts only the DSDTs and SSDTs. 3037 3038Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 3039makefile for the AcpiXtract utility. 3040 3041---------------------------------------- 304217 March 2006. Summary of changes for version 20060317: 3043 30441) ACPI CA Core Subsystem: 3045 3046Implemented the use of a cache object for all internal namespace nodes. 3047Since there are about 1000 static nodes in a typical system, this will 3048decrease memory use for cache implementations that minimize per-allocation 3049overhead (such as a slab allocator.) 3050 3051Removed the reference count mechanism for internal namespace nodes, since it 3052was deemed unnecessary. This reduces the size of each namespace node by 3053about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 3054and 32 bytes for the 64-bit case. 3055 3056Optimized several internal data structures to reduce object size on 64-bit 3057platforms by packing data within the 64-bit alignment. This includes the 3058frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 3059instances corresponding to the namespace objects. 3060 3061Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 3062and "Windows 2006". 3063 3064Split the allocation tracking mechanism out to a separate file, from 3065utalloc.c to uttrack.c. This mechanism appears to be only useful for 3066application-level code. Kernels may wish to not include uttrack.c in 3067distributions. 3068 3069Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated 3070code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 3071macros.) 3072 3073Code and Data Size: These are the sizes for the acpica.lib produced by the 3074Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 3075driver or OSPM code. The debug version of the code includes the debug output 3076trace mechanism and has a much larger code and data size. Note that these 3077values will vary depending on the efficiency of the compiler and the 3078compiler options used during generation. 3079 3080 Previous Release: 3081 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3082 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 3083 Current Release: 3084 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 3085 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 3086 3087 30882) iASL Compiler/Disassembler and Tools: 3089 3090Implemented an ANSI C version of the acpixtract utility. This version will 3091automatically extract the DSDT and all SSDTs from the input acpidump text 3092file and dump the binary output to separate files. It can also display a 3093summary of the input file including the headers for each table found and 3094will extract any single ACPI table, with any signature. (See 3095source/tools/acpixtract) 3096 3097---------------------------------------- 309810 March 2006. Summary of changes for version 20060310: 3099 31001) ACPI CA Core Subsystem: 3101 3102Tagged all external interfaces to the subsystem with the new 3103ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 3104kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 3105macro. The default definition is NULL. 3106 3107Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 3108This allows the host to define this as necessary to simplify kernel 3109integration. The default definition is ACPI_NATIVE_UINT. 3110 3111Fixed two interpreter problems related to error processing, the deletion of 3112objects, and placing invalid pointers onto the internal operator result 3113stack. BZ 6028, 6151 (Valery Podrezov) 3114 3115Increased the reference count threshold where a warning is emitted for large 3116reference counts in order to eliminate unnecessary warnings on systems with 3117large namespaces (especially 64-bit.) Increased the value from 0x400 to 31180x800. 3119 3120Due to universal disagreement as to the meaning of the 'c' in the calloc() 3121function, the ACPI_MEM_CALLOCATE macro has been renamed to 3122ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 3123ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 3124ACPI_FREE. 3125 3126Code and Data Size: These are the sizes for the acpica.lib produced by the 3127Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 3128driver or OSPM code. The debug version of the code includes the debug output 3129trace mechanism and has a much larger code and data size. Note that these 3130values will vary depending on the efficiency of the compiler and the 3131compiler options used during generation. 3132 3133 Previous Release: 3134 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 3135 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 3136 Current Release: 3137 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3138 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 3139 3140 31412) iASL Compiler/Disassembler: 3142 3143Disassembler: implemented support for symbolic resource descriptor 3144references. If a CreateXxxxField operator references a fixed offset within a 3145resource descriptor, a name is assigned to the descriptor and the offset is 3146translated to the appropriate resource tag and pathname. The addition of 3147this support brings the disassembled code very close to the original ASL 3148source code and helps eliminate run-time errors when the disassembled code 3149is modified (and recompiled) in such a way as to invalidate the original 3150fixed offsets. 3151 3152Implemented support for a Descriptor Name as the last parameter to the ASL 3153Register() macro. This parameter was inadvertently left out of the ACPI 3154specification, and will be added for ACPI 3.0b. 3155 3156Fixed a problem where the use of the "_OSI" string (versus the full path 3157"\_OSI") caused an internal compiler error. ("No back ptr to op") 3158 3159Fixed a problem with the error message that occurs when an invalid string is 3160used for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 3161The correct message is now displayed. 3162 3163---------------------------------------- 316417 February 2006. Summary of changes for version 20060217: 3165 31661) ACPI CA Core Subsystem: 3167 3168Implemented a change to the IndexField support to match the behavior of the 3169Microsoft AML interpreter. The value written to the Index register is now a 3170byte offset, no longer an index based upon the width of the Data register. 3171This should fix IndexField problems seen on some machines where the Data 3172register is not exactly one byte wide. The ACPI specification will be 3173clarified on this point. 3174 3175Fixed a problem where several resource descriptor types could overrun the 3176internal descriptor buffer due to size miscalculation: VendorShort, 3177VendorLong, and Interrupt. This was noticed on IA64 machines, but could 3178affect all platforms. 3179 3180Fixed a problem where individual resource descriptors were misaligned within 3181the internal buffer, causing alignment faults on IA64 platforms. 3182 3183Code and Data Size: These are the sizes for the acpica.lib produced by the 3184Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 3185driver or OSPM code. The debug version of the code includes the debug output 3186trace mechanism and has a much larger code and data size. Note that these 3187values will vary depending on the efficiency of the compiler and the 3188compiler options used during generation. 3189 3190 Previous Release: 3191 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3192 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 3193 Current Release: 3194 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 3195 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 3196 3197 31982) iASL Compiler/Disassembler: 3199 3200Implemented support for new reserved names: _WDG and _WED are Microsoft 3201extensions for Windows Instrumentation Management, _TDL is a new ACPI- 3202defined method (Throttling Depth Limit.) 3203 3204Fixed a problem where a zero-length VendorShort or VendorLong resource 3205descriptor was incorrectly emitted as a descriptor of length one. 3206 3207---------------------------------------- 320810 February 2006. Summary of changes for version 20060210: 3209 32101) ACPI CA Core Subsystem: 3211 3212Removed a couple of extraneous ACPI_ERROR messages that appeared during 3213normal execution. These became apparent after the conversion from 3214ACPI_DEBUG_PRINT. 3215 3216Fixed a problem where the CreateField operator could hang if the BitIndex or 3217NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 3218 3219Fixed a problem where a DeRefOf operation on a buffer object incorrectly 3220failed with an exception. This also fixes a couple of related RefOf and 3221DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 3222 3223Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 3224AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 32255480) 3226 3227Implemented a memory cleanup at the end of the execution of each iteration 3228of an AML While() loop, preventing the accumulation of outstanding objects. 3229(Valery Podrezov, BZ 5427) 3230 3231Eliminated a chunk of duplicate code in the object resolution code. (Valery 3232Podrezov, BZ 5336) 3233 3234Fixed several warnings during the 64-bit code generation. 3235 3236The AcpiSrc source code conversion tool now inserts one line of whitespace 3237after an if() statement that is followed immediately by a comment, improving 3238readability of the Linux code. 3239 3240Code and Data Size: The current and previous library sizes for the core 3241subsystem are shown below. These are the code and data sizes for the 3242acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3243values do not include any ACPI driver or OSPM code. The debug version of the 3244code includes the debug output trace mechanism and has a much larger code 3245and data size. Note that these values will vary depending on the efficiency 3246of the compiler and the compiler options used during generation. 3247 3248 Previous Release: 3249 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 3250 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 3251 Current Release: 3252 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 3253 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 3254 3255 32562) iASL Compiler/Disassembler: 3257 3258Fixed a problem with the disassembly of a BankField operator with a complex 3259expression for the BankValue parameter. 3260 3261---------------------------------------- 326227 January 2006. Summary of changes for version 20060127: 3263 32641) ACPI CA Core Subsystem: 3265 3266Implemented support in the Resource Manager to allow unresolved namestring 3267references within resource package objects for the _PRT method. This support 3268is in addition to the previously implemented unresolved reference support 3269within the AML parser. If the interpreter slack mode is enabled, these 3270unresolved references will be passed through to the caller as a NULL package 3271entry. 3272 3273Implemented and deployed new macros and functions for error and warning 3274messages across the subsystem. These macros are simpler and generate less 3275code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 3276ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 3277macros remain defined to allow ACPI drivers time to migrate to the new 3278macros. 3279 3280Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 3281Acquire/Release Lock OSL interfaces. 3282 3283Fixed a problem where Alias ASL operators are sometimes not correctly 3284resolved, in both the interpreter and the iASL compiler. 3285 3286Fixed several problems with the implementation of the ConcatenateResTemplate 3287ASL operator. As per the ACPI specification, zero length buffers are now 3288treated as a single EndTag. One-length buffers always cause a fatal 3289exception. Non-zero length buffers that do not end with a full 2-byte EndTag 3290cause a fatal exception. 3291 3292Fixed a possible structure overwrite in the AcpiGetObjectInfo external 3293interface. (With assistance from Thomas Renninger) 3294 3295Code and Data Size: The current and previous library sizes for the core 3296subsystem are shown below. These are the code and data sizes for the 3297acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3298values do not include any ACPI driver or OSPM code. The debug version of the 3299code includes the debug output trace mechanism and has a much larger code 3300and data size. Note that these values will vary depending on the efficiency 3301of the compiler and the compiler options used during generation. 3302 3303 Previous Release: 3304 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 3305 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 3306 Current Release: 3307 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 3308 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 3309 3310 33112) iASL Compiler/Disassembler: 3312 3313Fixed an internal error that was generated for any forward references to ASL 3314Alias objects. 3315 3316---------------------------------------- 331713 January 2006. Summary of changes for version 20060113: 3318 33191) ACPI CA Core Subsystem: 3320 3321Added 2006 copyright to all module headers and signons. This affects 3322virtually every file in the ACPICA core subsystem, iASL compiler, and the 3323utilities. 3324 3325Enhanced the ACPICA error reporting in order to simplify user migration to 3326the non-debug version of ACPICA. Replaced all instances of the 3327ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 3328levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 3329respectively. This preserves all error and warning messages in the non-debug 3330version of the ACPICA code (this has been referred to as the "debug lite" 3331option.) Over 200 cases were converted to create a total of over 380 3332error/warning messages across the ACPICA code. This increases the code and 3333data size of the default non-debug version of the code somewhat (about 13K), 3334but all error/warning reporting may be disabled if desired (and code 3335eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 3336configuration option. The size of the debug version of ACPICA remains about 3337the same. 3338 3339Fixed a memory leak within the AML Debugger "Set" command. One object was 3340not properly deleted for every successful invocation of the command. 3341 3342Code and Data Size: The current and previous library sizes for the core 3343subsystem are shown below. These are the code and data sizes for the 3344acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3345values do not include any ACPI driver or OSPM code. The debug version of the 3346code includes the debug output trace mechanism and has a much larger code 3347and data size. Note that these values will vary depending on the efficiency 3348of the compiler and the compiler options used during generation. 3349 3350 Previous Release: 3351 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 3352 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 3353 Current Release: 3354 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 3355 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 3356 3357 33582) iASL Compiler/Disassembler: 3359 3360The compiler now officially supports the ACPI 3.0a specification that was 3361released on December 30, 2005. (Specification is available at www.acpi.info) 3362 3363---------------------------------------- 336416 December 2005. Summary of changes for version 20051216: 3365 33661) ACPI CA Core Subsystem: 3367 3368Implemented optional support to allow unresolved names within ASL Package 3369objects. A null object is inserted in the package when a named reference 3370cannot be located in the current namespace. Enabled via the interpreter 3371slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 3372that contain such code. 3373 3374Implemented an optimization to the initialization sequence that can improve 3375boot time. During ACPI device initialization, the _STA method is now run if 3376and only if the _INI method exists. The _STA method is used to determine if 3377the device is present; An _INI can only be run if _STA returns present, but 3378it is a waste of time to run the _STA method if the _INI does not exist. 3379(Prototype and assistance from Dong Wei) 3380 3381Implemented use of the C99 uintptr_t for the pointer casting macros if it is 3382available in the current compiler. Otherwise, the default (void *) cast is 3383used as before. 3384 3385Fixed some possible memory leaks found within the execution path of the 3386Break, Continue, If, and CreateField operators. (Valery Podrezov) 3387 3388Fixed a problem introduced in the 20051202 release where an exception is 3389generated during method execution if a control method attempts to declare 3390another method. 3391 3392Moved resource descriptor string constants that are used by both the AML 3393disassembler and AML debugger to the common utilities directory so that 3394these components are independent. 3395 3396Implemented support in the AcpiExec utility (-e switch) to globally ignore 3397exceptions during control method execution (method is not aborted.) 3398 3399Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 3400generation. 3401 3402Code and Data Size: The current and previous library sizes for the core 3403subsystem are shown below. These are the code and data sizes for the 3404acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3405values do not include any ACPI driver or OSPM code. The debug version of the 3406code includes the debug output trace mechanism and has a much larger code 3407and data size. Note that these values will vary depending on the efficiency 3408of the compiler and the compiler options used during generation. 3409 3410 Previous Release: 3411 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3412 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3413 Current Release: 3414 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 3415 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 3416 3417 34182) iASL Compiler/Disassembler: 3419 3420Fixed a problem where a CPU stack overflow fault could occur if a recursive 3421method call was made from within a Return statement. 3422 3423---------------------------------------- 342402 December 2005. Summary of changes for version 20051202: 3425 34261) ACPI CA Core Subsystem: 3427 3428Modified the parsing of control methods to no longer create namespace 3429objects during the first pass of the parse. Objects are now created only 3430during the execute phase, at the moment the namespace creation operator is 3431encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 3432should eliminate ALREADY_EXISTS exceptions seen on some machines where 3433reentrant control methods are protected by an AML mutex. The mutex will now 3434correctly block multiple threads from attempting to create the same object 3435more than once. 3436 3437Increased the number of available Owner Ids for namespace object tracking 3438from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 3439some machines with a large number of ACPI tables (either static or dynamic). 3440 3441Fixed a problem with the AcpiExec utility where a fault could occur when the 3442-b switch (batch mode) is used. 3443 3444Enhanced the namespace dump routine to output the owner ID for each 3445namespace object. 3446 3447Code and Data Size: The current and previous library sizes for the core 3448subsystem are shown below. These are the code and data sizes for the 3449acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3450values do not include any ACPI driver or OSPM code. The debug version of the 3451code includes the debug output trace mechanism and has a much larger code 3452and data size. Note that these values will vary depending on the efficiency 3453of the compiler and the compiler options used during generation. 3454 3455 Previous Release: 3456 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3457 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3458 Current Release: 3459 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3460 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3461 3462 34632) iASL Compiler/Disassembler: 3464 3465Fixed a parse error during compilation of certain Switch/Case constructs. To 3466simplify the parse, the grammar now allows for multiple Default statements 3467and this error is now detected and flagged during the analysis phase. 3468 3469Disassembler: The disassembly now includes the contents of the original 3470table header within a comment at the start of the file. This includes the 3471name and version of the original ASL compiler. 3472 3473---------------------------------------- 347417 November 2005. Summary of changes for version 20051117: 3475 34761) ACPI CA Core Subsystem: 3477 3478Fixed a problem in the AML parser where the method thread count could be 3479decremented below zero if any errors occurred during the method parse phase. 3480This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 3481This also fixed a related regression with the mechanism that detects and 3482corrects methods that cannot properly handle reentrancy (related to the 3483deployment of the new OwnerId mechanism.) 3484 3485Eliminated the pre-parsing of control methods (to detect errors) during 3486table load. Related to the problem above, this was causing unwind issues if 3487any errors occurred during the parse, and it seemed to be overkill. A table 3488load should not be aborted if there are problems with any single control 3489method, thus rendering this feature rather pointless. 3490 3491Fixed a problem with the new table-driven resource manager where an internal 3492buffer overflow could occur for small resource templates. 3493 3494Implemented a new external interface, AcpiGetVendorResource. This interface 3495will find and return a vendor-defined resource descriptor within a _CRS or 3496_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 3497 3498Removed the length limit (200) on string objects as per the upcoming ACPI 34993.0A specification. This affects the following areas of the interpreter: 1) 3500any implicit conversion of a Buffer to a String, 2) a String object result 3501of the ASL Concatentate operator, 3) the String object result of the ASL 3502ToString operator. 3503 3504Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 3505on a semaphore object would incorrectly timeout. This allows the 3506multithreading features of the AcpiExec utility to work properly under 3507Windows. 3508 3509Updated the Linux makefiles for the iASL compiler and AcpiExec to include 3510the recently added file named "utresrc.c". 3511 3512Code and Data Size: The current and previous library sizes for the core 3513subsystem are shown below. These are the code and data sizes for the 3514acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3515values do not include any ACPI driver or OSPM code. The debug version of the 3516code includes the debug output trace mechanism and has a much larger code 3517and data size. Note that these values will vary depending on the efficiency 3518of the compiler and the compiler options used during generation. 3519 3520 Previous Release: 3521 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3522 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3523 Current Release: 3524 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3525 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3526 3527 35282) iASL Compiler/Disassembler: 3529 3530Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 3531specification. For the iASL compiler, this means that string literals within 3532the source ASL can be of any length. 3533 3534Enhanced the listing output to dump the AML code for resource descriptors 3535immediately after the ASL code for each descriptor, instead of in a block at 3536the end of the entire resource template. 3537 3538Enhanced the compiler debug output to dump the entire original parse tree 3539constructed during the parse phase, before any transforms are applied to the 3540tree. The transformed tree is dumped also. 3541 3542---------------------------------------- 354302 November 2005. Summary of changes for version 20051102: 3544 35451) ACPI CA Core Subsystem: 3546 3547Modified the subsystem initialization sequence to improve GPE support. The 3548GPE initialization has been split into two parts in order to defer execution 3549of the _PRW methods (Power Resources for Wake) until after the hardware is 3550fully initialized and the SCI handler is installed. This allows the _PRW 3551methods to access fields protected by the Global Lock. This will fix systems 3552where a NO_GLOBAL_LOCK exception has been seen during initialization. 3553 3554Converted the ACPI internal object disassemble and display code within the 3555AML debugger to fully table-driven operation, reducing code size and 3556increasing maintainability. 3557 3558Fixed a regression with the ConcatenateResTemplate() ASL operator introduced 3559in the 20051021 release. 3560 3561Implemented support for "local" internal ACPI object types within the 3562debugger "Object" command and the AcpiWalkNamespace external interfaces. 3563These local types include RegionFields, BankFields, IndexFields, Alias, and 3564reference objects. 3565 3566Moved common AML resource handling code into a new file, "utresrc.c". This 3567code is shared by both the Resource Manager and the AML Debugger. 3568 3569Code and Data Size: The current and previous library sizes for the core 3570subsystem are shown below. These are the code and data sizes for the 3571acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3572values do not include any ACPI driver or OSPM code. The debug version of the 3573code includes the debug output trace mechanism and has a much larger code 3574and data size. Note that these values will vary depending on the efficiency 3575of the compiler and the compiler options used during generation. 3576 3577 Previous Release: 3578 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3579 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3580 Current Release: 3581 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3582 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3583 3584 35852) iASL Compiler/Disassembler: 3586 3587Fixed a problem with very large initializer lists (more than 4000 elements) 3588for both Buffer and Package objects where the parse stack could overflow. 3589 3590Enhanced the pre-compile source code scan for non-ASCII characters to ignore 3591characters within comment fields. The scan is now always performed and is no 3592longer optional, detecting invalid characters within a source file 3593immediately rather than during the parse phase or later. 3594 3595Enhanced the ASL grammar definition to force early reductions on all list- 3596style grammar elements so that the overall parse stack usage is greatly 3597reduced. This should improve performance and reduce the possibility of parse 3598stack overflow. 3599 3600Eliminated all reduce/reduce conflicts in the iASL parser generation. Also, 3601with the addition of a %expected statement, the compiler generates from 3602source with no warnings. 3603 3604Fixed a possible segment fault in the disassembler if the input filename 3605does not contain a "dot" extension (Thomas Renninger). 3606 3607---------------------------------------- 360821 October 2005. Summary of changes for version 20051021: 3609 36101) ACPI CA Core Subsystem: 3611 3612Implemented support for the EM64T and other x86-64 processors. This 3613essentially entails recognizing that these processors support non-aligned 3614memory transfers. Previously, all 64-bit processors were assumed to lack 3615hardware support for non-aligned transfers. 3616 3617Completed conversion of the Resource Manager to nearly full table-driven 3618operation. Specifically, the resource conversion code (convert AML to 3619internal format and the reverse) and the debug code to dump internal 3620resource descriptors are fully table-driven, reducing code and data size and 3621improving maintainability. 3622 3623The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 3624on 64-bit processors instead of a fixed 32-bit word. (With assistance from 3625Alexey Starikovskiy) 3626 3627Implemented support within the resource conversion code for the Type- 3628Specific byte within the various ACPI 3.0 *WordSpace macros. 3629 3630Fixed some issues within the resource conversion code for the type-specific 3631flags for both Memory and I/O address resource descriptors. For Memory, 3632implemented support for the MTP and TTP flags. For I/O, split the TRS and 3633TTP flags into two separate fields. 3634 3635Code and Data Size: The current and previous library sizes for the core 3636subsystem are shown below. These are the code and data sizes for the 3637acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3638values do not include any ACPI driver or OSPM code. The debug version of the 3639code includes the debug output trace mechanism and has a much larger code 3640and data size. Note that these values will vary depending on the efficiency 3641of the compiler and the compiler options used during generation. 3642 3643 Previous Release: 3644 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3645 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3646 Current Release: 3647 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3648 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3649 3650 3651 36522) iASL Compiler/Disassembler: 3653 3654Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 3655corresponding ResourceSource string was not also present in a resource 3656descriptor declaration. This restriction caused problems with existing 3657AML/ASL code that includes the Index byte without the string. When such AML 3658was disassembled, it could not be compiled without modification. Further, 3659the modified code created a resource template with a different size than the 3660original, breaking code that used fixed offsets into the resource template 3661buffer. 3662 3663Removed a recent feature of the disassembler to ignore a lone ResourceIndex 3664byte. This byte is now emitted if present so that the exact AML can be 3665reproduced when the disassembled code is recompiled. 3666 3667Improved comments and text alignment for the resource descriptor code 3668emitted by the disassembler. 3669 3670Implemented disassembler support for the ACPI 3.0 AccessSize field within a 3671Register() resource descriptor. 3672 3673---------------------------------------- 367430 September 2005. Summary of changes for version 20050930: 3675 36761) ACPI CA Core Subsystem: 3677 3678Completed a major overhaul of the Resource Manager code - specifically, 3679optimizations in the area of the AML/internal resource conversion code. The 3680code has been optimized to simplify and eliminate duplicated code, CPU stack 3681use has been decreased by optimizing function parameters and local 3682variables, and naming conventions across the manager have been standardized 3683for clarity and ease of maintenance (this includes function, parameter, 3684variable, and struct/typedef names.) The update may force changes in some 3685driver code, depending on how resources are handled by the host OS. 3686 3687All Resource Manager dispatch and information tables have been moved to a 3688single location for clarity and ease of maintenance. One new file was 3689created, named "rsinfo.c". 3690 3691The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 3692guarantee that the argument is not evaluated twice, making them less prone 3693to macro side-effects. However, since there exists the possibility of 3694additional stack use if a particular compiler cannot optimize them (such as 3695in the debug generation case), the original macros are optionally available. 3696Note that some invocations of the return_VALUE macro may now cause size 3697mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 3698eliminate these. (From Randy Dunlap) 3699 3700Implemented a new mechanism to enable debug tracing for individual control 3701methods. A new external interface, AcpiDebugTrace, is provided to enable 3702this mechanism. The intent is to allow the host OS to easily enable and 3703disable tracing for problematic control methods. This interface can be 3704easily exposed to a user or debugger interface if desired. See the file 3705psxface.c for details. 3706 3707AcpiUtCallocate will now return a valid pointer if a length of zero is 3708specified - a length of one is used and a warning is issued. This matches 3709the behavior of AcpiUtAllocate. 3710 3711Code and Data Size: The current and previous library sizes for the core 3712subsystem are shown below. These are the code and data sizes for the 3713acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3714values do not include any ACPI driver or OSPM code. The debug version of the 3715code includes the debug output trace mechanism and has a much larger code 3716and data size. Note that these values will vary depending on the efficiency 3717of the compiler and the compiler options used during generation. 3718 3719 Previous Release: 3720 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3721 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3722 Current Release: 3723 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3724 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3725 3726 37272) iASL Compiler/Disassembler: 3728 3729A remark is issued if the effective compile-time length of a package or 3730buffer is zero. Previously, this was a warning. 3731 3732---------------------------------------- 373316 September 2005. Summary of changes for version 20050916: 3734 37351) ACPI CA Core Subsystem: 3736 3737Fixed a problem within the Resource Manager where support for the Generic 3738Register descriptor was not fully implemented. This descriptor is now fully 3739recognized, parsed, disassembled, and displayed. 3740 3741Completely restructured the Resource Manager code to utilize table-driven 3742dispatch and lookup, eliminating many of the large switch() statements. This 3743reduces overall subsystem code size and code complexity. Affects the 3744resource parsing and construction, disassembly, and debug dump output. 3745 3746Cleaned up and restructured the debug dump output for all resource 3747descriptors. Improved readability of the output and reduced code size. 3748 3749Fixed a problem where changes to internal data structures caused the 3750optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 3751 3752Code and Data Size: The current and previous library sizes for the core 3753subsystem are shown below. These are the code and data sizes for the 3754acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3755values do not include any ACPI driver or OSPM code. The debug version of the 3756code includes the debug output trace mechanism and has a much larger code 3757and data size. Note that these values will vary depending on the efficiency 3758of the compiler and the compiler options used during generation. 3759 3760 Previous Release: 3761 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3762 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3763 Current Release: 3764 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3765 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3766 3767 37682) iASL Compiler/Disassembler: 3769 3770Updated the disassembler to automatically insert an EndDependentFn() macro 3771into the ASL stream if this macro is missing in the original AML code, 3772simplifying compilation of the resulting ASL module. 3773 3774Fixed a problem in the disassembler where a disassembled ResourceSource 3775string (within a large resource descriptor) was not surrounded by quotes and 3776not followed by a comma, causing errors when the resulting ASL module was 3777compiled. Also, escape sequences within a ResourceSource string are now 3778handled correctly (especially "\\") 3779 3780---------------------------------------- 378102 September 2005. Summary of changes for version 20050902: 3782 37831) ACPI CA Core Subsystem: 3784 3785Fixed a problem with the internal Owner ID allocation and deallocation 3786mechanisms for control method execution and recursive method invocation. 3787This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 3788messages seen on some systems. Recursive method invocation depth is 3789currently limited to 255. (Alexey Starikovskiy) 3790 3791Completely eliminated all vestiges of support for the "module-level 3792executable code" until this support is fully implemented and debugged. This 3793should eliminate the NO_RETURN_VALUE exceptions seen during table load on 3794some systems that invoke this support. 3795 3796Fixed a problem within the resource manager code where the transaction flags 3797for a 64-bit address descriptor were handled incorrectly in the type- 3798specific flag byte. 3799 3800Consolidated duplicate code within the address descriptor resource manager 3801code, reducing overall subsystem code size. 3802 3803Fixed a fault when using the AML debugger "disassemble" command to 3804disassemble individual control methods. 3805 3806Removed references to the "release_current" directory within the Unix 3807release package. 3808 3809Code and Data Size: The current and previous core subsystem library sizes 3810are shown below. These are the code and data sizes for the acpica.lib 3811produced by the Microsoft Visual C++ 6.0 compiler. These values do not 3812include any ACPI driver or OSPM code. The debug version of the code includes 3813the debug output trace mechanism and has a much larger code and data size. 3814Note that these values will vary depending on the efficiency of the compiler 3815and the compiler options used during generation. 3816 3817 Previous Release: 3818 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3819 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3820 Current Release: 3821 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3822 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3823 3824 38252) iASL Compiler/Disassembler: 3826 3827Implemented an error check for illegal duplicate values in the interrupt and 3828dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 3829Interrupt(). 3830 3831Implemented error checking for the Irq() and IrqNoFlags() macros to detect 3832too many values in the interrupt list (16 max) and invalid values in the 3833list (range 0 - 15) 3834 3835The maximum length string literal within an ASL file is now restricted to 3836200 characters as per the ACPI specification. 3837 3838Fixed a fault when using the -ln option (generate namespace listing). 3839 3840Implemented an error check to determine if a DescriptorName within a 3841resource descriptor has already been used within the current scope. 3842 3843---------------------------------------- 384415 August 2005. Summary of changes for version 20050815: 3845 38461) ACPI CA Core Subsystem: 3847 3848Implemented a full bytewise compare to determine if a table load request is 3849attempting to load a duplicate table. The compare is performed if the table 3850signatures and table lengths match. This will allow different tables with 3851the same OEM Table ID and revision to be loaded - probably against the ACPI 3852specification, but discovered in the field nonetheless. 3853 3854Added the changes.txt logfile to each of the zipped release packages. 3855 3856Code and Data Size: Current and previous core subsystem library sizes are 3857shown below. These are the code and data sizes for the acpica.lib produced 3858by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3859any ACPI driver or OSPM code. The debug version of the code includes the 3860debug output trace mechanism and has a much larger code and data size. Note 3861that these values will vary depending on the efficiency of the compiler and 3862the compiler options used during generation. 3863 3864 Previous Release: 3865 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3866 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3867 Current Release: 3868 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3869 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3870 3871 38722) iASL Compiler/Disassembler: 3873 3874Fixed a problem where incorrect AML code could be generated for Package 3875objects if optimization is disabled (via the -oa switch). 3876 3877Fixed a problem with where incorrect AML code is generated for variable- 3878length packages when the package length is not specified and the number of 3879initializer values is greater than 255. 3880 3881 3882---------------------------------------- 388329 July 2005. Summary of changes for version 20050729: 3884 38851) ACPI CA Core Subsystem: 3886 3887Implemented support to ignore an attempt to install/load a particular ACPI 3888table more than once. Apparently there exists BIOS code that repeatedly 3889attempts to load the same SSDT upon certain events. With assistance from 3890Venkatesh Pallipadi. 3891 3892Restructured the main interface to the AML parser in order to correctly 3893handle all exceptional conditions. This will prevent leakage of the OwnerId 3894resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 3895machines. With assistance from Alexey Starikovskiy. 3896 3897Support for "module level code" has been disabled in this version due to a 3898number of issues that have appeared on various machines. The support can be 3899enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 3900compilation. When the issues are fully resolved, the code will be enabled by 3901default again. 3902 3903Modified the internal functions for debug print support to define the 3904FunctionName parameter as a (const char *) for compatibility with compiler 3905built-in macros such as __FUNCTION__, etc. 3906 3907Linted the entire ACPICA source tree for both 32-bit and 64-bit. 3908 3909Implemented support to display an object count summary for the AML Debugger 3910commands Object and Methods. 3911 3912Code and Data Size: Current and previous core subsystem library sizes are 3913shown below. These are the code and data sizes for the acpica.lib produced 3914by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3915any ACPI driver or OSPM code. The debug version of the code includes the 3916debug output trace mechanism and has a much larger code and data size. Note 3917that these values will vary depending on the efficiency of the compiler and 3918the compiler options used during generation. 3919 3920 Previous Release: 3921 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3922 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3923 Current Release: 3924 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3925 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3926 3927 39282) iASL Compiler/Disassembler: 3929 3930Fixed a regression that appeared in the 20050708 version of the compiler 3931where an error message was inadvertently emitted for invocations of the _OSI 3932reserved control method. 3933 3934---------------------------------------- 393508 July 2005. Summary of changes for version 20050708: 3936 39371) ACPI CA Core Subsystem: 3938 3939The use of the CPU stack in the debug version of the subsystem has been 3940considerably reduced. Previously, a debug structure was declared in every 3941function that used the debug macros. This structure has been removed in 3942favor of declaring the individual elements as parameters to the debug 3943functions. This reduces the cumulative stack use during nested execution of 3944ACPI function calls at the cost of a small increase in the code size of the 3945debug version of the subsystem. With assistance from Alexey Starikovskiy and 3946Len Brown. 3947 3948Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 3949headers to define a macro that will return the current function name at 3950runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by 3951the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 3952compiler-dependent header, the function name is saved on the CPU stack (one 3953pointer per function.) This mechanism is used because apparently there 3954exists no standard ANSI-C defined macro that that returns the function name. 3955 3956Redesigned and reimplemented the "Owner ID" mechanism used to track 3957namespace objects created/deleted by ACPI tables and control method 3958execution. A bitmap is now used to allocate and free the IDs, thus solving 3959the wraparound problem present in the previous implementation. The size of 3960the namespace node descriptor was reduced by 2 bytes as a result (Alexey 3961Starikovskiy). 3962 3963Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield 3964flag definitions within the headers for the predefined ACPI tables. These 3965have been replaced by UINT8_BIT in order to increase the code portability of 3966the subsystem. If the use of UINT8 remains a problem, we may be forced to 3967eliminate bitfields entirely because of a lack of portability. 3968 3969Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This 3970is a frequently used function and this improvement increases the performance 3971of the entire subsystem (Alexey Starikovskiy). 3972 3973Fixed several possible memory leaks and the inverse - premature object 3974deletion (Alexey Starikovskiy). 3975 3976Code and Data Size: Current and previous core subsystem library sizes are 3977shown below. These are the code and data sizes for the acpica.lib produced 3978by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3979any ACPI driver or OSPM code. The debug version of the code includes the 3980debug output trace mechanism and has a much larger code and data size. Note 3981that these values will vary depending on the efficiency of the compiler and 3982the compiler options used during generation. 3983 3984 Previous Release: 3985 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3986 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3987 Current Release: 3988 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3989 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3990 3991---------------------------------------- 399224 June 2005. Summary of changes for version 20050624: 3993 39941) ACPI CA Core Subsystem: 3995 3996Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 3997the host-defined cache object. This allows the OSL implementation to define 3998and type this object in any manner desired, simplifying the OSL 3999implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 4000Linux, and should be defined in the OS-specific header file for other 4001operating systems as required. 4002 4003Changed the interface to AcpiOsAcquireObject to directly return the 4004requested object as the function return (instead of ACPI_STATUS.) This 4005change was made for performance reasons, since this is the purpose of the 4006interface in the first place. AcpiOsAcquireObject is now similar to the 4007AcpiOsAllocate interface. 4008 4009Implemented a new AML debugger command named Businfo. This command displays 4010information about all devices that have an associate _PRT object. The _ADR, 4011_HID, _UID, and _CID are displayed for these devices. 4012 4013Modified the initialization sequence in AcpiInitializeSubsystem to call the 4014OSL interface AcpiOslInitialize first, before any local initialization. This 4015change was required because the global initialization now calls OSL 4016interfaces. 4017 4018Enhanced the Dump command to display the entire contents of Package objects 4019(including all sub-objects and their values.) 4020 4021Restructured the code base to split some files because of size and/or 4022because the code logically belonged in a separate file. New files are listed 4023below. All makefiles and project files included in the ACPI CA release have 4024been updated. 4025 utilities/utcache.c /* Local cache interfaces */ 4026 utilities/utmutex.c /* Local mutex support */ 4027 utilities/utstate.c /* State object support */ 4028 interpreter/parser/psloop.c /* Main AML parse loop */ 4029 4030Code and Data Size: Current and previous core subsystem library sizes are 4031shown below. These are the code and data sizes for the acpica.lib produced 4032by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4033any ACPI driver or OSPM code. The debug version of the code includes the 4034debug output trace mechanism and has a much larger code and data size. Note 4035that these values will vary depending on the efficiency of the compiler and 4036the compiler options used during generation. 4037 4038 Previous Release: 4039 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 4040 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 4041 Current Release: 4042 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 4043 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 4044 4045 40462) iASL Compiler/Disassembler: 4047 4048Fixed a regression introduced in version 20050513 where the use of a Package 4049object within a Case() statement caused a compile time exception. The 4050original behavior has been restored (a Match() operator is emitted.) 4051 4052---------------------------------------- 405317 June 2005. Summary of changes for version 20050617: 4054 40551) ACPI CA Core Subsystem: 4056 4057Moved the object cache operations into the OS interface layer (OSL) to allow 4058the host OS to handle these operations if desired (for example, the Linux 4059OSL will invoke the slab allocator). This support is optional; the compile 4060time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 4061code in the ACPI CA core. The new OSL interfaces are shown below. See 4062utalloc.c for an example implementation, and acpiosxf.h for the exact 4063interface definitions. With assistance from Alexey Starikovskiy. 4064 AcpiOsCreateCache 4065 AcpiOsDeleteCache 4066 AcpiOsPurgeCache 4067 AcpiOsAcquireObject 4068 AcpiOsReleaseObject 4069 4070Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 4071and restore a flags parameter. This fits better with many OS lock models. 4072Note: the current execution state (interrupt handler or not) is no longer 4073passed to these interfaces. If necessary, the OSL must determine this state 4074by itself, a simple and fast operation. With assistance from Alexey 4075Starikovskiy. 4076 4077Fixed a problem in the ACPI table handling where a valid XSDT was assumed 4078present if the revision of the RSDP was 2 or greater. According to the ACPI 4079specification, the XSDT is optional in all cases, and the table manager 4080therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 4081Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 4082only the RSDT. 4083 4084Fixed an interpreter problem with the Mid() operator in the case of an input 4085string where the resulting output string is of zero length. It now correctly 4086returns a valid, null terminated string object instead of a string object 4087with a null pointer. 4088 4089Fixed a problem with the control method argument handling to allow a store 4090to an Arg object that already contains an object of type Device. The Device 4091object is now correctly overwritten. Previously, an error was returned. 4092 4093 4094Enhanced the debugger Find command to emit object values in addition to the 4095found object pathnames. The output format is the same as the dump namespace 4096command. 4097 4098Enhanced the debugger Set command. It now has the ability to set the value 4099of any Named integer object in the namespace (Previously, only method locals 4100and args could be set.) 4101 4102Code and Data Size: Current and previous core subsystem library sizes are 4103shown below. These are the code and data sizes for the acpica.lib produced 4104by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4105any ACPI driver or OSPM code. The debug version of the code includes the 4106debug output trace mechanism and has a much larger code and data size. Note 4107that these values will vary depending on the efficiency of the compiler and 4108the compiler options used during generation. 4109 4110 Previous Release: 4111 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 4112 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 4113 Current Release: 4114 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 4115 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 4116 4117 41182) iASL Compiler/Disassembler: 4119 4120Fixed a regression in the disassembler where if/else/while constructs were 4121output incorrectly. This problem was introduced in the previous release 4122(20050526). This problem also affected the single-step disassembly in the 4123debugger. 4124 4125Fixed a problem where compiling the reserved _OSI method would randomly (but 4126rarely) produce compile errors. 4127 4128Enhanced the disassembler to emit compilable code in the face of incorrect 4129AML resource descriptors. If the optional ResourceSourceIndex is present, 4130but the ResourceSource is not, do not emit the ResourceSourceIndex in the 4131disassembly. Otherwise, the resulting code cannot be compiled without 4132errors. 4133 4134---------------------------------------- 413526 May 2005. Summary of changes for version 20050526: 4136 41371) ACPI CA Core Subsystem: 4138 4139Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 4140the module level (not within a control method.) These opcodes are executed 4141exactly once at the time the table is loaded. This type of code was legal up 4142until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 4143order to provide backwards compatibility with earlier BIOS implementations. 4144This eliminates the "Encountered executable code at module level" warning 4145that was previously generated upon detection of such code. 4146 4147Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 4148inadvertently be generated during the lookup of namespace objects in the 4149second pass parse of ACPI tables and control methods. It appears that this 4150problem could occur during the resolution of forward references to namespace 4151objects. 4152 4153Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 4154corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 4155allows the deadlock detection debug code to be compiled out in the normal 4156case, improving mutex performance (and overall subsystem performance) 4157considerably. 4158 4159Implemented a handful of miscellaneous fixes for possible memory leaks on 4160error conditions and error handling control paths. These fixes were 4161suggested by FreeBSD and the Coverity Prevent source code analysis tool. 4162 4163Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 4164to prevent a fault in this error case. 4165 4166Code and Data Size: Current and previous core subsystem library sizes are 4167shown below. These are the code and data sizes for the acpica.lib produced 4168by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4169any ACPI driver or OSPM code. The debug version of the code includes the 4170debug output trace mechanism and has a much larger code and data size. Note 4171that these values will vary depending on the efficiency of the compiler and 4172the compiler options used during generation. 4173 4174 Previous Release: 4175 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4176 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4177 Current Release: 4178 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 4179 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 4180 4181 41822) iASL Compiler/Disassembler: 4183 4184Implemented support to allow Type 1 and Type 2 ASL operators to appear at 4185the module level (not within a control method.) These operators will be 4186executed once at the time the table is loaded. This type of code was legal 4187up until the release of ACPI 2.0B (2002) and is now supported by the iASL 4188compiler in order to provide backwards compatibility with earlier BIOS ASL 4189code. 4190 4191The ACPI integer width (specified via the table revision ID or the -r 4192override, 32 or 64 bits) is now used internally during compile-time constant 4193folding to ensure that constants are truncated to 32 bits if necessary. 4194Previously, the revision ID value was only emitted in the AML table header. 4195 4196An error message is now generated for the Mutex and Method operators if the 4197SyncLevel parameter is outside the legal range of 0 through 15. 4198 4199Fixed a problem with the Method operator ParameterTypes list handling (ACPI 42003.0). Previously, more than 2 types or 2 arguments generated a syntax error. 4201The actual underlying implementation of method argument typechecking is 4202still under development, however. 4203 4204---------------------------------------- 420513 May 2005. Summary of changes for version 20050513: 4206 42071) ACPI CA Core Subsystem: 4208 4209Implemented support for PCI Express root bridges -- added support for device 4210PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 4211 4212The interpreter now automatically truncates incoming 64-bit constants to 32 4213bits if currently executing out of a 32-bit ACPI table (Revision < 2). This 4214also affects the iASL compiler constant folding. (Note: as per below, the 4215iASL compiler no longer allows 64-bit constants within 32-bit tables.) 4216 4217Fixed a problem where string and buffer objects with "static" pointers 4218(pointers to initialization data within an ACPI table) were not handled 4219consistently. The internal object copy operation now always copies the data 4220to a newly allocated buffer, regardless of whether the source object is 4221static or not. 4222 4223Fixed a problem with the FromBCD operator where an implicit result 4224conversion was improperly performed while storing the result to the target 4225operand. Since this is an "explicit conversion" operator, the implicit 4226conversion should never be performed on the output. 4227 4228Fixed a problem with the CopyObject operator where a copy to an existing 4229named object did not always completely overwrite the existing object stored 4230at name. Specifically, a buffer-to-buffer copy did not delete the existing 4231buffer. 4232 4233Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 4234structs for consistency. 4235 4236Code and Data Size: Current and previous core subsystem library sizes are 4237shown below. These are the code and data sizes for the acpica.lib produced 4238by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4239any ACPI driver or OSPM code. The debug version of the code includes the 4240debug output trace mechanism and has a much larger code and data size. Note 4241that these values will vary depending on the efficiency of the compiler and 4242the compiler options used during generation. 4243 4244 Previous Release: 4245 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4246 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4247 Current Release: (Same sizes) 4248 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4249 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4250 4251 42522) iASL Compiler/Disassembler: 4253 4254The compiler now emits a warning if an attempt is made to generate a 64-bit 4255integer constant from within a 32-bit ACPI table (Revision < 2). The integer 4256is truncated to 32 bits. 4257 4258Fixed a problem with large package objects: if the static length of the 4259package is greater than 255, the "variable length package" opcode is 4260emitted. Previously, this caused an error. This requires an update to the 4261ACPI spec, since it currently (incorrectly) states that packages larger than 4262255 elements are not allowed. 4263 4264The disassembler now correctly handles variable length packages and packages 4265larger than 255 elements. 4266 4267---------------------------------------- 426808 April 2005. Summary of changes for version 20050408: 4269 42701) ACPI CA Core Subsystem: 4271 4272Fixed three cases in the interpreter where an "index" argument to an ASL 4273function was still (internally) 32 bits instead of the required 64 bits. 4274This was the Index argument to the Index, Mid, and Match operators. 4275 4276The "strupr" function is now permanently local (AcpiUtStrupr), since this is 4277not a POSIX-defined function and not present in most kernel-level C 4278libraries. All references to the C library strupr function have been removed 4279from the headers. 4280 4281Completed the deployment of static functions/prototypes. All prototypes with 4282the static attribute have been moved from the headers to the owning C file. 4283 4284Implemented an extract option (-e) for the AcpiBin utility (AML binary 4285utility). This option allows the utility to extract individual ACPI tables 4286from the output of AcpiDmp. It provides the same functionality of the 4287acpixtract.pl perl script without the worry of setting the correct perl 4288options. AcpiBin runs on Windows and has not yet been generated/validated in 4289the Linux/Unix environment (but should be soon). 4290 4291Updated and fixed the table dump option for AcpiBin (-d). This option 4292converts a single ACPI table to a hex/ascii file, similar to the output of 4293AcpiDmp. 4294 4295Code and Data Size: Current and previous core subsystem library sizes are 4296shown below. These are the code and data sizes for the acpica.lib produced 4297by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4298any ACPI driver or OSPM code. The debug version of the code includes the 4299debug output trace mechanism and has a much larger code and data size. Note 4300that these values will vary depending on the efficiency of the compiler and 4301the compiler options used during generation. 4302 4303 Previous Release: 4304 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 4305 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 4306 Current Release: 4307 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 4308 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 4309 4310 43112) iASL Compiler/Disassembler: 4312 4313Disassembler fix: Added a check to ensure that the table length found in the 4314ACPI table header within the input file is not longer than the actual input 4315file size. This indicates some kind of file or table corruption. 4316 4317---------------------------------------- 431829 March 2005. Summary of changes for version 20050329: 4319 43201) ACPI CA Core Subsystem: 4321 4322An error is now generated if an attempt is made to create a Buffer Field of 4323length zero (A CreateField with a length operand of zero.) 4324 4325The interpreter now issues a warning whenever executable code at the module 4326level is detected during ACPI table load. This will give some idea of the 4327prevalence of this type of code. 4328 4329Implemented support for references to named objects (other than control 4330methods) within package objects. 4331 4332Enhanced package object output for the debug object. Package objects are now 4333completely dumped, showing all elements. 4334 4335Enhanced miscellaneous object output for the debug object. Any object can 4336now be written to the debug object (for example, a device object can be 4337written, and the type of the object will be displayed.) 4338 4339The "static" qualifier has been added to all local functions across both the 4340core subsystem and the iASL compiler. 4341 4342The number of "long" lines (> 80 chars) within the source has been 4343significantly reduced, by about 1/3. 4344 4345Cleaned up all header files to ensure that all CA/iASL functions are 4346prototyped (even static functions) and the formatting is consistent. 4347 4348Two new header files have been added, acopcode.h and acnames.h. 4349 4350Removed several obsolete functions that were no longer used. 4351 4352Code and Data Size: Current and previous core subsystem library sizes are 4353shown below. These are the code and data sizes for the acpica.lib produced 4354by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4355any ACPI driver or OSPM code. The debug version of the code includes the 4356debug output trace mechanism and has a much larger code and data size. Note 4357that these values will vary depending on the efficiency of the compiler and 4358the compiler options used during generation. 4359 4360 Previous Release: 4361 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4362 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4363 Current Release: 4364 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 4365 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 4366 4367 4368 43692) iASL Compiler/Disassembler: 4370 4371Fixed a problem with the resource descriptor generation/support. For the 4372ResourceSourceIndex and the ResourceSource fields, both must be present, or 4373both must be not present - can't have one without the other. 4374 4375The compiler now returns non-zero from the main procedure if any errors have 4376occurred during the compilation. 4377 4378 4379---------------------------------------- 438009 March 2005. Summary of changes for version 20050309: 4381 43821) ACPI CA Core Subsystem: 4383 4384The string-to-buffer implicit conversion code has been modified again after 4385a change to the ACPI specification. In order to match the behavior of the 4386other major ACPI implementation, the target buffer is no longer truncated if 4387the source string is smaller than an existing target buffer. This change 4388requires an update to the ACPI spec, and should eliminate the recent 4389AE_AML_BUFFER_LIMIT issues. 4390 4391The "implicit return" support was rewritten to a new algorithm that solves 4392the general case. Rather than attempt to determine when a method is about to 4393exit, the result of every ASL operator is saved momentarily until the very 4394next ASL operator is executed. Therefore, no matter how the method exits, 4395there will always be a saved implicit return value. This feature is only 4396enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 4397AE_AML_NO_RETURN_VALUE errors when enabled. 4398 4399Implemented implicit conversion support for the predicate (operand) of the 4400If, Else, and While operators. String and Buffer arguments are automatically 4401converted to Integers. 4402 4403Changed the string-to-integer conversion behavior to match the new ACPI 4404errata: "If no integer object exists, a new integer is created. The ASCII 4405string is interpreted as a hexadecimal constant. Each string character is 4406interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 4407with the first character as the most significant digit, and ending with the 4408first non-hexadecimal character or end-of-string." This means that the first 4409non-hex character terminates the conversion and this is the code that was 4410changed. 4411 4412Fixed a problem where the ObjectType operator would fail (fault) when used 4413on an Index of a Package which pointed to a null package element. The 4414operator now properly returns zero (Uninitialized) in this case. 4415 4416Fixed a problem where the While operator used excessive memory by not 4417properly popping the result stack during execution. There was no memory leak 4418after execution, however. (Code provided by Valery Podrezov.) 4419 4420Fixed a problem where references to control methods within Package objects 4421caused the method to be invoked, instead of producing a reference object 4422pointing to the method. 4423 4424Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 4425improve performance and reduce code size. (Code provided by Alexey 4426Starikovskiy.) 4427 4428Code and Data Size: Current and previous core subsystem library sizes are 4429shown below. These are the code and data sizes for the acpica.lib produced 4430by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4431any ACPI driver or OSPM code. The debug version of the code includes the 4432debug output trace mechanism and has a much larger code and data size. Note 4433that these values will vary depending on the efficiency of the compiler and 4434the compiler options used during generation. 4435 4436 Previous Release: 4437 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4438 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4439 Current Release: 4440 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4441 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4442 4443 44442) iASL Compiler/Disassembler: 4445 4446Fixed a problem with the Return operator with no arguments. Since the AML 4447grammar for the byte encoding requires an operand for the Return opcode, the 4448compiler now emits a Return(Zero) for this case. An ACPI specification 4449update has been written for this case. 4450 4451For tables other than the DSDT, namepath optimization is automatically 4452disabled. This is because SSDTs can be loaded anywhere in the namespace, the 4453compiler has no knowledge of where, and thus cannot optimize namepaths. 4454 4455Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 4456inadvertently omitted from the ACPI specification, and will require an 4457update to the spec. 4458 4459The source file scan for ASCII characters is now optional (-a). This change 4460was made because some vendors place non-ascii characters within comments. 4461However, the scan is simply a brute-force byte compare to ensure all 4462characters in the file are in the range 0x00 to 0x7F. 4463 4464Fixed a problem with the CondRefOf operator where the compiler was 4465inappropriately checking for the existence of the target. Since the point of 4466the operator is to check for the existence of the target at run-time, the 4467compiler no longer checks for the target existence. 4468 4469Fixed a problem where errors generated from the internal AML interpreter 4470during constant folding were not handled properly, causing a fault. 4471 4472Fixed a problem with overly aggressive range checking for the Stall 4473operator. The valid range (max 255) is now only checked if the operand is of 4474type Integer. All other operand types cannot be statically checked. 4475 4476Fixed a problem where control method references within the RefOf, DeRefOf, 4477and ObjectType operators were not treated properly. They are now treated as 4478actual references, not method invocations. 4479 4480Fixed and enhanced the "list namespace" option (-ln). This option was broken 4481a number of releases ago. 4482 4483Improved error handling for the Field, IndexField, and BankField operators. 4484The compiler now cleanly reports and recovers from errors in the field 4485component (FieldUnit) list. 4486 4487Fixed a disassembler problem where the optional ResourceDescriptor fields 4488TRS and TTP were not always handled correctly. 4489 4490Disassembler - Comments in output now use "//" instead of "/*" 4491 4492---------------------------------------- 449328 February 2005. Summary of changes for version 20050228: 4494 44951) ACPI CA Core Subsystem: 4496 4497Fixed a problem where the result of an Index() operator (an object 4498reference) must increment the reference count on the target object for the 4499life of the object reference. 4500 4501Implemented AML Interpreter and Debugger support for the new ACPI 3.0 4502Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 4503resource descriptors. 4504 4505Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 4506Space Descriptor" string, indicating interpreter support for the descriptors 4507above. 4508 4509Implemented header support for the new ACPI 3.0 FADT flag bits. 4510 4511Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1 4512status/enable registers. 4513 4514Updated header support for the MADT processor local Apic struct and MADT 4515platform interrupt source struct for new ACPI 3.0 fields. 4516 4517Implemented header support for the SRAT and SLIT ACPI tables. 4518 4519Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 4520at runtime. 4521 4522Code and Data Size: Current and previous core subsystem library sizes are 4523shown below. These are the code and data sizes for the acpica.lib produced 4524by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4525any ACPI driver or OSPM code. The debug version of the code includes the 4526debug output trace mechanism and has a much larger code and data size. Note 4527that these values will vary depending on the efficiency of the compiler and 4528the compiler options used during generation. 4529 4530 Previous Release: 4531 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4532 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4533 Current Release: 4534 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4535 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4536 4537 45382) iASL Compiler/Disassembler: 4539 4540Fixed a problem with the internal 64-bit String-to-integer conversion with 4541strings less than two characters long. 4542 4543Fixed a problem with constant folding where the result of the Index() 4544operator can not be considered a constant. This means that Index() cannot be 4545a type3 opcode and this will require an update to the ACPI specification. 4546 4547Disassembler: Implemented support for the TTP, MTP, and TRS resource 4548descriptor fields. These fields were inadvertently ignored and not output in 4549the disassembly of the resource descriptor. 4550 4551 4552 ---------------------------------------- 455311 February 2005. Summary of changes for version 20050211: 4554 45551) ACPI CA Core Subsystem: 4556 4557Implemented ACPI 3.0 support for implicit conversion within the Match() 4558operator. MatchObjects can now be of type integer, buffer, or string instead 4559of just type integer. Package elements are implicitly converted to the type 4560of the MatchObject. This change aligns the behavior of Match() with the 4561behavior of the other logical operators (LLess(), etc.) It also requires an 4562errata change to the ACPI specification as this support was intended for 4563ACPI 3.0, but was inadvertently omitted. 4564 4565Fixed a problem with the internal implicit "to buffer" conversion. Strings 4566that are converted to buffers will cause buffer truncation if the string is 4567smaller than the target buffer. Integers that are converted to buffers will 4568not cause buffer truncation, only zero extension (both as per the ACPI 4569spec.) The problem was introduced when code was added to truncate the 4570buffer, but this should not be performed in all cases, only the string case. 4571 4572Fixed a problem with the Buffer and Package operators where the interpreter 4573would get confused if two such operators were used as operands to an ASL 4574operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 4575stack was not being popped after the execution of these operators, resulting 4576in an AE_NO_RETURN_VALUE exception. 4577 4578Fixed a problem with constructs of the form Store(Index(...),...). The 4579reference object returned from Index was inadvertently resolved to an actual 4580value. This problem was introduced in version 20050114 when the behavior of 4581Store() was modified to restrict the object types that can be used as the 4582source operand (to match the ACPI specification.) 4583 4584Reduced excessive stack use within the AcpiGetObjectInfo procedure. 4585 4586Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 4587 4588Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 4589 4590Code and Data Size: Current and previous core subsystem library sizes are 4591shown below. These are the code and data sizes for the acpica.lib produced 4592by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4593any ACPI driver or OSPM code. The debug version of the code includes the 4594debug output trace mechanism and has a much larger code and data size. Note 4595that these values will vary depending on the efficiency of the compiler and 4596the compiler options used during generation. 4597 4598 Previous Release: 4599 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4600 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4601 Current Release: 4602 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4603 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4604 4605 46062) iASL Compiler/Disassembler: 4607 4608Fixed a code generation problem in the constant folding optimization code 4609where incorrect code was generated if a constant was reduced to a buffer 4610object (i.e., a reduced type 5 opcode.) 4611 4612Fixed a typechecking problem for the ToBuffer operator. Caused by an 4613incorrect return type in the internal opcode information table. 4614 4615---------------------------------------- 461625 January 2005. Summary of changes for version 20050125: 4617 46181) ACPI CA Core Subsystem: 4619 4620Fixed a recently introduced problem with the Global Lock where the 4621underlying semaphore was not created. This problem was introduced in 4622version 20050114, and caused an AE_AML_NO_OPERAND exception during an 4623Acquire() operation on _GL. 4624 4625The local object cache is now optional, and is disabled by default. Both 4626AcpiExec and the iASL compiler enable the cache because they run in user 4627mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 4628to enable the local cache. 4629 4630Fixed an issue in the internal function AcpiUtEvaluateObject concerning the 4631optional "implicit return" support where an error was returned if no return 4632object was expected, but one was implicitly returned. AE_OK is now returned 4633in this case and the implicitly returned object is deleted. 4634AcpiUtEvaluateObject is only occasionally used, and only to execute reserved 4635methods such as _STA and _INI where the return type is known up front. 4636 4637Fixed a few issues with the internal convert-to-integer code. It now returns 4638an error if an attempt is made to convert a null string, a string of only 4639blanks/tabs, or a zero-length buffer. This affects both implicit conversion 4640and explicit conversion via the ToInteger() operator. 4641 4642The internal debug code in AcpiUtAcquireMutex has been commented out. It is 4643not needed for normal operation and should increase the performance of the 4644entire subsystem. The code remains in case it is needed for debug purposes 4645again. 4646 4647The AcpiExec source and makefile are included in the Unix/Linux package for 4648the first time. 4649 4650Code and Data Size: Current and previous core subsystem library sizes are 4651shown below. These are the code and data sizes for the acpica.lib produced 4652by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4653any ACPI driver or OSPM code. The debug version of the code includes the 4654debug output trace mechanism and has a much larger code and data size. Note 4655that these values will vary depending on the efficiency of the compiler and 4656the compiler options used during generation. 4657 4658 Previous Release: 4659 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4660 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4661 Current Release: 4662 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4663 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4664 46652) iASL Compiler/Disassembler: 4666 4667Switch/Case support: A warning is now issued if the type of the Switch value 4668cannot be determined at compile time. For example, Switch(Arg0) will 4669generate the warning, and the type is assumed to be an integer. As per the 4670ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 4671warning. 4672 4673Switch/Case support: Implemented support for buffer and string objects as 4674the switch value. This is an ACPI 3.0 feature, now that LEqual supports 4675buffers and strings. 4676 4677Switch/Case support: The emitted code for the LEqual() comparisons now uses 4678the switch value as the first operand, not the second. The case value is now 4679the second operand, and this allows the case value to be implicitly 4680converted to the type of the switch value, not the other way around. 4681 4682Switch/Case support: Temporary variables are now emitted immediately within 4683the control method, not at the global level. This means that there are now 468436 temps available per-method, not 36 temps per-module as was the case with 4685the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 4686 4687---------------------------------------- 468814 January 2005. Summary of changes for version 20050114: 4689 4690Added 2005 copyright to all module headers. This affects every module in 4691the core subsystem, iASL compiler, and the utilities. 4692 46931) ACPI CA Core Subsystem: 4694 4695Fixed an issue with the String-to-Buffer conversion code where the string 4696null terminator was not included in the buffer after conversion, but there 4697is existing ASL that assumes the string null terminator is included. This is 4698the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 4699introduced in the previous version when the code was updated to correctly 4700set the converted buffer size as per the ACPI specification. The ACPI spec 4701is ambiguous and will be updated to specify that the null terminator must be 4702included in the converted buffer. This also affects the ToBuffer() ASL 4703operator. 4704 4705Fixed a problem with the Mid() ASL/AML operator where it did not work 4706correctly on Buffer objects. Newly created sub-buffers were not being marked 4707as initialized. 4708 4709 4710Fixed a problem in AcpiTbFindTable where incorrect string compares were 4711performed on the OemId and OemTableId table header fields. These fields are 4712not null terminated, so strncmp is now used instead of strcmp. 4713 4714Implemented a restriction on the Store() ASL/AML operator to align the 4715behavior with the ACPI specification. Previously, any object could be used 4716as the source operand. Now, the only objects that may be used are Integers, 4717Buffers, Strings, Packages, Object References, and DDB Handles. If 4718necessary, the original behavior can be restored by enabling the 4719EnableInterpreterSlack flag. 4720 4721Enhanced the optional "implicit return" support to allow an implicit return 4722value from methods that are invoked externally via the AcpiEvaluateObject 4723interface. This enables implicit returns from the _STA and _INI methods, 4724for example. 4725 4726Changed the Revision() ASL/AML operator to return the current version of the 4727AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 4728the supported ACPI version (This is the function of the _REV method). 4729 4730Updated the _REV predefined method to return the currently supported version 4731of ACPI, now 3. 4732 4733Implemented batch mode option for the AcpiExec utility (-b). 4734 4735Code and Data Size: Current and previous core subsystem library sizes are 4736shown below. These are the code and data sizes for the acpica.lib produced 4737by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4738any ACPI driver or OSPM code. The debug version of the code includes the 4739debug output trace mechanism and has a much larger code and data size. Note 4740that these values will vary depending on the efficiency of the compiler and 4741the compiler options used during generation. 4742 4743 Previous Release: 4744 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4745 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4746 Current Release: 4747 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4748 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4749 4750---------------------------------------- 475110 December 2004. Summary of changes for version 20041210: 4752 4753ACPI 3.0 support is nearing completion in both the iASL compiler and the 4754ACPI CA core subsystem. 4755 47561) ACPI CA Core Subsystem: 4757 4758Fixed a problem in the ToDecimalString operator where the resulting string 4759length was incorrectly calculated. The length is now calculated exactly, 4760eliminating incorrect AE_STRING_LIMIT exceptions. 4761 4762Fixed a problem in the ToHexString operator to allow a maximum 200 character 4763string to be produced. 4764 4765Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 4766routine where the length of the resulting buffer was not truncated to the 4767new size (if the target buffer already existed). 4768 4769Code and Data Size: Current and previous core subsystem library sizes are 4770shown below. These are the code and data sizes for the acpica.lib produced 4771by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4772any ACPI driver or OSPM code. The debug version of the code includes the 4773debug output trace mechanism and has a much larger code and data size. Note 4774that these values will vary depending on the efficiency of the compiler and 4775the compiler options used during generation. 4776 4777 Previous Release: 4778 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4779 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4780 Current Release: 4781 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4782 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4783 4784 47852) iASL Compiler/Disassembler: 4786 4787Implemented the new ACPI 3.0 resource template macros - DWordSpace, 4788ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 4789Includes support in the disassembler. 4790 4791Implemented support for the new (ACPI 3.0) parameter to the Register macro, 4792AccessSize. 4793 4794Fixed a problem where the _HE resource name for the Interrupt macro was 4795referencing bit 0 instead of bit 1. 4796 4797Implemented check for maximum 255 interrupts in the Interrupt macro. 4798 4799Fixed a problem with the predefined resource descriptor names where 4800incorrect AML code was generated if the offset within the resource buffer 4801was 0 or 1. The optimizer shortened the AML code to a single byte opcode 4802but did not update the surrounding package lengths. 4803 4804Changes to the Dma macro: All channels within the channel list must be in 4805the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 4806optional (default is BusMaster). 4807 4808Implemented check for maximum 7 data bytes for the VendorShort macro. 4809 4810The ReadWrite parameter is now optional for the Memory32 and similar macros. 4811 4812---------------------------------------- 481303 December 2004. Summary of changes for version 20041203: 4814 48151) ACPI CA Core Subsystem: 4816 4817The low-level field insertion/extraction code (exfldio) has been completely 4818rewritten to eliminate unnecessary complexity, bugs, and boundary 4819conditions. 4820 4821Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 4822operators where the input operand could be inadvertently deleted if no 4823conversion was necessary (e.g., if the input to ToInteger was an Integer 4824object.) 4825 4826Fixed a problem with the ToDecimalString and ToHexString where an incorrect 4827exception code was returned if the resulting string would be > 200 chars. 4828AE_STRING_LIMIT is now returned. 4829 4830Fixed a problem with the Concatenate operator where AE_OK was always 4831returned, even if the operation failed. 4832 4833Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 4834semaphores to be allocated. 4835 4836Code and Data Size: Current and previous core subsystem library sizes are 4837shown below. These are the code and data sizes for the acpica.lib produced 4838by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4839any ACPI driver or OSPM code. The debug version of the code includes the 4840debug output trace mechanism and has a much larger code and data size. Note 4841that these values will vary depending on the efficiency of the compiler and 4842the compiler options used during generation. 4843 4844 Previous Release: 4845 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4846 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4847 Current Release: 4848 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4849 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4850 4851 48522) iASL Compiler/Disassembler: 4853 4854Fixed typechecking for the ObjectType and SizeOf operators. Problem was 4855recently introduced in 20041119. 4856 4857Fixed a problem with the ToUUID macro where the upper nybble of each buffer 4858byte was inadvertently set to zero. 4859 4860---------------------------------------- 486119 November 2004. Summary of changes for version 20041119: 4862 48631) ACPI CA Core Subsystem: 4864 4865Fixed a problem in the internal ConvertToInteger routine where new integers 4866were not truncated to 32 bits for 32-bit ACPI tables. This routine converts 4867buffers and strings to integers. 4868 4869Implemented support to store a value to an Index() on a String object. This 4870is an ACPI 2.0 feature that had not yet been implemented. 4871 4872Implemented new behavior for storing objects to individual package elements 4873(via the Index() operator). The previous behavior was to invoke the implicit 4874conversion rules if an object was already present at the index. The new 4875behavior is to simply delete any existing object and directly store the new 4876object. Although the ACPI specification seems unclear on this subject, other 4877ACPI implementations behave in this manner. (This is the root of the 4878AE_BAD_HEX_CONSTANT issue.) 4879 4880Modified the RSDP memory scan mechanism to support the extended checksum for 4881ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 4882RSDP signature is found with a valid checksum. 4883 4884Code and Data Size: Current and previous core subsystem library sizes are 4885shown below. These are the code and data sizes for the acpica.lib produced 4886by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4887any ACPI driver or OSPM code. The debug version of the code includes the 4888debug output trace mechanism and has a much larger code and data size. Note 4889that these values will vary depending on the efficiency of the compiler and 4890the compiler options used during generation. 4891 4892 Previous Release: 4893 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4894 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4895 Current Release: 4896 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4897 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4898 4899 49002) iASL Compiler/Disassembler: 4901 4902Fixed a missing semicolon in the aslcompiler.y file. 4903 4904---------------------------------------- 490505 November 2004. Summary of changes for version 20041105: 4906 49071) ACPI CA Core Subsystem: 4908 4909Implemented support for FADT revision 2. This was an interim table (between 4910ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 4911 4912Implemented optional support to allow uninitialized LocalX and ArgX 4913variables in a control method. The variables are initialized to an Integer 4914object with a value of zero. This support is enabled by setting the 4915AcpiGbl_EnableInterpreterSlack flag to TRUE. 4916 4917Implemented support for Integer objects for the SizeOf operator. Either 4 4918or 8 is returned, depending on the current integer size (32-bit or 64-bit, 4919depending on the parent table revision). 4920 4921Fixed a problem in the implementation of the SizeOf and ObjectType operators 4922where the operand was resolved to a value too early, causing incorrect 4923return values for some objects. 4924 4925Fixed some possible memory leaks during exceptional conditions. 4926 4927Code and Data Size: Current and previous core subsystem library sizes are 4928shown below. These are the code and data sizes for the acpica.lib produced 4929by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4930any ACPI driver or OSPM code. The debug version of the code includes the 4931debug output trace mechanism and has a much larger code and data size. Note 4932that these values will vary depending on the efficiency of the compiler and 4933the compiler options used during generation. 4934 4935 Previous Release: 4936 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4937 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4938 Current Release: 4939 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4940 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4941 4942 49432) iASL Compiler/Disassembler: 4944 4945Implemented support for all ACPI 3.0 reserved names and methods. 4946 4947Implemented all ACPI 3.0 grammar elements in the front-end, including 4948support for semicolons. 4949 4950Implemented the ACPI 3.0 Function() and ToUUID() macros 4951 4952Fixed a problem in the disassembler where a Scope() operator would not be 4953emitted properly if the target of the scope was in another table. 4954 4955---------------------------------------- 495615 October 2004. Summary of changes for version 20041015: 4957 4958Note: ACPI CA is currently undergoing an in-depth and complete formal 4959evaluation to test/verify the following areas. Other suggestions are 4960welcome. This will result in an increase in the frequency of releases and 4961the number of bug fixes in the next few months. 4962 - Functional tests for all ASL/AML operators 4963 - All implicit/explicit type conversions 4964 - Bit fields and operation regions 4965 - 64-bit math support and 32-bit-only "truncated" math support 4966 - Exceptional conditions, both compiler and interpreter 4967 - Dynamic object deletion and memory leaks 4968 - ACPI 3.0 support when implemented 4969 - External interfaces to the ACPI subsystem 4970 4971 49721) ACPI CA Core Subsystem: 4973 4974Fixed two alignment issues on 64-bit platforms - within debug statements in 4975AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 4976field within the non-aligned ACPI generic address structure. 4977 4978Fixed a problem in the Increment and Decrement operators where incorrect 4979operand resolution could result in the inadvertent modification of the 4980original integer when the integer is passed into another method as an 4981argument and the arg is then incremented/decremented. 4982 4983Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 4984BCD number were truncated during conversion. 4985 4986Fixed a problem in the ToDecimal operator where the length of the resulting 4987string could be set incorrectly too long if the input operand was a Buffer 4988object. 4989 4990Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 4991within a buffer would prematurely terminate a compare between buffer 4992objects. 4993 4994Added a check for string overflow (>200 characters as per the ACPI 4995specification) during the Concatenate operator with two string operands. 4996 4997Code and Data Size: Current and previous core subsystem library sizes are 4998shown below. These are the code and data sizes for the acpica.lib produced 4999by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5000any ACPI driver or OSPM code. The debug version of the code includes the 5001debug output trace mechanism and has a much larger code and data size. Note 5002that these values will vary depending on the efficiency of the compiler and 5003the compiler options used during generation. 5004 5005 Previous Release: 5006 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5007 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 5008 Current Release: 5009 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5010 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 5011 5012 5013 50142) iASL Compiler/Disassembler: 5015 5016Allow the use of the ObjectType operator on uninitialized Locals and Args 5017(returns 0 as per the ACPI specification). 5018 5019Fixed a problem where the compiler would fault if there was a syntax error 5020in the FieldName of all of the various CreateXXXField operators. 5021 5022Disallow the use of lower case letters within the EISAID macro, as per the 5023ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 5024U is an uppercase letter and N is a hex digit. 5025 5026 5027---------------------------------------- 502806 October 2004. Summary of changes for version 20041006: 5029 50301) ACPI CA Core Subsystem: 5031 5032Implemented support for the ACPI 3.0 Timer operator. This ASL function 5033implements a 64-bit timer with 100 nanosecond granularity. 5034 5035Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 5036implement the ACPI 3.0 Timer operator. This allows the host OS to implement 5037the timer with the best clock available. Also, it keeps the core subsystem 5038out of the clock handling business, since the host OS (usually) performs 5039this function. 5040 5041Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 5042functions use a 64-bit address which is part of the packed ACPI Generic 5043Address Structure. Since the structure is non-aligned, the alignment macros 5044are now used to extract the address to a local variable before use. 5045 5046Fixed a problem where the ToInteger operator assumed all input strings were 5047hexadecimal. The operator now handles both decimal strings and hex strings 5048(prefixed with "0x"). 5049 5050Fixed a problem where the string length in the string object created as a 5051result of the internal ConvertToString procedure could be incorrect. This 5052potentially affected all implicit conversions and also the ToDecimalString 5053and ToHexString operators. 5054 5055Fixed two problems in the ToString operator. If the length parameter was 5056zero, an incorrect string object was created and the value of the input 5057length parameter was inadvertently changed from zero to Ones. 5058 5059Fixed a problem where the optional ResourceSource string in the ExtendedIRQ 5060resource macro was ignored. 5061 5062Simplified the interfaces to the internal division functions, reducing code 5063size and complexity. 5064 5065Code and Data Size: Current and previous core subsystem library sizes are 5066shown below. These are the code and data sizes for the acpica.lib produced 5067by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5068any ACPI driver or OSPM code. The debug version of the code includes the 5069debug output trace mechanism and has a much larger code and data size. Note 5070that these values will vary depending on the efficiency of the compiler and 5071the compiler options used during generation. 5072 5073 Previous Release: 5074 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 5075 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 5076 Current Release: 5077 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5078 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 5079 5080 50812) iASL Compiler/Disassembler: 5082 5083Implemented support for the ACPI 3.0 Timer operator. 5084 5085Fixed a problem where the Default() operator was inadvertently ignored in a 5086Switch/Case block. This was a problem in the translation of the Switch 5087statement to If...Else pairs. 5088 5089Added support to allow a standalone Return operator, with no parentheses (or 5090operands). 5091 5092Fixed a problem with code generation for the ElseIf operator where the 5093translated Else...If parse tree was improperly constructed leading to the 5094loss of some code. 5095 5096---------------------------------------- 509722 September 2004. Summary of changes for version 20040922: 5098 50991) ACPI CA Core Subsystem: 5100 5101Fixed a problem with the implementation of the LNot() operator where "Ones" 5102was not returned for the TRUE case. Changed the code to return Ones instead 5103of (!Arg) which was usually 1. This change affects iASL constant folding for 5104this operator also. 5105 5106Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 5107initialized properly -- Now zero the entire buffer in this case where the 5108buffer already exists. 5109 5110Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 5111Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 5112related code considerably. This will require changes/updates to all OS 5113interface layers (OSLs.) 5114 5115Implemented a new external interface, AcpiInstallExceptionHandler, to allow 5116a system exception handler to be installed. This handler is invoked upon any 5117run-time exception that occurs during control method execution. 5118 5119Added support for the DSDT in AcpiTbFindTable. This allows the 5120DataTableRegion() operator to access the local copy of the DSDT. 5121 5122Code and Data Size: Current and previous core subsystem library sizes are 5123shown below. These are the code and data sizes for the acpica.lib produced 5124by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5125any ACPI driver or OSPM code. The debug version of the code includes the 5126debug output trace mechanism and has a much larger code and data size. Note 5127that these values will vary depending on the efficiency of the compiler and 5128the compiler options used during generation. 5129 5130 Previous Release: 5131 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 5132 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 5133 Current Release: 5134 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 5135 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 5136 5137 51382) iASL Compiler/Disassembler: 5139 5140Fixed a problem with constant folding and the LNot operator. LNot was 5141returning 1 in the TRUE case, not Ones as per the ACPI specification. This 5142could result in the generation of an incorrect folded/reduced constant. 5143 5144End-Of-File is now allowed within a "//"-style comment. A parse error no 5145longer occurs if such a comment is at the very end of the input ASL source 5146file. 5147 5148Implemented the "-r" option to override the Revision in the table header. 5149The initial use of this option will be to simplify the evaluation of the AML 5150interpreter by allowing a single ASL source module to be compiled for either 515132-bit or 64-bit integers. 5152 5153 5154---------------------------------------- 515527 August 2004. Summary of changes for version 20040827: 5156 51571) ACPI CA Core Subsystem: 5158 5159- Implemented support for implicit object conversion in the non-numeric 5160logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 5161LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 5162the second operand is implicitly converted on the fly to match the type of 5163the first operand. For example: 5164 5165 LEqual (Source1, Source2) 5166 5167Source1 and Source2 must each evaluate to an integer, a string, or a buffer. 5168The data type of Source1 dictates the required type of Source2. Source2 is 5169implicitly converted if necessary to match the type of Source1. 5170 5171- Updated and corrected the behavior of the string conversion support. The 5172rules concerning conversion of buffers to strings (according to the ACPI 5173specification) are as follows: 5174 5175ToDecimalString - explicit byte-wise conversion of buffer to string of 5176decimal values (0-255) separated by commas. ToHexString - explicit byte-wise 5177conversion of buffer to string of hex values (0-FF) separated by commas. 5178ToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 5179copy with no transform except NULL terminated. Any other implicit buffer-to- 5180string conversion - byte-wise conversion of buffer to string of hex values 5181(0-FF) separated by spaces. 5182 5183- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 5184 5185- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 5186one byte too short in the case of a node in the root scope. This could 5187cause a fault during debug output. 5188 5189- Code and Data Size: Current and previous core subsystem library sizes are 5190shown below. These are the code and data sizes for the acpica.lib produced 5191by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5192any ACPI driver or OSPM code. The debug version of the code includes the 5193debug output trace mechanism and has a much larger code and data size. Note 5194that these values will vary depending on the efficiency of the compiler and 5195the compiler options used during generation. 5196 5197 Previous Release: 5198 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 5199 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 5200 Current Release: 5201 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 5202 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 5203 5204 52052) iASL Compiler/Disassembler: 5206 5207- Fixed a Linux generation error. 5208 5209 5210---------------------------------------- 521116 August 2004. Summary of changes for version 20040816: 5212 52131) ACPI CA Core Subsystem: 5214 5215Designed and implemented support within the AML interpreter for the so- 5216called "implicit return". This support returns the result of the last ASL 5217operation within a control method, in the absence of an explicit Return() 5218operator. A few machines depend on this behavior, even though it is not 5219explicitly supported by the ASL language. It is optional support that can 5220be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 5221 5222Removed support for the PCI_Config address space from the internal low level 5223hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 5224support was not used internally, and would not work correctly anyway because 5225the PCI bus number and segment number were not supported. There are 5226separate interfaces for PCI configuration space access because of the unique 5227interface. 5228 5229Code and Data Size: Current and previous core subsystem library sizes are 5230shown below. These are the code and data sizes for the acpica.lib produced 5231by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5232any ACPI driver or OSPM code. The debug version of the code includes the 5233debug output trace mechanism and has a much larger code and data size. Note 5234that these values will vary depending on the efficiency of the compiler and 5235the compiler options used during generation. 5236 5237 Previous Release: 5238 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5239 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 5240 Current Release: 5241 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 5242 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 5243 5244 52452) iASL Compiler/Disassembler: 5246 5247Fixed a problem where constants in ASL expressions at the root level (not 5248within a control method) could be inadvertently truncated during code 5249generation. This problem was introduced in the 20040715 release. 5250 5251 5252---------------------------------------- 525315 July 2004. Summary of changes for version 20040715: 5254 52551) ACPI CA Core Subsystem: 5256 5257Restructured the internal HW GPE interfaces to pass/track the current state 5258of interrupts (enabled/disabled) in order to avoid possible deadlock and 5259increase flexibility of the interfaces. 5260 5261Implemented a "lexicographical compare" for String and Buffer objects within 5262the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 5263as per further clarification to the ACPI specification. Behavior is similar 5264to C library "strcmp". 5265 5266Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 5267external function. In the 32-bit non-debug case, the stack use has been 5268reduced from 168 bytes to 32 bytes. 5269 5270Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 5271whose purpose is to allow the AML interpreter to forgive certain bad AML 5272constructs. Default setting is FALSE. 5273 5274Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 5275support code. If enabled, it allows field access to go beyond the end of a 5276region definition if the field is within the region length rounded up to the 5277next access width boundary (a common coding error.) 5278 5279Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 5280ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 5281symbols are lowercased by the latest version of the AcpiSrc tool. 5282 5283The prototypes for the PCI interfaces in acpiosxf.h have been updated to 5284rename "Register" to simply "Reg" to prevent certain compilers from 5285complaining. 5286 5287Code and Data Size: Current and previous core subsystem library sizes are 5288shown below. These are the code and data sizes for the acpica.lib produced 5289by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5290any ACPI driver or OSPM code. The debug version of the code includes the 5291debug output trace mechanism and has a much larger code and data size. Note 5292that these values will vary depending on the efficiency of the compiler and 5293the compiler options used during generation. 5294 5295 Previous Release: 5296 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5297 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 5298 Current Release: 5299 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 5300 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 5301 5302 53032) iASL Compiler/Disassembler: 5304 5305Implemented full support for Package objects within the Case() operator. 5306Note: The Break() operator is currently not supported within Case blocks 5307(TermLists) as there is some question about backward compatibility with ACPI 53081.0 interpreters. 5309 5310 5311Fixed a problem where complex terms were not supported properly within the 5312Switch() operator. 5313 5314Eliminated extraneous warning for compiler-emitted reserved names of the 5315form "_T_x". (Used in Switch/Case operators.) 5316 5317Eliminated optimization messages for "_T_x" objects and small constants 5318within the DefinitionBlock operator. 5319 5320 5321---------------------------------------- 532215 June 2004. Summary of changes for version 20040615: 5323 53241) ACPI CA Core Subsystem: 5325 5326Implemented support for Buffer and String objects (as per ACPI 2.0) for the 5327following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 5328LLessEqual. 5329 5330All directory names in the entire source package are lower case, as they 5331were in earlier releases. 5332 5333Implemented "Disassemble" command in the AML debugger that will disassemble 5334a single control method. 5335 5336Code and Data Size: Current and previous core subsystem library sizes are 5337shown below. These are the code and data sizes for the acpica.lib produced 5338by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5339any ACPI driver or OSPM code. The debug version of the code includes the 5340debug output trace mechanism and has a much larger code and data size. Note 5341that these values will vary depending on the efficiency of the compiler and 5342the compiler options used during generation. 5343 5344 Previous Release: 5345 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 5346 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 5347 5348 Current Release: 5349 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 5350 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 5351 5352 53532) iASL Compiler/Disassembler: 5354 5355Implemented support for Buffer and String objects (as per ACPI 2.0) for the 5356following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 5357LLessEqual. 5358 5359All directory names in the entire source package are lower case, as they 5360were in earlier releases. 5361 5362Fixed a fault when using the -g or -d<nofilename> options if the FADT was 5363not found. 5364 5365Fixed an issue with the Windows version of the compiler where later versions 5366of Windows place the FADT in the registry under the name "FADT" and not 5367"FACP" as earlier versions did. This applies when using the -g or - 5368d<nofilename> options. The compiler now looks for both strings as 5369necessary. 5370 5371Fixed a problem with compiler namepath optimization where a namepath within 5372the Scope() operator could not be optimized if the namepath was a subpath of 5373the current scope path. 5374 5375---------------------------------------- 537627 May 2004. Summary of changes for version 20040527: 5377 53781) ACPI CA Core Subsystem: 5379 5380Completed a new design and implementation for EBDA (Extended BIOS Data Area) 5381support in the RSDP scan code. The original code improperly scanned for the 5382EBDA by simply scanning from memory location 0 to 0x400. The correct method 5383is to first obtain the EBDA pointer from within the BIOS data area, then 5384scan 1K of memory starting at the EBDA pointer. There appear to be few if 5385any machines that place the RSDP in the EBDA, however. 5386 5387Integrated a fix for a possible fault during evaluation of BufferField 5388arguments. Obsolete code that was causing the problem was removed. 5389 5390Found and fixed a problem in the Field Support Code where data could be 5391corrupted on a bit field read that starts on an aligned boundary but does 5392not end on an aligned boundary. Merged the read/write "datum length" 5393calculation code into a common procedure. 5394 5395Rolled in a couple of changes to the FreeBSD-specific header. 5396 5397 5398Code and Data Size: Current and previous core subsystem library sizes are 5399shown below. These are the code and data sizes for the acpica.lib produced 5400by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5401any ACPI driver or OSPM code. The debug version of the code includes the 5402debug output trace mechanism and has a much larger code and data size. Note 5403that these values will vary depending on the efficiency of the compiler and 5404the compiler options used during generation. 5405 5406 Previous Release: 5407 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5408 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5409 Current Release: 5410 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 5411 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 5412 5413 54142) iASL Compiler/Disassembler: 5415 5416Fixed a generation warning produced by some overly-verbose compilers for a 541764-bit constant. 5418 5419---------------------------------------- 542014 May 2004. Summary of changes for version 20040514: 5421 54221) ACPI CA Core Subsystem: 5423 5424Fixed a problem where hardware GPE enable bits sometimes not set properly 5425during and after GPE method execution. Result of 04/27 changes. 5426 5427Removed extra "clear all GPEs" when sleeping/waking. 5428 5429Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 5430AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 5431the new AcpiEv* calls as appropriate. 5432 5433ACPI_OS_NAME was removed from the OS-specific headers. The default name is 5434now "Microsoft Windows NT" for maximum compatibility. However this can be 5435changed by modifying the acconfig.h file. 5436 5437Allow a single invocation of AcpiInstallNotifyHandler for a handler that 5438traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 5439 5440Run _INI methods on ThermalZone objects. This is against the ACPI 5441specification, but there is apparently ASL code in the field that has these 5442_INI methods, and apparently "other" AML interpreters execute them. 5443 5444Performed a full 16/32/64 bit lint that resulted in some small changes. 5445 5446Added a sleep simulation command to the AML debugger to test sleep code. 5447 5448Code and Data Size: Current and previous core subsystem library sizes are 5449shown below. These are the code and data sizes for the acpica.lib produced 5450by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5451any ACPI driver or OSPM code. The debug version of the code includes the 5452debug output trace mechanism and has a much larger code and data size. Note 5453that these values will vary depending on the efficiency of the compiler and 5454the compiler options used during generation. 5455 5456 Previous Release: 5457 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5458 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5459 Current Release: 5460 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5461 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5462 5463---------------------------------------- 546427 April 2004. Summary of changes for version 20040427: 5465 54661) ACPI CA Core Subsystem: 5467 5468Completed a major overhaul of the GPE handling within ACPI CA. There are 5469now three types of GPEs: wake-only, runtime-only, and combination wake/run. 5470The only GPEs allowed to be combination wake/run are for button-style 5471devices such as a control-method power button, control-method sleep button, 5472or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 5473referenced by any _PRW methods are marked for "runtime" and hardware 5474enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 5475(and disabled at runtime). However, at sleep time, only those GPEs that 5476have been specifically enabled for wake via the AcpiEnableGpe interface will 5477actually be hardware enabled. 5478 5479A new external interface has been added, AcpiSetGpeType(), that is meant to 5480be used by device drivers to force a GPE to a particular type. It will be 5481especially useful for the drivers for the button devices mentioned above. 5482 5483Completed restructuring of the ACPI CA initialization sequence so that 5484default operation region handlers are installed before GPEs are initialized 5485and the _PRW methods are executed. This will prevent errors when the _PRW 5486methods attempt to access system memory or I/O space. 5487 5488GPE enable/disable no longer reads the GPE enable register. We now keep the 5489enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 5490thus no longer depend on the hardware to maintain these bits. 5491 5492Always clear the wake status and fixed/GPE status bits before sleep, even 5493for state S5. 5494 5495Improved the AML debugger output for displaying the GPE blocks and their 5496current status. 5497 5498Added new strings for the _OSI method, of the form "Windows 2001 SPx" where 5499x = 0,1,2,3,4. 5500 5501Fixed a problem where the physical address was incorrectly calculated when 5502the Load() operator was used to directly load from an Operation Region (vs. 5503loading from a Field object.) Also added check for minimum table length for 5504this case. 5505 5506Fix for multiple mutex acquisition. Restore original thread SyncLevel on 5507mutex release. 5508 5509Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 5510consistency with the other fields returned. 5511 5512Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 5513structure for each GPE in the system, so the size of this structure is 5514important. 5515 5516CPU stack requirement reduction: Cleaned up the method execution and object 5517evaluation paths so that now a parameter structure is passed, instead of 5518copying the various method parameters over and over again. 5519 5520In evregion.c: Correctly exit and reenter the interpreter region if and 5521only if dispatching an operation region request to a user-installed handler. 5522Do not exit/reenter when dispatching to a default handler (e.g., default 5523system memory or I/O handlers) 5524 5525 5526Notes for updating drivers for the new GPE support. The following changes 5527must be made to ACPI-related device drivers that are attached to one or more 5528GPEs: (This information will be added to the ACPI CA Programmer Reference.) 5529 55301) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 5531explicitly call AcpiEnableGpe. 55322) There is a new interface called AcpiSetGpeType. This should be called 5533before enabling the GPE. Also, this interface will automatically disable 5534the GPE if it is currently enabled. 55353) AcpiEnableGpe no longer supports a GPE type flag. 5536 5537Specific drivers that must be changed: 55381) EC driver: 5539 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 5540AeGpeHandler, NULL); 5541 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 5542 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 5543 55442) Button Drivers (Power, Lid, Sleep): 5545Run _PRW method under parent device 5546If _PRW exists: /* This is a control-method button */ 5547 Extract GPE number and possibly GpeDevice 5548 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 5549 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 5550 5551For all other devices that have _PRWs, we automatically set the GPE type to 5552ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 5553must be done on a selective basis, usually requiring some kind of user app 5554to allow the user to pick the wake devices. 5555 5556 5557Code and Data Size: Current and previous core subsystem library sizes are 5558shown below. These are the code and data sizes for the acpica.lib produced 5559by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5560any ACPI driver or OSPM code. The debug version of the code includes the 5561debug output trace mechanism and has a much larger code and data size. Note 5562that these values will vary depending on the efficiency of the compiler and 5563the compiler options used during generation. 5564 5565 Previous Release: 5566 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5567 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5568 Current Release: 5569 5570 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5571 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5572 5573 5574 5575---------------------------------------- 557602 April 2004. Summary of changes for version 20040402: 5577 55781) ACPI CA Core Subsystem: 5579 5580Fixed an interpreter problem where an indirect store through an ArgX 5581parameter was incorrectly applying the "implicit conversion rules" during 5582the store. From the ACPI specification: "If the target is a method local or 5583argument (LocalX or ArgX), no conversion is performed and the result is 5584stored directly to the target". The new behavior is to disable implicit 5585conversion during ALL stores to an ArgX. 5586 5587Changed the behavior of the _PRW method scan to ignore any and all errors 5588returned by a given _PRW. This prevents the scan from aborting from the 5589failure of any single _PRW. 5590 5591Moved the runtime configuration parameters from the global init procedure to 5592static variables in acglobal.h. This will allow the host to override the 5593default values easily. 5594 5595Code and Data Size: Current and previous core subsystem library sizes are 5596shown below. These are the code and data sizes for the acpica.lib produced 5597by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5598any ACPI driver or OSPM code. The debug version of the code includes the 5599debug output trace mechanism and has a much larger code and data size. Note 5600that these values will vary depending on the efficiency of the compiler and 5601the compiler options used during generation. 5602 5603 Previous Release: 5604 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5605 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5606 Current Release: 5607 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5608 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5609 5610 56112) iASL Compiler/Disassembler: 5612 5613iASL now fully disassembles SSDTs. However, External() statements are not 5614generated automatically for unresolved symbols at this time. This is a 5615planned feature for future implementation. 5616 5617Fixed a scoping problem in the disassembler that occurs when the type of the 5618target of a Scope() operator is overridden. This problem caused an 5619incorrectly nested internal namespace to be constructed. 5620 5621Any warnings or errors that are emitted during disassembly are now commented 5622out automatically so that the resulting file can be recompiled without any 5623hand editing. 5624 5625---------------------------------------- 562626 March 2004. Summary of changes for version 20040326: 5627 56281) ACPI CA Core Subsystem: 5629 5630Implemented support for "wake" GPEs via interaction between GPEs and the 5631_PRW methods. Every GPE that is pointed to by one or more _PRWs is 5632identified as a WAKE GPE and by default will no longer be enabled at 5633runtime. Previously, we were blindly enabling all GPEs with a corresponding 5634_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 5635believe this has been the cause of thousands of "spurious" GPEs on some 5636systems. 5637 5638This new GPE behavior is can be reverted to the original behavior (enable 5639ALL GPEs at runtime) via a runtime flag. 5640 5641Fixed a problem where aliased control methods could not access objects 5642properly. The proper scope within the namespace was not initialized 5643(transferred to the target of the aliased method) before executing the 5644target method. 5645 5646Fixed a potential race condition on internal object deletion on the return 5647object in AcpiEvaluateObject. 5648 5649Integrated a fix for resource descriptors where both _MEM and _MTP were 5650being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 5651wide, 0x0F instead of 0x03.) 5652 5653Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 5654fault in some cases. 5655 5656Updated Notify() values for debug statements in evmisc.c 5657 5658Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 5659 5660Code and Data Size: Current and previous core subsystem library sizes are 5661shown below. These are the code and data sizes for the acpica.lib produced 5662by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5663any ACPI driver or OSPM code. The debug version of the code includes the 5664debug output trace mechanism and has a much larger code and data size. Note 5665that these values will vary depending on the efficiency of the compiler and 5666the compiler options used during generation. 5667 5668 Previous Release: 5669 5670 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5671 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5672 Current Release: 5673 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5674 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5675 5676---------------------------------------- 567711 March 2004. Summary of changes for version 20040311: 5678 56791) ACPI CA Core Subsystem: 5680 5681Fixed a problem where errors occurring during the parse phase of control 5682method execution did not abort cleanly. For example, objects created and 5683installed in the namespace were not deleted. This caused all subsequent 5684invocations of the method to return the AE_ALREADY_EXISTS exception. 5685 5686Implemented a mechanism to force a control method to "Serialized" execution 5687if the method attempts to create namespace objects. (The root of the 5688AE_ALREADY_EXISTS problem.) 5689 5690Implemented support for the predefined _OSI "internal" control method. 5691Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 5692"Windows 2001.1", and can be easily upgraded for new strings as necessary. 5693This feature will allow "other" operating systems to execute the fully 5694tested, "Windows" code path through the ASL code 5695 5696Global Lock Support: Now allows multiple acquires and releases with any 5697internal thread. Removed concept of "owning thread" for this special mutex. 5698 5699Fixed two functions that were inappropriately declaring large objects on the 5700CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 5701method execution considerably. 5702 5703Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 5704S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 5705 5706Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 5707defined on the machine. 5708 5709Implemented two runtime options: One to force all control method execution 5710to "Serialized" to mimic Windows behavior, another to disable _OSI support 5711if it causes problems on a given machine. 5712 5713Code and Data Size: Current and previous core subsystem library sizes are 5714shown below. These are the code and data sizes for the acpica.lib produced 5715by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5716any ACPI driver or OSPM code. The debug version of the code includes the 5717debug output trace mechanism and has a much larger code and data size. Note 5718that these values will vary depending on the efficiency of the compiler and 5719the compiler options used during generation. 5720 5721 Previous Release: 5722 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5723 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5724 Current Release: 5725 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5726 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5727 57282) iASL Compiler/Disassembler: 5729 5730Fixed an array size problem for FreeBSD that would cause the compiler to 5731fault. 5732 5733---------------------------------------- 573420 February 2004. Summary of changes for version 20040220: 5735 5736 57371) ACPI CA Core Subsystem: 5738 5739Implemented execution of _SxD methods for Device objects in the 5740GetObjectInfo interface. 5741 5742Fixed calls to _SST method to pass the correct arguments. 5743 5744Added a call to _SST on wake to restore to "working" state. 5745 5746Check for End-Of-Buffer failure case in the WalkResources interface. 5747 5748Integrated fix for 64-bit alignment issue in acglobal.h by moving two 5749structures to the beginning of the file. 5750 5751After wake, clear GPE status register(s) before enabling GPEs. 5752 5753After wake, clear/enable power button. (Perhaps we should clear/enable all 5754fixed events upon wake.) 5755 5756Fixed a couple of possible memory leaks in the Namespace manager. 5757 5758Integrated latest acnetbsd.h file. 5759 5760---------------------------------------- 576111 February 2004. Summary of changes for version 20040211: 5762 5763 57641) ACPI CA Core Subsystem: 5765 5766Completed investigation and implementation of the call-by-reference 5767mechanism for control method arguments. 5768 5769Fixed a problem where a store of an object into an indexed package could 5770fail if the store occurs within a different method than the method that 5771created the package. 5772 5773Fixed a problem where the ToDecimal operator could return incorrect results. 5774 5775Fixed a problem where the CopyObject operator could fail on some of the more 5776obscure objects (e.g., Reference objects.) 5777 5778Improved the output of the Debug object to display buffer, package, and 5779index objects. 5780 5781Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 5782the expected result. 5783 5784Added permanent ACPI_REPORT_ERROR macros for all instances of the 5785ACPI_AML_INTERNAL exception. 5786 5787Integrated latest version of acfreebsd.h 5788 5789---------------------------------------- 579016 January 2004. Summary of changes for version 20040116: 5791 5792The purpose of this release is primarily to update the copyright years in 5793each module, thus causing a huge number of diffs. There are a few small 5794functional changes, however. 5795 57961) ACPI CA Core Subsystem: 5797 5798Improved error messages when there is a problem finding one or more of the 5799required base ACPI tables 5800 5801Reintroduced the definition of APIC_HEADER in actbl.h 5802 5803Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 5804 5805Removed extraneous reference to NewObj in dsmthdat.c 5806 58072) iASL compiler 5808 5809Fixed a problem introduced in December that disabled the correct disassembly 5810of Resource Templates 5811 5812 5813---------------------------------------- 581403 December 2003. Summary of changes for version 20031203: 5815 58161) ACPI CA Core Subsystem: 5817 5818Changed the initialization of Operation Regions during subsystem 5819init to perform two entire walks of the ACPI namespace; The first 5820to initialize the regions themselves, the second to execute the 5821_REG methods. This fixed some interdependencies across _REG 5822methods found on some machines. 5823 5824Fixed a problem where a Store(Local0, Local1) could simply update 5825the object reference count, and not create a new copy of the 5826object if the Local1 is uninitialized. 5827 5828Implemented support for the _SST reserved method during sleep 5829transitions. 5830 5831Implemented support to clear the SLP_TYP and SLP_EN bits when 5832waking up, this is apparently required by some machines. 5833 5834When sleeping, clear the wake status only if SleepState is not S5. 5835 5836Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 5837pointer arithmetic advanced a string pointer too far. 5838 5839Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 5840could be returned if the requested table has not been loaded. 5841 5842Within the support for IRQ resources, restructured the handling of 5843the active and edge/level bits. 5844 5845Fixed a few problems in AcpiPsxExecute() where memory could be 5846leaked under certain error conditions. 5847 5848Improved error messages for the cases where the ACPI mode could 5849not be entered. 5850 5851Code and Data Size: Current and previous core subsystem library 5852sizes are shown below. These are the code and data sizes for the 5853acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5854these values do not include any ACPI driver or OSPM code. The 5855debug version of the code includes the debug output trace 5856mechanism and has a much larger code and data size. Note that 5857these values will vary depending on the efficiency of the compiler 5858and the compiler options used during generation. 5859 5860 Previous Release (20031029): 5861 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5862 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5863 Current Release: 5864 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5865 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5866 58672) iASL Compiler/Disassembler: 5868 5869Implemented a fix for the iASL disassembler where a bad index was 5870generated. This was most noticeable on 64-bit platforms 5871 5872 5873---------------------------------------- 587429 October 2003. Summary of changes for version 20031029: 5875 58761) ACPI CA Core Subsystem: 5877 5878 5879Fixed a problem where a level-triggered GPE with an associated 5880_Lxx control method was incorrectly cleared twice. 5881 5882Fixed a problem with the Field support code where an access can 5883occur beyond the end-of-region if the field is non-aligned but 5884extends to the very end of the parent region (resulted in an 5885AE_AML_REGION_LIMIT exception.) 5886 5887Fixed a problem with ACPI Fixed Events where an RT Clock handler 5888would not get invoked on an RTC event. The RTC event bitmasks for 5889the PM1 registers were not being initialized properly. 5890 5891Implemented support for executing _STA and _INI methods for 5892Processor objects. Although this is currently not part of the 5893ACPI specification, there is existing ASL code that depends on the 5894init-time execution of these methods. 5895 5896Implemented and deployed a GetDescriptorName function to decode 5897the various types of internal descriptors. Guards against null 5898descriptors during debug output also. 5899 5900Implemented and deployed a GetNodeName function to extract the 4- 5901character namespace node name. This function simplifies the debug 5902and error output, as well as guarding against null pointers during 5903output. 5904 5905Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 5906simplify the debug and error output of 64-bit integers. This 5907macro replaces the HIDWORD and LODWORD macros for dumping these 5908integers. 5909 5910Updated the implementation of the Stall() operator to only call 5911AcpiOsStall(), and also return an error if the operand is larger 5912than 255. This preserves the required behavior of not 5913relinquishing the processor, as would happen if AcpiOsSleep() was 5914called for "long stalls". 5915 5916Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 5917initialized are now treated as NOOPs. 5918 5919Cleaned up a handful of warnings during 64-bit generation. 5920 5921Fixed a reported error where and incorrect GPE number was passed 5922to the GPE dispatch handler. This value is only used for error 5923output, however. Used this opportunity to clean up and streamline 5924the GPE dispatch code. 5925 5926Code and Data Size: Current and previous core subsystem library 5927sizes are shown below. These are the code and data sizes for the 5928acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5929these values do not include any ACPI driver or OSPM code. The 5930 5931debug version of the code includes the debug output trace 5932mechanism and has a much larger code and data size. Note that 5933these values will vary depending on the efficiency of the compiler 5934and the compiler options used during generation. 5935 5936 Previous Release (20031002): 5937 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5938 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5939 Current Release: 5940 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5941 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5942 5943 59442) iASL Compiler/Disassembler: 5945 5946Updated the iASL compiler to return an error if the operand to the 5947Stall() operator is larger than 255. 5948 5949 5950---------------------------------------- 595102 October 2003. Summary of changes for version 20031002: 5952 5953 59541) ACPI CA Core Subsystem: 5955 5956Fixed a problem with Index Fields where the index was not 5957incremented for fields that require multiple writes to the 5958index/data registers (Fields that are wider than the data 5959register.) 5960 5961Fixed a problem with all Field objects where a write could go 5962beyond the end-of-field if the field was larger than the access 5963granularity and therefore required multiple writes to complete the 5964request. An extra write beyond the end of the field could happen 5965inadvertently. 5966 5967Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 5968would incorrectly be returned if the width of the Data Register 5969was larger than the specified field access width. 5970 5971Completed fixes for LoadTable() and Unload() and verified their 5972operation. Implemented full support for the "DdbHandle" object 5973throughout the ACPI CA subsystem. 5974 5975Implemented full support for the MADT and ECDT tables in the ACPI 5976CA header files. Even though these tables are not directly 5977consumed by ACPI CA, the header definitions are useful for ACPI 5978device drivers. 5979 5980Integrated resource descriptor fixes posted to the Linux ACPI 5981list. This included checks for minimum descriptor length, and 5982support for trailing NULL strings within descriptors that have 5983optional string elements. 5984 5985Code and Data Size: Current and previous core subsystem library 5986sizes are shown below. These are the code and data sizes for the 5987acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5988these values do not include any ACPI driver or OSPM code. The 5989debug version of the code includes the debug output trace 5990mechanism and has a much larger code and data size. Note that 5991these values will vary depending on the efficiency of the compiler 5992and the compiler options used during generation. 5993 5994 Previous Release (20030918): 5995 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5996 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5997 Current Release: 5998 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5999 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 6000 6001 60022) iASL Compiler: 6003 6004Implemented detection of non-ASCII characters within the input 6005source ASL file. This catches attempts to compile binary (AML) 6006files early in the compile, with an informative error message. 6007 6008Fixed a problem where the disassembler would fault if the output 6009filename could not be generated or if the output file could not be 6010opened. 6011 6012---------------------------------------- 601318 September 2003. Summary of changes for version 20030918: 6014 6015 60161) ACPI CA Core Subsystem: 6017 6018Found and fixed a longstanding problem with the late execution of 6019the various deferred AML opcodes (such as Operation Regions, 6020Buffer Fields, Buffers, and Packages). If the name string 6021specified for the name of the new object placed the object in a 6022scope other than the current scope, the initialization/execution 6023of the opcode failed. The solution to this problem was to 6024implement a mechanism where the late execution of such opcodes 6025does not attempt to lookup/create the name a second time in an 6026incorrect scope. This fixes the "region size computed 6027incorrectly" problem. 6028 6029Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 6030Global Lock AE_BAD_PARAMETER error. 6031 6032Fixed several 64-bit issues with prototypes, casting and data 6033types. 6034 6035Removed duplicate prototype from acdisasm.h 6036 6037Fixed an issue involving EC Operation Region Detach (Shaohua Li) 6038 6039Code and Data Size: Current and previous core subsystem library 6040sizes are shown below. These are the code and data sizes for the 6041acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6042these values do not include any ACPI driver or OSPM code. The 6043debug version of the code includes the debug output trace 6044mechanism and has a much larger code and data size. Note that 6045these values will vary depending on the efficiency of the compiler 6046and the compiler options used during generation. 6047 6048 Previous Release: 6049 6050 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 6051 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 6052 Current Release: 6053 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 6054 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 6055 6056 60572) Linux: 6058 6059Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 6060correct sleep time in seconds. 6061 6062---------------------------------------- 606314 July 2003. Summary of changes for version 20030619: 6064 60651) ACPI CA Core Subsystem: 6066 6067Parse SSDTs in order discovered, as opposed to reverse order 6068(Hrvoje Habjanic) 6069 6070Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 6071Klausner, 6072 Nate Lawson) 6073 6074 60752) Linux: 6076 6077Dynamically allocate SDT list (suggested by Andi Kleen) 6078 6079proc function return value cleanups (Andi Kleen) 6080 6081Correctly handle NMI watchdog during long stalls (Andrew Morton) 6082 6083Make it so acpismp=force works (reported by Andrew Morton) 6084 6085 6086---------------------------------------- 608719 June 2003. Summary of changes for version 20030619: 6088 60891) ACPI CA Core Subsystem: 6090 6091Fix To/FromBCD, eliminating the need for an arch-specific #define. 6092 6093Do not acquire a semaphore in the S5 shutdown path. 6094 6095Fix ex_digits_needed for 0. (Takayoshi Kochi) 6096 6097Fix sleep/stall code reversal. (Andi Kleen) 6098 6099Revert a change having to do with control method calling 6100semantics. 6101 61022) Linux: 6103 6104acpiphp update (Takayoshi Kochi) 6105 6106Export acpi_disabled for sonypi (Stelian Pop) 6107 6108Mention acpismp=force in config help 6109 6110Re-add acpitable.c and acpismp=force. This improves backwards 6111 6112compatibility and also cleans up the code to a significant degree. 6113 6114Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 6115 6116---------------------------------------- 611722 May 2003. Summary of changes for version 20030522: 6118 61191) ACPI CA Core Subsystem: 6120 6121Found and fixed a reported problem where an AE_NOT_FOUND error 6122occurred occasionally during _BST evaluation. This turned out to 6123be an Owner ID allocation issue where a called method did not get 6124a new ID assigned to it. Eventually, (after 64k calls), the Owner 6125ID UINT16 would wraparound so that the ID would be the same as the 6126caller's and the called method would delete the caller's 6127namespace. 6128 6129Implemented extended error reporting for control methods that are 6130aborted due to a run-time exception. Output includes the exact 6131AML instruction that caused the method abort, a dump of the method 6132locals and arguments at the time of the abort, and a trace of all 6133nested control method calls. 6134 6135Modified the interpreter to allow the creation of buffers of zero 6136length from the AML code. Implemented new code to ensure that no 6137attempt is made to actually allocate a memory buffer (of length 6138zero) - instead, a simple buffer object with a NULL buffer pointer 6139and length zero is created. A warning is no longer issued when 6140the AML attempts to create a zero-length buffer. 6141 6142Implemented a workaround for the "leading asterisk issue" in 6143_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 6144asterisk is automatically removed if present in any HID, UID, or 6145CID strings. The iASL compiler will still flag this asterisk as 6146an error, however. 6147 6148Implemented full support for _CID methods that return a package of 6149multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 6150now additionally returns a device _CID list if present. This 6151required a change to the external interface in order to pass an 6152ACPI_BUFFER object as a parameter since the _CID list is of 6153variable length. 6154 6155Fixed a problem with the new AE_SAME_HANDLER exception where 6156handler initialization code did not know about this exception. 6157 6158Code and Data Size: Current and previous core subsystem library 6159sizes are shown below. These are the code and data sizes for the 6160acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 6161these values do not include any ACPI driver or OSPM code. The 6162debug version of the code includes the debug output trace 6163mechanism and has a much larger code and data size. Note that 6164these values will vary depending on the efficiency of the compiler 6165and the compiler options used during generation. 6166 6167 Previous Release (20030509): 6168 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 6169 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 6170 Current Release: 6171 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 6172 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 6173 6174 61752) Linux: 6176 6177Fixed a bug in which we would reinitialize the ACPI interrupt 6178after it was already working, thus disabling all ACPI and the IRQs 6179for any other device sharing the interrupt. (Thanks to Stian 6180Jordet) 6181 6182Toshiba driver update (John Belmonte) 6183 6184Return only 0 or 1 for our interrupt handler status (Andrew 6185Morton) 6186 6187 61883) iASL Compiler: 6189 6190Fixed a reported problem where multiple (nested) ElseIf() 6191statements were not handled correctly by the compiler, resulting 6192in incorrect warnings and incorrect AML code. This was a problem 6193in both the ASL parser and the code generator. 6194 6195 61964) Documentation: 6197 6198Added changes to existing interfaces, new exception codes, and new 6199text concerning reference count object management versus garbage 6200collection. 6201 6202---------------------------------------- 620309 May 2003. Summary of changes for version 20030509. 6204 6205 62061) ACPI CA Core Subsystem: 6207 6208Changed the subsystem initialization sequence to hold off 6209installation of address space handlers until the hardware has been 6210initialized and the system has entered ACPI mode. This is because 6211the installation of space handlers can cause _REG methods to be 6212run. Previously, the _REG methods could potentially be run before 6213ACPI mode was enabled. 6214 6215Fixed some memory leak issues related to address space handler and 6216notify handler installation. There were some problems with the 6217reference count mechanism caused by the fact that the handler 6218objects are shared across several namespace objects. 6219 6220Fixed a reported problem where reference counts within the 6221namespace were not properly updated when named objects created by 6222method execution were deleted. 6223 6224Fixed a reported problem where multiple SSDTs caused a deletion 6225issue during subsystem termination. Restructured the table data 6226structures to simplify the linked lists and the related code. 6227 6228Fixed a problem where the table ID associated with secondary 6229tables (SSDTs) was not being propagated into the namespace objects 6230created by those tables. This would only present a problem for 6231tables that are unloaded at run-time, however. 6232 6233Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 6234type as the length parameter (instead of UINT32). 6235 6236Solved a long-standing problem where an ALREADY_EXISTS error 6237appears on various systems. This problem could happen when there 6238are multiple PCI_Config operation regions under a single PCI root 6239bus. This doesn't happen very frequently, but there are some 6240systems that do this in the ASL. 6241 6242Fixed a reported problem where the internal DeleteNode function 6243was incorrectly handling the case where a namespace node was the 6244first in the parent's child list, and had additional peers (not 6245the only child, but first in the list of children.) 6246 6247Code and Data Size: Current core subsystem library sizes are shown 6248below. These are the code and data sizes for the acpica.lib 6249produced by the Microsoft Visual C++ 6.0 compiler, and these 6250values do not include any ACPI driver or OSPM code. The debug 6251version of the code includes the debug output trace mechanism and 6252has a much larger code and data size. Note that these values will 6253vary depending on the efficiency of the compiler and the compiler 6254options used during generation. 6255 6256 Previous Release 6257 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 6258 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 6259 Current Release: 6260 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 6261 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 6262 6263 62642) Linux: 6265 6266Allow ":" in OS override string (Ducrot Bruno) 6267 6268Kobject fix (Greg KH) 6269 6270 62713 iASL Compiler/Disassembler: 6272 6273Fixed a problem in the generation of the C source code files (AML 6274is emitted in C source statements for BIOS inclusion) where the 6275Ascii dump that appears within a C comment at the end of each line 6276could cause a compile time error if the AML sequence happens to 6277have an open comment or close comment sequence embedded. 6278 6279 6280---------------------------------------- 628124 April 2003. Summary of changes for version 20030424. 6282 6283 62841) ACPI CA Core Subsystem: 6285 6286Support for big-endian systems has been implemented. Most of the 6287support has been invisibly added behind big-endian versions of the 6288ACPI_MOVE_* macros. 6289 6290Fixed a problem in AcpiHwDisableGpeBlock() and 6291AcpiHwClearGpeBlock() where an incorrect offset was passed to the 6292low level hardware write routine. The offset parameter was 6293actually eliminated from the low level read/write routines because 6294they had become obsolete. 6295 6296Fixed a problem where a handler object was deleted twice during 6297the removal of a fixed event handler. 6298 6299 63002) Linux: 6301 6302A fix for SMP systems with link devices was contributed by 6303 6304Compaq's Dan Zink. 6305 6306(2.5) Return whether we handled the interrupt in our IRQ handler. 6307(Linux ISRs no longer return void, so we can propagate the handler 6308return value from the ACPI CA core back to the OS.) 6309 6310 6311 63123) Documentation: 6313 6314The ACPI CA Programmer Reference has been updated to reflect new 6315interfaces and changes to existing interfaces. 6316 6317---------------------------------------- 631828 March 2003. Summary of changes for version 20030328. 6319 63201) ACPI CA Core Subsystem: 6321 6322The GPE Block Device support has been completed. New interfaces 6323are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 6324interfaces (enable, disable, clear, getstatus) have been split 6325into separate interfaces for Fixed Events and General Purpose 6326Events (GPEs) in order to support GPE Block Devices properly. 6327 6328Fixed a problem where the error message "Failed to acquire 6329semaphore" would appear during operations on the embedded 6330controller (EC). 6331 6332Code and Data Size: Current core subsystem library sizes are shown 6333below. These are the code and data sizes for the acpica.lib 6334produced by the Microsoft Visual C++ 6.0 compiler, and these 6335values do not include any ACPI driver or OSPM code. The debug 6336version of the code includes the debug output trace mechanism and 6337has a much larger code and data size. Note that these values will 6338vary depending on the efficiency of the compiler and the compiler 6339options used during generation. 6340 6341 Previous Release 6342 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 6343 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 6344 Current Release: 6345 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 6346 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 6347 6348 6349---------------------------------------- 635028 February 2003. Summary of changes for version 20030228. 6351 6352 63531) ACPI CA Core Subsystem: 6354 6355The GPE handling and dispatch code has been completely overhauled 6356in preparation for support of GPE Block Devices (ID ACPI0006). 6357This affects internal data structures and code only; there should 6358be no differences visible externally. One new file has been 6359added, evgpeblk.c 6360 6361The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 6362fields that are used to determine the GPE block lengths. The 6363REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 6364structures are ignored. This is per the ACPI specification but it 6365isn't very clear. The full 256 Block 0/1 GPEs are now supported 6366(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 6367 6368In the SCI interrupt handler, removed the read of the PM1_CONTROL 6369register to look at the SCI_EN bit. On some machines, this read 6370causes an SMI event and greatly slows down SCI events. (This may 6371in fact be the cause of slow battery status response on some 6372systems.) 6373 6374Fixed a problem where a store of a NULL string to a package object 6375could cause the premature deletion of the object. This was seen 6376during execution of the battery _BIF method on some systems, 6377resulting in no battery data being returned. 6378 6379Added AcpiWalkResources interface to simplify parsing of resource 6380lists. 6381 6382Code and Data Size: Current core subsystem library sizes are shown 6383below. These are the code and data sizes for the acpica.lib 6384produced by the Microsoft Visual C++ 6.0 compiler, and these 6385values do not include any ACPI driver or OSPM code. The debug 6386version of the code includes the debug output trace mechanism and 6387has a much larger code and data size. Note that these values will 6388vary depending on the efficiency of the compiler and the compiler 6389options used during generation. 6390 6391 Previous Release 6392 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6393 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6394 Current Release: 6395 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 6396 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 6397 6398 63992) Linux 6400 6401S3 fixes (Ole Rohne) 6402 6403Update ACPI PHP driver with to use new acpi_walk_resource API 6404(Bjorn Helgaas) 6405 6406Add S4BIOS support (Pavel Machek) 6407 6408Map in entire table before performing checksum (John Stultz) 6409 6410Expand the mem= cmdline to allow the specification of reserved and 6411ACPI DATA blocks (Pavel Machek) 6412 6413Never use ACPI on VISWS 6414 6415Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 6416 6417Revert a change that allowed P_BLK lengths to be 4 or 5. This is 6418causing us to think that some systems support C2 when they really 6419don't. 6420 6421Do not count processor objects for non-present CPUs (Thanks to 6422Dominik Brodowski) 6423 6424 64253) iASL Compiler: 6426 6427Fixed a problem where ASL include files could not be found and 6428opened. 6429 6430Added support for the _PDC reserved name. 6431 6432 6433---------------------------------------- 643422 January 2003. Summary of changes for version 20030122. 6435 6436 64371) ACPI CA Core Subsystem: 6438 6439Added a check for constructs of the form: Store (Local0, Local0) 6440where Local0 is not initialized. Apparently, some BIOS 6441programmers believe that this is a NOOP. Since this store doesn't 6442do anything anyway, the new prototype behavior will ignore this 6443error. This is a case where we can relax the strict checking in 6444the interpreter in the name of compatibility. 6445 6446 64472) Linux 6448 6449The AcpiSrc Source Conversion Utility has been released with the 6450Linux package for the first time. This is the utility that is 6451used to convert the ACPI CA base source code to the Linux version. 6452 6453(Both) Handle P_BLK lengths shorter than 6 more gracefully 6454 6455(Both) Move more headers to include/acpi, and delete an unused 6456header. 6457 6458(Both) Move drivers/acpi/include directory to include/acpi 6459 6460(Both) Boot functions don't use cmdline, so don't pass it around 6461 6462(Both) Remove include of unused header (Adrian Bunk) 6463 6464(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 6465the 6466former now also includes the latter, acpiphp.h only needs the one, 6467now. 6468 6469(2.5) Make it possible to select method of bios restoring after S3 6470resume. [=> no more ugly ifdefs] (Pavel Machek) 6471 6472(2.5) Make proc write interfaces work (Pavel Machek) 6473 6474(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 6475 6476(2.5) Break out ACPI Perf code into its own module, under cpufreq 6477(Dominik Brodowski) 6478 6479(2.4) S4BIOS support (Ducrot Bruno) 6480 6481(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 6482Visinoni) 6483 6484 64853) iASL Compiler: 6486 6487Added support to disassemble SSDT and PSDTs. 6488 6489Implemented support to obtain SSDTs from the Windows registry if 6490available. 6491 6492 6493---------------------------------------- 649409 January 2003. Summary of changes for version 20030109. 6495 64961) ACPI CA Core Subsystem: 6497 6498Changed the behavior of the internal Buffer-to-String conversion 6499function. The current ACPI specification states that the contents 6500of the buffer are "converted to a string of two-character 6501hexadecimal numbers, each separated by a space". Unfortunately, 6502this definition is not backwards compatible with existing ACPI 1.0 6503implementations (although the behavior was not defined in the ACPI 65041.0 specification). The new behavior simply copies data from the 6505buffer to the string until a null character is found or the end of 6506the buffer is reached. The new String object is always null 6507terminated. This problem was seen during the generation of _BIF 6508battery data where incorrect strings were returned for battery 6509type, etc. This will also require an errata to the ACPI 6510specification. 6511 6512Renamed all instances of NATIVE_UINT and NATIVE_INT to 6513ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 6514 6515Copyright in all module headers (both Linux and non-Linux) has be 6516updated to 2003. 6517 6518Code and Data Size: Current core subsystem library sizes are shown 6519below. These are the code and data sizes for the acpica.lib 6520produced by the Microsoft Visual C++ 6.0 compiler, and these 6521values do not include any ACPI driver or OSPM code. The debug 6522version of the code includes the debug output trace mechanism and 6523has a much larger code and data size. Note that these values will 6524vary depending on the efficiency of the compiler and the compiler 6525options used during generation. 6526 6527 Previous Release 6528 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6529 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6530 Current Release: 6531 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6532 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6533 6534 65352) Linux 6536 6537Fixed an oops on module insertion/removal (Matthew Tippett) 6538 6539(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 6540 6541(2.5) Replace pr_debug (Randy Dunlap) 6542 6543(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 6544 6545(Both) Eliminate spawning of thread from timer callback, in favor 6546of schedule_work() 6547 6548(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 6549 6550(Both) Added define for Fixed Function HW region (Matthew Wilcox) 6551 6552(Both) Add missing statics to button.c (Pavel Machek) 6553 6554Several changes have been made to the source code translation 6555utility that generates the Linux Code in order to make the code 6556more "Linux-like": 6557 6558All typedefs on structs and unions have been removed in keeping 6559with the Linux coding style. 6560 6561Removed the non-Linux SourceSafe module revision number from each 6562module header. 6563 6564Completed major overhaul of symbols to be lowercased for linux. 6565Doubled the number of symbols that are lowercased. 6566 6567Fixed a problem where identifiers within procedure headers and 6568within quotes were not fully lower cased (they were left with a 6569starting capital.) 6570 6571Some C macros whose only purpose is to allow the generation of 16- 6572bit code are now completely removed in the Linux code, increasing 6573readability and maintainability. 6574 6575---------------------------------------- 6576 657712 December 2002. Summary of changes for version 20021212. 6578 6579 65801) ACPI CA Core Subsystem: 6581 6582Fixed a problem where the creation of a zero-length AML Buffer 6583would cause a fault. 6584 6585Fixed a problem where a Buffer object that pointed to a static AML 6586buffer (in an ACPI table) could inadvertently be deleted, causing 6587memory corruption. 6588 6589Fixed a problem where a user buffer (passed in to the external 6590ACPI CA interfaces) could be overwritten if the buffer was too 6591small to complete the operation, causing memory corruption. 6592 6593Fixed a problem in the Buffer-to-String conversion code where a 6594string of length one was always returned, regardless of the size 6595of the input Buffer object. 6596 6597Removed the NATIVE_CHAR data type across the entire source due to 6598lack of need and lack of consistent use. 6599 6600Code and Data Size: Current core subsystem library sizes are shown 6601below. These are the code and data sizes for the acpica.lib 6602produced by the Microsoft Visual C++ 6.0 compiler, and these 6603values do not include any ACPI driver or OSPM code. The debug 6604version of the code includes the debug output trace mechanism and 6605has a much larger code and data size. Note that these values will 6606vary depending on the efficiency of the compiler and the compiler 6607options used during generation. 6608 6609 Previous Release 6610 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6611 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6612 Current Release: 6613 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6614 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6615 6616 6617---------------------------------------- 661805 December 2002. Summary of changes for version 20021205. 6619 66201) ACPI CA Core Subsystem: 6621 6622Fixed a problem where a store to a String or Buffer object could 6623cause corruption of the DSDT if the object type being stored was 6624the same as the target object type and the length of the object 6625being stored was equal to or smaller than the original (existing) 6626target object. This was seen to cause corruption of battery _BIF 6627buffers if the _BIF method modified the buffer on the fly. 6628 6629Fixed a problem where an internal error was generated if a control 6630method invocation was used in an OperationRegion, Buffer, or 6631Package declaration. This was caused by the deferred parsing of 6632the control method and thus the deferred creation of the internal 6633method object. The solution to this problem was to create the 6634internal method object at the moment the method is encountered in 6635the first pass - so that subsequent references to the method will 6636able to obtain the required parameter count and thus properly 6637parse the method invocation. This problem presented itself as an 6638AE_AML_INTERNAL during the pass 1 parse phase during table load. 6639 6640Fixed a problem where the internal String object copy routine did 6641not always allocate sufficient memory for the target String object 6642and caused memory corruption. This problem was seen to cause 6643"Allocation already present in list!" errors as memory allocation 6644became corrupted. 6645 6646Implemented a new function for the evaluation of namespace objects 6647that allows the specification of the allowable return object 6648types. This simplifies a lot of code that checks for a return 6649object of one or more specific objects returned from the 6650evaluation (such as _STA, etc.) This may become and external 6651function if it would be useful to ACPI-related drivers. 6652 6653Completed another round of prefixing #defines with "ACPI_" for 6654clarity. 6655 6656Completed additional code restructuring to allow more modular 6657linking for iASL compiler and AcpiExec. Several files were split 6658creating new files. New files: nsparse.c dsinit.c evgpe.c 6659 6660Implemented an abort mechanism to terminate an executing control 6661method via the AML debugger. This feature is useful for debugging 6662control methods that depend (wait) for specific hardware 6663responses. 6664 6665Code and Data Size: Current core subsystem library sizes are shown 6666below. These are the code and data sizes for the acpica.lib 6667produced by the Microsoft Visual C++ 6.0 compiler, and these 6668values do not include any ACPI driver or OSPM code. The debug 6669version of the code includes the debug output trace mechanism and 6670has a much larger code and data size. Note that these values will 6671vary depending on the efficiency of the compiler and the compiler 6672options used during generation. 6673 6674 Previous Release 6675 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6676 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6677 Current Release: 6678 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6679 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6680 6681 66822) iASL Compiler/Disassembler 6683 6684Fixed a compiler code generation problem for "Interrupt" Resource 6685Descriptors. If specified in the ASL, the optional "Resource 6686Source Index" and "Resource Source" fields were not inserted into 6687the correct location within the AML resource descriptor, creating 6688an invalid descriptor. 6689 6690Fixed a disassembler problem for "Interrupt" resource descriptors. 6691The optional "Resource Source Index" and "Resource Source" fields 6692were ignored. 6693 6694 6695---------------------------------------- 669622 November 2002. Summary of changes for version 20021122. 6697 6698 66991) ACPI CA Core Subsystem: 6700 6701Fixed a reported problem where an object stored to a Method Local 6702or Arg was not copied to a new object during the store - the 6703object pointer was simply copied to the Local/Arg. This caused 6704all subsequent operations on the Local/Arg to also affect the 6705original source of the store operation. 6706 6707Fixed a problem where a store operation to a Method Local or Arg 6708was not completed properly if the Local/Arg contained a reference 6709(from RefOf) to a named field. The general-purpose store-to- 6710namespace-node code is now used so that this case is handled 6711automatically. 6712 6713Fixed a problem where the internal object copy routine would cause 6714a protection fault if the object being copied was a Package and 6715contained either 1) a NULL package element or 2) a nested sub- 6716package. 6717 6718Fixed a problem with the GPE initialization that resulted from an 6719ambiguity in the ACPI specification. One section of the 6720specification states that both the address and length of the GPE 6721block must be zero if the block is not supported. Another section 6722implies that only the address need be zero if the block is not 6723supported. The code has been changed so that both the address and 6724the length must be non-zero to indicate a valid GPE block (i.e., 6725if either the address or the length is zero, the GPE block is 6726invalid.) 6727 6728Code and Data Size: Current core subsystem library sizes are shown 6729below. These are the code and data sizes for the acpica.lib 6730produced by the Microsoft Visual C++ 6.0 compiler, and these 6731values do not include any ACPI driver or OSPM code. The debug 6732version of the code includes the debug output trace mechanism and 6733has a much larger code and data size. Note that these values will 6734vary depending on the efficiency of the compiler and the compiler 6735options used during generation. 6736 6737 Previous Release 6738 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6739 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6740 Current Release: 6741 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6742 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6743 6744 67452) Linux 6746 6747Cleaned up EC driver. Exported an external EC read/write 6748interface. By going through this, other drivers (most notably 6749sonypi) will be able to serialize access to the EC. 6750 6751 67523) iASL Compiler/Disassembler 6753 6754Implemented support to optionally generate include files for both 6755ASM and C (the -i switch). This simplifies BIOS development by 6756automatically creating include files that contain external 6757declarations for the symbols that are created within the 6758 6759(optionally generated) ASM and C AML source files. 6760 6761 6762---------------------------------------- 676315 November 2002. Summary of changes for version 20021115. 6764 67651) ACPI CA Core Subsystem: 6766 6767Fixed a memory leak problem where an error during resolution of 6768 6769method arguments during a method invocation from another method 6770failed to cleanup properly by deleting all successfully resolved 6771argument objects. 6772 6773Fixed a problem where the target of the Index() operator was not 6774correctly constructed if the source object was a package. This 6775problem has not been detected because the use of a target operand 6776with Index() is very rare. 6777 6778Fixed a problem with the Index() operator where an attempt was 6779made to delete the operand objects twice. 6780 6781Fixed a problem where an attempt was made to delete an operand 6782twice during execution of the CondRefOf() operator if the target 6783did not exist. 6784 6785Implemented the first of perhaps several internal create object 6786functions that create and initialize a specific object type. This 6787consolidates duplicated code wherever the object is created, thus 6788shrinking the size of the subsystem. 6789 6790Implemented improved debug/error messages for errors that occur 6791during nested method invocations. All executing method pathnames 6792are displayed (with the error) as the call stack is unwound - thus 6793simplifying debug. 6794 6795Fixed a problem introduced in the 10/02 release that caused 6796premature deletion of a buffer object if a buffer was used as an 6797ASL operand where an integer operand is required (Thus causing an 6798implicit object conversion from Buffer to Integer.) The change in 6799the 10/02 release was attempting to fix a memory leak (albeit 6800incorrectly.) 6801 6802Code and Data Size: Current core subsystem library sizes are shown 6803below. These are the code and data sizes for the acpica.lib 6804produced by the Microsoft Visual C++ 6.0 compiler, and these 6805values do not include any ACPI driver or OSPM code. The debug 6806version of the code includes the debug output trace mechanism and 6807has a much larger code and data size. Note that these values will 6808vary depending on the efficiency of the compiler and the compiler 6809options used during generation. 6810 6811 Previous Release 6812 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6813 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6814 Current Release: 6815 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6816 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6817 6818 68192) Linux 6820 6821Changed the implementation of the ACPI semaphores to use down() 6822instead of down_interruptable(). It is important that the 6823execution of ACPI control methods not be interrupted by signals. 6824Methods must run to completion, or the system may be left in an 6825unknown/unstable state. 6826 6827Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 6828(Shawn Starr) 6829 6830 68313) iASL Compiler/Disassembler 6832 6833 6834Changed the default location of output files. All output files 6835are now placed in the current directory by default instead of in 6836the directory of the source file. This change may affect some 6837existing makefiles, but it brings the behavior of the compiler in 6838line with other similar tools. The location of the output files 6839can be overridden with the -p command line switch. 6840 6841 6842---------------------------------------- 684311 November 2002. Summary of changes for version 20021111. 6844 6845 68460) ACPI Specification 2.0B is released and is now available at: 6847http://www.acpi.info/index.html 6848 6849 68501) ACPI CA Core Subsystem: 6851 6852Implemented support for the ACPI 2.0 SMBus Operation Regions. 6853This includes the early detection and handoff of the request to 6854the SMBus region handler (avoiding all of the complex field 6855support code), and support for the bidirectional return packet 6856from an SMBus write operation. This paves the way for the 6857development of SMBus drivers in each host operating system. 6858 6859Fixed a problem where the semaphore WAIT_FOREVER constant was 6860defined as 32 bits, but must be 16 bits according to the ACPI 6861specification. This had the side effect of causing ASL 6862Mutex/Event timeouts even though the ASL code requested a wait 6863forever. Changed all internal references to the ACPI timeout 6864parameter to 16 bits to prevent future problems. Changed the name 6865of WAIT_FOREVER to ACPI_WAIT_FOREVER. 6866 6867Code and Data Size: Current core subsystem library sizes are shown 6868below. These are the code and data sizes for the acpica.lib 6869produced by the Microsoft Visual C++ 6.0 compiler, and these 6870values do not include any ACPI driver or OSPM code. The debug 6871version of the code includes the debug output trace mechanism and 6872has a much larger code and data size. Note that these values will 6873vary depending on the efficiency of the compiler and the compiler 6874options used during generation. 6875 6876 Previous Release 6877 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6878 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6879 Current Release: 6880 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6881 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6882 6883 68842) Linux 6885 6886Module loading/unloading fixes (John Cagle) 6887 6888 68893) iASL Compiler/Disassembler 6890 6891Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 6892 6893Implemented support for the disassembly of all SMBus protocol 6894keywords (SMBQuick, SMBWord, etc.) 6895 6896---------------------------------------- 689701 November 2002. Summary of changes for version 20021101. 6898 6899 69001) ACPI CA Core Subsystem: 6901 6902Fixed a problem where platforms that have a GPE1 block but no GPE0 6903block were not handled correctly. This resulted in a "GPE 6904overlap" error message. GPE0 is no longer required. 6905 6906Removed code added in the previous release that inserted nodes 6907into the namespace in alphabetical order. This caused some side- 6908effects on various machines. The root cause of the problem is 6909still under investigation since in theory, the internal ordering 6910of the namespace nodes should not matter. 6911 6912 6913Enhanced error reporting for the case where a named object is not 6914found during control method execution. The full ACPI namepath 6915(name reference) of the object that was not found is displayed in 6916this case. 6917 6918Note: as a result of the overhaul of the namespace object types in 6919the previous release, the namespace nodes for the predefined 6920scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 6921instead of ACPI_TYPE_ANY. This simplifies the namespace 6922management code but may affect code that walks the namespace tree 6923looking for specific object types. 6924 6925Code and Data Size: Current core subsystem library sizes are shown 6926below. These are the code and data sizes for the acpica.lib 6927produced by the Microsoft Visual C++ 6.0 compiler, and these 6928values do not include any ACPI driver or OSPM code. The debug 6929version of the code includes the debug output trace mechanism and 6930has a much larger code and data size. Note that these values will 6931vary depending on the efficiency of the compiler and the compiler 6932options used during generation. 6933 6934 Previous Release 6935 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6936 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6937 Current Release: 6938 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6939 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6940 6941 69422) Linux 6943 6944Fixed a problem introduced in the previous release where the 6945Processor and Thermal objects were not recognized and installed in 6946/proc. This was related to the scope type change described above. 6947 6948 69493) iASL Compiler/Disassembler 6950 6951Implemented the -g option to get all of the required ACPI tables 6952from the registry and save them to files (Windows version of the 6953compiler only.) The required tables are the FADT, FACS, and DSDT. 6954 6955Added ACPI table checksum validation during table disassembly in 6956order to catch corrupted tables. 6957 6958 6959---------------------------------------- 696022 October 2002. Summary of changes for version 20021022. 6961 69621) ACPI CA Core Subsystem: 6963 6964Implemented a restriction on the Scope operator that the target 6965must already exist in the namespace at the time the operator is 6966encountered (during table load or method execution). In other 6967words, forward references are not allowed and Scope() cannot 6968create a new object. This changes the previous behavior where the 6969interpreter would create the name if not found. This new behavior 6970correctly enables the search-to-root algorithm during namespace 6971lookup of the target name. Because of this upsearch, this fixes 6972the known Compaq _SB_.OKEC problem and makes both the AML 6973interpreter and iASL compiler compatible with other ACPI 6974implementations. 6975 6976Completed a major overhaul of the internal ACPI object types for 6977the ACPI Namespace and the associated operand objects. Many of 6978these types had become obsolete with the introduction of the two- 6979pass namespace load. This cleanup simplifies the code and makes 6980the entire namespace load mechanism much clearer and easier to 6981understand. 6982 6983Improved debug output for tracking scope opening/closing to help 6984diagnose scoping issues. The old scope name as well as the new 6985scope name are displayed. Also improved error messages for 6986problems with ASL Mutex objects and error messages for GPE 6987problems. 6988 6989Cleaned up the namespace dump code, removed obsolete code. 6990 6991All string output (for all namespace/object dumps) now uses the 6992common ACPI string output procedure which handles escapes properly 6993and does not emit non-printable characters. 6994 6995Fixed some issues with constants in the 64-bit version of the 6996local C library (utclib.c) 6997 6998 69992) Linux 7000 7001EC Driver: No longer attempts to acquire the Global Lock at 7002interrupt level. 7003 7004 70053) iASL Compiler/Disassembler 7006 7007Implemented ACPI 2.0B grammar change that disallows all Type 1 and 70082 opcodes outside of a control method. This means that the 7009"executable" operators (versus the "namespace" operators) cannot 7010be used at the table level; they can only be used within a control 7011method. 7012 7013Implemented the restriction on the Scope() operator where the 7014target must already exist in the namespace at the time the 7015operator is encountered (during ASL compilation). In other words, 7016forward references are not allowed and Scope() cannot create a new 7017object. This makes the iASL compiler compatible with other ACPI 7018implementations and makes the Scope() implementation adhere to the 7019ACPI specification. 7020 7021Fixed a problem where namepath optimization for the Alias operator 7022was optimizing the wrong path (of the two namepaths.) This caused 7023a "Missing alias link" error message. 7024 7025Fixed a problem where an "unknown reserved name" warning could be 7026incorrectly generated for names like "_SB" when the trailing 7027underscore is not used in the original ASL. 7028 7029Fixed a problem where the reserved name check did not handle 7030NamePaths with multiple NameSegs correctly. The first nameseg of 7031the NamePath was examined instead of the last NameSeg. 7032 7033 7034---------------------------------------- 7035 703602 October 2002. Summary of changes for this release. 7037 7038 70391) ACPI CA Core Subsystem version 20021002: 7040 7041Fixed a problem where a store/copy of a string to an existing 7042string did not always set the string length properly in the String 7043object. 7044 7045Fixed a reported problem with the ToString operator where the 7046behavior was identical to the ToHexString operator instead of just 7047simply converting a raw buffer to a string data type. 7048 7049Fixed a problem where CopyObject and the other "explicit" 7050conversion operators were not updating the internal namespace node 7051type as part of the store operation. 7052 7053Fixed a memory leak during implicit source operand conversion 7054where the original object was not deleted if it was converted to a 7055new object of a different type. 7056 7057Enhanced error messages for all problems associated with namespace 7058lookups. Common procedure generates and prints the lookup name as 7059well as the formatted status. 7060 7061Completed implementation of a new design for the Alias support 7062within the namespace. The existing design did not handle the case 7063where a new object was assigned to one of the two names due to the 7064use of an explicit conversion operator, resulting in the two names 7065pointing to two different objects. The new design simply points 7066the Alias name to the original name node - not to the object. 7067This results in a level of indirection that must be handled in the 7068name resolution mechanism. 7069 7070Code and Data Size: Current core subsystem library sizes are shown 7071below. These are the code and data sizes for the acpica.lib 7072produced by the Microsoft Visual C++ 6.0 compiler, and these 7073values do not include any ACPI driver or OSPM code. The debug 7074version of the code includes the debug output trace mechanism and 7075has a larger code and data size. Note that these values will vary 7076depending on the efficiency of the compiler and the compiler 7077options used during generation. 7078 7079 Previous Release 7080 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 7081 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 7082 Current Release: 7083 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 7084 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 7085 7086 70872) Linux 7088 7089Initialize thermal driver's timer before it is used. (Knut 7090Neumann) 7091 7092Allow handling negative celsius values. (Kochi Takayoshi) 7093 7094Fix thermal management and make trip points. R/W (Pavel Machek) 7095 7096Fix /proc/acpi/sleep. (P. Christeas) 7097 7098IA64 fixes. (David Mosberger) 7099 7100Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 7101 7102Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 7103Brodowski) 7104 7105 71063) iASL Compiler/Disassembler 7107 7108Clarified some warning/error messages. 7109 7110 7111---------------------------------------- 711218 September 2002. Summary of changes for this release. 7113 7114 71151) ACPI CA Core Subsystem version 20020918: 7116 7117Fixed a reported problem with reference chaining (via the Index() 7118and RefOf() operators) in the ObjectType() and SizeOf() operators. 7119The definition of these operators includes the dereferencing of 7120all chained references to return information on the base object. 7121 7122Fixed a problem with stores to indexed package elements - the 7123existing code would not complete the store if an "implicit 7124conversion" was not performed. In other words, if the existing 7125object (package element) was to be replaced completely, the code 7126didn't handle this case. 7127 7128Relaxed typechecking on the ASL "Scope" operator to allow the 7129target name to refer to an object of type Integer, String, or 7130Buffer, in addition to the scoping object types (Device, 7131predefined Scopes, Processor, PowerResource, and ThermalZone.) 7132This allows existing AML code that has workarounds for a bug in 7133Windows to function properly. A warning is issued, however. This 7134affects both the AML interpreter and the iASL compiler. Below is 7135an example of this type of ASL code: 7136 7137 Name(DEB,0x00) 7138 Scope(DEB) 7139 { 7140 7141Fixed some reported problems with 64-bit integer support in the 7142local implementation of C library functions (clib.c) 7143 7144 71452) Linux 7146 7147Use ACPI fix map region instead of IOAPIC region, since it is 7148undefined in non-SMP. 7149 7150Ensure that the SCI has the proper polarity and trigger, even on 7151systems that do not have an interrupt override entry in the MADT. 7152 71532.5 big driver reorganization (Pat Mochel) 7154 7155Use early table mapping code from acpitable.c (Andi Kleen) 7156 7157New blacklist entries (Andi Kleen) 7158 7159Blacklist improvements. Split blacklist code out into a separate 7160file. Move checking the blacklist to very early. Previously, we 7161would use ACPI tables, and then halfway through init, check the 7162blacklist -- too late. Now, it's early enough to completely fall- 7163back to non-ACPI. 7164 7165 71663) iASL Compiler/Disassembler version 20020918: 7167 7168Fixed a problem where the typechecking code didn't know that an 7169alias could point to a method. In other words, aliases were not 7170being dereferenced during typechecking. 7171 7172 7173---------------------------------------- 717429 August 2002. Summary of changes for this release. 7175 71761) ACPI CA Core Subsystem Version 20020829: 7177 7178If the target of a Scope() operator already exists, it must be an 7179object type that actually opens a scope -- such as a Device, 7180Method, Scope, etc. This is a fatal runtime error. Similar error 7181check has been added to the iASL compiler also. 7182 7183Tightened up the namespace load to disallow multiple names in the 7184same scope. This previously was allowed if both objects were of 7185the same type. (i.e., a lookup was the same as entering a new 7186name). 7187 7188 71892) Linux 7190 7191Ensure that the ACPI interrupt has the proper trigger and 7192polarity. 7193 7194local_irq_disable is extraneous. (Matthew Wilcox) 7195 7196Make "acpi=off" actually do what it says, and not use the ACPI 7197interpreter *or* the tables. 7198 7199Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 7200Takayoshi) 7201 7202 72033) iASL Compiler/Disassembler Version 20020829: 7204 7205Implemented namepath optimization for name declarations. For 7206example, a declaration like "Method (\_SB_.ABCD)" would get 7207optimized to "Method (ABCD)" if the declaration is within the 7208\_SB_ scope. This optimization is in addition to the named 7209reference path optimization first released in the previous 7210version. This would seem to complete all possible optimizations 7211for namepaths within the ASL/AML. 7212 7213If the target of a Scope() operator already exists, it must be an 7214object type that actually opens a scope -- such as a Device, 7215Method, Scope, etc. 7216 7217Implemented a check and warning for unreachable code in the same 7218block below a Return() statement. 7219 7220Fixed a problem where the listing file was not generated if the 7221compiler aborted if the maximum error count was exceeded (200). 7222 7223Fixed a problem where the typechecking of method return values was 7224broken. This includes the check for a return value when the 7225method is invoked as a TermArg (a return value is expected.) 7226 7227Fixed a reported problem where EOF conditions during a quoted 7228string or comment caused a fault. 7229 7230 7231---------------------------------------- 723215 August 2002. Summary of changes for this release. 7233 72341) ACPI CA Core Subsystem Version 20020815: 7235 7236Fixed a reported problem where a Store to a method argument that 7237contains a reference did not perform the indirect store correctly. 7238This problem was created during the conversion to the new 7239reference object model - the indirect store to a method argument 7240code was not updated to reflect the new model. 7241 7242Reworked the ACPI mode change code to better conform to ACPI 2.0, 7243handle corner cases, and improve code legibility (Kochi Takayoshi) 7244 7245Fixed a problem with the pathname parsing for the carat (^) 7246prefix. The heavy use of the carat operator by the new namepath 7247optimization in the iASL compiler uncovered a problem with the AML 7248interpreter handling of this prefix. In the case where one or 7249more carats precede a single nameseg, the nameseg was treated as 7250standalone and the search rule (to root) was inadvertently 7251applied. This could cause both the iASL compiler and the 7252interpreter to find the wrong object or to miss the error that 7253should occur if the object does not exist at that exact pathname. 7254 7255Found and fixed the problem where the HP Pavilion DSDT would not 7256load. This was a relatively minor tweak to the table loading code 7257(a problem caused by the unexpected encounter with a method 7258invocation not within a control method), but it does not solve the 7259overall issue of the execution of AML code at the table level. 7260This investigation is still ongoing. 7261 7262Code and Data Size: Current core subsystem library sizes are shown 7263below. These are the code and data sizes for the acpica.lib 7264produced by the Microsoft Visual C++ 6.0 compiler, and these 7265values do not include any ACPI driver or OSPM code. The debug 7266version of the code includes the debug output trace mechanism and 7267has a larger code and data size. Note that these values will vary 7268depending on the efficiency of the compiler and the compiler 7269options used during generation. 7270 7271 Previous Release 7272 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 7273 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 7274 Current Release: 7275 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 7276 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 7277 7278 72792) Linux 7280 7281Remove redundant slab.h include (Brad Hards) 7282 7283Fix several bugs in thermal.c (Herbert Nachtnebel) 7284 7285Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 7286 7287Change acpi_system_suspend to use updated irq functions (Pavel 7288Machek) 7289 7290Export acpi_get_firmware_table (Matthew Wilcox) 7291 7292Use proper root proc entry for ACPI (Kochi Takayoshi) 7293 7294Fix early-boot table parsing (Bjorn Helgaas) 7295 7296 72973) iASL Compiler/Disassembler 7298 7299Reworked the compiler options to make them more consistent and to 7300use two-letter options where appropriate. We were running out of 7301sensible letters. This may break some makefiles, so check the 7302current options list by invoking the compiler with no parameters. 7303 7304Completed the design and implementation of the ASL namepath 7305optimization option for the compiler. This option optimizes all 7306references to named objects to the shortest possible path. The 7307first attempt tries to utilize a single nameseg (4 characters) and 7308the "search-to-root" algorithm used by the interpreter. If that 7309cannot be used (because either the name is not in the search path 7310or there is a conflict with another object with the same name), 7311the pathname is optimized using the carat prefix (usually a 7312shorter string than specifying the entire path from the root.) 7313 7314Implemented support to obtain the DSDT from the Windows registry 7315(when the disassembly option is specified with no input file). 7316Added this code as the implementation for AcpiOsTableOverride in 7317the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 7318utility) to scan memory for the DSDT to the AcpiOsTableOverride 7319function in the DOS OSL to make the disassembler truly OS 7320independent. 7321 7322Implemented a new option to disassemble and compile in one step. 7323When used without an input filename, this option will grab the 7324DSDT from the local machine, disassemble it, and compile it in one 7325step. 7326 7327Added a warning message for invalid escapes (a backslash followed 7328by any character other than the allowable escapes). This catches 7329the quoted string error "\_SB_" (which should be "\\_SB_" ). 7330 7331Also, there are numerous instances in the ACPI specification where 7332this error occurs. 7333 7334Added a compiler option to disable all optimizations. This is 7335basically the "compatibility mode" because by using this option, 7336the AML code will come out exactly the same as other ASL 7337compilers. 7338 7339Added error messages for incorrectly ordered dependent resource 7340functions. This includes: missing EndDependentFn macro at end of 7341dependent resource list, nested dependent function macros (both 7342start and end), and missing StartDependentFn macro. These are 7343common errors that should be caught at compile time. 7344 7345Implemented _OSI support for the disassembler and compiler. _OSI 7346must be included in the namespace for proper disassembly (because 7347the disassembler must know the number of arguments.) 7348 7349Added an "optimization" message type that is optional (off by 7350default). This message is used for all optimizations - including 7351constant folding, integer optimization, and namepath optimization. 7352 7353---------------------------------------- 735425 July 2002. Summary of changes for this release. 7355 7356 73571) ACPI CA Core Subsystem Version 20020725: 7358 7359The AML Disassembler has been enhanced to produce compilable ASL 7360code and has been integrated into the iASL compiler (see below) as 7361well as the single-step disassembly for the AML debugger and the 7362disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 7363resource templates and macros are fully supported. The 7364disassembler has been tested on over 30 different AML files, 7365producing identical AML when the resulting disassembled ASL file 7366is recompiled with the same ASL compiler. 7367 7368Modified the Resource Manager to allow zero interrupts and zero 7369dma channels during the GetCurrentResources call. This was 7370causing problems on some platforms. 7371 7372Added the AcpiOsRedirectOutput interface to the OSL to simplify 7373output redirection for the AcpiOsPrintf and AcpiOsVprintf 7374interfaces. 7375 7376Code and Data Size: Current core subsystem library sizes are shown 7377below. These are the code and data sizes for the acpica.lib 7378produced by the Microsoft Visual C++ 6.0 compiler, and these 7379values do not include any ACPI driver or OSPM code. The debug 7380version of the code includes the debug output trace mechanism and 7381has a larger code and data size. Note that these values will vary 7382depending on the efficiency of the compiler and the compiler 7383options used during generation. 7384 7385 Previous Release 7386 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7387 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7388 Current Release: 7389 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 7390 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 7391 7392 73932) Linux 7394 7395Fixed a panic in the EC driver (Dominik Brodowski) 7396 7397Implemented checksum of the R/XSDT itself during Linux table scan 7398(Richard Schaal) 7399 7400 74013) iASL compiler 7402 7403The AML disassembler is integrated into the compiler. The "-d" 7404option invokes the disassembler to completely disassemble an 7405input AML file, producing as output a text ASL file with the 7406extension ".dsl" (to avoid name collisions with existing .asl 7407source files.) A future enhancement will allow the disassembler 7408to obtain the BIOS DSDT from the registry under Windows. 7409 7410Fixed a problem with the VendorShort and VendorLong resource 7411descriptors where an invalid AML sequence was created. 7412 7413Implemented a fix for BufferData term in the ASL parser. It was 7414inadvertently defined twice, allowing invalid syntax to pass and 7415causing reduction conflicts. 7416 7417Fixed a problem where the Ones opcode could get converted to a 7418value of zero if "Ones" was used where a byte, word or dword value 7419was expected. The 64-bit value is now truncated to the correct 7420size with the correct value. 7421 7422 7423 7424---------------------------------------- 742502 July 2002. Summary of changes for this release. 7426 7427 74281) ACPI CA Core Subsystem Version 20020702: 7429 7430The Table Manager code has been restructured to add several new 7431features. Tables that are not required by the core subsystem 7432(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 7433validated in any way and are returned from AcpiGetFirmwareTable if 7434requested. The AcpiOsTableOverride interface is now called for 7435each table that is loaded by the subsystem in order to allow the 7436host to override any table it chooses. Previously, only the DSDT 7437could be overridden. Added one new files, tbrsdt.c and 7438tbgetall.c. 7439 7440Fixed a problem with the conversion of internal package objects to 7441external objects (when a package is returned from a control 7442method.) The return buffer length was set to zero instead of the 7443proper length of the package object. 7444 7445Fixed a reported problem with the use of the RefOf and DeRefOf 7446operators when passing reference arguments to control methods. A 7447new type of Reference object is used internally for references 7448produced by the RefOf operator. 7449 7450Added additional error messages in the Resource Manager to explain 7451AE_BAD_DATA errors when they occur during resource parsing. 7452 7453Split the AcpiEnableSubsystem into two primitives to enable a 7454finer granularity initialization sequence. These two calls should 7455be called in this order: AcpiEnableSubsystem (flags), 7456AcpiInitializeObjects (flags). The flags parameter remains the 7457same. 7458 7459 74602) Linux 7461 7462Updated the ACPI utilities module to understand the new style of 7463fully resolved package objects that are now returned from the core 7464subsystem. This eliminates errors of the form: 7465 7466 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 7467 acpi_utils-0430 [145] acpi_evaluate_reference: 7468 Invalid element in package (not a device reference) 7469 7470The method evaluation utility uses the new buffer allocation 7471scheme instead of calling AcpiEvaluate Object twice. 7472 7473Added support for ECDT. This allows the use of the Embedded 7474 7475Controller before the namespace has been fully initialized, which 7476is necessary for ACPI 2.0 support, and for some laptops to 7477initialize properly. (Laptops using ECDT are still rare, so only 7478limited testing was performed of the added functionality.) 7479 7480Fixed memory leaks in the EC driver. 7481 7482Eliminated a brittle code structure in acpi_bus_init(). 7483 7484Eliminated the acpi_evaluate() helper function in utils.c. It is 7485no longer needed since acpi_evaluate_object can optionally 7486allocate memory for the return object. 7487 7488Implemented fix for keyboard hang when getting battery readings on 7489some systems (Stephen White) 7490 7491PCI IRQ routing update (Dominik Brodowski) 7492 7493Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 7494support 7495 7496---------------------------------------- 749711 June 2002. Summary of changes for this release. 7498 7499 75001) ACPI CA Core Subsystem Version 20020611: 7501 7502Fixed a reported problem where constants such as Zero and One 7503appearing within _PRT packages were not handled correctly within 7504the resource manager code. Originally reported against the ASL 7505compiler because the code generator now optimizes integers to 7506their minimal AML representation (i.e. AML constants if possible.) 7507The _PRT code now handles all AML constant opcodes correctly 7508(Zero, One, Ones, Revision). 7509 7510Fixed a problem with the Concatenate operator in the AML 7511interpreter where a buffer result object was incorrectly marked as 7512not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 7513 7514All package sub-objects are now fully resolved before they are 7515returned from the external ACPI interfaces. This means that name 7516strings are resolved to object handles, and constant operators 7517(Zero, One, Ones, Revision) are resolved to Integers. 7518 7519Implemented immediate resolution of the AML Constant opcodes 7520(Zero, One, Ones, Revision) to Integer objects upon detection 7521within the AML stream. This has simplified and reduced the 7522generated code size of the subsystem by eliminating about 10 7523switch statements for these constants (which previously were 7524contained in Reference objects.) The complicating issues are that 7525the Zero opcode is used as a "placeholder" for unspecified 7526optional target operands and stores to constants are defined to be 7527no-ops. 7528 7529Code and Data Size: Current core subsystem library sizes are shown 7530below. These are the code and data sizes for the acpica.lib 7531produced by the Microsoft Visual C++ 6.0 compiler, and these 7532values do not include any ACPI driver or OSPM code. The debug 7533version of the code includes the debug output trace mechanism and 7534has a larger code and data size. Note that these values will vary 7535depending on the efficiency of the compiler and the compiler 7536options used during generation. 7537 7538 Previous Release 7539 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7540 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7541 Current Release: 7542 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7543 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7544 7545 75462) Linux 7547 7548 7549Added preliminary support for obtaining _TRA data for PCI root 7550bridges (Bjorn Helgaas). 7551 7552 75533) iASL Compiler Version X2046: 7554 7555Fixed a problem where the "_DDN" reserved name was defined to be a 7556control method with one argument. There are no arguments, and 7557_DDN does not have to be a control method. 7558 7559Fixed a problem with the Linux version of the compiler where the 7560source lines printed with error messages were the wrong lines. 7561This turned out to be the "LF versus CR/LF" difference between 7562Windows and Unix. This appears to be the longstanding issue 7563concerning listing output and error messages. 7564 7565Fixed a problem with the Linux version of compiler where opcode 7566names within error messages were wrong. This was caused by a 7567slight difference in the output of the Flex tool on Linux versus 7568Windows. 7569 7570Fixed a problem with the Linux compiler where the hex output files 7571contained some garbage data caused by an internal buffer overrun. 7572 7573 7574---------------------------------------- 757517 May 2002. Summary of changes for this release. 7576 7577 75781) ACPI CA Core Subsystem Version 20020517: 7579 7580Implemented a workaround to an BIOS bug discovered on the HP 7581OmniBook where the FADT revision number and the table size are 7582inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 7583behavior is to fallback to using only the ACPI 1.0 fields of the 7584FADT if the table is too small to be a ACPI 2.0 table as claimed 7585by the revision number. Although this is a BIOS bug, this is a 7586case where the workaround is simple enough and with no side 7587effects, so it seemed prudent to add it. A warning message is 7588issued, however. 7589 7590Implemented minimum size checks for the fixed-length ACPI tables - 7591- the FADT and FACS, as well as consistency checks between the 7592revision number and the table size. 7593 7594Fixed a reported problem in the table override support where the 7595new table pointer was incorrectly treated as a physical address 7596instead of a logical address. 7597 7598Eliminated the use of the AE_AML_ERROR exception and replaced it 7599with more descriptive codes. 7600 7601Fixed a problem where an exception would occur if an ASL Field was 7602defined with no named Field Units underneath it (used by some 7603index fields). 7604 7605Code and Data Size: Current core subsystem library sizes are shown 7606below. These are the code and data sizes for the acpica.lib 7607produced by the Microsoft Visual C++ 6.0 compiler, and these 7608values do not include any ACPI driver or OSPM code. The debug 7609version of the code includes the debug output trace mechanism and 7610has a larger code and data size. Note that these values will vary 7611depending on the efficiency of the compiler and the compiler 7612options used during generation. 7613 7614 Previous Release 7615 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7616 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7617 Current Release: 7618 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7619 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7620 7621 7622 76232) Linux 7624 7625Much work done on ACPI init (MADT and PCI IRQ routing support). 7626(Paul D. and Dominik Brodowski) 7627 7628Fix PCI IRQ-related panic on boot (Sam Revitch) 7629 7630Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 7631 7632Fix "MHz" typo (Dominik Brodowski) 7633 7634Fix RTC year 2000 issue (Dominik Brodowski) 7635 7636Preclude multiple button proc entries (Eric Brunet) 7637 7638Moved arch-specific code out of include/platform/aclinux.h 7639 76403) iASL Compiler Version X2044: 7641 7642Implemented error checking for the string used in the EISAID macro 7643(Usually used in the definition of the _HID object.) The code now 7644strictly enforces the PnP format - exactly 7 characters, 3 7645uppercase letters and 4 hex digits. 7646 7647If a raw string is used in the definition of the _HID object 7648(instead of the EISAID macro), the string must contain all 7649alphanumeric characters (e.g., "*PNP0011" is not allowed because 7650of the asterisk.) 7651 7652Implemented checking for invalid use of ACPI reserved names for 7653most of the name creation operators (Name, Device, Event, Mutex, 7654OperationRegion, PowerResource, Processor, and ThermalZone.) 7655Previously, this check was only performed for control methods. 7656 7657Implemented an additional check on the Name operator to emit an 7658error if a reserved name that must be implemented in ASL as a 7659control method is used. We know that a reserved name must be a 7660method if it is defined with input arguments. 7661 7662The warning emitted when a namespace object reference is not found 7663during the cross reference phase has been changed into an error. 7664The "External" directive should be used for names defined in other 7665modules. 7666 7667 76684) Tools and Utilities 7669 7670The 16-bit tools (adump16 and aexec16) have been regenerated and 7671tested. 7672 7673Fixed a problem with the output of both acpidump and adump16 where 7674the indentation of closing parentheses and brackets was not 7675 7676aligned properly with the parent block. 7677 7678 7679---------------------------------------- 768003 May 2002. Summary of changes for this release. 7681 7682 76831) ACPI CA Core Subsystem Version 20020503: 7684 7685Added support a new OSL interface that allows the host operating 7686 7687system software to override the DSDT found in the firmware - 7688AcpiOsTableOverride. With this interface, the OSL can examine the 7689version of the firmware DSDT and replace it with a different one 7690if desired. 7691 7692Added new external interfaces for accessing ACPI registers from 7693device drivers and other system software - AcpiGetRegister and 7694AcpiSetRegister. This was simply an externalization of the 7695existing AcpiHwBitRegister interfaces. 7696 7697Fixed a regression introduced in the previous build where the 7698ASL/AML CreateField operator always returned an error, 7699"destination must be a NS Node". 7700 7701Extended the maximum time (before failure) to successfully enable 7702ACPI mode to 3 seconds. 7703 7704Code and Data Size: Current core subsystem library sizes are shown 7705below. These are the code and data sizes for the acpica.lib 7706produced by the Microsoft Visual C++ 6.0 compiler, and these 7707values do not include any ACPI driver or OSPM code. The debug 7708version of the code includes the debug output trace mechanism and 7709has a larger code and data size. Note that these values will vary 7710depending on the efficiency of the compiler and the compiler 7711options used during generation. 7712 7713 Previous Release 7714 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7715 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7716 Current Release: 7717 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7718 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7719 7720 77212) Linux 7722 7723Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 7724free. While 3 out of 4 of our in-house systems work fine, the last 7725one still hangs when testing the LAPIC timer. 7726 7727Renamed many files in 2.5 kernel release to omit "acpi_" from the 7728name. 7729 7730Added warning on boot for Presario 711FR. 7731 7732Sleep improvements (Pavel Machek) 7733 7734ACPI can now be built without CONFIG_PCI enabled. 7735 7736IA64: Fixed memory map functions (JI Lee) 7737 7738 77393) iASL Compiler Version X2043: 7740 7741Added support to allow the compiler to be integrated into the MS 7742VC++ development environment for one-button compilation of single 7743files or entire projects -- with error-to-source-line mapping. 7744 7745Implemented support for compile-time constant folding for the 7746Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 7747specification. This allows the ASL writer to use expressions 7748instead of Integer/Buffer/String constants in terms that must 7749evaluate to constants at compile time and will also simplify the 7750emitted AML in any such sub-expressions that can be folded 7751(evaluated at compile-time.) This increases the size of the 7752compiler significantly because a portion of the ACPI CA AML 7753interpreter is included within the compiler in order to pre- 7754evaluate constant expressions. 7755 7756 7757Fixed a problem with the "Unicode" ASL macro that caused the 7758compiler to fault. (This macro is used in conjunction with the 7759_STR reserved name.) 7760 7761Implemented an AML opcode optimization to use the Zero, One, and 7762Ones opcodes where possible to further reduce the size of integer 7763constants and thus reduce the overall size of the generated AML 7764code. 7765 7766Implemented error checking for new reserved terms for ACPI version 77672.0A. 7768 7769Implemented the -qr option to display the current list of ACPI 7770reserved names known to the compiler. 7771 7772Implemented the -qc option to display the current list of ASL 7773operators that are allowed within constant expressions and can 7774therefore be folded at compile time if the operands are constants. 7775 7776 77774) Documentation 7778 7779Updated the Programmer's Reference for new interfaces, data types, 7780and memory allocation model options. 7781 7782Updated the iASL Compiler User Reference to apply new format and 7783add information about new features and options. 7784 7785---------------------------------------- 778619 April 2002. Summary of changes for this release. 7787 77881) ACPI CA Core Subsystem Version 20020419: 7789 7790The source code base for the Core Subsystem has been completely 7791cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 7792versions. The Lint option files used are included in the 7793/acpi/generate/lint directory. 7794 7795Implemented enhanced status/error checking across the entire 7796Hardware manager subsystem. Any hardware errors (reported from 7797the OSL) are now bubbled up and will abort a running control 7798method. 7799 7800 7801Fixed a problem where the per-ACPI-table integer width (32 or 64) 7802was stored only with control method nodes, causing a fault when 7803non-control method code was executed during table loading. The 7804solution implemented uses a global variable to indicate table 7805width across the entire ACPI subsystem. Therefore, ACPI CA does 7806not support mixed integer widths across different ACPI tables 7807(DSDT, SSDT). 7808 7809Fixed a problem where NULL extended fields (X fields) in an ACPI 78102.0 ACPI FADT caused the table load to fail. Although the 7811existing ACPI specification is a bit fuzzy on this topic, the new 7812behavior is to fall back on a ACPI 1.0 field if the corresponding 7813ACPI 2.0 X field is zero (even though the table revision indicates 7814a full ACPI 2.0 table.) The ACPI specification will be updated to 7815clarify this issue. 7816 7817Fixed a problem with the SystemMemory operation region handler 7818where memory was always accessed byte-wise even if the AML- 7819specified access width was larger than a byte. This caused 7820problems on systems with memory-mapped I/O. Memory is now 7821accessed with the width specified. On systems that do not support 7822non-aligned transfers, a check is made to guarantee proper address 7823alignment before proceeding in order to avoid an AML-caused 7824alignment fault within the kernel. 7825 7826 7827Fixed a problem with the ExtendedIrq resource where only one byte 7828of the 4-byte Irq field was extracted. 7829 7830Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 7831function was out of date and required a rewrite. 7832 7833Code and Data Size: Current core subsystem library sizes are shown 7834below. These are the code and data sizes for the acpica.lib 7835produced by the Microsoft Visual C++ 6.0 compiler, and these 7836values do not include any ACPI driver or OSPM code. The debug 7837version of the code includes the debug output trace mechanism and 7838has a larger code and data size. Note that these values will vary 7839depending on the efficiency of the compiler and the compiler 7840options used during generation. 7841 7842 Previous Release 7843 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7844 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7845 Current Release: 7846 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7847 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7848 7849 78502) Linux 7851 7852PCI IRQ routing fixes (Dominik Brodowski) 7853 7854 78553) iASL Compiler Version X2042: 7856 7857Implemented an additional compile-time error check for a field 7858unit whose size + minimum access width would cause a run-time 7859access beyond the end-of-region. Previously, only the field size 7860itself was checked. 7861 7862The Core subsystem and iASL compiler now share a common parse 7863object in preparation for compile-time evaluation of the type 78643/4/5 ASL operators. 7865 7866 7867---------------------------------------- 7868Summary of changes for this release: 03_29_02 7869 78701) ACPI CA Core Subsystem Version 20020329: 7871 7872Implemented support for late evaluation of TermArg operands to 7873Buffer and Package objects. This allows complex expressions to be 7874used in the declarations of these object types. 7875 7876Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 78771.0, if the field was larger than 32 bits, it was returned as a 7878buffer - otherwise it was returned as an integer. In ACPI 2.0, 7879the field is returned as a buffer only if the field is larger than 788064 bits. The TableRevision is now considered when making this 7881conversion to avoid incompatibility with existing ASL code. 7882 7883Implemented logical addressing for AcpiOsGetRootPointer. This 7884allows an RSDP with either a logical or physical address. With 7885this support, the host OS can now override all ACPI tables with 7886one logical RSDP. Includes implementation of "typed" pointer 7887support to allow a common data type for both physical and logical 7888pointers internally. This required a change to the 7889AcpiOsGetRootPointer interface. 7890 7891Implemented the use of ACPI 2.0 Generic Address Structures for all 7892GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 7893mapped I/O for these ACPI features. 7894 7895Initialization now ignores not only non-required tables (All 7896tables other than the FADT, FACS, DSDT, and SSDTs), but also does 7897not validate the table headers of unrecognized tables. 7898 7899Fixed a problem where a notify handler could only be 7900installed/removed on an object of type Device. All "notify" 7901 7902objects are now supported -- Devices, Processor, Power, and 7903Thermal. 7904 7905Removed most verbosity from the ACPI_DB_INFO debug level. Only 7906critical information is returned when this debug level is enabled. 7907 7908Code and Data Size: Current core subsystem library sizes are shown 7909below. These are the code and data sizes for the acpica.lib 7910produced by the Microsoft Visual C++ 6.0 compiler, and these 7911values do not include any ACPI driver or OSPM code. The debug 7912version of the code includes the debug output trace mechanism and 7913has a larger code and data size. Note that these values will vary 7914depending on the efficiency of the compiler and the compiler 7915options used during generation. 7916 7917 Previous Release 7918 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7919 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7920 Current Release: 7921 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7922 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7923 7924 79252) Linux: 7926 7927The processor driver (acpi_processor.c) now fully supports ACPI 79282.0-based processor performance control (e.g. Intel(R) 7929SpeedStep(TM) technology) Note that older laptops that only have 7930the Intel "applet" interface are not supported through this. The 7931'limit' and 'performance' interface (/proc) are fully functional. 7932[Note that basic policy for controlling performance state 7933transitions will be included in the next version of ospmd.] The 7934idle handler was modified to more aggressively use C2, and PIIX4 7935errata handling underwent a complete overhaul (big thanks to 7936Dominik Brodowski). 7937 7938Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 7939based devices in the ACPI namespace are now dynamically bound 7940(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 7941This allows, among other things, ACPI to resolve bus numbers for 7942subordinate PCI bridges. 7943 7944Enhanced PCI IRQ routing to get the proper bus number for _PRT 7945entries defined underneath PCI bridges. 7946 7947Added IBM 600E to bad bios list due to invalid _ADR value for 7948PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 7949 7950In the process of adding full MADT support (e.g. IOAPIC) for IA32 7951(acpi.c, mpparse.c) -- stay tuned. 7952 7953Added back visual differentiation between fixed-feature and 7954control-method buttons in dmesg. Buttons are also subtyped (e.g. 7955button/power/PWRF) to simplify button identification. 7956 7957We no longer use -Wno-unused when compiling debug. Please ignore 7958any "_THIS_MODULE defined but not used" messages. 7959 7960Can now shut down the system using "magic sysrq" key. 7961 7962 79633) iASL Compiler version 2041: 7964 7965Fixed a problem where conversion errors for hex/octal/decimal 7966constants were not reported. 7967 7968Implemented a fix for the General Register template Address field. 7969This field was 8 bits when it should be 64. 7970 7971Fixed a problem where errors/warnings were no longer being emitted 7972within the listing output file. 7973 7974Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 7975exactly 4 characters, alphanumeric only. 7976 7977 7978 7979 7980---------------------------------------- 7981Summary of changes for this release: 03_08_02 7982 7983 79841) ACPI CA Core Subsystem Version 20020308: 7985 7986Fixed a problem with AML Fields where the use of the "AccessAny" 7987keyword could cause an interpreter error due to attempting to read 7988or write beyond the end of the parent Operation Region. 7989 7990Fixed a problem in the SystemMemory Operation Region handler where 7991an attempt was made to map memory beyond the end of the region. 7992This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 7993errors on some Linux systems. 7994 7995Fixed a problem where the interpreter/namespace "search to root" 7996algorithm was not functioning for some object types. Relaxed the 7997internal restriction on the search to allow upsearches for all 7998external object types as well as most internal types. 7999 8000 80012) Linux: 8002 8003We now use safe_halt() macro versus individual calls to sti | hlt. 8004 8005Writing to the processor limit interface should now work. "echo 1" 8006will increase the limit, 2 will decrease, and 0 will reset to the 8007 8008default. 8009 8010 80113) ASL compiler: 8012 8013Fixed segfault on Linux version. 8014 8015 8016---------------------------------------- 8017Summary of changes for this release: 02_25_02 8018 80191) ACPI CA Core Subsystem: 8020 8021 8022Fixed a problem where the GPE bit masks were not initialized 8023properly, causing erratic GPE behavior. 8024 8025Implemented limited support for multiple calling conventions. The 8026code can be generated with either the VPL (variable parameter 8027list, or "C") convention, or the FPL (fixed parameter list, or 8028"Pascal") convention. The core subsystem is about 3.4% smaller 8029when generated with FPL. 8030 8031 80322) Linux 8033 8034Re-add some /proc/acpi/event functionality that was lost during 8035the rewrite 8036 8037Resolved issue with /proc events for fixed-feature buttons showing 8038up as the system device. 8039 8040Fixed checks on C2/C3 latencies to be inclusive of maximum values. 8041 8042Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 8043 8044Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 8045 8046Fixed limit interface & usage to fix bugs with passive cooling 8047hysterisis. 8048 8049Restructured PRT support. 8050 8051 8052---------------------------------------- 8053Summary of changes for this label: 02_14_02 8054 8055 80561) ACPI CA Core Subsystem: 8057 8058Implemented support in AcpiLoadTable to allow loading of FACS and 8059FADT tables. 8060 8061Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 8062been removed. All 64-bit platforms should be migrated to the ACPI 80632.0 tables. The actbl71.h header has been removed from the source 8064tree. 8065 8066All C macros defined within the subsystem have been prefixed with 8067"ACPI_" to avoid collision with other system include files. 8068 8069Removed the return value for the two AcpiOsPrint interfaces, since 8070it is never used and causes lint warnings for ignoring the return 8071value. 8072 8073Added error checking to all internal mutex acquire and release 8074calls. Although a failure from one of these interfaces is 8075probably a fatal system error, these checks will cause the 8076immediate abort of the currently executing method or interface. 8077 8078Fixed a problem where the AcpiSetCurrentResources interface could 8079fault. This was a side effect of the deployment of the new memory 8080allocation model. 8081 8082Fixed a couple of problems with the Global Lock support introduced 8083in the last major build. The "common" (1.0/2.0) internal FACS was 8084being overwritten with the FACS signature and clobbering the 8085Global Lock pointer. Also, the actual firmware FACS was being 8086unmapped after construction of the "common" FACS, preventing 8087access to the actual Global Lock field within it. The "common" 8088internal FACS is no longer installed as an actual ACPI table; it 8089is used simply as a global. 8090 8091Code and Data Size: Current core subsystem library sizes are shown 8092below. These are the code and data sizes for the acpica.lib 8093produced by the Microsoft Visual C++ 6.0 compiler, and these 8094values do not include any ACPI driver or OSPM code. The debug 8095version of the code includes the debug output trace mechanism and 8096has a larger code and data size. Note that these values will vary 8097depending on the efficiency of the compiler and the compiler 8098options used during generation. 8099 8100 Previous Release (02_07_01) 8101 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 8102 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 8103 Current Release: 8104 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 8105 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 8106 8107 81082) Linux 8109 8110Updated Linux-specific code for core macro and OSL interface 8111changes described above. 8112 8113Improved /proc/acpi/event. It now can be opened only once and has 8114proper poll functionality. 8115 8116Fixed and restructured power management (acpi_bus). 8117 8118Only create /proc "view by type" when devices of that class exist. 8119 8120Fixed "charging/discharging" bug (and others) in acpi_battery. 8121 8122Improved thermal zone code. 8123 8124 81253) ASL Compiler, version X2039: 8126 8127 8128Implemented the new compiler restriction on ASL String hex/octal 8129escapes to non-null, ASCII values. An error results if an invalid 8130value is used. (This will require an ACPI 2.0 specification 8131change.) 8132 8133AML object labels that are output to the optional C and ASM source 8134are now prefixed with both the ACPI table signature and table ID 8135to help guarantee uniqueness within a large BIOS project. 8136 8137 8138---------------------------------------- 8139Summary of changes for this label: 02_01_02 8140 81411) ACPI CA Core Subsystem: 8142 8143ACPI 2.0 support is complete in the entire Core Subsystem and the 8144ASL compiler. All new ACPI 2.0 operators are implemented and all 8145other changes for ACPI 2.0 support are complete. With 8146simultaneous code and data optimizations throughout the subsystem, 8147ACPI 2.0 support has been implemented with almost no additional 8148cost in terms of code and data size. 8149 8150Implemented a new mechanism for allocation of return buffers. If 8151the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 8152be allocated on behalf of the caller. Consolidated all return 8153buffer validation and allocation to a common procedure. Return 8154buffers will be allocated via the primary OSL allocation interface 8155since it appears that a separate pool is not needed by most users. 8156If a separate pool is required for these buffers, the caller can 8157still use the original mechanism and pre-allocate the buffer(s). 8158 8159Implemented support for string operands within the DerefOf 8160operator. 8161 8162Restructured the Hardware and Event managers to be table driven, 8163simplifying the source code and reducing the amount of generated 8164code. 8165 8166Split the common read/write low-level ACPI register bitfield 8167procedure into a separate read and write, simplifying the code 8168considerably. 8169 8170Obsoleted the AcpiOsCallocate OSL interface. This interface was 8171used only a handful of times and didn't have enough critical mass 8172for a separate interface. Replaced with a common calloc procedure 8173in the core. 8174 8175Fixed a reported problem with the GPE number mapping mechanism 8176that allows GPE1 numbers to be non-contiguous with GPE0. 8177Reorganized the GPE information and shrunk a large array that was 8178originally large enough to hold info for all possible GPEs (256) 8179to simply large enough to hold all GPEs up to the largest GPE 8180number on the machine. 8181 8182Fixed a reported problem with resource structure alignment on 64- 8183bit platforms. 8184 8185Changed the AcpiEnableEvent and AcpiDisableEvent external 8186interfaces to not require any flags for the common case of 8187enabling/disabling a GPE. 8188 8189Implemented support to allow a "Notify" on a Processor object. 8190 8191Most TBDs in comments within the source code have been resolved 8192and eliminated. 8193 8194 8195Fixed a problem in the interpreter where a standalone parent 8196prefix (^) was not handled correctly in the interpreter and 8197debugger. 8198 8199Removed obsolete and unnecessary GPE save/restore code. 8200 8201Implemented Field support in the ASL Load operator. This allows a 8202table to be loaded from a named field, in addition to loading a 8203table directly from an Operation Region. 8204 8205Implemented timeout and handle support in the external Global Lock 8206interfaces. 8207 8208Fixed a problem in the AcpiDump utility where pathnames were no 8209longer being generated correctly during the dump of named objects. 8210 8211Modified the AML debugger to give a full display of if/while 8212predicates instead of just one AML opcode at a time. (The 8213predicate can have several nested ASL statements.) The old method 8214was confusing during single stepping. 8215 8216Code and Data Size: Current core subsystem library sizes are shown 8217below. These are the code and data sizes for the acpica.lib 8218produced by the Microsoft Visual C++ 6.0 compiler, and these 8219values do not include any ACPI driver or OSPM code. The debug 8220version of the code includes the debug output trace mechanism and 8221has a larger code and data size. Note that these values will vary 8222depending on the efficiency of the compiler and the compiler 8223options used during generation. 8224 8225 Previous Release (12_18_01) 8226 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 8227 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 8228 Current Release: 8229 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 8230 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 8231 82322) Linux 8233 8234 Implemented fix for PIIX reverse throttling errata (Processor 8235driver) 8236 8237Added new Limit interface (Processor and Thermal drivers) 8238 8239New thermal policy (Thermal driver) 8240 8241Many updates to /proc 8242 8243Battery "low" event support (Battery driver) 8244 8245Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 8246 8247IA32 - IA64 initialization unification, no longer experimental 8248 8249Menuconfig options redesigned 8250 82513) ASL Compiler, version X2037: 8252 8253Implemented several new output features to simplify integration of 8254AML code into firmware: 1) Output the AML in C source code with 8255labels for each named ASL object. The original ASL source code 8256is interleaved as C comments. 2) Output the AML in ASM source code 8257with labels and interleaved ASL source. 3) Output the AML in 8258raw hex table form, in either C or ASM. 8259 8260Implemented support for optional string parameters to the 8261LoadTable operator. 8262 8263Completed support for embedded escape sequences within string 8264literals. The compiler now supports all single character escapes 8265as well as the Octal and Hex escapes. Note: the insertion of a 8266null byte into a string literal (via the hex/octal escape) causes 8267the string to be immediately terminated. A warning is issued. 8268 8269Fixed a problem where incorrect AML was generated for the case 8270where an ASL namepath consists of a single parent prefix ( 8271 8272) with no trailing name segments. 8273 8274The compiler has been successfully generated with a 64-bit C 8275compiler. 8276 8277 8278 8279 8280---------------------------------------- 8281Summary of changes for this label: 12_18_01 8282 82831) Linux 8284 8285Enhanced blacklist with reason and severity fields. Any table's 8286signature may now be used to identify a blacklisted system. 8287 8288Call _PIC control method to inform the firmware which interrupt 8289model the OS is using. Turn on any disabled link devices. 8290 8291Cleaned up busmgr /proc error handling (Andreas Dilger) 8292 8293 2) ACPI CA Core Subsystem: 8294 8295Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 8296while loop) 8297 8298Completed implementation of the ACPI 2.0 "Continue", 8299"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 8300operators. All new ACPI 2.0 operators are now implemented in both 8301the ASL compiler and the AML interpreter. The only remaining ACPI 83022.0 task is support for the String data type in the DerefOf 8303operator. Fixed a problem with AcquireMutex where the status code 8304was lost if the caller had to actually wait for the mutex. 8305 8306Increased the maximum ASL Field size from 64K bits to 4G bits. 8307 8308Completed implementation of the external Global Lock interfaces -- 8309AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 8310Handler parameters were added. 8311 8312Completed another pass at removing warnings and issues when 8313compiling with 64-bit compilers. The code now compiles cleanly 8314with the Intel 64-bit C/C++ compiler. Most notably, the pointer 8315add and subtract (diff) macros have changed considerably. 8316 8317 8318Created and deployed a new ACPI_SIZE type that is 64-bits wide on 831964-bit platforms, 32-bits on all others. This type is used 8320wherever memory allocation and/or the C sizeof() operator is used, 8321and affects the OSL memory allocation interfaces AcpiOsAllocate 8322and AcpiOsCallocate. 8323 8324Implemented sticky user breakpoints in the AML debugger. 8325 8326Code and Data Size: Current core subsystem library sizes are shown 8327below. These are the code and data sizes for the acpica.lib 8328produced by the Microsoft Visual C++ 6.0 compiler, and these 8329values do not include any ACPI driver or OSPM code. The debug 8330version of the code includes the debug output trace mechanism and 8331has a larger code and data size. Note that these values will vary 8332depending on the efficiency of the compiler and the compiler 8333options used during generation. 8334 8335 Previous Release (12_05_01) 8336 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 8337 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 8338 Current Release: 8339 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 8340 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 8341 8342 3) ASL Compiler, version X2034: 8343 8344Now checks for (and generates an error if detected) the use of a 8345Break or Continue statement without an enclosing While statement. 8346 8347 8348Successfully generated the compiler with the Intel 64-bit C 8349compiler. 8350 8351 ---------------------------------------- 8352Summary of changes for this label: 12_05_01 8353 8354 1) ACPI CA Core Subsystem: 8355 8356The ACPI 2.0 CopyObject operator is fully implemented. This 8357operator creates a new copy of an object (and is also used to 8358bypass the "implicit conversion" mechanism of the Store operator.) 8359 8360The ACPI 2.0 semantics for the SizeOf operator are fully 8361implemented. The change is that performing a SizeOf on a 8362reference object causes an automatic dereference of the object to 8363tha actual value before the size is evaluated. This behavior was 8364undefined in ACPI 1.0. 8365 8366The ACPI 2.0 semantics for the Extended IRQ resource descriptor 8367have been implemented. The interrupt polarity and mode are now 8368independently set. 8369 8370Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 8371appearing in Package objects were not properly converted to 8372integers when the internal Package was converted to an external 8373object (via the AcpiEvaluateObject interface.) 8374 8375Fixed a problem with the namespace object deletion mechanism for 8376objects created by control methods. There were two parts to this 8377problem: 1) Objects created during the initialization phase method 8378parse were not being deleted, and 2) The object owner ID mechanism 8379to track objects was broken. 8380 8381Fixed a problem where the use of the ASL Scope operator within a 8382control method would result in an invalid opcode exception. 8383 8384Fixed a problem introduced in the previous label where the buffer 8385length required for the _PRT structure was not being returned 8386correctly. 8387 8388Code and Data Size: Current core subsystem library sizes are shown 8389below. These are the code and data sizes for the acpica.lib 8390produced by the Microsoft Visual C++ 6.0 compiler, and these 8391values do not include any ACPI driver or OSPM code. The debug 8392version of the code includes the debug output trace mechanism and 8393has a larger code and data size. Note that these values will vary 8394depending on the efficiency of the compiler and the compiler 8395options used during generation. 8396 8397 Previous Release (11_20_01) 8398 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8399 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8400 8401 Current Release: 8402 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 8403 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 8404 8405 2) Linux: 8406 8407Updated all files to apply cleanly against 2.4.16. 8408 8409Added basic PCI Interrupt Routing Table (PRT) support for IA32 8410(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 8411version supports both static and dyanmic PRT entries, but dynamic 8412entries are treated as if they were static (not yet 8413reconfigurable). Architecture- specific code to use this data is 8414absent on IA32 but should be available shortly. 8415 8416Changed the initialization sequence to start the ACPI interpreter 8417(acpi_init) prior to initialization of the PCI driver (pci_init) 8418in init/main.c. This ordering is required to support PRT and 8419facilitate other (future) enhancement. A side effect is that the 8420ACPI bus driver and certain device drivers can no longer be loaded 8421as modules. 8422 8423Modified the 'make menuconfig' options to allow PCI Interrupt 8424Routing support to be included without the ACPI Bus and other 8425device drivers. 8426 8427 3) ASL Compiler, version X2033: 8428 8429Fixed some issues with the use of the new CopyObject and 8430DataTableRegion operators. Both are fully functional. 8431 8432 ---------------------------------------- 8433Summary of changes for this label: 11_20_01 8434 8435 20 November 2001. Summary of changes for this release. 8436 8437 1) ACPI CA Core Subsystem: 8438 8439Updated Index support to match ACPI 2.0 semantics. Storing a 8440Integer, String, or Buffer to an Index of a Buffer will store only 8441the least-significant byte of the source to the Indexed buffer 8442byte. Multiple writes are not performed. 8443 8444Fixed a problem where the access type used in an AccessAs ASL 8445operator was not recorded correctly into the field object. 8446 8447Fixed a problem where ASL Event objects were created in a 8448signalled state. Events are now created in an unsignalled state. 8449 8450The internal object cache is now purged after table loading and 8451initialization to reduce the use of dynamic kernel memory -- on 8452the assumption that object use is greatest during the parse phase 8453of the entire table (versus the run-time use of individual control 8454methods.) 8455 8456ACPI 2.0 variable-length packages are now fully operational. 8457 8458Code and Data Size: Code and Data optimizations have permitted new 8459feature development with an actual reduction in the library size. 8460Current core subsystem library sizes are shown below. These are 8461the code and data sizes for the acpica.lib produced by the 8462Microsoft Visual C++ 6.0 compiler, and these values do not include 8463any ACPI driver or OSPM code. The debug version of the code 8464includes the debug output trace mechanism and has a larger code 8465and data size. Note that these values will vary depending on the 8466efficiency of the compiler and the compiler options used during 8467generation. 8468 8469 Previous Release (11_09_01): 8470 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8471 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8472 8473 Current Release: 8474 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8475 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8476 8477 2) Linux: 8478 8479Enhanced the ACPI boot-time initialization code to allow the use 8480of Local APIC tables for processor enumeration on IA-32, and to 8481pave the way for a fully MPS-free boot (on SMP systems) in the 8482near future. This functionality replaces 8483arch/i386/kernel/acpitables.c, which was introduced in an earlier 84842.4.15-preX release. To enable this feature you must add 8485"acpi_boot=on" to the kernel command line -- see the help entry 8486for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 8487the works... 8488 8489Restructured the configuration options to allow boot-time table 8490parsing support without inclusion of the ACPI Interpreter (and 8491other) code. 8492 8493NOTE: This release does not include fixes for the reported events, 8494power-down, and thermal passive cooling issues (coming soon). 8495 8496 3) ASL Compiler: 8497 8498Added additional typechecking for Fields within restricted access 8499Operation Regions. All fields within EC and CMOS regions must be 8500declared with ByteAcc. All fields withing SMBus regions must be 8501declared with the BufferAcc access type. 8502 8503Fixed a problem where the listing file output of control methods 8504no longer interleaved the actual AML code with the ASL source 8505code. 8506 8507 8508 8509 8510---------------------------------------- 8511Summary of changes for this label: 11_09_01 8512 85131) ACPI CA Core Subsystem: 8514 8515Implemented ACPI 2.0-defined support for writes to fields with a 8516Buffer, String, or Integer source operand that is smaller than the 8517target field. In these cases, the source operand is zero-extended 8518to fill the target field. 8519 8520Fixed a problem where a Field starting bit offset (within the 8521parent operation region) was calculated incorrectly if the 8522 8523alignment of the field differed from the access width. This 8524affected CreateWordField, CreateDwordField, CreateQwordField, and 8525possibly other fields that use the "AccessAny" keyword. 8526 8527Fixed a problem introduced in the 11_02_01 release where indirect 8528stores through method arguments did not operate correctly. 8529 85302) Linux: 8531 8532Implemented boot-time ACPI table parsing support 8533(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 8534facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 8535legacy BIOS interfaces (e.g. MPS) for the configuration of system 8536processors, memory, and interrupts during setup_arch(). Note that 8537this patch does not include the required architecture-specific 8538changes required to apply this information -- subsequent patches 8539will be posted for both IA32 and IA64 to achieve this. 8540 8541Added low-level sleep support for IA32 platforms, courtesy of Pat 8542Mochel. This allows IA32 systems to transition to/from various 8543sleeping states (e.g. S1, S3), although the lack of a centralized 8544driver model and power-manageable drivers will prevent its 8545(successful) use on most systems. 8546 8547Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 8548submenu, unified IA32 and IA64 options, added new "Boot using ACPI 8549tables" option, etc. 8550 8551Increased the default timeout for the EC driver from 1ms to 10ms 8552(1000 cycles of 10us) to try to address AE_TIME errors during EC 8553transactions. 8554 8555 ---------------------------------------- 8556Summary of changes for this label: 11_02_01 8557 85581) ACPI CA Core Subsystem: 8559 8560ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 8561(QWordAcc keyword). All ACPI 2.0 64-bit support is now 8562implemented. 8563 8564OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 8565changes to support ACPI 2.0 Qword field access. Read/Write 8566PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 8567accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 8568the value parameter for the address space handler interface is now 8569an ACPI_INTEGER. OSL implementations of these interfaces must now 8570handle the case where the Width parameter is 64. 8571 8572Index Fields: Fixed a problem where unaligned bit assembly and 8573disassembly for IndexFields was not supported correctly. 8574 8575Index and Bank Fields: Nested Index and Bank Fields are now 8576supported. During field access, a check is performed to ensure 8577that the value written to an Index or Bank register is not out of 8578the range of the register. The Index (or Bank) register is 8579written before each access to the field data. Future support will 8580include allowing individual IndexFields to be wider than the 8581DataRegister width. 8582 8583Fields: Fixed a problem where the AML interpreter was incorrectly 8584attempting to write beyond the end of a Field/OpRegion. This was 8585a boundary case that occurred when a DWORD field was written to a 8586BYTE access OpRegion, forcing multiple writes and causing the 8587interpreter to write one datum too many. 8588 8589Fields: Fixed a problem with Field/OpRegion access where the 8590starting bit address of a field was incorrectly calculated if the 8591current access type was wider than a byte (WordAcc, DwordAcc, or 8592QwordAcc). 8593 8594Fields: Fixed a problem where forward references to individual 8595FieldUnits (individual Field names within a Field definition) were 8596not resolved during the AML table load. 8597 8598Fields: Fixed a problem where forward references from a Field 8599definition to the parent Operation Region definition were not 8600resolved during the AML table load. 8601 8602Fields: Duplicate FieldUnit names within a scope are now detected 8603during AML table load. 8604 8605Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 8606returned an incorrect name for the root node. 8607 8608Code and Data Size: Code and Data optimizations have permitted new 8609feature development with an actual reduction in the library size. 8610Current core subsystem library sizes are shown below. These are 8611the code and data sizes for the acpica.lib produced by the 8612Microsoft Visual C++ 6.0 compiler, and these values do not include 8613any ACPI driver or OSPM code. The debug version of the code 8614includes the debug output trace mechanism and has a larger code 8615and data size. Note that these values will vary depending on the 8616efficiency of the compiler and the compiler options used during 8617generation. 8618 8619 Previous Release (10_18_01): 8620 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8621 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8622 8623 Current Release: 8624 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8625 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8626 8627 2) Linux: 8628 8629Improved /proc processor output (Pavel Machek) Re-added 8630MODULE_LICENSE("GPL") to all modules. 8631 8632 3) ASL Compiler version X2030: 8633 8634Duplicate FieldUnit names within a scope are now detected and 8635flagged as errors. 8636 8637 4) Documentation: 8638 8639Programmer Reference updated to reflect OSL and address space 8640handler interface changes described above. 8641 8642---------------------------------------- 8643Summary of changes for this label: 10_18_01 8644 8645ACPI CA Core Subsystem: 8646 8647Fixed a problem with the internal object reference count mechanism 8648that occasionally caused premature object deletion. This resolves 8649all of the outstanding problem reports where an object is deleted 8650in the middle of an interpreter evaluation. Although this problem 8651only showed up in rather obscure cases, the solution to the 8652problem involved an adjustment of all reference counts involving 8653objects attached to namespace nodes. 8654 8655Fixed a problem with Field support in the interpreter where 8656writing to an aligned field whose length is an exact multiple (2 8657or greater) of the field access granularity would cause an attempt 8658to write beyond the end of the field. 8659 8660The top level AML opcode execution functions within the 8661interpreter have been renamed with a more meaningful and 8662consistent naming convention. The modules exmonad.c and 8663exdyadic.c were eliminated. New modules are exoparg1.c, 8664exoparg2.c, exoparg3.c, and exoparg6.c. 8665 8666Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 8667 8668Fixed a problem where the AML debugger was causing some internal 8669objects to not be deleted during subsystem termination. 8670 8671Fixed a problem with the external AcpiEvaluateObject interface 8672where the subsystem would fault if the named object to be 8673evaluated refered to a constant such as Zero, Ones, etc. 8674 8675Fixed a problem with IndexFields and BankFields where the 8676subsystem would fault if the index, data, or bank registers were 8677not defined in the same scope as the field itself. 8678 8679Added printf format string checking for compilers that support 8680this feature. Corrected more than 50 instances of issues with 8681format specifiers within invocations of ACPI_DEBUG_PRINT 8682throughout the core subsystem code. 8683 8684The ASL "Revision" operator now returns the ACPI support level 8685implemented in the core - the value "2" since the ACPI 2.0 support 8686is more than 50% implemented. 8687 8688Enhanced the output of the AML debugger "dump namespace" command 8689to output in a more human-readable form. 8690 8691Current core subsystem library code sizes are shown below. These 8692 8693are the code and data sizes for the acpica.lib produced by the 8694Microsoft Visual C++ 6.0 compiler, and these values do not include 8695any ACPI driver or OSPM code. The debug version of the code 8696includes the full debug trace mechanism -- leading to a much 8697 8698larger code and data size. Note that these values will vary 8699depending on the efficiency of the compiler and the compiler 8700options used during generation. 8701 8702 Previous Label (09_20_01): 8703 Non-Debug Version: 65K Code, 5K Data, 70K Total 8704 Debug Version: 138K Code, 58K Data, 196K Total 8705 8706 This Label: 8707 8708 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8709 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8710 8711Linux: 8712 8713Implemented a "Bad BIOS Blacklist" to track machines that have 8714known ASL/AML problems. 8715 8716Enhanced the /proc interface for the thermal zone driver and added 8717support for _HOT (the critical suspend trip point). The 'info' 8718file now includes threshold/policy information, and allows setting 8719of _SCP (cooling preference) and _TZP (polling frequency) values 8720to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 8721frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 8722preference to the passive/quiet mode (if supported by the ASL). 8723 8724Implemented a workaround for a gcc bug that resuted in an OOPs 8725when loading the control method battery driver. 8726 8727 ---------------------------------------- 8728Summary of changes for this label: 09_20_01 8729 8730 ACPI CA Core Subsystem: 8731 8732The AcpiEnableEvent and AcpiDisableEvent interfaces have been 8733modified to allow individual GPE levels to be flagged as wake- 8734enabled (i.e., these GPEs are to remain enabled when the platform 8735sleeps.) 8736 8737The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 8738support wake-enabled GPEs. This means that upon entering the 8739sleep state, all GPEs that are not wake-enabled are disabled. 8740When leaving the sleep state, these GPEs are reenabled. 8741 8742A local double-precision divide/modulo module has been added to 8743enhance portability to OS kernels where a 64-bit math library is 8744not available. The new module is "utmath.c". 8745 8746Several optimizations have been made to reduce the use of CPU 8747stack. Originally over 2K, the maximum stack usage is now below 87482K at 1860 bytes (1.82k) 8749 8750Fixed a problem with the AcpiGetFirmwareTable interface where the 8751root table pointer was not mapped into a logical address properly. 8752 8753Fixed a problem where a NULL pointer was being dereferenced in the 8754interpreter code for the ASL Notify operator. 8755 8756Fixed a problem where the use of the ASL Revision operator 8757returned an error. This operator now returns the current version 8758of the ACPI CA core subsystem. 8759 8760Fixed a problem where objects passed as control method parameters 8761to AcpiEvaluateObject were always deleted at method termination. 8762However, these objects may end up being stored into the namespace 8763by the called method. The object reference count mechanism was 8764applied to these objects instead of a force delete. 8765 8766Fixed a problem where static strings or buffers (contained in the 8767AML code) that are declared as package elements within the ASL 8768code could cause a fault because the interpreter would attempt to 8769delete them. These objects are now marked with the "static 8770object" flag to prevent any attempt to delete them. 8771 8772Implemented an interpreter optimization to use operands directly 8773from the state object instead of extracting the operands to local 8774variables. This reduces stack use and code size, and improves 8775performance. 8776 8777The module exxface.c was eliminated as it was an unnecessary extra 8778layer of code. 8779 8780Current core subsystem library code sizes are shown below. These 8781are the code and data sizes for the acpica.lib produced by the 8782Microsoft Visual C++ 6.0 compiler, and these values do not include 8783any ACPI driver or OSPM code. The debug version of the code 8784includes the full debug trace mechanism -- leading to a much 8785larger code and data size. Note that these values will vary 8786depending on the efficiency of the compiler and the compiler 8787options used during generation. 8788 8789 Non-Debug Version: 65K Code, 5K Data, 70K Total 8790(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 8791Total (Previously 195K) 8792 8793Linux: 8794 8795Support for ACPI 2.0 64-bit integers has been added. All ACPI 8796Integer objects are now 64 bits wide 8797 8798All Acpi data types and structures are now in lower case. Only 8799Acpi macros are upper case for differentiation. 8800 8801 Documentation: 8802 8803Changes to the external interfaces as described above. 8804 8805 ---------------------------------------- 8806Summary of changes for this label: 08_31_01 8807 8808 ACPI CA Core Subsystem: 8809 8810A bug with interpreter implementation of the ASL Divide operator 8811was found and fixed. The implicit function return value (not the 8812explicit store operands) was returning the remainder instead of 8813the quotient. This was a longstanding bug and it fixes several 8814known outstanding issues on various platforms. 8815 8816The ACPI_DEBUG_PRINT and function trace entry/exit macros have 8817been further optimized for size. There are 700 invocations of the 8818DEBUG_PRINT macro alone, so each optimization reduces the size of 8819the debug version of the subsystem significantly. 8820 8821A stack trace mechanism has been implemented. The maximum stack 8822usage is about 2K on 32-bit platforms. The debugger command "stat 8823stack" will display the current maximum stack usage. 8824 8825All public symbols and global variables within the subsystem are 8826now prefixed with the string "Acpi". This keeps all of the 8827symbols grouped together in a kernel map, and avoids conflicts 8828with other kernel subsystems. 8829 8830Most of the internal fixed lookup tables have been moved into the 8831code segment via the const operator. 8832 8833Several enhancements have been made to the interpreter to both 8834reduce the code size and improve performance. 8835 8836Current core subsystem library code sizes are shown below. These 8837are the code and data sizes for the acpica.lib produced by the 8838Microsoft Visual C++ 6.0 compiler, and these values do not include 8839any ACPI driver or OSPM code. The debug version of the code 8840includes the full debug trace mechanism which contains over 700 8841invocations of the DEBUG_PRINT macro, 500 function entry macro 8842invocations, and over 900 function exit macro invocations -- 8843leading to a much larger code and data size. Note that these 8844values will vary depending on the efficiency of the compiler and 8845the compiler options used during generation. 8846 8847 Non-Debug Version: 64K Code, 5K Data, 69K Total 8848Debug Version: 137K Code, 58K Data, 195K Total 8849 8850 Linux: 8851 8852Implemented wbinvd() macro, pending a kernel-wide definition. 8853 8854Fixed /proc/acpi/event to handle poll() and short reads. 8855 8856 ASL Compiler, version X2026: 8857 8858Fixed a problem introduced in the previous label where the AML 8859 8860code emitted for package objects produced packages with zero 8861length. 8862 8863 ---------------------------------------- 8864Summary of changes for this label: 08_16_01 8865 8866ACPI CA Core Subsystem: 8867 8868The following ACPI 2.0 ASL operators have been implemented in the 8869AML interpreter (These are already supported by the Intel ASL 8870compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 8871ToBuffer. Support for 64-bit AML constants is implemented in the 8872AML parser, debugger, and disassembler. 8873 8874The internal memory tracking mechanism (leak detection code) has 8875been upgraded to reduce the memory overhead (a separate tracking 8876block is no longer allocated for each memory allocation), and now 8877supports all of the internal object caches. 8878 8879The data structures and code for the internal object caches have 8880been coelesced and optimized so that there is a single cache and 8881memory list data structure and a single group of functions that 8882implement generic cache management. This has reduced the code 8883size in both the debug and release versions of the subsystem. 8884 8885The DEBUG_PRINT macro(s) have been optimized for size and replaced 8886by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 8887different, because it generates a single call to an internal 8888function. This results in a savings of about 90 bytes per 8889invocation, resulting in an overall code and data savings of about 889016% in the debug version of the subsystem. 8891 8892 Linux: 8893 8894Fixed C3 disk corruption problems and re-enabled C3 on supporting 8895machines. 8896 8897Integrated low-level sleep code by Patrick Mochel. 8898 8899Further tweaked source code Linuxization. 8900 8901Other minor fixes. 8902 8903 ASL Compiler: 8904 8905Support for ACPI 2.0 variable length packages is fixed/completed. 8906 8907Fixed a problem where the optional length parameter for the ACPI 89082.0 ToString operator. 8909 8910Fixed multiple extraneous error messages when a syntax error is 8911detected within the declaration line of a control method. 8912 8913 ---------------------------------------- 8914Summary of changes for this label: 07_17_01 8915 8916ACPI CA Core Subsystem: 8917 8918Added a new interface named AcpiGetFirmwareTable to obtain any 8919ACPI table via the ACPI signature. The interface can be called at 8920any time during kernel initialization, even before the kernel 8921virtual memory manager is initialized and paging is enabled. This 8922allows kernel subsystems to obtain ACPI tables very early, even 8923before the ACPI CA subsystem is initialized. 8924 8925Fixed a problem where Fields defined with the AnyAcc attribute 8926could be resolved to the incorrect address under the following 8927conditions: 1) the field width is larger than 8 bits and 2) the 8928parent operation region is not defined on a DWORD boundary. 8929 8930Fixed a problem where the interpreter is not being locked during 8931namespace initialization (during execution of the _INI control 8932methods), causing an error when an attempt is made to release it 8933later. 8934 8935ACPI 2.0 support in the AML Interpreter has begun and will be 8936ongoing throughout the rest of this year. In this label, The Mod 8937operator is implemented. 8938 8939Added a new data type to contain full PCI addresses named 8940ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 8941and Function values. 8942 8943 Linux: 8944 8945Enhanced the Linux version of the source code to change most 8946capitalized ACPI type names to lowercase. For example, all 8947instances of ACPI_STATUS are changed to acpi_status. This will 8948result in a large diff, but the change is strictly cosmetic and 8949aligns the CA code closer to the Linux coding standard. 8950 8951OSL Interfaces: 8952 8953The interfaces to the PCI configuration space have been changed to 8954add the PCI Segment number and to split the single 32-bit combined 8955DeviceFunction field into two 16-bit fields. This was 8956accomplished by moving the four values that define an address in 8957PCI configuration space (segment, bus, device, and function) to 8958the new ACPI_PCI_ID structure. 8959 8960The changes to the PCI configuration space interfaces led to a 8961reexamination of the complete set of address space access 8962interfaces for PCI, I/O, and Memory. The previously existing 18 8963interfaces have proven difficult to maintain (any small change 8964must be propagated across at least 6 interfaces) and do not easily 8965allow for future expansion to 64 bits if necessary. Also, on some 8966systems, it would not be appropriate to demultiplex the access 8967width (8, 16, 32,or 64) before calling the OSL if the 8968corresponding native OS interfaces contain a similar access width 8969parameter. For these reasons, the 18 address space interfaces 8970have been replaced by these 6 new ones: 8971 8972AcpiOsReadPciConfiguration 8973AcpiOsWritePciConfiguration 8974AcpiOsReadMemory 8975AcpiOsWriteMemory 8976AcpiOsReadPort 8977AcpiOsWritePort 8978 8979Added a new interface named AcpiOsGetRootPointer to allow the OSL 8980to perform the platform and/or OS-specific actions necessary to 8981obtain the ACPI RSDP table pointer. On IA-32 platforms, this 8982interface will simply call down to the CA core to perform the low- 8983memory search for the table. On IA-64, the RSDP is obtained from 8984EFI. Migrating this interface to the OSL allows the CA core to 8985 8986remain OS and platform independent. 8987 8988Added a new interface named AcpiOsSignal to provide a generic 8989"function code and pointer" interface for various miscellaneous 8990signals and notifications that must be made to the host OS. The 8991first such signals are intended to support the ASL Fatal and 8992Breakpoint operators. In the latter case, the AcpiOsBreakpoint 8993interface has been obsoleted. 8994 8995The definition of the AcpiFormatException interface has been 8996changed to simplify its use. The caller no longer must supply a 8997buffer to the call; A pointer to a const string is now returned 8998directly. This allows the call to be easily used in printf 8999statements, etc. since the caller does not have to manage a local 9000buffer. 9001 9002 9003 ASL Compiler, Version X2025: 9004 9005The ACPI 2.0 Switch/Case/Default operators have been implemented 9006and are fully functional. They will work with all ACPI 1.0 9007interpreters, since the operators are simply translated to If/Else 9008pairs. 9009 9010The ACPI 2.0 ElseIf operator is implemented and will also work 9011with 1.0 interpreters, for the same reason. 9012 9013Implemented support for ACPI 2.0 variable-length packages. These 9014packages have a separate opcode, and their size is determined by 9015the interpreter at run-time. 9016 9017Documentation The ACPI CA Programmer Reference has been updated to 9018reflect the new interfaces and changes to existing interfaces. 9019 9020 ------------------------------------------ 9021Summary of changes for this label: 06_15_01 9022 9023 ACPI CA Core Subsystem: 9024 9025Fixed a problem where a DWORD-accessed field within a Buffer 9026object would get its byte address inadvertently rounded down to 9027the nearest DWORD. Buffers are always Byte-accessible. 9028 9029 ASL Compiler, version X2024: 9030 9031Fixed a problem where the Switch() operator would either fault or 9032hang the compiler. Note however, that the AML code for this ACPI 90332.0 operator is not yet implemented. 9034 9035Compiler uses the new AcpiOsGetTimer interface to obtain compile 9036timings. 9037 9038Implementation of the CreateField operator automatically converts 9039a reference to a named field within a resource descriptor from a 9040byte offset to a bit offset if required. 9041 9042Added some missing named fields from the resource descriptor 9043support. These are the names that are automatically created by the 9044compiler to reference fields within a descriptor. They are only 9045valid at compile time and are not passed through to the AML 9046interpreter. 9047 9048Resource descriptor named fields are now typed as Integers and 9049subject to compile-time typechecking when used in expressions. 9050 9051 ------------------------------------------ 9052Summary of changes for this label: 05_18_01 9053 9054 ACPI CA Core Subsystem: 9055 9056Fixed a couple of problems in the Field support code where bits 9057from adjacent fields could be returned along with the proper field 9058bits. Restructured the field support code to improve performance, 9059readability and maintainability. 9060 9061New DEBUG_PRINTP macro automatically inserts the procedure name 9062into the output, saving hundreds of copies of procedure name 9063strings within the source, shrinking the memory footprint of the 9064debug version of the core subsystem. 9065 9066 Source Code Structure: 9067 9068The source code directory tree was restructured to reflect the 9069current organization of the component architecture. Some files 9070and directories have been moved and/or renamed. 9071 9072 Linux: 9073 9074Fixed leaking kacpidpc processes. 9075 9076Fixed queueing event data even when /proc/acpi/event is not 9077opened. 9078 9079 ASL Compiler, version X2020: 9080 9081Memory allocation performance enhancement - over 24X compile time 9082improvement on large ASL files. Parse nodes and namestring 9083buffers are now allocated from a large internal compiler buffer. 9084 9085The temporary .SRC file is deleted unless the "-s" option is 9086specified 9087 9088The "-d" debug output option now sends all output to the .DBG file 9089instead of the console. 9090 9091"External" second parameter is now optional 9092 9093"ElseIf" syntax now properly allows the predicate 9094 9095Last operand to "Load" now recognized as a Target operand 9096 9097Debug object can now be used anywhere as a normal object. 9098 9099ResourceTemplate now returns an object of type BUFFER 9100 9101EISAID now returns an object of type INTEGER 9102 9103"Index" now works with a STRING operand 9104 9105"LoadTable" now accepts optional parameters 9106 9107"ToString" length parameter is now optional 9108 9109"Interrupt (ResourceType," parse error fixed. 9110 9111"Register" with a user-defined region space parse error fixed 9112 9113Escaped backslash at the end of a string ("\\") scan/parse error 9114fixed 9115 9116"Revision" is now an object of type INTEGER. 9117 9118 9119 9120------------------------------------------ 9121Summary of changes for this label: 05_02_01 9122 9123Linux: 9124 9125/proc/acpi/event now blocks properly. 9126 9127Removed /proc/sys/acpi. You can still dump your DSDT from 9128/proc/acpi/dsdt. 9129 9130 ACPI CA Core Subsystem: 9131 9132Fixed a problem introduced in the previous label where some of the 9133"small" resource descriptor types were not recognized. 9134 9135Improved error messages for the case where an ASL Field is outside 9136the range of the parent operation region. 9137 9138 ASL Compiler, version X2018: 9139 9140 9141Added error detection for ASL Fields that extend beyond the length 9142of the parent operation region (only if the length of the region 9143is known at compile time.) This includes fields that have a 9144minimum access width that is smaller than the parent region, and 9145individual field units that are partially or entirely beyond the 9146extent of the parent. 9147 9148 9149 9150------------------------------------------ 9151Summary of changes for this label: 04_27_01 9152 9153 ACPI CA Core Subsystem: 9154 9155Fixed a problem where the namespace mutex could be released at the 9156wrong time during execution of AcpiRemoveAddressSpaceHandler. 9157 9158Added optional thread ID output for debug traces, to simplify 9159debugging of multiple threads. Added context switch notification 9160when the debug code realizes that a different thread is now 9161executing ACPI code. 9162 9163Some additional external data types have been prefixed with the 9164string "ACPI_" for consistency. This may effect existing code. 9165The data types affected are the external callback typedefs - e.g., 9166 9167WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 9168 9169 Linux: 9170 9171Fixed an issue with the OSL semaphore implementation where a 9172thread was waking up with an error from receiving a SIGCHLD 9173signal. 9174 9175Linux version of ACPI CA now uses the system C library for string 9176manipulation routines instead of a local implementation. 9177 9178Cleaned up comments and removed TBDs. 9179 9180 ASL Compiler, version X2017: 9181 9182Enhanced error detection and reporting for all file I/O 9183operations. 9184 9185 Documentation: 9186 9187Programmer Reference updated to version 1.06. 9188 9189 9190 9191------------------------------------------ 9192Summary of changes for this label: 04_13_01 9193 9194 ACPI CA Core Subsystem: 9195 9196Restructured support for BufferFields and RegionFields. 9197BankFields support is now fully operational. All known 32-bit 9198limitations on field sizes have been removed. Both BufferFields 9199and (Operation) RegionFields are now supported by the same field 9200management code. 9201 9202Resource support now supports QWORD address and IO resources. The 920316/32/64 bit address structures and the Extended IRQ structure 9204have been changed to properly handle Source Resource strings. 9205 9206A ThreadId of -1 is now used to indicate a "mutex not acquired" 9207condition internally and must never be returned by AcpiOsThreadId. 9208This reserved value was changed from 0 since Unix systems allow a 9209thread ID of 0. 9210 9211Linux: 9212 9213Driver code reorganized to enhance portability 9214 9215Added a kernel configuration option to control ACPI_DEBUG 9216 9217Fixed the EC driver to honor _GLK. 9218 9219ASL Compiler, version X2016: 9220 9221Fixed support for the "FixedHw" keyword. Previously, the FixedHw 9222address space was set to 0, not 0x7f as it should be. 9223 9224 ------------------------------------------ 9225Summary of changes for this label: 03_13_01 9226 9227 ACPI CA Core Subsystem: 9228 9229During ACPI initialization, the _SB_._INI method is now run if 9230present. 9231 9232Notify handler fix - notifies are deferred until the parent method 9233completes execution. This fixes the "mutex already acquired" 9234issue seen occasionally. 9235 9236Part of the "implicit conversion" rules in ACPI 2.0 have been 9237found to cause compatibility problems with existing ASL/AML. The 9238convert "result-to-target-type" implementation has been removed 9239for stores to method Args and Locals. Source operand conversion 9240is still fully implemented. Possible changes to ACPI 2.0 9241specification pending. 9242 9243Fix to AcpiRsCalculatePciRoutingTableLength to return correct 9244length. 9245 9246Fix for compiler warnings for 64-bit compiles. 9247 9248 Linux: 9249 9250/proc output aligned for easier parsing. 9251 9252Release-version compile problem fixed. 9253 9254New kernel configuration options documented in Configure.help. 9255 9256IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 9257context" message. 9258 9259 OSPM: 9260 9261Power resource driver integrated with bus manager. 9262 9263Fixed kernel fault during active cooling for thermal zones. 9264 9265Source Code: 9266 9267The source code tree has been restructured. 9268 9269 9270 9271------------------------------------------ 9272Summary of changes for this label: 03_02_01 9273 9274 Linux OS Services Layer (OSL): 9275 9276Major revision of all Linux-specific code. 9277 9278Modularized all ACPI-specific drivers. 9279 9280Added new thermal zone and power resource drivers. 9281 9282Revamped /proc interface (new functionality is under /proc/acpi). 9283 9284New kernel configuration options. 9285 9286 Linux known issues: 9287 9288New kernel configuration options not documented in Configure.help 9289yet. 9290 9291 9292Module dependencies not currently implemented. If used, they 9293should be loaded in this order: busmgr, power, ec, system, 9294processor, battery, ac_adapter, button, thermal. 9295 9296Modules will not load if CONFIG_MODVERSION is set. 9297 9298IBM 600E - entering S5 may reboot instead of shutting down. 9299 9300IBM 600E - Sleep button may generate "Invalid <NULL> context" 9301message. 9302 9303Some systems may fail with "execution mutex already acquired" 9304message. 9305 9306 ACPI CA Core Subsystem: 9307 9308Added a new OSL Interface, AcpiOsGetThreadId. This was required 9309for the deadlock detection code. Defined to return a non-zero, 32- 9310bit thread ID for the currently executing thread. May be a non- 9311zero constant integer on single-thread systems. 9312 9313Implemented deadlock detection for internal subsystem mutexes. We 9314may add conditional compilation for this code (debug only) later. 9315 9316ASL/AML Mutex object semantics are now fully supported. This 9317includes multiple acquires/releases by owner and support for the 9318 9319Mutex SyncLevel parameter. 9320 9321A new "Force Release" mechanism automatically frees all ASL 9322Mutexes that have been acquired but not released when a thread 9323exits the interpreter. This forces conformance to the ACPI spec 9324("All mutexes must be released when an invocation exits") and 9325prevents deadlocked ASL threads. This mechanism can be expanded 9326(later) to monitor other resource acquisitions if OEM ASL code 9327continues to misbehave (which it will). 9328 9329Several new ACPI exception codes have been added for the Mutex 9330support. 9331 9332Recursive method calls are now allowed and supported (the ACPI 9333spec does in fact allow recursive method calls.) The number of 9334recursive calls is subject to the restrictions imposed by the 9335SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 9336parameter. 9337 9338Implemented support for the SyncLevel parameter for control 9339methods (ACPI 2.0 feature) 9340 9341Fixed a deadlock problem when multiple threads attempted to use 9342the interpreter. 9343 9344Fixed a problem where the string length of a String package 9345element was not always set in a package returned from 9346AcpiEvaluateObject. 9347 9348Fixed a problem where the length of a String package element was 9349not always included in the length of the overall package returned 9350from AcpiEvaluateObject. 9351 9352Added external interfaces (Acpi*) to the ACPI debug memory 9353manager. This manager keeps a list of all outstanding 9354allocations, and can therefore detect memory leaks and attempts to 9355free memory blocks more than once. Useful for code such as the 9356power manager, etc. May not be appropriate for device drivers. 9357Performance with the debug code enabled is slow. 9358 9359The ACPI Global Lock is now an optional hardware element. 9360 9361 ASL Compiler Version X2015: 9362 9363Integrated changes to allow the compiler to be generated on 9364multiple platforms. 9365 9366Linux makefile added to generate the compiler on Linux 9367 9368 Source Code: 9369 9370All platform-specific headers have been moved to their own 9371subdirectory, Include/Platform. 9372 9373New source file added, Interpreter/ammutex.c 9374 9375New header file, Include/acstruct.h 9376 9377 Documentation: 9378 9379The programmer reference has been updated for the following new 9380interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 9381 9382 ------------------------------------------ 9383Summary of changes for this label: 02_08_01 9384 9385Core ACPI CA Subsystem: Fixed a problem where an error was 9386incorrectly returned if the return resource buffer was larger than 9387the actual data (in the resource interfaces). 9388 9389References to named objects within packages are resolved to the 9390 9391full pathname string before packages are returned directly (via 9392the AcpiEvaluateObject interface) or indirectly via the resource 9393interfaces. 9394 9395Linux OS Services Layer (OSL): 9396 9397Improved /proc battery interface. 9398 9399 9400Added C-state debugging output and other miscellaneous fixes. 9401 9402ASL Compiler Version X2014: 9403 9404All defined method arguments can now be used as local variables, 9405including the ones that are not actually passed in as parameters. 9406The compiler tracks initialization of the arguments and issues an 9407exception if they are used without prior assignment (just like 9408locals). 9409 9410The -o option now specifies a filename prefix that is used for all 9411output files, including the AML output file. Otherwise, the 9412default behavior is as follows: 1) the AML goes to the file 9413specified in the DSDT. 2) all other output files use the input 9414source filename as the base. 9415 9416 ------------------------------------------ 9417Summary of changes for this label: 01_25_01 9418 9419Core ACPI CA Subsystem: Restructured the implementation of object 9420store support within the interpreter. This includes support for 9421the Store operator as well as any ASL operators that include a 9422target operand. 9423 9424Partially implemented support for Implicit Result-to-Target 9425conversion. This is when a result object is converted on the fly 9426to the type of an existing target object. Completion of this 9427support is pending further analysis of the ACPI specification 9428concerning this matter. 9429 9430CPU-specific code has been removed from the subsystem (hardware 9431directory). 9432 9433New Power Management Timer functions added 9434 9435Linux OS Services Layer (OSL): Moved system state transition code 9436to the core, fixed it, and modified Linux OSL accordingly. 9437 9438Fixed C2 and C3 latency calculations. 9439 9440 9441We no longer use the compilation date for the version message on 9442initialization, but retrieve the version from AcpiGetSystemInfo(). 9443 9444Incorporated for fix Sony VAIO machines. 9445 9446Documentation: The Programmer Reference has been updated and 9447reformatted. 9448 9449 9450ASL Compiler: Version X2013: Fixed a problem where the line 9451numbering and error reporting could get out of sync in the 9452presence of multiple include files. 9453 9454 ------------------------------------------ 9455Summary of changes for this label: 01_15_01 9456 9457Core ACPI CA Subsystem: 9458 9459Implemented support for type conversions in the execution of the 9460ASL Concatenate operator (The second operand is converted to 9461match the type of the first operand before concatenation.) 9462 9463Support for implicit source operand conversion is partially 9464implemented. The ASL source operand types Integer, Buffer, and 9465String are freely interchangeable for most ASL operators and are 9466converted by the interpreter on the fly as required. Implicit 9467Target operand conversion (where the result is converted to the 9468target type before storing) is not yet implemented. 9469 9470Support for 32-bit and 64-bit BCD integers is implemented. 9471 9472Problem fixed where a field read on an aligned field could cause a 9473read past the end of the field. 9474 9475New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 9476does not return a value, but the caller expects one. (The ASL 9477compiler flags this as a warning.) 9478 9479ASL Compiler: 9480 9481Version X2011: 94821. Static typechecking of all operands is implemented. This 9483prevents the use of invalid objects (such as using a Package where 9484an Integer is required) at compile time instead of at interpreter 9485run-time. 94862. The ASL source line is printed with ALL errors and warnings. 94873. Bug fix for source EOF without final linefeed. 94884. Debug option is split into a parse trace and a namespace trace. 94895. Namespace output option (-n) includes initial values for 9490integers and strings. 94916. Parse-only option added for quick syntax checking. 94927. Compiler checks for duplicate ACPI name declarations 9493 9494Version X2012: 94951. Relaxed typechecking to allow interchangeability between 9496strings, integers, and buffers. These types are now converted by 9497the interpreter at runtime. 94982. Compiler reports time taken by each internal subsystem in the 9499debug output file. 9500 9501 9502 ------------------------------------------ 9503Summary of changes for this label: 12_14_00 9504 9505ASL Compiler: 9506 9507This is the first official release of the compiler. Since the 9508compiler requires elements of the Core Subsystem, this label 9509synchronizes everything. 9510 9511------------------------------------------ 9512Summary of changes for this label: 12_08_00 9513 9514 9515Fixed a problem where named references within the ASL definition 9516of both OperationRegions and CreateXXXFields did not work 9517properly. The symptom was an AE_AML_OPERAND_TYPE during 9518initialization of the region/field. This is similar (but not 9519related internally) to the problem that was fixed in the last 9520label. 9521 9522Implemented both 32-bit and 64-bit support for the BCD ASL 9523functions ToBCD and FromBCD. 9524 9525Updated all legal headers to include "2000" in the copyright 9526years. 9527 9528 ------------------------------------------ 9529Summary of changes for this label: 12_01_00 9530 9531Fixed a problem where method invocations within the ASL definition 9532of both OperationRegions and CreateXXXFields did not work 9533properly. The symptom was an AE_AML_OPERAND_TYPE during 9534initialization of the region/field: 9535 9536 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 9537[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 9538(0x3005) 9539 9540Fixed a problem where operators with more than one nested 9541subexpression would fail. The symptoms were varied, by mostly 9542AE_AML_OPERAND_TYPE errors. This was actually a rather serious 9543problem that has gone unnoticed until now. 9544 9545 Subtract (Add (1,2), Multiply (3,4)) 9546 9547Fixed a problem where AcpiGetHandle didn't quite get fixed in the 9548previous build (The prefix part of a relative path was handled 9549incorrectly). 9550 9551Fixed a problem where Operation Region initialization failed if 9552the operation region name was a "namepath" instead of a simple 9553"nameseg". Symptom was an AE_NO_OPERAND error. 9554 9555Fixed a problem where an assignment to a local variable via the 9556indirect RefOf mechanism only worked for the first such 9557assignment. Subsequent assignments were ignored. 9558 9559 ------------------------------------------ 9560Summary of changes for this label: 11_15_00 9561 9562ACPI 2.0 table support with backwards support for ACPI 1.0 and the 95630.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 9564the AML interpreter does NOT have support for the new 2.0 ASL 9565grammar terms at this time. 9566 9567All ACPI hardware access is via the GAS structures in the ACPI 2.0 9568FADT. 9569 9570All physical memory addresses across all platforms are now 64 bits 9571wide. Logical address width remains dependent on the platform 9572(i.e., "void *"). 9573 9574AcpiOsMapMemory interface changed to a 64-bit physical address. 9575 9576The AML interpreter integer size is now 64 bits, as per the ACPI 95772.0 specification. 9578 9579For backwards compatibility with ACPI 1.0, ACPI tables with a 9580revision number less than 2 use 32-bit integers only. 9581 9582Fixed a problem where the evaluation of OpRegion operands did not 9583always resolve them to numbers properly. 9584 9585------------------------------------------ 9586Summary of changes for this label: 10_20_00 9587 9588Fix for CBN_._STA issue. This fix will allow correct access to 9589CBN_ OpRegions when the _STA returns 0x8. 9590 9591Support to convert ACPI constants (Ones, Zeros, One) to actual 9592values before a package object is returned 9593 9594Fix for method call as predicate to if/while construct causing 9595incorrect if/while behavior 9596 9597Fix for Else block package lengths sometimes calculated wrong (if 9598block > 63 bytes) 9599 9600Fix for Processor object length field, was always zero 9601 9602Table load abort if FACP sanity check fails 9603 9604Fix for problem with Scope(name) if name already exists 9605 9606Warning emitted if a named object referenced cannot be found 9607(resolved) during method execution. 9608 9609 9610 9611 9612 9613------------------------------------------ 9614Summary of changes for this label: 9_29_00 9615 9616New table initialization interfaces: AcpiInitializeSubsystem no 9617longer has any parameters AcpiFindRootPointer - Find the RSDP (if 9618necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 9619>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 9620AcpiLoadTables 9621 9622Note: These interface changes require changes to all existing OSDs 9623 9624The PCI_Config default address space handler is always installed 9625at the root namespace object. 9626 9627------------------------------------------- 9628Summary of changes for this label: 09_15_00 9629 9630The new initialization architecture is implemented. New 9631interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 9632AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 9633 9634(Namespace is automatically loaded when a table is loaded) 9635 9636The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 963752 bytes to 32 bytes. There is usually one of these for every 9638namespace object, so the memory savings is significant. 9639 9640Implemented just-in-time evaluation of the CreateField operators. 9641 9642Bug fixes for IA-64 support have been integrated. 9643 9644Additional code review comments have been implemented 9645 9646The so-called "third pass parse" has been replaced by a final walk 9647through the namespace to initialize all operation regions (address 9648spaces) and fields that have not yet been initialized during the 9649execution of the various _INI and REG methods. 9650 9651New file - namespace/nsinit.c 9652 9653------------------------------------------- 9654Summary of changes for this label: 09_01_00 9655 9656Namespace manager data structures have been reworked to change the 9657primary object from a table to a single object. This has 9658resulted in dynamic memory savings of 3X within the namespace and 96592X overall in the ACPI CA subsystem. 9660 9661Fixed problem where the call to AcpiEvFindPciRootBuses was 9662inadvertently left commented out. 9663 9664Reduced the warning count when generating the source with the GCC 9665compiler. 9666 9667Revision numbers added to each module header showing the 9668SourceSafe version of the file. Please refer to this version 9669number when giving us feedback or comments on individual modules. 9670 9671The main object types within the subsystem have been renamed to 9672clarify their purpose: 9673 9674ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 9675ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 9676ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 9677 9678NOTE: no changes to the initialization sequence are included in 9679this label. 9680 9681------------------------------------------- 9682Summary of changes for this label: 08_23_00 9683 9684Fixed problem where TerminateControlMethod was being called 9685multiple times per method 9686 9687Fixed debugger problem where single stepping caused a semaphore to 9688be oversignalled 9689 9690Improved performance through additional parse object caching - 9691added ACPI_EXTENDED_OP type 9692 9693------------------------------------------- 9694Summary of changes for this label: 08_10_00 9695 9696Parser/Interpreter integration: Eliminated the creation of 9697complete parse trees for ACPI tables and control methods. 9698Instead, parse subtrees are created and then deleted as soon as 9699they are processed (Either entered into the namespace or executed 9700by the interpreter). This reduces the use of dynamic kernel 9701memory significantly. (about 10X) 9702 9703Exception codes broken into classes and renumbered. Be sure to 9704recompile all code that includes acexcep.h. Hopefully we won't 9705have to renumber the codes again now that they are split into 9706classes (environment, programmer, AML code, ACPI table, and 9707internal). 9708 9709Fixed some additional alignment issues in the Resource Manager 9710subcomponent 9711 9712Implemented semaphore tracking in the AcpiExec utility, and fixed 9713several places where mutexes/semaphores were being unlocked 9714without a corresponding lock operation. There are no known 9715semaphore or mutex "leaks" at this time. 9716 9717Fixed the case where an ASL Return operator is used to return an 9718unnamed package. 9719 9720------------------------------------------- 9721Summary of changes for this label: 07_28_00 9722 9723Fixed a problem with the way addresses were calculated in 9724AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 9725manifested itself when a Field was created with WordAccess or 9726DwordAccess, but the field unit defined within the Field was less 9727 9728than a Word or Dword. 9729 9730Fixed a problem in AmlDumpOperands() module's loop to pull 9731operands off of the operand stack to display information. The 9732problem manifested itself as a TLB error on 64-bit systems when 9733accessing an operand stack with two or more operands. 9734 9735Fixed a problem with the PCI configuration space handlers where 9736context was getting confused between accesses. This required a 9737change to the generic address space handler and address space 9738setup definitions. Handlers now get both a global handler context 9739(this is the one passed in by the user when executing 9740AcpiInstallAddressSpaceHandler() and a specific region context 9741that is unique to each region (For example, the _ADR, _SEG and 9742_BBN values associated with a specific region). The generic 9743function definitions have changed to the following: 9744 9745typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 9746UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 9747*HandlerContext, // This used to be void *Context void 9748*RegionContext); // This is an additional parameter 9749 9750typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 9751RegionHandle, UINT32 Function, void *HandlerContext, void 9752**RegionContext); // This used to be **ReturnContext 9753 9754------------------------------------------- 9755Summary of changes for this label: 07_21_00 9756 9757Major file consolidation and rename. All files within the 9758interpreter have been renamed as well as most header files. This 9759was done to prevent collisions with existing files in the host 9760OSs -- filenames such as "config.h" and "global.h" seem to be 9761quite common. The VC project files have been updated. All 9762makefiles will require modification. 9763 9764The parser/interpreter integration continues in Phase 5 with the 9765implementation of a complete 2-pass parse (the AML is parsed 9766twice) for each table; This avoids the construction of a huge 9767parse tree and therefore reduces the amount of dynamic memory 9768required by the subsystem. Greater use of the parse object cache 9769means that performance is unaffected. 9770 9771Many comments from the two code reviews have been rolled in. 9772 9773The 64-bit alignment support is complete. 9774 9775------------------------------------------- 9776Summary of changes for this label: 06_30_00 9777 9778With a nod and a tip of the hat to the technology of yesteryear, 9779we've added support in the source code for 80 column output 9780devices. The code is now mostly constrained to 80 columns or 9781less to support environments and editors that 1) cannot display 9782or print more than 80 characters on a single line, and 2) cannot 9783disable line wrapping. 9784 9785A major restructuring of the namespace data structure has been 9786completed. The result is 1) cleaner and more 9787understandable/maintainable code, and 2) a significant reduction 9788in the dynamic memory requirement for each named ACPI object 9789(almost half). 9790 9791------------------------------------------- 9792Summary of changes for this label: 06_23_00 9793 9794Linux support has been added. In order to obtain approval to get 9795the ACPI CA subsystem into the Linux kernel, we've had to make 9796quite a few changes to the base subsystem that will affect all 9797users (all the changes are generic and OS- independent). The 9798effects of these global changes have been somewhat far reaching. 9799Files have been merged and/or renamed and interfaces have been 9800renamed. The major changes are described below. 9801 9802Osd* interfaces renamed to AcpiOs* to eliminate namespace 9803pollution/confusion within our target kernels. All OSD 9804interfaces must be modified to match the new naming convention. 9805 9806Files merged across the subsystem. A number of the smaller source 9807and header files have been merged to reduce the file count and 9808increase the density of the existing files. There are too many 9809to list here. In general, makefiles that call out individual 9810files will require rebuilding. 9811 9812Interpreter files renamed. All interpreter files now have the 9813prefix am* instead of ie* and is*. 9814 9815Header files renamed: The acapi.h file is now acpixf.h. The 9816acpiosd.h file is now acpiosxf.h. We are removing references to 9817the acronym "API" since it is somewhat windowsy. The new name is 9818"external interface" or xface or xf in the filenames.j 9819 9820 9821All manifest constants have been forced to upper case (some were 9822mixed case.) Also, the string "ACPI_" has been prepended to many 9823(not all) of the constants, typedefs, and structs. 9824 9825The globals "DebugLevel" and "DebugLayer" have been renamed 9826"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 9827 9828All other globals within the subsystem are now prefixed with 9829"AcpiGbl_" Internal procedures within the subsystem are now 9830prefixed with "Acpi" (with only a few exceptions). The original 9831two-letter abbreviation for the subcomponent remains after "Acpi" 9832- for example, CmCallocate became AcpiCmCallocate. 9833 9834Added a source code translation/conversion utility. Used to 9835generate the Linux source code, it can be modified to generate 9836other types of source as well. Can also be used to cleanup 9837existing source by removing extraneous spaces and blank lines. 9838Found in tools/acpisrc/* 9839 9840OsdUnMapMemory was renamed to OsdUnmapMemory and then 9841AcpiOsUnmapMemory. (UnMap became Unmap). 9842 9843A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 9844When set to one, this indicates that the caller wants to use the 9845 9846semaphore as a mutex, not a counting semaphore. ACPI CA uses 9847both types. However, implementers of this call may want to use 9848different OS primitives depending on the type of semaphore 9849requested. For example, some operating systems provide separate 9850 9851"mutex" and "semaphore" interfaces - where the mutex interface is 9852much faster because it doesn't have all the overhead of a full 9853semaphore implementation. 9854 9855Fixed a deadlock problem where a method that accesses the PCI 9856address space can block forever if it is the first access to the 9857space. 9858 9859------------------------------------------- 9860Summary of changes for this label: 06_02_00 9861 9862Support for environments that cannot handle unaligned data 9863accesses (e.g. firmware and OS environments devoid of alignment 9864handler technology namely SAL/EFI and the IA-64 Linux kernel) has 9865been added (via configurable macros) in these three areas: - 9866Transfer of data from the raw AML byte stream is done via byte 9867moves instead of word/dword/qword moves. - External objects are 9868aligned within the user buffer, including package elements (sub- 9869objects). - Conversion of name strings to UINT32 Acpi Names is now 9870done byte-wise. 9871 9872The Store operator was modified to mimic Microsoft's 9873implementation when storing to a Buffer Field. 9874 9875Added a check of the BM_STS bit before entering C3. 9876 9877The methods subdirectory has been obsoleted and removed. A new 9878file, cmeval.c subsumes the functionality. 9879 9880A 16-bit (DOS) version of AcpiExec has been developed. The 9881makefile is under the acpiexec directory. 9882