1---------------------------------------- 222 April 2016. Summary of changes for version 20160422: 3 41) ACPICA kernel-resident subsystem: 5 6Fixed a regression in the GAS (generic address structure) arbitrary bit 7support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 8and incorrect return values. Lv Zheng. ACPICA BZ 1270. 9 10ACPI 6.0: Added support for new/renamed resource macros. One new argument 11was added to each of these macros, and the original name has been 12deprecated. The AML disassembler will always disassemble to the new 13names. Support for the new macros was added to iASL, disassembler, 14resource manager, and the acpihelp utility. ACPICA BZ 1274. 15 16 I2cSerialBus -> I2cSerialBusV2 17 SpiSerialBus -> SpiSerialBusV2 18 UartSerialBus -> UartSerialBusV2 19 20ACPI 6.0: Added support for a new integer field that was appended to the 21package object returned by the _BIX method. This adds iASL compile-time 22and AML runtime error checking. ACPICA BZ 1273. 23 24ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 25Subspace Type2" (Headers, Disassembler, and data table compiler). 26 27Example Code and Data Size: These are the sizes for the OS-independent 28acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 29debug version of the code includes the debug output trace mechanism and 30has a much larger code and data size. 31 32 Current Release: 33 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 34 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 35 Previous Release: 36 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 37 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 38 39 402) iASL Compiler/Disassembler and Tools: 41 42iASL: Implemented an ASL grammar extension to allow/enable executable 43"module-level code" to be created and executed under the various 44operators that create new scopes. This type of AML code is already 45supported in all known AML interpreters, and the grammar change will 46appear in the next version of the ACPI specification. Simplifies the 47conditional runtime creation of named objects under these object types: 48 49 Device 50 PowerResource 51 Processor 52 Scope 53 ThermalZone 54 55iASL: Implemented a new ASL extension, a "For" loop macro to add greater 56ease-of-use to the ASL language. The syntax is similar to the 57corresponding C operator, and is implemented with the existing AML While 58opcode -- thus requiring no changes to existing AML interpreters. 59 60 For (Initialize, Predicate, Update) {TermList} 61 62Grammar: 63 ForTerm := 64 For ( 65 Initializer // Nothing | TermArg => ComputationalData 66 Predicate // Nothing | TermArg => ComputationalData 67 Update // Nothing | TermArg => ComputationalData 68 ) {TermList} 69 70 71iASL: The _HID/_ADR detection and validation has been enhanced to search 72under conditionals in order to allow these objects to be conditionally 73created at runtime. 74 75iASL: Fixed several issues with the constant folding feature. The 76improvement allows better detection and resolution of statements that can 77be folded at compile time. ACPICA BZ 1266. 78 79iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 80conversion to the ASL ElseIf operator where incorrect ASL code could be 81generated. 82 83iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 84sometimes an extra (and extraneous) set of parentheses were emitted for 85some combinations of operators. Although this did not cause any problems 86with recompilation of the disassembled code, it made the code more 87difficult to read. David Box. ACPICA BZ 1231. 88 89iASL: Changed to ignore the unreferenced detection for predefined names 90of resource descriptor elements, when the resource descriptor is 91created/defined within a control method. 92 93iASL: Disassembler: Fix a possible fault with externally declared Buffer 94objects. 95 96---------------------------------------- 9718 March 2016. Summary of changes for version 20160318: 98 991) ACPICA kernel-resident subsystem: 100 101Added support for arbitrary bit lengths and bit offsets for registers 102defined by the Generic Address Structure. Previously, only aligned bit 103lengths of 8/16/32/64 were supported. This was sufficient for many years, 104but recently some machines have been seen that require arbitrary bit- 105level support. ACPICA BZ 1240. Lv Zheng. 106 107Fixed an issue where the \_SB._INI method sometimes must be evaluated 108before any _REG methods are evaluated. Lv Zheng. 109 110Implemented several changes related to ACPI table support 111(Headers/Disassembler/TableCompiler): 112NFIT: For ACPI 6.1, updated to add some additional new fields and 113constants. 114FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 1156). 116DMAR: Added new constants per the 10/2014 DMAR spec. 117IORT: Added new subtable per the 10/2015 IORT spec. 118HEST: For ACPI 6.1, added new constants and new subtable. 119DBG2: Added new constants per the 12/2015 DBG2 spec. 120FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 121ACPICA BZ 1249. 122ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 123 124Updated header support for the DMAR table to match the current version of 125the related spec. 126 127Added extensions to the ASL Concatenate operator to allow any ACPI object 128to be passed as an operand. Any object other than Integer/String/Buffer 129simply returns a string containing the object type. This extends the 130usefulness of the Printf macros. Previously, Concatenate would abort the 131control method if a non-data object was encountered. 132 133ACPICA source code: Deployed the C "const" keyword across the source code 134where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 135 136Example Code and Data Size: These are the sizes for the OS-independent 137acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 138debug version of the code includes the debug output trace mechanism and 139has a much larger code and data size. 140 141 Current Release: 142 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 143 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 144 Previous Release: 145 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 146 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 147 148 1492) iASL Compiler/Disassembler and Tools: 150 151iASL/Disassembler: Improved the heuristic used to determine the number of 152arguments for an externally defined control method (a method in another 153table). Although this is an improvement, there is no deterministic way to 154"guess" the number of method arguments. Only the ACPI 6.0 External opcode 155will completely solve this problem as it is deployed (automatically) in 156newer BIOS code. 157 158iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 159statements that could cause errors when the disassembled file is 160compiled. ACPICA BZ 1243. David Box. 161 162iASL: Fixed a regression caused by the merger of the two versions of the 163local strtoul64. Because of a dependency on a global variable, strtoul64 164could return an error for integers greater than a 32-bit value. ACPICA BZ 1651260. 166 167iASL: Fixed a regression where a fault could occur for an ASL Return 168statement if it invokes a control method that is not resolved. ACPICA BZ 1691264. 170 171AcpiXtract: Improved input file validation: detection of binary files and 172non-acpidump text files. 173 174---------------------------------------- 17512 February 2016. Summary of changes for version 20160212: 176 1771) ACPICA kernel-resident subsystem: 178 179Implemented full support for the ACPI 6.1 specification (released in 180January). This version of the specification is available at: 181http://www.uefi.org/specifications 182 183Only a relatively small number of changes were required in ACPICA to 184support ACPI 6.1, in these areas: 185- New predefined names 186- New _HID values 187- A new subtable for HEST 188- A few other header changes for new values 189 190Ensure \_SB_._INI is executed before any _REG methods are executed. There 191appears to be existing BIOS code that relies on this behavior. Lv Zheng. 192 193Reverted a change made in version 20151218 which enabled method 194invocations to be targets of various ASL operators (SuperName and Target 195grammar elements). While the new behavior is supported by the ACPI 196specification, other AML interpreters do not support this behavior and 197never will. The ACPI specification will be updated for ACPI 6.2 to remove 198this support. Therefore, the change was reverted to the original ACPICA 199behavior. 200 201ACPICA now supports the GCC 6 compiler. 202 203Current Release: (Note: build changes increased sizes) 204 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 205 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 206Previous Release: 207 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 208 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 209 210 2112) iASL Compiler/Disassembler and Tools: 212 213Completed full support for the ACPI 6.0 External() AML opcode. The 214compiler emits an external AML opcode for each ASL External statement. 215This opcode is used by the disassembler to assist with the disassembly of 216external control methods by specifying the required number of arguments 217for the method. AML interpreters do not use this opcode. To ensure that 218interpreters do not even see the opcode, a block of one or more external 219opcodes is surrounded by an "If(0)" construct. As this feature becomes 220commonly deployed in BIOS code, the ability of disassemblers to correctly 221disassemble AML code will be greatly improved. David Box. 222 223iASL: Implemented support for an optional cross-reference output file. 224The -lx option will create a the cross-reference file with the suffix 225"xrf". Three different types of cross-reference are created in this file: 226- List of object references made from within each control method 227- Invocation (caller) list for each user-defined control method 228- List of references to each non-method object in the namespace 229 230iASL: Method invocations as ASL Target operands are now disallowed and 231flagged as errors in preparation for ACPI 6.2 (see the description of the 232problem above). 233 234---------------------------------------- 2358 January 2016. Summary of changes for version 20160108: 236 2371) ACPICA kernel-resident subsystem: 238 239Updated all ACPICA copyrights and signons to 2016: Added the 2016 240copyright to all source code module headers and utility/tool signons. 241This includes the standard Linux dual-license header. This affects 242virtually every file in the ACPICA core subsystem, iASL compiler, all 243ACPICA utilities, and the ACPICA test suite. 244 245Fixed a regression introduced in version 20151218 concerning the 246execution of so-called module-level ASL/AML code. Namespace objects 247created under a module-level If() construct were not properly/fully 248entered into the namespace and could cause an interpreter fault when 249accessed. 250 251Example Code and Data Size: These are the sizes for the OS-independent 252acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 253debug version of the code includes the debug output trace mechanism and 254has a much larger code and data size. 255 256Current Release: 257 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 258 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 259 Previous Release: 260 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 261 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 262 263 2642) iASL Compiler/Disassembler and Tools: 265 266Fixed a problem with the compilation of the GpioIo and GpioInt resource 267descriptors. The _PIN field name was incorrectly defined to be an array 268of 32-bit values, but the _PIN values are in fact 16 bits each. This 269would cause incorrect bit width warnings when using Word (16-bit) fields 270to access the descriptors. 271 272 273---------------------------------------- 27418 December 2015. Summary of changes for version 20151218: 275 2761) ACPICA kernel-resident subsystem: 277 278Implemented per-AML-table execution of "module-level code" as individual 279ACPI tables are loaded into the namespace during ACPICA initialization. 280In other words, any module-level code within an AML table is executed 281immediately after the table is loaded, instead of batched and executed 282after all of the tables have been loaded. This provides compatibility 283with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 284David Box. 285 286To fully support the feature above, the default operation region handlers 287for the SystemMemory, SystemIO, and PCI_Config address spaces are now 288installed before any ACPI tables are loaded. This enables module-level 289code to access these address spaces during the table load and module- 290level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 291Box. 292 293Implemented several changes to the internal _REG support in conjunction 294with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 295utilities for the changes above. Although these tools were changed, host 296operating systems that simply use the default handlers for SystemMemory, 297SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 298 299For example, in the code below, DEV1 is conditionally added to the 300namespace by the DSDT via module-level code that accesses an operation 301region. The SSDT references DEV1 via the Scope operator. DEV1 must be 302created immediately after the DSDT is loaded in order for the SSDT to 303successfully reference DEV1. Previously, this code would cause an 304AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 305fully supported by ACPICA. 306 307 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 308 { 309 OperationRegion (OPR1, SystemMemory, 0x400, 32) 310 Field (OPR1, AnyAcc, NoLock, Preserve) 311 { 312 FLD1, 1 313 } 314 If (FLD1) 315 { 316 Device (\DEV1) 317 { 318 } 319 } 320 } 321 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 322 { 323 External (\DEV1, DeviceObj) 324 Scope (\DEV1) 325 { 326 } 327 } 328 329Fixed an AML interpreter problem where control method invocations were 330not handled correctly when the invocation was itself a SuperName argument 331to another ASL operator. In these cases, the method was not invoked. 332ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 333argument: 334 Store 335 Acquire, Wait 336 CondRefOf, RefOf 337 Decrement, Increment 338 Load, Unload 339 Notify 340 Signal, Release, Reset 341 SizeOf 342 343Implemented automatic String-to-ObjectReference conversion support for 344packages returned by predefined names (such as _DEP). A common BIOS error 345is to add double quotes around an ObjectReference namepath, which turns 346the reference into an unexpected string object. This support detects the 347problem and corrects it before the package is returned to the caller that 348invoked the method. Lv Zheng. 349 350Implemented extensions to the Concatenate operator. Concatenate now 351accepts any type of object, it is not restricted to simply 352Integer/String/Buffer. For objects other than these 3 basic data types, 353the argument is treated as a string containing the name of the object 354type. This expands the utility of Concatenate and the Printf/Fprintf 355macros. ACPICA BZ 1222. 356 357Cleaned up the output of the ASL Debug object. The timer() value is now 358optional and no longer emitted by default. Also, the basic data types of 359Integer/String/Buffer are simply emitted as their values, without a data 360type string -- since the data type is obvious from the output. ACPICA BZ 3611221. 362 363Example Code and Data Size: These are the sizes for the OS-independent 364acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 365debug version of the code includes the debug output trace mechanism and 366has a much larger code and data size. 367 368 Current Release: 369 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 370 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 371 Previous Release: 372 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 373 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 374 375 3762) iASL Compiler/Disassembler and Tools: 377 378iASL: Fixed some issues with the ASL Include() operator. This operator 379was incorrectly defined in the iASL parser rules, causing a new scope to 380be opened for the code within the include file. This could lead to 381several issues, including allowing ASL code that is technically illegal 382and not supported by AML interpreters. Note, this does not affect the 383related #include preprocessor operator. ACPICA BZ 1212. 384 385iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 386operator is essentially an ASL macro since there is no AML opcode 387associated with it. The code emitted by the iASL compiler for ElseIf is 388an Else opcode followed immediately by an If opcode. The disassembler 389will now emit an ElseIf if it finds an Else immediately followed by an 390If. This simplifies the decoded ASL, especially for deeply nested 391If..Else and large Switch constructs. Thus, the disassembled code more 392closely follows the original source ASL. ACPICA BZ 1211. Example: 393 394 Old disassembly: 395 Else 396 { 397 If (Arg0 == 0x02) 398 { 399 Local0 = 0x05 400 } 401 } 402 403 New disassembly: 404 ElseIf (Arg0 == 0x02) 405 { 406 Local0 = 0x05 407 } 408 409AcpiExec: Added support for the new module level code behavior and the 410early region installation. This required a small change to the 411initialization, since AcpiExec must install its own operation region 412handlers. 413 414AcpiExec: Added support to make the debug object timer optional. Default 415is timer disabled. This cleans up the debug object output -- the timer 416data is rarely used. 417 418AcpiExec: Multiple ACPI tables are now loaded in the order that they 419appear on the command line. This can be important when there are 420interdependencies/references between the tables. 421 422iASL/Templates. Add support to generate template files with multiple 423SSDTs within a single output file. Also added ommand line support to 424specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 4251223, 1225. 426 427 428---------------------------------------- 42924 November 2015. Summary of changes for version 20151124: 430 4311) ACPICA kernel-resident subsystem: 432 433Fixed a possible regression for a previous update to FADT handling. The 434FADT no longer has a fixed table ID, causing some issues with code that 435was hardwired to a specific ID. Lv Zheng. 436 437Fixed a problem where the method auto-serialization could interfere with 438the current SyncLevel. This change makes the auto-serialization support 439transparent to the SyncLevel support and management. 440 441Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 442interface is intended for early access to the namespace during the 443initial namespace device discovery walk. The _SUB method has been seen to 444access operation regions in some cases, causing errors because the 445operation regions are not fully initialized. 446 447AML Debugger: Fixed some issues with the terminate/quit/exit commands 448that can cause faults. Lv Zheng. 449 450AML Debugger: Add thread ID support so that single-step mode only applies 451to the AML Debugger thread. This prevents runtime errors within some 452kernels. Lv Zheng. 453 454Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 455methods that are invoked by this interface are optional, removed warnings 456emitted for the case where one or more of these methods do not exist. 457ACPICA BZ 1208, original change by Prarit Bhargava. 458 459Made a major pass through the entire ACPICA source code base to 460standardize formatting that has diverged a bit over time. There are no 461functional changes, but this will of course cause quite a few code 462differences from the previous ACPICA release. 463 464Example Code and Data Size: These are the sizes for the OS-independent 465acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 466debug version of the code includes the debug output trace mechanism and 467has a much larger code and data size. 468 469 Current Release: 470 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 471 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 472 Previous Release: 473 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 474 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 475 476 4772) iASL Compiler/Disassembler and Tools: 478 479iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 480definition blocks within a single ASL file and the resulting AML file. 481Support for this type of file was also added to the various tools that 482use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 483example code below shows two definition blocks within the same file: 484 485 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 4860x12345678) 487 { 488 } 489 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 490 { 491 } 492 493iASL: Enhanced typechecking for the Name() operator. All expressions for 494the value of the named object must be reduced/folded to a single constant 495at compile time, as per the ACPI specification (the AML definition of 496Name()). 497 498iASL: Fixed some code indentation issues for the -ic and -ia options (C 499and assembly headers). Now all emitted code correctly begins in column 1. 500 501iASL: Added an error message for an attempt to open a Scope() on an 502object defined in an SSDT. The DSDT is always loaded into the namespace 503first, so any attempt to open a Scope on an SSDT object will fail at 504runtime. 505 506 507---------------------------------------- 50830 September 2015. Summary of changes for version 20150930: 509 5101) ACPICA kernel-resident subsystem: 511 512Debugger: Implemented several changes and bug fixes to assist support for 513the in-kernel version of the AML debugger. Lv Zheng. 514- Fix the "predefined" command for in-kernel debugger. 515- Do not enter debug command loop for the help and version commands. 516- Disallow "execute" command during execution/single-step of a method. 517 518Interpreter: Updated runtime typechecking for all operators that have 519target operands. The operand is resolved and validated that it is legal. 520For example, the target cannot be a non-data object such as a Device, 521Mutex, ThermalZone, etc., as per the ACPI specification. 522 523Debugger: Fixed the double-mutex user I/O handshake to work when local 524deadlock detection is enabled. 525 526Debugger: limited display of method locals and arguments (LocalX and 527ArgX) to only those that have actually been initialized. This prevents 528lines of extraneous output. 529 530Updated the definition of the NFIT table to correct the bit polarity of 531one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 532 533Example Code and Data Size: These are the sizes for the OS-independent 534acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 535debug version of the code includes the debug output trace mechanism and 536has a much larger code and data size. 537 538 Current Release: 539 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 540 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 541 Previous Release: 542 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 543 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 544 545 5462) iASL Compiler/Disassembler and Tools: 547 548iASL: Improved the compile-time typechecking for operands of many of the 549ASL operators: 550 551-- Added an option to disable compiler operand/operator typechecking (- 552ot). 553 554-- For the following operators, the TermArg operands are now validated 555when possible to be Integer data objects: BankField, OperationRegion, 556DataTableRegion, Buffer, and Package. 557 558-- Store (Source, Target): Both the source and target operands are 559resolved and checked that the operands are both legal. For example, 560neither operand can be a non-data object such as a Device, Mutex, 561ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 562operator can be used to store an object to any type of target object. 563 564-- Store (Source, Target): If the source is a Package object, the target 565must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 566is a Package, the source must also be a Package. 567 568-- Store (Source, Target): A warning is issued if the source and target 569resolve to the identical named object. 570 571-- Store (Source, <method invocation>): An error is generated for the 572target method invocation, as this construct is not supported by the AML 573interpreter. 574 575-- For all ASL math and logic operators, the target operand must be a 576data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 577includes the function return value also. 578 579-- External declarations are also included in the typechecking where 580possible. External objects defined using the UnknownObj keyword cannot be 581typechecked, however. 582 583iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 584operator: 585- Legacy code: Index(PKG1, 3) 586- New ASL+ code: PKG1[3] 587This completes the ACPI 6.0 ASL+ support as it was the only operator not 588supported. 589 590iASL: Fixed the file suffix for the preprocessor output file (.i). Two 591spaces were inadvertently appended to the filename, causing file access 592and deletion problems on some systems. 593 594ASL Test Suite (ASLTS): Updated the master makefile to generate all 595possible compiler output files when building the test suite -- thus 596exercising these features of the compiler. These files are automatically 597deleted when the test suite exits. 598 599 600---------------------------------------- 60118 August 2015. Summary of changes for version 20150818: 602 6031) ACPICA kernel-resident subsystem: 604 605Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 606Zheng. ACPICA BZ 1186. 607 608Completed development to ensure that the ACPICA Disassembler and Debugger 609are fully standalone components of ACPICA. Removed cross-component 610dependences. Lv Zheng. 611 612The max-number-of-AML-loops is now runtime configurable (previously was 613compile-time only). This is essentially a loop timeout to force-abort 614infinite AML loops. ACPCIA BZ 1192. 615 616Debugger: Cleanup output to dump ACPI names and namepaths without any 617trailing underscores. Lv Zheng. ACPICA BZ 1135. 618 619Removed unnecessary conditional compilations across the Debugger and 620Disassembler components where entire modules could be left uncompiled. 621 622The aapits test is deprecated and has been removed from the ACPICA git 623tree. The test has never been completed and has not been maintained, thus 624becoming rather useless. ACPICA BZ 1015, 794. 625 626A batch of small changes to close bugzilla and other reports: 627- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 628- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 629- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 630- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 631Moore. 632- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 633ACPICA BZ 1184. 634- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 635operators. 636- Debugger: Split debugger initialization/termination interfaces. Lv 637Zheng. 638- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 639identification. 640- AcpiExec: Add debug message during _REG method phase during table 641load/init. 642- AcpiNames: Fix a regression where some output was missing and no longer 643emitted. 644- Debugger: General cleanup and simplification. Lv Zheng. 645- Disassembler: Cleanup use of several global option variables. Lv Zheng. 646 647Example Code and Data Size: These are the sizes for the OS-independent 648acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 649debug version of the code includes the debug output trace mechanism and 650has a much larger code and data size. 651 652 Current Release: 653 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 654 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 655 Previous Release: 656 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 657 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 658 659 6602) iASL Compiler/Disassembler and Tools: 661 662AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 663were not handled properly and caused load errors. Now, properly invoke 664and use the ACPICA auto-reallocate mechanism for ACPI table data 665structures. ACPICA BZ 1188 666 667AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 668BZ 1190. 669 670AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 671AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 672executed during initialization. ACPICA BZ 1187, 1189. 673 674iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 675that corresponds to each disassembled ASL statement, to simplify 676debugging. ACPICA BZ 1191. 677 678Debugger: Add option to the "objects" command to display a summary of the 679current namespace objects (Object type and count). This is displayed if 680the command is entered with no arguments. 681 682AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 683 684 685---------------------------------------- 68617 July 2015. Summary of changes for version 20150717: 687 6881) ACPICA kernel-resident subsystem: 689 690Improved the partitioning between the Debugger and Disassembler 691components. This allows the Debugger to be used standalone within kernel 692code without the Disassembler (which is used for single stepping also). 693This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 694 695Debugger: Implemented a new command to trace the execution of control 696methods (Trace). This is especially useful for the in-kernel version of 697the debugger when file I/O may not be available for method trace output. 698See the ACPICA reference for more information. Lv Zheng. 699 700Moved all C library prototypes (used for the local versions of these 701functions when requested) to a new header, acclib.h 702Cleaned up the use of non-ANSI C library functions. These functions are 703implemented locally in ACPICA. Moved all such functions to a common 704source file, utnonansi.c 705 706Debugger: Fixed a problem with the "!!" command (get last command 707executed) where the debugger could enter an infinite loop and eventually 708crash. 709 710Removed the use of local macros that were used for some of the standard C 711library functions to automatically cast input parameters. This mostly 712affected the is* functions where the input parameter is defined to be an 713int. This required a few modifications to the main ACPICA source code to 714provide casting for these functions and eliminate possible compiler 715warnings for these parameters. 716 717Across the source code, added additional status/error checking to resolve 718issues discovered by static source code analysis tools such as Coverity. 719 720Example Code and Data Size: These are the sizes for the OS-independent 721acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 722debug version of the code includes the debug output trace mechanism and 723has a much larger code and data size. 724 725 Current Release: 726 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 727 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 728 Previous Release: 729 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 730 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 731 732 7332) iASL Compiler/Disassembler and Tools: 734 735iASL: Fixed a regression where the device map file feature no longer 736worked properly when used in conjunction with the disassembler. It only 737worked properly with the compiler itself. 738 739iASL: Implemented a new warning for method LocalX variables that are set 740but never used (similar to a C compiler such as gcc). This also applies 741to ArgX variables that are not defined by the parent method, and are 742instead (legally) used as local variables. 743 744iASL/Preprocessor: Finished the pass-through of line numbers from the 745preprocessor to the compiler. This ensures that compiler errors/warnings 746have the correct original line numbers and filenames, regardless of any 747#include files. 748 749iASL/Preprocessor: Fixed a couple of issues with comment handling and the 750pass-through of comments to the preprocessor output file (which becomes 751the compiler input file). Also fixed a problem with // comments that 752appear after a math expression. 753 754iASL: Added support for the TCPA server table to the table compiler and 755template generator. (The client table was already previously supported) 756 757iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 758identify the iASL compiler. 759 760Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 761multiple times. The new names are ACPI_SIGN_NEGATIVE and 762ACPI_SIGN_POSITIVE. 763 764AcpiHelp: Update to expand help messages for the iASL preprocessor 765directives. 766 767 768---------------------------------------- 76919 June 2015. Summary of changes for version 20150619: 770 771Two regressions in version 20150616 have been addressed: 772 773Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 774etc.) This update changes ACPICA to only use the standard headers for 775functions, or the prototypes for the local versions of the C library 776functions. Across the source code, this required some additional casts 777for some Clib invocations for portability. Moved all local prototypes to 778a new file, acclib.h 779 780Fixes several problems with recent changes to the handling of the FACS 781table that could cause some systems not to boot. 782 783 784---------------------------------------- 78516 June 2015. Summary of changes for version 20150616: 786 787 7881) ACPICA kernel-resident subsystem: 789 790Across the entire ACPICA source code base, the various macros for the C 791library functions (such as ACPI_STRLEN, etc.) have been removed and 792replaced by the standard C library names (strlen, etc.) The original 793purpose for these macros is no longer applicable. This simplification 794reduces the number of macros used in the ACPICA source code 795significantly, improving readability and maintainability. 796 797Implemented support for a new ACPI table, the OSDT. This table, the 798"override" SDT, can be loaded directly by the host OS at boot time. It 799enables the replacement of existing namespace objects that were installed 800via the DSDT and/or SSDTs. The primary purpose for this is to replace 801buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 802for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 803Moore. 804 805Added support for systems with (improperly) two FACS tables -- a "32-bit" 806table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 807X field). This change will support both automatically. There continues to 808be systems found with this issue. This support requires a change to the 809AcpiSetFirmwareWakingVector interface. Also, a public global variable has 810been added to allow the host to select which FACS is desired 811(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 812details Lv Zheng. 813 814Added a new feature to allow for systems that do not contain an FACS. 815Although this is already supported on hardware-reduced platforms, the 816feature has been extended for all platforms. The reasoning is that we do 817not want to abort the entire ACPICA initialization just because the 818system is seriously buggy and has no FACS. 819 820Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 821not correctly transcribed from the ACPI specification in ACPICA version 82220150515. 823 824Implemented support for the _CLS object in the AcpiGetObjectInfo external 825interface. 826 827Updated the definitions of the TCPA and TPM2 ACPI tables to the more 828recent TCG ACPI Specification, December 14, 2014. Table disassembler and 829compiler also updated. Note: The TCPA "server" table is not supported by 830the disassembler/table-compiler at this time. 831 832ACPI 6.0: Added definitions for the new GIC version field in the MADT. 833 834Example Code and Data Size: These are the sizes for the OS-independent 835acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 836debug version of the code includes the debug output trace mechanism and 837has a much larger code and data size. 838 839 Current Release: 840 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 841 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 842 Previous Release: 843 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 844 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 845 846 8472) iASL Compiler/Disassembler and Tools: 848 849Disassembler: Fixed a problem with the new symbolic operator disassembler 850where incorrect ASL code could be emitted in some cases for the "non- 851commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 852ShiftRight. The actual problem cases seem to be rather unusual in common 853ASL code, however. David Box. 854 855Modified the linux version of acpidump to obtain ACPI tables from not 856just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 857Zheng. 858 859iASL: Fixed a problem where the user preprocessor output file (.i) 860contained extra data that was not expected. The compiler was using this 861file as a temporary file and passed through #line directives in order to 862keep compiler error messages in sync with the input file and line number 863across multiple include files. The (.i) is no longer a temporary file as 864the compiler uses a new, different file for the original purpose. 865 866iASL: Fixed a problem where comments within the original ASL source code 867file were not passed through to the preprocessor output file, nor any 868listing files. 869 870iASL: Fixed some issues for the handling of the "#include" preprocessor 871directive and the similar (but not the same) "Include" ASL operator. 872 873iASL: Add support for the new OSDT in both the disassembler and compiler. 874 875iASL: Fixed a problem with the constant folding support where a Buffer 876object could be incorrectly generated (incorrectly formed) during a 877conversion to a Store() operator. 878 879AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 880description text for the _REV predefined name. _REV now permanently 881returns 2, as per the ACPI 6.0 specification. 882 883Debugger: Enhanced the output of the Debug ASL object for references 884produced by the Index operator. For Buffers and strings, only output the 885actual byte pointed to by the index. For packages, only print the single 886package element decoded by the index. Previously, the entire 887buffer/string/package was emitted. 888 889iASL/Table-compiler: Fixed a regression where the "generic" data types 890were no longer recognized, causing errors. 891 892 893---------------------------------------- 89415 May 2015. Summary of changes for version 20150515: 895 896This release implements most of ACPI 6.0 as described below. 897 8981) ACPICA kernel-resident subsystem: 899 900Implemented runtime argument checking and return value checking for all 901new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 902_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 903 904Example Code and Data Size: These are the sizes for the OS-independent 905acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 906debug version of the code includes the debug output trace mechanism and 907has a much larger code and data size. 908 909 Current Release: 910 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 911 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 912 Previous Release: 913 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 914 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 915 916 9172) iASL Compiler/Disassembler and Tools: 918 919iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 920names (argument count validation and return value typechecking.) 921 922iASL disassembler and table compiler: implemented support for all new 923ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 924 925iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 926tables: FADT, MADT. 927 928iASL preprocessor: Added a new directive to enable inclusion of binary 929blobs into ASL code. The new directive is #includebuffer. It takes a 930binary file as input and emits a named ascii buffer object into the ASL 931code. 932 933AcpiHelp: Added support for all new ACPI 6.0 predefined names. 934 935AcpiHelp: Added a new option, -d, to display all iASL preprocessor 936directives. 937 938AcpiHelp: Added a new option, -t, to display all known/supported ACPI 939tables. 940 941 942---------------------------------------- 94310 April 2015. Summary of changes for version 20150410: 944 945Reverted a change introduced in version 20150408 that caused 946a regression in the disassembler where incorrect operator 947symbols could be emitted. 948 949 950---------------------------------------- 95108 April 2015. Summary of changes for version 20150408: 952 953 9541) ACPICA kernel-resident subsystem: 955 956Permanently set the return value for the _REV predefined name. It now 957returns 2 (was 5). This matches other ACPI implementations. _REV will be 958deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 959for ACPI 2.0 and later. It should never be used to differentiate or 960identify operating systems. 961 962Added the "Windows 2015" string to the _OSI support. ACPICA will now 963return TRUE to a query with this string. 964 965Fixed several issues with the local version of the printf function. 966 967Added the C99 compiler option (-std=c99) to the Unix makefiles. 968 969 Current Release: 970 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 971 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 972 Previous Release: 973 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 974 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 975 976 9772) iASL Compiler/Disassembler and Tools: 978 979iASL: Implemented an enhancement to the constant folding feature to 980transform the parse tree to a simple Store operation whenever possible: 981 Add (2, 3, X) ==> is converted to: Store (5, X) 982 X = 2 + 3 ==> is converted to: Store (5, X) 983 984Updated support for the SLIC table (Software Licensing Description Table) 985in both the Data Table compiler and the disassembler. The SLIC table 986support now conforms to "Microsoft Software Licensing Tables (SLIC and 987MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 988following the ACPI header is now defined to be "Proprietary Data", and as 989such, can only be entered or displayed as a hex data block. 990 991Implemented full support for the MSDM table as described in the document 992above. Note: The format of MSDM is similar to SLIC. Any MSDM data 993following the ACPI header is defined to be "Proprietary Data", and can 994only be entered or displayed as a hex data block. 995 996Implemented the -Pn option for the iASL Table Compiler (was only 997implemented for the ASL compiler). This option disables the iASL 998preprocessor. 999 1000Disassembler: For disassembly of Data Tables, added a comment field 1001around the Ascii equivalent data that is emitted as part of the "Raw 1002Table Data" block. This prevents the iASL Preprocessor from possible 1003confusion if/when the table is compiled. 1004 1005Disassembler: Added an option (-df) to force the disassembler to assume 1006that the table being disassembled contains valid AML. This feature is 1007useful for disassembling AML files that contain ACPI signatures other 1008than DSDT or SSDT (such as OEMx or other signatures). 1009 1010Changes for the EFI version of the tools: 10111) Fixed a build error/issue 10122) Fixed a cast warning 1013 1014iASL: Fixed a path issue with the __FILE__ operator by making the 1015directory prefix optional within the internal SplitInputFilename 1016function. 1017 1018Debugger: Removed some unused global variables. 1019 1020Tests: Updated the makefile for proper generation of the AAPITS suite. 1021 1022 1023---------------------------------------- 102404 February 2015. Summary of changes for version 20150204: 1025 1026ACPICA kernel-resident subsystem: 1027 1028Updated all ACPICA copyrights and signons to 2014. Added the 2014 1029copyright to all module headers and signons, including the standard Linux 1030header. This affects virtually every file in the ACPICA core subsystem, 1031iASL compiler, all ACPICA utilities, and the test suites. 1032 1033Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 1034A raw gpe handling mechanism was created to allow better handling of GPE 1035storms that aren't easily managed by the normal handler. The raw handler 1036allows disabling/renabling of the the GPE so that interrupt storms can be 1037avoided in cases where events cannot be timely serviced. In this 1038scenario, handlers should use the AcpiSetGpe() API to disable/enable the 1039GPE. This API will leave the reference counts undisturbed, thereby 1040preventing unintentional clearing of the GPE when the intent in only to 1041temporarily disable it. Raw handlers allow enabling and disabling of a 1042GPE by removing GPE register locking. As such, raw handlers much provide 1043their own locks while using GPE API's to protect access to GPE data 1044structures. 1045Lv Zheng 1046 1047Events: Always modify GPE registers under the GPE lock. 1048Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 1049values. Reported as bug by joe.liu@apple.com. 1050 1051Unix makefiles: Separate option to disable optimizations and 1052_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 1053NOOPT disable option and creates a separate flag (NOFORTIFY) for this 1054purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 1055errors when building ACPICA. This allows disabling the option without 1056also having to disable optimazations. 1057David Box 1058 1059 Current Release: 1060 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 1061 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 1062 1063-- 1064-------------------------------------- 106507 November 2014. Summary of changes for version 20141107: 1066 1067This release is available at https://acpica.org/downloads 1068 1069This release introduces and implements language extensions to ASL that 1070provide support for symbolic ("C-style") operators and expressions. These 1071language extensions are known collectively as ASL+. 1072 1073 10741) iASL Compiler/Disassembler and Tools: 1075 1076Disassembler: Fixed a problem with disassembly of the UartSerialBus 1077macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 1078Box. 1079 1080Disassembler: Fixed the Unicode macro support to add escape sequences. 1081All non-printable ASCII values are emitted as escape sequences, as well 1082as the standard escapes for quote and backslash. Ensures that the 1083disassembled macro can be correctly recompiled. 1084 1085iASL: Added Printf/Fprintf macros for formatted output. These macros are 1086translated to existing AML Concatenate and Store operations. Printf 1087writes to the ASL Debug object. Fprintf allows the specification of an 1088ASL name as the target. Only a single format specifier is required, %o, 1089since the AML interpreter dynamically converts objects to the required 1090type. David E. Box. 1091 1092 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 1093 (Concatenate (Concatenate (Concatenate ("", Arg0), 1094 ": Unexpected value for "), Arg1), ", "), Arg2), 1095 " at line "), Arg3), Debug) 1096 1097 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 1098 Arg0, Arg1, Arg2, Arg3) 1099 1100 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 1101 ("", Arg1), ": "), Arg0), " Successful"), STR1) 1102 1103 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 1104 1105iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 1106ASL parse tree before the AML code is generated. This allows blocks of 1107ASL code to be removed in order to help locate and identify problem 1108devices and/or code. David E. Box. 1109 1110AcpiExec: Added support (-fi) for an optional namespace object 1111initialization file. This file specifies initial values for namespace 1112objects as necessary for debugging and testing different ASL code paths 1113that may be taken as a result of BIOS options. 1114 1115 11162) Overview of symbolic operator support for ASL (ASL+) 1117------------------------------------------------------- 1118 1119As an extension to the ASL language, iASL implements support for symbolic 1120(C-style) operators for math and logical expressions. This can greatly 1121simplify ASL code as well as improve both readability and 1122maintainability. These language extensions can exist concurrently with 1123all legacy ASL code and expressions. 1124 1125The symbolic extensions are 100% compatible with existing AML 1126interpreters, since no new AML opcodes are created. To implement the 1127extensions, the iASL compiler transforms the symbolic expressions into 1128the legacy ASL/AML equivalents at compile time. 1129 1130Full symbolic expressions are supported, along with the standard C 1131precedence and associativity rules. 1132 1133Full disassembler support for the symbolic expressions is provided, and 1134creates an automatic migration path for existing ASL code to ASL+ code 1135via the disassembly process. By default, the disassembler now emits ASL+ 1136code with symbolic expressions. An option (-dl) is provided to force the 1137disassembler to emit legacy ASL code if desired. 1138 1139Below is the complete list of the currently supported symbolic operators 1140with examples. See the iASL User Guide for additional information. 1141 1142 1143ASL+ Syntax Legacy ASL Equivalent 1144----------- --------------------- 1145 1146 // Math operators 1147 1148Z = X + Y Add (X, Y, Z) 1149Z = X - Y Subtract (X, Y, Z) 1150Z = X * Y Multiply (X, Y, Z) 1151Z = X / Y Divide (X, Y, , Z) 1152Z = X % Y Mod (X, Y, Z) 1153Z = X << Y ShiftLeft (X, Y, Z) 1154Z = X >> Y ShiftRight (X, Y, Z) 1155Z = X & Y And (X, Y, Z) 1156Z = X | Y Or (X, Y, Z) 1157Z = X ^ Y Xor (X, Y, Z) 1158Z = ~X Not (X, Z) 1159X++ Increment (X) 1160X-- Decrement (X) 1161 1162 // Logical operators 1163 1164(X == Y) LEqual (X, Y) 1165(X != Y) LNotEqual (X, Y) 1166(X < Y) LLess (X, Y) 1167(X > Y) LGreater (X, Y) 1168(X <= Y) LLessEqual (X, Y) 1169(X >= Y) LGreaterEqual (X, Y) 1170(X && Y) LAnd (X, Y) 1171(X || Y) LOr (X, Y) 1172(!X) LNot (X) 1173 1174 // Assignment and compound assignment operations 1175 1176X = Y Store (Y, X) 1177X += Y Add (X, Y, X) 1178X -= Y Subtract (X, Y, X) 1179X *= Y Multiply (X, Y, X) 1180X /= Y Divide (X, Y, , X) 1181X %= Y Mod (X, Y, X) 1182X <<= Y ShiftLeft (X, Y, X) 1183X >>= Y ShiftRight (X, Y, X) 1184X &= Y And (X, Y, X) 1185X |= Y Or (X, Y, X) 1186X ^= Y Xor (X, Y, X) 1187 1188 11893) ASL+ Examples: 1190----------------- 1191 1192Legacy ASL: 1193 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 1194 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 11950x03FB), 1196 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 1197 { 1198 And (MEMB, 0xFFFFFFF0, SRMB) 1199 Store (MEMB, Local2) 1200 Store (PDBM, Local1) 1201 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 1202 Store (SRMB, MEMB) 1203 Or (PDBM, 0x02, PDBM) 1204 } 1205 1206ASL+ version: 1207 If (((R510 & 0x03FB) == 0x02E0) || 1208 ((R520 & 0x03FB) == 0x02E0) || 1209 ((R530 & 0x03FB) == 0x02E0) || 1210 ((R540 & 0x03FB) == 0x02E0)) 1211 { 1212 SRMB = (MEMB & 0xFFFFFFF0) 1213 Local2 = MEMB 1214 Local1 = PDBM 1215 PDBM &= 0xFFFFFFFFFFFFFFF9 1216 MEMB = SRMB 1217 PDBM |= 0x02 1218 } 1219 1220Legacy ASL: 1221 Store (0x1234, Local1) 1222 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 1223 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 1224 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 1225 Store (Index (PKG1, 0x03), Local6) 1226 Store (Add (Local3, Local2), Debug) 1227 Add (Local1, 0x0F, Local2) 1228 Add (Local1, Multiply (Local2, Local3), Local2) 1229 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 1230 1231ASL+ version: 1232 Local1 = 0x1234 1233 Local3 = (((Local1 + TEST) + 0x20) * Local2) 1234 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 1235 Local3 = (Local1 + (TEST + (0x20 * Local2))) 1236 Local6 = Index (PKG1, 0x03) 1237 Debug = (Local3 + Local2) 1238 Local2 = (Local1 + 0x0F) 1239 Local2 = (Local1 + (Local2 * Local3)) 1240 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 1241 1242 1243---------------------------------------- 124426 September 2014. Summary of changes for version 20140926: 1245 12461) ACPICA kernel-resident subsystem: 1247 1248Updated the GPIO operation region handler interface (GeneralPurposeIo). 1249In order to support GPIO Connection objects with multiple pins, along 1250with the related Field objects, the following changes to the interface 1251have been made: The Address is now defined to be the offset in bits of 1252the field unit from the previous invocation of a Connection. It can be 1253viewed as a "Pin Number Index" into the connection resource descriptor. 1254The BitWidth is the exact bit width of the field. It is usually one bit, 1255but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 1256additional information and examples. 1257 1258GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 1259corresponding _Lxx/_Exx methods are disabled (they may have been enabled 1260by the firmware), so that they cannot fire until they are enabled via 1261AcpiUpdateAllGpes. Rafael J. Wysocki. 1262 1263Added a new return flag for the Event/GPE status interfaces -- 1264AcpiGetEventStatus and AcpiGetGpeStatus. The new 1265ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 1266GPE currently has a handler associated with it, and can thus actually 1267affect the system. Lv Zheng. 1268 1269Example Code and Data Size: These are the sizes for the OS-independent 1270acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1271debug version of the code includes the debug output trace mechanism and 1272has a much larger code and data size. 1273 1274 Current Release: 1275 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 1276 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 1277 Previous Release: 1278 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1279 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1280 12812) iASL Compiler/Disassembler and Tools: 1282 1283iASL: Fixed a memory allocation/free regression introduced in 20140828 1284that could cause the compiler to crash. This was introduced inadvertently 1285during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 12861113. 1287 1288iASL: Removed two error messages that have been found to create false 1289positives, until they can be fixed and fully validated (ACPICA BZ 1112): 12901) Illegal forward reference within a method 12912) Illegal reference across two methods 1292 1293iASL: Implemented a new option (-lm) to create a hardware mapping file 1294that summarizes all GPIO, I2C, SPI, and UART connections. This option 1295works for both the compiler and disassembler. See the iASL compiler user 1296guide for additional information and examples (section 6.4.6). 1297 1298AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 1299version 2. This corrects the AE_BAD_HEADER exception seen on systems with 1300a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 1301 1302AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 1303unless STDIN is actually a terminal. Assists with batch-mode processing. 1304ACPICA BZ 1114. 1305 1306Disassembler/AcpiHelp: Added another large group of recognized _HID 1307values. 1308 1309 1310---------------------------------------- 131128 August 2014. Summary of changes for version 20140828: 1312 13131) ACPICA kernel-resident subsystem: 1314 1315Fixed a problem related to the internal use of the Timer() operator where 1316a 64-bit divide could cause an attempted link to a double-precision math 1317library. This divide is not actually necessary, so the code was 1318restructured to eliminate it. Lv Zheng. 1319 1320ACPI 5.1: Added support for the runtime validation of the _DSD package 1321(similar to the iASL support). 1322 1323ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 1324SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 1325 1326Example Code and Data Size: These are the sizes for the OS-independent 1327acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1328debug version of the code includes the debug output trace mechanism and 1329has a much larger code and data size. 1330 1331 Current Release: 1332 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 1333 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 1334 Previous Release: 1335 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 1336 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1337 13382) iASL Compiler/Disassembler and Tools: 1339 1340AcpiExec: Fixed a problem on unix systems where the original terminal 1341state was not always properly restored upon exit. Seen when using the -v 1342option. ACPICA BZ 1104. 1343 1344iASL: Fixed a problem with the validation of the ranges/length within the 1345Memory24 resource descriptor. There was a boundary condition when the 1346range was equal to the (length -1) caused by the fact that these values 1347are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 1348 1349Disassembler: Fixed a problem with the GpioInt descriptor interrupt 1350polarity 1351flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 1352is 1353now supported properly. 1354 1355ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 1356in the disassembler, data table compiler, and table template generator. 1357 1358iASL: Added a requirement for Device() objects that one of either a _HID 1359or _ADR must exist within the scope of a Device, as per the ACPI 1360specification. Remove a similar requirement that was incorrectly in place 1361for the _DSD object. 1362 1363iASL: Added error detection for illegal named references within control 1364methods that would cause runtime failures. Now trapped as errors are: 1) 1365References to objects within a non-parent control method. 2) Forward 1366references (within a method) -- for control methods, AML interpreters use 1367a one-pass parse of control methods. ACPICA BZ 1008. 1368 1369iASL: Added error checking for dependencies related to the _PSx power 1370methods. ACPICA BZ 1029. 13711) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 1372_PS3. 13732) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 1374scope. 1375 1376iASL and table compiler: Cleanup miscellaneous memory leaks by fully 1377deploying the existing object and string caches and adding new caches for 1378the table compiler. 1379 1380iASL: Split the huge parser source file into multiple subfiles to improve 1381manageability. Generation now requires the M4 macro preprocessor, which 1382is part of the Bison distribution on both unix and windows platforms. 1383 1384AcpiSrc: Fixed and removed all extraneous warnings generated during 1385entire ACPICA source code scan and/or conversion. 1386 1387 1388---------------------------------------- 1389 139024 July 2014. Summary of changes for version 20140724: 1391 1392The ACPI 5.1 specification has been released and is available at: 1393http://uefi.org/specs/access 1394 1395 13960) ACPI 5.1 support in ACPICA: 1397 1398ACPI 5.1 is fully supported in ACPICA as of this release. 1399 1400New predefined names. Support includes iASL and runtime ACPICA 1401validation. 1402 _CCA (Cache Coherency Attribute). 1403 _DSD (Device-Specific Data). David Box. 1404 1405Modifications to existing ACPI tables. Support includes headers, iASL 1406Data Table compiler, disassembler, and the template generator. 1407 FADT - New fields and flags. Graeme Gregory. 1408 GTDT - One new subtable and new fields. Tomasz Nowicki. 1409 MADT - Two new subtables. Tomasz Nowicki. 1410 PCCT - One new subtable. 1411 1412Miscellaneous. 1413 New notification type for System Resource Affinity change events. 1414 1415 14161) ACPICA kernel-resident subsystem: 1417 1418Fixed a regression introduced in 20140627 where a fault can happen during 1419the deletion of Alias AML namespace objects. The problem affected both 1420the core ACPICA and the ACPICA tools including iASL and AcpiExec. 1421 1422Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 1423simple mechanism to enable wake GPEs that have no associated handler or 1424control method. Rafael Wysocki. 1425 1426Updated the AcpiEnableGpe interface to disallow the enable if there is no 1427handler or control method associated with the particular GPE. This will 1428help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 1429 1430Updated GPE handling and dispatch by disabling the GPE before clearing 1431the status bit for edge-triggered GPEs. Lv Zheng. 1432 1433Added Timer() support to the AML Debug object. The current timer value is 1434now displayed with each invocation of (Store to) the debug object to 1435enable simple generation of execution times for AML code (method 1436execution for example.) ACPICA BZ 1093. 1437 1438Example Code and Data Size: These are the sizes for the OS-independent 1439acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1440debug version of the code includes the debug output trace mechanism and 1441has a much larger code and data size. 1442 1443 Current Release: 1444 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 1445 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 1446 Previous Release: 1447 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1448 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1449 1450 14512) iASL Compiler/Disassembler and Tools: 1452 1453Fixed an issue with the recently added local printf implementation, 1454concerning width/precision specifiers that could cause incorrect output. 1455Lv Zheng. ACPICA BZ 1094. 1456 1457Disassembler: Added support to detect buffers that contain UUIDs and 1458disassemble them to an invocation of the ToUUID operator. Also emit 1459commented descriptions of known ACPI-related UUIDs. 1460 1461AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 1462-u. Adds three new files. 1463 1464iASL: Update table compiler and disassembler for DMAR table changes that 1465were introduced in September 2013. With assistance by David Woodhouse. 1466 1467---------------------------------------- 146827 June 2014. Summary of changes for version 20140627: 1469 14701) ACPICA kernel-resident subsystem: 1471 1472Formatted Output: Implemented local versions of standard formatted output 1473utilities such as printf, etc. Over time, it has been discovered that 1474there are in fact many portability issues with printf, and the addition 1475of this feature will fix/prevent these issues once and for all. Some 1476known issues are summarized below: 1477 14781) Output of 64-bit values is not portable. For example, UINT64 is %ull 1479for the Linux kernel and is %uI64 for some MSVC versions. 14802) Invoking printf consistently in a manner that is portable across both 148132-bit and 64-bit platforms is difficult at best in many situations. 14823) The output format for pointers varies from system to system (leading 1483zeros especially), and leads to inconsistent output from ACPICA across 1484platforms. 14854) Certain platform-specific printf formats may conflict with ACPICA use. 14865) If there is no local C library available, ACPICA now has local support 1487for printf. 1488 1489-- To address these printf issues in a complete manner, ACPICA now 1490directly implements a small subset of printf format specifiers, only 1491those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 1492 1493Implemented support for ACPICA generation within the EFI environment. 1494Initially, the AcpiDump utility is supported in the UEFI shell 1495environment. Lv Zheng. 1496 1497Added a new external interface, AcpiLogError, to improve ACPICA 1498portability. This allows the host to redirect error messages from the 1499ACPICA utilities. Lv Zheng. 1500 1501Added and deployed new OSL file I/O interfaces to improve ACPICA 1502portability: 1503 AcpiOsOpenFile 1504 AcpiOsCloseFile 1505 AcpiOsReadFile 1506 AcpiOsWriteFile 1507 AcpiOsGetFileOffset 1508 AcpiOsSetFileOffset 1509There are C library implementations of these functions in the new file 1510service_layers/oslibcfs.c -- however, the functions can be implemented by 1511the local host in any way necessary. Lv Zheng. 1512 1513Implemented a mechanism to disable/enable ACPI table checksum validation 1514at runtime. This can be useful when loading tables very early during OS 1515initialization when it may not be possible to map the entire table in 1516order to compute the checksum. Lv Zheng. 1517 1518Fixed a buffer allocation issue for the Generic Serial Bus support. 1519Originally, a fixed buffer length was used. This change allows for 1520variable-length buffers based upon the protocol indicated by the field 1521access attributes. Reported by Lan Tianyu. Lv Zheng. 1522 1523Fixed a problem where an object detached from a namespace node was not 1524properly terminated/cleared and could cause a circular list problem if 1525reattached. ACPICA BZ 1063. David Box. 1526 1527Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 1528 1529Fixed a possible memory leak in an error return path within the function 1530AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 1531 1532Example Code and Data Size: These are the sizes for the OS-independent 1533acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1534debug version of the code includes the debug output trace mechanism and 1535has a much larger code and data size. 1536 1537 Current Release: 1538 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 1539 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 1540 Previous Release: 1541 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1542 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1543 1544 15452) iASL Compiler/Disassembler and Tools: 1546 1547Disassembler: Add dump of ASCII equivalent text within a comment at the 1548end of each line of the output for the Buffer() ASL operator. 1549 1550AcpiDump: Miscellaneous changes: 1551 Fixed repetitive table dump in -n mode. 1552 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 1553the ACPI 2.0 GUID fails. 1554 1555iASL: Fixed a problem where the compiler could fault if incorrectly given 1556an acpidump output file as input. ACPICA BZ 1088. David Box. 1557 1558AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 1559they are invoked without any arguments. 1560 1561Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 15621086. Colin Ian King. 1563 1564Disassembler: Cleaned up a block of code that extracts a parent Op 1565object. Added a comment that explains that the parent is guaranteed to be 1566valid in this case. ACPICA BZ 1069. 1567 1568 1569---------------------------------------- 157024 April 2014. Summary of changes for version 20140424: 1571 15721) ACPICA kernel-resident subsystem: 1573 1574Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 1575Some of these tables are known to contain a trailing NULL entry. Lv 1576Zheng. 1577 1578Removed an extraneous error message for the case where there are a large 1579number of system GPEs (> 124). This was the "32-bit FADT register is too 1580long to convert to GAS struct" message, which is irrelevant for GPEs 1581since the GPEx_BLK_LEN fields of the FADT are always used instead of the 1582(limited capacity) GAS bit length. Also, several changes to ensure proper 1583support for GPE numbers > 255, where some "GPE number" fields were 8-bits 1584internally. 1585 1586Implemented and deployed additional configuration support for the public 1587ACPICA external interfaces. Entire classes of interfaces can now be 1588easily modified or configured out, replaced by stubbed inline functions 1589by default. Lv Zheng. 1590 1591Moved all public ACPICA runtime configuration globals to the public 1592ACPICA external interface file for convenience. Also, removed some 1593obsolete/unused globals. See the file acpixf.h. Lv Zheng. 1594 1595Documentation: Added a new section to the ACPICA reference describing the 1596maximum number of GPEs that can be supported by the FADT-defined GPEs in 1597block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 1598reference. 1599 1600Example Code and Data Size: These are the sizes for the OS-independent 1601acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1602debug version of the code includes the debug output trace mechanism and 1603has a much larger code and data size. 1604 1605 Current Release: 1606 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 1607 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 1608 Previous Release: 1609 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1610 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1611 1612 16132) iASL Compiler/Disassembler and Tools: 1614 1615iASL and disassembler: Add full support for the LPIT table (Low Power 1616Idle Table). Includes support in the disassembler, data table compiler, 1617and template generator. 1618 1619AcpiDump utility: 16201) Add option to force the use of the RSDT (over the XSDT). 16212) Improve validation of the RSDP signature (use 8 chars instead of 4). 1622 1623iASL: Add check for predefined packages that are too large. For 1624predefined names that contain subpackages, check if each subpackage is 1625too large. (Check for too small already exists.) 1626 1627Debugger: Updated the GPE command (which simulates a GPE by executing the 1628GPE code paths in ACPICA). The GPE device is now optional, and defaults 1629to the GPE 0/1 FADT-defined blocks. 1630 1631Unix application OSL: Update line-editing support. Add additional error 1632checking and take care not to reset terminal attributes on exit if they 1633were never set. This should help guarantee that the terminal is always 1634left in the previous state on program exit. 1635 1636 1637---------------------------------------- 163825 March 2014. Summary of changes for version 20140325: 1639 16401) ACPICA kernel-resident subsystem: 1641 1642Updated the auto-serialize feature for control methods. This feature 1643automatically serializes all methods that create named objects in order 1644to prevent runtime errors. The update adds support to ignore the 1645currently executing AML SyncLevel when invoking such a method, in order 1646to prevent disruption of any existing SyncLevel priorities that may exist 1647in the AML code. Although the use of SyncLevels is relatively rare, this 1648change fixes a regression where an AE_AML_MUTEX_ORDER exception can 1649appear on some machines starting with the 20140214 release. 1650 1651Added a new external interface to allow the host to install ACPI tables 1652very early, before the namespace is even created. AcpiInstallTable gives 1653the host additional flexibility for ACPI table management. Tables can be 1654installed directly by the host as if they had originally appeared in the 1655XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 1656(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 1657with additional internal restructuring and cleanup. See the ACPICA 1658Reference for interface details. Lv Zheng. 1659 1660Added validation of the checksum for all incoming dynamically loaded 1661tables (via external interfaces or via AML Load/LoadTable operators). Lv 1662Zheng. 1663 1664Updated the use of the AcpiOsWaitEventsComplete interface during Notify 1665and GPE handler removal. Restructured calls to eliminate possible race 1666conditions. Lv Zheng. 1667 1668Added a warning for the use/execution of the ASL/AML Unload (table) 1669operator. This will help detect and identify machines that use this 1670operator if and when it is ever used. This operator has never been seen 1671in the field and the usage model and possible side-effects of the drastic 1672runtime action of a full table removal are unknown. 1673 1674Reverted the use of #pragma push/pop which was introduced in the 20140214 1675release. It appears that push and pop are not implemented by enough 1676compilers to make the use of this feature feasible for ACPICA at this 1677time. However, these operators may be deployed in a future ACPICA 1678release. 1679 1680Added the missing EXPORT_SYMBOL macros for the install and remove SCI 1681handler interfaces. 1682 1683Source code generation: 16841) Disabled the use of the "strchr" macro for the gcc-specific 1685generation. For some versions of gcc, this macro can periodically expose 1686a compiler bug which in turn causes compile-time error(s). 16872) Added support for PPC64 compilation. Colin Ian King. 1688 1689Example Code and Data Size: These are the sizes for the OS-independent 1690acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1691debug version of the code includes the debug output trace mechanism and 1692has a much larger code and data size. 1693 1694 Current Release: 1695 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 1696 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 1697 Previous Release: 1698 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1699 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1700 1701 17022) iASL Compiler/Disassembler and Tools: 1703 1704Disassembler: Added several new features to improve the readability of 1705the resulting ASL code. Extra information is emitted within comment 1706fields in the ASL code: 17071) Known _HID/_CID values are decoded to descriptive text. 17082) Standard values for the Notify() operator are decoded to descriptive 1709text. 17103) Target operands are expanded to full pathnames (in a comment) when 1711possible. 1712 1713Disassembler: Miscellaneous updates for extern() handling: 17141) Abort compiler if file specified by -fe option does not exist. 17152) Silence unnecessary warnings about argument count mismatches. 17163) Update warning messages concerning unresolved method externals. 17174) Emit "UnknownObj" keyword for externals whose type cannot be 1718determined. 1719 1720AcpiHelp utility: 17211) Added the -a option to display both the ASL syntax and the AML 1722encoding for an input ASL operator. This effectively displays all known 1723information about an ASL operator with one AcpiHelp invocation. 17242) Added substring match support (similar to a wildcard) for the -i 1725(_HID/PNP IDs) option. 1726 1727iASL/Disassembler: Since this tool does not yet support execution on big- 1728endian machines, added detection of endianness and an error message if 1729execution is attempted on big-endian. Support for big-endian within iASL 1730is a feature that is on the ACPICA to-be-done list. 1731 1732AcpiBin utility: 17331) Remove option to extract binary files from an acpidump; this function 1734is made obsolete by the AcpiXtract utility. 17352) General cleanup of open files and allocated buffers. 1736 1737 1738---------------------------------------- 173914 February 2014. Summary of changes for version 20140214: 1740 17411) ACPICA kernel-resident subsystem: 1742 1743Implemented a new mechanism to proactively prevent problems with ill- 1744behaved reentrant control methods that create named ACPI objects. This 1745behavior is illegal as per the ACPI specification, but is nonetheless 1746frequently seen in the field. Previously, this could lead to an 1747AE_ALREADY_EXISTS exception if the method was actually entered by more 1748than one thread. This new mechanism detects such methods at table load 1749time and marks them "serialized" to prevent reentrancy. A new global 1750option, AcpiGbl_AutoSerializeMethods, has been added to disable this 1751feature if desired. This mechanism and global option obsoletes and 1752supersedes the previous AcpiGbl_SerializeAllMethods option. 1753 1754Added the "Windows 2013" string to the _OSI support. ACPICA will now 1755respond TRUE to _OSI queries with this string. It is the stated policy of 1756ACPICA to add new strings to the _OSI support as soon as possible after 1757they are defined. See the full ACPICA _OSI policy which has been added to 1758the utilities/utosi.c file. 1759 1760Hardened/updated the _PRT return value auto-repair code: 17611) Do not abort the repair on a single subpackage failure, continue to 1762check all subpackages. 17632) Add check for the minimum subpackage length (4). 17643) Properly handle extraneous NULL package elements. 1765 1766Added support to avoid the possibility of infinite loops when traversing 1767object linked lists. Never allow an infinite loop, even in the face of 1768corrupted object lists. 1769 1770ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 1771pack(pop) directives to ensure that the ACPICA headers are independent of 1772compiler settings or other host headers. 1773 1774Example Code and Data Size: These are the sizes for the OS-independent 1775acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1776debug version of the code includes the debug output trace mechanism and 1777has a much larger code and data size. 1778 1779 Current Release: 1780 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 1781 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 1782 Previous Release: 1783 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 1784 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 1785 1786 17872) iASL Compiler/Disassembler and Tools: 1788 1789iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 1790first reserved field was incorrectly forced to have a value of zero. This 1791change correctly forces the field to have a value of one. ACPICA BZ 1081. 1792 1793Debugger: Added missing support for the "Extra" and "Data" subobjects 1794when displaying object data. 1795 1796Debugger: Added support to display entire object linked lists when 1797displaying object data. 1798 1799iASL: Removed the obsolete -g option to obtain ACPI tables from the 1800Windows registry. This feature has been superseded by the acpidump 1801utility. 1802 1803 1804---------------------------------------- 180514 January 2014. Summary of changes for version 20140114: 1806 18071) ACPICA kernel-resident subsystem: 1808 1809Updated all ACPICA copyrights and signons to 2014. Added the 2014 1810copyright to all module headers and signons, including the standard Linux 1811header. This affects virtually every file in the ACPICA core subsystem, 1812iASL compiler, all ACPICA utilities, and the test suites. 1813 1814Improved parameter validation for AcpiInstallGpeBlock. Added the 1815following checks: 18161) The incoming device handle refers to type ACPI_TYPE_DEVICE. 18172) There is not already a GPE block attached to the device. 1818Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 1819device. 1820 1821Correctly support "references" in the ACPI_OBJECT. This change fixes the 1822support to allow references (namespace nodes) to be passed as arguments 1823to control methods via the evaluate object interface. This is probably 1824most useful for testing purposes, however. 1825 1826Improved support for 32/64 bit physical addresses in printf()-like 1827output. This change improves the support for physical addresses in printf 1828debug statements and other output on both 32-bit and 64-bit hosts. It 1829consistently outputs the appropriate number of bytes for each host. The 1830%p specifier is unsatisfactory since it does not emit uniform output on 1831all hosts/clib implementations (on some, leading zeros are not supported, 1832leading to difficult-to-read output). 1833 1834Example Code and Data Size: These are the sizes for the OS-independent 1835acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1836debug version of the code includes the debug output trace mechanism and 1837has a much larger code and data size. 1838 1839 Current Release: 1840 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 1841 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 1842 Previous Release: 1843 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 1844 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 1845 1846 18472) iASL Compiler/Disassembler and Tools: 1848 1849iASL: Fix a possible fault when using the Connection() operator. Fixes a 1850problem if the parent Field definition for the Connection operator refers 1851to an operation region that does not exist. ACPICA BZ 1064. 1852 1853AcpiExec: Load of local test tables is now optional. The utility has the 1854capability to load some various tables to test features of ACPICA. 1855However, there are enough of them that the output of the utility became 1856confusing. With this change, only the required local tables are displayed 1857(RSDP, XSDT, etc.) along with the actual tables loaded via the command 1858line specification. This makes the default output simler and easier to 1859understand. The -el command line option restores the original behavior 1860for testing purposes. 1861 1862AcpiExec: Added support for overlapping operation regions. This change 1863expands the simulation of operation regions by supporting regions that 1864overlap within the given address space. Supports SystemMemory and 1865SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 1866 1867AcpiExec: Added region handler support for PCI_Config and EC spaces. This 1868allows AcpiExec to simulate these address spaces, similar to the current 1869support for SystemMemory and SystemIO. 1870 1871Debugger: Added new command to read/write/compare all namespace objects. 1872The command "test objects" will exercise the entire namespace by writing 1873new values to each data object, and ensuring that the write was 1874successful. The original value is then restored and verified. 1875 1876Debugger: Added the "test predefined" command. This change makes this 1877test public and puts it under the new "test" command. The test executes 1878each and every predefined name within the current namespace. 1879 1880 1881---------------------------------------- 188218 December 2013. Summary of changes for version 20131218: 1883 1884Global note: The ACPI 5.0A specification was released this month. There 1885are no changes needed for ACPICA since this release of ACPI is an 1886errata/clarification release. The specification is available at 1887acpi.info. 1888 1889 18901) ACPICA kernel-resident subsystem: 1891 1892Added validation of the XSDT root table if it is present. Some older 1893platforms contain an XSDT that is ill-formed or otherwise invalid (such 1894as containing some or all entries that are NULL pointers). This change 1895adds a new function to validate the XSDT before actually using it. If the 1896XSDT is found to be invalid, ACPICA will now automatically fall back to 1897using the RSDT instead. Original implementation by Zhao Yakui. Ported to 1898ACPICA and enhanced by Lv Zheng and Bob Moore. 1899 1900Added a runtime option to ignore the XSDT and force the use of the RSDT. 1901This change adds a runtime option that will force ACPICA to use the RSDT 1902instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 1903requires that an XSDT be used instead of the RSDT, the XSDT has been 1904found to be corrupt or ill-formed on some machines. Lv Zheng. 1905 1906Added a runtime option to favor 32-bit FADT register addresses over the 190764-bit addresses. This change adds an option to favor 32-bit FADT 1908addresses when there is a conflict between the 32-bit and 64-bit versions 1909of the same register. The default behavior is to use the 64-bit version 1910in accordance with the ACPI specification. This can now be overridden via 1911the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 1912 1913During the change above, the internal "Convert FADT" and "Verify FADT" 1914functions have been merged to simplify the code, making it easier to 1915understand and maintain. ACPICA BZ 933. 1916 1917Improve exception reporting and handling for GPE block installation. 1918Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 1919status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 1920 1921Added helper macros to extract bus/segment numbers from the HEST table. 1922This change adds two macros to extract the encoded bus and segment 1923numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 1924Betty Dall <betty.dall@hp.com> 1925 1926Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 1927by ACPICA. It is not a public macro, so it should have no effect on 1928existing OSV code. Lv Zheng. 1929 1930Example Code and Data Size: These are the sizes for the OS-independent 1931acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1932debug version of the code includes the debug output trace mechanism and 1933has a much larger code and data size. 1934 1935 Current Release: 1936 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 1937 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 1938 Previous Release: 1939 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 1940 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 1941 1942 19432) iASL Compiler/Disassembler and Tools: 1944 1945Disassembler: Improved pathname support for emitted External() 1946statements. This change adds full pathname support for external names 1947that have been resolved internally by the inclusion of additional ACPI 1948tables (via the iASL -e option). Without this change, the disassembler 1949can emit multiple externals for the same object, or it become confused 1950when the Scope() operator is used on an external object. Overall, greatly 1951improves the ability to actually recompile the emitted ASL code when 1952objects a referenced across multiple ACPI tables. Reported by Michael 1953Tsirkin (mst@redhat.com). 1954 1955Tests/ASLTS: Updated functional control suite to execute with no errors. 1956David Box. Fixed several errors related to the testing of the interpreter 1957slack mode. Lv Zheng. 1958 1959iASL: Added support to detect names that are declared within a control 1960method, but are unused (these are temporary names that are only valid 1961during the time the method is executing). A remark is issued for these 1962cases. ACPICA BZ 1022. 1963 1964iASL: Added full support for the DBG2 table. Adds full disassembler, 1965table compiler, and template generator support for the DBG2 table (Debug 1966Port 2 table). 1967 1968iASL: Added full support for the PCCT table, update the table definition. 1969Updates the PCCT table definition in the actbl3.h header and adds table 1970compiler and template generator support. 1971 1972iASL: Added an option to emit only error messages (no warnings/remarks). 1973The -ve option will enable only error messages, warnings and remarks are 1974suppressed. This can simplify debugging when only the errors are 1975important, such as when an ACPI table is disassembled and there are many 1976warnings and remarks -- but only the actual errors are of real interest. 1977 1978Example ACPICA code (source/tools/examples): Updated the example code so 1979that it builds to an actual working program, not just example code. Added 1980ACPI tables and execution of an example control method in the DSDT. Added 1981makefile support for Unix generation. 1982 1983 1984---------------------------------------- 198515 November 2013. Summary of changes for version 20131115: 1986 1987This release is available at https://acpica.org/downloads 1988 1989 19901) ACPICA kernel-resident subsystem: 1991 1992Resource Manager: Fixed loop termination for the "get AML length" 1993function. The loop previously had an error termination on a NULL resource 1994pointer, which can never happen since the loop simply increments a valid 1995resource pointer. This fix changes the loop to terminate with an error on 1996an invalid end-of-buffer condition. The problem can be seen as an 1997infinite loop by callers to AcpiSetCurrentResources with an invalid or 1998corrupted resource descriptor, or a resource descriptor that is missing 1999an END_TAG descriptor. Reported by Dan Carpenter 2000<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 2001 2002Table unload and ACPICA termination: Delete all attached data objects 2003during namespace node deletion. This fix updates namespace node deletion 2004to delete the entire list of attached objects (attached via 2005AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 20061024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 2007 2008ACPICA termination: Added support to delete all objects attached to the 2009root namespace node. This fix deletes any and all objects that have been 2010attached to the root node via AcpiAttachData. Previously, none of these 2011objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 2012 2013Debug output: Do not emit the function nesting level for the in-kernel 2014build. The nesting level is really only useful during a single-thread 2015execution. Therefore, only enable this output for the AcpiExec utility. 2016Also, only emit the thread ID when executing under AcpiExec (Context 2017switches are still always detected and a message is emitted). ACPICA BZ 2018972. 2019 2020Example Code and Data Size: These are the sizes for the OS-independent 2021acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2022debug version of the code includes the debug output trace mechanism and 2023has a much larger code and data size. 2024 2025 Current Release: 2026 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 2027 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 2028 Previous Release: 2029 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 2030 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 2031 2032 20332) iASL Compiler/Disassembler and Tools: 2034 2035AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 2036correct portable POSIX header for terminal control functions. 2037 2038Disassembler: Fixed control method invocation issues related to the use 2039of the CondRefOf() operator. The problem is seen in the disassembly where 2040control method invocations may not be disassembled properly if the 2041control method name has been used previously as an argument to CondRefOf. 2042The solution is to not attempt to emit an external declaration for the 2043CondRefOf target (it is not necessary in the first place). This prevents 2044disassembler object type confusion. ACPICA BZ 988. 2045 2046Unix Makefiles: Added an option to disable compiler optimizations and the 2047_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 2048with optimizations (reportedly, gcc 4.4 for example). This change adds a 2049command line option for make (NOOPT) that disables all compiler 2050optimizations and the _FORTIFY_SOURCE compiler flag. The default 2051optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 20521034. Lv Zheng, Bob Moore. 2053 2054Tests/ASLTS: Added options to specify individual test cases and modes. 2055This allows testers running aslts.sh to optionally specify individual 2056test modes and test cases. Also added an option to disable the forced 2057generation of the ACPICA tools from source if desired. Lv Zheng. 2058 2059---------------------------------------- 206027 September 2013. Summary of changes for version 20130927: 2061 2062This release is available at https://acpica.org/downloads 2063 2064 20651) ACPICA kernel-resident subsystem: 2066 2067Fixed a problem with store operations to reference objects. This change 2068fixes a problem where a Store operation to an ArgX object that contained 2069a 2070reference to a field object did not complete the automatic dereference 2071and 2072then write to the actual field object. Instead, the object type of the 2073field object was inadvertently changed to match the type of the source 2074operand. The new behavior will actually write to the field object (buffer 2075field or field unit), thus matching the correct ACPI-defined behavior. 2076 2077Implemented support to allow the host to redefine individual OSL 2078prototypes. This change enables the host to redefine OSL prototypes found 2079in the acpiosxf.h file. This allows the host to implement OSL interfaces 2080with a macro or inlined function. Further, it allows the host to add any 2081additional required modifiers such as __iomem, __init, __exit, etc., as 2082necessary on a per-interface basis. Enables maximum flexibility for the 2083OSL interfaces. Lv Zheng. 2084 2085Hardcoded the access width for the FADT-defined reset register. The ACPI 2086specification requires the reset register width to be 8 bits. ACPICA now 2087hardcodes the width to 8 and ignores the FADT width value. This provides 2088compatibility with other ACPI implementations that have allowed BIOS code 2089with bad register width values to go unnoticed. Matthew Garett, Bob 2090Moore, 2091Lv Zheng. 2092 2093Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 2094used 2095in the OSL header (acpiosxf). The change modifies the position of this 2096macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 2097build issues if the OSL defines the implementation of the interface to be 2098an inline stub function. Lv Zheng. 2099 2100Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 2101initialization interfaces. This change adds a new macro for the main init 2102and terminate external interfaces in order to support hosts that require 2103additional or different processing for these functions. Changed from 2104ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 2105Zheng, Bob Moore. 2106 2107Cleaned up the memory allocation macros for configurability. In the 2108common 2109case, the ACPI_ALLOCATE and related macros now resolve directly to their 2110respective AcpiOs* OSL interfaces. Two options: 21111) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 2112default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 21132) For AcpiExec (and for debugging), the macros can optionally be 2114resolved 2115to the local ACPICA interfaces that track each allocation (local tracking 2116is used to immediately detect memory leaks). 2117Lv Zheng. 2118 2119Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 2120to predefine this macro to either TRUE or FALSE during the system build. 2121 2122Replaced __FUNCTION_ with __func__ in the gcc-specific header. 2123 2124Example Code and Data Size: These are the sizes for the OS-independent 2125acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2126debug version of the code includes the debug output trace mechanism and 2127has a much larger code and data size. 2128 2129 Current Release: 2130 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 2131 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 2132 Previous Release: 2133 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 2134 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2135 2136 21372) iASL Compiler/Disassembler and Tools: 2138 2139iASL: Implemented wildcard support for the -e option. This simplifies use 2140when there are many SSDTs that must be included to resolve external 2141method 2142declarations. ACPICA BZ 1041. Example: 2143 iasl -e ssdt*.dat -d dsdt.dat 2144 2145AcpiExec: Add history/line-editing for Unix/Linux systems. This change 2146adds a portable module that implements full history and limited line 2147editing for Unix and Linux systems. It does not use readline() due to 2148portability issues. Instead it uses the POSIX termio interface to put the 2149terminal in raw input mode so that the various special keys can be 2150trapped 2151(such as up/down-arrow for history support and left/right-arrow for line 2152editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 2153 2154AcpiXtract: Add support to handle (ignore) "empty" lines containing only 2155one or more spaces. This provides compatible with early or different 2156versions of the AcpiDump utility. ACPICA BZ 1044. 2157 2158AcpiDump: Do not ignore tables that contain only an ACPI table header. 2159Apparently, some BIOSs create SSDTs that contain an ACPI table header but 2160no other data. This change adds support to dump these tables. Any tables 2161shorter than the length of an ACPI table header remain in error (an error 2162message is emitted). Reported by Yi Li. 2163 2164Debugger: Echo actual command along with the "unknown command" message. 2165 2166---------------------------------------- 216723 August 2013. Summary of changes for version 20130823: 2168 21691) ACPICA kernel-resident subsystem: 2170 2171Implemented support for host-installed System Control Interrupt (SCI) 2172handlers. Certain ACPI functionality requires the host to handle raw 2173SCIs. For example, the "SCI Doorbell" that is defined for memory power 2174state support requires the host device driver to handle SCIs to examine 2175if the doorbell has been activated. Multiple SCI handlers can be 2176installed to allow for future expansion. New external interfaces are 2177AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 2178details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 2179 2180Operation region support: Never locally free the handler "context" 2181pointer. This change removes some dangerous code that attempts to free 2182the handler context pointer in some (rare) circumstances. The owner of 2183the handler owns this pointer and the ACPICA code should never touch it. 2184Although not seen to be an issue in any kernel, it did show up as a 2185problem (fault) under AcpiExec. Also, set the internal storage field for 2186the context pointer to zero when the region is deactivated, simply for 2187sanity. David Box. ACPICA BZ 1039. 2188 2189AcpiRead: On error, do not modify the return value target location. If an 2190error happens in the middle of a split 32/32 64-bit I/O operation, do not 2191modify the target of the return value pointer. Makes the code consistent 2192with the rest of ACPICA. Bjorn Helgaas. 2193 2194Example Code and Data Size: These are the sizes for the OS-independent 2195acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2196debug version of the code includes the debug output trace mechanism and 2197has a much larger code and data size. 2198 2199 Current Release: 2200 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 2201 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2202 Previous Release: 2203 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2204 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 2205 2206 22072) iASL Compiler/Disassembler and Tools: 2208 2209AcpiDump: Implemented several new features and fixed some problems: 22101) Added support to dump the RSDP, RSDT, and XSDT tables. 22112) Added support for multiple table instances (SSDT, UEFI). 22123) Added option to dump "customized" (overridden) tables (-c). 22134) Fixed a problem where some table filenames were improperly 2214constructed. 22155) Improved some error messages, removed some unnecessary messages. 2216 2217iASL: Implemented additional support for disassembly of ACPI tables that 2218contain invocations of external control methods. The -fe<file> option 2219allows the import of a file that specifies the external methods along 2220with the required number of arguments for each -- allowing for the 2221correct disassembly of the table. This is a workaround for a limitation 2222of AML code where the disassembler often cannot determine the number of 2223arguments required for an external control method and generates incorrect 2224ASL code. See the iASL reference for details. ACPICA BZ 1030. 2225 2226Debugger: Implemented a new command (paths) that displays the full 2227pathnames (namepaths) and object types of all objects in the namespace. 2228This is an alternative to the namespace command. 2229 2230Debugger: Implemented a new command (sci) that invokes the SCI dispatch 2231mechanism and any installed handlers. 2232 2233iASL: Fixed a possible segfault for "too many parent prefixes" condition. 2234This can occur if there are too many parent prefixes in a namepath (for 2235example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 2236 2237Application OSLs: Set the return value for the PCI read functions. These 2238functions simply return AE_OK, but should set the return value to zero 2239also. This change implements this. ACPICA BZ 1038. 2240 2241Debugger: Prevent possible command line buffer overflow. Increase the 2242size of a couple of the debugger line buffers, and ensure that overflow 2243cannot happen. ACPICA BZ 1037. 2244 2245iASL: Changed to abort immediately on serious errors during the parsing 2246phase. Due to the nature of ASL, there is no point in attempting to 2247compile these types of errors, and they typically end up causing a 2248cascade of hundreds of errors which obscure the original problem. 2249 2250---------------------------------------- 225125 July 2013. Summary of changes for version 20130725: 2252 22531) ACPICA kernel-resident subsystem: 2254 2255Fixed a problem with the DerefOf operator where references to FieldUnits 2256and BufferFields incorrectly returned the parent object, not the actual 2257value of the object. After this change, a dereference of a FieldUnit 2258reference results in a read operation on the field to get the value, and 2259likewise, the appropriate BufferField value is extracted from the target 2260buffer. 2261 2262Fixed a problem where the _WAK method could cause a fault under these 2263circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 2264method returned no value. The problem is rarely seen because most kernels 2265run ACPICA in slack mode. 2266 2267For the DerefOf operator, a fatal error now results if an attempt is made 2268to dereference a reference (created by the Index operator) to a NULL 2269package element. Provides compatibility with other ACPI implementations, 2270and this behavior will be added to a future version of the ACPI 2271specification. 2272 2273The ACPI Power Management Timer (defined in the FADT) is now optional. 2274This provides compatibility with other ACPI implementations and will 2275appear in the next version of the ACPI specification. If there is no PM 2276Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 2277zero in the FADT indicates no PM timer. 2278 2279Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 2280allows the host to globally enable/disable all vendor strings, all 2281feature strings, or both. Intended to be primarily used for debugging 2282purposes only. Lv Zheng. 2283 2284Expose the collected _OSI data to the host via a global variable. This 2285data tracks the highest level vendor ID that has been invoked by the BIOS 2286so that the host (and potentially ACPICA itself) can change behaviors 2287based upon the age of the BIOS. 2288 2289Example Code and Data Size: These are the sizes for the OS-independent 2290acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2291debug version of the code includes the debug output trace mechanism and 2292has a much larger code and data size. 2293 2294 Current Release: 2295 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 2296 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 2297 Previous Release: 2298 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2299 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2300 2301 23022) iASL Compiler/Disassembler and Tools: 2303 2304iASL: Created the following enhancements for the -so option (create 2305offset table): 23061)Add offsets for the last nameseg in each namepath for every supported 2307object type 23082)Add support for Processor, Device, Thermal Zone, and Scope objects 23093)Add the actual AML opcode for the parent object of every supported 2310object type 23114)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 2312 2313Disassembler: Emit all unresolved external symbols in a single block. 2314These are external references to control methods that could not be 2315resolved, and thus, the disassembler had to make a guess at the number of 2316arguments to parse. 2317 2318iASL: The argument to the -T option (create table template) is now 2319optional. If not specified, the default table is a DSDT, typically the 2320most common case. 2321 2322---------------------------------------- 232326 June 2013. Summary of changes for version 20130626: 2324 23251) ACPICA kernel-resident subsystem: 2326 2327Fixed an issue with runtime repair of the _CST object. Null or invalid 2328elements were not always removed properly. Lv Zheng. 2329 2330Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 2331FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 2332the maximum number of GPEs is 1016. Use of multiple GPE block devices 2333makes the system-wide number of GPEs essentially unlimited. 2334 2335Example Code and Data Size: These are the sizes for the OS-independent 2336acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2337debug version of the code includes the debug output trace mechanism and 2338has a much larger code and data size. 2339 2340 Current Release: 2341 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 2342 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 2343 Previous Release: 2344 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2345 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2346 2347 23482) iASL Compiler/Disassembler and Tools: 2349 2350Portable AcpiDump: Implemented full support for the Linux and FreeBSD 2351hosts. Now supports Linux, FreeBSD, and Windows. 2352 2353Disassembler: Added some missing types for the HEST and EINJ tables: "Set 2354Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 2355 2356iASL/Preprocessor: Implemented full support for nested 2357#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 2358 2359Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 2360max. The original purpose of this constraint was to limit the amount of 2361debug output. However, the string function in question (UtPrintString) is 2362now used for the disassembler also, where 256 bytes is insufficient. 2363Reported by RehabMan@GitHub. 2364 2365iASL/DataTables: Fixed some problems and issues with compilation of DMAR 2366tables. ACPICA BZ 999. Lv Zheng. 2367 2368iASL: Fixed a couple of error exit issues that could result in a "Could 2369not delete <file>" message during ASL compilation. 2370 2371AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 2372the actual signatures for these tables are "FACP" and "APIC", 2373respectively. 2374 2375AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 2376tables are allowed to have multiple instances. 2377 2378---------------------------------------- 237917 May 2013. Summary of changes for version 20130517: 2380 23811) ACPICA kernel-resident subsystem: 2382 2383Fixed a regression introduced in version 20130328 for _INI methods. This 2384change fixes a problem introduced in 20130328 where _INI methods are no 2385longer executed properly because of a memory block that was not 2386initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 2387<tomasz.nowicki@linaro.org>. 2388 2389Fixed a possible problem with the new extended sleep registers in the 2390ACPI 23915.0 FADT. Do not use these registers (even if populated) unless the HW- 2392reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 23931020. Lv Zheng. 2394 2395Implemented return value repair code for _CST predefined objects: Sort 2396the 2397list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 2398 2399Implemented a debug-only option to disable loading of SSDTs from the 2400RSDT/XSDT during ACPICA initialization. This can be useful for debugging 2401ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 2402acglobal.h - ACPICA BZ 1005. Lv Zheng. 2403 2404Fixed some issues in the ACPICA initialization and termination code: 2405Tomasz Nowicki <tomasz.nowicki@linaro.org> 24061) Clear events initialized flag upon event component termination. ACPICA 2407BZ 1013. 24082) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 24093) Delete global lock pending lock during termination. ACPICA BZ 1012. 24104) Clear debug buffer global on termination to prevent possible multiple 2411delete. ACPICA BZ 1010. 2412 2413Standardized all switch() blocks across the entire source base. After 2414many 2415years, different formatting for switch() had crept in. This change makes 2416the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 2417 2418Split some files to enhance ACPICA modularity and configurability: 24191) Split buffer dump routines into utilities/utbuffer.c 24202) Split internal error message routines into utilities/uterror.c 24213) Split table print utilities into tables/tbprint.c 24224) Split iASL command-line option processing into asloptions.c 2423 2424Makefile enhancements: 24251) Support for all new files above. 24262) Abort make on errors from any subcomponent. Chao Guan. 24273) Add build support for Apple Mac OS X. Liang Qi. 2428 2429Example Code and Data Size: These are the sizes for the OS-independent 2430acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2431debug version of the code includes the debug output trace mechanism and 2432has a much larger code and data size. 2433 2434 Current Release: 2435 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 2436 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 2437 Previous Release: 2438 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2439 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2440 2441 24422) iASL Compiler/Disassembler and Tools: 2443 2444New utility: Implemented an easily portable version of the acpidump 2445utility to extract ACPI tables from the system (or a file) in an ASCII 2446hex 2447dump format. The top-level code implements the various command line 2448options, file I/O, and table dump routines. To port to a new host, only 2449three functions need to be implemented to get tables -- since this 2450functionality is OS-dependent. See the tools/acpidump/apmain.c module and 2451the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 24521) The Windows version obtains the ACPI tables from the Registry. 24532) The Linux version is under development. 24543) Other hosts - If an OS-dependent module is submitted, it will be 2455distributed with ACPICA. 2456 2457iASL: Fixed a regression for -D preprocessor option (define symbol). A 2458restructuring/change to the initialization sequence caused this option to 2459no longer work properly. 2460 2461iASL: Implemented a mechanism to disable specific warnings and remarks. 2462Adds a new command line option, "-vw <messageid> as well as "#pragma 2463disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 2464 2465iASL: Fix for too-strict package object validation. The package object 2466validation for return values from the predefined names is a bit too 2467strict, it does not allow names references within the package (which will 2468be resolved at runtime.) These types of references cannot be validated at 2469compile time. This change ignores named references within package objects 2470for names that return or define static packages. 2471 2472Debugger: Fixed the 80-character command line limitation for the History 2473command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 2474 2475iASL: Added control method and package support for the -so option 2476(generates AML offset table for BIOS support.) 2477 2478iASL: issue a remark if a non-serialized method creates named objects. If 2479a thread blocks within the method for any reason, and another thread 2480enters the method, the method will fail because an attempt will be made 2481to 2482create the same (named) object twice. In this case, issue a remark that 2483the method should be marked serialized. NOTE: may become a warning later. 2484ACPICA BZ 909. 2485 2486---------------------------------------- 248718 April 2013. Summary of changes for version 20130418: 2488 24891) ACPICA kernel-resident subsystem: 2490 2491Fixed a possible buffer overrun during some rare but specific field unit 2492read operations. This overrun can only happen if the DSDT version is 1 -- 2493meaning that all AML integers are 32 bits -- and the field length is 2494between 33 and 55 bits long. During the read, an internal buffer object 2495is 2496created for the field unit because the field is larger than an integer 2497(32 2498bits). However, in this case, the buffer will be incorrectly written 2499beyond the end because the buffer length is less than the internal 2500minimum 2501of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 2502long, but a full 8 bytes will be written. 2503 2504Updated the Embedded Controller "orphan" _REG method support. This refers 2505to _REG methods under the EC device that have no corresponding operation 2506region. This is allowed by the ACPI specification. This update removes a 2507dependency on the existence an ECDT table. It will execute an orphan _REG 2508method as long as the operation region handler for the EC is installed at 2509the EC device node and not the namespace root. Rui Zhang (original 2510update), Bob Moore (update/integrate). 2511 2512Implemented run-time argument typechecking for all predefined ACPI names 2513(_STA, _BIF, etc.) This change performs object typechecking on all 2514incoming arguments for all predefined names executed via 2515AcpiEvaluateObject. This ensures that ACPI-related device drivers are 2516passing correct object types as well as the correct number of arguments 2517(therefore identifying any issues immediately). Also, the ASL/namespace 2518definition of the predefined name is checked against the ACPI 2519specification for the proper argument count. Adds one new file, 2520nsarguments.c 2521 2522Changed an exception code for the ASL UnLoad() operator. Changed the 2523exception code for the case where the input DdbHandle is invalid, from 2524AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 2525 2526Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 2527global makefile. The use of this flag causes compiler errors on earlier 2528versions of GCC, so it has been removed for compatibility. 2529 2530Miscellaneous cleanup: 25311) Removed some unused/obsolete macros 25322) Fixed a possible memory leak in the _OSI support 25333) Removed an unused variable in the predefined name support 25344) Windows OSL: remove obsolete reference to a memory list field 2535 2536Example Code and Data Size: These are the sizes for the OS-independent 2537acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2538debug version of the code includes the debug output trace mechanism and 2539has a much larger code and data size. 2540 2541 Current Release: 2542 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2543 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2544 Previous Release: 2545 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 2546 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 2547 2548 25492) iASL Compiler/Disassembler and Tools: 2550 2551AcpiExec: Added installation of a handler for the SystemCMOS address 2552space. This prevents control method abort if a method accesses this 2553space. 2554 2555AcpiExec: Added support for multiple EC devices, and now install EC 2556operation region handler(s) at the actual EC device instead of the 2557namespace root. This reflects the typical behavior of host operating 2558systems. 2559 2560AcpiExec: Updated to ensure that all operation region handlers are 2561installed before the _REG methods are executed. This prevents a _REG 2562method from aborting if it accesses an address space has no handler. 2563AcpiExec installs a handler for every possible address space. 2564 2565Debugger: Enhanced the "handlers" command to display non-root handlers. 2566This change enhances the handlers command to display handlers associated 2567with individual devices throughout the namespace, in addition to the 2568currently supported display of handlers associated with the root 2569namespace 2570node. 2571 2572ASL Test Suite: Several test suite errors have been identified and 2573resolved, reducing the total error count during execution. Chao Guan. 2574 2575---------------------------------------- 257628 March 2013. Summary of changes for version 20130328: 2577 25781) ACPICA kernel-resident subsystem: 2579 2580Fixed several possible race conditions with the internal object reference 2581counting mechanism. Some of the external ACPICA interfaces update object 2582reference counts without holding the interpreter or namespace lock. This 2583change adds a spinlock to protect reference count updates on the internal 2584ACPICA objects. Reported by and with assistance from Andriy Gapon 2585(avg@FreeBSD.org). 2586 2587FADT support: Removed an extraneous warning for very large GPE register 2588sets. This change removes a size mismatch warning if the legacy length 2589field for a GPE register set is larger than the 64-bit GAS structure can 2590accommodate. GPE register sets can be larger than the 255-bit width 2591limitation of the GAS structure. Linn Crosetto (linn@hp.com). 2592 2593_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 2594return from this interface. Handles a possible timeout case if 2595ACPI_WAIT_FOREVER is modified by the host to be a value less than 2596"forever". Jung-uk Kim. 2597 2598Predefined name support: Add allowed/required argument type information 2599to 2600the master predefined info table. This change adds the infrastructure to 2601enable typechecking on incoming arguments for all predefined 2602methods/objects. It does not actually contain the code that will fully 2603utilize this information, this is still under development. Also condenses 2604some duplicate code for the predefined names into a new module, 2605utilities/utpredef.c 2606 2607Example Code and Data Size: These are the sizes for the OS-independent 2608acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2609debug version of the code includes the debug output trace mechanism and 2610has a much larger code and data size. 2611 2612 Previous Release: 2613 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2614 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2615 Current Release: 2616 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 2617 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 2618 2619 26202) iASL Compiler/Disassembler and Tools: 2621 2622iASL: Implemented a new option to simplify the development of ACPI- 2623related 2624BIOS code. Adds support for a new "offset table" output file. The -so 2625option will create a C table containing the AML table offsets of various 2626named objects in the namespace so that BIOS code can modify them easily 2627at 2628boot time. This can simplify BIOS runtime code by eliminating expensive 2629searches for "magic values", enhancing boot times and adding greater 2630reliability. With assistance from Lee Hamel. 2631 2632iASL: Allow additional predefined names to return zero-length packages. 2633Now, all predefined names that are defined by the ACPI specification to 2634return a "variable-length package of packages" are allowed to return a 2635zero length top-level package. This allows the BIOS to tell the host that 2636the requested feature is not supported, and supports existing BIOS/ASL 2637code and practices. 2638 2639iASL: Changed the "result not used" warning to an error. This is the case 2640where an ASL operator is effectively a NOOP because the result of the 2641operation is not stored anywhere. For example: 2642 Add (4, Local0) 2643There is no target (missing 3rd argument), nor is the function return 2644value used. This is potentially a very serious problem -- since the code 2645was probably intended to do something, but for whatever reason, the value 2646was not stored. Therefore, this issue has been upgraded from a warning to 2647an error. 2648 2649AcpiHelp: Added allowable/required argument types to the predefined names 2650info display. This feature utilizes the recent update to the predefined 2651names table (above). 2652 2653---------------------------------------- 265414 February 2013. Summary of changes for version 20130214: 2655 26561) ACPICA Kernel-resident Subsystem: 2657 2658Fixed a possible regression on some hosts: Reinstated the safe return 2659macros (return_ACPI_STATUS, etc.) that ensure that the argument is 2660evaluated only once. Although these macros are not needed for the ACPICA 2661code itself, they are often used by ACPI-related host device drivers 2662where 2663the safe feature may be necessary. 2664 2665Fixed several issues related to the ACPI 5.0 reduced hardware support 2666(SOC): Now ensure that if the platform declares itself as hardware- 2667reduced 2668via the FADT, the following functions become NOOPs (and always return 2669AE_OK) because ACPI is always enabled by definition on these machines: 2670 AcpiEnable 2671 AcpiDisable 2672 AcpiHwGetMode 2673 AcpiHwSetMode 2674 2675Dynamic Object Repair: Implemented additional runtime repairs for 2676predefined name return values. Both of these repairs can simplify code in 2677the related device drivers that invoke these methods: 26781) For the _STR and _MLS names, automatically repair/convert an ASCII 2679string to a Unicode buffer. 26802) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 2681a 2682lone end tag descriptor in the following cases: A Return(0) was executed, 2683a null buffer was returned, or no object at all was returned (non-slack 2684mode only). Adds a new file, nsconvert.c 2685ACPICA BZ 998. Bob Moore, Lv Zheng. 2686 2687Resource Manager: Added additional code to prevent possible infinite 2688loops 2689while traversing corrupted or ill-formed resource template buffers. Check 2690for zero-length resource descriptors in all code that loops through 2691resource templates (the length field is used to index through the 2692template). This change also hardens the external AcpiWalkResources and 2693AcpiWalkResourceBuffer interfaces. 2694 2695Local Cache Manager: Enhanced the main data structure to eliminate an 2696unnecessary mechanism to access the next object in the list. Actually 2697provides a small performance enhancement for hosts that use the local 2698ACPICA cache manager. Jung-uk Kim. 2699 2700Example Code and Data Size: These are the sizes for the OS-independent 2701acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2702debug version of the code includes the debug output trace mechanism and 2703has a much larger code and data size. 2704 2705 Previous Release: 2706 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2707 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2708 Current Release: 2709 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 2710 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 2711 2712 27132) iASL Compiler/Disassembler and Tools: 2714 2715iASL/Disassembler: Fixed several issues with the definition of the ACPI 27165.0 RASF table (RAS Feature Table). This change incorporates late changes 2717that were made to the ACPI 5.0 specification. 2718 2719iASL/Disassembler: Added full support for the following new ACPI tables: 2720 1) The MTMR table (MID Timer Table) 2721 2) The VRTC table (Virtual Real Time Clock Table). 2722Includes header file, disassembler, table compiler, and template support 2723for both tables. 2724 2725iASL: Implemented compile-time validation of package objects returned by 2726predefined names. This new feature validates static package objects 2727returned by the various predefined names defined to return packages. Both 2728object types and package lengths are validated, for both parent packages 2729and sub-packages, if any. The code is similar in structure and behavior 2730to 2731the runtime repair mechanism within the AML interpreter and uses the 2732existing predefined name information table. Adds a new file, aslprepkg.c. 2733ACPICA BZ 938. 2734 2735iASL: Implemented auto-detection of binary ACPI tables for disassembly. 2736This feature detects a binary file with a valid ACPI table header and 2737invokes the disassembler automatically. Eliminates the need to 2738specifically invoke the disassembler with the -d option. ACPICA BZ 862. 2739 2740iASL/Disassembler: Added several warnings for the case where there are 2741unresolved control methods during the disassembly. This can potentially 2742cause errors when the output file is compiled, because the disassembler 2743assumes zero method arguments in these cases (it cannot determine the 2744actual number of arguments without resolution/definition of the method). 2745 2746Debugger: Added support to display all resources with a single command. 2747Invocation of the resources command with no arguments will now display 2748all 2749resources within the current namespace. 2750 2751AcpiHelp: Added descriptive text for each ACPICA exception code displayed 2752via the -e option. 2753 2754---------------------------------------- 275517 January 2013. Summary of changes for version 20130117: 2756 27571) ACPICA Kernel-resident Subsystem: 2758 2759Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 2760return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 2761objects to return a package containing one integer, most BIOS code 2762returns 2763two integers and the previous code reflects that. However, we also need 2764to 2765support BIOS code that actually implements to the ACPI spec, and this 2766change reflects this. 2767 2768Fixed two issues with the ACPI_DEBUG_PRINT macros: 27691) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 2770C compilers that require this support. 27712) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 2772ACPI_DEBUG is already used by many of the various hosts. 2773 2774Updated all ACPICA copyrights and signons to 2013. Added the 2013 2775copyright to all module headers and signons, including the standard Linux 2776header. This affects virtually every file in the ACPICA core subsystem, 2777iASL compiler, all ACPICA utilities, and the test suites. 2778 2779Example Code and Data Size: These are the sizes for the OS-independent 2780acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2781debug version of the code includes the debug output trace mechanism and 2782has a much larger code and data size. 2783 2784 Previous Release: 2785 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 2786 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2787 Current Release: 2788 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 2789 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 2790 2791 27922) iASL Compiler/Disassembler and Tools: 2793 2794Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 2795prevent a possible fault on some hosts. Some C libraries modify the arg 2796pointer parameter to vfprintf making it difficult to call it twice in the 2797AcpiOsVprintf function. Use a local buffer to workaround this issue. This 2798does not affect the Windows OSL since the Win C library does not modify 2799the arg pointer. Chao Guan, Bob Moore. 2800 2801iASL: Fixed a possible infinite loop when the maximum error count is 2802reached. If an output file other than the .AML file is specified (such as 2803a listing file), and the maximum number of errors is reached, do not 2804attempt to flush data to the output file(s) as the compiler is aborting. 2805This can cause an infinite loop as the max error count code essentially 2806keeps calling itself. 2807 2808iASL/Disassembler: Added an option (-in) to ignore NOOP 2809opcodes/operators. 2810Implemented for both the compiler and the disassembler. Often, the NOOP 2811opcode is used as padding for packages that are changed dynamically by 2812the 2813BIOS. When disassembled and recompiled, these NOOPs will cause syntax 2814errors. This option causes the disassembler to ignore all NOOP opcodes 2815(0xA3), and it also causes the compiler to ignore all ASL source code 2816NOOP 2817statements as well. 2818 2819Debugger: Enhanced the Sleep command to execute all sleep states. This 2820change allows Sleep to be invoked with no arguments and causes the 2821debugger to execute all of the sleep states, 0-5, automatically. 2822 2823---------------------------------------- 282420 December 2012. Summary of changes for version 20121220: 2825 28261) ACPICA Kernel-resident Subsystem: 2827 2828Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 2829alternate entry point for AcpiWalkResources and improves the usability of 2830the resource manager by accepting as input a buffer containing the output 2831of either a _CRS, _PRS, or _AEI method. The key functionality is that the 2832input buffer is not deleted by this interface so that it can be used by 2833the host later. See the ACPICA reference for details. 2834 2835Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 2836(DSDT version < 2). The constant will be truncated and this warning 2837reflects that behavior. 2838 2839Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 2840ExtendedInterrupt, and GpioInt descriptors. This change adds support to 2841both get and set the new wake bit in these descriptors, separately from 2842the existing share bit. Reported by Aaron Lu. 2843 2844Interpreter: Fix Store() when an implicit conversion is not possible. For 2845example, in the cases such as a store of a string to an existing package 2846object, implement the store as a CopyObject(). This is a small departure 2847from the ACPI specification which states that the control method should 2848be 2849aborted in this case. However, the ASLTS suite depends on this behavior. 2850 2851Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 2852macros: check if debug output is currently enabled as soon as possible to 2853minimize performance impact if debug is in fact not enabled. 2854 2855Source code restructuring: Cleanup to improve modularity. The following 2856new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 2857psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 2858Associated makefiles and project files have been updated. 2859 2860Changed an exception code for LoadTable operator. For the case where one 2861of the input strings is too long, change the returned exception code from 2862AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 2863 2864Fixed a possible memory leak in dispatcher error path. On error, delete 2865the mutex object created during method mutex creation. Reported by 2866tim.gardner@canonical.com. 2867 2868Example Code and Data Size: These are the sizes for the OS-independent 2869acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2870debug version of the code includes the debug output trace mechanism and 2871has a much larger code and data size. 2872 2873 Previous Release: 2874 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 2875 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2876 Current Release: 2877 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 2878 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 2879 2880 28812) iASL Compiler/Disassembler and Tools: 2882 2883iASL: Disallow a method call as argument to the ObjectType ASL operator. 2884This change tracks an errata to the ACPI 5.0 document. The AML grammar 2885will not allow the interpreter to differentiate between a method and a 2886method invocation when these are used as an argument to the ObjectType 2887operator. The ACPI specification change is to disallow a method 2888invocation 2889(UserTerm) for the ObjectType operator. 2890 2891Finish support for the TPM2 and CSRT tables in the headers, table 2892compiler, and disassembler. 2893 2894Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 2895always expires immediately if the semaphore is not available. The 2896original 2897code was using a relative-time timeout, but sem_timedwait requires the 2898use 2899of an absolute time. 2900 2901iASL: Added a remark if the Timer() operator is used within a 32-bit 2902table. This operator returns a 64-bit time value that will be truncated 2903within a 32-bit table. 2904 2905iASL Source code restructuring: Cleanup to improve modularity. The 2906following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 2907aslmethod.c, and aslfileio.c. Associated makefiles and project files have 2908been updated. 2909 2910 2911---------------------------------------- 291214 November 2012. Summary of changes for version 20121114: 2913 29141) ACPICA Kernel-resident Subsystem: 2915 2916Implemented a performance enhancement for ACPI/AML Package objects. This 2917change greatly increases the performance of Package objects within the 2918interpreter. It changes the processing of reference counts for packages 2919by 2920optimizing for the most common case where the package sub-objects are 2921either Integers, Strings, or Buffers. Increases the overall performance 2922of 2923the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 29242X.) 2925Chao Guan. ACPICA BZ 943. 2926 2927Implemented and deployed common macros to extract flag bits from resource 2928descriptors. Improves readability and maintainability of the code. Fixes 2929a 2930problem with the UART serial bus descriptor for the number of data bits 2931flags (was incorrectly 2 bits, should be 3). 2932 2933Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 2934of the macros and changed the SETx macros to the style of (destination, 2935source). Also added ACPI_CASTx companion macros. Lv Zheng. 2936 2937Example Code and Data Size: These are the sizes for the OS-independent 2938acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2939debug version of the code includes the debug output trace mechanism and 2940has a much larger code and data size. 2941 2942 Previous Release: 2943 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 2944 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2945 Current Release: 2946 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 2947 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 2948 2949 29502) iASL Compiler/Disassembler and Tools: 2951 2952Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 2953adds the ShareAndWake and ExclusiveAndWake flags which were added to the 2954Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 2955 2956Disassembler: Fixed a problem with external declaration generation. Fixes 2957a problem where an incorrect pathname could be generated for an external 2958declaration if the original reference to the object includes leading 2959carats (^). ACPICA BZ 984. 2960 2961Debugger: Completed a major update for the Disassemble<method> command. 2962This command was out-of-date and did not properly disassemble control 2963methods that had any reasonable complexity. This fix brings the command 2964up 2965to the same level as the rest of the disassembler. Adds one new file, 2966dmdeferred.c, which is existing code that is now common with the main 2967disassembler and the debugger disassemble command. ACPICA MZ 978. 2968 2969iASL: Moved the parser entry prototype to avoid a duplicate declaration. 2970Newer versions of Bison emit this prototype, so moved the prototype out 2971of 2972the iASL header to where it is actually used in order to avoid a 2973duplicate 2974declaration. 2975 2976iASL/Tools: Standardized use of the stream I/O functions: 2977 1) Ensure check for I/O error after every fopen/fread/fwrite 2978 2) Ensure proper order of size/count arguments for fread/fwrite 2979 3) Use test of (Actual != Requested) after all fwrite, and most fread 2980 4) Standardize I/O error messages 2981Improves reliability and maintainability of the code. Bob Moore, Lv 2982Zheng. 2983ACPICA BZ 981. 2984 2985Disassembler: Prevent duplicate External() statements. During generation 2986of external statements, detect similar pathnames that are actually 2987duplicates such as these: 2988 External (\ABCD) 2989 External (ABCD) 2990Remove all leading '\' characters from pathnames during the external 2991statement generation so that duplicates will be detected and tossed. 2992ACPICA BZ 985. 2993 2994Tools: Replace low-level I/O with stream I/O functions. Replace 2995open/read/write/close with the stream I/O equivalents 2996fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 2997Moore. 2998 2999AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 3000name header so that AcpiXtract recognizes the output file/table. 3001 3002iASL: Remove obsolete -2 option flag. Originally intended to force the 3003compiler/disassembler into an ACPI 2.0 mode, this was never implemented 3004and the entire concept is now obsolete. 3005 3006---------------------------------------- 300718 October 2012. Summary of changes for version 20121018: 3008 3009 30101) ACPICA Kernel-resident Subsystem: 3011 3012Updated support for the ACPI 5.0 MPST table. Fixes some problems 3013introduced by late changes to the table as it was added to the ACPI 5.0 3014specification. Includes header, disassembler, and data table compiler 3015support as well as a new version of the MPST template. 3016 3017AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 30185.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 3019methods: _HID, _CID, and _UID. 3020 3021Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 3022ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 3023name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 3024names for their various drivers. Affects the AcpiGetObjectInfo external 3025interface, and other internal interfaces as well. 3026 3027Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 3028This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 3029on machines that support non-aligned transfers. Optimizes for this case 3030rather than using a strncpy. With assistance from Zheng Lv. 3031 3032Resource Manager: Small fix for buffer size calculation. Fixed a one byte 3033error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 3034 3035Added a new debug print message for AML mutex objects that are force- 3036released. At control method termination, any currently acquired mutex 3037objects are force-released. Adds a new debug-only message for each one 3038that is released. 3039 3040Audited/updated all ACPICA return macros and the function debug depth 3041counter: 1) Ensure that all functions that use the various TRACE macros 3042also use the appropriate ACPICA return macros. 2) Ensure that all normal 3043return statements surround the return expression (value) with parens to 3044ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 3045Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 3046 3047Global source code changes/maintenance: All extra lines at the start and 3048end of each source file have been removed for consistency. Also, within 3049comments, all new sentences start with a single space instead of a double 3050space, again for consistency across the code base. 3051 3052Example Code and Data Size: These are the sizes for the OS-independent 3053acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3054debug version of the code includes the debug output trace mechanism and 3055has a much larger code and data size. 3056 3057 Previous Release: 3058 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 3059 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 3060 Current Release: 3061 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 3062 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 3063 3064 30652) iASL Compiler/Disassembler and Tools: 3066 3067AcpiExec: Improved the algorithm used for memory leak/corruption 3068detection. Added some intelligence to the code that maintains the global 3069list of allocated memory. The list is now ordered by allocated memory 3070address, significantly improving performance. When running AcpiExec on 3071the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 3072on the platform and/or the environment. Note, this performance 3073enhancement affects the AcpiExec utility only, not the kernel-resident 3074ACPICA code. 3075 3076Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 3077the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 3078incorrect table offset reported for invalid opcodes. Report the original 307932-bit value for bad ACPI_NAMEs (as well as the repaired name.) 3080 3081Disassembler: Enhanced the -vt option to emit the binary table data in 3082hex format to assist with debugging. 3083 3084Fixed a potential filename buffer overflow in osunixdir.c. Increased the 3085size of file structure. Colin Ian King. 3086 3087---------------------------------------- 308813 September 2012. Summary of changes for version 20120913: 3089 3090 30911) ACPICA Kernel-resident Subsystem: 3092 3093ACPI 5.0: Added two new notify types for the Hardware Error Notification 3094Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 3095and 3096MCE(6). 3097 3098Table Manager: Merged/removed duplicate code in the root table resize 3099functions. One function is external, the other is internal. Lv Zheng, 3100ACPICA 3101BZ 846. 3102 3103Makefiles: Completely removed the obsolete "Linux" makefiles under 3104acpica/generate/linux. These makefiles are obsolete and have been 3105replaced 3106by 3107the generic unix makefiles under acpica/generate/unix. 3108 3109Makefiles: Ensure that binary files always copied properly. Minor rule 3110change 3111to ensure that the final binary output files are always copied up to the 3112appropriate binary directory (bin32 or bin64.) 3113 3114Example Code and Data Size: These are the sizes for the OS-independent 3115acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3116debug 3117version of the code includes the debug output trace mechanism and has a 3118much 3119larger code and data size. 3120 3121 Previous Release: 3122 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3123 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3124 Current Release: 3125 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 3126 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 3127 3128 31292) iASL Compiler/Disassembler and Tools: 3130 3131Disassembler: Fixed a possible fault during the disassembly of resource 3132descriptors when a second parse is required because of the invocation of 3133external control methods within the table. With assistance from 3134adq@lidskialf.net. ACPICA BZ 976. 3135 3136iASL: Fixed a namepath optimization problem. An error can occur if the 3137parse 3138node that contains the namepath to be optimized does not have a parent 3139node 3140that is a named object. This change fixes the problem. 3141 3142iASL: Fixed a regression where the AML file is not deleted on errors. The 3143AML 3144output file should be deleted if there are any errors during the 3145compiler. 3146The 3147only exception is if the -f (force output) option is used. ACPICA BZ 974. 3148 3149iASL: Added a feature to automatically increase internal line buffer 3150sizes. 3151Via realloc(), automatically increase the internal line buffer sizes as 3152necessary to support very long source code lines. The current version of 3153the 3154preprocessor requires a buffer long enough to contain full source code 3155lines. 3156This change increases the line buffer(s) if the input lines go beyond the 3157current buffer size. This eliminates errors that occurred when a source 3158code 3159line was longer than the buffer. 3160 3161iASL: Fixed a problem with constant folding in method declarations. The 3162SyncLevel term is a ByteConstExpr, and incorrect code would be generated 3163if a 3164Type3 opcode was used. 3165 3166Debugger: Improved command help support. For incorrect argument count, 3167display 3168full help for the command. For help command itself, allow an argument to 3169specify a command. 3170 3171Test Suites: Several bug fixes for the ASLTS suite reduces the number of 3172errors during execution of the suite. Guan Chao. 3173 3174---------------------------------------- 317516 August 2012. Summary of changes for version 20120816: 3176 3177 31781) ACPICA Kernel-resident Subsystem: 3179 3180Removed all use of the deprecated _GTS and _BFS predefined methods. The 3181_GTS 3182(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 3183deprecated and will probably be removed from the ACPI specification. 3184Windows 3185does not invoke them, and reportedly never will. The final nail in the 3186coffin 3187is that the ACPI specification states that these methods must be run with 3188interrupts off, which is not going to happen in a kernel interpreter. 3189Note: 3190Linux has removed all use of the methods also. It was discovered that 3191invoking these functions caused failures on some machines, probably 3192because 3193they were never tested since Windows does not call them. Affects two 3194external 3195interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 3196ACPICA BZ 969. 3197 3198Implemented support for complex bit-packed buffers returned from the _PLD 3199(Physical Location of Device) predefined method. Adds a new external 3200interface, AcpiDecodePldBuffer that parses the buffer into a more usable 3201C 3202structure. Note: C Bitfields cannot be used for this type of predefined 3203structure since the memory layout of individual bitfields is not defined 3204by 3205the C language. In addition, there are endian concerns where a compiler 3206will 3207change the bitfield ordering based on the machine type. The new ACPICA 3208interface eliminates these issues, and should be called after _PLD is 3209executed. ACPICA BZ 954. 3210 3211Implemented a change to allow a scope change to root (via "Scope (\)") 3212during 3213execution of module-level ASL code (code that is executed at table load 3214time.) Lin Ming. 3215 3216Added the Windows8/Server2012 string for the _OSI method. This change 3217adds 3218a 3219new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 32202012. 3221 3222Added header support for the new ACPI tables DBG2 (Debug Port Table Type 32232) 3224and CSRT (Core System Resource Table). 3225 3226Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 3227names. This simplifies access to the buffers returned by these predefined 3228names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 3229 3230GPE support: Removed an extraneous parameter from the various low-level 3231internal GPE functions. Tang Feng. 3232 3233Removed the linux makefiles from the unix packages. The generate/linux 3234makefiles are obsolete and have been removed from the unix tarball 3235release 3236packages. The replacement makefiles are under generate/unix, and there is 3237a 3238top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 3239 3240Updates for Unix makefiles: 32411) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 32422) Update linker flags (move to end of command line) for AcpiExec 3243utility. 3244Guan Chao. 3245 3246Split ACPICA initialization functions to new file, utxfinit.c. Split from 3247utxface.c to improve modularity and reduce file size. 3248 3249Example Code and Data Size: These are the sizes for the OS-independent 3250acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3251debug version of the code includes the debug output trace mechanism and 3252has a 3253much larger code and data size. 3254 3255 Previous Release: 3256 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3257 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3258 Current Release: 3259 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 3260 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 3261 3262 32632) iASL Compiler/Disassembler and Tools: 3264 3265iASL: Fixed a problem with constant folding for fixed-length constant 3266expressions. The constant-folding code was not being invoked for constant 3267expressions that allow the use of type 3/4/5 opcodes to generate 3268constants 3269for expressions such as ByteConstExpr, WordConstExpr, etc. This could 3270result 3271in the generation of invalid AML bytecode. ACPICA BZ 970. 3272 3273iASL: Fixed a generation issue on newer versions of Bison. Newer versions 3274apparently automatically emit some of the necessary externals. This 3275change 3276handles these versions in order to eliminate generation warnings. 3277 3278Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 3279 3280Disassembler: Add support to decode _PLD buffers. The decoded buffer 3281appears 3282within comments in the output file. 3283 3284Debugger: Fixed a regression with the "Threads" command where 3285AE_BAD_PARAMETER was always returned. 3286 3287---------------------------------------- 328811 July 2012. Summary of changes for version 20120711: 3289 32901) ACPICA Kernel-resident Subsystem: 3291 3292Fixed a possible fault in the return package object repair code. Fixes a 3293problem that can occur when a lone package object is wrapped with an 3294outer 3295package object in order to force conformance to the ACPI specification. 3296Can 3297affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 3298_DLM, 3299_CSD, _PSD, _TSD. 3300 3301Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 3302PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 3303ARB_DIS bit must be implemented in the host-dependent C3 processor power 3304state 3305support. Note, ARB_DIS is obsolete and only applies to older chipsets, 3306both 3307Intel and other vendors. (for Intel: ICH4-M and earlier) 3308 3309This change removes the code to disable/enable bus master arbitration 3310during 3311suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 3312causes 3313resume problems on some machines. The change has been in use for over 3314seven 3315years within Linux. 3316 3317Implemented two new external interfaces to support host-directed dynamic 3318ACPI 3319table load and unload. They are intended to simplify the host 3320implementation 3321of hot-plug support: 3322 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 3323 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 3324table. 3325See the ACPICA reference for additional details. Adds one new file, 3326components/tables/tbxfload.c 3327 3328Implemented and deployed two new interfaces for errors and warnings that 3329are 3330known to be caused by BIOS/firmware issues: 3331 AcpiBiosError: Prints "ACPI Firmware Error" message. 3332 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 3333Deployed these new interfaces in the ACPICA Table Manager code for ACPI 3334table 3335and FADT errors. Additional deployment to be completed as appropriate in 3336the 3337future. The associated conditional macros are ACPI_BIOS_ERROR and 3338ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 3339ACPICA 3340BZ 3341843. 3342 3343Implicit notify support: ensure that no memory allocation occurs within a 3344critical region. This fix moves a memory allocation outside of the time 3345that a 3346spinlock is held. Fixes issues on systems that do not allow this 3347behavior. 3348Jung-uk Kim. 3349 3350Split exception code utilities and tables into a new file, 3351utilities/utexcep.c 3352 3353Example Code and Data Size: These are the sizes for the OS-independent 3354acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3355debug 3356version of the code includes the debug output trace mechanism and has a 3357much 3358larger code and data size. 3359 3360 Previous Release: 3361 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3362 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3363 Current Release: 3364 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 3365 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 3366 3367 33682) iASL Compiler/Disassembler and Tools: 3369 3370iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 3371of 33720. Jung-uk Kim. 3373 3374Debugger: Enhanced the "tables" command to emit additional information 3375about 3376the current set of ACPI tables, including the owner ID and flags decode. 3377 3378Debugger: Reimplemented the "unload" command to use the new 3379AcpiUnloadParentTable external interface. This command was disable 3380previously 3381due to need for an unload interface. 3382 3383AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 3384option 3385will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 3386 3387---------------------------------------- 338820 June 2012. Summary of changes for version 20120620: 3389 3390 33911) ACPICA Kernel-resident Subsystem: 3392 3393Implemented support to expand the "implicit notify" feature to allow 3394multiple 3395devices to be notified by a single GPE. This feature automatically 3396generates a 3397runtime device notification in the absence of a BIOS-provided GPE control 3398method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 3399notify is 3400provided by ACPICA for Windows compatibility, and is a workaround for 3401BIOS 3402AML 3403code errors. See the description of the AcpiSetupGpeForWake interface in 3404the 3405APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 3406 3407Changed some comments and internal function names to simplify and ensure 3408correctness of the Linux code translation. No functional changes. 3409 3410Example Code and Data Size: These are the sizes for the OS-independent 3411acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3412debug 3413version of the code includes the debug output trace mechanism and has a 3414much 3415larger code and data size. 3416 3417 Previous Release: 3418 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3419 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3420 Current Release: 3421 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 3422 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 3423 3424 34252) iASL Compiler/Disassembler and Tools: 3426 3427Disassembler: Added support to emit short, commented descriptions for the 3428ACPI 3429predefined names in order to improve the readability of the disassembled 3430output. ACPICA BZ 959. Changes include: 3431 1) Emit descriptions for all standard predefined names (_INI, _STA, 3432_PRW, 3433etc.) 3434 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 3435 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 3436etc.) 3437 3438AcpiSrc: Fixed several long-standing Linux code translation issues. 3439Argument 3440descriptions in function headers are now translated properly to lower 3441case 3442and 3443underscores. ACPICA BZ 961. Also fixes translation problems such as 3444these: 3445(old -> new) 3446 i_aSL -> iASL 3447 00-7_f -> 00-7F 3448 16_k -> 16K 3449 local_fADT -> local_FADT 3450 execute_oSI -> execute_OSI 3451 3452iASL: Fixed a problem where null bytes were inadvertently emitted into 3453some 3454listing files. 3455 3456iASL: Added the existing debug options to the standard help screen. There 3457are 3458no longer two different help screens. ACPICA BZ 957. 3459 3460AcpiHelp: Fixed some typos in the various predefined name descriptions. 3461Also 3462expand some of the descriptions where appropriate. 3463 3464iASL: Fixed the -ot option (display compile times/statistics). Was not 3465working 3466properly for standard output; only worked for the debug file case. 3467 3468---------------------------------------- 346918 May 2012. Summary of changes for version 20120518: 3470 3471 34721) ACPICA Core Subsystem: 3473 3474Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 3475defined 3476to block until asynchronous events such as notifies and GPEs have 3477completed. 3478Within ACPICA, it is only called before a notify or GPE handler is 3479removed/uninstalled. It also may be useful for the host OS within related 3480drivers such as the Embedded Controller driver. See the ACPICA reference 3481for 3482additional information. ACPICA BZ 868. 3483 3484ACPI Tables: Added a new error message for a possible overflow failure 3485during 3486the conversion of FADT 32-bit legacy register addresses to internal 3487common 348864- 3489bit GAS structure representation. The GAS has a one-byte "bit length" 3490field, 3491thus limiting the register length to 255 bits. ACPICA BZ 953. 3492 3493Example Code and Data Size: These are the sizes for the OS-independent 3494acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3495debug 3496version of the code includes the debug output trace mechanism and has a 3497much 3498larger code and data size. 3499 3500 Previous Release: 3501 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3502 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3503 Current Release: 3504 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 3505 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 3506 3507 35082) iASL Compiler/Disassembler and Tools: 3509 3510iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 3511macro. 3512This keyword was added late in the ACPI 5.0 release cycle and was not 3513implemented until now. 3514 3515Disassembler: Added support for Operation Region externals. Adds missing 3516support for operation regions that are defined in another table, and 3517referenced locally via a Field or BankField ASL operator. Now generates 3518the 3519correct External statement. 3520 3521Disassembler: Several additional fixes for the External() statement 3522generation 3523related to some ASL operators. Also, order the External() statements 3524alphabetically in the disassembler output. Fixes the External() 3525generation 3526for 3527the Create* field, Alias, and Scope operators: 3528 1) Create* buffer field operators - fix type mismatch warning on 3529disassembly 3530 2) Alias - implement missing External support 3531 3) Scope - fix to make sure all necessary externals are emitted. 3532 3533iASL: Improved pathname support. For include files, merge the prefix 3534pathname 3535with the file pathname and eliminate unnecessary components. Convert 3536backslashes in all pathnames to forward slashes, for readability. Include 3537file 3538pathname changes affect both #include and Include() type operators. 3539 3540iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 3541end 3542of a valid line by inserting a newline and then returning the EOF during 3543the 3544next call to GetNextLine. Prevents the line from being ignored due to EOF 3545condition. 3546 3547iASL: Implemented some changes to enhance the IDE support (-vi option.) 3548Error 3549and Warning messages are now correctly recognized for both the source 3550code 3551browser and the global error and warning counts. 3552 3553---------------------------------------- 355420 April 2012. Summary of changes for version 20120420: 3555 3556 35571) ACPICA Core Subsystem: 3558 3559Implemented support for multiple notify handlers. This change adds 3560support 3561to 3562allow multiple system and device notify handlers on Device, Thermal Zone, 3563and 3564Processor objects. This can simplify the host OS notification 3565implementation. 3566Also re-worked and restructured the entire notify support code to 3567simplify 3568handler installation, handler removal, notify event queuing, and notify 3569dispatch to handler(s). Note: there can still only be two global notify 3570handlers - one for system notifies and one for device notifies. There are 3571no 3572changes to the existing handler install/remove interfaces. Lin Ming, Bob 3573Moore, Rafael Wysocki. 3574 3575Fixed a regression in the package repair code where the object reference 3576count was calculated incorrectly. Regression was introduced in the commit 3577"Support to add Package wrappers". 3578 3579Fixed a couple possible memory leaks in the AML parser, in the error 3580recovery 3581path. Jesper Juhl, Lin Ming. 3582 3583Example Code and Data Size: These are the sizes for the OS-independent 3584acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3585debug version of the code includes the debug output trace mechanism and 3586has a 3587much larger code and data size. 3588 3589 Previous Release: 3590 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3591 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3592 Current Release: 3593 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3594 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 3595 3596 35972) iASL Compiler/Disassembler and Tools: 3598 3599iASL: Fixed a problem with the resource descriptor support where the 3600length 3601of the StartDependentFn and StartDependentFnNoPrio descriptors were not 3602included in cumulative descriptor offset, resulting in incorrect values 3603for 3604resource tags within resource descriptors appearing after a 3605StartDependent* 3606descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 3607 3608iASL and Preprocessor: Implemented full support for the #line directive 3609to 3610correctly track original source file line numbers through the .i 3611preprocessor 3612output file - for error and warning messages. 3613 3614iASL: Expand the allowable byte constants for address space IDs. 3615Previously, 3616the allowable range was 0x80-0xFF (user-defined spaces), now the range is 36170x0A-0xFF to allow for custom and new IDs without changing the compiler. 3618 3619iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 3620 3621iASL: Add option to completely disable the preprocessor (-Pn). 3622 3623iASL: Now emit all error/warning messages to standard error (stderr) by 3624default (instead of the previous stdout). 3625 3626ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 3627Update 3628for resource descriptor offset fix above. Update/cleanup error output 3629routines. Enable and send iASL errors/warnings to an error logfile 3630(error.txt). Send all other iASL output to a logfile (compiler.txt). 3631Fixed 3632several extraneous "unrecognized operator" messages. 3633 3634---------------------------------------- 363520 March 2012. Summary of changes for version 20120320: 3636 3637 36381) ACPICA Core Subsystem: 3639 3640Enhanced the sleep/wake interfaces to optionally execute the _GTS method 3641(Going To Sleep) and the _BFS method (Back From Sleep). Windows 3642apparently 3643does not execute these methods, and therefore these methods are often 3644untested. It has been seen on some systems where the execution of these 3645methods causes errors and also prevents the machine from entering S5. It 3646is 3647therefore suggested that host operating systems do not execute these 3648methods 3649by default. In the future, perhaps these methods can be optionally 3650executed 3651based on the age of the system and/or what is the newest version of 3652Windows 3653that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 3654and 3655AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 3656Ming. 3657 3658Fixed a problem where the length of the local/common FADT was set too 3659early. 3660The local FADT table length cannot be set to the common length until the 3661original length has been examined. There is code that checks the table 3662length 3663and sets various fields appropriately. This can affect older machines 3664with 3665early FADT versions. For example, this can cause inadvertent writes to 3666the 3667CST_CNT register. Julian Anastasov. 3668 3669Fixed a mapping issue related to a physical table override. Use the 3670deferred 3671mapping mechanism for tables loaded via the physical override OSL 3672interface. 3673This allows for early mapping before the virtual memory manager is 3674available. 3675Thomas Renninger, Bob Moore. 3676 3677Enhanced the automatic return-object repair code: Repair a common problem 3678with 3679predefined methods that are defined to return a variable-length Package 3680of 3681sub-objects. If there is only one sub-object, some BIOS ASL code 3682mistakenly 3683simply returns the single object instead of a Package with one sub- 3684object. 3685This new support will repair this error by wrapping a Package object 3686around 3687the original object, creating the correct and expected Package with one 3688sub- 3689object. Names that can be repaired in this manner include: _ALR, _CSD, 3690_HPX, 3691_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 3692939. 3693 3694Changed the exception code returned for invalid ACPI paths passed as 3695parameters to external interfaces such as AcpiEvaluateObject. Was 3696AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 3697 3698Example Code and Data Size: These are the sizes for the OS-independent 3699acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3700debug 3701version of the code includes the debug output trace mechanism and has a 3702much 3703larger code and data size. 3704 3705 Previous Release: 3706 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3707 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3708 Current Release: 3709 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 3710 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3711 3712 37132) iASL Compiler/Disassembler and Tools: 3714 3715iASL: Added the infrastructure and initial implementation of a integrated 3716C- 3717like preprocessor. This will simplify BIOS development process by 3718eliminating 3719the need for a separate preprocessing step during builds. On Windows, it 3720also 3721eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 3722features including full #define() macro support are still under 3723development. 3724These preprocessor directives are supported: 3725 #define 3726 #elif 3727 #else 3728 #endif 3729 #error 3730 #if 3731 #ifdef 3732 #ifndef 3733 #include 3734 #pragma message 3735 #undef 3736 #warning 3737In addition, these new command line options are supported: 3738 -D <symbol> Define symbol for preprocessor use 3739 -li Create preprocessed output file (*.i) 3740 -P Preprocess only and create preprocessor output file (*.i) 3741 3742Table Compiler: Fixed a problem where the equals operator within an 3743expression 3744did not work properly. 3745 3746Updated iASL to use the current versions of Bison/Flex. Updated the 3747Windows 3748project file to invoke these tools from the standard location. ACPICA BZ 3749904. 3750Versions supported: 3751 Flex for Windows: V2.5.4 3752 Bison for Windows: V2.4.1 3753 3754---------------------------------------- 375515 February 2012. Summary of changes for version 20120215: 3756 3757 37581) ACPICA Core Subsystem: 3759 3760There have been some major changes to the sleep/wake support code, as 3761described below (a - e). 3762 3763a) The AcpiLeaveSleepState has been split into two interfaces, similar to 3764AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 3765AcpiLeaveSleepStatePrep. This allows the host to perform actions between 3766the 3767time the _BFS method is called and the _WAK method is called. NOTE: all 3768hosts 3769must update their wake/resume code or else sleep/wake will not work 3770properly. 3771Rafael Wysocki. 3772 3773b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 3774_WAK 3775method. Some machines require that the GPEs are enabled before the _WAK 3776method 3777is executed. Thomas Renninger. 3778 3779c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 3780bit. 3781Some BIOS code assumes that WAK_STS will be cleared on resume and use it 3782to 3783determine whether the system is rebooting or resuming. Matthew Garrett. 3784 3785d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 3786Sleep) to 3787match the ACPI specification requirement. Rafael Wysocki. 3788 3789e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 3790registers within the V5 FADT. This support adds two new files: 3791hardware/hwesleep.c implements the support for the new registers. Moved 3792all 3793sleep/wake external interfaces to hardware/hwxfsleep.c. 3794 3795 3796Added a new OSL interface for ACPI table overrides, 3797AcpiOsPhysicalTableOverride. This interface allows the host to override a 3798table via a physical address, instead of the logical address required by 3799AcpiOsTableOverride. This simplifies the host implementation. Initial 3800implementation by Thomas Renninger. The ACPICA implementation creates a 3801single 3802shared function for table overrides that attempts both a logical and a 3803physical override. 3804 3805Expanded the OSL memory read/write interfaces to 64-bit data 3806(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 3807transfer support for GAS register structures passed to AcpiRead and 3808AcpiWrite. 3809 3810Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 3811custom 3812build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 3813model. 3814See the ACPICA reference for details. ACPICA BZ 942. This option removes 3815about 381610% of the code and 5% of the static data, and the following hardware 3817ACPI 3818features become unavailable: 3819 PM Event and Control registers 3820 SCI interrupt (and handler) 3821 Fixed Events 3822 General Purpose Events (GPEs) 3823 Global Lock 3824 ACPI PM timer 3825 FACS table (Waking vectors and Global Lock) 3826 3827Updated the unix tarball directory structure to match the ACPICA git 3828source 3829tree. This ensures that the generic unix makefiles work properly (in 3830generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 3831867. 3832 3833Updated the return value of the _REV predefined method to integer value 5 3834to 3835reflect ACPI 5.0 support. 3836 3837Moved the external ACPI PM timer interface prototypes to the public 3838acpixf.h 3839file where they belong. 3840 3841Example Code and Data Size: These are the sizes for the OS-independent 3842acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3843debug 3844version of the code includes the debug output trace mechanism and has a 3845much 3846larger code and data size. 3847 3848 Previous Release: 3849 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 3850 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 3851 Current Release: 3852 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 3853 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 3854 3855 38562) iASL Compiler/Disassembler and Tools: 3857 3858Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 3859descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 3860incorrectly displayed. 3861 3862AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 3863specification. 3864 3865---------------------------------------- 386611 January 2012. Summary of changes for version 20120111: 3867 3868 38691) ACPICA Core Subsystem: 3870 3871Implemented a new mechanism to allow host device drivers to check for 3872address 3873range conflicts with ACPI Operation Regions. Both SystemMemory and 3874SystemIO 3875address spaces are supported. A new external interface, 3876AcpiCheckAddressRange, 3877allows drivers to check an address range against the ACPI namespace. See 3878the 3879ACPICA reference for additional details. Adds one new file, 3880utilities/utaddress.c. Lin Ming, Bob Moore. 3881 3882Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 3883Control 3884and 3885Status registers, update the ACPI 5.0 flags, and update internal data 3886structures to handle an FADT larger than 256 bytes. The size of the ACPI 38875.0 3888FADT is 268 bytes. 3889 3890Updated all ACPICA copyrights and signons to 2012. Added the 2012 3891copyright to 3892all module headers and signons, including the standard Linux header. This 3893affects virtually every file in the ACPICA core subsystem, iASL compiler, 3894and 3895all ACPICA utilities. 3896 3897Example Code and Data Size: These are the sizes for the OS-independent 3898acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3899debug 3900version of the code includes the debug output trace mechanism and has a 3901much 3902larger code and data size. 3903 3904 Previous Release: 3905 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 3906 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 3907 Current Release: 3908 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 3909 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 3910 3911 39122) iASL Compiler/Disassembler and Tools: 3913 3914Disassembler: fixed a problem with the automatic resource tag generation 3915support. Fixes a problem where the resource tags are inadvertently not 3916constructed if the table being disassembled contains external references 3917to 3918control methods. Moved the actual construction of the tags to after the 3919final 3920namespace is constructed (after 2nd parse is invoked due to external 3921control 3922method references.) ACPICA BZ 941. 3923 3924Table Compiler: Make all "generic" operators caseless. These are the 3925operators 3926like UINT8, String, etc. Making these caseless improves ease-of-use. 3927ACPICA BZ 3928934. 3929 3930---------------------------------------- 393123 November 2011. Summary of changes for version 20111123: 3932 39330) ACPI 5.0 Support: 3934 3935This release contains full support for the ACPI 5.0 specification, as 3936summarized below. 3937 3938Reduced Hardware Support: 3939------------------------- 3940 3941This support allows for ACPI systems without the usual ACPI hardware. 3942This 3943support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 3944will 3945not attempt to initialize or use any of the usual ACPI hardware. Note, 3946when 3947this flag is set, all of the following ACPI hardware is assumed to be not 3948present and is not initialized or accessed: 3949 3950 General Purpose Events (GPEs) 3951 Fixed Events (PM1a/PM1b and PM Control) 3952 Power Management Timer and Console Buttons (power/sleep) 3953 Real-time Clock Alarm 3954 Global Lock 3955 System Control Interrupt (SCI) 3956 The FACS is assumed to be non-existent 3957 3958ACPI Tables: 3959------------ 3960 3961All new tables and updates to existing tables are fully supported in the 3962ACPICA headers (for use by device drivers), the disassembler, and the 3963iASL 3964Data Table Compiler. ACPI 5.0 defines these new tables: 3965 3966 BGRT /* Boot Graphics Resource Table */ 3967 DRTM /* Dynamic Root of Trust for Measurement table */ 3968 FPDT /* Firmware Performance Data Table */ 3969 GTDT /* Generic Timer Description Table */ 3970 MPST /* Memory Power State Table */ 3971 PCCT /* Platform Communications Channel Table */ 3972 PMTT /* Platform Memory Topology Table */ 3973 RASF /* RAS Feature table */ 3974 3975Operation Regions/SpaceIDs: 3976--------------------------- 3977 3978All new operation regions are fully supported by the iASL compiler, the 3979disassembler, and the ACPICA runtime code (for dispatch to region 3980handlers.) 3981The new operation region Space IDs are: 3982 3983 GeneralPurposeIo 3984 GenericSerialBus 3985 3986Resource Descriptors: 3987--------------------- 3988 3989All new ASL resource descriptors are fully supported by the iASL 3990compiler, 3991the 3992ASL/AML disassembler, and the ACPICA runtime Resource Manager code 3993(including 3994all new predefined resource tags). New descriptors are: 3995 3996 FixedDma 3997 GpioIo 3998 GpioInt 3999 I2cSerialBus 4000 SpiSerialBus 4001 UartSerialBus 4002 4003ASL/AML Operators, New and Modified: 4004------------------------------------ 4005 4006One new operator is added, the Connection operator, which is used to 4007associate 4008a GeneralPurposeIo or GenericSerialBus resource descriptor with 4009individual 4010field objects within an operation region. Several new protocols are 4011associated 4012with the AccessAs operator. All are fully supported by the iASL compiler, 4013disassembler, and runtime ACPICA AML interpreter: 4014 4015 Connection // Declare Field Connection 4016attributes 4017 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 4018 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 4019Protocol 4020 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 4021 RawDataBuffer // Data type for Vendor Data 4022fields 4023 4024Predefined ASL/AML Objects: 4025--------------------------- 4026 4027All new predefined objects/control-methods are supported by the iASL 4028compiler 4029and the ACPICA runtime validation/repair (arguments and return values.) 4030New 4031predefined names include the following: 4032 4033Standard Predefined Names (Objects or Control Methods): 4034 _AEI, _CLS, _CPC, _CWS, _DEP, 4035 _DLM, _EVT, _GCP, _CRT, _GWS, 4036 _HRV, _PRE, _PSE, _SRT, _SUB. 4037 4038Resource Tags (Names used to access individual fields within resource 4039descriptors): 4040 _DBT, _DPL, _DRS, _END, _FLC, 4041 _IOR, _LIN, _MOD, _PAR, _PHA, 4042 _PIN, _PPI, _POL, _RXL, _SLV, 4043 _SPE, _STB, _TXL, _VEN. 4044 4045ACPICA External Interfaces: 4046--------------------------- 4047 4048Several new interfaces have been defined for use by ACPI-related device 4049drivers and other host OS services: 4050 4051AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 4052to 4053acquire and release AML mutexes that are defined in the DSDT/SSDT tables 4054provided by the BIOS. They are intended to be used in conjunction with 4055the 4056ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 4057mutual exclusion with the AML code/interpreter. 4058 4059AcpiGetEventResources: Returns the (formatted) resource descriptors as 4060defined 4061by the ACPI 5.0 _AEI object (ACPI Event Information). This object 4062provides 4063resource descriptors associated with hardware-reduced platform events, 4064similar 4065to the AcpiGetCurrentResources interface. 4066 4067Operation Region Handlers: For General Purpose IO and Generic Serial Bus 4068operation regions, information about the Connection() object and any 4069optional 4070length information is passed to the region handler within the Context 4071parameter. 4072 4073AcpiBufferToResource: This interface converts a raw AML buffer containing 4074a 4075resource template or resource descriptor to the ACPI_RESOURCE internal 4076format 4077suitable for use by device drivers. Can be used by an operation region 4078handler 4079to convert the Connection() buffer object into a ACPI_RESOURCE. 4080 4081Miscellaneous/Tools/TestSuites: 4082------------------------------- 4083 4084Support for extended _HID names (Four alpha characters instead of three). 4085Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 4086Support for ACPI 5.0 features in the ASLTS test suite. 4087Fully updated documentation (ACPICA and iASL reference documents.) 4088 4089ACPI Table Definition Language: 4090------------------------------- 4091 4092Support for this language was implemented and released as a subsystem of 4093the 4094iASL compiler in 2010. (See the iASL compiler User Guide.) 4095 4096 4097Non-ACPI 5.0 changes for this release: 4098-------------------------------------- 4099 41001) ACPICA Core Subsystem: 4101 4102Fix a problem with operation region declarations where a failure can 4103occur 4104if 4105the region name and an argument that evaluates to an object (such as the 4106region address) are in different namespace scopes. Lin Ming, ACPICA BZ 4107937. 4108 4109Do not abort an ACPI table load if an invalid space ID is found within. 4110This 4111will be caught later if the offending method is executed. ACPICA BZ 925. 4112 4113Fixed an issue with the FFixedHW space ID where the ID was not always 4114recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 4115 4116Fixed a problem with the 32-bit generation of the unix-specific OSL 4117(osunixxf.c). Lin Ming, ACPICA BZ 936. 4118 4119Several changes made to enable generation with the GCC 4.6 compiler. 4120ACPICA BZ 4121935. 4122 4123New error messages: Unsupported I/O requests (not 8/16/32 bit), and 4124Index/Bank 4125field registers out-of-range. 4126 41272) iASL Compiler/Disassembler and Tools: 4128 4129iASL: Implemented the __PATH__ operator, which returns the full pathname 4130of 4131the current source file. 4132 4133AcpiHelp: Automatically display expanded keyword information for all ASL 4134operators. 4135 4136Debugger: Add "Template" command to disassemble/dump resource template 4137buffers. 4138 4139Added a new master script to generate and execute the ASLTS test suite. 4140Automatically handles 32- and 64-bit generation. See tests/aslts.sh 4141 4142iASL: Fix problem with listing generation during processing of the 4143Switch() 4144operator where AML listing was disabled until the entire Switch block was 4145completed. 4146 4147iASL: Improve support for semicolon statement terminators. Fix "invalid 4148character" message for some cases when the semicolon is used. Semicolons 4149are 4150now allowed after every <Term> grammar element. ACPICA BZ 927. 4151 4152iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 4153923. 4154 4155Disassembler: Fix problem with disassembly of the DataTableRegion 4156operator 4157where an inadvertent "Unhandled deferred opcode" message could be 4158generated. 4159 41603) Example Code and Data Size 4161 4162These are the sizes for the OS-independent acpica.lib produced by the 4163Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4164includes the debug output trace mechanism and has a much larger code and 4165data 4166size. 4167 4168 Previous Release: 4169 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4170 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4171 Current Release: 4172 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 4173 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 4174 4175---------------------------------------- 417622 September 2011. Summary of changes for version 20110922: 4177 41780) ACPI 5.0 News: 4179 4180Support for ACPI 5.0 in ACPICA has been underway for several months and 4181will 4182be released at the same time that ACPI 5.0 is officially released. 4183 4184The ACPI 5.0 specification is on track for release in the next few 4185months. 4186 41871) ACPICA Core Subsystem: 4188 4189Fixed a problem where the maximum sleep time for the Sleep() operator was 4190intended to be limited to two seconds, but was inadvertently limited to 419120 4192seconds instead. 4193 4194Linux and Unix makefiles: Added header file dependencies to ensure 4195correct 4196generation of ACPICA core code and utilities. Also simplified the 4197makefiles 4198considerably through the use of the vpath variable to specify search 4199paths. 4200ACPICA BZ 924. 4201 42022) iASL Compiler/Disassembler and Tools: 4203 4204iASL: Implemented support to check the access length for all fields 4205created to 4206access named Resource Descriptor fields. For example, if a resource field 4207is 4208defined to be two bits, a warning is issued if a CreateXxxxField() is 4209used 4210with an incorrect bit length. This is implemented for all current 4211resource 4212descriptor names. ACPICA BZ 930. 4213 4214Disassembler: Fixed a byte ordering problem with the output of 24-bit and 421556- 4216bit integers. 4217 4218iASL: Fixed a couple of issues associated with variable-length package 4219objects. 1) properly handle constants like One, Ones, Zero -- do not make 4220a 4221VAR_PACKAGE when these are used as a package length. 2) Allow the 4222VAR_PACKAGE 4223opcode (in addition to PACKAGE) when validating object types for 4224predefined 4225names. 4226 4227iASL: Emit statistics for all output files (instead of just the ASL input 4228and 4229AML output). Includes listings, hex files, etc. 4230 4231iASL: Added -G option to the table compiler to allow the compilation of 4232custom 4233ACPI tables. The only part of a table that is required is the standard 423436- 4235byte 4236ACPI header. 4237 4238AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 4239headers), 4240which also adds correct 64-bit support. Also, now all output filenames 4241are 4242completely lower case. 4243 4244AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 4245loading table files. A warning is issued for any such tables. The only 4246exception is an FADT. This also fixes a possible fault when attempting to 4247load 4248non-AML tables. ACPICA BZ 932. 4249 4250AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 4251a 4252missing table terminator could cause a fault when using the -p option. 4253 4254AcpiSrc: Fixed a possible divide-by-zero fault when generating file 4255statistics. 4256 42573) Example Code and Data Size 4258 4259These are the sizes for the OS-independent acpica.lib produced by the 4260Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 4261includes the debug output trace mechanism and has a much larger code and 4262data 4263size. 4264 4265 Previous Release (VC 9.0): 4266 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4267 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4268 Current Release (VC 9.0): 4269 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4270 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4271 4272 4273---------------------------------------- 427423 June 2011. Summary of changes for version 20110623: 4275 42761) ACPI CA Core Subsystem: 4277 4278Updated the predefined name repair mechanism to not attempt repair of a 4279_TSS 4280return object if a _PSS object is present. We can only sort the _TSS 4281return 4282package if there is no _PSS within the same scope. This is because if 4283_PSS 4284is 4285present, the ACPI specification dictates that the _TSS Power Dissipation 4286field 4287is to be ignored, and therefore some BIOSs leave garbage values in the 4288_TSS 4289Power field(s). In this case, it is best to just return the _TSS package 4290as- 4291is. Reported by, and fixed with assistance from Fenghua Yu. 4292 4293Added an option to globally disable the control method return value 4294validation 4295and repair. This runtime option can be used to disable return value 4296repair 4297if 4298this is causing a problem on a particular machine. Also added an option 4299to 4300AcpiExec (-dr) to set this disable flag. 4301 4302All makefiles and project files: Major changes to improve generation of 4303ACPICA 4304tools. ACPICA BZ 912: 4305 Reduce default optimization levels to improve compatibility 4306 For Linux, add strict-aliasing=0 for gcc 4 4307 Cleanup and simplify use of command line defines 4308 Cleanup multithread library support 4309 Improve usage messages 4310 4311Linux-specific header: update handling of THREAD_ID and pthread. For the 431232- 4313bit case, improve casting to eliminate possible warnings, especially with 4314the 4315acpica tools. 4316 4317Example Code and Data Size: These are the sizes for the OS-independent 4318acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4319debug 4320version of the code includes the debug output trace mechanism and has a 4321much 4322larger code and data size. 4323 4324 Previous Release (VC 9.0): 4325 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4326 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4327 Current Release (VC 9.0): 4328 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 4329 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4330 43312) iASL Compiler/Disassembler and Tools: 4332 4333With this release, a new utility named "acpihelp" has been added to the 4334ACPICA 4335package. This utility summarizes the ACPI specification chapters for the 4336ASL 4337and AML languages. It generates under Linux/Unix as well as Windows, and 4338provides the following functionality: 4339 Find/display ASL operator(s) -- with description and syntax. 4340 Find/display ASL keyword(s) -- with exact spelling and descriptions. 4341 Find/display ACPI predefined name(s) -- with description, number 4342 of arguments, and the return value data type. 4343 Find/display AML opcode name(s) -- with opcode, arguments, and 4344grammar. 4345 Decode/display AML opcode -- with opcode name, arguments, and 4346grammar. 4347 4348Service Layers: Make multi-thread support configurable. Conditionally 4349compile 4350the multi-thread support so that threading libraries will not be linked 4351if 4352not 4353necessary. The only tool that requires multi-thread support is AcpiExec. 4354 4355iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 4356of 4357Bison appear to want the interface to yyerror to be a const char * (or at 4358least this is a problem when generating iASL on some systems.) ACPICA BZ 4359923 4360Pierre Lejeune. 4361 4362Tools: Fix for systems where O_BINARY is not defined. Only used for 4363Windows 4364versions of the tools. 4365 4366---------------------------------------- 436727 May 2011. Summary of changes for version 20110527: 4368 43691) ACPI CA Core Subsystem: 4370 4371ASL Load() operator: Reinstate most restrictions on the incoming ACPI 4372table 4373signature. Now, only allow SSDT, OEMx, and a null signature. History: 4374 1) Originally, we checked the table signature for "SSDT" or "PSDT". 4375 (PSDT is now obsolete.) 4376 2) We added support for OEMx tables, signature "OEM" plus a fourth 4377 "don't care" character. 4378 3) Valid tables were encountered with a null signature, so we just 4379 gave up on validating the signature, (05/2008). 4380 4) We encountered non-AML tables such as the MADT, which caused 4381 interpreter errors and kernel faults. So now, we once again allow 4382 only SSDT, OEMx, and now, also a null signature. (05/2011). 4383 4384Added the missing _TDL predefined name to the global name list in order 4385to 4386enable validation. Affects both the core ACPICA code and the iASL 4387compiler. 4388 4389Example Code and Data Size: These are the sizes for the OS-independent 4390acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4391debug 4392version of the code includes the debug output trace mechanism and has a 4393much 4394larger code and data size. 4395 4396 Previous Release (VC 9.0): 4397 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4398 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4399 Current Release (VC 9.0): 4400 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 4401 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 4402 44032) iASL Compiler/Disassembler and Tools: 4404 4405Debugger/AcpiExec: Implemented support for "complex" method arguments on 4406the 4407debugger command line. This adds support beyond simple integers -- 4408including 4409Strings, Buffers, and Packages. Includes support for nested packages. 4410Increased the default command line buffer size to accommodate these 4411arguments. 4412See the ACPICA reference for details and syntax. ACPICA BZ 917. 4413 4414Debugger/AcpiExec: Implemented support for "default" method arguments for 4415the 4416Execute/Debug command. Now, the debugger will always invoke a control 4417method 4418with the required number of arguments -- even if the command line 4419specifies 4420none or insufficient arguments. It uses default integer values for any 4421missing 4422arguments. Also fixes a bug where only six method arguments maximum were 4423supported instead of the required seven. 4424 4425Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 4426and 4427also return status in order to prevent buffer overruns. See the ACPICA 4428reference for details and syntax. ACPICA BZ 921 4429 4430iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 4431makefiles to simplify support for the two different but similar parser 4432generators, bison and yacc. 4433 4434Updated the generic unix makefile for gcc 4. The default gcc version is 4435now 4436expected to be 4 or greater, since options specific to gcc 4 are used. 4437 4438---------------------------------------- 443913 April 2011. Summary of changes for version 20110413: 4440 44411) ACPI CA Core Subsystem: 4442 4443Implemented support to execute a so-called "orphan" _REG method under the 4444EC 4445device. This change will force the execution of a _REG method underneath 4446the 4447EC 4448device even if there is no corresponding operation region of type 4449EmbeddedControl. Fixes a problem seen on some machines and apparently is 4450compatible with Windows behavior. ACPICA BZ 875. 4451 4452Added more predefined methods that are eligible for automatic NULL 4453package 4454element removal. This change adds another group of predefined names to 4455the 4456list 4457of names that can be repaired by having NULL package elements dynamically 4458removed. This group are those methods that return a single variable- 4459length 4460package containing simple data types such as integers, buffers, strings. 4461This 4462includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 4463_PSL, 4464_Sx, 4465and _TZD. ACPICA BZ 914. 4466 4467Split and segregated all internal global lock functions to a new file, 4468evglock.c. 4469 4470Updated internal address SpaceID for DataTable regions. Moved this 4471internal 4472space 4473id in preparation for ACPI 5.0 changes that will include some new space 4474IDs. 4475This 4476change should not affect user/host code. 4477 4478Example Code and Data Size: These are the sizes for the OS-independent 4479acpica.lib 4480produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4481version of 4482the code includes the debug output trace mechanism and has a much larger 4483code 4484and 4485data size. 4486 4487 Previous Release (VC 9.0): 4488 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4489 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4490 Current Release (VC 9.0): 4491 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 4492 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 4493 44942) iASL Compiler/Disassembler and Tools: 4495 4496iASL/DTC: Major update for new grammar features. Allow generic data types 4497in 4498custom ACPI tables. Field names are now optional. Any line can be split 4499to 4500multiple lines using the continuation char (\). Large buffers now use 4501line- 4502continuation character(s) and no colon on the continuation lines. See the 4503grammar 4504update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 4505Moore. 4506 4507iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 4508statements. 4509Since the parser stuffs a "zero" as the return value for these statements 4510(due 4511to 4512the underlying AML grammar), they were seen as "return with value" by the 4513iASL 4514semantic checking. They are now seen correctly as "null" return 4515statements. 4516 4517iASL: Check if a_REG declaration has a corresponding Operation Region. 4518Adds a 4519check for each _REG to ensure that there is in fact a corresponding 4520operation 4521region declaration in the same scope. If not, the _REG method is not very 4522useful 4523since it probably won't be executed. ACPICA BZ 915. 4524 4525iASL/DTC: Finish support for expression evaluation. Added a new 4526expression 4527parser 4528that implements c-style operator precedence and parenthesization. ACPICA 4529bugzilla 4530908. 4531 4532Disassembler/DTC: Remove support for () and <> style comments in data 4533tables. 4534Now 4535that DTC has full expression support, we don't want to have comment 4536strings 4537that 4538start with a parentheses or a less-than symbol. Now, only the standard /* 4539and 4540// 4541comments are supported, as well as the bracket [] comments. 4542 4543AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 4544"unusual" 4545headers in the acpidump file. Update the header validation to support 4546these 4547tables. Problem introduced in previous AcpiXtract version in the change 4548to 4549support "wrong checksum" error messages emitted by acpidump utility. 4550 4551iASL: Add a * option to generate all template files (as a synonym for 4552ALL) 4553as 4554in 4555"iasl -T *" or "iasl -T ALL". 4556 4557iASL/DTC: Do not abort compiler on fatal errors. We do not want to 4558completely 4559abort the compiler on "fatal" errors, simply should abort the current 4560compile. 4561This allows multiple compiles with a single (possibly wildcard) compiler 4562invocation. 4563 4564---------------------------------------- 456516 March 2011. Summary of changes for version 20110316: 4566 45671) ACPI CA Core Subsystem: 4568 4569Fixed a problem caused by a _PRW method appearing at the namespace root 4570scope 4571during the setup of wake GPEs. A fault could occur if a _PRW directly 4572under 4573the 4574root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 4575 4576Implemented support for "spurious" Global Lock interrupts. On some 4577systems, a 4578global lock interrupt can occur without the pending flag being set. Upon 4579a 4580GL 4581interrupt, we now ensure that a thread is actually waiting for the lock 4582before 4583signaling GL availability. Rafael Wysocki, Bob Moore. 4584 4585Example Code and Data Size: These are the sizes for the OS-independent 4586acpica.lib 4587produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 4588version of 4589the code includes the debug output trace mechanism and has a much larger 4590code 4591and 4592data size. 4593 4594 Previous Release (VC 9.0): 4595 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4596 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4597 Current Release (VC 9.0): 4598 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 4599 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 4600 46012) iASL Compiler/Disassembler and Tools: 4602 4603Implemented full support for the "SLIC" ACPI table. Includes support in 4604the 4605header files, disassembler, table compiler, and template generator. Bob 4606Moore, 4607Lin Ming. 4608 4609AcpiXtract: Correctly handle embedded comments and messages from 4610AcpiDump. 4611Apparently some or all versions of acpidump will occasionally emit a 4612comment 4613like 4614"Wrong checksum", etc., into the dump file. This was causing problems for 4615AcpiXtract. ACPICA BZ 905. 4616 4617iASL: Fix the Linux makefile by removing an inadvertent double file 4618inclusion. 4619ACPICA BZ 913. 4620 4621AcpiExec: Update installation of operation region handlers. Install one 4622handler 4623for a user-defined address space. This is used by the ASL test suite 4624(ASLTS). 4625 4626---------------------------------------- 462711 February 2011. Summary of changes for version 20110211: 4628 46291) ACPI CA Core Subsystem: 4630 4631Added a mechanism to defer _REG methods for some early-installed 4632handlers. 4633Most user handlers should be installed before call to 4634AcpiEnableSubsystem. 4635However, Event handlers and region handlers should be installed after 4636AcpiInitializeObjects. Override handlers for the "default" regions should 4637be 4638installed early, however. This change executes all _REG methods for the 4639default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 4640chicken/egg issues between them. ACPICA BZ 848. 4641 4642Implemented an optimization for GPE detection. This optimization will 4643simply 4644ignore GPE registers that contain no enabled GPEs -- there is no need to 4645read the register since this information is available internally. This 4646becomes more important on machines with a large GPE space. ACPICA 4647bugzilla 4648884. Lin Ming. Suggestion from Joe Liu. 4649 4650Removed all use of the highly unreliable FADT revision field. The 4651revision 4652number in the FADT has been found to be completely unreliable and cannot 4653be 4654trusted. Only the actual table length can be used to infer the version. 4655This 4656change updates the ACPICA core and the disassembler so that both no 4657longer 4658even look at the FADT version and instead depend solely upon the FADT 4659length. 4660 4661Fix an unresolved name issue for the no-debug and no-error-message source 4662generation cases. The _AcpiModuleName was left undefined in these cases, 4663but 4664it is actually needed as a parameter to some interfaces. Define 4665_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 4666 4667Split several large files (makefiles and project files updated) 4668 utglobal.c -> utdecode.c 4669 dbcomds.c -> dbmethod.c dbnames.c 4670 dsopcode.c -> dsargs.c dscontrol.c 4671 dsload.c -> dsload2.c 4672 aslanalyze.c -> aslbtypes.c aslwalks.c 4673 4674Example Code and Data Size: These are the sizes for the OS-independent 4675acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4676debug version of the code includes the debug output trace mechanism and 4677has 4678a much larger code and data size. 4679 4680 Previous Release (VC 9.0): 4681 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4682 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4683 Current Release (VC 9.0): 4684 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4685 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4686 46872) iASL Compiler/Disassembler and Tools: 4688 4689iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 4690These are useful C-style macros with the standard definitions. ACPICA 4691bugzilla 898. 4692 4693iASL/DTC: Added support for integer expressions and labels. Support for 4694full 4695expressions for all integer fields in all ACPI tables. Support for labels 4696in 4697"generic" portions of tables such as UEFI. See the iASL reference manual. 4698 4699Debugger: Added a command to display the status of global handlers. The 4700"handlers" command will display op region, fixed event, and miscellaneous 4701global handlers. installation status -- and for op regions, whether 4702default 4703or user-installed handler will be used. 4704 4705iASL: Warn if reserved method incorrectly returns a value. Many 4706predefined 4707names are defined such that they do not return a value. If implemented as 4708a 4709method, issue a warning if such a name explicitly returns a value. ACPICA 4710Bugzilla 855. 4711 4712iASL: Added detection of GPE method name conflicts. Detects a conflict 4713where 4714there are two GPE methods of the form _Lxy and _Exy in the same scope. 4715(For 4716example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 4717 4718iASL/DTC: Fixed a couple input scanner issues with comments and line 4719numbers. Comment remover could get confused and miss a comment ending. 4720Fixed 4721a problem with line counter maintenance. 4722 4723iASL/DTC: Reduced the severity of some errors from fatal to error. There 4724is 4725no need to abort on simple errors within a field definition. 4726 4727Debugger: Simplified the output of the help command. All help output now 4728in 4729a single screen, instead of help subcommands. ACPICA Bugzilla 897. 4730 4731---------------------------------------- 473212 January 2011. Summary of changes for version 20110112: 4733 47341) ACPI CA Core Subsystem: 4735 4736Fixed a race condition between method execution and namespace walks that 4737can 4738possibly cause a fault. The problem was apparently introduced in version 473920100528 as a result of a performance optimization that reduces the 4740number 4741of 4742namespace walks upon method exit by using the delete_namespace_subtree 4743function instead of the delete_namespace_by_owner function used 4744previously. 4745Bug is a missing namespace lock in the delete_namespace_subtree function. 4746dana.myers@oracle.com 4747 4748Fixed several issues and a possible fault with the automatic "serialized" 4749method support. History: This support changes a method to "serialized" on 4750the 4751fly if the method generates an AE_ALREADY_EXISTS error, indicating the 4752possibility that it cannot handle reentrancy. This fix repairs a couple 4753of 4754issues seen in the field, especially on machines with many cores: 4755 4756 1) Delete method children only upon the exit of the last thread, 4757 so as to not delete objects out from under other running threads 4758 (and possibly causing a fault.) 4759 2) Set the "serialized" bit for the method only upon the exit of the 4760 Last thread, so as to not cause deadlock when running threads 4761 attempt to exit. 4762 3) Cleanup the use of the AML "MethodFlags" and internal method flags 4763 so that there is no longer any confusion between the two. 4764 4765 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 4766 4767Debugger: Now lock the namespace for duration of a namespace dump. 4768Prevents 4769issues if the namespace is changing dynamically underneath the debugger. 4770Especially affects temporary namespace nodes, since the debugger displays 4771these also. 4772 4773Updated the ordering of include files. The ACPICA headers should appear 4774before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 4775set 4776any necessary compiler-specific defines, etc. Affects the ACPI-related 4777tools 4778and utilities. 4779 4780Updated all ACPICA copyrights and signons to 2011. Added the 2011 4781copyright 4782to all module headers and signons, including the Linux header. This 4783affects 4784virtually every file in the ACPICA core subsystem, iASL compiler, and all 4785utilities. 4786 4787Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 4788project files for VC++ 6.0 are now obsolete. New project files can be 4789found 4790under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 4791details. 4792 4793Example Code and Data Size: These are the sizes for the OS-independent 4794acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4795debug version of the code includes the debug output trace mechanism and 4796has a 4797much larger code and data size. 4798 4799 Previous Release (VC 6.0): 4800 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 4801 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 4802 Current Release (VC 9.0): 4803 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 4804 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 4805 48062) iASL Compiler/Disassembler and Tools: 4807 4808iASL: Added generic data types to the Data Table compiler. Add "generic" 4809data 4810types such as UINT32, String, Unicode, etc., to simplify the generation 4811of 4812platform-defined tables such as UEFI. Lin Ming. 4813 4814iASL: Added listing support for the Data Table Compiler. Adds listing 4815support 4816(-l) to display actual binary output for each line of input code. 4817 4818---------------------------------------- 481909 December 2010. Summary of changes for version 20101209: 4820 48211) ACPI CA Core Subsystem: 4822 4823Completed the major overhaul of the GPE support code that was begun in 4824July 48252010. Major features include: removal of _PRW execution in ACPICA (host 4826executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 4827changes to existing interfaces, simplification of GPE handler operation, 4828and 4829a handful of new interfaces: 4830 4831 AcpiUpdateAllGpes 4832 AcpiFinishGpe 4833 AcpiSetupGpeForWake 4834 AcpiSetGpeWakeMask 4835 One new file, evxfgpe.c to consolidate all external GPE interfaces. 4836 4837See the ACPICA Programmer Reference for full details and programming 4838information. See the new section 4.4 "General Purpose Event (GPE) 4839Support" 4840for a full overview, and section 8.7 "ACPI General Purpose Event 4841Management" 4842for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 4843Ming, 4844Bob Moore, Rafael Wysocki. 4845 4846Implemented a new GPE feature for Windows compatibility, the "Implicit 4847Wake 4848GPE Notify". This feature will automatically issue a Notify(2) on a 4849device 4850when a Wake GPE is received if there is no corresponding GPE method or 4851handler. ACPICA BZ 870. 4852 4853Fixed a problem with the Scope() operator during table parse and load 4854phase. 4855During load phase (table load or method execution), the scope operator 4856should 4857not enter the target into the namespace. Instead, it should open a new 4858scope 4859at the target location. Linux BZ 19462, ACPICA BZ 882. 4860 4861Example Code and Data Size: These are the sizes for the OS-independent 4862acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4863debug version of the code includes the debug output trace mechanism and 4864has a 4865much larger code and data size. 4866 4867 Previous Release: 4868 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 4869 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 4870 Current Release: 4871 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4872 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4873 48742) iASL Compiler/Disassembler and Tools: 4875 4876iASL: Relax the alphanumeric restriction on _CID strings. These strings 4877are 4878"bus-specific" per the ACPI specification, and therefore any characters 4879are 4880acceptable. The only checks that can be performed are for a null string 4881and 4882perhaps for a leading asterisk. ACPICA BZ 886. 4883 4884iASL: Fixed a problem where a syntax error that caused a premature EOF 4885condition on the source file emitted a very confusing error message. The 4886premature EOF is now detected correctly. ACPICA BZ 891. 4887 4888Disassembler: Decode the AccessSize within a Generic Address Structure 4889(byte 4890access, word access, etc.) Note, this field does not allow arbitrary bit 4891access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 4892 4893New: AcpiNames utility - Example namespace dump utility. Shows an example 4894of 4895ACPICA configuration for a minimal namespace dump utility. Uses table and 4896namespace managers, but no AML interpreter. Does not add any 4897functionality 4898over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 4899partition and configure ACPICA. ACPICA BZ 883. 4900 4901AML Debugger: Increased the debugger buffer size for method return 4902objects. 4903Was 4K, increased to 16K. Also enhanced error messages for debugger 4904method 4905execution, including the buffer overflow case. 4906 4907---------------------------------------- 490813 October 2010. Summary of changes for version 20101013: 4909 49101) ACPI CA Core Subsystem: 4911 4912Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 4913now 4914clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 4915HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 4916 4917Changed the type of the predefined namespace object _TZ from ThermalZone 4918to 4919Device. This was found to be confusing to the host software that 4920processes 4921the various thermal zones, since _TZ is not really a ThermalZone. 4922However, 4923a 4924Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 4925Zhang. 4926 4927Added Windows Vista SP2 to the list of supported _OSI strings. The actual 4928string is "Windows 2006 SP2". 4929 4930Eliminated duplicate code in AcpiUtExecute* functions. Now that the 4931nsrepair 4932code automatically repairs _HID-related strings, this type of code is no 4933longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 4934878. 4935 4936Example Code and Data Size: These are the sizes for the OS-independent 4937acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4938debug version of the code includes the debug output trace mechanism and 4939has a 4940much larger code and data size. 4941 4942 Previous Release: 4943 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4944 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4945 Current Release: 4946 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 4947 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 4948 49492) iASL Compiler/Disassembler and Tools: 4950 4951iASL: Implemented additional compile-time validation for _HID strings. 4952The 4953non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 4954length 4955of 4956the string must be exactly seven or eight characters. For both _HID and 4957_CID 4958strings, all characters must be alphanumeric. ACPICA BZ 874. 4959 4960iASL: Allow certain "null" resource descriptors. Some BIOS code creates 4961descriptors that are mostly or all zeros, with the expectation that they 4962will 4963be filled in at runtime. iASL now allows this as long as there is a 4964"resource 4965tag" (name) associated with the descriptor, which gives the ASL a handle 4966needed to modify the descriptor. ACPICA BZ 873. 4967 4968Added single-thread support to the generic Unix application OSL. 4969Primarily 4970for iASL support, this change removes the use of semaphores in the 4971single- 4972threaded ACPICA tools/applications - increasing performance. The 4973_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 4974option. ACPICA BZ 879. 4975 4976AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 4977support 4978for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 4979 4980iASL: Moved all compiler messages to a new file, aslmessages.h. 4981 4982---------------------------------------- 498315 September 2010. Summary of changes for version 20100915: 4984 49851) ACPI CA Core Subsystem: 4986 4987Removed the AcpiOsDerivePciId OSL interface. The various host 4988implementations 4989of this function were not OS-dependent and are now obsolete and can be 4990removed from all host OSLs. This function has been replaced by 4991AcpiHwDerivePciId, which is now part of the ACPICA core code. 4992AcpiHwDerivePciId has been implemented without recursion. Adds one new 4993module, hwpci.c. ACPICA BZ 857. 4994 4995Implemented a dynamic repair for _HID and _CID strings. The following 4996problems are now repaired at runtime: 1) Remove a leading asterisk in the 4997string, and 2) the entire string is uppercased. Both repairs are in 4998accordance with the ACPI specification and will simplify host driver 4999code. 5000ACPICA BZ 871. 5001 5002The ACPI_THREAD_ID type is no longer configurable, internally it is now 5003always UINT64. This simplifies the ACPICA code, especially any printf 5004output. 5005UINT64 is the only common data type for all thread_id types across all 5006operating systems. It is now up to the host OSL to cast the native 5007thread_id 5008type to UINT64 before returning the value to ACPICA (via 5009AcpiOsGetThreadId). 5010Lin Ming, Bob Moore. 5011 5012Added the ACPI_INLINE type to enhance the ACPICA configuration. The 5013"inline" 5014keyword is not standard across compilers, and this type allows inline to 5015be 5016configured on a per-compiler basis. Lin Ming. 5017 5018Made the system global AcpiGbl_SystemAwakeAndRunning publically 5019available. 5020Added an extern for this boolean in acpixf.h. Some hosts utilize this 5021value 5022during suspend/restore operations. ACPICA BZ 869. 5023 5024All code that implements error/warning messages with the "ACPI:" prefix 5025has 5026been moved to a new module, utxferror.c. 5027 5028The UINT64_OVERLAY was moved to utmath.c, which is the only module where 5029it 5030is used. ACPICA BZ 829. Lin Ming, Bob Moore. 5031 5032Example Code and Data Size: These are the sizes for the OS-independent 5033acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5034debug version of the code includes the debug output trace mechanism and 5035has a 5036much larger code and data size. 5037 5038 Previous Release: 5039 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 5040 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 5041 Current Release: 5042 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 5043 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 5044 50452) iASL Compiler/Disassembler and Tools: 5046 5047iASL/Disassembler: Write ACPI errors to stderr instead of the output 5048file. 5049This keeps the output files free of random error messages that may 5050originate 5051from within the namespace/interpreter code. Used this opportunity to 5052merge 5053all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 5054866. Lin Ming, Bob Moore. 5055 5056Tools: update some printfs for ansi warnings on size_t. Handle width 5057change 5058of size_t on 32-bit versus 64-bit generations. Lin Ming. 5059 5060---------------------------------------- 506106 August 2010. Summary of changes for version 20100806: 5062 50631) ACPI CA Core Subsystem: 5064 5065Designed and implemented a new host interface to the _OSI support code. 5066This 5067will allow the host to dynamically add or remove multiple _OSI strings, 5068as 5069well as install an optional handler that is called for each _OSI 5070invocation. 5071Also added a new AML debugger command, 'osi' to display and modify the 5072global 5073_OSI string table, and test support in the AcpiExec utility. See the 5074ACPICA 5075reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 5076New Functions: 5077 AcpiInstallInterface - Add an _OSI string. 5078 AcpiRemoveInterface - Delete an _OSI string. 5079 AcpiInstallInterfaceHandler - Install optional _OSI handler. 5080Obsolete Functions: 5081 AcpiOsValidateInterface - no longer used. 5082New Files: 5083 source/components/utilities/utosi.c 5084 5085Re-introduced the support to enable multi-byte transfers for Embedded 5086Controller (EC) operation regions. A reported problem was found to be a 5087bug 5088in the host OS, not in the multi-byte support. Previously, the maximum 5089data 5090size passed to the EC operation region handler was a single byte. There 5091are 5092often EC Fields larger than one byte that need to be transferred, and it 5093is 5094useful for the EC driver to lock these as a single transaction. This 5095change 5096enables single transfers larger than 8 bits. This effectively changes the 5097access to the EC space from ByteAcc to AnyAcc, and will probably require 5098changes to the host OS Embedded Controller driver to enable 16/32/64/256- 5099bit 5100transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 5101 5102Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 5103prototype in acpiosxf.h had the output value pointer as a (void *). 5104It should be a (UINT64 *). This may affect some host OSL code. 5105 5106Fixed a couple problems with the recently modified Linux makefiles for 5107iASL 5108and AcpiExec. These new makefiles place the generated object files in the 5109local directory so that there can be no collisions between the files that 5110are 5111shared between them that are compiled with different options. 5112 5113Example Code and Data Size: These are the sizes for the OS-independent 5114acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5115debug version of the code includes the debug output trace mechanism and 5116has a 5117much larger code and data size. 5118 5119 Previous Release: 5120 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5121 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 5122 Current Release: 5123 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 5124 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 5125 51262) iASL Compiler/Disassembler and Tools: 5127 5128iASL/Disassembler: Added a new option (-da, "disassemble all") to load 5129the 5130namespace from and disassemble an entire group of AML files. Useful for 5131loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 5132and 5133disassembling with one simple command. ACPICA BZ 865. Lin Ming. 5134 5135iASL: Allow multiple invocations of -e option. This change allows 5136multiple 5137uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 5138834. 5139Lin Ming. 5140 5141---------------------------------------- 514202 July 2010. Summary of changes for version 20100702: 5143 51441) ACPI CA Core Subsystem: 5145 5146Implemented several updates to the recently added GPE reference count 5147support. The model for "wake" GPEs is changing to give the host OS 5148complete 5149control of these GPEs. Eventually, the ACPICA core will not execute any 5150_PRW 5151methods, since the host already must execute them. Also, additional 5152changes 5153were made to help ensure that the reference counts are kept in proper 5154synchronization with reality. Rafael J. Wysocki. 5155 51561) Ensure that GPEs are not enabled twice during initialization. 51572) Ensure that GPE enable masks stay in sync with the reference count. 51583) Do not inadvertently enable GPEs when writing GPE registers. 51594) Remove the internal wake reference counter and add new AcpiGpeWakeup 5160interface. This interface will set or clear individual GPEs for wakeup. 51615) Remove GpeType argument from AcpiEnable and AcpiDisable. These 5162interfaces 5163are now used for "runtime" GPEs only. 5164 5165Changed the behavior of the GPE install/remove handler interfaces. The 5166GPE 5167is 5168no longer disabled during this process, as it was found to cause problems 5169on 5170some machines. Rafael J. Wysocki. 5171 5172Reverted a change introduced in version 20100528 to enable Embedded 5173Controller multi-byte transfers. This change was found to cause problems 5174with 5175Index Fields and possibly Bank Fields. It will be reintroduced when these 5176problems have been resolved. 5177 5178Fixed a problem with references to Alias objects within Package Objects. 5179A 5180reference to an Alias within the definition of a Package was not always 5181resolved properly. Aliases to objects like Processors, Thermal zones, 5182etc. 5183were resolved to the actual object instead of a reference to the object 5184as 5185it 5186should be. Package objects are only allowed to contain integer, string, 5187buffer, package, and reference objects. Redhat bugzilla 608648. 5188 5189Example Code and Data Size: These are the sizes for the OS-independent 5190acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5191debug version of the code includes the debug output trace mechanism and 5192has a 5193much larger code and data size. 5194 5195 Previous Release: 5196 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5197 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5198 Current Release: 5199 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5200 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 5201 52022) iASL Compiler/Disassembler and Tools: 5203 5204iASL: Implemented a new compiler subsystem to allow definition and 5205compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 5206These 5207are called "ACPI Data Tables", and the new compiler is the "Data Table 5208Compiler". This compiler is intended to simplify the existing error-prone 5209process of creating these tables for the BIOS, as well as allowing the 5210disassembly, modification, recompilation, and override of existing ACPI 5211data 5212tables. See the iASL User Guide for detailed information. 5213 5214iASL: Implemented a new Template Generator option in support of the new 5215Data 5216Table Compiler. This option will create examples of all known ACPI tables 5217that can be used as the basis for table development. See the iASL 5218documentation and the -T option. 5219 5220Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 5221Descriptor Table). 5222 5223Updated the Linux makefiles for iASL and AcpiExec to place the generated 5224object files in the local directory so that there can be no collisions 5225between the shared files between them that are generated with different 5226options. 5227 5228Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 5229Use 5230the #define __APPLE__ to enable this support. 5231 5232---------------------------------------- 523328 May 2010. Summary of changes for version 20100528: 5234 5235Note: The ACPI 4.0a specification was released on April 5, 2010 and is 5236available at www.acpi.info. This is primarily an errata release. 5237 52381) ACPI CA Core Subsystem: 5239 5240Undefined ACPI tables: We are looking for the definitions for the 5241following 5242ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 5243 5244Implemented support to enable multi-byte transfers for Embedded 5245Controller 5246(EC) operation regions. Previously, the maximum data size passed to the 5247EC 5248operation region handler was a single byte. There are often EC Fields 5249larger 5250than one byte that need to be transferred, and it is useful for the EC 5251driver 5252to lock these as a single transaction. This change enables single 5253transfers 5254larger than 8 bits. This effectively changes the access to the EC space 5255from 5256ByteAcc to AnyAcc, and will probably require changes to the host OS 5257Embedded 5258Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 5259bit 5260transfers. Alexey Starikovskiy, Lin Ming 5261 5262Implemented a performance enhancement for namespace search and access. 5263This 5264change enhances the performance of namespace searches and walks by adding 5265a 5266backpointer to the parent in each namespace node. On large namespaces, 5267this 5268change can improve overall ACPI performance by up to 9X. Adding a pointer 5269to 5270each namespace node increases the overall size of the internal namespace 5271by 5272about 5%, since each namespace entry usually consists of both a namespace 5273node and an ACPI operand object. However, this is the first growth of the 5274namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 5275 5276Implemented a performance optimization that reduces the number of 5277namespace 5278walks. On control method exit, only walk the namespace if the method is 5279known 5280to have created namespace objects outside of its local scope. Previously, 5281the 5282entire namespace was traversed on each control method exit. This change 5283can 5284improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 5285Moore. 5286 5287Added support to truncate I/O addresses to 16 bits for Windows 5288compatibility. 5289Some ASL code has been seen in the field that inadvertently has bits set 5290above bit 15. This feature is optional and is enabled if the BIOS 5291requests 5292any Windows OSI strings. It can also be enabled by the host OS. Matthew 5293Garrett, Bob Moore. 5294 5295Added support to limit the maximum time for the ASL Sleep() operator. To 5296prevent accidental deep sleeps, limit the maximum time that Sleep() will 5297actually sleep. Configurable, the default maximum is two seconds. ACPICA 5298bugzilla 854. 5299 5300Added run-time validation support for the _WDG and_WED Microsoft 5301predefined 5302methods. These objects are defined by "Windows Instrumentation", and are 5303not 5304part of the ACPI spec. ACPICA BZ 860. 5305 5306Expanded all statistic counters used during namespace and device 5307initialization from 16 to 32 bits in order to support very large 5308namespaces. 5309 5310Replaced all instances of %d in printf format specifiers with %u since 5311nearly 5312all integers in ACPICA are unsigned. 5313 5314Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 5315returned 5316as AE_NO_HANDLER. 5317 5318Example Code and Data Size: These are the sizes for the OS-independent 5319acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5320debug version of the code includes the debug output trace mechanism and 5321has a 5322much larger code and data size. 5323 5324 Previous Release: 5325 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5326 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5327 Current Release: 5328 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 5329 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 5330 53312) iASL Compiler/Disassembler and Tools: 5332 5333iASL: Added compiler support for the _WDG and_WED Microsoft predefined 5334methods. These objects are defined by "Windows Instrumentation", and are 5335not 5336part of the ACPI spec. ACPICA BZ 860. 5337 5338AcpiExec: added option to disable the memory tracking mechanism. The -dt 5339option will disable the tracking mechanism, which improves performance 5340considerably. 5341 5342AcpiExec: Restructured the command line options into -d (disable) and -e 5343(enable) options. 5344 5345---------------------------------------- 534628 April 2010. Summary of changes for version 20100428: 5347 53481) ACPI CA Core Subsystem: 5349 5350Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 5351including FADT-based and GPE Block Devices, execute any _PRW methods in 5352the 5353new table, and process any _Lxx/_Exx GPE methods in the new table. Any 5354runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 5355immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 5356Devices. Provides compatibility with other ACPI implementations. Two new 5357files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 5358Moore. 5359 5360Fixed a regression introduced in version 20100331 within the table 5361manager 5362where initial table loading could fail. This was introduced in the fix 5363for 5364AcpiReallocateRootTable. Also, renamed some of fields in the table 5365manager 5366data structures to clarify their meaning and use. 5367 5368Fixed a possible allocation overrun during internal object copy in 5369AcpiUtCopySimpleObject. The original code did not correctly handle the 5370case 5371where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 5372847. 5373 5374Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 5375possible access beyond end-of-allocation. Also, now fully validate 5376descriptor 5377(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 5378 5379Example Code and Data Size: These are the sizes for the OS-independent 5380acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5381debug version of the code includes the debug output trace mechanism and 5382has a 5383much larger code and data size. 5384 5385 Previous Release: 5386 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5387 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5388 Current Release: 5389 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 5390 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 5391 53922) iASL Compiler/Disassembler and Tools: 5393 5394iASL: Implemented Min/Max/Len/Gran validation for address resource 5395descriptors. This change implements validation for the address fields 5396that 5397are common to all address-type resource descriptors. These checks are 5398implemented: Checks for valid Min/Max, length within the Min/Max window, 5399valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 5400per 5401table 6-40 in the ACPI 4.0a specification. Also split the large 5402aslrestype1.c 5403and aslrestype2.c files into five new files. ACPICA BZ 840. 5404 5405iASL: Added support for the _Wxx predefined names. This support was 5406missing 5407and these names were not recognized by the compiler as valid predefined 5408names. ACPICA BZ 851. 5409 5410iASL: Added an error for all predefined names that are defined to return 5411no 5412value and thus must be implemented as Control Methods. These include all 5413of 5414the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 5415names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 5416 5417iASL: Implemented the -ts option to emit hex AML data in ASL format, as 5418an 5419ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 5420be 5421dynamically loaded via the Load() operator. Also cleaned up output for 5422the 5423- 5424ta and -tc options. ACPICA BZ 853. 5425 5426Tests: Added a new file with examples of extended iASL error checking. 5427Demonstrates the advanced error checking ability of the iASL compiler. 5428Available at tests/misc/badcode.asl. 5429 5430---------------------------------------- 543131 March 2010. Summary of changes for version 20100331: 5432 54331) ACPI CA Core Subsystem: 5434 5435Completed a major update for the GPE support in order to improve support 5436for 5437shared GPEs and to simplify both host OS and ACPICA code. Added a 5438reference 5439count mechanism to support shared GPEs that require multiple device 5440drivers. 5441Several external interfaces have changed. One external interface has been 5442removed. One new external interface was added. Most of the GPE external 5443interfaces now use the GPE spinlock instead of the events mutex (and the 5444Flags parameter for many GPE interfaces has been removed.) See the 5445updated 5446ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 5447Rafael 5448Wysocki. ACPICA BZ 831. 5449 5450Changed: 5451 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 5452Removed: 5453 AcpiSetGpeType 5454New: 5455 AcpiSetGpe 5456 5457Implemented write support for DataTable operation regions. These regions 5458are 5459defined via the DataTableRegion() operator. Previously, only read support 5460was 5461implemented. The ACPI specification allows DataTableRegions to be 5462read/write, 5463however. 5464 5465Implemented a new subsystem option to force a copy of the DSDT to local 5466memory. Optionally copy the entire DSDT to local memory (instead of 5467simply 5468mapping it.) There are some (albeit very rare) BIOSs that corrupt or 5469replace 5470the original DSDT, creating the need for this option. Default is FALSE, 5471do 5472not copy the DSDT. 5473 5474Implemented detection of a corrupted or replaced DSDT. This change adds 5475support to detect a DSDT that has been corrupted and/or replaced from 5476outside 5477the OS (by firmware). This is typically catastrophic for the system, but 5478has 5479been seen on some machines. Once this problem has been detected, the DSDT 5480copy option can be enabled via system configuration. Lin Ming, Bob Moore. 5481 5482Fixed two problems with AcpiReallocateRootTable during the root table 5483copy. 5484When copying the root table to the new allocation, the length used was 5485incorrect. The new size was used instead of the current table size, 5486meaning 5487too much data was copied. Also, the count of available slots for ACPI 5488tables 5489was not set correctly. Alexey Starikovskiy, Bob Moore. 5490 5491Example Code and Data Size: These are the sizes for the OS-independent 5492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5493debug version of the code includes the debug output trace mechanism and 5494has a 5495much larger code and data size. 5496 5497 Previous Release: 5498 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5499 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5500 Current Release: 5501 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 5502 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 5503 55042) iASL Compiler/Disassembler and Tools: 5505 5506iASL: Implement limited typechecking for values returned from predefined 5507control methods. The type of any returned static (unnamed) object is now 5508validated. For example, Return(1). ACPICA BZ 786. 5509 5510iASL: Fixed a predefined name object verification regression. Fixes a 5511problem 5512introduced in version 20100304. An error is incorrectly generated if a 5513predefined name is declared as a static named object with a value defined 5514using the keywords "Zero", "One", or "Ones". Lin Ming. 5515 5516iASL: Added Windows 7 support for the -g option (get local ACPI tables) 5517by 5518reducing the requested registry access rights. ACPICA BZ 842. 5519 5520Disassembler: fixed a possible fault when generating External() 5521statements. 5522Introduced in commit ae7d6fd: Properly handle externals with parent- 5523prefix 5524(carat). Fixes a string length allocation calculation. Lin Ming. 5525 5526---------------------------------------- 552704 March 2010. Summary of changes for version 20100304: 5528 55291) ACPI CA Core Subsystem: 5530 5531Fixed a possible problem with the AML Mutex handling function 5532AcpiExReleaseMutex where the function could fault under the very rare 5533condition when the interpreter has blocked, the interpreter lock is 5534released, 5535the interpreter is then reentered via the same thread, and attempts to 5536acquire an AML mutex that was previously acquired. FreeBSD report 140979. 5537Lin 5538Ming. 5539 5540Implemented additional configuration support for the AML "Debug Object". 5541Output from the debug object can now be enabled via a global variable, 5542AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 5543debugging. 5544This debug output is now available in the release version of ACPICA 5545instead 5546of just the debug version. Also, the entire debug output module can now 5547be 5548configured out of the ACPICA build if desired. One new file added, 5549executer/exdebug.c. Lin Ming, Bob Moore. 5550 5551Added header support for the ACPI MCHI table (Management Controller Host 5552Interface Table). This table was added in ACPI 4.0, but the defining 5553document 5554has only recently become available. 5555 5556Standardized output of integer values for ACPICA warnings/errors. Always 5557use 55580x prefix for hex output, always use %u for unsigned integer decimal 5559output. 5560Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 5561400 5562invocations.) These invocations were converted from the original 5563ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 5564 5565Example Code and Data Size: These are the sizes for the OS-independent 5566acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5567debug version of the code includes the debug output trace mechanism and 5568has a 5569much larger code and data size. 5570 5571 Previous Release: 5572 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5573 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5574 Current Release: 5575 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 5576 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 5577 55782) iASL Compiler/Disassembler and Tools: 5579 5580iASL: Implemented typechecking support for static (non-control method) 5581predefined named objects that are declared with the Name() operator. For 5582example, the type of this object is now validated to be of type Integer: 5583Name(_BBN, 1). This change migrates the compiler to using the core 5584predefined 5585name table instead of maintaining a local version. Added a new file, 5586aslpredef.c. ACPICA BZ 832. 5587 5588Disassembler: Added support for the ACPI 4.0 MCHI table. 5589 5590---------------------------------------- 559121 January 2010. Summary of changes for version 20100121: 5592 55931) ACPI CA Core Subsystem: 5594 5595Added the 2010 copyright to all module headers and signons. This affects 5596virtually every file in the ACPICA core subsystem, the iASL compiler, the 5597tools/utilities, and the test suites. 5598 5599Implemented a change to the AcpiGetDevices interface to eliminate 5600unnecessary 5601invocations of the _STA method. In the case where a specific _HID is 5602requested, do not run _STA until a _HID match is found. This eliminates 5603potentially dozens of _STA calls during a search for a particular 5604device/HID, 5605which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 5606 5607Implemented an additional repair for predefined method return values. 5608Attempt 5609to repair unexpected NULL elements within returned Package objects. 5610Create 5611an 5612Integer of value zero, a NULL String, or a zero-length Buffer as 5613appropriate. 5614ACPICA BZ 818. Lin Ming, Bob Moore. 5615 5616Removed the obsolete ACPI_INTEGER data type. This type was introduced as 5617the 5618code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 5619(with 562064-bit AML integers). It is now obsolete and this change removes it from 5621the 5622ACPICA code base, replaced by UINT64. The original typedef has been 5623retained 5624for now for compatibility with existing device driver code. ACPICA BZ 5625824. 5626 5627Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 5628in 5629the parse tree object. 5630 5631Added additional warning options for the gcc-4 generation. Updated the 5632source 5633accordingly. This includes some code restructuring to eliminate 5634unreachable 5635code, elimination of some gotos, elimination of unused return values, 5636some 5637additional casting, and removal of redundant declarations. 5638 5639Example Code and Data Size: These are the sizes for the OS-independent 5640acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5641debug version of the code includes the debug output trace mechanism and 5642has a 5643much larger code and data size. 5644 5645 Previous Release: 5646 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5647 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5648 Current Release: 5649 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 5650 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 5651 56522) iASL Compiler/Disassembler and Tools: 5653 5654No functional changes for this release. 5655 5656---------------------------------------- 565714 December 2009. Summary of changes for version 20091214: 5658 56591) ACPI CA Core Subsystem: 5660 5661Enhanced automatic data type conversions for predefined name repairs. 5662This 5663change expands the automatic repairs/conversions for predefined name 5664return 5665values to make Integers, Strings, and Buffers fully interchangeable. 5666Also, 5667a 5668Buffer can be converted to a Package of Integers if necessary. The 5669nsrepair.c 5670module was completely restructured. Lin Ming, Bob Moore. 5671 5672Implemented automatic removal of null package elements during predefined 5673name 5674repairs. This change will automatically remove embedded and trailing NULL 5675package elements from returned package objects that are defined to 5676contain 5677a 5678variable number of sub-packages. The driver is then presented with a 5679package 5680with no null elements to deal with. ACPICA BZ 819. 5681 5682Implemented a repair for the predefined _FDE and _GTM names. The expected 5683return value for both names is a Buffer of 5 DWORDs. This repair fixes 5684two 5685possible problems (both seen in the field), where a package of integers 5686is 5687returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 5688Kim. 5689 5690Implemented additional module-level code support. This change will 5691properly 5692execute module-level code that is not at the root of the namespace (under 5693a 5694Device object, etc.). Now executes the code within the current scope 5695instead 5696of the root. ACPICA BZ 762. Lin Ming. 5697 5698Fixed possible mutex acquisition errors when running _REG methods. Fixes 5699a 5700problem where mutex errors can occur when running a _REG method that is 5701in 5702the same scope as a method-defined operation region or an operation 5703region 5704under a module-level IF block. This type of code is rare, so the problem 5705has 5706not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 5707 5708Fixed a possible memory leak during module-level code execution. An 5709object 5710could be leaked for each block of executed module-level code if the 5711interpreter slack mode is enabled This change deletes any implicitly 5712returned 5713object from the module-level code block. Lin Ming. 5714 5715Removed messages for successful predefined repair(s). The repair 5716mechanism 5717was considered too wordy. Now, messages are only unconditionally emitted 5718if 5719the return object cannot be repaired. Existing messages for successful 5720repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 5721827. 5722 5723Example Code and Data Size: These are the sizes for the OS-independent 5724acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5725debug version of the code includes the debug output trace mechanism and 5726has a 5727much larger code and data size. 5728 5729 Previous Release: 5730 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 5731 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 5732 Current Release: 5733 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 5734 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 5735 57362) iASL Compiler/Disassembler and Tools: 5737 5738iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 5739files 5740were no longer automatically removed at the termination of the compile. 5741 5742acpiexec: Implemented the -f option to specify default region fill value. 5743This option specifies the value used to initialize buffers that simulate 5744operation regions. Default value is zero. Useful for debugging problems 5745that 5746depend on a specific initial value for a region or field. 5747 5748---------------------------------------- 574912 November 2009. Summary of changes for version 20091112: 5750 57511) ACPI CA Core Subsystem: 5752 5753Implemented a post-order callback to AcpiWalkNamespace. The existing 5754interface only has a pre-order callback. This change adds an additional 5755parameter for a post-order callback which will be more useful for bus 5756scans. 5757ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 5758 5759Modified the behavior of the operation region memory mapping cache for 5760SystemMemory. Ensure that the memory mappings created for operation 5761regions 5762do not cross 4K page boundaries. Crossing a page boundary while mapping 5763regions can cause kernel warnings on some hosts if the pages have 5764different 5765attributes. Such regions are probably BIOS bugs, and this is the 5766workaround. 5767Linux BZ 14445. Lin Ming. 5768 5769Implemented an automatic repair for predefined methods that must return 5770sorted lists. This change will repair (by sorting) packages returned by 5771_ALR, 5772_PSS, and _TSS. Drivers can now assume that the packages are correctly 5773sorted 5774and do not contain NULL package elements. Adds one new file, 5775namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 5776 5777Fixed a possible fault during predefined name validation if a return 5778Package 5779object contains NULL elements. Also adds a warning if a NULL element is 5780followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 5781may 5782include repair or removal of all such NULL elements where possible. 5783 5784Implemented additional module-level executable AML code support. This 5785change 5786will execute module-level code that is not at the root of the namespace 5787(under a Device object, etc.) at table load time. Module-level executable 5788AML 5789code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 5790 5791Implemented a new internal function to create Integer objects. This 5792function 5793simplifies miscellaneous object creation code. ACPICA BZ 823. 5794 5795Reduced the severity of predefined repair messages, Warning to Info. 5796Since 5797the object was successfully repaired, a warning is too severe. Reduced to 5798an 5799info message for now. These messages may eventually be changed to debug- 5800only. 5801ACPICA BZ 812. 5802 5803Example Code and Data Size: These are the sizes for the OS-independent 5804acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5805debug version of the code includes the debug output trace mechanism and 5806has a 5807much larger code and data size. 5808 5809 Previous Release: 5810 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 5811 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 5812 Current Release: 5813 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 5814 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 5815 58162) iASL Compiler/Disassembler and Tools: 5817 5818iASL: Implemented Switch() with While(1) so that Break works correctly. 5819This 5820change correctly implements the Switch operator with a surrounding 5821While(1) 5822so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 5823 5824iASL: Added a message if a package initializer list is shorter than 5825package 5826length. Adds a new remark for a Package() declaration if an initializer 5827list 5828exists, but is shorter than the declared length of the package. Although 5829technically legal, this is probably a coding error and it is seen in the 5830field. ACPICA BZ 815. Lin Ming, Bob Moore. 5831 5832iASL: Fixed a problem where the compiler could fault after the maximum 5833number 5834of errors was reached (200). 5835 5836acpixtract: Fixed a possible warning for pointer cast if the compiler 5837warning 5838level set very high. 5839 5840---------------------------------------- 584113 October 2009. Summary of changes for version 20091013: 5842 58431) ACPI CA Core Subsystem: 5844 5845Fixed a problem where an Operation Region _REG method could be executed 5846more 5847than once. If a custom address space handler is installed by the host 5848before 5849the "initialize operation regions" phase of the ACPICA initialization, 5850any 5851_REG methods for that address space could be executed twice. This change 5852fixes the problem. ACPICA BZ 427. Lin Ming. 5853 5854Fixed a possible memory leak for the Scope() ASL operator. When the exact 5855invocation of "Scope(\)" is executed (change scope to root), one internal 5856operand object was leaked. Lin Ming. 5857 5858Implemented a run-time repair for the _MAT predefined method. If the _MAT 5859return value is defined as a Field object in the AML, and the field 5860size is less than or equal to the default width of an integer (32 or 586164),_MAT 5862can incorrectly return an Integer instead of a Buffer. ACPICA now 5863automatically repairs this problem. ACPICA BZ 810. 5864 5865Implemented a run-time repair for the _BIF and _BIX predefined methods. 5866The 5867"OEM Information" field is often incorrectly returned as an Integer with 5868value zero if the field is not supported by the platform. This is due to 5869an 5870ambiguity in the ACPI specification. The field should always be a string. 5871ACPICA now automatically repairs this problem by returning a NULL string 5872within the returned Package. ACPICA BZ 807. 5873 5874Example Code and Data Size: These are the sizes for the OS-independent 5875acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5876debug version of the code includes the debug output trace mechanism and 5877has a 5878much larger code and data size. 5879 5880 Previous Release: 5881 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 5882 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 5883 Current Release: 5884 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 5885 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 5886 58872) iASL Compiler/Disassembler and Tools: 5888 5889Disassembler: Fixed a problem where references to external symbols that 5890contained one or more parent-prefixes (carats) were not handled 5891correctly, 5892possibly causing a fault. ACPICA BZ 806. Lin Ming. 5893 5894Disassembler: Restructured the code so that all functions that handle 5895external symbols are in a single module. One new file is added, 5896common/dmextern.c. 5897 5898AML Debugger: Added a max count argument for the Batch command (which 5899executes multiple predefined methods within the namespace.) 5900 5901iASL: Updated the compiler documentation (User Reference.) Available at 5902http://www.acpica.org/documentation/. ACPICA BZ 750. 5903 5904AcpiXtract: Updated for Lint and other formatting changes. Close all open 5905files. 5906 5907---------------------------------------- 590803 September 2009. Summary of changes for version 20090903: 5909 59101) ACPI CA Core Subsystem: 5911 5912For Windows Vista compatibility, added the automatic execution of an _INI 5913method located at the namespace root (\_INI). This method is executed at 5914table load time. This support is in addition to the automatic execution 5915of 5916\_SB._INI. Lin Ming. 5917 5918Fixed a possible memory leak in the interpreter for AML package objects 5919if 5920the package initializer list is longer than the defined size of the 5921package. 5922This apparently can only happen if the BIOS changes the package size on 5923the 5924fly (seen in a _PSS object), as ASL compilers do not allow this. The 5925interpreter will truncate the package to the defined size (and issue an 5926error 5927message), but previously could leave the extra objects undeleted if they 5928were 5929pre-created during the argument processing (such is the case if the 5930package 5931consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 5932 5933Fixed a problem seen when a Buffer or String is stored to itself via ASL. 5934This has been reported in the field. Previously, ACPICA would zero out 5935the 5936buffer/string. Now, the operation is treated as a noop. Provides Windows 5937compatibility. ACPICA BZ 803. Lin Ming. 5938 5939Removed an extraneous error message for ASL constructs of the form 5940Store(LocalX,LocalX) when LocalX is uninitialized. These curious 5941statements 5942are seen in many BIOSs and are once again treated as NOOPs and no error 5943is 5944emitted when they are encountered. ACPICA BZ 785. 5945 5946Fixed an extraneous warning message if a _DSM reserved method returns a 5947Package object. _DSM can return any type of object, so validation on the 5948return type cannot be performed. ACPICA BZ 802. 5949 5950Example Code and Data Size: These are the sizes for the OS-independent 5951acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5952debug version of the code includes the debug output trace mechanism and 5953has a 5954much larger code and data size. 5955 5956 Previous Release: 5957 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 5958 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 5959 Current Release: 5960 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 5961 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 5962 59632) iASL Compiler/Disassembler and Tools: 5964 5965iASL: Fixed a problem with the use of the Alias operator and Resource 5966Templates. The correct alias is now constructed and no error is emitted. 5967ACPICA BZ 738. 5968 5969iASL: Implemented the -I option to specify additional search directories 5970for 5971include files. Allows multiple additional search paths for include files. 5972Directories are searched in the order specified on the command line 5973(after 5974the local directory is searched.) ACPICA BZ 800. 5975 5976iASL: Fixed a problem where the full pathname for include files was not 5977emitted for warnings/errors. This caused the IDE support to not work 5978properly. ACPICA BZ 765. 5979 5980iASL: Implemented the -@ option to specify a Windows-style response file 5981containing additional command line options. ACPICA BZ 801. 5982 5983AcpiExec: Added support to load multiple AML files simultaneously (such 5984as 5985a 5986DSDT and multiple SSDTs). Also added support for wildcards within the AML 5987pathname. These features allow all machine tables to be easily loaded and 5988debugged together. ACPICA BZ 804. 5989 5990Disassembler: Added missing support for disassembly of HEST table Error 5991Bank 5992subtables. 5993 5994---------------------------------------- 599530 July 2009. Summary of changes for version 20090730: 5996 5997The ACPI 4.0 implementation for ACPICA is complete with this release. 5998 59991) ACPI CA Core Subsystem: 6000 6001ACPI 4.0: Added header file support for all new and changed ACPI tables. 6002Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 6003new 6004for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 6005BERT, 6006EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 6007There 6008have been some ACPI 4.0 changes to other existing tables. Split the large 6009actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 6010 6011ACPI 4.0: Implemented predefined name validation for all new names. There 6012are 601331 new names in ACPI 4.0. The predefined validation module was split into 6014two 6015files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 6016 6017Implemented support for so-called "module-level executable code". This is 6018executable AML code that exists outside of any control method and is 6019intended 6020to be executed at table load time. Although illegal since ACPI 2.0, this 6021type 6022of code still exists and is apparently still being created. Blocks of 6023this 6024code are now detected and executed as intended. Currently, the code 6025blocks 6026must exist under either an If, Else, or While construct; these are the 6027typical cases seen in the field. ACPICA BZ 762. Lin Ming. 6028 6029Implemented an automatic dynamic repair for predefined names that return 6030nested Package objects. This applies to predefined names that are defined 6031to 6032return a variable-length Package of sub-packages. If the number of sub- 6033packages is one, BIOS code is occasionally seen that creates a simple 6034single 6035package with no sub-packages. This code attempts to fix the problem by 6036wrapping a new package object around the existing package. These methods 6037can 6038be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 6039BZ 6040790. 6041 6042Fixed a regression introduced in 20090625 for the AcpiGetDevices 6043interface. 6044The _HID/_CID matching was broken and no longer matched IDs correctly. 6045ACPICA 6046BZ 793. 6047 6048Fixed a problem with AcpiReset where the reset would silently fail if the 6049register was one of the protected I/O ports. AcpiReset now bypasses the 6050port 6051validation mechanism. This may eventually be driven into the 6052AcpiRead/Write 6053interfaces. 6054 6055Fixed a regression related to the recent update of the AcpiRead/Write 6056interfaces. A sleep/suspend could fail if the optional PM2 Control 6057register 6058does not exist during an attempt to write the Bus Master Arbitration bit. 6059(However, some hosts already delete the code that writes this bit, and 6060the 6061code may in fact be obsolete at this date.) ACPICA BZ 799. 6062 6063Fixed a problem where AcpiTerminate could fault if inadvertently called 6064twice 6065in succession. ACPICA BZ 795. 6066 6067Example Code and Data Size: These are the sizes for the OS-independent 6068acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6069debug version of the code includes the debug output trace mechanism and 6070has a 6071much larger code and data size. 6072 6073 Previous Release: 6074 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 6075 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 6076 Current Release: 6077 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 6078 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 6079 60802) iASL Compiler/Disassembler and Tools: 6081 6082ACPI 4.0: Implemented disassembler support for all new ACPI tables and 6083changes to existing tables. ACPICA BZ 775. 6084 6085---------------------------------------- 608625 June 2009. Summary of changes for version 20090625: 6087 6088The ACPI 4.0 Specification was released on June 16 and is available at 6089www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 6090continue for the next few releases. 6091 60921) ACPI CA Core Subsystem: 6093 6094ACPI 4.0: Implemented interpreter support for the IPMI operation region 6095address space. Includes support for bi-directional data buffers and an 6096IPMI 6097address space handler (to be installed by an IPMI device driver.) ACPICA 6098BZ 6099773. Lin Ming. 6100 6101ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 6102Includes 6103support in both the header files and the disassembler. 6104 6105Completed a major update for the AcpiGetObjectInfo external interface. 6106Changes include: 6107 - Support for variable, unlimited length HID, UID, and CID strings. 6108 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 6109etc.) 6110 - Call the _SxW power methods on behalf of a device object. 6111 - Determine if a device is a PCI root bridge. 6112 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 6113These changes will require an update to all callers of this interface. 6114See 6115the updated ACPICA Programmer Reference for details. One new source file 6116has 6117been added - utilities/utids.c. ACPICA BZ 368, 780. 6118 6119Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 6120transfers. The Value parameter has been extended from 32 bits to 64 bits 6121in 6122order to support new ACPI 4.0 tables. These changes will require an 6123update 6124to 6125all callers of these interfaces. See the ACPICA Programmer Reference for 6126details. ACPICA BZ 768. 6127 6128Fixed several problems with AcpiAttachData. The handler was not invoked 6129when 6130the host node was deleted. The data sub-object was not automatically 6131deleted 6132when the host node was deleted. The interface to the handler had an 6133unused 6134parameter, this was removed. ACPICA BZ 778. 6135 6136Enhanced the function that dumps ACPI table headers. All non-printable 6137characters in the string fields are now replaced with '?' (Signature, 6138OemId, 6139OemTableId, and CompilerId.) ACPI tables with non-printable characters in 6140these fields are occasionally seen in the field. ACPICA BZ 788. 6141 6142Fixed a problem with predefined method repair code where the code that 6143attempts to repair/convert an object of incorrect type is only executed 6144on 6145the first time the predefined method is called. The mechanism that 6146disables 6147warnings on subsequent calls was interfering with the repair mechanism. 6148ACPICA BZ 781. 6149 6150Fixed a possible memory leak in the predefined validation/repair code 6151when 6152a 6153buffer is automatically converted to an expected string object. 6154 6155Removed obsolete 16-bit files from the distribution and from the current 6156git 6157tree head. ACPICA BZ 776. 6158 6159Example Code and Data Size: These are the sizes for the OS-independent 6160acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6161debug version of the code includes the debug output trace mechanism and 6162has a 6163much larger code and data size. 6164 6165 Previous Release: 6166 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6167 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6168 Current Release: 6169 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 6170 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 6171 61722) iASL Compiler/Disassembler and Tools: 6173 6174ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 6175operation region keyword. ACPICA BZ 771, 772. Lin Ming. 6176 6177ACPI 4.0: iASL - implemented compile-time validation support for all new 6178predefined names and control methods (31 total). ACPICA BZ 769. 6179 6180---------------------------------------- 618121 May 2009. Summary of changes for version 20090521: 6182 61831) ACPI CA Core Subsystem: 6184 6185Disabled the preservation of the SCI enable bit in the PM1 control 6186register. 6187The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 6188to 6189be 6190a "preserved" bit - "OSPM always preserves this bit position", section 61914.7.3.2.1. However, some machines fail if this bit is in fact preserved 6192because the bit needs to be explicitly set by the OS as a workaround. No 6193machines fail if the bit is not preserved. Therefore, ACPICA no longer 6194attempts to preserve this bit. 6195 6196Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 6197incorrectly formed _PRT package could cause a fault. Added validation to 6198ensure that each package element is actually a sub-package. 6199 6200Implemented a new interface to install or override a single control 6201method, 6202AcpiInstallMethod. This interface is useful when debugging in order to 6203repair 6204an existing method or to install a missing method without having to 6205override 6206the entire ACPI table. See the ACPICA Programmer Reference for use and 6207examples. Lin Ming, Bob Moore. 6208 6209Fixed several reference count issues with the DdbHandle object that is 6210created from a Load or LoadTable operator. Prevent premature deletion of 6211the 6212object. Also, mark the object as invalid once the table has been 6213unloaded. 6214This is needed because the handle itself may not be deleted after the 6215table 6216unload, depending on whether it has been stored in a named object by the 6217caller. Lin Ming. 6218 6219Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 6220mutexes of the same sync level are acquired but then not released in 6221strict 6222opposite order, the internally maintained Current Sync Level becomes 6223confused 6224and can cause subsequent execution errors. ACPICA BZ 471. 6225 6226Changed the allowable release order for ASL mutex objects. The ACPI 4.0 6227specification has been changed to make the SyncLevel for mutex objects 6228more 6229useful. When releasing a mutex, the SyncLevel of the mutex must now be 6230the 6231same as the current sync level. This makes more sense than the previous 6232rule 6233(SyncLevel less than or equal). This change updates the code to match the 6234specification. 6235 6236Fixed a problem with the local version of the AcpiOsPurgeCache function. 6237The 6238(local) cache must be locked during all cache object deletions. Andrew 6239Baumann. 6240 6241Updated the Load operator to use operation region interfaces. This 6242replaces 6243direct memory mapping with region access calls. Now, all region accesses 6244go 6245through the installed region handler as they should. 6246 6247Simplified and optimized the NsGetNextNode function. Reduced parameter 6248count 6249and reduced code for this frequently used function. 6250 6251Example Code and Data Size: These are the sizes for the OS-independent 6252acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6253debug version of the code includes the debug output trace mechanism and 6254has a 6255much larger code and data size. 6256 6257 Previous Release: 6258 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6259 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6260 Current Release: 6261 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 6262 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 6263 62642) iASL Compiler/Disassembler and Tools: 6265 6266Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 6267problems 6268with sub-table disassembly and handling invalid sub-tables. Attempt 6269recovery 6270after an invalid sub-table ID. 6271 6272---------------------------------------- 627322 April 2009. Summary of changes for version 20090422: 6274 62751) ACPI CA Core Subsystem: 6276 6277Fixed a compatibility issue with the recently released I/O port 6278protection 6279mechanism. For windows compatibility, 1) On a port protection violation, 6280simply ignore the request and do not return an exception (allow the 6281control 6282method to continue execution.) 2) If only part of the request overlaps a 6283protected port, read/write the individual ports that are not protected. 6284Linux 6285BZ 13036. Lin Ming 6286 6287Enhanced the execution of the ASL/AML BreakPoint operator so that it 6288actually 6289breaks into the AML debugger if the debugger is present. This matches the 6290ACPI-defined behavior. 6291 6292Fixed several possible warnings related to the use of the configurable 6293ACPI_THREAD_ID. This type can now be configured as either an integer or a 6294pointer with no warnings. Also fixes several warnings in printf-like 6295statements for the 64-bit build when the type is configured as a pointer. 6296ACPICA BZ 766, 767. 6297 6298Fixed a number of possible warnings when compiling with gcc 4+ (depending 6299on 6300warning options.) Examples include printf formats, aliasing, unused 6301globals, 6302missing prototypes, missing switch default statements, use of non-ANSI 6303library functions, use of non-ANSI constructs. See generate/unix/Makefile 6304for 6305a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 6306 6307Example Code and Data Size: These are the sizes for the OS-independent 6308acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6309debug version of the code includes the debug output trace mechanism and 6310has a 6311much larger code and data size. 6312 6313 Previous Release: 6314 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6315 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6316 Current Release: 6317 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 6318 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 6319 63202) iASL Compiler/Disassembler and Tools: 6321 6322iASL: Fixed a generation warning from Bison 2.3 and fixed several 6323warnings 6324on 6325the 64-bit build. 6326 6327iASL: Fixed a problem where the Unix/Linux versions of the compiler could 6328not 6329correctly digest Windows/DOS formatted files (with CR/LF). 6330 6331iASL: Added a new option for "quiet mode" (-va) that produces only the 6332compilation summary, not individual errors and warnings. Useful for large 6333batch compilations. 6334 6335AcpiExec: Implemented a new option (-z) to enable a forced 6336semaphore/mutex 6337timeout that can be used to detect hang conditions during execution of 6338AML 6339code (includes both internal semaphores and AML-defined mutexes and 6340events.) 6341 6342Added new makefiles for the generation of acpica in a generic unix-like 6343environment. These makefiles are intended to generate the acpica tools 6344and 6345utilities from the original acpica git source tree structure. 6346 6347Test Suites: Updated and cleaned up the documentation files. Updated the 6348copyrights to 2009, affecting all source files. Use the new version of 6349iASL 6350with quiet mode. Increased the number of available semaphores in the 6351Windows 6352OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 6353added 6354an alternate implementation of the semaphore timeout to allow aslts to 6355execute fully on Cygwin. 6356 6357---------------------------------------- 635820 March 2009. Summary of changes for version 20090320: 6359 63601) ACPI CA Core Subsystem: 6361 6362Fixed a possible race condition between AcpiWalkNamespace and dynamic 6363table 6364unloads. Added a reader/writer locking mechanism to allow multiple 6365concurrent 6366namespace walks (readers), but block a dynamic table unload until it can 6367gain 6368exclusive write access to the namespace. This fixes a problem where a 6369table 6370unload could (possibly catastrophically) delete the portion of the 6371namespace 6372that is currently being examined by a walk. Adds a new file, utlock.c, 6373that 6374implements the reader/writer lock mechanism. ACPICA BZ 749. 6375 6376Fixed a regression introduced in version 20090220 where a change to the 6377FADT 6378handling could cause the ACPICA subsystem to access non-existent I/O 6379ports. 6380 6381Modified the handling of FADT register and table (FACS/DSDT) addresses. 6382The 6383FADT can contain both 32-bit and 64-bit versions of these addresses. 6384Previously, the 64-bit versions were favored, meaning that if both 32 and 638564 6386versions were valid, but not equal, the 64-bit version was used. This was 6387found to cause some machines to fail. Now, in this case, the 32-bit 6388version 6389is used instead. This now matches the Windows behavior. 6390 6391Implemented a new mechanism to protect certain I/O ports. Provides 6392Microsoft 6393compatibility and protects the standard PC I/O ports from access via AML 6394code. Adds a new file, hwvalid.c 6395 6396Fixed a possible extraneous warning message from the FADT support. The 6397message warns of a 32/64 length mismatch between the legacy and GAS 6398definitions for a register. 6399 6400Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 6401is 6402made obsolete by the port protection mechanism above. It was previously 6403used 6404to validate the entire address range of an operation region, which could 6405be 6406incorrect if the range included illegal ports, but fields within the 6407operation region did not actually access those ports. Validation is now 6408performed on a per-field basis instead of the entire region. 6409 6410Modified the handling of the PM1 Status Register ignored bit (bit 11.) 6411Ignored bits must be "preserved" according to the ACPI spec. Usually, 6412this 6413means a read/modify/write when writing to the register. However, for 6414status 6415registers, writing a one means clear the event. Writing a zero means 6416preserve 6417the event (do not clear.) This behavior is clarified in the ACPI 4.0 6418spec, 6419and the ACPICA code now simply always writes a zero to the ignored bit. 6420 6421Modified the handling of ignored bits for the PM1 A/B Control Registers. 6422As 6423per the ACPI specification, for the control registers, preserve 6424(read/modify/write) all bits that are defined as either reserved or 6425ignored. 6426 6427Updated the handling of write-only bits in the PM1 A/B Control Registers. 6428When reading the register, zero the write-only bits as per the ACPI spec. 6429ACPICA BZ 443. Lin Ming. 6430 6431Removed "Linux" from the list of supported _OSI strings. Linux no longer 6432wants to reply true to this request. The Windows strings are the only 6433paths 6434through the AML that are tested and known to work properly. 6435 6436 Previous Release: 6437 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6438 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6439 Current Release: 6440 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 6441 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 6442 64432) iASL Compiler/Disassembler and Tools: 6444 6445Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 6446and 6447aetables.c 6448 6449---------------------------------------- 645020 February 2009. Summary of changes for version 20090220: 6451 64521) ACPI CA Core Subsystem: 6453 6454Optimized the ACPI register locking. Removed locking for reads from the 6455ACPI 6456bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 6457is 6458not required when reading the single-bit registers. The 6459AcpiGetRegisterUnlocked function is no longer needed and has been 6460removed. 6461This will improve performance for reads on these registers. ACPICA BZ 6462760. 6463 6464Fixed the parameter validation for AcpiRead/Write. Now return 6465AE_BAD_PARAMETER if the input register pointer is null, and 6466AE_BAD_ADDRESS 6467if 6468the register has an address of zero. Previously, these cases simply 6469returned 6470AE_OK. For optional registers such as PM1B status/enable/control, the 6471caller 6472should check for a valid register address before calling. ACPICA BZ 748. 6473 6474Renamed the external ACPI bit register access functions. Renamed 6475AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 6476functions. The new names are AcpiReadBitRegister and 6477AcpiWriteBitRegister. 6478Also, restructured the code for these functions by simplifying the code 6479path 6480and condensing duplicate code to reduce code size. 6481 6482Added new functions to transparently handle the possibly split PM1 A/B 6483registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 6484functions 6485now handle the split registers for PM1 Status, Enable, and Control. 6486ACPICA 6487BZ 6488746. 6489 6490Added a function to handle the PM1 control registers, 6491AcpiHwWritePm1Control. 6492This function writes both of the PM1 control registers (A/B). These 6493registers 6494are different than the PM1 A/B status and enable registers in that 6495different 6496values can be written to the A/B registers. Most notably, the SLP_TYP 6497bits 6498can be different, as per the values returned from the _Sx predefined 6499methods. 6500 6501Removed an extra register write within AcpiHwClearAcpiStatus. This 6502function 6503was writing an optional PM1B status register twice. The existing call to 6504the 6505low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 6506A/B 6507register. ACPICA BZ 751. 6508 6509Split out the PM1 Status registers from the FADT. Added new globals for 6510these 6511registers (A/B), similar to the way the PM1 Enable registers are handled. 6512Instead of overloading the FADT Event Register blocks. This makes the 6513code 6514clearer and less prone to error. 6515 6516Fixed the warning message for when the platform contains too many ACPI 6517tables 6518for the default size of the global root table data structure. The 6519calculation 6520for the truncation value was incorrect. 6521 6522Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 6523obsolete macro, since it is now a simple reference to ->common.type. 6524There 6525were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 6526 6527Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 6528TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 6529simply SLEEP_TYPE. ACPICA BZ 754. 6530 6531Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 6532function is only needed on 64-bit host operating systems and is thus not 6533included for 32-bit hosts. 6534 6535Debug output: print the input and result for invocations of the _OSI 6536reserved 6537control method via the ACPI_LV_INFO debug level. Also, reduced some of 6538the 6539verbosity of this debug level. Len Brown. 6540 6541Example Code and Data Size: These are the sizes for the OS-independent 6542acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6543debug version of the code includes the debug output trace mechanism and 6544has a 6545much larger code and data size. 6546 6547 Previous Release: 6548 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6549 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6550 Current Release: 6551 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 6552 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 6553 65542) iASL Compiler/Disassembler and Tools: 6555 6556Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 6557various legal performance profiles. 6558 6559---------------------------------------- 656023 January 2009. Summary of changes for version 20090123: 6561 65621) ACPI CA Core Subsystem: 6563 6564Added the 2009 copyright to all module headers and signons. This affects 6565virtually every file in the ACPICA core subsystem, the iASL compiler, and 6566the tools/utilities. 6567 6568Implemented a change to allow the host to override any ACPI table, 6569including 6570dynamically loaded tables. Previously, only the DSDT could be replaced by 6571the 6572host. With this change, the AcpiOsTableOverride interface is called for 6573each 6574table found in the RSDT/XSDT during ACPICA initialization, and also 6575whenever 6576a table is dynamically loaded via the AML Load operator. 6577 6578Updated FADT flag definitions, especially the Boot Architecture flags. 6579 6580Debugger: For the Find command, automatically pad the input ACPI name 6581with 6582underscores if the name is shorter than 4 characters. This enables a 6583match 6584with the actual namespace entry which is itself padded with underscores. 6585 6586Example Code and Data Size: These are the sizes for the OS-independent 6587acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6588debug version of the code includes the debug output trace mechanism and 6589has a 6590much larger code and data size. 6591 6592 Previous Release: 6593 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6594 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6595 Current Release: 6596 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 6597 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 6598 65992) iASL Compiler/Disassembler and Tools: 6600 6601Fix build error under Bison-2.4. 6602 6603Dissasembler: Enhanced FADT support. Added decoding of the Boot 6604Architecture 6605flags. Now decode all flags, regardless of the FADT version. Flag output 6606includes the FADT version which first defined each flag. 6607 6608The iASL -g option now dumps the RSDT to a file (in addition to the FADT 6609and 6610DSDT). Windows only. 6611 6612---------------------------------------- 661304 December 2008. Summary of changes for version 20081204: 6614 66151) ACPI CA Core Subsystem: 6616 6617The ACPICA Programmer Reference has been completely updated and revamped 6618for 6619this release. This includes updates to the external interfaces, OSL 6620interfaces, the overview sections, and the debugger reference. 6621 6622Several new ACPICA interfaces have been implemented and documented in the 6623programmer reference: 6624AcpiReset - Writes the reset value to the FADT-defined reset register. 6625AcpiDisableAllGpes - Disable all available GPEs. 6626AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 6627AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 6628AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 6629AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 6630AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 6631 6632Most of the public ACPI hardware-related interfaces have been moved to a 6633new 6634file, components/hardware/hwxface.c 6635 6636Enhanced the FADT parsing and low-level ACPI register access: The ACPI 6637register lengths within the FADT are now used, and the low level ACPI 6638register access no longer hardcodes the ACPI register lengths. Given that 6639there may be some risk in actually trusting the FADT register lengths, a 6640run- 6641time option was added to fall back to the default hardcoded lengths if 6642the 6643FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 6644option is set to true for now, and a warning is issued if a suspicious 6645FADT 6646register length is overridden with the default value. 6647 6648Fixed a reference count issue in NsRepairObject. This problem was 6649introduced 6650in version 20081031 as part of a fix to repair Buffer objects within 6651Packages. Lin Ming. 6652 6653Added semaphore support to the Linux/Unix application OS-services layer 6654(OSL). ACPICA BZ 448. Lin Ming. 6655 6656Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 6657will 6658be implemented in the OSL, or will binary semaphores be used instead. 6659 6660Example Code and Data Size: These are the sizes for the OS-independent 6661acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6662debug version of the code includes the debug output trace mechanism and 6663has a 6664much larger code and data size. 6665 6666 Previous Release: 6667 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6668 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6669 Current Release: 6670 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 6671 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 6672 66732) iASL Compiler/Disassembler and Tools: 6674 6675iASL: Completed the '-e' option to include additional ACPI tables in 6676order 6677to 6678aid with disassembly and External statement generation. ACPICA BZ 742. 6679Lin 6680Ming. 6681 6682iASL: Removed the "named object in while loop" error. The compiler cannot 6683determine how many times a loop will execute. ACPICA BZ 730. 6684 6685Disassembler: Implemented support for FADT revision 2 (MS extension). 6686ACPICA 6687BZ 743. 6688 6689Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 6690MCFG). 6691 6692---------------------------------------- 669331 October 2008. Summary of changes for version 20081031: 6694 66951) ACPI CA Core Subsystem: 6696 6697Restructured the ACPICA header files into public/private. acpi.h now 6698includes 6699only the "public" acpica headers. All other acpica headers are "private" 6700and 6701should not be included by acpica users. One new file, accommon.h is used 6702to 6703include the commonly used private headers for acpica code generation. 6704Future 6705plans include moving all private headers to a new subdirectory. 6706 6707Implemented an automatic Buffer->String return value conversion for 6708predefined ACPI methods. For these methods (such as _BIF), added 6709automatic 6710conversion for return objects that are required to be a String, but a 6711Buffer 6712was found instead. This can happen when reading string battery data from 6713an 6714operation region, because it used to be difficult to convert the data 6715from 6716buffer to string from within the ASL. Ensures that the host OS is 6717provided 6718with a valid null-terminated string. Linux BZ 11822. 6719 6720Updated the FACS waking vector interfaces. Split 6721AcpiSetFirmwareWakingVector 6722into two: one for the 32-bit vector, another for the 64-bit vector. This 6723is 6724required because the host OS must setup the wake much differently for 6725each 6726vector (real vs. protected mode, etc.) and the interface itself should 6727not 6728be 6729deciding which vector to use. Also, eliminated the 6730GetFirmwareWakingVector 6731interface, as it served no purpose (only the firmware reads the vector, 6732OS 6733only writes the vector.) ACPICA BZ 731. 6734 6735Implemented a mechanism to escape infinite AML While() loops. Added a 6736loop 6737counter to force exit from AML While loops if the count becomes too 6738large. 6739This can occur in poorly written AML when the hardware does not respond 6740within a while loop and the loop does not implement a timeout. The 6741maximum 6742loop count is configurable. A new exception code is returned when a loop 6743is 6744broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 6745 6746Optimized the execution of AML While loops. Previously, a control state 6747object was allocated and freed for each execution of the loop. The 6748optimization is to simply reuse the control state for each iteration. 6749This 6750speeds up the raw loop execution time by about 5%. 6751 6752Enhanced the implicit return mechanism. For Windows compatibility, return 6753an 6754implicit integer of value zero for methods that contain no executable 6755code. 6756Such methods are seen in the field as stubs (presumably), and can cause 6757drivers to fail if they expect a return value. Lin Ming. 6758 6759Allow multiple backslashes as root prefixes in namepaths. In a fully 6760qualified namepath, allow multiple backslash prefixes. This can happen 6761(and 6762is seen in the field) because of the use of a double-backslash in strings 6763(since backslash is the escape character) causing confusion. ACPICA BZ 6764739 6765Lin Ming. 6766 6767Emit a warning if two different FACS or DSDT tables are discovered in the 6768FADT. Checks if there are two valid but different addresses for the FACS 6769and 6770DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 6771 6772Consolidated the method argument count validation code. Merged the code 6773that 6774validates control method argument counts into the predefined validation 6775module. Eliminates possible multiple warnings for incorrect argument 6776counts. 6777 6778Implemented ACPICA example code. Includes code for ACPICA initialization, 6779handler installation, and calling a control method. Available at 6780source/tools/examples. 6781 6782Added a global pointer for FACS table to simplify internal FACS access. 6783Use 6784the global pointer instead of using AcpiGetTableByIndex for each FACS 6785access. 6786This simplifies the code for the Global Lock and the Firmware Waking 6787Vector(s). 6788 6789Example Code and Data Size: These are the sizes for the OS-independent 6790acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6791debug version of the code includes the debug output trace mechanism and 6792has a 6793much larger code and data size. 6794 6795 Previous Release: 6796 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 6797 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 6798 Current Release: 6799 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 6800 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 6801 68022) iASL Compiler/Disassembler and Tools: 6803 6804iASL: Improved disassembly of external method calls. Added the -e option 6805to 6806allow the inclusion of additional ACPI tables to help with the 6807disassembly 6808of 6809method invocations and the generation of external declarations during the 6810disassembly. Certain external method invocations cannot be disassembled 6811properly without the actual declaration of the method. Use the -e option 6812to 6813include the table where the external method(s) are actually declared. 6814Most 6815useful for disassembling SSDTs that make method calls back to the master 6816DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 6817-d 6818-e dsdt.aml ssdt1.aml 6819 6820iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 6821problem where the use of an alias within a namepath would result in a not 6822found error or cause the compiler to fault. Also now allows forward 6823references from the Alias operator itself. ACPICA BZ 738. 6824 6825---------------------------------------- 682626 September 2008. Summary of changes for version 20080926: 6827 68281) ACPI CA Core Subsystem: 6829 6830Designed and implemented a mechanism to validate predefined ACPI methods 6831and 6832objects. This code validates the predefined ACPI objects (objects whose 6833names 6834start with underscore) that appear in the namespace, at the time they are 6835evaluated. The argument count and the type of the returned object are 6836validated against the ACPI specification. The purpose of this validation 6837is 6838to detect problems with the BIOS-implemented predefined ACPI objects 6839before 6840the results are returned to the ACPI-related drivers. Future enhancements 6841may 6842include actual repair of incorrect return objects where possible. Two new 6843files are nspredef.c and acpredef.h. 6844 6845Fixed a fault in the AML parser if a memory allocation fails during the 6846Op 6847completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 6848 6849Fixed an issue with implicit return compatibility. This change improves 6850the 6851implicit return mechanism to be more compatible with the MS interpreter. 6852Lin 6853Ming, ACPICA BZ 349. 6854 6855Implemented support for zero-length buffer-to-string conversions. Allow 6856zero 6857length strings during interpreter buffer-to-string conversions. For 6858example, 6859during the ToDecimalString and ToHexString operators, as well as implicit 6860conversions. Fiodor Suietov, ACPICA BZ 585. 6861 6862Fixed two possible memory leaks in the error exit paths of 6863AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 6864are 6865similar in that they use a stack of state objects in order to eliminate 6866recursion. The stack must be fully unwound and deallocated if an error 6867occurs. Lin Ming. ACPICA BZ 383. 6868 6869Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 6870global 6871ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 6872Moore ACPICA BZ 442. 6873 6874Removed the obsolete version number in module headers. Removed the 6875"$Revision" number that appeared in each module header. This version 6876number 6877was useful under SourceSafe and CVS, but has no meaning under git. It is 6878not 6879only incorrect, it could also be misleading. 6880 6881Example Code and Data Size: These are the sizes for the OS-independent 6882acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6883debug version of the code includes the debug output trace mechanism and 6884has a 6885much larger code and data size. 6886 6887 Previous Release: 6888 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6889 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 6890 Current Release: 6891 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 6892 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 6893 6894---------------------------------------- 689529 August 2008. Summary of changes for version 20080829: 6896 68971) ACPI CA Core Subsystem: 6898 6899Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 6900Reference. Changes include the elimination of cheating on the Object 6901field 6902for the DdbHandle subtype, addition of a reference class field to 6903differentiate the various reference types (instead of an AML opcode), and 6904the 6905cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 6906 6907Reduce an error to a warning for an incorrect method argument count. 6908Previously aborted with an error if too few arguments were passed to a 6909control method via the external ACPICA interface. Now issue a warning 6910instead 6911and continue. Handles the case where the method inadvertently declares 6912too 6913many arguments, but does not actually use the extra ones. Applies mainly 6914to 6915the predefined methods. Lin Ming. Linux BZ 11032. 6916 6917Disallow the evaluation of named object types with no intrinsic value. 6918Return 6919AE_TYPE for objects that have no value and therefore evaluation is 6920undefined: 6921Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 6922of 6923these types were allowed, but an exception would be generated at some 6924point 6925during the evaluation. Now, the error is generated up front. 6926 6927Fixed a possible memory leak in the AcpiNsGetExternalPathname function 6928(nsnames.c). Fixes a leak in the error exit path. 6929 6930Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 6931debug 6932levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 6933ACPI_EXCEPTION 6934interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 6935ACPI_LV_EVENTS. 6936 6937Removed obsolete and/or unused exception codes from the acexcep.h header. 6938There is the possibility that certain device drivers may be affected if 6939they 6940use any of these exceptions. 6941 6942The ACPICA documentation has been added to the public git source tree, 6943under 6944acpica/documents. Included are the ACPICA programmer reference, the iASL 6945compiler reference, and the changes.txt release logfile. 6946 6947Example Code and Data Size: These are the sizes for the OS-independent 6948acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6949debug version of the code includes the debug output trace mechanism and 6950has a 6951much larger code and data size. 6952 6953 Previous Release: 6954 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6955 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 6956 Current Release: 6957 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 6958 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 6959 69602) iASL Compiler/Disassembler and Tools: 6961 6962Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 6963defines _SCP with 3 arguments. Previous versions defined it with only 1 6964argument. iASL now allows both definitions. 6965 6966iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 6967zero- 6968length subtables when disassembling ACPI tables. Also fixed a couple of 6969errors where a full 16-bit table type field was not extracted from the 6970input 6971properly. 6972 6973acpisrc: Improve comment counting mechanism for generating source code 6974statistics. Count first and last lines of multi-line comments as 6975whitespace, 6976not comment lines. Handle Linux legal header in addition to standard 6977acpica 6978header. 6979 6980---------------------------------------- 6981 698229 July 2008. Summary of changes for version 20080729: 6983 69841) ACPI CA Core Subsystem: 6985 6986Fix a possible deadlock in the GPE dispatch. Remove call to 6987AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 6988attempt 6989to acquire the GPE lock but can deadlock since the GPE lock is already 6990held 6991at dispatch time. This code was introduced in version 20060831 as a 6992response 6993to Linux BZ 6881 and has since been removed from Linux. 6994 6995Add a function to dereference returned reference objects. Examines the 6996return 6997object from a call to AcpiEvaluateObject. Any Index or RefOf references 6998are 6999automatically dereferenced in an attempt to return something useful 7000(these 7001reference types cannot be converted into an external ACPI_OBJECT.) 7002Provides 7003MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 7004 7005x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 7006subtables for the MADT and one new subtable for the SRAT. Includes 7007disassembler and AcpiSrc support. Data from the Intel 64 Architecture 7008x2APIC 7009Specification, June 2008. 7010 7011Additional error checking for pathname utilities. Add error check after 7012all 7013calls to AcpiNsGetPathnameLength. Add status return from 7014AcpiNsBuildExternalPath and check after all calls. Add parameter 7015validation 7016to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 7017 7018Return status from the global init function AcpiUtGlobalInitialize. This 7019is 7020used by both the kernel subsystem and the utilities such as iASL 7021compiler. 7022The function could possibly fail when the caches are initialized. Yang 7023Yi. 7024 7025Add a function to decode reference object types to strings. Created for 7026improved error messages. 7027 7028Improve object conversion error messages. Better error messages during 7029object 7030conversion from internal to the external ACPI_OBJECT. Used for external 7031calls 7032to AcpiEvaluateObject. 7033 7034Example Code and Data Size: These are the sizes for the OS-independent 7035acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7036debug version of the code includes the debug output trace mechanism and 7037has a 7038much larger code and data size. 7039 7040 Previous Release: 7041 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 7042 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 7043 Current Release: 7044 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 7045 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 7046 70472) iASL Compiler/Disassembler and Tools: 7048 7049Debugger: fix a possible hang when evaluating non-methods. Fixes a 7050problem 7051introduced in version 20080701. If the object being evaluated (via 7052execute 7053command) is not a method, the debugger can hang while trying to obtain 7054non- 7055existent parameters. 7056 7057iASL: relax error for using reserved "_T_x" identifiers. These names can 7058appear in a disassembled ASL file if they were emitted by the original 7059compiler. Instead of issuing an error or warning and forcing the user to 7060manually change these names, issue a remark instead. 7061 7062iASL: error if named object created in while loop. Emit an error if any 7063named 7064object is created within a While loop. If allowed, this code will 7065generate 7066a 7067run-time error on the second iteration of the loop when an attempt is 7068made 7069to 7070create the same named object twice. ACPICA bugzilla 730. 7071 7072iASL: Support absolute pathnames for include files. Add support for 7073absolute 7074pathnames within the Include operator. previously, only relative 7075pathnames 7076were supported. 7077 7078iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 7079Descriptor. 7080The ACPI spec requires one interrupt minimum. BZ 423 7081 7082iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 7083Handles the case for the Interrupt Resource Descriptor where 7084the ResourceSource argument is omitted but ResourceSourceIndex 7085is present. Now leave room for the Index. BZ 426 7086 7087iASL: Prevent error message if CondRefOf target does not exist. Fixes 7088cases 7089where an error message is emitted if the target does not exist. BZ 516 7090 7091iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 7092(get ACPI tables on Windows). This was apparently broken in version 709320070919. 7094 7095AcpiXtract: Handle EOF while extracting data. Correctly handle the case 7096where 7097the EOF happens immediately after the last table in the input file. Print 7098completion message. Previously, no message was displayed in this case. 7099 7100---------------------------------------- 710101 July 2008. Summary of changes for version 20080701: 7102 71030) Git source tree / acpica.org 7104 7105Fixed a problem where a git-clone from http would not transfer the entire 7106source tree. 7107 71081) ACPI CA Core Subsystem: 7109 7110Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 7111enable bit. Now performs a read-change-write of the enable register 7112instead 7113of simply writing out the cached enable mask. This will prevent 7114inadvertent 7115enabling of GPEs if a rogue GPE is received during initialization (before 7116GPE 7117handlers are installed.) 7118 7119Implemented a copy for dynamically loaded tables. Previously, dynamically 7120loaded tables were simply mapped - but on some machines this memory is 7121corrupted after suspend. Now copy the table to a local buffer. For the 7122OpRegion case, added checksum verify. Use the table length from the table 7123header, not the region length. For the Buffer case, use the table length 7124also. Dennis Noordsij, Bob Moore. BZ 10734 7125 7126Fixed a problem where the same ACPI table could not be dynamically loaded 7127and 7128unloaded more than once. Without this change, a table cannot be loaded 7129again 7130once it has been loaded/unloaded one time. The current mechanism does not 7131unregister a table upon an unload. During a load, if the same table is 7132found, 7133this no longer returns an exception. BZ 722 7134 7135Fixed a problem where the wrong descriptor length was calculated for the 7136EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 7137EndTag 7138are calculated as 12 bytes long, but the actual length in the internal 7139descriptor is 16 because of the round-up to 8 on the 64-bit build. 7140Reported 7141by Linn Crosetto. BZ 728 7142 7143Fixed a possible memory leak in the Unload operator. The DdbHandle 7144returned 7145by Load() did not have its reference count decremented during unload, 7146leading 7147to a memory leak. Lin Ming. BZ 727 7148 7149Fixed a possible memory leak when deleting thermal/processor objects. Any 7150associated notify handlers (and objects) were not being deleted. Fiodor 7151Suietov. BZ 506 7152 7153Fixed the ordering of the ASCII names in the global mutex table to match 7154the 7155actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 7156only. 7157Vegard Nossum. BZ 726 7158 7159Enhanced the AcpiGetObjectInfo interface to return the number of required 7160arguments if the object is a control method. Added this call to the 7161debugger 7162so the proper number of default arguments are passed to a method. This 7163prevents a warning when executing methods from AcpiExec. 7164 7165Added a check for an invalid handle in AcpiGetObjectInfo. Return 7166AE_BAD_PARAMETER if input handle is invalid. BZ 474 7167 7168Fixed an extraneous warning from exconfig.c on the 64-bit build. 7169 7170Example Code and Data Size: These are the sizes for the OS-independent 7171acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7172debug version of the code includes the debug output trace mechanism and 7173has a 7174much larger code and data size. 7175 7176 Previous Release: 7177 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7178 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7179 Current Release: 7180 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 7181 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 7182 71832) iASL Compiler/Disassembler and Tools: 7184 7185iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 7186resource descriptor names. 7187 7188iASL: Detect invalid ASCII characters in input (windows version). Removed 7189the 7190"-CF" flag from the flex compile, enables correct detection of non-ASCII 7191characters in the input. BZ 441 7192 7193iASL: Eliminate warning when result of LoadTable is not used. Eliminate 7194the 7195"result of operation not used" warning when the DDB handle returned from 7196LoadTable is not used. The warning is not needed. BZ 590 7197 7198AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 7199method 7200to 7201pass address of table to the AML. Added option to disable OpRegion 7202simulation 7203to allow creation of an OpRegion with a real address that was passed to 7204_CFG. 7205All of this allows testing of the Load and Unload operators from 7206AcpiExec. 7207 7208Debugger: update tables command for unloaded tables. Handle unloaded 7209tables 7210and use the standard table header output routine. 7211 7212---------------------------------------- 721309 June 2008. Summary of changes for version 20080609: 7214 72151) ACPI CA Core Subsystem: 7216 7217Implemented a workaround for reversed _PRT entries. A significant number 7218of 7219BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 7220change dynamically detects and repairs this problem. Provides 7221compatibility 7222with MS ACPI. BZ 6859 7223 7224Simplified the internal ACPI hardware interfaces to eliminate the locking 7225flag parameter from Register Read/Write. Added a new external interface, 7226AcpiGetRegisterUnlocked. 7227 7228Fixed a problem where the invocation of a GPE control method could hang. 7229This 7230was a regression introduced in 20080514. The new method argument count 7231validation mechanism can enter an infinite loop when a GPE method is 7232dispatched. Problem fixed by removing the obsolete code that passed GPE 7233block 7234information to the notify handler via the control method parameter 7235pointer. 7236 7237Fixed a problem where the _SST execution status was incorrectly returned 7238to 7239the caller of AcpiEnterSleepStatePrep. This was a regression introduced 7240in 724120080514. _SST is optional and a NOT_FOUND exception should never be 7242returned. BZ 716 7243 7244Fixed a problem where a deleted object could be accessed from within the 7245AML 7246parser. This was a regression introduced in version 20080123 as a fix for 7247the 7248Unload operator. Lin Ming. BZ 10669 7249 7250Cleaned up the debug operand dump mechanism. Eliminated unnecessary 7251operands 7252and eliminated the use of a negative index in a loop. Operands are now 7253displayed in the correct order, not backwards. This also fixes a 7254regression 7255introduced in 20080514 on 64-bit systems where the elimination of 7256ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 7257715 7258 7259Fixed a possible memory leak in EvPciConfigRegionSetup where the error 7260exit 7261path did not delete a locally allocated structure. 7262 7263Updated definitions for the DMAR and SRAT tables to synchronize with the 7264current specifications. Includes disassembler support. 7265 7266Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 7267loop termination value was used. Loop terminated on iteration early, 7268missing 7269one mutex. Linn Crosetto 7270 7271Example Code and Data Size: These are the sizes for the OS-independent 7272acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7273debug version of the code includes the debug output trace mechanism and 7274has a 7275much larger code and data size. 7276 7277 Previous Release: 7278 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7279 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7280 Current Release: 7281 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 7282 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 7283 72842) iASL Compiler/Disassembler and Tools: 7285 7286Disassembler: Implemented support for EisaId() within _CID objects. Now 7287disassemble integer _CID objects back to EisaId invocations, including 7288multiple integers within _CID packages. Includes single-step support for 7289debugger also. 7290 7291Disassembler: Added support for DMAR and SRAT table definition changes. 7292 7293---------------------------------------- 729414 May 2008. Summary of changes for version 20080514: 7295 72961) ACPI CA Core Subsystem: 7297 7298Fixed a problem where GPEs were enabled too early during the ACPICA 7299initialization. This could lead to "handler not installed" errors on some 7300machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 7301This 7302ensures that all operation regions and devices throughout the namespace 7303have 7304been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 7305 7306Implemented a change to the enter sleep code. Moved execution of the _GTS 7307method to just before setting sleep enable bit. The execution was moved 7308from 7309AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 7310immediately before the SLP_EN bit is set, as per the ACPI specification. 7311Luming Yu, BZ 1653. 7312 7313Implemented a fix to disable unknown GPEs (2nd version). Now always 7314disable 7315the GPE, even if ACPICA thinks that that it is already disabled. It is 7316possible that the AML or some other code has enabled the GPE unbeknownst 7317to 7318the ACPICA code. 7319 7320Fixed a problem with the Field operator where zero-length fields would 7321return 7322an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 7323ASL 7324field declarations in Field(), BankField(), and IndexField(). BZ 10606. 7325 7326Implemented a fix for the Load operator, now load the table at the 7327namespace 7328root. This reverts a change introduced in version 20071019. The table is 7329now 7330loaded at the namespace root even though this goes against the ACPI 7331specification. This provides compatibility with other ACPI 7332implementations. 7333The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 7334Ming. 7335 7336Fixed a problem where ACPICA would not Load() tables with unusual 7337signatures. 7338Now ignore ACPI table signature for Load() operator. Only "SSDT" is 7339acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 7340Therefore, signature validation is worthless. Apparently MS ACPI accepts 7341such 7342signatures, ACPICA must be compatible. BZ 10454. 7343 7344Fixed a possible negative array index in AcpiUtValidateException. Added 7345NULL 7346fields to the exception string arrays to eliminate a -1 subtraction on 7347the 7348SubStatus field. 7349 7350Updated the debug tracking macros to reduce overall code and data size. 7351Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 7352instead of pointers to static strings. Jan Beulich and Bob Moore. 7353 7354Implemented argument count checking in control method invocation via 7355AcpiEvaluateObject. Now emit an error if too few arguments, warning if 7356too 7357many. This applies only to extern programmatic control method execution, 7358not 7359method-to-method calls within the AML. Lin Ming. 7360 7361Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 7362no 7363longer needed, especially with the removal of 16-bit support. It was 7364replaced 7365mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 7366bit 7367on 736832/64-bit platforms is required. 7369 7370Added the C const qualifier for appropriate string constants -- mostly 7371MODULE_NAME and printf format strings. Jan Beulich. 7372 7373Example Code and Data Size: These are the sizes for the OS-independent 7374acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7375debug version of the code includes the debug output trace mechanism and 7376has a 7377much larger code and data size. 7378 7379 Previous Release: 7380 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7381 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7382 Current Release: 7383 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 7384 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 7385 73862) iASL Compiler/Disassembler and Tools: 7387 7388Implemented ACPI table revision ID validation in the disassembler. Zero 7389is 7390always invalid. For DSDTs, the ID controls the interpreter integer width. 73911 7392means 32-bit and this is unusual. 2 or greater is 64-bit. 7393 7394---------------------------------------- 739521 March 2008. Summary of changes for version 20080321: 7396 73971) ACPI CA Core Subsystem: 7398 7399Implemented an additional change to the GPE support in order to suppress 7400spurious or stray GPEs. The AcpiEvDisableGpe function will now 7401permanently 7402disable incoming GPEs that are neither enabled nor disabled -- meaning 7403that 7404the GPE is unknown to the system. This should prevent future interrupt 7405floods 7406from that GPE. BZ 6217 (Zhang Rui) 7407 7408Fixed a problem where NULL package elements were not returned to the 7409AcpiEvaluateObject interface correctly. The element was simply ignored 7410instead of returning a NULL ACPI_OBJECT package element, potentially 7411causing 7412a buffer overflow and/or confusing the caller who expected a fixed number 7413of 7414elements. BZ 10132 (Lin Ming, Bob Moore) 7415 7416Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 7417Dword, 7418Qword), Field, BankField, and IndexField operators when invoked from 7419inside 7420an executing control method. In this case, these operators created 7421namespace 7422nodes that were incorrectly left marked as permanent nodes instead of 7423temporary nodes. This could cause a problem if there is race condition 7424between an exiting control method and a running namespace walk. (Reported 7425by 7426Linn Crosetto) 7427 7428Fixed a problem where the CreateField and CreateXXXField operators would 7429incorrectly allow duplicate names (the name of the field) with no 7430exception 7431generated. 7432 7433Implemented several changes for Notify handling. Added support for new 7434Notify 7435values (ACPI 2.0+) and improved the Notify debug output. Notify on 7436PowerResource objects is no longer allowed, as per the ACPI 7437specification. 7438(Bob Moore, Zhang Rui) 7439 7440All Reference Objects returned via the AcpiEvaluateObject interface are 7441now 7442marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 7443for 7444NULL objects - either NULL package elements or unresolved named 7445references. 7446 7447Fixed a problem where an extraneous debug message was produced for 7448package 7449objects (when debugging enabled). The message "Package List length larger 7450than NumElements count" is now produced in the correct case, and is now 7451an 7452error message rather than a debug message. Added a debug message for the 7453opposite case, where NumElements is larger than the Package List (the 7454package 7455will be padded out with NULL elements as per the ACPI spec.) 7456 7457Implemented several improvements for the output of the ASL "Debug" object 7458to 7459clarify and keep all data for a given object on one output line. 7460 7461Fixed two size calculation issues with the variable-length Start 7462Dependent 7463resource descriptor. 7464 7465Example Code and Data Size: These are the sizes for the OS-independent 7466acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7467debug version of the code includes the debug output trace mechanism and 7468has 7469a much larger code and data size. 7470 7471 Previous Release: 7472 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7473 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7474 Current Release: 7475 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 7476 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 7477 74782) iASL Compiler/Disassembler and Tools: 7479 7480Fixed a problem with the use of the Switch operator where execution of 7481the 7482containing method by multiple concurrent threads could cause an 7483AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 7484actual Switch opcode, it must be simulated with local named temporary 7485variables and if/else pairs. The solution chosen was to mark any method 7486that 7487uses Switch as Serialized, thus preventing multiple thread entries. BZ 7488469. 7489 7490---------------------------------------- 749113 February 2008. Summary of changes for version 20080213: 7492 74931) ACPI CA Core Subsystem: 7494 7495Implemented another MS compatibility design change for GPE/Notify 7496handling. 7497GPEs are now cleared/enabled asynchronously to allow all pending notifies 7498to 7499complete first. It is expected that the OSL will queue the enable request 7500behind all pending notify requests (may require changes to the local host 7501OSL 7502in AcpiOsExecute). Alexey Starikovskiy. 7503 7504Fixed a problem where buffer and package objects passed as arguments to a 7505control method via the external AcpiEvaluateObject interface could cause 7506an 7507AE_AML_INTERNAL exception depending on the order and type of operators 7508executed by the target control method. 7509 7510Fixed a problem where resource descriptor size optimization could cause a 7511problem when a _CRS resource template is passed to a _SRS method. The 7512_SRS 7513resource template must use the same descriptors (with the same size) as 7514returned from _CRS. This change affects the following resource 7515descriptors: 7516IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 75179487) 7518 7519Fixed a problem where a CopyObject to RegionField, BankField, and 7520IndexField 7521objects did not perform an implicit conversion as it should. These types 7522must 7523retain their initial type permanently as per the ACPI specification. 7524However, 7525a CopyObject to all other object types should not perform an implicit 7526conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 7527 7528Fixed a problem with the AcpiGetDevices interface where the mechanism to 7529match device CIDs did not examine the entire list of available CIDs, but 7530instead aborted on the first non-matching CID. Andrew Patterson. 7531 7532Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 7533was 7534inadvertently changed to return a 16-bit value instead of a 32-bit value, 7535truncating the upper dword of a 64-bit value. This macro is only used to 7536display debug output, so no incorrect calculations were made. Also, 7537reimplemented the macro so that a 64-bit shift is not performed by 7538inefficient compilers. 7539 7540Added missing va_end statements that should correspond with each va_start 7541statement. 7542 7543Example Code and Data Size: These are the sizes for the OS-independent 7544acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7545debug version of the code includes the debug output trace mechanism and 7546has 7547a much larger code and data size. 7548 7549 Previous Release: 7550 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7551 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7552 Current Release: 7553 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 7554 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 7555 75562) iASL Compiler/Disassembler and Tools: 7557 7558Implemented full disassembler support for the following new ACPI tables: 7559BERT, EINJ, and ERST. Implemented partial disassembler support for the 7560complicated HEST table. These tables support the Windows Hardware Error 7561Architecture (WHEA). 7562 7563---------------------------------------- 756423 January 2008. Summary of changes for version 20080123: 7565 75661) ACPI CA Core Subsystem: 7567 7568Added the 2008 copyright to all module headers and signons. This affects 7569virtually every file in the ACPICA core subsystem, the iASL compiler, and 7570the tools/utilities. 7571 7572Fixed a problem with the SizeOf operator when used with Package and 7573Buffer 7574objects. These objects have deferred execution for some arguments, and 7575the 7576execution is now completed before the SizeOf is executed. This problem 7577caused 7578unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 7579BZ 75809558 7581 7582Implemented an enhancement to the interpreter "slack mode". In the 7583absence 7584of 7585an explicit return or an implicitly returned object from the last 7586executed 7587opcode, a control method will now implicitly return an integer of value 0 7588for 7589Microsoft compatibility. (Lin Ming) BZ 392 7590 7591Fixed a problem with the Load operator where an exception was not 7592returned 7593in 7594the case where the table is already loaded. (Lin Ming) BZ 463 7595 7596Implemented support for the use of DDBHandles as an Indexed Reference, as 7597per 7598the ACPI spec. (Lin Ming) BZ 486 7599 7600Implemented support for UserTerm (Method invocation) for the Unload 7601operator 7602as per the ACPI spec. (Lin Ming) BZ 580 7603 7604Fixed a problem with the LoadTable operator where the OemId and 7605OemTableId 7606input strings could cause unexpected failures if they were shorter than 7607the 7608maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 7609 7610Implemented support for UserTerm (Method invocation) for the Unload 7611operator 7612as per the ACPI spec. (Lin Ming) BZ 580 7613 7614Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 7615HEST, 7616IBFT, UEFI, WDAT. Disassembler support is forthcoming. 7617 7618Example Code and Data Size: These are the sizes for the OS-independent 7619acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7620debug version of the code includes the debug output trace mechanism and 7621has 7622a much larger code and data size. 7623 7624 Previous Release: 7625 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7626 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7627 Current Release: 7628 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 7629 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 7630 76312) iASL Compiler/Disassembler and Tools: 7632 7633Implemented support in the disassembler for checksum validation on 7634incoming 7635binary DSDTs and SSDTs. If incorrect, a message is displayed within the 7636table 7637header dump at the start of the disassembly. 7638 7639Implemented additional debugging information in the namespace listing 7640file 7641created during compilation. In addition to the namespace hierarchy, the 7642full 7643pathname to each namespace object is displayed. 7644 7645Fixed a problem with the disassembler where invalid ACPI tables could 7646cause 7647faults or infinite loops. 7648 7649Fixed an unexpected parse error when using the optional "parameter types" 7650list in a control method declaration. (Lin Ming) BZ 397 7651 7652Fixed a problem where two External declarations with the same name did 7653not 7654cause an error (Lin Ming) BZ 509 7655 7656Implemented support for full TermArgs (adding Argx, Localx and method 7657invocation) for the ParameterData parameter to the LoadTable operator. 7658(Lin 7659Ming) BZ 583,587 7660 7661---------------------------------------- 766219 December 2007. Summary of changes for version 20071219: 7663 76641) ACPI CA Core Subsystem: 7665 7666Implemented full support for deferred execution for the TermArg string 7667arguments for DataTableRegion. This enables forward references and full 7668operand resolution for the three string arguments. Similar to 7669OperationRegion 7670deferred argument execution.) Lin Ming. BZ 430 7671 7672Implemented full argument resolution support for the BankValue argument 7673to 7674BankField. Previously, only constants were supported, now any TermArg may 7675be 7676used. Lin Ming BZ 387, 393 7677 7678Fixed a problem with AcpiGetDevices where the search of a branch of the 7679device tree could be terminated prematurely. In accordance with the ACPI 7680specification, the search down the current branch is terminated if a 7681device 7682is both not present and not functional (instead of just not present.) 7683Yakui 7684Zhao. 7685 7686Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 7687if 7688the underlying AML code changed the GPE enable registers. Now, any 7689unknown 7690incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 7691disabled 7692instead of simply ignored. Rui Zhang. 7693 7694Fixed a problem with Index Fields where the Index register was 7695incorrectly 7696limited to a maximum of 32 bits. Now any size may be used. 7697 7698Fixed a couple memory leaks associated with "implicit return" objects 7699when 7700the AML Interpreter slack mode is enabled. Lin Ming BZ 349 7701 7702Example Code and Data Size: These are the sizes for the OS-independent 7703acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7704debug version of the code includes the debug output trace mechanism and 7705has 7706a much larger code and data size. 7707 7708 Previous Release: 7709 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7710 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7711 Current Release: 7712 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 7713 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 7714 7715---------------------------------------- 771614 November 2007. Summary of changes for version 20071114: 7717 77181) ACPI CA Core Subsystem: 7719 7720Implemented event counters for each of the Fixed Events, the ACPI SCI 7721(interrupt) itself, and control methods executed. Named 7722AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 7723These 7724should be useful for debugging and statistics. 7725 7726Implemented a new external interface, AcpiGetStatistics, to retrieve the 7727contents of the various event counters. Returns the current values for 7728AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 7729AcpiMethodCount. The interface can be expanded in the future if new 7730counters 7731are added. Device drivers should use this interface rather than access 7732the 7733counters directly. 7734 7735Fixed a problem with the FromBCD and ToBCD operators. With some 7736compilers, 7737the ShortDivide function worked incorrectly, causing problems with the 7738BCD 7739functions with large input values. A truncation from 64-bit to 32-bit 7740inadvertently occurred. Internal BZ 435. Lin Ming 7741 7742Fixed a problem with Index references passed as method arguments. 7743References 7744passed as arguments to control methods were dereferenced immediately 7745(before 7746control was passed to the called method). The references are now 7747correctly 7748passed directly to the called method. BZ 5389. Lin Ming 7749 7750Fixed a problem with CopyObject used in conjunction with the Index 7751operator. 7752The reference was incorrectly dereferenced before the copy. The reference 7753is 7754now correctly copied. BZ 5391. Lin Ming 7755 7756Fixed a problem with Control Method references within Package objects. 7757These 7758references are now correctly generated. This completes the package 7759construction overhaul that began in version 20071019. 7760 7761Example Code and Data Size: These are the sizes for the OS-independent 7762acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7763debug version of the code includes the debug output trace mechanism and 7764has 7765a much larger code and data size. 7766 7767 Previous Release: 7768 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 7769 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 7770 Current Release: 7771 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 7772 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 7773 7774 77752) iASL Compiler/Disassembler and Tools: 7776 7777The AcpiExec utility now installs handlers for all of the predefined 7778Operation Region types. New types supported are: PCI_Config, CMOS, and 7779PCIBARTarget. 7780 7781Fixed a problem with the 64-bit version of AcpiExec where the extended 7782(64- 7783bit) address fields for the DSDT and FACS within the FADT were not being 7784used, causing truncation of the upper 32-bits of these addresses. Lin 7785Ming 7786and Bob Moore 7787 7788---------------------------------------- 778919 October 2007. Summary of changes for version 20071019: 7790 77911) ACPI CA Core Subsystem: 7792 7793Fixed a problem with the Alias operator when the target of the alias is a 7794named ASL operator that opens a new scope -- Scope, Device, 7795PowerResource, 7796Processor, and ThermalZone. In these cases, any children of the original 7797operator could not be accessed via the alias, potentially causing 7798unexpected 7799AE_NOT_FOUND exceptions. (BZ 9067) 7800 7801Fixed a problem with the Package operator where all named references were 7802created as object references and left otherwise unresolved. According to 7803the 7804ACPI specification, a Package can only contain Data Objects or references 7805to 7806control methods. The implication is that named references to Data Objects 7807(Integer, Buffer, String, Package, BufferField, Field) should be resolved 7808immediately upon package creation. This is the approach taken with this 7809change. References to all other named objects (Methods, Devices, Scopes, 7810etc.) are all now properly created as reference objects. (BZ 5328) 7811 7812Reverted a change to Notify handling that was introduced in version 781320070508. This version changed the Notify handling from asynchronous to 7814fully synchronous (Device driver Notify handling with respect to the 7815Notify 7816ASL operator). It was found that this change caused more problems than it 7817solved and was removed by most users. 7818 7819Fixed a problem with the Increment and Decrement operators where the type 7820of 7821the target object could be unexpectedly and incorrectly changed. (BZ 353) 7822Lin Ming. 7823 7824Fixed a problem with the Load and LoadTable operators where the table 7825location within the namespace was ignored. Instead, the table was always 7826loaded into the root or current scope. Lin Ming. 7827 7828Fixed a problem with the Load operator when loading a table from a buffer 7829object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 7830 7831Fixed a problem with the Debug object where a store of a DdbHandle 7832reference 7833object to the Debug object could cause a fault. 7834 7835Added a table checksum verification for the Load operator, in the case 7836where 7837the load is from a buffer. (BZ 578). 7838 7839Implemented additional parameter validation for the LoadTable operator. 7840The 7841length of the input strings SignatureString, OemIdString, and OemTableId 7842are 7843now checked for maximum lengths. (BZ 582) Lin Ming. 7844 7845Example Code and Data Size: These are the sizes for the OS-independent 7846acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7847debug version of the code includes the debug output trace mechanism and 7848has 7849a much larger code and data size. 7850 7851 Previous Release: 7852 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 7853 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 7854 Current Release: 7855 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 7856 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 7857 7858 78592) iASL Compiler/Disassembler: 7860 7861Fixed a problem where if a single file was specified and the file did not 7862exist, no error message was emitted. (Introduced with wildcard support in 7863version 20070917.) 7864 7865---------------------------------------- 786619 September 2007. Summary of changes for version 20070919: 7867 78681) ACPI CA Core Subsystem: 7869 7870Designed and implemented new external interfaces to install and remove 7871handlers for ACPI table-related events. Current events that are defined 7872are 7873LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 7874they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 7875AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 7876 7877Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 7878(acpi_serialized option on Linux) could cause some systems to hang during 7879initialization. (Bob Moore) BZ 8171 7880 7881Fixed a problem where objects of certain types (Device, ThermalZone, 7882Processor, PowerResource) can be not found if they are declared and 7883referenced from within the same control method (Lin Ming) BZ 341 7884 7885Example Code and Data Size: These are the sizes for the OS-independent 7886acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7887debug version of the code includes the debug output trace mechanism and 7888has 7889a much larger code and data size. 7890 7891 Previous Release: 7892 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 7893 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 7894 Current Release: 7895 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 7896 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 7897 7898 78992) iASL Compiler/Disassembler: 7900 7901Implemented support to allow multiple files to be compiled/disassembled 7902in 7903a 7904single invocation. This includes command line wildcard support for both 7905the 7906Windows and Unix versions of the compiler. This feature simplifies the 7907disassembly and compilation of multiple ACPI tables in a single 7908directory. 7909 7910---------------------------------------- 791108 May 2007. Summary of changes for version 20070508: 7912 79131) ACPI CA Core Subsystem: 7914 7915Implemented a Microsoft compatibility design change for the handling of 7916the 7917Notify AML operator. Previously, notify handlers were dispatched and 7918executed completely asynchronously in a deferred thread. The new design 7919still executes the notify handlers in a different thread, but the 7920original 7921thread that executed the Notify() now waits at a synchronization point 7922for 7923the notify handler to complete. Some machines depend on a synchronous 7924Notify 7925operator in order to operate correctly. 7926 7927Implemented support to allow Package objects to be passed as method 7928arguments to the external AcpiEvaluateObject interface. Previously, this 7929would return the AE_NOT_IMPLEMENTED exception. This feature had not been 7930implemented since there were no reserved control methods that required it 7931until recently. 7932 7933Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 7934that 7935contained invalid non-zero values in reserved fields could cause later 7936failures because these fields have meaning in later revisions of the 7937FADT. 7938For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 7939fields 7940are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 7941 7942Fixed a problem where the Global Lock handle was not properly updated if 7943a 7944thread that acquired the Global Lock via executing AML code then 7945attempted 7946to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 7947Joe 7948Liu. 7949 7950Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 7951could be corrupted if the interrupt being removed was at the head of the 7952list. Reported by Linn Crosetto. 7953 7954Example Code and Data Size: These are the sizes for the OS-independent 7955acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 7956debug version of the code includes the debug output trace mechanism and 7957has 7958a much larger code and data size. 7959 7960 Previous Release: 7961 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 7962 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 7963 Current Release: 7964 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 7965 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 7966 7967---------------------------------------- 796820 March 2007. Summary of changes for version 20070320: 7969 79701) ACPI CA Core Subsystem: 7971 7972Implemented a change to the order of interpretation and evaluation of AML 7973operand objects within the AML interpreter. The interpreter now evaluates 7974operands in the order that they appear in the AML stream (and the 7975corresponding ASL code), instead of in the reverse order (after the 7976entire 7977operand list has been parsed). The previous behavior caused several 7978subtle 7979incompatibilities with the Microsoft AML interpreter as well as being 7980somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 7981 7982Implemented a change to the ACPI Global Lock support. All interfaces to 7983the 7984global lock now allow the same thread to acquire the lock multiple times. 7985This affects the AcpiAcquireGlobalLock external interface to the global 7986lock 7987as well as the internal use of the global lock to support AML fields -- a 7988control method that is holding the global lock can now simultaneously 7989access 7990AML fields that require global lock protection. Previously, in both 7991cases, 7992this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 7993to 7994AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 7995Controller. There is no change to the behavior of the AML Acquire 7996operator, 7997as this can already be used to acquire a mutex multiple times by the same 7998thread. BZ 8066. With assistance from Alexey Starikovskiy. 7999 8000Fixed a problem where invalid objects could be referenced in the AML 8001Interpreter after error conditions. During operand evaluation, ensure 8002that 8003the internal "Return Object" field is cleared on error and only valid 8004pointers are stored there. Caused occasional access to deleted objects 8005that 8006resulted in "large reference count" warning messages. Valery Podrezov. 8007 8008Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 8009on 8010deeply nested control method invocations. BZ 7873, local BZ 487. Valery 8011Podrezov. 8012 8013Fixed an internal problem with the handling of result objects on the 8014interpreter result stack. BZ 7872. Valery Podrezov. 8015 8016Removed obsolete code that handled the case where AML_NAME_OP is the 8017target 8018of a reference (Reference.Opcode). This code was no longer necessary. BZ 80197874. Valery Podrezov. 8020 8021Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 8022was 8023a 8024remnant from the previously discontinued 16-bit support. 8025 8026Example Code and Data Size: These are the sizes for the OS-independent 8027acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8028debug version of the code includes the debug output trace mechanism and 8029has 8030a much larger code and data size. 8031 8032 Previous Release: 8033 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8034 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8035 Current Release: 8036 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8037 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 8038 8039---------------------------------------- 804026 January 2007. Summary of changes for version 20070126: 8041 80421) ACPI CA Core Subsystem: 8043 8044Added the 2007 copyright to all module headers and signons. This affects 8045virtually every file in the ACPICA core subsystem, the iASL compiler, and 8046the utilities. 8047 8048Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 8049during a table load. A bad pointer was passed in the case where the DSDT 8050is 8051overridden, causing a fault in this case. 8052 8053Example Code and Data Size: These are the sizes for the OS-independent 8054acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8055debug version of the code includes the debug output trace mechanism and 8056has 8057a much larger code and data size. 8058 8059 Previous Release: 8060 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8061 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8062 Current Release: 8063 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8064 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8065 8066---------------------------------------- 806715 December 2006. Summary of changes for version 20061215: 8068 80691) ACPI CA Core Subsystem: 8070 8071Support for 16-bit ACPICA has been completely removed since it is no 8072longer 8073necessary and it clutters the code. All 16-bit macros, types, and 8074conditional compiles have been removed, cleaning up and simplifying the 8075code 8076across the entire subsystem. DOS support is no longer needed since the 8077bootable Linux firmware kit is now available. 8078 8079The handler for the Global Lock is now removed during AcpiTerminate to 8080enable a clean subsystem restart, via the implementation of the 8081AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 8082HP) 8083 8084Implemented enhancements to the multithreading support within the 8085debugger 8086to enable improved multithreading debugging and evaluation of the 8087subsystem. 8088(Valery Podrezov) 8089 8090Debugger: Enhanced the Statistics/Memory command to emit the total 8091(maximum) 8092memory used during the execution, as well as the maximum memory consumed 8093by 8094each of the various object types. (Valery Podrezov) 8095 8096Example Code and Data Size: These are the sizes for the OS-independent 8097acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8098debug version of the code includes the debug output trace mechanism and 8099has 8100a much larger code and data size. 8101 8102 Previous Release: 8103 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 8104 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 8105 Current Release: 8106 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 8107 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 8108 8109 81102) iASL Compiler/Disassembler and Tools: 8111 8112AcpiExec: Implemented a new option (-m) to display full memory use 8113statistics upon subsystem/program termination. (Valery Podrezov) 8114 8115---------------------------------------- 811609 November 2006. Summary of changes for version 20061109: 8117 81181) ACPI CA Core Subsystem: 8119 8120Optimized the Load ASL operator in the case where the source operand is 8121an 8122operation region. Simply map the operation region memory, instead of 8123performing a bytewise read. (Region must be of type SystemMemory, see 8124below.) 8125 8126Fixed the Load ASL operator for the case where the source operand is a 8127region field. A buffer object is also allowed as the source operand. BZ 8128480 8129 8130Fixed a problem where the Load ASL operator allowed the source operand to 8131be 8132an operation region of any type. It is now restricted to regions of type 8133SystemMemory, as per the ACPI specification. BZ 481 8134 8135Additional cleanup and optimizations for the new Table Manager code. 8136 8137AcpiEnable will now fail if all of the required ACPI tables are not 8138loaded 8139(FADT, FACS, DSDT). BZ 477 8140 8141Added #pragma pack(8/4) to acobject.h to ensure that the structures in 8142this 8143header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 8144manually optimized to be aligned and will not work if it is byte-packed. 8145 8146Example Code and Data Size: These are the sizes for the OS-independent 8147acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8148debug version of the code includes the debug output trace mechanism and 8149has 8150a much larger code and data size. 8151 8152 Previous Release: 8153 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 8154 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 8155 Current Release: 8156 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 8157 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 8158 8159 81602) iASL Compiler/Disassembler and Tools: 8161 8162Fixed a problem where the presence of the _OSI predefined control method 8163within complex expressions could cause an internal compiler error. 8164 8165AcpiExec: Implemented full region support for multiple address spaces. 8166SpaceId is now part of the REGION object. BZ 429 8167 8168---------------------------------------- 816911 October 2006. Summary of changes for version 20061011: 8170 81711) ACPI CA Core Subsystem: 8172 8173Completed an AML interpreter performance enhancement for control method 8174execution. Previously a 2-pass parse/execution, control methods are now 8175completely parsed and executed in a single pass. This improves overall 8176interpreter performance by ~25%, reduces code size, and reduces CPU stack 8177use. (Valery Podrezov + interpreter changes in version 20051202 that 8178eliminated namespace loading during the pass one parse.) 8179 8180Implemented _CID support for PCI Root Bridge detection. If the _HID does 8181not 8182match the predefined PCI Root Bridge IDs, the _CID list (if present) is 8183now 8184obtained and also checked for an ID match. 8185 8186Implemented additional support for the PCI _ADR execution: upsearch until 8187a 8188device scope is found before executing _ADR. This allows PCI_Config 8189operation regions to be declared locally within control methods 8190underneath 8191PCI device objects. 8192 8193Fixed a problem with a possible race condition between threads executing 8194AcpiWalkNamespace and the AML interpreter. This condition was removed by 8195modifying AcpiWalkNamespace to (by default) ignore all temporary 8196namespace 8197entries created during any concurrent control method execution. An 8198additional namespace race condition is known to exist between 8199AcpiWalkNamespace and the Load/Unload ASL operators and is still under 8200investigation. 8201 8202Restructured the AML ParseLoop function, breaking it into several 8203subfunctions in order to reduce CPU stack use and improve 8204maintainability. 8205(Mikhail Kouzmich) 8206 8207AcpiGetHandle: Fix for parameter validation to detect invalid 8208combinations 8209of prefix handle and pathname. BZ 478 8210 8211Example Code and Data Size: These are the sizes for the OS-independent 8212acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8213debug version of the code includes the debug output trace mechanism and 8214has 8215a much larger code and data size. 8216 8217 Previous Release: 8218 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8219 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8220 Current Release: 8221 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 8222 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 8223 82242) iASL Compiler/Disassembler and Tools: 8225 8226Ported the -g option (get local ACPI tables) to the new ACPICA Table 8227Manager 8228to restore original behavior. 8229 8230---------------------------------------- 823127 September 2006. Summary of changes for version 20060927: 8232 82331) ACPI CA Core Subsystem: 8234 8235Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 8236These functions now use a spinlock for mutual exclusion and the interrupt 8237level indication flag is not needed. 8238 8239Fixed a problem with the Global Lock where the lock could appear to be 8240obtained before it is actually obtained. The global lock semaphore was 8241inadvertently created with one unit instead of zero units. (BZ 464) 8242Fiodor 8243Suietov. 8244 8245Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 8246during 8247a read from a buffer or region field. (BZ 458) Fiodor Suietov. 8248 8249Example Code and Data Size: These are the sizes for the OS-independent 8250acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8251debug version of the code includes the debug output trace mechanism and 8252has 8253a much larger code and data size. 8254 8255 Previous Release: 8256 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8257 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8258 Current Release: 8259 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8260 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 8261 8262 82632) iASL Compiler/Disassembler and Tools: 8264 8265Fixed a compilation problem with the pre-defined Resource Descriptor 8266field 8267names where an "object does not exist" error could be incorrectly 8268generated 8269if the parent ResourceTemplate pathname places the template within a 8270different namespace scope than the current scope. (BZ 7212) 8271 8272Fixed a problem where the compiler could hang after syntax errors 8273detected 8274in an ElseIf construct. (BZ 453) 8275 8276Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 8277operator. An incorrect output filename was produced when this parameter 8278was 8279a null string (""). Now, the original input filename is used as the AML 8280output filename, with an ".aml" extension. 8281 8282Implemented a generic batch command mode for the AcpiExec utility 8283(execute 8284any AML debugger command) (Valery Podrezov). 8285 8286---------------------------------------- 828712 September 2006. Summary of changes for version 20060912: 8288 82891) ACPI CA Core Subsystem: 8290 8291Enhanced the implementation of the "serialized mode" of the interpreter 8292(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 8293specified, instead of creating a serialization semaphore per control 8294method, 8295the interpreter lock is simply no longer released before a blocking 8296operation during control method execution. This effectively makes the AML 8297Interpreter single-threaded. The overhead of a semaphore per-method is 8298eliminated. 8299 8300Fixed a regression where an error was no longer emitted if a control 8301method 8302attempts to create 2 objects of the same name. This once again returns 8303AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 8304that 8305will dynamically serialize the control method to possible prevent future 8306errors. (BZ 440) 8307 8308Integrated a fix for a problem with PCI Express HID detection in the PCI 8309Config Space setup procedure. (BZ 7145) 8310 8311Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 8312AcpiHwInitialize function - the FADT registers are now validated when the 8313table is loaded. 8314 8315Added two new warnings during FADT verification - 1) if the FADT is 8316larger 8317than the largest known FADT version, and 2) if there is a mismatch 8318between 8319a 832032-bit block address and the 64-bit X counterpart (when both are non- 8321zero.) 8322 8323Example Code and Data Size: These are the sizes for the OS-independent 8324acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8325debug version of the code includes the debug output trace mechanism and 8326has 8327a much larger code and data size. 8328 8329 Previous Release: 8330 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8331 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8332 Current Release: 8333 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 8334 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 8335 8336 83372) iASL Compiler/Disassembler and Tools: 8338 8339Fixed a problem with the implementation of the Switch() operator where 8340the 8341temporary variable was declared too close to the actual Switch, instead 8342of 8343at method level. This could cause a problem if the Switch() operator is 8344within a while loop, causing an error on the second iteration. (BZ 460) 8345 8346Disassembler - fix for error emitted for unknown type for target of scope 8347operator. Now, ignore it and continue. 8348 8349Disassembly of an FADT now verifies the input FADT and reports any errors 8350found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 8351 8352Disassembly of raw data buffers with byte initialization data now 8353prefixes 8354each output line with the current buffer offset. 8355 8356Disassembly of ASF! table now includes all variable-length data fields at 8357the end of some of the subtables. 8358 8359The disassembler now emits a comment if a buffer appears to be a 8360ResourceTemplate, but cannot be disassembled as such because the EndTag 8361does 8362not appear at the very end of the buffer. 8363 8364AcpiExec - Added the "-t" command line option to enable the serialized 8365mode 8366of the AML interpreter. 8367 8368---------------------------------------- 836931 August 2006. Summary of changes for version 20060831: 8370 83711) ACPI CA Core Subsystem: 8372 8373Miscellaneous fixes for the Table Manager: 8374- Correctly initialize internal common FADT for all 64-bit "X" fields 8375- Fixed a couple table mapping issues during table load 8376- Fixed a couple alignment issues for IA64 8377- Initialize input array to zero in AcpiInitializeTables 8378- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 8379AcpiGetTableByIndex 8380 8381Change for GPE support: when a "wake" GPE is received, all wake GPEs are 8382now 8383immediately disabled to prevent the waking GPE from firing again and to 8384prevent other wake GPEs from interrupting the wake process. 8385 8386Added the AcpiGpeCount global that tracks the number of processed GPEs, 8387to 8388be used for debugging systems with a large number of ACPI interrupts. 8389 8390Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 8391both the ACPICA headers and the disassembler. 8392 8393Example Code and Data Size: These are the sizes for the OS-independent 8394acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8395debug version of the code includes the debug output trace mechanism and 8396has 8397a much larger code and data size. 8398 8399 Previous Release: 8400 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8401 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8402 Current Release: 8403 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 8404 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 8405 8406 84072) iASL Compiler/Disassembler and Tools: 8408 8409Disassembler support for the DMAR ACPI table. 8410 8411---------------------------------------- 841223 August 2006. Summary of changes for version 20060823: 8413 84141) ACPI CA Core Subsystem: 8415 8416The Table Manager component has been completely redesigned and 8417reimplemented. The new design is much simpler, and reduces the overall 8418code 8419and data size of the kernel-resident ACPICA by approximately 5%. Also, it 8420is 8421now possible to obtain the ACPI tables very early during kernel 8422initialization, even before dynamic memory management is initialized. 8423(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 8424 8425Obsolete ACPICA interfaces: 8426 8427- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 8428init 8429time). 8430- AcpiLoadTable: Not needed. 8431- AcpiUnloadTable: Not needed. 8432 8433New ACPICA interfaces: 8434 8435- AcpiInitializeTables: Must be called before the table manager can be 8436used. 8437- AcpiReallocateRootTable: Used to transfer the root table to dynamically 8438allocated memory after it becomes available. 8439- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 8440tables 8441in the RSDT/XSDT. 8442 8443Other ACPICA changes: 8444 8445- AcpiGetTableHeader returns the actual mapped table header, not a copy. 8446Use 8447AcpiOsUnmapMemory to free this mapping. 8448- AcpiGetTable returns the actual mapped table. The mapping is managed 8449internally and must not be deleted by the caller. Use of this interface 8450causes no additional dynamic memory allocation. 8451- AcpiFindRootPointer: Support for physical addressing has been 8452eliminated, 8453it appeared to be unused. 8454- The interface to AcpiOsMapMemory has changed to be consistent with the 8455other allocation interfaces. 8456- The interface to AcpiOsGetRootPointer has changed to eliminate 8457unnecessary 8458parameters. 8459- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 846064- 8461bit platforms. Was previously 64 bits on all platforms. 8462- The interface to the ACPI Global Lock acquire/release macros have 8463changed 8464slightly since ACPICA no longer keeps a local copy of the FACS with a 8465constructed pointer to the actual global lock. 8466 8467Porting to the new table manager: 8468 8469- AcpiInitializeTables: Must be called once, and can be called anytime 8470during the OS initialization process. It allows the host to specify an 8471area 8472of memory to be used to store the internal version of the RSDT/XSDT (root 8473table). This allows the host to access ACPI tables before memory 8474management 8475is initialized and running. 8476- AcpiReallocateRootTable: Can be called after memory management is 8477running 8478to copy the root table to a dynamically allocated array, freeing up the 8479scratch memory specified in the call to AcpiInitializeTables. 8480- AcpiSubsystemInitialize: This existing interface is independent of the 8481Table Manager, and does not have to be called before the Table Manager 8482can 8483be used, it only must be called before the rest of ACPICA can be used. 8484- ACPI Tables: Some changes have been made to the names and structure of 8485the 8486actbl.h and actbl1.h header files and may require changes to existing 8487code. 8488For example, bitfields have been completely removed because of their lack 8489of 8490portability across C compilers. 8491- Update interfaces to the Global Lock acquire/release macros if local 8492versions are used. (see acwin.h) 8493 8494Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 8495 8496New files: tbfind.c 8497 8498Example Code and Data Size: These are the sizes for the OS-independent 8499acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8500debug version of the code includes the debug output trace mechanism and 8501has 8502a much larger code and data size. 8503 8504 Previous Release: 8505 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8506 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8507 Current Release: 8508 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 8509 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 8510 8511 85122) iASL Compiler/Disassembler and Tools: 8513 8514No changes for this release. 8515 8516---------------------------------------- 851721 July 2006. Summary of changes for version 20060721: 8518 85191) ACPI CA Core Subsystem: 8520 8521The full source code for the ASL test suite used to validate the iASL 8522compiler and the ACPICA core subsystem is being released with the ACPICA 8523source for the first time. The source is contained in a separate package 8524and 8525consists of over 1100 files that exercise all ASL/AML operators. The 8526package 8527should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 8528Fiodor 8529Suietov) 8530 8531Completed a new design and implementation for support of the ACPI Global 8532Lock. On the OS side, the global lock is now treated as a standard AML 8533mutex. Previously, multiple OS threads could "acquire" the global lock 8534simultaneously. However, this could cause the BIOS to be starved out of 8535the 8536lock - especially in cases such as the Embedded Controller driver where 8537there is a tight coupling between the OS and the BIOS. 8538 8539Implemented an optimization for the ACPI Global Lock interrupt mechanism. 8540The Global Lock interrupt handler no longer queues the execution of a 8541separate thread to signal the global lock semaphore. Instead, the 8542semaphore 8543is signaled directly from the interrupt handler. 8544 8545Implemented support within the AML interpreter for package objects that 8546contain a larger AML length (package list length) than the package 8547element 8548count. In this case, the length of the package is truncated to match the 8549package element count. Some BIOS code apparently modifies the package 8550length 8551on the fly, and this change supports this behavior. Provides 8552compatibility 8553with the MS AML interpreter. (With assistance from Fiodor Suietov) 8554 8555Implemented a temporary fix for the BankValue parameter of a Bank Field 8556to 8557support all constant values, now including the Zero and One opcodes. 8558Evaluation of this parameter must eventually be converted to a full 8559TermArg 8560evaluation. A not-implemented error is now returned (temporarily) for 8561non- 8562constant values for this parameter. 8563 8564Fixed problem reports (Fiodor Suietov) integrated: 8565- Fix for premature object deletion after CopyObject on Operation Region 8566(BZ 8567350) 8568 8569Example Code and Data Size: These are the sizes for the OS-independent 8570acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8571debug version of the code includes the debug output trace mechanism and 8572has 8573a much larger code and data size. 8574 8575 Previous Release: 8576 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 8577 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 8578 Current Release: 8579 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8580 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8581 8582 85832) iASL Compiler/Disassembler and Tools: 8584 8585No changes for this release. 8586 8587---------------------------------------- 858807 July 2006. Summary of changes for version 20060707: 8589 85901) ACPI CA Core Subsystem: 8591 8592Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 8593that do not allow the initialization of address pointers within packed 8594structures - even though the hardware itself may support misaligned 8595transfers. Some of the debug data structures are packed by default to 8596minimize size. 8597 8598Added an error message for the case where AcpiOsGetThreadId() returns 8599zero. 8600A non-zero value is required by the core ACPICA code to ensure the proper 8601operation of AML mutexes and recursive control methods. 8602 8603The DSDT is now the only ACPI table that determines whether the AML 8604interpreter is in 32-bit or 64-bit mode. Not really a functional change, 8605but 8606the hooks for per-table 32/64 switching have been removed from the code. 8607A 8608clarification to the ACPI specification is forthcoming in ACPI 3.0B. 8609 8610Fixed a possible leak of an OwnerID in the error path of 8611AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 8612deletion to a single place in AcpiTbUninstallTable to correct possible 8613leaks 8614when using the AcpiTbDeleteTablesByType interface (with assistance from 8615Lance Ortiz.) 8616 8617Fixed a problem with Serialized control methods where the semaphore 8618associated with the method could be over-signaled after multiple method 8619invocations. 8620 8621Fixed two issues with the locking of the internal namespace data 8622structure. 8623Both the Unload() operator and AcpiUnloadTable interface now lock the 8624namespace during the namespace deletion associated with the table unload 8625(with assistance from Linn Crosetto.) 8626 8627Fixed problem reports (Valery Podrezov) integrated: 8628- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 8629 8630Fixed problem reports (Fiodor Suietov) integrated: 8631- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 8632- On Address Space handler deletion, needless deactivation call (BZ 374) 8633- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 8634375) 8635- Possible memory leak, Notify sub-objects of Processor, Power, 8636ThermalZone 8637(BZ 376) 8638- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 8639- Minimum Length of RSDT should be validated (BZ 379) 8640- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 8641Handler (BZ (380) 8642- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 8643loaded 8644(BZ 381) 8645 8646Example Code and Data Size: These are the sizes for the OS-independent 8647acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8648debug version of the code includes the debug output trace mechanism and 8649has 8650a much larger code and data size. 8651 8652 Previous Release: 8653 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8654 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8655 Current Release: 8656 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 8657 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 8658 8659 86602) iASL Compiler/Disassembler and Tools: 8661 8662Fixed problem reports: 8663Compiler segfault when ASL contains a long (>1024) String declaration (BZ 8664436) 8665 8666---------------------------------------- 866723 June 2006. Summary of changes for version 20060623: 8668 86691) ACPI CA Core Subsystem: 8670 8671Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 8672allows the type to be customized to the host OS for improved efficiency 8673(since a spinlock is usually a very small object.) 8674 8675Implemented support for "ignored" bits in the ACPI registers. According 8676to 8677the ACPI specification, these bits should be preserved when writing the 8678registers via a read/modify/write cycle. There are 3 bits preserved in 8679this 8680manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 8681 8682Implemented the initial deployment of new OSL mutex interfaces. Since 8683some 8684host operating systems have separate mutex and semaphore objects, this 8685feature was requested. The base code now uses mutexes (and the new mutex 8686interfaces) wherever a binary semaphore was used previously. However, for 8687the current release, the mutex interfaces are defined as macros to map 8688them 8689to the existing semaphore interfaces. Therefore, no OSL changes are 8690required 8691at this time. (See acpiosxf.h) 8692 8693Fixed several problems with the support for the control method SyncLevel 8694parameter. The SyncLevel now works according to the ACPI specification 8695and 8696in concert with the Mutex SyncLevel parameter, since the current 8697SyncLevel 8698is a property of the executing thread. Mutual exclusion for control 8699methods 8700is now implemented with a mutex instead of a semaphore. 8701 8702Fixed three instances of the use of the C shift operator in the bitfield 8703support code (exfldio.c) to avoid the use of a shift value larger than 8704the 8705target data width. The behavior of C compilers is undefined in this case 8706and 8707can cause unpredictable results, and therefore the case must be detected 8708and 8709avoided. (Fiodor Suietov) 8710 8711Added an info message whenever an SSDT or OEM table is loaded dynamically 8712via the Load() or LoadTable() ASL operators. This should improve 8713debugging 8714capability since it will show exactly what tables have been loaded 8715(beyond 8716the tables present in the RSDT/XSDT.) 8717 8718Example Code and Data Size: These are the sizes for the OS-independent 8719acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8720debug version of the code includes the debug output trace mechanism and 8721has 8722a much larger code and data size. 8723 8724 Previous Release: 8725 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 8726 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 8727 Current Release: 8728 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 8729 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 8730 8731 87322) iASL Compiler/Disassembler and Tools: 8733 8734No changes for this release. 8735 8736---------------------------------------- 873708 June 2006. Summary of changes for version 20060608: 8738 87391) ACPI CA Core Subsystem: 8740 8741Converted the locking mutex used for the ACPI hardware to a spinlock. 8742This 8743change should eliminate all problems caused by attempting to acquire a 8744semaphore at interrupt level, and it means that all ACPICA external 8745interfaces that directly access the ACPI hardware can be safely called 8746from 8747interrupt level. OSL code that implements the semaphore interfaces should 8748be 8749able to eliminate any workarounds for being called at interrupt level. 8750 8751Fixed a regression introduced in 20060526 where the ACPI device 8752initialization could be prematurely aborted with an AE_NOT_FOUND if a 8753device 8754did not have an optional _INI method. 8755 8756Fixed an IndexField issue where a write to the Data Register should be 8757limited in size to the AccessSize (width) of the IndexField itself. (BZ 8758433, 8759Fiodor Suietov) 8760 8761Fixed problem reports (Valery Podrezov) integrated: 8762- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 8763 8764Fixed problem reports (Fiodor Suietov) integrated: 8765- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 8766 8767Removed four global mutexes that were obsolete and were no longer being 8768used. 8769 8770Example Code and Data Size: These are the sizes for the OS-independent 8771acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8772debug version of the code includes the debug output trace mechanism and 8773has 8774a much larger code and data size. 8775 8776 Previous Release: 8777 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 8778 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 8779 Current Release: 8780 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 8781 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 8782 8783 87842) iASL Compiler/Disassembler and Tools: 8785 8786Fixed a fault when using -g option (get tables from registry) on Windows 8787machines. 8788 8789Fixed problem reports integrated: 8790- Generate error if CreateField NumBits parameter is zero. (BZ 405) 8791- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 8792Suietov) 8793- Global table revision override (-r) is ignored (BZ 413) 8794 8795---------------------------------------- 879626 May 2006. Summary of changes for version 20060526: 8797 87981) ACPI CA Core Subsystem: 8799 8800Restructured, flattened, and simplified the internal interfaces for 8801namespace object evaluation - resulting in smaller code, less CPU stack 8802use, 8803and fewer interfaces. (With assistance from Mikhail Kouzmich) 8804 8805Fixed a problem with the CopyObject operator where the first parameter 8806was 8807not typed correctly for the parser, interpreter, compiler, and 8808disassembler. 8809Caused various errors and unexpected behavior. 8810 8811Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 8812produced incorrect results with some C compilers. Since the behavior of C 8813compilers when the shift value is larger than the datatype width is 8814apparently not well defined, the interpreter now detects this condition 8815and 8816simply returns zero as expected in all such cases. (BZ 395) 8817 8818Fixed problem reports (Valery Podrezov) integrated: 8819- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 8820- Allow interpreter to handle nested method declarations (BZ 5361) 8821 8822Fixed problem reports (Fiodor Suietov) integrated: 8823- AcpiTerminate doesn't free debug memory allocation list objects (BZ 8824355) 8825- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 8826356) 8827- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 8828- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 8829- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 8830- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 8831- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 8832- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 8833- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 8834365) 8835- Status of the Global Initialization Handler call not used (BZ 366) 8836- Incorrect object parameter to Global Initialization Handler (BZ 367) 8837 8838Example Code and Data Size: These are the sizes for the OS-independent 8839acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8840debug version of the code includes the debug output trace mechanism and 8841has 8842a much larger code and data size. 8843 8844 Previous Release: 8845 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 8846 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 8847 Current Release: 8848 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 8849 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 8850 8851 88522) iASL Compiler/Disassembler and Tools: 8853 8854Modified the parser to allow the names IO, DMA, and IRQ to be used as 8855namespace identifiers with no collision with existing resource descriptor 8856macro names. This provides compatibility with other ASL compilers and is 8857most useful for disassembly/recompilation of existing tables without 8858parse 8859errors. (With assistance from Thomas Renninger) 8860 8861Disassembler: fixed an incorrect disassembly problem with the 8862DataTableRegion and CopyObject operators. Fixed a possible fault during 8863disassembly of some Alias operators. 8864 8865---------------------------------------- 886612 May 2006. Summary of changes for version 20060512: 8867 88681) ACPI CA Core Subsystem: 8869 8870Replaced the AcpiOsQueueForExecution interface with a new interface named 8871AcpiOsExecute. The major difference is that the new interface does not 8872have 8873a Priority parameter, this appeared to be useless and has been replaced 8874by 8875a 8876Type parameter. The Type tells the host what type of execution is being 8877requested, such as global lock handler, notify handler, GPE handler, etc. 8878This allows the host to queue and execute the request as appropriate for 8879the 8880request type, possibly using different work queues and different 8881priorities 8882for the various request types. This enables fixes for multithreading 8883deadlock problems such as BZ #5534, and will require changes to all 8884existing 8885OS interface layers. (Alexey Starikovskiy and Bob Moore) 8886 8887Fixed a possible memory leak associated with the support for the so- 8888called 8889"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 8890Suietov) 8891 8892Fixed a problem with the Load() operator where a table load from an 8893operation region could overwrite an internal table buffer by up to 7 8894bytes 8895and cause alignment faults on IPF systems. (With assistance from Luming 8896Yu) 8897 8898Example Code and Data Size: These are the sizes for the OS-independent 8899acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8900debug version of the code includes the debug output trace mechanism and 8901has 8902a much larger code and data size. 8903 8904 Previous Release: 8905 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 8906 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 8907 Current Release: 8908 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 8909 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 8910 8911 8912 89132) iASL Compiler/Disassembler and Tools: 8914 8915Disassembler: Implemented support to cross reference the internal 8916namespace 8917and automatically generate ASL External() statements for symbols not 8918defined 8919within the current table being disassembled. This will simplify the 8920disassembly and recompilation of interdependent tables such as SSDTs 8921since 8922these statements will no longer have to be added manually. 8923 8924Disassembler: Implemented experimental support to automatically detect 8925invocations of external control methods and generate appropriate 8926External() 8927statements. This is problematic because the AML cannot be correctly 8928parsed 8929until the number of arguments for each control method is known. 8930Currently, 8931standalone method invocations and invocations as the source operand of a 8932Store() statement are supported. 8933 8934Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 8935LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 8936LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 8937more readable and likely closer to the original ASL source. 8938 8939---------------------------------------- 894021 April 2006. Summary of changes for version 20060421: 8941 89421) ACPI CA Core Subsystem: 8943 8944Removed a device initialization optimization introduced in 20051216 where 8945the _STA method was not run unless an _INI was also present for the same 8946device. This optimization could cause problems because it could allow 8947_INI 8948methods to be run within a not-present device subtree. (If a not-present 8949device had no _INI, _STA would not be run, the not-present status would 8950not 8951be discovered, and the children of the device would be incorrectly 8952traversed.) 8953 8954Implemented a new _STA optimization where namespace subtrees that do not 8955contain _INI are identified and ignored during device initialization. 8956Selectively running _STA can significantly improve boot time on large 8957machines (with assistance from Len Brown.) 8958 8959Implemented support for the device initialization case where the returned 8960_STA flags indicate a device not-present but functioning. In this case, 8961_INI 8962is not run, but the device children are examined for presence, as per the 8963ACPI specification. 8964 8965Implemented an additional change to the IndexField support in order to 8966conform to MS behavior. The value written to the Index Register is not 8967simply a byte offset, it is a byte offset in units of the access width of 8968the parent Index Field. (Fiodor Suietov) 8969 8970Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 8971interface is called during the creation of all AML operation regions, and 8972allows the host OS to exert control over what addresses it will allow the 8973AML code to access. Operation Regions whose addresses are disallowed will 8974cause a runtime exception when they are actually accessed (will not 8975affect 8976or abort table loading.) See oswinxf or osunixxf for an example 8977implementation. 8978 8979Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 8980interface allows the host OS to match the various "optional" 8981interface/behavior strings for the _OSI predefined control method as 8982appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 8983for an example implementation. 8984 8985Restructured and corrected various problems in the exception handling 8986code 8987paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 8988(with assistance from Takayoshi Kochi.) 8989 8990Modified the Linux source converter to ignore quoted string literals 8991while 8992converting identifiers from mixed to lower case. This will correct 8993problems 8994with the disassembler and other areas where such strings must not be 8995modified. 8996 8997The ACPI_FUNCTION_* macros no longer require quotes around the function 8998name. This allows the Linux source converter to convert the names, now 8999that 9000the converter ignores quoted strings. 9001 9002Example Code and Data Size: These are the sizes for the OS-independent 9003acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9004debug version of the code includes the debug output trace mechanism and 9005has 9006a much larger code and data size. 9007 9008 Previous Release: 9009 9010 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 9011 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 9012 Current Release: 9013 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 9014 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 9015 9016 90172) iASL Compiler/Disassembler and Tools: 9018 9019Implemented 3 new warnings for iASL, and implemented multiple warning 9020levels 9021(w2 flag). 9022 90231) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 9024not 9025WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 9026check for the possible timeout, a warning is issued. 9027 90282) Useless operators: If an ASL operator does not specify an optional 9029target 9030operand and it also does not use the function return value from the 9031operator, a warning is issued since the operator effectively does 9032nothing. 9033 90343) Unreferenced objects: If a namespace object is created, but never 9035referenced, a warning is issued. This is a warning level 2 since there 9036are 9037cases where this is ok, such as when a secondary table is loaded that 9038uses 9039the unreferenced objects. Even so, care is taken to only flag objects 9040that 9041don't look like they will ever be used. For example, the reserved methods 9042(starting with an underscore) are usually not referenced because it is 9043expected that the OS will invoke them. 9044 9045---------------------------------------- 904631 March 2006. Summary of changes for version 20060331: 9047 90481) ACPI CA Core Subsystem: 9049 9050Implemented header file support for the following additional ACPI tables: 9051ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 9052support, 9053all current and known ACPI tables are now defined in the ACPICA headers 9054and 9055are available for use by device drivers and other software. 9056 9057Implemented support to allow tables that contain ACPI names with invalid 9058characters to be loaded. Previously, this would cause the table load to 9059fail, but since there are several known cases of such tables on existing 9060machines, this change was made to enable ACPI support for them. Also, 9061this 9062matches the behavior of the Microsoft ACPI implementation. 9063 9064Fixed a couple regressions introduced during the memory optimization in 9065the 906620060317 release. The namespace node definition required additional 9067reorganization and an internal datatype that had been changed to 8-bit 9068was 9069restored to 32-bit. (Valery Podrezov) 9070 9071Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 9072could be passed through to AcpiOsReleaseObject which is unexpected. Such 9073null pointers are now trapped and ignored, matching the behavior of the 9074previous implementation before the deployment of AcpiOsReleaseObject. 9075(Valery Podrezov, Fiodor Suietov) 9076 9077Fixed a memory mapping leak during the deletion of a SystemMemory 9078operation 9079region where a cached memory mapping was not deleted. This became a 9080noticeable problem for operation regions that are defined within 9081frequently 9082used control methods. (Dana Meyers) 9083 9084Reorganized the ACPI table header files into two main files: one for the 9085ACPI tables consumed by the ACPICA core, and another for the 9086miscellaneous 9087ACPI tables that are consumed by the drivers and other software. The 9088various 9089FADT definitions were merged into one common section and three different 9090tables (ACPI 1.0, 1.0+, and 2.0) 9091 9092Example Code and Data Size: These are the sizes for the OS-independent 9093acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9094debug version of the code includes the debug output trace mechanism and 9095has 9096a much larger code and data size. 9097 9098 Previous Release: 9099 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 9100 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 9101 Current Release: 9102 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 9103 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 9104 9105 91062) iASL Compiler/Disassembler and Tools: 9107 9108Disassembler: Implemented support to decode and format all non-AML ACPI 9109tables (tables other than DSDTs and SSDTs.) This includes the new tables 9110added to the ACPICA headers, therefore all current and known ACPI tables 9111are 9112supported. 9113 9114Disassembler: The change to allow ACPI names with invalid characters also 9115enables the disassembly of such tables. Invalid characters within names 9116are 9117changed to '*' to make the name printable; the iASL compiler will still 9118generate an error for such names, however, since this is an invalid ACPI 9119character. 9120 9121Implemented an option for AcpiXtract (-a) to extract all tables found in 9122the 9123input file. The default invocation extracts only the DSDTs and SSDTs. 9124 9125Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 9126makefile for the AcpiXtract utility. 9127 9128---------------------------------------- 912917 March 2006. Summary of changes for version 20060317: 9130 91311) ACPI CA Core Subsystem: 9132 9133Implemented the use of a cache object for all internal namespace nodes. 9134Since there are about 1000 static nodes in a typical system, this will 9135decrease memory use for cache implementations that minimize per- 9136allocation 9137overhead (such as a slab allocator.) 9138 9139Removed the reference count mechanism for internal namespace nodes, since 9140it 9141was deemed unnecessary. This reduces the size of each namespace node by 9142about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 9143case, 9144and 32 bytes for the 64-bit case. 9145 9146Optimized several internal data structures to reduce object size on 64- 9147bit 9148platforms by packing data within the 64-bit alignment. This includes the 9149frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 9150instances corresponding to the namespace objects. 9151 9152Added two new strings for the predefined _OSI method: "Windows 2001.1 9153SP1" 9154and "Windows 2006". 9155 9156Split the allocation tracking mechanism out to a separate file, from 9157utalloc.c to uttrack.c. This mechanism appears to be only useful for 9158application-level code. Kernels may wish to not include uttrack.c in 9159distributions. 9160 9161Removed all remnants of the obsolete ACPI_REPORT_* macros and the 9162associated 9163code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 9164macros.) 9165 9166Code and Data Size: These are the sizes for the acpica.lib produced by 9167the 9168Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9169ACPI 9170driver or OSPM code. The debug version of the code includes the debug 9171output 9172trace mechanism and has a much larger code and data size. Note that these 9173values will vary depending on the efficiency of the compiler and the 9174compiler options used during generation. 9175 9176 Previous Release: 9177 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9178 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9179 Current Release: 9180 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 9181 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 9182 9183 91842) iASL Compiler/Disassembler and Tools: 9185 9186Implemented an ANSI C version of the acpixtract utility. This version 9187will 9188automatically extract the DSDT and all SSDTs from the input acpidump text 9189file and dump the binary output to separate files. It can also display a 9190summary of the input file including the headers for each table found and 9191will extract any single ACPI table, with any signature. (See 9192source/tools/acpixtract) 9193 9194---------------------------------------- 919510 March 2006. Summary of changes for version 20060310: 9196 91971) ACPI CA Core Subsystem: 9198 9199Tagged all external interfaces to the subsystem with the new 9200ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 9201assist 9202kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 9203macro. The default definition is NULL. 9204 9205Added the ACPI_THREAD_ID type for the return value from 9206AcpiOsGetThreadId. 9207This allows the host to define this as necessary to simplify kernel 9208integration. The default definition is ACPI_NATIVE_UINT. 9209 9210Fixed two interpreter problems related to error processing, the deletion 9211of 9212objects, and placing invalid pointers onto the internal operator result 9213stack. BZ 6028, 6151 (Valery Podrezov) 9214 9215Increased the reference count threshold where a warning is emitted for 9216large 9217reference counts in order to eliminate unnecessary warnings on systems 9218with 9219large namespaces (especially 64-bit.) Increased the value from 0x400 to 92200x800. 9221 9222Due to universal disagreement as to the meaning of the 'c' in the 9223calloc() 9224function, the ACPI_MEM_CALLOCATE macro has been renamed to 9225ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 9226ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 9227ACPI_FREE. 9228 9229Code and Data Size: These are the sizes for the acpica.lib produced by 9230the 9231Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9232ACPI 9233driver or OSPM code. The debug version of the code includes the debug 9234output 9235trace mechanism and has a much larger code and data size. Note that these 9236values will vary depending on the efficiency of the compiler and the 9237compiler options used during generation. 9238 9239 Previous Release: 9240 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9241 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9242 Current Release: 9243 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9244 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 9245 9246 92472) iASL Compiler/Disassembler: 9248 9249Disassembler: implemented support for symbolic resource descriptor 9250references. If a CreateXxxxField operator references a fixed offset 9251within 9252a 9253resource descriptor, a name is assigned to the descriptor and the offset 9254is 9255translated to the appropriate resource tag and pathname. The addition of 9256this support brings the disassembled code very close to the original ASL 9257source code and helps eliminate run-time errors when the disassembled 9258code 9259is modified (and recompiled) in such a way as to invalidate the original 9260fixed offsets. 9261 9262Implemented support for a Descriptor Name as the last parameter to the 9263ASL 9264Register() macro. This parameter was inadvertently left out of the ACPI 9265specification, and will be added for ACPI 3.0b. 9266 9267Fixed a problem where the use of the "_OSI" string (versus the full path 9268"\_OSI") caused an internal compiler error. ("No back ptr to op") 9269 9270Fixed a problem with the error message that occurs when an invalid string 9271is 9272used for a _HID object (such as one with an embedded asterisk: 9273"*PNP010A".) 9274The correct message is now displayed. 9275 9276---------------------------------------- 927717 February 2006. Summary of changes for version 20060217: 9278 92791) ACPI CA Core Subsystem: 9280 9281Implemented a change to the IndexField support to match the behavior of 9282the 9283Microsoft AML interpreter. The value written to the Index register is now 9284a 9285byte offset, no longer an index based upon the width of the Data 9286register. 9287This should fix IndexField problems seen on some machines where the Data 9288register is not exactly one byte wide. The ACPI specification will be 9289clarified on this point. 9290 9291Fixed a problem where several resource descriptor types could overrun the 9292internal descriptor buffer due to size miscalculation: VendorShort, 9293VendorLong, and Interrupt. This was noticed on IA64 machines, but could 9294affect all platforms. 9295 9296Fixed a problem where individual resource descriptors were misaligned 9297within 9298the internal buffer, causing alignment faults on IA64 platforms. 9299 9300Code and Data Size: These are the sizes for the acpica.lib produced by 9301the 9302Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 9303ACPI 9304driver or OSPM code. The debug version of the code includes the debug 9305output 9306trace mechanism and has a much larger code and data size. Note that these 9307values will vary depending on the efficiency of the compiler and the 9308compiler options used during generation. 9309 9310 Previous Release: 9311 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9312 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9313 Current Release: 9314 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 9315 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 9316 9317 93182) iASL Compiler/Disassembler: 9319 9320Implemented support for new reserved names: _WDG and _WED are Microsoft 9321extensions for Windows Instrumentation Management, _TDL is a new ACPI- 9322defined method (Throttling Depth Limit.) 9323 9324Fixed a problem where a zero-length VendorShort or VendorLong resource 9325descriptor was incorrectly emitted as a descriptor of length one. 9326 9327---------------------------------------- 932810 February 2006. Summary of changes for version 20060210: 9329 93301) ACPI CA Core Subsystem: 9331 9332Removed a couple of extraneous ACPI_ERROR messages that appeared during 9333normal execution. These became apparent after the conversion from 9334ACPI_DEBUG_PRINT. 9335 9336Fixed a problem where the CreateField operator could hang if the BitIndex 9337or 9338NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 9339 9340Fixed a problem where a DeRefOf operation on a buffer object incorrectly 9341failed with an exception. This also fixes a couple of related RefOf and 9342DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 9343 9344Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 9345of 9346AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 9347BZ 93485480) 9349 9350Implemented a memory cleanup at the end of the execution of each 9351iteration 9352of an AML While() loop, preventing the accumulation of outstanding 9353objects. 9354(Valery Podrezov, BZ 5427) 9355 9356Eliminated a chunk of duplicate code in the object resolution code. 9357(Valery 9358Podrezov, BZ 5336) 9359 9360Fixed several warnings during the 64-bit code generation. 9361 9362The AcpiSrc source code conversion tool now inserts one line of 9363whitespace 9364after an if() statement that is followed immediately by a comment, 9365improving 9366readability of the Linux code. 9367 9368Code and Data Size: The current and previous library sizes for the core 9369subsystem are shown below. These are the code and data sizes for the 9370acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9371These 9372values do not include any ACPI driver or OSPM code. The debug version of 9373the 9374code includes the debug output trace mechanism and has a much larger code 9375and data size. Note that these values will vary depending on the 9376efficiency 9377of the compiler and the compiler options used during generation. 9378 9379 Previous Release: 9380 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9381 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9382 Current Release: 9383 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 9384 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 9385 9386 93872) iASL Compiler/Disassembler: 9388 9389Fixed a problem with the disassembly of a BankField operator with a 9390complex 9391expression for the BankValue parameter. 9392 9393---------------------------------------- 939427 January 2006. Summary of changes for version 20060127: 9395 93961) ACPI CA Core Subsystem: 9397 9398Implemented support in the Resource Manager to allow unresolved 9399namestring 9400references within resource package objects for the _PRT method. This 9401support 9402is in addition to the previously implemented unresolved reference support 9403within the AML parser. If the interpreter slack mode is enabled, these 9404unresolved references will be passed through to the caller as a NULL 9405package 9406entry. 9407 9408Implemented and deployed new macros and functions for error and warning 9409messages across the subsystem. These macros are simpler and generate less 9410code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 9411ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 9412macros remain defined to allow ACPI drivers time to migrate to the new 9413macros. 9414 9415Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 9416the 9417Acquire/Release Lock OSL interfaces. 9418 9419Fixed a problem where Alias ASL operators are sometimes not correctly 9420resolved, in both the interpreter and the iASL compiler. 9421 9422Fixed several problems with the implementation of the 9423ConcatenateResTemplate 9424ASL operator. As per the ACPI specification, zero length buffers are now 9425treated as a single EndTag. One-length buffers always cause a fatal 9426exception. Non-zero length buffers that do not end with a full 2-byte 9427EndTag 9428cause a fatal exception. 9429 9430Fixed a possible structure overwrite in the AcpiGetObjectInfo external 9431interface. (With assistance from Thomas Renninger) 9432 9433Code and Data Size: The current and previous library sizes for the core 9434subsystem are shown below. These are the code and data sizes for the 9435acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9436These 9437values do not include any ACPI driver or OSPM code. The debug version of 9438the 9439code includes the debug output trace mechanism and has a much larger code 9440and data size. Note that these values will vary depending on the 9441efficiency 9442of the compiler and the compiler options used during generation. 9443 9444 Previous Release: 9445 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9446 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9447 Current Release: 9448 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 9449 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 9450 9451 94522) iASL Compiler/Disassembler: 9453 9454Fixed an internal error that was generated for any forward references to 9455ASL 9456Alias objects. 9457 9458---------------------------------------- 945913 January 2006. Summary of changes for version 20060113: 9460 94611) ACPI CA Core Subsystem: 9462 9463Added 2006 copyright to all module headers and signons. This affects 9464virtually every file in the ACPICA core subsystem, iASL compiler, and the 9465utilities. 9466 9467Enhanced the ACPICA error reporting in order to simplify user migration 9468to 9469the non-debug version of ACPICA. Replaced all instances of the 9470ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 9471debug 9472levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 9473respectively. This preserves all error and warning messages in the non- 9474debug 9475version of the ACPICA code (this has been referred to as the "debug lite" 9476option.) Over 200 cases were converted to create a total of over 380 9477error/warning messages across the ACPICA code. This increases the code 9478and 9479data size of the default non-debug version of the code somewhat (about 948013K), 9481but all error/warning reporting may be disabled if desired (and code 9482eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 9483configuration option. The size of the debug version of ACPICA remains 9484about 9485the same. 9486 9487Fixed a memory leak within the AML Debugger "Set" command. One object was 9488not properly deleted for every successful invocation of the command. 9489 9490Code and Data Size: The current and previous library sizes for the core 9491subsystem are shown below. These are the code and data sizes for the 9492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9493These 9494values do not include any ACPI driver or OSPM code. The debug version of 9495the 9496code includes the debug output trace mechanism and has a much larger code 9497and data size. Note that these values will vary depending on the 9498efficiency 9499of the compiler and the compiler options used during generation. 9500 9501 Previous Release: 9502 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9503 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9504 Current Release: 9505 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 9506 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 9507 9508 95092) iASL Compiler/Disassembler: 9510 9511The compiler now officially supports the ACPI 3.0a specification that was 9512released on December 30, 2005. (Specification is available at 9513www.acpi.info) 9514 9515---------------------------------------- 951616 December 2005. Summary of changes for version 20051216: 9517 95181) ACPI CA Core Subsystem: 9519 9520Implemented optional support to allow unresolved names within ASL Package 9521objects. A null object is inserted in the package when a named reference 9522cannot be located in the current namespace. Enabled via the interpreter 9523slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 9524machines 9525that contain such code. 9526 9527Implemented an optimization to the initialization sequence that can 9528improve 9529boot time. During ACPI device initialization, the _STA method is now run 9530if 9531and only if the _INI method exists. The _STA method is used to determine 9532if 9533the device is present; An _INI can only be run if _STA returns present, 9534but 9535it is a waste of time to run the _STA method if the _INI does not exist. 9536(Prototype and assistance from Dong Wei) 9537 9538Implemented use of the C99 uintptr_t for the pointer casting macros if it 9539is 9540available in the current compiler. Otherwise, the default (void *) cast 9541is 9542used as before. 9543 9544Fixed some possible memory leaks found within the execution path of the 9545Break, Continue, If, and CreateField operators. (Valery Podrezov) 9546 9547Fixed a problem introduced in the 20051202 release where an exception is 9548generated during method execution if a control method attempts to declare 9549another method. 9550 9551Moved resource descriptor string constants that are used by both the AML 9552disassembler and AML debugger to the common utilities directory so that 9553these components are independent. 9554 9555Implemented support in the AcpiExec utility (-e switch) to globally 9556ignore 9557exceptions during control method execution (method is not aborted.) 9558 9559Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 9560generation. 9561 9562Code and Data Size: The current and previous library sizes for the core 9563subsystem are shown below. These are the code and data sizes for the 9564acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9565These 9566values do not include any ACPI driver or OSPM code. The debug version of 9567the 9568code includes the debug output trace mechanism and has a much larger code 9569and data size. Note that these values will vary depending on the 9570efficiency 9571of the compiler and the compiler options used during generation. 9572 9573 Previous Release: 9574 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9575 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9576 Current Release: 9577 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 9578 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 9579 9580 95812) iASL Compiler/Disassembler: 9582 9583Fixed a problem where a CPU stack overflow fault could occur if a 9584recursive 9585method call was made from within a Return statement. 9586 9587---------------------------------------- 958802 December 2005. Summary of changes for version 20051202: 9589 95901) ACPI CA Core Subsystem: 9591 9592Modified the parsing of control methods to no longer create namespace 9593objects during the first pass of the parse. Objects are now created only 9594during the execute phase, at the moment the namespace creation operator 9595is 9596encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 9597This 9598should eliminate ALREADY_EXISTS exceptions seen on some machines where 9599reentrant control methods are protected by an AML mutex. The mutex will 9600now 9601correctly block multiple threads from attempting to create the same 9602object 9603more than once. 9604 9605Increased the number of available Owner Ids for namespace object tracking 9606from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 9607on 9608some machines with a large number of ACPI tables (either static or 9609dynamic). 9610 9611Fixed a problem with the AcpiExec utility where a fault could occur when 9612the 9613-b switch (batch mode) is used. 9614 9615Enhanced the namespace dump routine to output the owner ID for each 9616namespace object. 9617 9618Code and Data Size: The current and previous library sizes for the core 9619subsystem are shown below. These are the code and data sizes for the 9620acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9621These 9622values do not include any ACPI driver or OSPM code. The debug version of 9623the 9624code includes the debug output trace mechanism and has a much larger code 9625and data size. Note that these values will vary depending on the 9626efficiency 9627of the compiler and the compiler options used during generation. 9628 9629 Previous Release: 9630 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9631 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9632 Current Release: 9633 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9634 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 9635 9636 96372) iASL Compiler/Disassembler: 9638 9639Fixed a parse error during compilation of certain Switch/Case constructs. 9640To 9641simplify the parse, the grammar now allows for multiple Default 9642statements 9643and this error is now detected and flagged during the analysis phase. 9644 9645Disassembler: The disassembly now includes the contents of the original 9646table header within a comment at the start of the file. This includes the 9647name and version of the original ASL compiler. 9648 9649---------------------------------------- 965017 November 2005. Summary of changes for version 20051117: 9651 96521) ACPI CA Core Subsystem: 9653 9654Fixed a problem in the AML parser where the method thread count could be 9655decremented below zero if any errors occurred during the method parse 9656phase. 9657This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 9658machines. 9659This also fixed a related regression with the mechanism that detects and 9660corrects methods that cannot properly handle reentrancy (related to the 9661deployment of the new OwnerId mechanism.) 9662 9663Eliminated the pre-parsing of control methods (to detect errors) during 9664table load. Related to the problem above, this was causing unwind issues 9665if 9666any errors occurred during the parse, and it seemed to be overkill. A 9667table 9668load should not be aborted if there are problems with any single control 9669method, thus rendering this feature rather pointless. 9670 9671Fixed a problem with the new table-driven resource manager where an 9672internal 9673buffer overflow could occur for small resource templates. 9674 9675Implemented a new external interface, AcpiGetVendorResource. This 9676interface 9677will find and return a vendor-defined resource descriptor within a _CRS 9678or 9679_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 9680Helgaas. 9681 9682Removed the length limit (200) on string objects as per the upcoming ACPI 96833.0A specification. This affects the following areas of the interpreter: 96841) 9685any implicit conversion of a Buffer to a String, 2) a String object 9686result 9687of the ASL Concatentate operator, 3) the String object result of the ASL 9688ToString operator. 9689 9690Fixed a problem in the Windows OS interface layer (OSL) where a 9691WAIT_FOREVER 9692on a semaphore object would incorrectly timeout. This allows the 9693multithreading features of the AcpiExec utility to work properly under 9694Windows. 9695 9696Updated the Linux makefiles for the iASL compiler and AcpiExec to include 9697the recently added file named "utresrc.c". 9698 9699Code and Data Size: The current and previous library sizes for the core 9700subsystem are shown below. These are the code and data sizes for the 9701acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9702These 9703values do not include any ACPI driver or OSPM code. The debug version of 9704the 9705code includes the debug output trace mechanism and has a much larger code 9706and data size. Note that these values will vary depending on the 9707efficiency 9708of the compiler and the compiler options used during generation. 9709 9710 Previous Release: 9711 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9712 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9713 Current Release: 9714 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 9715 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9716 9717 97182) iASL Compiler/Disassembler: 9719 9720Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 9721specification. For the iASL compiler, this means that string literals 9722within 9723the source ASL can be of any length. 9724 9725Enhanced the listing output to dump the AML code for resource descriptors 9726immediately after the ASL code for each descriptor, instead of in a block 9727at 9728the end of the entire resource template. 9729 9730Enhanced the compiler debug output to dump the entire original parse tree 9731constructed during the parse phase, before any transforms are applied to 9732the 9733tree. The transformed tree is dumped also. 9734 9735---------------------------------------- 973602 November 2005. Summary of changes for version 20051102: 9737 97381) ACPI CA Core Subsystem: 9739 9740Modified the subsystem initialization sequence to improve GPE support. 9741The 9742GPE initialization has been split into two parts in order to defer 9743execution 9744of the _PRW methods (Power Resources for Wake) until after the hardware 9745is 9746fully initialized and the SCI handler is installed. This allows the _PRW 9747methods to access fields protected by the Global Lock. This will fix 9748systems 9749where a NO_GLOBAL_LOCK exception has been seen during initialization. 9750 9751Converted the ACPI internal object disassemble and display code within 9752the 9753AML debugger to fully table-driven operation, reducing code size and 9754increasing maintainability. 9755 9756Fixed a regression with the ConcatenateResTemplate() ASL operator 9757introduced 9758in the 20051021 release. 9759 9760Implemented support for "local" internal ACPI object types within the 9761debugger "Object" command and the AcpiWalkNamespace external interfaces. 9762These local types include RegionFields, BankFields, IndexFields, Alias, 9763and 9764reference objects. 9765 9766Moved common AML resource handling code into a new file, "utresrc.c". 9767This 9768code is shared by both the Resource Manager and the AML Debugger. 9769 9770Code and Data Size: The current and previous library sizes for the core 9771subsystem are shown below. These are the code and data sizes for the 9772acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9773These 9774values do not include any ACPI driver or OSPM code. The debug version of 9775the 9776code includes the debug output trace mechanism and has a much larger code 9777and data size. Note that these values will vary depending on the 9778efficiency 9779of the compiler and the compiler options used during generation. 9780 9781 Previous Release: 9782 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 9783 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 9784 Current Release: 9785 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 9786 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 9787 9788 97892) iASL Compiler/Disassembler: 9790 9791Fixed a problem with very large initializer lists (more than 4000 9792elements) 9793for both Buffer and Package objects where the parse stack could overflow. 9794 9795Enhanced the pre-compile source code scan for non-ASCII characters to 9796ignore 9797characters within comment fields. The scan is now always performed and is 9798no 9799longer optional, detecting invalid characters within a source file 9800immediately rather than during the parse phase or later. 9801 9802Enhanced the ASL grammar definition to force early reductions on all 9803list- 9804style grammar elements so that the overall parse stack usage is greatly 9805reduced. This should improve performance and reduce the possibility of 9806parse 9807stack overflow. 9808 9809Eliminated all reduce/reduce conflicts in the iASL parser generation. 9810Also, 9811with the addition of a %expected statement, the compiler generates from 9812source with no warnings. 9813 9814Fixed a possible segment fault in the disassembler if the input filename 9815does not contain a "dot" extension (Thomas Renninger). 9816 9817---------------------------------------- 981821 October 2005. Summary of changes for version 20051021: 9819 98201) ACPI CA Core Subsystem: 9821 9822Implemented support for the EM64T and other x86-64 processors. This 9823essentially entails recognizing that these processors support non-aligned 9824memory transfers. Previously, all 64-bit processors were assumed to lack 9825hardware support for non-aligned transfers. 9826 9827Completed conversion of the Resource Manager to nearly full table-driven 9828operation. Specifically, the resource conversion code (convert AML to 9829internal format and the reverse) and the debug code to dump internal 9830resource descriptors are fully table-driven, reducing code and data size 9831and 9832improving maintainability. 9833 9834The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 9835word 9836on 64-bit processors instead of a fixed 32-bit word. (With assistance 9837from 9838Alexey Starikovskiy) 9839 9840Implemented support within the resource conversion code for the Type- 9841Specific byte within the various ACPI 3.0 *WordSpace macros. 9842 9843Fixed some issues within the resource conversion code for the type- 9844specific 9845flags for both Memory and I/O address resource descriptors. For Memory, 9846implemented support for the MTP and TTP flags. For I/O, split the TRS and 9847TTP flags into two separate fields. 9848 9849Code and Data Size: The current and previous library sizes for the core 9850subsystem are shown below. These are the code and data sizes for the 9851acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9852These 9853values do not include any ACPI driver or OSPM code. The debug version of 9854the 9855code includes the debug output trace mechanism and has a much larger code 9856and data size. Note that these values will vary depending on the 9857efficiency 9858of the compiler and the compiler options used during generation. 9859 9860 Previous Release: 9861 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 9862 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 9863 Current Release: 9864 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 9865 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 9866 9867 9868 98692) iASL Compiler/Disassembler: 9870 9871Relaxed a compiler restriction that disallowed a ResourceIndex byte if 9872the 9873corresponding ResourceSource string was not also present in a resource 9874descriptor declaration. This restriction caused problems with existing 9875AML/ASL code that includes the Index byte without the string. When such 9876AML 9877was disassembled, it could not be compiled without modification. Further, 9878the modified code created a resource template with a different size than 9879the 9880original, breaking code that used fixed offsets into the resource 9881template 9882buffer. 9883 9884Removed a recent feature of the disassembler to ignore a lone 9885ResourceIndex 9886byte. This byte is now emitted if present so that the exact AML can be 9887reproduced when the disassembled code is recompiled. 9888 9889Improved comments and text alignment for the resource descriptor code 9890emitted by the disassembler. 9891 9892Implemented disassembler support for the ACPI 3.0 AccessSize field within 9893a 9894Register() resource descriptor. 9895 9896---------------------------------------- 989730 September 2005. Summary of changes for version 20050930: 9898 98991) ACPI CA Core Subsystem: 9900 9901Completed a major overhaul of the Resource Manager code - specifically, 9902optimizations in the area of the AML/internal resource conversion code. 9903The 9904code has been optimized to simplify and eliminate duplicated code, CPU 9905stack 9906use has been decreased by optimizing function parameters and local 9907variables, and naming conventions across the manager have been 9908standardized 9909for clarity and ease of maintenance (this includes function, parameter, 9910variable, and struct/typedef names.) The update may force changes in some 9911driver code, depending on how resources are handled by the host OS. 9912 9913All Resource Manager dispatch and information tables have been moved to a 9914single location for clarity and ease of maintenance. One new file was 9915created, named "rsinfo.c". 9916 9917The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 9918guarantee that the argument is not evaluated twice, making them less 9919prone 9920to macro side-effects. However, since there exists the possibility of 9921additional stack use if a particular compiler cannot optimize them (such 9922as 9923in the debug generation case), the original macros are optionally 9924available. 9925Note that some invocations of the return_VALUE macro may now cause size 9926mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 9927to 9928eliminate these. (From Randy Dunlap) 9929 9930Implemented a new mechanism to enable debug tracing for individual 9931control 9932methods. A new external interface, AcpiDebugTrace, is provided to enable 9933this mechanism. The intent is to allow the host OS to easily enable and 9934disable tracing for problematic control methods. This interface can be 9935easily exposed to a user or debugger interface if desired. See the file 9936psxface.c for details. 9937 9938AcpiUtCallocate will now return a valid pointer if a length of zero is 9939specified - a length of one is used and a warning is issued. This matches 9940the behavior of AcpiUtAllocate. 9941 9942Code and Data Size: The current and previous library sizes for the core 9943subsystem are shown below. These are the code and data sizes for the 9944acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9945These 9946values do not include any ACPI driver or OSPM code. The debug version of 9947the 9948code includes the debug output trace mechanism and has a much larger code 9949and data size. Note that these values will vary depending on the 9950efficiency 9951of the compiler and the compiler options used during generation. 9952 9953 Previous Release: 9954 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 9955 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 9956 Current Release: 9957 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 9958 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 9959 9960 99612) iASL Compiler/Disassembler: 9962 9963A remark is issued if the effective compile-time length of a package or 9964buffer is zero. Previously, this was a warning. 9965 9966---------------------------------------- 996716 September 2005. Summary of changes for version 20050916: 9968 99691) ACPI CA Core Subsystem: 9970 9971Fixed a problem within the Resource Manager where support for the Generic 9972Register descriptor was not fully implemented. This descriptor is now 9973fully 9974recognized, parsed, disassembled, and displayed. 9975 9976Completely restructured the Resource Manager code to utilize table-driven 9977dispatch and lookup, eliminating many of the large switch() statements. 9978This 9979reduces overall subsystem code size and code complexity. Affects the 9980resource parsing and construction, disassembly, and debug dump output. 9981 9982Cleaned up and restructured the debug dump output for all resource 9983descriptors. Improved readability of the output and reduced code size. 9984 9985Fixed a problem where changes to internal data structures caused the 9986optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 9987 9988Code and Data Size: The current and previous library sizes for the core 9989subsystem are shown below. These are the code and data sizes for the 9990acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 9991These 9992values do not include any ACPI driver or OSPM code. The debug version of 9993the 9994code includes the debug output trace mechanism and has a much larger code 9995and data size. Note that these values will vary depending on the 9996efficiency 9997of the compiler and the compiler options used during generation. 9998 9999 Previous Release: 10000 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 10001 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 10002 Current Release: 10003 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 10004 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 10005 10006 100072) iASL Compiler/Disassembler: 10008 10009Updated the disassembler to automatically insert an EndDependentFn() 10010macro 10011into the ASL stream if this macro is missing in the original AML code, 10012simplifying compilation of the resulting ASL module. 10013 10014Fixed a problem in the disassembler where a disassembled ResourceSource 10015string (within a large resource descriptor) was not surrounded by quotes 10016and 10017not followed by a comma, causing errors when the resulting ASL module was 10018compiled. Also, escape sequences within a ResourceSource string are now 10019handled correctly (especially "\\") 10020 10021---------------------------------------- 1002202 September 2005. Summary of changes for version 20050902: 10023 100241) ACPI CA Core Subsystem: 10025 10026Fixed a problem with the internal Owner ID allocation and deallocation 10027mechanisms for control method execution and recursive method invocation. 10028This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 10029messages seen on some systems. Recursive method invocation depth is 10030currently limited to 255. (Alexey Starikovskiy) 10031 10032Completely eliminated all vestiges of support for the "module-level 10033executable code" until this support is fully implemented and debugged. 10034This 10035should eliminate the NO_RETURN_VALUE exceptions seen during table load on 10036some systems that invoke this support. 10037 10038Fixed a problem within the resource manager code where the transaction 10039flags 10040for a 64-bit address descriptor were handled incorrectly in the type- 10041specific flag byte. 10042 10043Consolidated duplicate code within the address descriptor resource 10044manager 10045code, reducing overall subsystem code size. 10046 10047Fixed a fault when using the AML debugger "disassemble" command to 10048disassemble individual control methods. 10049 10050Removed references to the "release_current" directory within the Unix 10051release package. 10052 10053Code and Data Size: The current and previous core subsystem library sizes 10054are shown below. These are the code and data sizes for the acpica.lib 10055produced by the Microsoft Visual C++ 6.0 compiler. These values do not 10056include any ACPI driver or OSPM code. The debug version of the code 10057includes 10058the debug output trace mechanism and has a much larger code and data 10059size. 10060Note that these values will vary depending on the efficiency of the 10061compiler 10062and the compiler options used during generation. 10063 10064 Previous Release: 10065 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10066 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 10067 Current Release: 10068 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 10069 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 10070 10071 100722) iASL Compiler/Disassembler: 10073 10074Implemented an error check for illegal duplicate values in the interrupt 10075and 10076dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 10077Interrupt(). 10078 10079Implemented error checking for the Irq() and IrqNoFlags() macros to 10080detect 10081too many values in the interrupt list (16 max) and invalid values in the 10082list (range 0 - 15) 10083 10084The maximum length string literal within an ASL file is now restricted to 10085200 characters as per the ACPI specification. 10086 10087Fixed a fault when using the -ln option (generate namespace listing). 10088 10089Implemented an error check to determine if a DescriptorName within a 10090resource descriptor has already been used within the current scope. 10091 10092---------------------------------------- 1009315 August 2005. Summary of changes for version 20050815: 10094 100951) ACPI CA Core Subsystem: 10096 10097Implemented a full bytewise compare to determine if a table load request 10098is 10099attempting to load a duplicate table. The compare is performed if the 10100table 10101signatures and table lengths match. This will allow different tables with 10102the same OEM Table ID and revision to be loaded - probably against the 10103ACPI 10104specification, but discovered in the field nonetheless. 10105 10106Added the changes.txt logfile to each of the zipped release packages. 10107 10108Code and Data Size: Current and previous core subsystem library sizes are 10109shown below. These are the code and data sizes for the acpica.lib 10110produced 10111by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10112any ACPI driver or OSPM code. The debug version of the code includes the 10113debug output trace mechanism and has a much larger code and data size. 10114Note 10115that these values will vary depending on the efficiency of the compiler 10116and 10117the compiler options used during generation. 10118 10119 Previous Release: 10120 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10121 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 10122 Current Release: 10123 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10124 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 10125 10126 101272) iASL Compiler/Disassembler: 10128 10129Fixed a problem where incorrect AML code could be generated for Package 10130objects if optimization is disabled (via the -oa switch). 10131 10132Fixed a problem with where incorrect AML code is generated for variable- 10133length packages when the package length is not specified and the number 10134of 10135initializer values is greater than 255. 10136 10137 10138---------------------------------------- 1013929 July 2005. Summary of changes for version 20050729: 10140 101411) ACPI CA Core Subsystem: 10142 10143Implemented support to ignore an attempt to install/load a particular 10144ACPI 10145table more than once. Apparently there exists BIOS code that repeatedly 10146attempts to load the same SSDT upon certain events. With assistance from 10147Venkatesh Pallipadi. 10148 10149Restructured the main interface to the AML parser in order to correctly 10150handle all exceptional conditions. This will prevent leakage of the 10151OwnerId 10152resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 10153some 10154machines. With assistance from Alexey Starikovskiy. 10155 10156Support for "module level code" has been disabled in this version due to 10157a 10158number of issues that have appeared on various machines. The support can 10159be 10160enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 10161compilation. When the issues are fully resolved, the code will be enabled 10162by 10163default again. 10164 10165Modified the internal functions for debug print support to define the 10166FunctionName parameter as a (const char *) for compatibility with 10167compiler 10168built-in macros such as __FUNCTION__, etc. 10169 10170Linted the entire ACPICA source tree for both 32-bit and 64-bit. 10171 10172Implemented support to display an object count summary for the AML 10173Debugger 10174commands Object and Methods. 10175 10176Code and Data Size: Current and previous core subsystem library sizes are 10177shown below. These are the code and data sizes for the acpica.lib 10178produced 10179by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10180any ACPI driver or OSPM code. The debug version of the code includes the 10181debug output trace mechanism and has a much larger code and data size. 10182Note 10183that these values will vary depending on the efficiency of the compiler 10184and 10185the compiler options used during generation. 10186 10187 Previous Release: 10188 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10189 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10190 Current Release: 10191 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 10192 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 10193 10194 101952) iASL Compiler/Disassembler: 10196 10197Fixed a regression that appeared in the 20050708 version of the compiler 10198where an error message was inadvertently emitted for invocations of the 10199_OSI 10200reserved control method. 10201 10202---------------------------------------- 1020308 July 2005. Summary of changes for version 20050708: 10204 102051) ACPI CA Core Subsystem: 10206 10207The use of the CPU stack in the debug version of the subsystem has been 10208considerably reduced. Previously, a debug structure was declared in every 10209function that used the debug macros. This structure has been removed in 10210favor of declaring the individual elements as parameters to the debug 10211functions. This reduces the cumulative stack use during nested execution 10212of 10213ACPI function calls at the cost of a small increase in the code size of 10214the 10215debug version of the subsystem. With assistance from Alexey Starikovskiy 10216and 10217Len Brown. 10218 10219Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 10220headers to define a macro that will return the current function name at 10221runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 10222by 10223the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 10224compiler-dependent header, the function name is saved on the CPU stack 10225(one 10226pointer per function.) This mechanism is used because apparently there 10227exists no standard ANSI-C defined macro that that returns the function 10228name. 10229 10230Redesigned and reimplemented the "Owner ID" mechanism used to track 10231namespace objects created/deleted by ACPI tables and control method 10232execution. A bitmap is now used to allocate and free the IDs, thus 10233solving 10234the wraparound problem present in the previous implementation. The size 10235of 10236the namespace node descriptor was reduced by 2 bytes as a result (Alexey 10237Starikovskiy). 10238 10239Removed the UINT32_BIT and UINT16_BIT types that were used for the 10240bitfield 10241flag definitions within the headers for the predefined ACPI tables. These 10242have been replaced by UINT8_BIT in order to increase the code portability 10243of 10244the subsystem. If the use of UINT8 remains a problem, we may be forced to 10245eliminate bitfields entirely because of a lack of portability. 10246 10247Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 10248This 10249is a frequently used function and this improvement increases the 10250performance 10251of the entire subsystem (Alexey Starikovskiy). 10252 10253Fixed several possible memory leaks and the inverse - premature object 10254deletion (Alexey Starikovskiy). 10255 10256Code and Data Size: Current and previous core subsystem library sizes are 10257shown below. These are the code and data sizes for the acpica.lib 10258produced 10259by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10260any ACPI driver or OSPM code. The debug version of the code includes the 10261debug output trace mechanism and has a much larger code and data size. 10262Note 10263that these values will vary depending on the efficiency of the compiler 10264and 10265the compiler options used during generation. 10266 10267 Previous Release: 10268 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10269 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10270 Current Release: 10271 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 10272 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 10273 10274---------------------------------------- 1027524 June 2005. Summary of changes for version 20050624: 10276 102771) ACPI CA Core Subsystem: 10278 10279Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 10280the host-defined cache object. This allows the OSL implementation to 10281define 10282and type this object in any manner desired, simplifying the OSL 10283implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 10284Linux, and should be defined in the OS-specific header file for other 10285operating systems as required. 10286 10287Changed the interface to AcpiOsAcquireObject to directly return the 10288requested object as the function return (instead of ACPI_STATUS.) This 10289change was made for performance reasons, since this is the purpose of the 10290interface in the first place. AcpiOsAcquireObject is now similar to the 10291AcpiOsAllocate interface. 10292 10293Implemented a new AML debugger command named Businfo. This command 10294displays 10295information about all devices that have an associate _PRT object. The 10296_ADR, 10297_HID, _UID, and _CID are displayed for these devices. 10298 10299Modified the initialization sequence in AcpiInitializeSubsystem to call 10300the 10301OSL interface AcpiOslInitialize first, before any local initialization. 10302This 10303change was required because the global initialization now calls OSL 10304interfaces. 10305 10306Enhanced the Dump command to display the entire contents of Package 10307objects 10308(including all sub-objects and their values.) 10309 10310Restructured the code base to split some files because of size and/or 10311because the code logically belonged in a separate file. New files are 10312listed 10313below. All makefiles and project files included in the ACPI CA release 10314have 10315been updated. 10316 utilities/utcache.c /* Local cache interfaces */ 10317 utilities/utmutex.c /* Local mutex support */ 10318 utilities/utstate.c /* State object support */ 10319 interpreter/parser/psloop.c /* Main AML parse loop */ 10320 10321Code and Data Size: Current and previous core subsystem library sizes are 10322shown below. These are the code and data sizes for the acpica.lib 10323produced 10324by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10325any ACPI driver or OSPM code. The debug version of the code includes the 10326debug output trace mechanism and has a much larger code and data size. 10327Note 10328that these values will vary depending on the efficiency of the compiler 10329and 10330the compiler options used during generation. 10331 10332 Previous Release: 10333 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10334 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10335 Current Release: 10336 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 10337 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 10338 10339 103402) iASL Compiler/Disassembler: 10341 10342Fixed a regression introduced in version 20050513 where the use of a 10343Package 10344object within a Case() statement caused a compile time exception. The 10345original behavior has been restored (a Match() operator is emitted.) 10346 10347---------------------------------------- 1034817 June 2005. Summary of changes for version 20050617: 10349 103501) ACPI CA Core Subsystem: 10351 10352Moved the object cache operations into the OS interface layer (OSL) to 10353allow 10354the host OS to handle these operations if desired (for example, the Linux 10355OSL will invoke the slab allocator). This support is optional; the 10356compile 10357time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 10358cache 10359code in the ACPI CA core. The new OSL interfaces are shown below. See 10360utalloc.c for an example implementation, and acpiosxf.h for the exact 10361interface definitions. With assistance from Alexey Starikovskiy. 10362 AcpiOsCreateCache 10363 AcpiOsDeleteCache 10364 AcpiOsPurgeCache 10365 AcpiOsAcquireObject 10366 AcpiOsReleaseObject 10367 10368Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 10369return 10370and restore a flags parameter. This fits better with many OS lock models. 10371Note: the current execution state (interrupt handler or not) is no longer 10372passed to these interfaces. If necessary, the OSL must determine this 10373state 10374by itself, a simple and fast operation. With assistance from Alexey 10375Starikovskiy. 10376 10377Fixed a problem in the ACPI table handling where a valid XSDT was assumed 10378present if the revision of the RSDP was 2 or greater. According to the 10379ACPI 10380specification, the XSDT is optional in all cases, and the table manager 10381therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 10382Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 10383contain 10384only the RSDT. 10385 10386Fixed an interpreter problem with the Mid() operator in the case of an 10387input 10388string where the resulting output string is of zero length. It now 10389correctly 10390returns a valid, null terminated string object instead of a string object 10391with a null pointer. 10392 10393Fixed a problem with the control method argument handling to allow a 10394store 10395to an Arg object that already contains an object of type Device. The 10396Device 10397object is now correctly overwritten. Previously, an error was returned. 10398 10399 10400Enhanced the debugger Find command to emit object values in addition to 10401the 10402found object pathnames. The output format is the same as the dump 10403namespace 10404command. 10405 10406Enhanced the debugger Set command. It now has the ability to set the 10407value 10408of any Named integer object in the namespace (Previously, only method 10409locals 10410and args could be set.) 10411 10412Code and Data Size: Current and previous core subsystem library sizes are 10413shown below. These are the code and data sizes for the acpica.lib 10414produced 10415by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10416any ACPI driver or OSPM code. The debug version of the code includes the 10417debug output trace mechanism and has a much larger code and data size. 10418Note 10419that these values will vary depending on the efficiency of the compiler 10420and 10421the compiler options used during generation. 10422 10423 Previous Release: 10424 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10425 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10426 Current Release: 10427 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 10428 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 10429 10430 104312) iASL Compiler/Disassembler: 10432 10433Fixed a regression in the disassembler where if/else/while constructs 10434were 10435output incorrectly. This problem was introduced in the previous release 10436(20050526). This problem also affected the single-step disassembly in the 10437debugger. 10438 10439Fixed a problem where compiling the reserved _OSI method would randomly 10440(but 10441rarely) produce compile errors. 10442 10443Enhanced the disassembler to emit compilable code in the face of 10444incorrect 10445AML resource descriptors. If the optional ResourceSourceIndex is present, 10446but the ResourceSource is not, do not emit the ResourceSourceIndex in the 10447disassembly. Otherwise, the resulting code cannot be compiled without 10448errors. 10449 10450---------------------------------------- 1045126 May 2005. Summary of changes for version 20050526: 10452 104531) ACPI CA Core Subsystem: 10454 10455Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 10456the module level (not within a control method.) These opcodes are 10457executed 10458exactly once at the time the table is loaded. This type of code was legal 10459up 10460until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 10461in 10462order to provide backwards compatibility with earlier BIOS 10463implementations. 10464This eliminates the "Encountered executable code at module level" warning 10465that was previously generated upon detection of such code. 10466 10467Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 10468inadvertently be generated during the lookup of namespace objects in the 10469second pass parse of ACPI tables and control methods. It appears that 10470this 10471problem could occur during the resolution of forward references to 10472namespace 10473objects. 10474 10475Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 10476corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 10477allows the deadlock detection debug code to be compiled out in the normal 10478case, improving mutex performance (and overall subsystem performance) 10479considerably. 10480 10481Implemented a handful of miscellaneous fixes for possible memory leaks on 10482error conditions and error handling control paths. These fixes were 10483suggested by FreeBSD and the Coverity Prevent source code analysis tool. 10484 10485Added a check for a null RSDT pointer in AcpiGetFirmwareTable 10486(tbxfroot.c) 10487to prevent a fault in this error case. 10488 10489Code and Data Size: Current and previous core subsystem library sizes are 10490shown below. These are the code and data sizes for the acpica.lib 10491produced 10492by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10493any ACPI driver or OSPM code. The debug version of the code includes the 10494debug output trace mechanism and has a much larger code and data size. 10495Note 10496that these values will vary depending on the efficiency of the compiler 10497and 10498the compiler options used during generation. 10499 10500 Previous Release: 10501 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10502 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10503 Current Release: 10504 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 10505 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 10506 10507 105082) iASL Compiler/Disassembler: 10509 10510Implemented support to allow Type 1 and Type 2 ASL operators to appear at 10511the module level (not within a control method.) These operators will be 10512executed once at the time the table is loaded. This type of code was 10513legal 10514up until the release of ACPI 2.0B (2002) and is now supported by the iASL 10515compiler in order to provide backwards compatibility with earlier BIOS 10516ASL 10517code. 10518 10519The ACPI integer width (specified via the table revision ID or the -r 10520override, 32 or 64 bits) is now used internally during compile-time 10521constant 10522folding to ensure that constants are truncated to 32 bits if necessary. 10523Previously, the revision ID value was only emitted in the AML table 10524header. 10525 10526An error message is now generated for the Mutex and Method operators if 10527the 10528SyncLevel parameter is outside the legal range of 0 through 15. 10529 10530Fixed a problem with the Method operator ParameterTypes list handling 10531(ACPI 105323.0). Previously, more than 2 types or 2 arguments generated a syntax 10533error. 10534The actual underlying implementation of method argument typechecking is 10535still under development, however. 10536 10537---------------------------------------- 1053813 May 2005. Summary of changes for version 20050513: 10539 105401) ACPI CA Core Subsystem: 10541 10542Implemented support for PCI Express root bridges -- added support for 10543device 10544PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 10545 10546The interpreter now automatically truncates incoming 64-bit constants to 1054732 10548bits if currently executing out of a 32-bit ACPI table (Revision < 2). 10549This 10550also affects the iASL compiler constant folding. (Note: as per below, the 10551iASL compiler no longer allows 64-bit constants within 32-bit tables.) 10552 10553Fixed a problem where string and buffer objects with "static" pointers 10554(pointers to initialization data within an ACPI table) were not handled 10555consistently. The internal object copy operation now always copies the 10556data 10557to a newly allocated buffer, regardless of whether the source object is 10558static or not. 10559 10560Fixed a problem with the FromBCD operator where an implicit result 10561conversion was improperly performed while storing the result to the 10562target 10563operand. Since this is an "explicit conversion" operator, the implicit 10564conversion should never be performed on the output. 10565 10566Fixed a problem with the CopyObject operator where a copy to an existing 10567named object did not always completely overwrite the existing object 10568stored 10569at name. Specifically, a buffer-to-buffer copy did not delete the 10570existing 10571buffer. 10572 10573Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 10574and 10575structs for consistency. 10576 10577Code and Data Size: Current and previous core subsystem library sizes are 10578shown below. These are the code and data sizes for the acpica.lib 10579produced 10580by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10581any ACPI driver or OSPM code. The debug version of the code includes the 10582debug output trace mechanism and has a much larger code and data size. 10583Note 10584that these values will vary depending on the efficiency of the compiler 10585and 10586the compiler options used during generation. 10587 10588 Previous Release: 10589 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10590 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10591 Current Release: (Same sizes) 10592 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10593 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10594 10595 105962) iASL Compiler/Disassembler: 10597 10598The compiler now emits a warning if an attempt is made to generate a 64- 10599bit 10600integer constant from within a 32-bit ACPI table (Revision < 2). The 10601integer 10602is truncated to 32 bits. 10603 10604Fixed a problem with large package objects: if the static length of the 10605package is greater than 255, the "variable length package" opcode is 10606emitted. Previously, this caused an error. This requires an update to the 10607ACPI spec, since it currently (incorrectly) states that packages larger 10608than 10609255 elements are not allowed. 10610 10611The disassembler now correctly handles variable length packages and 10612packages 10613larger than 255 elements. 10614 10615---------------------------------------- 1061608 April 2005. Summary of changes for version 20050408: 10617 106181) ACPI CA Core Subsystem: 10619 10620Fixed three cases in the interpreter where an "index" argument to an ASL 10621function was still (internally) 32 bits instead of the required 64 bits. 10622This was the Index argument to the Index, Mid, and Match operators. 10623 10624The "strupr" function is now permanently local (AcpiUtStrupr), since this 10625is 10626not a POSIX-defined function and not present in most kernel-level C 10627libraries. All references to the C library strupr function have been 10628removed 10629from the headers. 10630 10631Completed the deployment of static functions/prototypes. All prototypes 10632with 10633the static attribute have been moved from the headers to the owning C 10634file. 10635 10636Implemented an extract option (-e) for the AcpiBin utility (AML binary 10637utility). This option allows the utility to extract individual ACPI 10638tables 10639from the output of AcpiDmp. It provides the same functionality of the 10640acpixtract.pl perl script without the worry of setting the correct perl 10641options. AcpiBin runs on Windows and has not yet been generated/validated 10642in 10643the Linux/Unix environment (but should be soon). 10644 10645Updated and fixed the table dump option for AcpiBin (-d). This option 10646converts a single ACPI table to a hex/ascii file, similar to the output 10647of 10648AcpiDmp. 10649 10650Code and Data Size: Current and previous core subsystem library sizes are 10651shown below. These are the code and data sizes for the acpica.lib 10652produced 10653by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10654any ACPI driver or OSPM code. The debug version of the code includes the 10655debug output trace mechanism and has a much larger code and data size. 10656Note 10657that these values will vary depending on the efficiency of the compiler 10658and 10659the compiler options used during generation. 10660 10661 Previous Release: 10662 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10663 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10664 Current Release: 10665 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 10666 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 10667 10668 106692) iASL Compiler/Disassembler: 10670 10671Disassembler fix: Added a check to ensure that the table length found in 10672the 10673ACPI table header within the input file is not longer than the actual 10674input 10675file size. This indicates some kind of file or table corruption. 10676 10677---------------------------------------- 1067829 March 2005. Summary of changes for version 20050329: 10679 106801) ACPI CA Core Subsystem: 10681 10682An error is now generated if an attempt is made to create a Buffer Field 10683of 10684length zero (A CreateField with a length operand of zero.) 10685 10686The interpreter now issues a warning whenever executable code at the 10687module 10688level is detected during ACPI table load. This will give some idea of the 10689prevalence of this type of code. 10690 10691Implemented support for references to named objects (other than control 10692methods) within package objects. 10693 10694Enhanced package object output for the debug object. Package objects are 10695now 10696completely dumped, showing all elements. 10697 10698Enhanced miscellaneous object output for the debug object. Any object can 10699now be written to the debug object (for example, a device object can be 10700written, and the type of the object will be displayed.) 10701 10702The "static" qualifier has been added to all local functions across both 10703the 10704core subsystem and the iASL compiler. 10705 10706The number of "long" lines (> 80 chars) within the source has been 10707significantly reduced, by about 1/3. 10708 10709Cleaned up all header files to ensure that all CA/iASL functions are 10710prototyped (even static functions) and the formatting is consistent. 10711 10712Two new header files have been added, acopcode.h and acnames.h. 10713 10714Removed several obsolete functions that were no longer used. 10715 10716Code and Data Size: Current and previous core subsystem library sizes are 10717shown below. These are the code and data sizes for the acpica.lib 10718produced 10719by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10720any ACPI driver or OSPM code. The debug version of the code includes the 10721debug output trace mechanism and has a much larger code and data size. 10722Note 10723that these values will vary depending on the efficiency of the compiler 10724and 10725the compiler options used during generation. 10726 10727 Previous Release: 10728 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10729 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 10730 Current Release: 10731 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 10732 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 10733 10734 10735 107362) iASL Compiler/Disassembler: 10737 10738Fixed a problem with the resource descriptor generation/support. For the 10739ResourceSourceIndex and the ResourceSource fields, both must be present, 10740or 10741both must be not present - can't have one without the other. 10742 10743The compiler now returns non-zero from the main procedure if any errors 10744have 10745occurred during the compilation. 10746 10747 10748---------------------------------------- 1074909 March 2005. Summary of changes for version 20050309: 10750 107511) ACPI CA Core Subsystem: 10752 10753The string-to-buffer implicit conversion code has been modified again 10754after 10755a change to the ACPI specification. In order to match the behavior of 10756the 10757other major ACPI implementation, the target buffer is no longer truncated 10758if 10759the source string is smaller than an existing target buffer. This change 10760requires an update to the ACPI spec, and should eliminate the recent 10761AE_AML_BUFFER_LIMIT issues. 10762 10763The "implicit return" support was rewritten to a new algorithm that 10764solves 10765the general case. Rather than attempt to determine when a method is about 10766to 10767exit, the result of every ASL operator is saved momentarily until the 10768very 10769next ASL operator is executed. Therefore, no matter how the method exits, 10770there will always be a saved implicit return value. This feature is only 10771enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 10772eliminate 10773AE_AML_NO_RETURN_VALUE errors when enabled. 10774 10775Implemented implicit conversion support for the predicate (operand) of 10776the 10777If, Else, and While operators. String and Buffer arguments are 10778automatically 10779converted to Integers. 10780 10781Changed the string-to-integer conversion behavior to match the new ACPI 10782errata: "If no integer object exists, a new integer is created. The ASCII 10783string is interpreted as a hexadecimal constant. Each string character is 10784interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 10785with the first character as the most significant digit, and ending with 10786the 10787first non-hexadecimal character or end-of-string." This means that the 10788first 10789non-hex character terminates the conversion and this is the code that was 10790changed. 10791 10792Fixed a problem where the ObjectType operator would fail (fault) when 10793used 10794on an Index of a Package which pointed to a null package element. The 10795operator now properly returns zero (Uninitialized) in this case. 10796 10797Fixed a problem where the While operator used excessive memory by not 10798properly popping the result stack during execution. There was no memory 10799leak 10800after execution, however. (Code provided by Valery Podrezov.) 10801 10802Fixed a problem where references to control methods within Package 10803objects 10804caused the method to be invoked, instead of producing a reference object 10805pointing to the method. 10806 10807Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 10808to 10809improve performance and reduce code size. (Code provided by Alexey 10810Starikovskiy.) 10811 10812Code and Data Size: Current and previous core subsystem library sizes are 10813shown below. These are the code and data sizes for the acpica.lib 10814produced 10815by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10816any ACPI driver or OSPM code. The debug version of the code includes the 10817debug output trace mechanism and has a much larger code and data size. 10818Note 10819that these values will vary depending on the efficiency of the compiler 10820and 10821the compiler options used during generation. 10822 10823 Previous Release: 10824 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10825 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 10826 Current Release: 10827 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10828 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 10829 10830 108312) iASL Compiler/Disassembler: 10832 10833Fixed a problem with the Return operator with no arguments. Since the AML 10834grammar for the byte encoding requires an operand for the Return opcode, 10835the 10836compiler now emits a Return(Zero) for this case. An ACPI specification 10837update has been written for this case. 10838 10839For tables other than the DSDT, namepath optimization is automatically 10840disabled. This is because SSDTs can be loaded anywhere in the namespace, 10841the 10842compiler has no knowledge of where, and thus cannot optimize namepaths. 10843 10844Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 10845inadvertently omitted from the ACPI specification, and will require an 10846update to the spec. 10847 10848The source file scan for ASCII characters is now optional (-a). This 10849change 10850was made because some vendors place non-ascii characters within comments. 10851However, the scan is simply a brute-force byte compare to ensure all 10852characters in the file are in the range 0x00 to 0x7F. 10853 10854Fixed a problem with the CondRefOf operator where the compiler was 10855inappropriately checking for the existence of the target. Since the point 10856of 10857the operator is to check for the existence of the target at run-time, the 10858compiler no longer checks for the target existence. 10859 10860Fixed a problem where errors generated from the internal AML interpreter 10861during constant folding were not handled properly, causing a fault. 10862 10863Fixed a problem with overly aggressive range checking for the Stall 10864operator. The valid range (max 255) is now only checked if the operand is 10865of 10866type Integer. All other operand types cannot be statically checked. 10867 10868Fixed a problem where control method references within the RefOf, 10869DeRefOf, 10870and ObjectType operators were not treated properly. They are now treated 10871as 10872actual references, not method invocations. 10873 10874Fixed and enhanced the "list namespace" option (-ln). This option was 10875broken 10876a number of releases ago. 10877 10878Improved error handling for the Field, IndexField, and BankField 10879operators. 10880The compiler now cleanly reports and recovers from errors in the field 10881component (FieldUnit) list. 10882 10883Fixed a disassembler problem where the optional ResourceDescriptor fields 10884TRS and TTP were not always handled correctly. 10885 10886Disassembler - Comments in output now use "//" instead of "/*" 10887 10888---------------------------------------- 1088928 February 2005. Summary of changes for version 20050228: 10890 108911) ACPI CA Core Subsystem: 10892 10893Fixed a problem where the result of an Index() operator (an object 10894reference) must increment the reference count on the target object for 10895the 10896life of the object reference. 10897 10898Implemented AML Interpreter and Debugger support for the new ACPI 3.0 10899Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 10900WordSpace 10901resource descriptors. 10902 10903Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 10904Space Descriptor" string, indicating interpreter support for the 10905descriptors 10906above. 10907 10908Implemented header support for the new ACPI 3.0 FADT flag bits. 10909 10910Implemented header support for the new ACPI 3.0 PCI Express bits for the 10911PM1 10912status/enable registers. 10913 10914Updated header support for the MADT processor local Apic struct and MADT 10915platform interrupt source struct for new ACPI 3.0 fields. 10916 10917Implemented header support for the SRAT and SLIT ACPI tables. 10918 10919Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 10920flag 10921at runtime. 10922 10923Code and Data Size: Current and previous core subsystem library sizes are 10924shown below. These are the code and data sizes for the acpica.lib 10925produced 10926by the Microsoft Visual C++ 6.0 compiler, and these values do not include 10927any ACPI driver or OSPM code. The debug version of the code includes the 10928debug output trace mechanism and has a much larger code and data size. 10929Note 10930that these values will vary depending on the efficiency of the compiler 10931and 10932the compiler options used during generation. 10933 10934 Previous Release: 10935 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 10936 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 10937 Current Release: 10938 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 10939 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 10940 10941 109422) iASL Compiler/Disassembler: 10943 10944Fixed a problem with the internal 64-bit String-to-integer conversion 10945with 10946strings less than two characters long. 10947 10948Fixed a problem with constant folding where the result of the Index() 10949operator can not be considered a constant. This means that Index() cannot 10950be 10951a type3 opcode and this will require an update to the ACPI specification. 10952 10953Disassembler: Implemented support for the TTP, MTP, and TRS resource 10954descriptor fields. These fields were inadvertently ignored and not output 10955in 10956the disassembly of the resource descriptor. 10957 10958 10959 ---------------------------------------- 1096011 February 2005. Summary of changes for version 20050211: 10961 109621) ACPI CA Core Subsystem: 10963 10964Implemented ACPI 3.0 support for implicit conversion within the Match() 10965operator. MatchObjects can now be of type integer, buffer, or string 10966instead 10967of just type integer. Package elements are implicitly converted to the 10968type 10969of the MatchObject. This change aligns the behavior of Match() with the 10970behavior of the other logical operators (LLess(), etc.) It also requires 10971an 10972errata change to the ACPI specification as this support was intended for 10973ACPI 3.0, but was inadvertently omitted. 10974 10975Fixed a problem with the internal implicit "to buffer" conversion. 10976Strings 10977that are converted to buffers will cause buffer truncation if the string 10978is 10979smaller than the target buffer. Integers that are converted to buffers 10980will 10981not cause buffer truncation, only zero extension (both as per the ACPI 10982spec.) The problem was introduced when code was added to truncate the 10983buffer, but this should not be performed in all cases, only the string 10984case. 10985 10986Fixed a problem with the Buffer and Package operators where the 10987interpreter 10988would get confused if two such operators were used as operands to an ASL 10989operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 10990stack was not being popped after the execution of these operators, 10991resulting 10992in an AE_NO_RETURN_VALUE exception. 10993 10994Fixed a problem with constructs of the form Store(Index(...),...). The 10995reference object returned from Index was inadvertently resolved to an 10996actual 10997value. This problem was introduced in version 20050114 when the behavior 10998of 10999Store() was modified to restrict the object types that can be used as the 11000source operand (to match the ACPI specification.) 11001 11002Reduced excessive stack use within the AcpiGetObjectInfo procedure. 11003 11004Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 11005 11006Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 11007 11008Code and Data Size: Current and previous core subsystem library sizes are 11009shown below. These are the code and data sizes for the acpica.lib 11010produced 11011by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11012any ACPI driver or OSPM code. The debug version of the code includes the 11013debug output trace mechanism and has a much larger code and data size. 11014Note 11015that these values will vary depending on the efficiency of the compiler 11016and 11017the compiler options used during generation. 11018 11019 Previous Release: 11020 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 11021 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 11022 Current Release: 11023 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 11024 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 11025 11026 110272) iASL Compiler/Disassembler: 11028 11029Fixed a code generation problem in the constant folding optimization code 11030where incorrect code was generated if a constant was reduced to a buffer 11031object (i.e., a reduced type 5 opcode.) 11032 11033Fixed a typechecking problem for the ToBuffer operator. Caused by an 11034incorrect return type in the internal opcode information table. 11035 11036---------------------------------------- 1103725 January 2005. Summary of changes for version 20050125: 11038 110391) ACPI CA Core Subsystem: 11040 11041Fixed a recently introduced problem with the Global Lock where the 11042underlying semaphore was not created. This problem was introduced in 11043version 20050114, and caused an AE_AML_NO_OPERAND exception during an 11044Acquire() operation on _GL. 11045 11046The local object cache is now optional, and is disabled by default. Both 11047AcpiExec and the iASL compiler enable the cache because they run in user 11048mode and this enhances their performance. #define 11049ACPI_ENABLE_OBJECT_CACHE 11050to enable the local cache. 11051 11052Fixed an issue in the internal function AcpiUtEvaluateObject concerning 11053the 11054optional "implicit return" support where an error was returned if no 11055return 11056object was expected, but one was implicitly returned. AE_OK is now 11057returned 11058in this case and the implicitly returned object is deleted. 11059AcpiUtEvaluateObject is only occasionally used, and only to execute 11060reserved 11061methods such as _STA and _INI where the return type is known up front. 11062 11063Fixed a few issues with the internal convert-to-integer code. It now 11064returns 11065an error if an attempt is made to convert a null string, a string of only 11066blanks/tabs, or a zero-length buffer. This affects both implicit 11067conversion 11068and explicit conversion via the ToInteger() operator. 11069 11070The internal debug code in AcpiUtAcquireMutex has been commented out. It 11071is 11072not needed for normal operation and should increase the performance of 11073the 11074entire subsystem. The code remains in case it is needed for debug 11075purposes 11076again. 11077 11078The AcpiExec source and makefile are included in the Unix/Linux package 11079for 11080the first time. 11081 11082Code and Data Size: Current and previous core subsystem library sizes are 11083shown below. These are the code and data sizes for the acpica.lib 11084produced 11085by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11086any ACPI driver or OSPM code. The debug version of the code includes the 11087debug output trace mechanism and has a much larger code and data size. 11088Note 11089that these values will vary depending on the efficiency of the compiler 11090and 11091the compiler options used during generation. 11092 11093 Previous Release: 11094 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 11095 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 11096 Current Release: 11097 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 11098 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 11099 111002) iASL Compiler/Disassembler: 11101 11102Switch/Case support: A warning is now issued if the type of the Switch 11103value 11104cannot be determined at compile time. For example, Switch(Arg0) will 11105generate the warning, and the type is assumed to be an integer. As per 11106the 11107ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 11108the 11109warning. 11110 11111Switch/Case support: Implemented support for buffer and string objects as 11112the switch value. This is an ACPI 3.0 feature, now that LEqual supports 11113buffers and strings. 11114 11115Switch/Case support: The emitted code for the LEqual() comparisons now 11116uses 11117the switch value as the first operand, not the second. The case value is 11118now 11119the second operand, and this allows the case value to be implicitly 11120converted to the type of the switch value, not the other way around. 11121 11122Switch/Case support: Temporary variables are now emitted immediately 11123within 11124the control method, not at the global level. This means that there are 11125now 1112636 temps available per-method, not 36 temps per-module as was the case 11127with 11128the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 11129 11130---------------------------------------- 1113114 January 2005. Summary of changes for version 20050114: 11132 11133Added 2005 copyright to all module headers. This affects every module in 11134the core subsystem, iASL compiler, and the utilities. 11135 111361) ACPI CA Core Subsystem: 11137 11138Fixed an issue with the String-to-Buffer conversion code where the string 11139null terminator was not included in the buffer after conversion, but 11140there 11141is existing ASL that assumes the string null terminator is included. This 11142is 11143the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 11144introduced in the previous version when the code was updated to correctly 11145set the converted buffer size as per the ACPI specification. The ACPI 11146spec 11147is ambiguous and will be updated to specify that the null terminator must 11148be 11149included in the converted buffer. This also affects the ToBuffer() ASL 11150operator. 11151 11152Fixed a problem with the Mid() ASL/AML operator where it did not work 11153correctly on Buffer objects. Newly created sub-buffers were not being 11154marked 11155as initialized. 11156 11157 11158Fixed a problem in AcpiTbFindTable where incorrect string compares were 11159performed on the OemId and OemTableId table header fields. These fields 11160are 11161not null terminated, so strncmp is now used instead of strcmp. 11162 11163Implemented a restriction on the Store() ASL/AML operator to align the 11164behavior with the ACPI specification. Previously, any object could be 11165used 11166as the source operand. Now, the only objects that may be used are 11167Integers, 11168Buffers, Strings, Packages, Object References, and DDB Handles. If 11169necessary, the original behavior can be restored by enabling the 11170EnableInterpreterSlack flag. 11171 11172Enhanced the optional "implicit return" support to allow an implicit 11173return 11174value from methods that are invoked externally via the AcpiEvaluateObject 11175interface. This enables implicit returns from the _STA and _INI methods, 11176for example. 11177 11178Changed the Revision() ASL/AML operator to return the current version of 11179the 11180AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 11181returned 11182the supported ACPI version (This is the function of the _REV method). 11183 11184Updated the _REV predefined method to return the currently supported 11185version 11186of ACPI, now 3. 11187 11188Implemented batch mode option for the AcpiExec utility (-b). 11189 11190Code and Data Size: Current and previous core subsystem library sizes are 11191shown below. These are the code and data sizes for the acpica.lib 11192produced 11193by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11194any ACPI driver or OSPM code. The debug version of the code includes the 11195debug output trace mechanism and has a much larger code and data size. 11196Note 11197that these values will vary depending on the efficiency of the compiler 11198and 11199the compiler options used during generation. 11200 11201 Previous Release: 11202 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11203 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11204 Current Release: 11205 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 11206 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 11207 11208---------------------------------------- 1120910 December 2004. Summary of changes for version 20041210: 11210 11211ACPI 3.0 support is nearing completion in both the iASL compiler and the 11212ACPI CA core subsystem. 11213 112141) ACPI CA Core Subsystem: 11215 11216Fixed a problem in the ToDecimalString operator where the resulting 11217string 11218length was incorrectly calculated. The length is now calculated exactly, 11219eliminating incorrect AE_STRING_LIMIT exceptions. 11220 11221Fixed a problem in the ToHexString operator to allow a maximum 200 11222character 11223string to be produced. 11224 11225Fixed a problem in the internal string-to-buffer and buffer-to-buffer 11226copy 11227routine where the length of the resulting buffer was not truncated to the 11228new size (if the target buffer already existed). 11229 11230Code and Data Size: Current and previous core subsystem library sizes are 11231shown below. These are the code and data sizes for the acpica.lib 11232produced 11233by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11234any ACPI driver or OSPM code. The debug version of the code includes the 11235debug output trace mechanism and has a much larger code and data size. 11236Note 11237that these values will vary depending on the efficiency of the compiler 11238and 11239the compiler options used during generation. 11240 11241 Previous Release: 11242 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11243 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11244 Current Release: 11245 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11246 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 11247 11248 112492) iASL Compiler/Disassembler: 11250 11251Implemented the new ACPI 3.0 resource template macros - DWordSpace, 11252ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 11253Includes support in the disassembler. 11254 11255Implemented support for the new (ACPI 3.0) parameter to the Register 11256macro, 11257AccessSize. 11258 11259Fixed a problem where the _HE resource name for the Interrupt macro was 11260referencing bit 0 instead of bit 1. 11261 11262Implemented check for maximum 255 interrupts in the Interrupt macro. 11263 11264Fixed a problem with the predefined resource descriptor names where 11265incorrect AML code was generated if the offset within the resource buffer 11266was 0 or 1. The optimizer shortened the AML code to a single byte opcode 11267but did not update the surrounding package lengths. 11268 11269Changes to the Dma macro: All channels within the channel list must be 11270in 11271the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 11272optional (default is BusMaster). 11273 11274Implemented check for maximum 7 data bytes for the VendorShort macro. 11275 11276The ReadWrite parameter is now optional for the Memory32 and similar 11277macros. 11278 11279---------------------------------------- 1128003 December 2004. Summary of changes for version 20041203: 11281 112821) ACPI CA Core Subsystem: 11283 11284The low-level field insertion/extraction code (exfldio) has been 11285completely 11286rewritten to eliminate unnecessary complexity, bugs, and boundary 11287conditions. 11288 11289Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 11290ToDecimalString 11291operators where the input operand could be inadvertently deleted if no 11292conversion was necessary (e.g., if the input to ToInteger was an Integer 11293object.) 11294 11295Fixed a problem with the ToDecimalString and ToHexString where an 11296incorrect 11297exception code was returned if the resulting string would be > 200 chars. 11298AE_STRING_LIMIT is now returned. 11299 11300Fixed a problem with the Concatenate operator where AE_OK was always 11301returned, even if the operation failed. 11302 11303Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 11304semaphores to be allocated. 11305 11306Code and Data Size: Current and previous core subsystem library sizes are 11307shown below. These are the code and data sizes for the acpica.lib 11308produced 11309by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11310any ACPI driver or OSPM code. The debug version of the code includes the 11311debug output trace mechanism and has a much larger code and data size. 11312Note 11313that these values will vary depending on the efficiency of the compiler 11314and 11315the compiler options used during generation. 11316 11317 Previous Release: 11318 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11319 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11320 Current Release: 11321 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 11322 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 11323 11324 113252) iASL Compiler/Disassembler: 11326 11327Fixed typechecking for the ObjectType and SizeOf operators. Problem was 11328recently introduced in 20041119. 11329 11330Fixed a problem with the ToUUID macro where the upper nybble of each 11331buffer 11332byte was inadvertently set to zero. 11333 11334---------------------------------------- 1133519 November 2004. Summary of changes for version 20041119: 11336 113371) ACPI CA Core Subsystem: 11338 11339Fixed a problem in the internal ConvertToInteger routine where new 11340integers 11341were not truncated to 32 bits for 32-bit ACPI tables. This routine 11342converts 11343buffers and strings to integers. 11344 11345Implemented support to store a value to an Index() on a String object. 11346This 11347is an ACPI 2.0 feature that had not yet been implemented. 11348 11349Implemented new behavior for storing objects to individual package 11350elements 11351(via the Index() operator). The previous behavior was to invoke the 11352implicit 11353conversion rules if an object was already present at the index. The new 11354behavior is to simply delete any existing object and directly store the 11355new 11356object. Although the ACPI specification seems unclear on this subject, 11357other 11358ACPI implementations behave in this manner. (This is the root of the 11359AE_BAD_HEX_CONSTANT issue.) 11360 11361Modified the RSDP memory scan mechanism to support the extended checksum 11362for 11363ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 11364RSDP signature is found with a valid checksum. 11365 11366Code and Data Size: Current and previous core subsystem library sizes are 11367shown below. These are the code and data sizes for the acpica.lib 11368produced 11369by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11370any ACPI driver or OSPM code. The debug version of the code includes the 11371debug output trace mechanism and has a much larger code and data size. 11372Note 11373that these values will vary depending on the efficiency of the compiler 11374and 11375the compiler options used during generation. 11376 11377 Previous Release: 11378 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11379 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11380 Current Release: 11381 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11382 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11383 11384 113852) iASL Compiler/Disassembler: 11386 11387Fixed a missing semicolon in the aslcompiler.y file. 11388 11389---------------------------------------- 1139005 November 2004. Summary of changes for version 20041105: 11391 113921) ACPI CA Core Subsystem: 11393 11394Implemented support for FADT revision 2. This was an interim table 11395(between 11396ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 11397 11398Implemented optional support to allow uninitialized LocalX and ArgX 11399variables in a control method. The variables are initialized to an 11400Integer 11401object with a value of zero. This support is enabled by setting the 11402AcpiGbl_EnableInterpreterSlack flag to TRUE. 11403 11404Implemented support for Integer objects for the SizeOf operator. Either 114054 11406or 8 is returned, depending on the current integer size (32-bit or 64- 11407bit, 11408depending on the parent table revision). 11409 11410Fixed a problem in the implementation of the SizeOf and ObjectType 11411operators 11412where the operand was resolved to a value too early, causing incorrect 11413return values for some objects. 11414 11415Fixed some possible memory leaks during exceptional conditions. 11416 11417Code and Data Size: Current and previous core subsystem library sizes are 11418shown below. These are the code and data sizes for the acpica.lib 11419produced 11420by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11421any ACPI driver or OSPM code. The debug version of the code includes the 11422debug output trace mechanism and has a much larger code and data size. 11423Note 11424that these values will vary depending on the efficiency of the compiler 11425and 11426the compiler options used during generation. 11427 11428 Previous Release: 11429 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11430 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11431 Current Release: 11432 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 11433 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 11434 11435 114362) iASL Compiler/Disassembler: 11437 11438Implemented support for all ACPI 3.0 reserved names and methods. 11439 11440Implemented all ACPI 3.0 grammar elements in the front-end, including 11441support for semicolons. 11442 11443Implemented the ACPI 3.0 Function() and ToUUID() macros 11444 11445Fixed a problem in the disassembler where a Scope() operator would not be 11446emitted properly if the target of the scope was in another table. 11447 11448---------------------------------------- 1144915 October 2004. Summary of changes for version 20041015: 11450 11451Note: ACPI CA is currently undergoing an in-depth and complete formal 11452evaluation to test/verify the following areas. Other suggestions are 11453welcome. This will result in an increase in the frequency of releases and 11454the number of bug fixes in the next few months. 11455 - Functional tests for all ASL/AML operators 11456 - All implicit/explicit type conversions 11457 - Bit fields and operation regions 11458 - 64-bit math support and 32-bit-only "truncated" math support 11459 - Exceptional conditions, both compiler and interpreter 11460 - Dynamic object deletion and memory leaks 11461 - ACPI 3.0 support when implemented 11462 - External interfaces to the ACPI subsystem 11463 11464 114651) ACPI CA Core Subsystem: 11466 11467Fixed two alignment issues on 64-bit platforms - within debug statements 11468in 11469AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 11470Address 11471field within the non-aligned ACPI generic address structure. 11472 11473Fixed a problem in the Increment and Decrement operators where incorrect 11474operand resolution could result in the inadvertent modification of the 11475original integer when the integer is passed into another method as an 11476argument and the arg is then incremented/decremented. 11477 11478Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 11479bit 11480BCD number were truncated during conversion. 11481 11482Fixed a problem in the ToDecimal operator where the length of the 11483resulting 11484string could be set incorrectly too long if the input operand was a 11485Buffer 11486object. 11487 11488Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 11489(0) 11490within a buffer would prematurely terminate a compare between buffer 11491objects. 11492 11493Added a check for string overflow (>200 characters as per the ACPI 11494specification) during the Concatenate operator with two string operands. 11495 11496Code and Data Size: Current and previous core subsystem library sizes are 11497shown below. These are the code and data sizes for the acpica.lib 11498produced 11499by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11500any ACPI driver or OSPM code. The debug version of the code includes the 11501debug output trace mechanism and has a much larger code and data size. 11502Note 11503that these values will vary depending on the efficiency of the compiler 11504and 11505the compiler options used during generation. 11506 11507 Previous Release: 11508 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11509 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11510 Current Release: 11511 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11512 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 11513 11514 11515 115162) iASL Compiler/Disassembler: 11517 11518Allow the use of the ObjectType operator on uninitialized Locals and Args 11519(returns 0 as per the ACPI specification). 11520 11521Fixed a problem where the compiler would fault if there was a syntax 11522error 11523in the FieldName of all of the various CreateXXXField operators. 11524 11525Disallow the use of lower case letters within the EISAID macro, as per 11526the 11527ACPI specification. All EISAID strings must be of the form "UUUNNNN" 11528Where 11529U is an uppercase letter and N is a hex digit. 11530 11531 11532---------------------------------------- 1153306 October 2004. Summary of changes for version 20041006: 11534 115351) ACPI CA Core Subsystem: 11536 11537Implemented support for the ACPI 3.0 Timer operator. This ASL function 11538implements a 64-bit timer with 100 nanosecond granularity. 11539 11540Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 11541implement the ACPI 3.0 Timer operator. This allows the host OS to 11542implement 11543the timer with the best clock available. Also, it keeps the core 11544subsystem 11545out of the clock handling business, since the host OS (usually) performs 11546this function. 11547 11548Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 11549functions use a 64-bit address which is part of the packed ACPI Generic 11550Address Structure. Since the structure is non-aligned, the alignment 11551macros 11552are now used to extract the address to a local variable before use. 11553 11554Fixed a problem where the ToInteger operator assumed all input strings 11555were 11556hexadecimal. The operator now handles both decimal strings and hex 11557strings 11558(prefixed with "0x"). 11559 11560Fixed a problem where the string length in the string object created as a 11561result of the internal ConvertToString procedure could be incorrect. This 11562potentially affected all implicit conversions and also the 11563ToDecimalString 11564and ToHexString operators. 11565 11566Fixed two problems in the ToString operator. If the length parameter was 11567zero, an incorrect string object was created and the value of the input 11568length parameter was inadvertently changed from zero to Ones. 11569 11570Fixed a problem where the optional ResourceSource string in the 11571ExtendedIRQ 11572resource macro was ignored. 11573 11574Simplified the interfaces to the internal division functions, reducing 11575code 11576size and complexity. 11577 11578Code and Data Size: Current and previous core subsystem library sizes are 11579shown below. These are the code and data sizes for the acpica.lib 11580produced 11581by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11582any ACPI driver or OSPM code. The debug version of the code includes the 11583debug output trace mechanism and has a much larger code and data size. 11584Note 11585that these values will vary depending on the efficiency of the compiler 11586and 11587the compiler options used during generation. 11588 11589 Previous Release: 11590 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11591 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11592 Current Release: 11593 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11594 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 11595 11596 115972) iASL Compiler/Disassembler: 11598 11599Implemented support for the ACPI 3.0 Timer operator. 11600 11601Fixed a problem where the Default() operator was inadvertently ignored in 11602a 11603Switch/Case block. This was a problem in the translation of the Switch 11604statement to If...Else pairs. 11605 11606Added support to allow a standalone Return operator, with no parentheses 11607(or 11608operands). 11609 11610Fixed a problem with code generation for the ElseIf operator where the 11611translated Else...If parse tree was improperly constructed leading to the 11612loss of some code. 11613 11614---------------------------------------- 1161522 September 2004. Summary of changes for version 20040922: 11616 116171) ACPI CA Core Subsystem: 11618 11619Fixed a problem with the implementation of the LNot() operator where 11620"Ones" 11621was not returned for the TRUE case. Changed the code to return Ones 11622instead 11623of (!Arg) which was usually 1. This change affects iASL constant folding 11624for 11625this operator also. 11626 11627Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 11628not 11629initialized properly -- Now zero the entire buffer in this case where the 11630buffer already exists. 11631 11632Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 11633Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 11634related code considerably. This will require changes/updates to all OS 11635interface layers (OSLs.) 11636 11637Implemented a new external interface, AcpiInstallExceptionHandler, to 11638allow 11639a system exception handler to be installed. This handler is invoked upon 11640any 11641run-time exception that occurs during control method execution. 11642 11643Added support for the DSDT in AcpiTbFindTable. This allows the 11644DataTableRegion() operator to access the local copy of the DSDT. 11645 11646Code and Data Size: Current and previous core subsystem library sizes are 11647shown below. These are the code and data sizes for the acpica.lib 11648produced 11649by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11650any ACPI driver or OSPM code. The debug version of the code includes the 11651debug output trace mechanism and has a much larger code and data size. 11652Note 11653that these values will vary depending on the efficiency of the compiler 11654and 11655the compiler options used during generation. 11656 11657 Previous Release: 11658 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11659 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11660 Current Release: 11661 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 11662 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 11663 11664 116652) iASL Compiler/Disassembler: 11666 11667Fixed a problem with constant folding and the LNot operator. LNot was 11668returning 1 in the TRUE case, not Ones as per the ACPI specification. 11669This 11670could result in the generation of an incorrect folded/reduced constant. 11671 11672End-Of-File is now allowed within a "//"-style comment. A parse error no 11673longer occurs if such a comment is at the very end of the input ASL 11674source 11675file. 11676 11677Implemented the "-r" option to override the Revision in the table header. 11678The initial use of this option will be to simplify the evaluation of the 11679AML 11680interpreter by allowing a single ASL source module to be compiled for 11681either 1168232-bit or 64-bit integers. 11683 11684 11685---------------------------------------- 1168627 August 2004. Summary of changes for version 20040827: 11687 116881) ACPI CA Core Subsystem: 11689 11690- Implemented support for implicit object conversion in the non-numeric 11691logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 11692and 11693LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 11694the second operand is implicitly converted on the fly to match the type 11695of 11696the first operand. For example: 11697 11698 LEqual (Source1, Source2) 11699 11700Source1 and Source2 must each evaluate to an integer, a string, or a 11701buffer. 11702The data type of Source1 dictates the required type of Source2. Source2 11703is 11704implicitly converted if necessary to match the type of Source1. 11705 11706- Updated and corrected the behavior of the string conversion support. 11707The 11708rules concerning conversion of buffers to strings (according to the ACPI 11709specification) are as follows: 11710 11711ToDecimalString - explicit byte-wise conversion of buffer to string of 11712decimal values (0-255) separated by commas. ToHexString - explicit byte- 11713wise 11714conversion of buffer to string of hex values (0-FF) separated by commas. 11715ToString - explicit byte-wise conversion of buffer to string. Byte-by- 11716byte 11717copy with no transform except NULL terminated. Any other implicit buffer- 11718to- 11719string conversion - byte-wise conversion of buffer to string of hex 11720values 11721(0-FF) separated by spaces. 11722 11723- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 11724 11725- Fixed a problem in AcpiNsGetPathnameLength where the returned length 11726was 11727one byte too short in the case of a node in the root scope. This could 11728cause a fault during debug output. 11729 11730- Code and Data Size: Current and previous core subsystem library sizes 11731are 11732shown below. These are the code and data sizes for the acpica.lib 11733produced 11734by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11735any ACPI driver or OSPM code. The debug version of the code includes the 11736debug output trace mechanism and has a much larger code and data size. 11737Note 11738that these values will vary depending on the efficiency of the compiler 11739and 11740the compiler options used during generation. 11741 11742 Previous Release: 11743 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 11744 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 11745 Current Release: 11746 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 11747 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 11748 11749 117502) iASL Compiler/Disassembler: 11751 11752- Fixed a Linux generation error. 11753 11754 11755---------------------------------------- 1175616 August 2004. Summary of changes for version 20040816: 11757 117581) ACPI CA Core Subsystem: 11759 11760Designed and implemented support within the AML interpreter for the so- 11761called "implicit return". This support returns the result of the last 11762ASL 11763operation within a control method, in the absence of an explicit Return() 11764operator. A few machines depend on this behavior, even though it is not 11765explicitly supported by the ASL language. It is optional support that 11766can 11767be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 11768 11769Removed support for the PCI_Config address space from the internal low 11770level 11771hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 11772support was not used internally, and would not work correctly anyway 11773because 11774the PCI bus number and segment number were not supported. There are 11775separate interfaces for PCI configuration space access because of the 11776unique 11777interface. 11778 11779Code and Data Size: Current and previous core subsystem library sizes are 11780shown below. These are the code and data sizes for the acpica.lib 11781produced 11782by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11783any ACPI driver or OSPM code. The debug version of the code includes the 11784debug output trace mechanism and has a much larger code and data size. 11785Note 11786that these values will vary depending on the efficiency of the compiler 11787and 11788the compiler options used during generation. 11789 11790 Previous Release: 11791 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11792 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 11793 Current Release: 11794 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 11795 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 11796 11797 117982) iASL Compiler/Disassembler: 11799 11800Fixed a problem where constants in ASL expressions at the root level (not 11801within a control method) could be inadvertently truncated during code 11802generation. This problem was introduced in the 20040715 release. 11803 11804 11805---------------------------------------- 1180615 July 2004. Summary of changes for version 20040715: 11807 118081) ACPI CA Core Subsystem: 11809 11810Restructured the internal HW GPE interfaces to pass/track the current 11811state 11812of interrupts (enabled/disabled) in order to avoid possible deadlock and 11813increase flexibility of the interfaces. 11814 11815Implemented a "lexicographical compare" for String and Buffer objects 11816within 11817the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 11818- 11819as per further clarification to the ACPI specification. Behavior is 11820similar 11821to C library "strcmp". 11822 11823Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 11824external function. In the 32-bit non-debug case, the stack use has been 11825reduced from 168 bytes to 32 bytes. 11826 11827Deployed a new run-time configuration flag, 11828AcpiGbl_EnableInterpreterSlack, 11829whose purpose is to allow the AML interpreter to forgive certain bad AML 11830constructs. Default setting is FALSE. 11831 11832Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 11833IO 11834support code. If enabled, it allows field access to go beyond the end of 11835a 11836region definition if the field is within the region length rounded up to 11837the 11838next access width boundary (a common coding error.) 11839 11840Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 11841ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 11842these 11843symbols are lowercased by the latest version of the AcpiSrc tool. 11844 11845The prototypes for the PCI interfaces in acpiosxf.h have been updated to 11846rename "Register" to simply "Reg" to prevent certain compilers from 11847complaining. 11848 11849Code and Data Size: Current and previous core subsystem library sizes are 11850shown below. These are the code and data sizes for the acpica.lib 11851produced 11852by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11853any ACPI driver or OSPM code. The debug version of the code includes the 11854debug output trace mechanism and has a much larger code and data size. 11855Note 11856that these values will vary depending on the efficiency of the compiler 11857and 11858the compiler options used during generation. 11859 11860 Previous Release: 11861 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11862 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 11863 Current Release: 11864 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 11865 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 11866 11867 118682) iASL Compiler/Disassembler: 11869 11870Implemented full support for Package objects within the Case() operator. 11871Note: The Break() operator is currently not supported within Case blocks 11872(TermLists) as there is some question about backward compatibility with 11873ACPI 118741.0 interpreters. 11875 11876 11877Fixed a problem where complex terms were not supported properly within 11878the 11879Switch() operator. 11880 11881Eliminated extraneous warning for compiler-emitted reserved names of the 11882form "_T_x". (Used in Switch/Case operators.) 11883 11884Eliminated optimization messages for "_T_x" objects and small constants 11885within the DefinitionBlock operator. 11886 11887 11888---------------------------------------- 1188915 June 2004. Summary of changes for version 20040615: 11890 118911) ACPI CA Core Subsystem: 11892 11893Implemented support for Buffer and String objects (as per ACPI 2.0) for 11894the 11895following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 11896LLessEqual. 11897 11898All directory names in the entire source package are lower case, as they 11899were in earlier releases. 11900 11901Implemented "Disassemble" command in the AML debugger that will 11902disassemble 11903a single control method. 11904 11905Code and Data Size: Current and previous core subsystem library sizes are 11906shown below. These are the code and data sizes for the acpica.lib 11907produced 11908by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11909any ACPI driver or OSPM code. The debug version of the code includes the 11910debug output trace mechanism and has a much larger code and data size. 11911Note 11912that these values will vary depending on the efficiency of the compiler 11913and 11914the compiler options used during generation. 11915 11916 Previous Release: 11917 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 11918 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 11919 11920 Current Release: 11921 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 11922 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 11923 11924 119252) iASL Compiler/Disassembler: 11926 11927Implemented support for Buffer and String objects (as per ACPI 2.0) for 11928the 11929following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 11930LLessEqual. 11931 11932All directory names in the entire source package are lower case, as they 11933were in earlier releases. 11934 11935Fixed a fault when using the -g or -d<nofilename> options if the FADT was 11936not found. 11937 11938Fixed an issue with the Windows version of the compiler where later 11939versions 11940of Windows place the FADT in the registry under the name "FADT" and not 11941"FACP" as earlier versions did. This applies when using the -g or - 11942d<nofilename> options. The compiler now looks for both strings as 11943necessary. 11944 11945Fixed a problem with compiler namepath optimization where a namepath 11946within 11947the Scope() operator could not be optimized if the namepath was a subpath 11948of 11949the current scope path. 11950 11951---------------------------------------- 1195227 May 2004. Summary of changes for version 20040527: 11953 119541) ACPI CA Core Subsystem: 11955 11956Completed a new design and implementation for EBDA (Extended BIOS Data 11957Area) 11958support in the RSDP scan code. The original code improperly scanned for 11959the 11960EBDA by simply scanning from memory location 0 to 0x400. The correct 11961method 11962is to first obtain the EBDA pointer from within the BIOS data area, then 11963scan 1K of memory starting at the EBDA pointer. There appear to be few 11964if 11965any machines that place the RSDP in the EBDA, however. 11966 11967Integrated a fix for a possible fault during evaluation of BufferField 11968arguments. Obsolete code that was causing the problem was removed. 11969 11970Found and fixed a problem in the Field Support Code where data could be 11971corrupted on a bit field read that starts on an aligned boundary but does 11972not end on an aligned boundary. Merged the read/write "datum length" 11973calculation code into a common procedure. 11974 11975Rolled in a couple of changes to the FreeBSD-specific header. 11976 11977 11978Code and Data Size: Current and previous core subsystem library sizes are 11979shown below. These are the code and data sizes for the acpica.lib 11980produced 11981by the Microsoft Visual C++ 6.0 compiler, and these values do not include 11982any ACPI driver or OSPM code. The debug version of the code includes the 11983debug output trace mechanism and has a much larger code and data size. 11984Note 11985that these values will vary depending on the efficiency of the compiler 11986and 11987the compiler options used during generation. 11988 11989 Previous Release: 11990 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 11991 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 11992 Current Release: 11993 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 11994 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 11995 11996 119972) iASL Compiler/Disassembler: 11998 11999Fixed a generation warning produced by some overly-verbose compilers for 12000a 1200164-bit constant. 12002 12003---------------------------------------- 1200414 May 2004. Summary of changes for version 20040514: 12005 120061) ACPI CA Core Subsystem: 12007 12008Fixed a problem where hardware GPE enable bits sometimes not set properly 12009during and after GPE method execution. Result of 04/27 changes. 12010 12011Removed extra "clear all GPEs" when sleeping/waking. 12012 12013Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 12014AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 12015to 12016the new AcpiEv* calls as appropriate. 12017 12018ACPI_OS_NAME was removed from the OS-specific headers. The default name 12019is 12020now "Microsoft Windows NT" for maximum compatibility. However this can 12021be 12022changed by modifying the acconfig.h file. 12023 12024Allow a single invocation of AcpiInstallNotifyHandler for a handler that 12025traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 12026 12027Run _INI methods on ThermalZone objects. This is against the ACPI 12028specification, but there is apparently ASL code in the field that has 12029these 12030_INI methods, and apparently "other" AML interpreters execute them. 12031 12032Performed a full 16/32/64 bit lint that resulted in some small changes. 12033 12034Added a sleep simulation command to the AML debugger to test sleep code. 12035 12036Code and Data Size: Current and previous core subsystem library sizes are 12037shown below. These are the code and data sizes for the acpica.lib 12038produced 12039by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12040any ACPI driver or OSPM code. The debug version of the code includes the 12041debug output trace mechanism and has a much larger code and data size. 12042Note 12043that these values will vary depending on the efficiency of the compiler 12044and 12045the compiler options used during generation. 12046 12047 Previous Release: 12048 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12049 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 12050 Current Release: 12051 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12052 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 12053 12054---------------------------------------- 1205527 April 2004. Summary of changes for version 20040427: 12056 120571) ACPI CA Core Subsystem: 12058 12059Completed a major overhaul of the GPE handling within ACPI CA. There are 12060now three types of GPEs: wake-only, runtime-only, and combination 12061wake/run. 12062The only GPEs allowed to be combination wake/run are for button-style 12063devices such as a control-method power button, control-method sleep 12064button, 12065or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 12066not 12067referenced by any _PRW methods are marked for "runtime" and hardware 12068enabled. Any GPE that is referenced by a _PRW method is marked for 12069"wake" 12070(and disabled at runtime). However, at sleep time, only those GPEs that 12071have been specifically enabled for wake via the AcpiEnableGpe interface 12072will 12073actually be hardware enabled. 12074 12075A new external interface has been added, AcpiSetGpeType(), that is meant 12076to 12077be used by device drivers to force a GPE to a particular type. It will 12078be 12079especially useful for the drivers for the button devices mentioned above. 12080 12081Completed restructuring of the ACPI CA initialization sequence so that 12082default operation region handlers are installed before GPEs are 12083initialized 12084and the _PRW methods are executed. This will prevent errors when the 12085_PRW 12086methods attempt to access system memory or I/O space. 12087 12088GPE enable/disable no longer reads the GPE enable register. We now keep 12089the 12090enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 12091thus no longer depend on the hardware to maintain these bits. 12092 12093Always clear the wake status and fixed/GPE status bits before sleep, even 12094for state S5. 12095 12096Improved the AML debugger output for displaying the GPE blocks and their 12097current status. 12098 12099Added new strings for the _OSI method, of the form "Windows 2001 SPx" 12100where 12101x = 0,1,2,3,4. 12102 12103Fixed a problem where the physical address was incorrectly calculated 12104when 12105the Load() operator was used to directly load from an Operation Region 12106(vs. 12107loading from a Field object.) Also added check for minimum table length 12108for 12109this case. 12110 12111Fix for multiple mutex acquisition. Restore original thread SyncLevel on 12112mutex release. 12113 12114Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 12115consistency with the other fields returned. 12116 12117Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 12118structure for each GPE in the system, so the size of this structure is 12119important. 12120 12121CPU stack requirement reduction: Cleaned up the method execution and 12122object 12123evaluation paths so that now a parameter structure is passed, instead of 12124copying the various method parameters over and over again. 12125 12126In evregion.c: Correctly exit and reenter the interpreter region if and 12127only if dispatching an operation region request to a user-installed 12128handler. 12129Do not exit/reenter when dispatching to a default handler (e.g., default 12130system memory or I/O handlers) 12131 12132 12133Notes for updating drivers for the new GPE support. The following 12134changes 12135must be made to ACPI-related device drivers that are attached to one or 12136more 12137GPEs: (This information will be added to the ACPI CA Programmer 12138Reference.) 12139 121401) AcpiInstallGpeHandler no longer automatically enables the GPE, you 12141must 12142explicitly call AcpiEnableGpe. 121432) There is a new interface called AcpiSetGpeType. This should be called 12144before enabling the GPE. Also, this interface will automatically disable 12145the GPE if it is currently enabled. 121463) AcpiEnableGpe no longer supports a GPE type flag. 12147 12148Specific drivers that must be changed: 121491) EC driver: 12150 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 12151AeGpeHandler, NULL); 12152 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 12153 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 12154 121552) Button Drivers (Power, Lid, Sleep): 12156Run _PRW method under parent device 12157If _PRW exists: /* This is a control-method button */ 12158 Extract GPE number and possibly GpeDevice 12159 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 12160 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 12161 12162For all other devices that have _PRWs, we automatically set the GPE type 12163to 12164ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 12165This 12166must be done on a selective basis, usually requiring some kind of user 12167app 12168to allow the user to pick the wake devices. 12169 12170 12171Code and Data Size: Current and previous core subsystem library sizes are 12172shown below. These are the code and data sizes for the acpica.lib 12173produced 12174by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12175any ACPI driver or OSPM code. The debug version of the code includes the 12176debug output trace mechanism and has a much larger code and data size. 12177Note 12178that these values will vary depending on the efficiency of the compiler 12179and 12180the compiler options used during generation. 12181 12182 Previous Release: 12183 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 12184 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 12185 Current Release: 12186 12187 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 12188 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 12189 12190 12191 12192---------------------------------------- 1219302 April 2004. Summary of changes for version 20040402: 12194 121951) ACPI CA Core Subsystem: 12196 12197Fixed an interpreter problem where an indirect store through an ArgX 12198parameter was incorrectly applying the "implicit conversion rules" during 12199the store. From the ACPI specification: "If the target is a method local 12200or 12201argument (LocalX or ArgX), no conversion is performed and the result is 12202stored directly to the target". The new behavior is to disable implicit 12203conversion during ALL stores to an ArgX. 12204 12205Changed the behavior of the _PRW method scan to ignore any and all errors 12206returned by a given _PRW. This prevents the scan from aborting from the 12207failure of any single _PRW. 12208 12209Moved the runtime configuration parameters from the global init procedure 12210to 12211static variables in acglobal.h. This will allow the host to override the 12212default values easily. 12213 12214Code and Data Size: Current and previous core subsystem library sizes are 12215shown below. These are the code and data sizes for the acpica.lib 12216produced 12217by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12218any ACPI driver or OSPM code. The debug version of the code includes the 12219debug output trace mechanism and has a much larger code and data size. 12220Note 12221that these values will vary depending on the efficiency of the compiler 12222and 12223the compiler options used during generation. 12224 12225 Previous Release: 12226 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12227 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12228 Current Release: 12229 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 12230 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 12231 12232 122332) iASL Compiler/Disassembler: 12234 12235iASL now fully disassembles SSDTs. However, External() statements are 12236not 12237generated automatically for unresolved symbols at this time. This is a 12238planned feature for future implementation. 12239 12240Fixed a scoping problem in the disassembler that occurs when the type of 12241the 12242target of a Scope() operator is overridden. This problem caused an 12243incorrectly nested internal namespace to be constructed. 12244 12245Any warnings or errors that are emitted during disassembly are now 12246commented 12247out automatically so that the resulting file can be recompiled without 12248any 12249hand editing. 12250 12251---------------------------------------- 1225226 March 2004. Summary of changes for version 20040326: 12253 122541) ACPI CA Core Subsystem: 12255 12256Implemented support for "wake" GPEs via interaction between GPEs and the 12257_PRW methods. Every GPE that is pointed to by one or more _PRWs is 12258identified as a WAKE GPE and by default will no longer be enabled at 12259runtime. Previously, we were blindly enabling all GPEs with a 12260corresponding 12261_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 12262We 12263believe this has been the cause of thousands of "spurious" GPEs on some 12264systems. 12265 12266This new GPE behavior is can be reverted to the original behavior (enable 12267ALL GPEs at runtime) via a runtime flag. 12268 12269Fixed a problem where aliased control methods could not access objects 12270properly. The proper scope within the namespace was not initialized 12271(transferred to the target of the aliased method) before executing the 12272target method. 12273 12274Fixed a potential race condition on internal object deletion on the 12275return 12276object in AcpiEvaluateObject. 12277 12278Integrated a fix for resource descriptors where both _MEM and _MTP were 12279being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 12280wide, 0x0F instead of 0x03.) 12281 12282Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 12283preventing 12284a 12285fault in some cases. 12286 12287Updated Notify() values for debug statements in evmisc.c 12288 12289Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 12290 12291Code and Data Size: Current and previous core subsystem library sizes are 12292shown below. These are the code and data sizes for the acpica.lib 12293produced 12294by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12295any ACPI driver or OSPM code. The debug version of the code includes the 12296debug output trace mechanism and has a much larger code and data size. 12297Note 12298that these values will vary depending on the efficiency of the compiler 12299and 12300the compiler options used during generation. 12301 12302 Previous Release: 12303 12304 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12305 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12306 Current Release: 12307 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 12308 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 12309 12310---------------------------------------- 1231111 March 2004. Summary of changes for version 20040311: 12312 123131) ACPI CA Core Subsystem: 12314 12315Fixed a problem where errors occurring during the parse phase of control 12316method execution did not abort cleanly. For example, objects created and 12317installed in the namespace were not deleted. This caused all subsequent 12318invocations of the method to return the AE_ALREADY_EXISTS exception. 12319 12320Implemented a mechanism to force a control method to "Serialized" 12321execution 12322if the method attempts to create namespace objects. (The root of the 12323AE_ALREADY_EXISTS problem.) 12324 12325Implemented support for the predefined _OSI "internal" control method. 12326Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 12327and 12328"Windows 2001.1", and can be easily upgraded for new strings as 12329necessary. 12330This feature will allow "other" operating systems to execute the fully 12331tested, "Windows" code path through the ASL code 12332 12333Global Lock Support: Now allows multiple acquires and releases with any 12334internal thread. Removed concept of "owning thread" for this special 12335mutex. 12336 12337Fixed two functions that were inappropriately declaring large objects on 12338the 12339CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 12340during 12341method execution considerably. 12342 12343Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 12344S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 12345 12346Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 12347defined on the machine. 12348 12349Implemented two runtime options: One to force all control method 12350execution 12351to "Serialized" to mimic Windows behavior, another to disable _OSI 12352support 12353if it causes problems on a given machine. 12354 12355Code and Data Size: Current and previous core subsystem library sizes are 12356shown below. These are the code and data sizes for the acpica.lib 12357produced 12358by the Microsoft Visual C++ 6.0 compiler, and these values do not include 12359any ACPI driver or OSPM code. The debug version of the code includes the 12360debug output trace mechanism and has a much larger code and data size. 12361Note 12362that these values will vary depending on the efficiency of the compiler 12363and 12364the compiler options used during generation. 12365 12366 Previous Release: 12367 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12368 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12369 Current Release: 12370 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 12371 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 12372 123732) iASL Compiler/Disassembler: 12374 12375Fixed an array size problem for FreeBSD that would cause the compiler to 12376fault. 12377 12378---------------------------------------- 1237920 February 2004. Summary of changes for version 20040220: 12380 12381 123821) ACPI CA Core Subsystem: 12383 12384Implemented execution of _SxD methods for Device objects in the 12385GetObjectInfo interface. 12386 12387Fixed calls to _SST method to pass the correct arguments. 12388 12389Added a call to _SST on wake to restore to "working" state. 12390 12391Check for End-Of-Buffer failure case in the WalkResources interface. 12392 12393Integrated fix for 64-bit alignment issue in acglobal.h by moving two 12394structures to the beginning of the file. 12395 12396After wake, clear GPE status register(s) before enabling GPEs. 12397 12398After wake, clear/enable power button. (Perhaps we should clear/enable 12399all 12400fixed events upon wake.) 12401 12402Fixed a couple of possible memory leaks in the Namespace manager. 12403 12404Integrated latest acnetbsd.h file. 12405 12406---------------------------------------- 1240711 February 2004. Summary of changes for version 20040211: 12408 12409 124101) ACPI CA Core Subsystem: 12411 12412Completed investigation and implementation of the call-by-reference 12413mechanism for control method arguments. 12414 12415Fixed a problem where a store of an object into an indexed package could 12416fail if the store occurs within a different method than the method that 12417created the package. 12418 12419Fixed a problem where the ToDecimal operator could return incorrect 12420results. 12421 12422Fixed a problem where the CopyObject operator could fail on some of the 12423more 12424obscure objects (e.g., Reference objects.) 12425 12426Improved the output of the Debug object to display buffer, package, and 12427index objects. 12428 12429Fixed a problem where constructs of the form "RefOf (ArgX)" did not 12430return 12431the expected result. 12432 12433Added permanent ACPI_REPORT_ERROR macros for all instances of the 12434ACPI_AML_INTERNAL exception. 12435 12436Integrated latest version of acfreebsd.h 12437 12438---------------------------------------- 1243916 January 2004. Summary of changes for version 20040116: 12440 12441The purpose of this release is primarily to update the copyright years in 12442each module, thus causing a huge number of diffs. There are a few small 12443functional changes, however. 12444 124451) ACPI CA Core Subsystem: 12446 12447Improved error messages when there is a problem finding one or more of 12448the 12449required base ACPI tables 12450 12451Reintroduced the definition of APIC_HEADER in actbl.h 12452 12453Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 12454 12455Removed extraneous reference to NewObj in dsmthdat.c 12456 124572) iASL compiler 12458 12459Fixed a problem introduced in December that disabled the correct 12460disassembly 12461of Resource Templates 12462 12463 12464---------------------------------------- 1246503 December 2003. Summary of changes for version 20031203: 12466 124671) ACPI CA Core Subsystem: 12468 12469Changed the initialization of Operation Regions during subsystem 12470init to perform two entire walks of the ACPI namespace; The first 12471to initialize the regions themselves, the second to execute the 12472_REG methods. This fixed some interdependencies across _REG 12473methods found on some machines. 12474 12475Fixed a problem where a Store(Local0, Local1) could simply update 12476the object reference count, and not create a new copy of the 12477object if the Local1 is uninitialized. 12478 12479Implemented support for the _SST reserved method during sleep 12480transitions. 12481 12482Implemented support to clear the SLP_TYP and SLP_EN bits when 12483waking up, this is apparently required by some machines. 12484 12485When sleeping, clear the wake status only if SleepState is not S5. 12486 12487Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 12488pointer arithmetic advanced a string pointer too far. 12489 12490Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 12491could be returned if the requested table has not been loaded. 12492 12493Within the support for IRQ resources, restructured the handling of 12494the active and edge/level bits. 12495 12496Fixed a few problems in AcpiPsxExecute() where memory could be 12497leaked under certain error conditions. 12498 12499Improved error messages for the cases where the ACPI mode could 12500not be entered. 12501 12502Code and Data Size: Current and previous core subsystem library 12503sizes are shown below. These are the code and data sizes for the 12504acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12505these values do not include any ACPI driver or OSPM code. The 12506debug version of the code includes the debug output trace 12507mechanism and has a much larger code and data size. Note that 12508these values will vary depending on the efficiency of the compiler 12509and the compiler options used during generation. 12510 12511 Previous Release (20031029): 12512 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12513 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12514 Current Release: 12515 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 12516 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 12517 125182) iASL Compiler/Disassembler: 12519 12520Implemented a fix for the iASL disassembler where a bad index was 12521generated. This was most noticeable on 64-bit platforms 12522 12523 12524---------------------------------------- 1252529 October 2003. Summary of changes for version 20031029: 12526 125271) ACPI CA Core Subsystem: 12528 12529 12530Fixed a problem where a level-triggered GPE with an associated 12531_Lxx control method was incorrectly cleared twice. 12532 12533Fixed a problem with the Field support code where an access can 12534occur beyond the end-of-region if the field is non-aligned but 12535extends to the very end of the parent region (resulted in an 12536AE_AML_REGION_LIMIT exception.) 12537 12538Fixed a problem with ACPI Fixed Events where an RT Clock handler 12539would not get invoked on an RTC event. The RTC event bitmasks for 12540the PM1 registers were not being initialized properly. 12541 12542Implemented support for executing _STA and _INI methods for 12543Processor objects. Although this is currently not part of the 12544ACPI specification, there is existing ASL code that depends on the 12545init-time execution of these methods. 12546 12547Implemented and deployed a GetDescriptorName function to decode 12548the various types of internal descriptors. Guards against null 12549descriptors during debug output also. 12550 12551Implemented and deployed a GetNodeName function to extract the 4- 12552character namespace node name. This function simplifies the debug 12553and error output, as well as guarding against null pointers during 12554output. 12555 12556Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 12557simplify the debug and error output of 64-bit integers. This 12558macro replaces the HIDWORD and LODWORD macros for dumping these 12559integers. 12560 12561Updated the implementation of the Stall() operator to only call 12562AcpiOsStall(), and also return an error if the operand is larger 12563than 255. This preserves the required behavior of not 12564relinquishing the processor, as would happen if AcpiOsSleep() was 12565called for "long stalls". 12566 12567Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 12568initialized are now treated as NOOPs. 12569 12570Cleaned up a handful of warnings during 64-bit generation. 12571 12572Fixed a reported error where and incorrect GPE number was passed 12573to the GPE dispatch handler. This value is only used for error 12574output, however. Used this opportunity to clean up and streamline 12575the GPE dispatch code. 12576 12577Code and Data Size: Current and previous core subsystem library 12578sizes are shown below. These are the code and data sizes for the 12579acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12580these values do not include any ACPI driver or OSPM code. The 12581 12582debug version of the code includes the debug output trace 12583mechanism and has a much larger code and data size. Note that 12584these values will vary depending on the efficiency of the compiler 12585and the compiler options used during generation. 12586 12587 Previous Release (20031002): 12588 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12589 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12590 Current Release: 12591 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 12592 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 12593 12594 125952) iASL Compiler/Disassembler: 12596 12597Updated the iASL compiler to return an error if the operand to the 12598Stall() operator is larger than 255. 12599 12600 12601---------------------------------------- 1260202 October 2003. Summary of changes for version 20031002: 12603 12604 126051) ACPI CA Core Subsystem: 12606 12607Fixed a problem with Index Fields where the index was not 12608incremented for fields that require multiple writes to the 12609index/data registers (Fields that are wider than the data 12610register.) 12611 12612Fixed a problem with all Field objects where a write could go 12613beyond the end-of-field if the field was larger than the access 12614granularity and therefore required multiple writes to complete the 12615request. An extra write beyond the end of the field could happen 12616inadvertently. 12617 12618Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 12619would incorrectly be returned if the width of the Data Register 12620was larger than the specified field access width. 12621 12622Completed fixes for LoadTable() and Unload() and verified their 12623operation. Implemented full support for the "DdbHandle" object 12624throughout the ACPI CA subsystem. 12625 12626Implemented full support for the MADT and ECDT tables in the ACPI 12627CA header files. Even though these tables are not directly 12628consumed by ACPI CA, the header definitions are useful for ACPI 12629device drivers. 12630 12631Integrated resource descriptor fixes posted to the Linux ACPI 12632list. This included checks for minimum descriptor length, and 12633support for trailing NULL strings within descriptors that have 12634optional string elements. 12635 12636Code and Data Size: Current and previous core subsystem library 12637sizes are shown below. These are the code and data sizes for the 12638acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12639these values do not include any ACPI driver or OSPM code. The 12640debug version of the code includes the debug output trace 12641mechanism and has a much larger code and data size. Note that 12642these values will vary depending on the efficiency of the compiler 12643and the compiler options used during generation. 12644 12645 Previous Release (20030918): 12646 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12647 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12648 Current Release: 12649 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 12650 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 12651 12652 126532) iASL Compiler: 12654 12655Implemented detection of non-ASCII characters within the input 12656source ASL file. This catches attempts to compile binary (AML) 12657files early in the compile, with an informative error message. 12658 12659Fixed a problem where the disassembler would fault if the output 12660filename could not be generated or if the output file could not be 12661opened. 12662 12663---------------------------------------- 1266418 September 2003. Summary of changes for version 20030918: 12665 12666 126671) ACPI CA Core Subsystem: 12668 12669Found and fixed a longstanding problem with the late execution of 12670the various deferred AML opcodes (such as Operation Regions, 12671Buffer Fields, Buffers, and Packages). If the name string 12672specified for the name of the new object placed the object in a 12673scope other than the current scope, the initialization/execution 12674of the opcode failed. The solution to this problem was to 12675implement a mechanism where the late execution of such opcodes 12676does not attempt to lookup/create the name a second time in an 12677incorrect scope. This fixes the "region size computed 12678incorrectly" problem. 12679 12680Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 12681Global Lock AE_BAD_PARAMETER error. 12682 12683Fixed several 64-bit issues with prototypes, casting and data 12684types. 12685 12686Removed duplicate prototype from acdisasm.h 12687 12688Fixed an issue involving EC Operation Region Detach (Shaohua Li) 12689 12690Code and Data Size: Current and previous core subsystem library 12691sizes are shown below. These are the code and data sizes for the 12692acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12693these values do not include any ACPI driver or OSPM code. The 12694debug version of the code includes the debug output trace 12695mechanism and has a much larger code and data size. Note that 12696these values will vary depending on the efficiency of the compiler 12697and the compiler options used during generation. 12698 12699 Previous Release: 12700 12701 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12702 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12703 Current Release: 12704 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 12705 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 12706 12707 127082) Linux: 12709 12710Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 12711correct sleep time in seconds. 12712 12713---------------------------------------- 1271414 July 2003. Summary of changes for version 20030619: 12715 127161) ACPI CA Core Subsystem: 12717 12718Parse SSDTs in order discovered, as opposed to reverse order 12719(Hrvoje Habjanic) 12720 12721Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 12722Klausner, 12723 Nate Lawson) 12724 12725 127262) Linux: 12727 12728Dynamically allocate SDT list (suggested by Andi Kleen) 12729 12730proc function return value cleanups (Andi Kleen) 12731 12732Correctly handle NMI watchdog during long stalls (Andrew Morton) 12733 12734Make it so acpismp=force works (reported by Andrew Morton) 12735 12736 12737---------------------------------------- 1273819 June 2003. Summary of changes for version 20030619: 12739 127401) ACPI CA Core Subsystem: 12741 12742Fix To/FromBCD, eliminating the need for an arch-specific #define. 12743 12744Do not acquire a semaphore in the S5 shutdown path. 12745 12746Fix ex_digits_needed for 0. (Takayoshi Kochi) 12747 12748Fix sleep/stall code reversal. (Andi Kleen) 12749 12750Revert a change having to do with control method calling 12751semantics. 12752 127532) Linux: 12754 12755acpiphp update (Takayoshi Kochi) 12756 12757Export acpi_disabled for sonypi (Stelian Pop) 12758 12759Mention acpismp=force in config help 12760 12761Re-add acpitable.c and acpismp=force. This improves backwards 12762 12763compatibility and also cleans up the code to a significant degree. 12764 12765Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 12766 12767---------------------------------------- 1276822 May 2003. Summary of changes for version 20030522: 12769 127701) ACPI CA Core Subsystem: 12771 12772Found and fixed a reported problem where an AE_NOT_FOUND error 12773occurred occasionally during _BST evaluation. This turned out to 12774be an Owner ID allocation issue where a called method did not get 12775a new ID assigned to it. Eventually, (after 64k calls), the Owner 12776ID UINT16 would wraparound so that the ID would be the same as the 12777caller's and the called method would delete the caller's 12778namespace. 12779 12780Implemented extended error reporting for control methods that are 12781aborted due to a run-time exception. Output includes the exact 12782AML instruction that caused the method abort, a dump of the method 12783locals and arguments at the time of the abort, and a trace of all 12784nested control method calls. 12785 12786Modified the interpreter to allow the creation of buffers of zero 12787length from the AML code. Implemented new code to ensure that no 12788attempt is made to actually allocate a memory buffer (of length 12789zero) - instead, a simple buffer object with a NULL buffer pointer 12790and length zero is created. A warning is no longer issued when 12791the AML attempts to create a zero-length buffer. 12792 12793Implemented a workaround for the "leading asterisk issue" in 12794_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 12795asterisk is automatically removed if present in any HID, UID, or 12796CID strings. The iASL compiler will still flag this asterisk as 12797an error, however. 12798 12799Implemented full support for _CID methods that return a package of 12800multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 12801now additionally returns a device _CID list if present. This 12802required a change to the external interface in order to pass an 12803ACPI_BUFFER object as a parameter since the _CID list is of 12804variable length. 12805 12806Fixed a problem with the new AE_SAME_HANDLER exception where 12807handler initialization code did not know about this exception. 12808 12809Code and Data Size: Current and previous core subsystem library 12810sizes are shown below. These are the code and data sizes for the 12811acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 12812these values do not include any ACPI driver or OSPM code. The 12813debug version of the code includes the debug output trace 12814mechanism and has a much larger code and data size. Note that 12815these values will vary depending on the efficiency of the compiler 12816and the compiler options used during generation. 12817 12818 Previous Release (20030509): 12819 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 12820 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 12821 Current Release: 12822 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 12823 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 12824 12825 128262) Linux: 12827 12828Fixed a bug in which we would reinitialize the ACPI interrupt 12829after it was already working, thus disabling all ACPI and the IRQs 12830for any other device sharing the interrupt. (Thanks to Stian 12831Jordet) 12832 12833Toshiba driver update (John Belmonte) 12834 12835Return only 0 or 1 for our interrupt handler status (Andrew 12836Morton) 12837 12838 128393) iASL Compiler: 12840 12841Fixed a reported problem where multiple (nested) ElseIf() 12842statements were not handled correctly by the compiler, resulting 12843in incorrect warnings and incorrect AML code. This was a problem 12844in both the ASL parser and the code generator. 12845 12846 128474) Documentation: 12848 12849Added changes to existing interfaces, new exception codes, and new 12850text concerning reference count object management versus garbage 12851collection. 12852 12853---------------------------------------- 1285409 May 2003. Summary of changes for version 20030509. 12855 12856 128571) ACPI CA Core Subsystem: 12858 12859Changed the subsystem initialization sequence to hold off 12860installation of address space handlers until the hardware has been 12861initialized and the system has entered ACPI mode. This is because 12862the installation of space handlers can cause _REG methods to be 12863run. Previously, the _REG methods could potentially be run before 12864ACPI mode was enabled. 12865 12866Fixed some memory leak issues related to address space handler and 12867notify handler installation. There were some problems with the 12868reference count mechanism caused by the fact that the handler 12869objects are shared across several namespace objects. 12870 12871Fixed a reported problem where reference counts within the 12872namespace were not properly updated when named objects created by 12873method execution were deleted. 12874 12875Fixed a reported problem where multiple SSDTs caused a deletion 12876issue during subsystem termination. Restructured the table data 12877structures to simplify the linked lists and the related code. 12878 12879Fixed a problem where the table ID associated with secondary 12880tables (SSDTs) was not being propagated into the namespace objects 12881created by those tables. This would only present a problem for 12882tables that are unloaded at run-time, however. 12883 12884Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 12885type as the length parameter (instead of UINT32). 12886 12887Solved a long-standing problem where an ALREADY_EXISTS error 12888appears on various systems. This problem could happen when there 12889are multiple PCI_Config operation regions under a single PCI root 12890bus. This doesn't happen very frequently, but there are some 12891systems that do this in the ASL. 12892 12893Fixed a reported problem where the internal DeleteNode function 12894was incorrectly handling the case where a namespace node was the 12895first in the parent's child list, and had additional peers (not 12896the only child, but first in the list of children.) 12897 12898Code and Data Size: Current core subsystem library sizes are shown 12899below. These are the code and data sizes for the acpica.lib 12900produced by the Microsoft Visual C++ 6.0 compiler, and these 12901values do not include any ACPI driver or OSPM code. The debug 12902version of the code includes the debug output trace mechanism and 12903has a much larger code and data size. Note that these values will 12904vary depending on the efficiency of the compiler and the compiler 12905options used during generation. 12906 12907 Previous Release 12908 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 12909 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 12910 Current Release: 12911 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 12912 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 12913 12914 129152) Linux: 12916 12917Allow ":" in OS override string (Ducrot Bruno) 12918 12919Kobject fix (Greg KH) 12920 12921 129223 iASL Compiler/Disassembler: 12923 12924Fixed a problem in the generation of the C source code files (AML 12925is emitted in C source statements for BIOS inclusion) where the 12926Ascii dump that appears within a C comment at the end of each line 12927could cause a compile time error if the AML sequence happens to 12928have an open comment or close comment sequence embedded. 12929 12930 12931---------------------------------------- 1293224 April 2003. Summary of changes for version 20030424. 12933 12934 129351) ACPI CA Core Subsystem: 12936 12937Support for big-endian systems has been implemented. Most of the 12938support has been invisibly added behind big-endian versions of the 12939ACPI_MOVE_* macros. 12940 12941Fixed a problem in AcpiHwDisableGpeBlock() and 12942AcpiHwClearGpeBlock() where an incorrect offset was passed to the 12943low level hardware write routine. The offset parameter was 12944actually eliminated from the low level read/write routines because 12945they had become obsolete. 12946 12947Fixed a problem where a handler object was deleted twice during 12948the removal of a fixed event handler. 12949 12950 129512) Linux: 12952 12953A fix for SMP systems with link devices was contributed by 12954 12955Compaq's Dan Zink. 12956 12957(2.5) Return whether we handled the interrupt in our IRQ handler. 12958(Linux ISRs no longer return void, so we can propagate the handler 12959return value from the ACPI CA core back to the OS.) 12960 12961 12962 129633) Documentation: 12964 12965The ACPI CA Programmer Reference has been updated to reflect new 12966interfaces and changes to existing interfaces. 12967 12968---------------------------------------- 1296928 March 2003. Summary of changes for version 20030328. 12970 129711) ACPI CA Core Subsystem: 12972 12973The GPE Block Device support has been completed. New interfaces 12974are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 12975interfaces (enable, disable, clear, getstatus) have been split 12976into separate interfaces for Fixed Events and General Purpose 12977Events (GPEs) in order to support GPE Block Devices properly. 12978 12979Fixed a problem where the error message "Failed to acquire 12980semaphore" would appear during operations on the embedded 12981controller (EC). 12982 12983Code and Data Size: Current core subsystem library sizes are shown 12984below. These are the code and data sizes for the acpica.lib 12985produced by the Microsoft Visual C++ 6.0 compiler, and these 12986values do not include any ACPI driver or OSPM code. The debug 12987version of the code includes the debug output trace mechanism and 12988has a much larger code and data size. Note that these values will 12989vary depending on the efficiency of the compiler and the compiler 12990options used during generation. 12991 12992 Previous Release 12993 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 12994 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 12995 Current Release: 12996 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 12997 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 12998 12999 13000---------------------------------------- 1300128 February 2003. Summary of changes for version 20030228. 13002 13003 130041) ACPI CA Core Subsystem: 13005 13006The GPE handling and dispatch code has been completely overhauled 13007in preparation for support of GPE Block Devices (ID ACPI0006). 13008This affects internal data structures and code only; there should 13009be no differences visible externally. One new file has been 13010added, evgpeblk.c 13011 13012The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 13013fields that are used to determine the GPE block lengths. The 13014REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 13015structures are ignored. This is per the ACPI specification but it 13016isn't very clear. The full 256 Block 0/1 GPEs are now supported 13017(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 13018 13019In the SCI interrupt handler, removed the read of the PM1_CONTROL 13020register to look at the SCI_EN bit. On some machines, this read 13021causes an SMI event and greatly slows down SCI events. (This may 13022in fact be the cause of slow battery status response on some 13023systems.) 13024 13025Fixed a problem where a store of a NULL string to a package object 13026could cause the premature deletion of the object. This was seen 13027during execution of the battery _BIF method on some systems, 13028resulting in no battery data being returned. 13029 13030Added AcpiWalkResources interface to simplify parsing of resource 13031lists. 13032 13033Code and Data Size: Current core subsystem library sizes are shown 13034below. These are the code and data sizes for the acpica.lib 13035produced by the Microsoft Visual C++ 6.0 compiler, and these 13036values do not include any ACPI driver or OSPM code. The debug 13037version of the code includes the debug output trace mechanism and 13038has a much larger code and data size. Note that these values will 13039vary depending on the efficiency of the compiler and the compiler 13040options used during generation. 13041 13042 Previous Release 13043 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13044 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13045 Current Release: 13046 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 13047 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 13048 13049 130502) Linux 13051 13052S3 fixes (Ole Rohne) 13053 13054Update ACPI PHP driver with to use new acpi_walk_resource API 13055(Bjorn Helgaas) 13056 13057Add S4BIOS support (Pavel Machek) 13058 13059Map in entire table before performing checksum (John Stultz) 13060 13061Expand the mem= cmdline to allow the specification of reserved and 13062ACPI DATA blocks (Pavel Machek) 13063 13064Never use ACPI on VISWS 13065 13066Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 13067 13068Revert a change that allowed P_BLK lengths to be 4 or 5. This is 13069causing us to think that some systems support C2 when they really 13070don't. 13071 13072Do not count processor objects for non-present CPUs (Thanks to 13073Dominik Brodowski) 13074 13075 130763) iASL Compiler: 13077 13078Fixed a problem where ASL include files could not be found and 13079opened. 13080 13081Added support for the _PDC reserved name. 13082 13083 13084---------------------------------------- 1308522 January 2003. Summary of changes for version 20030122. 13086 13087 130881) ACPI CA Core Subsystem: 13089 13090Added a check for constructs of the form: Store (Local0, Local0) 13091where Local0 is not initialized. Apparently, some BIOS 13092programmers believe that this is a NOOP. Since this store doesn't 13093do anything anyway, the new prototype behavior will ignore this 13094error. This is a case where we can relax the strict checking in 13095the interpreter in the name of compatibility. 13096 13097 130982) Linux 13099 13100The AcpiSrc Source Conversion Utility has been released with the 13101Linux package for the first time. This is the utility that is 13102used to convert the ACPI CA base source code to the Linux version. 13103 13104(Both) Handle P_BLK lengths shorter than 6 more gracefully 13105 13106(Both) Move more headers to include/acpi, and delete an unused 13107header. 13108 13109(Both) Move drivers/acpi/include directory to include/acpi 13110 13111(Both) Boot functions don't use cmdline, so don't pass it around 13112 13113(Both) Remove include of unused header (Adrian Bunk) 13114 13115(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 13116the 13117former now also includes the latter, acpiphp.h only needs the one, 13118now. 13119 13120(2.5) Make it possible to select method of bios restoring after S3 13121resume. [=> no more ugly ifdefs] (Pavel Machek) 13122 13123(2.5) Make proc write interfaces work (Pavel Machek) 13124 13125(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 13126 13127(2.5) Break out ACPI Perf code into its own module, under cpufreq 13128(Dominik Brodowski) 13129 13130(2.4) S4BIOS support (Ducrot Bruno) 13131 13132(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 13133Visinoni) 13134 13135 131363) iASL Compiler: 13137 13138Added support to disassemble SSDT and PSDTs. 13139 13140Implemented support to obtain SSDTs from the Windows registry if 13141available. 13142 13143 13144---------------------------------------- 1314509 January 2003. Summary of changes for version 20030109. 13146 131471) ACPI CA Core Subsystem: 13148 13149Changed the behavior of the internal Buffer-to-String conversion 13150function. The current ACPI specification states that the contents 13151of the buffer are "converted to a string of two-character 13152hexadecimal numbers, each separated by a space". Unfortunately, 13153this definition is not backwards compatible with existing ACPI 1.0 13154implementations (although the behavior was not defined in the ACPI 131551.0 specification). The new behavior simply copies data from the 13156buffer to the string until a null character is found or the end of 13157the buffer is reached. The new String object is always null 13158terminated. This problem was seen during the generation of _BIF 13159battery data where incorrect strings were returned for battery 13160type, etc. This will also require an errata to the ACPI 13161specification. 13162 13163Renamed all instances of NATIVE_UINT and NATIVE_INT to 13164ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 13165 13166Copyright in all module headers (both Linux and non-Linux) has be 13167updated to 2003. 13168 13169Code and Data Size: Current core subsystem library sizes are shown 13170below. These are the code and data sizes for the acpica.lib 13171produced by the Microsoft Visual C++ 6.0 compiler, and these 13172values do not include any ACPI driver or OSPM code. The debug 13173version of the code includes the debug output trace mechanism and 13174has a much larger code and data size. Note that these values will 13175vary depending on the efficiency of the compiler and the compiler 13176options used during generation. 13177 13178 Previous Release 13179 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13180 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13181 Current Release: 13182 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13183 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13184 13185 131862) Linux 13187 13188Fixed an oops on module insertion/removal (Matthew Tippett) 13189 13190(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 13191 13192(2.5) Replace pr_debug (Randy Dunlap) 13193 13194(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 13195 13196(Both) Eliminate spawning of thread from timer callback, in favor 13197of schedule_work() 13198 13199(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 13200 13201(Both) Added define for Fixed Function HW region (Matthew Wilcox) 13202 13203(Both) Add missing statics to button.c (Pavel Machek) 13204 13205Several changes have been made to the source code translation 13206utility that generates the Linux Code in order to make the code 13207more "Linux-like": 13208 13209All typedefs on structs and unions have been removed in keeping 13210with the Linux coding style. 13211 13212Removed the non-Linux SourceSafe module revision number from each 13213module header. 13214 13215Completed major overhaul of symbols to be lowercased for linux. 13216Doubled the number of symbols that are lowercased. 13217 13218Fixed a problem where identifiers within procedure headers and 13219within quotes were not fully lower cased (they were left with a 13220starting capital.) 13221 13222Some C macros whose only purpose is to allow the generation of 16- 13223bit code are now completely removed in the Linux code, increasing 13224readability and maintainability. 13225 13226---------------------------------------- 13227 1322812 December 2002. Summary of changes for version 20021212. 13229 13230 132311) ACPI CA Core Subsystem: 13232 13233Fixed a problem where the creation of a zero-length AML Buffer 13234would cause a fault. 13235 13236Fixed a problem where a Buffer object that pointed to a static AML 13237buffer (in an ACPI table) could inadvertently be deleted, causing 13238memory corruption. 13239 13240Fixed a problem where a user buffer (passed in to the external 13241ACPI CA interfaces) could be overwritten if the buffer was too 13242small to complete the operation, causing memory corruption. 13243 13244Fixed a problem in the Buffer-to-String conversion code where a 13245string of length one was always returned, regardless of the size 13246of the input Buffer object. 13247 13248Removed the NATIVE_CHAR data type across the entire source due to 13249lack of need and lack of consistent use. 13250 13251Code and Data Size: Current core subsystem library sizes are shown 13252below. These are the code and data sizes for the acpica.lib 13253produced by the Microsoft Visual C++ 6.0 compiler, and these 13254values do not include any ACPI driver or OSPM code. The debug 13255version of the code includes the debug output trace mechanism and 13256has a much larger code and data size. Note that these values will 13257vary depending on the efficiency of the compiler and the compiler 13258options used during generation. 13259 13260 Previous Release 13261 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13262 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13263 Current Release: 13264 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 13265 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 13266 13267 13268---------------------------------------- 1326905 December 2002. Summary of changes for version 20021205. 13270 132711) ACPI CA Core Subsystem: 13272 13273Fixed a problem where a store to a String or Buffer object could 13274cause corruption of the DSDT if the object type being stored was 13275the same as the target object type and the length of the object 13276being stored was equal to or smaller than the original (existing) 13277target object. This was seen to cause corruption of battery _BIF 13278buffers if the _BIF method modified the buffer on the fly. 13279 13280Fixed a problem where an internal error was generated if a control 13281method invocation was used in an OperationRegion, Buffer, or 13282Package declaration. This was caused by the deferred parsing of 13283the control method and thus the deferred creation of the internal 13284method object. The solution to this problem was to create the 13285internal method object at the moment the method is encountered in 13286the first pass - so that subsequent references to the method will 13287able to obtain the required parameter count and thus properly 13288parse the method invocation. This problem presented itself as an 13289AE_AML_INTERNAL during the pass 1 parse phase during table load. 13290 13291Fixed a problem where the internal String object copy routine did 13292not always allocate sufficient memory for the target String object 13293and caused memory corruption. This problem was seen to cause 13294"Allocation already present in list!" errors as memory allocation 13295became corrupted. 13296 13297Implemented a new function for the evaluation of namespace objects 13298that allows the specification of the allowable return object 13299types. This simplifies a lot of code that checks for a return 13300object of one or more specific objects returned from the 13301evaluation (such as _STA, etc.) This may become and external 13302function if it would be useful to ACPI-related drivers. 13303 13304Completed another round of prefixing #defines with "ACPI_" for 13305clarity. 13306 13307Completed additional code restructuring to allow more modular 13308linking for iASL compiler and AcpiExec. Several files were split 13309creating new files. New files: nsparse.c dsinit.c evgpe.c 13310 13311Implemented an abort mechanism to terminate an executing control 13312method via the AML debugger. This feature is useful for debugging 13313control methods that depend (wait) for specific hardware 13314responses. 13315 13316Code and Data Size: Current core subsystem library sizes are shown 13317below. These are the code and data sizes for the acpica.lib 13318produced by the Microsoft Visual C++ 6.0 compiler, and these 13319values do not include any ACPI driver or OSPM code. The debug 13320version of the code includes the debug output trace mechanism and 13321has a much larger code and data size. Note that these values will 13322vary depending on the efficiency of the compiler and the compiler 13323options used during generation. 13324 13325 Previous Release 13326 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13327 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13328 Current Release: 13329 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 13330 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 13331 13332 133332) iASL Compiler/Disassembler 13334 13335Fixed a compiler code generation problem for "Interrupt" Resource 13336Descriptors. If specified in the ASL, the optional "Resource 13337Source Index" and "Resource Source" fields were not inserted into 13338the correct location within the AML resource descriptor, creating 13339an invalid descriptor. 13340 13341Fixed a disassembler problem for "Interrupt" resource descriptors. 13342The optional "Resource Source Index" and "Resource Source" fields 13343were ignored. 13344 13345 13346---------------------------------------- 1334722 November 2002. Summary of changes for version 20021122. 13348 13349 133501) ACPI CA Core Subsystem: 13351 13352Fixed a reported problem where an object stored to a Method Local 13353or Arg was not copied to a new object during the store - the 13354object pointer was simply copied to the Local/Arg. This caused 13355all subsequent operations on the Local/Arg to also affect the 13356original source of the store operation. 13357 13358Fixed a problem where a store operation to a Method Local or Arg 13359was not completed properly if the Local/Arg contained a reference 13360(from RefOf) to a named field. The general-purpose store-to- 13361namespace-node code is now used so that this case is handled 13362automatically. 13363 13364Fixed a problem where the internal object copy routine would cause 13365a protection fault if the object being copied was a Package and 13366contained either 1) a NULL package element or 2) a nested sub- 13367package. 13368 13369Fixed a problem with the GPE initialization that resulted from an 13370ambiguity in the ACPI specification. One section of the 13371specification states that both the address and length of the GPE 13372block must be zero if the block is not supported. Another section 13373implies that only the address need be zero if the block is not 13374supported. The code has been changed so that both the address and 13375the length must be non-zero to indicate a valid GPE block (i.e., 13376if either the address or the length is zero, the GPE block is 13377invalid.) 13378 13379Code and Data Size: Current core subsystem library sizes are shown 13380below. These are the code and data sizes for the acpica.lib 13381produced by the Microsoft Visual C++ 6.0 compiler, and these 13382values do not include any ACPI driver or OSPM code. The debug 13383version of the code includes the debug output trace mechanism and 13384has a much larger code and data size. Note that these values will 13385vary depending on the efficiency of the compiler and the compiler 13386options used during generation. 13387 13388 Previous Release 13389 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13390 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13391 Current Release: 13392 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13393 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 13394 13395 133962) Linux 13397 13398Cleaned up EC driver. Exported an external EC read/write 13399interface. By going through this, other drivers (most notably 13400sonypi) will be able to serialize access to the EC. 13401 13402 134033) iASL Compiler/Disassembler 13404 13405Implemented support to optionally generate include files for both 13406ASM and C (the -i switch). This simplifies BIOS development by 13407automatically creating include files that contain external 13408declarations for the symbols that are created within the 13409 13410(optionally generated) ASM and C AML source files. 13411 13412 13413---------------------------------------- 1341415 November 2002. Summary of changes for version 20021115. 13415 134161) ACPI CA Core Subsystem: 13417 13418Fixed a memory leak problem where an error during resolution of 13419 13420method arguments during a method invocation from another method 13421failed to cleanup properly by deleting all successfully resolved 13422argument objects. 13423 13424Fixed a problem where the target of the Index() operator was not 13425correctly constructed if the source object was a package. This 13426problem has not been detected because the use of a target operand 13427with Index() is very rare. 13428 13429Fixed a problem with the Index() operator where an attempt was 13430made to delete the operand objects twice. 13431 13432Fixed a problem where an attempt was made to delete an operand 13433twice during execution of the CondRefOf() operator if the target 13434did not exist. 13435 13436Implemented the first of perhaps several internal create object 13437functions that create and initialize a specific object type. This 13438consolidates duplicated code wherever the object is created, thus 13439shrinking the size of the subsystem. 13440 13441Implemented improved debug/error messages for errors that occur 13442during nested method invocations. All executing method pathnames 13443are displayed (with the error) as the call stack is unwound - thus 13444simplifying debug. 13445 13446Fixed a problem introduced in the 10/02 release that caused 13447premature deletion of a buffer object if a buffer was used as an 13448ASL operand where an integer operand is required (Thus causing an 13449implicit object conversion from Buffer to Integer.) The change in 13450the 10/02 release was attempting to fix a memory leak (albeit 13451incorrectly.) 13452 13453Code and Data Size: Current core subsystem library sizes are shown 13454below. These are the code and data sizes for the acpica.lib 13455produced by the Microsoft Visual C++ 6.0 compiler, and these 13456values do not include any ACPI driver or OSPM code. The debug 13457version of the code includes the debug output trace mechanism and 13458has a much larger code and data size. Note that these values will 13459vary depending on the efficiency of the compiler and the compiler 13460options used during generation. 13461 13462 Previous Release 13463 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13464 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13465 Current Release: 13466 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 13467 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 13468 13469 134702) Linux 13471 13472Changed the implementation of the ACPI semaphores to use down() 13473instead of down_interruptable(). It is important that the 13474execution of ACPI control methods not be interrupted by signals. 13475Methods must run to completion, or the system may be left in an 13476unknown/unstable state. 13477 13478Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 13479(Shawn Starr) 13480 13481 134823) iASL Compiler/Disassembler 13483 13484 13485Changed the default location of output files. All output files 13486are now placed in the current directory by default instead of in 13487the directory of the source file. This change may affect some 13488existing makefiles, but it brings the behavior of the compiler in 13489line with other similar tools. The location of the output files 13490can be overridden with the -p command line switch. 13491 13492 13493---------------------------------------- 1349411 November 2002. Summary of changes for version 20021111. 13495 13496 134970) ACPI Specification 2.0B is released and is now available at: 13498http://www.acpi.info/index.html 13499 13500 135011) ACPI CA Core Subsystem: 13502 13503Implemented support for the ACPI 2.0 SMBus Operation Regions. 13504This includes the early detection and handoff of the request to 13505the SMBus region handler (avoiding all of the complex field 13506support code), and support for the bidirectional return packet 13507from an SMBus write operation. This paves the way for the 13508development of SMBus drivers in each host operating system. 13509 13510Fixed a problem where the semaphore WAIT_FOREVER constant was 13511defined as 32 bits, but must be 16 bits according to the ACPI 13512specification. This had the side effect of causing ASL 13513Mutex/Event timeouts even though the ASL code requested a wait 13514forever. Changed all internal references to the ACPI timeout 13515parameter to 16 bits to prevent future problems. Changed the name 13516of WAIT_FOREVER to ACPI_WAIT_FOREVER. 13517 13518Code and Data Size: Current core subsystem library sizes are shown 13519below. These are the code and data sizes for the acpica.lib 13520produced by the Microsoft Visual C++ 6.0 compiler, and these 13521values do not include any ACPI driver or OSPM code. The debug 13522version of the code includes the debug output trace mechanism and 13523has a much larger code and data size. Note that these values will 13524vary depending on the efficiency of the compiler and the compiler 13525options used during generation. 13526 13527 Previous Release 13528 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13529 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13530 Current Release: 13531 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 13532 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 13533 13534 135352) Linux 13536 13537Module loading/unloading fixes (John Cagle) 13538 13539 135403) iASL Compiler/Disassembler 13541 13542Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 13543 13544Implemented support for the disassembly of all SMBus protocol 13545keywords (SMBQuick, SMBWord, etc.) 13546 13547---------------------------------------- 1354801 November 2002. Summary of changes for version 20021101. 13549 13550 135511) ACPI CA Core Subsystem: 13552 13553Fixed a problem where platforms that have a GPE1 block but no GPE0 13554block were not handled correctly. This resulted in a "GPE 13555overlap" error message. GPE0 is no longer required. 13556 13557Removed code added in the previous release that inserted nodes 13558into the namespace in alphabetical order. This caused some side- 13559effects on various machines. The root cause of the problem is 13560still under investigation since in theory, the internal ordering 13561of the namespace nodes should not matter. 13562 13563 13564Enhanced error reporting for the case where a named object is not 13565found during control method execution. The full ACPI namepath 13566(name reference) of the object that was not found is displayed in 13567this case. 13568 13569Note: as a result of the overhaul of the namespace object types in 13570the previous release, the namespace nodes for the predefined 13571scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 13572instead of ACPI_TYPE_ANY. This simplifies the namespace 13573management code but may affect code that walks the namespace tree 13574looking for specific object types. 13575 13576Code and Data Size: Current core subsystem library sizes are shown 13577below. These are the code and data sizes for the acpica.lib 13578produced by the Microsoft Visual C++ 6.0 compiler, and these 13579values do not include any ACPI driver or OSPM code. The debug 13580version of the code includes the debug output trace mechanism and 13581has a much larger code and data size. Note that these values will 13582vary depending on the efficiency of the compiler and the compiler 13583options used during generation. 13584 13585 Previous Release 13586 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13587 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13588 Current Release: 13589 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 13590 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 13591 13592 135932) Linux 13594 13595Fixed a problem introduced in the previous release where the 13596Processor and Thermal objects were not recognized and installed in 13597/proc. This was related to the scope type change described above. 13598 13599 136003) iASL Compiler/Disassembler 13601 13602Implemented the -g option to get all of the required ACPI tables 13603from the registry and save them to files (Windows version of the 13604compiler only.) The required tables are the FADT, FACS, and DSDT. 13605 13606Added ACPI table checksum validation during table disassembly in 13607order to catch corrupted tables. 13608 13609 13610---------------------------------------- 1361122 October 2002. Summary of changes for version 20021022. 13612 136131) ACPI CA Core Subsystem: 13614 13615Implemented a restriction on the Scope operator that the target 13616must already exist in the namespace at the time the operator is 13617encountered (during table load or method execution). In other 13618words, forward references are not allowed and Scope() cannot 13619create a new object. This changes the previous behavior where the 13620interpreter would create the name if not found. This new behavior 13621correctly enables the search-to-root algorithm during namespace 13622lookup of the target name. Because of this upsearch, this fixes 13623the known Compaq _SB_.OKEC problem and makes both the AML 13624interpreter and iASL compiler compatible with other ACPI 13625implementations. 13626 13627Completed a major overhaul of the internal ACPI object types for 13628the ACPI Namespace and the associated operand objects. Many of 13629these types had become obsolete with the introduction of the two- 13630pass namespace load. This cleanup simplifies the code and makes 13631the entire namespace load mechanism much clearer and easier to 13632understand. 13633 13634Improved debug output for tracking scope opening/closing to help 13635diagnose scoping issues. The old scope name as well as the new 13636scope name are displayed. Also improved error messages for 13637problems with ASL Mutex objects and error messages for GPE 13638problems. 13639 13640Cleaned up the namespace dump code, removed obsolete code. 13641 13642All string output (for all namespace/object dumps) now uses the 13643common ACPI string output procedure which handles escapes properly 13644and does not emit non-printable characters. 13645 13646Fixed some issues with constants in the 64-bit version of the 13647local C library (utclib.c) 13648 13649 136502) Linux 13651 13652EC Driver: No longer attempts to acquire the Global Lock at 13653interrupt level. 13654 13655 136563) iASL Compiler/Disassembler 13657 13658Implemented ACPI 2.0B grammar change that disallows all Type 1 and 136592 opcodes outside of a control method. This means that the 13660"executable" operators (versus the "namespace" operators) cannot 13661be used at the table level; they can only be used within a control 13662method. 13663 13664Implemented the restriction on the Scope() operator where the 13665target must already exist in the namespace at the time the 13666operator is encountered (during ASL compilation). In other words, 13667forward references are not allowed and Scope() cannot create a new 13668object. This makes the iASL compiler compatible with other ACPI 13669implementations and makes the Scope() implementation adhere to the 13670ACPI specification. 13671 13672Fixed a problem where namepath optimization for the Alias operator 13673was optimizing the wrong path (of the two namepaths.) This caused 13674a "Missing alias link" error message. 13675 13676Fixed a problem where an "unknown reserved name" warning could be 13677incorrectly generated for names like "_SB" when the trailing 13678underscore is not used in the original ASL. 13679 13680Fixed a problem where the reserved name check did not handle 13681NamePaths with multiple NameSegs correctly. The first nameseg of 13682the NamePath was examined instead of the last NameSeg. 13683 13684 13685---------------------------------------- 13686 1368702 October 2002. Summary of changes for this release. 13688 13689 136901) ACPI CA Core Subsystem version 20021002: 13691 13692Fixed a problem where a store/copy of a string to an existing 13693string did not always set the string length properly in the String 13694object. 13695 13696Fixed a reported problem with the ToString operator where the 13697behavior was identical to the ToHexString operator instead of just 13698simply converting a raw buffer to a string data type. 13699 13700Fixed a problem where CopyObject and the other "explicit" 13701conversion operators were not updating the internal namespace node 13702type as part of the store operation. 13703 13704Fixed a memory leak during implicit source operand conversion 13705where the original object was not deleted if it was converted to a 13706new object of a different type. 13707 13708Enhanced error messages for all problems associated with namespace 13709lookups. Common procedure generates and prints the lookup name as 13710well as the formatted status. 13711 13712Completed implementation of a new design for the Alias support 13713within the namespace. The existing design did not handle the case 13714where a new object was assigned to one of the two names due to the 13715use of an explicit conversion operator, resulting in the two names 13716pointing to two different objects. The new design simply points 13717the Alias name to the original name node - not to the object. 13718This results in a level of indirection that must be handled in the 13719name resolution mechanism. 13720 13721Code and Data Size: Current core subsystem library sizes are shown 13722below. These are the code and data sizes for the acpica.lib 13723produced by the Microsoft Visual C++ 6.0 compiler, and these 13724values do not include any ACPI driver or OSPM code. The debug 13725version of the code includes the debug output trace mechanism and 13726has a larger code and data size. Note that these values will vary 13727depending on the efficiency of the compiler and the compiler 13728options used during generation. 13729 13730 Previous Release 13731 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 13732 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 13733 Current Release: 13734 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 13735 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 13736 13737 137382) Linux 13739 13740Initialize thermal driver's timer before it is used. (Knut 13741Neumann) 13742 13743Allow handling negative celsius values. (Kochi Takayoshi) 13744 13745Fix thermal management and make trip points. R/W (Pavel Machek) 13746 13747Fix /proc/acpi/sleep. (P. Christeas) 13748 13749IA64 fixes. (David Mosberger) 13750 13751Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 13752 13753Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 13754Brodowski) 13755 13756 137573) iASL Compiler/Disassembler 13758 13759Clarified some warning/error messages. 13760 13761 13762---------------------------------------- 1376318 September 2002. Summary of changes for this release. 13764 13765 137661) ACPI CA Core Subsystem version 20020918: 13767 13768Fixed a reported problem with reference chaining (via the Index() 13769and RefOf() operators) in the ObjectType() and SizeOf() operators. 13770The definition of these operators includes the dereferencing of 13771all chained references to return information on the base object. 13772 13773Fixed a problem with stores to indexed package elements - the 13774existing code would not complete the store if an "implicit 13775conversion" was not performed. In other words, if the existing 13776object (package element) was to be replaced completely, the code 13777didn't handle this case. 13778 13779Relaxed typechecking on the ASL "Scope" operator to allow the 13780target name to refer to an object of type Integer, String, or 13781Buffer, in addition to the scoping object types (Device, 13782predefined Scopes, Processor, PowerResource, and ThermalZone.) 13783This allows existing AML code that has workarounds for a bug in 13784Windows to function properly. A warning is issued, however. This 13785affects both the AML interpreter and the iASL compiler. Below is 13786an example of this type of ASL code: 13787 13788 Name(DEB,0x00) 13789 Scope(DEB) 13790 { 13791 13792Fixed some reported problems with 64-bit integer support in the 13793local implementation of C library functions (clib.c) 13794 13795 137962) Linux 13797 13798Use ACPI fix map region instead of IOAPIC region, since it is 13799undefined in non-SMP. 13800 13801Ensure that the SCI has the proper polarity and trigger, even on 13802systems that do not have an interrupt override entry in the MADT. 13803 138042.5 big driver reorganization (Pat Mochel) 13805 13806Use early table mapping code from acpitable.c (Andi Kleen) 13807 13808New blacklist entries (Andi Kleen) 13809 13810Blacklist improvements. Split blacklist code out into a separate 13811file. Move checking the blacklist to very early. Previously, we 13812would use ACPI tables, and then halfway through init, check the 13813blacklist -- too late. Now, it's early enough to completely fall- 13814back to non-ACPI. 13815 13816 138173) iASL Compiler/Disassembler version 20020918: 13818 13819Fixed a problem where the typechecking code didn't know that an 13820alias could point to a method. In other words, aliases were not 13821being dereferenced during typechecking. 13822 13823 13824---------------------------------------- 1382529 August 2002. Summary of changes for this release. 13826 138271) ACPI CA Core Subsystem Version 20020829: 13828 13829If the target of a Scope() operator already exists, it must be an 13830object type that actually opens a scope -- such as a Device, 13831Method, Scope, etc. This is a fatal runtime error. Similar error 13832check has been added to the iASL compiler also. 13833 13834Tightened up the namespace load to disallow multiple names in the 13835same scope. This previously was allowed if both objects were of 13836the same type. (i.e., a lookup was the same as entering a new 13837name). 13838 13839 138402) Linux 13841 13842Ensure that the ACPI interrupt has the proper trigger and 13843polarity. 13844 13845local_irq_disable is extraneous. (Matthew Wilcox) 13846 13847Make "acpi=off" actually do what it says, and not use the ACPI 13848interpreter *or* the tables. 13849 13850Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 13851Takayoshi) 13852 13853 138543) iASL Compiler/Disassembler Version 20020829: 13855 13856Implemented namepath optimization for name declarations. For 13857example, a declaration like "Method (\_SB_.ABCD)" would get 13858optimized to "Method (ABCD)" if the declaration is within the 13859\_SB_ scope. This optimization is in addition to the named 13860reference path optimization first released in the previous 13861version. This would seem to complete all possible optimizations 13862for namepaths within the ASL/AML. 13863 13864If the target of a Scope() operator already exists, it must be an 13865object type that actually opens a scope -- such as a Device, 13866Method, Scope, etc. 13867 13868Implemented a check and warning for unreachable code in the same 13869block below a Return() statement. 13870 13871Fixed a problem where the listing file was not generated if the 13872compiler aborted if the maximum error count was exceeded (200). 13873 13874Fixed a problem where the typechecking of method return values was 13875broken. This includes the check for a return value when the 13876method is invoked as a TermArg (a return value is expected.) 13877 13878Fixed a reported problem where EOF conditions during a quoted 13879string or comment caused a fault. 13880 13881 13882---------------------------------------- 1388315 August 2002. Summary of changes for this release. 13884 138851) ACPI CA Core Subsystem Version 20020815: 13886 13887Fixed a reported problem where a Store to a method argument that 13888contains a reference did not perform the indirect store correctly. 13889This problem was created during the conversion to the new 13890reference object model - the indirect store to a method argument 13891code was not updated to reflect the new model. 13892 13893Reworked the ACPI mode change code to better conform to ACPI 2.0, 13894handle corner cases, and improve code legibility (Kochi Takayoshi) 13895 13896Fixed a problem with the pathname parsing for the carat (^) 13897prefix. The heavy use of the carat operator by the new namepath 13898optimization in the iASL compiler uncovered a problem with the AML 13899interpreter handling of this prefix. In the case where one or 13900more carats precede a single nameseg, the nameseg was treated as 13901standalone and the search rule (to root) was inadvertently 13902applied. This could cause both the iASL compiler and the 13903interpreter to find the wrong object or to miss the error that 13904should occur if the object does not exist at that exact pathname. 13905 13906Found and fixed the problem where the HP Pavilion DSDT would not 13907load. This was a relatively minor tweak to the table loading code 13908(a problem caused by the unexpected encounter with a method 13909invocation not within a control method), but it does not solve the 13910overall issue of the execution of AML code at the table level. 13911This investigation is still ongoing. 13912 13913Code and Data Size: Current core subsystem library sizes are shown 13914below. These are the code and data sizes for the acpica.lib 13915produced by the Microsoft Visual C++ 6.0 compiler, and these 13916values do not include any ACPI driver or OSPM code. The debug 13917version of the code includes the debug output trace mechanism and 13918has a larger code and data size. Note that these values will vary 13919depending on the efficiency of the compiler and the compiler 13920options used during generation. 13921 13922 Previous Release 13923 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 13924 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 13925 Current Release: 13926 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 13927 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 13928 13929 139302) Linux 13931 13932Remove redundant slab.h include (Brad Hards) 13933 13934Fix several bugs in thermal.c (Herbert Nachtnebel) 13935 13936Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 13937 13938Change acpi_system_suspend to use updated irq functions (Pavel 13939Machek) 13940 13941Export acpi_get_firmware_table (Matthew Wilcox) 13942 13943Use proper root proc entry for ACPI (Kochi Takayoshi) 13944 13945Fix early-boot table parsing (Bjorn Helgaas) 13946 13947 139483) iASL Compiler/Disassembler 13949 13950Reworked the compiler options to make them more consistent and to 13951use two-letter options where appropriate. We were running out of 13952sensible letters. This may break some makefiles, so check the 13953current options list by invoking the compiler with no parameters. 13954 13955Completed the design and implementation of the ASL namepath 13956optimization option for the compiler. This option optimizes all 13957references to named objects to the shortest possible path. The 13958first attempt tries to utilize a single nameseg (4 characters) and 13959the "search-to-root" algorithm used by the interpreter. If that 13960cannot be used (because either the name is not in the search path 13961or there is a conflict with another object with the same name), 13962the pathname is optimized using the carat prefix (usually a 13963shorter string than specifying the entire path from the root.) 13964 13965Implemented support to obtain the DSDT from the Windows registry 13966(when the disassembly option is specified with no input file). 13967Added this code as the implementation for AcpiOsTableOverride in 13968the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 13969utility) to scan memory for the DSDT to the AcpiOsTableOverride 13970function in the DOS OSL to make the disassembler truly OS 13971independent. 13972 13973Implemented a new option to disassemble and compile in one step. 13974When used without an input filename, this option will grab the 13975DSDT from the local machine, disassemble it, and compile it in one 13976step. 13977 13978Added a warning message for invalid escapes (a backslash followed 13979by any character other than the allowable escapes). This catches 13980the quoted string error "\_SB_" (which should be "\\_SB_" ). 13981 13982Also, there are numerous instances in the ACPI specification where 13983this error occurs. 13984 13985Added a compiler option to disable all optimizations. This is 13986basically the "compatibility mode" because by using this option, 13987the AML code will come out exactly the same as other ASL 13988compilers. 13989 13990Added error messages for incorrectly ordered dependent resource 13991functions. This includes: missing EndDependentFn macro at end of 13992dependent resource list, nested dependent function macros (both 13993start and end), and missing StartDependentFn macro. These are 13994common errors that should be caught at compile time. 13995 13996Implemented _OSI support for the disassembler and compiler. _OSI 13997must be included in the namespace for proper disassembly (because 13998the disassembler must know the number of arguments.) 13999 14000Added an "optimization" message type that is optional (off by 14001default). This message is used for all optimizations - including 14002constant folding, integer optimization, and namepath optimization. 14003 14004---------------------------------------- 1400525 July 2002. Summary of changes for this release. 14006 14007 140081) ACPI CA Core Subsystem Version 20020725: 14009 14010The AML Disassembler has been enhanced to produce compilable ASL 14011code and has been integrated into the iASL compiler (see below) as 14012well as the single-step disassembly for the AML debugger and the 14013disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 14014resource templates and macros are fully supported. The 14015disassembler has been tested on over 30 different AML files, 14016producing identical AML when the resulting disassembled ASL file 14017is recompiled with the same ASL compiler. 14018 14019Modified the Resource Manager to allow zero interrupts and zero 14020dma channels during the GetCurrentResources call. This was 14021causing problems on some platforms. 14022 14023Added the AcpiOsRedirectOutput interface to the OSL to simplify 14024output redirection for the AcpiOsPrintf and AcpiOsVprintf 14025interfaces. 14026 14027Code and Data Size: Current core subsystem library sizes are shown 14028below. These are the code and data sizes for the acpica.lib 14029produced by the Microsoft Visual C++ 6.0 compiler, and these 14030values do not include any ACPI driver or OSPM code. The debug 14031version of the code includes the debug output trace mechanism and 14032has a larger code and data size. Note that these values will vary 14033depending on the efficiency of the compiler and the compiler 14034options used during generation. 14035 14036 Previous Release 14037 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 14038 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 14039 Current Release: 14040 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 14041 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 14042 14043 140442) Linux 14045 14046Fixed a panic in the EC driver (Dominik Brodowski) 14047 14048Implemented checksum of the R/XSDT itself during Linux table scan 14049(Richard Schaal) 14050 14051 140523) iASL compiler 14053 14054The AML disassembler is integrated into the compiler. The "-d" 14055option invokes the disassembler to completely disassemble an 14056input AML file, producing as output a text ASL file with the 14057extension ".dsl" (to avoid name collisions with existing .asl 14058source files.) A future enhancement will allow the disassembler 14059to obtain the BIOS DSDT from the registry under Windows. 14060 14061Fixed a problem with the VendorShort and VendorLong resource 14062descriptors where an invalid AML sequence was created. 14063 14064Implemented a fix for BufferData term in the ASL parser. It was 14065inadvertently defined twice, allowing invalid syntax to pass and 14066causing reduction conflicts. 14067 14068Fixed a problem where the Ones opcode could get converted to a 14069value of zero if "Ones" was used where a byte, word or dword value 14070was expected. The 64-bit value is now truncated to the correct 14071size with the correct value. 14072 14073 14074 14075---------------------------------------- 1407602 July 2002. Summary of changes for this release. 14077 14078 140791) ACPI CA Core Subsystem Version 20020702: 14080 14081The Table Manager code has been restructured to add several new 14082features. Tables that are not required by the core subsystem 14083(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 14084validated in any way and are returned from AcpiGetFirmwareTable if 14085requested. The AcpiOsTableOverride interface is now called for 14086each table that is loaded by the subsystem in order to allow the 14087host to override any table it chooses. Previously, only the DSDT 14088could be overridden. Added one new files, tbrsdt.c and 14089tbgetall.c. 14090 14091Fixed a problem with the conversion of internal package objects to 14092external objects (when a package is returned from a control 14093method.) The return buffer length was set to zero instead of the 14094proper length of the package object. 14095 14096Fixed a reported problem with the use of the RefOf and DeRefOf 14097operators when passing reference arguments to control methods. A 14098new type of Reference object is used internally for references 14099produced by the RefOf operator. 14100 14101Added additional error messages in the Resource Manager to explain 14102AE_BAD_DATA errors when they occur during resource parsing. 14103 14104Split the AcpiEnableSubsystem into two primitives to enable a 14105finer granularity initialization sequence. These two calls should 14106be called in this order: AcpiEnableSubsystem (flags), 14107AcpiInitializeObjects (flags). The flags parameter remains the 14108same. 14109 14110 141112) Linux 14112 14113Updated the ACPI utilities module to understand the new style of 14114fully resolved package objects that are now returned from the core 14115subsystem. This eliminates errors of the form: 14116 14117 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 14118 acpi_utils-0430 [145] acpi_evaluate_reference: 14119 Invalid element in package (not a device reference) 14120 14121The method evaluation utility uses the new buffer allocation 14122scheme instead of calling AcpiEvaluate Object twice. 14123 14124Added support for ECDT. This allows the use of the Embedded 14125 14126Controller before the namespace has been fully initialized, which 14127is necessary for ACPI 2.0 support, and for some laptops to 14128initialize properly. (Laptops using ECDT are still rare, so only 14129limited testing was performed of the added functionality.) 14130 14131Fixed memory leaks in the EC driver. 14132 14133Eliminated a brittle code structure in acpi_bus_init(). 14134 14135Eliminated the acpi_evaluate() helper function in utils.c. It is 14136no longer needed since acpi_evaluate_object can optionally 14137allocate memory for the return object. 14138 14139Implemented fix for keyboard hang when getting battery readings on 14140some systems (Stephen White) 14141 14142PCI IRQ routing update (Dominik Brodowski) 14143 14144Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 14145support 14146 14147---------------------------------------- 1414811 June 2002. Summary of changes for this release. 14149 14150 141511) ACPI CA Core Subsystem Version 20020611: 14152 14153Fixed a reported problem where constants such as Zero and One 14154appearing within _PRT packages were not handled correctly within 14155the resource manager code. Originally reported against the ASL 14156compiler because the code generator now optimizes integers to 14157their minimal AML representation (i.e. AML constants if possible.) 14158The _PRT code now handles all AML constant opcodes correctly 14159(Zero, One, Ones, Revision). 14160 14161Fixed a problem with the Concatenate operator in the AML 14162interpreter where a buffer result object was incorrectly marked as 14163not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 14164 14165All package sub-objects are now fully resolved before they are 14166returned from the external ACPI interfaces. This means that name 14167strings are resolved to object handles, and constant operators 14168(Zero, One, Ones, Revision) are resolved to Integers. 14169 14170Implemented immediate resolution of the AML Constant opcodes 14171(Zero, One, Ones, Revision) to Integer objects upon detection 14172within the AML stream. This has simplified and reduced the 14173generated code size of the subsystem by eliminating about 10 14174switch statements for these constants (which previously were 14175contained in Reference objects.) The complicating issues are that 14176the Zero opcode is used as a "placeholder" for unspecified 14177optional target operands and stores to constants are defined to be 14178no-ops. 14179 14180Code and Data Size: Current core subsystem library sizes are shown 14181below. These are the code and data sizes for the acpica.lib 14182produced by the Microsoft Visual C++ 6.0 compiler, and these 14183values do not include any ACPI driver or OSPM code. The debug 14184version of the code includes the debug output trace mechanism and 14185has a larger code and data size. Note that these values will vary 14186depending on the efficiency of the compiler and the compiler 14187options used during generation. 14188 14189 Previous Release 14190 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14191 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14192 Current Release: 14193 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 14194 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 14195 14196 141972) Linux 14198 14199 14200Added preliminary support for obtaining _TRA data for PCI root 14201bridges (Bjorn Helgaas). 14202 14203 142043) iASL Compiler Version X2046: 14205 14206Fixed a problem where the "_DDN" reserved name was defined to be a 14207control method with one argument. There are no arguments, and 14208_DDN does not have to be a control method. 14209 14210Fixed a problem with the Linux version of the compiler where the 14211source lines printed with error messages were the wrong lines. 14212This turned out to be the "LF versus CR/LF" difference between 14213Windows and Unix. This appears to be the longstanding issue 14214concerning listing output and error messages. 14215 14216Fixed a problem with the Linux version of compiler where opcode 14217names within error messages were wrong. This was caused by a 14218slight difference in the output of the Flex tool on Linux versus 14219Windows. 14220 14221Fixed a problem with the Linux compiler where the hex output files 14222contained some garbage data caused by an internal buffer overrun. 14223 14224 14225---------------------------------------- 1422617 May 2002. Summary of changes for this release. 14227 14228 142291) ACPI CA Core Subsystem Version 20020517: 14230 14231Implemented a workaround to an BIOS bug discovered on the HP 14232OmniBook where the FADT revision number and the table size are 14233inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 14234behavior is to fallback to using only the ACPI 1.0 fields of the 14235FADT if the table is too small to be a ACPI 2.0 table as claimed 14236by the revision number. Although this is a BIOS bug, this is a 14237case where the workaround is simple enough and with no side 14238effects, so it seemed prudent to add it. A warning message is 14239issued, however. 14240 14241Implemented minimum size checks for the fixed-length ACPI tables - 14242- the FADT and FACS, as well as consistency checks between the 14243revision number and the table size. 14244 14245Fixed a reported problem in the table override support where the 14246new table pointer was incorrectly treated as a physical address 14247instead of a logical address. 14248 14249Eliminated the use of the AE_AML_ERROR exception and replaced it 14250with more descriptive codes. 14251 14252Fixed a problem where an exception would occur if an ASL Field was 14253defined with no named Field Units underneath it (used by some 14254index fields). 14255 14256Code and Data Size: Current core subsystem library sizes are shown 14257below. These are the code and data sizes for the acpica.lib 14258produced by the Microsoft Visual C++ 6.0 compiler, and these 14259values do not include any ACPI driver or OSPM code. The debug 14260version of the code includes the debug output trace mechanism and 14261has a larger code and data size. Note that these values will vary 14262depending on the efficiency of the compiler and the compiler 14263options used during generation. 14264 14265 Previous Release 14266 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14267 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14268 Current Release: 14269 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 14270 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 14271 14272 14273 142742) Linux 14275 14276Much work done on ACPI init (MADT and PCI IRQ routing support). 14277(Paul D. and Dominik Brodowski) 14278 14279Fix PCI IRQ-related panic on boot (Sam Revitch) 14280 14281Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 14282 14283Fix "MHz" typo (Dominik Brodowski) 14284 14285Fix RTC year 2000 issue (Dominik Brodowski) 14286 14287Preclude multiple button proc entries (Eric Brunet) 14288 14289Moved arch-specific code out of include/platform/aclinux.h 14290 142913) iASL Compiler Version X2044: 14292 14293Implemented error checking for the string used in the EISAID macro 14294(Usually used in the definition of the _HID object.) The code now 14295strictly enforces the PnP format - exactly 7 characters, 3 14296uppercase letters and 4 hex digits. 14297 14298If a raw string is used in the definition of the _HID object 14299(instead of the EISAID macro), the string must contain all 14300alphanumeric characters (e.g., "*PNP0011" is not allowed because 14301of the asterisk.) 14302 14303Implemented checking for invalid use of ACPI reserved names for 14304most of the name creation operators (Name, Device, Event, Mutex, 14305OperationRegion, PowerResource, Processor, and ThermalZone.) 14306Previously, this check was only performed for control methods. 14307 14308Implemented an additional check on the Name operator to emit an 14309error if a reserved name that must be implemented in ASL as a 14310control method is used. We know that a reserved name must be a 14311method if it is defined with input arguments. 14312 14313The warning emitted when a namespace object reference is not found 14314during the cross reference phase has been changed into an error. 14315The "External" directive should be used for names defined in other 14316modules. 14317 14318 143194) Tools and Utilities 14320 14321The 16-bit tools (adump16 and aexec16) have been regenerated and 14322tested. 14323 14324Fixed a problem with the output of both acpidump and adump16 where 14325the indentation of closing parentheses and brackets was not 14326 14327aligned properly with the parent block. 14328 14329 14330---------------------------------------- 1433103 May 2002. Summary of changes for this release. 14332 14333 143341) ACPI CA Core Subsystem Version 20020503: 14335 14336Added support a new OSL interface that allows the host operating 14337 14338system software to override the DSDT found in the firmware - 14339AcpiOsTableOverride. With this interface, the OSL can examine the 14340version of the firmware DSDT and replace it with a different one 14341if desired. 14342 14343Added new external interfaces for accessing ACPI registers from 14344device drivers and other system software - AcpiGetRegister and 14345AcpiSetRegister. This was simply an externalization of the 14346existing AcpiHwBitRegister interfaces. 14347 14348Fixed a regression introduced in the previous build where the 14349ASL/AML CreateField operator always returned an error, 14350"destination must be a NS Node". 14351 14352Extended the maximum time (before failure) to successfully enable 14353ACPI mode to 3 seconds. 14354 14355Code and Data Size: Current core subsystem library sizes are shown 14356below. These are the code and data sizes for the acpica.lib 14357produced by the Microsoft Visual C++ 6.0 compiler, and these 14358values do not include any ACPI driver or OSPM code. The debug 14359version of the code includes the debug output trace mechanism and 14360has a larger code and data size. Note that these values will vary 14361depending on the efficiency of the compiler and the compiler 14362options used during generation. 14363 14364 Previous Release 14365 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14366 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14367 Current Release: 14368 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 14369 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 14370 14371 143722) Linux 14373 14374Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 14375free. While 3 out of 4 of our in-house systems work fine, the last 14376one still hangs when testing the LAPIC timer. 14377 14378Renamed many files in 2.5 kernel release to omit "acpi_" from the 14379name. 14380 14381Added warning on boot for Presario 711FR. 14382 14383Sleep improvements (Pavel Machek) 14384 14385ACPI can now be built without CONFIG_PCI enabled. 14386 14387IA64: Fixed memory map functions (JI Lee) 14388 14389 143903) iASL Compiler Version X2043: 14391 14392Added support to allow the compiler to be integrated into the MS 14393VC++ development environment for one-button compilation of single 14394files or entire projects -- with error-to-source-line mapping. 14395 14396Implemented support for compile-time constant folding for the 14397Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 14398specification. This allows the ASL writer to use expressions 14399instead of Integer/Buffer/String constants in terms that must 14400evaluate to constants at compile time and will also simplify the 14401emitted AML in any such sub-expressions that can be folded 14402(evaluated at compile-time.) This increases the size of the 14403compiler significantly because a portion of the ACPI CA AML 14404interpreter is included within the compiler in order to pre- 14405evaluate constant expressions. 14406 14407 14408Fixed a problem with the "Unicode" ASL macro that caused the 14409compiler to fault. (This macro is used in conjunction with the 14410_STR reserved name.) 14411 14412Implemented an AML opcode optimization to use the Zero, One, and 14413Ones opcodes where possible to further reduce the size of integer 14414constants and thus reduce the overall size of the generated AML 14415code. 14416 14417Implemented error checking for new reserved terms for ACPI version 144182.0A. 14419 14420Implemented the -qr option to display the current list of ACPI 14421reserved names known to the compiler. 14422 14423Implemented the -qc option to display the current list of ASL 14424operators that are allowed within constant expressions and can 14425therefore be folded at compile time if the operands are constants. 14426 14427 144284) Documentation 14429 14430Updated the Programmer's Reference for new interfaces, data types, 14431and memory allocation model options. 14432 14433Updated the iASL Compiler User Reference to apply new format and 14434add information about new features and options. 14435 14436---------------------------------------- 1443719 April 2002. Summary of changes for this release. 14438 144391) ACPI CA Core Subsystem Version 20020419: 14440 14441The source code base for the Core Subsystem has been completely 14442cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 14443versions. The Lint option files used are included in the 14444/acpi/generate/lint directory. 14445 14446Implemented enhanced status/error checking across the entire 14447Hardware manager subsystem. Any hardware errors (reported from 14448the OSL) are now bubbled up and will abort a running control 14449method. 14450 14451 14452Fixed a problem where the per-ACPI-table integer width (32 or 64) 14453was stored only with control method nodes, causing a fault when 14454non-control method code was executed during table loading. The 14455solution implemented uses a global variable to indicate table 14456width across the entire ACPI subsystem. Therefore, ACPI CA does 14457not support mixed integer widths across different ACPI tables 14458(DSDT, SSDT). 14459 14460Fixed a problem where NULL extended fields (X fields) in an ACPI 144612.0 ACPI FADT caused the table load to fail. Although the 14462existing ACPI specification is a bit fuzzy on this topic, the new 14463behavior is to fall back on a ACPI 1.0 field if the corresponding 14464ACPI 2.0 X field is zero (even though the table revision indicates 14465a full ACPI 2.0 table.) The ACPI specification will be updated to 14466clarify this issue. 14467 14468Fixed a problem with the SystemMemory operation region handler 14469where memory was always accessed byte-wise even if the AML- 14470specified access width was larger than a byte. This caused 14471problems on systems with memory-mapped I/O. Memory is now 14472accessed with the width specified. On systems that do not support 14473non-aligned transfers, a check is made to guarantee proper address 14474alignment before proceeding in order to avoid an AML-caused 14475alignment fault within the kernel. 14476 14477 14478Fixed a problem with the ExtendedIrq resource where only one byte 14479of the 4-byte Irq field was extracted. 14480 14481Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 14482function was out of date and required a rewrite. 14483 14484Code and Data Size: Current core subsystem library sizes are shown 14485below. These are the code and data sizes for the acpica.lib 14486produced by the Microsoft Visual C++ 6.0 compiler, and these 14487values do not include any ACPI driver or OSPM code. The debug 14488version of the code includes the debug output trace mechanism and 14489has a larger code and data size. Note that these values will vary 14490depending on the efficiency of the compiler and the compiler 14491options used during generation. 14492 14493 Previous Release 14494 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14495 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14496 Current Release: 14497 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 14498 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 14499 14500 145012) Linux 14502 14503PCI IRQ routing fixes (Dominik Brodowski) 14504 14505 145063) iASL Compiler Version X2042: 14507 14508Implemented an additional compile-time error check for a field 14509unit whose size + minimum access width would cause a run-time 14510access beyond the end-of-region. Previously, only the field size 14511itself was checked. 14512 14513The Core subsystem and iASL compiler now share a common parse 14514object in preparation for compile-time evaluation of the type 145153/4/5 ASL operators. 14516 14517 14518---------------------------------------- 14519Summary of changes for this release: 03_29_02 14520 145211) ACPI CA Core Subsystem Version 20020329: 14522 14523Implemented support for late evaluation of TermArg operands to 14524Buffer and Package objects. This allows complex expressions to be 14525used in the declarations of these object types. 14526 14527Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 145281.0, if the field was larger than 32 bits, it was returned as a 14529buffer - otherwise it was returned as an integer. In ACPI 2.0, 14530the field is returned as a buffer only if the field is larger than 1453164 bits. The TableRevision is now considered when making this 14532conversion to avoid incompatibility with existing ASL code. 14533 14534Implemented logical addressing for AcpiOsGetRootPointer. This 14535allows an RSDP with either a logical or physical address. With 14536this support, the host OS can now override all ACPI tables with 14537one logical RSDP. Includes implementation of "typed" pointer 14538support to allow a common data type for both physical and logical 14539pointers internally. This required a change to the 14540AcpiOsGetRootPointer interface. 14541 14542Implemented the use of ACPI 2.0 Generic Address Structures for all 14543GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 14544mapped I/O for these ACPI features. 14545 14546Initialization now ignores not only non-required tables (All 14547tables other than the FADT, FACS, DSDT, and SSDTs), but also does 14548not validate the table headers of unrecognized tables. 14549 14550Fixed a problem where a notify handler could only be 14551installed/removed on an object of type Device. All "notify" 14552 14553objects are now supported -- Devices, Processor, Power, and 14554Thermal. 14555 14556Removed most verbosity from the ACPI_DB_INFO debug level. Only 14557critical information is returned when this debug level is enabled. 14558 14559Code and Data Size: Current core subsystem library sizes are shown 14560below. These are the code and data sizes for the acpica.lib 14561produced by the Microsoft Visual C++ 6.0 compiler, and these 14562values do not include any ACPI driver or OSPM code. The debug 14563version of the code includes the debug output trace mechanism and 14564has a larger code and data size. Note that these values will vary 14565depending on the efficiency of the compiler and the compiler 14566options used during generation. 14567 14568 Previous Release 14569 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14570 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14571 Current Release: 14572 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 14573 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 14574 14575 145762) Linux: 14577 14578The processor driver (acpi_processor.c) now fully supports ACPI 145792.0-based processor performance control (e.g. Intel(R) 14580SpeedStep(TM) technology) Note that older laptops that only have 14581the Intel "applet" interface are not supported through this. The 14582'limit' and 'performance' interface (/proc) are fully functional. 14583[Note that basic policy for controlling performance state 14584transitions will be included in the next version of ospmd.] The 14585idle handler was modified to more aggressively use C2, and PIIX4 14586errata handling underwent a complete overhaul (big thanks to 14587Dominik Brodowski). 14588 14589Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 14590based devices in the ACPI namespace are now dynamically bound 14591(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 14592This allows, among other things, ACPI to resolve bus numbers for 14593subordinate PCI bridges. 14594 14595Enhanced PCI IRQ routing to get the proper bus number for _PRT 14596entries defined underneath PCI bridges. 14597 14598Added IBM 600E to bad bios list due to invalid _ADR value for 14599PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 14600 14601In the process of adding full MADT support (e.g. IOAPIC) for IA32 14602(acpi.c, mpparse.c) -- stay tuned. 14603 14604Added back visual differentiation between fixed-feature and 14605control-method buttons in dmesg. Buttons are also subtyped (e.g. 14606button/power/PWRF) to simplify button identification. 14607 14608We no longer use -Wno-unused when compiling debug. Please ignore 14609any "_THIS_MODULE defined but not used" messages. 14610 14611Can now shut down the system using "magic sysrq" key. 14612 14613 146143) iASL Compiler version 2041: 14615 14616Fixed a problem where conversion errors for hex/octal/decimal 14617constants were not reported. 14618 14619Implemented a fix for the General Register template Address field. 14620This field was 8 bits when it should be 64. 14621 14622Fixed a problem where errors/warnings were no longer being emitted 14623within the listing output file. 14624 14625Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 14626exactly 4 characters, alphanumeric only. 14627 14628 14629 14630 14631---------------------------------------- 14632Summary of changes for this release: 03_08_02 14633 14634 146351) ACPI CA Core Subsystem Version 20020308: 14636 14637Fixed a problem with AML Fields where the use of the "AccessAny" 14638keyword could cause an interpreter error due to attempting to read 14639or write beyond the end of the parent Operation Region. 14640 14641Fixed a problem in the SystemMemory Operation Region handler where 14642an attempt was made to map memory beyond the end of the region. 14643This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 14644errors on some Linux systems. 14645 14646Fixed a problem where the interpreter/namespace "search to root" 14647algorithm was not functioning for some object types. Relaxed the 14648internal restriction on the search to allow upsearches for all 14649external object types as well as most internal types. 14650 14651 146522) Linux: 14653 14654We now use safe_halt() macro versus individual calls to sti | hlt. 14655 14656Writing to the processor limit interface should now work. "echo 1" 14657will increase the limit, 2 will decrease, and 0 will reset to the 14658 14659default. 14660 14661 146623) ASL compiler: 14663 14664Fixed segfault on Linux version. 14665 14666 14667---------------------------------------- 14668Summary of changes for this release: 02_25_02 14669 146701) ACPI CA Core Subsystem: 14671 14672 14673Fixed a problem where the GPE bit masks were not initialized 14674properly, causing erratic GPE behavior. 14675 14676Implemented limited support for multiple calling conventions. The 14677code can be generated with either the VPL (variable parameter 14678list, or "C") convention, or the FPL (fixed parameter list, or 14679"Pascal") convention. The core subsystem is about 3.4% smaller 14680when generated with FPL. 14681 14682 146832) Linux 14684 14685Re-add some /proc/acpi/event functionality that was lost during 14686the rewrite 14687 14688Resolved issue with /proc events for fixed-feature buttons showing 14689up as the system device. 14690 14691Fixed checks on C2/C3 latencies to be inclusive of maximum values. 14692 14693Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 14694 14695Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 14696 14697Fixed limit interface & usage to fix bugs with passive cooling 14698hysterisis. 14699 14700Restructured PRT support. 14701 14702 14703---------------------------------------- 14704Summary of changes for this label: 02_14_02 14705 14706 147071) ACPI CA Core Subsystem: 14708 14709Implemented support in AcpiLoadTable to allow loading of FACS and 14710FADT tables. 14711 14712Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 14713been removed. All 64-bit platforms should be migrated to the ACPI 147142.0 tables. The actbl71.h header has been removed from the source 14715tree. 14716 14717All C macros defined within the subsystem have been prefixed with 14718"ACPI_" to avoid collision with other system include files. 14719 14720Removed the return value for the two AcpiOsPrint interfaces, since 14721it is never used and causes lint warnings for ignoring the return 14722value. 14723 14724Added error checking to all internal mutex acquire and release 14725calls. Although a failure from one of these interfaces is 14726probably a fatal system error, these checks will cause the 14727immediate abort of the currently executing method or interface. 14728 14729Fixed a problem where the AcpiSetCurrentResources interface could 14730fault. This was a side effect of the deployment of the new memory 14731allocation model. 14732 14733Fixed a couple of problems with the Global Lock support introduced 14734in the last major build. The "common" (1.0/2.0) internal FACS was 14735being overwritten with the FACS signature and clobbering the 14736Global Lock pointer. Also, the actual firmware FACS was being 14737unmapped after construction of the "common" FACS, preventing 14738access to the actual Global Lock field within it. The "common" 14739internal FACS is no longer installed as an actual ACPI table; it 14740is used simply as a global. 14741 14742Code and Data Size: Current core subsystem library sizes are shown 14743below. These are the code and data sizes for the acpica.lib 14744produced by the Microsoft Visual C++ 6.0 compiler, and these 14745values do not include any ACPI driver or OSPM code. The debug 14746version of the code includes the debug output trace mechanism and 14747has a larger code and data size. Note that these values will vary 14748depending on the efficiency of the compiler and the compiler 14749options used during generation. 14750 14751 Previous Release (02_07_01) 14752 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 14753 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 14754 Current Release: 14755 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 14756 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 14757 14758 147592) Linux 14760 14761Updated Linux-specific code for core macro and OSL interface 14762changes described above. 14763 14764Improved /proc/acpi/event. It now can be opened only once and has 14765proper poll functionality. 14766 14767Fixed and restructured power management (acpi_bus). 14768 14769Only create /proc "view by type" when devices of that class exist. 14770 14771Fixed "charging/discharging" bug (and others) in acpi_battery. 14772 14773Improved thermal zone code. 14774 14775 147763) ASL Compiler, version X2039: 14777 14778 14779Implemented the new compiler restriction on ASL String hex/octal 14780escapes to non-null, ASCII values. An error results if an invalid 14781value is used. (This will require an ACPI 2.0 specification 14782change.) 14783 14784AML object labels that are output to the optional C and ASM source 14785are now prefixed with both the ACPI table signature and table ID 14786to help guarantee uniqueness within a large BIOS project. 14787 14788 14789---------------------------------------- 14790Summary of changes for this label: 02_01_02 14791 147921) ACPI CA Core Subsystem: 14793 14794ACPI 2.0 support is complete in the entire Core Subsystem and the 14795ASL compiler. All new ACPI 2.0 operators are implemented and all 14796other changes for ACPI 2.0 support are complete. With 14797simultaneous code and data optimizations throughout the subsystem, 14798ACPI 2.0 support has been implemented with almost no additional 14799cost in terms of code and data size. 14800 14801Implemented a new mechanism for allocation of return buffers. If 14802the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 14803be allocated on behalf of the caller. Consolidated all return 14804buffer validation and allocation to a common procedure. Return 14805buffers will be allocated via the primary OSL allocation interface 14806since it appears that a separate pool is not needed by most users. 14807If a separate pool is required for these buffers, the caller can 14808still use the original mechanism and pre-allocate the buffer(s). 14809 14810Implemented support for string operands within the DerefOf 14811operator. 14812 14813Restructured the Hardware and Event managers to be table driven, 14814simplifying the source code and reducing the amount of generated 14815code. 14816 14817Split the common read/write low-level ACPI register bitfield 14818procedure into a separate read and write, simplifying the code 14819considerably. 14820 14821Obsoleted the AcpiOsCallocate OSL interface. This interface was 14822used only a handful of times and didn't have enough critical mass 14823for a separate interface. Replaced with a common calloc procedure 14824in the core. 14825 14826Fixed a reported problem with the GPE number mapping mechanism 14827that allows GPE1 numbers to be non-contiguous with GPE0. 14828Reorganized the GPE information and shrunk a large array that was 14829originally large enough to hold info for all possible GPEs (256) 14830to simply large enough to hold all GPEs up to the largest GPE 14831number on the machine. 14832 14833Fixed a reported problem with resource structure alignment on 64- 14834bit platforms. 14835 14836Changed the AcpiEnableEvent and AcpiDisableEvent external 14837interfaces to not require any flags for the common case of 14838enabling/disabling a GPE. 14839 14840Implemented support to allow a "Notify" on a Processor object. 14841 14842Most TBDs in comments within the source code have been resolved 14843and eliminated. 14844 14845 14846Fixed a problem in the interpreter where a standalone parent 14847prefix (^) was not handled correctly in the interpreter and 14848debugger. 14849 14850Removed obsolete and unnecessary GPE save/restore code. 14851 14852Implemented Field support in the ASL Load operator. This allows a 14853table to be loaded from a named field, in addition to loading a 14854table directly from an Operation Region. 14855 14856Implemented timeout and handle support in the external Global Lock 14857interfaces. 14858 14859Fixed a problem in the AcpiDump utility where pathnames were no 14860longer being generated correctly during the dump of named objects. 14861 14862Modified the AML debugger to give a full display of if/while 14863predicates instead of just one AML opcode at a time. (The 14864predicate can have several nested ASL statements.) The old method 14865was confusing during single stepping. 14866 14867Code and Data Size: Current core subsystem library sizes are shown 14868below. These are the code and data sizes for the acpica.lib 14869produced by the Microsoft Visual C++ 6.0 compiler, and these 14870values do not include any ACPI driver or OSPM code. The debug 14871version of the code includes the debug output trace mechanism and 14872has a larger code and data size. Note that these values will vary 14873depending on the efficiency of the compiler and the compiler 14874options used during generation. 14875 14876 Previous Release (12_18_01) 14877 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 14878 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 14879 Current Release: 14880 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 14881 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 14882 148832) Linux 14884 14885 Implemented fix for PIIX reverse throttling errata (Processor 14886driver) 14887 14888Added new Limit interface (Processor and Thermal drivers) 14889 14890New thermal policy (Thermal driver) 14891 14892Many updates to /proc 14893 14894Battery "low" event support (Battery driver) 14895 14896Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 14897 14898IA32 - IA64 initialization unification, no longer experimental 14899 14900Menuconfig options redesigned 14901 149023) ASL Compiler, version X2037: 14903 14904Implemented several new output features to simplify integration of 14905AML code into firmware: 1) Output the AML in C source code with 14906labels for each named ASL object. The original ASL source code 14907is interleaved as C comments. 2) Output the AML in ASM source code 14908with labels and interleaved ASL source. 3) Output the AML in 14909raw hex table form, in either C or ASM. 14910 14911Implemented support for optional string parameters to the 14912LoadTable operator. 14913 14914Completed support for embedded escape sequences within string 14915literals. The compiler now supports all single character escapes 14916as well as the Octal and Hex escapes. Note: the insertion of a 14917null byte into a string literal (via the hex/octal escape) causes 14918the string to be immediately terminated. A warning is issued. 14919 14920Fixed a problem where incorrect AML was generated for the case 14921where an ASL namepath consists of a single parent prefix ( 14922 14923) with no trailing name segments. 14924 14925The compiler has been successfully generated with a 64-bit C 14926compiler. 14927 14928 14929 14930 14931---------------------------------------- 14932Summary of changes for this label: 12_18_01 14933 149341) Linux 14935 14936Enhanced blacklist with reason and severity fields. Any table's 14937signature may now be used to identify a blacklisted system. 14938 14939Call _PIC control method to inform the firmware which interrupt 14940model the OS is using. Turn on any disabled link devices. 14941 14942Cleaned up busmgr /proc error handling (Andreas Dilger) 14943 14944 2) ACPI CA Core Subsystem: 14945 14946Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 14947while loop) 14948 14949Completed implementation of the ACPI 2.0 "Continue", 14950"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 14951operators. All new ACPI 2.0 operators are now implemented in both 14952the ASL compiler and the AML interpreter. The only remaining ACPI 149532.0 task is support for the String data type in the DerefOf 14954operator. Fixed a problem with AcquireMutex where the status code 14955was lost if the caller had to actually wait for the mutex. 14956 14957Increased the maximum ASL Field size from 64K bits to 4G bits. 14958 14959Completed implementation of the external Global Lock interfaces -- 14960AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 14961Handler parameters were added. 14962 14963Completed another pass at removing warnings and issues when 14964compiling with 64-bit compilers. The code now compiles cleanly 14965with the Intel 64-bit C/C++ compiler. Most notably, the pointer 14966add and subtract (diff) macros have changed considerably. 14967 14968 14969Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1497064-bit platforms, 32-bits on all others. This type is used 14971wherever memory allocation and/or the C sizeof() operator is used, 14972and affects the OSL memory allocation interfaces AcpiOsAllocate 14973and AcpiOsCallocate. 14974 14975Implemented sticky user breakpoints in the AML debugger. 14976 14977Code and Data Size: Current core subsystem library sizes are shown 14978below. These are the code and data sizes for the acpica.lib 14979produced by the Microsoft Visual C++ 6.0 compiler, and these 14980values do not include any ACPI driver or OSPM code. The debug 14981version of the code includes the debug output trace mechanism and 14982has a larger code and data size. Note that these values will vary 14983depending on the efficiency of the compiler and the compiler 14984options used during generation. 14985 14986 Previous Release (12_05_01) 14987 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 14988 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 14989 Current Release: 14990 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 14991 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 14992 14993 3) ASL Compiler, version X2034: 14994 14995Now checks for (and generates an error if detected) the use of a 14996Break or Continue statement without an enclosing While statement. 14997 14998 14999Successfully generated the compiler with the Intel 64-bit C 15000compiler. 15001 15002 ---------------------------------------- 15003Summary of changes for this label: 12_05_01 15004 15005 1) ACPI CA Core Subsystem: 15006 15007The ACPI 2.0 CopyObject operator is fully implemented. This 15008operator creates a new copy of an object (and is also used to 15009bypass the "implicit conversion" mechanism of the Store operator.) 15010 15011The ACPI 2.0 semantics for the SizeOf operator are fully 15012implemented. The change is that performing a SizeOf on a 15013reference object causes an automatic dereference of the object to 15014tha actual value before the size is evaluated. This behavior was 15015undefined in ACPI 1.0. 15016 15017The ACPI 2.0 semantics for the Extended IRQ resource descriptor 15018have been implemented. The interrupt polarity and mode are now 15019independently set. 15020 15021Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 15022appearing in Package objects were not properly converted to 15023integers when the internal Package was converted to an external 15024object (via the AcpiEvaluateObject interface.) 15025 15026Fixed a problem with the namespace object deletion mechanism for 15027objects created by control methods. There were two parts to this 15028problem: 1) Objects created during the initialization phase method 15029parse were not being deleted, and 2) The object owner ID mechanism 15030to track objects was broken. 15031 15032Fixed a problem where the use of the ASL Scope operator within a 15033control method would result in an invalid opcode exception. 15034 15035Fixed a problem introduced in the previous label where the buffer 15036length required for the _PRT structure was not being returned 15037correctly. 15038 15039Code and Data Size: Current core subsystem library sizes are shown 15040below. These are the code and data sizes for the acpica.lib 15041produced by the Microsoft Visual C++ 6.0 compiler, and these 15042values do not include any ACPI driver or OSPM code. The debug 15043version of the code includes the debug output trace mechanism and 15044has a larger code and data size. Note that these values will vary 15045depending on the efficiency of the compiler and the compiler 15046options used during generation. 15047 15048 Previous Release (11_20_01) 15049 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 15050 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 15051 15052 Current Release: 15053 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 15054 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 15055 15056 2) Linux: 15057 15058Updated all files to apply cleanly against 2.4.16. 15059 15060Added basic PCI Interrupt Routing Table (PRT) support for IA32 15061(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 15062version supports both static and dyanmic PRT entries, but dynamic 15063entries are treated as if they were static (not yet 15064reconfigurable). Architecture- specific code to use this data is 15065absent on IA32 but should be available shortly. 15066 15067Changed the initialization sequence to start the ACPI interpreter 15068(acpi_init) prior to initialization of the PCI driver (pci_init) 15069in init/main.c. This ordering is required to support PRT and 15070facilitate other (future) enhancement. A side effect is that the 15071ACPI bus driver and certain device drivers can no longer be loaded 15072as modules. 15073 15074Modified the 'make menuconfig' options to allow PCI Interrupt 15075Routing support to be included without the ACPI Bus and other 15076device drivers. 15077 15078 3) ASL Compiler, version X2033: 15079 15080Fixed some issues with the use of the new CopyObject and 15081DataTableRegion operators. Both are fully functional. 15082 15083 ---------------------------------------- 15084Summary of changes for this label: 11_20_01 15085 15086 20 November 2001. Summary of changes for this release. 15087 15088 1) ACPI CA Core Subsystem: 15089 15090Updated Index support to match ACPI 2.0 semantics. Storing a 15091Integer, String, or Buffer to an Index of a Buffer will store only 15092the least-significant byte of the source to the Indexed buffer 15093byte. Multiple writes are not performed. 15094 15095Fixed a problem where the access type used in an AccessAs ASL 15096operator was not recorded correctly into the field object. 15097 15098Fixed a problem where ASL Event objects were created in a 15099signalled state. Events are now created in an unsignalled state. 15100 15101The internal object cache is now purged after table loading and 15102initialization to reduce the use of dynamic kernel memory -- on 15103the assumption that object use is greatest during the parse phase 15104of the entire table (versus the run-time use of individual control 15105methods.) 15106 15107ACPI 2.0 variable-length packages are now fully operational. 15108 15109Code and Data Size: Code and Data optimizations have permitted new 15110feature development with an actual reduction in the library size. 15111Current core subsystem library sizes are shown below. These are 15112the code and data sizes for the acpica.lib produced by the 15113Microsoft Visual C++ 6.0 compiler, and these values do not include 15114any ACPI driver or OSPM code. The debug version of the code 15115includes the debug output trace mechanism and has a larger code 15116and data size. Note that these values will vary depending on the 15117efficiency of the compiler and the compiler options used during 15118generation. 15119 15120 Previous Release (11_09_01): 15121 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15122 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15123 15124 Current Release: 15125 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 15126 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 15127 15128 2) Linux: 15129 15130Enhanced the ACPI boot-time initialization code to allow the use 15131of Local APIC tables for processor enumeration on IA-32, and to 15132pave the way for a fully MPS-free boot (on SMP systems) in the 15133near future. This functionality replaces 15134arch/i386/kernel/acpitables.c, which was introduced in an earlier 151352.4.15-preX release. To enable this feature you must add 15136"acpi_boot=on" to the kernel command line -- see the help entry 15137for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 15138the works... 15139 15140Restructured the configuration options to allow boot-time table 15141parsing support without inclusion of the ACPI Interpreter (and 15142other) code. 15143 15144NOTE: This release does not include fixes for the reported events, 15145power-down, and thermal passive cooling issues (coming soon). 15146 15147 3) ASL Compiler: 15148 15149Added additional typechecking for Fields within restricted access 15150Operation Regions. All fields within EC and CMOS regions must be 15151declared with ByteAcc. All fields withing SMBus regions must be 15152declared with the BufferAcc access type. 15153 15154Fixed a problem where the listing file output of control methods 15155no longer interleaved the actual AML code with the ASL source 15156code. 15157 15158 15159 15160 15161---------------------------------------- 15162Summary of changes for this label: 11_09_01 15163 151641) ACPI CA Core Subsystem: 15165 15166Implemented ACPI 2.0-defined support for writes to fields with a 15167Buffer, String, or Integer source operand that is smaller than the 15168target field. In these cases, the source operand is zero-extended 15169to fill the target field. 15170 15171Fixed a problem where a Field starting bit offset (within the 15172parent operation region) was calculated incorrectly if the 15173 15174alignment of the field differed from the access width. This 15175affected CreateWordField, CreateDwordField, CreateQwordField, and 15176possibly other fields that use the "AccessAny" keyword. 15177 15178Fixed a problem introduced in the 11_02_01 release where indirect 15179stores through method arguments did not operate correctly. 15180 151812) Linux: 15182 15183Implemented boot-time ACPI table parsing support 15184(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 15185facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 15186legacy BIOS interfaces (e.g. MPS) for the configuration of system 15187processors, memory, and interrupts during setup_arch(). Note that 15188this patch does not include the required architecture-specific 15189changes required to apply this information -- subsequent patches 15190will be posted for both IA32 and IA64 to achieve this. 15191 15192Added low-level sleep support for IA32 platforms, courtesy of Pat 15193Mochel. This allows IA32 systems to transition to/from various 15194sleeping states (e.g. S1, S3), although the lack of a centralized 15195driver model and power-manageable drivers will prevent its 15196(successful) use on most systems. 15197 15198Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 15199submenu, unified IA32 and IA64 options, added new "Boot using ACPI 15200tables" option, etc. 15201 15202Increased the default timeout for the EC driver from 1ms to 10ms 15203(1000 cycles of 10us) to try to address AE_TIME errors during EC 15204transactions. 15205 15206 ---------------------------------------- 15207Summary of changes for this label: 11_02_01 15208 152091) ACPI CA Core Subsystem: 15210 15211ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 15212(QWordAcc keyword). All ACPI 2.0 64-bit support is now 15213implemented. 15214 15215OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 15216changes to support ACPI 2.0 Qword field access. Read/Write 15217PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 15218accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 15219the value parameter for the address space handler interface is now 15220an ACPI_INTEGER. OSL implementations of these interfaces must now 15221handle the case where the Width parameter is 64. 15222 15223Index Fields: Fixed a problem where unaligned bit assembly and 15224disassembly for IndexFields was not supported correctly. 15225 15226Index and Bank Fields: Nested Index and Bank Fields are now 15227supported. During field access, a check is performed to ensure 15228that the value written to an Index or Bank register is not out of 15229the range of the register. The Index (or Bank) register is 15230written before each access to the field data. Future support will 15231include allowing individual IndexFields to be wider than the 15232DataRegister width. 15233 15234Fields: Fixed a problem where the AML interpreter was incorrectly 15235attempting to write beyond the end of a Field/OpRegion. This was 15236a boundary case that occurred when a DWORD field was written to a 15237BYTE access OpRegion, forcing multiple writes and causing the 15238interpreter to write one datum too many. 15239 15240Fields: Fixed a problem with Field/OpRegion access where the 15241starting bit address of a field was incorrectly calculated if the 15242current access type was wider than a byte (WordAcc, DwordAcc, or 15243QwordAcc). 15244 15245Fields: Fixed a problem where forward references to individual 15246FieldUnits (individual Field names within a Field definition) were 15247not resolved during the AML table load. 15248 15249Fields: Fixed a problem where forward references from a Field 15250definition to the parent Operation Region definition were not 15251resolved during the AML table load. 15252 15253Fields: Duplicate FieldUnit names within a scope are now detected 15254during AML table load. 15255 15256Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 15257returned an incorrect name for the root node. 15258 15259Code and Data Size: Code and Data optimizations have permitted new 15260feature development with an actual reduction in the library size. 15261Current core subsystem library sizes are shown below. These are 15262the code and data sizes for the acpica.lib produced by the 15263Microsoft Visual C++ 6.0 compiler, and these values do not include 15264any ACPI driver or OSPM code. The debug version of the code 15265includes the debug output trace mechanism and has a larger code 15266and data size. Note that these values will vary depending on the 15267efficiency of the compiler and the compiler options used during 15268generation. 15269 15270 Previous Release (10_18_01): 15271 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15272 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15273 15274 Current Release: 15275 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 15276 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 15277 15278 2) Linux: 15279 15280Improved /proc processor output (Pavel Machek) Re-added 15281MODULE_LICENSE("GPL") to all modules. 15282 15283 3) ASL Compiler version X2030: 15284 15285Duplicate FieldUnit names within a scope are now detected and 15286flagged as errors. 15287 15288 4) Documentation: 15289 15290Programmer Reference updated to reflect OSL and address space 15291handler interface changes described above. 15292 15293---------------------------------------- 15294Summary of changes for this label: 10_18_01 15295 15296ACPI CA Core Subsystem: 15297 15298Fixed a problem with the internal object reference count mechanism 15299that occasionally caused premature object deletion. This resolves 15300all of the outstanding problem reports where an object is deleted 15301in the middle of an interpreter evaluation. Although this problem 15302only showed up in rather obscure cases, the solution to the 15303problem involved an adjustment of all reference counts involving 15304objects attached to namespace nodes. 15305 15306Fixed a problem with Field support in the interpreter where 15307writing to an aligned field whose length is an exact multiple (2 15308or greater) of the field access granularity would cause an attempt 15309to write beyond the end of the field. 15310 15311The top level AML opcode execution functions within the 15312interpreter have been renamed with a more meaningful and 15313consistent naming convention. The modules exmonad.c and 15314exdyadic.c were eliminated. New modules are exoparg1.c, 15315exoparg2.c, exoparg3.c, and exoparg6.c. 15316 15317Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 15318 15319Fixed a problem where the AML debugger was causing some internal 15320objects to not be deleted during subsystem termination. 15321 15322Fixed a problem with the external AcpiEvaluateObject interface 15323where the subsystem would fault if the named object to be 15324evaluated refered to a constant such as Zero, Ones, etc. 15325 15326Fixed a problem with IndexFields and BankFields where the 15327subsystem would fault if the index, data, or bank registers were 15328not defined in the same scope as the field itself. 15329 15330Added printf format string checking for compilers that support 15331this feature. Corrected more than 50 instances of issues with 15332format specifiers within invocations of ACPI_DEBUG_PRINT 15333throughout the core subsystem code. 15334 15335The ASL "Revision" operator now returns the ACPI support level 15336implemented in the core - the value "2" since the ACPI 2.0 support 15337is more than 50% implemented. 15338 15339Enhanced the output of the AML debugger "dump namespace" command 15340to output in a more human-readable form. 15341 15342Current core subsystem library code sizes are shown below. These 15343 15344are the code and data sizes for the acpica.lib produced by the 15345Microsoft Visual C++ 6.0 compiler, and these values do not include 15346any ACPI driver or OSPM code. The debug version of the code 15347includes the full debug trace mechanism -- leading to a much 15348 15349larger code and data size. Note that these values will vary 15350depending on the efficiency of the compiler and the compiler 15351options used during generation. 15352 15353 Previous Label (09_20_01): 15354 Non-Debug Version: 65K Code, 5K Data, 70K Total 15355 Debug Version: 138K Code, 58K Data, 196K Total 15356 15357 This Label: 15358 15359 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 15360 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 15361 15362Linux: 15363 15364Implemented a "Bad BIOS Blacklist" to track machines that have 15365known ASL/AML problems. 15366 15367Enhanced the /proc interface for the thermal zone driver and added 15368support for _HOT (the critical suspend trip point). The 'info' 15369file now includes threshold/policy information, and allows setting 15370of _SCP (cooling preference) and _TZP (polling frequency) values 15371to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 15372frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 15373preference to the passive/quiet mode (if supported by the ASL). 15374 15375Implemented a workaround for a gcc bug that resuted in an OOPs 15376when loading the control method battery driver. 15377 15378 ---------------------------------------- 15379Summary of changes for this label: 09_20_01 15380 15381 ACPI CA Core Subsystem: 15382 15383The AcpiEnableEvent and AcpiDisableEvent interfaces have been 15384modified to allow individual GPE levels to be flagged as wake- 15385enabled (i.e., these GPEs are to remain enabled when the platform 15386sleeps.) 15387 15388The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 15389support wake-enabled GPEs. This means that upon entering the 15390sleep state, all GPEs that are not wake-enabled are disabled. 15391When leaving the sleep state, these GPEs are reenabled. 15392 15393A local double-precision divide/modulo module has been added to 15394enhance portability to OS kernels where a 64-bit math library is 15395not available. The new module is "utmath.c". 15396 15397Several optimizations have been made to reduce the use of CPU 15398stack. Originally over 2K, the maximum stack usage is now below 153992K at 1860 bytes (1.82k) 15400 15401Fixed a problem with the AcpiGetFirmwareTable interface where the 15402root table pointer was not mapped into a logical address properly. 15403 15404Fixed a problem where a NULL pointer was being dereferenced in the 15405interpreter code for the ASL Notify operator. 15406 15407Fixed a problem where the use of the ASL Revision operator 15408returned an error. This operator now returns the current version 15409of the ACPI CA core subsystem. 15410 15411Fixed a problem where objects passed as control method parameters 15412to AcpiEvaluateObject were always deleted at method termination. 15413However, these objects may end up being stored into the namespace 15414by the called method. The object reference count mechanism was 15415applied to these objects instead of a force delete. 15416 15417Fixed a problem where static strings or buffers (contained in the 15418AML code) that are declared as package elements within the ASL 15419code could cause a fault because the interpreter would attempt to 15420delete them. These objects are now marked with the "static 15421object" flag to prevent any attempt to delete them. 15422 15423Implemented an interpreter optimization to use operands directly 15424from the state object instead of extracting the operands to local 15425variables. This reduces stack use and code size, and improves 15426performance. 15427 15428The module exxface.c was eliminated as it was an unnecessary extra 15429layer of code. 15430 15431Current core subsystem library code sizes are shown below. These 15432are the code and data sizes for the acpica.lib produced by the 15433Microsoft Visual C++ 6.0 compiler, and these values do not include 15434any ACPI driver or OSPM code. The debug version of the code 15435includes the full debug trace mechanism -- leading to a much 15436larger code and data size. Note that these values will vary 15437depending on the efficiency of the compiler and the compiler 15438options used during generation. 15439 15440 Non-Debug Version: 65K Code, 5K Data, 70K Total 15441(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 15442Total (Previously 195K) 15443 15444Linux: 15445 15446Support for ACPI 2.0 64-bit integers has been added. All ACPI 15447Integer objects are now 64 bits wide 15448 15449All Acpi data types and structures are now in lower case. Only 15450Acpi macros are upper case for differentiation. 15451 15452 Documentation: 15453 15454Changes to the external interfaces as described above. 15455 15456 ---------------------------------------- 15457Summary of changes for this label: 08_31_01 15458 15459 ACPI CA Core Subsystem: 15460 15461A bug with interpreter implementation of the ASL Divide operator 15462was found and fixed. The implicit function return value (not the 15463explicit store operands) was returning the remainder instead of 15464the quotient. This was a longstanding bug and it fixes several 15465known outstanding issues on various platforms. 15466 15467The ACPI_DEBUG_PRINT and function trace entry/exit macros have 15468been further optimized for size. There are 700 invocations of the 15469DEBUG_PRINT macro alone, so each optimization reduces the size of 15470the debug version of the subsystem significantly. 15471 15472A stack trace mechanism has been implemented. The maximum stack 15473usage is about 2K on 32-bit platforms. The debugger command "stat 15474stack" will display the current maximum stack usage. 15475 15476All public symbols and global variables within the subsystem are 15477now prefixed with the string "Acpi". This keeps all of the 15478symbols grouped together in a kernel map, and avoids conflicts 15479with other kernel subsystems. 15480 15481Most of the internal fixed lookup tables have been moved into the 15482code segment via the const operator. 15483 15484Several enhancements have been made to the interpreter to both 15485reduce the code size and improve performance. 15486 15487Current core subsystem library code sizes are shown below. These 15488are the code and data sizes for the acpica.lib produced by the 15489Microsoft Visual C++ 6.0 compiler, and these values do not include 15490any ACPI driver or OSPM code. The debug version of the code 15491includes the full debug trace mechanism which contains over 700 15492invocations of the DEBUG_PRINT macro, 500 function entry macro 15493invocations, and over 900 function exit macro invocations -- 15494leading to a much larger code and data size. Note that these 15495values will vary depending on the efficiency of the compiler and 15496the compiler options used during generation. 15497 15498 Non-Debug Version: 64K Code, 5K Data, 69K Total 15499Debug Version: 137K Code, 58K Data, 195K Total 15500 15501 Linux: 15502 15503Implemented wbinvd() macro, pending a kernel-wide definition. 15504 15505Fixed /proc/acpi/event to handle poll() and short reads. 15506 15507 ASL Compiler, version X2026: 15508 15509Fixed a problem introduced in the previous label where the AML 15510 15511code emitted for package objects produced packages with zero 15512length. 15513 15514 ---------------------------------------- 15515Summary of changes for this label: 08_16_01 15516 15517ACPI CA Core Subsystem: 15518 15519The following ACPI 2.0 ASL operators have been implemented in the 15520AML interpreter (These are already supported by the Intel ASL 15521compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 15522ToBuffer. Support for 64-bit AML constants is implemented in the 15523AML parser, debugger, and disassembler. 15524 15525The internal memory tracking mechanism (leak detection code) has 15526been upgraded to reduce the memory overhead (a separate tracking 15527block is no longer allocated for each memory allocation), and now 15528supports all of the internal object caches. 15529 15530The data structures and code for the internal object caches have 15531been coelesced and optimized so that there is a single cache and 15532memory list data structure and a single group of functions that 15533implement generic cache management. This has reduced the code 15534size in both the debug and release versions of the subsystem. 15535 15536The DEBUG_PRINT macro(s) have been optimized for size and replaced 15537by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 15538different, because it generates a single call to an internal 15539function. This results in a savings of about 90 bytes per 15540invocation, resulting in an overall code and data savings of about 1554116% in the debug version of the subsystem. 15542 15543 Linux: 15544 15545Fixed C3 disk corruption problems and re-enabled C3 on supporting 15546machines. 15547 15548Integrated low-level sleep code by Patrick Mochel. 15549 15550Further tweaked source code Linuxization. 15551 15552Other minor fixes. 15553 15554 ASL Compiler: 15555 15556Support for ACPI 2.0 variable length packages is fixed/completed. 15557 15558Fixed a problem where the optional length parameter for the ACPI 155592.0 ToString operator. 15560 15561Fixed multiple extraneous error messages when a syntax error is 15562detected within the declaration line of a control method. 15563 15564 ---------------------------------------- 15565Summary of changes for this label: 07_17_01 15566 15567ACPI CA Core Subsystem: 15568 15569Added a new interface named AcpiGetFirmwareTable to obtain any 15570ACPI table via the ACPI signature. The interface can be called at 15571any time during kernel initialization, even before the kernel 15572virtual memory manager is initialized and paging is enabled. This 15573allows kernel subsystems to obtain ACPI tables very early, even 15574before the ACPI CA subsystem is initialized. 15575 15576Fixed a problem where Fields defined with the AnyAcc attribute 15577could be resolved to the incorrect address under the following 15578conditions: 1) the field width is larger than 8 bits and 2) the 15579parent operation region is not defined on a DWORD boundary. 15580 15581Fixed a problem where the interpreter is not being locked during 15582namespace initialization (during execution of the _INI control 15583methods), causing an error when an attempt is made to release it 15584later. 15585 15586ACPI 2.0 support in the AML Interpreter has begun and will be 15587ongoing throughout the rest of this year. In this label, The Mod 15588operator is implemented. 15589 15590Added a new data type to contain full PCI addresses named 15591ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 15592and Function values. 15593 15594 Linux: 15595 15596Enhanced the Linux version of the source code to change most 15597capitalized ACPI type names to lowercase. For example, all 15598instances of ACPI_STATUS are changed to acpi_status. This will 15599result in a large diff, but the change is strictly cosmetic and 15600aligns the CA code closer to the Linux coding standard. 15601 15602OSL Interfaces: 15603 15604The interfaces to the PCI configuration space have been changed to 15605add the PCI Segment number and to split the single 32-bit combined 15606DeviceFunction field into two 16-bit fields. This was 15607accomplished by moving the four values that define an address in 15608PCI configuration space (segment, bus, device, and function) to 15609the new ACPI_PCI_ID structure. 15610 15611The changes to the PCI configuration space interfaces led to a 15612reexamination of the complete set of address space access 15613interfaces for PCI, I/O, and Memory. The previously existing 18 15614interfaces have proven difficult to maintain (any small change 15615must be propagated across at least 6 interfaces) and do not easily 15616allow for future expansion to 64 bits if necessary. Also, on some 15617systems, it would not be appropriate to demultiplex the access 15618width (8, 16, 32,or 64) before calling the OSL if the 15619corresponding native OS interfaces contain a similar access width 15620parameter. For these reasons, the 18 address space interfaces 15621have been replaced by these 6 new ones: 15622 15623AcpiOsReadPciConfiguration 15624AcpiOsWritePciConfiguration 15625AcpiOsReadMemory 15626AcpiOsWriteMemory 15627AcpiOsReadPort 15628AcpiOsWritePort 15629 15630Added a new interface named AcpiOsGetRootPointer to allow the OSL 15631to perform the platform and/or OS-specific actions necessary to 15632obtain the ACPI RSDP table pointer. On IA-32 platforms, this 15633interface will simply call down to the CA core to perform the low- 15634memory search for the table. On IA-64, the RSDP is obtained from 15635EFI. Migrating this interface to the OSL allows the CA core to 15636 15637remain OS and platform independent. 15638 15639Added a new interface named AcpiOsSignal to provide a generic 15640"function code and pointer" interface for various miscellaneous 15641signals and notifications that must be made to the host OS. The 15642first such signals are intended to support the ASL Fatal and 15643Breakpoint operators. In the latter case, the AcpiOsBreakpoint 15644interface has been obsoleted. 15645 15646The definition of the AcpiFormatException interface has been 15647changed to simplify its use. The caller no longer must supply a 15648buffer to the call; A pointer to a const string is now returned 15649directly. This allows the call to be easily used in printf 15650statements, etc. since the caller does not have to manage a local 15651buffer. 15652 15653 15654 ASL Compiler, Version X2025: 15655 15656The ACPI 2.0 Switch/Case/Default operators have been implemented 15657and are fully functional. They will work with all ACPI 1.0 15658interpreters, since the operators are simply translated to If/Else 15659pairs. 15660 15661The ACPI 2.0 ElseIf operator is implemented and will also work 15662with 1.0 interpreters, for the same reason. 15663 15664Implemented support for ACPI 2.0 variable-length packages. These 15665packages have a separate opcode, and their size is determined by 15666the interpreter at run-time. 15667 15668Documentation The ACPI CA Programmer Reference has been updated to 15669reflect the new interfaces and changes to existing interfaces. 15670 15671 ------------------------------------------ 15672Summary of changes for this label: 06_15_01 15673 15674 ACPI CA Core Subsystem: 15675 15676Fixed a problem where a DWORD-accessed field within a Buffer 15677object would get its byte address inadvertently rounded down to 15678the nearest DWORD. Buffers are always Byte-accessible. 15679 15680 ASL Compiler, version X2024: 15681 15682Fixed a problem where the Switch() operator would either fault or 15683hang the compiler. Note however, that the AML code for this ACPI 156842.0 operator is not yet implemented. 15685 15686Compiler uses the new AcpiOsGetTimer interface to obtain compile 15687timings. 15688 15689Implementation of the CreateField operator automatically converts 15690a reference to a named field within a resource descriptor from a 15691byte offset to a bit offset if required. 15692 15693Added some missing named fields from the resource descriptor 15694support. These are the names that are automatically created by the 15695compiler to reference fields within a descriptor. They are only 15696valid at compile time and are not passed through to the AML 15697interpreter. 15698 15699Resource descriptor named fields are now typed as Integers and 15700subject to compile-time typechecking when used in expressions. 15701 15702 ------------------------------------------ 15703Summary of changes for this label: 05_18_01 15704 15705 ACPI CA Core Subsystem: 15706 15707Fixed a couple of problems in the Field support code where bits 15708from adjacent fields could be returned along with the proper field 15709bits. Restructured the field support code to improve performance, 15710readability and maintainability. 15711 15712New DEBUG_PRINTP macro automatically inserts the procedure name 15713into the output, saving hundreds of copies of procedure name 15714strings within the source, shrinking the memory footprint of the 15715debug version of the core subsystem. 15716 15717 Source Code Structure: 15718 15719The source code directory tree was restructured to reflect the 15720current organization of the component architecture. Some files 15721and directories have been moved and/or renamed. 15722 15723 Linux: 15724 15725Fixed leaking kacpidpc processes. 15726 15727Fixed queueing event data even when /proc/acpi/event is not 15728opened. 15729 15730 ASL Compiler, version X2020: 15731 15732Memory allocation performance enhancement - over 24X compile time 15733improvement on large ASL files. Parse nodes and namestring 15734buffers are now allocated from a large internal compiler buffer. 15735 15736The temporary .SRC file is deleted unless the "-s" option is 15737specified 15738 15739The "-d" debug output option now sends all output to the .DBG file 15740instead of the console. 15741 15742"External" second parameter is now optional 15743 15744"ElseIf" syntax now properly allows the predicate 15745 15746Last operand to "Load" now recognized as a Target operand 15747 15748Debug object can now be used anywhere as a normal object. 15749 15750ResourceTemplate now returns an object of type BUFFER 15751 15752EISAID now returns an object of type INTEGER 15753 15754"Index" now works with a STRING operand 15755 15756"LoadTable" now accepts optional parameters 15757 15758"ToString" length parameter is now optional 15759 15760"Interrupt (ResourceType," parse error fixed. 15761 15762"Register" with a user-defined region space parse error fixed 15763 15764Escaped backslash at the end of a string ("\\") scan/parse error 15765fixed 15766 15767"Revision" is now an object of type INTEGER. 15768 15769 15770 15771------------------------------------------ 15772Summary of changes for this label: 05_02_01 15773 15774Linux: 15775 15776/proc/acpi/event now blocks properly. 15777 15778Removed /proc/sys/acpi. You can still dump your DSDT from 15779/proc/acpi/dsdt. 15780 15781 ACPI CA Core Subsystem: 15782 15783Fixed a problem introduced in the previous label where some of the 15784"small" resource descriptor types were not recognized. 15785 15786Improved error messages for the case where an ASL Field is outside 15787the range of the parent operation region. 15788 15789 ASL Compiler, version X2018: 15790 15791 15792Added error detection for ASL Fields that extend beyond the length 15793of the parent operation region (only if the length of the region 15794is known at compile time.) This includes fields that have a 15795minimum access width that is smaller than the parent region, and 15796individual field units that are partially or entirely beyond the 15797extent of the parent. 15798 15799 15800 15801------------------------------------------ 15802Summary of changes for this label: 04_27_01 15803 15804 ACPI CA Core Subsystem: 15805 15806Fixed a problem where the namespace mutex could be released at the 15807wrong time during execution of AcpiRemoveAddressSpaceHandler. 15808 15809Added optional thread ID output for debug traces, to simplify 15810debugging of multiple threads. Added context switch notification 15811when the debug code realizes that a different thread is now 15812executing ACPI code. 15813 15814Some additional external data types have been prefixed with the 15815string "ACPI_" for consistency. This may effect existing code. 15816The data types affected are the external callback typedefs - e.g., 15817 15818WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 15819 15820 Linux: 15821 15822Fixed an issue with the OSL semaphore implementation where a 15823thread was waking up with an error from receiving a SIGCHLD 15824signal. 15825 15826Linux version of ACPI CA now uses the system C library for string 15827manipulation routines instead of a local implementation. 15828 15829Cleaned up comments and removed TBDs. 15830 15831 ASL Compiler, version X2017: 15832 15833Enhanced error detection and reporting for all file I/O 15834operations. 15835 15836 Documentation: 15837 15838Programmer Reference updated to version 1.06. 15839 15840 15841 15842------------------------------------------ 15843Summary of changes for this label: 04_13_01 15844 15845 ACPI CA Core Subsystem: 15846 15847Restructured support for BufferFields and RegionFields. 15848BankFields support is now fully operational. All known 32-bit 15849limitations on field sizes have been removed. Both BufferFields 15850and (Operation) RegionFields are now supported by the same field 15851management code. 15852 15853Resource support now supports QWORD address and IO resources. The 1585416/32/64 bit address structures and the Extended IRQ structure 15855have been changed to properly handle Source Resource strings. 15856 15857A ThreadId of -1 is now used to indicate a "mutex not acquired" 15858condition internally and must never be returned by AcpiOsThreadId. 15859This reserved value was changed from 0 since Unix systems allow a 15860thread ID of 0. 15861 15862Linux: 15863 15864Driver code reorganized to enhance portability 15865 15866Added a kernel configuration option to control ACPI_DEBUG 15867 15868Fixed the EC driver to honor _GLK. 15869 15870ASL Compiler, version X2016: 15871 15872Fixed support for the "FixedHw" keyword. Previously, the FixedHw 15873address space was set to 0, not 0x7f as it should be. 15874 15875 ------------------------------------------ 15876Summary of changes for this label: 03_13_01 15877 15878 ACPI CA Core Subsystem: 15879 15880During ACPI initialization, the _SB_._INI method is now run if 15881present. 15882 15883Notify handler fix - notifies are deferred until the parent method 15884completes execution. This fixes the "mutex already acquired" 15885issue seen occasionally. 15886 15887Part of the "implicit conversion" rules in ACPI 2.0 have been 15888found to cause compatibility problems with existing ASL/AML. The 15889convert "result-to-target-type" implementation has been removed 15890for stores to method Args and Locals. Source operand conversion 15891is still fully implemented. Possible changes to ACPI 2.0 15892specification pending. 15893 15894Fix to AcpiRsCalculatePciRoutingTableLength to return correct 15895length. 15896 15897Fix for compiler warnings for 64-bit compiles. 15898 15899 Linux: 15900 15901/proc output aligned for easier parsing. 15902 15903Release-version compile problem fixed. 15904 15905New kernel configuration options documented in Configure.help. 15906 15907IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 15908context" message. 15909 15910 OSPM: 15911 15912Power resource driver integrated with bus manager. 15913 15914Fixed kernel fault during active cooling for thermal zones. 15915 15916Source Code: 15917 15918The source code tree has been restructured. 15919 15920 15921 15922------------------------------------------ 15923Summary of changes for this label: 03_02_01 15924 15925 Linux OS Services Layer (OSL): 15926 15927Major revision of all Linux-specific code. 15928 15929Modularized all ACPI-specific drivers. 15930 15931Added new thermal zone and power resource drivers. 15932 15933Revamped /proc interface (new functionality is under /proc/acpi). 15934 15935New kernel configuration options. 15936 15937 Linux known issues: 15938 15939New kernel configuration options not documented in Configure.help 15940yet. 15941 15942 15943Module dependencies not currently implemented. If used, they 15944should be loaded in this order: busmgr, power, ec, system, 15945processor, battery, ac_adapter, button, thermal. 15946 15947Modules will not load if CONFIG_MODVERSION is set. 15948 15949IBM 600E - entering S5 may reboot instead of shutting down. 15950 15951IBM 600E - Sleep button may generate "Invalid <NULL> context" 15952message. 15953 15954Some systems may fail with "execution mutex already acquired" 15955message. 15956 15957 ACPI CA Core Subsystem: 15958 15959Added a new OSL Interface, AcpiOsGetThreadId. This was required 15960for the deadlock detection code. Defined to return a non-zero, 32- 15961bit thread ID for the currently executing thread. May be a non- 15962zero constant integer on single-thread systems. 15963 15964Implemented deadlock detection for internal subsystem mutexes. We 15965may add conditional compilation for this code (debug only) later. 15966 15967ASL/AML Mutex object semantics are now fully supported. This 15968includes multiple acquires/releases by owner and support for the 15969 15970Mutex SyncLevel parameter. 15971 15972A new "Force Release" mechanism automatically frees all ASL 15973Mutexes that have been acquired but not released when a thread 15974exits the interpreter. This forces conformance to the ACPI spec 15975("All mutexes must be released when an invocation exits") and 15976prevents deadlocked ASL threads. This mechanism can be expanded 15977(later) to monitor other resource acquisitions if OEM ASL code 15978continues to misbehave (which it will). 15979 15980Several new ACPI exception codes have been added for the Mutex 15981support. 15982 15983Recursive method calls are now allowed and supported (the ACPI 15984spec does in fact allow recursive method calls.) The number of 15985recursive calls is subject to the restrictions imposed by the 15986SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 15987parameter. 15988 15989Implemented support for the SyncLevel parameter for control 15990methods (ACPI 2.0 feature) 15991 15992Fixed a deadlock problem when multiple threads attempted to use 15993the interpreter. 15994 15995Fixed a problem where the string length of a String package 15996element was not always set in a package returned from 15997AcpiEvaluateObject. 15998 15999Fixed a problem where the length of a String package element was 16000not always included in the length of the overall package returned 16001from AcpiEvaluateObject. 16002 16003Added external interfaces (Acpi*) to the ACPI debug memory 16004manager. This manager keeps a list of all outstanding 16005allocations, and can therefore detect memory leaks and attempts to 16006free memory blocks more than once. Useful for code such as the 16007power manager, etc. May not be appropriate for device drivers. 16008Performance with the debug code enabled is slow. 16009 16010The ACPI Global Lock is now an optional hardware element. 16011 16012 ASL Compiler Version X2015: 16013 16014Integrated changes to allow the compiler to be generated on 16015multiple platforms. 16016 16017Linux makefile added to generate the compiler on Linux 16018 16019 Source Code: 16020 16021All platform-specific headers have been moved to their own 16022subdirectory, Include/Platform. 16023 16024New source file added, Interpreter/ammutex.c 16025 16026New header file, Include/acstruct.h 16027 16028 Documentation: 16029 16030The programmer reference has been updated for the following new 16031interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 16032 16033 ------------------------------------------ 16034Summary of changes for this label: 02_08_01 16035 16036Core ACPI CA Subsystem: Fixed a problem where an error was 16037incorrectly returned if the return resource buffer was larger than 16038the actual data (in the resource interfaces). 16039 16040References to named objects within packages are resolved to the 16041 16042full pathname string before packages are returned directly (via 16043the AcpiEvaluateObject interface) or indirectly via the resource 16044interfaces. 16045 16046Linux OS Services Layer (OSL): 16047 16048Improved /proc battery interface. 16049 16050 16051Added C-state debugging output and other miscellaneous fixes. 16052 16053ASL Compiler Version X2014: 16054 16055All defined method arguments can now be used as local variables, 16056including the ones that are not actually passed in as parameters. 16057The compiler tracks initialization of the arguments and issues an 16058exception if they are used without prior assignment (just like 16059locals). 16060 16061The -o option now specifies a filename prefix that is used for all 16062output files, including the AML output file. Otherwise, the 16063default behavior is as follows: 1) the AML goes to the file 16064specified in the DSDT. 2) all other output files use the input 16065source filename as the base. 16066 16067 ------------------------------------------ 16068Summary of changes for this label: 01_25_01 16069 16070Core ACPI CA Subsystem: Restructured the implementation of object 16071store support within the interpreter. This includes support for 16072the Store operator as well as any ASL operators that include a 16073target operand. 16074 16075Partially implemented support for Implicit Result-to-Target 16076conversion. This is when a result object is converted on the fly 16077to the type of an existing target object. Completion of this 16078support is pending further analysis of the ACPI specification 16079concerning this matter. 16080 16081CPU-specific code has been removed from the subsystem (hardware 16082directory). 16083 16084New Power Management Timer functions added 16085 16086Linux OS Services Layer (OSL): Moved system state transition code 16087to the core, fixed it, and modified Linux OSL accordingly. 16088 16089Fixed C2 and C3 latency calculations. 16090 16091 16092We no longer use the compilation date for the version message on 16093initialization, but retrieve the version from AcpiGetSystemInfo(). 16094 16095Incorporated for fix Sony VAIO machines. 16096 16097Documentation: The Programmer Reference has been updated and 16098reformatted. 16099 16100 16101ASL Compiler: Version X2013: Fixed a problem where the line 16102numbering and error reporting could get out of sync in the 16103presence of multiple include files. 16104 16105 ------------------------------------------ 16106Summary of changes for this label: 01_15_01 16107 16108Core ACPI CA Subsystem: 16109 16110Implemented support for type conversions in the execution of the 16111ASL Concatenate operator (The second operand is converted to 16112match the type of the first operand before concatenation.) 16113 16114Support for implicit source operand conversion is partially 16115implemented. The ASL source operand types Integer, Buffer, and 16116String are freely interchangeable for most ASL operators and are 16117converted by the interpreter on the fly as required. Implicit 16118Target operand conversion (where the result is converted to the 16119target type before storing) is not yet implemented. 16120 16121Support for 32-bit and 64-bit BCD integers is implemented. 16122 16123Problem fixed where a field read on an aligned field could cause a 16124read past the end of the field. 16125 16126New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 16127does not return a value, but the caller expects one. (The ASL 16128compiler flags this as a warning.) 16129 16130ASL Compiler: 16131 16132Version X2011: 161331. Static typechecking of all operands is implemented. This 16134prevents the use of invalid objects (such as using a Package where 16135an Integer is required) at compile time instead of at interpreter 16136run-time. 161372. The ASL source line is printed with ALL errors and warnings. 161383. Bug fix for source EOF without final linefeed. 161394. Debug option is split into a parse trace and a namespace trace. 161405. Namespace output option (-n) includes initial values for 16141integers and strings. 161426. Parse-only option added for quick syntax checking. 161437. Compiler checks for duplicate ACPI name declarations 16144 16145Version X2012: 161461. Relaxed typechecking to allow interchangeability between 16147strings, integers, and buffers. These types are now converted by 16148the interpreter at runtime. 161492. Compiler reports time taken by each internal subsystem in the 16150debug output file. 16151 16152 16153 ------------------------------------------ 16154Summary of changes for this label: 12_14_00 16155 16156ASL Compiler: 16157 16158This is the first official release of the compiler. Since the 16159compiler requires elements of the Core Subsystem, this label 16160synchronizes everything. 16161 16162------------------------------------------ 16163Summary of changes for this label: 12_08_00 16164 16165 16166Fixed a problem where named references within the ASL definition 16167of both OperationRegions and CreateXXXFields did not work 16168properly. The symptom was an AE_AML_OPERAND_TYPE during 16169initialization of the region/field. This is similar (but not 16170related internally) to the problem that was fixed in the last 16171label. 16172 16173Implemented both 32-bit and 64-bit support for the BCD ASL 16174functions ToBCD and FromBCD. 16175 16176Updated all legal headers to include "2000" in the copyright 16177years. 16178 16179 ------------------------------------------ 16180Summary of changes for this label: 12_01_00 16181 16182Fixed a problem where method invocations within the ASL definition 16183of both OperationRegions and CreateXXXFields did not work 16184properly. The symptom was an AE_AML_OPERAND_TYPE during 16185initialization of the region/field: 16186 16187 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 16188[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 16189(0x3005) 16190 16191Fixed a problem where operators with more than one nested 16192subexpression would fail. The symptoms were varied, by mostly 16193AE_AML_OPERAND_TYPE errors. This was actually a rather serious 16194problem that has gone unnoticed until now. 16195 16196 Subtract (Add (1,2), Multiply (3,4)) 16197 16198Fixed a problem where AcpiGetHandle didn't quite get fixed in the 16199previous build (The prefix part of a relative path was handled 16200incorrectly). 16201 16202Fixed a problem where Operation Region initialization failed if 16203the operation region name was a "namepath" instead of a simple 16204"nameseg". Symptom was an AE_NO_OPERAND error. 16205 16206Fixed a problem where an assignment to a local variable via the 16207indirect RefOf mechanism only worked for the first such 16208assignment. Subsequent assignments were ignored. 16209 16210 ------------------------------------------ 16211Summary of changes for this label: 11_15_00 16212 16213ACPI 2.0 table support with backwards support for ACPI 1.0 and the 162140.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 16215the AML interpreter does NOT have support for the new 2.0 ASL 16216grammar terms at this time. 16217 16218All ACPI hardware access is via the GAS structures in the ACPI 2.0 16219FADT. 16220 16221All physical memory addresses across all platforms are now 64 bits 16222wide. Logical address width remains dependent on the platform 16223(i.e., "void *"). 16224 16225AcpiOsMapMemory interface changed to a 64-bit physical address. 16226 16227The AML interpreter integer size is now 64 bits, as per the ACPI 162282.0 specification. 16229 16230For backwards compatibility with ACPI 1.0, ACPI tables with a 16231revision number less than 2 use 32-bit integers only. 16232 16233Fixed a problem where the evaluation of OpRegion operands did not 16234always resolve them to numbers properly. 16235 16236------------------------------------------ 16237Summary of changes for this label: 10_20_00 16238 16239Fix for CBN_._STA issue. This fix will allow correct access to 16240CBN_ OpRegions when the _STA returns 0x8. 16241 16242Support to convert ACPI constants (Ones, Zeros, One) to actual 16243values before a package object is returned 16244 16245Fix for method call as predicate to if/while construct causing 16246incorrect if/while behavior 16247 16248Fix for Else block package lengths sometimes calculated wrong (if 16249block > 63 bytes) 16250 16251Fix for Processor object length field, was always zero 16252 16253Table load abort if FACP sanity check fails 16254 16255Fix for problem with Scope(name) if name already exists 16256 16257Warning emitted if a named object referenced cannot be found 16258(resolved) during method execution. 16259 16260 16261 16262 16263 16264------------------------------------------ 16265Summary of changes for this label: 9_29_00 16266 16267New table initialization interfaces: AcpiInitializeSubsystem no 16268longer has any parameters AcpiFindRootPointer - Find the RSDP (if 16269necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 16270>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 16271AcpiLoadTables 16272 16273Note: These interface changes require changes to all existing OSDs 16274 16275The PCI_Config default address space handler is always installed 16276at the root namespace object. 16277 16278------------------------------------------- 16279Summary of changes for this label: 09_15_00 16280 16281The new initialization architecture is implemented. New 16282interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 16283AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 16284 16285(Namespace is automatically loaded when a table is loaded) 16286 16287The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1628852 bytes to 32 bytes. There is usually one of these for every 16289namespace object, so the memory savings is significant. 16290 16291Implemented just-in-time evaluation of the CreateField operators. 16292 16293Bug fixes for IA-64 support have been integrated. 16294 16295Additional code review comments have been implemented 16296 16297The so-called "third pass parse" has been replaced by a final walk 16298through the namespace to initialize all operation regions (address 16299spaces) and fields that have not yet been initialized during the 16300execution of the various _INI and REG methods. 16301 16302New file - namespace/nsinit.c 16303 16304------------------------------------------- 16305Summary of changes for this label: 09_01_00 16306 16307Namespace manager data structures have been reworked to change the 16308primary object from a table to a single object. This has 16309resulted in dynamic memory savings of 3X within the namespace and 163102X overall in the ACPI CA subsystem. 16311 16312Fixed problem where the call to AcpiEvFindPciRootBuses was 16313inadvertently left commented out. 16314 16315Reduced the warning count when generating the source with the GCC 16316compiler. 16317 16318Revision numbers added to each module header showing the 16319SourceSafe version of the file. Please refer to this version 16320number when giving us feedback or comments on individual modules. 16321 16322The main object types within the subsystem have been renamed to 16323clarify their purpose: 16324 16325ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 16326ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 16327ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 16328 16329NOTE: no changes to the initialization sequence are included in 16330this label. 16331 16332------------------------------------------- 16333Summary of changes for this label: 08_23_00 16334 16335Fixed problem where TerminateControlMethod was being called 16336multiple times per method 16337 16338Fixed debugger problem where single stepping caused a semaphore to 16339be oversignalled 16340 16341Improved performance through additional parse object caching - 16342added ACPI_EXTENDED_OP type 16343 16344------------------------------------------- 16345Summary of changes for this label: 08_10_00 16346 16347Parser/Interpreter integration: Eliminated the creation of 16348complete parse trees for ACPI tables and control methods. 16349Instead, parse subtrees are created and then deleted as soon as 16350they are processed (Either entered into the namespace or executed 16351by the interpreter). This reduces the use of dynamic kernel 16352memory significantly. (about 10X) 16353 16354Exception codes broken into classes and renumbered. Be sure to 16355recompile all code that includes acexcep.h. Hopefully we won't 16356have to renumber the codes again now that they are split into 16357classes (environment, programmer, AML code, ACPI table, and 16358internal). 16359 16360Fixed some additional alignment issues in the Resource Manager 16361subcomponent 16362 16363Implemented semaphore tracking in the AcpiExec utility, and fixed 16364several places where mutexes/semaphores were being unlocked 16365without a corresponding lock operation. There are no known 16366semaphore or mutex "leaks" at this time. 16367 16368Fixed the case where an ASL Return operator is used to return an 16369unnamed package. 16370 16371------------------------------------------- 16372Summary of changes for this label: 07_28_00 16373 16374Fixed a problem with the way addresses were calculated in 16375AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 16376manifested itself when a Field was created with WordAccess or 16377DwordAccess, but the field unit defined within the Field was less 16378 16379than a Word or Dword. 16380 16381Fixed a problem in AmlDumpOperands() module's loop to pull 16382operands off of the operand stack to display information. The 16383problem manifested itself as a TLB error on 64-bit systems when 16384accessing an operand stack with two or more operands. 16385 16386Fixed a problem with the PCI configuration space handlers where 16387context was getting confused between accesses. This required a 16388change to the generic address space handler and address space 16389setup definitions. Handlers now get both a global handler context 16390(this is the one passed in by the user when executing 16391AcpiInstallAddressSpaceHandler() and a specific region context 16392that is unique to each region (For example, the _ADR, _SEG and 16393_BBN values associated with a specific region). The generic 16394function definitions have changed to the following: 16395 16396typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 16397UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 16398*HandlerContext, // This used to be void *Context void 16399*RegionContext); // This is an additional parameter 16400 16401typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 16402RegionHandle, UINT32 Function, void *HandlerContext, void 16403**RegionContext); // This used to be **ReturnContext 16404 16405------------------------------------------- 16406Summary of changes for this label: 07_21_00 16407 16408Major file consolidation and rename. All files within the 16409interpreter have been renamed as well as most header files. This 16410was done to prevent collisions with existing files in the host 16411OSs -- filenames such as "config.h" and "global.h" seem to be 16412quite common. The VC project files have been updated. All 16413makefiles will require modification. 16414 16415The parser/interpreter integration continues in Phase 5 with the 16416implementation of a complete 2-pass parse (the AML is parsed 16417twice) for each table; This avoids the construction of a huge 16418parse tree and therefore reduces the amount of dynamic memory 16419required by the subsystem. Greater use of the parse object cache 16420means that performance is unaffected. 16421 16422Many comments from the two code reviews have been rolled in. 16423 16424The 64-bit alignment support is complete. 16425 16426------------------------------------------- 16427Summary of changes for this label: 06_30_00 16428 16429With a nod and a tip of the hat to the technology of yesteryear, 16430we've added support in the source code for 80 column output 16431devices. The code is now mostly constrained to 80 columns or 16432less to support environments and editors that 1) cannot display 16433or print more than 80 characters on a single line, and 2) cannot 16434disable line wrapping. 16435 16436A major restructuring of the namespace data structure has been 16437completed. The result is 1) cleaner and more 16438understandable/maintainable code, and 2) a significant reduction 16439in the dynamic memory requirement for each named ACPI object 16440(almost half). 16441 16442------------------------------------------- 16443Summary of changes for this label: 06_23_00 16444 16445Linux support has been added. In order to obtain approval to get 16446the ACPI CA subsystem into the Linux kernel, we've had to make 16447quite a few changes to the base subsystem that will affect all 16448users (all the changes are generic and OS- independent). The 16449effects of these global changes have been somewhat far reaching. 16450Files have been merged and/or renamed and interfaces have been 16451renamed. The major changes are described below. 16452 16453Osd* interfaces renamed to AcpiOs* to eliminate namespace 16454pollution/confusion within our target kernels. All OSD 16455interfaces must be modified to match the new naming convention. 16456 16457Files merged across the subsystem. A number of the smaller source 16458and header files have been merged to reduce the file count and 16459increase the density of the existing files. There are too many 16460to list here. In general, makefiles that call out individual 16461files will require rebuilding. 16462 16463Interpreter files renamed. All interpreter files now have the 16464prefix am* instead of ie* and is*. 16465 16466Header files renamed: The acapi.h file is now acpixf.h. The 16467acpiosd.h file is now acpiosxf.h. We are removing references to 16468the acronym "API" since it is somewhat windowsy. The new name is 16469"external interface" or xface or xf in the filenames.j 16470 16471 16472All manifest constants have been forced to upper case (some were 16473mixed case.) Also, the string "ACPI_" has been prepended to many 16474(not all) of the constants, typedefs, and structs. 16475 16476The globals "DebugLevel" and "DebugLayer" have been renamed 16477"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 16478 16479All other globals within the subsystem are now prefixed with 16480"AcpiGbl_" Internal procedures within the subsystem are now 16481prefixed with "Acpi" (with only a few exceptions). The original 16482two-letter abbreviation for the subcomponent remains after "Acpi" 16483- for example, CmCallocate became AcpiCmCallocate. 16484 16485Added a source code translation/conversion utility. Used to 16486generate the Linux source code, it can be modified to generate 16487other types of source as well. Can also be used to cleanup 16488existing source by removing extraneous spaces and blank lines. 16489Found in tools/acpisrc/* 16490 16491OsdUnMapMemory was renamed to OsdUnmapMemory and then 16492AcpiOsUnmapMemory. (UnMap became Unmap). 16493 16494A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 16495When set to one, this indicates that the caller wants to use the 16496 16497semaphore as a mutex, not a counting semaphore. ACPI CA uses 16498both types. However, implementers of this call may want to use 16499different OS primitives depending on the type of semaphore 16500requested. For example, some operating systems provide separate 16501 16502"mutex" and "semaphore" interfaces - where the mutex interface is 16503much faster because it doesn't have all the overhead of a full 16504semaphore implementation. 16505 16506Fixed a deadlock problem where a method that accesses the PCI 16507address space can block forever if it is the first access to the 16508space. 16509 16510------------------------------------------- 16511Summary of changes for this label: 06_02_00 16512 16513Support for environments that cannot handle unaligned data 16514accesses (e.g. firmware and OS environments devoid of alignment 16515handler technology namely SAL/EFI and the IA-64 Linux kernel) has 16516been added (via configurable macros) in these three areas: - 16517Transfer of data from the raw AML byte stream is done via byte 16518moves instead of word/dword/qword moves. - External objects are 16519aligned within the user buffer, including package elements (sub- 16520objects). - Conversion of name strings to UINT32 Acpi Names is now 16521done byte-wise. 16522 16523The Store operator was modified to mimic Microsoft's 16524implementation when storing to a Buffer Field. 16525 16526Added a check of the BM_STS bit before entering C3. 16527 16528The methods subdirectory has been obsoleted and removed. A new 16529file, cmeval.c subsumes the functionality. 16530 16531A 16-bit (DOS) version of AcpiExec has been developed. The 16532makefile is under the acpiexec directory. 16533