xref: /dragonfly/sys/contrib/dev/acpica/changes.txt (revision 84b31f29)
1----------------------------------------
230 September 2015. Summary of changes for version 20150930:
3
41) ACPICA kernel-resident subsystem:
5
6Debugger: Implemented several changes and bug fixes to assist support for
7the in-kernel version of the AML debugger. Lv Zheng.
8- Fix the "predefined" command for in-kernel debugger.
9- Do not enter debug command loop for the help and version commands.
10- Disallow "execute" command during execution/single-step of a method.
11
12Interpreter: Updated runtime typechecking for all operators that have
13target operands. The operand is resolved and validated that it is legal.
14For example, the target cannot be a non-data object such as a Device,
15Mutex, ThermalZone, etc., as per the ACPI specification.
16
17Debugger: Fixed the double-mutex user I/O handshake to work when local
18deadlock detection is enabled.
19
20Debugger: limited display of method locals and arguments (LocalX and
21ArgX) to only those that have actually been initialized. This prevents
22lines of extraneous output.
23
24Updated the definition of the NFIT table to correct the bit polarity of
25one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
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: 101.7K Code, 27.9K Data, 129.6K Total
34    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
35  Previous Release:
36    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
37    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
38
39
402) iASL Compiler/Disassembler and Tools:
41
42iASL: Improved the compile-time typechecking for operands of many of the
43ASL operators:
44
45-- Added an option to disable compiler operand/operator typechecking (-
46ot).
47
48-- For the following operators, the TermArg operands are now validated
49when possible to be Integer data objects: BankField, OperationRegion,
50DataTableRegion, Buffer, and Package.
51
52-- Store (Source, Target): Both the source and target operands are
53resolved and checked that the operands are both legal. For example,
54neither operand can be a non-data object such as a Device, Mutex,
55ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
56operator can be used to store an object to any type of target object.
57
58-- Store (Source, Target): If the source is a Package object, the target
59must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
60is a Package, the source must also be a Package.
61
62-- Store (Source, Target): A warning is issued if the source and target
63resolve to the identical named object.
64
65-- Store (Source, <method invocation>): An error is generated for the
66target method invocation, as this construct is not supported by the AML
67interpreter.
68
69-- For all ASL math and logic operators, the target operand must be a
70data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
71includes the function return value also.
72
73-- External declarations are also included in the typechecking where
74possible. External objects defined using the UnknownObj keyword cannot be
75typechecked, however.
76
77iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
78operator:
79- Legacy code: Index(PKG1, 3)
80- New ASL+ code: PKG1[3]
81This completes the ACPI 6.0 ASL+ support as it was the only operator not
82supported.
83
84iASL: Fixed the file suffix for the preprocessor output file (.i). Two
85spaces were inadvertently appended to the filename, causing file access
86and deletion problems on some systems.
87
88ASL Test Suite (ASLTS): Updated the master makefile to generate all
89possible compiler output files when building the test suite -- thus
90exercising these features of the compiler. These files are automatically
91deleted when the test suite exits.
92
93----------------------------------------
9418 August 2015. Summary of changes for version 20150818:
95
961) ACPICA kernel-resident subsystem:
97
98Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
99Zheng. ACPICA BZ 1186.
100
101Completed development to ensure that the ACPICA Disassembler and Debugger
102are fully standalone components of ACPICA. Removed cross-component
103dependences. Lv Zheng.
104
105The max-number-of-AML-loops is now runtime configurable (previously was
106compile-time only). This is essentially a loop timeout to force-abort
107infinite AML loops. ACPCIA BZ 1192.
108
109Debugger: Cleanup output to dump ACPI names and namepaths without any
110trailing underscores. Lv Zheng. ACPICA BZ 1135.
111
112Removed unnecessary conditional compilations across the Debugger and
113Disassembler components where entire modules could be left uncompiled.
114
115The aapits test is deprecated and has been removed from the ACPICA git
116tree. The test has never been completed and has not been maintained, thus
117becoming rather useless. ACPICA BZ 1015, 794.
118
119A batch of small changes to close bugzilla and other reports:
120- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
121- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
122- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
123- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
124Moore.
125- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
126ACPICA BZ 1184.
127- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
128operators.
129- Debugger: Split debugger initialization/termination interfaces. Lv
130Zheng.
131- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
132identification.
133- AcpiExec: Add debug message during _REG method phase during table
134load/init.
135- AcpiNames: Fix a regression where some output was missing and no longer
136emitted.
137- Debugger: General cleanup and simplification. Lv Zheng.
138- Disassembler: Cleanup use of several global option variables. Lv Zheng.
139
140Example Code and Data Size: These are the sizes for the OS-independent
141acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
142debug version of the code includes the debug output trace mechanism and
143has a much larger code and data size.
144
145  Current Release:
146    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
147    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
148  Previous Release:
149    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
150    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
151
152
1532) iASL Compiler/Disassembler and Tools:
154
155AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
156were not handled properly and caused load errors. Now, properly invoke
157and use the ACPICA auto-reallocate mechanism for ACPI table data
158structures. ACPICA BZ 1188
159
160AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
161BZ 1190.
162
163AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
164AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
165executed during initialization. ACPICA BZ 1187, 1189.
166
167iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
168that corresponds to each disassembled ASL statement, to simplify
169debugging. ACPICA BZ 1191.
170
171Debugger: Add option to the "objects" command to display a summary of the
172current namespace objects (Object type and count). This is displayed if
173the command is entered with no arguments.
174
175AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
176
177----------------------------------------
17817 July 2015. Summary of changes for version 20150717:
179
1801) ACPICA kernel-resident subsystem:
181
182Improved the partitioning between the Debugger and Disassembler
183components. This allows the Debugger to be used standalone within kernel
184code without the Disassembler (which is used for single stepping also).
185This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
186
187Debugger: Implemented a new command to trace the execution of control
188methods (Trace). This is especially useful for the in-kernel version of
189the debugger when file I/O may not be available for method trace output.
190See the ACPICA reference for more information. Lv Zheng.
191
192Moved all C library prototypes (used for the local versions of these
193functions when requested) to a new header, acclib.h
194Cleaned up the use of non-ANSI C library functions. These functions are
195implemented locally in ACPICA. Moved all such functions to a common
196source file, utnonansi.c
197
198Debugger: Fixed a problem with the "!!" command (get last command
199executed) where the debugger could enter an infinite loop and eventually
200crash.
201
202Removed the use of local macros that were used for some of the standard C
203library functions to automatically cast input parameters. This mostly
204affected the is* functions where the input parameter is defined to be an
205int. This required a few modifications to the main ACPICA source code to
206provide casting for these functions and eliminate possible compiler
207warnings for these parameters.
208
209Across the source code, added additional status/error checking to resolve
210issues discovered by static source code analysis tools such as Coverity.
211
212Example Code and Data Size: These are the sizes for the OS-independent
213acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
214debug version of the code includes the debug output trace mechanism and
215has a much larger code and data size.
216
217  Current Release:
218    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
219    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
220  Previous Release:
221    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
222    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
223
224
2252) iASL Compiler/Disassembler and Tools:
226
227iASL: Fixed a regression where the device map file feature no longer
228worked properly when used in conjunction with the disassembler. It only
229worked properly with the compiler itself.
230
231iASL: Implemented a new warning for method LocalX variables that are set
232but never used (similar to a C compiler such as gcc). This also applies
233to ArgX variables that are not defined by the parent method, and are
234instead (legally) used as local variables.
235
236iASL/Preprocessor: Finished the pass-through of line numbers from the
237preprocessor to the compiler. This ensures that compiler errors/warnings
238have the correct original line numbers and filenames, regardless of any
239#include files.
240
241iASL/Preprocessor: Fixed a couple of issues with comment handling and the
242pass-through of comments to the preprocessor output file (which becomes
243the compiler input file). Also fixed a problem with // comments that
244appear after a math expression.
245
246iASL: Added support for the TCPA server table to the table compiler and
247template generator. (The client table was already previously supported)
248
249iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
250identify the iASL compiler.
251
252Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
253multiple times. The new names are ACPI_SIGN_NEGATIVE and
254ACPI_SIGN_POSITIVE.
255
256AcpiHelp: Update to expand help messages for the iASL preprocessor
257directives.
258
259
260----------------------------------------
26119 June 2015. Summary of changes for version 20150619:
262
263Two regressions in version 20150616 have been addressed:
264
265Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
266etc.) This update changes ACPICA to only use the standard headers for
267functions, or the prototypes for the local versions of the C library
268functions. Across the source code, this required some additional casts
269for some Clib invocations for portability. Moved all local prototypes to
270a new file, acclib.h
271
272Fixes several problems with recent changes to the handling of the FACS
273table that could cause some systems not to boot.
274
275
276----------------------------------------
27716 June 2015. Summary of changes for version 20150616:
278
279
2801) ACPICA kernel-resident subsystem:
281
282Across the entire ACPICA source code base, the various macros for the C
283library functions (such as ACPI_STRLEN, etc.) have been removed and
284replaced by the standard C library names (strlen, etc.) The original
285purpose for these macros is no longer applicable. This simplification
286reduces the number of macros used in the ACPICA source code
287significantly, improving readability and maintainability.
288
289Implemented support for a new ACPI table, the OSDT. This table, the
290"override" SDT, can be loaded directly by the host OS at boot time. It
291enables the replacement of existing namespace objects that were installed
292via the DSDT and/or SSDTs. The primary purpose for this is to replace
293buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
294for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
295Moore.
296
297Added support for systems with (improperly) two FACS tables -- a "32-bit"
298table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
299X field). This change will support both automatically. There continues to
300be systems found with this issue. This support requires a change to the
301AcpiSetFirmwareWakingVector interface. Also, a public global variable has
302been added to allow the host to select which FACS is desired
303(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
304details Lv Zheng.
305
306Added a new feature to allow for systems that do not contain an FACS.
307Although this is already supported on hardware-reduced platforms, the
308feature has been extended for all platforms. The reasoning is that we do
309not want to abort the entire ACPICA initialization just because the
310system is seriously buggy and has no FACS.
311
312Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
313not correctly transcribed from the ACPI specification in ACPICA version
31420150515.
315
316Implemented support for the _CLS object in the AcpiGetObjectInfo external
317interface.
318
319Updated the definitions of the TCPA and TPM2 ACPI tables to the more
320recent TCG ACPI Specification, December 14, 2014. Table disassembler and
321compiler also updated. Note: The TCPA "server" table is not supported by
322the disassembler/table-compiler at this time.
323
324ACPI 6.0: Added definitions for the new GIC version field in the MADT.
325
326Example Code and Data Size: These are the sizes for the OS-independent
327acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
328debug version of the code includes the debug output trace mechanism and
329has a much larger code and data size.
330
331  Current Release:
332    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
333    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
334  Previous Release:
335    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
336    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
337
338
3392) iASL Compiler/Disassembler and Tools:
340
341Disassembler: Fixed a problem with the new symbolic operator disassembler
342where incorrect ASL code could be emitted in some cases for the "non-
343commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
344ShiftRight. The actual problem cases seem to be rather unusual in common
345ASL code, however. David Box.
346
347Modified the linux version of acpidump to obtain ACPI tables from not
348just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
349Zheng.
350
351iASL: Fixed a problem where the user preprocessor output file (.i)
352contained extra data that was not expected. The compiler was using this
353file as a temporary file and passed through #line directives in order to
354keep compiler error messages in sync with the input file and line number
355across multiple include files. The (.i) is no longer a temporary file as
356the compiler uses a new, different file for the original purpose.
357
358iASL: Fixed a problem where comments within the original ASL source code
359file were not passed through to the preprocessor output file, nor any
360listing files.
361
362iASL: Fixed some issues for the handling of the "#include" preprocessor
363directive and the similar (but not the same) "Include" ASL operator.
364
365iASL: Add support for the new OSDT in both the disassembler and compiler.
366
367iASL: Fixed a problem with the constant folding support where a Buffer
368object could be incorrectly generated (incorrectly formed) during a
369conversion to a Store() operator.
370
371AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
372description text for the _REV predefined name. _REV now permanently
373returns 2, as per the ACPI 6.0 specification.
374
375Debugger: Enhanced the output of the Debug ASL object for references
376produced by the Index operator. For Buffers and strings, only output the
377actual byte pointed to by the index. For packages, only print the single
378package element decoded by the index. Previously, the entire
379buffer/string/package was emitted.
380
381iASL/Table-compiler: Fixed a regression where the "generic" data types
382were no longer recognized, causing errors.
383
384
385----------------------------------------
38615 May 2015. Summary of changes for version 20150515:
387
388This release implements most of ACPI 6.0 as described below.
389
3901) ACPICA kernel-resident subsystem:
391
392Implemented runtime argument checking and return value checking for all
393new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
394_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
395
396Example Code and Data Size: These are the sizes for the OS-independent
397acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
398debug version of the code includes the debug output trace mechanism and
399has a much larger code and data size.
400
401  Current Release:
402    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
403    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
404  Previous Release:
405    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
406    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
407
408
4092) iASL Compiler/Disassembler and Tools:
410
411iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
412names (argument count validation and return value typechecking.)
413
414iASL disassembler and table compiler: implemented support for all new
415ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
416
417iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
418tables: FADT, MADT.
419
420iASL preprocessor: Added a new directive to enable inclusion of binary
421blobs into ASL code. The new directive is #includebuffer. It takes a
422binary file as input and emits a named ascii buffer object into the ASL
423code.
424
425AcpiHelp: Added support for all new ACPI 6.0 predefined names.
426
427AcpiHelp: Added a new option, -d, to display all iASL preprocessor
428directives.
429
430AcpiHelp: Added a new option, -t, to display all known/supported ACPI
431tables.
432
433----------------------------------------
43410 April 2015. Summary of changes for version 20150410:
435
436Reverted a change introduced in version 20150408 that caused
437a regression in the disassembler where incorrect operator
438symbols could be emitted.
439
440----------------------------------------
44108 April 2015. Summary of changes for version 20150408:
442
443
4441) ACPICA kernel-resident subsystem:
445
446Permanently set the return value for the _REV predefined name. It now
447returns 2 (was 5). This matches other ACPI implementations. _REV will be
448deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
449for ACPI 2.0 and later. It should never be used to differentiate or
450identify operating systems.
451
452Added the "Windows 2015" string to the _OSI support. ACPICA will now
453return TRUE to a query with this string.
454
455Fixed several issues with the local version of the printf function.
456
457Added the C99 compiler option (-std=c99) to the Unix makefiles.
458
459  Current Release:
460    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
461    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
462  Previous Release:
463    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
464    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
465
466
4672) iASL Compiler/Disassembler and Tools:
468
469iASL: Implemented an enhancement to the constant folding feature to
470transform the parse tree to a simple Store operation whenever possible:
471    Add (2, 3, X) ==> is converted to: Store (5, X)
472    X = 2 + 3     ==> is converted to: Store (5, X)
473
474Updated support for the SLIC table (Software Licensing Description Table)
475in both the Data Table compiler and the disassembler. The SLIC table
476support now conforms to "Microsoft Software Licensing Tables (SLIC and
477MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
478following the ACPI header is now defined to be "Proprietary Data", and as
479such, can only be entered or displayed as a hex data block.
480
481Implemented full support for the MSDM table as described in the document
482above. Note: The format of MSDM is similar to SLIC. Any MSDM data
483following the ACPI header is defined to be "Proprietary Data", and can
484only be entered or displayed as a hex data block.
485
486Implemented the -Pn option for the iASL Table Compiler (was only
487implemented for the ASL compiler). This option disables the iASL
488preprocessor.
489
490Disassembler: For disassembly of Data Tables, added a comment field
491around the Ascii equivalent data that is emitted as part of the "Raw
492Table Data" block. This prevents the iASL Preprocessor from possible
493confusion if/when the table is compiled.
494
495Disassembler: Added an option (-df) to force the disassembler to assume
496that the table being disassembled contains valid AML. This feature is
497useful for disassembling AML files that contain ACPI signatures other
498than DSDT or SSDT (such as OEMx or other signatures).
499
500Changes for the EFI version of the tools:
5011) Fixed a build error/issue
5022) Fixed a cast warning
503
504iASL: Fixed a path issue with the __FILE__ operator by making the
505directory prefix optional within the internal SplitInputFilename
506function.
507
508Debugger: Removed some unused global variables.
509
510Tests: Updated the makefile for proper generation of the AAPITS suite.
511
512----------------------------------------
51304 February 2015. Summary of changes for version 20150204:
514
515ACPICA kernel-resident subsystem:
516
517Updated all ACPICA copyrights and signons to 2014. Added the 2014
518copyright to all module headers and signons, including the standard Linux
519header. This affects virtually every file in the ACPICA core subsystem,
520iASL compiler, all ACPICA utilities, and the test suites.
521
522Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
523A raw gpe handling mechanism was created to allow better handling of GPE
524storms that aren't easily managed by the normal handler. The raw handler
525allows disabling/renabling of the the GPE so that interrupt storms can be
526avoided in cases where events cannot be timely serviced. In this
527scenario, handlers should use the AcpiSetGpe() API to disable/enable the
528GPE. This API will leave the reference counts undisturbed, thereby
529preventing unintentional clearing of the GPE when the intent in only to
530temporarily disable it. Raw handlers allow enabling and disabling of a
531GPE by removing GPE register locking. As such, raw handlers much provide
532their own locks while using GPE API's to protect access to GPE data
533structures.
534Lv Zheng
535
536Events: Always modify GPE registers under the GPE lock.
537Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
538values. Reported as bug by joe.liu@apple.com.
539
540Unix makefiles: Separate option to disable optimizations and
541_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
542NOOPT disable option and creates a separate flag (NOFORTIFY) for this
543purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
544errors when building ACPICA. This allows disabling the option without
545also having to disable optimazations.
546David Box
547
548  Current Release:
549    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
550    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
551
552----------------------------------------
55307 November 2014. Summary of changes for version 20141107:
554
555This release is available at https://acpica.org/downloads
556
557This release introduces and implements language extensions to ASL that
558provide support for symbolic ("C-style") operators and expressions. These
559language extensions are known collectively as ASL+.
560
561
5621) iASL Compiler/Disassembler and Tools:
563
564Disassembler: Fixed a problem with disassembly of the UartSerialBus
565macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
566Box.
567
568Disassembler: Fixed the Unicode macro support to add escape sequences.
569All non-printable ASCII values are emitted as escape sequences, as well
570as the standard escapes for quote and backslash. Ensures that the
571disassembled macro can be correctly recompiled.
572
573iASL: Added Printf/Fprintf macros for formatted output. These macros are
574translated to existing AML Concatenate and Store operations. Printf
575writes to the ASL Debug object. Fprintf allows the specification of an
576ASL name as the target. Only a single format specifier is required, %o,
577since the AML interpreter dynamically converts objects to the required
578type. David E. Box.
579
580    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
581                 (Concatenate (Concatenate (Concatenate ("", Arg0),
582                 ": Unexpected value for "), Arg1), ", "), Arg2),
583                 " at line "), Arg3), Debug)
584
585    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
586                 Arg0, Arg1, Arg2, Arg3)
587
588    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
589                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
590
591    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
592
593iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
594ASL parse tree before the AML code is generated. This allows blocks of
595ASL code to be removed in order to help locate and identify problem
596devices and/or code. David E. Box.
597
598AcpiExec: Added support (-fi) for an optional namespace object
599initialization file. This file specifies initial values for namespace
600objects as necessary for debugging and testing different ASL code paths
601that may be taken as a result of BIOS options.
602
603
6042) Overview of symbolic operator support for ASL (ASL+)
605-------------------------------------------------------
606
607As an extension to the ASL language, iASL implements support for symbolic
608(C-style) operators for math and logical expressions. This can greatly
609simplify ASL code as well as improve both readability and
610maintainability. These language extensions can exist concurrently with
611all legacy ASL code and expressions.
612
613The symbolic extensions are 100% compatible with existing AML
614interpreters, since no new AML opcodes are created. To implement the
615extensions, the iASL compiler transforms the symbolic expressions into
616the legacy ASL/AML equivalents at compile time.
617
618Full symbolic expressions are supported, along with the standard C
619precedence and associativity rules.
620
621Full disassembler support for the symbolic expressions is provided, and
622creates an automatic migration path for existing ASL code to ASL+ code
623via the disassembly process. By default, the disassembler now emits ASL+
624code with symbolic expressions. An option (-dl) is provided to force the
625disassembler to emit legacy ASL code if desired.
626
627Below is the complete list of the currently supported symbolic operators
628with examples. See the iASL User Guide for additional information.
629
630
631ASL+ Syntax      Legacy ASL Equivalent
632-----------      ---------------------
633
634    // Math operators
635
636Z = X + Y        Add (X, Y, Z)
637Z = X - Y        Subtract (X, Y, Z)
638Z = X * Y        Multiply (X, Y, Z)
639Z = X / Y        Divide (X, Y, , Z)
640Z = X % Y        Mod (X, Y, Z)
641Z = X << Y       ShiftLeft (X, Y, Z)
642Z = X >> Y       ShiftRight (X, Y, Z)
643Z = X & Y        And (X, Y, Z)
644Z = X | Y        Or (X, Y, Z)
645Z = X ^ Y        Xor (X, Y, Z)
646Z = ~X           Not (X, Z)
647X++              Increment (X)
648X--              Decrement (X)
649
650    // Logical operators
651
652(X == Y)         LEqual (X, Y)
653(X != Y)         LNotEqual (X, Y)
654(X < Y)          LLess (X, Y)
655(X > Y)          LGreater (X, Y)
656(X <= Y)         LLessEqual (X, Y)
657(X >= Y)         LGreaterEqual (X, Y)
658(X && Y)         LAnd (X, Y)
659(X || Y)         LOr (X, Y)
660(!X)             LNot (X)
661
662    // Assignment and compound assignment operations
663
664X = Y           Store (Y, X)
665X += Y          Add (X, Y, X)
666X -= Y          Subtract (X, Y, X)
667X *= Y          Multiply (X, Y, X)
668X /= Y          Divide (X, Y, , X)
669X %= Y          Mod (X, Y, X)
670X <<= Y         ShiftLeft (X, Y, X)
671X >>= Y         ShiftRight (X, Y, X)
672X &= Y          And (X, Y, X)
673X |= Y          Or (X, Y, X)
674X ^= Y          Xor (X, Y, X)
675
676
6773) ASL+ Examples:
678-----------------
679
680Legacy ASL:
681        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
682            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
6830x03FB),
684            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
685        {
686            And (MEMB, 0xFFFFFFF0, SRMB)
687            Store (MEMB, Local2)
688            Store (PDBM, Local1)
689            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
690            Store (SRMB, MEMB)
691            Or (PDBM, 0x02, PDBM)
692        }
693
694ASL+ version:
695        If (((R510 & 0x03FB) == 0x02E0) ||
696            ((R520 & 0x03FB) == 0x02E0) ||
697            ((R530 & 0x03FB) == 0x02E0) ||
698            ((R540 & 0x03FB) == 0x02E0))
699        {
700            SRMB = (MEMB & 0xFFFFFFF0)
701            Local2 = MEMB
702            Local1 = PDBM
703            PDBM &= 0xFFFFFFFFFFFFFFF9
704            MEMB = SRMB
705            PDBM |= 0x02
706        }
707
708Legacy ASL:
709        Store (0x1234, Local1)
710        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
711        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
712        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
713        Store (Index (PKG1, 0x03), Local6)
714        Store (Add (Local3, Local2), Debug)
715        Add (Local1, 0x0F, Local2)
716        Add (Local1, Multiply (Local2, Local3), Local2)
717        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
718
719ASL+ version:
720        Local1 = 0x1234
721        Local3 = (((Local1 + TEST) + 0x20) * Local2)
722        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
723        Local3 = (Local1 + (TEST + (0x20 * Local2)))
724        Local6 = Index (PKG1, 0x03)
725        Debug = (Local3 + Local2)
726        Local2 = (Local1 + 0x0F)
727        Local2 = (Local1 + (Local2 * Local3))
728        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
729
730
731----------------------------------------
73226 September 2014. Summary of changes for version 20140926:
733
7341) ACPICA kernel-resident subsystem:
735
736Updated the GPIO operation region handler interface (GeneralPurposeIo).
737In order to support GPIO Connection objects with multiple pins, along
738with the related Field objects, the following changes to the interface
739have been made: The Address is now defined to be the offset in bits of
740the field unit from the previous invocation of a Connection. It can be
741viewed as a "Pin Number Index" into the connection resource descriptor.
742The BitWidth is the exact bit width of the field. It is usually one bit,
743but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
744additional information and examples.
745
746GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
747corresponding _Lxx/_Exx methods are disabled (they may have been enabled
748by the firmware), so that they cannot fire until they are enabled via
749AcpiUpdateAllGpes. Rafael J. Wysocki.
750
751Added a new return flag for the Event/GPE status interfaces --
752AcpiGetEventStatus and AcpiGetGpeStatus. The new
753ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
754GPE currently has a handler associated with it, and can thus actually
755affect the system. Lv Zheng.
756
757Example Code and Data Size: These are the sizes for the OS-independent
758acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
759debug version of the code includes the debug output trace mechanism and
760has a much larger code and data size.
761
762  Current Release:
763    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
764    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
765  Previous Release:
766    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
767    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
768
7692) iASL Compiler/Disassembler and Tools:
770
771iASL: Fixed a memory allocation/free regression introduced in 20140828
772that could cause the compiler to crash. This was introduced inadvertently
773during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
7741113.
775
776iASL: Removed two error messages that have been found to create false
777positives, until they can be fixed and fully validated (ACPICA BZ 1112):
7781) Illegal forward reference within a method
7792) Illegal reference across two methods
780
781iASL: Implemented a new option (-lm) to create a hardware mapping file
782that summarizes all GPIO, I2C, SPI, and UART connections. This option
783works for both the compiler and disassembler. See the iASL compiler user
784guide for additional information and examples (section 6.4.6).
785
786AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
787version 2. This corrects the AE_BAD_HEADER exception seen on systems with
788a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
789
790AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
791unless STDIN is actually a terminal. Assists with batch-mode processing.
792ACPICA BZ 1114.
793
794Disassembler/AcpiHelp: Added another large group of recognized _HID
795values.
796
797
798----------------------------------------
79928 August 2014. Summary of changes for version 20140828:
800
8011) ACPICA kernel-resident subsystem:
802
803Fixed a problem related to the internal use of the Timer() operator where
804a 64-bit divide could cause an attempted link to a double-precision math
805library. This divide is not actually necessary, so the code was
806restructured to eliminate it. Lv Zheng.
807
808ACPI 5.1: Added support for the runtime validation of the _DSD package
809(similar to the iASL support).
810
811ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
812SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
813
814Example Code and Data Size: These are the sizes for the OS-independent
815acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
816debug version of the code includes the debug output trace mechanism and
817has a much larger code and data size.
818
819  Current Release:
820    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
821    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
822  Previous Release:
823    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
824    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
825
8262) iASL Compiler/Disassembler and Tools:
827
828AcpiExec: Fixed a problem on unix systems where the original terminal
829state was not always properly restored upon exit. Seen when using the -v
830option. ACPICA BZ 1104.
831
832iASL: Fixed a problem with the validation of the ranges/length within the
833Memory24 resource descriptor. There was a boundary condition when the
834range was equal to the (length -1) caused by the fact that these values
835are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
836
837Disassembler: Fixed a problem with the GpioInt descriptor interrupt
838polarity
839flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
840is
841now supported properly.
842
843ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
844in the disassembler, data table compiler, and table template generator.
845
846iASL: Added a requirement for Device() objects that one of either a _HID
847or _ADR must exist within the scope of a Device, as per the ACPI
848specification. Remove a similar requirement that was incorrectly in place
849for the _DSD object.
850
851iASL: Added error detection for illegal named references within control
852methods that would cause runtime failures. Now trapped as errors are: 1)
853References to objects within a non-parent control method. 2) Forward
854references (within a method) -- for control methods, AML interpreters use
855a one-pass parse of control methods. ACPICA BZ 1008.
856
857iASL: Added error checking for dependencies related to the _PSx power
858methods. ACPICA BZ 1029.
8591) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
860_PS3.
8612) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
862scope.
863
864iASL and table compiler: Cleanup miscellaneous memory leaks by fully
865deploying the existing object and string caches and adding new caches for
866the table compiler.
867
868iASL: Split the huge parser source file into multiple subfiles to improve
869manageability. Generation now requires the M4 macro preprocessor, which
870is part of the Bison distribution on both unix and windows platforms.
871
872AcpiSrc: Fixed and removed all extraneous warnings generated during
873entire ACPICA source code scan and/or conversion.
874
875
876----------------------------------------
877
87824 July 2014. Summary of changes for version 20140724:
879
880The ACPI 5.1 specification has been released and is available at:
881http://uefi.org/specs/access
882
883
8840) ACPI 5.1 support in ACPICA:
885
886ACPI 5.1 is fully supported in ACPICA as of this release.
887
888New predefined names. Support includes iASL and runtime ACPICA
889validation.
890    _CCA (Cache Coherency Attribute).
891    _DSD (Device-Specific Data). David Box.
892
893Modifications to existing ACPI tables. Support includes headers, iASL
894Data Table compiler, disassembler, and the template generator.
895    FADT - New fields and flags. Graeme Gregory.
896    GTDT - One new subtable and new fields. Tomasz Nowicki.
897    MADT - Two new subtables. Tomasz Nowicki.
898    PCCT - One new subtable.
899
900Miscellaneous.
901    New notification type for System Resource Affinity change events.
902
903
9041) ACPICA kernel-resident subsystem:
905
906Fixed a regression introduced in 20140627 where a fault can happen during
907the deletion of Alias AML namespace objects. The problem affected both
908the core ACPICA and the ACPICA tools including iASL and AcpiExec.
909
910Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
911simple mechanism to enable wake GPEs that have no associated handler or
912control method. Rafael Wysocki.
913
914Updated the AcpiEnableGpe interface to disallow the enable if there is no
915handler or control method associated with the particular GPE. This will
916help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
917
918Updated GPE handling and dispatch by disabling the GPE before clearing
919the status bit for edge-triggered GPEs. Lv Zheng.
920
921Added Timer() support to the AML Debug object. The current timer value is
922now displayed with each invocation of (Store to) the debug object to
923enable simple generation of execution times for AML code (method
924execution for example.) ACPICA BZ 1093.
925
926Example Code and Data Size: These are the sizes for the OS-independent
927acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
928debug version of the code includes the debug output trace mechanism and
929has a much larger code and data size.
930
931  Current Release:
932    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
933    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
934  Previous Release:
935    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
936    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
937
938
9392) iASL Compiler/Disassembler and Tools:
940
941Fixed an issue with the recently added local printf implementation,
942concerning width/precision specifiers that could cause incorrect output.
943Lv Zheng. ACPICA BZ 1094.
944
945Disassembler: Added support to detect buffers that contain UUIDs and
946disassemble them to an invocation of the ToUUID operator. Also emit
947commented descriptions of known ACPI-related UUIDs.
948
949AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
950-u. Adds three new files.
951
952iASL: Update table compiler and disassembler for DMAR table changes that
953were introduced in September 2013. With assistance by David Woodhouse.
954
955----------------------------------------
95627 June 2014. Summary of changes for version 20140627:
957
9581) ACPICA kernel-resident subsystem:
959
960Formatted Output: Implemented local versions of standard formatted output
961utilities such as printf, etc. Over time, it has been discovered that
962there are in fact many portability issues with printf, and the addition
963of this feature will fix/prevent these issues once and for all. Some
964known issues are summarized below:
965
9661) Output of 64-bit values is not portable. For example, UINT64 is %ull
967for the Linux kernel and is %uI64 for some MSVC versions.
9682) Invoking printf consistently in a manner that is portable across both
96932-bit and 64-bit platforms is difficult at best in many situations.
9703) The output format for pointers varies from system to system (leading
971zeros especially), and leads to inconsistent output from ACPICA across
972platforms.
9734) Certain platform-specific printf formats may conflict with ACPICA use.
9745) If there is no local C library available, ACPICA now has local support
975for printf.
976
977-- To address these printf issues in a complete manner, ACPICA now
978directly implements a small subset of printf format specifiers, only
979those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
980
981Implemented support for ACPICA generation within the EFI environment.
982Initially, the AcpiDump utility is supported in the UEFI shell
983environment. Lv Zheng.
984
985Added a new external interface, AcpiLogError, to improve ACPICA
986portability. This allows the host to redirect error messages from the
987ACPICA utilities. Lv Zheng.
988
989Added and deployed new OSL file I/O interfaces to improve ACPICA
990portability:
991  AcpiOsOpenFile
992  AcpiOsCloseFile
993  AcpiOsReadFile
994  AcpiOsWriteFile
995  AcpiOsGetFileOffset
996  AcpiOsSetFileOffset
997There are C library implementations of these functions in the new file
998service_layers/oslibcfs.c -- however, the functions can be implemented by
999the local host in any way necessary. Lv Zheng.
1000
1001Implemented a mechanism to disable/enable ACPI table checksum validation
1002at runtime. This can be useful when loading tables very early during OS
1003initialization when it may not be possible to map the entire table in
1004order to compute the checksum. Lv Zheng.
1005
1006Fixed a buffer allocation issue for the Generic Serial Bus support.
1007Originally, a fixed buffer length was used. This change allows for
1008variable-length buffers based upon the protocol indicated by the field
1009access attributes. Reported by Lan Tianyu. Lv Zheng.
1010
1011Fixed a problem where an object detached from a namespace node was not
1012properly terminated/cleared and could cause a circular list problem if
1013reattached. ACPICA BZ 1063. David Box.
1014
1015Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
1016
1017Fixed a possible memory leak in an error return path within the function
1018AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
1019
1020Example Code and Data Size: These are the sizes for the OS-independent
1021acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1022debug version of the code includes the debug output trace mechanism and
1023has a much larger code and data size.
1024
1025  Current Release:
1026    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
1027    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
1028  Previous Release:
1029    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
1030    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
1031
1032
10332) iASL Compiler/Disassembler and Tools:
1034
1035Disassembler: Add dump of ASCII equivalent text within a comment at the
1036end of each line of the output for the Buffer() ASL operator.
1037
1038AcpiDump: Miscellaneous changes:
1039  Fixed repetitive table dump in -n mode.
1040  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
1041the ACPI 2.0 GUID fails.
1042
1043iASL: Fixed a problem where the compiler could fault if incorrectly given
1044an acpidump output file as input. ACPICA BZ 1088. David Box.
1045
1046AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
1047they are invoked without any arguments.
1048
1049Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
10501086. Colin Ian King.
1051
1052Disassembler: Cleaned up a block of code that extracts a parent Op
1053object. Added a comment that explains that the parent is guaranteed to be
1054valid in this case. ACPICA BZ 1069.
1055
1056----------------------------------------
105724 April 2014. Summary of changes for version 20140424:
1058
10591) ACPICA kernel-resident subsystem:
1060
1061Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
1062Some of these tables are known to contain a trailing NULL entry. Lv
1063Zheng.
1064
1065Removed an extraneous error message for the case where there are a large
1066number of system GPEs (> 124). This was the "32-bit FADT register is too
1067long to convert to GAS struct" message, which is irrelevant for GPEs
1068since the GPEx_BLK_LEN fields of the FADT are always used instead of the
1069(limited capacity) GAS bit length. Also, several changes to ensure proper
1070support for GPE numbers > 255, where some "GPE number" fields were 8-bits
1071internally.
1072
1073Implemented and deployed additional configuration support for the public
1074ACPICA external interfaces. Entire classes of interfaces can now be
1075easily modified or configured out, replaced by stubbed inline functions
1076by default. Lv Zheng.
1077
1078Moved all public ACPICA runtime configuration globals to the public
1079ACPICA external interface file for convenience. Also, removed some
1080obsolete/unused globals. See the file acpixf.h. Lv Zheng.
1081
1082Documentation: Added a new section to the ACPICA reference describing the
1083maximum number of GPEs that can be supported by the FADT-defined GPEs in
1084block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
1085reference.
1086
1087Example Code and Data Size: These are the sizes for the OS-independent
1088acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1089debug version of the code includes the debug output trace mechanism and
1090has a much larger code and data size.
1091
1092  Current Release:
1093    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
1094    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
1095  Previous Release:
1096    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
1097    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
1098
1099
11002) iASL Compiler/Disassembler and Tools:
1101
1102iASL and disassembler: Add full support for the LPIT table (Low Power
1103Idle Table). Includes support in the disassembler, data table compiler,
1104and template generator.
1105
1106AcpiDump utility:
11071) Add option to force the use of the RSDT (over the XSDT).
11082) Improve validation of the RSDP signature (use 8 chars instead of 4).
1109
1110iASL: Add check for predefined packages that are too large.  For
1111predefined names that contain subpackages, check if each subpackage is
1112too large. (Check for too small already exists.)
1113
1114Debugger: Updated the GPE command (which simulates a GPE by executing the
1115GPE code paths in ACPICA). The GPE device is now optional, and defaults
1116to the GPE 0/1 FADT-defined blocks.
1117
1118Unix application OSL: Update line-editing support. Add additional error
1119checking and take care not to reset terminal attributes on exit if they
1120were never set. This should help guarantee that the terminal is always
1121left in the previous state on program exit.
1122
1123----------------------------------------
112425 March 2014. Summary of changes for version 20140325:
1125
11261) ACPICA kernel-resident subsystem:
1127
1128Updated the auto-serialize feature for control methods. This feature
1129automatically serializes all methods that create named objects in order
1130to prevent runtime errors. The update adds support to ignore the
1131currently executing AML SyncLevel when invoking such a method, in order
1132to prevent disruption of any existing SyncLevel priorities that may exist
1133in the AML code. Although the use of SyncLevels is relatively rare, this
1134change fixes a regression where an AE_AML_MUTEX_ORDER exception can
1135appear on some machines starting with the 20140214 release.
1136
1137Added a new external interface to allow the host to install ACPI tables
1138very early, before the namespace is even created. AcpiInstallTable gives
1139the host additional flexibility for ACPI table management. Tables can be
1140installed directly by the host as if they had originally appeared in the
1141XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
1142(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
1143with additional internal restructuring and cleanup. See the ACPICA
1144Reference for interface details. Lv Zheng.
1145
1146Added validation of the checksum for all incoming dynamically loaded
1147tables (via external interfaces or via AML Load/LoadTable operators). Lv
1148Zheng.
1149
1150Updated the use of the AcpiOsWaitEventsComplete interface during Notify
1151and GPE handler removal. Restructured calls to eliminate possible race
1152conditions. Lv Zheng.
1153
1154Added a warning for the use/execution of the ASL/AML Unload (table)
1155operator. This will help detect and identify machines that use this
1156operator if and when it is ever used. This operator has never been seen
1157in the field and the usage model and possible side-effects of the drastic
1158runtime action of a full table removal are unknown.
1159
1160Reverted the use of #pragma push/pop which was introduced in the 20140214
1161release. It appears that push and pop are not implemented by enough
1162compilers to make the use of this feature feasible for ACPICA at this
1163time. However, these operators may be deployed in a future ACPICA
1164release.
1165
1166Added the missing EXPORT_SYMBOL macros for the install and remove SCI
1167handler interfaces.
1168
1169Source code generation:
11701) Disabled the use of the "strchr" macro for the gcc-specific
1171generation. For some versions of gcc, this macro can periodically expose
1172a compiler bug which in turn causes compile-time error(s).
11732) Added support for PPC64 compilation. Colin Ian King.
1174
1175Example Code and Data Size: These are the sizes for the OS-independent
1176acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1177debug version of the code includes the debug output trace mechanism and
1178has a much larger code and data size.
1179
1180  Current Release:
1181    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
1182    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
1183  Previous Release:
1184    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
1185    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
1186
1187
11882) iASL Compiler/Disassembler and Tools:
1189
1190Disassembler: Added several new features to improve the readability of
1191the resulting ASL code. Extra information is emitted within comment
1192fields in the ASL code:
11931) Known _HID/_CID values are decoded to descriptive text.
11942) Standard values for the Notify() operator are decoded to descriptive
1195text.
11963) Target operands are expanded to full pathnames (in a comment) when
1197possible.
1198
1199Disassembler: Miscellaneous updates for extern() handling:
12001) Abort compiler if file specified by -fe option does not exist.
12012) Silence unnecessary warnings about argument count mismatches.
12023) Update warning messages concerning unresolved method externals.
12034) Emit "UnknownObj" keyword for externals whose type cannot be
1204determined.
1205
1206AcpiHelp utility:
12071) Added the -a option to display both the ASL syntax and the AML
1208encoding for an input ASL operator. This effectively displays all known
1209information about an ASL operator with one AcpiHelp invocation.
12102) Added substring match support (similar to a wildcard) for the -i
1211(_HID/PNP IDs) option.
1212
1213iASL/Disassembler: Since this tool does not yet support execution on big-
1214endian machines, added detection of endianness and an error message if
1215execution is attempted on big-endian. Support for big-endian within iASL
1216is a feature that is on the ACPICA to-be-done list.
1217
1218AcpiBin utility:
12191) Remove option to extract binary files from an acpidump; this function
1220is made obsolete by the AcpiXtract utility.
12212) General cleanup of open files and allocated buffers.
1222
1223----------------------------------------
122414 February 2014. Summary of changes for version 20140214:
1225
12261) ACPICA kernel-resident subsystem:
1227
1228Implemented a new mechanism to proactively prevent problems with ill-
1229behaved reentrant control methods that create named ACPI objects. This
1230behavior is illegal as per the ACPI specification, but is nonetheless
1231frequently seen in the field. Previously, this could lead to an
1232AE_ALREADY_EXISTS exception if the method was actually entered by more
1233than one thread. This new mechanism detects such methods at table load
1234time and marks them "serialized" to prevent reentrancy. A new global
1235option, AcpiGbl_AutoSerializeMethods, has been added to disable this
1236feature if desired. This mechanism and global option obsoletes and
1237supersedes the previous AcpiGbl_SerializeAllMethods option.
1238
1239Added the "Windows 2013" string to the _OSI support. ACPICA will now
1240respond TRUE to _OSI queries with this string. It is the stated policy of
1241ACPICA to add new strings to the _OSI support as soon as possible after
1242they are defined. See the full ACPICA _OSI policy which has been added to
1243the utilities/utosi.c file.
1244
1245Hardened/updated the _PRT return value auto-repair code:
12461) Do not abort the repair on a single subpackage failure, continue to
1247check all subpackages.
12482) Add check for the minimum subpackage length (4).
12493) Properly handle extraneous NULL package elements.
1250
1251Added support to avoid the possibility of infinite loops when traversing
1252object linked lists. Never allow an infinite loop, even in the face of
1253corrupted object lists.
1254
1255ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
1256pack(pop) directives to ensure that the ACPICA headers are independent of
1257compiler settings or other host headers.
1258
1259Example Code and Data Size: These are the sizes for the OS-independent
1260acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1261debug version of the code includes the debug output trace mechanism and
1262has a much larger code and data size.
1263
1264  Current Release:
1265    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
1266    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
1267  Previous Release:
1268    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
1269    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
1270
1271
12722) iASL Compiler/Disassembler and Tools:
1273
1274iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
1275first reserved field was incorrectly forced to have a value of zero. This
1276change correctly forces the field to have a value of one. ACPICA BZ 1081.
1277
1278Debugger: Added missing support for the "Extra" and "Data" subobjects
1279when displaying object data.
1280
1281Debugger: Added support to display entire object linked lists when
1282displaying object data.
1283
1284iASL: Removed the obsolete -g option to obtain ACPI tables from the
1285Windows registry. This feature has been superseded by the acpidump
1286utility.
1287
1288----------------------------------------
128914 January 2014. Summary of changes for version 20140114:
1290
12911) ACPICA kernel-resident subsystem:
1292
1293Updated all ACPICA copyrights and signons to 2014. Added the 2014
1294copyright to all module headers and signons, including the standard Linux
1295header. This affects virtually every file in the ACPICA core subsystem,
1296iASL compiler, all ACPICA utilities, and the test suites.
1297
1298Improved parameter validation for AcpiInstallGpeBlock. Added the
1299following checks:
13001) The incoming device handle refers to type ACPI_TYPE_DEVICE.
13012) There is not already a GPE block attached to the device.
1302Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
1303device.
1304
1305Correctly support "references" in the ACPI_OBJECT. This change fixes the
1306support to allow references (namespace nodes) to be passed as arguments
1307to control methods via the evaluate object interface. This is probably
1308most useful for testing purposes, however.
1309
1310Improved support for 32/64 bit physical addresses in printf()-like
1311output. This change improves the support for physical addresses in printf
1312debug statements and other output on both 32-bit and 64-bit hosts. It
1313consistently outputs the appropriate number of bytes for each host. The
1314%p specifier is unsatisfactory since it does not emit uniform output on
1315all hosts/clib implementations (on some, leading zeros are not supported,
1316leading to difficult-to-read output).
1317
1318Example Code and Data Size: These are the sizes for the OS-independent
1319acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1320debug version of the code includes the debug output trace mechanism and
1321has a much larger code and data size.
1322
1323  Current Release:
1324    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
1325    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
1326  Previous Release:
1327    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
1328    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
1329
1330
13312) iASL Compiler/Disassembler and Tools:
1332
1333iASL: Fix a possible fault when using the Connection() operator. Fixes a
1334problem if the parent Field definition for the Connection operator refers
1335to an operation region that does not exist. ACPICA BZ 1064.
1336
1337AcpiExec: Load of local test tables is now optional. The utility has the
1338capability to load some various tables to test features of ACPICA.
1339However, there are enough of them that the output of the utility became
1340confusing. With this change, only the required local tables are displayed
1341(RSDP, XSDT, etc.) along with the actual tables loaded via the command
1342line specification. This makes the default output simler and easier to
1343understand. The -el command line option restores the original behavior
1344for testing purposes.
1345
1346AcpiExec: Added support for overlapping operation regions. This change
1347expands the simulation of operation regions by supporting regions that
1348overlap within the given address space. Supports SystemMemory and
1349SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
1350
1351AcpiExec: Added region handler support for PCI_Config and EC spaces. This
1352allows AcpiExec to simulate these address spaces, similar to the current
1353support for SystemMemory and SystemIO.
1354
1355Debugger: Added new command to read/write/compare all namespace objects.
1356The command "test objects" will exercise the entire namespace by writing
1357new values to each data object, and ensuring that the write was
1358successful. The original value is then restored and verified.
1359
1360Debugger: Added the "test predefined" command. This change makes this
1361test public and puts it under the new "test" command. The test executes
1362each and every predefined name within the current namespace.
1363
1364----------------------------------------
136518 December 2013. Summary of changes for version 20131218:
1366
1367Global note: The ACPI 5.0A specification was released this month. There
1368are no changes needed for ACPICA since this release of ACPI is an
1369errata/clarification release. The specification is available at
1370acpi.info.
1371
1372
13731) ACPICA kernel-resident subsystem:
1374
1375Added validation of the XSDT root table if it is present. Some older
1376platforms contain an XSDT that is ill-formed or otherwise invalid (such
1377as containing some or all entries that are NULL pointers). This change
1378adds a new function to validate the XSDT before actually using it. If the
1379XSDT is found to be invalid, ACPICA will now automatically fall back to
1380using the RSDT instead. Original implementation by Zhao Yakui. Ported to
1381ACPICA and enhanced by Lv Zheng and Bob Moore.
1382
1383Added a runtime option to ignore the XSDT and force the use of the RSDT.
1384This change adds a runtime option that will force ACPICA to use the RSDT
1385instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
1386requires that an XSDT be used instead of the RSDT, the XSDT has been
1387found to be corrupt or ill-formed on some machines. Lv Zheng.
1388
1389Added a runtime option to favor 32-bit FADT register addresses over the
139064-bit addresses. This change adds an option to favor 32-bit FADT
1391addresses when there is a conflict between the 32-bit and 64-bit versions
1392of the same register. The default behavior is to use the 64-bit version
1393in accordance with the ACPI specification. This can now be overridden via
1394the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
1395
1396During the change above, the internal "Convert FADT" and "Verify FADT"
1397functions have been merged to simplify the code, making it easier to
1398understand and maintain. ACPICA BZ 933.
1399
1400Improve exception reporting and handling for GPE block installation.
1401Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
1402status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
1403
1404Added helper macros to extract bus/segment numbers from the HEST table.
1405This change adds two macros to extract the encoded bus and segment
1406numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
1407Betty Dall <betty.dall@hp.com>
1408
1409Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
1410by ACPICA. It is not a public macro, so it should have no effect on
1411existing OSV code. Lv Zheng.
1412
1413Example Code and Data Size: These are the sizes for the OS-independent
1414acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1415debug version of the code includes the debug output trace mechanism and
1416has a much larger code and data size.
1417
1418  Current Release:
1419    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
1420    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
1421  Previous Release:
1422    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
1423    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
1424
1425
14262) iASL Compiler/Disassembler and Tools:
1427
1428Disassembler: Improved pathname support for emitted External()
1429statements. This change adds full pathname support for external names
1430that have been resolved internally by the inclusion of additional ACPI
1431tables (via the iASL -e option). Without this change, the disassembler
1432can emit multiple externals for the same object, or it become confused
1433when the Scope() operator is used on an external object. Overall, greatly
1434improves the ability to actually recompile the emitted ASL code when
1435objects a referenced across multiple ACPI tables. Reported by Michael
1436Tsirkin (mst@redhat.com).
1437
1438Tests/ASLTS: Updated functional control suite to execute with no errors.
1439David Box. Fixed several errors related to the testing of the interpreter
1440slack mode. Lv Zheng.
1441
1442iASL: Added support to detect names that are declared within a control
1443method, but are unused (these are temporary names that are only valid
1444during the time the method is executing). A remark is issued for these
1445cases. ACPICA BZ 1022.
1446
1447iASL: Added full support for the DBG2 table. Adds full disassembler,
1448table compiler, and template generator support for the DBG2 table (Debug
1449Port 2 table).
1450
1451iASL: Added full support for the PCCT table, update the table definition.
1452Updates the PCCT table definition in the actbl3.h header and adds table
1453compiler and template generator support.
1454
1455iASL: Added an option to emit only error messages (no warnings/remarks).
1456The -ve option will enable only error messages, warnings and remarks are
1457suppressed. This can simplify debugging when only the errors are
1458important, such as when an ACPI table is disassembled and there are many
1459warnings and remarks -- but only the actual errors are of real interest.
1460
1461Example ACPICA code (source/tools/examples): Updated the example code so
1462that it builds to an actual working program, not just example code. Added
1463ACPI tables and execution of an example control method in the DSDT. Added
1464makefile support for Unix generation.
1465
1466----------------------------------------
146715 November 2013. Summary of changes for version 20131115:
1468
1469This release is available at https://acpica.org/downloads
1470
1471
14721) ACPICA kernel-resident subsystem:
1473
1474Resource Manager: Fixed loop termination for the "get AML length"
1475function. The loop previously had an error termination on a NULL resource
1476pointer, which can never happen since the loop simply increments a valid
1477resource pointer. This fix changes the loop to terminate with an error on
1478an invalid end-of-buffer condition. The problem can be seen as an
1479infinite loop by callers to AcpiSetCurrentResources with an invalid or
1480corrupted resource descriptor, or a resource descriptor that is missing
1481an END_TAG descriptor. Reported by Dan Carpenter
1482<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
1483
1484Table unload and ACPICA termination: Delete all attached data objects
1485during namespace node deletion. This fix updates namespace node deletion
1486to delete the entire list of attached objects (attached via
1487AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
14881024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
1489
1490ACPICA termination: Added support to delete all objects attached to the
1491root namespace node. This fix deletes any and all objects that have been
1492attached to the root node via AcpiAttachData. Previously, none of these
1493objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
1494
1495Debug output: Do not emit the function nesting level for the in-kernel
1496build. The nesting level is really only useful during a single-thread
1497execution. Therefore, only enable this output for the AcpiExec utility.
1498Also, only emit the thread ID when executing under AcpiExec (Context
1499switches are still always detected and a message is emitted). ACPICA BZ
1500972.
1501
1502Example Code and Data Size: These are the sizes for the OS-independent
1503acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1504debug version of the code includes the debug output trace mechanism and
1505has a much larger code and data size.
1506
1507  Current Release:
1508    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
1509    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
1510  Previous Release:
1511    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
1512    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
1513
1514
15152) iASL Compiler/Disassembler and Tools:
1516
1517AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
1518correct portable POSIX header for terminal control functions.
1519
1520Disassembler: Fixed control method invocation issues related to the use
1521of the CondRefOf() operator. The problem is seen in the disassembly where
1522control method invocations may not be disassembled properly if the
1523control method name has been used previously as an argument to CondRefOf.
1524The solution is to not attempt to emit an external declaration for the
1525CondRefOf target (it is not necessary in the first place). This prevents
1526disassembler object type confusion. ACPICA BZ 988.
1527
1528Unix Makefiles: Added an option to disable compiler optimizations and the
1529_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
1530with optimizations (reportedly, gcc 4.4 for example). This change adds a
1531command line option for make (NOOPT) that disables all compiler
1532optimizations and the _FORTIFY_SOURCE compiler flag. The default
1533optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
15341034. Lv Zheng, Bob Moore.
1535
1536Tests/ASLTS: Added options to specify individual test cases and modes.
1537This allows testers running aslts.sh to optionally specify individual
1538test modes and test cases. Also added an option to disable the forced
1539generation of the ACPICA tools from source if desired. Lv Zheng.
1540
1541----------------------------------------
154227 September 2013. Summary of changes for version 20130927:
1543
1544This release is available at https://acpica.org/downloads
1545
1546
15471) ACPICA kernel-resident subsystem:
1548
1549Fixed a problem with store operations to reference objects. This change
1550fixes a problem where a Store operation to an ArgX object that contained
1551a
1552reference to a field object did not complete the automatic dereference
1553and
1554then write to the actual field object. Instead, the object type of the
1555field object was inadvertently changed to match the type of the source
1556operand. The new behavior will actually write to the field object (buffer
1557field or field unit), thus matching the correct ACPI-defined behavior.
1558
1559Implemented support to allow the host to redefine individual OSL
1560prototypes. This change enables the host to redefine OSL prototypes found
1561in the acpiosxf.h file. This allows the host to implement OSL interfaces
1562with a macro or inlined function. Further, it allows the host to add any
1563additional required modifiers such as __iomem, __init, __exit, etc., as
1564necessary on a per-interface basis. Enables maximum flexibility for the
1565OSL interfaces. Lv Zheng.
1566
1567Hardcoded the access width for the FADT-defined reset register. The ACPI
1568specification requires the reset register width to be 8 bits. ACPICA now
1569hardcodes the width to 8 and ignores the FADT width value. This provides
1570compatibility with other ACPI implementations that have allowed BIOS code
1571with bad register width values to go unnoticed. Matthew Garett, Bob
1572Moore,
1573Lv Zheng.
1574
1575Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
1576used
1577in the OSL header (acpiosxf). The change modifies the position of this
1578macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
1579build issues if the OSL defines the implementation of the interface to be
1580an inline stub function. Lv Zheng.
1581
1582Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
1583initialization interfaces. This change adds a new macro for the main init
1584and terminate external interfaces in order to support hosts that require
1585additional or different processing for these functions. Changed from
1586ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
1587Zheng, Bob Moore.
1588
1589Cleaned up the memory allocation macros for configurability. In the
1590common
1591case, the ACPI_ALLOCATE and related macros now resolve directly to their
1592respective AcpiOs* OSL interfaces. Two options:
15931) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
1594default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
15952) For AcpiExec (and for debugging), the macros can optionally be
1596resolved
1597to the local ACPICA interfaces that track each allocation (local tracking
1598is used to immediately detect memory leaks).
1599Lv Zheng.
1600
1601Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
1602to predefine this macro to either TRUE or FALSE during the system build.
1603
1604Replaced __FUNCTION_ with __func__ in the gcc-specific header.
1605
1606Example Code and Data Size: These are the sizes for the OS-independent
1607acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1608debug version of the code includes the debug output trace mechanism and
1609has a much larger code and data size.
1610
1611  Current Release:
1612    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
1613    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
1614  Previous Release:
1615    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
1616    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
1617
1618
16192) iASL Compiler/Disassembler and Tools:
1620
1621iASL: Implemented wildcard support for the -e option. This simplifies use
1622when there are many SSDTs that must be included to resolve external
1623method
1624declarations. ACPICA BZ 1041. Example:
1625    iasl -e ssdt*.dat -d dsdt.dat
1626
1627AcpiExec: Add history/line-editing for Unix/Linux systems. This change
1628adds a portable module that implements full history and limited line
1629editing for Unix and Linux systems. It does not use readline() due to
1630portability issues. Instead it uses the POSIX termio interface to put the
1631terminal in raw input mode so that the various special keys can be
1632trapped
1633(such as up/down-arrow for history support and left/right-arrow for line
1634editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
1635
1636AcpiXtract: Add support to handle (ignore) "empty" lines containing only
1637one or more spaces. This provides compatible with early or different
1638versions of the AcpiDump utility. ACPICA BZ 1044.
1639
1640AcpiDump: Do not ignore tables that contain only an ACPI table header.
1641Apparently, some BIOSs create SSDTs that contain an ACPI table header but
1642no other data. This change adds support to dump these tables. Any tables
1643shorter than the length of an ACPI table header remain in error (an error
1644message is emitted). Reported by Yi Li.
1645
1646Debugger: Echo actual command along with the "unknown command" message.
1647
1648----------------------------------------
164923 August 2013. Summary of changes for version 20130823:
1650
16511) ACPICA kernel-resident subsystem:
1652
1653Implemented support for host-installed System Control Interrupt (SCI)
1654handlers. Certain ACPI functionality requires the host to handle raw
1655SCIs. For example, the "SCI Doorbell" that is defined for memory power
1656state support requires the host device driver to handle SCIs to examine
1657if the doorbell has been activated. Multiple SCI handlers can be
1658installed to allow for future expansion. New external interfaces are
1659AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
1660details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
1661
1662Operation region support: Never locally free the handler "context"
1663pointer. This change removes some dangerous code that attempts to free
1664the handler context pointer in some (rare) circumstances. The owner of
1665the handler owns this pointer and the ACPICA code should never touch it.
1666Although not seen to be an issue in any kernel, it did show up as a
1667problem (fault) under AcpiExec. Also, set the internal storage field for
1668the context pointer to zero when the region is deactivated, simply for
1669sanity. David Box. ACPICA BZ 1039.
1670
1671AcpiRead: On error, do not modify the return value target location. If an
1672error happens in the middle of a split 32/32 64-bit I/O operation, do not
1673modify the target of the return value pointer. Makes the code consistent
1674with the rest of ACPICA. Bjorn Helgaas.
1675
1676Example Code and Data Size: These are the sizes for the OS-independent
1677acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1678debug version of the code includes the debug output trace mechanism and
1679has a much larger code and data size.
1680
1681  Current Release:
1682    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
1683    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
1684  Previous Release:
1685    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
1686    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
1687
1688
16892) iASL Compiler/Disassembler and Tools:
1690
1691AcpiDump: Implemented several new features and fixed some problems:
16921) Added support to dump the RSDP, RSDT, and XSDT tables.
16932) Added support for multiple table instances (SSDT, UEFI).
16943) Added option to dump "customized" (overridden) tables (-c).
16954) Fixed a problem where some table filenames were improperly
1696constructed.
16975) Improved some error messages, removed some unnecessary messages.
1698
1699iASL: Implemented additional support for disassembly of ACPI tables that
1700contain invocations of external control methods. The -fe<file> option
1701allows the import of a file that specifies the external methods along
1702with the required number of arguments for each -- allowing for the
1703correct disassembly of the table. This is a workaround for a limitation
1704of AML code where the disassembler often cannot determine the number of
1705arguments required for an external control method and generates incorrect
1706ASL code. See the iASL reference for details. ACPICA BZ 1030.
1707
1708Debugger: Implemented a new command (paths) that displays the full
1709pathnames (namepaths) and object types of all objects in the namespace.
1710This is an alternative to the namespace command.
1711
1712Debugger: Implemented a new command (sci) that invokes the SCI dispatch
1713mechanism and any installed handlers.
1714
1715iASL: Fixed a possible segfault for "too many parent prefixes" condition.
1716This can occur if there are too many parent prefixes in a namepath (for
1717example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
1718
1719Application OSLs: Set the return value for the PCI read functions. These
1720functions simply return AE_OK, but should set the return value to zero
1721also. This change implements this. ACPICA BZ 1038.
1722
1723Debugger: Prevent possible command line buffer overflow. Increase the
1724size of a couple of the debugger line buffers, and ensure that overflow
1725cannot happen. ACPICA BZ 1037.
1726
1727iASL: Changed to abort immediately on serious errors during the parsing
1728phase. Due to the nature of ASL, there is no point in attempting to
1729compile these types of errors, and they typically end up causing a
1730cascade of hundreds of errors which obscure the original problem.
1731
1732----------------------------------------
173325 July 2013. Summary of changes for version 20130725:
1734
17351) ACPICA kernel-resident subsystem:
1736
1737Fixed a problem with the DerefOf operator where references to FieldUnits
1738and BufferFields incorrectly returned the parent object, not the actual
1739value of the object. After this change, a dereference of a FieldUnit
1740reference results in a read operation on the field to get the value, and
1741likewise, the appropriate BufferField value is extracted from the target
1742buffer.
1743
1744Fixed a problem where the _WAK method could cause a fault under these
1745circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
1746method returned no value. The problem is rarely seen because most kernels
1747run ACPICA in slack mode.
1748
1749For the DerefOf operator, a fatal error now results if an attempt is made
1750to dereference a reference (created by the Index operator) to a NULL
1751package element. Provides compatibility with other ACPI implementations,
1752and this behavior will be added to a future version of the ACPI
1753specification.
1754
1755The ACPI Power Management Timer (defined in the FADT) is now optional.
1756This provides compatibility with other ACPI implementations and will
1757appear in the next version of the ACPI specification. If there is no PM
1758Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
1759zero in the FADT indicates no PM timer.
1760
1761Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
1762allows the host to globally enable/disable all vendor strings, all
1763feature strings, or both. Intended to be primarily used for debugging
1764purposes only. Lv Zheng.
1765
1766Expose the collected _OSI data to the host via a global variable. This
1767data tracks the highest level vendor ID that has been invoked by the BIOS
1768so that the host (and potentially ACPICA itself) can change behaviors
1769based upon the age of the BIOS.
1770
1771Example Code and Data Size: These are the sizes for the OS-independent
1772acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1773debug version of the code includes the debug output trace mechanism and
1774has a much larger code and data size.
1775
1776  Current Release:
1777    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
1778    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
1779  Previous Release:
1780    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
1781    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
1782
1783
17842) iASL Compiler/Disassembler and Tools:
1785
1786iASL: Created the following enhancements for the -so option (create
1787offset table):
17881)Add offsets for the last nameseg in each namepath for every supported
1789object type
17902)Add support for Processor, Device, Thermal Zone, and Scope objects
17913)Add the actual AML opcode for the parent object of every supported
1792object type
17934)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
1794
1795Disassembler: Emit all unresolved external symbols in a single block.
1796These are external references to control methods that could not be
1797resolved, and thus, the disassembler had to make a guess at the number of
1798arguments to parse.
1799
1800iASL: The argument to the -T option (create table template) is now
1801optional. If not specified, the default table is a DSDT, typically the
1802most common case.
1803
1804----------------------------------------
180526 June 2013. Summary of changes for version 20130626:
1806
18071) ACPICA kernel-resident subsystem:
1808
1809Fixed an issue with runtime repair of the _CST object. Null or invalid
1810elements were not always removed properly. Lv Zheng.
1811
1812Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
1813FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
1814the maximum number of GPEs is 1016. Use of multiple GPE block devices
1815makes the system-wide number of GPEs essentially unlimited.
1816
1817Example Code and Data Size: These are the sizes for the OS-independent
1818acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1819debug version of the code includes the debug output trace mechanism and
1820has a much larger code and data size.
1821
1822  Current Release:
1823    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
1824    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
1825  Previous Release:
1826    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
1827    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
1828
1829
18302) iASL Compiler/Disassembler and Tools:
1831
1832Portable AcpiDump: Implemented full support for the Linux and FreeBSD
1833hosts. Now supports Linux, FreeBSD, and Windows.
1834
1835Disassembler: Added some missing types for the HEST and EINJ tables: "Set
1836Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
1837
1838iASL/Preprocessor: Implemented full support for nested
1839#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
1840
1841Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
1842max. The original purpose of this constraint was to limit the amount of
1843debug output. However, the string function in question (UtPrintString) is
1844now used for the disassembler also, where 256 bytes is insufficient.
1845Reported by RehabMan@GitHub.
1846
1847iASL/DataTables: Fixed some problems and issues with compilation of DMAR
1848tables. ACPICA BZ 999. Lv Zheng.
1849
1850iASL: Fixed a couple of error exit issues that could result in a "Could
1851not delete <file>" message during ASL compilation.
1852
1853AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
1854the actual signatures for these tables are "FACP" and "APIC",
1855respectively.
1856
1857AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
1858tables are allowed to have multiple instances.
1859
1860----------------------------------------
186117 May 2013. Summary of changes for version 20130517:
1862
18631) ACPICA kernel-resident subsystem:
1864
1865Fixed a regression introduced in version 20130328 for _INI methods. This
1866change fixes a problem introduced in 20130328 where _INI methods are no
1867longer executed properly because of a memory block that was not
1868initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
1869<tomasz.nowicki@linaro.org>.
1870
1871Fixed a possible problem with the new extended sleep registers in the
1872ACPI
18735.0 FADT. Do not use these registers (even if populated) unless the HW-
1874reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
18751020. Lv Zheng.
1876
1877Implemented return value repair code for _CST predefined objects: Sort
1878the
1879list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
1880
1881Implemented a debug-only option to disable loading of SSDTs from the
1882RSDT/XSDT during ACPICA initialization. This can be useful for debugging
1883ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
1884acglobal.h - ACPICA BZ 1005. Lv Zheng.
1885
1886Fixed some issues in the ACPICA initialization and termination code:
1887Tomasz Nowicki <tomasz.nowicki@linaro.org>
18881) Clear events initialized flag upon event component termination. ACPICA
1889BZ 1013.
18902) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
18913) Delete global lock pending lock during termination. ACPICA BZ 1012.
18924) Clear debug buffer global on termination to prevent possible multiple
1893delete. ACPICA BZ 1010.
1894
1895Standardized all switch() blocks across the entire source base. After
1896many
1897years, different formatting for switch() had crept in. This change makes
1898the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
1899
1900Split some files to enhance ACPICA modularity and configurability:
19011) Split buffer dump routines into utilities/utbuffer.c
19022) Split internal error message routines into utilities/uterror.c
19033) Split table print utilities into tables/tbprint.c
19044) Split iASL command-line option processing into asloptions.c
1905
1906Makefile enhancements:
19071) Support for all new files above.
19082) Abort make on errors from any subcomponent. Chao Guan.
19093) Add build support for Apple Mac OS X. Liang Qi.
1910
1911Example Code and Data Size: These are the sizes for the OS-independent
1912acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1913debug version of the code includes the debug output trace mechanism and
1914has a much larger code and data size.
1915
1916  Current Release:
1917    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
1918    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
1919  Previous Release:
1920    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
1921    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
1922
1923
19242) iASL Compiler/Disassembler and Tools:
1925
1926New utility: Implemented an easily portable version of the acpidump
1927utility to extract ACPI tables from the system (or a file) in an ASCII
1928hex
1929dump format. The top-level code implements the various command line
1930options, file I/O, and table dump routines. To port to a new host, only
1931three functions need to be implemented to get tables -- since this
1932functionality is OS-dependent. See the tools/acpidump/apmain.c module and
1933the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
19341) The Windows version obtains the ACPI tables from the Registry.
19352) The Linux version is under development.
19363) Other hosts - If an OS-dependent module is submitted, it will be
1937distributed with ACPICA.
1938
1939iASL: Fixed a regression for -D preprocessor option (define symbol). A
1940restructuring/change to the initialization sequence caused this option to
1941no longer work properly.
1942
1943iASL: Implemented a mechanism to disable specific warnings and remarks.
1944Adds a new command line option, "-vw <messageid> as well as "#pragma
1945disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
1946
1947iASL: Fix for too-strict package object validation. The package object
1948validation for return values from the predefined names is a bit too
1949strict, it does not allow names references within the package (which will
1950be resolved at runtime.) These types of references cannot be validated at
1951compile time. This change ignores named references within package objects
1952for names that return or define static packages.
1953
1954Debugger: Fixed the 80-character command line limitation for the History
1955command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
1956
1957iASL: Added control method and package support for the -so option
1958(generates AML offset table for BIOS support.)
1959
1960iASL: issue a remark if a non-serialized method creates named objects. If
1961a thread blocks within the method for any reason, and another thread
1962enters the method, the method will fail because an attempt will be made
1963to
1964create the same (named) object twice. In this case, issue a remark that
1965the method should be marked serialized. NOTE: may become a warning later.
1966ACPICA BZ 909.
1967
1968----------------------------------------
196918 April 2013. Summary of changes for version 20130418:
1970
19711) ACPICA kernel-resident subsystem:
1972
1973Fixed a possible buffer overrun during some rare but specific field unit
1974read operations. This overrun can only happen if the DSDT version is 1 --
1975meaning that all AML integers are 32 bits -- and the field length is
1976between 33 and 55 bits long. During the read, an internal buffer object
1977is
1978created for the field unit because the field is larger than an integer
1979(32
1980bits). However, in this case, the buffer will be incorrectly written
1981beyond the end because the buffer length is less than the internal
1982minimum
1983of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
1984long, but a full 8 bytes will be written.
1985
1986Updated the Embedded Controller "orphan" _REG method support. This refers
1987to _REG methods under the EC device that have no corresponding operation
1988region. This is allowed by the ACPI specification. This update removes a
1989dependency on the existence an ECDT table. It will execute an orphan _REG
1990method as long as the operation region handler for the EC is installed at
1991the EC device node and not the namespace root. Rui Zhang (original
1992update), Bob Moore (update/integrate).
1993
1994Implemented run-time argument typechecking for all predefined ACPI names
1995(_STA, _BIF, etc.) This change performs object typechecking on all
1996incoming arguments for all predefined names executed via
1997AcpiEvaluateObject. This ensures that ACPI-related device drivers are
1998passing correct object types as well as the correct number of arguments
1999(therefore identifying any issues immediately). Also, the ASL/namespace
2000definition of the predefined name is checked against the ACPI
2001specification for the proper argument count. Adds one new file,
2002nsarguments.c
2003
2004Changed an exception code for the ASL UnLoad() operator. Changed the
2005exception code for the case where the input DdbHandle is invalid, from
2006AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
2007
2008Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
2009global makefile. The use of this flag causes compiler errors on earlier
2010versions of GCC, so it has been removed for compatibility.
2011
2012Miscellaneous cleanup:
20131) Removed some unused/obsolete macros
20142) Fixed a possible memory leak in the _OSI support
20153) Removed an unused variable in the predefined name support
20164) Windows OSL: remove obsolete reference to a memory list field
2017
2018Example Code and Data Size: These are the sizes for the OS-independent
2019acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2020debug version of the code includes the debug output trace mechanism and
2021has a much larger code and data size.
2022
2023  Current Release:
2024    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
2025    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
2026  Previous Release:
2027    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
2028    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
2029
2030
20312) iASL Compiler/Disassembler and Tools:
2032
2033AcpiExec: Added installation of a handler for the SystemCMOS address
2034space. This prevents control method abort if a method accesses this
2035space.
2036
2037AcpiExec: Added support for multiple EC devices, and now install EC
2038operation region handler(s) at the actual EC device instead of the
2039namespace root. This reflects the typical behavior of host operating
2040systems.
2041
2042AcpiExec: Updated to ensure that all operation region handlers are
2043installed before the _REG methods are executed. This prevents a _REG
2044method from aborting if it accesses an address space has no handler.
2045AcpiExec installs a handler for every possible address space.
2046
2047Debugger: Enhanced the "handlers" command to display non-root handlers.
2048This change enhances the handlers command to display handlers associated
2049with individual devices throughout the namespace, in addition to the
2050currently supported display of handlers associated with the root
2051namespace
2052node.
2053
2054ASL Test Suite: Several test suite errors have been identified and
2055resolved, reducing the total error count during execution. Chao Guan.
2056
2057----------------------------------------
205828 March 2013. Summary of changes for version 20130328:
2059
20601) ACPICA kernel-resident subsystem:
2061
2062Fixed several possible race conditions with the internal object reference
2063counting mechanism. Some of the external ACPICA interfaces update object
2064reference counts without holding the interpreter or namespace lock. This
2065change adds a spinlock to protect reference count updates on the internal
2066ACPICA objects. Reported by and with assistance from Andriy Gapon
2067(avg@FreeBSD.org).
2068
2069FADT support: Removed an extraneous warning for very large GPE register
2070sets. This change removes a size mismatch warning if the legacy length
2071field for a GPE register set is larger than the 64-bit GAS structure can
2072accommodate. GPE register sets can be larger than the 255-bit width
2073limitation of the GAS structure. Linn Crosetto (linn@hp.com).
2074
2075_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
2076return from this interface. Handles a possible timeout case if
2077ACPI_WAIT_FOREVER is modified by the host to be a value less than
2078"forever". Jung-uk Kim.
2079
2080Predefined name support: Add allowed/required argument type information
2081to
2082the master predefined info table. This change adds the infrastructure to
2083enable typechecking on incoming arguments for all predefined
2084methods/objects. It does not actually contain the code that will fully
2085utilize this information, this is still under development. Also condenses
2086some duplicate code for the predefined names into a new module,
2087utilities/utpredef.c
2088
2089Example Code and Data Size: These are the sizes for the OS-independent
2090acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2091debug version of the code includes the debug output trace mechanism and
2092has a much larger code and data size.
2093
2094  Previous Release:
2095    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
2096    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
2097  Current Release:
2098    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
2099    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
2100
2101
21022) iASL Compiler/Disassembler and Tools:
2103
2104iASL: Implemented a new option to simplify the development of ACPI-
2105related
2106BIOS code. Adds support for a new "offset table" output file. The -so
2107option will create a C table containing the AML table offsets of various
2108named objects in the namespace so that BIOS code can modify them easily
2109at
2110boot time. This can simplify BIOS runtime code by eliminating expensive
2111searches for "magic values", enhancing boot times and adding greater
2112reliability. With assistance from Lee Hamel.
2113
2114iASL: Allow additional predefined names to return zero-length packages.
2115Now, all predefined names that are defined by the ACPI specification to
2116return a "variable-length package of packages" are allowed to return a
2117zero length top-level package. This allows the BIOS to tell the host that
2118the requested feature is not supported, and supports existing BIOS/ASL
2119code and practices.
2120
2121iASL: Changed the "result not used" warning to an error. This is the case
2122where an ASL operator is effectively a NOOP because the result of the
2123operation is not stored anywhere. For example:
2124    Add (4, Local0)
2125There is no target (missing 3rd argument), nor is the function return
2126value used. This is potentially a very serious problem -- since the code
2127was probably intended to do something, but for whatever reason, the value
2128was not stored. Therefore, this issue has been upgraded from a warning to
2129an error.
2130
2131AcpiHelp: Added allowable/required argument types to the predefined names
2132info display. This feature utilizes the recent update to the predefined
2133names table (above).
2134
2135----------------------------------------
213614 February 2013. Summary of changes for version 20130214:
2137
21381) ACPICA Kernel-resident Subsystem:
2139
2140Fixed a possible regression on some hosts: Reinstated the safe return
2141macros (return_ACPI_STATUS, etc.) that ensure that the argument is
2142evaluated only once. Although these macros are not needed for the ACPICA
2143code itself, they are often used by ACPI-related host device drivers
2144where
2145the safe feature may be necessary.
2146
2147Fixed several issues related to the ACPI 5.0 reduced hardware support
2148(SOC): Now ensure that if the platform declares itself as hardware-
2149reduced
2150via the FADT, the following functions become NOOPs (and always return
2151AE_OK) because ACPI is always enabled by definition on these machines:
2152  AcpiEnable
2153  AcpiDisable
2154  AcpiHwGetMode
2155  AcpiHwSetMode
2156
2157Dynamic Object Repair: Implemented additional runtime repairs for
2158predefined name return values. Both of these repairs can simplify code in
2159the related device drivers that invoke these methods:
21601) For the _STR and _MLS names, automatically repair/convert an ASCII
2161string to a Unicode buffer.
21622) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
2163a
2164lone end tag descriptor in the following cases: A Return(0) was executed,
2165a null buffer was returned, or no object at all was returned (non-slack
2166mode only). Adds a new file, nsconvert.c
2167ACPICA BZ 998. Bob Moore, Lv Zheng.
2168
2169Resource Manager: Added additional code to prevent possible infinite
2170loops
2171while traversing corrupted or ill-formed resource template buffers. Check
2172for zero-length resource descriptors in all code that loops through
2173resource templates (the length field is used to index through the
2174template). This change also hardens the external AcpiWalkResources and
2175AcpiWalkResourceBuffer interfaces.
2176
2177Local Cache Manager: Enhanced the main data structure to eliminate an
2178unnecessary mechanism to access the next object in the list. Actually
2179provides a small performance enhancement for hosts that use the local
2180ACPICA cache manager. Jung-uk Kim.
2181
2182Example Code and Data Size: These are the sizes for the OS-independent
2183acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2184debug version of the code includes the debug output trace mechanism and
2185has a much larger code and data size.
2186
2187  Previous Release:
2188    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
2189    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
2190  Current Release:
2191    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
2192    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
2193
2194
21952) iASL Compiler/Disassembler and Tools:
2196
2197iASL/Disassembler: Fixed several issues with the definition of the ACPI
21985.0 RASF table (RAS Feature Table). This change incorporates late changes
2199that were made to the ACPI 5.0 specification.
2200
2201iASL/Disassembler: Added full support for the following new ACPI tables:
2202  1) The MTMR table (MID Timer Table)
2203  2) The VRTC table (Virtual Real Time Clock Table).
2204Includes header file, disassembler, table compiler, and template support
2205for both tables.
2206
2207iASL: Implemented compile-time validation of package objects returned by
2208predefined names. This new feature validates static package objects
2209returned by the various predefined names defined to return packages. Both
2210object types and package lengths are validated, for both parent packages
2211and sub-packages, if any. The code is similar in structure and behavior
2212to
2213the runtime repair mechanism within the AML interpreter and uses the
2214existing predefined name information table. Adds a new file, aslprepkg.c.
2215ACPICA BZ 938.
2216
2217iASL: Implemented auto-detection of binary ACPI tables for disassembly.
2218This feature detects a binary file with a valid ACPI table header and
2219invokes the disassembler automatically. Eliminates the need to
2220specifically invoke the disassembler with the -d option. ACPICA BZ 862.
2221
2222iASL/Disassembler: Added several warnings for the case where there are
2223unresolved control methods during the disassembly. This can potentially
2224cause errors when the output file is compiled, because the disassembler
2225assumes zero method arguments in these cases (it cannot determine the
2226actual number of arguments without resolution/definition of the method).
2227
2228Debugger: Added support to display all resources with a single command.
2229Invocation of the resources command with no arguments will now display
2230all
2231resources within the current namespace.
2232
2233AcpiHelp: Added descriptive text for each ACPICA exception code displayed
2234via the -e option.
2235
2236----------------------------------------
223717 January 2013. Summary of changes for version 20130117:
2238
22391) ACPICA Kernel-resident Subsystem:
2240
2241Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
2242return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
2243objects to return a package containing one integer, most BIOS code
2244returns
2245two integers and the previous code reflects that. However, we also need
2246to
2247support BIOS code that actually implements to the ACPI spec, and this
2248change reflects this.
2249
2250Fixed two issues with the ACPI_DEBUG_PRINT macros:
22511) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
2252C compilers that require this support.
22532) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
2254ACPI_DEBUG is already used by many of the various hosts.
2255
2256Updated all ACPICA copyrights and signons to 2013. Added the 2013
2257copyright to all module headers and signons, including the standard Linux
2258header. This affects virtually every file in the ACPICA core subsystem,
2259iASL compiler, all ACPICA utilities, and the test suites.
2260
2261Example Code and Data Size: These are the sizes for the OS-independent
2262acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2263debug version of the code includes the debug output trace mechanism and
2264has a much larger code and data size.
2265
2266  Previous Release:
2267    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
2268    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
2269  Current Release:
2270    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
2271    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
2272
2273
22742) iASL Compiler/Disassembler and Tools:
2275
2276Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
2277prevent a possible fault on some hosts. Some C libraries modify the arg
2278pointer parameter to vfprintf making it difficult to call it twice in the
2279AcpiOsVprintf function. Use a local buffer to workaround this issue. This
2280does not affect the Windows OSL since the Win C library does not modify
2281the arg pointer. Chao Guan, Bob Moore.
2282
2283iASL: Fixed a possible infinite loop when the maximum error count is
2284reached. If an output file other than the .AML file is specified (such as
2285a listing file), and the maximum number of errors is reached, do not
2286attempt to flush data to the output file(s) as the compiler is aborting.
2287This can cause an infinite loop as the max error count code essentially
2288keeps calling itself.
2289
2290iASL/Disassembler: Added an option (-in) to ignore NOOP
2291opcodes/operators.
2292Implemented for both the compiler and the disassembler. Often, the NOOP
2293opcode is used as padding for packages that are changed dynamically by
2294the
2295BIOS. When disassembled and recompiled, these NOOPs will cause syntax
2296errors. This option causes the disassembler to ignore all NOOP opcodes
2297(0xA3), and it also causes the compiler to ignore all ASL source code
2298NOOP
2299statements as well.
2300
2301Debugger: Enhanced the Sleep command to execute all sleep states. This
2302change allows Sleep to be invoked with no arguments and causes the
2303debugger to execute all of the sleep states, 0-5, automatically.
2304
2305----------------------------------------
230620 December 2012. Summary of changes for version 20121220:
2307
23081) ACPICA Kernel-resident Subsystem:
2309
2310Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
2311alternate entry point for AcpiWalkResources and improves the usability of
2312the resource manager by accepting as input a buffer containing the output
2313of either a _CRS, _PRS, or _AEI method. The key functionality is that the
2314input buffer is not deleted by this interface so that it can be used by
2315the host later. See the ACPICA reference for details.
2316
2317Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
2318(DSDT version < 2). The constant will be truncated and this warning
2319reflects that behavior.
2320
2321Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
2322ExtendedInterrupt, and GpioInt descriptors. This change adds support to
2323both get and set the new wake bit in these descriptors, separately from
2324the existing share bit. Reported by Aaron Lu.
2325
2326Interpreter: Fix Store() when an implicit conversion is not possible. For
2327example, in the cases such as a store of a string to an existing package
2328object, implement the store as a CopyObject(). This is a small departure
2329from the ACPI specification which states that the control method should
2330be
2331aborted in this case. However, the ASLTS suite depends on this behavior.
2332
2333Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
2334macros: check if debug output is currently enabled as soon as possible to
2335minimize performance impact if debug is in fact not enabled.
2336
2337Source code restructuring: Cleanup to improve modularity. The following
2338new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
2339psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
2340Associated makefiles and project files have been updated.
2341
2342Changed an exception code for LoadTable operator. For the case where one
2343of the input strings is too long, change the returned exception code from
2344AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
2345
2346Fixed a possible memory leak in dispatcher error path. On error, delete
2347the mutex object created during method mutex creation. Reported by
2348tim.gardner@canonical.com.
2349
2350Example Code and Data Size: These are the sizes for the OS-independent
2351acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2352debug version of the code includes the debug output trace mechanism and
2353has a much larger code and data size.
2354
2355  Previous Release:
2356    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
2357    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
2358  Current Release:
2359    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
2360    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
2361
2362
23632) iASL Compiler/Disassembler and Tools:
2364
2365iASL: Disallow a method call as argument to the ObjectType ASL operator.
2366This change tracks an errata to the ACPI 5.0 document. The AML grammar
2367will not allow the interpreter to differentiate between a method and a
2368method invocation when these are used as an argument to the ObjectType
2369operator. The ACPI specification change is to disallow a method
2370invocation
2371(UserTerm) for the ObjectType operator.
2372
2373Finish support for the TPM2 and CSRT tables in the headers, table
2374compiler, and disassembler.
2375
2376Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
2377always expires immediately if the semaphore is not available. The
2378original
2379code was using a relative-time timeout, but sem_timedwait requires the
2380use
2381of an absolute time.
2382
2383iASL: Added a remark if the Timer() operator is used within a 32-bit
2384table. This operator returns a 64-bit time value that will be truncated
2385within a 32-bit table.
2386
2387iASL Source code restructuring: Cleanup to improve modularity. The
2388following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
2389aslmethod.c, and aslfileio.c. Associated makefiles and project files have
2390been updated.
2391
2392
2393----------------------------------------
239414 November 2012. Summary of changes for version 20121114:
2395
23961) ACPICA Kernel-resident Subsystem:
2397
2398Implemented a performance enhancement for ACPI/AML Package objects. This
2399change greatly increases the performance of Package objects within the
2400interpreter. It changes the processing of reference counts for packages
2401by
2402optimizing for the most common case where the package sub-objects are
2403either Integers, Strings, or Buffers. Increases the overall performance
2404of
2405the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
24062X.)
2407Chao Guan. ACPICA BZ 943.
2408
2409Implemented and deployed common macros to extract flag bits from resource
2410descriptors. Improves readability and maintainability of the code. Fixes
2411a
2412problem with the UART serial bus descriptor for the number of data bits
2413flags (was incorrectly 2 bits, should be 3).
2414
2415Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
2416of the macros and changed the SETx macros to the style of (destination,
2417source). Also added ACPI_CASTx companion macros. Lv Zheng.
2418
2419Example Code and Data Size: These are the sizes for the OS-independent
2420acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2421debug version of the code includes the debug output trace mechanism and
2422has a much larger code and data size.
2423
2424  Previous Release:
2425    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
2426    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
2427  Current Release:
2428    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
2429    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
2430
2431
24322) iASL Compiler/Disassembler and Tools:
2433
2434Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
2435adds the ShareAndWake and ExclusiveAndWake flags which were added to the
2436Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
2437
2438Disassembler: Fixed a problem with external declaration generation. Fixes
2439a problem where an incorrect pathname could be generated for an external
2440declaration if the original reference to the object includes leading
2441carats (^). ACPICA BZ 984.
2442
2443Debugger: Completed a major update for the Disassemble<method> command.
2444This command was out-of-date and did not properly disassemble control
2445methods that had any reasonable complexity. This fix brings the command
2446up
2447to the same level as the rest of the disassembler. Adds one new file,
2448dmdeferred.c, which is existing code that is now common with the main
2449disassembler and the debugger disassemble command. ACPICA MZ 978.
2450
2451iASL: Moved the parser entry prototype to avoid a duplicate declaration.
2452Newer versions of Bison emit this prototype, so moved the prototype out
2453of
2454the iASL header to where it is actually used in order to avoid a
2455duplicate
2456declaration.
2457
2458iASL/Tools: Standardized use of the stream I/O functions:
2459  1) Ensure check for I/O error after every fopen/fread/fwrite
2460  2) Ensure proper order of size/count arguments for fread/fwrite
2461  3) Use test of (Actual != Requested) after all fwrite, and most fread
2462  4) Standardize I/O error messages
2463Improves reliability and maintainability of the code. Bob Moore, Lv
2464Zheng.
2465ACPICA BZ 981.
2466
2467Disassembler: Prevent duplicate External() statements. During generation
2468of external statements, detect similar pathnames that are actually
2469duplicates such as these:
2470  External (\ABCD)
2471  External (ABCD)
2472Remove all leading '\' characters from pathnames during the external
2473statement generation so that duplicates will be detected and tossed.
2474ACPICA BZ 985.
2475
2476Tools: Replace low-level I/O with stream I/O functions. Replace
2477open/read/write/close with the stream I/O equivalents
2478fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
2479Moore.
2480
2481AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
2482name header so that AcpiXtract recognizes the output file/table.
2483
2484iASL: Remove obsolete -2 option flag. Originally intended to force the
2485compiler/disassembler into an ACPI 2.0 mode, this was never implemented
2486and the entire concept is now obsolete.
2487
2488----------------------------------------
248918 October 2012. Summary of changes for version 20121018:
2490
2491
24921) ACPICA Kernel-resident Subsystem:
2493
2494Updated support for the ACPI 5.0 MPST table. Fixes some problems
2495introduced by late changes to the table as it was added to the ACPI 5.0
2496specification. Includes header, disassembler, and data table compiler
2497support as well as a new version of the MPST template.
2498
2499AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
25005.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
2501methods: _HID, _CID, and _UID.
2502
2503Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
2504ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
2505name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
2506names for their various drivers. Affects the AcpiGetObjectInfo external
2507interface, and other internal interfaces as well.
2508
2509Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
2510This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
2511on machines that support non-aligned transfers. Optimizes for this case
2512rather than using a strncpy. With assistance from Zheng Lv.
2513
2514Resource Manager: Small fix for buffer size calculation. Fixed a one byte
2515error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
2516
2517Added a new debug print message for AML mutex objects that are force-
2518released. At control method termination, any currently acquired mutex
2519objects are force-released. Adds a new debug-only message for each one
2520that is released.
2521
2522Audited/updated all ACPICA return macros and the function debug depth
2523counter: 1) Ensure that all functions that use the various TRACE macros
2524also use the appropriate ACPICA return macros. 2) Ensure that all normal
2525return statements surround the return expression (value) with parens to
2526ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
2527Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
2528
2529Global source code changes/maintenance: All extra lines at the start and
2530end of each source file have been removed for consistency. Also, within
2531comments, all new sentences start with a single space instead of a double
2532space, again for consistency across the code base.
2533
2534Example Code and Data Size: These are the sizes for the OS-independent
2535acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2536debug version of the code includes the debug output trace mechanism and
2537has a much larger code and data size.
2538
2539  Previous Release:
2540    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
2541    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
2542  Current Release:
2543    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
2544    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
2545
2546
25472) iASL Compiler/Disassembler and Tools:
2548
2549AcpiExec: Improved the algorithm used for memory leak/corruption
2550detection. Added some intelligence to the code that maintains the global
2551list of allocated memory. The list is now ordered by allocated memory
2552address, significantly improving performance. When running AcpiExec on
2553the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
2554on the platform and/or the environment. Note, this performance
2555enhancement affects the AcpiExec utility only, not the kernel-resident
2556ACPICA code.
2557
2558Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
2559the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
2560incorrect table offset reported for invalid opcodes. Report the original
256132-bit value for bad ACPI_NAMEs (as well as the repaired name.)
2562
2563Disassembler: Enhanced the -vt option to emit the binary table data in
2564hex format to assist with debugging.
2565
2566Fixed a potential filename buffer overflow in osunixdir.c. Increased the
2567size of file structure. Colin Ian King.
2568
2569----------------------------------------
257013 September 2012. Summary of changes for version 20120913:
2571
2572
25731) ACPICA Kernel-resident Subsystem:
2574
2575ACPI 5.0: Added two new notify types for the Hardware Error Notification
2576Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
2577and
2578MCE(6).
2579
2580Table Manager: Merged/removed duplicate code in the root table resize
2581functions. One function is external, the other is internal. Lv Zheng,
2582ACPICA
2583BZ 846.
2584
2585Makefiles: Completely removed the obsolete "Linux" makefiles under
2586acpica/generate/linux. These makefiles are obsolete and have been
2587replaced
2588by
2589the generic unix makefiles under acpica/generate/unix.
2590
2591Makefiles: Ensure that binary files always copied properly. Minor rule
2592change
2593to ensure that the final binary output files are always copied up to the
2594appropriate binary directory (bin32 or bin64.)
2595
2596Example Code and Data Size: These are the sizes for the OS-independent
2597acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2598debug
2599version of the code includes the debug output trace mechanism and has a
2600much
2601larger code and data size.
2602
2603  Previous Release:
2604    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
2605    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
2606  Current Release:
2607    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
2608    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
2609
2610
26112) iASL Compiler/Disassembler and Tools:
2612
2613Disassembler: Fixed a possible fault during the disassembly of resource
2614descriptors when a second parse is required because of the invocation of
2615external control methods within the table. With assistance from
2616adq@lidskialf.net. ACPICA BZ 976.
2617
2618iASL: Fixed a namepath optimization problem. An error can occur if the
2619parse
2620node that contains the namepath to be optimized does not have a parent
2621node
2622that is a named object. This change fixes the problem.
2623
2624iASL: Fixed a regression where the AML file is not deleted on errors. The
2625AML
2626output file should be deleted if there are any errors during the
2627compiler.
2628The
2629only exception is if the -f (force output) option is used. ACPICA BZ 974.
2630
2631iASL: Added a feature to automatically increase internal line buffer
2632sizes.
2633Via realloc(), automatically increase the internal line buffer sizes as
2634necessary to support very long source code lines. The current version of
2635the
2636preprocessor requires a buffer long enough to contain full source code
2637lines.
2638This change increases the line buffer(s) if the input lines go beyond the
2639current buffer size. This eliminates errors that occurred when a source
2640code
2641line was longer than the buffer.
2642
2643iASL: Fixed a problem with constant folding in method declarations. The
2644SyncLevel term is a ByteConstExpr, and incorrect code would be generated
2645if a
2646Type3 opcode was used.
2647
2648Debugger: Improved command help support. For incorrect argument count,
2649display
2650full help for the command. For help command itself, allow an argument to
2651specify a command.
2652
2653Test Suites: Several bug fixes for the ASLTS suite reduces the number of
2654errors during execution of the suite. Guan Chao.
2655
2656----------------------------------------
265716 August 2012. Summary of changes for version 20120816:
2658
2659
26601) ACPICA Kernel-resident Subsystem:
2661
2662Removed all use of the deprecated _GTS and _BFS predefined methods. The
2663_GTS
2664(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
2665deprecated and will probably be removed from the ACPI specification.
2666Windows
2667does not invoke them, and reportedly never will. The final nail in the
2668coffin
2669is that the ACPI specification states that these methods must be run with
2670interrupts off, which is not going to happen in a kernel interpreter.
2671Note:
2672Linux has removed all use of the methods also. It was discovered that
2673invoking these functions caused failures on some machines, probably
2674because
2675they were never tested since Windows does not call them. Affects two
2676external
2677interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
2678ACPICA BZ 969.
2679
2680Implemented support for complex bit-packed buffers returned from the _PLD
2681(Physical Location of Device) predefined method. Adds a new external
2682interface, AcpiDecodePldBuffer that parses the buffer into a more usable
2683C
2684structure. Note: C Bitfields cannot be used for this type of predefined
2685structure since the memory layout of individual bitfields is not defined
2686by
2687the C language. In addition, there are endian concerns where a compiler
2688will
2689change the bitfield ordering based on the machine type. The new ACPICA
2690interface eliminates these issues, and should be called after _PLD is
2691executed. ACPICA BZ 954.
2692
2693Implemented a change to allow a scope change to root (via "Scope (\)")
2694during
2695execution of module-level ASL code (code that is executed at table load
2696time.) Lin Ming.
2697
2698Added the Windows8/Server2012 string for the _OSI method. This change
2699adds
2700a
2701new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
27022012.
2703
2704Added header support for the new ACPI tables DBG2 (Debug Port Table Type
27052)
2706and CSRT (Core System Resource Table).
2707
2708Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
2709names. This simplifies access to the buffers returned by these predefined
2710names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
2711
2712GPE support: Removed an extraneous parameter from the various low-level
2713internal GPE functions. Tang Feng.
2714
2715Removed the linux makefiles from the unix packages. The generate/linux
2716makefiles are obsolete and have been removed from the unix tarball
2717release
2718packages. The replacement makefiles are under generate/unix, and there is
2719a
2720top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
2721
2722Updates for Unix makefiles:
27231) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
27242) Update linker flags (move to end of command line) for AcpiExec
2725utility.
2726Guan Chao.
2727
2728Split ACPICA initialization functions to new file, utxfinit.c. Split from
2729utxface.c to improve modularity and reduce file size.
2730
2731Example Code and Data Size: These are the sizes for the OS-independent
2732acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2733debug version of the code includes the debug output trace mechanism and
2734has a
2735much larger code and data size.
2736
2737  Previous Release:
2738    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
2739    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
2740  Current Release:
2741    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
2742    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
2743
2744
27452) iASL Compiler/Disassembler and Tools:
2746
2747iASL: Fixed a problem with constant folding for fixed-length constant
2748expressions. The constant-folding code was not being invoked for constant
2749expressions that allow the use of type 3/4/5 opcodes to generate
2750constants
2751for expressions such as ByteConstExpr, WordConstExpr, etc. This could
2752result
2753in the generation of invalid AML bytecode. ACPICA BZ 970.
2754
2755iASL: Fixed a generation issue on newer versions of Bison. Newer versions
2756apparently automatically emit some of the necessary externals. This
2757change
2758handles these versions in order to eliminate generation warnings.
2759
2760Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
2761
2762Disassembler: Add support to decode _PLD buffers. The decoded buffer
2763appears
2764within comments in the output file.
2765
2766Debugger: Fixed a regression with the "Threads" command where
2767AE_BAD_PARAMETER was always returned.
2768
2769----------------------------------------
277011 July 2012. Summary of changes for version 20120711:
2771
27721) ACPICA Kernel-resident Subsystem:
2773
2774Fixed a possible fault in the return package object repair code. Fixes a
2775problem that can occur when a lone package object is wrapped with an
2776outer
2777package object in order to force conformance to the ACPI specification.
2778Can
2779affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
2780_DLM,
2781_CSD, _PSD, _TSD.
2782
2783Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
2784PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
2785ARB_DIS bit must be implemented in the host-dependent C3 processor power
2786state
2787support. Note, ARB_DIS is obsolete and only applies to older chipsets,
2788both
2789Intel and other vendors. (for Intel: ICH4-M and earlier)
2790
2791This change removes the code to disable/enable bus master arbitration
2792during
2793suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
2794causes
2795resume problems on some machines. The change has been in use for over
2796seven
2797years within Linux.
2798
2799Implemented two new external interfaces to support host-directed dynamic
2800ACPI
2801table load and unload. They are intended to simplify the host
2802implementation
2803of hot-plug support:
2804  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
2805  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
2806table.
2807See the ACPICA reference for additional details. Adds one new file,
2808components/tables/tbxfload.c
2809
2810Implemented and deployed two new interfaces for errors and warnings that
2811are
2812known to be caused by BIOS/firmware issues:
2813  AcpiBiosError: Prints "ACPI Firmware Error" message.
2814  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
2815Deployed these new interfaces in the ACPICA Table Manager code for ACPI
2816table
2817and FADT errors. Additional deployment to be completed as appropriate in
2818the
2819future. The associated conditional macros are ACPI_BIOS_ERROR and
2820ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
2821ACPICA
2822BZ
2823843.
2824
2825Implicit notify support: ensure that no memory allocation occurs within a
2826critical region. This fix moves a memory allocation outside of the time
2827that a
2828spinlock is held. Fixes issues on systems that do not allow this
2829behavior.
2830Jung-uk Kim.
2831
2832Split exception code utilities and tables into a new file,
2833utilities/utexcep.c
2834
2835Example Code and Data Size: These are the sizes for the OS-independent
2836acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2837debug
2838version of the code includes the debug output trace mechanism and has a
2839much
2840larger code and data size.
2841
2842  Previous Release:
2843    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
2844    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
2845  Current Release:
2846    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
2847    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
2848
2849
28502) iASL Compiler/Disassembler and Tools:
2851
2852iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
2853of
28540. Jung-uk Kim.
2855
2856Debugger: Enhanced the "tables" command to emit additional information
2857about
2858the current set of ACPI tables, including the owner ID and flags decode.
2859
2860Debugger: Reimplemented the "unload" command to use the new
2861AcpiUnloadParentTable external interface. This command was disable
2862previously
2863due to need for an unload interface.
2864
2865AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
2866option
2867will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
2868
2869----------------------------------------
287020 June 2012. Summary of changes for version 20120620:
2871
2872
28731) ACPICA Kernel-resident Subsystem:
2874
2875Implemented support to expand the "implicit notify" feature to allow
2876multiple
2877devices to be notified by a single GPE. This feature automatically
2878generates a
2879runtime device notification in the absence of a BIOS-provided GPE control
2880method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
2881notify is
2882provided by ACPICA for Windows compatibility, and is a workaround for
2883BIOS
2884AML
2885code errors. See the description of the AcpiSetupGpeForWake interface in
2886the
2887APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
2888
2889Changed some comments and internal function names to simplify and ensure
2890correctness of the Linux code translation. No functional changes.
2891
2892Example Code and Data Size: These are the sizes for the OS-independent
2893acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2894debug
2895version of the code includes the debug output trace mechanism and has a
2896much
2897larger code and data size.
2898
2899  Previous Release:
2900    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
2901    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
2902  Current Release:
2903    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
2904    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
2905
2906
29072) iASL Compiler/Disassembler and Tools:
2908
2909Disassembler: Added support to emit short, commented descriptions for the
2910ACPI
2911predefined names in order to improve the readability of the disassembled
2912output. ACPICA BZ 959. Changes include:
2913  1) Emit descriptions for all standard predefined names (_INI, _STA,
2914_PRW,
2915etc.)
2916  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
2917  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
2918etc.)
2919
2920AcpiSrc: Fixed several long-standing Linux code translation issues.
2921Argument
2922descriptions in function headers are now translated properly to lower
2923case
2924and
2925underscores. ACPICA BZ 961. Also fixes translation problems such as
2926these:
2927(old -> new)
2928  i_aSL -> iASL
2929  00-7_f -> 00-7F
2930  16_k -> 16K
2931  local_fADT -> local_FADT
2932  execute_oSI -> execute_OSI
2933
2934iASL: Fixed a problem where null bytes were inadvertently emitted into
2935some
2936listing files.
2937
2938iASL: Added the existing debug options to the standard help screen. There
2939are
2940no longer two different help screens. ACPICA BZ 957.
2941
2942AcpiHelp: Fixed some typos in the various predefined name descriptions.
2943Also
2944expand some of the descriptions where appropriate.
2945
2946iASL: Fixed the -ot option (display compile times/statistics). Was not
2947working
2948properly for standard output; only worked for the debug file case.
2949
2950----------------------------------------
295118 May 2012. Summary of changes for version 20120518:
2952
2953
29541) ACPICA Core Subsystem:
2955
2956Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
2957defined
2958to block until asynchronous events such as notifies and GPEs have
2959completed.
2960Within ACPICA, it is only called before a notify or GPE handler is
2961removed/uninstalled. It also may be useful for the host OS within related
2962drivers such as the Embedded Controller driver. See the ACPICA reference
2963for
2964additional information. ACPICA BZ 868.
2965
2966ACPI Tables: Added a new error message for a possible overflow failure
2967during
2968the conversion of FADT 32-bit legacy register addresses to internal
2969common
297064-
2971bit GAS structure representation. The GAS has a one-byte "bit length"
2972field,
2973thus limiting the register length to 255 bits. ACPICA BZ 953.
2974
2975Example Code and Data Size: These are the sizes for the OS-independent
2976acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2977debug
2978version of the code includes the debug output trace mechanism and has a
2979much
2980larger code and data size.
2981
2982  Previous Release:
2983    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
2984    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
2985  Current Release:
2986    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
2987    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
2988
2989
29902) iASL Compiler/Disassembler and Tools:
2991
2992iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
2993macro.
2994This keyword was added late in the ACPI 5.0 release cycle and was not
2995implemented until now.
2996
2997Disassembler: Added support for Operation Region externals. Adds missing
2998support for operation regions that are defined in another table, and
2999referenced locally via a Field or BankField ASL operator. Now generates
3000the
3001correct External statement.
3002
3003Disassembler: Several additional fixes for the External() statement
3004generation
3005related to some ASL operators. Also, order the External() statements
3006alphabetically in the disassembler output. Fixes the External()
3007generation
3008for
3009the Create* field, Alias, and Scope operators:
3010 1) Create* buffer field operators - fix type mismatch warning on
3011disassembly
3012 2) Alias - implement missing External support
3013 3) Scope - fix to make sure all necessary externals are emitted.
3014
3015iASL: Improved pathname support. For include files, merge the prefix
3016pathname
3017with the file pathname and eliminate unnecessary components. Convert
3018backslashes in all pathnames to forward slashes, for readability. Include
3019file
3020pathname changes affect both #include and Include() type operators.
3021
3022iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
3023end
3024of a valid line by inserting a newline and then returning the EOF during
3025the
3026next call to GetNextLine. Prevents the line from being ignored due to EOF
3027condition.
3028
3029iASL: Implemented some changes to enhance the IDE support (-vi option.)
3030Error
3031and Warning messages are now correctly recognized for both the source
3032code
3033browser and the global error and warning counts.
3034
3035----------------------------------------
303620 April 2012. Summary of changes for version 20120420:
3037
3038
30391) ACPICA Core Subsystem:
3040
3041Implemented support for multiple notify handlers. This change adds
3042support
3043to
3044allow multiple system and device notify handlers on Device, Thermal Zone,
3045and
3046Processor objects. This can simplify the host OS notification
3047implementation.
3048Also re-worked and restructured the entire notify support code to
3049simplify
3050handler installation, handler removal, notify event queuing, and notify
3051dispatch to handler(s). Note: there can still only be two global notify
3052handlers - one for system notifies and one for device notifies. There are
3053no
3054changes to the existing handler install/remove interfaces. Lin Ming, Bob
3055Moore, Rafael Wysocki.
3056
3057Fixed a regression in the package repair code where the object reference
3058count was calculated incorrectly. Regression was introduced in the commit
3059"Support to add Package wrappers".
3060
3061Fixed a couple possible memory leaks in the AML parser, in the error
3062recovery
3063path. Jesper Juhl, Lin Ming.
3064
3065Example Code and Data Size: These are the sizes for the OS-independent
3066acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3067debug version of the code includes the debug output trace mechanism and
3068has a
3069much larger code and data size.
3070
3071  Previous Release:
3072    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
3073    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
3074  Current Release:
3075    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
3076    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
3077
3078
30792) iASL Compiler/Disassembler and Tools:
3080
3081iASL: Fixed a problem with the resource descriptor support where the
3082length
3083of the StartDependentFn and StartDependentFnNoPrio descriptors were not
3084included in cumulative descriptor offset, resulting in incorrect values
3085for
3086resource tags within resource descriptors appearing after a
3087StartDependent*
3088descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
3089
3090iASL and Preprocessor: Implemented full support for the #line directive
3091to
3092correctly track original source file line numbers through the .i
3093preprocessor
3094output file - for error and warning messages.
3095
3096iASL: Expand the allowable byte constants for address space IDs.
3097Previously,
3098the allowable range was 0x80-0xFF (user-defined spaces), now the range is
30990x0A-0xFF to allow for custom and new IDs without changing the compiler.
3100
3101iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
3102
3103iASL: Add option to completely disable the preprocessor (-Pn).
3104
3105iASL: Now emit all error/warning messages to standard error (stderr) by
3106default (instead of the previous stdout).
3107
3108ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
3109Update
3110for resource descriptor offset fix above. Update/cleanup error output
3111routines. Enable and send iASL errors/warnings to an error logfile
3112(error.txt). Send all other iASL output to a logfile (compiler.txt).
3113Fixed
3114several extraneous "unrecognized operator" messages.
3115
3116----------------------------------------
311720 March 2012. Summary of changes for version 20120320:
3118
3119
31201) ACPICA Core Subsystem:
3121
3122Enhanced the sleep/wake interfaces to optionally execute the _GTS method
3123(Going To Sleep) and the _BFS method (Back From Sleep). Windows
3124apparently
3125does not execute these methods, and therefore these methods are often
3126untested. It has been seen on some systems where the execution of these
3127methods causes errors and also prevents the machine from entering S5. It
3128is
3129therefore suggested that host operating systems do not execute these
3130methods
3131by default. In the future, perhaps these methods can be optionally
3132executed
3133based on the age of the system and/or what is the newest version of
3134Windows
3135that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
3136and
3137AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
3138Ming.
3139
3140Fixed a problem where the length of the local/common FADT was set too
3141early.
3142The local FADT table length cannot be set to the common length until the
3143original length has been examined. There is code that checks the table
3144length
3145and sets various fields appropriately. This can affect older machines
3146with
3147early FADT versions. For example, this can cause inadvertent writes to
3148the
3149CST_CNT register. Julian Anastasov.
3150
3151Fixed a mapping issue related to a physical table override. Use the
3152deferred
3153mapping mechanism for tables loaded via the physical override OSL
3154interface.
3155This allows for early mapping before the virtual memory manager is
3156available.
3157Thomas Renninger, Bob Moore.
3158
3159Enhanced the automatic return-object repair code: Repair a common problem
3160with
3161predefined methods that are defined to return a variable-length Package
3162of
3163sub-objects. If there is only one sub-object, some BIOS ASL code
3164mistakenly
3165simply returns the single object instead of a Package with one sub-
3166object.
3167This new support will repair this error by wrapping a Package object
3168around
3169the original object, creating the correct and expected Package with one
3170sub-
3171object. Names that can be repaired in this manner include: _ALR, _CSD,
3172_HPX,
3173_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
3174939.
3175
3176Changed the exception code returned for invalid ACPI paths passed as
3177parameters to external interfaces such as AcpiEvaluateObject. Was
3178AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
3179
3180Example Code and Data Size: These are the sizes for the OS-independent
3181acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3182debug
3183version of the code includes the debug output trace mechanism and has a
3184much
3185larger code and data size.
3186
3187  Previous Release:
3188    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
3189    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
3190  Current Release:
3191    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
3192    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
3193
3194
31952) iASL Compiler/Disassembler and Tools:
3196
3197iASL: Added the infrastructure and initial implementation of a integrated
3198C-
3199like preprocessor. This will simplify BIOS development process by
3200eliminating
3201the need for a separate preprocessing step during builds. On Windows, it
3202also
3203eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
3204features including full #define() macro support are still under
3205development.
3206These preprocessor directives are supported:
3207    #define
3208    #elif
3209    #else
3210    #endif
3211    #error
3212    #if
3213    #ifdef
3214    #ifndef
3215    #include
3216    #pragma message
3217    #undef
3218    #warning
3219In addition, these new command line options are supported:
3220    -D <symbol> Define symbol for preprocessor use
3221    -li         Create preprocessed output file (*.i)
3222    -P          Preprocess only and create preprocessor output file (*.i)
3223
3224Table Compiler: Fixed a problem where the equals operator within an
3225expression
3226did not work properly.
3227
3228Updated iASL to use the current versions of Bison/Flex. Updated the
3229Windows
3230project file to invoke these tools from the standard location. ACPICA BZ
3231904.
3232Versions supported:
3233    Flex for Windows:  V2.5.4
3234    Bison for Windows: V2.4.1
3235
3236----------------------------------------
323715 February 2012. Summary of changes for version 20120215:
3238
3239
32401) ACPICA Core Subsystem:
3241
3242There have been some major changes to the sleep/wake support code, as
3243described below (a - e).
3244
3245a) The AcpiLeaveSleepState has been split into two interfaces, similar to
3246AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
3247AcpiLeaveSleepStatePrep. This allows the host to perform actions between
3248the
3249time the _BFS method is called and the _WAK method is called. NOTE: all
3250hosts
3251must update their wake/resume code or else sleep/wake will not work
3252properly.
3253Rafael Wysocki.
3254
3255b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
3256_WAK
3257method. Some machines require that the GPEs are enabled before the _WAK
3258method
3259is executed. Thomas Renninger.
3260
3261c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
3262bit.
3263Some BIOS code assumes that WAK_STS will be cleared on resume and use it
3264to
3265determine whether the system is rebooting or resuming. Matthew Garrett.
3266
3267d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
3268Sleep) to
3269match the ACPI specification requirement. Rafael Wysocki.
3270
3271e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
3272registers within the V5 FADT. This support adds two new files:
3273hardware/hwesleep.c implements the support for the new registers. Moved
3274all
3275sleep/wake external interfaces to hardware/hwxfsleep.c.
3276
3277
3278Added a new OSL interface for ACPI table overrides,
3279AcpiOsPhysicalTableOverride. This interface allows the host to override a
3280table via a physical address, instead of the logical address required by
3281AcpiOsTableOverride. This simplifies the host implementation. Initial
3282implementation by Thomas Renninger. The ACPICA implementation creates a
3283single
3284shared function for table overrides that attempts both a logical and a
3285physical override.
3286
3287Expanded the OSL memory read/write interfaces to 64-bit data
3288(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
3289transfer support for GAS register structures passed to AcpiRead and
3290AcpiWrite.
3291
3292Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
3293custom
3294build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
3295model.
3296See the ACPICA reference for details. ACPICA BZ 942. This option removes
3297about
329810% of the code and 5% of the static data, and the following hardware
3299ACPI
3300features become unavailable:
3301    PM Event and Control registers
3302    SCI interrupt (and handler)
3303    Fixed Events
3304    General Purpose Events (GPEs)
3305    Global Lock
3306    ACPI PM timer
3307    FACS table (Waking vectors and Global Lock)
3308
3309Updated the unix tarball directory structure to match the ACPICA git
3310source
3311tree. This ensures that the generic unix makefiles work properly (in
3312generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
3313867.
3314
3315Updated the return value of the _REV predefined method to integer value 5
3316to
3317reflect ACPI 5.0 support.
3318
3319Moved the external ACPI PM timer interface prototypes to the public
3320acpixf.h
3321file where they belong.
3322
3323Example Code and Data Size: These are the sizes for the OS-independent
3324acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3325debug
3326version of the code includes the debug output trace mechanism and has a
3327much
3328larger code and data size.
3329
3330  Previous Release:
3331    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
3332    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
3333  Current Release:
3334    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
3335    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
3336
3337
33382) iASL Compiler/Disassembler and Tools:
3339
3340Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
3341descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
3342incorrectly displayed.
3343
3344AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
3345specification.
3346
3347----------------------------------------
334811 January 2012. Summary of changes for version 20120111:
3349
3350
33511) ACPICA Core Subsystem:
3352
3353Implemented a new mechanism to allow host device drivers to check for
3354address
3355range conflicts with ACPI Operation Regions. Both SystemMemory and
3356SystemIO
3357address spaces are supported. A new external interface,
3358AcpiCheckAddressRange,
3359allows drivers to check an address range against the ACPI namespace. See
3360the
3361ACPICA reference for additional details. Adds one new file,
3362utilities/utaddress.c. Lin Ming, Bob Moore.
3363
3364Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
3365Control
3366and
3367Status registers, update the ACPI 5.0 flags, and update internal data
3368structures to handle an FADT larger than 256 bytes. The size of the ACPI
33695.0
3370FADT is 268 bytes.
3371
3372Updated all ACPICA copyrights and signons to 2012. Added the 2012
3373copyright to
3374all module headers and signons, including the standard Linux header. This
3375affects virtually every file in the ACPICA core subsystem, iASL compiler,
3376and
3377all ACPICA utilities.
3378
3379Example Code and Data Size: These are the sizes for the OS-independent
3380acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3381debug
3382version of the code includes the debug output trace mechanism and has a
3383much
3384larger code and data size.
3385
3386  Previous Release:
3387    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
3388    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
3389  Current Release:
3390    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
3391    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
3392
3393
33942) iASL Compiler/Disassembler and Tools:
3395
3396Disassembler: fixed a problem with the automatic resource tag generation
3397support. Fixes a problem where the resource tags are inadvertently not
3398constructed if the table being disassembled contains external references
3399to
3400control methods. Moved the actual construction of the tags to after the
3401final
3402namespace is constructed (after 2nd parse is invoked due to external
3403control
3404method references.) ACPICA BZ 941.
3405
3406Table Compiler: Make all "generic" operators caseless. These are the
3407operators
3408like UINT8, String, etc. Making these caseless improves ease-of-use.
3409ACPICA BZ
3410934.
3411
3412----------------------------------------
341323 November 2011. Summary of changes for version 20111123:
3414
34150) ACPI 5.0 Support:
3416
3417This release contains full support for the ACPI 5.0 specification, as
3418summarized below.
3419
3420Reduced Hardware Support:
3421-------------------------
3422
3423This support allows for ACPI systems without the usual ACPI hardware.
3424This
3425support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
3426will
3427not attempt to initialize or use any of the usual ACPI hardware. Note,
3428when
3429this flag is set, all of the following ACPI hardware is assumed to be not
3430present and is not initialized or accessed:
3431
3432    General Purpose Events (GPEs)
3433    Fixed Events (PM1a/PM1b and PM Control)
3434    Power Management Timer and Console Buttons (power/sleep)
3435    Real-time Clock Alarm
3436    Global Lock
3437    System Control Interrupt (SCI)
3438    The FACS is assumed to be non-existent
3439
3440ACPI Tables:
3441------------
3442
3443All new tables and updates to existing tables are fully supported in the
3444ACPICA headers (for use by device drivers), the disassembler, and the
3445iASL
3446Data Table Compiler. ACPI 5.0 defines these new tables:
3447
3448    BGRT        /* Boot Graphics Resource Table */
3449    DRTM        /* Dynamic Root of Trust for Measurement table */
3450    FPDT        /* Firmware Performance Data Table */
3451    GTDT        /* Generic Timer Description Table */
3452    MPST        /* Memory Power State Table */
3453    PCCT        /* Platform Communications Channel Table */
3454    PMTT        /* Platform Memory Topology Table */
3455    RASF        /* RAS Feature table */
3456
3457Operation Regions/SpaceIDs:
3458---------------------------
3459
3460All new operation regions are fully supported by the iASL compiler, the
3461disassembler, and the ACPICA runtime code (for dispatch to region
3462handlers.)
3463The new operation region Space IDs are:
3464
3465    GeneralPurposeIo
3466    GenericSerialBus
3467
3468Resource Descriptors:
3469---------------------
3470
3471All new ASL resource descriptors are fully supported by the iASL
3472compiler,
3473the
3474ASL/AML disassembler, and the ACPICA runtime Resource Manager code
3475(including
3476all new predefined resource tags). New descriptors are:
3477
3478    FixedDma
3479    GpioIo
3480    GpioInt
3481    I2cSerialBus
3482    SpiSerialBus
3483    UartSerialBus
3484
3485ASL/AML Operators, New and Modified:
3486------------------------------------
3487
3488One new operator is added, the Connection operator, which is used to
3489associate
3490a GeneralPurposeIo or GenericSerialBus resource descriptor with
3491individual
3492field objects within an operation region. Several new protocols are
3493associated
3494with the AccessAs operator. All are fully supported by the iASL compiler,
3495disassembler, and runtime ACPICA AML interpreter:
3496
3497    Connection                      // Declare Field Connection
3498attributes
3499    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
3500    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
3501Protocol
3502    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
3503    RawDataBuffer                       // Data type for Vendor Data
3504fields
3505
3506Predefined ASL/AML Objects:
3507---------------------------
3508
3509All new predefined objects/control-methods are supported by the iASL
3510compiler
3511and the ACPICA runtime validation/repair (arguments and return values.)
3512New
3513predefined names include the following:
3514
3515Standard Predefined Names (Objects or Control Methods):
3516    _AEI, _CLS, _CPC, _CWS, _DEP,
3517    _DLM, _EVT, _GCP, _CRT, _GWS,
3518    _HRV, _PRE, _PSE, _SRT, _SUB.
3519
3520Resource Tags (Names used to access individual fields within resource
3521descriptors):
3522    _DBT, _DPL, _DRS, _END, _FLC,
3523    _IOR, _LIN, _MOD, _PAR, _PHA,
3524    _PIN, _PPI, _POL, _RXL, _SLV,
3525    _SPE, _STB, _TXL, _VEN.
3526
3527ACPICA External Interfaces:
3528---------------------------
3529
3530Several new interfaces have been defined for use by ACPI-related device
3531drivers and other host OS services:
3532
3533AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
3534to
3535acquire and release AML mutexes that are defined in the DSDT/SSDT tables
3536provided by the BIOS. They are intended to be used in conjunction with
3537the
3538ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
3539mutual exclusion with the AML code/interpreter.
3540
3541AcpiGetEventResources: Returns the (formatted) resource descriptors as
3542defined
3543by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
3544provides
3545resource descriptors associated with hardware-reduced platform events,
3546similar
3547to the AcpiGetCurrentResources interface.
3548
3549Operation Region Handlers: For General Purpose IO and Generic Serial Bus
3550operation regions, information about the Connection() object and any
3551optional
3552length information is passed to the region handler within the Context
3553parameter.
3554
3555AcpiBufferToResource: This interface converts a raw AML buffer containing
3556a
3557resource template or resource descriptor to the ACPI_RESOURCE internal
3558format
3559suitable for use by device drivers. Can be used by an operation region
3560handler
3561to convert the Connection() buffer object into a ACPI_RESOURCE.
3562
3563Miscellaneous/Tools/TestSuites:
3564-------------------------------
3565
3566Support for extended _HID names (Four alpha characters instead of three).
3567Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
3568Support for ACPI 5.0 features in the ASLTS test suite.
3569Fully updated documentation (ACPICA and iASL reference documents.)
3570
3571ACPI Table Definition Language:
3572-------------------------------
3573
3574Support for this language was implemented and released as a subsystem of
3575the
3576iASL compiler in 2010. (See the iASL compiler User Guide.)
3577
3578
3579Non-ACPI 5.0 changes for this release:
3580--------------------------------------
3581
35821) ACPICA Core Subsystem:
3583
3584Fix a problem with operation region declarations where a failure can
3585occur
3586if
3587the region name and an argument that evaluates to an object (such as the
3588region address) are in different namespace scopes. Lin Ming, ACPICA BZ
3589937.
3590
3591Do not abort an ACPI table load if an invalid space ID is found within.
3592This
3593will be caught later if the offending method is executed. ACPICA BZ 925.
3594
3595Fixed an issue with the FFixedHW space ID where the ID was not always
3596recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
3597
3598Fixed a problem with the 32-bit generation of the unix-specific OSL
3599(osunixxf.c). Lin Ming, ACPICA BZ 936.
3600
3601Several changes made to enable generation with the GCC 4.6 compiler.
3602ACPICA BZ
3603935.
3604
3605New error messages: Unsupported I/O requests (not 8/16/32 bit), and
3606Index/Bank
3607field registers out-of-range.
3608
36092) iASL Compiler/Disassembler and Tools:
3610
3611iASL: Implemented the __PATH__ operator, which returns the full pathname
3612of
3613the current source file.
3614
3615AcpiHelp: Automatically display expanded keyword information for all ASL
3616operators.
3617
3618Debugger: Add "Template" command to disassemble/dump resource template
3619buffers.
3620
3621Added a new master script to generate and execute the ASLTS test suite.
3622Automatically handles 32- and 64-bit generation. See tests/aslts.sh
3623
3624iASL: Fix problem with listing generation during processing of the
3625Switch()
3626operator where AML listing was disabled until the entire Switch block was
3627completed.
3628
3629iASL: Improve support for semicolon statement terminators. Fix "invalid
3630character" message for some cases when the semicolon is used. Semicolons
3631are
3632now allowed after every <Term> grammar element. ACPICA BZ 927.
3633
3634iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
3635923.
3636
3637Disassembler: Fix problem with disassembly of the DataTableRegion
3638operator
3639where an inadvertent "Unhandled deferred opcode" message could be
3640generated.
3641
36423) Example Code and Data Size
3643
3644These are the sizes for the OS-independent acpica.lib produced by the
3645Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
3646includes the debug output trace mechanism and has a much larger code and
3647data
3648size.
3649
3650  Previous Release:
3651    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
3652    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
3653  Current Release:
3654    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
3655    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
3656
3657----------------------------------------
365822 September 2011. Summary of changes for version 20110922:
3659
36600) ACPI 5.0 News:
3661
3662Support for ACPI 5.0 in ACPICA has been underway for several months and
3663will
3664be released at the same time that ACPI 5.0 is officially released.
3665
3666The ACPI 5.0 specification is on track for release in the next few
3667months.
3668
36691) ACPICA Core Subsystem:
3670
3671Fixed a problem where the maximum sleep time for the Sleep() operator was
3672intended to be limited to two seconds, but was inadvertently limited to
367320
3674seconds instead.
3675
3676Linux and Unix makefiles: Added header file dependencies to ensure
3677correct
3678generation of ACPICA core code and utilities. Also simplified the
3679makefiles
3680considerably through the use of the vpath variable to specify search
3681paths.
3682ACPICA BZ 924.
3683
36842) iASL Compiler/Disassembler and Tools:
3685
3686iASL: Implemented support to check the access length for all fields
3687created to
3688access named Resource Descriptor fields. For example, if a resource field
3689is
3690defined to be two bits, a warning is issued if a CreateXxxxField() is
3691used
3692with an incorrect bit length. This is implemented for all current
3693resource
3694descriptor names. ACPICA BZ 930.
3695
3696Disassembler: Fixed a byte ordering problem with the output of 24-bit and
369756-
3698bit integers.
3699
3700iASL: Fixed a couple of issues associated with variable-length package
3701objects. 1) properly handle constants like One, Ones, Zero -- do not make
3702a
3703VAR_PACKAGE when these are used as a package length. 2) Allow the
3704VAR_PACKAGE
3705opcode (in addition to PACKAGE) when validating object types for
3706predefined
3707names.
3708
3709iASL: Emit statistics for all output files (instead of just the ASL input
3710and
3711AML output). Includes listings, hex files, etc.
3712
3713iASL: Added -G option to the table compiler to allow the compilation of
3714custom
3715ACPI tables. The only part of a table that is required is the standard
371636-
3717byte
3718ACPI header.
3719
3720AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
3721headers),
3722which also adds correct 64-bit support. Also, now all output filenames
3723are
3724completely lower case.
3725
3726AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
3727loading table files. A warning is issued for any such tables. The only
3728exception is an FADT. This also fixes a possible fault when attempting to
3729load
3730non-AML tables. ACPICA BZ 932.
3731
3732AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
3733a
3734missing table terminator could cause a fault when using the -p option.
3735
3736AcpiSrc: Fixed a possible divide-by-zero fault when generating file
3737statistics.
3738
37393) Example Code and Data Size
3740
3741These are the sizes for the OS-independent acpica.lib produced by the
3742Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
3743includes the debug output trace mechanism and has a much larger code and
3744data
3745size.
3746
3747  Previous Release (VC 9.0):
3748    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
3749    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
3750  Current Release (VC 9.0):
3751    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
3752    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
3753
3754
3755----------------------------------------
375623 June 2011. Summary of changes for version 20110623:
3757
37581) ACPI CA Core Subsystem:
3759
3760Updated the predefined name repair mechanism to not attempt repair of a
3761_TSS
3762return object if a _PSS object is present. We can only sort the _TSS
3763return
3764package if there is no _PSS within the same scope. This is because if
3765_PSS
3766is
3767present, the ACPI specification dictates that the _TSS Power Dissipation
3768field
3769is to be ignored, and therefore some BIOSs leave garbage values in the
3770_TSS
3771Power field(s). In this case, it is best to just return the _TSS package
3772as-
3773is. Reported by, and fixed with assistance from Fenghua Yu.
3774
3775Added an option to globally disable the control method return value
3776validation
3777and repair. This runtime option can be used to disable return value
3778repair
3779if
3780this is causing a problem on a particular machine. Also added an option
3781to
3782AcpiExec (-dr) to set this disable flag.
3783
3784All makefiles and project files: Major changes to improve generation of
3785ACPICA
3786tools. ACPICA BZ 912:
3787    Reduce default optimization levels to improve compatibility
3788    For Linux, add strict-aliasing=0 for gcc 4
3789    Cleanup and simplify use of command line defines
3790    Cleanup multithread library support
3791    Improve usage messages
3792
3793Linux-specific header: update handling of THREAD_ID and pthread. For the
379432-
3795bit case, improve casting to eliminate possible warnings, especially with
3796the
3797acpica tools.
3798
3799Example Code and Data Size: These are the sizes for the OS-independent
3800acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3801debug
3802version of the code includes the debug output trace mechanism and has a
3803much
3804larger code and data size.
3805
3806  Previous Release (VC 9.0):
3807    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
3808    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
3809  Current Release (VC 9.0):
3810    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
3811    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
3812
38132) iASL Compiler/Disassembler and Tools:
3814
3815With this release, a new utility named "acpihelp" has been added to the
3816ACPICA
3817package. This utility summarizes the ACPI specification chapters for the
3818ASL
3819and AML languages. It generates under Linux/Unix as well as Windows, and
3820provides the following functionality:
3821    Find/display ASL operator(s) -- with description and syntax.
3822    Find/display ASL keyword(s) -- with exact spelling and descriptions.
3823    Find/display ACPI predefined name(s) -- with description, number
3824        of arguments, and the return value data type.
3825    Find/display AML opcode name(s) -- with opcode, arguments, and
3826grammar.
3827    Decode/display AML opcode -- with opcode name, arguments, and
3828grammar.
3829
3830Service Layers: Make multi-thread support configurable. Conditionally
3831compile
3832the multi-thread support so that threading libraries will not be linked
3833if
3834not
3835necessary. The only tool that requires multi-thread support is AcpiExec.
3836
3837iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
3838of
3839Bison appear to want the interface to yyerror to be a const char * (or at
3840least this is a problem when generating iASL on some systems.) ACPICA BZ
3841923
3842Pierre Lejeune.
3843
3844Tools: Fix for systems where O_BINARY is not defined. Only used for
3845Windows
3846versions of the tools.
3847
3848----------------------------------------
384927 May 2011. Summary of changes for version 20110527:
3850
38511) ACPI CA Core Subsystem:
3852
3853ASL Load() operator: Reinstate most restrictions on the incoming ACPI
3854table
3855signature. Now, only allow SSDT, OEMx, and a null signature. History:
3856    1) Originally, we checked the table signature for "SSDT" or "PSDT".
3857       (PSDT is now obsolete.)
3858    2) We added support for OEMx tables, signature "OEM" plus a fourth
3859       "don't care" character.
3860    3) Valid tables were encountered with a null signature, so we just
3861       gave up on validating the signature, (05/2008).
3862    4) We encountered non-AML tables such as the MADT, which caused
3863       interpreter errors and kernel faults. So now, we once again allow
3864       only SSDT, OEMx, and now, also a null signature. (05/2011).
3865
3866Added the missing _TDL predefined name to the global name list in order
3867to
3868enable validation. Affects both the core ACPICA code and the iASL
3869compiler.
3870
3871Example Code and Data Size: These are the sizes for the OS-independent
3872acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3873debug
3874version of the code includes the debug output trace mechanism and has a
3875much
3876larger code and data size.
3877
3878  Previous Release (VC 9.0):
3879    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
3880    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
3881  Current Release (VC 9.0):
3882    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
3883    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
3884
38852) iASL Compiler/Disassembler and Tools:
3886
3887Debugger/AcpiExec: Implemented support for "complex" method arguments on
3888the
3889debugger command line. This adds support beyond simple integers --
3890including
3891Strings, Buffers, and Packages. Includes support for nested packages.
3892Increased the default command line buffer size to accommodate these
3893arguments.
3894See the ACPICA reference for details and syntax. ACPICA BZ 917.
3895
3896Debugger/AcpiExec: Implemented support for "default" method arguments for
3897the
3898Execute/Debug command. Now, the debugger will always invoke a control
3899method
3900with the required number of arguments -- even if the command line
3901specifies
3902none or insufficient arguments. It uses default integer values for any
3903missing
3904arguments. Also fixes a bug where only six method arguments maximum were
3905supported instead of the required seven.
3906
3907Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
3908and
3909also return status in order to prevent buffer overruns. See the ACPICA
3910reference for details and syntax. ACPICA BZ 921
3911
3912iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
3913makefiles to simplify support for the two different but similar parser
3914generators, bison and yacc.
3915
3916Updated the generic unix makefile for gcc 4. The default gcc version is
3917now
3918expected to be 4 or greater, since options specific to gcc 4 are used.
3919
3920----------------------------------------
392113 April 2011. Summary of changes for version 20110413:
3922
39231) ACPI CA Core Subsystem:
3924
3925Implemented support to execute a so-called "orphan" _REG method under the
3926EC
3927device. This change will force the execution of a _REG method underneath
3928the
3929EC
3930device even if there is no corresponding operation region of type
3931EmbeddedControl. Fixes a problem seen on some machines and apparently is
3932compatible with Windows behavior. ACPICA BZ 875.
3933
3934Added more predefined methods that are eligible for automatic NULL
3935package
3936element removal. This change adds another group of predefined names to
3937the
3938list
3939of names that can be repaired by having NULL package elements dynamically
3940removed. This group are those methods that return a single variable-
3941length
3942package containing simple data types such as integers, buffers, strings.
3943This
3944includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
3945_PSL,
3946_Sx,
3947and _TZD. ACPICA BZ 914.
3948
3949Split and segregated all internal global lock functions to a new file,
3950evglock.c.
3951
3952Updated internal address SpaceID for DataTable regions. Moved this
3953internal
3954space
3955id in preparation for ACPI 5.0 changes that will include some new space
3956IDs.
3957This
3958change should not affect user/host code.
3959
3960Example Code and Data Size: These are the sizes for the OS-independent
3961acpica.lib
3962produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
3963version of
3964the code includes the debug output trace mechanism and has a much larger
3965code
3966and
3967data size.
3968
3969  Previous Release (VC 9.0):
3970    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
3971    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
3972  Current Release (VC 9.0):
3973    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
3974    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
3975
39762) iASL Compiler/Disassembler and Tools:
3977
3978iASL/DTC: Major update for new grammar features. Allow generic data types
3979in
3980custom ACPI tables. Field names are now optional. Any line can be split
3981to
3982multiple lines using the continuation char (\). Large buffers now use
3983line-
3984continuation character(s) and no colon on the continuation lines. See the
3985grammar
3986update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
3987Moore.
3988
3989iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
3990statements.
3991Since the parser stuffs a "zero" as the return value for these statements
3992(due
3993to
3994the underlying AML grammar), they were seen as "return with value" by the
3995iASL
3996semantic checking. They are now seen correctly as "null" return
3997statements.
3998
3999iASL: Check if a_REG declaration has a corresponding Operation Region.
4000Adds a
4001check for each _REG to ensure that there is in fact a corresponding
4002operation
4003region declaration in the same scope. If not, the _REG method is not very
4004useful
4005since it probably won't be executed. ACPICA BZ 915.
4006
4007iASL/DTC: Finish support for expression evaluation. Added a new
4008expression
4009parser
4010that implements c-style operator precedence and parenthesization. ACPICA
4011bugzilla
4012908.
4013
4014Disassembler/DTC: Remove support for () and <> style comments in data
4015tables.
4016Now
4017that DTC has full expression support, we don't want to have comment
4018strings
4019that
4020start with a parentheses or a less-than symbol. Now, only the standard /*
4021and
4022//
4023comments are supported, as well as the bracket [] comments.
4024
4025AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
4026"unusual"
4027headers in the acpidump file. Update the header validation to support
4028these
4029tables. Problem introduced in previous AcpiXtract version in the change
4030to
4031support "wrong checksum" error messages emitted by acpidump utility.
4032
4033iASL: Add a * option to generate all template files (as a synonym for
4034ALL)
4035as
4036in
4037"iasl -T *" or "iasl -T ALL".
4038
4039iASL/DTC: Do not abort compiler on fatal errors. We do not want to
4040completely
4041abort the compiler on "fatal" errors, simply should abort the current
4042compile.
4043This allows multiple compiles with a single (possibly wildcard) compiler
4044invocation.
4045
4046----------------------------------------
404716 March 2011. Summary of changes for version 20110316:
4048
40491) ACPI CA Core Subsystem:
4050
4051Fixed a problem caused by a _PRW method appearing at the namespace root
4052scope
4053during the setup of wake GPEs. A fault could occur if a _PRW directly
4054under
4055the
4056root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
4057
4058Implemented support for "spurious" Global Lock interrupts. On some
4059systems, a
4060global lock interrupt can occur without the pending flag being set. Upon
4061a
4062GL
4063interrupt, we now ensure that a thread is actually waiting for the lock
4064before
4065signaling GL availability. Rafael Wysocki, Bob Moore.
4066
4067Example Code and Data Size: These are the sizes for the OS-independent
4068acpica.lib
4069produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
4070version of
4071the code includes the debug output trace mechanism and has a much larger
4072code
4073and
4074data size.
4075
4076  Previous Release (VC 9.0):
4077    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
4078    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
4079  Current Release (VC 9.0):
4080    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
4081    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
4082
40832) iASL Compiler/Disassembler and Tools:
4084
4085Implemented full support for the "SLIC" ACPI table. Includes support in
4086the
4087header files, disassembler, table compiler, and template generator. Bob
4088Moore,
4089Lin Ming.
4090
4091AcpiXtract: Correctly handle embedded comments and messages from
4092AcpiDump.
4093Apparently some or all versions of acpidump will occasionally emit a
4094comment
4095like
4096"Wrong checksum", etc., into the dump file. This was causing problems for
4097AcpiXtract. ACPICA BZ 905.
4098
4099iASL: Fix the Linux makefile by removing an inadvertent double file
4100inclusion.
4101ACPICA BZ 913.
4102
4103AcpiExec: Update installation of operation region handlers. Install one
4104handler
4105for a user-defined address space. This is used by the ASL test suite
4106(ASLTS).
4107
4108----------------------------------------
410911 February 2011. Summary of changes for version 20110211:
4110
41111) ACPI CA Core Subsystem:
4112
4113Added a mechanism to defer _REG methods for some early-installed
4114handlers.
4115Most user handlers should be installed before call to
4116AcpiEnableSubsystem.
4117However, Event handlers and region handlers should be installed after
4118AcpiInitializeObjects. Override handlers for the "default" regions should
4119be
4120installed early, however. This change executes all _REG methods for the
4121default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
4122chicken/egg issues between them. ACPICA BZ 848.
4123
4124Implemented an optimization for GPE detection. This optimization will
4125simply
4126ignore GPE registers that contain no enabled GPEs -- there is no need to
4127read the register since this information is available internally. This
4128becomes more important on machines with a large GPE space. ACPICA
4129bugzilla
4130884. Lin Ming. Suggestion from Joe Liu.
4131
4132Removed all use of the highly unreliable FADT revision field. The
4133revision
4134number in the FADT has been found to be completely unreliable and cannot
4135be
4136trusted. Only the actual table length can be used to infer the version.
4137This
4138change updates the ACPICA core and the disassembler so that both no
4139longer
4140even look at the FADT version and instead depend solely upon the FADT
4141length.
4142
4143Fix an unresolved name issue for the no-debug and no-error-message source
4144generation cases. The _AcpiModuleName was left undefined in these cases,
4145but
4146it is actually needed as a parameter to some interfaces. Define
4147_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
4148
4149Split several large files (makefiles and project files updated)
4150  utglobal.c   -> utdecode.c
4151  dbcomds.c    -> dbmethod.c dbnames.c
4152  dsopcode.c   -> dsargs.c dscontrol.c
4153  dsload.c     -> dsload2.c
4154  aslanalyze.c -> aslbtypes.c aslwalks.c
4155
4156Example Code and Data Size: These are the sizes for the OS-independent
4157acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4158debug version of the code includes the debug output trace mechanism and
4159has
4160a much larger code and data size.
4161
4162  Previous Release (VC 9.0):
4163    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
4164    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
4165  Current Release (VC 9.0):
4166    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
4167    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
4168
41692) iASL Compiler/Disassembler and Tools:
4170
4171iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
4172These are useful C-style macros with the standard definitions. ACPICA
4173bugzilla 898.
4174
4175iASL/DTC: Added support for integer expressions and labels. Support for
4176full
4177expressions for all integer fields in all ACPI tables. Support for labels
4178in
4179"generic" portions of tables such as UEFI. See the iASL reference manual.
4180
4181Debugger: Added a command to display the status of global handlers. The
4182"handlers" command will display op region, fixed event, and miscellaneous
4183global handlers. installation status -- and for op regions, whether
4184default
4185or user-installed handler will be used.
4186
4187iASL: Warn if reserved method incorrectly returns a value. Many
4188predefined
4189names are defined such that they do not return a value. If implemented as
4190a
4191method, issue a warning if such a name explicitly returns a value. ACPICA
4192Bugzilla 855.
4193
4194iASL: Added detection of GPE method name conflicts. Detects a conflict
4195where
4196there are two GPE methods of the form _Lxy and _Exy in the same scope.
4197(For
4198example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
4199
4200iASL/DTC: Fixed a couple input scanner issues with comments and line
4201numbers. Comment remover could get confused and miss a comment ending.
4202Fixed
4203a problem with line counter maintenance.
4204
4205iASL/DTC: Reduced the severity of some errors from fatal to error. There
4206is
4207no need to abort on simple errors within a field definition.
4208
4209Debugger: Simplified the output of the help command. All help output now
4210in
4211a single screen, instead of help subcommands. ACPICA Bugzilla 897.
4212
4213----------------------------------------
421412 January 2011. Summary of changes for version 20110112:
4215
42161) ACPI CA Core Subsystem:
4217
4218Fixed a race condition between method execution and namespace walks that
4219can
4220possibly cause a fault. The problem was apparently introduced in version
422120100528 as a result of a performance optimization that reduces the
4222number
4223of
4224namespace walks upon method exit by using the delete_namespace_subtree
4225function instead of the delete_namespace_by_owner function used
4226previously.
4227Bug is a missing namespace lock in the delete_namespace_subtree function.
4228dana.myers@oracle.com
4229
4230Fixed several issues and a possible fault with the automatic "serialized"
4231method support. History: This support changes a method to "serialized" on
4232the
4233fly if the method generates an AE_ALREADY_EXISTS error, indicating the
4234possibility that it cannot handle reentrancy. This fix repairs a couple
4235of
4236issues seen in the field, especially on machines with many cores:
4237
4238    1) Delete method children only upon the exit of the last thread,
4239       so as to not delete objects out from under other running threads
4240      (and possibly causing a fault.)
4241    2) Set the "serialized" bit for the method only upon the exit of the
4242       Last thread, so as to not cause deadlock when running threads
4243       attempt to exit.
4244    3) Cleanup the use of the AML "MethodFlags" and internal method flags
4245       so that there is no longer any confusion between the two.
4246
4247    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
4248
4249Debugger: Now lock the namespace for duration of a namespace dump.
4250Prevents
4251issues if the namespace is changing dynamically underneath the debugger.
4252Especially affects temporary namespace nodes, since the debugger displays
4253these also.
4254
4255Updated the ordering of include files. The ACPICA headers should appear
4256before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
4257set
4258any necessary compiler-specific defines, etc. Affects the ACPI-related
4259tools
4260and utilities.
4261
4262Updated all ACPICA copyrights and signons to 2011. Added the 2011
4263copyright
4264to all module headers and signons, including the Linux header. This
4265affects
4266virtually every file in the ACPICA core subsystem, iASL compiler, and all
4267utilities.
4268
4269Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
4270project files for VC++ 6.0 are now obsolete. New project files can be
4271found
4272under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
4273details.
4274
4275Example Code and Data Size: These are the sizes for the OS-independent
4276acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4277debug version of the code includes the debug output trace mechanism and
4278has a
4279much larger code and data size.
4280
4281  Previous Release (VC 6.0):
4282    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
4283    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
4284  Current Release (VC 9.0):
4285    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
4286    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
4287
42882) iASL Compiler/Disassembler and Tools:
4289
4290iASL: Added generic data types to the Data Table compiler. Add "generic"
4291data
4292types such as UINT32, String, Unicode, etc., to simplify the generation
4293of
4294platform-defined tables such as UEFI. Lin Ming.
4295
4296iASL: Added listing support for the Data Table Compiler. Adds listing
4297support
4298(-l) to display actual binary output for each line of input code.
4299
4300----------------------------------------
430109 December 2010. Summary of changes for version 20101209:
4302
43031) ACPI CA Core Subsystem:
4304
4305Completed the major overhaul of the GPE support code that was begun in
4306July
43072010. Major features include: removal of _PRW execution in ACPICA (host
4308executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
4309changes to existing interfaces, simplification of GPE handler operation,
4310and
4311a handful of new interfaces:
4312
4313    AcpiUpdateAllGpes
4314    AcpiFinishGpe
4315    AcpiSetupGpeForWake
4316    AcpiSetGpeWakeMask
4317    One new file, evxfgpe.c to consolidate all external GPE interfaces.
4318
4319See the ACPICA Programmer Reference for full details and programming
4320information. See the new section 4.4 "General Purpose Event (GPE)
4321Support"
4322for a full overview, and section 8.7 "ACPI General Purpose Event
4323Management"
4324for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
4325Ming,
4326Bob Moore, Rafael Wysocki.
4327
4328Implemented a new GPE feature for Windows compatibility, the "Implicit
4329Wake
4330GPE Notify". This feature will automatically issue a Notify(2) on a
4331device
4332when a Wake GPE is received if there is no corresponding GPE method or
4333handler. ACPICA BZ 870.
4334
4335Fixed a problem with the Scope() operator during table parse and load
4336phase.
4337During load phase (table load or method execution), the scope operator
4338should
4339not enter the target into the namespace. Instead, it should open a new
4340scope
4341at the target location. Linux BZ 19462, ACPICA BZ 882.
4342
4343Example Code and Data Size: These are the sizes for the OS-independent
4344acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4345debug version of the code includes the debug output trace mechanism and
4346has a
4347much larger code and data size.
4348
4349  Previous Release:
4350    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
4351    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
4352  Current Release:
4353    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
4354    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
4355
43562) iASL Compiler/Disassembler and Tools:
4357
4358iASL: Relax the alphanumeric restriction on _CID strings. These strings
4359are
4360"bus-specific" per the ACPI specification, and therefore any characters
4361are
4362acceptable. The only checks that can be performed are for a null string
4363and
4364perhaps for a leading asterisk. ACPICA BZ 886.
4365
4366iASL: Fixed a problem where a syntax error that caused a premature EOF
4367condition on the source file emitted a very confusing error message. The
4368premature EOF is now detected correctly. ACPICA BZ 891.
4369
4370Disassembler: Decode the AccessSize within a Generic Address Structure
4371(byte
4372access, word access, etc.) Note, this field does not allow arbitrary bit
4373access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
4374
4375New: AcpiNames utility - Example namespace dump utility. Shows an example
4376of
4377ACPICA configuration for a minimal namespace dump utility. Uses table and
4378namespace managers, but no AML interpreter. Does not add any
4379functionality
4380over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
4381partition and configure ACPICA. ACPICA BZ 883.
4382
4383AML Debugger: Increased the debugger buffer size for method return
4384objects.
4385Was 4K, increased to 16K. Also enhanced error messages for debugger
4386method
4387execution, including the buffer overflow case.
4388
4389----------------------------------------
439013 October 2010. Summary of changes for version 20101013:
4391
43921) ACPI CA Core Subsystem:
4393
4394Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
4395now
4396clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
4397HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
4398
4399Changed the type of the predefined namespace object _TZ from ThermalZone
4400to
4401Device. This was found to be confusing to the host software that
4402processes
4403the various thermal zones, since _TZ is not really a ThermalZone.
4404However,
4405a
4406Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
4407Zhang.
4408
4409Added Windows Vista SP2 to the list of supported _OSI strings. The actual
4410string is "Windows 2006 SP2".
4411
4412Eliminated duplicate code in AcpiUtExecute* functions. Now that the
4413nsrepair
4414code automatically repairs _HID-related strings, this type of code is no
4415longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
4416878.
4417
4418Example Code and Data Size: These are the sizes for the OS-independent
4419acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4420debug version of the code includes the debug output trace mechanism and
4421has a
4422much larger code and data size.
4423
4424  Previous Release:
4425    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
4426    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
4427  Current Release:
4428    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
4429    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
4430
44312) iASL Compiler/Disassembler and Tools:
4432
4433iASL: Implemented additional compile-time validation for _HID strings.
4434The
4435non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
4436length
4437of
4438the string must be exactly seven or eight characters. For both _HID and
4439_CID
4440strings, all characters must be alphanumeric. ACPICA BZ 874.
4441
4442iASL: Allow certain "null" resource descriptors. Some BIOS code creates
4443descriptors that are mostly or all zeros, with the expectation that they
4444will
4445be filled in at runtime. iASL now allows this as long as there is a
4446"resource
4447tag" (name) associated with the descriptor, which gives the ASL a handle
4448needed to modify the descriptor. ACPICA BZ 873.
4449
4450Added single-thread support to the generic Unix application OSL.
4451Primarily
4452for iASL support, this change removes the use of semaphores in the
4453single-
4454threaded ACPICA tools/applications - increasing performance. The
4455_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
4456option. ACPICA BZ 879.
4457
4458AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
4459support
4460for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
4461
4462iASL: Moved all compiler messages to a new file, aslmessages.h.
4463
4464----------------------------------------
446515 September 2010. Summary of changes for version 20100915:
4466
44671) ACPI CA Core Subsystem:
4468
4469Removed the AcpiOsDerivePciId OSL interface. The various host
4470implementations
4471of this function were not OS-dependent and are now obsolete and can be
4472removed from all host OSLs. This function has been replaced by
4473AcpiHwDerivePciId, which is now part of the ACPICA core code.
4474AcpiHwDerivePciId has been implemented without recursion. Adds one new
4475module, hwpci.c. ACPICA BZ 857.
4476
4477Implemented a dynamic repair for _HID and _CID strings. The following
4478problems are now repaired at runtime: 1) Remove a leading asterisk in the
4479string, and 2) the entire string is uppercased. Both repairs are in
4480accordance with the ACPI specification and will simplify host driver
4481code.
4482ACPICA BZ 871.
4483
4484The ACPI_THREAD_ID type is no longer configurable, internally it is now
4485always UINT64. This simplifies the ACPICA code, especially any printf
4486output.
4487UINT64 is the only common data type for all thread_id types across all
4488operating systems. It is now up to the host OSL to cast the native
4489thread_id
4490type to UINT64 before returning the value to ACPICA (via
4491AcpiOsGetThreadId).
4492Lin Ming, Bob Moore.
4493
4494Added the ACPI_INLINE type to enhance the ACPICA configuration. The
4495"inline"
4496keyword is not standard across compilers, and this type allows inline to
4497be
4498configured on a per-compiler basis. Lin Ming.
4499
4500Made the system global AcpiGbl_SystemAwakeAndRunning publically
4501available.
4502Added an extern for this boolean in acpixf.h. Some hosts utilize this
4503value
4504during suspend/restore operations. ACPICA BZ 869.
4505
4506All code that implements error/warning messages with the "ACPI:" prefix
4507has
4508been moved to a new module, utxferror.c.
4509
4510The UINT64_OVERLAY was moved to utmath.c, which is the only module where
4511it
4512is used. ACPICA BZ 829. Lin Ming, Bob Moore.
4513
4514Example Code and Data Size: These are the sizes for the OS-independent
4515acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4516debug version of the code includes the debug output trace mechanism and
4517has a
4518much larger code and data size.
4519
4520  Previous Release:
4521    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
4522    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
4523  Current Release:
4524    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
4525    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
4526
45272) iASL Compiler/Disassembler and Tools:
4528
4529iASL/Disassembler: Write ACPI errors to stderr instead of the output
4530file.
4531This keeps the output files free of random error messages that may
4532originate
4533from within the namespace/interpreter code. Used this opportunity to
4534merge
4535all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
4536866. Lin Ming, Bob Moore.
4537
4538Tools: update some printfs for ansi warnings on size_t. Handle width
4539change
4540of size_t on 32-bit versus 64-bit generations. Lin Ming.
4541
4542----------------------------------------
454306 August 2010. Summary of changes for version 20100806:
4544
45451) ACPI CA Core Subsystem:
4546
4547Designed and implemented a new host interface to the _OSI support code.
4548This
4549will allow the host to dynamically add or remove multiple _OSI strings,
4550as
4551well as install an optional handler that is called for each _OSI
4552invocation.
4553Also added a new AML debugger command, 'osi' to display and modify the
4554global
4555_OSI string table, and test support in the AcpiExec utility. See the
4556ACPICA
4557reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
4558New Functions:
4559    AcpiInstallInterface - Add an _OSI string.
4560    AcpiRemoveInterface - Delete an _OSI string.
4561    AcpiInstallInterfaceHandler - Install optional _OSI handler.
4562Obsolete Functions:
4563    AcpiOsValidateInterface - no longer used.
4564New Files:
4565    source/components/utilities/utosi.c
4566
4567Re-introduced the support to enable multi-byte transfers for Embedded
4568Controller (EC) operation regions. A reported problem was found to be a
4569bug
4570in the host OS, not in the multi-byte support. Previously, the maximum
4571data
4572size passed to the EC operation region handler was a single byte. There
4573are
4574often EC Fields larger than one byte that need to be transferred, and it
4575is
4576useful for the EC driver to lock these as a single transaction. This
4577change
4578enables single transfers larger than 8 bits. This effectively changes the
4579access to the EC space from ByteAcc to AnyAcc, and will probably require
4580changes to the host OS Embedded Controller driver to enable 16/32/64/256-
4581bit
4582transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
4583
4584Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
4585prototype in acpiosxf.h had the output value pointer as a (void *).
4586It should be a (UINT64 *). This may affect some host OSL code.
4587
4588Fixed a couple problems with the recently modified Linux makefiles for
4589iASL
4590and AcpiExec. These new makefiles place the generated object files in the
4591local directory so that there can be no collisions between the files that
4592are
4593shared between them that are compiled with different options.
4594
4595Example Code and Data Size: These are the sizes for the OS-independent
4596acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4597debug version of the code includes the debug output trace mechanism and
4598has a
4599much larger code and data size.
4600
4601  Previous Release:
4602    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
4603    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
4604  Current Release:
4605    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
4606    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
4607
46082) iASL Compiler/Disassembler and Tools:
4609
4610iASL/Disassembler: Added a new option (-da, "disassemble all") to load
4611the
4612namespace from and disassemble an entire group of AML files. Useful for
4613loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
4614and
4615disassembling with one simple command. ACPICA BZ 865. Lin Ming.
4616
4617iASL: Allow multiple invocations of -e option. This change allows
4618multiple
4619uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
4620834.
4621Lin Ming.
4622
4623----------------------------------------
462402 July 2010. Summary of changes for version 20100702:
4625
46261) ACPI CA Core Subsystem:
4627
4628Implemented several updates to the recently added GPE reference count
4629support. The model for "wake" GPEs is changing to give the host OS
4630complete
4631control of these GPEs. Eventually, the ACPICA core will not execute any
4632_PRW
4633methods, since the host already must execute them. Also, additional
4634changes
4635were made to help ensure that the reference counts are kept in proper
4636synchronization with reality. Rafael J. Wysocki.
4637
46381) Ensure that GPEs are not enabled twice during initialization.
46392) Ensure that GPE enable masks stay in sync with the reference count.
46403) Do not inadvertently enable GPEs when writing GPE registers.
46414) Remove the internal wake reference counter and add new AcpiGpeWakeup
4642interface. This interface will set or clear individual GPEs for wakeup.
46435) Remove GpeType argument from AcpiEnable and AcpiDisable. These
4644interfaces
4645are now used for "runtime" GPEs only.
4646
4647Changed the behavior of the GPE install/remove handler interfaces. The
4648GPE
4649is
4650no longer disabled during this process, as it was found to cause problems
4651on
4652some machines. Rafael J. Wysocki.
4653
4654Reverted a change introduced in version 20100528 to enable Embedded
4655Controller multi-byte transfers. This change was found to cause problems
4656with
4657Index Fields and possibly Bank Fields. It will be reintroduced when these
4658problems have been resolved.
4659
4660Fixed a problem with references to Alias objects within Package Objects.
4661A
4662reference to an Alias within the definition of a Package was not always
4663resolved properly. Aliases to objects like Processors, Thermal zones,
4664etc.
4665were resolved to the actual object instead of a reference to the object
4666as
4667it
4668should be. Package objects are only allowed to contain integer, string,
4669buffer, package, and reference objects. Redhat bugzilla 608648.
4670
4671Example Code and Data Size: These are the sizes for the OS-independent
4672acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4673debug version of the code includes the debug output trace mechanism and
4674has a
4675much larger code and data size.
4676
4677  Previous Release:
4678    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
4679    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
4680  Current Release:
4681    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
4682    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
4683
46842) iASL Compiler/Disassembler and Tools:
4685
4686iASL: Implemented a new compiler subsystem to allow definition and
4687compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
4688These
4689are called "ACPI Data Tables", and the new compiler is the "Data Table
4690Compiler". This compiler is intended to simplify the existing error-prone
4691process of creating these tables for the BIOS, as well as allowing the
4692disassembly, modification, recompilation, and override of existing ACPI
4693data
4694tables. See the iASL User Guide for detailed information.
4695
4696iASL: Implemented a new Template Generator option in support of the new
4697Data
4698Table Compiler. This option will create examples of all known ACPI tables
4699that can be used as the basis for table development. See the iASL
4700documentation and the -T option.
4701
4702Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
4703Descriptor Table).
4704
4705Updated the Linux makefiles for iASL and AcpiExec to place the generated
4706object files in the local directory so that there can be no collisions
4707between the shared files between them that are generated with different
4708options.
4709
4710Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
4711Use
4712the #define __APPLE__ to enable this support.
4713
4714----------------------------------------
471528 May 2010. Summary of changes for version 20100528:
4716
4717Note: The ACPI 4.0a specification was released on April 5, 2010 and is
4718available at www.acpi.info. This is primarily an errata release.
4719
47201) ACPI CA Core Subsystem:
4721
4722Undefined ACPI tables: We are looking for the definitions for the
4723following
4724ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
4725
4726Implemented support to enable multi-byte transfers for Embedded
4727Controller
4728(EC) operation regions. Previously, the maximum data size passed to the
4729EC
4730operation region handler was a single byte. There are often EC Fields
4731larger
4732than one byte that need to be transferred, and it is useful for the EC
4733driver
4734to lock these as a single transaction. This change enables single
4735transfers
4736larger than 8 bits. This effectively changes the access to the EC space
4737from
4738ByteAcc to AnyAcc, and will probably require changes to the host OS
4739Embedded
4740Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
4741bit
4742transfers. Alexey Starikovskiy, Lin Ming
4743
4744Implemented a performance enhancement for namespace search and access.
4745This
4746change enhances the performance of namespace searches and walks by adding
4747a
4748backpointer to the parent in each namespace node. On large namespaces,
4749this
4750change can improve overall ACPI performance by up to 9X. Adding a pointer
4751to
4752each namespace node increases the overall size of the internal namespace
4753by
4754about 5%, since each namespace entry usually consists of both a namespace
4755node and an ACPI operand object. However, this is the first growth of the
4756namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
4757
4758Implemented a performance optimization that reduces the number of
4759namespace
4760walks. On control method exit, only walk the namespace if the method is
4761known
4762to have created namespace objects outside of its local scope. Previously,
4763the
4764entire namespace was traversed on each control method exit. This change
4765can
4766improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
4767Moore.
4768
4769Added support to truncate I/O addresses to 16 bits for Windows
4770compatibility.
4771Some ASL code has been seen in the field that inadvertently has bits set
4772above bit 15. This feature is optional and is enabled if the BIOS
4773requests
4774any Windows OSI strings. It can also be enabled by the host OS. Matthew
4775Garrett, Bob Moore.
4776
4777Added support to limit the maximum time for the ASL Sleep() operator. To
4778prevent accidental deep sleeps, limit the maximum time that Sleep() will
4779actually sleep. Configurable, the default maximum is two seconds. ACPICA
4780bugzilla 854.
4781
4782Added run-time validation support for the _WDG and_WED Microsoft
4783predefined
4784methods. These objects are defined by "Windows Instrumentation", and are
4785not
4786part of the ACPI spec. ACPICA BZ 860.
4787
4788Expanded all statistic counters used during namespace and device
4789initialization from 16 to 32 bits in order to support very large
4790namespaces.
4791
4792Replaced all instances of %d in printf format specifiers with %u since
4793nearly
4794all integers in ACPICA are unsigned.
4795
4796Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
4797returned
4798as AE_NO_HANDLER.
4799
4800Example Code and Data Size: These are the sizes for the OS-independent
4801acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4802debug version of the code includes the debug output trace mechanism and
4803has a
4804much larger code and data size.
4805
4806  Previous Release:
4807    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
4808    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
4809  Current Release:
4810    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
4811    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
4812
48132) iASL Compiler/Disassembler and Tools:
4814
4815iASL: Added compiler support for the _WDG and_WED Microsoft predefined
4816methods. These objects are defined by "Windows Instrumentation", and are
4817not
4818part of the ACPI spec. ACPICA BZ 860.
4819
4820AcpiExec: added option to disable the memory tracking mechanism. The -dt
4821option will disable the tracking mechanism, which improves performance
4822considerably.
4823
4824AcpiExec: Restructured the command line options into -d (disable) and -e
4825(enable) options.
4826
4827----------------------------------------
482828 April 2010. Summary of changes for version 20100428:
4829
48301) ACPI CA Core Subsystem:
4831
4832Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
4833including FADT-based and GPE Block Devices, execute any _PRW methods in
4834the
4835new table, and process any _Lxx/_Exx GPE methods in the new table. Any
4836runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
4837immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
4838Devices. Provides compatibility with other ACPI implementations. Two new
4839files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
4840Moore.
4841
4842Fixed a regression introduced in version 20100331 within the table
4843manager
4844where initial table loading could fail. This was introduced in the fix
4845for
4846AcpiReallocateRootTable. Also, renamed some of fields in the table
4847manager
4848data structures to clarify their meaning and use.
4849
4850Fixed a possible allocation overrun during internal object copy in
4851AcpiUtCopySimpleObject. The original code did not correctly handle the
4852case
4853where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
4854847.
4855
4856Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
4857possible access beyond end-of-allocation. Also, now fully validate
4858descriptor
4859(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
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:  87.9K Code, 18.6K Data, 106.5K Total
4869    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
4870  Current Release:
4871    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
4872    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
4873
48742) iASL Compiler/Disassembler and Tools:
4875
4876iASL: Implemented Min/Max/Len/Gran validation for address resource
4877descriptors. This change implements validation for the address fields
4878that
4879are common to all address-type resource descriptors. These checks are
4880implemented: Checks for valid Min/Max, length within the Min/Max window,
4881valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
4882per
4883table 6-40 in the ACPI 4.0a specification. Also split the large
4884aslrestype1.c
4885and aslrestype2.c files into five new files. ACPICA BZ 840.
4886
4887iASL: Added support for the _Wxx predefined names. This support was
4888missing
4889and these names were not recognized by the compiler as valid predefined
4890names. ACPICA BZ 851.
4891
4892iASL: Added an error for all predefined names that are defined to return
4893no
4894value and thus must be implemented as Control Methods. These include all
4895of
4896the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
4897names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
4898
4899iASL: Implemented the -ts option to emit hex AML data in ASL format, as
4900an
4901ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
4902be
4903dynamically loaded via the Load() operator. Also cleaned up output for
4904the
4905-
4906ta and -tc options. ACPICA BZ 853.
4907
4908Tests: Added a new file with examples of extended iASL error checking.
4909Demonstrates the advanced error checking ability of the iASL compiler.
4910Available at tests/misc/badcode.asl.
4911
4912----------------------------------------
491331 March 2010. Summary of changes for version 20100331:
4914
49151) ACPI CA Core Subsystem:
4916
4917Completed a major update for the GPE support in order to improve support
4918for
4919shared GPEs and to simplify both host OS and ACPICA code. Added a
4920reference
4921count mechanism to support shared GPEs that require multiple device
4922drivers.
4923Several external interfaces have changed. One external interface has been
4924removed. One new external interface was added. Most of the GPE external
4925interfaces now use the GPE spinlock instead of the events mutex (and the
4926Flags parameter for many GPE interfaces has been removed.) See the
4927updated
4928ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
4929Rafael
4930Wysocki. ACPICA BZ 831.
4931
4932Changed:
4933    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
4934Removed:
4935    AcpiSetGpeType
4936New:
4937    AcpiSetGpe
4938
4939Implemented write support for DataTable operation regions. These regions
4940are
4941defined via the DataTableRegion() operator. Previously, only read support
4942was
4943implemented. The ACPI specification allows DataTableRegions to be
4944read/write,
4945however.
4946
4947Implemented a new subsystem option to force a copy of the DSDT to local
4948memory. Optionally copy the entire DSDT to local memory (instead of
4949simply
4950mapping it.) There are some (albeit very rare) BIOSs that corrupt or
4951replace
4952the original DSDT, creating the need for this option. Default is FALSE,
4953do
4954not copy the DSDT.
4955
4956Implemented detection of a corrupted or replaced DSDT. This change adds
4957support to detect a DSDT that has been corrupted and/or replaced from
4958outside
4959the OS (by firmware). This is typically catastrophic for the system, but
4960has
4961been seen on some machines. Once this problem has been detected, the DSDT
4962copy option can be enabled via system configuration. Lin Ming, Bob Moore.
4963
4964Fixed two problems with AcpiReallocateRootTable during the root table
4965copy.
4966When copying the root table to the new allocation, the length used was
4967incorrect. The new size was used instead of the current table size,
4968meaning
4969too much data was copied. Also, the count of available slots for ACPI
4970tables
4971was not set correctly. Alexey Starikovskiy, Bob Moore.
4972
4973Example Code and Data Size: These are the sizes for the OS-independent
4974acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
4975debug version of the code includes the debug output trace mechanism and
4976has a
4977much larger code and data size.
4978
4979  Previous Release:
4980    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
4981    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
4982  Current Release:
4983    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
4984    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
4985
49862) iASL Compiler/Disassembler and Tools:
4987
4988iASL: Implement limited typechecking for values returned from predefined
4989control methods. The type of any returned static (unnamed) object is now
4990validated. For example, Return(1). ACPICA BZ 786.
4991
4992iASL: Fixed a predefined name object verification regression. Fixes a
4993problem
4994introduced in version 20100304. An error is incorrectly generated if a
4995predefined name is declared as a static named object with a value defined
4996using the keywords "Zero", "One", or "Ones". Lin Ming.
4997
4998iASL: Added Windows 7 support for the -g option (get local ACPI tables)
4999by
5000reducing the requested registry access rights. ACPICA BZ 842.
5001
5002Disassembler: fixed a possible fault when generating External()
5003statements.
5004Introduced in commit ae7d6fd: Properly handle externals with parent-
5005prefix
5006(carat). Fixes a string length allocation calculation. Lin Ming.
5007
5008----------------------------------------
500904 March 2010. Summary of changes for version 20100304:
5010
50111) ACPI CA Core Subsystem:
5012
5013Fixed a possible problem with the AML Mutex handling function
5014AcpiExReleaseMutex where the function could fault under the very rare
5015condition when the interpreter has blocked, the interpreter lock is
5016released,
5017the interpreter is then reentered via the same thread, and attempts to
5018acquire an AML mutex that was previously acquired. FreeBSD report 140979.
5019Lin
5020Ming.
5021
5022Implemented additional configuration support for the AML "Debug Object".
5023Output from the debug object can now be enabled via a global variable,
5024AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
5025debugging.
5026This debug output is now available in the release version of ACPICA
5027instead
5028of just the debug version. Also, the entire debug output module can now
5029be
5030configured out of the ACPICA build if desired. One new file added,
5031executer/exdebug.c. Lin Ming, Bob Moore.
5032
5033Added header support for the ACPI MCHI table (Management Controller Host
5034Interface Table). This table was added in ACPI 4.0, but the defining
5035document
5036has only recently become available.
5037
5038Standardized output of integer values for ACPICA warnings/errors. Always
5039use
50400x prefix for hex output, always use %u for unsigned integer decimal
5041output.
5042Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
5043400
5044invocations.) These invocations were converted from the original
5045ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
5046
5047Example Code and Data Size: These are the sizes for the OS-independent
5048acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5049debug version of the code includes the debug output trace mechanism and
5050has a
5051much larger code and data size.
5052
5053  Previous Release:
5054    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
5055    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
5056  Current Release:
5057    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
5058    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
5059
50602) iASL Compiler/Disassembler and Tools:
5061
5062iASL: Implemented typechecking support for static (non-control method)
5063predefined named objects that are declared with the Name() operator. For
5064example, the type of this object is now validated to be of type Integer:
5065Name(_BBN, 1). This change migrates the compiler to using the core
5066predefined
5067name table instead of maintaining a local version. Added a new file,
5068aslpredef.c. ACPICA BZ 832.
5069
5070Disassembler: Added support for the ACPI 4.0 MCHI table.
5071
5072----------------------------------------
507321 January 2010. Summary of changes for version 20100121:
5074
50751) ACPI CA Core Subsystem:
5076
5077Added the 2010 copyright to all module headers and signons. This affects
5078virtually every file in the ACPICA core subsystem, the iASL compiler, the
5079tools/utilities, and the test suites.
5080
5081Implemented a change to the AcpiGetDevices interface to eliminate
5082unnecessary
5083invocations of the _STA method. In the case where a specific _HID is
5084requested, do not run _STA until a _HID match is found. This eliminates
5085potentially dozens of _STA calls during a search for a particular
5086device/HID,
5087which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
5088
5089Implemented an additional repair for predefined method return values.
5090Attempt
5091to repair unexpected NULL elements within returned Package objects.
5092Create
5093an
5094Integer of value zero, a NULL String, or a zero-length Buffer as
5095appropriate.
5096ACPICA BZ 818. Lin Ming, Bob Moore.
5097
5098Removed the obsolete ACPI_INTEGER data type. This type was introduced as
5099the
5100code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
5101(with
510264-bit AML integers). It is now obsolete and this change removes it from
5103the
5104ACPICA code base, replaced by UINT64. The original typedef has been
5105retained
5106for now for compatibility with existing device driver code. ACPICA BZ
5107824.
5108
5109Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
5110in
5111the parse tree object.
5112
5113Added additional warning options for the gcc-4 generation. Updated the
5114source
5115accordingly. This includes some code restructuring to eliminate
5116unreachable
5117code, elimination of some gotos, elimination of unused return values,
5118some
5119additional casting, and removal of redundant declarations.
5120
5121Example Code and Data Size: These are the sizes for the OS-independent
5122acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5123debug version of the code includes the debug output trace mechanism and
5124has a
5125much larger code and data size.
5126
5127  Previous Release:
5128    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
5129    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
5130  Current Release:
5131    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
5132    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
5133
51342) iASL Compiler/Disassembler and Tools:
5135
5136No functional changes for this release.
5137
5138----------------------------------------
513914 December 2009. Summary of changes for version 20091214:
5140
51411) ACPI CA Core Subsystem:
5142
5143Enhanced automatic data type conversions for predefined name repairs.
5144This
5145change expands the automatic repairs/conversions for predefined name
5146return
5147values to make Integers, Strings, and Buffers fully interchangeable.
5148Also,
5149a
5150Buffer can be converted to a Package of Integers if necessary. The
5151nsrepair.c
5152module was completely restructured. Lin Ming, Bob Moore.
5153
5154Implemented automatic removal of null package elements during predefined
5155name
5156repairs. This change will automatically remove embedded and trailing NULL
5157package elements from returned package objects that are defined to
5158contain
5159a
5160variable number of sub-packages. The driver is then presented with a
5161package
5162with no null elements to deal with. ACPICA BZ 819.
5163
5164Implemented a repair for the predefined _FDE and _GTM names. The expected
5165return value for both names is a Buffer of 5 DWORDs. This repair fixes
5166two
5167possible problems (both seen in the field), where a package of integers
5168is
5169returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
5170Kim.
5171
5172Implemented additional module-level code support. This change will
5173properly
5174execute module-level code that is not at the root of the namespace (under
5175a
5176Device object, etc.). Now executes the code within the current scope
5177instead
5178of the root. ACPICA BZ 762. Lin Ming.
5179
5180Fixed possible mutex acquisition errors when running _REG methods. Fixes
5181a
5182problem where mutex errors can occur when running a _REG method that is
5183in
5184the same scope as a method-defined operation region or an operation
5185region
5186under a module-level IF block. This type of code is rare, so the problem
5187has
5188not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
5189
5190Fixed a possible memory leak during module-level code execution. An
5191object
5192could be leaked for each block of executed module-level code if the
5193interpreter slack mode is enabled This change deletes any implicitly
5194returned
5195object from the module-level code block. Lin Ming.
5196
5197Removed messages for successful predefined repair(s). The repair
5198mechanism
5199was considered too wordy. Now, messages are only unconditionally emitted
5200if
5201the return object cannot be repaired. Existing messages for successful
5202repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
5203827.
5204
5205Example Code and Data Size: These are the sizes for the OS-independent
5206acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5207debug version of the code includes the debug output trace mechanism and
5208has a
5209much larger code and data size.
5210
5211  Previous Release:
5212    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
5213    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
5214  Current Release:
5215    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
5216    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
5217
52182) iASL Compiler/Disassembler and Tools:
5219
5220iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
5221files
5222were no longer automatically removed at the termination of the compile.
5223
5224acpiexec: Implemented the -f option to specify default region fill value.
5225This option specifies the value used to initialize buffers that simulate
5226operation regions. Default value is zero. Useful for debugging problems
5227that
5228depend on a specific initial value for a region or field.
5229
5230----------------------------------------
523112 November 2009. Summary of changes for version 20091112:
5232
52331) ACPI CA Core Subsystem:
5234
5235Implemented a post-order callback to AcpiWalkNamespace. The existing
5236interface only has a pre-order callback. This change adds an additional
5237parameter for a post-order callback which will be more useful for bus
5238scans.
5239ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
5240
5241Modified the behavior of the operation region memory mapping cache for
5242SystemMemory. Ensure that the memory mappings created for operation
5243regions
5244do not cross 4K page boundaries. Crossing a page boundary while mapping
5245regions can cause kernel warnings on some hosts if the pages have
5246different
5247attributes. Such regions are probably BIOS bugs, and this is the
5248workaround.
5249Linux BZ 14445. Lin Ming.
5250
5251Implemented an automatic repair for predefined methods that must return
5252sorted lists. This change will repair (by sorting) packages returned by
5253_ALR,
5254_PSS, and _TSS. Drivers can now assume that the packages are correctly
5255sorted
5256and do not contain NULL package elements. Adds one new file,
5257namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
5258
5259Fixed a possible fault during predefined name validation if a return
5260Package
5261object contains NULL elements. Also adds a warning if a NULL element is
5262followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
5263may
5264include repair or removal of all such NULL elements where possible.
5265
5266Implemented additional module-level executable AML code support. This
5267change
5268will execute module-level code that is not at the root of the namespace
5269(under a Device object, etc.) at table load time. Module-level executable
5270AML
5271code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
5272
5273Implemented a new internal function to create Integer objects. This
5274function
5275simplifies miscellaneous object creation code. ACPICA BZ 823.
5276
5277Reduced the severity of predefined repair messages, Warning to Info.
5278Since
5279the object was successfully repaired, a warning is too severe. Reduced to
5280an
5281info message for now. These messages may eventually be changed to debug-
5282only.
5283ACPICA BZ 812.
5284
5285Example Code and Data Size: These are the sizes for the OS-independent
5286acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5287debug version of the code includes the debug output trace mechanism and
5288has a
5289much larger code and data size.
5290
5291  Previous Release:
5292    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
5293    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
5294  Current Release:
5295    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
5296    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
5297
52982) iASL Compiler/Disassembler and Tools:
5299
5300iASL: Implemented Switch() with While(1) so that Break works correctly.
5301This
5302change correctly implements the Switch operator with a surrounding
5303While(1)
5304so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
5305
5306iASL: Added a message if a package initializer list is shorter than
5307package
5308length. Adds a new remark for a Package() declaration if an initializer
5309list
5310exists, but is shorter than the declared length of the package. Although
5311technically legal, this is probably a coding error and it is seen in the
5312field. ACPICA BZ 815. Lin Ming, Bob Moore.
5313
5314iASL: Fixed a problem where the compiler could fault after the maximum
5315number
5316of errors was reached (200).
5317
5318acpixtract: Fixed a possible warning for pointer cast if the compiler
5319warning
5320level set very high.
5321
5322----------------------------------------
532313 October 2009. Summary of changes for version 20091013:
5324
53251) ACPI CA Core Subsystem:
5326
5327Fixed a problem where an Operation Region _REG method could be executed
5328more
5329than once. If a custom address space handler is installed by the host
5330before
5331the "initialize operation regions" phase of the ACPICA initialization,
5332any
5333_REG methods for that address space could be executed twice. This change
5334fixes the problem. ACPICA BZ 427. Lin Ming.
5335
5336Fixed a possible memory leak for the Scope() ASL operator. When the exact
5337invocation of "Scope(\)" is executed (change scope to root), one internal
5338operand object was leaked. Lin Ming.
5339
5340Implemented a run-time repair for the _MAT predefined method. If the _MAT
5341return value is defined as a Field object in the AML, and the field
5342size is less than or equal to the default width of an integer (32 or
534364),_MAT
5344can incorrectly return an Integer instead of a Buffer. ACPICA now
5345automatically repairs this problem. ACPICA BZ 810.
5346
5347Implemented a run-time repair for the _BIF and _BIX predefined methods.
5348The
5349"OEM Information" field is often incorrectly returned as an Integer with
5350value zero if the field is not supported by the platform. This is due to
5351an
5352ambiguity in the ACPI specification. The field should always be a string.
5353ACPICA now automatically repairs this problem by returning a NULL string
5354within the returned Package. ACPICA BZ 807.
5355
5356Example Code and Data Size: These are the sizes for the OS-independent
5357acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5358debug version of the code includes the debug output trace mechanism and
5359has a
5360much larger code and data size.
5361
5362  Previous Release:
5363    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
5364    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
5365  Current Release:
5366    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
5367    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
5368
53692) iASL Compiler/Disassembler and Tools:
5370
5371Disassembler: Fixed a problem where references to external symbols that
5372contained one or more parent-prefixes (carats) were not handled
5373correctly,
5374possibly causing a fault. ACPICA BZ 806. Lin Ming.
5375
5376Disassembler: Restructured the code so that all functions that handle
5377external symbols are in a single module. One new file is added,
5378common/dmextern.c.
5379
5380AML Debugger: Added a max count argument for the Batch command (which
5381executes multiple predefined methods within the namespace.)
5382
5383iASL: Updated the compiler documentation (User Reference.) Available at
5384http://www.acpica.org/documentation/. ACPICA BZ 750.
5385
5386AcpiXtract: Updated for Lint and other formatting changes. Close all open
5387files.
5388
5389----------------------------------------
539003 September 2009. Summary of changes for version 20090903:
5391
53921) ACPI CA Core Subsystem:
5393
5394For Windows Vista compatibility, added the automatic execution of an _INI
5395method located at the namespace root (\_INI). This method is executed at
5396table load time. This support is in addition to the automatic execution
5397of
5398\_SB._INI. Lin Ming.
5399
5400Fixed a possible memory leak in the interpreter for AML package objects
5401if
5402the package initializer list is longer than the defined size of the
5403package.
5404This apparently can only happen if the BIOS changes the package size on
5405the
5406fly (seen in a _PSS object), as ASL compilers do not allow this. The
5407interpreter will truncate the package to the defined size (and issue an
5408error
5409message), but previously could leave the extra objects undeleted if they
5410were
5411pre-created during the argument processing (such is the case if the
5412package
5413consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
5414
5415Fixed a problem seen when a Buffer or String is stored to itself via ASL.
5416This has been reported in the field. Previously, ACPICA would zero out
5417the
5418buffer/string. Now, the operation is treated as a noop. Provides Windows
5419compatibility. ACPICA BZ 803. Lin Ming.
5420
5421Removed an extraneous error message for ASL constructs of the form
5422Store(LocalX,LocalX) when LocalX is uninitialized. These curious
5423statements
5424are seen in many BIOSs and are once again treated as NOOPs and no error
5425is
5426emitted when they are encountered. ACPICA BZ 785.
5427
5428Fixed an extraneous warning message if a _DSM reserved method returns a
5429Package object. _DSM can return any type of object, so validation on the
5430return type cannot be performed. ACPICA BZ 802.
5431
5432Example Code and Data Size: These are the sizes for the OS-independent
5433acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5434debug version of the code includes the debug output trace mechanism and
5435has a
5436much larger code and data size.
5437
5438  Previous Release:
5439    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
5440    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
5441  Current Release:
5442    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
5443    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
5444
54452) iASL Compiler/Disassembler and Tools:
5446
5447iASL: Fixed a problem with the use of the Alias operator and Resource
5448Templates. The correct alias is now constructed and no error is emitted.
5449ACPICA BZ 738.
5450
5451iASL: Implemented the -I option to specify additional search directories
5452for
5453include files. Allows multiple additional search paths for include files.
5454Directories are searched in the order specified on the command line
5455(after
5456the local directory is searched.) ACPICA BZ 800.
5457
5458iASL: Fixed a problem where the full pathname for include files was not
5459emitted for warnings/errors. This caused the IDE support to not work
5460properly. ACPICA BZ 765.
5461
5462iASL: Implemented the -@ option to specify a Windows-style response file
5463containing additional command line options. ACPICA BZ 801.
5464
5465AcpiExec: Added support to load multiple AML files simultaneously (such
5466as
5467a
5468DSDT and multiple SSDTs). Also added support for wildcards within the AML
5469pathname. These features allow all machine tables to be easily loaded and
5470debugged together. ACPICA BZ 804.
5471
5472Disassembler: Added missing support for disassembly of HEST table Error
5473Bank
5474subtables.
5475
5476----------------------------------------
547730 July 2009. Summary of changes for version 20090730:
5478
5479The ACPI 4.0 implementation for ACPICA is complete with this release.
5480
54811) ACPI CA Core Subsystem:
5482
5483ACPI 4.0: Added header file support for all new and changed ACPI tables.
5484Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
5485new
5486for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
5487BERT,
5488EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
5489There
5490have been some ACPI 4.0 changes to other existing tables. Split the large
5491actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
5492
5493ACPI 4.0: Implemented predefined name validation for all new names. There
5494are
549531 new names in ACPI 4.0. The predefined validation module was split into
5496two
5497files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
5498
5499Implemented support for so-called "module-level executable code". This is
5500executable AML code that exists outside of any control method and is
5501intended
5502to be executed at table load time. Although illegal since ACPI 2.0, this
5503type
5504of code still exists and is apparently still being created. Blocks of
5505this
5506code are now detected and executed as intended. Currently, the code
5507blocks
5508must exist under either an If, Else, or While construct; these are the
5509typical cases seen in the field. ACPICA BZ 762. Lin Ming.
5510
5511Implemented an automatic dynamic repair for predefined names that return
5512nested Package objects. This applies to predefined names that are defined
5513to
5514return a variable-length Package of sub-packages. If the number of sub-
5515packages is one, BIOS code is occasionally seen that creates a simple
5516single
5517package with no sub-packages. This code attempts to fix the problem by
5518wrapping a new package object around the existing package. These methods
5519can
5520be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
5521BZ
5522790.
5523
5524Fixed a regression introduced in 20090625 for the AcpiGetDevices
5525interface.
5526The _HID/_CID matching was broken and no longer matched IDs correctly.
5527ACPICA
5528BZ 793.
5529
5530Fixed a problem with AcpiReset where the reset would silently fail if the
5531register was one of the protected I/O ports. AcpiReset now bypasses the
5532port
5533validation mechanism. This may eventually be driven into the
5534AcpiRead/Write
5535interfaces.
5536
5537Fixed a regression related to the recent update of the AcpiRead/Write
5538interfaces. A sleep/suspend could fail if the optional PM2 Control
5539register
5540does not exist during an attempt to write the Bus Master Arbitration bit.
5541(However, some hosts already delete the code that writes this bit, and
5542the
5543code may in fact be obsolete at this date.) ACPICA BZ 799.
5544
5545Fixed a problem where AcpiTerminate could fault if inadvertently called
5546twice
5547in succession. ACPICA BZ 795.
5548
5549Example Code and Data Size: These are the sizes for the OS-independent
5550acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5551debug version of the code includes the debug output trace mechanism and
5552has a
5553much larger code and data size.
5554
5555  Previous Release:
5556    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
5557    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
5558  Current Release:
5559    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
5560    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
5561
55622) iASL Compiler/Disassembler and Tools:
5563
5564ACPI 4.0: Implemented disassembler support for all new ACPI tables and
5565changes to existing tables. ACPICA BZ 775.
5566
5567----------------------------------------
556825 June 2009. Summary of changes for version 20090625:
5569
5570The ACPI 4.0 Specification was released on June 16 and is available at
5571www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
5572continue for the next few releases.
5573
55741) ACPI CA Core Subsystem:
5575
5576ACPI 4.0: Implemented interpreter support for the IPMI operation region
5577address space. Includes support for bi-directional data buffers and an
5578IPMI
5579address space handler (to be installed by an IPMI device driver.) ACPICA
5580BZ
5581773. Lin Ming.
5582
5583ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
5584Includes
5585support in both the header files and the disassembler.
5586
5587Completed a major update for the AcpiGetObjectInfo external interface.
5588Changes include:
5589 - Support for variable, unlimited length HID, UID, and CID strings.
5590 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
5591etc.)
5592 - Call the _SxW power methods on behalf of a device object.
5593 - Determine if a device is a PCI root bridge.
5594 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
5595These changes will require an update to all callers of this interface.
5596See
5597the updated ACPICA Programmer Reference for details. One new source file
5598has
5599been added - utilities/utids.c. ACPICA BZ 368, 780.
5600
5601Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
5602transfers. The Value parameter has been extended from 32 bits to 64 bits
5603in
5604order to support new ACPI 4.0 tables. These changes will require an
5605update
5606to
5607all callers of these interfaces. See the ACPICA Programmer Reference for
5608details. ACPICA BZ 768.
5609
5610Fixed several problems with AcpiAttachData. The handler was not invoked
5611when
5612the host node was deleted. The data sub-object was not automatically
5613deleted
5614when the host node was deleted. The interface to the handler had an
5615unused
5616parameter, this was removed. ACPICA BZ 778.
5617
5618Enhanced the function that dumps ACPI table headers. All non-printable
5619characters in the string fields are now replaced with '?' (Signature,
5620OemId,
5621OemTableId, and CompilerId.) ACPI tables with non-printable characters in
5622these fields are occasionally seen in the field. ACPICA BZ 788.
5623
5624Fixed a problem with predefined method repair code where the code that
5625attempts to repair/convert an object of incorrect type is only executed
5626on
5627the first time the predefined method is called. The mechanism that
5628disables
5629warnings on subsequent calls was interfering with the repair mechanism.
5630ACPICA BZ 781.
5631
5632Fixed a possible memory leak in the predefined validation/repair code
5633when
5634a
5635buffer is automatically converted to an expected string object.
5636
5637Removed obsolete 16-bit files from the distribution and from the current
5638git
5639tree head. ACPICA BZ 776.
5640
5641Example Code and Data Size: These are the sizes for the OS-independent
5642acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5643debug version of the code includes the debug output trace mechanism and
5644has a
5645much larger code and data size.
5646
5647  Previous Release:
5648    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
5649    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
5650  Current Release:
5651    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
5652    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
5653
56542) iASL Compiler/Disassembler and Tools:
5655
5656ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
5657operation region keyword. ACPICA BZ 771, 772. Lin Ming.
5658
5659ACPI 4.0: iASL - implemented compile-time validation support for all new
5660predefined names and control methods (31 total). ACPICA BZ 769.
5661
5662----------------------------------------
566321 May 2009. Summary of changes for version 20090521:
5664
56651) ACPI CA Core Subsystem:
5666
5667Disabled the preservation of the SCI enable bit in the PM1 control
5668register.
5669The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
5670to
5671be
5672a "preserved" bit - "OSPM always preserves this bit position", section
56734.7.3.2.1. However, some machines fail if this bit is in fact preserved
5674because the bit needs to be explicitly set by the OS as a workaround. No
5675machines fail if the bit is not preserved. Therefore, ACPICA no longer
5676attempts to preserve this bit.
5677
5678Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
5679incorrectly formed _PRT package could cause a fault. Added validation to
5680ensure that each package element is actually a sub-package.
5681
5682Implemented a new interface to install or override a single control
5683method,
5684AcpiInstallMethod. This interface is useful when debugging in order to
5685repair
5686an existing method or to install a missing method without having to
5687override
5688the entire ACPI table. See the ACPICA Programmer Reference for use and
5689examples. Lin Ming, Bob Moore.
5690
5691Fixed several reference count issues with the DdbHandle object that is
5692created from a Load or LoadTable operator. Prevent premature deletion of
5693the
5694object. Also, mark the object as invalid once the table has been
5695unloaded.
5696This is needed because the handle itself may not be deleted after the
5697table
5698unload, depending on whether it has been stored in a named object by the
5699caller. Lin Ming.
5700
5701Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
5702mutexes of the same sync level are acquired but then not released in
5703strict
5704opposite order, the internally maintained Current Sync Level becomes
5705confused
5706and can cause subsequent execution errors. ACPICA BZ 471.
5707
5708Changed the allowable release order for ASL mutex objects. The ACPI 4.0
5709specification has been changed to make the SyncLevel for mutex objects
5710more
5711useful. When releasing a mutex, the SyncLevel of the mutex must now be
5712the
5713same as the current sync level. This makes more sense than the previous
5714rule
5715(SyncLevel less than or equal). This change updates the code to match the
5716specification.
5717
5718Fixed a problem with the local version of the AcpiOsPurgeCache function.
5719The
5720(local) cache must be locked during all cache object deletions. Andrew
5721Baumann.
5722
5723Updated the Load operator to use operation region interfaces. This
5724replaces
5725direct memory mapping with region access calls. Now, all region accesses
5726go
5727through the installed region handler as they should.
5728
5729Simplified and optimized the NsGetNextNode function. Reduced parameter
5730count
5731and reduced code for this frequently used function.
5732
5733Example Code and Data Size: These are the sizes for the OS-independent
5734acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5735debug version of the code includes the debug output trace mechanism and
5736has a
5737much larger code and data size.
5738
5739  Previous Release:
5740    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
5741    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
5742  Current Release:
5743    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
5744    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
5745
57462) iASL Compiler/Disassembler and Tools:
5747
5748Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
5749problems
5750with sub-table disassembly and handling invalid sub-tables. Attempt
5751recovery
5752after an invalid sub-table ID.
5753
5754----------------------------------------
575522 April 2009. Summary of changes for version 20090422:
5756
57571) ACPI CA Core Subsystem:
5758
5759Fixed a compatibility issue with the recently released I/O port
5760protection
5761mechanism. For windows compatibility, 1) On a port protection violation,
5762simply ignore the request and do not return an exception (allow the
5763control
5764method to continue execution.) 2) If only part of the request overlaps a
5765protected port, read/write the individual ports that are not protected.
5766Linux
5767BZ 13036. Lin Ming
5768
5769Enhanced the execution of the ASL/AML BreakPoint operator so that it
5770actually
5771breaks into the AML debugger if the debugger is present. This matches the
5772ACPI-defined behavior.
5773
5774Fixed several possible warnings related to the use of the configurable
5775ACPI_THREAD_ID. This type can now be configured as either an integer or a
5776pointer with no warnings. Also fixes several warnings in printf-like
5777statements for the 64-bit build when the type is configured as a pointer.
5778ACPICA BZ 766, 767.
5779
5780Fixed a number of possible warnings when compiling with gcc 4+ (depending
5781on
5782warning options.) Examples include printf formats, aliasing, unused
5783globals,
5784missing prototypes, missing switch default statements, use of non-ANSI
5785library functions, use of non-ANSI constructs. See generate/unix/Makefile
5786for
5787a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
5788
5789Example Code and Data Size: These are the sizes for the OS-independent
5790acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
5791debug version of the code includes the debug output trace mechanism and
5792has a
5793much larger code and data size.
5794
5795  Previous Release:
5796    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
5797    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
5798  Current Release:
5799    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
5800    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
5801
58022) iASL Compiler/Disassembler and Tools:
5803
5804iASL: Fixed a generation warning from Bison 2.3 and fixed several
5805warnings
5806on
5807the 64-bit build.
5808
5809iASL: Fixed a problem where the Unix/Linux versions of the compiler could
5810not
5811correctly digest Windows/DOS formatted files (with CR/LF).
5812
5813iASL: Added a new option for "quiet mode" (-va) that produces only the
5814compilation summary, not individual errors and warnings. Useful for large
5815batch compilations.
5816
5817AcpiExec: Implemented a new option (-z) to enable a forced
5818semaphore/mutex
5819timeout that can be used to detect hang conditions during execution of
5820AML
5821code (includes both internal semaphores and AML-defined mutexes and
5822events.)
5823
5824Added new makefiles for the generation of acpica in a generic unix-like
5825environment. These makefiles are intended to generate the acpica tools
5826and
5827utilities from the original acpica git source tree structure.
5828
5829Test Suites: Updated and cleaned up the documentation files. Updated the
5830copyrights to 2009, affecting all source files. Use the new version of
5831iASL
5832with quiet mode. Increased the number of available semaphores in the
5833Windows
5834OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
5835added
5836an alternate implementation of the semaphore timeout to allow aslts to
5837execute fully on Cygwin.
5838
5839----------------------------------------
584020 March 2009. Summary of changes for version 20090320:
5841
58421) ACPI CA Core Subsystem:
5843
5844Fixed a possible race condition between AcpiWalkNamespace and dynamic
5845table
5846unloads. Added a reader/writer locking mechanism to allow multiple
5847concurrent
5848namespace walks (readers), but block a dynamic table unload until it can
5849gain
5850exclusive write access to the namespace. This fixes a problem where a
5851table
5852unload could (possibly catastrophically) delete the portion of the
5853namespace
5854that is currently being examined by a walk. Adds a new file, utlock.c,
5855that
5856implements the reader/writer lock mechanism. ACPICA BZ 749.
5857
5858Fixed a regression introduced in version 20090220 where a change to the
5859FADT
5860handling could cause the ACPICA subsystem to access non-existent I/O
5861ports.
5862
5863Modified the handling of FADT register and table (FACS/DSDT) addresses.
5864The
5865FADT can contain both 32-bit and 64-bit versions of these addresses.
5866Previously, the 64-bit versions were favored, meaning that if both 32 and
586764
5868versions were valid, but not equal, the 64-bit version was used. This was
5869found to cause some machines to fail. Now, in this case, the 32-bit
5870version
5871is used instead. This now matches the Windows behavior.
5872
5873Implemented a new mechanism to protect certain I/O ports. Provides
5874Microsoft
5875compatibility and protects the standard PC I/O ports from access via AML
5876code. Adds a new file, hwvalid.c
5877
5878Fixed a possible extraneous warning message from the FADT support. The
5879message warns of a 32/64 length mismatch between the legacy and GAS
5880definitions for a register.
5881
5882Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
5883is
5884made obsolete by the port protection mechanism above. It was previously
5885used
5886to validate the entire address range of an operation region, which could
5887be
5888incorrect if the range included illegal ports, but fields within the
5889operation region did not actually access those ports. Validation is now
5890performed on a per-field basis instead of the entire region.
5891
5892Modified the handling of the PM1 Status Register ignored bit (bit 11.)
5893Ignored bits must be "preserved" according to the ACPI spec. Usually,
5894this
5895means a read/modify/write when writing to the register. However, for
5896status
5897registers, writing a one means clear the event. Writing a zero means
5898preserve
5899the event (do not clear.) This behavior is clarified in the ACPI 4.0
5900spec,
5901and the ACPICA code now simply always writes a zero to the ignored bit.
5902
5903Modified the handling of ignored bits for the PM1 A/B Control Registers.
5904As
5905per the ACPI specification, for the control registers, preserve
5906(read/modify/write) all bits that are defined as either reserved or
5907ignored.
5908
5909Updated the handling of write-only bits in the PM1 A/B Control Registers.
5910When reading the register, zero the write-only bits as per the ACPI spec.
5911ACPICA BZ 443. Lin Ming.
5912
5913Removed "Linux" from the list of supported _OSI strings. Linux no longer
5914wants to reply true to this request. The Windows strings are the only
5915paths
5916through the AML that are tested and known to work properly.
5917
5918  Previous Release:
5919    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
5920    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
5921  Current Release:
5922    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
5923    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
5924
59252) iASL Compiler/Disassembler and Tools:
5926
5927Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
5928and
5929aetables.c
5930
5931----------------------------------------
593220 February 2009. Summary of changes for version 20090220:
5933
59341) ACPI CA Core Subsystem:
5935
5936Optimized the ACPI register locking. Removed locking for reads from the
5937ACPI
5938bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
5939is
5940not required when reading the single-bit registers. The
5941AcpiGetRegisterUnlocked function is no longer needed and has been
5942removed.
5943This will improve performance for reads on these registers. ACPICA BZ
5944760.
5945
5946Fixed the parameter validation for AcpiRead/Write. Now return
5947AE_BAD_PARAMETER if the input register pointer is null, and
5948AE_BAD_ADDRESS
5949if
5950the register has an address of zero. Previously, these cases simply
5951returned
5952AE_OK. For optional registers such as PM1B status/enable/control, the
5953caller
5954should check for a valid register address before calling. ACPICA BZ 748.
5955
5956Renamed the external ACPI bit register access functions. Renamed
5957AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
5958functions. The new names are AcpiReadBitRegister and
5959AcpiWriteBitRegister.
5960Also, restructured the code for these functions by simplifying the code
5961path
5962and condensing duplicate code to reduce code size.
5963
5964Added new functions to transparently handle the possibly split PM1 A/B
5965registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
5966functions
5967now handle the split registers for PM1 Status, Enable, and Control.
5968ACPICA
5969BZ
5970746.
5971
5972Added a function to handle the PM1 control registers,
5973AcpiHwWritePm1Control.
5974This function writes both of the PM1 control registers (A/B). These
5975registers
5976are different than the PM1 A/B status and enable registers in that
5977different
5978values can be written to the A/B registers. Most notably, the SLP_TYP
5979bits
5980can be different, as per the values returned from the _Sx predefined
5981methods.
5982
5983Removed an extra register write within AcpiHwClearAcpiStatus. This
5984function
5985was writing an optional PM1B status register twice. The existing call to
5986the
5987low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
5988A/B
5989register. ACPICA BZ 751.
5990
5991Split out the PM1 Status registers from the FADT. Added new globals for
5992these
5993registers (A/B), similar to the way the PM1 Enable registers are handled.
5994Instead of overloading the FADT Event Register blocks. This makes the
5995code
5996clearer and less prone to error.
5997
5998Fixed the warning message for when the platform contains too many ACPI
5999tables
6000for the default size of the global root table data structure. The
6001calculation
6002for the truncation value was incorrect.
6003
6004Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
6005obsolete macro, since it is now a simple reference to ->common.type.
6006There
6007were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
6008
6009Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
6010TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
6011simply SLEEP_TYPE. ACPICA BZ 754.
6012
6013Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
6014function is only needed on 64-bit host operating systems and is thus not
6015included for 32-bit hosts.
6016
6017Debug output: print the input and result for invocations of the _OSI
6018reserved
6019control method via the ACPI_LV_INFO debug level. Also, reduced some of
6020the
6021verbosity of this debug level. Len Brown.
6022
6023Example Code and Data Size: These are the sizes for the OS-independent
6024acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6025debug version of the code includes the debug output trace mechanism and
6026has a
6027much larger code and data size.
6028
6029  Previous Release:
6030    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
6031    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
6032  Current Release:
6033    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
6034    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
6035
60362) iASL Compiler/Disassembler and Tools:
6037
6038Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
6039various legal performance profiles.
6040
6041----------------------------------------
604223 January 2009. Summary of changes for version 20090123:
6043
60441) ACPI CA Core Subsystem:
6045
6046Added the 2009 copyright to all module headers and signons. This affects
6047virtually every file in the ACPICA core subsystem, the iASL compiler, and
6048the tools/utilities.
6049
6050Implemented a change to allow the host to override any ACPI table,
6051including
6052dynamically loaded tables. Previously, only the DSDT could be replaced by
6053the
6054host. With this change, the AcpiOsTableOverride interface is called for
6055each
6056table found in the RSDT/XSDT during ACPICA initialization, and also
6057whenever
6058a table is dynamically loaded via the AML Load operator.
6059
6060Updated FADT flag definitions, especially the Boot Architecture flags.
6061
6062Debugger: For the Find command, automatically pad the input ACPI name
6063with
6064underscores if the name is shorter than 4 characters. This enables a
6065match
6066with the actual namespace entry which is itself padded with underscores.
6067
6068Example Code and Data Size: These are the sizes for the OS-independent
6069acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6070debug version of the code includes the debug output trace mechanism and
6071has a
6072much larger code and data size.
6073
6074  Previous Release:
6075    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
6076    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
6077  Current Release:
6078    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
6079    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
6080
60812) iASL Compiler/Disassembler and Tools:
6082
6083Fix build error under Bison-2.4.
6084
6085Dissasembler: Enhanced FADT support. Added decoding of the Boot
6086Architecture
6087flags. Now decode all flags, regardless of the FADT version. Flag output
6088includes the FADT version which first defined each flag.
6089
6090The iASL -g option now dumps the RSDT to a file (in addition to the FADT
6091and
6092DSDT). Windows only.
6093
6094----------------------------------------
609504 December 2008. Summary of changes for version 20081204:
6096
60971) ACPI CA Core Subsystem:
6098
6099The ACPICA Programmer Reference has been completely updated and revamped
6100for
6101this release. This includes updates to the external interfaces, OSL
6102interfaces, the overview sections, and the debugger reference.
6103
6104Several new ACPICA interfaces have been implemented and documented in the
6105programmer reference:
6106AcpiReset - Writes the reset value to the FADT-defined reset register.
6107AcpiDisableAllGpes - Disable all available GPEs.
6108AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
6109AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
6110AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
6111AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
6112AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
6113
6114Most of the public ACPI hardware-related interfaces have been moved to a
6115new
6116file, components/hardware/hwxface.c
6117
6118Enhanced the FADT parsing and low-level ACPI register access: The ACPI
6119register lengths within the FADT are now used, and the low level ACPI
6120register access no longer hardcodes the ACPI register lengths. Given that
6121there may be some risk in actually trusting the FADT register lengths, a
6122run-
6123time option was added to fall back to the default hardcoded lengths if
6124the
6125FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
6126option is set to true for now, and a warning is issued if a suspicious
6127FADT
6128register length is overridden with the default value.
6129
6130Fixed a reference count issue in NsRepairObject. This problem was
6131introduced
6132in version 20081031 as part of a fix to repair Buffer objects within
6133Packages. Lin Ming.
6134
6135Added semaphore support to the Linux/Unix application OS-services layer
6136(OSL). ACPICA BZ 448. Lin Ming.
6137
6138Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
6139will
6140be implemented in the OSL, or will binary semaphores be used instead.
6141
6142Example Code and Data Size: These are the sizes for the OS-independent
6143acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6144debug version of the code includes the debug output trace mechanism and
6145has a
6146much larger code and data size.
6147
6148  Previous Release:
6149    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
6150    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
6151  Current Release:
6152    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
6153    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
6154
61552) iASL Compiler/Disassembler and Tools:
6156
6157iASL: Completed the '-e' option to include additional ACPI tables in
6158order
6159to
6160aid with disassembly and External statement generation. ACPICA BZ 742.
6161Lin
6162Ming.
6163
6164iASL: Removed the "named object in while loop" error. The compiler cannot
6165determine how many times a loop will execute. ACPICA BZ 730.
6166
6167Disassembler: Implemented support for FADT revision 2 (MS extension).
6168ACPICA
6169BZ 743.
6170
6171Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
6172MCFG).
6173
6174----------------------------------------
617531 October 2008. Summary of changes for version 20081031:
6176
61771) ACPI CA Core Subsystem:
6178
6179Restructured the ACPICA header files into public/private. acpi.h now
6180includes
6181only the "public" acpica headers. All other acpica headers are "private"
6182and
6183should not be included by acpica users. One new file, accommon.h is used
6184to
6185include the commonly used private headers for acpica code generation.
6186Future
6187plans include moving all private headers to a new subdirectory.
6188
6189Implemented an automatic Buffer->String return value conversion for
6190predefined ACPI methods. For these methods (such as _BIF), added
6191automatic
6192conversion for return objects that are required to be a String, but a
6193Buffer
6194was found instead. This can happen when reading string battery data from
6195an
6196operation region, because it used to be difficult to convert the data
6197from
6198buffer to string from within the ASL. Ensures that the host OS is
6199provided
6200with a valid null-terminated string. Linux BZ 11822.
6201
6202Updated the FACS waking vector interfaces. Split
6203AcpiSetFirmwareWakingVector
6204into two: one for the 32-bit vector, another for the 64-bit vector. This
6205is
6206required because the host OS must setup the wake much differently for
6207each
6208vector (real vs. protected mode, etc.) and the interface itself should
6209not
6210be
6211deciding which vector to use. Also, eliminated the
6212GetFirmwareWakingVector
6213interface, as it served no purpose (only the firmware reads the vector,
6214OS
6215only writes the vector.) ACPICA BZ 731.
6216
6217Implemented a mechanism to escape infinite AML While() loops. Added a
6218loop
6219counter to force exit from AML While loops if the count becomes too
6220large.
6221This can occur in poorly written AML when the hardware does not respond
6222within a while loop and the loop does not implement a timeout. The
6223maximum
6224loop count is configurable. A new exception code is returned when a loop
6225is
6226broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
6227
6228Optimized the execution of AML While loops. Previously, a control state
6229object was allocated and freed for each execution of the loop. The
6230optimization is to simply reuse the control state for each iteration.
6231This
6232speeds up the raw loop execution time by about 5%.
6233
6234Enhanced the implicit return mechanism. For Windows compatibility, return
6235an
6236implicit integer of value zero for methods that contain no executable
6237code.
6238Such methods are seen in the field as stubs (presumably), and can cause
6239drivers to fail if they expect a return value. Lin Ming.
6240
6241Allow multiple backslashes as root prefixes in namepaths. In a fully
6242qualified namepath, allow multiple backslash prefixes. This can happen
6243(and
6244is seen in the field) because of the use of a double-backslash in strings
6245(since backslash is the escape character) causing confusion. ACPICA BZ
6246739
6247Lin Ming.
6248
6249Emit a warning if two different FACS or DSDT tables are discovered in the
6250FADT. Checks if there are two valid but different addresses for the FACS
6251and
6252DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
6253
6254Consolidated the method argument count validation code. Merged the code
6255that
6256validates control method argument counts into the predefined validation
6257module. Eliminates possible multiple warnings for incorrect argument
6258counts.
6259
6260Implemented ACPICA example code. Includes code for ACPICA initialization,
6261handler installation, and calling a control method. Available at
6262source/tools/examples.
6263
6264Added a global pointer for FACS table to simplify internal FACS access.
6265Use
6266the global pointer instead of using AcpiGetTableByIndex for each FACS
6267access.
6268This simplifies the code for the Global Lock and the Firmware Waking
6269Vector(s).
6270
6271Example Code and Data Size: These are the sizes for the OS-independent
6272acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6273debug version of the code includes the debug output trace mechanism and
6274has a
6275much larger code and data size.
6276
6277  Previous Release:
6278    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
6279    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
6280  Current Release:
6281    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
6282    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
6283
62842) iASL Compiler/Disassembler and Tools:
6285
6286iASL: Improved disassembly of external method calls. Added the -e option
6287to
6288allow the inclusion of additional ACPI tables to help with the
6289disassembly
6290of
6291method invocations and the generation of external declarations during the
6292disassembly. Certain external method invocations cannot be disassembled
6293properly without the actual declaration of the method. Use the -e option
6294to
6295include the table where the external method(s) are actually declared.
6296Most
6297useful for disassembling SSDTs that make method calls back to the master
6298DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
6299-d
6300-e dsdt.aml ssdt1.aml
6301
6302iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
6303problem where the use of an alias within a namepath would result in a not
6304found error or cause the compiler to fault. Also now allows forward
6305references from the Alias operator itself. ACPICA BZ 738.
6306
6307----------------------------------------
630826 September 2008. Summary of changes for version 20080926:
6309
63101) ACPI CA Core Subsystem:
6311
6312Designed and implemented a mechanism to validate predefined ACPI methods
6313and
6314objects. This code validates the predefined ACPI objects (objects whose
6315names
6316start with underscore) that appear in the namespace, at the time they are
6317evaluated. The argument count and the type of the returned object are
6318validated against the ACPI specification. The purpose of this validation
6319is
6320to detect problems with the BIOS-implemented predefined ACPI objects
6321before
6322the results are returned to the ACPI-related drivers. Future enhancements
6323may
6324include actual repair of incorrect return objects where possible. Two new
6325files are nspredef.c and acpredef.h.
6326
6327Fixed a fault in the AML parser if a memory allocation fails during the
6328Op
6329completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
6330
6331Fixed an issue with implicit return compatibility. This change improves
6332the
6333implicit return mechanism to be more compatible with the MS interpreter.
6334Lin
6335Ming, ACPICA BZ 349.
6336
6337Implemented support for zero-length buffer-to-string conversions. Allow
6338zero
6339length strings during interpreter buffer-to-string conversions. For
6340example,
6341during the ToDecimalString and ToHexString operators, as well as implicit
6342conversions. Fiodor Suietov, ACPICA BZ 585.
6343
6344Fixed two possible memory leaks in the error exit paths of
6345AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
6346are
6347similar in that they use a stack of state objects in order to eliminate
6348recursion. The stack must be fully unwound and deallocated if an error
6349occurs. Lin Ming. ACPICA BZ 383.
6350
6351Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
6352global
6353ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
6354Moore ACPICA BZ 442.
6355
6356Removed the obsolete version number in module headers. Removed the
6357"$Revision" number that appeared in each module header. This version
6358number
6359was useful under SourceSafe and CVS, but has no meaning under git. It is
6360not
6361only incorrect, it could also be misleading.
6362
6363Example Code and Data Size: These are the sizes for the OS-independent
6364acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6365debug version of the code includes the debug output trace mechanism and
6366has a
6367much larger code and data size.
6368
6369  Previous Release:
6370    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
6371    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
6372  Current Release:
6373    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
6374    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
6375
6376----------------------------------------
637729 August 2008. Summary of changes for version 20080829:
6378
63791) ACPI CA Core Subsystem:
6380
6381Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
6382Reference. Changes include the elimination of cheating on the Object
6383field
6384for the DdbHandle subtype, addition of a reference class field to
6385differentiate the various reference types (instead of an AML opcode), and
6386the
6387cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
6388
6389Reduce an error to a warning for an incorrect method argument count.
6390Previously aborted with an error if too few arguments were passed to a
6391control method via the external ACPICA interface. Now issue a warning
6392instead
6393and continue. Handles the case where the method inadvertently declares
6394too
6395many arguments, but does not actually use the extra ones. Applies mainly
6396to
6397the predefined methods. Lin Ming. Linux BZ 11032.
6398
6399Disallow the evaluation of named object types with no intrinsic value.
6400Return
6401AE_TYPE for objects that have no value and therefore evaluation is
6402undefined:
6403Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
6404of
6405these types were allowed, but an exception would be generated at some
6406point
6407during the evaluation. Now, the error is generated up front.
6408
6409Fixed a possible memory leak in the AcpiNsGetExternalPathname function
6410(nsnames.c). Fixes a leak in the error exit path.
6411
6412Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
6413debug
6414levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
6415ACPI_EXCEPTION
6416interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
6417ACPI_LV_EVENTS.
6418
6419Removed obsolete and/or unused exception codes from the acexcep.h header.
6420There is the possibility that certain device drivers may be affected if
6421they
6422use any of these exceptions.
6423
6424The ACPICA documentation has been added to the public git source tree,
6425under
6426acpica/documents. Included are the ACPICA programmer reference, the iASL
6427compiler reference, and the changes.txt release logfile.
6428
6429Example Code and Data Size: These are the sizes for the OS-independent
6430acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6431debug version of the code includes the debug output trace mechanism and
6432has a
6433much larger code and data size.
6434
6435  Previous Release:
6436    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
6437    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
6438  Current Release:
6439    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
6440    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
6441
64422) iASL Compiler/Disassembler and Tools:
6443
6444Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
6445defines _SCP with 3 arguments. Previous versions defined it with only 1
6446argument. iASL now allows both definitions.
6447
6448iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
6449zero-
6450length subtables when disassembling ACPI tables. Also fixed a couple of
6451errors where a full 16-bit table type field was not extracted from the
6452input
6453properly.
6454
6455acpisrc: Improve comment counting mechanism for generating source code
6456statistics. Count first and last lines of multi-line comments as
6457whitespace,
6458not comment lines. Handle Linux legal header in addition to standard
6459acpica
6460header.
6461
6462----------------------------------------
6463
646429 July 2008. Summary of changes for version 20080729:
6465
64661) ACPI CA Core Subsystem:
6467
6468Fix a possible deadlock in the GPE dispatch. Remove call to
6469AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
6470attempt
6471to acquire the GPE lock but can deadlock since the GPE lock is already
6472held
6473at dispatch time. This code was introduced in version 20060831 as a
6474response
6475to Linux BZ 6881 and has since been removed from Linux.
6476
6477Add a function to dereference returned reference objects. Examines the
6478return
6479object from a call to AcpiEvaluateObject. Any Index or RefOf references
6480are
6481automatically dereferenced in an attempt to return something useful
6482(these
6483reference types cannot be converted into an external ACPI_OBJECT.)
6484Provides
6485MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
6486
6487x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
6488subtables for the MADT and one new subtable for the SRAT. Includes
6489disassembler and AcpiSrc support. Data from the Intel 64 Architecture
6490x2APIC
6491Specification, June 2008.
6492
6493Additional error checking for pathname utilities. Add error check after
6494all
6495calls to AcpiNsGetPathnameLength. Add status return from
6496AcpiNsBuildExternalPath and check after all calls. Add parameter
6497validation
6498to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
6499
6500Return status from the global init function AcpiUtGlobalInitialize. This
6501is
6502used by both the kernel subsystem and the utilities such as iASL
6503compiler.
6504The function could possibly fail when the caches are initialized. Yang
6505Yi.
6506
6507Add a function to decode reference object types to strings. Created for
6508improved error messages.
6509
6510Improve object conversion error messages. Better error messages during
6511object
6512conversion from internal to the external ACPI_OBJECT. Used for external
6513calls
6514to AcpiEvaluateObject.
6515
6516Example Code and Data Size: These are the sizes for the OS-independent
6517acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6518debug version of the code includes the debug output trace mechanism and
6519has a
6520much larger code and data size.
6521
6522  Previous Release:
6523    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
6524    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
6525  Current Release:
6526    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
6527    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
6528
65292) iASL Compiler/Disassembler and Tools:
6530
6531Debugger: fix a possible hang when evaluating non-methods. Fixes a
6532problem
6533introduced in version 20080701. If the object being evaluated (via
6534execute
6535command) is not a method, the debugger can hang while trying to obtain
6536non-
6537existent parameters.
6538
6539iASL: relax error for using reserved "_T_x" identifiers. These names can
6540appear in a disassembled ASL file if they were emitted by the original
6541compiler. Instead of issuing an error or warning and forcing the user to
6542manually change these names, issue a remark instead.
6543
6544iASL: error if named object created in while loop. Emit an error if any
6545named
6546object is created within a While loop. If allowed, this code will
6547generate
6548a
6549run-time error on the second iteration of the loop when an attempt is
6550made
6551to
6552create the same named object twice. ACPICA bugzilla 730.
6553
6554iASL: Support absolute pathnames for include files. Add support for
6555absolute
6556pathnames within the Include operator. previously, only relative
6557pathnames
6558were supported.
6559
6560iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
6561Descriptor.
6562The ACPI spec requires one interrupt minimum. BZ 423
6563
6564iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
6565Handles the case for the Interrupt Resource Descriptor where
6566the ResourceSource argument is omitted but ResourceSourceIndex
6567is present. Now leave room for the Index. BZ 426
6568
6569iASL: Prevent error message if CondRefOf target does not exist. Fixes
6570cases
6571where an error message is emitted if the target does not exist. BZ 516
6572
6573iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
6574(get ACPI tables on Windows). This was apparently broken in version
657520070919.
6576
6577AcpiXtract: Handle EOF while extracting data. Correctly handle the case
6578where
6579the EOF happens immediately after the last table in the input file. Print
6580completion message. Previously, no message was displayed in this case.
6581
6582----------------------------------------
658301 July 2008. Summary of changes for version 20080701:
6584
65850) Git source tree / acpica.org
6586
6587Fixed a problem where a git-clone from http would not transfer the entire
6588source tree.
6589
65901) ACPI CA Core Subsystem:
6591
6592Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
6593enable bit. Now performs a read-change-write of the enable register
6594instead
6595of simply writing out the cached enable mask. This will prevent
6596inadvertent
6597enabling of GPEs if a rogue GPE is received during initialization (before
6598GPE
6599handlers are installed.)
6600
6601Implemented a copy for dynamically loaded tables. Previously, dynamically
6602loaded tables were simply mapped - but on some machines this memory is
6603corrupted after suspend. Now copy the table to a local buffer. For the
6604OpRegion case, added checksum verify. Use the table length from the table
6605header, not the region length. For the Buffer case, use the table length
6606also. Dennis Noordsij, Bob Moore. BZ 10734
6607
6608Fixed a problem where the same ACPI table could not be dynamically loaded
6609and
6610unloaded more than once. Without this change, a table cannot be loaded
6611again
6612once it has been loaded/unloaded one time. The current mechanism does not
6613unregister a table upon an unload. During a load, if the same table is
6614found,
6615this no longer returns an exception. BZ 722
6616
6617Fixed a problem where the wrong descriptor length was calculated for the
6618EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
6619EndTag
6620are calculated as 12 bytes long, but the actual length in the internal
6621descriptor is 16 because of the round-up to 8 on the 64-bit build.
6622Reported
6623by Linn Crosetto. BZ 728
6624
6625Fixed a possible memory leak in the Unload operator. The DdbHandle
6626returned
6627by Load() did not have its reference count decremented during unload,
6628leading
6629to a memory leak. Lin Ming. BZ 727
6630
6631Fixed a possible memory leak when deleting thermal/processor objects. Any
6632associated notify handlers (and objects) were not being deleted. Fiodor
6633Suietov. BZ 506
6634
6635Fixed the ordering of the ASCII names in the global mutex table to match
6636the
6637actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
6638only.
6639Vegard Nossum. BZ 726
6640
6641Enhanced the AcpiGetObjectInfo interface to return the number of required
6642arguments if the object is a control method. Added this call to the
6643debugger
6644so the proper number of default arguments are passed to a method. This
6645prevents a warning when executing methods from AcpiExec.
6646
6647Added a check for an invalid handle in AcpiGetObjectInfo. Return
6648AE_BAD_PARAMETER if input handle is invalid. BZ 474
6649
6650Fixed an extraneous warning from exconfig.c on the 64-bit build.
6651
6652Example Code and Data Size: These are the sizes for the OS-independent
6653acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6654debug version of the code includes the debug output trace mechanism and
6655has a
6656much larger code and data size.
6657
6658  Previous Release:
6659    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
6660    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
6661  Current Release:
6662    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
6663    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
6664
66652) iASL Compiler/Disassembler and Tools:
6666
6667iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
6668resource descriptor names.
6669
6670iASL: Detect invalid ASCII characters in input (windows version). Removed
6671the
6672"-CF" flag from the flex compile, enables correct detection of non-ASCII
6673characters in the input. BZ 441
6674
6675iASL: Eliminate warning when result of LoadTable is not used. Eliminate
6676the
6677"result of operation not used" warning when the DDB handle returned from
6678LoadTable is not used. The warning is not needed. BZ 590
6679
6680AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
6681method
6682to
6683pass address of table to the AML. Added option to disable OpRegion
6684simulation
6685to allow creation of an OpRegion with a real address that was passed to
6686_CFG.
6687All of this allows testing of the Load and Unload operators from
6688AcpiExec.
6689
6690Debugger: update tables command for unloaded tables. Handle unloaded
6691tables
6692and use the standard table header output routine.
6693
6694----------------------------------------
669509 June 2008. Summary of changes for version 20080609:
6696
66971) ACPI CA Core Subsystem:
6698
6699Implemented a workaround for reversed _PRT entries. A significant number
6700of
6701BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
6702change dynamically detects and repairs this problem. Provides
6703compatibility
6704with MS ACPI. BZ 6859
6705
6706Simplified the internal ACPI hardware interfaces to eliminate the locking
6707flag parameter from Register Read/Write. Added a new external interface,
6708AcpiGetRegisterUnlocked.
6709
6710Fixed a problem where the invocation of a GPE control method could hang.
6711This
6712was a regression introduced in 20080514. The new method argument count
6713validation mechanism can enter an infinite loop when a GPE method is
6714dispatched. Problem fixed by removing the obsolete code that passed GPE
6715block
6716information to the notify handler via the control method parameter
6717pointer.
6718
6719Fixed a problem where the _SST execution status was incorrectly returned
6720to
6721the caller of AcpiEnterSleepStatePrep. This was a regression introduced
6722in
672320080514. _SST is optional and a NOT_FOUND exception should never be
6724returned. BZ 716
6725
6726Fixed a problem where a deleted object could be accessed from within the
6727AML
6728parser. This was a regression introduced in version 20080123 as a fix for
6729the
6730Unload operator. Lin Ming. BZ 10669
6731
6732Cleaned up the debug operand dump mechanism. Eliminated unnecessary
6733operands
6734and eliminated the use of a negative index in a loop. Operands are now
6735displayed in the correct order, not backwards. This also fixes a
6736regression
6737introduced in 20080514 on 64-bit systems where the elimination of
6738ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
6739715
6740
6741Fixed a possible memory leak in EvPciConfigRegionSetup where the error
6742exit
6743path did not delete a locally allocated structure.
6744
6745Updated definitions for the DMAR and SRAT tables to synchronize with the
6746current specifications. Includes disassembler support.
6747
6748Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
6749loop termination value was used. Loop terminated on iteration early,
6750missing
6751one mutex. Linn Crosetto
6752
6753Example Code and Data Size: These are the sizes for the OS-independent
6754acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6755debug version of the code includes the debug output trace mechanism and
6756has a
6757much larger code and data size.
6758
6759  Previous Release:
6760    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
6761    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
6762  Current Release:
6763    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
6764    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
6765
67662) iASL Compiler/Disassembler and Tools:
6767
6768Disassembler: Implemented support for EisaId() within _CID objects. Now
6769disassemble integer _CID objects back to EisaId invocations, including
6770multiple integers within _CID packages. Includes single-step support for
6771debugger also.
6772
6773Disassembler: Added support for DMAR and SRAT table definition changes.
6774
6775----------------------------------------
677614 May 2008. Summary of changes for version 20080514:
6777
67781) ACPI CA Core Subsystem:
6779
6780Fixed a problem where GPEs were enabled too early during the ACPICA
6781initialization. This could lead to "handler not installed" errors on some
6782machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
6783This
6784ensures that all operation regions and devices throughout the namespace
6785have
6786been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
6787
6788Implemented a change to the enter sleep code. Moved execution of the _GTS
6789method to just before setting sleep enable bit. The execution was moved
6790from
6791AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
6792immediately before the SLP_EN bit is set, as per the ACPI specification.
6793Luming Yu, BZ 1653.
6794
6795Implemented a fix to disable unknown GPEs (2nd version). Now always
6796disable
6797the GPE, even if ACPICA thinks that that it is already disabled. It is
6798possible that the AML or some other code has enabled the GPE unbeknownst
6799to
6800the ACPICA code.
6801
6802Fixed a problem with the Field operator where zero-length fields would
6803return
6804an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
6805ASL
6806field declarations in Field(), BankField(), and IndexField(). BZ 10606.
6807
6808Implemented a fix for the Load operator, now load the table at the
6809namespace
6810root. This reverts a change introduced in version 20071019. The table is
6811now
6812loaded at the namespace root even though this goes against the ACPI
6813specification. This provides compatibility with other ACPI
6814implementations.
6815The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
6816Ming.
6817
6818Fixed a problem where ACPICA would not Load() tables with unusual
6819signatures.
6820Now ignore ACPI table signature for Load() operator. Only "SSDT" is
6821acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
6822Therefore, signature validation is worthless. Apparently MS ACPI accepts
6823such
6824signatures, ACPICA must be compatible. BZ 10454.
6825
6826Fixed a possible negative array index in AcpiUtValidateException. Added
6827NULL
6828fields to the exception string arrays to eliminate a -1 subtraction on
6829the
6830SubStatus field.
6831
6832Updated the debug tracking macros to reduce overall code and data size.
6833Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
6834instead of pointers to static strings. Jan Beulich and Bob Moore.
6835
6836Implemented argument count checking in control method invocation via
6837AcpiEvaluateObject. Now emit an error if too few arguments, warning if
6838too
6839many. This applies only to extern programmatic control method execution,
6840not
6841method-to-method calls within the AML. Lin Ming.
6842
6843Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
6844no
6845longer needed, especially with the removal of 16-bit support. It was
6846replaced
6847mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
6848bit
6849on
685032/64-bit platforms is required.
6851
6852Added the C const qualifier for appropriate string constants -- mostly
6853MODULE_NAME and printf format strings. Jan Beulich.
6854
6855Example Code and Data Size: These are the sizes for the OS-independent
6856acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6857debug version of the code includes the debug output trace mechanism and
6858has a
6859much larger code and data size.
6860
6861  Previous Release:
6862    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
6863    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
6864  Current Release:
6865    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
6866    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
6867
68682) iASL Compiler/Disassembler and Tools:
6869
6870Implemented ACPI table revision ID validation in the disassembler. Zero
6871is
6872always invalid. For DSDTs, the ID controls the interpreter integer width.
68731
6874means 32-bit and this is unusual. 2 or greater is 64-bit.
6875
6876----------------------------------------
687721 March 2008. Summary of changes for version 20080321:
6878
68791) ACPI CA Core Subsystem:
6880
6881Implemented an additional change to the GPE support in order to suppress
6882spurious or stray GPEs. The AcpiEvDisableGpe function will now
6883permanently
6884disable incoming GPEs that are neither enabled nor disabled -- meaning
6885that
6886the GPE is unknown to the system. This should prevent future interrupt
6887floods
6888from that GPE. BZ 6217 (Zhang Rui)
6889
6890Fixed a problem where NULL package elements were not returned to the
6891AcpiEvaluateObject interface correctly. The element was simply ignored
6892instead of returning a NULL ACPI_OBJECT package element, potentially
6893causing
6894a buffer overflow and/or confusing the caller who expected a fixed number
6895of
6896elements. BZ 10132 (Lin Ming, Bob Moore)
6897
6898Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
6899Dword,
6900Qword), Field, BankField, and IndexField operators when invoked from
6901inside
6902an executing control method. In this case, these operators created
6903namespace
6904nodes that were incorrectly left marked as permanent nodes instead of
6905temporary nodes. This could cause a problem if there is race condition
6906between an exiting control method and a running namespace walk. (Reported
6907by
6908Linn Crosetto)
6909
6910Fixed a problem where the CreateField and CreateXXXField operators would
6911incorrectly allow duplicate names (the name of the field) with no
6912exception
6913generated.
6914
6915Implemented several changes for Notify handling. Added support for new
6916Notify
6917values (ACPI 2.0+) and improved the Notify debug output. Notify on
6918PowerResource objects is no longer allowed, as per the ACPI
6919specification.
6920(Bob Moore, Zhang Rui)
6921
6922All Reference Objects returned via the AcpiEvaluateObject interface are
6923now
6924marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
6925for
6926NULL objects - either NULL package elements or unresolved named
6927references.
6928
6929Fixed a problem where an extraneous debug message was produced for
6930package
6931objects (when debugging enabled). The message "Package List length larger
6932than NumElements count" is now produced in the correct case, and is now
6933an
6934error message rather than a debug message. Added a debug message for the
6935opposite case, where NumElements is larger than the Package List (the
6936package
6937will be padded out with NULL elements as per the ACPI spec.)
6938
6939Implemented several improvements for the output of the ASL "Debug" object
6940to
6941clarify and keep all data for a given object on one output line.
6942
6943Fixed two size calculation issues with the variable-length Start
6944Dependent
6945resource descriptor.
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
6951a much larger code and data size.
6952
6953  Previous Release:
6954    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
6955    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
6956  Current Release:
6957    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
6958    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
6959
69602) iASL Compiler/Disassembler and Tools:
6961
6962Fixed a problem with the use of the Switch operator where execution of
6963the
6964containing method by multiple concurrent threads could cause an
6965AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
6966actual Switch opcode, it must be simulated with local named temporary
6967variables and if/else pairs. The solution chosen was to mark any method
6968that
6969uses Switch as Serialized, thus preventing multiple thread entries. BZ
6970469.
6971
6972----------------------------------------
697313 February 2008. Summary of changes for version 20080213:
6974
69751) ACPI CA Core Subsystem:
6976
6977Implemented another MS compatibility design change for GPE/Notify
6978handling.
6979GPEs are now cleared/enabled asynchronously to allow all pending notifies
6980to
6981complete first. It is expected that the OSL will queue the enable request
6982behind all pending notify requests (may require changes to the local host
6983OSL
6984in AcpiOsExecute). Alexey Starikovskiy.
6985
6986Fixed a problem where buffer and package objects passed as arguments to a
6987control method via the external AcpiEvaluateObject interface could cause
6988an
6989AE_AML_INTERNAL exception depending on the order and type of operators
6990executed by the target control method.
6991
6992Fixed a problem where resource descriptor size optimization could cause a
6993problem when a _CRS resource template is passed to a _SRS method. The
6994_SRS
6995resource template must use the same descriptors (with the same size) as
6996returned from _CRS. This change affects the following resource
6997descriptors:
6998IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
69999487)
7000
7001Fixed a problem where a CopyObject to RegionField, BankField, and
7002IndexField
7003objects did not perform an implicit conversion as it should. These types
7004must
7005retain their initial type permanently as per the ACPI specification.
7006However,
7007a CopyObject to all other object types should not perform an implicit
7008conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
7009
7010Fixed a problem with the AcpiGetDevices interface where the mechanism to
7011match device CIDs did not examine the entire list of available CIDs, but
7012instead aborted on the first non-matching CID. Andrew Patterson.
7013
7014Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
7015was
7016inadvertently changed to return a 16-bit value instead of a 32-bit value,
7017truncating the upper dword of a 64-bit value. This macro is only used to
7018display debug output, so no incorrect calculations were made. Also,
7019reimplemented the macro so that a 64-bit shift is not performed by
7020inefficient compilers.
7021
7022Added missing va_end statements that should correspond with each va_start
7023statement.
7024
7025Example Code and Data Size: These are the sizes for the OS-independent
7026acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7027debug version of the code includes the debug output trace mechanism and
7028has
7029a much larger code and data size.
7030
7031  Previous Release:
7032    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
7033    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
7034  Current Release:
7035    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
7036    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
7037
70382) iASL Compiler/Disassembler and Tools:
7039
7040Implemented full disassembler support for the following new ACPI tables:
7041BERT, EINJ, and ERST. Implemented partial disassembler support for the
7042complicated HEST table. These tables support the Windows Hardware Error
7043Architecture (WHEA).
7044
7045----------------------------------------
704623 January 2008. Summary of changes for version 20080123:
7047
70481) ACPI CA Core Subsystem:
7049
7050Added the 2008 copyright to all module headers and signons. This affects
7051virtually every file in the ACPICA core subsystem, the iASL compiler, and
7052the tools/utilities.
7053
7054Fixed a problem with the SizeOf operator when used with Package and
7055Buffer
7056objects. These objects have deferred execution for some arguments, and
7057the
7058execution is now completed before the SizeOf is executed. This problem
7059caused
7060unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
7061BZ
70629558
7063
7064Implemented an enhancement to the interpreter "slack mode". In the
7065absence
7066of
7067an explicit return or an implicitly returned object from the last
7068executed
7069opcode, a control method will now implicitly return an integer of value 0
7070for
7071Microsoft compatibility. (Lin Ming) BZ 392
7072
7073Fixed a problem with the Load operator where an exception was not
7074returned
7075in
7076the case where the table is already loaded. (Lin Ming) BZ 463
7077
7078Implemented support for the use of DDBHandles as an Indexed Reference, as
7079per
7080the ACPI spec. (Lin Ming) BZ 486
7081
7082Implemented support for UserTerm (Method invocation) for the Unload
7083operator
7084as per the ACPI spec. (Lin Ming) BZ 580
7085
7086Fixed a problem with the LoadTable operator where the OemId and
7087OemTableId
7088input strings could cause unexpected failures if they were shorter than
7089the
7090maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
7091
7092Implemented support for UserTerm (Method invocation) for the Unload
7093operator
7094as per the ACPI spec. (Lin Ming) BZ 580
7095
7096Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
7097HEST,
7098IBFT, UEFI, WDAT. Disassembler support is forthcoming.
7099
7100Example Code and Data Size: These are the sizes for the OS-independent
7101acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7102debug version of the code includes the debug output trace mechanism and
7103has
7104a much larger code and data size.
7105
7106  Previous Release:
7107    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
7108    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
7109  Current Release:
7110    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
7111    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
7112
71132) iASL Compiler/Disassembler and Tools:
7114
7115Implemented support in the disassembler for checksum validation on
7116incoming
7117binary DSDTs and SSDTs. If incorrect, a message is displayed within the
7118table
7119header dump at the start of the disassembly.
7120
7121Implemented additional debugging information in the namespace listing
7122file
7123created during compilation. In addition to the namespace hierarchy, the
7124full
7125pathname to each namespace object is displayed.
7126
7127Fixed a problem with the disassembler where invalid ACPI tables could
7128cause
7129faults or infinite loops.
7130
7131Fixed an unexpected parse error when using the optional "parameter types"
7132list in a control method declaration. (Lin Ming) BZ 397
7133
7134Fixed a problem where two External declarations with the same name did
7135not
7136cause an error (Lin Ming) BZ 509
7137
7138Implemented support for full TermArgs (adding Argx, Localx and method
7139invocation) for the ParameterData parameter to the LoadTable operator.
7140(Lin
7141Ming) BZ 583,587
7142
7143----------------------------------------
714419 December 2007. Summary of changes for version 20071219:
7145
71461) ACPI CA Core Subsystem:
7147
7148Implemented full support for deferred execution for the TermArg string
7149arguments for DataTableRegion. This enables forward references and full
7150operand resolution for the three string arguments. Similar to
7151OperationRegion
7152deferred argument execution.) Lin Ming. BZ 430
7153
7154Implemented full argument resolution support for the BankValue argument
7155to
7156BankField. Previously, only constants were supported, now any TermArg may
7157be
7158used. Lin Ming BZ 387, 393
7159
7160Fixed a problem with AcpiGetDevices where the search of a branch of the
7161device tree could be terminated prematurely. In accordance with the ACPI
7162specification, the search down the current branch is terminated if a
7163device
7164is both not present and not functional (instead of just not present.)
7165Yakui
7166Zhao.
7167
7168Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
7169if
7170the underlying AML code changed the GPE enable registers. Now, any
7171unknown
7172incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
7173disabled
7174instead of simply ignored. Rui Zhang.
7175
7176Fixed a problem with Index Fields where the Index register was
7177incorrectly
7178limited to a maximum of 32 bits. Now any size may be used.
7179
7180Fixed a couple memory leaks associated with "implicit return" objects
7181when
7182the AML Interpreter slack mode is enabled. Lin Ming BZ 349
7183
7184Example Code and Data Size: These are the sizes for the OS-independent
7185acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7186debug version of the code includes the debug output trace mechanism and
7187has
7188a much larger code and data size.
7189
7190  Previous Release:
7191    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
7192    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
7193  Current Release:
7194    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
7195    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
7196
7197----------------------------------------
719814 November 2007. Summary of changes for version 20071114:
7199
72001) ACPI CA Core Subsystem:
7201
7202Implemented event counters for each of the Fixed Events, the ACPI SCI
7203(interrupt) itself, and control methods executed. Named
7204AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
7205These
7206should be useful for debugging and statistics.
7207
7208Implemented a new external interface, AcpiGetStatistics, to retrieve the
7209contents of the various event counters. Returns the current values for
7210AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
7211AcpiMethodCount. The interface can be expanded in the future if new
7212counters
7213are added. Device drivers should use this interface rather than access
7214the
7215counters directly.
7216
7217Fixed a problem with the FromBCD and ToBCD operators. With some
7218compilers,
7219the ShortDivide function worked incorrectly, causing problems with the
7220BCD
7221functions with large input values. A truncation from 64-bit to 32-bit
7222inadvertently occurred. Internal BZ 435. Lin Ming
7223
7224Fixed a problem with Index references passed as method arguments.
7225References
7226passed as arguments to control methods were dereferenced immediately
7227(before
7228control was passed to the called method). The references are now
7229correctly
7230passed directly to the called method. BZ 5389. Lin Ming
7231
7232Fixed a problem with CopyObject used in conjunction with the Index
7233operator.
7234The reference was incorrectly dereferenced before the copy. The reference
7235is
7236now correctly copied. BZ 5391. Lin Ming
7237
7238Fixed a problem with Control Method references within Package objects.
7239These
7240references are now correctly generated. This completes the package
7241construction overhaul that began in version 20071019.
7242
7243Example Code and Data Size: These are the sizes for the OS-independent
7244acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7245debug version of the code includes the debug output trace mechanism and
7246has
7247a much larger code and data size.
7248
7249  Previous Release:
7250    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
7251    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
7252  Current Release:
7253    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
7254    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
7255
7256
72572) iASL Compiler/Disassembler and Tools:
7258
7259The AcpiExec utility now installs handlers for all of the predefined
7260Operation Region types. New types supported are: PCI_Config, CMOS, and
7261PCIBARTarget.
7262
7263Fixed a problem with the 64-bit version of AcpiExec where the extended
7264(64-
7265bit) address fields for the DSDT and FACS within the FADT were not being
7266used, causing truncation of the upper 32-bits of these addresses. Lin
7267Ming
7268and Bob Moore
7269
7270----------------------------------------
727119 October 2007. Summary of changes for version 20071019:
7272
72731) ACPI CA Core Subsystem:
7274
7275Fixed a problem with the Alias operator when the target of the alias is a
7276named ASL operator that opens a new scope -- Scope, Device,
7277PowerResource,
7278Processor, and ThermalZone. In these cases, any children of the original
7279operator could not be accessed via the alias, potentially causing
7280unexpected
7281AE_NOT_FOUND exceptions. (BZ 9067)
7282
7283Fixed a problem with the Package operator where all named references were
7284created as object references and left otherwise unresolved. According to
7285the
7286ACPI specification, a Package can only contain Data Objects or references
7287to
7288control methods. The implication is that named references to Data Objects
7289(Integer, Buffer, String, Package, BufferField, Field) should be resolved
7290immediately upon package creation. This is the approach taken with this
7291change. References to all other named objects (Methods, Devices, Scopes,
7292etc.) are all now properly created as reference objects. (BZ 5328)
7293
7294Reverted a change to Notify handling that was introduced in version
729520070508. This version changed the Notify handling from asynchronous to
7296fully synchronous (Device driver Notify handling with respect to the
7297Notify
7298ASL operator). It was found that this change caused more problems than it
7299solved and was removed by most users.
7300
7301Fixed a problem with the Increment and Decrement operators where the type
7302of
7303the target object could be unexpectedly and incorrectly changed. (BZ 353)
7304Lin Ming.
7305
7306Fixed a problem with the Load and LoadTable operators where the table
7307location within the namespace was ignored. Instead, the table was always
7308loaded into the root or current scope. Lin Ming.
7309
7310Fixed a problem with the Load operator when loading a table from a buffer
7311object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
7312
7313Fixed a problem with the Debug object where a store of a DdbHandle
7314reference
7315object to the Debug object could cause a fault.
7316
7317Added a table checksum verification for the Load operator, in the case
7318where
7319the load is from a buffer. (BZ 578).
7320
7321Implemented additional parameter validation for the LoadTable operator.
7322The
7323length of the input strings SignatureString, OemIdString, and OemTableId
7324are
7325now checked for maximum lengths. (BZ 582) Lin Ming.
7326
7327Example Code and Data Size: These are the sizes for the OS-independent
7328acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7329debug version of the code includes the debug output trace mechanism and
7330has
7331a much larger code and data size.
7332
7333  Previous Release:
7334    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
7335    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
7336  Current Release:
7337    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
7338    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
7339
7340
73412) iASL Compiler/Disassembler:
7342
7343Fixed a problem where if a single file was specified and the file did not
7344exist, no error message was emitted. (Introduced with wildcard support in
7345version 20070917.)
7346
7347----------------------------------------
734819 September 2007. Summary of changes for version 20070919:
7349
73501) ACPI CA Core Subsystem:
7351
7352Designed and implemented new external interfaces to install and remove
7353handlers for ACPI table-related events. Current events that are defined
7354are
7355LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
7356they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
7357AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
7358
7359Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
7360(acpi_serialized option on Linux) could cause some systems to hang during
7361initialization. (Bob Moore) BZ 8171
7362
7363Fixed a problem where objects of certain types (Device, ThermalZone,
7364Processor, PowerResource) can be not found if they are declared and
7365referenced from within the same control method (Lin Ming) BZ 341
7366
7367Example Code and Data Size: These are the sizes for the OS-independent
7368acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7369debug version of the code includes the debug output trace mechanism and
7370has
7371a much larger code and data size.
7372
7373  Previous Release:
7374    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
7375    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
7376  Current Release:
7377    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
7378    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
7379
7380
73812) iASL Compiler/Disassembler:
7382
7383Implemented support to allow multiple files to be compiled/disassembled
7384in
7385a
7386single invocation. This includes command line wildcard support for both
7387the
7388Windows and Unix versions of the compiler. This feature simplifies the
7389disassembly and compilation of multiple ACPI tables in a single
7390directory.
7391
7392----------------------------------------
739308 May 2007. Summary of changes for version 20070508:
7394
73951) ACPI CA Core Subsystem:
7396
7397Implemented a Microsoft compatibility design change for the handling of
7398the
7399Notify AML operator. Previously, notify handlers were dispatched and
7400executed completely asynchronously in a deferred thread. The new design
7401still executes the notify handlers in a different thread, but the
7402original
7403thread that executed the Notify() now waits at a synchronization point
7404for
7405the notify handler to complete. Some machines depend on a synchronous
7406Notify
7407operator in order to operate correctly.
7408
7409Implemented support to allow Package objects to be passed as method
7410arguments to the external AcpiEvaluateObject interface. Previously, this
7411would return the AE_NOT_IMPLEMENTED exception. This feature had not been
7412implemented since there were no reserved control methods that required it
7413until recently.
7414
7415Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
7416that
7417contained invalid non-zero values in reserved fields could cause later
7418failures because these fields have meaning in later revisions of the
7419FADT.
7420For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
7421fields
7422are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
7423
7424Fixed a problem where the Global Lock handle was not properly updated if
7425a
7426thread that acquired the Global Lock via executing AML code then
7427attempted
7428to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
7429Joe
7430Liu.
7431
7432Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
7433could be corrupted if the interrupt being removed was at the head of the
7434list. Reported by Linn Crosetto.
7435
7436Example Code and Data Size: These are the sizes for the OS-independent
7437acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7438debug version of the code includes the debug output trace mechanism and
7439has
7440a much larger code and data size.
7441
7442  Previous Release:
7443    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
7444    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
7445  Current Release:
7446    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
7447    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
7448
7449----------------------------------------
745020 March 2007. Summary of changes for version 20070320:
7451
74521) ACPI CA Core Subsystem:
7453
7454Implemented a change to the order of interpretation and evaluation of AML
7455operand objects within the AML interpreter. The interpreter now evaluates
7456operands in the order that they appear in the AML stream (and the
7457corresponding ASL code), instead of in the reverse order (after the
7458entire
7459operand list has been parsed). The previous behavior caused several
7460subtle
7461incompatibilities with the Microsoft AML interpreter as well as being
7462somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
7463
7464Implemented a change to the ACPI Global Lock support. All interfaces to
7465the
7466global lock now allow the same thread to acquire the lock multiple times.
7467This affects the AcpiAcquireGlobalLock external interface to the global
7468lock
7469as well as the internal use of the global lock to support AML fields -- a
7470control method that is holding the global lock can now simultaneously
7471access
7472AML fields that require global lock protection. Previously, in both
7473cases,
7474this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
7475to
7476AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
7477Controller. There is no change to the behavior of the AML Acquire
7478operator,
7479as this can already be used to acquire a mutex multiple times by the same
7480thread. BZ 8066. With assistance from Alexey Starikovskiy.
7481
7482Fixed a problem where invalid objects could be referenced in the AML
7483Interpreter after error conditions. During operand evaluation, ensure
7484that
7485the internal "Return Object" field is cleared on error and only valid
7486pointers are stored there. Caused occasional access to deleted objects
7487that
7488resulted in "large reference count" warning messages. Valery Podrezov.
7489
7490Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
7491on
7492deeply nested control method invocations. BZ 7873, local BZ 487. Valery
7493Podrezov.
7494
7495Fixed an internal problem with the handling of result objects on the
7496interpreter result stack. BZ 7872. Valery Podrezov.
7497
7498Removed obsolete code that handled the case where AML_NAME_OP is the
7499target
7500of a reference (Reference.Opcode). This code was no longer necessary. BZ
75017874. Valery Podrezov.
7502
7503Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
7504was
7505a
7506remnant from the previously discontinued 16-bit support.
7507
7508Example Code and Data Size: These are the sizes for the OS-independent
7509acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7510debug version of the code includes the debug output trace mechanism and
7511has
7512a much larger code and data size.
7513
7514  Previous Release:
7515    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
7516    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
7517  Current Release:
7518    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
7519    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
7520
7521----------------------------------------
752226 January 2007. Summary of changes for version 20070126:
7523
75241) ACPI CA Core Subsystem:
7525
7526Added the 2007 copyright to all module headers and signons. This affects
7527virtually every file in the ACPICA core subsystem, the iASL compiler, and
7528the utilities.
7529
7530Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
7531during a table load. A bad pointer was passed in the case where the DSDT
7532is
7533overridden, causing a fault in this case.
7534
7535Example Code and Data Size: These are the sizes for the OS-independent
7536acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7537debug version of the code includes the debug output trace mechanism and
7538has
7539a much larger code and data size.
7540
7541  Previous Release:
7542    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
7543    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
7544  Current Release:
7545    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
7546    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
7547
7548----------------------------------------
754915 December 2006. Summary of changes for version 20061215:
7550
75511) ACPI CA Core Subsystem:
7552
7553Support for 16-bit ACPICA has been completely removed since it is no
7554longer
7555necessary and it clutters the code. All 16-bit macros, types, and
7556conditional compiles have been removed, cleaning up and simplifying the
7557code
7558across the entire subsystem. DOS support is no longer needed since the
7559bootable Linux firmware kit is now available.
7560
7561The handler for the Global Lock is now removed during AcpiTerminate to
7562enable a clean subsystem restart, via the implementation of the
7563AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
7564HP)
7565
7566Implemented enhancements to the multithreading support within the
7567debugger
7568to enable improved multithreading debugging and evaluation of the
7569subsystem.
7570(Valery Podrezov)
7571
7572Debugger: Enhanced the Statistics/Memory command to emit the total
7573(maximum)
7574memory used during the execution, as well as the maximum memory consumed
7575by
7576each of the various object types. (Valery Podrezov)
7577
7578Example Code and Data Size: These are the sizes for the OS-independent
7579acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7580debug version of the code includes the debug output trace mechanism and
7581has
7582a much larger code and data size.
7583
7584  Previous Release:
7585    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
7586    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
7587  Current Release:
7588    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
7589    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
7590
7591
75922) iASL Compiler/Disassembler and Tools:
7593
7594AcpiExec: Implemented a new option (-m) to display full memory use
7595statistics upon subsystem/program termination. (Valery Podrezov)
7596
7597----------------------------------------
759809 November 2006. Summary of changes for version 20061109:
7599
76001) ACPI CA Core Subsystem:
7601
7602Optimized the Load ASL operator in the case where the source operand is
7603an
7604operation region. Simply map the operation region memory, instead of
7605performing a bytewise read. (Region must be of type SystemMemory, see
7606below.)
7607
7608Fixed the Load ASL operator for the case where the source operand is a
7609region field. A buffer object is also allowed as the source operand. BZ
7610480
7611
7612Fixed a problem where the Load ASL operator allowed the source operand to
7613be
7614an operation region of any type. It is now restricted to regions of type
7615SystemMemory, as per the ACPI specification. BZ 481
7616
7617Additional cleanup and optimizations for the new Table Manager code.
7618
7619AcpiEnable will now fail if all of the required ACPI tables are not
7620loaded
7621(FADT, FACS, DSDT). BZ 477
7622
7623Added #pragma pack(8/4) to acobject.h to ensure that the structures in
7624this
7625header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
7626manually optimized to be aligned and will not work if it is byte-packed.
7627
7628Example Code and Data Size: These are the sizes for the OS-independent
7629acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7630debug version of the code includes the debug output trace mechanism and
7631has
7632a much larger code and data size.
7633
7634  Previous Release:
7635    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
7636    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
7637  Current Release:
7638    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
7639    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
7640
7641
76422) iASL Compiler/Disassembler and Tools:
7643
7644Fixed a problem where the presence of the _OSI predefined control method
7645within complex expressions could cause an internal compiler error.
7646
7647AcpiExec: Implemented full region support for multiple address spaces.
7648SpaceId is now part of the REGION object. BZ 429
7649
7650----------------------------------------
765111 October 2006. Summary of changes for version 20061011:
7652
76531) ACPI CA Core Subsystem:
7654
7655Completed an AML interpreter performance enhancement for control method
7656execution. Previously a 2-pass parse/execution, control methods are now
7657completely parsed and executed in a single pass. This improves overall
7658interpreter performance by ~25%, reduces code size, and reduces CPU stack
7659use. (Valery Podrezov + interpreter changes in version 20051202 that
7660eliminated namespace loading during the pass one parse.)
7661
7662Implemented _CID support for PCI Root Bridge detection. If the _HID does
7663not
7664match the predefined PCI Root Bridge IDs, the _CID list (if present) is
7665now
7666obtained and also checked for an ID match.
7667
7668Implemented additional support for the PCI _ADR execution: upsearch until
7669a
7670device scope is found before executing _ADR. This allows PCI_Config
7671operation regions to be declared locally within control methods
7672underneath
7673PCI device objects.
7674
7675Fixed a problem with a possible race condition between threads executing
7676AcpiWalkNamespace and the AML interpreter. This condition was removed by
7677modifying AcpiWalkNamespace to (by default) ignore all temporary
7678namespace
7679entries created during any concurrent control method execution. An
7680additional namespace race condition is known to exist between
7681AcpiWalkNamespace and the Load/Unload ASL operators and is still under
7682investigation.
7683
7684Restructured the AML ParseLoop function, breaking it into several
7685subfunctions in order to reduce CPU stack use and improve
7686maintainability.
7687(Mikhail Kouzmich)
7688
7689AcpiGetHandle: Fix for parameter validation to detect invalid
7690combinations
7691of prefix handle and pathname. BZ 478
7692
7693Example Code and Data Size: These are the sizes for the OS-independent
7694acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7695debug version of the code includes the debug output trace mechanism and
7696has
7697a much larger code and data size.
7698
7699  Previous Release:
7700    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
7701    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
7702  Current Release:
7703    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
7704    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
7705
77062) iASL Compiler/Disassembler and Tools:
7707
7708Ported the -g option (get local ACPI tables) to the new ACPICA Table
7709Manager
7710to restore original behavior.
7711
7712----------------------------------------
771327 September 2006. Summary of changes for version 20060927:
7714
77151) ACPI CA Core Subsystem:
7716
7717Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
7718These functions now use a spinlock for mutual exclusion and the interrupt
7719level indication flag is not needed.
7720
7721Fixed a problem with the Global Lock where the lock could appear to be
7722obtained before it is actually obtained. The global lock semaphore was
7723inadvertently created with one unit instead of zero units. (BZ 464)
7724Fiodor
7725Suietov.
7726
7727Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
7728during
7729a read from a buffer or region field. (BZ 458) Fiodor Suietov.
7730
7731Example Code and Data Size: These are the sizes for the OS-independent
7732acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7733debug version of the code includes the debug output trace mechanism and
7734has
7735a much larger code and data size.
7736
7737  Previous Release:
7738    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
7739    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
7740  Current Release:
7741    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
7742    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
7743
7744
77452) iASL Compiler/Disassembler and Tools:
7746
7747Fixed a compilation problem with the pre-defined Resource Descriptor
7748field
7749names where an "object does not exist" error could be incorrectly
7750generated
7751if the parent ResourceTemplate pathname places the template within a
7752different namespace scope than the current scope. (BZ 7212)
7753
7754Fixed a problem where the compiler could hang after syntax errors
7755detected
7756in an ElseIf construct. (BZ 453)
7757
7758Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
7759operator. An incorrect output filename was produced when this parameter
7760was
7761a null string (""). Now, the original input filename is used as the AML
7762output filename, with an ".aml" extension.
7763
7764Implemented a generic batch command mode for the AcpiExec utility
7765(execute
7766any AML debugger command) (Valery Podrezov).
7767
7768----------------------------------------
776912 September 2006. Summary of changes for version 20060912:
7770
77711) ACPI CA Core Subsystem:
7772
7773Enhanced the implementation of the "serialized mode" of the interpreter
7774(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
7775specified, instead of creating a serialization semaphore per control
7776method,
7777the interpreter lock is simply no longer released before a blocking
7778operation during control method execution. This effectively makes the AML
7779Interpreter single-threaded. The overhead of a semaphore per-method is
7780eliminated.
7781
7782Fixed a regression where an error was no longer emitted if a control
7783method
7784attempts to create 2 objects of the same name. This once again returns
7785AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
7786that
7787will dynamically serialize the control method to possible prevent future
7788errors. (BZ 440)
7789
7790Integrated a fix for a problem with PCI Express HID detection in the PCI
7791Config Space setup procedure. (BZ 7145)
7792
7793Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
7794AcpiHwInitialize function - the FADT registers are now validated when the
7795table is loaded.
7796
7797Added two new warnings during FADT verification - 1) if the FADT is
7798larger
7799than the largest known FADT version, and 2) if there is a mismatch
7800between
7801a
780232-bit block address and the 64-bit X counterpart (when both are non-
7803zero.)
7804
7805Example Code and Data Size: These are the sizes for the OS-independent
7806acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7807debug version of the code includes the debug output trace mechanism and
7808has
7809a much larger code and data size.
7810
7811  Previous Release:
7812    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
7813    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
7814  Current Release:
7815    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
7816    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
7817
7818
78192) iASL Compiler/Disassembler and Tools:
7820
7821Fixed a problem with the implementation of the Switch() operator where
7822the
7823temporary variable was declared too close to the actual Switch, instead
7824of
7825at method level. This could cause a problem if the Switch() operator is
7826within a while loop, causing an error on the second iteration. (BZ 460)
7827
7828Disassembler - fix for error emitted for unknown type for target of scope
7829operator. Now, ignore it and continue.
7830
7831Disassembly of an FADT now verifies the input FADT and reports any errors
7832found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
7833
7834Disassembly of raw data buffers with byte initialization data now
7835prefixes
7836each output line with the current buffer offset.
7837
7838Disassembly of ASF! table now includes all variable-length data fields at
7839the end of some of the subtables.
7840
7841The disassembler now emits a comment if a buffer appears to be a
7842ResourceTemplate, but cannot be disassembled as such because the EndTag
7843does
7844not appear at the very end of the buffer.
7845
7846AcpiExec - Added the "-t" command line option to enable the serialized
7847mode
7848of the AML interpreter.
7849
7850----------------------------------------
785131 August 2006. Summary of changes for version 20060831:
7852
78531) ACPI CA Core Subsystem:
7854
7855Miscellaneous fixes for the Table Manager:
7856- Correctly initialize internal common FADT for all 64-bit "X" fields
7857- Fixed a couple table mapping issues during table load
7858- Fixed a couple alignment issues for IA64
7859- Initialize input array to zero in AcpiInitializeTables
7860- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
7861AcpiGetTableByIndex
7862
7863Change for GPE support: when a "wake" GPE is received, all wake GPEs are
7864now
7865immediately disabled to prevent the waking GPE from firing again and to
7866prevent other wake GPEs from interrupting the wake process.
7867
7868Added the AcpiGpeCount global that tracks the number of processed GPEs,
7869to
7870be used for debugging systems with a large number of ACPI interrupts.
7871
7872Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
7873both the ACPICA headers and the disassembler.
7874
7875Example Code and Data Size: These are the sizes for the OS-independent
7876acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7877debug version of the code includes the debug output trace mechanism and
7878has
7879a much larger code and data size.
7880
7881  Previous Release:
7882    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
7883    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
7884  Current Release:
7885    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
7886    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
7887
7888
78892) iASL Compiler/Disassembler and Tools:
7890
7891Disassembler support for the DMAR ACPI table.
7892
7893----------------------------------------
789423 August 2006. Summary of changes for version 20060823:
7895
78961) ACPI CA Core Subsystem:
7897
7898The Table Manager component has been completely redesigned and
7899reimplemented. The new design is much simpler, and reduces the overall
7900code
7901and data size of the kernel-resident ACPICA by approximately 5%. Also, it
7902is
7903now possible to obtain the ACPI tables very early during kernel
7904initialization, even before dynamic memory management is initialized.
7905(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
7906
7907Obsolete ACPICA interfaces:
7908
7909- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
7910init
7911time).
7912- AcpiLoadTable: Not needed.
7913- AcpiUnloadTable: Not needed.
7914
7915New ACPICA interfaces:
7916
7917- AcpiInitializeTables: Must be called before the table manager can be
7918used.
7919- AcpiReallocateRootTable: Used to transfer the root table to dynamically
7920allocated memory after it becomes available.
7921- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
7922tables
7923in the RSDT/XSDT.
7924
7925Other ACPICA changes:
7926
7927- AcpiGetTableHeader returns the actual mapped table header, not a copy.
7928Use
7929AcpiOsUnmapMemory to free this mapping.
7930- AcpiGetTable returns the actual mapped table. The mapping is managed
7931internally and must not be deleted by the caller. Use of this interface
7932causes no additional dynamic memory allocation.
7933- AcpiFindRootPointer: Support for physical addressing has been
7934eliminated,
7935it appeared to be unused.
7936- The interface to AcpiOsMapMemory has changed to be consistent with the
7937other allocation interfaces.
7938- The interface to AcpiOsGetRootPointer has changed to eliminate
7939unnecessary
7940parameters.
7941- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
794264-
7943bit platforms. Was previously 64 bits on all platforms.
7944- The interface to the ACPI Global Lock acquire/release macros have
7945changed
7946slightly since ACPICA no longer keeps a local copy of the FACS with a
7947constructed pointer to the actual global lock.
7948
7949Porting to the new table manager:
7950
7951- AcpiInitializeTables: Must be called once, and can be called anytime
7952during the OS initialization process. It allows the host to specify an
7953area
7954of memory to be used to store the internal version of the RSDT/XSDT (root
7955table). This allows the host to access ACPI tables before memory
7956management
7957is initialized and running.
7958- AcpiReallocateRootTable: Can be called after memory management is
7959running
7960to copy the root table to a dynamically allocated array, freeing up the
7961scratch memory specified in the call to AcpiInitializeTables.
7962- AcpiSubsystemInitialize: This existing interface is independent of the
7963Table Manager, and does not have to be called before the Table Manager
7964can
7965be used, it only must be called before the rest of ACPICA can be used.
7966- ACPI Tables: Some changes have been made to the names and structure of
7967the
7968actbl.h and actbl1.h header files and may require changes to existing
7969code.
7970For example, bitfields have been completely removed because of their lack
7971of
7972portability across C compilers.
7973- Update interfaces to the Global Lock acquire/release macros if local
7974versions are used. (see acwin.h)
7975
7976Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
7977
7978New files: tbfind.c
7979
7980Example Code and Data Size: These are the sizes for the OS-independent
7981acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7982debug version of the code includes the debug output trace mechanism and
7983has
7984a much larger code and data size.
7985
7986  Previous Release:
7987    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
7988    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
7989  Current Release:
7990    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
7991    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
7992
7993
79942) iASL Compiler/Disassembler and Tools:
7995
7996No changes for this release.
7997
7998----------------------------------------
799921 July 2006. Summary of changes for version 20060721:
8000
80011) ACPI CA Core Subsystem:
8002
8003The full source code for the ASL test suite used to validate the iASL
8004compiler and the ACPICA core subsystem is being released with the ACPICA
8005source for the first time. The source is contained in a separate package
8006and
8007consists of over 1100 files that exercise all ASL/AML operators. The
8008package
8009should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
8010Fiodor
8011Suietov)
8012
8013Completed a new design and implementation for support of the ACPI Global
8014Lock. On the OS side, the global lock is now treated as a standard AML
8015mutex. Previously, multiple OS threads could "acquire" the global lock
8016simultaneously. However, this could cause the BIOS to be starved out of
8017the
8018lock - especially in cases such as the Embedded Controller driver where
8019there is a tight coupling between the OS and the BIOS.
8020
8021Implemented an optimization for the ACPI Global Lock interrupt mechanism.
8022The Global Lock interrupt handler no longer queues the execution of a
8023separate thread to signal the global lock semaphore. Instead, the
8024semaphore
8025is signaled directly from the interrupt handler.
8026
8027Implemented support within the AML interpreter for package objects that
8028contain a larger AML length (package list length) than the package
8029element
8030count. In this case, the length of the package is truncated to match the
8031package element count. Some BIOS code apparently modifies the package
8032length
8033on the fly, and this change supports this behavior. Provides
8034compatibility
8035with the MS AML interpreter. (With assistance from Fiodor Suietov)
8036
8037Implemented a temporary fix for the BankValue parameter of a Bank Field
8038to
8039support all constant values, now including the Zero and One opcodes.
8040Evaluation of this parameter must eventually be converted to a full
8041TermArg
8042evaluation. A not-implemented error is now returned (temporarily) for
8043non-
8044constant values for this parameter.
8045
8046Fixed problem reports (Fiodor Suietov) integrated:
8047- Fix for premature object deletion after CopyObject on Operation Region
8048(BZ
8049350)
8050
8051Example Code and Data Size: These are the sizes for the OS-independent
8052acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8053debug version of the code includes the debug output trace mechanism and
8054has
8055a much larger code and data size.
8056
8057  Previous Release:
8058    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
8059    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
8060  Current Release:
8061    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
8062    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
8063
8064
80652) iASL Compiler/Disassembler and Tools:
8066
8067No changes for this release.
8068
8069----------------------------------------
807007 July 2006. Summary of changes for version 20060707:
8071
80721) ACPI CA Core Subsystem:
8073
8074Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
8075that do not allow the initialization of address pointers within packed
8076structures - even though the hardware itself may support misaligned
8077transfers. Some of the debug data structures are packed by default to
8078minimize size.
8079
8080Added an error message for the case where AcpiOsGetThreadId() returns
8081zero.
8082A non-zero value is required by the core ACPICA code to ensure the proper
8083operation of AML mutexes and recursive control methods.
8084
8085The DSDT is now the only ACPI table that determines whether the AML
8086interpreter is in 32-bit or 64-bit mode. Not really a functional change,
8087but
8088the hooks for per-table 32/64 switching have been removed from the code.
8089A
8090clarification to the ACPI specification is forthcoming in ACPI 3.0B.
8091
8092Fixed a possible leak of an OwnerID in the error path of
8093AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
8094deletion to a single place in AcpiTbUninstallTable to correct possible
8095leaks
8096when using the AcpiTbDeleteTablesByType interface (with assistance from
8097Lance Ortiz.)
8098
8099Fixed a problem with Serialized control methods where the semaphore
8100associated with the method could be over-signaled after multiple method
8101invocations.
8102
8103Fixed two issues with the locking of the internal namespace data
8104structure.
8105Both the Unload() operator and AcpiUnloadTable interface now lock the
8106namespace during the namespace deletion associated with the table unload
8107(with assistance from Linn Crosetto.)
8108
8109Fixed problem reports (Valery Podrezov) integrated:
8110- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
8111
8112Fixed problem reports (Fiodor Suietov) integrated:
8113- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
8114- On Address Space handler deletion, needless deactivation call (BZ 374)
8115- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
8116375)
8117- Possible memory leak, Notify sub-objects of Processor, Power,
8118ThermalZone
8119(BZ 376)
8120- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
8121- Minimum Length of RSDT should be validated (BZ 379)
8122- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
8123Handler (BZ (380)
8124- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
8125loaded
8126(BZ 381)
8127
8128Example Code and Data Size: These are the sizes for the OS-independent
8129acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8130debug version of the code includes the debug output trace mechanism and
8131has
8132a much larger code and data size.
8133
8134  Previous Release:
8135    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
8136    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
8137  Current Release:
8138    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
8139    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
8140
8141
81422) iASL Compiler/Disassembler and Tools:
8143
8144Fixed problem reports:
8145Compiler segfault when ASL contains a long (>1024) String declaration (BZ
8146436)
8147
8148----------------------------------------
814923 June 2006. Summary of changes for version 20060623:
8150
81511) ACPI CA Core Subsystem:
8152
8153Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
8154allows the type to be customized to the host OS for improved efficiency
8155(since a spinlock is usually a very small object.)
8156
8157Implemented support for "ignored" bits in the ACPI registers. According
8158to
8159the ACPI specification, these bits should be preserved when writing the
8160registers via a read/modify/write cycle. There are 3 bits preserved in
8161this
8162manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
8163
8164Implemented the initial deployment of new OSL mutex interfaces. Since
8165some
8166host operating systems have separate mutex and semaphore objects, this
8167feature was requested. The base code now uses mutexes (and the new mutex
8168interfaces) wherever a binary semaphore was used previously. However, for
8169the current release, the mutex interfaces are defined as macros to map
8170them
8171to the existing semaphore interfaces. Therefore, no OSL changes are
8172required
8173at this time. (See acpiosxf.h)
8174
8175Fixed several problems with the support for the control method SyncLevel
8176parameter. The SyncLevel now works according to the ACPI specification
8177and
8178in concert with the Mutex SyncLevel parameter, since the current
8179SyncLevel
8180is a property of the executing thread. Mutual exclusion for control
8181methods
8182is now implemented with a mutex instead of a semaphore.
8183
8184Fixed three instances of the use of the C shift operator in the bitfield
8185support code (exfldio.c) to avoid the use of a shift value larger than
8186the
8187target data width. The behavior of C compilers is undefined in this case
8188and
8189can cause unpredictable results, and therefore the case must be detected
8190and
8191avoided. (Fiodor Suietov)
8192
8193Added an info message whenever an SSDT or OEM table is loaded dynamically
8194via the Load() or LoadTable() ASL operators. This should improve
8195debugging
8196capability since it will show exactly what tables have been loaded
8197(beyond
8198the tables present in the RSDT/XSDT.)
8199
8200Example Code and Data Size: These are the sizes for the OS-independent
8201acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8202debug version of the code includes the debug output trace mechanism and
8203has
8204a much larger code and data size.
8205
8206  Previous Release:
8207    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
8208    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
8209  Current Release:
8210    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
8211    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
8212
8213
82142) iASL Compiler/Disassembler and Tools:
8215
8216No changes for this release.
8217
8218----------------------------------------
821908 June 2006. Summary of changes for version 20060608:
8220
82211) ACPI CA Core Subsystem:
8222
8223Converted the locking mutex used for the ACPI hardware to a spinlock.
8224This
8225change should eliminate all problems caused by attempting to acquire a
8226semaphore at interrupt level, and it means that all ACPICA external
8227interfaces that directly access the ACPI hardware can be safely called
8228from
8229interrupt level. OSL code that implements the semaphore interfaces should
8230be
8231able to eliminate any workarounds for being called at interrupt level.
8232
8233Fixed a regression introduced in 20060526 where the ACPI device
8234initialization could be prematurely aborted with an AE_NOT_FOUND if a
8235device
8236did not have an optional _INI method.
8237
8238Fixed an IndexField issue where a write to the Data Register should be
8239limited in size to the AccessSize (width) of the IndexField itself. (BZ
8240433,
8241Fiodor Suietov)
8242
8243Fixed problem reports (Valery Podrezov) integrated:
8244- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
8245
8246Fixed problem reports (Fiodor Suietov) integrated:
8247- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
8248
8249Removed four global mutexes that were obsolete and were no longer being
8250used.
8251
8252Example Code and Data Size: These are the sizes for the OS-independent
8253acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8254debug version of the code includes the debug output trace mechanism and
8255has
8256a much larger code and data size.
8257
8258  Previous Release:
8259    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
8260    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
8261  Current Release:
8262    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
8263    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
8264
8265
82662) iASL Compiler/Disassembler and Tools:
8267
8268Fixed a fault when using -g option (get tables from registry) on Windows
8269machines.
8270
8271Fixed problem reports integrated:
8272- Generate error if CreateField NumBits parameter is zero. (BZ 405)
8273- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
8274Suietov)
8275- Global table revision override (-r) is ignored (BZ 413)
8276
8277----------------------------------------
827826 May 2006. Summary of changes for version 20060526:
8279
82801) ACPI CA Core Subsystem:
8281
8282Restructured, flattened, and simplified the internal interfaces for
8283namespace object evaluation - resulting in smaller code, less CPU stack
8284use,
8285and fewer interfaces. (With assistance from Mikhail Kouzmich)
8286
8287Fixed a problem with the CopyObject operator where the first parameter
8288was
8289not typed correctly for the parser, interpreter, compiler, and
8290disassembler.
8291Caused various errors and unexpected behavior.
8292
8293Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
8294produced incorrect results with some C compilers. Since the behavior of C
8295compilers when the shift value is larger than the datatype width is
8296apparently not well defined, the interpreter now detects this condition
8297and
8298simply returns zero as expected in all such cases. (BZ 395)
8299
8300Fixed problem reports (Valery Podrezov) integrated:
8301- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
8302- Allow interpreter to handle nested method declarations (BZ 5361)
8303
8304Fixed problem reports (Fiodor Suietov) integrated:
8305- AcpiTerminate doesn't free debug memory allocation list objects (BZ
8306355)
8307- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
8308356)
8309- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
8310- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
8311- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
8312- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
8313- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
8314- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
8315- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
8316365)
8317- Status of the Global Initialization Handler call not used (BZ 366)
8318- Incorrect object parameter to Global Initialization Handler (BZ 367)
8319
8320Example Code and Data Size: These are the sizes for the OS-independent
8321acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8322debug version of the code includes the debug output trace mechanism and
8323has
8324a much larger code and data size.
8325
8326  Previous Release:
8327    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
8328    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
8329  Current Release:
8330    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
8331    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
8332
8333
83342) iASL Compiler/Disassembler and Tools:
8335
8336Modified the parser to allow the names IO, DMA, and IRQ to be used as
8337namespace identifiers with no collision with existing resource descriptor
8338macro names. This provides compatibility with other ASL compilers and is
8339most useful for disassembly/recompilation of existing tables without
8340parse
8341errors. (With assistance from Thomas Renninger)
8342
8343Disassembler: fixed an incorrect disassembly problem with the
8344DataTableRegion and CopyObject operators. Fixed a possible fault during
8345disassembly of some Alias operators.
8346
8347----------------------------------------
834812 May 2006. Summary of changes for version 20060512:
8349
83501) ACPI CA Core Subsystem:
8351
8352Replaced the AcpiOsQueueForExecution interface with a new interface named
8353AcpiOsExecute. The major difference is that the new interface does not
8354have
8355a Priority parameter, this appeared to be useless and has been replaced
8356by
8357a
8358Type parameter. The Type tells the host what type of execution is being
8359requested, such as global lock handler, notify handler, GPE handler, etc.
8360This allows the host to queue and execute the request as appropriate for
8361the
8362request type, possibly using different work queues and different
8363priorities
8364for the various request types. This enables fixes for multithreading
8365deadlock problems such as BZ #5534, and will require changes to all
8366existing
8367OS interface layers. (Alexey Starikovskiy and Bob Moore)
8368
8369Fixed a possible memory leak associated with the support for the so-
8370called
8371"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
8372Suietov)
8373
8374Fixed a problem with the Load() operator where a table load from an
8375operation region could overwrite an internal table buffer by up to 7
8376bytes
8377and cause alignment faults on IPF systems. (With assistance from Luming
8378Yu)
8379
8380Example Code and Data Size: These are the sizes for the OS-independent
8381acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8382debug version of the code includes the debug output trace mechanism and
8383has
8384a much larger code and data size.
8385
8386  Previous Release:
8387    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
8388    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
8389  Current Release:
8390    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
8391    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
8392
8393
8394
83952) iASL Compiler/Disassembler and Tools:
8396
8397Disassembler: Implemented support to cross reference the internal
8398namespace
8399and automatically generate ASL External() statements for symbols not
8400defined
8401within the current table being disassembled. This will simplify the
8402disassembly and recompilation of interdependent tables such as SSDTs
8403since
8404these statements will no longer have to be added manually.
8405
8406Disassembler: Implemented experimental support to automatically detect
8407invocations of external control methods and generate appropriate
8408External()
8409statements. This is problematic because the AML cannot be correctly
8410parsed
8411until the number of arguments for each control method is known.
8412Currently,
8413standalone method invocations and invocations as the source operand of a
8414Store() statement are supported.
8415
8416Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
8417LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
8418LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
8419more readable and likely closer to the original ASL source.
8420
8421----------------------------------------
842221 April 2006. Summary of changes for version 20060421:
8423
84241) ACPI CA Core Subsystem:
8425
8426Removed a device initialization optimization introduced in 20051216 where
8427the _STA method was not run unless an _INI was also present for the same
8428device. This optimization could cause problems because it could allow
8429_INI
8430methods to be run within a not-present device subtree. (If a not-present
8431device had no _INI, _STA would not be run, the not-present status would
8432not
8433be discovered, and the children of the device would be incorrectly
8434traversed.)
8435
8436Implemented a new _STA optimization where namespace subtrees that do not
8437contain _INI are identified and ignored during device initialization.
8438Selectively running _STA can significantly improve boot time on large
8439machines (with assistance from Len Brown.)
8440
8441Implemented support for the device initialization case where the returned
8442_STA flags indicate a device not-present but functioning. In this case,
8443_INI
8444is not run, but the device children are examined for presence, as per the
8445ACPI specification.
8446
8447Implemented an additional change to the IndexField support in order to
8448conform to MS behavior. The value written to the Index Register is not
8449simply a byte offset, it is a byte offset in units of the access width of
8450the parent Index Field. (Fiodor Suietov)
8451
8452Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
8453interface is called during the creation of all AML operation regions, and
8454allows the host OS to exert control over what addresses it will allow the
8455AML code to access. Operation Regions whose addresses are disallowed will
8456cause a runtime exception when they are actually accessed (will not
8457affect
8458or abort table loading.) See oswinxf or osunixxf for an example
8459implementation.
8460
8461Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
8462interface allows the host OS to match the various "optional"
8463interface/behavior strings for the _OSI predefined control method as
8464appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
8465for an example implementation.
8466
8467Restructured and corrected various problems in the exception handling
8468code
8469paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
8470(with assistance from Takayoshi Kochi.)
8471
8472Modified the Linux source converter to ignore quoted string literals
8473while
8474converting identifiers from mixed to lower case. This will correct
8475problems
8476with the disassembler and other areas where such strings must not be
8477modified.
8478
8479The ACPI_FUNCTION_* macros no longer require quotes around the function
8480name. This allows the Linux source converter to convert the names, now
8481that
8482the converter ignores quoted strings.
8483
8484Example Code and Data Size: These are the sizes for the OS-independent
8485acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8486debug version of the code includes the debug output trace mechanism and
8487has
8488a much larger code and data size.
8489
8490  Previous Release:
8491
8492    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
8493    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
8494  Current Release:
8495    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
8496    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
8497
8498
84992) iASL Compiler/Disassembler and Tools:
8500
8501Implemented 3 new warnings for iASL, and implemented multiple warning
8502levels
8503(w2 flag).
8504
85051) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
8506not
8507WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
8508check for the possible timeout, a warning is issued.
8509
85102) Useless operators: If an ASL operator does not specify an optional
8511target
8512operand and it also does not use the function return value from the
8513operator, a warning is issued since the operator effectively does
8514nothing.
8515
85163) Unreferenced objects: If a namespace object is created, but never
8517referenced, a warning is issued. This is a warning level 2 since there
8518are
8519cases where this is ok, such as when a secondary table is loaded that
8520uses
8521the unreferenced objects. Even so, care is taken to only flag objects
8522that
8523don't look like they will ever be used. For example, the reserved methods
8524(starting with an underscore) are usually not referenced because it is
8525expected that the OS will invoke them.
8526
8527----------------------------------------
852831 March 2006. Summary of changes for version 20060331:
8529
85301) ACPI CA Core Subsystem:
8531
8532Implemented header file support for the following additional ACPI tables:
8533ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
8534support,
8535all current and known ACPI tables are now defined in the ACPICA headers
8536and
8537are available for use by device drivers and other software.
8538
8539Implemented support to allow tables that contain ACPI names with invalid
8540characters to be loaded. Previously, this would cause the table load to
8541fail, but since there are several known cases of such tables on existing
8542machines, this change was made to enable ACPI support for them. Also,
8543this
8544matches the behavior of the Microsoft ACPI implementation.
8545
8546Fixed a couple regressions introduced during the memory optimization in
8547the
854820060317 release. The namespace node definition required additional
8549reorganization and an internal datatype that had been changed to 8-bit
8550was
8551restored to 32-bit. (Valery Podrezov)
8552
8553Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
8554could be passed through to AcpiOsReleaseObject which is unexpected. Such
8555null pointers are now trapped and ignored, matching the behavior of the
8556previous implementation before the deployment of AcpiOsReleaseObject.
8557(Valery Podrezov, Fiodor Suietov)
8558
8559Fixed a memory mapping leak during the deletion of a SystemMemory
8560operation
8561region where a cached memory mapping was not deleted. This became a
8562noticeable problem for operation regions that are defined within
8563frequently
8564used control methods. (Dana Meyers)
8565
8566Reorganized the ACPI table header files into two main files: one for the
8567ACPI tables consumed by the ACPICA core, and another for the
8568miscellaneous
8569ACPI tables that are consumed by the drivers and other software. The
8570various
8571FADT definitions were merged into one common section and three different
8572tables (ACPI 1.0, 1.0+, and 2.0)
8573
8574Example Code and Data Size: These are the sizes for the OS-independent
8575acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8576debug version of the code includes the debug output trace mechanism and
8577has
8578a much larger code and data size.
8579
8580  Previous Release:
8581    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
8582    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
8583  Current Release:
8584    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
8585    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
8586
8587
85882) iASL Compiler/Disassembler and Tools:
8589
8590Disassembler: Implemented support to decode and format all non-AML ACPI
8591tables (tables other than DSDTs and SSDTs.) This includes the new tables
8592added to the ACPICA headers, therefore all current and known ACPI tables
8593are
8594supported.
8595
8596Disassembler: The change to allow ACPI names with invalid characters also
8597enables the disassembly of such tables. Invalid characters within names
8598are
8599changed to '*' to make the name printable; the iASL compiler will still
8600generate an error for such names, however, since this is an invalid ACPI
8601character.
8602
8603Implemented an option for AcpiXtract (-a) to extract all tables found in
8604the
8605input file. The default invocation extracts only the DSDTs and SSDTs.
8606
8607Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
8608makefile for the AcpiXtract utility.
8609
8610----------------------------------------
861117 March 2006. Summary of changes for version 20060317:
8612
86131) ACPI CA Core Subsystem:
8614
8615Implemented the use of a cache object for all internal namespace nodes.
8616Since there are about 1000 static nodes in a typical system, this will
8617decrease memory use for cache implementations that minimize per-
8618allocation
8619overhead (such as a slab allocator.)
8620
8621Removed the reference count mechanism for internal namespace nodes, since
8622it
8623was deemed unnecessary. This reduces the size of each namespace node by
8624about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
8625case,
8626and 32 bytes for the 64-bit case.
8627
8628Optimized several internal data structures to reduce object size on 64-
8629bit
8630platforms by packing data within the 64-bit alignment. This includes the
8631frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
8632instances corresponding to the namespace objects.
8633
8634Added two new strings for the predefined _OSI method: "Windows 2001.1
8635SP1"
8636and "Windows 2006".
8637
8638Split the allocation tracking mechanism out to a separate file, from
8639utalloc.c to uttrack.c. This mechanism appears to be only useful for
8640application-level code. Kernels may wish to not include uttrack.c in
8641distributions.
8642
8643Removed all remnants of the obsolete ACPI_REPORT_* macros and the
8644associated
8645code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
8646macros.)
8647
8648Code and Data Size: These are the sizes for the acpica.lib produced by
8649the
8650Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
8651ACPI
8652driver or OSPM code. The debug version of the code includes the debug
8653output
8654trace mechanism and has a much larger code and data size. Note that these
8655values will vary depending on the efficiency of the compiler and the
8656compiler options used during generation.
8657
8658  Previous Release:
8659    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
8660    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
8661  Current Release:
8662    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
8663    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
8664
8665
86662) iASL Compiler/Disassembler and Tools:
8667
8668Implemented an ANSI C version of the acpixtract utility. This version
8669will
8670automatically extract the DSDT and all SSDTs from the input acpidump text
8671file and dump the binary output to separate files. It can also display a
8672summary of the input file including the headers for each table found and
8673will extract any single ACPI table, with any signature. (See
8674source/tools/acpixtract)
8675
8676----------------------------------------
867710 March 2006. Summary of changes for version 20060310:
8678
86791) ACPI CA Core Subsystem:
8680
8681Tagged all external interfaces to the subsystem with the new
8682ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
8683assist
8684kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
8685macro. The default definition is NULL.
8686
8687Added the ACPI_THREAD_ID type for the return value from
8688AcpiOsGetThreadId.
8689This allows the host to define this as necessary to simplify kernel
8690integration. The default definition is ACPI_NATIVE_UINT.
8691
8692Fixed two interpreter problems related to error processing, the deletion
8693of
8694objects, and placing invalid pointers onto the internal operator result
8695stack. BZ 6028, 6151 (Valery Podrezov)
8696
8697Increased the reference count threshold where a warning is emitted for
8698large
8699reference counts in order to eliminate unnecessary warnings on systems
8700with
8701large namespaces (especially 64-bit.) Increased the value from 0x400 to
87020x800.
8703
8704Due to universal disagreement as to the meaning of the 'c' in the
8705calloc()
8706function, the ACPI_MEM_CALLOCATE macro has been renamed to
8707ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
8708ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
8709ACPI_FREE.
8710
8711Code and Data Size: These are the sizes for the acpica.lib produced by
8712the
8713Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
8714ACPI
8715driver or OSPM code. The debug version of the code includes the debug
8716output
8717trace mechanism and has a much larger code and data size. Note that these
8718values will vary depending on the efficiency of the compiler and the
8719compiler options used during generation.
8720
8721  Previous Release:
8722    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
8723    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
8724  Current Release:
8725    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
8726    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
8727
8728
87292) iASL Compiler/Disassembler:
8730
8731Disassembler: implemented support for symbolic resource descriptor
8732references. If a CreateXxxxField operator references a fixed offset
8733within
8734a
8735resource descriptor, a name is assigned to the descriptor and the offset
8736is
8737translated to the appropriate resource tag and pathname. The addition of
8738this support brings the disassembled code very close to the original ASL
8739source code and helps eliminate run-time errors when the disassembled
8740code
8741is modified (and recompiled) in such a way as to invalidate the original
8742fixed offsets.
8743
8744Implemented support for a Descriptor Name as the last parameter to the
8745ASL
8746Register() macro. This parameter was inadvertently left out of the ACPI
8747specification, and will be added for ACPI 3.0b.
8748
8749Fixed a problem where the use of the "_OSI" string (versus the full path
8750"\_OSI") caused an internal compiler error. ("No back ptr to op")
8751
8752Fixed a problem with the error message that occurs when an invalid string
8753is
8754used for a _HID object (such as one with an embedded asterisk:
8755"*PNP010A".)
8756The correct message is now displayed.
8757
8758----------------------------------------
875917 February 2006. Summary of changes for version 20060217:
8760
87611) ACPI CA Core Subsystem:
8762
8763Implemented a change to the IndexField support to match the behavior of
8764the
8765Microsoft AML interpreter. The value written to the Index register is now
8766a
8767byte offset, no longer an index based upon the width of the Data
8768register.
8769This should fix IndexField problems seen on some machines where the Data
8770register is not exactly one byte wide. The ACPI specification will be
8771clarified on this point.
8772
8773Fixed a problem where several resource descriptor types could overrun the
8774internal descriptor buffer due to size miscalculation: VendorShort,
8775VendorLong, and Interrupt. This was noticed on IA64 machines, but could
8776affect all platforms.
8777
8778Fixed a problem where individual resource descriptors were misaligned
8779within
8780the internal buffer, causing alignment faults on IA64 platforms.
8781
8782Code and Data Size: These are the sizes for the acpica.lib produced by
8783the
8784Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
8785ACPI
8786driver or OSPM code. The debug version of the code includes the debug
8787output
8788trace mechanism and has a much larger code and data size. Note that these
8789values will vary depending on the efficiency of the compiler and the
8790compiler options used during generation.
8791
8792  Previous Release:
8793    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
8794    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
8795  Current Release:
8796    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
8797    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
8798
8799
88002) iASL Compiler/Disassembler:
8801
8802Implemented support for new reserved names: _WDG and _WED are Microsoft
8803extensions for Windows Instrumentation Management, _TDL is a new ACPI-
8804defined method (Throttling Depth Limit.)
8805
8806Fixed a problem where a zero-length VendorShort or VendorLong resource
8807descriptor was incorrectly emitted as a descriptor of length one.
8808
8809----------------------------------------
881010 February 2006. Summary of changes for version 20060210:
8811
88121) ACPI CA Core Subsystem:
8813
8814Removed a couple of extraneous ACPI_ERROR messages that appeared during
8815normal execution. These became apparent after the conversion from
8816ACPI_DEBUG_PRINT.
8817
8818Fixed a problem where the CreateField operator could hang if the BitIndex
8819or
8820NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
8821
8822Fixed a problem where a DeRefOf operation on a buffer object incorrectly
8823failed with an exception. This also fixes a couple of related RefOf and
8824DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
8825
8826Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
8827of
8828AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
8829BZ
88305480)
8831
8832Implemented a memory cleanup at the end of the execution of each
8833iteration
8834of an AML While() loop, preventing the accumulation of outstanding
8835objects.
8836(Valery Podrezov, BZ 5427)
8837
8838Eliminated a chunk of duplicate code in the object resolution code.
8839(Valery
8840Podrezov, BZ 5336)
8841
8842Fixed several warnings during the 64-bit code generation.
8843
8844The AcpiSrc source code conversion tool now inserts one line of
8845whitespace
8846after an if() statement that is followed immediately by a comment,
8847improving
8848readability of the Linux code.
8849
8850Code and Data Size: The current and previous library sizes for the core
8851subsystem are shown below. These are the code and data sizes for the
8852acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
8853These
8854values do not include any ACPI driver or OSPM code. The debug version of
8855the
8856code includes the debug output trace mechanism and has a much larger code
8857and data size. Note that these values will vary depending on the
8858efficiency
8859of the compiler and the compiler options used during generation.
8860
8861  Previous Release:
8862    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
8863    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
8864  Current Release:
8865    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
8866    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
8867
8868
88692) iASL Compiler/Disassembler:
8870
8871Fixed a problem with the disassembly of a BankField operator with a
8872complex
8873expression for the BankValue parameter.
8874
8875----------------------------------------
887627 January 2006. Summary of changes for version 20060127:
8877
88781) ACPI CA Core Subsystem:
8879
8880Implemented support in the Resource Manager to allow unresolved
8881namestring
8882references within resource package objects for the _PRT method. This
8883support
8884is in addition to the previously implemented unresolved reference support
8885within the AML parser. If the interpreter slack mode is enabled, these
8886unresolved references will be passed through to the caller as a NULL
8887package
8888entry.
8889
8890Implemented and deployed new macros and functions for error and warning
8891messages across the subsystem. These macros are simpler and generate less
8892code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
8893ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
8894macros remain defined to allow ACPI drivers time to migrate to the new
8895macros.
8896
8897Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
8898the
8899Acquire/Release Lock OSL interfaces.
8900
8901Fixed a problem where Alias ASL operators are sometimes not correctly
8902resolved, in both the interpreter and the iASL compiler.
8903
8904Fixed several problems with the implementation of the
8905ConcatenateResTemplate
8906ASL operator. As per the ACPI specification, zero length buffers are now
8907treated as a single EndTag. One-length buffers always cause a fatal
8908exception. Non-zero length buffers that do not end with a full 2-byte
8909EndTag
8910cause a fatal exception.
8911
8912Fixed a possible structure overwrite in the AcpiGetObjectInfo external
8913interface. (With assistance from Thomas Renninger)
8914
8915Code and Data Size: The current and previous library sizes for the core
8916subsystem are shown below. These are the code and data sizes for the
8917acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
8918These
8919values do not include any ACPI driver or OSPM code. The debug version of
8920the
8921code includes the debug output trace mechanism and has a much larger code
8922and data size. Note that these values will vary depending on the
8923efficiency
8924of the compiler and the compiler options used during generation.
8925
8926  Previous Release:
8927    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
8928    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
8929  Current Release:
8930    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
8931    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
8932
8933
89342) iASL Compiler/Disassembler:
8935
8936Fixed an internal error that was generated for any forward references to
8937ASL
8938Alias objects.
8939
8940----------------------------------------
894113 January 2006. Summary of changes for version 20060113:
8942
89431) ACPI CA Core Subsystem:
8944
8945Added 2006 copyright to all module headers and signons. This affects
8946virtually every file in the ACPICA core subsystem, iASL compiler, and the
8947utilities.
8948
8949Enhanced the ACPICA error reporting in order to simplify user migration
8950to
8951the non-debug version of ACPICA. Replaced all instances of the
8952ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
8953debug
8954levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
8955respectively. This preserves all error and warning messages in the non-
8956debug
8957version of the ACPICA code (this has been referred to as the "debug lite"
8958option.) Over 200 cases were converted to create a total of over 380
8959error/warning messages across the ACPICA code. This increases the code
8960and
8961data size of the default non-debug version of the code somewhat (about
896213K),
8963but all error/warning reporting may be disabled if desired (and code
8964eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
8965configuration option. The size of the debug version of ACPICA remains
8966about
8967the same.
8968
8969Fixed a memory leak within the AML Debugger "Set" command. One object was
8970not properly deleted for every successful invocation of the command.
8971
8972Code and Data Size: The current and previous library sizes for the core
8973subsystem are shown below. These are the code and data sizes for the
8974acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
8975These
8976values do not include any ACPI driver or OSPM code. The debug version of
8977the
8978code includes the debug output trace mechanism and has a much larger code
8979and data size. Note that these values will vary depending on the
8980efficiency
8981of the compiler and the compiler options used during generation.
8982
8983  Previous Release:
8984    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
8985    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
8986  Current Release:
8987    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
8988    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
8989
8990
89912) iASL Compiler/Disassembler:
8992
8993The compiler now officially supports the ACPI 3.0a specification that was
8994released on December 30, 2005. (Specification is available at
8995www.acpi.info)
8996
8997----------------------------------------
899816 December 2005. Summary of changes for version 20051216:
8999
90001) ACPI CA Core Subsystem:
9001
9002Implemented optional support to allow unresolved names within ASL Package
9003objects. A null object is inserted in the package when a named reference
9004cannot be located in the current namespace. Enabled via the interpreter
9005slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
9006machines
9007that contain such code.
9008
9009Implemented an optimization to the initialization sequence that can
9010improve
9011boot time. During ACPI device initialization, the _STA method is now run
9012if
9013and only if the _INI method exists. The _STA method is used to determine
9014if
9015the device is present; An _INI can only be run if _STA returns present,
9016but
9017it is a waste of time to run the _STA method if the _INI does not exist.
9018(Prototype and assistance from Dong Wei)
9019
9020Implemented use of the C99 uintptr_t for the pointer casting macros if it
9021is
9022available in the current compiler. Otherwise, the default (void *) cast
9023is
9024used as before.
9025
9026Fixed some possible memory leaks found within the execution path of the
9027Break, Continue, If, and CreateField operators. (Valery Podrezov)
9028
9029Fixed a problem introduced in the 20051202 release where an exception is
9030generated during method execution if a control method attempts to declare
9031another method.
9032
9033Moved resource descriptor string constants that are used by both the AML
9034disassembler and AML debugger to the common utilities directory so that
9035these components are independent.
9036
9037Implemented support in the AcpiExec utility (-e switch) to globally
9038ignore
9039exceptions during control method execution (method is not aborted.)
9040
9041Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
9042generation.
9043
9044Code and Data Size: The current and previous library sizes for the core
9045subsystem are shown below. These are the code and data sizes for the
9046acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9047These
9048values do not include any ACPI driver or OSPM code. The debug version of
9049the
9050code includes the debug output trace mechanism and has a much larger code
9051and data size. Note that these values will vary depending on the
9052efficiency
9053of the compiler and the compiler options used during generation.
9054
9055  Previous Release:
9056    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
9057    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
9058  Current Release:
9059    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
9060    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
9061
9062
90632) iASL Compiler/Disassembler:
9064
9065Fixed a problem where a CPU stack overflow fault could occur if a
9066recursive
9067method call was made from within a Return statement.
9068
9069----------------------------------------
907002 December 2005. Summary of changes for version 20051202:
9071
90721) ACPI CA Core Subsystem:
9073
9074Modified the parsing of control methods to no longer create namespace
9075objects during the first pass of the parse. Objects are now created only
9076during the execute phase, at the moment the namespace creation operator
9077is
9078encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
9079This
9080should eliminate ALREADY_EXISTS exceptions seen on some machines where
9081reentrant control methods are protected by an AML mutex. The mutex will
9082now
9083correctly block multiple threads from attempting to create the same
9084object
9085more than once.
9086
9087Increased the number of available Owner Ids for namespace object tracking
9088from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
9089on
9090some machines with a large number of ACPI tables (either static or
9091dynamic).
9092
9093Fixed a problem with the AcpiExec utility where a fault could occur when
9094the
9095-b switch (batch mode) is used.
9096
9097Enhanced the namespace dump routine to output the owner ID for each
9098namespace object.
9099
9100Code and Data Size: The current and previous library sizes for the core
9101subsystem are shown below. These are the code and data sizes for the
9102acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9103These
9104values do not include any ACPI driver or OSPM code. The debug version of
9105the
9106code includes the debug output trace mechanism and has a much larger code
9107and data size. Note that these values will vary depending on the
9108efficiency
9109of the compiler and the compiler options used during generation.
9110
9111  Previous Release:
9112    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
9113    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
9114  Current Release:
9115    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
9116    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
9117
9118
91192) iASL Compiler/Disassembler:
9120
9121Fixed a parse error during compilation of certain Switch/Case constructs.
9122To
9123simplify the parse, the grammar now allows for multiple Default
9124statements
9125and this error is now detected and flagged during the analysis phase.
9126
9127Disassembler: The disassembly now includes the contents of the original
9128table header within a comment at the start of the file. This includes the
9129name and version of the original ASL compiler.
9130
9131----------------------------------------
913217 November 2005. Summary of changes for version 20051117:
9133
91341) ACPI CA Core Subsystem:
9135
9136Fixed a problem in the AML parser where the method thread count could be
9137decremented below zero if any errors occurred during the method parse
9138phase.
9139This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
9140machines.
9141This also fixed a related regression with the mechanism that detects and
9142corrects methods that cannot properly handle reentrancy (related to the
9143deployment of the new OwnerId mechanism.)
9144
9145Eliminated the pre-parsing of control methods (to detect errors) during
9146table load. Related to the problem above, this was causing unwind issues
9147if
9148any errors occurred during the parse, and it seemed to be overkill. A
9149table
9150load should not be aborted if there are problems with any single control
9151method, thus rendering this feature rather pointless.
9152
9153Fixed a problem with the new table-driven resource manager where an
9154internal
9155buffer overflow could occur for small resource templates.
9156
9157Implemented a new external interface, AcpiGetVendorResource. This
9158interface
9159will find and return a vendor-defined resource descriptor within a _CRS
9160or
9161_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
9162Helgaas.
9163
9164Removed the length limit (200) on string objects as per the upcoming ACPI
91653.0A specification. This affects the following areas of the interpreter:
91661)
9167any implicit conversion of a Buffer to a String, 2) a String object
9168result
9169of the ASL Concatentate operator, 3) the String object result of the ASL
9170ToString operator.
9171
9172Fixed a problem in the Windows OS interface layer (OSL) where a
9173WAIT_FOREVER
9174on a semaphore object would incorrectly timeout. This allows the
9175multithreading features of the AcpiExec utility to work properly under
9176Windows.
9177
9178Updated the Linux makefiles for the iASL compiler and AcpiExec to include
9179the recently added file named "utresrc.c".
9180
9181Code and Data Size: The current and previous library sizes for the core
9182subsystem are shown below. These are the code and data sizes for the
9183acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9184These
9185values do not include any ACPI driver or OSPM code. The debug version of
9186the
9187code includes the debug output trace mechanism and has a much larger code
9188and data size. Note that these values will vary depending on the
9189efficiency
9190of the compiler and the compiler options used during generation.
9191
9192  Previous Release:
9193    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
9194    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
9195  Current Release:
9196    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
9197    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
9198
9199
92002) iASL Compiler/Disassembler:
9201
9202Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
9203specification. For the iASL compiler, this means that string literals
9204within
9205the source ASL can be of any length.
9206
9207Enhanced the listing output to dump the AML code for resource descriptors
9208immediately after the ASL code for each descriptor, instead of in a block
9209at
9210the end of the entire resource template.
9211
9212Enhanced the compiler debug output to dump the entire original parse tree
9213constructed during the parse phase, before any transforms are applied to
9214the
9215tree. The transformed tree is dumped also.
9216
9217----------------------------------------
921802 November 2005. Summary of changes for version 20051102:
9219
92201) ACPI CA Core Subsystem:
9221
9222Modified the subsystem initialization sequence to improve GPE support.
9223The
9224GPE initialization has been split into two parts in order to defer
9225execution
9226of the _PRW methods (Power Resources for Wake) until after the hardware
9227is
9228fully initialized and the SCI handler is installed. This allows the _PRW
9229methods to access fields protected by the Global Lock. This will fix
9230systems
9231where a NO_GLOBAL_LOCK exception has been seen during initialization.
9232
9233Converted the ACPI internal object disassemble and display code within
9234the
9235AML debugger to fully table-driven operation, reducing code size and
9236increasing maintainability.
9237
9238Fixed a regression with the ConcatenateResTemplate() ASL operator
9239introduced
9240in the 20051021 release.
9241
9242Implemented support for "local" internal ACPI object types within the
9243debugger "Object" command and the AcpiWalkNamespace external interfaces.
9244These local types include RegionFields, BankFields, IndexFields, Alias,
9245and
9246reference objects.
9247
9248Moved common AML resource handling code into a new file, "utresrc.c".
9249This
9250code is shared by both the Resource Manager and the AML Debugger.
9251
9252Code and Data Size: The current and previous library sizes for the core
9253subsystem are shown below. These are the code and data sizes for the
9254acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9255These
9256values do not include any ACPI driver or OSPM code. The debug version of
9257the
9258code includes the debug output trace mechanism and has a much larger code
9259and data size. Note that these values will vary depending on the
9260efficiency
9261of the compiler and the compiler options used during generation.
9262
9263  Previous Release:
9264    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
9265    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
9266  Current Release:
9267    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
9268    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
9269
9270
92712) iASL Compiler/Disassembler:
9272
9273Fixed a problem with very large initializer lists (more than 4000
9274elements)
9275for both Buffer and Package objects where the parse stack could overflow.
9276
9277Enhanced the pre-compile source code scan for non-ASCII characters to
9278ignore
9279characters within comment fields. The scan is now always performed and is
9280no
9281longer optional, detecting invalid characters within a source file
9282immediately rather than during the parse phase or later.
9283
9284Enhanced the ASL grammar definition to force early reductions on all
9285list-
9286style grammar elements so that the overall parse stack usage is greatly
9287reduced. This should improve performance and reduce the possibility of
9288parse
9289stack overflow.
9290
9291Eliminated all reduce/reduce conflicts in the iASL parser generation.
9292Also,
9293with the addition of a %expected statement, the compiler generates from
9294source with no warnings.
9295
9296Fixed a possible segment fault in the disassembler if the input filename
9297does not contain a "dot" extension (Thomas Renninger).
9298
9299----------------------------------------
930021 October 2005. Summary of changes for version 20051021:
9301
93021) ACPI CA Core Subsystem:
9303
9304Implemented support for the EM64T and other x86-64 processors. This
9305essentially entails recognizing that these processors support non-aligned
9306memory transfers. Previously, all 64-bit processors were assumed to lack
9307hardware support for non-aligned transfers.
9308
9309Completed conversion of the Resource Manager to nearly full table-driven
9310operation. Specifically, the resource conversion code (convert AML to
9311internal format and the reverse) and the debug code to dump internal
9312resource descriptors are fully table-driven, reducing code and data size
9313and
9314improving maintainability.
9315
9316The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
9317word
9318on 64-bit processors instead of a fixed 32-bit word. (With assistance
9319from
9320Alexey Starikovskiy)
9321
9322Implemented support within the resource conversion code for the Type-
9323Specific byte within the various ACPI 3.0 *WordSpace macros.
9324
9325Fixed some issues within the resource conversion code for the type-
9326specific
9327flags for both Memory and I/O address resource descriptors. For Memory,
9328implemented support for the MTP and TTP flags. For I/O, split the TRS and
9329TTP flags into two separate fields.
9330
9331Code and Data Size: The current and previous library sizes for the core
9332subsystem are shown below. These are the code and data sizes for the
9333acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9334These
9335values do not include any ACPI driver or OSPM code. The debug version of
9336the
9337code includes the debug output trace mechanism and has a much larger code
9338and data size. Note that these values will vary depending on the
9339efficiency
9340of the compiler and the compiler options used during generation.
9341
9342  Previous Release:
9343    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
9344    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
9345  Current Release:
9346    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
9347    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
9348
9349
9350
93512) iASL Compiler/Disassembler:
9352
9353Relaxed a compiler restriction that disallowed a ResourceIndex byte if
9354the
9355corresponding ResourceSource string was not also present in a resource
9356descriptor declaration. This restriction caused problems with existing
9357AML/ASL code that includes the Index byte without the string. When such
9358AML
9359was disassembled, it could not be compiled without modification. Further,
9360the modified code created a resource template with a different size than
9361the
9362original, breaking code that used fixed offsets into the resource
9363template
9364buffer.
9365
9366Removed a recent feature of the disassembler to ignore a lone
9367ResourceIndex
9368byte. This byte is now emitted if present so that the exact AML can be
9369reproduced when the disassembled code is recompiled.
9370
9371Improved comments and text alignment for the resource descriptor code
9372emitted by the disassembler.
9373
9374Implemented disassembler support for the ACPI 3.0 AccessSize field within
9375a
9376Register() resource descriptor.
9377
9378----------------------------------------
937930 September 2005. Summary of changes for version 20050930:
9380
93811) ACPI CA Core Subsystem:
9382
9383Completed a major overhaul of the Resource Manager code - specifically,
9384optimizations in the area of the AML/internal resource conversion code.
9385The
9386code has been optimized to simplify and eliminate duplicated code, CPU
9387stack
9388use has been decreased by optimizing function parameters and local
9389variables, and naming conventions across the manager have been
9390standardized
9391for clarity and ease of maintenance (this includes function, parameter,
9392variable, and struct/typedef names.) The update may force changes in some
9393driver code, depending on how resources are handled by the host OS.
9394
9395All Resource Manager dispatch and information tables have been moved to a
9396single location for clarity and ease of maintenance. One new file was
9397created, named "rsinfo.c".
9398
9399The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
9400guarantee that the argument is not evaluated twice, making them less
9401prone
9402to macro side-effects. However, since there exists the possibility of
9403additional stack use if a particular compiler cannot optimize them (such
9404as
9405in the debug generation case), the original macros are optionally
9406available.
9407Note that some invocations of the return_VALUE macro may now cause size
9408mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
9409to
9410eliminate these. (From Randy Dunlap)
9411
9412Implemented a new mechanism to enable debug tracing for individual
9413control
9414methods. A new external interface, AcpiDebugTrace, is provided to enable
9415this mechanism. The intent is to allow the host OS to easily enable and
9416disable tracing for problematic control methods. This interface can be
9417easily exposed to a user or debugger interface if desired. See the file
9418psxface.c for details.
9419
9420AcpiUtCallocate will now return a valid pointer if a length of zero is
9421specified - a length of one is used and a warning is issued. This matches
9422the behavior of AcpiUtAllocate.
9423
9424Code and Data Size: The current and previous library sizes for the core
9425subsystem are shown below. These are the code and data sizes for the
9426acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9427These
9428values do not include any ACPI driver or OSPM code. The debug version of
9429the
9430code includes the debug output trace mechanism and has a much larger code
9431and data size. Note that these values will vary depending on the
9432efficiency
9433of the compiler and the compiler options used during generation.
9434
9435  Previous Release:
9436    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
9437    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
9438  Current Release:
9439    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
9440    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
9441
9442
94432) iASL Compiler/Disassembler:
9444
9445A remark is issued if the effective compile-time length of a package or
9446buffer is zero. Previously, this was a warning.
9447
9448----------------------------------------
944916 September 2005. Summary of changes for version 20050916:
9450
94511) ACPI CA Core Subsystem:
9452
9453Fixed a problem within the Resource Manager where support for the Generic
9454Register descriptor was not fully implemented. This descriptor is now
9455fully
9456recognized, parsed, disassembled, and displayed.
9457
9458Completely restructured the Resource Manager code to utilize table-driven
9459dispatch and lookup, eliminating many of the large switch() statements.
9460This
9461reduces overall subsystem code size and code complexity. Affects the
9462resource parsing and construction, disassembly, and debug dump output.
9463
9464Cleaned up and restructured the debug dump output for all resource
9465descriptors. Improved readability of the output and reduced code size.
9466
9467Fixed a problem where changes to internal data structures caused the
9468optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
9469
9470Code and Data Size: The current and previous library sizes for the core
9471subsystem are shown below. These are the code and data sizes for the
9472acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
9473These
9474values do not include any ACPI driver or OSPM code. The debug version of
9475the
9476code includes the debug output trace mechanism and has a much larger code
9477and data size. Note that these values will vary depending on the
9478efficiency
9479of the compiler and the compiler options used during generation.
9480
9481  Previous Release:
9482    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
9483    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
9484  Current Release:
9485    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
9486    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
9487
9488
94892) iASL Compiler/Disassembler:
9490
9491Updated the disassembler to automatically insert an EndDependentFn()
9492macro
9493into the ASL stream if this macro is missing in the original AML code,
9494simplifying compilation of the resulting ASL module.
9495
9496Fixed a problem in the disassembler where a disassembled ResourceSource
9497string (within a large resource descriptor) was not surrounded by quotes
9498and
9499not followed by a comma, causing errors when the resulting ASL module was
9500compiled. Also, escape sequences within a ResourceSource string are now
9501handled correctly (especially "\\")
9502
9503----------------------------------------
950402 September 2005. Summary of changes for version 20050902:
9505
95061) ACPI CA Core Subsystem:
9507
9508Fixed a problem with the internal Owner ID allocation and deallocation
9509mechanisms for control method execution and recursive method invocation.
9510This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
9511messages seen on some systems. Recursive method invocation depth is
9512currently limited to 255. (Alexey Starikovskiy)
9513
9514Completely eliminated all vestiges of support for the "module-level
9515executable code" until this support is fully implemented and debugged.
9516This
9517should eliminate the NO_RETURN_VALUE exceptions seen during table load on
9518some systems that invoke this support.
9519
9520Fixed a problem within the resource manager code where the transaction
9521flags
9522for a 64-bit address descriptor were handled incorrectly in the type-
9523specific flag byte.
9524
9525Consolidated duplicate code within the address descriptor resource
9526manager
9527code, reducing overall subsystem code size.
9528
9529Fixed a fault when using the AML debugger "disassemble" command to
9530disassemble individual control methods.
9531
9532Removed references to the "release_current" directory within the Unix
9533release package.
9534
9535Code and Data Size: The current and previous core subsystem library sizes
9536are shown below. These are the code and data sizes for the acpica.lib
9537produced by the Microsoft Visual C++ 6.0 compiler. These values do not
9538include any ACPI driver or OSPM code. The debug version of the code
9539includes
9540the debug output trace mechanism and has a much larger code and data
9541size.
9542Note that these values will vary depending on the efficiency of the
9543compiler
9544and the compiler options used during generation.
9545
9546  Previous Release:
9547    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
9548    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
9549  Current Release:
9550    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
9551    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
9552
9553
95542) iASL Compiler/Disassembler:
9555
9556Implemented an error check for illegal duplicate values in the interrupt
9557and
9558dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
9559Interrupt().
9560
9561Implemented error checking for the Irq() and IrqNoFlags() macros to
9562detect
9563too many values in the interrupt list (16 max) and invalid values in the
9564list (range 0 - 15)
9565
9566The maximum length string literal within an ASL file is now restricted to
9567200 characters as per the ACPI specification.
9568
9569Fixed a fault when using the -ln option (generate namespace listing).
9570
9571Implemented an error check to determine if a DescriptorName within a
9572resource descriptor has already been used within the current scope.
9573
9574----------------------------------------
957515 August 2005.  Summary of changes for version 20050815:
9576
95771) ACPI CA Core Subsystem:
9578
9579Implemented a full bytewise compare to determine if a table load request
9580is
9581attempting to load a duplicate table. The compare is performed if the
9582table
9583signatures and table lengths match. This will allow different tables with
9584the same OEM Table ID and revision to be loaded - probably against the
9585ACPI
9586specification, but discovered in the field nonetheless.
9587
9588Added the changes.txt logfile to each of the zipped release packages.
9589
9590Code and Data Size: Current and previous core subsystem library sizes are
9591shown below. These are the code and data sizes for the acpica.lib
9592produced
9593by the Microsoft Visual C++ 6.0 compiler, and these values do not include
9594any ACPI driver or OSPM code. The debug version of the code includes the
9595debug output trace mechanism and has a much larger code and data size.
9596Note
9597that these values will vary depending on the efficiency of the compiler
9598and
9599the compiler options used during generation.
9600
9601  Previous Release:
9602    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
9603    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
9604  Current Release:
9605    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
9606    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
9607
9608
96092) iASL Compiler/Disassembler:
9610
9611Fixed a problem where incorrect AML code could be generated for Package
9612objects if optimization is disabled (via the -oa switch).
9613
9614Fixed a problem with where incorrect AML code is generated for variable-
9615length packages when the package length is not specified and the number
9616of
9617initializer values is greater than 255.
9618
9619
9620----------------------------------------
962129 July 2005.  Summary of changes for version 20050729:
9622
96231) ACPI CA Core Subsystem:
9624
9625Implemented support to ignore an attempt to install/load a particular
9626ACPI
9627table more than once. Apparently there exists BIOS code that repeatedly
9628attempts to load the same SSDT upon certain events. With assistance from
9629Venkatesh Pallipadi.
9630
9631Restructured the main interface to the AML parser in order to correctly
9632handle all exceptional conditions. This will prevent leakage of the
9633OwnerId
9634resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
9635some
9636machines. With assistance from Alexey Starikovskiy.
9637
9638Support for "module level code" has been disabled in this version due to
9639a
9640number of issues that have appeared on various machines. The support can
9641be
9642enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
9643compilation. When the issues are fully resolved, the code will be enabled
9644by
9645default again.
9646
9647Modified the internal functions for debug print support to define the
9648FunctionName parameter as a (const char *) for compatibility with
9649compiler
9650built-in macros such as __FUNCTION__, etc.
9651
9652Linted the entire ACPICA source tree for both 32-bit and 64-bit.
9653
9654Implemented support to display an object count summary for the AML
9655Debugger
9656commands Object and Methods.
9657
9658Code and Data Size: Current and previous core subsystem library sizes are
9659shown below. These are the code and data sizes for the acpica.lib
9660produced
9661by the Microsoft Visual C++ 6.0 compiler, and these values do not include
9662any ACPI driver or OSPM code. The debug version of the code includes the
9663debug output trace mechanism and has a much larger code and data size.
9664Note
9665that these values will vary depending on the efficiency of the compiler
9666and
9667the compiler options used during generation.
9668
9669  Previous Release:
9670    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
9671    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
9672  Current Release:
9673    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
9674    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
9675
9676
96772) iASL Compiler/Disassembler:
9678
9679Fixed a regression that appeared in the 20050708 version of the compiler
9680where an error message was inadvertently emitted for invocations of the
9681_OSI
9682reserved control method.
9683
9684----------------------------------------
968508 July 2005.  Summary of changes for version 20050708:
9686
96871) ACPI CA Core Subsystem:
9688
9689The use of the CPU stack in the debug version of the subsystem has been
9690considerably reduced. Previously, a debug structure was declared in every
9691function that used the debug macros. This structure has been removed in
9692favor of declaring the individual elements as parameters to the debug
9693functions. This reduces the cumulative stack use during nested execution
9694of
9695ACPI function calls at the cost of a small increase in the code size of
9696the
9697debug version of the subsystem. With assistance from Alexey Starikovskiy
9698and
9699Len Brown.
9700
9701Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
9702headers to define a macro that will return the current function name at
9703runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
9704by
9705the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
9706compiler-dependent header, the function name is saved on the CPU stack
9707(one
9708pointer per function.) This mechanism is used because apparently there
9709exists no standard ANSI-C defined macro that that returns the function
9710name.
9711
9712Redesigned and reimplemented the "Owner ID" mechanism used to track
9713namespace objects created/deleted by ACPI tables and control method
9714execution. A bitmap is now used to allocate and free the IDs, thus
9715solving
9716the wraparound problem present in the previous implementation. The size
9717of
9718the namespace node descriptor was reduced by 2 bytes as a result (Alexey
9719Starikovskiy).
9720
9721Removed the UINT32_BIT and UINT16_BIT types that were used for the
9722bitfield
9723flag definitions within the headers for the predefined ACPI tables. These
9724have been replaced by UINT8_BIT in order to increase the code portability
9725of
9726the subsystem. If the use of UINT8 remains a problem, we may be forced to
9727eliminate bitfields entirely because of a lack of portability.
9728
9729Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
9730This
9731is a frequently used function and this improvement increases the
9732performance
9733of the entire subsystem (Alexey Starikovskiy).
9734
9735Fixed several possible memory leaks and the inverse - premature object
9736deletion (Alexey Starikovskiy).
9737
9738Code and Data Size: Current and previous core subsystem library sizes are
9739shown below. These are the code and data sizes for the acpica.lib
9740produced
9741by the Microsoft Visual C++ 6.0 compiler, and these values do not include
9742any ACPI driver or OSPM code. The debug version of the code includes the
9743debug output trace mechanism and has a much larger code and data size.
9744Note
9745that these values will vary depending on the efficiency of the compiler
9746and
9747the compiler options used during generation.
9748
9749  Previous Release:
9750    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
9751    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
9752  Current Release:
9753    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
9754    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
9755
9756----------------------------------------
975724 June 2005.  Summary of changes for version 20050624:
9758
97591) ACPI CA Core Subsystem:
9760
9761Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
9762the host-defined cache object. This allows the OSL implementation to
9763define
9764and type this object in any manner desired, simplifying the OSL
9765implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
9766Linux, and should be defined in the OS-specific header file for other
9767operating systems as required.
9768
9769Changed the interface to AcpiOsAcquireObject to directly return the
9770requested object as the function return (instead of ACPI_STATUS.) This
9771change was made for performance reasons, since this is the purpose of the
9772interface in the first place. AcpiOsAcquireObject is now similar to the
9773AcpiOsAllocate interface.
9774
9775Implemented a new AML debugger command named Businfo. This command
9776displays
9777information about all devices that have an associate _PRT object. The
9778_ADR,
9779_HID, _UID, and _CID are displayed for these devices.
9780
9781Modified the initialization sequence in AcpiInitializeSubsystem to call
9782the
9783OSL interface AcpiOslInitialize first, before any local initialization.
9784This
9785change was required because the global initialization now calls OSL
9786interfaces.
9787
9788Enhanced the Dump command to display the entire contents of Package
9789objects
9790(including all sub-objects and their values.)
9791
9792Restructured the code base to split some files because of size and/or
9793because the code logically belonged in a separate file. New files are
9794listed
9795below. All makefiles and project files included in the ACPI CA release
9796have
9797been updated.
9798    utilities/utcache.c           /* Local cache interfaces */
9799    utilities/utmutex.c           /* Local mutex support */
9800    utilities/utstate.c           /* State object support */
9801    interpreter/parser/psloop.c   /* Main AML parse loop */
9802
9803Code and Data Size: Current and previous core subsystem library sizes are
9804shown below. These are the code and data sizes for the acpica.lib
9805produced
9806by the Microsoft Visual C++ 6.0 compiler, and these values do not include
9807any ACPI driver or OSPM code. The debug version of the code includes the
9808debug output trace mechanism and has a much larger code and data size.
9809Note
9810that these values will vary depending on the efficiency of the compiler
9811and
9812the compiler options used during generation.
9813
9814  Previous Release:
9815    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
9816    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
9817  Current Release:
9818    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
9819    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
9820
9821
98222) iASL Compiler/Disassembler:
9823
9824Fixed a regression introduced in version 20050513 where the use of a
9825Package
9826object within a Case() statement caused a compile time exception. The
9827original behavior has been restored (a Match() operator is emitted.)
9828
9829----------------------------------------
983017 June 2005.  Summary of changes for version 20050617:
9831
98321) ACPI CA Core Subsystem:
9833
9834Moved the object cache operations into the OS interface layer (OSL) to
9835allow
9836the host OS to handle these operations if desired (for example, the Linux
9837OSL will invoke the slab allocator). This support is optional; the
9838compile
9839time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
9840cache
9841code in the ACPI CA core. The new OSL interfaces are shown below. See
9842utalloc.c for an example implementation, and acpiosxf.h for the exact
9843interface definitions. With assistance from Alexey Starikovskiy.
9844    AcpiOsCreateCache
9845    AcpiOsDeleteCache
9846    AcpiOsPurgeCache
9847    AcpiOsAcquireObject
9848    AcpiOsReleaseObject
9849
9850Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
9851return
9852and restore a flags parameter. This fits better with many OS lock models.
9853Note: the current execution state (interrupt handler or not) is no longer
9854passed to these interfaces. If necessary, the OSL must determine this
9855state
9856by itself, a simple and fast operation. With assistance from Alexey
9857Starikovskiy.
9858
9859Fixed a problem in the ACPI table handling where a valid XSDT was assumed
9860present if the revision of the RSDP was 2 or greater. According to the
9861ACPI
9862specification, the XSDT is optional in all cases, and the table manager
9863therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
9864Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
9865contain
9866only the RSDT.
9867
9868Fixed an interpreter problem with the Mid() operator in the case of an
9869input
9870string where the resulting output string is of zero length. It now
9871correctly
9872returns a valid, null terminated string object instead of a string object
9873with a null pointer.
9874
9875Fixed a problem with the control method argument handling to allow a
9876store
9877to an Arg object that already contains an object of type Device. The
9878Device
9879object is now correctly overwritten. Previously, an error was returned.
9880
9881
9882Enhanced the debugger Find command to emit object values in addition to
9883the
9884found object pathnames. The output format is the same as the dump
9885namespace
9886command.
9887
9888Enhanced the debugger Set command. It now has the ability to set the
9889value
9890of any Named integer object in the namespace (Previously, only method
9891locals
9892and args could be set.)
9893
9894Code and Data Size: Current and previous core subsystem library sizes are
9895shown below. These are the code and data sizes for the acpica.lib
9896produced
9897by the Microsoft Visual C++ 6.0 compiler, and these values do not include
9898any ACPI driver or OSPM code. The debug version of the code includes the
9899debug output trace mechanism and has a much larger code and data size.
9900Note
9901that these values will vary depending on the efficiency of the compiler
9902and
9903the compiler options used during generation.
9904
9905  Previous Release:
9906    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
9907    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
9908  Current Release:
9909    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
9910    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
9911
9912
99132) iASL Compiler/Disassembler:
9914
9915Fixed a regression in the disassembler where if/else/while constructs
9916were
9917output incorrectly. This problem was introduced in the previous release
9918(20050526). This problem also affected the single-step disassembly in the
9919debugger.
9920
9921Fixed a problem where compiling the reserved _OSI method would randomly
9922(but
9923rarely) produce compile errors.
9924
9925Enhanced the disassembler to emit compilable code in the face of
9926incorrect
9927AML resource descriptors. If the optional ResourceSourceIndex is present,
9928but the ResourceSource is not, do not emit the ResourceSourceIndex in the
9929disassembly. Otherwise, the resulting code cannot be compiled without
9930errors.
9931
9932----------------------------------------
993326 May 2005.  Summary of changes for version 20050526:
9934
99351) ACPI CA Core Subsystem:
9936
9937Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
9938the module level (not within a control method.) These opcodes are
9939executed
9940exactly once at the time the table is loaded. This type of code was legal
9941up
9942until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
9943in
9944order to provide backwards compatibility with earlier BIOS
9945implementations.
9946This eliminates the "Encountered executable code at module level" warning
9947that was previously generated upon detection of such code.
9948
9949Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
9950inadvertently be generated during the lookup of namespace objects in the
9951second pass parse of ACPI tables and control methods. It appears that
9952this
9953problem could occur during the resolution of forward references to
9954namespace
9955objects.
9956
9957Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
9958corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
9959allows the deadlock detection debug code to be compiled out in the normal
9960case, improving mutex performance (and overall subsystem performance)
9961considerably.
9962
9963Implemented a handful of miscellaneous fixes for possible memory leaks on
9964error conditions and error handling control paths. These fixes were
9965suggested by FreeBSD and the Coverity Prevent source code analysis tool.
9966
9967Added a check for a null RSDT pointer in AcpiGetFirmwareTable
9968(tbxfroot.c)
9969to prevent a fault in this error case.
9970
9971Code and Data Size: Current and previous core subsystem library sizes are
9972shown below. These are the code and data sizes for the acpica.lib
9973produced
9974by the Microsoft Visual C++ 6.0 compiler, and these values do not include
9975any ACPI driver or OSPM code. The debug version of the code includes the
9976debug output trace mechanism and has a much larger code and data size.
9977Note
9978that these values will vary depending on the efficiency of the compiler
9979and
9980the compiler options used during generation.
9981
9982  Previous Release:
9983    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
9984    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
9985  Current Release:
9986    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
9987    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
9988
9989
99902) iASL Compiler/Disassembler:
9991
9992Implemented support to allow Type 1 and Type 2 ASL operators to appear at
9993the module level (not within a control method.) These operators will be
9994executed once at the time the table is loaded. This type of code was
9995legal
9996up until the release of ACPI 2.0B (2002) and is now supported by the iASL
9997compiler in order to provide backwards compatibility with earlier BIOS
9998ASL
9999code.
10000
10001The ACPI integer width (specified via the table revision ID or the -r
10002override, 32 or 64 bits) is now used internally during compile-time
10003constant
10004folding to ensure that constants are truncated to 32 bits if necessary.
10005Previously, the revision ID value was only emitted in the AML table
10006header.
10007
10008An error message is now generated for the Mutex and Method operators if
10009the
10010SyncLevel parameter is outside the legal range of 0 through 15.
10011
10012Fixed a problem with the Method operator ParameterTypes list handling
10013(ACPI
100143.0). Previously, more than 2 types or 2 arguments generated a syntax
10015error.
10016The actual underlying implementation of method argument typechecking is
10017still under development, however.
10018
10019----------------------------------------
1002013 May 2005.  Summary of changes for version 20050513:
10021
100221) ACPI CA Core Subsystem:
10023
10024Implemented support for PCI Express root bridges -- added support for
10025device
10026PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
10027
10028The interpreter now automatically truncates incoming 64-bit constants to
1002932
10030bits if currently executing out of a 32-bit ACPI table (Revision < 2).
10031This
10032also affects the iASL compiler constant folding. (Note: as per below, the
10033iASL compiler no longer allows 64-bit constants within 32-bit tables.)
10034
10035Fixed a problem where string and buffer objects with "static" pointers
10036(pointers to initialization data within an ACPI table) were not handled
10037consistently. The internal object copy operation now always copies the
10038data
10039to a newly allocated buffer, regardless of whether the source object is
10040static or not.
10041
10042Fixed a problem with the FromBCD operator where an implicit result
10043conversion was improperly performed while storing the result to the
10044target
10045operand. Since this is an "explicit conversion" operator, the implicit
10046conversion should never be performed on the output.
10047
10048Fixed a problem with the CopyObject operator where a copy to an existing
10049named object did not always completely overwrite the existing object
10050stored
10051at name. Specifically, a buffer-to-buffer copy did not delete the
10052existing
10053buffer.
10054
10055Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
10056and
10057structs for consistency.
10058
10059Code and Data Size: Current and previous core subsystem library sizes are
10060shown below. These are the code and data sizes for the acpica.lib
10061produced
10062by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10063any ACPI driver or OSPM code. The debug version of the code includes the
10064debug output trace mechanism and has a much larger code and data size.
10065Note
10066that these values will vary depending on the efficiency of the compiler
10067and
10068the compiler options used during generation.
10069
10070  Previous Release:
10071    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
10072    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
10073  Current Release: (Same sizes)
10074    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
10075    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
10076
10077
100782) iASL Compiler/Disassembler:
10079
10080The compiler now emits a warning if an attempt is made to generate a 64-
10081bit
10082integer constant from within a 32-bit ACPI table (Revision < 2). The
10083integer
10084is truncated to 32 bits.
10085
10086Fixed a problem with large package objects: if the static length of the
10087package is greater than 255, the "variable length package" opcode is
10088emitted. Previously, this caused an error. This requires an update to the
10089ACPI spec, since it currently (incorrectly) states that packages larger
10090than
10091255 elements are not allowed.
10092
10093The disassembler now correctly handles variable length packages and
10094packages
10095larger than 255 elements.
10096
10097----------------------------------------
1009808 April 2005.  Summary of changes for version 20050408:
10099
101001) ACPI CA Core Subsystem:
10101
10102Fixed three cases in the interpreter where an "index" argument to an ASL
10103function was still (internally) 32 bits instead of the required 64 bits.
10104This was the Index argument to the Index, Mid, and Match operators.
10105
10106The "strupr" function is now permanently local (AcpiUtStrupr), since this
10107is
10108not a POSIX-defined function and not present in most kernel-level C
10109libraries. All references to the C library strupr function have been
10110removed
10111from the headers.
10112
10113Completed the deployment of static functions/prototypes. All prototypes
10114with
10115the static attribute have been moved from the headers to the owning C
10116file.
10117
10118Implemented an extract option (-e) for the AcpiBin utility (AML binary
10119utility). This option allows the utility to extract individual ACPI
10120tables
10121from the output of AcpiDmp. It provides the same functionality of the
10122acpixtract.pl perl script without the worry of setting the correct perl
10123options. AcpiBin runs on Windows and has not yet been generated/validated
10124in
10125the Linux/Unix environment (but should be soon).
10126
10127Updated and fixed the table dump option for AcpiBin (-d). This option
10128converts a single ACPI table to a hex/ascii file, similar to the output
10129of
10130AcpiDmp.
10131
10132Code and Data Size: Current and previous core subsystem library sizes are
10133shown below. These are the code and data sizes for the acpica.lib
10134produced
10135by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10136any ACPI driver or OSPM code. The debug version of the code includes the
10137debug output trace mechanism and has a much larger code and data size.
10138Note
10139that these values will vary depending on the efficiency of the compiler
10140and
10141the compiler options used during generation.
10142
10143  Previous Release:
10144    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
10145    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
10146  Current Release:
10147    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
10148    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
10149
10150
101512) iASL Compiler/Disassembler:
10152
10153Disassembler fix: Added a check to ensure that the table length found in
10154the
10155ACPI table header within the input file is not longer than the actual
10156input
10157file size. This indicates some kind of file or table corruption.
10158
10159----------------------------------------
1016029 March 2005.  Summary of changes for version 20050329:
10161
101621) ACPI CA Core Subsystem:
10163
10164An error is now generated if an attempt is made to create a Buffer Field
10165of
10166length zero (A CreateField with a length operand of zero.)
10167
10168The interpreter now issues a warning whenever executable code at the
10169module
10170level is detected during ACPI table load. This will give some idea of the
10171prevalence of this type of code.
10172
10173Implemented support for references to named objects (other than control
10174methods) within package objects.
10175
10176Enhanced package object output for the debug object. Package objects are
10177now
10178completely dumped, showing all elements.
10179
10180Enhanced miscellaneous object output for the debug object. Any object can
10181now be written to the debug object (for example, a device object can be
10182written, and the type of the object will be displayed.)
10183
10184The "static" qualifier has been added to all local functions across both
10185the
10186core subsystem and the iASL compiler.
10187
10188The number of "long" lines (> 80 chars) within the source has been
10189significantly reduced, by about 1/3.
10190
10191Cleaned up all header files to ensure that all CA/iASL functions are
10192prototyped (even static functions) and the formatting is consistent.
10193
10194Two new header files have been added, acopcode.h and acnames.h.
10195
10196Removed several obsolete functions that were no longer used.
10197
10198Code and Data Size: Current and previous core subsystem library sizes are
10199shown below. These are the code and data sizes for the acpica.lib
10200produced
10201by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10202any ACPI driver or OSPM code. The debug version of the code includes the
10203debug output trace mechanism and has a much larger code and data size.
10204Note
10205that these values will vary depending on the efficiency of the compiler
10206and
10207the compiler options used during generation.
10208
10209  Previous Release:
10210    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
10211    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
10212  Current Release:
10213    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
10214    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
10215
10216
10217
102182) iASL Compiler/Disassembler:
10219
10220Fixed a problem with the resource descriptor generation/support. For the
10221ResourceSourceIndex and the ResourceSource fields, both must be present,
10222or
10223both must be not present - can't have one without the other.
10224
10225The compiler now returns non-zero from the main procedure if any errors
10226have
10227occurred during the compilation.
10228
10229
10230----------------------------------------
1023109 March 2005.  Summary of changes for version 20050309:
10232
102331) ACPI CA Core Subsystem:
10234
10235The string-to-buffer implicit conversion code has been modified again
10236after
10237a change to the ACPI specification.  In order to match the behavior of
10238the
10239other major ACPI implementation, the target buffer is no longer truncated
10240if
10241the source string is smaller than an existing target buffer. This change
10242requires an update to the ACPI spec, and should eliminate the recent
10243AE_AML_BUFFER_LIMIT issues.
10244
10245The "implicit return" support was rewritten to a new algorithm that
10246solves
10247the general case. Rather than attempt to determine when a method is about
10248to
10249exit, the result of every ASL operator is saved momentarily until the
10250very
10251next ASL operator is executed. Therefore, no matter how the method exits,
10252there will always be a saved implicit return value. This feature is only
10253enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
10254eliminate
10255AE_AML_NO_RETURN_VALUE errors when enabled.
10256
10257Implemented implicit conversion support for the predicate (operand) of
10258the
10259If, Else, and While operators. String and Buffer arguments are
10260automatically
10261converted to Integers.
10262
10263Changed the string-to-integer conversion behavior to match the new ACPI
10264errata: "If no integer object exists, a new integer is created. The ASCII
10265string is interpreted as a hexadecimal constant. Each string character is
10266interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
10267with the first character as the most significant digit, and ending with
10268the
10269first non-hexadecimal character or end-of-string." This means that the
10270first
10271non-hex character terminates the conversion and this is the code that was
10272changed.
10273
10274Fixed a problem where the ObjectType operator would fail (fault) when
10275used
10276on an Index of a Package which pointed to a null package element. The
10277operator now properly returns zero (Uninitialized) in this case.
10278
10279Fixed a problem where the While operator used excessive memory by not
10280properly popping the result stack during execution. There was no memory
10281leak
10282after execution, however. (Code provided by Valery Podrezov.)
10283
10284Fixed a problem where references to control methods within Package
10285objects
10286caused the method to be invoked, instead of producing a reference object
10287pointing to the method.
10288
10289Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
10290to
10291improve performance and reduce code size. (Code provided by Alexey
10292Starikovskiy.)
10293
10294Code and Data Size: Current and previous core subsystem library sizes are
10295shown below. These are the code and data sizes for the acpica.lib
10296produced
10297by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10298any ACPI driver or OSPM code. The debug version of the code includes the
10299debug output trace mechanism and has a much larger code and data size.
10300Note
10301that these values will vary depending on the efficiency of the compiler
10302and
10303the compiler options used during generation.
10304
10305  Previous Release:
10306    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
10307    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
10308  Current Release:
10309    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
10310    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
10311
10312
103132) iASL Compiler/Disassembler:
10314
10315Fixed a problem with the Return operator with no arguments. Since the AML
10316grammar for the byte encoding requires an operand for the Return opcode,
10317the
10318compiler now emits a Return(Zero) for this case.  An ACPI specification
10319update has been written for this case.
10320
10321For tables other than the DSDT, namepath optimization is automatically
10322disabled. This is because SSDTs can be loaded anywhere in the namespace,
10323the
10324compiler has no knowledge of where, and thus cannot optimize namepaths.
10325
10326Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
10327inadvertently omitted from the ACPI specification, and will require an
10328update to the spec.
10329
10330The source file scan for ASCII characters is now optional (-a). This
10331change
10332was made because some vendors place non-ascii characters within comments.
10333However, the scan is simply a brute-force byte compare to ensure all
10334characters in the file are in the range 0x00 to 0x7F.
10335
10336Fixed a problem with the CondRefOf operator where the compiler was
10337inappropriately checking for the existence of the target. Since the point
10338of
10339the operator is to check for the existence of the target at run-time, the
10340compiler no longer checks for the target existence.
10341
10342Fixed a problem where errors generated from the internal AML interpreter
10343during constant folding were not handled properly, causing a fault.
10344
10345Fixed a problem with overly aggressive range checking for the Stall
10346operator. The valid range (max 255) is now only checked if the operand is
10347of
10348type Integer. All other operand types cannot be statically checked.
10349
10350Fixed a problem where control method references within the RefOf,
10351DeRefOf,
10352and ObjectType operators were not treated properly. They are now treated
10353as
10354actual references, not method invocations.
10355
10356Fixed and enhanced the "list namespace" option (-ln). This option was
10357broken
10358a number of releases ago.
10359
10360Improved error handling for the Field, IndexField, and BankField
10361operators.
10362The compiler now cleanly reports and recovers from errors in the field
10363component (FieldUnit) list.
10364
10365Fixed a disassembler problem where the optional ResourceDescriptor fields
10366TRS and TTP were not always handled correctly.
10367
10368Disassembler - Comments in output now use "//" instead of "/*"
10369
10370----------------------------------------
1037128 February 2005.  Summary of changes for version 20050228:
10372
103731) ACPI CA Core Subsystem:
10374
10375Fixed a problem where the result of an Index() operator (an object
10376reference) must increment the reference count on the target object for
10377the
10378life of the object reference.
10379
10380Implemented AML Interpreter and Debugger support for the new ACPI 3.0
10381Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
10382WordSpace
10383resource descriptors.
10384
10385Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
10386Space Descriptor" string, indicating interpreter support for the
10387descriptors
10388above.
10389
10390Implemented header support for the new ACPI 3.0 FADT flag bits.
10391
10392Implemented header support for the new ACPI 3.0 PCI Express bits for the
10393PM1
10394status/enable registers.
10395
10396Updated header support for the MADT processor local Apic struct and MADT
10397platform interrupt source struct for new ACPI 3.0 fields.
10398
10399Implemented header support for the SRAT and SLIT ACPI tables.
10400
10401Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
10402flag
10403at runtime.
10404
10405Code and Data Size: Current and previous core subsystem library sizes are
10406shown below. These are the code and data sizes for the acpica.lib
10407produced
10408by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10409any ACPI driver or OSPM code. The debug version of the code includes the
10410debug output trace mechanism and has a much larger code and data size.
10411Note
10412that these values will vary depending on the efficiency of the compiler
10413and
10414the compiler options used during generation.
10415
10416  Previous Release:
10417    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
10418    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
10419  Current Release:
10420    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
10421    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
10422
10423
104242) iASL Compiler/Disassembler:
10425
10426Fixed a problem with the internal 64-bit String-to-integer conversion
10427with
10428strings less than two characters long.
10429
10430Fixed a problem with constant folding where the result of the Index()
10431operator can not be considered a constant. This means that Index() cannot
10432be
10433a type3 opcode and this will require an update to the ACPI specification.
10434
10435Disassembler: Implemented support for the TTP, MTP, and TRS resource
10436descriptor fields. These fields were inadvertently ignored and not output
10437in
10438the disassembly of the resource descriptor.
10439
10440
10441 ----------------------------------------
1044211 February 2005.  Summary of changes for version 20050211:
10443
104441) ACPI CA Core Subsystem:
10445
10446Implemented ACPI 3.0 support for implicit conversion within the Match()
10447operator. MatchObjects can now be of type integer, buffer, or string
10448instead
10449of just type integer.  Package elements are implicitly converted to the
10450type
10451of the MatchObject. This change aligns the behavior of Match() with the
10452behavior of the other logical operators (LLess(), etc.) It also requires
10453an
10454errata change to the ACPI specification as this support was intended for
10455ACPI 3.0, but was inadvertently omitted.
10456
10457Fixed a problem with the internal implicit "to buffer" conversion.
10458Strings
10459that are converted to buffers will cause buffer truncation if the string
10460is
10461smaller than the target buffer. Integers that are converted to buffers
10462will
10463not cause buffer truncation, only zero extension (both as per the ACPI
10464spec.) The problem was introduced when code was added to truncate the
10465buffer, but this should not be performed in all cases, only the string
10466case.
10467
10468Fixed a problem with the Buffer and Package operators where the
10469interpreter
10470would get confused if two such operators were used as operands to an ASL
10471operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
10472stack was not being popped after the execution of these operators,
10473resulting
10474in an AE_NO_RETURN_VALUE exception.
10475
10476Fixed a problem with constructs of the form Store(Index(...),...). The
10477reference object returned from Index was inadvertently resolved to an
10478actual
10479value. This problem was introduced in version 20050114 when the behavior
10480of
10481Store() was modified to restrict the object types that can be used as the
10482source operand (to match the ACPI specification.)
10483
10484Reduced excessive stack use within the AcpiGetObjectInfo procedure.
10485
10486Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
10487
10488Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
10489
10490Code and Data Size: Current and previous core subsystem library sizes are
10491shown below. These are the code and data sizes for the acpica.lib
10492produced
10493by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10494any ACPI driver or OSPM code. The debug version of the code includes the
10495debug output trace mechanism and has a much larger code and data size.
10496Note
10497that these values will vary depending on the efficiency of the compiler
10498and
10499the compiler options used during generation.
10500
10501  Previous Release:
10502    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
10503    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
10504  Current Release:
10505    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
10506    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
10507
10508
105092) iASL Compiler/Disassembler:
10510
10511Fixed a code generation problem in the constant folding optimization code
10512where incorrect code was generated if a constant was reduced to a buffer
10513object (i.e., a reduced type 5 opcode.)
10514
10515Fixed a typechecking problem for the ToBuffer operator. Caused by an
10516incorrect return type in the internal opcode information table.
10517
10518----------------------------------------
1051925 January 2005.  Summary of changes for version 20050125:
10520
105211) ACPI CA Core Subsystem:
10522
10523Fixed a recently introduced problem with the Global Lock where the
10524underlying semaphore was not created.  This problem was introduced in
10525version 20050114, and caused an AE_AML_NO_OPERAND exception during an
10526Acquire() operation on _GL.
10527
10528The local object cache is now optional, and is disabled by default. Both
10529AcpiExec and the iASL compiler enable the cache because they run in user
10530mode and this enhances their performance. #define
10531ACPI_ENABLE_OBJECT_CACHE
10532to enable the local cache.
10533
10534Fixed an issue in the internal function AcpiUtEvaluateObject concerning
10535the
10536optional "implicit return" support where an error was returned if no
10537return
10538object was expected, but one was implicitly returned. AE_OK is now
10539returned
10540in this case and the implicitly returned object is deleted.
10541AcpiUtEvaluateObject is only occasionally used, and only to execute
10542reserved
10543methods such as _STA and _INI where the return type is known up front.
10544
10545Fixed a few issues with the internal convert-to-integer code. It now
10546returns
10547an error if an attempt is made to convert a null string, a string of only
10548blanks/tabs, or a zero-length buffer. This affects both implicit
10549conversion
10550and explicit conversion via the ToInteger() operator.
10551
10552The internal debug code in AcpiUtAcquireMutex has been commented out. It
10553is
10554not needed for normal operation and should increase the performance of
10555the
10556entire subsystem. The code remains in case it is needed for debug
10557purposes
10558again.
10559
10560The AcpiExec source and makefile are included in the Unix/Linux package
10561for
10562the first time.
10563
10564Code and Data Size: Current and previous core subsystem library sizes are
10565shown below. These are the code and data sizes for the acpica.lib
10566produced
10567by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10568any ACPI driver or OSPM code. The debug version of the code includes the
10569debug output trace mechanism and has a much larger code and data size.
10570Note
10571that these values will vary depending on the efficiency of the compiler
10572and
10573the compiler options used during generation.
10574
10575  Previous Release:
10576    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
10577    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
10578  Current Release:
10579    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
10580    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
10581
105822) iASL Compiler/Disassembler:
10583
10584Switch/Case support: A warning is now issued if the type of the Switch
10585value
10586cannot be determined at compile time. For example, Switch(Arg0) will
10587generate the warning, and the type is assumed to be an integer. As per
10588the
10589ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
10590the
10591warning.
10592
10593Switch/Case support: Implemented support for buffer and string objects as
10594the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
10595buffers and strings.
10596
10597Switch/Case support: The emitted code for the LEqual() comparisons now
10598uses
10599the switch value as the first operand, not the second. The case value is
10600now
10601the second operand, and this allows the case value to be implicitly
10602converted to the type of the switch value, not the other way around.
10603
10604Switch/Case support: Temporary variables are now emitted immediately
10605within
10606the control method, not at the global level. This means that there are
10607now
1060836 temps available per-method, not 36 temps per-module as was the case
10609with
10610the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
10611
10612----------------------------------------
1061314 January 2005.  Summary of changes for version 20050114:
10614
10615Added 2005 copyright to all module headers.  This affects every module in
10616the core subsystem, iASL compiler, and the utilities.
10617
106181) ACPI CA Core Subsystem:
10619
10620Fixed an issue with the String-to-Buffer conversion code where the string
10621null terminator was not included in the buffer after conversion, but
10622there
10623is existing ASL that assumes the string null terminator is included. This
10624is
10625the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
10626introduced in the previous version when the code was updated to correctly
10627set the converted buffer size as per the ACPI specification. The ACPI
10628spec
10629is ambiguous and will be updated to specify that the null terminator must
10630be
10631included in the converted buffer. This also affects the ToBuffer() ASL
10632operator.
10633
10634Fixed a problem with the Mid() ASL/AML operator where it did not work
10635correctly on Buffer objects. Newly created sub-buffers were not being
10636marked
10637as initialized.
10638
10639
10640Fixed a problem in AcpiTbFindTable where incorrect string compares were
10641performed on the OemId and OemTableId table header fields.  These fields
10642are
10643not null terminated, so strncmp is now used instead of strcmp.
10644
10645Implemented a restriction on the Store() ASL/AML operator to align the
10646behavior with the ACPI specification.  Previously, any object could be
10647used
10648as the source operand.  Now, the only objects that may be used are
10649Integers,
10650Buffers, Strings, Packages, Object References, and DDB Handles.  If
10651necessary, the original behavior can be restored by enabling the
10652EnableInterpreterSlack flag.
10653
10654Enhanced the optional "implicit return" support to allow an implicit
10655return
10656value from methods that are invoked externally via the AcpiEvaluateObject
10657interface.  This enables implicit returns from the _STA and _INI methods,
10658for example.
10659
10660Changed the Revision() ASL/AML operator to return the current version of
10661the
10662AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
10663returned
10664the supported ACPI version (This is the function of the _REV method).
10665
10666Updated the _REV predefined method to return the currently supported
10667version
10668of ACPI, now 3.
10669
10670Implemented batch mode option for the AcpiExec utility (-b).
10671
10672Code and Data Size: Current and previous core subsystem library sizes are
10673shown below. These are the code and data sizes for the acpica.lib
10674produced
10675by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10676any ACPI driver or OSPM code. The debug version of the code includes the
10677debug output trace mechanism and has a much larger code and data size.
10678Note
10679that these values will vary depending on the efficiency of the compiler
10680and
10681the compiler options used during generation.
10682
10683  Previous Release:
10684    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
10685    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
10686  Current Release:
10687    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
10688    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
10689
10690----------------------------------------
1069110 December 2004.  Summary of changes for version 20041210:
10692
10693ACPI 3.0 support is nearing completion in both the iASL compiler and the
10694ACPI CA core subsystem.
10695
106961) ACPI CA Core Subsystem:
10697
10698Fixed a problem in the ToDecimalString operator where the resulting
10699string
10700length was incorrectly calculated. The length is now calculated exactly,
10701eliminating incorrect AE_STRING_LIMIT exceptions.
10702
10703Fixed a problem in the ToHexString operator to allow a maximum 200
10704character
10705string to be produced.
10706
10707Fixed a problem in the internal string-to-buffer and buffer-to-buffer
10708copy
10709routine where the length of the resulting buffer was not truncated to the
10710new size (if the target buffer already existed).
10711
10712Code and Data Size: Current and previous core subsystem library sizes are
10713shown below. These are the code and data sizes for the acpica.lib
10714produced
10715by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10716any ACPI driver or OSPM code. The debug version of the code includes the
10717debug output trace mechanism and has a much larger code and data size.
10718Note
10719that these values will vary depending on the efficiency of the compiler
10720and
10721the compiler options used during generation.
10722
10723  Previous Release:
10724    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
10725    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
10726  Current Release:
10727    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
10728    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
10729
10730
107312) iASL Compiler/Disassembler:
10732
10733Implemented the new ACPI 3.0 resource template macros - DWordSpace,
10734ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
10735Includes support in the disassembler.
10736
10737Implemented support for the new (ACPI 3.0) parameter to the Register
10738macro,
10739AccessSize.
10740
10741Fixed a problem where the _HE resource name for the Interrupt macro was
10742referencing bit 0 instead of bit 1.
10743
10744Implemented check for maximum 255 interrupts in the Interrupt macro.
10745
10746Fixed a problem with the predefined resource descriptor names where
10747incorrect AML code was generated if the offset within the resource buffer
10748was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
10749but did not update the surrounding package lengths.
10750
10751Changes to the Dma macro:  All channels within the channel list must be
10752in
10753the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
10754optional (default is BusMaster).
10755
10756Implemented check for maximum 7 data bytes for the VendorShort macro.
10757
10758The ReadWrite parameter is now optional for the Memory32 and similar
10759macros.
10760
10761----------------------------------------
1076203 December 2004.  Summary of changes for version 20041203:
10763
107641) ACPI CA Core Subsystem:
10765
10766The low-level field insertion/extraction code (exfldio) has been
10767completely
10768rewritten to eliminate unnecessary complexity, bugs, and boundary
10769conditions.
10770
10771Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
10772ToDecimalString
10773operators where the input operand could be inadvertently deleted if no
10774conversion was necessary (e.g., if the input to ToInteger was an Integer
10775object.)
10776
10777Fixed a problem with the ToDecimalString and ToHexString where an
10778incorrect
10779exception code was returned if the resulting string would be > 200 chars.
10780AE_STRING_LIMIT is now returned.
10781
10782Fixed a problem with the Concatenate operator where AE_OK was always
10783returned, even if the operation failed.
10784
10785Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
10786semaphores to be allocated.
10787
10788Code and Data Size: Current and previous core subsystem library sizes are
10789shown below. These are the code and data sizes for the acpica.lib
10790produced
10791by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10792any ACPI driver or OSPM code. The debug version of the code includes the
10793debug output trace mechanism and has a much larger code and data size.
10794Note
10795that these values will vary depending on the efficiency of the compiler
10796and
10797the compiler options used during generation.
10798
10799  Previous Release:
10800    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
10801    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
10802  Current Release:
10803    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
10804    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
10805
10806
108072) iASL Compiler/Disassembler:
10808
10809Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
10810recently introduced in 20041119.
10811
10812Fixed a problem with the ToUUID macro where the upper nybble of each
10813buffer
10814byte was inadvertently set to zero.
10815
10816----------------------------------------
1081719 November 2004.  Summary of changes for version 20041119:
10818
108191) ACPI CA Core Subsystem:
10820
10821Fixed a problem in the internal ConvertToInteger routine where new
10822integers
10823were not truncated to 32 bits for 32-bit ACPI tables. This routine
10824converts
10825buffers and strings to integers.
10826
10827Implemented support to store a value to an Index() on a String object.
10828This
10829is an ACPI 2.0 feature that had not yet been implemented.
10830
10831Implemented new behavior for storing objects to individual package
10832elements
10833(via the Index() operator). The previous behavior was to invoke the
10834implicit
10835conversion rules if an object was already present at the index.  The new
10836behavior is to simply delete any existing object and directly store the
10837new
10838object. Although the ACPI specification seems unclear on this subject,
10839other
10840ACPI implementations behave in this manner.  (This is the root of the
10841AE_BAD_HEX_CONSTANT issue.)
10842
10843Modified the RSDP memory scan mechanism to support the extended checksum
10844for
10845ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
10846RSDP signature is found with a valid checksum.
10847
10848Code and Data Size: Current and previous core subsystem library sizes are
10849shown below. These are the code and data sizes for the acpica.lib
10850produced
10851by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10852any ACPI driver or OSPM code. The debug version of the code includes the
10853debug output trace mechanism and has a much larger code and data size.
10854Note
10855that these values will vary depending on the efficiency of the compiler
10856and
10857the compiler options used during generation.
10858
10859  Previous Release:
10860    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
10861    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
10862  Current Release:
10863    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
10864    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
10865
10866
108672) iASL Compiler/Disassembler:
10868
10869Fixed a missing semicolon in the aslcompiler.y file.
10870
10871----------------------------------------
1087205 November 2004.  Summary of changes for version 20041105:
10873
108741) ACPI CA Core Subsystem:
10875
10876Implemented support for FADT revision 2.  This was an interim table
10877(between
10878ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
10879
10880Implemented optional support to allow uninitialized LocalX and ArgX
10881variables in a control method.  The variables are initialized to an
10882Integer
10883object with a value of zero.  This support is enabled by setting the
10884AcpiGbl_EnableInterpreterSlack flag to TRUE.
10885
10886Implemented support for Integer objects for the SizeOf operator.  Either
108874
10888or 8 is returned, depending on the current integer size (32-bit or 64-
10889bit,
10890depending on the parent table revision).
10891
10892Fixed a problem in the implementation of the SizeOf and ObjectType
10893operators
10894where the operand was resolved to a value too early, causing incorrect
10895return values for some objects.
10896
10897Fixed some possible memory leaks during exceptional conditions.
10898
10899Code and Data Size: Current and previous core subsystem library sizes are
10900shown below. These are the code and data sizes for the acpica.lib
10901produced
10902by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10903any ACPI driver or OSPM code. The debug version of the code includes the
10904debug output trace mechanism and has a much larger code and data size.
10905Note
10906that these values will vary depending on the efficiency of the compiler
10907and
10908the compiler options used during generation.
10909
10910  Previous Release:
10911    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
10912    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
10913  Current Release:
10914    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
10915    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
10916
10917
109182) iASL Compiler/Disassembler:
10919
10920Implemented support for all ACPI 3.0 reserved names and methods.
10921
10922Implemented all ACPI 3.0 grammar elements in the front-end, including
10923support for semicolons.
10924
10925Implemented the ACPI 3.0 Function() and ToUUID() macros
10926
10927Fixed a problem in the disassembler where a Scope() operator would not be
10928emitted properly if the target of the scope was in another table.
10929
10930----------------------------------------
1093115 October 2004.  Summary of changes for version 20041015:
10932
10933Note:  ACPI CA is currently undergoing an in-depth and complete formal
10934evaluation to test/verify the following areas. Other suggestions are
10935welcome. This will result in an increase in the frequency of releases and
10936the number of bug fixes in the next few months.
10937  - Functional tests for all ASL/AML operators
10938  - All implicit/explicit type conversions
10939  - Bit fields and operation regions
10940  - 64-bit math support and 32-bit-only "truncated" math support
10941  - Exceptional conditions, both compiler and interpreter
10942  - Dynamic object deletion and memory leaks
10943  - ACPI 3.0 support when implemented
10944  - External interfaces to the ACPI subsystem
10945
10946
109471) ACPI CA Core Subsystem:
10948
10949Fixed two alignment issues on 64-bit platforms - within debug statements
10950in
10951AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
10952Address
10953field within the non-aligned ACPI generic address structure.
10954
10955Fixed a problem in the Increment and Decrement operators where incorrect
10956operand resolution could result in the inadvertent modification of the
10957original integer when the integer is passed into another method as an
10958argument and the arg is then incremented/decremented.
10959
10960Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
10961bit
10962BCD number were truncated during conversion.
10963
10964Fixed a problem in the ToDecimal operator where the length of the
10965resulting
10966string could be set incorrectly too long if the input operand was a
10967Buffer
10968object.
10969
10970Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
10971(0)
10972within a buffer would prematurely terminate a compare between buffer
10973objects.
10974
10975Added a check for string overflow (>200 characters as per the ACPI
10976specification) during the Concatenate operator with two string operands.
10977
10978Code and Data Size: Current and previous core subsystem library sizes are
10979shown below. These are the code and data sizes for the acpica.lib
10980produced
10981by the Microsoft Visual C++ 6.0 compiler, and these values do not include
10982any ACPI driver or OSPM code. The debug version of the code includes the
10983debug output trace mechanism and has a much larger code and data size.
10984Note
10985that these values will vary depending on the efficiency of the compiler
10986and
10987the compiler options used during generation.
10988
10989  Previous Release:
10990    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
10991    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
10992  Current Release:
10993    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
10994    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
10995
10996
10997
109982) iASL Compiler/Disassembler:
10999
11000Allow the use of the ObjectType operator on uninitialized Locals and Args
11001(returns 0 as per the ACPI specification).
11002
11003Fixed a problem where the compiler would fault if there was a syntax
11004error
11005in the FieldName of all of the various CreateXXXField operators.
11006
11007Disallow the use of lower case letters within the EISAID macro, as per
11008the
11009ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
11010Where
11011U is an uppercase letter and N is a hex digit.
11012
11013
11014----------------------------------------
1101506 October 2004.  Summary of changes for version 20041006:
11016
110171) ACPI CA Core Subsystem:
11018
11019Implemented support for the ACPI 3.0 Timer operator. This ASL function
11020implements a 64-bit timer with 100 nanosecond granularity.
11021
11022Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
11023implement the ACPI 3.0 Timer operator.  This allows the host OS to
11024implement
11025the timer with the best clock available. Also, it keeps the core
11026subsystem
11027out of the clock handling business, since the host OS (usually) performs
11028this function.
11029
11030Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
11031functions use a 64-bit address which is part of the packed ACPI Generic
11032Address Structure. Since the structure is non-aligned, the alignment
11033macros
11034are now used to extract the address to a local variable before use.
11035
11036Fixed a problem where the ToInteger operator assumed all input strings
11037were
11038hexadecimal. The operator now handles both decimal strings and hex
11039strings
11040(prefixed with "0x").
11041
11042Fixed a problem where the string length in the string object created as a
11043result of the internal ConvertToString procedure could be incorrect. This
11044potentially affected all implicit conversions and also the
11045ToDecimalString
11046and ToHexString operators.
11047
11048Fixed two problems in the ToString operator. If the length parameter was
11049zero, an incorrect string object was created and the value of the input
11050length parameter was inadvertently changed from zero to Ones.
11051
11052Fixed a problem where the optional ResourceSource string in the
11053ExtendedIRQ
11054resource macro was ignored.
11055
11056Simplified the interfaces to the internal division functions, reducing
11057code
11058size and complexity.
11059
11060Code and Data Size: Current and previous core subsystem library sizes are
11061shown below. These are the code and data sizes for the acpica.lib
11062produced
11063by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11064any ACPI driver or OSPM code. The debug version of the code includes the
11065debug output trace mechanism and has a much larger code and data size.
11066Note
11067that these values will vary depending on the efficiency of the compiler
11068and
11069the compiler options used during generation.
11070
11071  Previous Release:
11072    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
11073    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
11074  Current Release:
11075    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
11076    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
11077
11078
110792) iASL Compiler/Disassembler:
11080
11081Implemented support for the ACPI 3.0 Timer operator.
11082
11083Fixed a problem where the Default() operator was inadvertently ignored in
11084a
11085Switch/Case block.  This was a problem in the translation of the Switch
11086statement to If...Else pairs.
11087
11088Added support to allow a standalone Return operator, with no parentheses
11089(or
11090operands).
11091
11092Fixed a problem with code generation for the ElseIf operator where the
11093translated Else...If parse tree was improperly constructed leading to the
11094loss of some code.
11095
11096----------------------------------------
1109722 September 2004.  Summary of changes for version 20040922:
11098
110991) ACPI CA Core Subsystem:
11100
11101Fixed a problem with the implementation of the LNot() operator where
11102"Ones"
11103was not returned for the TRUE case. Changed the code to return Ones
11104instead
11105of (!Arg) which was usually 1. This change affects iASL constant folding
11106for
11107this operator also.
11108
11109Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
11110not
11111initialized properly -- Now zero the entire buffer in this case where the
11112buffer already exists.
11113
11114Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
11115Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
11116related code considerably. This will require changes/updates to all OS
11117interface layers (OSLs.)
11118
11119Implemented a new external interface, AcpiInstallExceptionHandler, to
11120allow
11121a system exception handler to be installed. This handler is invoked upon
11122any
11123run-time exception that occurs during control method execution.
11124
11125Added support for the DSDT in AcpiTbFindTable. This allows the
11126DataTableRegion() operator to access the local copy of the DSDT.
11127
11128Code and Data Size: Current and previous core subsystem library sizes are
11129shown below. These are the code and data sizes for the acpica.lib
11130produced
11131by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11132any ACPI driver or OSPM code. The debug version of the code includes the
11133debug output trace mechanism and has a much larger code and data size.
11134Note
11135that these values will vary depending on the efficiency of the compiler
11136and
11137the compiler options used during generation.
11138
11139  Previous Release:
11140    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
11141    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
11142  Current Release:
11143    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
11144    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
11145
11146
111472) iASL Compiler/Disassembler:
11148
11149Fixed a problem with constant folding and the LNot operator. LNot was
11150returning 1 in the TRUE case, not Ones as per the ACPI specification.
11151This
11152could result in the generation of an incorrect folded/reduced constant.
11153
11154End-Of-File is now allowed within a "//"-style comment.  A parse error no
11155longer occurs if such a comment is at the very end of the input ASL
11156source
11157file.
11158
11159Implemented the "-r" option to override the Revision in the table header.
11160The initial use of this option will be to simplify the evaluation of the
11161AML
11162interpreter by allowing a single ASL source module to be compiled for
11163either
1116432-bit or 64-bit integers.
11165
11166
11167----------------------------------------
1116827 August 2004.  Summary of changes for version 20040827:
11169
111701) ACPI CA Core Subsystem:
11171
11172- Implemented support for implicit object conversion in the non-numeric
11173logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
11174and
11175LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
11176the second operand is implicitly converted on the fly to match the type
11177of
11178the first operand.  For example:
11179
11180    LEqual (Source1, Source2)
11181
11182Source1 and Source2 must each evaluate to an integer, a string, or a
11183buffer.
11184The data type of Source1 dictates the required type of Source2. Source2
11185is
11186implicitly converted if necessary to match the type of Source1.
11187
11188- Updated and corrected the behavior of the string conversion support.
11189The
11190rules concerning conversion of buffers to strings (according to the ACPI
11191specification) are as follows:
11192
11193ToDecimalString - explicit byte-wise conversion of buffer to string of
11194decimal values (0-255) separated by commas. ToHexString - explicit byte-
11195wise
11196conversion of buffer to string of hex values (0-FF) separated by commas.
11197ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
11198byte
11199copy with no transform except NULL terminated. Any other implicit buffer-
11200to-
11201string conversion - byte-wise conversion of buffer to string of hex
11202values
11203(0-FF) separated by spaces.
11204
11205- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
11206
11207- Fixed a problem in AcpiNsGetPathnameLength where the returned length
11208was
11209one byte too short in the case of a node in the root scope.  This could
11210cause a fault during debug output.
11211
11212- Code and Data Size: Current and previous core subsystem library sizes
11213are
11214shown below.  These are the code and data sizes for the acpica.lib
11215produced
11216by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11217any ACPI driver or OSPM code.  The debug version of the code includes the
11218debug output trace mechanism and has a much larger code and data size.
11219Note
11220that these values will vary depending on the efficiency of the compiler
11221and
11222the compiler options used during generation.
11223
11224  Previous Release:
11225    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
11226    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
11227  Current Release:
11228    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
11229    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
11230
11231
112322) iASL Compiler/Disassembler:
11233
11234- Fixed a Linux generation error.
11235
11236
11237----------------------------------------
1123816 August 2004.  Summary of changes for version 20040816:
11239
112401) ACPI CA Core Subsystem:
11241
11242Designed and implemented support within the AML interpreter for the so-
11243called "implicit return".  This support returns the result of the last
11244ASL
11245operation within a control method, in the absence of an explicit Return()
11246operator.  A few machines depend on this behavior, even though it is not
11247explicitly supported by the ASL language.  It is optional support that
11248can
11249be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
11250
11251Removed support for the PCI_Config address space from the internal low
11252level
11253hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
11254support was not used internally, and would not work correctly anyway
11255because
11256the PCI bus number and segment number were not supported.  There are
11257separate interfaces for PCI configuration space access because of the
11258unique
11259interface.
11260
11261Code and Data Size: Current and previous core subsystem library sizes are
11262shown below.  These are the code and data sizes for the acpica.lib
11263produced
11264by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11265any ACPI driver or OSPM code.  The debug version of the code includes the
11266debug output trace mechanism and has a much larger code and data size.
11267Note
11268that these values will vary depending on the efficiency of the compiler
11269and
11270the compiler options used during generation.
11271
11272  Previous Release:
11273    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
11274    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
11275  Current Release:
11276    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
11277    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
11278
11279
112802) iASL Compiler/Disassembler:
11281
11282Fixed a problem where constants in ASL expressions at the root level (not
11283within a control method) could be inadvertently truncated during code
11284generation.  This problem was introduced in the 20040715 release.
11285
11286
11287----------------------------------------
1128815 July 2004.  Summary of changes for version 20040715:
11289
112901) ACPI CA Core Subsystem:
11291
11292Restructured the internal HW GPE interfaces to pass/track the current
11293state
11294of interrupts (enabled/disabled) in order to avoid possible deadlock and
11295increase flexibility of the interfaces.
11296
11297Implemented a "lexicographical compare" for String and Buffer objects
11298within
11299the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
11300-
11301as per further clarification to the ACPI specification.  Behavior is
11302similar
11303to C library "strcmp".
11304
11305Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
11306external function.  In the 32-bit non-debug case, the stack use has been
11307reduced from 168 bytes to 32 bytes.
11308
11309Deployed a new run-time configuration flag,
11310AcpiGbl_EnableInterpreterSlack,
11311whose purpose is to allow the AML interpreter to forgive certain bad AML
11312constructs.  Default setting is FALSE.
11313
11314Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
11315IO
11316support code.  If enabled, it allows field access to go beyond the end of
11317a
11318region definition if the field is within the region length rounded up to
11319the
11320next access width boundary (a common coding error.)
11321
11322Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
11323ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
11324these
11325symbols are lowercased by the latest version of the AcpiSrc tool.
11326
11327The prototypes for the PCI interfaces in acpiosxf.h have been updated to
11328rename "Register" to simply "Reg" to prevent certain compilers from
11329complaining.
11330
11331Code and Data Size: Current and previous core subsystem library sizes are
11332shown below.  These are the code and data sizes for the acpica.lib
11333produced
11334by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11335any ACPI driver or OSPM code.  The debug version of the code includes the
11336debug output trace mechanism and has a much larger code and data size.
11337Note
11338that these values will vary depending on the efficiency of the compiler
11339and
11340the compiler options used during generation.
11341
11342  Previous Release:
11343    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
11344    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
11345  Current Release:
11346    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
11347    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
11348
11349
113502) iASL Compiler/Disassembler:
11351
11352Implemented full support for Package objects within the Case() operator.
11353Note: The Break() operator is currently not supported within Case blocks
11354(TermLists) as there is some question about backward compatibility with
11355ACPI
113561.0 interpreters.
11357
11358
11359Fixed a problem where complex terms were not supported properly within
11360the
11361Switch() operator.
11362
11363Eliminated extraneous warning for compiler-emitted reserved names of the
11364form "_T_x".  (Used in Switch/Case operators.)
11365
11366Eliminated optimization messages for "_T_x" objects and small constants
11367within the DefinitionBlock operator.
11368
11369
11370----------------------------------------
1137115 June 2004.  Summary of changes for version 20040615:
11372
113731) ACPI CA Core Subsystem:
11374
11375Implemented support for Buffer and String objects (as per ACPI 2.0) for
11376the
11377following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
11378LLessEqual.
11379
11380All directory names in the entire source package are lower case, as they
11381were in earlier releases.
11382
11383Implemented "Disassemble" command in the AML debugger that will
11384disassemble
11385a single control method.
11386
11387Code and Data Size: Current and previous core subsystem library sizes are
11388shown below.  These are the code and data sizes for the acpica.lib
11389produced
11390by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11391any ACPI driver or OSPM code.  The debug version of the code includes the
11392debug output trace mechanism and has a much larger code and data size.
11393Note
11394that these values will vary depending on the efficiency of the compiler
11395and
11396the compiler options used during generation.
11397
11398  Previous Release:
11399    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
11400    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
11401
11402  Current Release:
11403    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
11404    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
11405
11406
114072) iASL Compiler/Disassembler:
11408
11409Implemented support for Buffer and String objects (as per ACPI 2.0) for
11410the
11411following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
11412LLessEqual.
11413
11414All directory names in the entire source package are lower case, as they
11415were in earlier releases.
11416
11417Fixed a fault when using the -g or -d<nofilename> options if the FADT was
11418not found.
11419
11420Fixed an issue with the Windows version of the compiler where later
11421versions
11422of Windows place the FADT in the registry under the name "FADT" and not
11423"FACP" as earlier versions did.  This applies when using the -g or -
11424d<nofilename> options.  The compiler now looks for both strings as
11425necessary.
11426
11427Fixed a problem with compiler namepath optimization where a namepath
11428within
11429the Scope() operator could not be optimized if the namepath was a subpath
11430of
11431the current scope path.
11432
11433----------------------------------------
1143427 May 2004.  Summary of changes for version 20040527:
11435
114361) ACPI CA Core Subsystem:
11437
11438Completed a new design and implementation for EBDA (Extended BIOS Data
11439Area)
11440support in the RSDP scan code.  The original code improperly scanned for
11441the
11442EBDA by simply scanning from memory location 0 to 0x400.  The correct
11443method
11444is to first obtain the EBDA pointer from within the BIOS data area, then
11445scan 1K of memory starting at the EBDA pointer.  There appear to be few
11446if
11447any machines that place the RSDP in the EBDA, however.
11448
11449Integrated a fix for a possible fault during evaluation of BufferField
11450arguments.  Obsolete code that was causing the problem was removed.
11451
11452Found and fixed a problem in the Field Support Code where data could be
11453corrupted on a bit field read that starts on an aligned boundary but does
11454not end on an aligned boundary.  Merged the read/write "datum length"
11455calculation code into a common procedure.
11456
11457Rolled in a couple of changes to the FreeBSD-specific header.
11458
11459
11460Code and Data Size: Current and previous core subsystem library sizes are
11461shown below.  These are the code and data sizes for the acpica.lib
11462produced
11463by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11464any ACPI driver or OSPM code.  The debug version of the code includes the
11465debug output trace mechanism and has a much larger code and data size.
11466Note
11467that these values will vary depending on the efficiency of the compiler
11468and
11469the compiler options used during generation.
11470
11471  Previous Release:
11472    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
11473    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
11474  Current Release:
11475    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
11476    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
11477
11478
114792) iASL Compiler/Disassembler:
11480
11481Fixed a generation warning produced by some overly-verbose compilers for
11482a
1148364-bit constant.
11484
11485----------------------------------------
1148614 May 2004.  Summary of changes for version 20040514:
11487
114881) ACPI CA Core Subsystem:
11489
11490Fixed a problem where hardware GPE enable bits sometimes not set properly
11491during and after GPE method execution.  Result of 04/27 changes.
11492
11493Removed extra "clear all GPEs" when sleeping/waking.
11494
11495Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
11496AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
11497to
11498the new AcpiEv* calls as appropriate.
11499
11500ACPI_OS_NAME was removed from the OS-specific headers.  The default name
11501is
11502now "Microsoft Windows NT" for maximum compatibility.  However this can
11503be
11504changed by modifying the acconfig.h file.
11505
11506Allow a single invocation of AcpiInstallNotifyHandler for a handler that
11507traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
11508
11509Run _INI methods on ThermalZone objects.  This is against the ACPI
11510specification, but there is apparently ASL code in the field that has
11511these
11512_INI methods, and apparently "other" AML interpreters execute them.
11513
11514Performed a full 16/32/64 bit lint that resulted in some small changes.
11515
11516Added a sleep simulation command to the AML debugger to test sleep code.
11517
11518Code and Data Size: Current and previous core subsystem library sizes are
11519shown below.  These are the code and data sizes for the acpica.lib
11520produced
11521by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11522any ACPI driver or OSPM code.  The debug version of the code includes the
11523debug output trace mechanism and has a much larger code and data size.
11524Note
11525that these values will vary depending on the efficiency of the compiler
11526and
11527the compiler options used during generation.
11528
11529  Previous Release:
11530    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
11531    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
11532  Current Release:
11533    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
11534    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
11535
11536----------------------------------------
1153727 April 2004.  Summary of changes for version 20040427:
11538
115391) ACPI CA Core Subsystem:
11540
11541Completed a major overhaul of the GPE handling within ACPI CA.  There are
11542now three types of GPEs:  wake-only, runtime-only, and combination
11543wake/run.
11544The only GPEs allowed to be combination wake/run are for button-style
11545devices such as a control-method power button, control-method sleep
11546button,
11547or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
11548not
11549referenced by any _PRW methods are marked for "runtime" and hardware
11550enabled.  Any GPE that is referenced by a _PRW method is marked for
11551"wake"
11552(and disabled at runtime).  However, at sleep time, only those GPEs that
11553have been specifically enabled for wake via the AcpiEnableGpe interface
11554will
11555actually be hardware enabled.
11556
11557A new external interface has been added, AcpiSetGpeType(), that is meant
11558to
11559be used by device drivers to force a GPE to a particular type.  It will
11560be
11561especially useful for the drivers for the button devices mentioned above.
11562
11563Completed restructuring of the ACPI CA initialization sequence so that
11564default operation region handlers are installed before GPEs are
11565initialized
11566and the _PRW methods are executed.  This will prevent errors when the
11567_PRW
11568methods attempt to access system memory or I/O space.
11569
11570GPE enable/disable no longer reads the GPE enable register.  We now keep
11571the
11572enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
11573thus no longer depend on the hardware to maintain these bits.
11574
11575Always clear the wake status and fixed/GPE status bits before sleep, even
11576for state S5.
11577
11578Improved the AML debugger output for displaying the GPE blocks and their
11579current status.
11580
11581Added new strings for the _OSI method, of the form "Windows 2001 SPx"
11582where
11583x = 0,1,2,3,4.
11584
11585Fixed a problem where the physical address was incorrectly calculated
11586when
11587the Load() operator was used to directly load from an Operation Region
11588(vs.
11589loading from a Field object.)  Also added check for minimum table length
11590for
11591this case.
11592
11593Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
11594mutex release.
11595
11596Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
11597consistency with the other fields returned.
11598
11599Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
11600structure for each GPE in the system, so the size of this structure is
11601important.
11602
11603CPU stack requirement reduction:  Cleaned up the method execution and
11604object
11605evaluation paths so that now a parameter structure is passed, instead of
11606copying the various method parameters over and over again.
11607
11608In evregion.c:  Correctly exit and reenter the interpreter region if and
11609only if dispatching an operation region request to a user-installed
11610handler.
11611Do not exit/reenter when dispatching to a default handler (e.g., default
11612system memory or I/O handlers)
11613
11614
11615Notes for updating drivers for the new GPE support.  The following
11616changes
11617must be made to ACPI-related device drivers that are attached to one or
11618more
11619GPEs: (This information will be added to the ACPI CA Programmer
11620Reference.)
11621
116221) AcpiInstallGpeHandler no longer automatically enables the GPE, you
11623must
11624explicitly call AcpiEnableGpe.
116252) There is a new interface called AcpiSetGpeType. This should be called
11626before enabling the GPE.  Also, this interface will automatically disable
11627the GPE if it is currently enabled.
116283) AcpiEnableGpe no longer supports a GPE type flag.
11629
11630Specific drivers that must be changed:
116311) EC driver:
11632    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
11633AeGpeHandler, NULL);
11634    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
11635    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
11636
116372) Button Drivers (Power, Lid, Sleep):
11638Run _PRW method under parent device
11639If _PRW exists: /* This is a control-method button */
11640    Extract GPE number and possibly GpeDevice
11641    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
11642    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
11643
11644For all other devices that have _PRWs, we automatically set the GPE type
11645to
11646ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
11647This
11648must be done on a selective basis, usually requiring some kind of user
11649app
11650to allow the user to pick the wake devices.
11651
11652
11653Code and Data Size: Current and previous core subsystem library sizes are
11654shown below.  These are the code and data sizes for the acpica.lib
11655produced
11656by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11657any ACPI driver or OSPM code.  The debug version of the code includes the
11658debug output trace mechanism and has a much larger code and data size.
11659Note
11660that these values will vary depending on the efficiency of the compiler
11661and
11662the compiler options used during generation.
11663
11664  Previous Release:
11665    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
11666    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
11667  Current Release:
11668
11669    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
11670    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
11671
11672
11673
11674----------------------------------------
1167502 April 2004.  Summary of changes for version 20040402:
11676
116771) ACPI CA Core Subsystem:
11678
11679Fixed an interpreter problem where an indirect store through an ArgX
11680parameter was incorrectly applying the "implicit conversion rules" during
11681the store.  From the ACPI specification: "If the target is a method local
11682or
11683argument (LocalX or ArgX), no conversion is performed and the result is
11684stored directly to the target".  The new behavior is to disable implicit
11685conversion during ALL stores to an ArgX.
11686
11687Changed the behavior of the _PRW method scan to ignore any and all errors
11688returned by a given _PRW.  This prevents the scan from aborting from the
11689failure of any single _PRW.
11690
11691Moved the runtime configuration parameters from the global init procedure
11692to
11693static variables in acglobal.h.  This will allow the host to override the
11694default values easily.
11695
11696Code and Data Size: Current and previous core subsystem library sizes are
11697shown below.  These are the code and data sizes for the acpica.lib
11698produced
11699by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11700any ACPI driver or OSPM code.  The debug version of the code includes the
11701debug output trace mechanism and has a much larger code and data size.
11702Note
11703that these values will vary depending on the efficiency of the compiler
11704and
11705the compiler options used during generation.
11706
11707  Previous Release:
11708    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
11709    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
11710  Current Release:
11711    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
11712    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
11713
11714
117152) iASL Compiler/Disassembler:
11716
11717iASL now fully disassembles SSDTs.  However, External() statements are
11718not
11719generated automatically for unresolved symbols at this time.  This is a
11720planned feature for future implementation.
11721
11722Fixed a scoping problem in the disassembler that occurs when the type of
11723the
11724target of a Scope() operator is overridden.  This problem caused an
11725incorrectly nested internal namespace to be constructed.
11726
11727Any warnings or errors that are emitted during disassembly are now
11728commented
11729out automatically so that the resulting file can be recompiled without
11730any
11731hand editing.
11732
11733----------------------------------------
1173426 March 2004.  Summary of changes for version 20040326:
11735
117361) ACPI CA Core Subsystem:
11737
11738Implemented support for "wake" GPEs via interaction between GPEs and the
11739_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
11740identified as a WAKE GPE and by default will no longer be enabled at
11741runtime.  Previously, we were blindly enabling all GPEs with a
11742corresponding
11743_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
11744We
11745believe this has been the cause of thousands of "spurious" GPEs on some
11746systems.
11747
11748This new GPE behavior is can be reverted to the original behavior (enable
11749ALL GPEs at runtime) via a runtime flag.
11750
11751Fixed a problem where aliased control methods could not access objects
11752properly.  The proper scope within the namespace was not initialized
11753(transferred to the target of the aliased method) before executing the
11754target method.
11755
11756Fixed a potential race condition on internal object deletion on the
11757return
11758object in AcpiEvaluateObject.
11759
11760Integrated a fix for resource descriptors where both _MEM and _MTP were
11761being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
11762wide, 0x0F instead of 0x03.)
11763
11764Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
11765preventing
11766a
11767fault in some cases.
11768
11769Updated Notify() values for debug statements in evmisc.c
11770
11771Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
11772
11773Code and Data Size: Current and previous core subsystem library sizes are
11774shown below.  These are the code and data sizes for the acpica.lib
11775produced
11776by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11777any ACPI driver or OSPM code.  The debug version of the code includes the
11778debug output trace mechanism and has a much larger code and data size.
11779Note
11780that these values will vary depending on the efficiency of the compiler
11781and
11782the compiler options used during generation.
11783
11784  Previous Release:
11785
11786    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
11787    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
11788  Current Release:
11789    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
11790    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
11791
11792----------------------------------------
1179311 March 2004.  Summary of changes for version 20040311:
11794
117951) ACPI CA Core Subsystem:
11796
11797Fixed a problem where errors occurring during the parse phase of control
11798method execution did not abort cleanly.  For example, objects created and
11799installed in the namespace were not deleted.  This caused all subsequent
11800invocations of the method to return the AE_ALREADY_EXISTS exception.
11801
11802Implemented a mechanism to force a control method to "Serialized"
11803execution
11804if the method attempts to create namespace objects. (The root of the
11805AE_ALREADY_EXISTS problem.)
11806
11807Implemented support for the predefined _OSI "internal" control method.
11808Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
11809and
11810"Windows 2001.1", and can be easily upgraded for new strings as
11811necessary.
11812This feature will allow "other" operating systems to execute the fully
11813tested, "Windows" code path through the ASL code
11814
11815Global Lock Support:  Now allows multiple acquires and releases with any
11816internal thread.  Removed concept of "owning thread" for this special
11817mutex.
11818
11819Fixed two functions that were inappropriately declaring large objects on
11820the
11821CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
11822during
11823method execution considerably.
11824
11825Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
11826S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
11827
11828Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
11829defined on the machine.
11830
11831Implemented two runtime options:  One to force all control method
11832execution
11833to "Serialized" to mimic Windows behavior, another to disable _OSI
11834support
11835if it causes problems on a given machine.
11836
11837Code and Data Size: Current and previous core subsystem library sizes are
11838shown below.  These are the code and data sizes for the acpica.lib
11839produced
11840by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11841any ACPI driver or OSPM code.  The debug version of the code includes the
11842debug output trace mechanism and has a much larger code and data size.
11843Note
11844that these values will vary depending on the efficiency of the compiler
11845and
11846the compiler options used during generation.
11847
11848  Previous Release:
11849    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
11850    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
11851  Current Release:
11852    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
11853    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
11854
118552) iASL Compiler/Disassembler:
11856
11857Fixed an array size problem for FreeBSD that would cause the compiler to
11858fault.
11859
11860----------------------------------------
1186120 February 2004.  Summary of changes for version 20040220:
11862
11863
118641) ACPI CA Core Subsystem:
11865
11866Implemented execution of _SxD methods for Device objects in the
11867GetObjectInfo interface.
11868
11869Fixed calls to _SST method to pass the correct arguments.
11870
11871Added a call to _SST on wake to restore to "working" state.
11872
11873Check for End-Of-Buffer failure case in the WalkResources interface.
11874
11875Integrated fix for 64-bit alignment issue in acglobal.h by moving two
11876structures to the beginning of the file.
11877
11878After wake, clear GPE status register(s) before enabling GPEs.
11879
11880After wake, clear/enable power button.  (Perhaps we should clear/enable
11881all
11882fixed events upon wake.)
11883
11884Fixed a couple of possible memory leaks in the Namespace manager.
11885
11886Integrated latest acnetbsd.h file.
11887
11888----------------------------------------
1188911 February 2004.  Summary of changes for version 20040211:
11890
11891
118921) ACPI CA Core Subsystem:
11893
11894Completed investigation and implementation of the call-by-reference
11895mechanism for control method arguments.
11896
11897Fixed a problem where a store of an object into an indexed package could
11898fail if the store occurs within a different method than the method that
11899created the package.
11900
11901Fixed a problem where the ToDecimal operator could return incorrect
11902results.
11903
11904Fixed a problem where the CopyObject operator could fail on some of the
11905more
11906obscure objects (e.g., Reference objects.)
11907
11908Improved the output of the Debug object to display buffer, package, and
11909index objects.
11910
11911Fixed a problem where constructs of the form "RefOf (ArgX)" did not
11912return
11913the expected result.
11914
11915Added permanent ACPI_REPORT_ERROR macros for all instances of the
11916ACPI_AML_INTERNAL exception.
11917
11918Integrated latest version of acfreebsd.h
11919
11920----------------------------------------
1192116 January 2004.  Summary of changes for version 20040116:
11922
11923The purpose of this release is primarily to update the copyright years in
11924each module, thus causing a huge number of diffs.  There are a few small
11925functional changes, however.
11926
119271) ACPI CA Core Subsystem:
11928
11929Improved error messages when there is a problem finding one or more of
11930the
11931required base ACPI tables
11932
11933Reintroduced the definition of APIC_HEADER in actbl.h
11934
11935Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
11936
11937Removed extraneous reference to NewObj in dsmthdat.c
11938
119392) iASL compiler
11940
11941Fixed a problem introduced in December that disabled the correct
11942disassembly
11943of Resource Templates
11944
11945
11946----------------------------------------
1194703 December 2003.  Summary of changes for version 20031203:
11948
119491) ACPI CA Core Subsystem:
11950
11951Changed the initialization of Operation Regions during subsystem
11952init to perform two entire walks of the ACPI namespace; The first
11953to initialize the regions themselves, the second to execute the
11954_REG methods.  This fixed some interdependencies across _REG
11955methods found on some machines.
11956
11957Fixed a problem where a Store(Local0, Local1) could simply update
11958the object reference count, and not create a new copy of the
11959object if the Local1 is uninitialized.
11960
11961Implemented support for the _SST reserved method during sleep
11962transitions.
11963
11964Implemented support to clear the SLP_TYP and SLP_EN bits when
11965waking up, this is apparently required by some machines.
11966
11967When sleeping, clear the wake status only if SleepState is not S5.
11968
11969Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
11970pointer arithmetic advanced a string pointer too far.
11971
11972Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
11973could be returned if the requested table has not been loaded.
11974
11975Within the support for IRQ resources, restructured the handling of
11976the active and edge/level bits.
11977
11978Fixed a few problems in AcpiPsxExecute() where memory could be
11979leaked under certain error conditions.
11980
11981Improved error messages for the cases where the ACPI mode could
11982not be entered.
11983
11984Code and Data Size: Current and previous core subsystem library
11985sizes are shown below.  These are the code and data sizes for the
11986acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
11987these values do not include any ACPI driver or OSPM code.  The
11988debug version of the code includes the debug output trace
11989mechanism and has a much larger code and data size.  Note that
11990these values will vary depending on the efficiency of the compiler
11991and the compiler options used during generation.
11992
11993  Previous Release (20031029):
11994    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
11995    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
11996  Current Release:
11997    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
11998    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
11999
120002) iASL Compiler/Disassembler:
12001
12002Implemented a fix for the iASL disassembler where a bad index was
12003generated.  This was most noticeable on 64-bit platforms
12004
12005
12006----------------------------------------
1200729 October 2003.  Summary of changes for version 20031029:
12008
120091) ACPI CA Core Subsystem:
12010
12011
12012Fixed a problem where a level-triggered GPE with an associated
12013_Lxx control method was incorrectly cleared twice.
12014
12015Fixed a problem with the Field support code where an access can
12016occur beyond the end-of-region if the field is non-aligned but
12017extends to the very end of the parent region (resulted in an
12018AE_AML_REGION_LIMIT exception.)
12019
12020Fixed a problem with ACPI Fixed Events where an RT Clock handler
12021would not get invoked on an RTC event.  The RTC event bitmasks for
12022the PM1 registers were not being initialized properly.
12023
12024Implemented support for executing _STA and _INI methods for
12025Processor objects.  Although this is currently not part of the
12026ACPI specification, there is existing ASL code that depends on the
12027init-time execution of these methods.
12028
12029Implemented and deployed a GetDescriptorName function to decode
12030the various types of internal descriptors.  Guards against null
12031descriptors during debug output also.
12032
12033Implemented and deployed a GetNodeName function to extract the 4-
12034character namespace node name.  This function simplifies the debug
12035and error output, as well as guarding against null pointers during
12036output.
12037
12038Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
12039simplify the debug and error output of 64-bit integers.  This
12040macro replaces the HIDWORD and LODWORD macros for dumping these
12041integers.
12042
12043Updated the implementation of the Stall() operator to only call
12044AcpiOsStall(), and also return an error if the operand is larger
12045than 255.  This preserves the required behavior of not
12046relinquishing the processor, as would happen if AcpiOsSleep() was
12047called for "long stalls".
12048
12049Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
12050initialized are now treated as NOOPs.
12051
12052Cleaned up a handful of warnings during 64-bit generation.
12053
12054Fixed a reported error where and incorrect GPE number was passed
12055to the GPE dispatch handler.  This value is only used for error
12056output, however.  Used this opportunity to clean up and streamline
12057the GPE dispatch code.
12058
12059Code and Data Size: Current and previous core subsystem library
12060sizes are shown below.  These are the code and data sizes for the
12061acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
12062these values do not include any ACPI driver or OSPM code.  The
12063
12064debug version of the code includes the debug output trace
12065mechanism and has a much larger code and data size.  Note that
12066these values will vary depending on the efficiency of the compiler
12067and the compiler options used during generation.
12068
12069  Previous Release (20031002):
12070    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
12071    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
12072  Current Release:
12073    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
12074    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
12075
12076
120772) iASL Compiler/Disassembler:
12078
12079Updated the iASL compiler to return an error if the operand to the
12080Stall() operator is larger than 255.
12081
12082
12083----------------------------------------
1208402 October 2003.  Summary of changes for version 20031002:
12085
12086
120871) ACPI CA Core Subsystem:
12088
12089Fixed a problem with Index Fields where the index was not
12090incremented for fields that require multiple writes to the
12091index/data registers (Fields that are wider than the data
12092register.)
12093
12094Fixed a problem with all Field objects where a write could go
12095beyond the end-of-field if the field was larger than the access
12096granularity and therefore required multiple writes to complete the
12097request.  An extra write beyond the end of the field could happen
12098inadvertently.
12099
12100Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
12101would incorrectly be returned if the width of the Data Register
12102was larger than the specified field access width.
12103
12104Completed fixes for LoadTable() and Unload() and verified their
12105operation.  Implemented full support for the "DdbHandle" object
12106throughout the ACPI CA subsystem.
12107
12108Implemented full support for the MADT and ECDT tables in the ACPI
12109CA header files.  Even though these tables are not directly
12110consumed by ACPI CA, the header definitions are useful for ACPI
12111device drivers.
12112
12113Integrated resource descriptor fixes posted to the Linux ACPI
12114list.  This included checks for minimum descriptor length, and
12115support for trailing NULL strings within descriptors that have
12116optional string elements.
12117
12118Code and Data Size: Current and previous core subsystem library
12119sizes are shown below.  These are the code and data sizes for the
12120acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
12121these values do not include any ACPI driver or OSPM code.  The
12122debug version of the code includes the debug output trace
12123mechanism and has a much larger code and data size.  Note that
12124these values will vary depending on the efficiency of the compiler
12125and the compiler options used during generation.
12126
12127  Previous Release (20030918):
12128    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
12129    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
12130  Current Release:
12131    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
12132    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
12133
12134
121352) iASL Compiler:
12136
12137Implemented detection of non-ASCII characters within the input
12138source ASL file.  This catches attempts to compile binary (AML)
12139files early in the compile, with an informative error message.
12140
12141Fixed a problem where the disassembler would fault if the output
12142filename could not be generated or if the output file could not be
12143opened.
12144
12145----------------------------------------
1214618 September 2003.  Summary of changes for version 20030918:
12147
12148
121491) ACPI CA Core Subsystem:
12150
12151Found and fixed a longstanding problem with the late execution of
12152the various deferred AML opcodes (such as Operation Regions,
12153Buffer Fields, Buffers, and Packages).  If the name string
12154specified for the name of the new object placed the object in a
12155scope other than the current scope, the initialization/execution
12156of the opcode failed.  The solution to this problem was to
12157implement a mechanism where the late execution of such opcodes
12158does not attempt to lookup/create the name a second time in an
12159incorrect scope.  This fixes the "region size computed
12160incorrectly" problem.
12161
12162Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
12163Global Lock AE_BAD_PARAMETER error.
12164
12165Fixed several 64-bit issues with prototypes, casting and data
12166types.
12167
12168Removed duplicate prototype from acdisasm.h
12169
12170Fixed an issue involving EC Operation Region Detach (Shaohua Li)
12171
12172Code and Data Size: Current and previous core subsystem library
12173sizes are shown below.  These are the code and data sizes for the
12174acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
12175these values do not include any ACPI driver or OSPM code.  The
12176debug version of the code includes the debug output trace
12177mechanism and has a much larger code and data size.  Note that
12178these values will vary depending on the efficiency of the compiler
12179and the compiler options used during generation.
12180
12181  Previous Release:
12182
12183    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
12184    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
12185  Current Release:
12186    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
12187    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
12188
12189
121902) Linux:
12191
12192Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
12193correct sleep time in seconds.
12194
12195----------------------------------------
1219614 July 2003.  Summary of changes for version 20030619:
12197
121981) ACPI CA Core Subsystem:
12199
12200Parse SSDTs in order discovered, as opposed to reverse order
12201(Hrvoje Habjanic)
12202
12203Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
12204Klausner,
12205   Nate Lawson)
12206
12207
122082) Linux:
12209
12210Dynamically allocate SDT list (suggested by Andi Kleen)
12211
12212proc function return value cleanups (Andi Kleen)
12213
12214Correctly handle NMI watchdog during long stalls (Andrew Morton)
12215
12216Make it so acpismp=force works (reported by Andrew Morton)
12217
12218
12219----------------------------------------
1222019 June 2003.  Summary of changes for version 20030619:
12221
122221) ACPI CA Core Subsystem:
12223
12224Fix To/FromBCD, eliminating the need for an arch-specific #define.
12225
12226Do not acquire a semaphore in the S5 shutdown path.
12227
12228Fix ex_digits_needed for 0. (Takayoshi Kochi)
12229
12230Fix sleep/stall code reversal. (Andi Kleen)
12231
12232Revert a change having to do with control method calling
12233semantics.
12234
122352) Linux:
12236
12237acpiphp update (Takayoshi Kochi)
12238
12239Export acpi_disabled for sonypi (Stelian Pop)
12240
12241Mention acpismp=force in config help
12242
12243Re-add acpitable.c and acpismp=force. This improves backwards
12244
12245compatibility and also cleans up the code to a significant degree.
12246
12247Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
12248
12249----------------------------------------
1225022 May 2003.  Summary of changes for version 20030522:
12251
122521) ACPI CA Core Subsystem:
12253
12254Found and fixed a reported problem where an AE_NOT_FOUND error
12255occurred occasionally during _BST evaluation.  This turned out to
12256be an Owner ID allocation issue where a called method did not get
12257a new ID assigned to it.  Eventually, (after 64k calls), the Owner
12258ID UINT16 would wraparound so that the ID would be the same as the
12259caller's and the called method would delete the caller's
12260namespace.
12261
12262Implemented extended error reporting for control methods that are
12263aborted due to a run-time exception.  Output includes the exact
12264AML instruction that caused the method abort, a dump of the method
12265locals and arguments at the time of the abort, and a trace of all
12266nested control method calls.
12267
12268Modified the interpreter to allow the creation of buffers of zero
12269length from the AML code. Implemented new code to ensure that no
12270attempt is made to actually allocate a memory buffer (of length
12271zero) - instead, a simple buffer object with a NULL buffer pointer
12272and length zero is created.  A warning is no longer issued when
12273the AML attempts to create a zero-length buffer.
12274
12275Implemented a workaround for the "leading asterisk issue" in
12276_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
12277asterisk is automatically removed if present in any HID, UID, or
12278CID strings.  The iASL compiler will still flag this asterisk as
12279an error, however.
12280
12281Implemented full support for _CID methods that return a package of
12282multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
12283now additionally returns a device _CID list if present.  This
12284required a change to the external interface in order to pass an
12285ACPI_BUFFER object as a parameter since the _CID list is of
12286variable length.
12287
12288Fixed a problem with the new AE_SAME_HANDLER exception where
12289handler initialization code did not know about this exception.
12290
12291Code and Data Size: Current and previous core subsystem library
12292sizes are shown below.  These are the code and data sizes for the
12293acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
12294these values do not include any ACPI driver or OSPM code.  The
12295debug version of the code includes the debug output trace
12296mechanism and has a much larger code and data size.  Note that
12297these values will vary depending on the efficiency of the compiler
12298and the compiler options used during generation.
12299
12300  Previous Release (20030509):
12301    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
12302    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
12303  Current Release:
12304    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
12305    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
12306
12307
123082) Linux:
12309
12310Fixed a bug in which we would reinitialize the ACPI interrupt
12311after it was already working, thus disabling all ACPI and the IRQs
12312for any other device sharing the interrupt. (Thanks to Stian
12313Jordet)
12314
12315Toshiba driver update (John Belmonte)
12316
12317Return only 0 or 1 for our interrupt handler status (Andrew
12318Morton)
12319
12320
123213) iASL Compiler:
12322
12323Fixed a reported problem where multiple (nested) ElseIf()
12324statements were not handled correctly by the compiler, resulting
12325in incorrect warnings and incorrect AML code.  This was a problem
12326in both the ASL parser and the code generator.
12327
12328
123294) Documentation:
12330
12331Added changes to existing interfaces, new exception codes, and new
12332text concerning reference count object management versus garbage
12333collection.
12334
12335----------------------------------------
1233609 May 2003.  Summary of changes for version 20030509.
12337
12338
123391) ACPI CA Core Subsystem:
12340
12341Changed the subsystem initialization sequence to hold off
12342installation of address space handlers until the hardware has been
12343initialized and the system has entered ACPI mode.  This is because
12344the installation of space handlers can cause _REG methods to be
12345run.  Previously, the _REG methods could potentially be run before
12346ACPI mode was enabled.
12347
12348Fixed some memory leak issues related to address space handler and
12349notify handler installation.  There were some problems with the
12350reference count mechanism caused by the fact that the handler
12351objects are shared across several namespace objects.
12352
12353Fixed a reported problem where reference counts within the
12354namespace were not properly updated when named objects created by
12355method execution were deleted.
12356
12357Fixed a reported problem where multiple SSDTs caused a deletion
12358issue during subsystem termination.  Restructured the table data
12359structures to simplify the linked lists and the related code.
12360
12361Fixed a problem where the table ID associated with secondary
12362tables (SSDTs) was not being propagated into the namespace objects
12363created by those tables.  This would only present a problem for
12364tables that are unloaded at run-time, however.
12365
12366Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
12367type as the length parameter (instead of UINT32).
12368
12369Solved a long-standing problem where an ALREADY_EXISTS error
12370appears on various systems.  This problem could happen when there
12371are multiple PCI_Config operation regions under a single PCI root
12372bus.  This doesn't happen very frequently, but there are some
12373systems that do this in the ASL.
12374
12375Fixed a reported problem where the internal DeleteNode function
12376was incorrectly handling the case where a namespace node was the
12377first in the parent's child list, and had additional peers (not
12378the only child, but first in the list of children.)
12379
12380Code and Data Size: Current core subsystem library sizes are shown
12381below.  These are the code and data sizes for the acpica.lib
12382produced by the Microsoft Visual C++ 6.0 compiler, and these
12383values do not include any ACPI driver or OSPM code.  The debug
12384version of the code includes the debug output trace mechanism and
12385has a much larger code and data size.  Note that these values will
12386vary depending on the efficiency of the compiler and the compiler
12387options used during generation.
12388
12389  Previous Release
12390    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
12391    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
12392  Current Release:
12393    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
12394    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
12395
12396
123972) Linux:
12398
12399Allow ":" in OS override string (Ducrot Bruno)
12400
12401Kobject fix (Greg KH)
12402
12403
124043 iASL Compiler/Disassembler:
12405
12406Fixed a problem in the generation of the C source code files (AML
12407is emitted in C source statements for BIOS inclusion) where the
12408Ascii dump that appears within a C comment at the end of each line
12409could cause a compile time error if the AML sequence happens to
12410have an open comment or close comment sequence embedded.
12411
12412
12413----------------------------------------
1241424 April 2003.  Summary of changes for version 20030424.
12415
12416
124171) ACPI CA Core Subsystem:
12418
12419Support for big-endian systems has been implemented.  Most of the
12420support has been invisibly added behind big-endian versions of the
12421ACPI_MOVE_* macros.
12422
12423Fixed a problem in AcpiHwDisableGpeBlock() and
12424AcpiHwClearGpeBlock() where an incorrect offset was passed to the
12425low level hardware write routine.  The offset parameter was
12426actually eliminated from the low level read/write routines because
12427they had become obsolete.
12428
12429Fixed a problem where a handler object was deleted twice during
12430the removal of a fixed event handler.
12431
12432
124332) Linux:
12434
12435A fix for SMP systems with link devices was contributed by
12436
12437Compaq's Dan Zink.
12438
12439(2.5) Return whether we handled the interrupt in our IRQ handler.
12440(Linux ISRs no longer return void, so we can propagate the handler
12441return value from the ACPI CA core back to the OS.)
12442
12443
12444
124453) Documentation:
12446
12447The ACPI CA Programmer Reference has been updated to reflect new
12448interfaces and changes to existing interfaces.
12449
12450----------------------------------------
1245128 March 2003.  Summary of changes for version 20030328.
12452
124531) ACPI CA Core Subsystem:
12454
12455The GPE Block Device support has been completed.  New interfaces
12456are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
12457interfaces (enable, disable, clear, getstatus) have been split
12458into separate interfaces for Fixed Events and General Purpose
12459Events (GPEs) in order to support GPE Block Devices properly.
12460
12461Fixed a problem where the error message "Failed to acquire
12462semaphore" would appear during operations on the embedded
12463controller (EC).
12464
12465Code and Data Size: Current core subsystem library sizes are shown
12466below.  These are the code and data sizes for the acpica.lib
12467produced by the Microsoft Visual C++ 6.0 compiler, and these
12468values do not include any ACPI driver or OSPM code.  The debug
12469version of the code includes the debug output trace mechanism and
12470has a much larger code and data size.  Note that these values will
12471vary depending on the efficiency of the compiler and the compiler
12472options used during generation.
12473
12474  Previous Release
12475    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
12476    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
12477  Current Release:
12478    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
12479    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
12480
12481
12482----------------------------------------
1248328 February 2003.  Summary of changes for version 20030228.
12484
12485
124861) ACPI CA Core Subsystem:
12487
12488The GPE handling and dispatch code has been completely overhauled
12489in preparation for support of GPE Block Devices (ID ACPI0006).
12490This affects internal data structures and code only; there should
12491be no differences visible externally.  One new file has been
12492added, evgpeblk.c
12493
12494The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
12495fields that are used to determine the GPE block lengths.  The
12496REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
12497structures are ignored.  This is per the ACPI specification but it
12498isn't very clear.  The full 256 Block 0/1 GPEs are now supported
12499(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
12500
12501In the SCI interrupt handler, removed the read of the PM1_CONTROL
12502register to look at the SCI_EN bit.  On some machines, this read
12503causes an SMI event and greatly slows down SCI events.  (This may
12504in fact be the cause of slow battery status response on some
12505systems.)
12506
12507Fixed a problem where a store of a NULL string to a package object
12508could cause the premature deletion of the object.  This was seen
12509during execution of the battery _BIF method on some systems,
12510resulting in no battery data being returned.
12511
12512Added AcpiWalkResources interface to simplify parsing of resource
12513lists.
12514
12515Code and Data Size: Current core subsystem library sizes are shown
12516below.  These are the code and data sizes for the acpica.lib
12517produced by the Microsoft Visual C++ 6.0 compiler, and these
12518values do not include any ACPI driver or OSPM code.  The debug
12519version of the code includes the debug output trace mechanism and
12520has a much larger code and data size.  Note that these values will
12521vary depending on the efficiency of the compiler and the compiler
12522options used during generation.
12523
12524  Previous Release
12525    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
12526    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
12527  Current Release:
12528    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
12529    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
12530
12531
125322) Linux
12533
12534S3 fixes (Ole Rohne)
12535
12536Update ACPI PHP driver with to use new acpi_walk_resource API
12537(Bjorn Helgaas)
12538
12539Add S4BIOS support (Pavel Machek)
12540
12541Map in entire table before performing checksum (John Stultz)
12542
12543Expand the mem= cmdline to allow the specification of reserved and
12544ACPI DATA blocks (Pavel Machek)
12545
12546Never use ACPI on VISWS
12547
12548Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
12549
12550Revert a change that allowed P_BLK lengths to be 4 or 5. This is
12551causing us to think that some systems support C2 when they really
12552don't.
12553
12554Do not count processor objects for non-present CPUs (Thanks to
12555Dominik Brodowski)
12556
12557
125583) iASL Compiler:
12559
12560Fixed a problem where ASL include files could not be found and
12561opened.
12562
12563Added support for the _PDC reserved name.
12564
12565
12566----------------------------------------
1256722 January 2003.  Summary of changes for version 20030122.
12568
12569
125701) ACPI CA Core Subsystem:
12571
12572Added a check for constructs of the form:  Store (Local0, Local0)
12573where Local0 is not initialized.  Apparently, some BIOS
12574programmers believe that this is a NOOP.  Since this store doesn't
12575do anything anyway, the new prototype behavior will ignore this
12576error.  This is a case where we can relax the strict checking in
12577the interpreter in the name of compatibility.
12578
12579
125802) Linux
12581
12582The AcpiSrc Source Conversion Utility has been released with the
12583Linux package for the first time.  This is the utility that is
12584used to convert the ACPI CA base source code to the Linux version.
12585
12586(Both) Handle P_BLK lengths shorter than 6 more gracefully
12587
12588(Both) Move more headers to include/acpi, and delete an unused
12589header.
12590
12591(Both) Move drivers/acpi/include directory to include/acpi
12592
12593(Both) Boot functions don't use cmdline, so don't pass it around
12594
12595(Both) Remove include of unused header (Adrian Bunk)
12596
12597(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
12598the
12599former now also includes the latter, acpiphp.h only needs the one,
12600now.
12601
12602(2.5) Make it possible to select method of bios restoring after S3
12603resume. [=> no more ugly ifdefs] (Pavel Machek)
12604
12605(2.5) Make proc write interfaces work (Pavel Machek)
12606
12607(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
12608
12609(2.5) Break out ACPI Perf code into its own module, under cpufreq
12610(Dominik Brodowski)
12611
12612(2.4) S4BIOS support (Ducrot Bruno)
12613
12614(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
12615Visinoni)
12616
12617
126183) iASL Compiler:
12619
12620Added support to disassemble SSDT and PSDTs.
12621
12622Implemented support to obtain SSDTs from the Windows registry if
12623available.
12624
12625
12626----------------------------------------
1262709 January 2003.  Summary of changes for version 20030109.
12628
126291) ACPI CA Core Subsystem:
12630
12631Changed the behavior of the internal Buffer-to-String conversion
12632function.  The current ACPI specification states that the contents
12633of the buffer are "converted to a string of two-character
12634hexadecimal numbers, each separated by a space".  Unfortunately,
12635this definition is not backwards compatible with existing ACPI 1.0
12636implementations (although the behavior was not defined in the ACPI
126371.0 specification).  The new behavior simply copies data from the
12638buffer to the string until a null character is found or the end of
12639the buffer is reached.  The new String object is always null
12640terminated.  This problem was seen during the generation of _BIF
12641battery data where incorrect strings were returned for battery
12642type, etc.  This will also require an errata to the ACPI
12643specification.
12644
12645Renamed all instances of NATIVE_UINT and NATIVE_INT to
12646ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
12647
12648Copyright in all module headers (both Linux and non-Linux) has be
12649updated to 2003.
12650
12651Code and Data Size: Current core subsystem library sizes are shown
12652below.  These are the code and data sizes for the acpica.lib
12653produced by the Microsoft Visual C++ 6.0 compiler, and these
12654values do not include any ACPI driver or OSPM code.  The debug
12655version of the code includes the debug output trace mechanism and
12656has a much larger code and data size.  Note that these values will
12657vary depending on the efficiency of the compiler and the compiler
12658options used during generation.
12659
12660  Previous Release
12661    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
12662    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
12663  Current Release:
12664    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
12665    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
12666
12667
126682) Linux
12669
12670Fixed an oops on module insertion/removal (Matthew Tippett)
12671
12672(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
12673
12674(2.5) Replace pr_debug (Randy Dunlap)
12675
12676(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
12677
12678(Both) Eliminate spawning of thread from timer callback, in favor
12679of schedule_work()
12680
12681(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
12682
12683(Both) Added define for Fixed Function HW region (Matthew Wilcox)
12684
12685(Both) Add missing statics to button.c (Pavel Machek)
12686
12687Several changes have been made to the source code translation
12688utility that generates the Linux Code in order to make the code
12689more "Linux-like":
12690
12691All typedefs on structs and unions have been removed in keeping
12692with the Linux coding style.
12693
12694Removed the non-Linux SourceSafe module revision number from each
12695module header.
12696
12697Completed major overhaul of symbols to be lowercased for linux.
12698Doubled the number of symbols that are lowercased.
12699
12700Fixed a problem where identifiers within procedure headers and
12701within quotes were not fully lower cased (they were left with a
12702starting capital.)
12703
12704Some C macros whose only purpose is to allow the generation of 16-
12705bit code are now completely removed in the Linux code, increasing
12706readability and maintainability.
12707
12708----------------------------------------
12709
1271012 December 2002.  Summary of changes for version 20021212.
12711
12712
127131) ACPI CA Core Subsystem:
12714
12715Fixed a problem where the creation of a zero-length AML Buffer
12716would cause a fault.
12717
12718Fixed a problem where a Buffer object that pointed to a static AML
12719buffer (in an ACPI table) could inadvertently be deleted, causing
12720memory corruption.
12721
12722Fixed a problem where a user buffer (passed in to the external
12723ACPI CA interfaces) could be overwritten if the buffer was too
12724small to complete the operation, causing memory corruption.
12725
12726Fixed a problem in the Buffer-to-String conversion code where a
12727string of length one was always returned, regardless of the size
12728of the input Buffer object.
12729
12730Removed the NATIVE_CHAR data type across the entire source due to
12731lack of need and lack of consistent use.
12732
12733Code and Data Size: Current core subsystem library sizes are shown
12734below.  These are the code and data sizes for the acpica.lib
12735produced by the Microsoft Visual C++ 6.0 compiler, and these
12736values do not include any ACPI driver or OSPM code.  The debug
12737version of the code includes the debug output trace mechanism and
12738has a much larger code and data size.  Note that these values will
12739vary depending on the efficiency of the compiler and the compiler
12740options used during generation.
12741
12742  Previous Release
12743    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
12744    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
12745  Current Release:
12746    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
12747    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
12748
12749
12750----------------------------------------
1275105 December 2002.  Summary of changes for version 20021205.
12752
127531) ACPI CA Core Subsystem:
12754
12755Fixed a problem where a store to a String or Buffer object could
12756cause corruption of the DSDT if the object type being stored was
12757the same as the target object type and the length of the object
12758being stored was equal to or smaller than the original (existing)
12759target object.  This was seen to cause corruption of battery _BIF
12760buffers if the _BIF method modified the buffer on the fly.
12761
12762Fixed a problem where an internal error was generated if a control
12763method invocation was used in an OperationRegion, Buffer, or
12764Package declaration.  This was caused by the deferred parsing of
12765the control method and thus the deferred creation of the internal
12766method object.  The solution to this problem was to create the
12767internal method object at the moment the method is encountered in
12768the first pass - so that subsequent references to the method will
12769able to obtain the required parameter count and thus properly
12770parse the method invocation.  This problem presented itself as an
12771AE_AML_INTERNAL during the pass 1 parse phase during table load.
12772
12773Fixed a problem where the internal String object copy routine did
12774not always allocate sufficient memory for the target String object
12775and caused memory corruption.  This problem was seen to cause
12776"Allocation already present in list!" errors as memory allocation
12777became corrupted.
12778
12779Implemented a new function for the evaluation of namespace objects
12780that allows the specification of the allowable return object
12781types.  This simplifies a lot of code that checks for a return
12782object of one or more specific objects returned from the
12783evaluation (such as _STA, etc.)  This may become and external
12784function if it would be useful to ACPI-related drivers.
12785
12786Completed another round of prefixing #defines with "ACPI_" for
12787clarity.
12788
12789Completed additional code restructuring to allow more modular
12790linking for iASL compiler and AcpiExec.  Several files were split
12791creating new files.  New files:  nsparse.c dsinit.c evgpe.c
12792
12793Implemented an abort mechanism to terminate an executing control
12794method via the AML debugger.  This feature is useful for debugging
12795control methods that depend (wait) for specific hardware
12796responses.
12797
12798Code and Data Size: Current core subsystem library sizes are shown
12799below.  These are the code and data sizes for the acpica.lib
12800produced by the Microsoft Visual C++ 6.0 compiler, and these
12801values do not include any ACPI driver or OSPM code.  The debug
12802version of the code includes the debug output trace mechanism and
12803has a much larger code and data size.  Note that these values will
12804vary depending on the efficiency of the compiler and the compiler
12805options used during generation.
12806
12807  Previous Release
12808    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
12809    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
12810  Current Release:
12811    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
12812    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
12813
12814
128152) iASL Compiler/Disassembler
12816
12817Fixed a compiler code generation problem for "Interrupt" Resource
12818Descriptors.  If specified in the ASL, the optional "Resource
12819Source Index" and "Resource Source" fields were not inserted into
12820the correct location within the AML resource descriptor, creating
12821an invalid descriptor.
12822
12823Fixed a disassembler problem for "Interrupt" resource descriptors.
12824The optional "Resource Source Index" and "Resource Source" fields
12825were ignored.
12826
12827
12828----------------------------------------
1282922 November 2002.  Summary of changes for version 20021122.
12830
12831
128321) ACPI CA Core Subsystem:
12833
12834Fixed a reported problem where an object stored to a Method Local
12835or Arg was not copied to a new object during the store - the
12836object pointer was simply copied to the Local/Arg.  This caused
12837all subsequent operations on the Local/Arg to also affect the
12838original source of the store operation.
12839
12840Fixed a problem where a store operation to a Method Local or Arg
12841was not completed properly if the Local/Arg contained a reference
12842(from RefOf) to a named field.  The general-purpose store-to-
12843namespace-node code is now used so that this case is handled
12844automatically.
12845
12846Fixed a problem where the internal object copy routine would cause
12847a protection fault if the object being copied was a Package and
12848contained either 1) a NULL package element or 2) a nested sub-
12849package.
12850
12851Fixed a problem with the GPE initialization that resulted from an
12852ambiguity in the ACPI specification.  One section of the
12853specification states that both the address and length of the GPE
12854block must be zero if the block is not supported.  Another section
12855implies that only the address need be zero if the block is not
12856supported.  The code has been changed so that both the address and
12857the length must be non-zero to indicate a valid GPE block (i.e.,
12858if either the address or the length is zero, the GPE block is
12859invalid.)
12860
12861Code and Data Size: Current core subsystem library sizes are shown
12862below.  These are the code and data sizes for the acpica.lib
12863produced by the Microsoft Visual C++ 6.0 compiler, and these
12864values do not include any ACPI driver or OSPM code.  The debug
12865version of the code includes the debug output trace mechanism and
12866has a much larger code and data size.  Note that these values will
12867vary depending on the efficiency of the compiler and the compiler
12868options used during generation.
12869
12870  Previous Release
12871    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
12872    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
12873  Current Release:
12874    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
12875    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
12876
12877
128782) Linux
12879
12880Cleaned up EC driver. Exported an external EC read/write
12881interface. By going through this, other drivers (most notably
12882sonypi) will be able to serialize access to the EC.
12883
12884
128853) iASL Compiler/Disassembler
12886
12887Implemented support to optionally generate include files for both
12888ASM and C (the -i switch).  This simplifies BIOS development by
12889automatically creating include files that contain external
12890declarations for the symbols that are created within the
12891
12892(optionally generated) ASM and C AML source files.
12893
12894
12895----------------------------------------
1289615 November 2002.  Summary of changes for version 20021115.
12897
128981) ACPI CA Core Subsystem:
12899
12900Fixed a memory leak problem where an error during resolution of
12901
12902method arguments during a method invocation from another method
12903failed to cleanup properly by deleting all successfully resolved
12904argument objects.
12905
12906Fixed a problem where the target of the Index() operator was not
12907correctly constructed if the source object was a package.  This
12908problem has not been detected because the use of a target operand
12909with Index() is very rare.
12910
12911Fixed a problem with the Index() operator where an attempt was
12912made to delete the operand objects twice.
12913
12914Fixed a problem where an attempt was made to delete an operand
12915twice during execution of the CondRefOf() operator if the target
12916did not exist.
12917
12918Implemented the first of perhaps several internal create object
12919functions that create and initialize a specific object type.  This
12920consolidates duplicated code wherever the object is created, thus
12921shrinking the size of the subsystem.
12922
12923Implemented improved debug/error messages for errors that occur
12924during nested method invocations.  All executing method pathnames
12925are displayed (with the error) as the call stack is unwound - thus
12926simplifying debug.
12927
12928Fixed a problem introduced in the 10/02 release that caused
12929premature deletion of a buffer object if a buffer was used as an
12930ASL operand where an integer operand is required (Thus causing an
12931implicit object conversion from Buffer to Integer.)  The change in
12932the 10/02 release was attempting to fix a memory leak (albeit
12933incorrectly.)
12934
12935Code and Data Size: Current core subsystem library sizes are shown
12936below.  These are the code and data sizes for the acpica.lib
12937produced by the Microsoft Visual C++ 6.0 compiler, and these
12938values do not include any ACPI driver or OSPM code.  The debug
12939version of the code includes the debug output trace mechanism and
12940has a much larger code and data size.  Note that these values will
12941vary depending on the efficiency of the compiler and the compiler
12942options used during generation.
12943
12944  Previous Release
12945    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
12946    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
12947  Current Release:
12948    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
12949    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
12950
12951
129522) Linux
12953
12954Changed the implementation of the ACPI semaphores to use down()
12955instead of down_interruptable().  It is important that the
12956execution of ACPI control methods not be interrupted by signals.
12957Methods must run to completion, or the system may be left in an
12958unknown/unstable state.
12959
12960Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
12961(Shawn Starr)
12962
12963
129643) iASL Compiler/Disassembler
12965
12966
12967Changed the default location of output files.  All output files
12968are now placed in the current directory by default instead of in
12969the directory of the source file.  This change may affect some
12970existing makefiles, but it brings the behavior of the compiler in
12971line with other similar tools.  The location of the output files
12972can be overridden with the -p command line switch.
12973
12974
12975----------------------------------------
1297611 November 2002.  Summary of changes for version 20021111.
12977
12978
129790) ACPI Specification 2.0B is released and is now available at:
12980http://www.acpi.info/index.html
12981
12982
129831) ACPI CA Core Subsystem:
12984
12985Implemented support for the ACPI 2.0 SMBus Operation Regions.
12986This includes the early detection and handoff of the request to
12987the SMBus region handler (avoiding all of the complex field
12988support code), and support for the bidirectional return packet
12989from an SMBus write operation.  This paves the way for the
12990development of SMBus drivers in each host operating system.
12991
12992Fixed a problem where the semaphore WAIT_FOREVER constant was
12993defined as 32 bits, but must be 16 bits according to the ACPI
12994specification.  This had the side effect of causing ASL
12995Mutex/Event timeouts even though the ASL code requested a wait
12996forever.  Changed all internal references to the ACPI timeout
12997parameter to 16 bits to prevent future problems.  Changed the name
12998of WAIT_FOREVER to ACPI_WAIT_FOREVER.
12999
13000Code and Data Size: Current core subsystem library sizes are shown
13001below.  These are the code and data sizes for the acpica.lib
13002produced by the Microsoft Visual C++ 6.0 compiler, and these
13003values do not include any ACPI driver or OSPM code.  The debug
13004version of the code includes the debug output trace mechanism and
13005has a much larger code and data size.  Note that these values will
13006vary depending on the efficiency of the compiler and the compiler
13007options used during generation.
13008
13009  Previous Release
13010    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
13011    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
13012  Current Release:
13013    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
13014    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
13015
13016
130172) Linux
13018
13019Module loading/unloading fixes (John Cagle)
13020
13021
130223) iASL Compiler/Disassembler
13023
13024Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
13025
13026Implemented support for the disassembly of all SMBus protocol
13027keywords (SMBQuick, SMBWord, etc.)
13028
13029----------------------------------------
1303001 November 2002.  Summary of changes for version 20021101.
13031
13032
130331) ACPI CA Core Subsystem:
13034
13035Fixed a problem where platforms that have a GPE1 block but no GPE0
13036block were not handled correctly.  This resulted in a "GPE
13037overlap" error message.  GPE0 is no longer required.
13038
13039Removed code added in the previous release that inserted nodes
13040into the namespace in alphabetical order.  This caused some side-
13041effects on various machines.  The root cause of the problem is
13042still under investigation since in theory, the internal ordering
13043of the namespace nodes should not matter.
13044
13045
13046Enhanced error reporting for the case where a named object is not
13047found during control method execution.  The full ACPI namepath
13048(name reference) of the object that was not found is displayed in
13049this case.
13050
13051Note: as a result of the overhaul of the namespace object types in
13052the previous release, the namespace nodes for the predefined
13053scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
13054instead of ACPI_TYPE_ANY.  This simplifies the namespace
13055management code but may affect code that walks the namespace tree
13056looking for specific object types.
13057
13058Code and Data Size: Current core subsystem library sizes are shown
13059below.  These are the code and data sizes for the acpica.lib
13060produced by the Microsoft Visual C++ 6.0 compiler, and these
13061values do not include any ACPI driver or OSPM code.  The debug
13062version of the code includes the debug output trace mechanism and
13063has a much larger code and data size.  Note that these values will
13064vary depending on the efficiency of the compiler and the compiler
13065options used during generation.
13066
13067  Previous Release
13068    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
13069    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
13070  Current Release:
13071    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
13072    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
13073
13074
130752) Linux
13076
13077Fixed a problem introduced in the previous release where the
13078Processor and Thermal objects were not recognized and installed in
13079/proc.  This was related to the scope type change described above.
13080
13081
130823) iASL Compiler/Disassembler
13083
13084Implemented the -g option to get all of the required ACPI tables
13085from the registry and save them to files (Windows version of the
13086compiler only.)  The required tables are the FADT, FACS, and DSDT.
13087
13088Added ACPI table checksum validation during table disassembly in
13089order to catch corrupted tables.
13090
13091
13092----------------------------------------
1309322 October 2002.  Summary of changes for version 20021022.
13094
130951) ACPI CA Core Subsystem:
13096
13097Implemented a restriction on the Scope operator that the target
13098must already exist in the namespace at the time the operator is
13099encountered (during table load or method execution).  In other
13100words, forward references are not allowed and Scope() cannot
13101create a new object. This changes the previous behavior where the
13102interpreter would create the name if not found.  This new behavior
13103correctly enables the search-to-root algorithm during namespace
13104lookup of the target name.  Because of this upsearch, this fixes
13105the known Compaq _SB_.OKEC problem and makes both the AML
13106interpreter and iASL compiler compatible with other ACPI
13107implementations.
13108
13109Completed a major overhaul of the internal ACPI object types for
13110the ACPI Namespace and the associated operand objects.  Many of
13111these types had become obsolete with the introduction of the two-
13112pass namespace load.  This cleanup simplifies the code and makes
13113the entire namespace load mechanism much clearer and easier to
13114understand.
13115
13116Improved debug output for tracking scope opening/closing to help
13117diagnose scoping issues.  The old scope name as well as the new
13118scope name are displayed.  Also improved error messages for
13119problems with ASL Mutex objects and error messages for GPE
13120problems.
13121
13122Cleaned up the namespace dump code, removed obsolete code.
13123
13124All string output (for all namespace/object dumps) now uses the
13125common ACPI string output procedure which handles escapes properly
13126and does not emit non-printable characters.
13127
13128Fixed some issues with constants in the 64-bit version of the
13129local C library (utclib.c)
13130
13131
131322) Linux
13133
13134EC Driver:  No longer attempts to acquire the Global Lock at
13135interrupt level.
13136
13137
131383) iASL Compiler/Disassembler
13139
13140Implemented ACPI 2.0B grammar change that disallows all Type 1 and
131412 opcodes outside of a control method.  This means that the
13142"executable" operators (versus the "namespace" operators) cannot
13143be used at the table level; they can only be used within a control
13144method.
13145
13146Implemented the restriction on the Scope() operator where the
13147target must already exist in the namespace at the time the
13148operator is encountered (during ASL compilation). In other words,
13149forward references are not allowed and Scope() cannot create a new
13150object.  This makes the iASL compiler compatible with other ACPI
13151implementations and makes the Scope() implementation adhere to the
13152ACPI specification.
13153
13154Fixed a problem where namepath optimization for the Alias operator
13155was optimizing the wrong path (of the two namepaths.)  This caused
13156a "Missing alias link" error message.
13157
13158Fixed a problem where an "unknown reserved name" warning could be
13159incorrectly generated for names like "_SB" when the trailing
13160underscore is not used in the original ASL.
13161
13162Fixed a problem where the reserved name check did not handle
13163NamePaths with multiple NameSegs correctly.  The first nameseg of
13164the NamePath was examined instead of the last NameSeg.
13165
13166
13167----------------------------------------
13168
1316902 October 2002.  Summary of changes for this release.
13170
13171
131721) ACPI CA Core Subsystem version 20021002:
13173
13174Fixed a problem where a store/copy of a string to an existing
13175string did not always set the string length properly in the String
13176object.
13177
13178Fixed a reported problem with the ToString operator where the
13179behavior was identical to the ToHexString operator instead of just
13180simply converting a raw buffer to a string data type.
13181
13182Fixed a problem where CopyObject and the other "explicit"
13183conversion operators were not updating the internal namespace node
13184type as part of the store operation.
13185
13186Fixed a memory leak during implicit source operand conversion
13187where the original object was not deleted if it was converted to a
13188new object of a different type.
13189
13190Enhanced error messages for all problems associated with namespace
13191lookups.  Common procedure generates and prints the lookup name as
13192well as the formatted status.
13193
13194Completed implementation of a new design for the Alias support
13195within the namespace.  The existing design did not handle the case
13196where a new object was assigned to one of the two names due to the
13197use of an explicit conversion operator, resulting in the two names
13198pointing to two different objects.  The new design simply points
13199the Alias name to the original name node - not to the object.
13200This results in a level of indirection that must be handled in the
13201name resolution mechanism.
13202
13203Code and Data Size: Current core subsystem library sizes are shown
13204below.  These are the code and data sizes for the acpica.lib
13205produced by the Microsoft Visual C++ 6.0 compiler, and these
13206values do not include any ACPI driver or OSPM code.  The debug
13207version of the code includes the debug output trace mechanism and
13208has a larger code and data size.  Note that these values will vary
13209depending on the efficiency of the compiler and the compiler
13210options used during generation.
13211
13212  Previous Release
13213    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
13214    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
13215  Current Release:
13216    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
13217    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
13218
13219
132202) Linux
13221
13222Initialize thermal driver's timer before it is used. (Knut
13223Neumann)
13224
13225Allow handling negative celsius values. (Kochi Takayoshi)
13226
13227Fix thermal management and make trip points. R/W (Pavel Machek)
13228
13229Fix /proc/acpi/sleep. (P. Christeas)
13230
13231IA64 fixes. (David Mosberger)
13232
13233Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
13234
13235Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
13236Brodowski)
13237
13238
132393) iASL Compiler/Disassembler
13240
13241Clarified some warning/error messages.
13242
13243
13244----------------------------------------
1324518 September 2002.  Summary of changes for this release.
13246
13247
132481) ACPI CA Core Subsystem version 20020918:
13249
13250Fixed a reported problem with reference chaining (via the Index()
13251and RefOf() operators) in the ObjectType() and SizeOf() operators.
13252The definition of these operators includes the dereferencing of
13253all chained references to return information on the base object.
13254
13255Fixed a problem with stores to indexed package elements - the
13256existing code would not complete the store if an "implicit
13257conversion" was not performed.  In other words, if the existing
13258object (package element) was to be replaced completely, the code
13259didn't handle this case.
13260
13261Relaxed typechecking on the ASL "Scope" operator to allow the
13262target name to refer to an object of type Integer, String, or
13263Buffer, in addition to the scoping object types (Device,
13264predefined Scopes, Processor, PowerResource, and ThermalZone.)
13265This allows existing AML code that has workarounds for a bug in
13266Windows to function properly.  A warning is issued, however.  This
13267affects both the AML interpreter and the iASL compiler. Below is
13268an example of this type of ASL code:
13269
13270      Name(DEB,0x00)
13271      Scope(DEB)
13272      {
13273
13274Fixed some reported problems with 64-bit integer support in the
13275local implementation of C library functions (clib.c)
13276
13277
132782) Linux
13279
13280Use ACPI fix map region instead of IOAPIC region, since it is
13281undefined in non-SMP.
13282
13283Ensure that the SCI has the proper polarity and trigger, even on
13284systems that do not have an interrupt override entry in the MADT.
13285
132862.5 big driver reorganization (Pat Mochel)
13287
13288Use early table mapping code from acpitable.c (Andi Kleen)
13289
13290New blacklist entries (Andi Kleen)
13291
13292Blacklist improvements. Split blacklist code out into a separate
13293file. Move checking the blacklist to very early. Previously, we
13294would use ACPI tables, and then halfway through init, check the
13295blacklist -- too late. Now, it's early enough to completely fall-
13296back to non-ACPI.
13297
13298
132993) iASL Compiler/Disassembler version 20020918:
13300
13301Fixed a problem where the typechecking code didn't know that an
13302alias could point to a method.  In other words, aliases were not
13303being dereferenced during typechecking.
13304
13305
13306----------------------------------------
1330729 August 2002.  Summary of changes for this release.
13308
133091) ACPI CA Core Subsystem Version 20020829:
13310
13311If the target of a Scope() operator already exists, it must be an
13312object type that actually opens a scope -- such as a Device,
13313Method, Scope, etc.  This is a fatal runtime error.  Similar error
13314check has been added to the iASL compiler also.
13315
13316Tightened up the namespace load to disallow multiple names in the
13317same scope.  This previously was allowed if both objects were of
13318the same type.  (i.e., a lookup was the same as entering a new
13319name).
13320
13321
133222) Linux
13323
13324Ensure that the ACPI interrupt has the proper trigger and
13325polarity.
13326
13327local_irq_disable is extraneous. (Matthew Wilcox)
13328
13329Make "acpi=off" actually do what it says, and not use the ACPI
13330interpreter *or* the tables.
13331
13332Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
13333Takayoshi)
13334
13335
133363) iASL Compiler/Disassembler  Version 20020829:
13337
13338Implemented namepath optimization for name declarations.  For
13339example, a declaration like "Method (\_SB_.ABCD)" would get
13340optimized to "Method (ABCD)" if the declaration is within the
13341\_SB_ scope.  This optimization is in addition to the named
13342reference path optimization first released in the previous
13343version. This would seem to complete all possible optimizations
13344for namepaths within the ASL/AML.
13345
13346If the target of a Scope() operator already exists, it must be an
13347object type that actually opens a scope -- such as a Device,
13348Method, Scope, etc.
13349
13350Implemented a check and warning for unreachable code in the same
13351block below a Return() statement.
13352
13353Fixed a problem where the listing file was not generated if the
13354compiler aborted if the maximum error count was exceeded (200).
13355
13356Fixed a problem where the typechecking of method return values was
13357broken.  This includes the check for a return value when the
13358method is invoked as a TermArg (a return value is expected.)
13359
13360Fixed a reported problem where EOF conditions during a quoted
13361string or comment caused a fault.
13362
13363
13364----------------------------------------
1336515 August 2002.  Summary of changes for this release.
13366
133671) ACPI CA Core Subsystem Version 20020815:
13368
13369Fixed a reported problem where a Store to a method argument that
13370contains a reference did not perform the indirect store correctly.
13371This problem was created during the conversion to the new
13372reference object model - the indirect store to a method argument
13373code was not updated to reflect the new model.
13374
13375Reworked the ACPI mode change code to better conform to ACPI 2.0,
13376handle corner cases, and improve code legibility (Kochi Takayoshi)
13377
13378Fixed a problem with the pathname parsing for the carat (^)
13379prefix.  The heavy use of the carat operator by the new namepath
13380optimization in the iASL compiler uncovered a problem with the AML
13381interpreter handling of this prefix.  In the case where one or
13382more carats precede a single nameseg, the nameseg was treated as
13383standalone and the search rule (to root) was inadvertently
13384applied.  This could cause both the iASL compiler and the
13385interpreter to find the wrong object or to miss the error that
13386should occur if the object does not exist at that exact pathname.
13387
13388Found and fixed the problem where the HP Pavilion DSDT would not
13389load.  This was a relatively minor tweak to the table loading code
13390(a problem caused by the unexpected encounter with a method
13391invocation not within a control method), but it does not solve the
13392overall issue of the execution of AML code at the table level.
13393This investigation is still ongoing.
13394
13395Code and Data Size: Current core subsystem library sizes are shown
13396below.  These are the code and data sizes for the acpica.lib
13397produced by the Microsoft Visual C++ 6.0 compiler, and these
13398values do not include any ACPI driver or OSPM code.  The debug
13399version of the code includes the debug output trace mechanism and
13400has a larger code and data size.  Note that these values will vary
13401depending on the efficiency of the compiler and the compiler
13402options used during generation.
13403
13404  Previous Release
13405    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
13406    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
13407  Current Release:
13408    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
13409    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
13410
13411
134122) Linux
13413
13414Remove redundant slab.h include (Brad Hards)
13415
13416Fix several bugs in thermal.c (Herbert Nachtnebel)
13417
13418Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
13419
13420Change acpi_system_suspend to use updated irq functions (Pavel
13421Machek)
13422
13423Export acpi_get_firmware_table (Matthew Wilcox)
13424
13425Use proper root proc entry for ACPI (Kochi Takayoshi)
13426
13427Fix early-boot table parsing (Bjorn Helgaas)
13428
13429
134303) iASL Compiler/Disassembler
13431
13432Reworked the compiler options to make them more consistent and to
13433use two-letter options where appropriate.  We were running out of
13434sensible letters.   This may break some makefiles, so check the
13435current options list by invoking the compiler with no parameters.
13436
13437Completed the design and implementation of the ASL namepath
13438optimization option for the compiler.  This option optimizes all
13439references to named objects to the shortest possible path.  The
13440first attempt tries to utilize a single nameseg (4 characters) and
13441the "search-to-root" algorithm used by the interpreter.  If that
13442cannot be used (because either the name is not in the search path
13443or there is a conflict with another object with the same name),
13444the pathname is optimized using the carat prefix (usually a
13445shorter string than specifying the entire path from the root.)
13446
13447Implemented support to obtain the DSDT from the Windows registry
13448(when the disassembly option is specified with no input file).
13449Added this code as the implementation for AcpiOsTableOverride in
13450the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
13451utility) to scan memory for the DSDT to the AcpiOsTableOverride
13452function in the DOS OSL to make the disassembler truly OS
13453independent.
13454
13455Implemented a new option to disassemble and compile in one step.
13456When used without an input filename, this option will grab the
13457DSDT from the local machine, disassemble it, and compile it in one
13458step.
13459
13460Added a warning message for invalid escapes (a backslash followed
13461by any character other than the allowable escapes).  This catches
13462the quoted string error "\_SB_" (which should be "\\_SB_" ).
13463
13464Also, there are numerous instances in the ACPI specification where
13465this error occurs.
13466
13467Added a compiler option to disable all optimizations.  This is
13468basically the "compatibility mode" because by using this option,
13469the AML code will come out exactly the same as other ASL
13470compilers.
13471
13472Added error messages for incorrectly ordered dependent resource
13473functions.  This includes: missing EndDependentFn macro at end of
13474dependent resource list, nested dependent function macros (both
13475start and end), and missing StartDependentFn macro.  These are
13476common errors that should be caught at compile time.
13477
13478Implemented _OSI support for the disassembler and compiler.  _OSI
13479must be included in the namespace for proper disassembly (because
13480the disassembler must know the number of arguments.)
13481
13482Added an "optimization" message type that is optional (off by
13483default).  This message is used for all optimizations - including
13484constant folding, integer optimization, and namepath optimization.
13485
13486----------------------------------------
1348725 July 2002.  Summary of changes for this release.
13488
13489
134901) ACPI CA Core Subsystem Version 20020725:
13491
13492The AML Disassembler has been enhanced to produce compilable ASL
13493code and has been integrated into the iASL compiler (see below) as
13494well as the single-step disassembly for the AML debugger and the
13495disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
13496resource templates and macros are fully supported.  The
13497disassembler has been tested on over 30 different AML files,
13498producing identical AML when the resulting disassembled ASL file
13499is recompiled with the same ASL compiler.
13500
13501Modified the Resource Manager to allow zero interrupts and zero
13502dma channels during the GetCurrentResources call.  This was
13503causing problems on some platforms.
13504
13505Added the AcpiOsRedirectOutput interface to the OSL to simplify
13506output redirection for the AcpiOsPrintf and AcpiOsVprintf
13507interfaces.
13508
13509Code and Data Size: Current core subsystem library sizes are shown
13510below.  These are the code and data sizes for the acpica.lib
13511produced by the Microsoft Visual C++ 6.0 compiler, and these
13512values do not include any ACPI driver or OSPM code.  The debug
13513version of the code includes the debug output trace mechanism and
13514has a larger code and data size.  Note that these values will vary
13515depending on the efficiency of the compiler and the compiler
13516options used during generation.
13517
13518  Previous Release
13519    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
13520    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
13521  Current Release:
13522    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
13523    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
13524
13525
135262) Linux
13527
13528Fixed a panic in the EC driver (Dominik Brodowski)
13529
13530Implemented checksum of the R/XSDT itself during Linux table scan
13531(Richard Schaal)
13532
13533
135343) iASL compiler
13535
13536The AML disassembler is integrated into the compiler.  The "-d"
13537option invokes the disassembler  to completely disassemble an
13538input AML file, producing as output a text ASL file with the
13539extension ".dsl" (to avoid name collisions with existing .asl
13540source files.)  A future enhancement will allow the disassembler
13541to obtain the BIOS DSDT from the registry under Windows.
13542
13543Fixed a problem with the VendorShort and VendorLong resource
13544descriptors where an invalid AML sequence was created.
13545
13546Implemented a fix for BufferData term in the ASL parser.  It was
13547inadvertently defined twice, allowing invalid syntax to pass and
13548causing reduction conflicts.
13549
13550Fixed a problem where the Ones opcode could get converted to a
13551value of zero if "Ones" was used where a byte, word or dword value
13552was expected.  The 64-bit value is now truncated to the correct
13553size with the correct value.
13554
13555
13556
13557----------------------------------------
1355802 July 2002.  Summary of changes for this release.
13559
13560
135611) ACPI CA Core Subsystem Version 20020702:
13562
13563The Table Manager code has been restructured to add several new
13564features.  Tables that are not required by the core subsystem
13565(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
13566validated in any way and are returned from AcpiGetFirmwareTable if
13567requested.  The AcpiOsTableOverride interface is now called for
13568each table that is loaded by the subsystem in order to allow the
13569host to override any table it chooses.  Previously, only the DSDT
13570could be overridden.  Added one new files, tbrsdt.c and
13571tbgetall.c.
13572
13573Fixed a problem with the conversion of internal package objects to
13574external objects (when a package is returned from a control
13575method.)  The return buffer length was set to zero instead of the
13576proper length of the package object.
13577
13578Fixed a reported problem with the use of the RefOf and DeRefOf
13579operators when passing reference arguments to control methods.  A
13580new type of Reference object is used internally for references
13581produced by the RefOf operator.
13582
13583Added additional error messages in the Resource Manager to explain
13584AE_BAD_DATA errors when they occur during resource parsing.
13585
13586Split the AcpiEnableSubsystem into two primitives to enable a
13587finer granularity initialization sequence.  These two calls should
13588be called in this order: AcpiEnableSubsystem (flags),
13589AcpiInitializeObjects (flags).  The flags parameter remains the
13590same.
13591
13592
135932) Linux
13594
13595Updated the ACPI utilities module to understand the new style of
13596fully resolved package objects that are now returned from the core
13597subsystem.  This eliminates errors of the form:
13598
13599    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
13600    acpi_utils-0430 [145] acpi_evaluate_reference:
13601        Invalid element in package (not a device reference)
13602
13603The method evaluation utility uses the new buffer allocation
13604scheme instead of calling AcpiEvaluate Object twice.
13605
13606Added support for ECDT. This allows the use of the Embedded
13607
13608Controller before the namespace has been fully initialized, which
13609is necessary for ACPI 2.0 support, and for some laptops to
13610initialize properly. (Laptops using ECDT are still rare, so only
13611limited testing was performed of the added functionality.)
13612
13613Fixed memory leaks in the EC driver.
13614
13615Eliminated a brittle code structure in acpi_bus_init().
13616
13617Eliminated the acpi_evaluate() helper function in utils.c. It is
13618no longer needed since acpi_evaluate_object can optionally
13619allocate memory for the return object.
13620
13621Implemented fix for keyboard hang when getting battery readings on
13622some systems (Stephen White)
13623
13624PCI IRQ routing update (Dominik Brodowski)
13625
13626Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
13627support
13628
13629----------------------------------------
1363011 June 2002.  Summary of changes for this release.
13631
13632
136331) ACPI CA Core Subsystem Version 20020611:
13634
13635Fixed a reported problem where constants such as Zero and One
13636appearing within _PRT packages were not handled correctly within
13637the resource manager code.  Originally reported against the ASL
13638compiler because the code generator now optimizes integers to
13639their minimal AML representation (i.e. AML constants if possible.)
13640The _PRT code now handles all AML constant opcodes correctly
13641(Zero, One, Ones, Revision).
13642
13643Fixed a problem with the Concatenate operator in the AML
13644interpreter where a buffer result object was incorrectly marked as
13645not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
13646
13647All package sub-objects are now fully resolved before they are
13648returned from the external ACPI interfaces.  This means that name
13649strings are resolved to object handles, and constant operators
13650(Zero, One, Ones, Revision) are resolved to Integers.
13651
13652Implemented immediate resolution of the AML Constant opcodes
13653(Zero, One, Ones, Revision) to Integer objects upon detection
13654within the AML stream. This has simplified and reduced the
13655generated code size of the subsystem by eliminating about 10
13656switch statements for these constants (which previously were
13657contained in Reference objects.)  The complicating issues are that
13658the Zero opcode is used as a "placeholder" for unspecified
13659optional target operands and stores to constants are defined to be
13660no-ops.
13661
13662Code and Data Size: Current core subsystem library sizes are shown
13663below. These are the code and data sizes for the acpica.lib
13664produced by the Microsoft Visual C++ 6.0 compiler, and these
13665values do not include any ACPI driver or OSPM code.  The debug
13666version of the code includes the debug output trace mechanism and
13667has a larger code and data size.  Note that these values will vary
13668depending on the efficiency of the compiler and the compiler
13669options used during generation.
13670
13671  Previous Release
13672    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
13673    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
13674  Current Release:
13675    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
13676    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
13677
13678
136792) Linux
13680
13681
13682Added preliminary support for obtaining _TRA data for PCI root
13683bridges (Bjorn Helgaas).
13684
13685
136863) iASL Compiler Version X2046:
13687
13688Fixed a problem where the "_DDN" reserved name was defined to be a
13689control method with one argument.  There are no arguments, and
13690_DDN does not have to be a control method.
13691
13692Fixed a problem with the Linux version of the compiler where the
13693source lines printed with error messages were the wrong lines.
13694This turned out to be the "LF versus CR/LF" difference between
13695Windows and Unix.  This appears to be the longstanding issue
13696concerning listing output and error messages.
13697
13698Fixed a problem with the Linux version of compiler where opcode
13699names within error messages were wrong.  This was caused by a
13700slight difference in the output of the Flex tool on Linux versus
13701Windows.
13702
13703Fixed a problem with the Linux compiler where the hex output files
13704contained some garbage data caused by an internal buffer overrun.
13705
13706
13707----------------------------------------
1370817 May 2002.  Summary of changes for this release.
13709
13710
137111) ACPI CA Core Subsystem Version 20020517:
13712
13713Implemented a workaround to an BIOS bug discovered on the HP
13714OmniBook where the FADT revision number and the table size are
13715inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
13716behavior is to fallback to using only the ACPI 1.0 fields of the
13717FADT if the table is too small to be a ACPI 2.0 table as claimed
13718by the revision number.  Although this is a BIOS bug, this is a
13719case where the workaround is simple enough and with no side
13720effects, so it seemed prudent to add it.  A warning message is
13721issued, however.
13722
13723Implemented minimum size checks for the fixed-length ACPI tables -
13724- the FADT and FACS, as well as consistency checks between the
13725revision number and the table size.
13726
13727Fixed a reported problem in the table override support where the
13728new table pointer was incorrectly treated as a physical address
13729instead of a logical address.
13730
13731Eliminated the use of the AE_AML_ERROR exception and replaced it
13732with more descriptive codes.
13733
13734Fixed a problem where an exception would occur if an ASL Field was
13735defined with no named Field Units underneath it (used by some
13736index fields).
13737
13738Code and Data Size: Current core subsystem library sizes are shown
13739below.  These are the code and data sizes for the acpica.lib
13740produced by the Microsoft Visual C++ 6.0 compiler, and these
13741values do not include any ACPI driver or OSPM code.  The debug
13742version of the code includes the debug output trace mechanism and
13743has a larger code and data size.  Note that these values will vary
13744depending on the efficiency of the compiler and the compiler
13745options used during generation.
13746
13747  Previous Release
13748    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
13749    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
13750  Current Release:
13751    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
13752    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
13753
13754
13755
137562) Linux
13757
13758Much work done on ACPI init (MADT and PCI IRQ routing support).
13759(Paul D. and Dominik Brodowski)
13760
13761Fix PCI IRQ-related panic on boot (Sam Revitch)
13762
13763Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
13764
13765Fix "MHz" typo (Dominik Brodowski)
13766
13767Fix RTC year 2000 issue (Dominik Brodowski)
13768
13769Preclude multiple button proc entries (Eric Brunet)
13770
13771Moved arch-specific code out of include/platform/aclinux.h
13772
137733) iASL Compiler Version X2044:
13774
13775Implemented error checking for the string used in the EISAID macro
13776(Usually used in the definition of the _HID object.)  The code now
13777strictly enforces the PnP format - exactly 7 characters, 3
13778uppercase letters and 4 hex digits.
13779
13780If a raw string is used in the definition of the _HID object
13781(instead of the EISAID macro), the string must contain all
13782alphanumeric characters (e.g., "*PNP0011" is not allowed because
13783of the asterisk.)
13784
13785Implemented checking for invalid use of ACPI reserved names for
13786most of the name creation operators (Name, Device, Event, Mutex,
13787OperationRegion, PowerResource, Processor, and ThermalZone.)
13788Previously, this check was only performed for control methods.
13789
13790Implemented an additional check on the Name operator to emit an
13791error if a reserved name that must be implemented in ASL as a
13792control method is used.  We know that a reserved name must be a
13793method if it is defined with input arguments.
13794
13795The warning emitted when a namespace object reference is not found
13796during the cross reference phase has been changed into an error.
13797The "External" directive should be used for names defined in other
13798modules.
13799
13800
138014) Tools and Utilities
13802
13803The 16-bit tools (adump16 and aexec16) have been regenerated and
13804tested.
13805
13806Fixed a problem with the output of both acpidump and adump16 where
13807the indentation of closing parentheses and brackets was not
13808
13809aligned properly with the parent block.
13810
13811
13812----------------------------------------
1381303 May 2002.  Summary of changes for this release.
13814
13815
138161) ACPI CA Core Subsystem Version 20020503:
13817
13818Added support a new OSL interface that allows the host operating
13819
13820system software to override the DSDT found in the firmware -
13821AcpiOsTableOverride.  With this interface, the OSL can examine the
13822version of the firmware DSDT and replace it with a different one
13823if desired.
13824
13825Added new external interfaces for accessing ACPI registers from
13826device drivers and other system software - AcpiGetRegister and
13827AcpiSetRegister.  This was simply an externalization of the
13828existing AcpiHwBitRegister interfaces.
13829
13830Fixed a regression introduced in the previous build where the
13831ASL/AML CreateField operator always returned an error,
13832"destination must be a NS Node".
13833
13834Extended the maximum time (before failure) to successfully enable
13835ACPI mode to 3 seconds.
13836
13837Code and Data Size: Current core subsystem library sizes are shown
13838below.  These are the code and data sizes for the acpica.lib
13839produced by the Microsoft Visual C++ 6.0 compiler, and these
13840values do not include any ACPI driver or OSPM code.  The debug
13841version of the code includes the debug output trace mechanism and
13842has a larger code and data size.  Note that these values will vary
13843depending on the efficiency of the compiler and the compiler
13844options used during generation.
13845
13846  Previous Release
13847    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
13848    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
13849  Current Release:
13850    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
13851    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
13852
13853
138542) Linux
13855
13856Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
13857free. While 3 out of 4 of our in-house systems work fine, the last
13858one still hangs when testing the LAPIC timer.
13859
13860Renamed many files in 2.5 kernel release to omit "acpi_" from the
13861name.
13862
13863Added warning on boot for Presario 711FR.
13864
13865Sleep improvements (Pavel Machek)
13866
13867ACPI can now be built without CONFIG_PCI enabled.
13868
13869IA64: Fixed memory map functions (JI Lee)
13870
13871
138723) iASL Compiler Version X2043:
13873
13874Added support to allow the compiler to be integrated into the MS
13875VC++ development environment for one-button compilation of single
13876files or entire projects -- with error-to-source-line mapping.
13877
13878Implemented support for compile-time constant folding for the
13879Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
13880specification.  This allows the ASL writer to use expressions
13881instead of Integer/Buffer/String constants in terms that must
13882evaluate to constants at compile time and will also simplify the
13883emitted AML in any such sub-expressions that can be folded
13884(evaluated at compile-time.)  This increases the size of the
13885compiler significantly because a portion of the ACPI CA AML
13886interpreter is included within the compiler in order to pre-
13887evaluate constant expressions.
13888
13889
13890Fixed a problem with the "Unicode" ASL macro that caused the
13891compiler to fault.  (This macro is used in conjunction with the
13892_STR reserved name.)
13893
13894Implemented an AML opcode optimization to use the Zero, One, and
13895Ones opcodes where possible to further reduce the size of integer
13896constants and thus reduce the overall size of the generated AML
13897code.
13898
13899Implemented error checking for new reserved terms for ACPI version
139002.0A.
13901
13902Implemented the -qr option to display the current list of ACPI
13903reserved names known to the compiler.
13904
13905Implemented the -qc option to display the current list of ASL
13906operators that are allowed within constant expressions and can
13907therefore be folded at compile time if the operands are constants.
13908
13909
139104) Documentation
13911
13912Updated the Programmer's Reference for new interfaces, data types,
13913and memory allocation model options.
13914
13915Updated the iASL Compiler User Reference to apply new format and
13916add information about new features and options.
13917
13918----------------------------------------
1391919 April 2002.  Summary of changes for this release.
13920
139211) ACPI CA Core Subsystem Version 20020419:
13922
13923The source code base for the Core Subsystem has been completely
13924cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
13925versions.  The Lint option files used are included in the
13926/acpi/generate/lint directory.
13927
13928Implemented enhanced status/error checking across the entire
13929Hardware manager subsystem.  Any hardware errors (reported from
13930the OSL) are now bubbled up and will abort a running control
13931method.
13932
13933
13934Fixed a problem where the per-ACPI-table integer width (32 or 64)
13935was stored only with control method nodes, causing a fault when
13936non-control method code was executed during table loading.  The
13937solution implemented uses a global variable to indicate table
13938width across the entire ACPI subsystem.  Therefore, ACPI CA does
13939not support mixed integer widths across different ACPI tables
13940(DSDT, SSDT).
13941
13942Fixed a problem where NULL extended fields (X fields) in an ACPI
139432.0 ACPI FADT caused the table load to fail.  Although the
13944existing ACPI specification is a bit fuzzy on this topic, the new
13945behavior is to fall back on a ACPI 1.0 field if the corresponding
13946ACPI 2.0 X field is zero (even though the table revision indicates
13947a full ACPI 2.0 table.)  The ACPI specification will be updated to
13948clarify this issue.
13949
13950Fixed a problem with the SystemMemory operation region handler
13951where memory was always accessed byte-wise even if the AML-
13952specified access width was larger than a byte.  This caused
13953problems on systems with memory-mapped I/O.  Memory is now
13954accessed with the width specified.  On systems that do not support
13955non-aligned transfers, a check is made to guarantee proper address
13956alignment before proceeding in order to avoid an AML-caused
13957alignment fault within the kernel.
13958
13959
13960Fixed a problem with the ExtendedIrq resource where only one byte
13961of the 4-byte Irq field was extracted.
13962
13963Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
13964function was out of date and required a rewrite.
13965
13966Code and Data Size: Current core subsystem library sizes are shown
13967below.  These are the code and data sizes for the acpica.lib
13968produced by the Microsoft Visual C++ 6.0 compiler, and these
13969values do not include any ACPI driver or OSPM code.  The debug
13970version of the code includes the debug output trace mechanism and
13971has a larger code and data size.  Note that these values will vary
13972depending on the efficiency of the compiler and the compiler
13973options used during generation.
13974
13975  Previous Release
13976    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
13977    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
13978  Current Release:
13979    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
13980    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
13981
13982
139832) Linux
13984
13985PCI IRQ routing fixes (Dominik Brodowski)
13986
13987
139883) iASL Compiler Version X2042:
13989
13990Implemented an additional compile-time error check for a field
13991unit whose size + minimum access width would cause a run-time
13992access beyond the end-of-region.  Previously, only the field size
13993itself was checked.
13994
13995The Core subsystem and iASL compiler now share a common parse
13996object in preparation for compile-time evaluation of the type
139973/4/5 ASL operators.
13998
13999
14000----------------------------------------
14001Summary of changes for this release: 03_29_02
14002
140031) ACPI CA Core Subsystem Version 20020329:
14004
14005Implemented support for late evaluation of TermArg operands to
14006Buffer and Package objects.  This allows complex expressions to be
14007used in the declarations of these object types.
14008
14009Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
140101.0, if the field was larger than 32 bits, it was returned as a
14011buffer - otherwise it was returned as an integer.  In ACPI 2.0,
14012the field is returned as a buffer only if the field is larger than
1401364 bits.  The TableRevision is now considered when making this
14014conversion to avoid incompatibility with existing ASL code.
14015
14016Implemented logical addressing for AcpiOsGetRootPointer.  This
14017allows an RSDP with either a logical or physical address.  With
14018this support, the host OS can now override all ACPI tables with
14019one logical RSDP.  Includes implementation of  "typed" pointer
14020support to allow a common data type for both physical and logical
14021pointers internally.  This required a change to the
14022AcpiOsGetRootPointer interface.
14023
14024Implemented the use of ACPI 2.0 Generic Address Structures for all
14025GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
14026mapped I/O for these ACPI features.
14027
14028Initialization now ignores not only non-required tables (All
14029tables other than the FADT, FACS, DSDT, and SSDTs), but also does
14030not validate the table headers of unrecognized tables.
14031
14032Fixed a problem where a notify handler could only be
14033installed/removed on an object of type Device.  All "notify"
14034
14035objects are now supported -- Devices, Processor, Power, and
14036Thermal.
14037
14038Removed most verbosity from the ACPI_DB_INFO debug level.  Only
14039critical information is returned when this debug level is enabled.
14040
14041Code and Data Size: Current core subsystem library sizes are shown
14042below.  These are the code and data sizes for the acpica.lib
14043produced by the Microsoft Visual C++ 6.0 compiler, and these
14044values do not include any ACPI driver or OSPM code.  The debug
14045version of the code includes the debug output trace mechanism and
14046has a larger code and data size.  Note that these values will vary
14047depending on the efficiency of the compiler and the compiler
14048options used during generation.
14049
14050  Previous Release
14051    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
14052    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
14053  Current Release:
14054    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
14055    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
14056
14057
140582) Linux:
14059
14060The processor driver (acpi_processor.c) now fully supports ACPI
140612.0-based processor performance control (e.g. Intel(R)
14062SpeedStep(TM) technology) Note that older laptops that only have
14063the Intel "applet" interface are not supported through this.  The
14064'limit' and 'performance' interface (/proc) are fully functional.
14065[Note that basic policy for controlling performance state
14066transitions will be included in the next version of ospmd.]  The
14067idle handler was modified to more aggressively use C2, and PIIX4
14068errata handling underwent a complete overhaul (big thanks to
14069Dominik Brodowski).
14070
14071Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
14072based devices in the ACPI namespace are now dynamically bound
14073(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
14074This allows, among other things, ACPI to resolve bus numbers for
14075subordinate PCI bridges.
14076
14077Enhanced PCI IRQ routing to get the proper bus number for _PRT
14078entries defined underneath PCI bridges.
14079
14080Added IBM 600E to bad bios list due to invalid _ADR value for
14081PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
14082
14083In the process of adding full MADT support (e.g. IOAPIC) for IA32
14084(acpi.c, mpparse.c) -- stay tuned.
14085
14086Added back visual differentiation between fixed-feature and
14087control-method buttons in dmesg.  Buttons are also subtyped (e.g.
14088button/power/PWRF) to simplify button identification.
14089
14090We no longer use -Wno-unused when compiling debug. Please ignore
14091any "_THIS_MODULE defined but not used" messages.
14092
14093Can now shut down the system using "magic sysrq" key.
14094
14095
140963) iASL Compiler version 2041:
14097
14098Fixed a problem where conversion errors for hex/octal/decimal
14099constants were not reported.
14100
14101Implemented a fix for the General Register template Address field.
14102This field was 8 bits when it should be 64.
14103
14104Fixed a problem where errors/warnings were no longer being emitted
14105within the listing output file.
14106
14107Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
14108exactly 4 characters, alphanumeric only.
14109
14110
14111
14112
14113----------------------------------------
14114Summary of changes for this release: 03_08_02
14115
14116
141171) ACPI CA Core Subsystem Version 20020308:
14118
14119Fixed a problem with AML Fields where the use of the "AccessAny"
14120keyword could cause an interpreter error due to attempting to read
14121or write beyond the end of the parent Operation Region.
14122
14123Fixed a problem in the SystemMemory Operation Region handler where
14124an attempt was made to map memory beyond the end of the region.
14125This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
14126errors on some Linux systems.
14127
14128Fixed a problem where the interpreter/namespace "search to root"
14129algorithm was not functioning for some object types.  Relaxed the
14130internal restriction on the search to allow upsearches for all
14131external object types as well as most internal types.
14132
14133
141342) Linux:
14135
14136We now use safe_halt() macro versus individual calls to sti | hlt.
14137
14138Writing to the processor limit interface should now work. "echo 1"
14139will increase the limit, 2 will decrease, and 0 will reset to the
14140
14141default.
14142
14143
141443) ASL compiler:
14145
14146Fixed segfault on Linux version.
14147
14148
14149----------------------------------------
14150Summary of changes for this release: 02_25_02
14151
141521) ACPI CA Core Subsystem:
14153
14154
14155Fixed a problem where the GPE bit masks were not initialized
14156properly, causing erratic GPE behavior.
14157
14158Implemented limited support for multiple calling conventions.  The
14159code can be generated with either the VPL (variable parameter
14160list, or "C") convention, or the FPL (fixed parameter list, or
14161"Pascal") convention.  The core subsystem is about 3.4% smaller
14162when generated with FPL.
14163
14164
141652) Linux
14166
14167Re-add some /proc/acpi/event functionality that was lost during
14168the rewrite
14169
14170Resolved issue with /proc events for fixed-feature buttons showing
14171up as the system device.
14172
14173Fixed checks on C2/C3 latencies to be inclusive of maximum values.
14174
14175Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
14176
14177Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
14178
14179Fixed limit interface & usage to fix bugs with passive cooling
14180hysterisis.
14181
14182Restructured PRT support.
14183
14184
14185----------------------------------------
14186Summary of changes for this label: 02_14_02
14187
14188
141891) ACPI CA Core Subsystem:
14190
14191Implemented support in AcpiLoadTable to allow loading of FACS and
14192FADT tables.
14193
14194Suport for the now-obsolete interim 0.71 64-bit ACPI tables has
14195been removed.  All 64-bit platforms should be migrated to the ACPI
141962.0 tables.  The actbl71.h header has been removed from the source
14197tree.
14198
14199All C macros defined within the subsystem have been prefixed with
14200"ACPI_" to avoid collision with other system include files.
14201
14202Removed the return value for the two AcpiOsPrint interfaces, since
14203it is never used and causes lint warnings for ignoring the return
14204value.
14205
14206Added error checking to all internal mutex acquire and release
14207calls.  Although a failure from one of these interfaces is
14208probably a fatal system error, these checks will cause the
14209immediate abort of the currently executing method or interface.
14210
14211Fixed a problem where the AcpiSetCurrentResources interface could
14212fault.  This was a side effect of the deployment of the new memory
14213allocation model.
14214
14215Fixed a couple of problems with the Global Lock support introduced
14216in the last major build.  The "common" (1.0/2.0) internal FACS was
14217being overwritten with the FACS signature and clobbering the
14218Global Lock pointer.  Also, the actual firmware FACS was being
14219unmapped after construction of the "common" FACS, preventing
14220access to the actual Global Lock field within it.  The "common"
14221internal FACS is no longer installed as an actual ACPI table; it
14222is used simply as a global.
14223
14224Code and Data Size: Current core subsystem library sizes are shown
14225below.  These are the code and data sizes for the acpica.lib
14226produced by the Microsoft Visual C++ 6.0 compiler, and these
14227values do not include any ACPI driver or OSPM code.  The debug
14228version of the code includes the debug output trace mechanism and
14229has a larger code and data size.  Note that these values will vary
14230depending on the efficiency of the compiler and the compiler
14231options used during generation.
14232
14233  Previous Release (02_07_01)
14234    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
14235    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
14236  Current Release:
14237    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
14238    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
14239
14240
142412) Linux
14242
14243Updated Linux-specific code for core macro and OSL interface
14244changes described above.
14245
14246Improved /proc/acpi/event. It now can be opened only once and has
14247proper poll functionality.
14248
14249Fixed and restructured power management (acpi_bus).
14250
14251Only create /proc "view by type" when devices of that class exist.
14252
14253Fixed "charging/discharging" bug (and others) in acpi_battery.
14254
14255Improved thermal zone code.
14256
14257
142583) ASL Compiler, version X2039:
14259
14260
14261Implemented the new compiler restriction on ASL String hex/octal
14262escapes to non-null, ASCII values.  An error results if an invalid
14263value is used.  (This will require an ACPI 2.0 specification
14264change.)
14265
14266AML object labels that are output to the optional C and ASM source
14267are now prefixed with both the ACPI table signature and table ID
14268to help guarantee uniqueness within a large BIOS project.
14269
14270
14271----------------------------------------
14272Summary of changes for this label: 02_01_02
14273
142741) ACPI CA Core Subsystem:
14275
14276ACPI 2.0 support is complete in the entire Core Subsystem and the
14277ASL compiler. All new ACPI 2.0 operators are implemented and all
14278other changes for ACPI 2.0 support are complete.  With
14279simultaneous code and data optimizations throughout the subsystem,
14280ACPI 2.0 support has been implemented with almost no additional
14281cost in terms of code and data size.
14282
14283Implemented a new mechanism for allocation of return buffers.  If
14284the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
14285be allocated on behalf of the caller.  Consolidated all return
14286buffer validation and allocation to a common procedure.  Return
14287buffers will be allocated via the primary OSL allocation interface
14288since it appears that a separate pool is not needed by most users.
14289If a separate pool is required for these buffers, the caller can
14290still use the original mechanism and pre-allocate the buffer(s).
14291
14292Implemented support for string operands within the DerefOf
14293operator.
14294
14295Restructured the Hardware and Event managers to be table driven,
14296simplifying the source code and reducing the amount of generated
14297code.
14298
14299Split the common read/write low-level ACPI register bitfield
14300procedure into a separate read and write, simplifying the code
14301considerably.
14302
14303Obsoleted the AcpiOsCallocate OSL interface.  This interface was
14304used only a handful of times and didn't have enough critical mass
14305for a separate interface.  Replaced with a common calloc procedure
14306in the core.
14307
14308Fixed a reported problem with the GPE number mapping mechanism
14309that allows GPE1 numbers to be non-contiguous with GPE0.
14310Reorganized the GPE information and shrunk a large array that was
14311originally large enough to hold info for all possible GPEs (256)
14312to simply large enough to hold all GPEs up to the largest GPE
14313number on the machine.
14314
14315Fixed a reported problem with resource structure alignment on 64-
14316bit platforms.
14317
14318Changed the AcpiEnableEvent and AcpiDisableEvent external
14319interfaces to not require any flags for the common case of
14320enabling/disabling a GPE.
14321
14322Implemented support to allow a "Notify" on a Processor object.
14323
14324Most TBDs in comments within the source code have been resolved
14325and eliminated.
14326
14327
14328Fixed a problem in the interpreter where a standalone parent
14329prefix (^) was not handled correctly in the interpreter and
14330debugger.
14331
14332Removed obsolete and unnecessary GPE save/restore code.
14333
14334Implemented Field support in the ASL Load operator.  This allows a
14335table to be loaded from a named field, in addition to loading a
14336table directly from an Operation Region.
14337
14338Implemented timeout and handle support in the external Global Lock
14339interfaces.
14340
14341Fixed a problem in the AcpiDump utility where pathnames were no
14342longer being generated correctly during the dump of named objects.
14343
14344Modified the AML debugger to give a full display of if/while
14345predicates instead of just one AML opcode at a time.  (The
14346predicate can have several nested ASL statements.)  The old method
14347was confusing during single stepping.
14348
14349Code and Data Size: Current core subsystem library sizes are shown
14350below. These are the code and data sizes for the acpica.lib
14351produced by the Microsoft Visual C++ 6.0 compiler, and these
14352values do not include any ACPI driver or OSPM code.  The debug
14353version of the code includes the debug output trace mechanism and
14354has a larger code and data size.  Note that these values will vary
14355depending on the efficiency of the compiler and the compiler
14356options used during generation.
14357
14358  Previous Release (12_18_01)
14359     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
14360     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
14361   Current Release:
14362     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
14363     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
14364
143652) Linux
14366
14367 Implemented fix for PIIX reverse throttling errata (Processor
14368driver)
14369
14370Added new Limit interface (Processor and Thermal drivers)
14371
14372New thermal policy (Thermal driver)
14373
14374Many updates to /proc
14375
14376Battery "low" event support (Battery driver)
14377
14378Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
14379
14380IA32 - IA64 initialization unification, no longer experimental
14381
14382Menuconfig options redesigned
14383
143843) ASL Compiler, version X2037:
14385
14386Implemented several new output features to simplify integration of
14387AML code into  firmware: 1) Output the AML in C source code with
14388labels for each named ASL object.  The    original ASL source code
14389is interleaved as C comments. 2) Output the AML in ASM source code
14390with labels and interleaved ASL    source. 3) Output the AML in
14391raw hex table form, in either C or ASM.
14392
14393Implemented support for optional string parameters to the
14394LoadTable operator.
14395
14396Completed support for embedded escape sequences within string
14397literals.  The compiler now supports all single character escapes
14398as well as the Octal and Hex escapes.  Note: the insertion of a
14399null byte into a string literal (via the hex/octal escape) causes
14400the string to be immediately terminated.  A warning is issued.
14401
14402Fixed a problem where incorrect AML was generated for the case
14403where an ASL namepath consists of a single parent prefix (
14404
14405) with no trailing name segments.
14406
14407The compiler has been successfully generated with a 64-bit C
14408compiler.
14409
14410
14411
14412
14413----------------------------------------
14414Summary of changes for this label: 12_18_01
14415
144161) Linux
14417
14418Enhanced blacklist with reason and severity fields. Any table's
14419signature may now be used to identify a blacklisted system.
14420
14421Call _PIC control method to inform the firmware which interrupt
14422model the OS is using. Turn on any disabled link devices.
14423
14424Cleaned up busmgr /proc error handling (Andreas Dilger)
14425
14426 2) ACPI CA Core Subsystem:
14427
14428Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
14429while loop)
14430
14431Completed implementation of the ACPI 2.0 "Continue",
14432"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
14433operators.  All new ACPI 2.0 operators are now implemented in both
14434the ASL compiler and the AML interpreter.  The only remaining ACPI
144352.0 task is support for the String data type in the DerefOf
14436operator.  Fixed a problem with AcquireMutex where the status code
14437was lost if the caller had to actually wait for the mutex.
14438
14439Increased the maximum ASL Field size from 64K bits to 4G bits.
14440
14441Completed implementation of the external Global Lock interfaces --
14442AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
14443Handler parameters were added.
14444
14445Completed another pass at removing warnings and issues when
14446compiling with 64-bit compilers.  The code now compiles cleanly
14447with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
14448add and subtract (diff) macros have changed considerably.
14449
14450
14451Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1445264-bit platforms, 32-bits on all others.  This type is used
14453wherever memory allocation and/or the C sizeof() operator is used,
14454and affects the OSL memory allocation interfaces AcpiOsAllocate
14455and AcpiOsCallocate.
14456
14457Implemented sticky user breakpoints in the AML debugger.
14458
14459Code and Data Size: Current core subsystem library sizes are shown
14460below. These are the code and data sizes for the acpica.lib
14461produced by the Microsoft Visual C++ 6.0 compiler, and these
14462values do not include any ACPI driver or OSPM code.  The debug
14463version of the code includes the debug output trace mechanism and
14464has a larger code and data size. Note that these values will vary
14465depending on the efficiency of the compiler and the compiler
14466options used during generation.
14467
14468  Previous Release (12_05_01)
14469     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
14470     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
14471   Current Release:
14472     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
14473     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
14474
14475 3) ASL Compiler, version X2034:
14476
14477Now checks for (and generates an error if detected) the use of a
14478Break or Continue statement without an enclosing While statement.
14479
14480
14481Successfully generated the compiler with the Intel 64-bit C
14482compiler.
14483
14484 ----------------------------------------
14485Summary of changes for this label: 12_05_01
14486
14487 1) ACPI CA Core Subsystem:
14488
14489The ACPI 2.0 CopyObject operator is fully implemented.  This
14490operator creates a new copy of an object (and is also used to
14491bypass the "implicit conversion" mechanism of the Store operator.)
14492
14493The ACPI 2.0 semantics for the SizeOf operator are fully
14494implemented.  The change is that performing a SizeOf on a
14495reference object causes an automatic dereference of the object to
14496tha actual value before the size is evaluated. This behavior was
14497undefined in ACPI 1.0.
14498
14499The ACPI 2.0 semantics for the Extended IRQ resource descriptor
14500have been implemented.  The interrupt polarity and mode are now
14501independently set.
14502
14503Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
14504appearing in Package objects were not properly converted to
14505integers when the internal Package was converted to an external
14506object (via the AcpiEvaluateObject interface.)
14507
14508Fixed a problem with the namespace object deletion mechanism for
14509objects created by control methods.  There were two parts to this
14510problem: 1) Objects created during the initialization phase method
14511parse were not being deleted, and 2) The object owner ID mechanism
14512to track objects was broken.
14513
14514Fixed a problem where the use of the ASL Scope operator within a
14515control method would result in an invalid opcode exception.
14516
14517Fixed a problem introduced in the previous label where the buffer
14518length required for the _PRT structure was not being returned
14519correctly.
14520
14521Code and Data Size: Current core subsystem library sizes are shown
14522below. These are the code and data sizes for the acpica.lib
14523produced by the Microsoft Visual C++ 6.0 compiler, and these
14524values do not include any ACPI driver or OSPM code.  The debug
14525version of the code includes the debug output trace mechanism and
14526has a larger code and data size.  Note that these values will vary
14527depending on the efficiency of the compiler and the compiler
14528options used during generation.
14529
14530  Previous Release (11_20_01)
14531     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
14532     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
14533
14534  Current Release:
14535     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
14536     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
14537
14538 2) Linux:
14539
14540Updated all files to apply cleanly against 2.4.16.
14541
14542Added basic PCI Interrupt Routing Table (PRT) support for IA32
14543(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
14544version supports both static and dyanmic PRT entries, but dynamic
14545entries are treated as if they were static (not yet
14546reconfigurable).  Architecture- specific code to use this data is
14547absent on IA32 but should be available shortly.
14548
14549Changed the initialization sequence to start the ACPI interpreter
14550(acpi_init) prior to initialization of the PCI driver (pci_init)
14551in init/main.c.  This ordering is required to support PRT and
14552facilitate other (future) enhancement.  A side effect is that the
14553ACPI bus driver and certain device drivers can no longer be loaded
14554as modules.
14555
14556Modified the 'make menuconfig' options to allow PCI Interrupt
14557Routing support to be included without the ACPI Bus and other
14558device drivers.
14559
14560 3) ASL Compiler, version X2033:
14561
14562Fixed some issues with the use of the new CopyObject and
14563DataTableRegion operators.  Both are fully functional.
14564
14565 ----------------------------------------
14566Summary of changes for this label: 11_20_01
14567
14568 20 November 2001.  Summary of changes for this release.
14569
14570 1) ACPI CA Core Subsystem:
14571
14572Updated Index support to match ACPI 2.0 semantics.  Storing a
14573Integer, String, or Buffer to an Index of a Buffer will store only
14574the least-significant byte of the source to the Indexed buffer
14575byte.  Multiple writes are not performed.
14576
14577Fixed a problem where the access type used in an AccessAs ASL
14578operator was not recorded correctly into the field object.
14579
14580Fixed a problem where ASL Event objects were created in a
14581signalled state. Events are now created in an unsignalled state.
14582
14583The internal object cache is now purged after table loading and
14584initialization to reduce the use of dynamic kernel memory -- on
14585the assumption that object use is greatest during the parse phase
14586of the entire table (versus the run-time use of individual control
14587methods.)
14588
14589ACPI 2.0 variable-length packages are now fully operational.
14590
14591Code and Data Size: Code and Data optimizations have permitted new
14592feature development with an actual reduction in the library size.
14593Current core subsystem library sizes are shown below.  These are
14594the code and data sizes for the acpica.lib produced by the
14595Microsoft Visual C++ 6.0 compiler, and these values do not include
14596any ACPI driver or OSPM code.  The debug version of the code
14597includes the debug output trace mechanism and has a larger code
14598and data size.  Note that these values will vary depending on the
14599efficiency of the compiler and the compiler options used during
14600generation.
14601
14602  Previous Release (11_09_01):
14603     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
14604     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
14605
14606  Current Release:
14607     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
14608     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
14609
14610 2) Linux:
14611
14612Enhanced the ACPI boot-time initialization code to allow the use
14613of Local APIC tables for processor enumeration on IA-32, and to
14614pave the way for a fully MPS-free boot (on SMP systems) in the
14615near future.  This functionality replaces
14616arch/i386/kernel/acpitables.c, which was introduced in an earlier
146172.4.15-preX release.  To enable this feature you must add
14618"acpi_boot=on" to the kernel command line -- see the help entry
14619for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
14620the works...
14621
14622Restructured the configuration options to allow boot-time table
14623parsing support without inclusion of the ACPI Interpreter (and
14624other) code.
14625
14626NOTE: This release does not include fixes for the reported events,
14627power-down, and thermal passive cooling issues (coming soon).
14628
14629 3) ASL Compiler:
14630
14631Added additional typechecking for Fields within restricted access
14632Operation Regions.  All fields within EC and CMOS regions must be
14633declared with ByteAcc. All fields withing SMBus regions must be
14634declared with the BufferAcc access type.
14635
14636Fixed a problem where the listing file output of control methods
14637no longer interleaved the actual AML code with the ASL source
14638code.
14639
14640
14641
14642
14643----------------------------------------
14644Summary of changes for this label: 11_09_01
14645
146461) ACPI CA Core Subsystem:
14647
14648Implemented ACPI 2.0-defined support for writes to fields with a
14649Buffer, String, or Integer source operand that is smaller than the
14650target field. In these cases, the source operand is zero-extended
14651to fill the target field.
14652
14653Fixed a problem where a Field starting bit offset (within the
14654parent operation region) was calculated incorrectly if the
14655
14656alignment of the field differed from the access width.  This
14657affected CreateWordField, CreateDwordField, CreateQwordField, and
14658possibly other fields that use the "AccessAny" keyword.
14659
14660Fixed a problem introduced in the 11_02_01 release where indirect
14661stores through method arguments did not operate correctly.
14662
146632) Linux:
14664
14665Implemented boot-time ACPI table parsing support
14666(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
14667facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
14668legacy BIOS interfaces (e.g. MPS) for the configuration of system
14669processors, memory, and interrupts during setup_arch().  Note that
14670this patch does not include the required architecture-specific
14671changes required to apply this information -- subsequent patches
14672will be posted for both IA32 and IA64 to achieve this.
14673
14674Added low-level sleep support for IA32 platforms, courtesy of Pat
14675Mochel. This allows IA32 systems to transition to/from various
14676sleeping states (e.g. S1, S3), although the lack of a centralized
14677driver model and power-manageable drivers will prevent its
14678(successful) use on most systems.
14679
14680Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
14681submenu, unified IA32 and IA64 options, added new "Boot using ACPI
14682tables" option, etc.
14683
14684Increased the default timeout for the EC driver from 1ms to 10ms
14685(1000 cycles of 10us) to try to address AE_TIME errors during EC
14686transactions.
14687
14688 ----------------------------------------
14689Summary of changes for this label: 11_02_01
14690
146911) ACPI CA Core Subsystem:
14692
14693ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
14694(QWordAcc keyword). All ACPI 2.0 64-bit support is now
14695implemented.
14696
14697OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
14698changes to support ACPI 2.0 Qword field access.  Read/Write
14699PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
14700accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
14701the value parameter for the address space handler interface is now
14702an ACPI_INTEGER.  OSL implementations of these interfaces must now
14703handle the case where the Width parameter is 64.
14704
14705Index Fields: Fixed a problem where unaligned bit assembly and
14706disassembly for IndexFields was not supported correctly.
14707
14708Index and Bank Fields:  Nested Index and Bank Fields are now
14709supported. During field access, a check is performed to ensure
14710that the value written to an Index or Bank register is not out of
14711the range of the register.  The Index (or Bank) register is
14712written before each access to the field data. Future support will
14713include allowing individual IndexFields to be wider than the
14714DataRegister width.
14715
14716Fields: Fixed a problem where the AML interpreter was incorrectly
14717attempting to write beyond the end of a Field/OpRegion.  This was
14718a boundary case that occurred when a DWORD field was written to a
14719BYTE access OpRegion, forcing multiple writes and causing the
14720interpreter to write one datum too many.
14721
14722Fields: Fixed a problem with Field/OpRegion access where the
14723starting bit address of a field was incorrectly calculated if the
14724current access type was wider than a byte (WordAcc, DwordAcc, or
14725QwordAcc).
14726
14727Fields: Fixed a problem where forward references to individual
14728FieldUnits (individual Field names within a Field definition) were
14729not resolved during the AML table load.
14730
14731Fields: Fixed a problem where forward references from a Field
14732definition to the parent Operation Region definition were not
14733resolved during the AML table load.
14734
14735Fields: Duplicate FieldUnit names within a scope are now detected
14736during AML table load.
14737
14738Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
14739returned an incorrect name for the root node.
14740
14741Code and Data Size: Code and Data optimizations have permitted new
14742feature development with an actual reduction in the library size.
14743Current core subsystem library sizes are shown below.  These are
14744the code and data sizes for the acpica.lib produced by the
14745Microsoft Visual C++ 6.0 compiler, and these values do not include
14746any ACPI driver or OSPM code.  The debug version of the code
14747includes the debug output trace mechanism and has a larger code
14748and data size.  Note that these values will vary depending on the
14749efficiency of the compiler and the compiler options used during
14750generation.
14751
14752  Previous Release (10_18_01):
14753     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
14754     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
14755
14756  Current Release:
14757     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
14758     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
14759
14760 2) Linux:
14761
14762Improved /proc processor output (Pavel Machek) Re-added
14763MODULE_LICENSE("GPL") to all modules.
14764
14765 3) ASL Compiler version X2030:
14766
14767Duplicate FieldUnit names within a scope are now detected and
14768flagged as errors.
14769
14770 4) Documentation:
14771
14772Programmer Reference updated to reflect OSL and address space
14773handler interface changes described above.
14774
14775----------------------------------------
14776Summary of changes for this label: 10_18_01
14777
14778ACPI CA Core Subsystem:
14779
14780Fixed a problem with the internal object reference count mechanism
14781that occasionally caused premature object deletion. This resolves
14782all of the outstanding problem reports where an object is deleted
14783in the middle of an interpreter evaluation.  Although this problem
14784only showed up in rather obscure cases, the solution to the
14785problem involved an adjustment of all reference counts involving
14786objects attached to namespace nodes.
14787
14788Fixed a problem with Field support in the interpreter where
14789writing to an aligned field whose length is an exact multiple (2
14790or greater) of the field access granularity would cause an attempt
14791to write beyond the end of the field.
14792
14793The top level AML opcode execution functions within the
14794interpreter have been renamed with a more meaningful and
14795consistent naming convention.  The modules exmonad.c and
14796exdyadic.c were eliminated.  New modules are exoparg1.c,
14797exoparg2.c, exoparg3.c, and exoparg6.c.
14798
14799Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
14800
14801Fixed a problem where the AML debugger was causing some internal
14802objects to not be deleted during subsystem termination.
14803
14804Fixed a problem with the external AcpiEvaluateObject interface
14805where the subsystem would fault if the named object to be
14806evaluated refered to a constant such as Zero, Ones, etc.
14807
14808Fixed a problem with IndexFields and BankFields where the
14809subsystem would fault if the index, data, or bank registers were
14810not defined in the same scope as the field itself.
14811
14812Added printf format string checking for compilers that support
14813this feature.  Corrected more than 50 instances of issues with
14814format specifiers within invocations of ACPI_DEBUG_PRINT
14815throughout the core subsystem code.
14816
14817The ASL "Revision" operator now returns the ACPI support level
14818implemented in the core - the value "2" since the ACPI 2.0 support
14819is more than 50% implemented.
14820
14821Enhanced the output of the AML debugger "dump namespace" command
14822to output in a more human-readable form.
14823
14824Current core subsystem library code sizes are shown below.  These
14825
14826are the code and data sizes for the acpica.lib produced by the
14827Microsoft Visual C++ 6.0 compiler, and these values do not include
14828any ACPI driver or OSPM code.  The debug version of the code
14829includes the full debug trace mechanism -- leading to a much
14830
14831larger code and data size.  Note that these values will vary
14832depending on the efficiency of the compiler and the compiler
14833options used during generation.
14834
14835     Previous Label (09_20_01):
14836     Non-Debug Version:    65K Code,     5K Data,     70K Total
14837     Debug Version:       138K Code,    58K Data,    196K Total
14838
14839     This Label:
14840
14841     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
14842     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
14843
14844Linux:
14845
14846Implemented a "Bad BIOS Blacklist" to track machines that have
14847known ASL/AML problems.
14848
14849Enhanced the /proc interface for the thermal zone driver and added
14850support for _HOT (the critical suspend trip point).  The 'info'
14851file now includes threshold/policy information, and allows setting
14852of _SCP (cooling preference) and _TZP (polling frequency) values
14853to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
14854frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
14855preference to the passive/quiet mode (if supported by the ASL).
14856
14857Implemented a workaround for a gcc bug that resuted in an OOPs
14858when loading the control method battery driver.
14859
14860 ----------------------------------------
14861Summary of changes for this label: 09_20_01
14862
14863 ACPI CA Core Subsystem:
14864
14865The AcpiEnableEvent and AcpiDisableEvent interfaces have been
14866modified to allow individual GPE levels to be flagged as wake-
14867enabled (i.e., these GPEs are to remain enabled when the platform
14868sleeps.)
14869
14870The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
14871support wake-enabled GPEs.  This means that upon entering the
14872sleep state, all GPEs that are not wake-enabled are disabled.
14873When leaving the sleep state, these GPEs are reenabled.
14874
14875A local double-precision divide/modulo module has been added to
14876enhance portability to OS kernels where a 64-bit math library is
14877not available.  The new module is "utmath.c".
14878
14879Several optimizations have been made to reduce the use of CPU
14880stack.  Originally over 2K, the maximum stack usage is now below
148812K at 1860  bytes (1.82k)
14882
14883Fixed a problem with the AcpiGetFirmwareTable interface where the
14884root table pointer was not mapped into a logical address properly.
14885
14886Fixed a problem where a NULL pointer was being dereferenced in the
14887interpreter code for the ASL Notify operator.
14888
14889Fixed a problem where the use of the ASL Revision operator
14890returned an error. This operator now returns the current version
14891of the ACPI CA core subsystem.
14892
14893Fixed a problem where objects passed as control method parameters
14894to AcpiEvaluateObject were always deleted at method termination.
14895However, these objects may end up being stored into the namespace
14896by the called method.  The object reference count mechanism was
14897applied to these objects instead of a force delete.
14898
14899Fixed a problem where static strings or buffers (contained in the
14900AML code) that are declared as package elements within the ASL
14901code could cause a fault because the interpreter would attempt to
14902delete them.  These objects are now marked with the "static
14903object" flag to prevent any attempt to delete them.
14904
14905Implemented an interpreter optimization to use operands directly
14906from the state object instead of extracting the operands to local
14907variables.  This reduces stack use and code size, and improves
14908performance.
14909
14910The module exxface.c was eliminated as it was an unnecessary extra
14911layer of code.
14912
14913Current core subsystem library code sizes are shown below.  These
14914are the code and data sizes for the acpica.lib produced by the
14915Microsoft Visual C++ 6.0 compiler, and these values do not include
14916any ACPI driver or OSPM code.  The debug version of the code
14917includes the full debug trace mechanism -- leading to a much
14918larger code and data size.  Note that these values will vary
14919depending on the efficiency of the compiler and the compiler
14920options used during generation.
14921
14922  Non-Debug Version:  65K Code,   5K Data,   70K Total
14923(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
14924Total  (Previously 195K)
14925
14926Linux:
14927
14928Support for ACPI 2.0 64-bit integers has been added.   All ACPI
14929Integer objects are now 64 bits wide
14930
14931All Acpi data types and structures are now in lower case.  Only
14932Acpi macros are upper case for differentiation.
14933
14934 Documentation:
14935
14936Changes to the external interfaces as described above.
14937
14938 ----------------------------------------
14939Summary of changes for this label: 08_31_01
14940
14941 ACPI CA Core Subsystem:
14942
14943A bug with interpreter implementation of the ASL Divide operator
14944was found and fixed.  The implicit function return value (not the
14945explicit store operands) was returning the remainder instead of
14946the quotient.  This was a longstanding bug and it fixes several
14947known outstanding issues on various platforms.
14948
14949The ACPI_DEBUG_PRINT and function trace entry/exit macros have
14950been further optimized for size.  There are 700 invocations of the
14951DEBUG_PRINT macro alone, so each optimization reduces the size of
14952the debug version of the subsystem significantly.
14953
14954A stack trace mechanism has been implemented.  The maximum stack
14955usage is about 2K on 32-bit platforms.  The debugger command "stat
14956stack" will display the current maximum stack usage.
14957
14958All public symbols and global variables within the subsystem are
14959now prefixed with the string "Acpi".  This keeps all of the
14960symbols grouped together in a kernel map, and avoids conflicts
14961with other kernel subsystems.
14962
14963Most of the internal fixed lookup tables have been moved into the
14964code segment via the const operator.
14965
14966Several enhancements have been made to the interpreter to both
14967reduce the code size and improve performance.
14968
14969Current core subsystem library code sizes are shown below.  These
14970are the code and data sizes for the acpica.lib produced by the
14971Microsoft Visual C++ 6.0 compiler, and these values do not include
14972any ACPI driver or OSPM code.  The debug version of the code
14973includes the full debug trace mechanism which contains over 700
14974invocations of the DEBUG_PRINT macro, 500 function entry macro
14975invocations, and over 900 function exit macro invocations --
14976leading to a much larger code and data size.  Note that these
14977values will vary depending on the efficiency of the compiler and
14978the compiler options used during generation.
14979
14980        Non-Debug Version:  64K Code,   5K Data,   69K Total
14981Debug Version:     137K Code,  58K Data,  195K Total
14982
14983 Linux:
14984
14985Implemented wbinvd() macro, pending a kernel-wide definition.
14986
14987Fixed /proc/acpi/event to handle poll() and short reads.
14988
14989 ASL Compiler, version X2026:
14990
14991Fixed a problem introduced in the previous label where the AML
14992
14993code emitted for package objects produced packages with zero
14994length.
14995
14996 ----------------------------------------
14997Summary of changes for this label: 08_16_01
14998
14999ACPI CA Core Subsystem:
15000
15001The following ACPI 2.0 ASL operators have been implemented in the
15002AML interpreter (These are already supported by the Intel ASL
15003compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
15004ToBuffer.  Support for 64-bit AML constants is implemented in the
15005AML parser, debugger, and disassembler.
15006
15007The internal memory tracking mechanism (leak detection code) has
15008been upgraded to reduce the memory overhead (a separate tracking
15009block is no longer allocated for each memory allocation), and now
15010supports all of the internal object caches.
15011
15012The data structures and code for the internal object caches have
15013been coelesced and optimized so that there is a single cache and
15014memory list data structure and a single group of functions that
15015implement generic cache management.  This has reduced the code
15016size in both the debug and release versions of the subsystem.
15017
15018The DEBUG_PRINT macro(s) have been optimized for size and replaced
15019by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
15020different, because it generates a single call to an internal
15021function.  This results in a savings of about 90 bytes per
15022invocation, resulting in an overall code and data savings of about
1502316% in the debug version of the subsystem.
15024
15025 Linux:
15026
15027Fixed C3 disk corruption problems and re-enabled C3 on supporting
15028machines.
15029
15030Integrated low-level sleep code by Patrick Mochel.
15031
15032Further tweaked source code Linuxization.
15033
15034Other minor fixes.
15035
15036 ASL Compiler:
15037
15038Support for ACPI 2.0 variable length packages is fixed/completed.
15039
15040Fixed a problem where the optional length parameter for the ACPI
150412.0 ToString operator.
15042
15043Fixed multiple extraneous error messages when a syntax error is
15044detected within the declaration line of a control method.
15045
15046 ----------------------------------------
15047Summary of changes for this label: 07_17_01
15048
15049ACPI CA Core Subsystem:
15050
15051Added a new interface named AcpiGetFirmwareTable to obtain any
15052ACPI table via the ACPI signature.  The interface can be called at
15053any time during kernel initialization, even before the kernel
15054virtual memory manager is initialized and paging is enabled.  This
15055allows kernel subsystems to obtain ACPI tables very early, even
15056before the ACPI CA subsystem is initialized.
15057
15058Fixed a problem where Fields defined with the AnyAcc attribute
15059could be resolved to the incorrect address under the following
15060conditions: 1) the field width is larger than 8 bits and 2) the
15061parent operation region is not defined on a DWORD boundary.
15062
15063Fixed a problem where the interpreter is not being locked during
15064namespace initialization (during execution of the _INI control
15065methods), causing an error when an attempt is made to release it
15066later.
15067
15068ACPI 2.0 support in the AML Interpreter has begun and will be
15069ongoing throughout the rest of this year.  In this label, The Mod
15070operator is implemented.
15071
15072Added a new data type to contain full PCI addresses named
15073ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
15074and Function values.
15075
15076 Linux:
15077
15078Enhanced the Linux version of the source code to change most
15079capitalized ACPI type names to lowercase. For example, all
15080instances of ACPI_STATUS are changed to acpi_status.  This will
15081result in a large diff, but the change is strictly cosmetic and
15082aligns the CA code closer to the Linux coding standard.
15083
15084OSL Interfaces:
15085
15086The interfaces to the PCI configuration space have been changed to
15087add the PCI Segment number and to split the single 32-bit combined
15088DeviceFunction field into two 16-bit fields.  This was
15089accomplished by moving the four values that define an address in
15090PCI configuration space (segment, bus, device, and function) to
15091the new ACPI_PCI_ID structure.
15092
15093The changes to the PCI configuration space interfaces led to a
15094reexamination of the complete set of address space access
15095interfaces for PCI, I/O, and Memory.  The previously existing 18
15096interfaces have proven difficult to maintain (any small change
15097must be propagated across at least 6 interfaces) and do not easily
15098allow for future expansion to 64 bits if necessary.  Also, on some
15099systems, it would not be appropriate to demultiplex the access
15100width (8, 16, 32,or 64) before calling the OSL if the
15101corresponding native OS interfaces contain a similar access width
15102parameter.  For these reasons, the 18 address space interfaces
15103have been replaced by these 6 new ones:
15104
15105AcpiOsReadPciConfiguration
15106AcpiOsWritePciConfiguration
15107AcpiOsReadMemory
15108AcpiOsWriteMemory
15109AcpiOsReadPort
15110AcpiOsWritePort
15111
15112Added a new interface named AcpiOsGetRootPointer to allow the OSL
15113to perform the platform and/or OS-specific actions necessary to
15114obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
15115interface will simply call down to the CA core to perform the low-
15116memory search for the table.  On IA-64, the RSDP is obtained from
15117EFI.  Migrating this interface to the OSL allows the CA core to
15118
15119remain OS and platform independent.
15120
15121Added a new interface named AcpiOsSignal to provide a generic
15122"function code and pointer" interface for various miscellaneous
15123signals and notifications that must be made to the host OS.   The
15124first such signals are intended to support the ASL Fatal and
15125Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
15126interface has been obsoleted.
15127
15128The definition of the AcpiFormatException interface has been
15129changed to simplify its use.  The caller no longer must supply a
15130buffer to the call; A pointer to a const string is now returned
15131directly.  This allows the call to be easily used in printf
15132statements, etc. since the caller does not have to manage a local
15133buffer.
15134
15135
15136 ASL Compiler, Version X2025:
15137
15138The ACPI 2.0 Switch/Case/Default operators have been implemented
15139and are fully functional.  They will work with all ACPI 1.0
15140interpreters, since the operators are simply translated to If/Else
15141pairs.
15142
15143The ACPI 2.0 ElseIf operator is implemented and will also work
15144with 1.0 interpreters, for the same reason.
15145
15146Implemented support for ACPI 2.0 variable-length packages.  These
15147packages have a separate opcode, and their size is determined by
15148the interpreter at run-time.
15149
15150Documentation The ACPI CA Programmer Reference has been updated to
15151reflect the new interfaces and changes to existing interfaces.
15152
15153 ------------------------------------------
15154Summary of changes for this label: 06_15_01
15155
15156 ACPI CA Core Subsystem:
15157
15158Fixed a problem where a DWORD-accessed field within a Buffer
15159object would get its byte address inadvertently rounded down to
15160the nearest DWORD.  Buffers are always Byte-accessible.
15161
15162 ASL Compiler, version X2024:
15163
15164Fixed a problem where the Switch() operator would either fault or
15165hang the compiler.  Note however, that the AML code for this ACPI
151662.0 operator is not yet implemented.
15167
15168Compiler uses the new AcpiOsGetTimer interface to obtain compile
15169timings.
15170
15171Implementation of the CreateField operator automatically converts
15172a reference to a named field within a resource descriptor from a
15173byte offset to a bit offset if required.
15174
15175Added some missing named fields from the resource descriptor
15176support. These are the names that are automatically created by the
15177compiler to reference fields within a descriptor.  They are only
15178valid at compile time and are not passed through to the AML
15179interpreter.
15180
15181Resource descriptor named fields are now typed as Integers and
15182subject to compile-time typechecking when used in expressions.
15183
15184 ------------------------------------------
15185Summary of changes for this label: 05_18_01
15186
15187 ACPI CA Core Subsystem:
15188
15189Fixed a couple of problems in the Field support code where bits
15190from adjacent fields could be returned along with the proper field
15191bits. Restructured the field support code to improve performance,
15192readability and maintainability.
15193
15194New DEBUG_PRINTP macro automatically inserts the procedure name
15195into the output, saving hundreds of copies of procedure name
15196strings within the source, shrinking the memory footprint of the
15197debug version of the core subsystem.
15198
15199 Source Code Structure:
15200
15201The source code directory tree was restructured to reflect the
15202current organization of the component architecture.  Some files
15203and directories have been moved and/or renamed.
15204
15205 Linux:
15206
15207Fixed leaking kacpidpc processes.
15208
15209Fixed queueing event data even when /proc/acpi/event is not
15210opened.
15211
15212 ASL Compiler, version X2020:
15213
15214Memory allocation performance enhancement - over 24X compile time
15215improvement on large ASL files.  Parse nodes and namestring
15216buffers are now allocated from a large internal compiler buffer.
15217
15218The temporary .SRC file is deleted unless the "-s" option is
15219specified
15220
15221The "-d" debug output option now sends all output to the .DBG file
15222instead of the console.
15223
15224"External" second parameter is now optional
15225
15226"ElseIf" syntax now properly allows the predicate
15227
15228Last operand to "Load" now recognized as a Target operand
15229
15230Debug object can now be used anywhere as a normal object.
15231
15232ResourceTemplate now returns an object of type BUFFER
15233
15234EISAID now returns an object of type INTEGER
15235
15236"Index" now works with a STRING operand
15237
15238"LoadTable" now accepts optional parameters
15239
15240"ToString" length parameter is now optional
15241
15242"Interrupt (ResourceType," parse error fixed.
15243
15244"Register" with a user-defined region space parse error fixed
15245
15246Escaped backslash at the end of a string ("\\") scan/parse error
15247fixed
15248
15249"Revision" is now an object of type INTEGER.
15250
15251
15252
15253------------------------------------------
15254Summary of changes for this label: 05_02_01
15255
15256Linux:
15257
15258/proc/acpi/event now blocks properly.
15259
15260Removed /proc/sys/acpi. You can still dump your DSDT from
15261/proc/acpi/dsdt.
15262
15263 ACPI CA Core Subsystem:
15264
15265Fixed a problem introduced in the previous label where some of the
15266"small" resource descriptor types were not recognized.
15267
15268Improved error messages for the case where an ASL Field is outside
15269the range of the parent operation region.
15270
15271 ASL Compiler, version X2018:
15272
15273
15274Added error detection for ASL Fields that extend beyond the length
15275of the parent operation region (only if the length of the region
15276is known at compile time.)  This includes fields that have a
15277minimum access width that is smaller than the parent region, and
15278individual field units that are partially or entirely beyond the
15279extent of the parent.
15280
15281
15282
15283------------------------------------------
15284Summary of changes for this label: 04_27_01
15285
15286 ACPI CA Core Subsystem:
15287
15288Fixed a problem where the namespace mutex could be released at the
15289wrong time during execution of AcpiRemoveAddressSpaceHandler.
15290
15291Added optional thread ID output for debug traces, to simplify
15292debugging of multiple threads.  Added context switch notification
15293when the debug code realizes that a different thread is now
15294executing ACPI code.
15295
15296Some additional external data types have been prefixed with the
15297string "ACPI_" for consistency.  This may effect existing code.
15298The data types affected are the external callback typedefs - e.g.,
15299
15300WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
15301
15302 Linux:
15303
15304Fixed an issue with the OSL semaphore implementation where a
15305thread was waking up with an error from receiving a SIGCHLD
15306signal.
15307
15308Linux version of ACPI CA now uses the system C library for string
15309manipulation routines instead of a local implementation.
15310
15311Cleaned up comments and removed TBDs.
15312
15313 ASL Compiler, version X2017:
15314
15315Enhanced error detection and reporting for all file I/O
15316operations.
15317
15318 Documentation:
15319
15320Programmer Reference updated to version 1.06.
15321
15322
15323
15324------------------------------------------
15325Summary of changes for this label: 04_13_01
15326
15327 ACPI CA Core Subsystem:
15328
15329Restructured support for BufferFields and RegionFields.
15330BankFields support is now fully operational.  All known 32-bit
15331limitations on field sizes have been removed.  Both BufferFields
15332and (Operation) RegionFields are now supported by the same field
15333management code.
15334
15335Resource support now supports QWORD address and IO resources. The
1533616/32/64 bit address structures and the Extended IRQ structure
15337have been changed to properly handle Source Resource strings.
15338
15339A ThreadId of -1 is now used to indicate a "mutex not acquired"
15340condition internally and must never be returned by AcpiOsThreadId.
15341This reserved value was changed from 0 since Unix systems allow a
15342thread ID of 0.
15343
15344Linux:
15345
15346Driver code reorganized to enhance portability
15347
15348Added a kernel configuration option to control ACPI_DEBUG
15349
15350Fixed the EC driver to honor _GLK.
15351
15352ASL Compiler, version X2016:
15353
15354Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
15355address space was set to 0, not 0x7f as it should be.
15356
15357 ------------------------------------------
15358Summary of changes for this label: 03_13_01
15359
15360 ACPI CA Core Subsystem:
15361
15362During ACPI initialization, the _SB_._INI method is now run if
15363present.
15364
15365Notify handler fix - notifies are deferred until the parent method
15366completes execution.  This fixes the "mutex already acquired"
15367issue seen occasionally.
15368
15369Part of the "implicit conversion" rules in ACPI 2.0 have been
15370found to cause compatibility problems with existing ASL/AML.  The
15371convert "result-to-target-type" implementation has been removed
15372for stores to method Args and Locals.  Source operand conversion
15373is still fully implemented.  Possible changes to ACPI 2.0
15374specification pending.
15375
15376Fix to AcpiRsCalculatePciRoutingTableLength to return correct
15377length.
15378
15379Fix for compiler warnings for 64-bit compiles.
15380
15381 Linux:
15382
15383/proc output aligned for easier parsing.
15384
15385Release-version compile problem fixed.
15386
15387New kernel configuration options documented in Configure.help.
15388
15389IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
15390context" message.
15391
15392 OSPM:
15393
15394Power resource driver integrated with bus manager.
15395
15396Fixed kernel fault during active cooling for thermal zones.
15397
15398Source Code:
15399
15400The source code tree has been restructured.
15401
15402
15403
15404------------------------------------------
15405Summary of changes for this label: 03_02_01
15406
15407 Linux OS Services Layer (OSL):
15408
15409Major revision of all Linux-specific code.
15410
15411Modularized all ACPI-specific drivers.
15412
15413Added new thermal zone and power resource drivers.
15414
15415Revamped /proc interface (new functionality is under /proc/acpi).
15416
15417New kernel configuration options.
15418
15419 Linux known issues:
15420
15421New kernel configuration options not documented in Configure.help
15422yet.
15423
15424
15425Module dependencies not currently implemented. If used, they
15426should be loaded in this order: busmgr, power, ec, system,
15427processor, battery, ac_adapter, button, thermal.
15428
15429Modules will not load if CONFIG_MODVERSION is set.
15430
15431IBM 600E - entering S5 may reboot instead of shutting down.
15432
15433IBM 600E - Sleep button may generate "Invalid <NULL> context"
15434message.
15435
15436Some systems may fail with "execution mutex already acquired"
15437message.
15438
15439 ACPI CA Core Subsystem:
15440
15441Added a new OSL Interface, AcpiOsGetThreadId.  This was required
15442for the  deadlock detection code. Defined to return a non-zero, 32-
15443bit thread ID for the currently executing thread.  May be a non-
15444zero constant integer on single-thread systems.
15445
15446Implemented deadlock detection for internal subsystem mutexes.  We
15447may add conditional compilation for this code (debug only) later.
15448
15449ASL/AML Mutex object semantics are now fully supported.  This
15450includes multiple acquires/releases by owner and support for the
15451
15452Mutex SyncLevel parameter.
15453
15454A new "Force Release" mechanism automatically frees all ASL
15455Mutexes that have been acquired but not released when a thread
15456exits the interpreter.  This forces conformance to the ACPI spec
15457("All mutexes must be released when an invocation exits") and
15458prevents deadlocked ASL threads.  This mechanism can be expanded
15459(later) to monitor other resource acquisitions if OEM ASL code
15460continues to misbehave (which it will).
15461
15462Several new ACPI exception codes have been added for the Mutex
15463support.
15464
15465Recursive method calls are now allowed and supported (the ACPI
15466spec does in fact allow recursive method calls.)  The number of
15467recursive calls is subject to the restrictions imposed by the
15468SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
15469parameter.
15470
15471Implemented support for the SyncLevel parameter for control
15472methods (ACPI 2.0 feature)
15473
15474Fixed a deadlock problem when multiple threads attempted to use
15475the interpreter.
15476
15477Fixed a problem where the string length of a String package
15478element was not always set in a package returned from
15479AcpiEvaluateObject.
15480
15481Fixed a problem where the length of a String package element was
15482not always included in the length of the overall package returned
15483from AcpiEvaluateObject.
15484
15485Added external interfaces (Acpi*) to the ACPI debug memory
15486manager.  This manager keeps a list of all outstanding
15487allocations, and can therefore detect memory leaks and attempts to
15488free memory blocks more than once. Useful for code such as the
15489power manager, etc.  May not be appropriate for device drivers.
15490Performance with the debug code enabled is slow.
15491
15492The ACPI Global Lock is now an optional hardware element.
15493
15494 ASL Compiler Version X2015:
15495
15496Integrated changes to allow the compiler to be generated on
15497multiple platforms.
15498
15499Linux makefile added to generate the compiler on Linux
15500
15501 Source Code:
15502
15503All platform-specific headers have been moved to their own
15504subdirectory, Include/Platform.
15505
15506New source file added, Interpreter/ammutex.c
15507
15508New header file, Include/acstruct.h
15509
15510 Documentation:
15511
15512The programmer reference has been updated for the following new
15513interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
15514
15515 ------------------------------------------
15516Summary of changes for this label: 02_08_01
15517
15518Core ACPI CA Subsystem: Fixed a problem where an error was
15519incorrectly returned if the return resource buffer was larger than
15520the actual data (in the resource interfaces).
15521
15522References to named objects within packages are resolved to the
15523
15524full pathname string before packages are returned directly (via
15525the AcpiEvaluateObject interface) or indirectly via the resource
15526interfaces.
15527
15528Linux OS Services Layer (OSL):
15529
15530Improved /proc battery interface.
15531
15532
15533Added C-state debugging output and other miscellaneous fixes.
15534
15535ASL Compiler Version X2014:
15536
15537All defined method arguments can now be used as local variables,
15538including the ones that are not actually passed in as parameters.
15539The compiler tracks initialization of the arguments and issues an
15540exception if they are used without prior assignment (just like
15541locals).
15542
15543The -o option now specifies a filename prefix that is used for all
15544output files, including the AML output file.  Otherwise, the
15545default behavior is as follows:  1) the AML goes to the file
15546specified in the DSDT.  2) all other output files use the input
15547source filename as the base.
15548
15549 ------------------------------------------
15550Summary of changes for this label: 01_25_01
15551
15552Core ACPI CA Subsystem: Restructured the implementation of object
15553store support within the  interpreter.  This includes support for
15554the Store operator as well  as any ASL operators that include a
15555target operand.
15556
15557Partially implemented support for Implicit Result-to-Target
15558conversion. This is when a result object is converted on the fly
15559to the type of  an existing target object.  Completion of this
15560support is pending  further analysis of the ACPI specification
15561concerning this matter.
15562
15563CPU-specific code has been removed from the subsystem (hardware
15564directory).
15565
15566New Power Management Timer functions added
15567
15568Linux OS Services Layer (OSL): Moved system state transition code
15569to the core, fixed it, and modified  Linux OSL accordingly.
15570
15571Fixed C2 and C3 latency calculations.
15572
15573
15574We no longer use the compilation date for the version message on
15575initialization, but retrieve the version from AcpiGetSystemInfo().
15576
15577Incorporated for fix Sony VAIO machines.
15578
15579Documentation:  The Programmer Reference has been updated and
15580reformatted.
15581
15582
15583ASL Compiler:  Version X2013: Fixed a problem where the line
15584numbering and error reporting could get out  of sync in the
15585presence of multiple include files.
15586
15587 ------------------------------------------
15588Summary of changes for this label: 01_15_01
15589
15590Core ACPI CA Subsystem:
15591
15592Implemented support for type conversions in the execution of the
15593ASL  Concatenate operator (The second operand is converted to
15594match the type  of the first operand before concatenation.)
15595
15596Support for implicit source operand conversion is partially
15597implemented.   The ASL source operand types Integer, Buffer, and
15598String are freely  interchangeable for most ASL operators and are
15599converted by the interpreter  on the fly as required.  Implicit
15600Target operand conversion (where the  result is converted to the
15601target type before storing) is not yet implemented.
15602
15603Support for 32-bit and 64-bit BCD integers is implemented.
15604
15605Problem fixed where a field read on an aligned field could cause a
15606read  past the end of the field.
15607
15608New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
15609does not return a value, but the caller expects one.  (The ASL
15610compiler flags this as a warning.)
15611
15612ASL Compiler:
15613
15614Version X2011:
156151. Static typechecking of all operands is implemented. This
15616prevents the use of invalid objects (such as using a Package where
15617an Integer is required) at compile time instead of at interpreter
15618run-time.
156192. The ASL source line is printed with ALL errors and warnings.
156203. Bug fix for source EOF without final linefeed.
156214. Debug option is split into a parse trace and a namespace trace.
156225. Namespace output option (-n) includes initial values for
15623integers and strings.
156246. Parse-only option added for quick syntax checking.
156257. Compiler checks for duplicate ACPI name declarations
15626
15627Version X2012:
156281. Relaxed typechecking to allow interchangeability between
15629strings, integers, and buffers.  These types are now converted by
15630the interpreter at runtime.
156312. Compiler reports time taken by each internal subsystem in the
15632debug         output file.
15633
15634
15635 ------------------------------------------
15636Summary of changes for this label: 12_14_00
15637
15638ASL Compiler:
15639
15640This is the first official release of the compiler. Since the
15641compiler requires elements of the Core Subsystem, this label
15642synchronizes everything.
15643
15644------------------------------------------
15645Summary of changes for this label: 12_08_00
15646
15647
15648Fixed a problem where named references within the ASL definition
15649of both OperationRegions and CreateXXXFields did not work
15650properly.  The symptom was an AE_AML_OPERAND_TYPE during
15651initialization of the region/field. This is similar (but not
15652related internally) to the problem that was fixed in the last
15653label.
15654
15655Implemented both 32-bit and 64-bit support for the BCD ASL
15656functions ToBCD and FromBCD.
15657
15658Updated all legal headers to include "2000" in the copyright
15659years.
15660
15661 ------------------------------------------
15662Summary of changes for this label: 12_01_00
15663
15664Fixed a problem where method invocations within the ASL definition
15665of both OperationRegions and CreateXXXFields did not work
15666properly.  The symptom was an AE_AML_OPERAND_TYPE during
15667initialization of the region/field:
15668
15669  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
15670[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
15671(0x3005)
15672
15673Fixed a problem where operators with more than one nested
15674subexpression would fail.  The symptoms were varied, by mostly
15675AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
15676problem that has gone unnoticed until now.
15677
15678  Subtract (Add (1,2), Multiply (3,4))
15679
15680Fixed a problem where AcpiGetHandle didn't quite get fixed in the
15681previous build (The prefix part of a relative path was handled
15682incorrectly).
15683
15684Fixed a problem where Operation Region initialization failed if
15685the operation region name was a "namepath" instead of a simple
15686"nameseg". Symptom was an AE_NO_OPERAND error.
15687
15688Fixed a problem where an assignment to a local variable via the
15689indirect RefOf mechanism only worked for the first such
15690assignment.  Subsequent assignments were ignored.
15691
15692 ------------------------------------------
15693Summary of changes for this label: 11_15_00
15694
15695ACPI 2.0 table support with backwards support for ACPI 1.0 and the
156960.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
15697the AML  interpreter does NOT have support for the new 2.0 ASL
15698grammar terms at this time.
15699
15700All ACPI hardware access is via the GAS structures in the ACPI 2.0
15701FADT.
15702
15703All physical memory addresses across all platforms are now 64 bits
15704wide. Logical address width remains dependent on the platform
15705(i.e., "void *").
15706
15707AcpiOsMapMemory interface changed to a 64-bit physical address.
15708
15709The AML interpreter integer size is now 64 bits, as per the ACPI
157102.0 specification.
15711
15712For backwards compatibility with ACPI 1.0, ACPI tables with a
15713revision number less than 2 use 32-bit integers only.
15714
15715Fixed a problem where the evaluation of OpRegion operands did not
15716always resolve them to numbers properly.
15717
15718------------------------------------------
15719Summary of changes for this label: 10_20_00
15720
15721Fix for CBN_._STA issue.  This fix will allow correct access to
15722CBN_ OpRegions when the _STA returns 0x8.
15723
15724Support to convert ACPI constants (Ones, Zeros, One) to actual
15725values before a package object is returned
15726
15727Fix for method call as predicate to if/while construct causing
15728incorrect if/while behavior
15729
15730Fix for Else block package lengths sometimes calculated wrong (if
15731block > 63 bytes)
15732
15733Fix for Processor object length field, was always zero
15734
15735Table load abort if FACP sanity check fails
15736
15737Fix for problem with Scope(name) if name already exists
15738
15739Warning emitted if a named object referenced cannot be found
15740(resolved) during method execution.
15741
15742
15743
15744
15745
15746------------------------------------------
15747Summary of changes for this label: 9_29_00
15748
15749New table initialization interfaces: AcpiInitializeSubsystem no
15750longer has any parameters AcpiFindRootPointer - Find the RSDP (if
15751necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
15752>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
15753AcpiLoadTables
15754
15755Note: These interface changes require changes to all existing OSDs
15756
15757The PCI_Config default address space handler is always installed
15758at the root namespace object.
15759
15760-------------------------------------------
15761Summary of changes for this label: 09_15_00
15762
15763The new initialization architecture is implemented.  New
15764interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
15765AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
15766
15767(Namespace is automatically loaded when a table is loaded)
15768
15769The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1577052 bytes to 32 bytes.  There is usually one of these for every
15771namespace object, so the memory savings is significant.
15772
15773Implemented just-in-time evaluation of the CreateField operators.
15774
15775Bug fixes for IA-64 support have been integrated.
15776
15777Additional code review comments have been implemented
15778
15779The so-called "third pass parse" has been replaced by a final walk
15780through the namespace to initialize all operation regions (address
15781spaces) and fields that have not yet been initialized during the
15782execution of the various _INI and REG methods.
15783
15784New file - namespace/nsinit.c
15785
15786-------------------------------------------
15787Summary of changes for this label: 09_01_00
15788
15789Namespace manager data structures have been reworked to change the
15790primary  object from a table to a single object.  This has
15791resulted in dynamic memory  savings of 3X within the namespace and
157922X overall in the ACPI CA subsystem.
15793
15794Fixed problem where the call to AcpiEvFindPciRootBuses was
15795inadvertently left  commented out.
15796
15797Reduced the warning count when generating the source with the GCC
15798compiler.
15799
15800Revision numbers added to each module header showing the
15801SourceSafe version of the file.  Please refer to this version
15802number when giving us feedback or comments on individual modules.
15803
15804The main object types within the subsystem have been renamed to
15805clarify their  purpose:
15806
15807ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
15808ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
15809ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
15810
15811NOTE: no changes to the initialization sequence are included in
15812this label.
15813
15814-------------------------------------------
15815Summary of changes for this label: 08_23_00
15816
15817Fixed problem where TerminateControlMethod was being called
15818multiple times per  method
15819
15820Fixed debugger problem where single stepping caused a semaphore to
15821be  oversignalled
15822
15823Improved performance through additional parse object caching -
15824added  ACPI_EXTENDED_OP type
15825
15826-------------------------------------------
15827Summary of changes for this label: 08_10_00
15828
15829Parser/Interpreter integration:  Eliminated the creation of
15830complete parse trees  for ACPI tables and control methods.
15831Instead, parse subtrees are created and  then deleted as soon as
15832they are processed (Either entered into the namespace or  executed
15833by the interpreter).  This reduces the use of dynamic kernel
15834memory  significantly. (about 10X)
15835
15836Exception codes broken into classes and renumbered.  Be sure to
15837recompile all  code that includes acexcep.h.  Hopefully we won't
15838have to renumber the codes  again now that they are split into
15839classes (environment, programmer, AML code,  ACPI table, and
15840internal).
15841
15842Fixed some additional alignment issues in the Resource Manager
15843subcomponent
15844
15845Implemented semaphore tracking in the AcpiExec utility, and fixed
15846several places  where mutexes/semaphores were being unlocked
15847without a corresponding lock  operation.  There are no known
15848semaphore or mutex "leaks" at this time.
15849
15850Fixed the case where an ASL Return operator is used to return an
15851unnamed  package.
15852
15853-------------------------------------------
15854Summary of changes for this label: 07_28_00
15855
15856Fixed a problem with the way addresses were calculated in
15857AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
15858manifested itself when a Field was  created with WordAccess or
15859DwordAccess, but the field unit defined within the  Field was less
15860
15861than a Word or Dword.
15862
15863Fixed a problem in AmlDumpOperands() module's loop to pull
15864operands off of the  operand stack to display information. The
15865problem manifested itself as a TLB  error on 64-bit systems when
15866accessing an operand stack with two or more  operands.
15867
15868Fixed a problem with the PCI configuration space handlers where
15869context was  getting confused between accesses. This required a
15870change to the generic address  space handler and address space
15871setup definitions. Handlers now get both a  global handler context
15872(this is the one passed in by the user when executing
15873AcpiInstallAddressSpaceHandler() and a specific region context
15874that is unique to  each region (For example, the _ADR, _SEG and
15875_BBN values associated with a  specific region). The generic
15876function definitions have changed to the  following:
15877
15878typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
15879UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
15880*HandlerContext, // This used to be void *Context void
15881*RegionContext); // This is an additional parameter
15882
15883typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
15884RegionHandle, UINT32 Function, void *HandlerContext,  void
15885**RegionContext); // This used to be **ReturnContext
15886
15887-------------------------------------------
15888Summary of changes for this label: 07_21_00
15889
15890Major file consolidation and rename.  All files within the
15891interpreter have been  renamed as well as most header files.  This
15892was done to prevent collisions with  existing files in the host
15893OSs -- filenames such as "config.h" and "global.h"  seem to be
15894quite common.  The VC project files have been updated.  All
15895makefiles  will require modification.
15896
15897The parser/interpreter integration continues in Phase 5 with the
15898implementation  of a complete 2-pass parse (the AML is parsed
15899twice) for each table;  This  avoids the construction of a huge
15900parse tree and therefore reduces the amount of  dynamic memory
15901required by the subsystem.  Greater use of the parse object cache
15902means that performance is unaffected.
15903
15904Many comments from the two code reviews have been rolled in.
15905
15906The 64-bit alignment support is complete.
15907
15908-------------------------------------------
15909Summary of changes for this label: 06_30_00
15910
15911With a nod and a tip of the hat to the technology of yesteryear,
15912we've added  support in the source code for 80 column output
15913devices.  The code is now mostly  constrained to 80 columns or
15914less to support environments and editors that 1)  cannot display
15915or print more than 80 characters on a single line, and 2) cannot
15916disable line wrapping.
15917
15918A major restructuring of the namespace data structure has been
15919completed.  The  result is 1) cleaner and more
15920understandable/maintainable code, and 2) a  significant reduction
15921in the dynamic memory requirement for each named ACPI  object
15922(almost half).
15923
15924-------------------------------------------
15925Summary of changes for this label: 06_23_00
15926
15927Linux support has been added.  In order to obtain approval to get
15928the ACPI CA  subsystem into the Linux kernel, we've had to make
15929quite a few changes to the  base subsystem that will affect all
15930users (all the changes are generic and OS- independent).  The
15931effects of these global changes have been somewhat far  reaching.
15932Files have been merged and/or renamed and interfaces have been
15933renamed.   The major changes are described below.
15934
15935Osd* interfaces renamed to AcpiOs* to eliminate namespace
15936pollution/confusion  within our target kernels.  All OSD
15937interfaces must be modified to match the new  naming convention.
15938
15939Files merged across the subsystem.  A number of the smaller source
15940and header  files have been merged to reduce the file count and
15941increase the density of the  existing files.  There are too many
15942to list here.  In general, makefiles that  call out individual
15943files will require rebuilding.
15944
15945Interpreter files renamed.  All interpreter files now have the
15946prefix am*  instead of ie* and is*.
15947
15948Header files renamed:  The acapi.h file is now acpixf.h.  The
15949acpiosd.h file is  now acpiosxf.h.  We are removing references to
15950the acronym "API" since it is  somewhat windowsy. The new name is
15951"external interface" or xface or xf in the  filenames.j
15952
15953
15954All manifest constants have been forced to upper case (some were
15955mixed case.)   Also, the string "ACPI_" has been prepended to many
15956(not all) of the constants,  typedefs, and structs.
15957
15958The globals "DebugLevel" and "DebugLayer" have been renamed
15959"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
15960
15961All other globals within the subsystem are now prefixed with
15962"AcpiGbl_" Internal procedures within the subsystem are now
15963prefixed with "Acpi" (with only  a few exceptions).  The original
15964two-letter abbreviation for the subcomponent  remains after "Acpi"
15965- for example, CmCallocate became AcpiCmCallocate.
15966
15967Added a source code translation/conversion utility.  Used to
15968generate the Linux  source code, it can be modified to generate
15969other types of source as well. Can  also be used to cleanup
15970existing source by removing extraneous spaces and blank  lines.
15971Found in tools/acpisrc/*
15972
15973OsdUnMapMemory was renamed to OsdUnmapMemory and then
15974AcpiOsUnmapMemory.  (UnMap  became Unmap).
15975
15976A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
15977When set to  one, this indicates that the caller wants to use the
15978
15979semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
15980both types.  However, implementers of this  call may want to use
15981different OS primitives depending on the type of semaphore
15982requested.  For example, some operating systems provide separate
15983
15984"mutex" and  "semaphore" interfaces - where the mutex interface is
15985much faster because it  doesn't have all the overhead of a full
15986semaphore implementation.
15987
15988Fixed a deadlock problem where a method that accesses the PCI
15989address space can  block forever if it is the first access to the
15990space.
15991
15992-------------------------------------------
15993Summary of changes for this label: 06_02_00
15994
15995Support for environments that cannot handle unaligned data
15996accesses (e.g.  firmware and OS environments devoid of alignment
15997handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
15998been added (via configurable macros) in  these three areas: -
15999Transfer of data from the raw AML byte stream is done via byte
16000moves instead of    word/dword/qword moves. - External objects are
16001aligned within the user buffer, including package   elements (sub-
16002objects). - Conversion of name strings to UINT32 Acpi Names is now
16003done byte-wise.
16004
16005The Store operator was modified to mimic Microsoft's
16006implementation when storing  to a Buffer Field.
16007
16008Added a check of the BM_STS bit before entering C3.
16009
16010The methods subdirectory has been obsoleted and removed.  A new
16011file, cmeval.c  subsumes the functionality.
16012
16013A 16-bit (DOS) version of AcpiExec has been developed.  The
16014makefile is under  the acpiexec directory.
16015