xref: /dragonfly/sys/contrib/dev/acpica/changes.txt (revision bf92d57b)
1----------------------------------------
208 January 2019. Summary of changes for version 20190108:
3
4This release is available at https://acpica.org/downloads
5
6
71) ACPICA kernel-resident subsystem:
8
9Updated all copyrights to 2019. This affects all source code modules.
10
11
122) iASL Compiler/Disassembler and Tools:
13
14ASL test suite (ASLTS): Updated all copyrights to 2019.
15
16Tools: Updated all signon copyrights to 2019.
17
18AcpiExec: Added a new option to dump extra information concerning any
19memory leaks detected by the internal object/cache tracking mechanism. -
20va
21
22iASL: Updated the table template for the TPM2 table to the newest version
23of the table (Revision 4)
24
25
26----------------------------------------
2713 December 2018. Summary of changes for version 20181213:
28
29
301) ACPICA Kernel-resident Subsystem:
31
32Fixed some buffer length issues with the GenericSerialBus, related to two
33of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,
34which are rarely seen in the field. For these, the LEN field of the ASL
35buffer is now ignored. Hans de Goede
36
37Implemented a new object evaluation trace mechanism for control methods
38and data objects. This includes nested control methods. It is
39particularly useful for examining the ACPI execution during system
40initialization since the output is relatively terse. The flag below
41enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:
42   #define ACPI_LV_EVALUATION          0x00080000
43
44Examples:
45   Enter evaluation       :  _SB.PCI0._INI (Method)
46   Exit evaluation        :  _SB.PCI0._INI
47   Enter evaluation       :  _OSI (Method)
48   Exit evaluation        :  _OSI
49   Enter evaluation       :  _SB.PCI0.TEST (Method)
50   Nested method call     :     _SB.PCI0.NST1
51   Exit nested method     :     _SB.PCI0.NST1
52   Exit evaluation        :  _SB.PCI0.TEST
53
54Added two recently-defined _OSI strings. See
55https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-
56osi.
57   "Windows 2018"
58   "Windows 2018.2"
59
60Update for buffer-to-string conversions via the ToHexString ASL operator.
61A "0x" is now prepended to each of the hex values in the output string.
62This provides compatibility with other ACPI implementations. The ACPI
63specification is somewhat vague on this issue.
64   Example output string after conversion:
65"0x01,0x02,0x03,0x04,0x05,0x06"
66
67Return a run-time error for TermArg expressions within individual package
68elements. Although this is technically supported by the ASL grammar,
69other ACPI implementations do not support this either. Also, this fixes a
70fault if this type of construct is ever encountered (it never has been).
71
72
732) iASL Compiler/Disassembler and Tools:
74
75iASL: Implemented a new compile option (-ww) that will promote individual
76warnings and remarks to errors. This is intended to enhance the firmware
77build process.
78
79AcpiExec: Implemented a new command-line option (-eo) to support the new
80object evaluation trace mechanism described above.
81
82Disassembler: Added support to disassemble OEMx tables as AML/ASL tables
83instead of a "unknown table" message.
84
85AcpiHelp: Improved support for the "special" predefined names such as
86_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be
87used for "xx" and "x".
88
89----------------------------------------
9031 October 2018. Summary of changes for version 20181031:
91
92
93An Operation Region regression was fixed by properly adding address
94ranges to a global list during initialization. This allows OS to
95accurately check for overlapping regions between native devices (such as
96PCI) and Operation regions as well as checking for region conflicts
97between two Operation Regions.
98
99Added support for the 2-byte extended opcodes in the code/feature that
100attempts to continue parsing during the table load phase. Skip parsing
101Device declarations (and other extended opcodes) when an error occurs
102during parsing. Previously, only single-byte opcodes were supported.
103
104Cleanup: Simplified the module-level code support by eliminating a
105useless global variable (AcpiGbl_GroupModuleLeveCode).
106
107
1082) iASL Compiler/Disassembler and Tools:
109
110iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE
111could cause a fault in the preprocessor. This was an inadvertent side-
112effect from moving more allocations/frees to the local cache/memory
113mechanism.
114
115iASL: Enhanced error detection by validating that all NameSeg elements
116within a NamePatch actually exist. The previous behavior was spotty at
117best, and such errors could be improperly ignored at compiler time (never
118at runtime, however. There are two new error messages, as shown in the
119examples below:
120
121dsdt.asl     33:     CreateByteField (TTTT.BXXX, 1, CBF1)
122Error    6161 -                              ^ One or more objects within
123the Pathname do not exist (TTTT.BXXX)
124
125dsdt.asl     34:     CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)
126Error    6160 -        One or more prefix Scopes do not exist ^
127(BBBB.CBF1)
128
129iASL: Disassembler/table-compiler: Added support for the static data
130table TPM2 revision 3 (an older version of TPM2). The support has been
131added for the compiler and the disassembler.
132
133Fixed compilation of DOS format data table file on Unix/Linux systems.
134iASL now properly detects line continuations (\) for DOS format data
135table definition language files on when executing on Unix/Linux.
136
137----------------------------------------
13803 October 2018. Summary of changes for version 20181003:
139
140
1412) iASL Compiler/Disassembler and Tools:
142
143Fixed a regression introduced in version 20180927 that could cause the
144compiler to fault, especially with NamePaths containing one or more
145carats (^). Such as: ^^_SB_PCI0
146
147Added a new remark for the Sleep() operator when the sleep time operand
148is larger than one second. This is a very long time for the ASL/BIOS code
149and may not be what was intended by the ASL writer.
150
151----------------------------------------
15227 September 2018. Summary of changes for version 20180927:
153
154
1551) ACPICA kernel-resident subsystem:
156
157Updated the GPE support to clear the status of all ACPI events when
158entering any/all sleep states in order to avoid premature wakeups. In
159theory, this may cause some wakeup events to be missed, but the
160likelihood of this is small. This change restores the original behavior
161of the ACPICA code in order to fix a regression seen from the previous
162"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.
163This regression could cause some systems to incorrectly wake immediately.
164
165Updated the execution of the _REG methods during initialization and
166namespace loading to bring the behavior into closer conformance to the
167ACPI specification and other ACPI implementations:
168
169From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):
170    "Control methods must assume all operation regions are inaccessible
171until the _REG(RegionSpace, 1) method is executed"
172
173    "The exceptions to this rule are:
1741.  OSPM must guarantee that the following operation regions are always
175accessible:
176    SystemIO operation regions.
177    SystemMemory operation regions when accessing memory returned by the
178System Address Map reporting interfaces."
179
180Since the state of both the SystemIO and SystemMemory address spaces are
181defined by the specification to never change, this ACPICA change ensures
182that now _REG is never called on them. This solves some problems seen in
183the field and provides compatibility with other ACPI implementations. An
184update to the upcoming new version of the ACPI specification will help
185clarify this behavior.
186
187Updated the implementation of support for the Generic Serial Bus. For the
188"bidirectional" protocols, the internal implementation now automatically
189creates a return data buffer of the maximum size (255). This handles the
190worst-case for data that is returned from the serial bus handler, and
191fixes some problems seen in the field. This new buffer is directly
192returned to the ASL. As such, there is no true "bidirectional" buffer,
193which matches the ACPI specification. This is the reason for the "double
194store" seen in the example ASL code in the specification, shown below:
195
196Word Process Call (AttribProcessCall):
197    OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)
198    Field(TOP1, BufferAcc, NoLock, Preserve)
199    {
200        FLD1, 8, // Virtual register at command value 1.
201    }
202
203    Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer
204                             // as BUFF
205    CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)
206
207    Store(0x5416, DATA)               // Save 0x5416 into the data buffer
208    Store(Store(BUFF, FLD1), BUFF)    // Invoke a write/read Process Call
209transaction
210                           // This is the "double store". The write to
211                           // FLD1 returns a new buffer, which is stored
212                           // back into BUFF with the second Store.
213
214
2152) iASL Compiler/Disassembler and Tools:
216
217iASL: Implemented detection of extraneous/redundant uses of the Offset()
218operator within a Field Unit list. A remark is now issued for these. For
219example, the first two of the Offset() operators below are extraneous.
220Because both the compiler and the interpreter track the offsets
221automatically, these Offsets simply refer to the current offset and are
222unnecessary. Note, when optimization is enabled, the iASL compiler will
223in fact remove the redundant Offset operators and will not emit any AML
224code for them.
225
226    OperationRegion (OPR1, SystemMemory, 0x100, 0x100)
227    Field (OPR1)
228    {
229        Offset (0),     // Never needed
230        FLD1, 32,
231        Offset (4),     // Redundant, offset is already 4 (bytes)
232        FLD2, 8,
233        Offset (64),    // OK use of Offset.
234        FLD3, 16,
235    }
236dsdt.asl     14:         Offset (0),
237Remark   2158 -                 ^ Unnecessary/redundant use of Offset
238operator
239
240dsdt.asl     16:         Offset (4),
241Remark   2158 -                 ^ Unnecessary/redundant use of Offset
242operator
243
244----------------------------------------
24510 August 2018. Summary of changes for version 20180810:
246
247
2481) ACPICA kernel-resident subsystem:
249
250Initial ACPI table loading: Attempt to continue loading ACPI tables
251regardless of malformed AML. Since migrating table initialization to the
252new module-level code support, the AML interpreter rejected tables upon
253any ACPI error encountered during table load. This is a problem because
254non-serious ACPI errors during table load do not necessarily mean that
255the entire definition block (DSDT or SSDT) is invalid. This change
256improves the table loading by ignoring some types of errors that can be
257generated by incorrect AML. This can range from object type errors, scope
258errors, and index errors.
259
260Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs
261during suspend/resume. The status of ACPI events is no longer cleared
262when entering the ACPI S5 system state (power off) which caused some
263systems to power up immediately after turning off power in certain
264situations. This was a functional regression. It was fixed by clearing
265the status of all ACPI events again when entering S5 (for system-wide
266suspend or hibernation the clearing of the status of all events is not
267desirable, as it might cause the kernel to miss wakeup events sometimes).
268Rafael Wysocki.
269
270
2712) iASL Compiler/Disassembler and Tools:
272
273AcpiExec: Enhanced the -fi option (Namespace initialization file). Field
274elements listed in the initialization file were previously initialized
275after the table load and before executing module-level code blocks.
276Recent changes in the module-level code support means that the table load
277becomes a large control method execution. If fields are used within
278module-level code and we are executing with the -fi option, the
279initialization values were used to initialize the namespace object(s)
280only after the table was finished loading. This change Provides an early
281initialization of objects specified in the initialization file so that
282field unit values are populated during the table load (not after the
283load).
284
285AcpiExec: Fixed a small memory leak regression that could result in
286warnings during exit of the utility. These warnings were similar to
287these:
288    0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]
289    0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001
290
291----------------------------------------
29229 June 2018. Summary of changes for version 20180629:
293
294
2951) iASL Compiler/Disassembler and Tools:
296
297iASL: Fixed a regression related to the use of the ASL External
298statement. Error checking for the use of the External() statement has
299been relaxed. Previously, a restriction on the use of External meant that
300the referenced named object was required to be defined in a different
301table (an SSDT). Thus it would be an error to declare an object as an
302external and then define the same named object in the same table. For
303example:
304    DefinitionBlock (...)
305    {
306        External (DEV1)
307        Device (DEV1){...} // This was an error
308    }
309However, this behavior has caused regressions in some existing ASL code,
310because there is code that depends on named objects and externals (with
311the same name) being declared in the same table. This change will allow
312the ASL code above to compile without errors or warnings.
313
314iASL: Implemented ASL language extensions for four operators to make some
315of their arguments optional instead of required:
316    1) Field (RegionName, AccessType, LockRule, UpdateRule)
317    2) BankField (RegionName, BankName, BankValue,
318                AccessType, LockRule, UpdateRule)
319    3) IndexField (IndexName, DataName,
320                AccessType, LockRule, UpdateRule)
321For the Field operators above, the AccessType, LockRule, and UpdateRule
322are now optional arguments. The default values are:
323        AccessType: AnyAcc
324        LockRule:   NoLock
325        UpdateRule: Preserve
326    4) Mutex (MutexName, SyncLevel)
327For this operator, the SyncLevel argument is now optional. This argument
328is rarely used in any meaningful way by ASL code, and thus it makes sense
329to make it optional. The default value is:
330        SyncLevel:  0
331
332iASL: Attempted use of the ASL Unload() operator now results in the
333following warning:
334    "Unload is not supported by all operating systems"
335This is in fact very true, and the Unload operator may be completely
336deprecated in the near future.
337
338AcpiExec: Fixed a regression for the -fi option (Namespace initialization
339file. Recent changes in the ACPICA module-level code support altered the
340table load/initialization sequence . This means that the table load has
341become a large method execution of the table itself. If Operation Region
342Fields are used within any module-level code and the -fi option was
343specified, the initialization values were populated only after the table
344had completely finished loading (and thus the module-level code had
345already been executed). This change moves the initialization of objects
346listed in the initialization file to before the table is executed as a
347method. Field unit values are now initialized before the table execution
348is performed.
349
350----------------------------------------
35131 May 2018. Summary of changes for version 20180531:
352
353
3541) ACPICA kernel-resident Subsystem:
355
356Implemented additional support to help ensure that a DSDT or SSDT is
357fully loaded even if errors are incurred during the load. The majority of
358the problems that are seen is the failure of individual AML operators
359that occur during execution of any module-level code (MLC) existing in
360the table. This support adds a mechanism to abort the current ASL
361statement (AML opcode), emit an error message, and to simply move on to
362the next opcode -- instead of aborting the entire table load. This is
363different than the execution of a control method where the entire method
364is aborted upon any error. The goal is to perform a very "best effort" to
365load the ACPI tables. The most common MLC errors that have been seen in
366the field are direct references to unresolved ASL/AML symbols (referenced
367directly without the use of the CondRefOf operator to validate the
368symbol). This new ACPICA behavior is now compatible with other ACPI
369implementations.
370
371Interpreter: The Unload AML operator is no longer supported for the
372reasons below. An AE_NOT_IMPLEMENTED exception is returned.
3731) A correct implementation on at least some hosts may not be possible.
3742) Other ACPI implementations do not correctly/fully support it.
3753) It requires host device driver support which is not known to exist.
376    (To properly support namespace unload out from underneath.)
3774) This AML operator has never been seen in the field.
378
379Parser: Added a debug option to dump AML parse sub-trees as they are
380being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is
381ACPI_DB_PARSE_TREES.
382
383Debugger: Reduced the verbosity for errors incurred during table load and
384module-level code execution.
385
386Completed an investigation into adding a namespace node "owner list"
387instead of the current "owner ID" associated with namespace nodes. This
388list would link together all nodes that are owned by an individual
389control method. The purpose would be to enhance control method execution
390by speeding up cleanup during method exit (all namespace nodes created by
391a method are deleted upon method termination.) Currently, the entire
392namespace must be searched for matching owner IDs if (and only if) the
393method creates named objects outside of the local scope. However, by far
394the most common case is that methods create objects locally, not outside
395the method scope. There is already an ACPICA optimization in place that
396only searches the entire namespace in the rare case of a method creating
397objects elsewhere in the namespace. Therefore, it is felt that the
398overhead of adding an additional pointer to each namespace node to
399implement the owner list makes this feature unnecessary.
400
401
4022) iASL Compiler/Disassembler and Tools:
403
404iASL, Disassembler, and Template generator: Implemented support for
405Revision D of the IORT table. Adds a new subtable that is used to specify
406SMMUv3 PMCGs. rmurphy-arm.
407
408Disassembler: Restored correct table header validation for the "special"
409ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI
410table header and must be special-cased. This was a regression that has
411been present for apparently a long time.
412
413AcpiExec: Reduced verbosity of the local exception handler implemented
414within acpiexec. This handler is invoked by ACPICA upon any exceptions
415generated during control method execution. A new option was added: -vh
416restores the original verbosity level if desired.
417
418AcpiExec: Changed the default base from decimal to hex for the -x option
419(set debug level). This simplifies the use of this option and matches the
420behavior of the corresponding iASL -x option.
421
422AcpiExec: Restored a force-exit on multiple control-c (sigint)
423interrupts. This allows program termination even if other issues cause
424the control-c to fail.
425
426ASL test suite (ASLTS): Added tests for the recently implemented package
427element resolution mechanism that allows forward references to named
428objects from individual package elements (this mechanism provides
429compatibility with other ACPI implementations.)
430
431
432----------------------------------------
4338 May 2018. Summary of changes for version 20180508:
434
435
4361) ACPICA kernel-resident subsystem:
437
438Completed the new (recently deployed) package resolution mechanism for
439the Load and LoadTable ASL/AML operators. This fixes a regression that
440was introduced in version 20180209 that could result in an
441AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table
442(SSDT) that contains package objects.
443
444
4452) iASL Compiler/Disassembler and Tools:
446
447AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than
4481 MB. This change allows for table offsets within the acpidump file to be
449up to 8 characters. These changes are backwards compatible with existing
450acpidump files.
451
452
453----------------------------------------
45427 April 2018. Summary of changes for version 20180427:
455
456
4571) ACPICA kernel-resident subsystem:
458
459Debugger: Added support for Package objects in the "Test Objects"
460command. This command walks the entire namespace and evaluates all named
461data objects (Integers, Strings, Buffers, and now Packages).
462
463Improved error messages for the namespace root node. Originally, the root
464was referred to by the confusing string "\___". This has been replaced by
465"Namespace Root" for clarification.
466
467Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin
468Ian King <colin.king@canonical.com>.
469
470
4712) iASL Compiler/Disassembler and Tools:
472
473iASL: Implemented support to detect and flag illegal forward references.
474For compatibility with other ACPI implementations, these references are
475now illegal at the root level of the DSDT or SSDTs. Forward references
476have always been illegal within control methods. This change should not
477affect existing ASL/AML code because of the fact that these references
478have always been illegal in the other ACPI implementation.
479
480iASL: Added error messages for the case where a table OEM ID and OEM
481TABLE ID strings are longer than the ACPI-defined length. Previously,
482these strings were simply silently truncated.
483
484iASL: Enhanced the -tc option (which creates an AML hex file in C,
485suitable for import into a firmware project):
486  1) Create a unique name for the table, to simplify use of multiple
487SSDTs.
488  2) Add a protection #ifdef in the file, similar to a .h header file.
489With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd,
490evan.lloyd@arm.com
491
492AcpiExec: Added a new option, -df, to disable the local fault handler.
493This is useful during debugging, where it may be desired to drop into a
494debugger on a fault.
495
496----------------------------------------
49713 March 2018. Summary of changes for version 20180313:
498
499
5001) ACPICA kernel-resident subsystem:
501
502Implemented various improvements to the GPE support:
503
5041) Dispatch all active GPEs at initialization time so that no GPEs are
505lost.
5062) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled
507before devices are enumerated.
5083) Don't unconditionally clear ACPI IRQs during suspend/resume, so that
509IRQs are not lost.
5104) Add parallel GPE handling to eliminate the possibility of dispatching
511the same GPE twice.
5125) Dispatch any pending GPEs after enabling for the first time.
513
514AcpiGetObjectInfo - removed support for the _STA method. This was causing
515problems on some platforms.
516
517Added a new _OSI string, "Windows 2017.2".
518
519Cleaned up and simplified the module-level code support. These changes
520are in preparation for the eventual removal of the legacy MLC support
521(deferred execution), replaced by the new MLC architecture which executes
522the MLC as a table is loaded (DSDT/SSDTs).
523
524Changed a compile-time option to a runtime option. Changes the option to
525ignore ACPI table load-time package resolution errors into a runtime
526option. Used only for platforms that generate many AE_NOT_FOUND errors
527during boot. AcpiGbl_IgnorePackageResolutionErrors.
528
529Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some
530ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid
531compilation errors from unused variables (seen with some compilers).
532
533
5342) iASL Compiler/Disassembler and Tools:
535
536ASLTS: parallelized execution in order to achieve an (approximately) 2X
537performance increase.
538
539ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves
540error reporting.
541
542----------------------------------------
54309 February 2018. Summary of changes for version 20180209:
544
545
5461) ACPICA kernel-resident subsystem:
547
548Completed the final integration of the recent changes to Package Object
549handling and the module-level AML code support. This allows forward
550references from individual package elements when the package object is
551declared from within module-level code blocks. Provides compatibility
552with other ACPI implementations.
553
554The new architecture for the AML module-level code has been completed and
555is now the default for the ACPICA code. This new architecture executes
556the module-level code in-line as the ACPI table is loaded/parsed instead
557of the previous architecture which deferred this code until after the
558table was fully loaded. This solves some ASL code ordering issues and
559provides compatibility with other ACPI implementations. At this time,
560there is an option to fallback to the earlier architecture, but this
561support is deprecated and is planned to be completely removed later this
562year.
563
564Added a compile-time option to ignore AE_NOT_FOUND exceptions during
565resolution of named reference elements within Package objects. Although
566this is potentially a serious problem, it can generate a lot of
567noise/errors on platforms whose firmware carries around a bunch of unused
568Package objects. To disable these errors, define
569ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All
570errors are always reported for ACPICA applications such as AcpiExec.
571
572Fixed a regression related to the explicit type-conversion AML operators
573(ToXXXX). The regression was introduced early in 2017 but was not seen
574until recently because these operators are not fully supported by other
575ACPI implementations and are thus rarely used by firmware developers. The
576operators are defined by the ACPI specification to not implement the
577"implicit result object conversion". The regression incorrectly
578introduced this object conversion for the following explicit conversion
579operators:
580    ToInteger
581    ToString
582    ToBuffer
583    ToDecimalString
584    ToHexString
585    ToBCD
586    FromBCD
587
588
5892) iASL Compiler/Disassembler and Tools:
590
591iASL: Fixed a problem with the compiler constant folding feature as
592related to the ToXXXX explicit conversion operators. These operators do
593not support the "implicit result object conversion" by definition. Thus,
594ASL expressions that use these operators cannot be folded to a simple
595Store operator because Store implements the implicit conversion. This
596change uses the CopyObject operator for the ToXXXX operator folding
597instead. CopyObject is defined to not implement implicit result
598conversions and is thus appropriate for folding the ToXXXX operators.
599
600iASL: Changed the severity of an error condition to a simple warning for
601the case where a symbol is declared both locally and as an external
602symbol. This accommodates existing ASL code.
603
604AcpiExec: The -ep option to enable the new architecture for module-level
605code has been removed. It is replaced by the -dp option which instead has
606the opposite effect: it disables the new architecture (the default) and
607enables the legacy architecture. When the legacy code is removed in the
608future, the -dp option will be removed also.
609
610----------------------------------------
61105 January 2018. Summary of changes for version 20180105:
612
613
6141) ACPICA kernel-resident subsystem:
615
616Updated all copyrights to 2018. This affects all source code modules.
617
618Fixed a possible build error caused by an unresolved reference to the
619AcpiUtSafeStrncpy function.
620
621Removed NULL pointer arithmetic in the various pointer manipulation
622macros. All "(void *) NULL" constructs are converted to "(void *) 0".
623This eliminates warnings/errors in newer C compilers. Jung-uk Kim.
624
625Added support for A32 ABI compilation, which uses the ILP32 model. Anuj
626Mittal.
627
628
6292) iASL Compiler/Disassembler and Tools:
630
631ASLTS: Updated all copyrights to 2018.
632
633Tools: Updated all signon copyrights to 2018.
634
635AcpiXtract: Fixed a regression related to ACPI table signatures where the
636signature was truncated to 3 characters (instead of 4).
637
638AcpiExec: Restore the original terminal mode after the use of the -v and
639-vd options.
640
641ASLTS: Deployed the iASL __METHOD__ macro across the test suite.
642
643----------------------------------------
64414 December 2017. Summary of changes for version 20171214:
645
646
6471) ACPICA kernel-resident subsystem:
648
649Fixed a regression in the external (public) AcpiEvaluateObjectTyped
650interface where the optional "pathname" argument had inadvertently become
651a required argument returning an error if omitted (NULL pointer
652argument).
653
654Fixed two possible memory leaks related to the recently developed "late
655resolution" of reference objects within ASL Package Object definitions.
656
657Added two recently defined _OSI strings: "Windows 2016" and "Windows
6582017". Mario Limonciello.
659
660Implemented and deployed a safer version of the C library function
661strncpy:  AcpiUtSafeStrncpy. The intent is to at least prevent the
662creation of unterminated strings as a possible result of a standard
663strncpy.
664
665Cleaned up and restructured the global variable file (acglobal.h). There
666are many changes, but no functional changes.
667
668
6692) iASL Compiler/Disassembler and Tools:
670
671iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the
672optional OemData field at the end of the table was incorrectly required
673for proper compilation. It is now correctly an optional field.
674
675ASLTS: The entire suite was converted from standard ASL to the ASL+
676language, using the ASL-to-ASL+ converter which is integrated into the
677iASL compiler. A binary compare of all output files has verified the
678correctness of the conversion.
679
680iASL: Fixed the source code build for platforms where "char" is unsigned.
681This affected the iASL lexer only. Jung-uk Kim.
682
683----------------------------------------
68410 November 2017. Summary of changes for version 20171110:
685
686
6871) ACPICA kernel-resident subsystem:
688
689This release implements full support for ACPI 6.2A:
690    NFIT - Added a new subtable, "Platform Capabilities Structure"
691No other changes to ACPICA were required, since ACPI 6.2A is primarily an
692errata release of the specification.
693
694Other ACPI table changes:
695    IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo
696    PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy
697Linton
698
699Utilities: Modified the string/integer conversion functions to use
700internal 64-bit divide support instead of a native divide. On 32-bit
701platforms, a 64-bit divide typically requires a library function which
702may not be present in the build (kernel or otherwise).
703
704Implemented a targeted error message for timeouts returned from the
705Embedded Controller device driver. This is seen frequently enough to
706special-case an AE_TIME returned from an EC operation region access:
707    "Timeout from EC hardware or EC device driver"
708
709Changed the "ACPI Exception" message prefix to "ACPI Error" so that all
710runtime error messages have the identical prefix.
711
712
7132) iASL Compiler/Disassembler and Tools:
714
715AcpiXtract: Fixed a problem with table header detection within the
716acpidump file. Processing a table could be ended early if a 0x40 (@)
717appears in the original binary table, resulting in the @ symbol appearing
718in the decoded ASCII field at the end of the acpidump text line. The
719symbol caused acpixtract to incorrectly think it had reached the end of
720the current table and the beginning of a new table.
721
722AcpiXtract: Added an option (-f) to ignore some errors during table
723extraction. This initial implementation ignores non-ASCII and non-
724printable characters found in the acpidump text file.
725
726TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics
727for ASLTS. This feature is used to track memory allocations from
728different memory caches within the ACPICA code. At the end of an ASLTS
729run, these memory statistics are recorded and stored in a log file.
730
731Debugger (user-space version): Implemented a simple "Background" command.
732Creates a new thread to execute a control method in the background, while
733control returns to the debugger prompt to allow additional commands.
734    Syntax: Background <Namepath> [Arguments]
735
736----------------------------------------
73729 September 2017. Summary of changes for version 20170929:
738
739
7401) ACPICA kernel-resident subsystem:
741
742Redesigned and implemented an improved ASL While() loop timeout
743mechanism. This mechanism is used to prevent infinite loops in the kernel
744AML interpreter caused by either non-responsive hardware or incorrect AML
745code. The new implementation uses AcpiOsGetTimer instead of a simple
746maximum loop count, and is thus more accurate and constant across
747different machines. The default timeout is currently 30 seconds, but this
748may be adjusted later.
749
750Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to
751better reflect the new implementation of the loop timeout mechanism.
752
753Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support
754and to fix an off-by-one error. Jung-uk Kim.
755
756Fixed an EFI build problem by updating the makefiles to for a new file
757that was added, utstrsuppt.c
758
759
7602) iASL Compiler/Disassembler and Tools:
761
762Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This
763includes support in the table disassembler, compiler, and template
764generator.
765
766iASL: Added an exception for an illegal type of recursive method
767invocation. If a method creates named objects, the first recursive call
768will fail at runtime. This change adds an error detection at compile time
769to catch the problem up front. Note: Marking such a method as
770"serialized" will not help with this problem, because the same thread can
771acquire the method mutex more than once. Example compiler and runtime
772output:
773
774    Method (MTH1)
775    {
776        Name (INT1, 1)
777        MTH1 ()
778    }
779
780    dsdt.asl     22: MTH1 ()
781    Error    6152 -  ^ Illegal recursive call to method
782                       that creates named objects (MTH1)
783
784Previous runtime exception:
785    ACPI Error: [INT1] Namespace lookup failure,
786    AE_ALREADY_EXISTS (20170831/dswload2-465)
787
788iASL: Updated support for External() opcodes to improve namespace
789management and error detection. These changes are related to issues seen
790with multiple-segment namespace pathnames within External declarations,
791such as below:
792
793    External(\_SB.PCI0.GFX0, DeviceObj)
794    External(\_SB.PCI0.GFX0.ALSI)
795
796iASL: Implemented support for multi-line error/warning messages. This
797enables more detailed and helpful error messages as below, from the
798initial deployment for the duplicate names error:
799
800    DSDT.iiii   1692:       Device(PEG2) {
801    Error    6074 -                  ^ Name already exists in scope
802(PEG2)
803
804        Original name creation/declaration below:
805        DSDT.iiii     93:   External(\_SB.PCI0.PEG2, DeviceObj)
806
807AcpiXtract: Added additional flexibility to support differing input hex
808dump formats. Specifically, hex dumps that contain partial disassembly
809and/or comments within the ACPI table data definition. There exist some
810dump utilities seen in the field that create this type of hex dump (such
811as Simics). For example:
812
813    DSDT @ 0xdfffd0c0 (10999 bytes)
814        Signature DSDT
815        Length 10999
816        Revision 1
817        Checksum 0xf3 (Ok)
818        OEM_ID BXPC
819        OEM_table_id BXDSDT
820        OEM_revision 1
821        Creator_id 1280593481
822        Creator_revision 537399345
823      0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00
824      ...
825      2af0: 5f 4c 30 46 00 a4 01
826
827Test suite: Miscellaneous changes/fixes:
828    More cleanup and simplification of makefiles
829    Continue compilation of test cases after a compile failure
830    Do not perform binary compare unless both files actually exist
831
832iASL: Performed some code/module restructuring. Moved all memory
833allocation functions to new modules. Two new files, aslallocate.c and
834aslcache.c
835
836----------------------------------------
83731 August 2017. Summary of changes for version 20170831:
838
839
8401) ACPICA kernel-resident subsystem:
841
842Implemented internal support for full 64-bit addresses that appear in all
843Generic Address Structure (GAS) structures. Previously, only the lower 32
844bits were used. Affects the use of GAS structures in the FADT and other
845tables, as well as the GAS structures passed to the AcpiRead and
846AcpiWrite public external interfaces that are used by drivers. Lv Zheng.
847
848Added header support for the PDTT ACPI table (Processor Debug Trigger
849Table). Full support in the iASL Data Table Compiler and disassembler is
850forthcoming.
851
852
8532) iASL Compiler/Disassembler and Tools:
854
855iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor
856Properties Topology Table) where a flag bit was specified in the wrong
857bit position ("Line Size Valid", bit 6).
858
859iASL: Implemented support for Octal integer constants as defined by the
860ASL language grammar, per the ACPI specification. Any integer constant
861that starts with a zero is an octal constant. For example,
862    Store (037777, Local0) /* Octal constant */
863    Store (0x3FFF, Local0) /* Hex equivalent */
864    Store (16383,  Local0) /* Decimal equivalent */
865
866iASL: Improved overflow detection for 64-bit string conversions during
867compilation of integer constants. "Overflow" in this case means a string
868that represents an integer that is too large to fit into a 64-bit value.
869Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to
870the low-order 32 bits with a warning, as previously implemented. Several
871new exceptions are defined that indicate a 64-bit overflow, as well as
872the base (radix) that was used during the attempted conversion. Examples:
873    Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF        // AE_HEX_OVERFLOW
874    Local0 = 01111222233334444555566667777     // AE_OCTAL_OVERFLOW
875    Local0 = 11112222333344445555666677778888  // AE_DECIMAL_OVERFLOW
876
877iASL: Added a warning for the case where a ResourceTemplate is declared
878with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In
879this case, the resulting template is created with a single END_TAG
880descriptor, which is essentially useless.
881
882iASL: Expanded the -vw option (ignore specific warnings/remarks) to
883include compilation error codes as well.
884
885----------------------------------------
88628 July 2017. Summary of changes for version 20170728:
887
888
8891) ACPICA kernel-resident subsystem:
890
891Fixed a regression seen with small resource descriptors that could cause
892an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.
893
894AML interpreter: Implemented a new feature that allows forward references
895from individual named references within package objects that are
896contained within blocks of "module-level code". This provides
897compatibility with other ACPI implementations and supports existing
898firmware that depends on this feature. Example:
899
900    Name (ABCD, 1)
901    If (ABCD)                       /* An If() at module-level */
902    {
903        Name (PKG1, Package()
904        {
905            INT1                    /* Forward reference to object INT1
906*/
907        })
908        Name (INT1, 0x1234)
909    }
910
911AML Interpreter: Fixed a problem with the Alias() operator where aliases
912to some ASL objects were not handled properly. Objects affected are:
913Mutex, Event, and OperationRegion.
914
915AML Debugger: Enhanced to properly handle AML Alias objects. These
916objects have one level of indirection which was not fully supported by
917the debugger.
918
919Table Manager: Added support to detect and ignore duplicate SSDTs within
920the XSDT/RSDT. This error in the XSDT has been seen in the field.
921
922EFI and EDK2 support:
923    Enabled /WX flag for MSVC builds
924    Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer
925    Added local support for 64-bit multiply and shift operations
926    Added support to compile acpidump.efi on Windows
927    Added OSL function stubs for interfaces not used under EFI
928
929Added additional support for the _DMA predefined name. _DMA returns a
930buffer containing a resource template. This change add support within the
931resource manager (AcpiWalkResourceBuffer) to walk and parse this list of
932resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
933
934
9352) iASL Compiler/Disassembler and Tools:
936
937iASL: Fixed a problem where the internal input line buffer(s) could
938overflow if there are very long lines in the input ASL source code file.
939Implemented buffer management that automatically increases the size of
940the buffers as necessary.
941
942iASL: Added an option (-vx) to "expect" particular remarks, warnings and
943errors. If the specified exception is not raised during compilation, the
944compiler emits an error. This is intended to support the ASL test suite,
945but may be useful in other contexts.
946
947iASL: Implemented a new predefined macro, __METHOD__, which returns a
948string containing the name of the current control method that is being
949compiled.
950
951iASL: Implemented debugger and table compiler support for the SDEI ACPI
952table (Software Delegated Exception Interface). James Morse
953<james.morse@arm.com>
954
955Unix/Linux makefiles: Added an option to disable compile optimizations.
956The disable occurs when the NOOPT flag is set to TRUE.
957theracermaster@gmail.com
958
959Acpidump: Added support for multiple DSDT and FACS tables. This can occur
960when there are different tables for 32-bit versus 64-bit.
961
962Enhanced error reporting for the ASL test suite (ASLTS) by removing
963unnecessary/verbose text, and emit the actual line number where an error
964has occurred. These changes are intended to improve the usefulness of the
965test suite.
966
967----------------------------------------
96829 June 2017. Summary of changes for version 20170629:
969
970
9711) ACPICA kernel-resident subsystem:
972
973Tables: Implemented a deferred ACPI table verification. This is useful
974for operating systems where the tables cannot be verified in the early
975initialization stage due to early memory mapping limitations on some
976architectures. Lv Zheng.
977
978Tables: Removed the signature validation for dynamically loaded tables.
979Provides compatibility with other ACPI implementations. Previously, only
980SSDT tables were allowed, as per the ACPI specification. Now, any table
981signature can be used via the Load() operator. Lv Zheng.
982
983Tables: Fixed several mutex issues that could cause errors during table
984acquisition. Lv Zheng.
985
986Tables: Fixed a problem where an ACPI warning could be generated if a
987null pointer was passed to the AcpiPutTable interface. Lv Zheng.
988
989Tables: Added a mechanism to handle imbalances for the AcpiGetTable and
990AcpiPutTable interfaces. This applies to the "late stage" table loading
991when the use of AcpiPutTable is no longer required (since the system
992memory manager is fully running and available). Lv Zheng.
993
994Fixed/Reverted a regression during processing of resource descriptors
995that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG
996exception in this case.
997
998Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the
999I/O Remapping specification. Robin Murphy <robin.murphy@arm.com>
1000
1001Interpreter: Fixed a possible fault if an Alias operator with an invalid
1002or duplicate target is encountered during Alias creation in
1003AcpiExCreateAlias. Alex James <theracermaster@gmail.com>
1004
1005Added an option to use designated initializers for function pointers.
1006Kees Cook <keescook@google.com>
1007
1008
10092) iASL Compiler/Disassembler and Tools:
1010
1011iASL: Allow compilation of External declarations with target pathnames
1012that refer to existing named objects within the table. Erik Schmauss.
1013
1014iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a
1015FieldUnit name also is declared via External in the same table. Erik
1016Schmauss.
1017
1018iASL: Allow existing scope names within pathnames used in External
1019statements. For example:
1020    External (ABCD.EFGH) // ABCD exists, but EFGH is truly external
1021    Device (ABCD)
1022
1023iASL: IORT ACPI table: Implemented changes required to decode the new
1024Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table
1025compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
1026
1027Disassembler: Don't abort disassembly on errors from External()
1028statements. Erik Schmauss.
1029
1030Disassembler: fixed a possible fault when one of the Create*Field
1031operators references a Resource Template. ACPICA Bugzilla 1396.
1032
1033iASL: In the source code, resolved some naming inconsistences across the
1034parsing support. Fixes confusion between "Parse Op" and "Parse Node".
1035Adds a new file, aslparseop.c
1036
1037----------------------------------------
103831 May 2017. Summary of changes for version 20170531:
1039
1040
10410) ACPI 6.2 support:
1042
1043The ACPI specification version 6.2 has been released and is available at
1044http://uefi.org/specifications
1045
1046This version of ACPICA fully supports the ACPI 6.2 specification. Changes
1047are summarized below.
1048
1049New ACPI tables (Table Compiler/Disassembler/Templates):
1050    HMAT (Heterogeneous Memory Attributes Table)
1051    WSMT (Windows SMM Security Mitigation Table)
1052    PPTT (Processor Properties Topology Table)
1053
1054New subtables for existing ACPI tables:
1055    HEST (New subtable, Arch-deferred machine check)
1056    SRAT (New subtable, Arch-specific affinity structure)
1057    PCCT (New subtables, Extended PCC subspaces (types 3 and 4))
1058
1059Simple updates for existing ACPI tables:
1060    BGRT (two new flag bits)
1061    HEST (New bit defined for several subtables, GHES_ASSIST)
1062
1063New Resource Descriptors and Resource macros (Compiler/Disassembler):
1064    PinConfig()
1065    PinFunction()
1066    PinGroup()
1067    PinGroupConfig()
1068    PinGroupFunction()
1069    New type for hardware error notification (section 18.3.2.9)
1070
1071New predefined names/methods (Compiler/Interpreter):
1072    _HMA (Heterogeneous Memory Attributes)
1073    _LSI (Label Storage Information)
1074    _LSR (Label Storage Read)
1075    _LSW (Label Storage Write)
1076
1077ASL grammar/macro changes (Compiler):
1078    For() ASL macro, implemented with the AML while operator
1079    Extensions to Concatenate operator
1080    Support for multiple definition blocks in same ASL file
1081    Clarification for Buffer operator
1082    Allow executable AML code underneath all scopes (Devices, etc.)
1083    Clarification/change for the _OSI return value
1084    ASL grammar update for reference operators
1085    Allow a zero-length string for AML filename in DefinitionBlock
1086
1087Miscellaneous:
1088    New device object notification value
1089    Remove a notify value (0x0C) for graceful shutdown
1090    New UUIDs for processor/cache properties and
1091        physical package property
1092    New _HID, ACPI0014 (Wireless Power Calibration Device)
1093
1094
10951) ACPICA kernel-resident subsystem:
1096
1097Added support to disable ACPI events on hardware-reduced platforms.
1098Eliminates error messages of the form "Could not enable fixed event". Lv
1099Zheng
1100
1101Fixed a problem using Device/Thermal objects with the ObjectType and
1102DerefOf ASL operators. This support had not been fully/properly
1103implemented.
1104
1105Fixed a problem where if a Buffer object containing a resource template
1106was longer than the actual resource template, an error was generated --
1107even though the AML is legal. This case has been seen in the field.
1108
1109Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.
1110The values for DUAL_PIC and MULTIPLE_APIC were reversed.
1111
1112Added header file changes for the TPM2 ACPI table. Update to new version
1113of the TCG specification. Adds a new TPM2 subtable for ARM SMC.
1114
1115Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.
1116These interfaces are intended to be used only in conjunction with the
1117predefined _DLM method (Device Lock Method). "This object appears in a
1118device scope when AML access to the device must be synchronized with the
1119OS environment".
1120
1121Example Code and Data Size: These are the sizes for the OS-independent
1122acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1123debug version of the code includes the debug output trace mechanism and
1124has a much larger code and data size.
1125
1126  Current Release:
1127    Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total
1128    Debug Version:     204.0K Code, 84.3K Data, 288.3K Total
1129  Previous Release:
1130    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
1131    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
1132
1133
11342) iASL Compiler/Disassembler and Tools:
1135
1136iASL: Fixed a problem where an External() declaration could not refer to
1137a Field Unit. Erik Schmauss.
1138
1139Disassembler: Improved support for the Switch/Case operators. This
1140feature will disassemble AML code back to the original Switch operators
1141when possible, instead of an If..Else sequence. David Box
1142
1143iASL and disassembler: Improved the handling of multiple extraneous
1144parentheses for both ASL input and disassembled ASL output.
1145
1146Improved the behavior of the iASL compiler and disassembler to detect
1147improper use of external declarations
1148
1149Disassembler: Now aborts immediately upon detection of an unknown AML
1150opcode. The AML parser has no real way to recover from this, and can
1151result in the creation of an ill-formed parse tree that causes errors
1152later during the disassembly.
1153
1154All tools: Fixed a problem where the Unix application OSL did not handle
1155control-c correctly. For example, a control-c could incorrectly wake the
1156debugger.
1157
1158AcpiExec: Improved the Control-C handling and added a handler for
1159segmentation faults (SIGSEGV). Supports both Windows and Unix-like
1160environments.
1161
1162Reduced the verbosity of the generic unix makefiles. Previously, each
1163compilation displayed the full set of compiler options. This has been
1164eliminated as the options are easily inspected within the makefiles. Each
1165compilation now results in a single line of output.
1166
1167----------------------------------------
116803 March 2017. Summary of changes for version 20170303:
1169
1170
11710) ACPICA licensing:
1172
1173The licensing information at the start of each source code module has
1174been updated. In addition to the Intel license, the dual GPLv2/BSD
1175license has been added for completeness. Now, a single version of the
1176source code should be suitable for all ACPICA customers. This is the
1177major change for this release since it affects all source code modules.
1178
1179
11801) ACPICA kernel-resident subsystem:
1181
1182Fixed two issues with the common asltypes.h header that could cause
1183problems in some environments: (Kim Jung-uk)
1184    Removed typedef for YY_BUFFER_STATE ?
1185       Fixes an error with earlier versions of Flex.
1186    Removed use of FILE typedef (which is only defined in stdio.h)
1187
1188
11892) iASL Compiler/Disassembler and Tools:
1190
1191Disassembler: fixed a regression introduced in 20170224. A fix for a
1192memory leak related to resource descriptor tags (names) could fault when
1193the disassembler was generated with 64-bit compilers.
1194
1195The ASLTS test suite has been updated to implement a new testing
1196architecture. During generation of the suite from ASL source, both the
1197ASL and ASL+ compilers are now validated, as well as the disassembler
1198itself (Erik Schmauss). The architecture executes as follows:
1199
1200    For every ASL source module:
1201        Compile (legacy ASL compilation)
1202        Disassemble the resulting AML to ASL+ source code
1203        Compile the new ASL+ module
1204        Perform a binary compare on the legacy AML and the new ASL+ AML
1205    The ASLTS suite then executes normally using the AML binaries.
1206
1207----------------------------------------
120824 February 2017. Summary of changes for version 20170224:
1209
1210
12111) ACPICA kernel-resident subsystem:
1212
1213Interpreter: Fixed two issues with the control method return value auto-
1214repair feature, where an attempt to double-delete an internal object
1215could result in an ACPICA warning (for _CID repair and others). No fault
1216occurs, however, because the attempted deletion (actually a release to an
1217internal cache) is detected and ignored via object poisoning.
1218
1219Debugger: Fixed an AML interpreter mutex issue during the single stepping
1220of control methods. If certain debugger commands are executed during
1221stepping, a mutex aquire/release error could occur. Lv Zheng.
1222
1223Fixed some issues generating ACPICA with the Intel C compiler by
1224restoring the original behavior and compiler-specific include file in
1225acenv.h. Lv Zheng.
1226
1227Example Code and Data Size: These are the sizes for the OS-independent
1228acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1229debug version of the code includes the debug output trace mechanism and
1230has a much larger code and data size.
1231
1232  Current Release:
1233    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
1234    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
1235  Previous Release:
1236    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
1237    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
1238
1239
12402) iASL Compiler/Disassembler and Tools:
1241
1242iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion
1243tool has been designed, implemented, and included in this release. The
1244key feature of this utility is that the original comments within the
1245input ASL file are preserved during the conversion process, and included
1246within the converted ASL+ file -- thus creating a transparent conversion
1247of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.
1248
1249    Usage: iasl -ca <ASL-filename>  // Output is a .dsl file with
1250converted code
1251
1252iASL/Disassembler: Improved the detection and correct disassembly of
1253Switch/Case operators. This feature detects sequences of if/elseif/else
1254operators that originated from ASL Switch/Case/Default operators and
1255emits the original operators. David Box.
1256
1257iASL: Improved the IORT ACPI table support in the following areas. Lv
1258Zheng:
1259    Clear MappingOffset if the MappingCount is zero.
1260    Fix the disassembly of the SMMU GSU interrupt offset.
1261    Update the template file for the IORT table.
1262
1263Disassembler: Enhanced the detection and disassembly of resource
1264template/descriptor within a Buffer object. An EndTag descriptor is now
1265required to have a zero second byte, since all known ASL compilers emit
1266this. This helps eliminate incorrect decisions when a buffer is
1267disassembled (false positives on resource templates).
1268
1269----------------------------------------
127019 January 2017. Summary of changes for version 20170119:
1271
1272
12731) General ACPICA software:
1274
1275Entire source code base: Added the 2017 copyright to all source code
1276legal/licensing module headers and utility/tool signons. This includes
1277the standard Linux dual-license header. This affects virtually every file
1278in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
1279the ACPICA test suite.
1280
1281
12822) iASL Compiler/Disassembler and Tools:
1283
1284iASL: Removed/fixed an inadvertent remark when a method argument
1285containing a reference is used as a target operand within the method (and
1286never used as a simple argument), as in the example below. Jeffrey Hugo.
1287
1288    dsdt.asl   1507:    Store(0x1, Arg0)
1289    Remark   2146 -                ^ Method Argument is never used (Arg0)
1290
1291All tools: Removed the bit width of the compiler that generated the tool
1292from the common signon for all user space tools. This proved to be
1293confusing and unnecessary. This includes similar removal of HARDWARE_NAME
1294from the generic makefiles (Thomas Petazzoni). Example below.
1295
1296    Old:
1297    ASL+ Optimizing Compiler version 20170119-32
1298    ASL+ Optimizing Compiler version 20170119-64
1299
1300    New:
1301    ASL+ Optimizing Compiler version 20170119
1302
1303----------------------------------------
130422 December 2016. Summary of changes for version 20161222:
1305
1306
13071) ACPICA kernel-resident subsystem:
1308
1309AML Debugger: Implemented a new mechanism to simplify and enhance
1310debugger integration into all environments, including kernel debuggers
1311and user-space utilities, as well as remote debug services. This
1312mechanism essentially consists of new OSL interfaces to support debugger
1313initialization/termination, as well as wait/notify interfaces to perform
1314the debugger handshake with the host. Lv Zheng.
1315
1316    New OSL interfaces:
1317        AcpiOsInitializeDebugger (void)
1318        AcpiOsTerminateDebugger (void)
1319        AcpiOsWaitCommandReady (void)
1320        AcpiOsNotifyCommandComplete (void)
1321
1322    New OS services layer:
1323        osgendbg.c -- Example implementation, and used for AcpiExec
1324
1325Update for Generic Address Space (GAS) support: Although the AccessWidth
1326and/or BitOffset fields of the GAS are not often used, this change now
1327fully supports these fields. This affects the internal support for FADT
1328registers, registers in other ACPI data tables, and the AcpiRead and
1329AcpiWrite public interfaces. Lv Zheng.
1330
1331Sleep support: In order to simplify integration of ACPI sleep for the
1332various host operating systems, a new OSL interface has been introduced.
1333AcpiOsEnterSleep allows the host to perform any required operations
1334before the final write to the sleep control register(s) is performed by
1335ACPICA. Lv Zheng.
1336
1337    New OSL interface:
1338        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
1339
1340    Called from these internal interfaces:
1341        AcpiHwLegacySleep
1342        AcpiHwExtendedSleep
1343
1344EFI support: Added a very small EFI/ACPICA example application. Provides
1345a simple demo for EFI integration, as well as assisting with resolution
1346of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
1347
1348    source/tools/efihello/efihello.c
1349
1350Local C library: Implemented several new functions to enhance ACPICA
1351portability, for environments where these clib functions are not
1352available (such as EFI). Lv Zheng:
1353    putchar
1354    getchar
1355    strpbrk
1356    strtok
1357    memmove
1358
1359Fixed a regression where occasionally a valid resource descriptor was
1360incorrectly detected as invalid at runtime, and a
1361AE_AML_NO_RESOURCE_END_TAG was returned.
1362
1363Fixed a problem with the recently implemented support that enables
1364control method invocations as Target operands to many ASL operators.
1365Warnings of this form: "Needed type [Reference], found [Processor]" were
1366seen at runtime for some method invocations.
1367
1368Example Code and Data Size: These are the sizes for the OS-independent
1369acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1370debug version of the code includes the debug output trace mechanism and
1371has a much larger code and data size.
1372
1373  Current Release:
1374    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
1375    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
1376  Previous Release:
1377    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
1378    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
1379
1380
13812) iASL Compiler/Disassembler and Tools:
1382
1383Disassembler: Enhanced output by adding the capability to detect and
1384disassemble ASL Switch/Case statements back to the original ASL source
1385code instead of if/else blocks. David Box.
1386
1387AcpiHelp: Split a large file into separate files based upon
1388functionality/purpose. New files are:
1389    ahaml.c
1390    ahasl.c
1391
1392----------------------------------------
139317 November 2016. Summary of changes for version 20161117:
1394
1395
13961) ACPICA kernel-resident subsystem:
1397
1398Table Manager: Fixed a regression introduced in 20160729, "FADT support
1399cleanup". This was an attempt to remove all references in the source to
1400the FADT version 2, which never was a legal version number. It was
1401skipped because it was an early version of 64-bit support that was
1402eventually abandoned for the current 64-bit support.
1403
1404Interpreter: Fixed a problem where runtime implicit conversion was
1405incorrectly disabled for the ASL operators below. This brings the
1406behavior into compliance with the ACPI specification:
1407    FromBCD
1408    ToBCD
1409    ToDecimalString
1410    ToHexString
1411    ToInteger
1412    ToBuffer
1413
1414Table Manager: Added a new public interface, AcpiPutTable, used to
1415release and free an ACPI table returned by AcpiGetTable and related
1416interfaces. Lv Zheng.
1417
1418Example Code and Data Size: These are the sizes for the OS-independent
1419acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1420debug version of the code includes the debug output trace mechanism and
1421has a much larger code and data size.
1422
1423  Current Release:
1424    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
1425    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
1426  Previous Release:
1427    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
1428    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
1429
1430
14312) iASL Compiler/Disassembler and Tools:
1432
1433Disassembler: Fixed a regression for disassembly of Resource Template.
1434Detection of templates in the AML stream missed some types of templates.
1435
1436iASL: Fixed a problem where an Access Size error was returned for the PCC
1437address space when the AccessSize of the GAS register is greater than a
1438DWORD. Hoan Tran.
1439
1440iASL: Implemented several grammar changes for the operators below. These
1441changes are slated for the next version of the ACPI specification:
1442    RefOf        - Disallow method invocation as an operand
1443    CondRefOf    - Disallow method invocation as an operand
1444    DerefOf      - Disallow operands that use the result from operators
1445that
1446                   do not return a reference (Changed TermArg to
1447SuperName).
1448
1449iASL: Control method invocations are now allowed for Target operands, as
1450per the ACPI specification. Removed error for using a control method
1451invocation as a Target operand.
1452
1453Disassembler: Improved detection of Resource Templates, Unicode, and
1454Strings within Buffer objects. These subtypes do not contain a specific
1455opcode to indicate the originating ASL code, and they must be detected by
1456other means within the disassembler.
1457
1458iASL: Implemented an optimization improvement for 32-bit ACPI tables
1459(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
1460only after 64-bit to 32-bit truncation. A truncation warning message is
1461still emitted, however.
1462
1463AcpiXtract: Implemented handling for both types of line terminators (LF
1464or CR/LF) so that it can accept AcpiDump output files from any system.
1465Peter Wu.
1466
1467AcpiBin: Added two new options for comparing AML files:
1468    -a: compare and display ALL mismatches
1469    -o: start compare at this offset into the second file
1470
1471----------------------------------------
147230 September 2016. Summary of changes for version 20160930:
1473
1474
14751) ACPICA kernel-resident subsystem:
1476
1477Fixed a regression in the internal AcpiTbFindTable function where a non
1478AE_OK exception could inadvertently be returned even if the function did
1479not fail. This problem affects the following operators:
1480    DataTableRegion
1481    LoadTable
1482
1483Fixed a regression in the LoadTable operator where a load to any
1484namespace location other than the root no longer worked properly.
1485
1486Increased the maximum loop count value that will result in the
1487AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to
1488prevent infinite loops within the AML interpreter and thus the host OS
1489kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to
14901,048,575).
1491
1492Moved the AcpiGbl_MaxLoopIterations configuration variable to the public
1493acpixf.h file. This allows hosts to easily configure the maximum loop
1494count at runtime.
1495
1496Removed an illegal character in the strtoul64.c file. This character
1497caused errors with some C compilers.
1498
1499Example Code and Data Size: These are the sizes for the OS-independent
1500acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1501debug version of the code includes the debug output trace mechanism and
1502has a much larger code and data size.
1503
1504  Current Release:
1505    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
1506    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
1507  Previous Release:
1508    Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total
1509    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
1510
1511
15122) iASL Compiler/Disassembler and Tools:
1513
1514Disassembler: Fixed a problem with the conversion of Else{If{ blocks into
1515the simpler ASL ElseIf keyword. During the conversion, a trailing If
1516block could be lost and missing from the disassembled output.
1517
1518iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,
1519the missing rule caused a parse error when using the Index operator as an
1520operand to ObjectType. This construct now compiles properly. Example:
1521    ObjectType(PKG1[4]).
1522
1523iASL: Correctly handle unresolved symbols in the hardware map file (-lm
1524option). Previously, unresolved symbols could cause a protection fault.
1525Such symbols are now marked as unresolved in the map file.
1526
1527iASL: Implemented support to allow control method invocations as an
1528operand to the ASL DeRefOf operator. Example:
1529    DeRefOf(MTH1(Local0))
1530
1531Disassembler: Improved support for the ToPLD ASL macro. Detection of a
1532possible _PLD buffer now includes examination of both the normal buffer
1533length (16 or 20) as well as the surrounding AML package length.
1534
1535Disassembler: Fixed a problem with the decoding of complex expressions
1536within the Divide operator for ASL+. For the case where both the quotient
1537and remainder targets are specified, the entire statement cannot be
1538disassembled. Previously, the output incorrectly contained a mix of ASL-
1539and ASL+ operators. This mixed statement causes a syntax error when
1540compiled. Example:
1541    Divide (Add (INT1, 6), 128, RSLT, QUOT)  // was incorrectly
1542disassembled to:
1543    Divide (INT1 + 6, 128, RSLT, QUOT)
1544
1545iASL/Tools: Added support to process AML and non-AML ACPI tables
1546consistently. For the disassembler and AcpiExec, allow all types of ACPI
1547tables (AML and data tables). For the iASL -e option, allow only AML
1548tables (DSDT/SSDT).
1549
1550----------------------------------------
155131 August 2016. Summary of changes for version 20160831:
1552
1553
15541) ACPICA kernel-resident subsystem:
1555
1556Improve support for the so-called "module-level code", which is defined
1557to be math, logical and control AML opcodes that appear outside of any
1558control method. This change improves the support by adding more opcodes
1559that can be executed in the manner. Some other issues have been solved,
1560and the ASL grammar changes to support such code under all scope
1561operators (Device, etc.) are complete. Lv Zheng.
1562
1563UEFI support: these OSL functions have been implemented. This is an
1564additional step toward supporting the AcpiExec utility natively (with
1565full hardware access) under UEFI. Marcelo Ferreira.
1566    AcpiOsReadPciConfiguration
1567    AcpiOsWritePciConfiguration
1568
1569Fixed a possible mutex error during control method auto-serialization. Lv
1570Zheng.
1571
1572Updated support for the Generic Address Structure by fully implementing
1573all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv
1574Zheng.
1575
1576Updated the return value for the internal _OSI method. Instead of
15770xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF
1578for 64-bit ACPI tables. This fixes an incompatibility with other ACPI
1579implementations, and will be reflected and clarified in the next version
1580of the ACPI specification.
1581
1582Implemented two new table events that can be passed to an ACPICA table
1583handler. These events are used to indicate a table installation or
1584uninstallation. These events are used in addition to existed table load
1585and unload events. Lv Zheng.
1586
1587Implemented a cleanup for all internal string-to-integer conversions.
1588Consolidate multiple versions of this functionality and limit possible
1589bases to either 10 or 16 to simplify the code. Adds a new file,
1590utstrtoul64.
1591
1592Cleanup the inclusion order of the various compiler-specific headers.
1593This simplifies build configuration management. The compiler-specific
1594headers are now split out from the host-specific headers. Lv Zheng.
1595
1596Example Code and Data Size: These are the sizes for the OS-independent
1597acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1598debug version of the code includes the debug output trace mechanism and
1599has a much larger code and data size.
1600
1601  Current Release:
1602    Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total
1603    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
1604
1605
16062) iASL Compiler/Disassembler and Tools:
1607
1608iASL/AcpiExec: Added a command line option to display the build date/time
1609of the tool (-vd). This can be useful to verify that the correct version
1610of the tools are being used.
1611
1612AML Debugger: Implemented a new subcommand ("execute predef") to execute
1613all predefined control methods and names within the current namespace.
1614This can be useful for debugging problems with ACPI tables and the ACPI
1615namespace.
1616
1617----------------------------------------
161829 July 2016. Summary of changes for version 20160729:
1619
1620
16211) ACPICA kernel-resident subsystem:
1622
1623Implemented basic UEFI support for the various ACPICA tools. This
1624includes:
16251) An OSL to implement the various AcpiOs* interfaces on UEFI.
16262) Support to obtain the ACPI tables on UEFI.
16273) Local implementation of required C library functions not available on
1628UEFI.
16294) A front-end (main) function for the tools for UEFI-related
1630initialization.
1631
1632The initial deployment of this support is the AcpiDump utility executing
1633as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").
1634Current environments supported are Linux/Unix. MSVC generation is not
1635supported at this time. See the generate/efi/README file for build
1636instructions. Lv Zheng.
1637
1638Future plans include porting the AcpiExec utility to execute natively on
1639the platform with I/O and memory access. This will allow viewing/dump of
1640the platform namespace and native execution of ACPI control methods that
1641access the actual hardware. To fully implement this support, the OSL
1642functions below must be implemented with UEFI interfaces. Any community
1643help in the implementation of these functions would be appreciated:
1644    AcpiOsReadPort
1645    AcpiOsWritePort
1646    AcpiOsReadMemory
1647    AcpiOsWriteMemory
1648    AcpiOsReadPciConfiguration
1649    AcpiOsWritePciConfiguration
1650
1651Restructured and standardized the C library configuration for ACPICA,
1652resulting in the various configuration options below. This includes a
1653global restructuring of the compiler-dependent and platform-dependent
1654include files. These changes may affect the existing platform-dependent
1655configuration files on some hosts. Lv Zheng.
1656
1657The current C library configuration options appear below. For any issues,
1658it may be helpful to examine the existing compiler-dependent and
1659platform-dependent files as examples. Lv Zheng.
1660
16611) Linux kernel:
1662    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
1663library.
1664    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
16652) Unix/Windows/BSD applications:
1666    ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C
1667library.
1668    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
16693) UEFI applications:
1670    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
1671library.
1672    ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.
16734) UEFI applications (EDK2/StdLib):
1674    ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.
1675    ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.
1676
1677
1678AML interpreter: "module-level code" support. Allows for execution of so-
1679called "executable" AML code (math/logical operations, etc.) outside of
1680control methods not just at the module level (top level) but also within
1681any scope declared outside of a control method - Scope{}, Device{},
1682Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.
1683
1684Simplified the configuration of the "maximum AML loops" global option by
1685adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be
1686modified at runtime.
1687
1688
1689Example Code and Data Size: These are the sizes for the OS-independent
1690acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1691debug version of the code includes the debug output trace mechanism and
1692has a much larger code and data size.
1693
1694  Current Release:
1695    Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total
1696    Debug Version:     199.0K Code, 81.8K Data, 280.8K Total
1697
1698
16992) iASL Compiler/Disassembler and Tools:
1700
1701iASL: Add full support for the RASF ACPI table (RAS Features Table).
1702Includes disassembler, data table compiler, and header support.
1703
1704iASL Expand "module-level code" support. Allows for
1705compilation/disassembly of so-called "executable" AML code (math/logical
1706operations, etc.) outside of control methods not just at the module level
1707(top level) but also within any scope declared outside of a control
1708method - Scope{}, Device{}, Processor{}, PowerResource{}, and
1709ThermalZone{}.
1710
1711AcpiDump: Added support for dumping all SSDTs on newer versions of
1712Windows. These tables are now easily available -- SSDTs are not available
1713through the registry on older versions.
1714
1715----------------------------------------
171627 May 2016. Summary of changes for version 20160527:
1717
1718
17191) ACPICA kernel-resident subsystem:
1720
1721Temporarily reverted the new arbitrary bit length/alignment support in
1722AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
1723a number of regressions with the new code that need to be fully resolved
1724and tested before this support can be finally integrated into ACPICA.
1725Apologies for any inconveniences these issues may have caused.
1726
1727The ACPI message macros are not configurable (ACPI_MSG_ERROR,
1728ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
1729and ACPI_MSG_BIOS_WARNING). Lv Zheng.
1730
1731Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
1732option. Adds a new return macro, return_STR. Junk-uk Kim.
1733
1734Example Code and Data Size: These are the sizes for the OS-independent
1735acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1736debug version of the code includes the debug output trace mechanism and
1737has a much larger code and data size.
1738
1739  Current Release:
1740    Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
1741    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
1742  Previous Release:
1743    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
1744    Debug Version:     200.9K Code, 82.2K Data, 283.1K Total
1745
1746----------------------------------------
174722 April 2016. Summary of changes for version 20160422:
1748
17491) ACPICA kernel-resident subsystem:
1750
1751Fixed a regression in the GAS (generic address structure) arbitrary bit
1752support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
1753and incorrect return values. Lv Zheng. ACPICA BZ 1270.
1754
1755ACPI 6.0: Added support for new/renamed resource macros. One new argument
1756was added to each of these macros, and the original name has been
1757deprecated. The AML disassembler will always disassemble to the new
1758names. Support for the new macros was added to iASL, disassembler,
1759resource manager, and the acpihelp utility. ACPICA BZ 1274.
1760
1761    I2cSerialBus  -> I2cSerialBusV2
1762    SpiSerialBus  -> SpiSerialBusV2
1763    UartSerialBus -> UartSerialBusV2
1764
1765ACPI 6.0: Added support for a new integer field that was appended to the
1766package object returned by the _BIX method. This adds iASL compile-time
1767and AML runtime error checking. ACPICA BZ 1273.
1768
1769ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
1770Subspace Type2" (Headers, Disassembler, and data table compiler).
1771
1772Example Code and Data Size: These are the sizes for the OS-independent
1773acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1774debug version of the code includes the debug output trace mechanism and
1775has a much larger code and data size.
1776
1777  Current Release:
1778    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
1779    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
1780  Previous Release:
1781    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
1782    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
1783
1784
17852) iASL Compiler/Disassembler and Tools:
1786
1787iASL: Implemented an ASL grammar extension to allow/enable executable
1788"module-level code" to be created and executed under the various
1789operators that create new scopes. This type of AML code is already
1790supported in all known AML interpreters, and the grammar change will
1791appear in the next version of the ACPI specification. Simplifies the
1792conditional runtime creation of named objects under these object types:
1793
1794    Device
1795    PowerResource
1796    Processor
1797    Scope
1798    ThermalZone
1799
1800iASL: Implemented a new ASL extension, a "For" loop macro to add greater
1801ease-of-use to the ASL language. The syntax is similar to the
1802corresponding C operator, and is implemented with the existing AML While
1803opcode -- thus requiring no changes to existing AML interpreters.
1804
1805    For (Initialize, Predicate, Update) {TermList}
1806
1807Grammar:
1808    ForTerm :=
1809        For (
1810            Initializer    // Nothing | TermArg => ComputationalData
1811            Predicate      // Nothing | TermArg => ComputationalData
1812            Update         // Nothing | TermArg => ComputationalData
1813        ) {TermList}
1814
1815
1816iASL: The _HID/_ADR detection and validation has been enhanced to search
1817under conditionals in order to allow these objects to be conditionally
1818created at runtime.
1819
1820iASL: Fixed several issues with the constant folding feature. The
1821improvement allows better detection and resolution of statements that can
1822be folded at compile time. ACPICA BZ 1266.
1823
1824iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
1825conversion to the ASL ElseIf operator where incorrect ASL code could be
1826generated.
1827
1828iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
1829sometimes an extra (and extraneous) set of parentheses were emitted for
1830some combinations of operators. Although this did not cause any problems
1831with recompilation of the disassembled code, it made the code more
1832difficult to read. David Box. ACPICA BZ 1231.
1833
1834iASL: Changed to ignore the unreferenced detection for predefined names
1835of resource descriptor elements, when the resource descriptor is
1836created/defined within a control method.
1837
1838iASL: Disassembler: Fix a possible fault with externally declared Buffer
1839objects.
1840
1841----------------------------------------
184218 March 2016. Summary of changes for version 20160318:
1843
18441) ACPICA kernel-resident subsystem:
1845
1846Added support for arbitrary bit lengths and bit offsets for registers
1847defined by the Generic Address Structure. Previously, only aligned bit
1848lengths of 8/16/32/64 were supported. This was sufficient for many years,
1849but recently some machines have been seen that require arbitrary bit-
1850level support. ACPICA BZ 1240. Lv Zheng.
1851
1852Fixed an issue where the \_SB._INI method sometimes must be evaluated
1853before any _REG methods are evaluated. Lv Zheng.
1854
1855Implemented several changes related to ACPI table support
1856(Headers/Disassembler/TableCompiler):
1857NFIT: For ACPI 6.1, updated to add some additional new fields and
1858constants.
1859FADT: Updated a warning message and set compliance to ACPI 6.1 (Version
18606).
1861DMAR: Added new constants per the 10/2014 DMAR spec.
1862IORT: Added new subtable per the 10/2015 IORT spec.
1863HEST: For ACPI 6.1, added new constants and new subtable.
1864DBG2: Added new constants per the 12/2015 DBG2 spec.
1865FPDT: Fixed several incorrect fields, add the FPDT boot record structure.
1866ACPICA BZ 1249.
1867ERST/EINJ: Updated disassembler with new "Execute Timings" actions.
1868
1869Updated header support for the DMAR table to match the current version of
1870the related spec.
1871
1872Added extensions to the ASL Concatenate operator to allow any ACPI object
1873to be passed as an operand. Any object other than Integer/String/Buffer
1874simply returns a string containing the object type. This extends the
1875usefulness of the Printf macros. Previously, Concatenate would abort the
1876control method if a non-data object was encountered.
1877
1878ACPICA source code: Deployed the C "const" keyword across the source code
1879where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).
1880
1881Example Code and Data Size: These are the sizes for the OS-independent
1882acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1883debug version of the code includes the debug output trace mechanism and
1884has a much larger code and data size.
1885
1886  Current Release:
1887    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
1888    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
1889  Previous Release:
1890    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
1891    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
1892
1893
18942) iASL Compiler/Disassembler and Tools:
1895
1896iASL/Disassembler: Improved the heuristic used to determine the number of
1897arguments for an externally defined control method (a method in another
1898table). Although this is an improvement, there is no deterministic way to
1899"guess" the number of method arguments. Only the ACPI 6.0 External opcode
1900will completely solve this problem as it is deployed (automatically) in
1901newer BIOS code.
1902
1903iASL/Disassembler: Fixed an ordering issue for emitted External() ASL
1904statements that could cause errors when the disassembled file is
1905compiled. ACPICA BZ 1243. David Box.
1906
1907iASL: Fixed a regression caused by the merger of the two versions of the
1908local strtoul64. Because of a dependency on a global variable, strtoul64
1909could return an error for integers greater than a 32-bit value. ACPICA BZ
19101260.
1911
1912iASL: Fixed a regression where a fault could occur for an ASL Return
1913statement if it invokes a control method that is not resolved. ACPICA BZ
19141264.
1915
1916AcpiXtract: Improved input file validation: detection of binary files and
1917non-acpidump text files.
1918
1919----------------------------------------
192012 February 2016. Summary of changes for version 20160212:
1921
19221) ACPICA kernel-resident subsystem:
1923
1924Implemented full support for the ACPI 6.1 specification (released in
1925January). This version of the specification is available at:
1926http://www.uefi.org/specifications
1927
1928Only a relatively small number of changes were required in ACPICA to
1929support ACPI 6.1, in these areas:
1930- New predefined names
1931- New _HID values
1932- A new subtable for HEST
1933- A few other header changes for new values
1934
1935Ensure \_SB_._INI is executed before any _REG methods are executed. There
1936appears to be existing BIOS code that relies on this behavior. Lv Zheng.
1937
1938Reverted a change made in version 20151218 which enabled method
1939invocations to be targets of various ASL operators (SuperName and Target
1940grammar elements). While the new behavior is supported by the ACPI
1941specification, other AML interpreters do not support this behavior and
1942never will. The ACPI specification will be updated for ACPI 6.2 to remove
1943this support. Therefore, the change was reverted to the original ACPICA
1944behavior.
1945
1946ACPICA now supports the GCC 6 compiler.
1947
1948Current Release: (Note: build changes increased sizes)
1949    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
1950    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
1951Previous Release:
1952    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
1953    Debug Version:     200.4K Code, 81.9K Data, 282.3K Total
1954
1955
19562) iASL Compiler/Disassembler and Tools:
1957
1958Completed full support for the ACPI 6.0 External() AML opcode. The
1959compiler emits an external AML opcode for each ASL External statement.
1960This opcode is used by the disassembler to assist with the disassembly of
1961external control methods by specifying the required number of arguments
1962for the method. AML interpreters do not use this opcode. To ensure that
1963interpreters do not even see the opcode, a block of one or more external
1964opcodes is surrounded by an "If(0)" construct. As this feature becomes
1965commonly deployed in BIOS code, the ability of disassemblers to correctly
1966disassemble AML code will be greatly improved. David Box.
1967
1968iASL: Implemented support for an optional cross-reference output file.
1969The -lx option will create a the cross-reference file with the suffix
1970"xrf". Three different types of cross-reference are created in this file:
1971- List of object references made from within each control method
1972- Invocation (caller) list for each user-defined control method
1973- List of references to each non-method object in the namespace
1974
1975iASL: Method invocations as ASL Target operands are now disallowed and
1976flagged as errors in preparation for ACPI 6.2 (see the description of the
1977problem above).
1978
1979----------------------------------------
19808 January 2016. Summary of changes for version 20160108:
1981
19821) ACPICA kernel-resident subsystem:
1983
1984Updated all ACPICA copyrights and signons to 2016: Added the 2016
1985copyright to all source code module headers and utility/tool signons.
1986This includes the standard Linux dual-license header. This affects
1987virtually every file in the ACPICA core subsystem, iASL compiler, all
1988ACPICA utilities, and the ACPICA test suite.
1989
1990Fixed a regression introduced in version 20151218 concerning the
1991execution of so-called module-level ASL/AML code. Namespace objects
1992created under a module-level If() construct were not properly/fully
1993entered into the namespace and could cause an interpreter fault when
1994accessed.
1995
1996Example Code and Data Size: These are the sizes for the OS-independent
1997acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1998debug version of the code includes the debug output trace mechanism and
1999has a much larger code and data size.
2000
2001Current Release:
2002    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
2003    Debug Version:     200.4K Code, 81.9K Data, 282.4K Total
2004  Previous Release:
2005    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
2006    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
2007
2008
20092) iASL Compiler/Disassembler and Tools:
2010
2011Fixed a problem with the compilation of the GpioIo and GpioInt resource
2012descriptors. The _PIN field name was incorrectly defined to be an array
2013of 32-bit values, but the _PIN values are in fact 16 bits each. This
2014would cause incorrect bit width warnings when using Word (16-bit) fields
2015to access the descriptors.
2016
2017
2018----------------------------------------
201918 December 2015. Summary of changes for version 20151218:
2020
20211) ACPICA kernel-resident subsystem:
2022
2023Implemented per-AML-table execution of "module-level code" as individual
2024ACPI tables are loaded into the namespace during ACPICA initialization.
2025In other words, any module-level code within an AML table is executed
2026immediately after the table is loaded, instead of batched and executed
2027after all of the tables have been loaded. This provides compatibility
2028with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,
2029David Box.
2030
2031To fully support the feature above, the default operation region handlers
2032for the SystemMemory, SystemIO, and PCI_Config address spaces are now
2033installed before any ACPI tables are loaded. This enables module-level
2034code to access these address spaces during the table load and module-
2035level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David
2036Box.
2037
2038Implemented several changes to the internal _REG support in conjunction
2039with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples
2040utilities for the changes above. Although these tools were changed, host
2041operating systems that simply use the default handlers for SystemMemory,
2042SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.
2043
2044For example, in the code below, DEV1 is conditionally added to the
2045namespace by the DSDT via module-level code that accesses an operation
2046region. The SSDT references DEV1 via the Scope operator. DEV1 must be
2047created immediately after the DSDT is loaded in order for the SSDT to
2048successfully reference DEV1. Previously, this code would cause an
2049AE_NOT_EXIST exception during the load of the SSDT. Now, this code is
2050fully supported by ACPICA.
2051
2052    DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)
2053    {
2054        OperationRegion (OPR1, SystemMemory, 0x400, 32)
2055        Field (OPR1, AnyAcc, NoLock, Preserve)
2056        {
2057            FLD1, 1
2058        }
2059        If (FLD1)
2060        {
2061            Device (\DEV1)
2062            {
2063            }
2064        }
2065    }
2066    DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)
2067    {
2068        External (\DEV1, DeviceObj)
2069        Scope (\DEV1)
2070        {
2071        }
2072    }
2073
2074Fixed an AML interpreter problem where control method invocations were
2075not handled correctly when the invocation was itself a SuperName argument
2076to another ASL operator. In these cases, the method was not invoked.
2077ACPICA BZ 1002. Affects the following ASL operators that have a SuperName
2078argument:
2079    Store
2080    Acquire, Wait
2081    CondRefOf, RefOf
2082    Decrement, Increment
2083    Load, Unload
2084    Notify
2085    Signal, Release, Reset
2086    SizeOf
2087
2088Implemented automatic String-to-ObjectReference conversion support for
2089packages returned by predefined names (such as _DEP). A common BIOS error
2090is to add double quotes around an ObjectReference namepath, which turns
2091the reference into an unexpected string object. This support detects the
2092problem and corrects it before the package is returned to the caller that
2093invoked the method. Lv Zheng.
2094
2095Implemented extensions to the Concatenate operator. Concatenate now
2096accepts any type of object, it is not restricted to simply
2097Integer/String/Buffer. For objects other than these 3 basic data types,
2098the argument is treated as a string containing the name of the object
2099type. This expands the utility of Concatenate and the Printf/Fprintf
2100macros. ACPICA BZ 1222.
2101
2102Cleaned up the output of the ASL Debug object. The timer() value is now
2103optional and no longer emitted by default. Also, the basic data types of
2104Integer/String/Buffer are simply emitted as their values, without a data
2105type string -- since the data type is obvious from the output. ACPICA BZ
21061221.
2107
2108Example Code and Data Size: These are the sizes for the OS-independent
2109acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2110debug version of the code includes the debug output trace mechanism and
2111has a much larger code and data size.
2112
2113  Current Release:
2114    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
2115    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
2116  Previous Release:
2117    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
2118    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
2119
2120
21212) iASL Compiler/Disassembler and Tools:
2122
2123iASL: Fixed some issues with the ASL Include() operator. This operator
2124was incorrectly defined in the iASL parser rules, causing a new scope to
2125be opened for the code within the include file. This could lead to
2126several issues, including allowing ASL code that is technically illegal
2127and not supported by AML interpreters. Note, this does not affect the
2128related #include preprocessor operator. ACPICA BZ 1212.
2129
2130iASL/Disassembler: Implemented support for the ASL ElseIf operator. This
2131operator is essentially an ASL macro since there is no AML opcode
2132associated with it. The code emitted by the iASL compiler for ElseIf is
2133an Else opcode followed immediately by an If opcode. The disassembler
2134will now emit an ElseIf if it finds an Else immediately followed by an
2135If. This simplifies the decoded ASL, especially for deeply nested
2136If..Else and large Switch constructs. Thus, the disassembled code more
2137closely follows the original source ASL. ACPICA BZ 1211. Example:
2138
2139    Old disassembly:
2140        Else
2141        {
2142            If (Arg0 == 0x02)
2143            {
2144                Local0 = 0x05
2145            }
2146        }
2147
2148    New disassembly:
2149        ElseIf (Arg0 == 0x02)
2150        {
2151            Local0 = 0x05
2152        }
2153
2154AcpiExec: Added support for the new module level code behavior and the
2155early region installation. This required a small change to the
2156initialization, since AcpiExec must install its own operation region
2157handlers.
2158
2159AcpiExec: Added support to make the debug object timer optional. Default
2160is timer disabled. This cleans up the debug object output -- the timer
2161data is rarely used.
2162
2163AcpiExec: Multiple ACPI tables are now loaded in the order that they
2164appear on the command line. This can be important when there are
2165interdependencies/references between the tables.
2166
2167iASL/Templates. Add support to generate template files with multiple
2168SSDTs within a single output file. Also added ommand line support to
2169specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ
21701223, 1225.
2171
2172
2173----------------------------------------
217424 November 2015. Summary of changes for version 20151124:
2175
21761) ACPICA kernel-resident subsystem:
2177
2178Fixed a possible regression for a previous update to FADT handling. The
2179FADT no longer has a fixed table ID, causing some issues with code that
2180was hardwired to a specific ID. Lv Zheng.
2181
2182Fixed a problem where the method auto-serialization could interfere with
2183the current SyncLevel. This change makes the auto-serialization support
2184transparent to the SyncLevel support and management.
2185
2186Removed support for the _SUB predefined name in AcpiGetObjectInfo. This
2187interface is intended for early access to the namespace during the
2188initial namespace device discovery walk. The _SUB method has been seen to
2189access operation regions in some cases, causing errors because the
2190operation regions are not fully initialized.
2191
2192AML Debugger: Fixed some issues with the terminate/quit/exit commands
2193that can cause faults. Lv Zheng.
2194
2195AML Debugger: Add thread ID support so that single-step mode only applies
2196to the AML Debugger thread. This prevents runtime errors within some
2197kernels. Lv Zheng.
2198
2199Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx
2200methods that are invoked by this interface are optional, removed warnings
2201emitted for the case where one or more of these methods do not exist.
2202ACPICA BZ 1208, original change by Prarit Bhargava.
2203
2204Made a major pass through the entire ACPICA source code base to
2205standardize formatting that has diverged a bit over time. There are no
2206functional changes, but this will of course cause quite a few code
2207differences from the previous ACPICA release.
2208
2209Example Code and Data Size: These are the sizes for the OS-independent
2210acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2211debug version of the code includes the debug output trace mechanism and
2212has a much larger code and data size.
2213
2214  Current Release:
2215    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
2216    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
2217  Previous Release:
2218    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
2219    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
2220
2221
22222) iASL Compiler/Disassembler and Tools:
2223
2224iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple
2225definition blocks within a single ASL file and the resulting AML file.
2226Support for this type of file was also added to the various tools that
2227use binary AML files: acpiexec, acpixtract, and the AML disassembler. The
2228example code below shows two definition blocks within the same file:
2229
2230    DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",
22310x12345678)
2232    {
2233    }
2234    DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)
2235    {
2236    }
2237
2238iASL: Enhanced typechecking for the Name() operator. All expressions for
2239the value of the named object must be reduced/folded to a single constant
2240at compile time, as per the ACPI specification (the AML definition of
2241Name()).
2242
2243iASL: Fixed some code indentation issues for the -ic and -ia options (C
2244and assembly headers). Now all emitted code correctly begins in column 1.
2245
2246iASL: Added an error message for an attempt to open a Scope() on an
2247object defined in an SSDT. The DSDT is always loaded into the namespace
2248first, so any attempt to open a Scope on an SSDT object will fail at
2249runtime.
2250
2251
2252----------------------------------------
225330 September 2015. Summary of changes for version 20150930:
2254
22551) ACPICA kernel-resident subsystem:
2256
2257Debugger: Implemented several changes and bug fixes to assist support for
2258the in-kernel version of the AML debugger. Lv Zheng.
2259- Fix the "predefined" command for in-kernel debugger.
2260- Do not enter debug command loop for the help and version commands.
2261- Disallow "execute" command during execution/single-step of a method.
2262
2263Interpreter: Updated runtime typechecking for all operators that have
2264target operands. The operand is resolved and validated that it is legal.
2265For example, the target cannot be a non-data object such as a Device,
2266Mutex, ThermalZone, etc., as per the ACPI specification.
2267
2268Debugger: Fixed the double-mutex user I/O handshake to work when local
2269deadlock detection is enabled.
2270
2271Debugger: limited display of method locals and arguments (LocalX and
2272ArgX) to only those that have actually been initialized. This prevents
2273lines of extraneous output.
2274
2275Updated the definition of the NFIT table to correct the bit polarity of
2276one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
2277
2278Example Code and Data Size: These are the sizes for the OS-independent
2279acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2280debug version of the code includes the debug output trace mechanism and
2281has a much larger code and data size.
2282
2283  Current Release:
2284    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
2285    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
2286  Previous Release:
2287    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
2288    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
2289
2290
22912) iASL Compiler/Disassembler and Tools:
2292
2293iASL: Improved the compile-time typechecking for operands of many of the
2294ASL operators:
2295
2296-- Added an option to disable compiler operand/operator typechecking (-
2297ot).
2298
2299-- For the following operators, the TermArg operands are now validated
2300when possible to be Integer data objects: BankField, OperationRegion,
2301DataTableRegion, Buffer, and Package.
2302
2303-- Store (Source, Target): Both the source and target operands are
2304resolved and checked that the operands are both legal. For example,
2305neither operand can be a non-data object such as a Device, Mutex,
2306ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
2307operator can be used to store an object to any type of target object.
2308
2309-- Store (Source, Target): If the source is a Package object, the target
2310must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
2311is a Package, the source must also be a Package.
2312
2313-- Store (Source, Target): A warning is issued if the source and target
2314resolve to the identical named object.
2315
2316-- Store (Source, <method invocation>): An error is generated for the
2317target method invocation, as this construct is not supported by the AML
2318interpreter.
2319
2320-- For all ASL math and logic operators, the target operand must be a
2321data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
2322includes the function return value also.
2323
2324-- External declarations are also included in the typechecking where
2325possible. External objects defined using the UnknownObj keyword cannot be
2326typechecked, however.
2327
2328iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
2329operator:
2330- Legacy code: Index(PKG1, 3)
2331- New ASL+ code: PKG1[3]
2332This completes the ACPI 6.0 ASL+ support as it was the only operator not
2333supported.
2334
2335iASL: Fixed the file suffix for the preprocessor output file (.i). Two
2336spaces were inadvertently appended to the filename, causing file access
2337and deletion problems on some systems.
2338
2339ASL Test Suite (ASLTS): Updated the master makefile to generate all
2340possible compiler output files when building the test suite -- thus
2341exercising these features of the compiler. These files are automatically
2342deleted when the test suite exits.
2343
2344
2345----------------------------------------
234618 August 2015. Summary of changes for version 20150818:
2347
23481) ACPICA kernel-resident subsystem:
2349
2350Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
2351Zheng. ACPICA BZ 1186.
2352
2353Completed development to ensure that the ACPICA Disassembler and Debugger
2354are fully standalone components of ACPICA. Removed cross-component
2355dependences. Lv Zheng.
2356
2357The max-number-of-AML-loops is now runtime configurable (previously was
2358compile-time only). This is essentially a loop timeout to force-abort
2359infinite AML loops. ACPCIA BZ 1192.
2360
2361Debugger: Cleanup output to dump ACPI names and namepaths without any
2362trailing underscores. Lv Zheng. ACPICA BZ 1135.
2363
2364Removed unnecessary conditional compilations across the Debugger and
2365Disassembler components where entire modules could be left uncompiled.
2366
2367The aapits test is deprecated and has been removed from the ACPICA git
2368tree. The test has never been completed and has not been maintained, thus
2369becoming rather useless. ACPICA BZ 1015, 794.
2370
2371A batch of small changes to close bugzilla and other reports:
2372- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
2373- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
2374- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
2375- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
2376Moore.
2377- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
2378ACPICA BZ 1184.
2379- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
2380operators.
2381- Debugger: Split debugger initialization/termination interfaces. Lv
2382Zheng.
2383- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
2384identification.
2385- AcpiExec: Add debug message during _REG method phase during table
2386load/init.
2387- AcpiNames: Fix a regression where some output was missing and no longer
2388emitted.
2389- Debugger: General cleanup and simplification. Lv Zheng.
2390- Disassembler: Cleanup use of several global option variables. Lv Zheng.
2391
2392Example Code and Data Size: These are the sizes for the OS-independent
2393acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2394debug version of the code includes the debug output trace mechanism and
2395has a much larger code and data size.
2396
2397  Current Release:
2398    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
2399    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
2400  Previous Release:
2401    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
2402    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
2403
2404
24052) iASL Compiler/Disassembler and Tools:
2406
2407AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
2408were not handled properly and caused load errors. Now, properly invoke
2409and use the ACPICA auto-reallocate mechanism for ACPI table data
2410structures. ACPICA BZ 1188
2411
2412AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
2413BZ 1190.
2414
2415AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
2416AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
2417executed during initialization. ACPICA BZ 1187, 1189.
2418
2419iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
2420that corresponds to each disassembled ASL statement, to simplify
2421debugging. ACPICA BZ 1191.
2422
2423Debugger: Add option to the "objects" command to display a summary of the
2424current namespace objects (Object type and count). This is displayed if
2425the command is entered with no arguments.
2426
2427AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
2428
2429
2430----------------------------------------
243117 July 2015. Summary of changes for version 20150717:
2432
24331) ACPICA kernel-resident subsystem:
2434
2435Improved the partitioning between the Debugger and Disassembler
2436components. This allows the Debugger to be used standalone within kernel
2437code without the Disassembler (which is used for single stepping also).
2438This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
2439
2440Debugger: Implemented a new command to trace the execution of control
2441methods (Trace). This is especially useful for the in-kernel version of
2442the debugger when file I/O may not be available for method trace output.
2443See the ACPICA reference for more information. Lv Zheng.
2444
2445Moved all C library prototypes (used for the local versions of these
2446functions when requested) to a new header, acclib.h
2447Cleaned up the use of non-ANSI C library functions. These functions are
2448implemented locally in ACPICA. Moved all such functions to a common
2449source file, utnonansi.c
2450
2451Debugger: Fixed a problem with the "!!" command (get last command
2452executed) where the debugger could enter an infinite loop and eventually
2453crash.
2454
2455Removed the use of local macros that were used for some of the standard C
2456library functions to automatically cast input parameters. This mostly
2457affected the is* functions where the input parameter is defined to be an
2458int. This required a few modifications to the main ACPICA source code to
2459provide casting for these functions and eliminate possible compiler
2460warnings for these parameters.
2461
2462Across the source code, added additional status/error checking to resolve
2463issues discovered by static source code analysis tools such as Coverity.
2464
2465Example Code and Data Size: These are the sizes for the OS-independent
2466acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2467debug version of the code includes the debug output trace mechanism and
2468has a much larger code and data size.
2469
2470  Current Release:
2471    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
2472    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
2473  Previous Release:
2474    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
2475    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
2476
2477
24782) iASL Compiler/Disassembler and Tools:
2479
2480iASL: Fixed a regression where the device map file feature no longer
2481worked properly when used in conjunction with the disassembler. It only
2482worked properly with the compiler itself.
2483
2484iASL: Implemented a new warning for method LocalX variables that are set
2485but never used (similar to a C compiler such as gcc). This also applies
2486to ArgX variables that are not defined by the parent method, and are
2487instead (legally) used as local variables.
2488
2489iASL/Preprocessor: Finished the pass-through of line numbers from the
2490preprocessor to the compiler. This ensures that compiler errors/warnings
2491have the correct original line numbers and filenames, regardless of any
2492#include files.
2493
2494iASL/Preprocessor: Fixed a couple of issues with comment handling and the
2495pass-through of comments to the preprocessor output file (which becomes
2496the compiler input file). Also fixed a problem with // comments that
2497appear after a math expression.
2498
2499iASL: Added support for the TCPA server table to the table compiler and
2500template generator. (The client table was already previously supported)
2501
2502iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
2503identify the iASL compiler.
2504
2505Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
2506multiple times. The new names are ACPI_SIGN_NEGATIVE and
2507ACPI_SIGN_POSITIVE.
2508
2509AcpiHelp: Update to expand help messages for the iASL preprocessor
2510directives.
2511
2512
2513----------------------------------------
251419 June 2015. Summary of changes for version 20150619:
2515
2516Two regressions in version 20150616 have been addressed:
2517
2518Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
2519etc.) This update changes ACPICA to only use the standard headers for
2520functions, or the prototypes for the local versions of the C library
2521functions. Across the source code, this required some additional casts
2522for some Clib invocations for portability. Moved all local prototypes to
2523a new file, acclib.h
2524
2525Fixes several problems with recent changes to the handling of the FACS
2526table that could cause some systems not to boot.
2527
2528
2529----------------------------------------
253016 June 2015. Summary of changes for version 20150616:
2531
2532
25331) ACPICA kernel-resident subsystem:
2534
2535Across the entire ACPICA source code base, the various macros for the C
2536library functions (such as ACPI_STRLEN, etc.) have been removed and
2537replaced by the standard C library names (strlen, etc.) The original
2538purpose for these macros is no longer applicable. This simplification
2539reduces the number of macros used in the ACPICA source code
2540significantly, improving readability and maintainability.
2541
2542Implemented support for a new ACPI table, the OSDT. This table, the
2543"override" SDT, can be loaded directly by the host OS at boot time. It
2544enables the replacement of existing namespace objects that were installed
2545via the DSDT and/or SSDTs. The primary purpose for this is to replace
2546buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
2547for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
2548Moore.
2549
2550Added support for systems with (improperly) two FACS tables -- a "32-bit"
2551table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
2552X field). This change will support both automatically. There continues to
2553be systems found with this issue. This support requires a change to the
2554AcpiSetFirmwareWakingVector interface. Also, a public global variable has
2555been added to allow the host to select which FACS is desired
2556(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
2557details Lv Zheng.
2558
2559Added a new feature to allow for systems that do not contain an FACS.
2560Although this is already supported on hardware-reduced platforms, the
2561feature has been extended for all platforms. The reasoning is that we do
2562not want to abort the entire ACPICA initialization just because the
2563system is seriously buggy and has no FACS.
2564
2565Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
2566not correctly transcribed from the ACPI specification in ACPICA version
256720150515.
2568
2569Implemented support for the _CLS object in the AcpiGetObjectInfo external
2570interface.
2571
2572Updated the definitions of the TCPA and TPM2 ACPI tables to the more
2573recent TCG ACPI Specification, December 14, 2014. Table disassembler and
2574compiler also updated. Note: The TCPA "server" table is not supported by
2575the disassembler/table-compiler at this time.
2576
2577ACPI 6.0: Added definitions for the new GIC version field in the MADT.
2578
2579Example Code and Data Size: These are the sizes for the OS-independent
2580acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2581debug version of the code includes the debug output trace mechanism and
2582has a much larger code and data size.
2583
2584  Current Release:
2585    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
2586    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
2587  Previous Release:
2588    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
2589    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
2590
2591
25922) iASL Compiler/Disassembler and Tools:
2593
2594Disassembler: Fixed a problem with the new symbolic operator disassembler
2595where incorrect ASL code could be emitted in some cases for the "non-
2596commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
2597ShiftRight. The actual problem cases seem to be rather unusual in common
2598ASL code, however. David Box.
2599
2600Modified the linux version of acpidump to obtain ACPI tables from not
2601just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
2602Zheng.
2603
2604iASL: Fixed a problem where the user preprocessor output file (.i)
2605contained extra data that was not expected. The compiler was using this
2606file as a temporary file and passed through #line directives in order to
2607keep compiler error messages in sync with the input file and line number
2608across multiple include files. The (.i) is no longer a temporary file as
2609the compiler uses a new, different file for the original purpose.
2610
2611iASL: Fixed a problem where comments within the original ASL source code
2612file were not passed through to the preprocessor output file, nor any
2613listing files.
2614
2615iASL: Fixed some issues for the handling of the "#include" preprocessor
2616directive and the similar (but not the same) "Include" ASL operator.
2617
2618iASL: Add support for the new OSDT in both the disassembler and compiler.
2619
2620iASL: Fixed a problem with the constant folding support where a Buffer
2621object could be incorrectly generated (incorrectly formed) during a
2622conversion to a Store() operator.
2623
2624AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
2625description text for the _REV predefined name. _REV now permanently
2626returns 2, as per the ACPI 6.0 specification.
2627
2628Debugger: Enhanced the output of the Debug ASL object for references
2629produced by the Index operator. For Buffers and strings, only output the
2630actual byte pointed to by the index. For packages, only print the single
2631package element decoded by the index. Previously, the entire
2632buffer/string/package was emitted.
2633
2634iASL/Table-compiler: Fixed a regression where the "generic" data types
2635were no longer recognized, causing errors.
2636
2637
2638----------------------------------------
263915 May 2015. Summary of changes for version 20150515:
2640
2641This release implements most of ACPI 6.0 as described below.
2642
26431) ACPICA kernel-resident subsystem:
2644
2645Implemented runtime argument checking and return value checking for all
2646new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
2647_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
2648
2649Example Code and Data Size: These are the sizes for the OS-independent
2650acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2651debug version of the code includes the debug output trace mechanism and
2652has a much larger code and data size.
2653
2654  Current Release:
2655    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
2656    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
2657  Previous Release:
2658    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
2659    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
2660
2661
26622) iASL Compiler/Disassembler and Tools:
2663
2664iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
2665names (argument count validation and return value typechecking.)
2666
2667iASL disassembler and table compiler: implemented support for all new
2668ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
2669
2670iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
2671tables: FADT, MADT.
2672
2673iASL preprocessor: Added a new directive to enable inclusion of binary
2674blobs into ASL code. The new directive is #includebuffer. It takes a
2675binary file as input and emits a named ascii buffer object into the ASL
2676code.
2677
2678AcpiHelp: Added support for all new ACPI 6.0 predefined names.
2679
2680AcpiHelp: Added a new option, -d, to display all iASL preprocessor
2681directives.
2682
2683AcpiHelp: Added a new option, -t, to display all known/supported ACPI
2684tables.
2685
2686
2687----------------------------------------
268810 April 2015. Summary of changes for version 20150410:
2689
2690Reverted a change introduced in version 20150408 that caused
2691a regression in the disassembler where incorrect operator
2692symbols could be emitted.
2693
2694
2695----------------------------------------
269608 April 2015. Summary of changes for version 20150408:
2697
2698
26991) ACPICA kernel-resident subsystem:
2700
2701Permanently set the return value for the _REV predefined name. It now
2702returns 2 (was 5). This matches other ACPI implementations. _REV will be
2703deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
2704for ACPI 2.0 and later. It should never be used to differentiate or
2705identify operating systems.
2706
2707Added the "Windows 2015" string to the _OSI support. ACPICA will now
2708return TRUE to a query with this string.
2709
2710Fixed several issues with the local version of the printf function.
2711
2712Added the C99 compiler option (-std=c99) to the Unix makefiles.
2713
2714  Current Release:
2715    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
2716    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
2717  Previous Release:
2718    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
2719    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
2720
2721
27222) iASL Compiler/Disassembler and Tools:
2723
2724iASL: Implemented an enhancement to the constant folding feature to
2725transform the parse tree to a simple Store operation whenever possible:
2726    Add (2, 3, X) ==> is converted to: Store (5, X)
2727    X = 2 + 3     ==> is converted to: Store (5, X)
2728
2729Updated support for the SLIC table (Software Licensing Description Table)
2730in both the Data Table compiler and the disassembler. The SLIC table
2731support now conforms to "Microsoft Software Licensing Tables (SLIC and
2732MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
2733following the ACPI header is now defined to be "Proprietary Data", and as
2734such, can only be entered or displayed as a hex data block.
2735
2736Implemented full support for the MSDM table as described in the document
2737above. Note: The format of MSDM is similar to SLIC. Any MSDM data
2738following the ACPI header is defined to be "Proprietary Data", and can
2739only be entered or displayed as a hex data block.
2740
2741Implemented the -Pn option for the iASL Table Compiler (was only
2742implemented for the ASL compiler). This option disables the iASL
2743preprocessor.
2744
2745Disassembler: For disassembly of Data Tables, added a comment field
2746around the Ascii equivalent data that is emitted as part of the "Raw
2747Table Data" block. This prevents the iASL Preprocessor from possible
2748confusion if/when the table is compiled.
2749
2750Disassembler: Added an option (-df) to force the disassembler to assume
2751that the table being disassembled contains valid AML. This feature is
2752useful for disassembling AML files that contain ACPI signatures other
2753than DSDT or SSDT (such as OEMx or other signatures).
2754
2755Changes for the EFI version of the tools:
27561) Fixed a build error/issue
27572) Fixed a cast warning
2758
2759iASL: Fixed a path issue with the __FILE__ operator by making the
2760directory prefix optional within the internal SplitInputFilename
2761function.
2762
2763Debugger: Removed some unused global variables.
2764
2765Tests: Updated the makefile for proper generation of the AAPITS suite.
2766
2767
2768----------------------------------------
276904 February 2015. Summary of changes for version 20150204:
2770
2771ACPICA kernel-resident subsystem:
2772
2773Updated all ACPICA copyrights and signons to 2014. Added the 2014
2774copyright to all module headers and signons, including the standard Linux
2775header. This affects virtually every file in the ACPICA core subsystem,
2776iASL compiler, all ACPICA utilities, and the test suites.
2777
2778Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
2779A raw gpe handling mechanism was created to allow better handling of GPE
2780storms that aren't easily managed by the normal handler. The raw handler
2781allows disabling/renabling of the the GPE so that interrupt storms can be
2782avoided in cases where events cannot be timely serviced. In this
2783scenario, handlers should use the AcpiSetGpe() API to disable/enable the
2784GPE. This API will leave the reference counts undisturbed, thereby
2785preventing unintentional clearing of the GPE when the intent in only to
2786temporarily disable it. Raw handlers allow enabling and disabling of a
2787GPE by removing GPE register locking. As such, raw handlers much provide
2788their own locks while using GPE API's to protect access to GPE data
2789structures.
2790Lv Zheng
2791
2792Events: Always modify GPE registers under the GPE lock.
2793Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
2794values. Reported as bug by joe.liu@apple.com.
2795
2796Unix makefiles: Separate option to disable optimizations and
2797_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
2798NOOPT disable option and creates a separate flag (NOFORTIFY) for this
2799purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
2800errors when building ACPICA. This allows disabling the option without
2801also having to disable optimazations.
2802David Box
2803
2804  Current Release:
2805    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
2806    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
2807
2808--
2809--------------------------------------
281007 November 2014. Summary of changes for version 20141107:
2811
2812This release is available at https://acpica.org/downloads
2813
2814This release introduces and implements language extensions to ASL that
2815provide support for symbolic ("C-style") operators and expressions. These
2816language extensions are known collectively as ASL+.
2817
2818
28191) iASL Compiler/Disassembler and Tools:
2820
2821Disassembler: Fixed a problem with disassembly of the UartSerialBus
2822macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
2823Box.
2824
2825Disassembler: Fixed the Unicode macro support to add escape sequences.
2826All non-printable ASCII values are emitted as escape sequences, as well
2827as the standard escapes for quote and backslash. Ensures that the
2828disassembled macro can be correctly recompiled.
2829
2830iASL: Added Printf/Fprintf macros for formatted output. These macros are
2831translated to existing AML Concatenate and Store operations. Printf
2832writes to the ASL Debug object. Fprintf allows the specification of an
2833ASL name as the target. Only a single format specifier is required, %o,
2834since the AML interpreter dynamically converts objects to the required
2835type. David E. Box.
2836
2837    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
2838                 (Concatenate (Concatenate (Concatenate ("", Arg0),
2839                 ": Unexpected value for "), Arg1), ", "), Arg2),
2840                 " at line "), Arg3), Debug)
2841
2842    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
2843                 Arg0, Arg1, Arg2, Arg3)
2844
2845    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
2846                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
2847
2848    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
2849
2850iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
2851ASL parse tree before the AML code is generated. This allows blocks of
2852ASL code to be removed in order to help locate and identify problem
2853devices and/or code. David E. Box.
2854
2855AcpiExec: Added support (-fi) for an optional namespace object
2856initialization file. This file specifies initial values for namespace
2857objects as necessary for debugging and testing different ASL code paths
2858that may be taken as a result of BIOS options.
2859
2860
28612) Overview of symbolic operator support for ASL (ASL+)
2862-------------------------------------------------------
2863
2864As an extension to the ASL language, iASL implements support for symbolic
2865(C-style) operators for math and logical expressions. This can greatly
2866simplify ASL code as well as improve both readability and
2867maintainability. These language extensions can exist concurrently with
2868all legacy ASL code and expressions.
2869
2870The symbolic extensions are 100% compatible with existing AML
2871interpreters, since no new AML opcodes are created. To implement the
2872extensions, the iASL compiler transforms the symbolic expressions into
2873the legacy ASL/AML equivalents at compile time.
2874
2875Full symbolic expressions are supported, along with the standard C
2876precedence and associativity rules.
2877
2878Full disassembler support for the symbolic expressions is provided, and
2879creates an automatic migration path for existing ASL code to ASL+ code
2880via the disassembly process. By default, the disassembler now emits ASL+
2881code with symbolic expressions. An option (-dl) is provided to force the
2882disassembler to emit legacy ASL code if desired.
2883
2884Below is the complete list of the currently supported symbolic operators
2885with examples. See the iASL User Guide for additional information.
2886
2887
2888ASL+ Syntax      Legacy ASL Equivalent
2889-----------      ---------------------
2890
2891    // Math operators
2892
2893Z = X + Y        Add (X, Y, Z)
2894Z = X - Y        Subtract (X, Y, Z)
2895Z = X * Y        Multiply (X, Y, Z)
2896Z = X / Y        Divide (X, Y, , Z)
2897Z = X % Y        Mod (X, Y, Z)
2898Z = X << Y       ShiftLeft (X, Y, Z)
2899Z = X >> Y       ShiftRight (X, Y, Z)
2900Z = X & Y        And (X, Y, Z)
2901Z = X | Y        Or (X, Y, Z)
2902Z = X ^ Y        Xor (X, Y, Z)
2903Z = ~X           Not (X, Z)
2904X++              Increment (X)
2905X--              Decrement (X)
2906
2907    // Logical operators
2908
2909(X == Y)         LEqual (X, Y)
2910(X != Y)         LNotEqual (X, Y)
2911(X < Y)          LLess (X, Y)
2912(X > Y)          LGreater (X, Y)
2913(X <= Y)         LLessEqual (X, Y)
2914(X >= Y)         LGreaterEqual (X, Y)
2915(X && Y)         LAnd (X, Y)
2916(X || Y)         LOr (X, Y)
2917(!X)             LNot (X)
2918
2919    // Assignment and compound assignment operations
2920
2921X = Y           Store (Y, X)
2922X += Y          Add (X, Y, X)
2923X -= Y          Subtract (X, Y, X)
2924X *= Y          Multiply (X, Y, X)
2925X /= Y          Divide (X, Y, , X)
2926X %= Y          Mod (X, Y, X)
2927X <<= Y         ShiftLeft (X, Y, X)
2928X >>= Y         ShiftRight (X, Y, X)
2929X &= Y          And (X, Y, X)
2930X |= Y          Or (X, Y, X)
2931X ^= Y          Xor (X, Y, X)
2932
2933
29343) ASL+ Examples:
2935-----------------
2936
2937Legacy ASL:
2938        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
2939            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
29400x03FB),
2941            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
2942        {
2943            And (MEMB, 0xFFFFFFF0, SRMB)
2944            Store (MEMB, Local2)
2945            Store (PDBM, Local1)
2946            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
2947            Store (SRMB, MEMB)
2948            Or (PDBM, 0x02, PDBM)
2949        }
2950
2951ASL+ version:
2952        If (((R510 & 0x03FB) == 0x02E0) ||
2953            ((R520 & 0x03FB) == 0x02E0) ||
2954            ((R530 & 0x03FB) == 0x02E0) ||
2955            ((R540 & 0x03FB) == 0x02E0))
2956        {
2957            SRMB = (MEMB & 0xFFFFFFF0)
2958            Local2 = MEMB
2959            Local1 = PDBM
2960            PDBM &= 0xFFFFFFFFFFFFFFF9
2961            MEMB = SRMB
2962            PDBM |= 0x02
2963        }
2964
2965Legacy ASL:
2966        Store (0x1234, Local1)
2967        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
2968        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
2969        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
2970        Store (Index (PKG1, 0x03), Local6)
2971        Store (Add (Local3, Local2), Debug)
2972        Add (Local1, 0x0F, Local2)
2973        Add (Local1, Multiply (Local2, Local3), Local2)
2974        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
2975
2976ASL+ version:
2977        Local1 = 0x1234
2978        Local3 = (((Local1 + TEST) + 0x20) * Local2)
2979        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
2980        Local3 = (Local1 + (TEST + (0x20 * Local2)))
2981        Local6 = Index (PKG1, 0x03)
2982        Debug = (Local3 + Local2)
2983        Local2 = (Local1 + 0x0F)
2984        Local2 = (Local1 + (Local2 * Local3))
2985        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
2986
2987
2988----------------------------------------
298926 September 2014. Summary of changes for version 20140926:
2990
29911) ACPICA kernel-resident subsystem:
2992
2993Updated the GPIO operation region handler interface (GeneralPurposeIo).
2994In order to support GPIO Connection objects with multiple pins, along
2995with the related Field objects, the following changes to the interface
2996have been made: The Address is now defined to be the offset in bits of
2997the field unit from the previous invocation of a Connection. It can be
2998viewed as a "Pin Number Index" into the connection resource descriptor.
2999The BitWidth is the exact bit width of the field. It is usually one bit,
3000but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
3001additional information and examples.
3002
3003GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
3004corresponding _Lxx/_Exx methods are disabled (they may have been enabled
3005by the firmware), so that they cannot fire until they are enabled via
3006AcpiUpdateAllGpes. Rafael J. Wysocki.
3007
3008Added a new return flag for the Event/GPE status interfaces --
3009AcpiGetEventStatus and AcpiGetGpeStatus. The new
3010ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
3011GPE currently has a handler associated with it, and can thus actually
3012affect the system. Lv Zheng.
3013
3014Example Code and Data Size: These are the sizes for the OS-independent
3015acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3016debug version of the code includes the debug output trace mechanism and
3017has a much larger code and data size.
3018
3019  Current Release:
3020    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
3021    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
3022  Previous Release:
3023    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
3024    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
3025
30262) iASL Compiler/Disassembler and Tools:
3027
3028iASL: Fixed a memory allocation/free regression introduced in 20140828
3029that could cause the compiler to crash. This was introduced inadvertently
3030during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
30311113.
3032
3033iASL: Removed two error messages that have been found to create false
3034positives, until they can be fixed and fully validated (ACPICA BZ 1112):
30351) Illegal forward reference within a method
30362) Illegal reference across two methods
3037
3038iASL: Implemented a new option (-lm) to create a hardware mapping file
3039that summarizes all GPIO, I2C, SPI, and UART connections. This option
3040works for both the compiler and disassembler. See the iASL compiler user
3041guide for additional information and examples (section 6.4.6).
3042
3043AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
3044version 2. This corrects the AE_BAD_HEADER exception seen on systems with
3045a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
3046
3047AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
3048unless STDIN is actually a terminal. Assists with batch-mode processing.
3049ACPICA BZ 1114.
3050
3051Disassembler/AcpiHelp: Added another large group of recognized _HID
3052values.
3053
3054
3055----------------------------------------
305628 August 2014. Summary of changes for version 20140828:
3057
30581) ACPICA kernel-resident subsystem:
3059
3060Fixed a problem related to the internal use of the Timer() operator where
3061a 64-bit divide could cause an attempted link to a double-precision math
3062library. This divide is not actually necessary, so the code was
3063restructured to eliminate it. Lv Zheng.
3064
3065ACPI 5.1: Added support for the runtime validation of the _DSD package
3066(similar to the iASL support).
3067
3068ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
3069SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
3070
3071Example Code and Data Size: These are the sizes for the OS-independent
3072acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3073debug version of the code includes the debug output trace mechanism and
3074has a much larger code and data size.
3075
3076  Current Release:
3077    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
3078    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
3079  Previous Release:
3080    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
3081    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
3082
30832) iASL Compiler/Disassembler and Tools:
3084
3085AcpiExec: Fixed a problem on unix systems where the original terminal
3086state was not always properly restored upon exit. Seen when using the -v
3087option. ACPICA BZ 1104.
3088
3089iASL: Fixed a problem with the validation of the ranges/length within the
3090Memory24 resource descriptor. There was a boundary condition when the
3091range was equal to the (length -1) caused by the fact that these values
3092are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
3093
3094Disassembler: Fixed a problem with the GpioInt descriptor interrupt
3095polarity
3096flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
3097is
3098now supported properly.
3099
3100ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
3101in the disassembler, data table compiler, and table template generator.
3102
3103iASL: Added a requirement for Device() objects that one of either a _HID
3104or _ADR must exist within the scope of a Device, as per the ACPI
3105specification. Remove a similar requirement that was incorrectly in place
3106for the _DSD object.
3107
3108iASL: Added error detection for illegal named references within control
3109methods that would cause runtime failures. Now trapped as errors are: 1)
3110References to objects within a non-parent control method. 2) Forward
3111references (within a method) -- for control methods, AML interpreters use
3112a one-pass parse of control methods. ACPICA BZ 1008.
3113
3114iASL: Added error checking for dependencies related to the _PSx power
3115methods. ACPICA BZ 1029.
31161) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
3117_PS3.
31182) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
3119scope.
3120
3121iASL and table compiler: Cleanup miscellaneous memory leaks by fully
3122deploying the existing object and string caches and adding new caches for
3123the table compiler.
3124
3125iASL: Split the huge parser source file into multiple subfiles to improve
3126manageability. Generation now requires the M4 macro preprocessor, which
3127is part of the Bison distribution on both unix and windows platforms.
3128
3129AcpiSrc: Fixed and removed all extraneous warnings generated during
3130entire ACPICA source code scan and/or conversion.
3131
3132
3133----------------------------------------
3134
313524 July 2014. Summary of changes for version 20140724:
3136
3137The ACPI 5.1 specification has been released and is available at:
3138http://uefi.org/specs/access
3139
3140
31410) ACPI 5.1 support in ACPICA:
3142
3143ACPI 5.1 is fully supported in ACPICA as of this release.
3144
3145New predefined names. Support includes iASL and runtime ACPICA
3146validation.
3147    _CCA (Cache Coherency Attribute).
3148    _DSD (Device-Specific Data). David Box.
3149
3150Modifications to existing ACPI tables. Support includes headers, iASL
3151Data Table compiler, disassembler, and the template generator.
3152    FADT - New fields and flags. Graeme Gregory.
3153    GTDT - One new subtable and new fields. Tomasz Nowicki.
3154    MADT - Two new subtables. Tomasz Nowicki.
3155    PCCT - One new subtable.
3156
3157Miscellaneous.
3158    New notification type for System Resource Affinity change events.
3159
3160
31611) ACPICA kernel-resident subsystem:
3162
3163Fixed a regression introduced in 20140627 where a fault can happen during
3164the deletion of Alias AML namespace objects. The problem affected both
3165the core ACPICA and the ACPICA tools including iASL and AcpiExec.
3166
3167Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
3168simple mechanism to enable wake GPEs that have no associated handler or
3169control method. Rafael Wysocki.
3170
3171Updated the AcpiEnableGpe interface to disallow the enable if there is no
3172handler or control method associated with the particular GPE. This will
3173help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
3174
3175Updated GPE handling and dispatch by disabling the GPE before clearing
3176the status bit for edge-triggered GPEs. Lv Zheng.
3177
3178Added Timer() support to the AML Debug object. The current timer value is
3179now displayed with each invocation of (Store to) the debug object to
3180enable simple generation of execution times for AML code (method
3181execution for example.) ACPICA BZ 1093.
3182
3183Example Code and Data Size: These are the sizes for the OS-independent
3184acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3185debug version of the code includes the debug output trace mechanism and
3186has a much larger code and data size.
3187
3188  Current Release:
3189    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
3190    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
3191  Previous Release:
3192    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
3193    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
3194
3195
31962) iASL Compiler/Disassembler and Tools:
3197
3198Fixed an issue with the recently added local printf implementation,
3199concerning width/precision specifiers that could cause incorrect output.
3200Lv Zheng. ACPICA BZ 1094.
3201
3202Disassembler: Added support to detect buffers that contain UUIDs and
3203disassemble them to an invocation of the ToUUID operator. Also emit
3204commented descriptions of known ACPI-related UUIDs.
3205
3206AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
3207-u. Adds three new files.
3208
3209iASL: Update table compiler and disassembler for DMAR table changes that
3210were introduced in September 2013. With assistance by David Woodhouse.
3211
3212----------------------------------------
321327 June 2014. Summary of changes for version 20140627:
3214
32151) ACPICA kernel-resident subsystem:
3216
3217Formatted Output: Implemented local versions of standard formatted output
3218utilities such as printf, etc. Over time, it has been discovered that
3219there are in fact many portability issues with printf, and the addition
3220of this feature will fix/prevent these issues once and for all. Some
3221known issues are summarized below:
3222
32231) Output of 64-bit values is not portable. For example, UINT64 is %ull
3224for the Linux kernel and is %uI64 for some MSVC versions.
32252) Invoking printf consistently in a manner that is portable across both
322632-bit and 64-bit platforms is difficult at best in many situations.
32273) The output format for pointers varies from system to system (leading
3228zeros especially), and leads to inconsistent output from ACPICA across
3229platforms.
32304) Certain platform-specific printf formats may conflict with ACPICA use.
32315) If there is no local C library available, ACPICA now has local support
3232for printf.
3233
3234-- To address these printf issues in a complete manner, ACPICA now
3235directly implements a small subset of printf format specifiers, only
3236those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
3237
3238Implemented support for ACPICA generation within the EFI environment.
3239Initially, the AcpiDump utility is supported in the UEFI shell
3240environment. Lv Zheng.
3241
3242Added a new external interface, AcpiLogError, to improve ACPICA
3243portability. This allows the host to redirect error messages from the
3244ACPICA utilities. Lv Zheng.
3245
3246Added and deployed new OSL file I/O interfaces to improve ACPICA
3247portability:
3248  AcpiOsOpenFile
3249  AcpiOsCloseFile
3250  AcpiOsReadFile
3251  AcpiOsWriteFile
3252  AcpiOsGetFileOffset
3253  AcpiOsSetFileOffset
3254There are C library implementations of these functions in the new file
3255service_layers/oslibcfs.c -- however, the functions can be implemented by
3256the local host in any way necessary. Lv Zheng.
3257
3258Implemented a mechanism to disable/enable ACPI table checksum validation
3259at runtime. This can be useful when loading tables very early during OS
3260initialization when it may not be possible to map the entire table in
3261order to compute the checksum. Lv Zheng.
3262
3263Fixed a buffer allocation issue for the Generic Serial Bus support.
3264Originally, a fixed buffer length was used. This change allows for
3265variable-length buffers based upon the protocol indicated by the field
3266access attributes. Reported by Lan Tianyu. Lv Zheng.
3267
3268Fixed a problem where an object detached from a namespace node was not
3269properly terminated/cleared and could cause a circular list problem if
3270reattached. ACPICA BZ 1063. David Box.
3271
3272Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
3273
3274Fixed a possible memory leak in an error return path within the function
3275AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
3276
3277Example Code and Data Size: These are the sizes for the OS-independent
3278acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3279debug version of the code includes the debug output trace mechanism and
3280has a much larger code and data size.
3281
3282  Current Release:
3283    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
3284    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
3285  Previous Release:
3286    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
3287    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
3288
3289
32902) iASL Compiler/Disassembler and Tools:
3291
3292Disassembler: Add dump of ASCII equivalent text within a comment at the
3293end of each line of the output for the Buffer() ASL operator.
3294
3295AcpiDump: Miscellaneous changes:
3296  Fixed repetitive table dump in -n mode.
3297  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
3298the ACPI 2.0 GUID fails.
3299
3300iASL: Fixed a problem where the compiler could fault if incorrectly given
3301an acpidump output file as input. ACPICA BZ 1088. David Box.
3302
3303AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
3304they are invoked without any arguments.
3305
3306Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
33071086. Colin Ian King.
3308
3309Disassembler: Cleaned up a block of code that extracts a parent Op
3310object. Added a comment that explains that the parent is guaranteed to be
3311valid in this case. ACPICA BZ 1069.
3312
3313
3314----------------------------------------
331524 April 2014. Summary of changes for version 20140424:
3316
33171) ACPICA kernel-resident subsystem:
3318
3319Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
3320Some of these tables are known to contain a trailing NULL entry. Lv
3321Zheng.
3322
3323Removed an extraneous error message for the case where there are a large
3324number of system GPEs (> 124). This was the "32-bit FADT register is too
3325long to convert to GAS struct" message, which is irrelevant for GPEs
3326since the GPEx_BLK_LEN fields of the FADT are always used instead of the
3327(limited capacity) GAS bit length. Also, several changes to ensure proper
3328support for GPE numbers > 255, where some "GPE number" fields were 8-bits
3329internally.
3330
3331Implemented and deployed additional configuration support for the public
3332ACPICA external interfaces. Entire classes of interfaces can now be
3333easily modified or configured out, replaced by stubbed inline functions
3334by default. Lv Zheng.
3335
3336Moved all public ACPICA runtime configuration globals to the public
3337ACPICA external interface file for convenience. Also, removed some
3338obsolete/unused globals. See the file acpixf.h. Lv Zheng.
3339
3340Documentation: Added a new section to the ACPICA reference describing the
3341maximum number of GPEs that can be supported by the FADT-defined GPEs in
3342block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
3343reference.
3344
3345Example Code and Data Size: These are the sizes for the OS-independent
3346acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3347debug version of the code includes the debug output trace mechanism and
3348has a much larger code and data size.
3349
3350  Current Release:
3351    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
3352    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
3353  Previous Release:
3354    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
3355    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
3356
3357
33582) iASL Compiler/Disassembler and Tools:
3359
3360iASL and disassembler: Add full support for the LPIT table (Low Power
3361Idle Table). Includes support in the disassembler, data table compiler,
3362and template generator.
3363
3364AcpiDump utility:
33651) Add option to force the use of the RSDT (over the XSDT).
33662) Improve validation of the RSDP signature (use 8 chars instead of 4).
3367
3368iASL: Add check for predefined packages that are too large.  For
3369predefined names that contain subpackages, check if each subpackage is
3370too large. (Check for too small already exists.)
3371
3372Debugger: Updated the GPE command (which simulates a GPE by executing the
3373GPE code paths in ACPICA). The GPE device is now optional, and defaults
3374to the GPE 0/1 FADT-defined blocks.
3375
3376Unix application OSL: Update line-editing support. Add additional error
3377checking and take care not to reset terminal attributes on exit if they
3378were never set. This should help guarantee that the terminal is always
3379left in the previous state on program exit.
3380
3381
3382----------------------------------------
338325 March 2014. Summary of changes for version 20140325:
3384
33851) ACPICA kernel-resident subsystem:
3386
3387Updated the auto-serialize feature for control methods. This feature
3388automatically serializes all methods that create named objects in order
3389to prevent runtime errors. The update adds support to ignore the
3390currently executing AML SyncLevel when invoking such a method, in order
3391to prevent disruption of any existing SyncLevel priorities that may exist
3392in the AML code. Although the use of SyncLevels is relatively rare, this
3393change fixes a regression where an AE_AML_MUTEX_ORDER exception can
3394appear on some machines starting with the 20140214 release.
3395
3396Added a new external interface to allow the host to install ACPI tables
3397very early, before the namespace is even created. AcpiInstallTable gives
3398the host additional flexibility for ACPI table management. Tables can be
3399installed directly by the host as if they had originally appeared in the
3400XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
3401(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
3402with additional internal restructuring and cleanup. See the ACPICA
3403Reference for interface details. Lv Zheng.
3404
3405Added validation of the checksum for all incoming dynamically loaded
3406tables (via external interfaces or via AML Load/LoadTable operators). Lv
3407Zheng.
3408
3409Updated the use of the AcpiOsWaitEventsComplete interface during Notify
3410and GPE handler removal. Restructured calls to eliminate possible race
3411conditions. Lv Zheng.
3412
3413Added a warning for the use/execution of the ASL/AML Unload (table)
3414operator. This will help detect and identify machines that use this
3415operator if and when it is ever used. This operator has never been seen
3416in the field and the usage model and possible side-effects of the drastic
3417runtime action of a full table removal are unknown.
3418
3419Reverted the use of #pragma push/pop which was introduced in the 20140214
3420release. It appears that push and pop are not implemented by enough
3421compilers to make the use of this feature feasible for ACPICA at this
3422time. However, these operators may be deployed in a future ACPICA
3423release.
3424
3425Added the missing EXPORT_SYMBOL macros for the install and remove SCI
3426handler interfaces.
3427
3428Source code generation:
34291) Disabled the use of the "strchr" macro for the gcc-specific
3430generation. For some versions of gcc, this macro can periodically expose
3431a compiler bug which in turn causes compile-time error(s).
34322) Added support for PPC64 compilation. Colin Ian King.
3433
3434Example Code and Data Size: These are the sizes for the OS-independent
3435acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3436debug version of the code includes the debug output trace mechanism and
3437has a much larger code and data size.
3438
3439  Current Release:
3440    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
3441    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
3442  Previous Release:
3443    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
3444    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
3445
3446
34472) iASL Compiler/Disassembler and Tools:
3448
3449Disassembler: Added several new features to improve the readability of
3450the resulting ASL code. Extra information is emitted within comment
3451fields in the ASL code:
34521) Known _HID/_CID values are decoded to descriptive text.
34532) Standard values for the Notify() operator are decoded to descriptive
3454text.
34553) Target operands are expanded to full pathnames (in a comment) when
3456possible.
3457
3458Disassembler: Miscellaneous updates for extern() handling:
34591) Abort compiler if file specified by -fe option does not exist.
34602) Silence unnecessary warnings about argument count mismatches.
34613) Update warning messages concerning unresolved method externals.
34624) Emit "UnknownObj" keyword for externals whose type cannot be
3463determined.
3464
3465AcpiHelp utility:
34661) Added the -a option to display both the ASL syntax and the AML
3467encoding for an input ASL operator. This effectively displays all known
3468information about an ASL operator with one AcpiHelp invocation.
34692) Added substring match support (similar to a wildcard) for the -i
3470(_HID/PNP IDs) option.
3471
3472iASL/Disassembler: Since this tool does not yet support execution on big-
3473endian machines, added detection of endianness and an error message if
3474execution is attempted on big-endian. Support for big-endian within iASL
3475is a feature that is on the ACPICA to-be-done list.
3476
3477AcpiBin utility:
34781) Remove option to extract binary files from an acpidump; this function
3479is made obsolete by the AcpiXtract utility.
34802) General cleanup of open files and allocated buffers.
3481
3482
3483----------------------------------------
348414 February 2014. Summary of changes for version 20140214:
3485
34861) ACPICA kernel-resident subsystem:
3487
3488Implemented a new mechanism to proactively prevent problems with ill-
3489behaved reentrant control methods that create named ACPI objects. This
3490behavior is illegal as per the ACPI specification, but is nonetheless
3491frequently seen in the field. Previously, this could lead to an
3492AE_ALREADY_EXISTS exception if the method was actually entered by more
3493than one thread. This new mechanism detects such methods at table load
3494time and marks them "serialized" to prevent reentrancy. A new global
3495option, AcpiGbl_AutoSerializeMethods, has been added to disable this
3496feature if desired. This mechanism and global option obsoletes and
3497supersedes the previous AcpiGbl_SerializeAllMethods option.
3498
3499Added the "Windows 2013" string to the _OSI support. ACPICA will now
3500respond TRUE to _OSI queries with this string. It is the stated policy of
3501ACPICA to add new strings to the _OSI support as soon as possible after
3502they are defined. See the full ACPICA _OSI policy which has been added to
3503the utilities/utosi.c file.
3504
3505Hardened/updated the _PRT return value auto-repair code:
35061) Do not abort the repair on a single subpackage failure, continue to
3507check all subpackages.
35082) Add check for the minimum subpackage length (4).
35093) Properly handle extraneous NULL package elements.
3510
3511Added support to avoid the possibility of infinite loops when traversing
3512object linked lists. Never allow an infinite loop, even in the face of
3513corrupted object lists.
3514
3515ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
3516pack(pop) directives to ensure that the ACPICA headers are independent of
3517compiler settings or other host headers.
3518
3519Example Code and Data Size: These are the sizes for the OS-independent
3520acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3521debug version of the code includes the debug output trace mechanism and
3522has a much larger code and data size.
3523
3524  Current Release:
3525    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
3526    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
3527  Previous Release:
3528    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
3529    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
3530
3531
35322) iASL Compiler/Disassembler and Tools:
3533
3534iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
3535first reserved field was incorrectly forced to have a value of zero. This
3536change correctly forces the field to have a value of one. ACPICA BZ 1081.
3537
3538Debugger: Added missing support for the "Extra" and "Data" subobjects
3539when displaying object data.
3540
3541Debugger: Added support to display entire object linked lists when
3542displaying object data.
3543
3544iASL: Removed the obsolete -g option to obtain ACPI tables from the
3545Windows registry. This feature has been superseded by the acpidump
3546utility.
3547
3548
3549----------------------------------------
355014 January 2014. Summary of changes for version 20140114:
3551
35521) ACPICA kernel-resident subsystem:
3553
3554Updated all ACPICA copyrights and signons to 2014. Added the 2014
3555copyright to all module headers and signons, including the standard Linux
3556header. This affects virtually every file in the ACPICA core subsystem,
3557iASL compiler, all ACPICA utilities, and the test suites.
3558
3559Improved parameter validation for AcpiInstallGpeBlock. Added the
3560following checks:
35611) The incoming device handle refers to type ACPI_TYPE_DEVICE.
35622) There is not already a GPE block attached to the device.
3563Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
3564device.
3565
3566Correctly support "references" in the ACPI_OBJECT. This change fixes the
3567support to allow references (namespace nodes) to be passed as arguments
3568to control methods via the evaluate object interface. This is probably
3569most useful for testing purposes, however.
3570
3571Improved support for 32/64 bit physical addresses in printf()-like
3572output. This change improves the support for physical addresses in printf
3573debug statements and other output on both 32-bit and 64-bit hosts. It
3574consistently outputs the appropriate number of bytes for each host. The
3575%p specifier is unsatisfactory since it does not emit uniform output on
3576all hosts/clib implementations (on some, leading zeros are not supported,
3577leading to difficult-to-read output).
3578
3579Example Code and Data Size: These are the sizes for the OS-independent
3580acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3581debug version of the code includes the debug output trace mechanism and
3582has a much larger code and data size.
3583
3584  Current Release:
3585    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
3586    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
3587  Previous Release:
3588    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
3589    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
3590
3591
35922) iASL Compiler/Disassembler and Tools:
3593
3594iASL: Fix a possible fault when using the Connection() operator. Fixes a
3595problem if the parent Field definition for the Connection operator refers
3596to an operation region that does not exist. ACPICA BZ 1064.
3597
3598AcpiExec: Load of local test tables is now optional. The utility has the
3599capability to load some various tables to test features of ACPICA.
3600However, there are enough of them that the output of the utility became
3601confusing. With this change, only the required local tables are displayed
3602(RSDP, XSDT, etc.) along with the actual tables loaded via the command
3603line specification. This makes the default output simler and easier to
3604understand. The -el command line option restores the original behavior
3605for testing purposes.
3606
3607AcpiExec: Added support for overlapping operation regions. This change
3608expands the simulation of operation regions by supporting regions that
3609overlap within the given address space. Supports SystemMemory and
3610SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
3611
3612AcpiExec: Added region handler support for PCI_Config and EC spaces. This
3613allows AcpiExec to simulate these address spaces, similar to the current
3614support for SystemMemory and SystemIO.
3615
3616Debugger: Added new command to read/write/compare all namespace objects.
3617The command "test objects" will exercise the entire namespace by writing
3618new values to each data object, and ensuring that the write was
3619successful. The original value is then restored and verified.
3620
3621Debugger: Added the "test predefined" command. This change makes this
3622test public and puts it under the new "test" command. The test executes
3623each and every predefined name within the current namespace.
3624
3625
3626----------------------------------------
362718 December 2013. Summary of changes for version 20131218:
3628
3629Global note: The ACPI 5.0A specification was released this month. There
3630are no changes needed for ACPICA since this release of ACPI is an
3631errata/clarification release. The specification is available at
3632acpi.info.
3633
3634
36351) ACPICA kernel-resident subsystem:
3636
3637Added validation of the XSDT root table if it is present. Some older
3638platforms contain an XSDT that is ill-formed or otherwise invalid (such
3639as containing some or all entries that are NULL pointers). This change
3640adds a new function to validate the XSDT before actually using it. If the
3641XSDT is found to be invalid, ACPICA will now automatically fall back to
3642using the RSDT instead. Original implementation by Zhao Yakui. Ported to
3643ACPICA and enhanced by Lv Zheng and Bob Moore.
3644
3645Added a runtime option to ignore the XSDT and force the use of the RSDT.
3646This change adds a runtime option that will force ACPICA to use the RSDT
3647instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
3648requires that an XSDT be used instead of the RSDT, the XSDT has been
3649found to be corrupt or ill-formed on some machines. Lv Zheng.
3650
3651Added a runtime option to favor 32-bit FADT register addresses over the
365264-bit addresses. This change adds an option to favor 32-bit FADT
3653addresses when there is a conflict between the 32-bit and 64-bit versions
3654of the same register. The default behavior is to use the 64-bit version
3655in accordance with the ACPI specification. This can now be overridden via
3656the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
3657
3658During the change above, the internal "Convert FADT" and "Verify FADT"
3659functions have been merged to simplify the code, making it easier to
3660understand and maintain. ACPICA BZ 933.
3661
3662Improve exception reporting and handling for GPE block installation.
3663Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
3664status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
3665
3666Added helper macros to extract bus/segment numbers from the HEST table.
3667This change adds two macros to extract the encoded bus and segment
3668numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
3669Betty Dall <betty.dall@hp.com>
3670
3671Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
3672by ACPICA. It is not a public macro, so it should have no effect on
3673existing OSV code. Lv Zheng.
3674
3675Example Code and Data Size: These are the sizes for the OS-independent
3676acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3677debug version of the code includes the debug output trace mechanism and
3678has a much larger code and data size.
3679
3680  Current Release:
3681    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
3682    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
3683  Previous Release:
3684    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
3685    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
3686
3687
36882) iASL Compiler/Disassembler and Tools:
3689
3690Disassembler: Improved pathname support for emitted External()
3691statements. This change adds full pathname support for external names
3692that have been resolved internally by the inclusion of additional ACPI
3693tables (via the iASL -e option). Without this change, the disassembler
3694can emit multiple externals for the same object, or it become confused
3695when the Scope() operator is used on an external object. Overall, greatly
3696improves the ability to actually recompile the emitted ASL code when
3697objects a referenced across multiple ACPI tables. Reported by Michael
3698Tsirkin (mst@redhat.com).
3699
3700Tests/ASLTS: Updated functional control suite to execute with no errors.
3701David Box. Fixed several errors related to the testing of the interpreter
3702slack mode. Lv Zheng.
3703
3704iASL: Added support to detect names that are declared within a control
3705method, but are unused (these are temporary names that are only valid
3706during the time the method is executing). A remark is issued for these
3707cases. ACPICA BZ 1022.
3708
3709iASL: Added full support for the DBG2 table. Adds full disassembler,
3710table compiler, and template generator support for the DBG2 table (Debug
3711Port 2 table).
3712
3713iASL: Added full support for the PCCT table, update the table definition.
3714Updates the PCCT table definition in the actbl3.h header and adds table
3715compiler and template generator support.
3716
3717iASL: Added an option to emit only error messages (no warnings/remarks).
3718The -ve option will enable only error messages, warnings and remarks are
3719suppressed. This can simplify debugging when only the errors are
3720important, such as when an ACPI table is disassembled and there are many
3721warnings and remarks -- but only the actual errors are of real interest.
3722
3723Example ACPICA code (source/tools/examples): Updated the example code so
3724that it builds to an actual working program, not just example code. Added
3725ACPI tables and execution of an example control method in the DSDT. Added
3726makefile support for Unix generation.
3727
3728
3729----------------------------------------
373015 November 2013. Summary of changes for version 20131115:
3731
3732This release is available at https://acpica.org/downloads
3733
3734
37351) ACPICA kernel-resident subsystem:
3736
3737Resource Manager: Fixed loop termination for the "get AML length"
3738function. The loop previously had an error termination on a NULL resource
3739pointer, which can never happen since the loop simply increments a valid
3740resource pointer. This fix changes the loop to terminate with an error on
3741an invalid end-of-buffer condition. The problem can be seen as an
3742infinite loop by callers to AcpiSetCurrentResources with an invalid or
3743corrupted resource descriptor, or a resource descriptor that is missing
3744an END_TAG descriptor. Reported by Dan Carpenter
3745<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
3746
3747Table unload and ACPICA termination: Delete all attached data objects
3748during namespace node deletion. This fix updates namespace node deletion
3749to delete the entire list of attached objects (attached via
3750AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
37511024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
3752
3753ACPICA termination: Added support to delete all objects attached to the
3754root namespace node. This fix deletes any and all objects that have been
3755attached to the root node via AcpiAttachData. Previously, none of these
3756objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
3757
3758Debug output: Do not emit the function nesting level for the in-kernel
3759build. The nesting level is really only useful during a single-thread
3760execution. Therefore, only enable this output for the AcpiExec utility.
3761Also, only emit the thread ID when executing under AcpiExec (Context
3762switches are still always detected and a message is emitted). ACPICA BZ
3763972.
3764
3765Example Code and Data Size: These are the sizes for the OS-independent
3766acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3767debug version of the code includes the debug output trace mechanism and
3768has a much larger code and data size.
3769
3770  Current Release:
3771    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
3772    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
3773  Previous Release:
3774    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
3775    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
3776
3777
37782) iASL Compiler/Disassembler and Tools:
3779
3780AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
3781correct portable POSIX header for terminal control functions.
3782
3783Disassembler: Fixed control method invocation issues related to the use
3784of the CondRefOf() operator. The problem is seen in the disassembly where
3785control method invocations may not be disassembled properly if the
3786control method name has been used previously as an argument to CondRefOf.
3787The solution is to not attempt to emit an external declaration for the
3788CondRefOf target (it is not necessary in the first place). This prevents
3789disassembler object type confusion. ACPICA BZ 988.
3790
3791Unix Makefiles: Added an option to disable compiler optimizations and the
3792_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
3793with optimizations (reportedly, gcc 4.4 for example). This change adds a
3794command line option for make (NOOPT) that disables all compiler
3795optimizations and the _FORTIFY_SOURCE compiler flag. The default
3796optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
37971034. Lv Zheng, Bob Moore.
3798
3799Tests/ASLTS: Added options to specify individual test cases and modes.
3800This allows testers running aslts.sh to optionally specify individual
3801test modes and test cases. Also added an option to disable the forced
3802generation of the ACPICA tools from source if desired. Lv Zheng.
3803
3804----------------------------------------
380527 September 2013. Summary of changes for version 20130927:
3806
3807This release is available at https://acpica.org/downloads
3808
3809
38101) ACPICA kernel-resident subsystem:
3811
3812Fixed a problem with store operations to reference objects. This change
3813fixes a problem where a Store operation to an ArgX object that contained
3814a
3815reference to a field object did not complete the automatic dereference
3816and
3817then write to the actual field object. Instead, the object type of the
3818field object was inadvertently changed to match the type of the source
3819operand. The new behavior will actually write to the field object (buffer
3820field or field unit), thus matching the correct ACPI-defined behavior.
3821
3822Implemented support to allow the host to redefine individual OSL
3823prototypes. This change enables the host to redefine OSL prototypes found
3824in the acpiosxf.h file. This allows the host to implement OSL interfaces
3825with a macro or inlined function. Further, it allows the host to add any
3826additional required modifiers such as __iomem, __init, __exit, etc., as
3827necessary on a per-interface basis. Enables maximum flexibility for the
3828OSL interfaces. Lv Zheng.
3829
3830Hardcoded the access width for the FADT-defined reset register. The ACPI
3831specification requires the reset register width to be 8 bits. ACPICA now
3832hardcodes the width to 8 and ignores the FADT width value. This provides
3833compatibility with other ACPI implementations that have allowed BIOS code
3834with bad register width values to go unnoticed. Matthew Garett, Bob
3835Moore,
3836Lv Zheng.
3837
3838Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
3839used
3840in the OSL header (acpiosxf). The change modifies the position of this
3841macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
3842build issues if the OSL defines the implementation of the interface to be
3843an inline stub function. Lv Zheng.
3844
3845Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
3846initialization interfaces. This change adds a new macro for the main init
3847and terminate external interfaces in order to support hosts that require
3848additional or different processing for these functions. Changed from
3849ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
3850Zheng, Bob Moore.
3851
3852Cleaned up the memory allocation macros for configurability. In the
3853common
3854case, the ACPI_ALLOCATE and related macros now resolve directly to their
3855respective AcpiOs* OSL interfaces. Two options:
38561) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
3857default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
38582) For AcpiExec (and for debugging), the macros can optionally be
3859resolved
3860to the local ACPICA interfaces that track each allocation (local tracking
3861is used to immediately detect memory leaks).
3862Lv Zheng.
3863
3864Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
3865to predefine this macro to either TRUE or FALSE during the system build.
3866
3867Replaced __FUNCTION_ with __func__ in the gcc-specific header.
3868
3869Example Code and Data Size: These are the sizes for the OS-independent
3870acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3871debug version of the code includes the debug output trace mechanism and
3872has a much larger code and data size.
3873
3874  Current Release:
3875    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
3876    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
3877  Previous Release:
3878    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
3879    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
3880
3881
38822) iASL Compiler/Disassembler and Tools:
3883
3884iASL: Implemented wildcard support for the -e option. This simplifies use
3885when there are many SSDTs that must be included to resolve external
3886method
3887declarations. ACPICA BZ 1041. Example:
3888    iasl -e ssdt*.dat -d dsdt.dat
3889
3890AcpiExec: Add history/line-editing for Unix/Linux systems. This change
3891adds a portable module that implements full history and limited line
3892editing for Unix and Linux systems. It does not use readline() due to
3893portability issues. Instead it uses the POSIX termio interface to put the
3894terminal in raw input mode so that the various special keys can be
3895trapped
3896(such as up/down-arrow for history support and left/right-arrow for line
3897editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
3898
3899AcpiXtract: Add support to handle (ignore) "empty" lines containing only
3900one or more spaces. This provides compatible with early or different
3901versions of the AcpiDump utility. ACPICA BZ 1044.
3902
3903AcpiDump: Do not ignore tables that contain only an ACPI table header.
3904Apparently, some BIOSs create SSDTs that contain an ACPI table header but
3905no other data. This change adds support to dump these tables. Any tables
3906shorter than the length of an ACPI table header remain in error (an error
3907message is emitted). Reported by Yi Li.
3908
3909Debugger: Echo actual command along with the "unknown command" message.
3910
3911----------------------------------------
391223 August 2013. Summary of changes for version 20130823:
3913
39141) ACPICA kernel-resident subsystem:
3915
3916Implemented support for host-installed System Control Interrupt (SCI)
3917handlers. Certain ACPI functionality requires the host to handle raw
3918SCIs. For example, the "SCI Doorbell" that is defined for memory power
3919state support requires the host device driver to handle SCIs to examine
3920if the doorbell has been activated. Multiple SCI handlers can be
3921installed to allow for future expansion. New external interfaces are
3922AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
3923details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
3924
3925Operation region support: Never locally free the handler "context"
3926pointer. This change removes some dangerous code that attempts to free
3927the handler context pointer in some (rare) circumstances. The owner of
3928the handler owns this pointer and the ACPICA code should never touch it.
3929Although not seen to be an issue in any kernel, it did show up as a
3930problem (fault) under AcpiExec. Also, set the internal storage field for
3931the context pointer to zero when the region is deactivated, simply for
3932sanity. David Box. ACPICA BZ 1039.
3933
3934AcpiRead: On error, do not modify the return value target location. If an
3935error happens in the middle of a split 32/32 64-bit I/O operation, do not
3936modify the target of the return value pointer. Makes the code consistent
3937with the rest of ACPICA. Bjorn Helgaas.
3938
3939Example Code and Data Size: These are the sizes for the OS-independent
3940acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3941debug version of the code includes the debug output trace mechanism and
3942has a much larger code and data size.
3943
3944  Current Release:
3945    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
3946    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
3947  Previous Release:
3948    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
3949    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
3950
3951
39522) iASL Compiler/Disassembler and Tools:
3953
3954AcpiDump: Implemented several new features and fixed some problems:
39551) Added support to dump the RSDP, RSDT, and XSDT tables.
39562) Added support for multiple table instances (SSDT, UEFI).
39573) Added option to dump "customized" (overridden) tables (-c).
39584) Fixed a problem where some table filenames were improperly
3959constructed.
39605) Improved some error messages, removed some unnecessary messages.
3961
3962iASL: Implemented additional support for disassembly of ACPI tables that
3963contain invocations of external control methods. The -fe<file> option
3964allows the import of a file that specifies the external methods along
3965with the required number of arguments for each -- allowing for the
3966correct disassembly of the table. This is a workaround for a limitation
3967of AML code where the disassembler often cannot determine the number of
3968arguments required for an external control method and generates incorrect
3969ASL code. See the iASL reference for details. ACPICA BZ 1030.
3970
3971Debugger: Implemented a new command (paths) that displays the full
3972pathnames (namepaths) and object types of all objects in the namespace.
3973This is an alternative to the namespace command.
3974
3975Debugger: Implemented a new command (sci) that invokes the SCI dispatch
3976mechanism and any installed handlers.
3977
3978iASL: Fixed a possible segfault for "too many parent prefixes" condition.
3979This can occur if there are too many parent prefixes in a namepath (for
3980example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
3981
3982Application OSLs: Set the return value for the PCI read functions. These
3983functions simply return AE_OK, but should set the return value to zero
3984also. This change implements this. ACPICA BZ 1038.
3985
3986Debugger: Prevent possible command line buffer overflow. Increase the
3987size of a couple of the debugger line buffers, and ensure that overflow
3988cannot happen. ACPICA BZ 1037.
3989
3990iASL: Changed to abort immediately on serious errors during the parsing
3991phase. Due to the nature of ASL, there is no point in attempting to
3992compile these types of errors, and they typically end up causing a
3993cascade of hundreds of errors which obscure the original problem.
3994
3995----------------------------------------
399625 July 2013. Summary of changes for version 20130725:
3997
39981) ACPICA kernel-resident subsystem:
3999
4000Fixed a problem with the DerefOf operator where references to FieldUnits
4001and BufferFields incorrectly returned the parent object, not the actual
4002value of the object. After this change, a dereference of a FieldUnit
4003reference results in a read operation on the field to get the value, and
4004likewise, the appropriate BufferField value is extracted from the target
4005buffer.
4006
4007Fixed a problem where the _WAK method could cause a fault under these
4008circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
4009method returned no value. The problem is rarely seen because most kernels
4010run ACPICA in slack mode.
4011
4012For the DerefOf operator, a fatal error now results if an attempt is made
4013to dereference a reference (created by the Index operator) to a NULL
4014package element. Provides compatibility with other ACPI implementations,
4015and this behavior will be added to a future version of the ACPI
4016specification.
4017
4018The ACPI Power Management Timer (defined in the FADT) is now optional.
4019This provides compatibility with other ACPI implementations and will
4020appear in the next version of the ACPI specification. If there is no PM
4021Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
4022zero in the FADT indicates no PM timer.
4023
4024Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
4025allows the host to globally enable/disable all vendor strings, all
4026feature strings, or both. Intended to be primarily used for debugging
4027purposes only. Lv Zheng.
4028
4029Expose the collected _OSI data to the host via a global variable. This
4030data tracks the highest level vendor ID that has been invoked by the BIOS
4031so that the host (and potentially ACPICA itself) can change behaviors
4032based upon the age of the BIOS.
4033
4034Example Code and Data Size: These are the sizes for the OS-independent
4035acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4036debug version of the code includes the debug output trace mechanism and
4037has a much larger code and data size.
4038
4039  Current Release:
4040    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
4041    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
4042  Previous Release:
4043    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
4044    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
4045
4046
40472) iASL Compiler/Disassembler and Tools:
4048
4049iASL: Created the following enhancements for the -so option (create
4050offset table):
40511)Add offsets for the last nameseg in each namepath for every supported
4052object type
40532)Add support for Processor, Device, Thermal Zone, and Scope objects
40543)Add the actual AML opcode for the parent object of every supported
4055object type
40564)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
4057
4058Disassembler: Emit all unresolved external symbols in a single block.
4059These are external references to control methods that could not be
4060resolved, and thus, the disassembler had to make a guess at the number of
4061arguments to parse.
4062
4063iASL: The argument to the -T option (create table template) is now
4064optional. If not specified, the default table is a DSDT, typically the
4065most common case.
4066
4067----------------------------------------
406826 June 2013. Summary of changes for version 20130626:
4069
40701) ACPICA kernel-resident subsystem:
4071
4072Fixed an issue with runtime repair of the _CST object. Null or invalid
4073elements were not always removed properly. Lv Zheng.
4074
4075Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
4076FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
4077the maximum number of GPEs is 1016. Use of multiple GPE block devices
4078makes the system-wide number of GPEs essentially unlimited.
4079
4080Example Code and Data Size: These are the sizes for the OS-independent
4081acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4082debug version of the code includes the debug output trace mechanism and
4083has a much larger code and data size.
4084
4085  Current Release:
4086    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
4087    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
4088  Previous Release:
4089    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
4090    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
4091
4092
40932) iASL Compiler/Disassembler and Tools:
4094
4095Portable AcpiDump: Implemented full support for the Linux and FreeBSD
4096hosts. Now supports Linux, FreeBSD, and Windows.
4097
4098Disassembler: Added some missing types for the HEST and EINJ tables: "Set
4099Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
4100
4101iASL/Preprocessor: Implemented full support for nested
4102#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
4103
4104Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
4105max. The original purpose of this constraint was to limit the amount of
4106debug output. However, the string function in question (UtPrintString) is
4107now used for the disassembler also, where 256 bytes is insufficient.
4108Reported by RehabMan@GitHub.
4109
4110iASL/DataTables: Fixed some problems and issues with compilation of DMAR
4111tables. ACPICA BZ 999. Lv Zheng.
4112
4113iASL: Fixed a couple of error exit issues that could result in a "Could
4114not delete <file>" message during ASL compilation.
4115
4116AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
4117the actual signatures for these tables are "FACP" and "APIC",
4118respectively.
4119
4120AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
4121tables are allowed to have multiple instances.
4122
4123----------------------------------------
412417 May 2013. Summary of changes for version 20130517:
4125
41261) ACPICA kernel-resident subsystem:
4127
4128Fixed a regression introduced in version 20130328 for _INI methods. This
4129change fixes a problem introduced in 20130328 where _INI methods are no
4130longer executed properly because of a memory block that was not
4131initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
4132<tomasz.nowicki@linaro.org>.
4133
4134Fixed a possible problem with the new extended sleep registers in the
4135ACPI
41365.0 FADT. Do not use these registers (even if populated) unless the HW-
4137reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
41381020. Lv Zheng.
4139
4140Implemented return value repair code for _CST predefined objects: Sort
4141the
4142list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
4143
4144Implemented a debug-only option to disable loading of SSDTs from the
4145RSDT/XSDT during ACPICA initialization. This can be useful for debugging
4146ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
4147acglobal.h - ACPICA BZ 1005. Lv Zheng.
4148
4149Fixed some issues in the ACPICA initialization and termination code:
4150Tomasz Nowicki <tomasz.nowicki@linaro.org>
41511) Clear events initialized flag upon event component termination. ACPICA
4152BZ 1013.
41532) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
41543) Delete global lock pending lock during termination. ACPICA BZ 1012.
41554) Clear debug buffer global on termination to prevent possible multiple
4156delete. ACPICA BZ 1010.
4157
4158Standardized all switch() blocks across the entire source base. After
4159many
4160years, different formatting for switch() had crept in. This change makes
4161the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
4162
4163Split some files to enhance ACPICA modularity and configurability:
41641) Split buffer dump routines into utilities/utbuffer.c
41652) Split internal error message routines into utilities/uterror.c
41663) Split table print utilities into tables/tbprint.c
41674) Split iASL command-line option processing into asloptions.c
4168
4169Makefile enhancements:
41701) Support for all new files above.
41712) Abort make on errors from any subcomponent. Chao Guan.
41723) Add build support for Apple Mac OS X. Liang Qi.
4173
4174Example Code and Data Size: These are the sizes for the OS-independent
4175acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4176debug version of the code includes the debug output trace mechanism and
4177has a much larger code and data size.
4178
4179  Current Release:
4180    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
4181    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
4182  Previous Release:
4183    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
4184    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
4185
4186
41872) iASL Compiler/Disassembler and Tools:
4188
4189New utility: Implemented an easily portable version of the acpidump
4190utility to extract ACPI tables from the system (or a file) in an ASCII
4191hex
4192dump format. The top-level code implements the various command line
4193options, file I/O, and table dump routines. To port to a new host, only
4194three functions need to be implemented to get tables -- since this
4195functionality is OS-dependent. See the tools/acpidump/apmain.c module and
4196the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
41971) The Windows version obtains the ACPI tables from the Registry.
41982) The Linux version is under development.
41993) Other hosts - If an OS-dependent module is submitted, it will be
4200distributed with ACPICA.
4201
4202iASL: Fixed a regression for -D preprocessor option (define symbol). A
4203restructuring/change to the initialization sequence caused this option to
4204no longer work properly.
4205
4206iASL: Implemented a mechanism to disable specific warnings and remarks.
4207Adds a new command line option, "-vw <messageid> as well as "#pragma
4208disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
4209
4210iASL: Fix for too-strict package object validation. The package object
4211validation for return values from the predefined names is a bit too
4212strict, it does not allow names references within the package (which will
4213be resolved at runtime.) These types of references cannot be validated at
4214compile time. This change ignores named references within package objects
4215for names that return or define static packages.
4216
4217Debugger: Fixed the 80-character command line limitation for the History
4218command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
4219
4220iASL: Added control method and package support for the -so option
4221(generates AML offset table for BIOS support.)
4222
4223iASL: issue a remark if a non-serialized method creates named objects. If
4224a thread blocks within the method for any reason, and another thread
4225enters the method, the method will fail because an attempt will be made
4226to
4227create the same (named) object twice. In this case, issue a remark that
4228the method should be marked serialized. NOTE: may become a warning later.
4229ACPICA BZ 909.
4230
4231----------------------------------------
423218 April 2013. Summary of changes for version 20130418:
4233
42341) ACPICA kernel-resident subsystem:
4235
4236Fixed a possible buffer overrun during some rare but specific field unit
4237read operations. This overrun can only happen if the DSDT version is 1 --
4238meaning that all AML integers are 32 bits -- and the field length is
4239between 33 and 55 bits long. During the read, an internal buffer object
4240is
4241created for the field unit because the field is larger than an integer
4242(32
4243bits). However, in this case, the buffer will be incorrectly written
4244beyond the end because the buffer length is less than the internal
4245minimum
4246of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
4247long, but a full 8 bytes will be written.
4248
4249Updated the Embedded Controller "orphan" _REG method support. This refers
4250to _REG methods under the EC device that have no corresponding operation
4251region. This is allowed by the ACPI specification. This update removes a
4252dependency on the existence an ECDT table. It will execute an orphan _REG
4253method as long as the operation region handler for the EC is installed at
4254the EC device node and not the namespace root. Rui Zhang (original
4255update), Bob Moore (update/integrate).
4256
4257Implemented run-time argument typechecking for all predefined ACPI names
4258(_STA, _BIF, etc.) This change performs object typechecking on all
4259incoming arguments for all predefined names executed via
4260AcpiEvaluateObject. This ensures that ACPI-related device drivers are
4261passing correct object types as well as the correct number of arguments
4262(therefore identifying any issues immediately). Also, the ASL/namespace
4263definition of the predefined name is checked against the ACPI
4264specification for the proper argument count. Adds one new file,
4265nsarguments.c
4266
4267Changed an exception code for the ASL UnLoad() operator. Changed the
4268exception code for the case where the input DdbHandle is invalid, from
4269AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
4270
4271Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
4272global makefile. The use of this flag causes compiler errors on earlier
4273versions of GCC, so it has been removed for compatibility.
4274
4275Miscellaneous cleanup:
42761) Removed some unused/obsolete macros
42772) Fixed a possible memory leak in the _OSI support
42783) Removed an unused variable in the predefined name support
42794) Windows OSL: remove obsolete reference to a memory list field
4280
4281Example Code and Data Size: These are the sizes for the OS-independent
4282acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4283debug version of the code includes the debug output trace mechanism and
4284has a much larger code and data size.
4285
4286  Current Release:
4287    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
4288    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
4289  Previous Release:
4290    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
4291    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
4292
4293
42942) iASL Compiler/Disassembler and Tools:
4295
4296AcpiExec: Added installation of a handler for the SystemCMOS address
4297space. This prevents control method abort if a method accesses this
4298space.
4299
4300AcpiExec: Added support for multiple EC devices, and now install EC
4301operation region handler(s) at the actual EC device instead of the
4302namespace root. This reflects the typical behavior of host operating
4303systems.
4304
4305AcpiExec: Updated to ensure that all operation region handlers are
4306installed before the _REG methods are executed. This prevents a _REG
4307method from aborting if it accesses an address space has no handler.
4308AcpiExec installs a handler for every possible address space.
4309
4310Debugger: Enhanced the "handlers" command to display non-root handlers.
4311This change enhances the handlers command to display handlers associated
4312with individual devices throughout the namespace, in addition to the
4313currently supported display of handlers associated with the root
4314namespace
4315node.
4316
4317ASL Test Suite: Several test suite errors have been identified and
4318resolved, reducing the total error count during execution. Chao Guan.
4319
4320----------------------------------------
432128 March 2013. Summary of changes for version 20130328:
4322
43231) ACPICA kernel-resident subsystem:
4324
4325Fixed several possible race conditions with the internal object reference
4326counting mechanism. Some of the external ACPICA interfaces update object
4327reference counts without holding the interpreter or namespace lock. This
4328change adds a spinlock to protect reference count updates on the internal
4329ACPICA objects. Reported by and with assistance from Andriy Gapon
4330(avg@FreeBSD.org).
4331
4332FADT support: Removed an extraneous warning for very large GPE register
4333sets. This change removes a size mismatch warning if the legacy length
4334field for a GPE register set is larger than the 64-bit GAS structure can
4335accommodate. GPE register sets can be larger than the 255-bit width
4336limitation of the GAS structure. Linn Crosetto (linn@hp.com).
4337
4338_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
4339return from this interface. Handles a possible timeout case if
4340ACPI_WAIT_FOREVER is modified by the host to be a value less than
4341"forever". Jung-uk Kim.
4342
4343Predefined name support: Add allowed/required argument type information
4344to
4345the master predefined info table. This change adds the infrastructure to
4346enable typechecking on incoming arguments for all predefined
4347methods/objects. It does not actually contain the code that will fully
4348utilize this information, this is still under development. Also condenses
4349some duplicate code for the predefined names into a new module,
4350utilities/utpredef.c
4351
4352Example Code and Data Size: These are the sizes for the OS-independent
4353acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4354debug version of the code includes the debug output trace mechanism and
4355has a much larger code and data size.
4356
4357  Previous Release:
4358    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
4359    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
4360  Current Release:
4361    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
4362    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
4363
4364
43652) iASL Compiler/Disassembler and Tools:
4366
4367iASL: Implemented a new option to simplify the development of ACPI-
4368related
4369BIOS code. Adds support for a new "offset table" output file. The -so
4370option will create a C table containing the AML table offsets of various
4371named objects in the namespace so that BIOS code can modify them easily
4372at
4373boot time. This can simplify BIOS runtime code by eliminating expensive
4374searches for "magic values", enhancing boot times and adding greater
4375reliability. With assistance from Lee Hamel.
4376
4377iASL: Allow additional predefined names to return zero-length packages.
4378Now, all predefined names that are defined by the ACPI specification to
4379return a "variable-length package of packages" are allowed to return a
4380zero length top-level package. This allows the BIOS to tell the host that
4381the requested feature is not supported, and supports existing BIOS/ASL
4382code and practices.
4383
4384iASL: Changed the "result not used" warning to an error. This is the case
4385where an ASL operator is effectively a NOOP because the result of the
4386operation is not stored anywhere. For example:
4387    Add (4, Local0)
4388There is no target (missing 3rd argument), nor is the function return
4389value used. This is potentially a very serious problem -- since the code
4390was probably intended to do something, but for whatever reason, the value
4391was not stored. Therefore, this issue has been upgraded from a warning to
4392an error.
4393
4394AcpiHelp: Added allowable/required argument types to the predefined names
4395info display. This feature utilizes the recent update to the predefined
4396names table (above).
4397
4398----------------------------------------
439914 February 2013. Summary of changes for version 20130214:
4400
44011) ACPICA Kernel-resident Subsystem:
4402
4403Fixed a possible regression on some hosts: Reinstated the safe return
4404macros (return_ACPI_STATUS, etc.) that ensure that the argument is
4405evaluated only once. Although these macros are not needed for the ACPICA
4406code itself, they are often used by ACPI-related host device drivers
4407where
4408the safe feature may be necessary.
4409
4410Fixed several issues related to the ACPI 5.0 reduced hardware support
4411(SOC): Now ensure that if the platform declares itself as hardware-
4412reduced
4413via the FADT, the following functions become NOOPs (and always return
4414AE_OK) because ACPI is always enabled by definition on these machines:
4415  AcpiEnable
4416  AcpiDisable
4417  AcpiHwGetMode
4418  AcpiHwSetMode
4419
4420Dynamic Object Repair: Implemented additional runtime repairs for
4421predefined name return values. Both of these repairs can simplify code in
4422the related device drivers that invoke these methods:
44231) For the _STR and _MLS names, automatically repair/convert an ASCII
4424string to a Unicode buffer.
44252) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
4426a
4427lone end tag descriptor in the following cases: A Return(0) was executed,
4428a null buffer was returned, or no object at all was returned (non-slack
4429mode only). Adds a new file, nsconvert.c
4430ACPICA BZ 998. Bob Moore, Lv Zheng.
4431
4432Resource Manager: Added additional code to prevent possible infinite
4433loops
4434while traversing corrupted or ill-formed resource template buffers. Check
4435for zero-length resource descriptors in all code that loops through
4436resource templates (the length field is used to index through the
4437template). This change also hardens the external AcpiWalkResources and
4438AcpiWalkResourceBuffer interfaces.
4439
4440Local Cache Manager: Enhanced the main data structure to eliminate an
4441unnecessary mechanism to access the next object in the list. Actually
4442provides a small performance enhancement for hosts that use the local
4443ACPICA cache manager. Jung-uk Kim.
4444
4445Example Code and Data Size: These are the sizes for the OS-independent
4446acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4447debug version of the code includes the debug output trace mechanism and
4448has a much larger code and data size.
4449
4450  Previous Release:
4451    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
4452    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
4453  Current Release:
4454    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
4455    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
4456
4457
44582) iASL Compiler/Disassembler and Tools:
4459
4460iASL/Disassembler: Fixed several issues with the definition of the ACPI
44615.0 RASF table (RAS Feature Table). This change incorporates late changes
4462that were made to the ACPI 5.0 specification.
4463
4464iASL/Disassembler: Added full support for the following new ACPI tables:
4465  1) The MTMR table (MID Timer Table)
4466  2) The VRTC table (Virtual Real Time Clock Table).
4467Includes header file, disassembler, table compiler, and template support
4468for both tables.
4469
4470iASL: Implemented compile-time validation of package objects returned by
4471predefined names. This new feature validates static package objects
4472returned by the various predefined names defined to return packages. Both
4473object types and package lengths are validated, for both parent packages
4474and sub-packages, if any. The code is similar in structure and behavior
4475to
4476the runtime repair mechanism within the AML interpreter and uses the
4477existing predefined name information table. Adds a new file, aslprepkg.c.
4478ACPICA BZ 938.
4479
4480iASL: Implemented auto-detection of binary ACPI tables for disassembly.
4481This feature detects a binary file with a valid ACPI table header and
4482invokes the disassembler automatically. Eliminates the need to
4483specifically invoke the disassembler with the -d option. ACPICA BZ 862.
4484
4485iASL/Disassembler: Added several warnings for the case where there are
4486unresolved control methods during the disassembly. This can potentially
4487cause errors when the output file is compiled, because the disassembler
4488assumes zero method arguments in these cases (it cannot determine the
4489actual number of arguments without resolution/definition of the method).
4490
4491Debugger: Added support to display all resources with a single command.
4492Invocation of the resources command with no arguments will now display
4493all
4494resources within the current namespace.
4495
4496AcpiHelp: Added descriptive text for each ACPICA exception code displayed
4497via the -e option.
4498
4499----------------------------------------
450017 January 2013. Summary of changes for version 20130117:
4501
45021) ACPICA Kernel-resident Subsystem:
4503
4504Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
4505return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
4506objects to return a package containing one integer, most BIOS code
4507returns
4508two integers and the previous code reflects that. However, we also need
4509to
4510support BIOS code that actually implements to the ACPI spec, and this
4511change reflects this.
4512
4513Fixed two issues with the ACPI_DEBUG_PRINT macros:
45141) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
4515C compilers that require this support.
45162) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
4517ACPI_DEBUG is already used by many of the various hosts.
4518
4519Updated all ACPICA copyrights and signons to 2013. Added the 2013
4520copyright to all module headers and signons, including the standard Linux
4521header. This affects virtually every file in the ACPICA core subsystem,
4522iASL compiler, all ACPICA utilities, and the test suites.
4523
4524Example Code and Data Size: These are the sizes for the OS-independent
4525acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4526debug version of the code includes the debug output trace mechanism and
4527has a much larger code and data size.
4528
4529  Previous Release:
4530    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
4531    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
4532  Current Release:
4533    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
4534    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
4535
4536
45372) iASL Compiler/Disassembler and Tools:
4538
4539Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
4540prevent a possible fault on some hosts. Some C libraries modify the arg
4541pointer parameter to vfprintf making it difficult to call it twice in the
4542AcpiOsVprintf function. Use a local buffer to workaround this issue. This
4543does not affect the Windows OSL since the Win C library does not modify
4544the arg pointer. Chao Guan, Bob Moore.
4545
4546iASL: Fixed a possible infinite loop when the maximum error count is
4547reached. If an output file other than the .AML file is specified (such as
4548a listing file), and the maximum number of errors is reached, do not
4549attempt to flush data to the output file(s) as the compiler is aborting.
4550This can cause an infinite loop as the max error count code essentially
4551keeps calling itself.
4552
4553iASL/Disassembler: Added an option (-in) to ignore NOOP
4554opcodes/operators.
4555Implemented for both the compiler and the disassembler. Often, the NOOP
4556opcode is used as padding for packages that are changed dynamically by
4557the
4558BIOS. When disassembled and recompiled, these NOOPs will cause syntax
4559errors. This option causes the disassembler to ignore all NOOP opcodes
4560(0xA3), and it also causes the compiler to ignore all ASL source code
4561NOOP
4562statements as well.
4563
4564Debugger: Enhanced the Sleep command to execute all sleep states. This
4565change allows Sleep to be invoked with no arguments and causes the
4566debugger to execute all of the sleep states, 0-5, automatically.
4567
4568----------------------------------------
456920 December 2012. Summary of changes for version 20121220:
4570
45711) ACPICA Kernel-resident Subsystem:
4572
4573Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
4574alternate entry point for AcpiWalkResources and improves the usability of
4575the resource manager by accepting as input a buffer containing the output
4576of either a _CRS, _PRS, or _AEI method. The key functionality is that the
4577input buffer is not deleted by this interface so that it can be used by
4578the host later. See the ACPICA reference for details.
4579
4580Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
4581(DSDT version < 2). The constant will be truncated and this warning
4582reflects that behavior.
4583
4584Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
4585ExtendedInterrupt, and GpioInt descriptors. This change adds support to
4586both get and set the new wake bit in these descriptors, separately from
4587the existing share bit. Reported by Aaron Lu.
4588
4589Interpreter: Fix Store() when an implicit conversion is not possible. For
4590example, in the cases such as a store of a string to an existing package
4591object, implement the store as a CopyObject(). This is a small departure
4592from the ACPI specification which states that the control method should
4593be
4594aborted in this case. However, the ASLTS suite depends on this behavior.
4595
4596Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
4597macros: check if debug output is currently enabled as soon as possible to
4598minimize performance impact if debug is in fact not enabled.
4599
4600Source code restructuring: Cleanup to improve modularity. The following
4601new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
4602psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
4603Associated makefiles and project files have been updated.
4604
4605Changed an exception code for LoadTable operator. For the case where one
4606of the input strings is too long, change the returned exception code from
4607AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
4608
4609Fixed a possible memory leak in dispatcher error path. On error, delete
4610the mutex object created during method mutex creation. Reported by
4611tim.gardner@canonical.com.
4612
4613Example Code and Data Size: These are the sizes for the OS-independent
4614acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4615debug version of the code includes the debug output trace mechanism and
4616has a much larger code and data size.
4617
4618  Previous Release:
4619    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
4620    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4621  Current Release:
4622    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
4623    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
4624
4625
46262) iASL Compiler/Disassembler and Tools:
4627
4628iASL: Disallow a method call as argument to the ObjectType ASL operator.
4629This change tracks an errata to the ACPI 5.0 document. The AML grammar
4630will not allow the interpreter to differentiate between a method and a
4631method invocation when these are used as an argument to the ObjectType
4632operator. The ACPI specification change is to disallow a method
4633invocation
4634(UserTerm) for the ObjectType operator.
4635
4636Finish support for the TPM2 and CSRT tables in the headers, table
4637compiler, and disassembler.
4638
4639Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
4640always expires immediately if the semaphore is not available. The
4641original
4642code was using a relative-time timeout, but sem_timedwait requires the
4643use
4644of an absolute time.
4645
4646iASL: Added a remark if the Timer() operator is used within a 32-bit
4647table. This operator returns a 64-bit time value that will be truncated
4648within a 32-bit table.
4649
4650iASL Source code restructuring: Cleanup to improve modularity. The
4651following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
4652aslmethod.c, and aslfileio.c. Associated makefiles and project files have
4653been updated.
4654
4655
4656----------------------------------------
465714 November 2012. Summary of changes for version 20121114:
4658
46591) ACPICA Kernel-resident Subsystem:
4660
4661Implemented a performance enhancement for ACPI/AML Package objects. This
4662change greatly increases the performance of Package objects within the
4663interpreter. It changes the processing of reference counts for packages
4664by
4665optimizing for the most common case where the package sub-objects are
4666either Integers, Strings, or Buffers. Increases the overall performance
4667of
4668the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
46692X.)
4670Chao Guan. ACPICA BZ 943.
4671
4672Implemented and deployed common macros to extract flag bits from resource
4673descriptors. Improves readability and maintainability of the code. Fixes
4674a
4675problem with the UART serial bus descriptor for the number of data bits
4676flags (was incorrectly 2 bits, should be 3).
4677
4678Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
4679of the macros and changed the SETx macros to the style of (destination,
4680source). Also added ACPI_CASTx companion macros. Lv Zheng.
4681
4682Example Code and Data Size: These are the sizes for the OS-independent
4683acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4684debug version of the code includes the debug output trace mechanism and
4685has a much larger code and data size.
4686
4687  Previous Release:
4688    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
4689    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4690  Current Release:
4691    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
4692    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4693
4694
46952) iASL Compiler/Disassembler and Tools:
4696
4697Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
4698adds the ShareAndWake and ExclusiveAndWake flags which were added to the
4699Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
4700
4701Disassembler: Fixed a problem with external declaration generation. Fixes
4702a problem where an incorrect pathname could be generated for an external
4703declaration if the original reference to the object includes leading
4704carats (^). ACPICA BZ 984.
4705
4706Debugger: Completed a major update for the Disassemble<method> command.
4707This command was out-of-date and did not properly disassemble control
4708methods that had any reasonable complexity. This fix brings the command
4709up
4710to the same level as the rest of the disassembler. Adds one new file,
4711dmdeferred.c, which is existing code that is now common with the main
4712disassembler and the debugger disassemble command. ACPICA MZ 978.
4713
4714iASL: Moved the parser entry prototype to avoid a duplicate declaration.
4715Newer versions of Bison emit this prototype, so moved the prototype out
4716of
4717the iASL header to where it is actually used in order to avoid a
4718duplicate
4719declaration.
4720
4721iASL/Tools: Standardized use of the stream I/O functions:
4722  1) Ensure check for I/O error after every fopen/fread/fwrite
4723  2) Ensure proper order of size/count arguments for fread/fwrite
4724  3) Use test of (Actual != Requested) after all fwrite, and most fread
4725  4) Standardize I/O error messages
4726Improves reliability and maintainability of the code. Bob Moore, Lv
4727Zheng.
4728ACPICA BZ 981.
4729
4730Disassembler: Prevent duplicate External() statements. During generation
4731of external statements, detect similar pathnames that are actually
4732duplicates such as these:
4733  External (\ABCD)
4734  External (ABCD)
4735Remove all leading '\' characters from pathnames during the external
4736statement generation so that duplicates will be detected and tossed.
4737ACPICA BZ 985.
4738
4739Tools: Replace low-level I/O with stream I/O functions. Replace
4740open/read/write/close with the stream I/O equivalents
4741fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
4742Moore.
4743
4744AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
4745name header so that AcpiXtract recognizes the output file/table.
4746
4747iASL: Remove obsolete -2 option flag. Originally intended to force the
4748compiler/disassembler into an ACPI 2.0 mode, this was never implemented
4749and the entire concept is now obsolete.
4750
4751----------------------------------------
475218 October 2012. Summary of changes for version 20121018:
4753
4754
47551) ACPICA Kernel-resident Subsystem:
4756
4757Updated support for the ACPI 5.0 MPST table. Fixes some problems
4758introduced by late changes to the table as it was added to the ACPI 5.0
4759specification. Includes header, disassembler, and data table compiler
4760support as well as a new version of the MPST template.
4761
4762AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
47635.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
4764methods: _HID, _CID, and _UID.
4765
4766Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
4767ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
4768name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
4769names for their various drivers. Affects the AcpiGetObjectInfo external
4770interface, and other internal interfaces as well.
4771
4772Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
4773This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
4774on machines that support non-aligned transfers. Optimizes for this case
4775rather than using a strncpy. With assistance from Zheng Lv.
4776
4777Resource Manager: Small fix for buffer size calculation. Fixed a one byte
4778error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
4779
4780Added a new debug print message for AML mutex objects that are force-
4781released. At control method termination, any currently acquired mutex
4782objects are force-released. Adds a new debug-only message for each one
4783that is released.
4784
4785Audited/updated all ACPICA return macros and the function debug depth
4786counter: 1) Ensure that all functions that use the various TRACE macros
4787also use the appropriate ACPICA return macros. 2) Ensure that all normal
4788return statements surround the return expression (value) with parens to
4789ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
4790Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
4791
4792Global source code changes/maintenance: All extra lines at the start and
4793end of each source file have been removed for consistency. Also, within
4794comments, all new sentences start with a single space instead of a double
4795space, again for consistency across the code base.
4796
4797Example Code and Data Size: These are the sizes for the OS-independent
4798acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4799debug version of the code includes the debug output trace mechanism and
4800has a much larger code and data size.
4801
4802  Previous Release:
4803    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
4804    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
4805  Current Release:
4806    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
4807    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4808
4809
48102) iASL Compiler/Disassembler and Tools:
4811
4812AcpiExec: Improved the algorithm used for memory leak/corruption
4813detection. Added some intelligence to the code that maintains the global
4814list of allocated memory. The list is now ordered by allocated memory
4815address, significantly improving performance. When running AcpiExec on
4816the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
4817on the platform and/or the environment. Note, this performance
4818enhancement affects the AcpiExec utility only, not the kernel-resident
4819ACPICA code.
4820
4821Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
4822the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
4823incorrect table offset reported for invalid opcodes. Report the original
482432-bit value for bad ACPI_NAMEs (as well as the repaired name.)
4825
4826Disassembler: Enhanced the -vt option to emit the binary table data in
4827hex format to assist with debugging.
4828
4829Fixed a potential filename buffer overflow in osunixdir.c. Increased the
4830size of file structure. Colin Ian King.
4831
4832----------------------------------------
483313 September 2012. Summary of changes for version 20120913:
4834
4835
48361) ACPICA Kernel-resident Subsystem:
4837
4838ACPI 5.0: Added two new notify types for the Hardware Error Notification
4839Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
4840and
4841MCE(6).
4842
4843Table Manager: Merged/removed duplicate code in the root table resize
4844functions. One function is external, the other is internal. Lv Zheng,
4845ACPICA
4846BZ 846.
4847
4848Makefiles: Completely removed the obsolete "Linux" makefiles under
4849acpica/generate/linux. These makefiles are obsolete and have been
4850replaced
4851by
4852the generic unix makefiles under acpica/generate/unix.
4853
4854Makefiles: Ensure that binary files always copied properly. Minor rule
4855change
4856to ensure that the final binary output files are always copied up to the
4857appropriate binary directory (bin32 or bin64.)
4858
4859Example Code and Data Size: These are the sizes for the OS-independent
4860acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4861debug
4862version of the code includes the debug output trace mechanism and has a
4863much
4864larger code and data size.
4865
4866  Previous Release:
4867    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
4868    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
4869  Current Release:
4870    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
4871    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
4872
4873
48742) iASL Compiler/Disassembler and Tools:
4875
4876Disassembler: Fixed a possible fault during the disassembly of resource
4877descriptors when a second parse is required because of the invocation of
4878external control methods within the table. With assistance from
4879adq@lidskialf.net. ACPICA BZ 976.
4880
4881iASL: Fixed a namepath optimization problem. An error can occur if the
4882parse
4883node that contains the namepath to be optimized does not have a parent
4884node
4885that is a named object. This change fixes the problem.
4886
4887iASL: Fixed a regression where the AML file is not deleted on errors. The
4888AML
4889output file should be deleted if there are any errors during the
4890compiler.
4891The
4892only exception is if the -f (force output) option is used. ACPICA BZ 974.
4893
4894iASL: Added a feature to automatically increase internal line buffer
4895sizes.
4896Via realloc(), automatically increase the internal line buffer sizes as
4897necessary to support very long source code lines. The current version of
4898the
4899preprocessor requires a buffer long enough to contain full source code
4900lines.
4901This change increases the line buffer(s) if the input lines go beyond the
4902current buffer size. This eliminates errors that occurred when a source
4903code
4904line was longer than the buffer.
4905
4906iASL: Fixed a problem with constant folding in method declarations. The
4907SyncLevel term is a ByteConstExpr, and incorrect code would be generated
4908if a
4909Type3 opcode was used.
4910
4911Debugger: Improved command help support. For incorrect argument count,
4912display
4913full help for the command. For help command itself, allow an argument to
4914specify a command.
4915
4916Test Suites: Several bug fixes for the ASLTS suite reduces the number of
4917errors during execution of the suite. Guan Chao.
4918
4919----------------------------------------
492016 August 2012. Summary of changes for version 20120816:
4921
4922
49231) ACPICA Kernel-resident Subsystem:
4924
4925Removed all use of the deprecated _GTS and _BFS predefined methods. The
4926_GTS
4927(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
4928deprecated and will probably be removed from the ACPI specification.
4929Windows
4930does not invoke them, and reportedly never will. The final nail in the
4931coffin
4932is that the ACPI specification states that these methods must be run with
4933interrupts off, which is not going to happen in a kernel interpreter.
4934Note:
4935Linux has removed all use of the methods also. It was discovered that
4936invoking these functions caused failures on some machines, probably
4937because
4938they were never tested since Windows does not call them. Affects two
4939external
4940interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
4941ACPICA BZ 969.
4942
4943Implemented support for complex bit-packed buffers returned from the _PLD
4944(Physical Location of Device) predefined method. Adds a new external
4945interface, AcpiDecodePldBuffer that parses the buffer into a more usable
4946C
4947structure. Note: C Bitfields cannot be used for this type of predefined
4948structure since the memory layout of individual bitfields is not defined
4949by
4950the C language. In addition, there are endian concerns where a compiler
4951will
4952change the bitfield ordering based on the machine type. The new ACPICA
4953interface eliminates these issues, and should be called after _PLD is
4954executed. ACPICA BZ 954.
4955
4956Implemented a change to allow a scope change to root (via "Scope (\)")
4957during
4958execution of module-level ASL code (code that is executed at table load
4959time.) Lin Ming.
4960
4961Added the Windows8/Server2012 string for the _OSI method. This change
4962adds
4963a
4964new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
49652012.
4966
4967Added header support for the new ACPI tables DBG2 (Debug Port Table Type
49682)
4969and CSRT (Core System Resource Table).
4970
4971Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
4972names. This simplifies access to the buffers returned by these predefined
4973names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
4974
4975GPE support: Removed an extraneous parameter from the various low-level
4976internal GPE functions. Tang Feng.
4977
4978Removed the linux makefiles from the unix packages. The generate/linux
4979makefiles are obsolete and have been removed from the unix tarball
4980release
4981packages. The replacement makefiles are under generate/unix, and there is
4982a
4983top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
4984
4985Updates for Unix makefiles:
49861) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
49872) Update linker flags (move to end of command line) for AcpiExec
4988utility.
4989Guan Chao.
4990
4991Split ACPICA initialization functions to new file, utxfinit.c. Split from
4992utxface.c to improve modularity and reduce file size.
4993
4994Example Code and Data Size: These are the sizes for the OS-independent
4995acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4996debug version of the code includes the debug output trace mechanism and
4997has a
4998much larger code and data size.
4999
5000  Previous Release:
5001    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
5002    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
5003  Current Release:
5004    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
5005    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
5006
5007
50082) iASL Compiler/Disassembler and Tools:
5009
5010iASL: Fixed a problem with constant folding for fixed-length constant
5011expressions. The constant-folding code was not being invoked for constant
5012expressions that allow the use of type 3/4/5 opcodes to generate
5013constants
5014for expressions such as ByteConstExpr, WordConstExpr, etc. This could
5015result
5016in the generation of invalid AML bytecode. ACPICA BZ 970.
5017
5018iASL: Fixed a generation issue on newer versions of Bison. Newer versions
5019apparently automatically emit some of the necessary externals. This
5020change
5021handles these versions in order to eliminate generation warnings.
5022
5023Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
5024
5025Disassembler: Add support to decode _PLD buffers. The decoded buffer
5026appears
5027within comments in the output file.
5028
5029Debugger: Fixed a regression with the "Threads" command where
5030AE_BAD_PARAMETER was always returned.
5031
5032----------------------------------------
503311 July 2012. Summary of changes for version 20120711:
5034
50351) ACPICA Kernel-resident Subsystem:
5036
5037Fixed a possible fault in the return package object repair code. Fixes a
5038problem that can occur when a lone package object is wrapped with an
5039outer
5040package object in order to force conformance to the ACPI specification.
5041Can
5042affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
5043_DLM,
5044_CSD, _PSD, _TSD.
5045
5046Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
5047PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
5048ARB_DIS bit must be implemented in the host-dependent C3 processor power
5049state
5050support. Note, ARB_DIS is obsolete and only applies to older chipsets,
5051both
5052Intel and other vendors. (for Intel: ICH4-M and earlier)
5053
5054This change removes the code to disable/enable bus master arbitration
5055during
5056suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
5057causes
5058resume problems on some machines. The change has been in use for over
5059seven
5060years within Linux.
5061
5062Implemented two new external interfaces to support host-directed dynamic
5063ACPI
5064table load and unload. They are intended to simplify the host
5065implementation
5066of hot-plug support:
5067  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
5068  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
5069table.
5070See the ACPICA reference for additional details. Adds one new file,
5071components/tables/tbxfload.c
5072
5073Implemented and deployed two new interfaces for errors and warnings that
5074are
5075known to be caused by BIOS/firmware issues:
5076  AcpiBiosError: Prints "ACPI Firmware Error" message.
5077  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
5078Deployed these new interfaces in the ACPICA Table Manager code for ACPI
5079table
5080and FADT errors. Additional deployment to be completed as appropriate in
5081the
5082future. The associated conditional macros are ACPI_BIOS_ERROR and
5083ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
5084ACPICA
5085BZ
5086843.
5087
5088Implicit notify support: ensure that no memory allocation occurs within a
5089critical region. This fix moves a memory allocation outside of the time
5090that a
5091spinlock is held. Fixes issues on systems that do not allow this
5092behavior.
5093Jung-uk Kim.
5094
5095Split exception code utilities and tables into a new file,
5096utilities/utexcep.c
5097
5098Example Code and Data Size: These are the sizes for the OS-independent
5099acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5100debug
5101version of the code includes the debug output trace mechanism and has a
5102much
5103larger code and data size.
5104
5105  Previous Release:
5106    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
5107    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
5108  Current Release:
5109    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
5110    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
5111
5112
51132) iASL Compiler/Disassembler and Tools:
5114
5115iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
5116of
51170. Jung-uk Kim.
5118
5119Debugger: Enhanced the "tables" command to emit additional information
5120about
5121the current set of ACPI tables, including the owner ID and flags decode.
5122
5123Debugger: Reimplemented the "unload" command to use the new
5124AcpiUnloadParentTable external interface. This command was disable
5125previously
5126due to need for an unload interface.
5127
5128AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
5129option
5130will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
5131
5132----------------------------------------
513320 June 2012. Summary of changes for version 20120620:
5134
5135
51361) ACPICA Kernel-resident Subsystem:
5137
5138Implemented support to expand the "implicit notify" feature to allow
5139multiple
5140devices to be notified by a single GPE. This feature automatically
5141generates a
5142runtime device notification in the absence of a BIOS-provided GPE control
5143method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
5144notify is
5145provided by ACPICA for Windows compatibility, and is a workaround for
5146BIOS
5147AML
5148code errors. See the description of the AcpiSetupGpeForWake interface in
5149the
5150APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
5151
5152Changed some comments and internal function names to simplify and ensure
5153correctness of the Linux code translation. No functional changes.
5154
5155Example Code and Data Size: These are the sizes for the OS-independent
5156acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5157debug
5158version of the code includes the debug output trace mechanism and has a
5159much
5160larger code and data size.
5161
5162  Previous Release:
5163    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
5164    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
5165  Current Release:
5166    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
5167    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
5168
5169
51702) iASL Compiler/Disassembler and Tools:
5171
5172Disassembler: Added support to emit short, commented descriptions for the
5173ACPI
5174predefined names in order to improve the readability of the disassembled
5175output. ACPICA BZ 959. Changes include:
5176  1) Emit descriptions for all standard predefined names (_INI, _STA,
5177_PRW,
5178etc.)
5179  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
5180  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
5181etc.)
5182
5183AcpiSrc: Fixed several long-standing Linux code translation issues.
5184Argument
5185descriptions in function headers are now translated properly to lower
5186case
5187and
5188underscores. ACPICA BZ 961. Also fixes translation problems such as
5189these:
5190(old -> new)
5191  i_aSL -> iASL
5192  00-7_f -> 00-7F
5193  16_k -> 16K
5194  local_fADT -> local_FADT
5195  execute_oSI -> execute_OSI
5196
5197iASL: Fixed a problem where null bytes were inadvertently emitted into
5198some
5199listing files.
5200
5201iASL: Added the existing debug options to the standard help screen. There
5202are
5203no longer two different help screens. ACPICA BZ 957.
5204
5205AcpiHelp: Fixed some typos in the various predefined name descriptions.
5206Also
5207expand some of the descriptions where appropriate.
5208
5209iASL: Fixed the -ot option (display compile times/statistics). Was not
5210working
5211properly for standard output; only worked for the debug file case.
5212
5213----------------------------------------
521418 May 2012. Summary of changes for version 20120518:
5215
5216
52171) ACPICA Core Subsystem:
5218
5219Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
5220defined
5221to block until asynchronous events such as notifies and GPEs have
5222completed.
5223Within ACPICA, it is only called before a notify or GPE handler is
5224removed/uninstalled. It also may be useful for the host OS within related
5225drivers such as the Embedded Controller driver. See the ACPICA reference
5226for
5227additional information. ACPICA BZ 868.
5228
5229ACPI Tables: Added a new error message for a possible overflow failure
5230during
5231the conversion of FADT 32-bit legacy register addresses to internal
5232common
523364-
5234bit GAS structure representation. The GAS has a one-byte "bit length"
5235field,
5236thus limiting the register length to 255 bits. ACPICA BZ 953.
5237
5238Example Code and Data Size: These are the sizes for the OS-independent
5239acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5240debug
5241version of the code includes the debug output trace mechanism and has a
5242much
5243larger code and data size.
5244
5245  Previous Release:
5246    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5247    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
5248  Current Release:
5249    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
5250    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
5251
5252
52532) iASL Compiler/Disassembler and Tools:
5254
5255iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
5256macro.
5257This keyword was added late in the ACPI 5.0 release cycle and was not
5258implemented until now.
5259
5260Disassembler: Added support for Operation Region externals. Adds missing
5261support for operation regions that are defined in another table, and
5262referenced locally via a Field or BankField ASL operator. Now generates
5263the
5264correct External statement.
5265
5266Disassembler: Several additional fixes for the External() statement
5267generation
5268related to some ASL operators. Also, order the External() statements
5269alphabetically in the disassembler output. Fixes the External()
5270generation
5271for
5272the Create* field, Alias, and Scope operators:
5273 1) Create* buffer field operators - fix type mismatch warning on
5274disassembly
5275 2) Alias - implement missing External support
5276 3) Scope - fix to make sure all necessary externals are emitted.
5277
5278iASL: Improved pathname support. For include files, merge the prefix
5279pathname
5280with the file pathname and eliminate unnecessary components. Convert
5281backslashes in all pathnames to forward slashes, for readability. Include
5282file
5283pathname changes affect both #include and Include() type operators.
5284
5285iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
5286end
5287of a valid line by inserting a newline and then returning the EOF during
5288the
5289next call to GetNextLine. Prevents the line from being ignored due to EOF
5290condition.
5291
5292iASL: Implemented some changes to enhance the IDE support (-vi option.)
5293Error
5294and Warning messages are now correctly recognized for both the source
5295code
5296browser and the global error and warning counts.
5297
5298----------------------------------------
529920 April 2012. Summary of changes for version 20120420:
5300
5301
53021) ACPICA Core Subsystem:
5303
5304Implemented support for multiple notify handlers. This change adds
5305support
5306to
5307allow multiple system and device notify handlers on Device, Thermal Zone,
5308and
5309Processor objects. This can simplify the host OS notification
5310implementation.
5311Also re-worked and restructured the entire notify support code to
5312simplify
5313handler installation, handler removal, notify event queuing, and notify
5314dispatch to handler(s). Note: there can still only be two global notify
5315handlers - one for system notifies and one for device notifies. There are
5316no
5317changes to the existing handler install/remove interfaces. Lin Ming, Bob
5318Moore, Rafael Wysocki.
5319
5320Fixed a regression in the package repair code where the object reference
5321count was calculated incorrectly. Regression was introduced in the commit
5322"Support to add Package wrappers".
5323
5324Fixed a couple possible memory leaks in the AML parser, in the error
5325recovery
5326path. Jesper Juhl, Lin Ming.
5327
5328Example Code and Data Size: These are the sizes for the OS-independent
5329acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5330debug version of the code includes the debug output trace mechanism and
5331has a
5332much larger code and data size.
5333
5334  Previous Release:
5335    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5336    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5337  Current Release:
5338    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5339    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
5340
5341
53422) iASL Compiler/Disassembler and Tools:
5343
5344iASL: Fixed a problem with the resource descriptor support where the
5345length
5346of the StartDependentFn and StartDependentFnNoPrio descriptors were not
5347included in cumulative descriptor offset, resulting in incorrect values
5348for
5349resource tags within resource descriptors appearing after a
5350StartDependent*
5351descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
5352
5353iASL and Preprocessor: Implemented full support for the #line directive
5354to
5355correctly track original source file line numbers through the .i
5356preprocessor
5357output file - for error and warning messages.
5358
5359iASL: Expand the allowable byte constants for address space IDs.
5360Previously,
5361the allowable range was 0x80-0xFF (user-defined spaces), now the range is
53620x0A-0xFF to allow for custom and new IDs without changing the compiler.
5363
5364iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
5365
5366iASL: Add option to completely disable the preprocessor (-Pn).
5367
5368iASL: Now emit all error/warning messages to standard error (stderr) by
5369default (instead of the previous stdout).
5370
5371ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
5372Update
5373for resource descriptor offset fix above. Update/cleanup error output
5374routines. Enable and send iASL errors/warnings to an error logfile
5375(error.txt). Send all other iASL output to a logfile (compiler.txt).
5376Fixed
5377several extraneous "unrecognized operator" messages.
5378
5379----------------------------------------
538020 March 2012. Summary of changes for version 20120320:
5381
5382
53831) ACPICA Core Subsystem:
5384
5385Enhanced the sleep/wake interfaces to optionally execute the _GTS method
5386(Going To Sleep) and the _BFS method (Back From Sleep). Windows
5387apparently
5388does not execute these methods, and therefore these methods are often
5389untested. It has been seen on some systems where the execution of these
5390methods causes errors and also prevents the machine from entering S5. It
5391is
5392therefore suggested that host operating systems do not execute these
5393methods
5394by default. In the future, perhaps these methods can be optionally
5395executed
5396based on the age of the system and/or what is the newest version of
5397Windows
5398that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
5399and
5400AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
5401Ming.
5402
5403Fixed a problem where the length of the local/common FADT was set too
5404early.
5405The local FADT table length cannot be set to the common length until the
5406original length has been examined. There is code that checks the table
5407length
5408and sets various fields appropriately. This can affect older machines
5409with
5410early FADT versions. For example, this can cause inadvertent writes to
5411the
5412CST_CNT register. Julian Anastasov.
5413
5414Fixed a mapping issue related to a physical table override. Use the
5415deferred
5416mapping mechanism for tables loaded via the physical override OSL
5417interface.
5418This allows for early mapping before the virtual memory manager is
5419available.
5420Thomas Renninger, Bob Moore.
5421
5422Enhanced the automatic return-object repair code: Repair a common problem
5423with
5424predefined methods that are defined to return a variable-length Package
5425of
5426sub-objects. If there is only one sub-object, some BIOS ASL code
5427mistakenly
5428simply returns the single object instead of a Package with one sub-
5429object.
5430This new support will repair this error by wrapping a Package object
5431around
5432the original object, creating the correct and expected Package with one
5433sub-
5434object. Names that can be repaired in this manner include: _ALR, _CSD,
5435_HPX,
5436_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
5437939.
5438
5439Changed the exception code returned for invalid ACPI paths passed as
5440parameters to external interfaces such as AcpiEvaluateObject. Was
5441AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
5442
5443Example Code and Data Size: These are the sizes for the OS-independent
5444acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5445debug
5446version of the code includes the debug output trace mechanism and has a
5447much
5448larger code and data size.
5449
5450  Previous Release:
5451    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
5452    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5453  Current Release:
5454    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5455    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5456
5457
54582) iASL Compiler/Disassembler and Tools:
5459
5460iASL: Added the infrastructure and initial implementation of a integrated
5461C-
5462like preprocessor. This will simplify BIOS development process by
5463eliminating
5464the need for a separate preprocessing step during builds. On Windows, it
5465also
5466eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
5467features including full #define() macro support are still under
5468development.
5469These preprocessor directives are supported:
5470    #define
5471    #elif
5472    #else
5473    #endif
5474    #error
5475    #if
5476    #ifdef
5477    #ifndef
5478    #include
5479    #pragma message
5480    #undef
5481    #warning
5482In addition, these new command line options are supported:
5483    -D <symbol> Define symbol for preprocessor use
5484    -li         Create preprocessed output file (*.i)
5485    -P          Preprocess only and create preprocessor output file (*.i)
5486
5487Table Compiler: Fixed a problem where the equals operator within an
5488expression
5489did not work properly.
5490
5491Updated iASL to use the current versions of Bison/Flex. Updated the
5492Windows
5493project file to invoke these tools from the standard location. ACPICA BZ
5494904.
5495Versions supported:
5496    Flex for Windows:  V2.5.4
5497    Bison for Windows: V2.4.1
5498
5499----------------------------------------
550015 February 2012. Summary of changes for version 20120215:
5501
5502
55031) ACPICA Core Subsystem:
5504
5505There have been some major changes to the sleep/wake support code, as
5506described below (a - e).
5507
5508a) The AcpiLeaveSleepState has been split into two interfaces, similar to
5509AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
5510AcpiLeaveSleepStatePrep. This allows the host to perform actions between
5511the
5512time the _BFS method is called and the _WAK method is called. NOTE: all
5513hosts
5514must update their wake/resume code or else sleep/wake will not work
5515properly.
5516Rafael Wysocki.
5517
5518b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
5519_WAK
5520method. Some machines require that the GPEs are enabled before the _WAK
5521method
5522is executed. Thomas Renninger.
5523
5524c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
5525bit.
5526Some BIOS code assumes that WAK_STS will be cleared on resume and use it
5527to
5528determine whether the system is rebooting or resuming. Matthew Garrett.
5529
5530d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
5531Sleep) to
5532match the ACPI specification requirement. Rafael Wysocki.
5533
5534e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
5535registers within the V5 FADT. This support adds two new files:
5536hardware/hwesleep.c implements the support for the new registers. Moved
5537all
5538sleep/wake external interfaces to hardware/hwxfsleep.c.
5539
5540
5541Added a new OSL interface for ACPI table overrides,
5542AcpiOsPhysicalTableOverride. This interface allows the host to override a
5543table via a physical address, instead of the logical address required by
5544AcpiOsTableOverride. This simplifies the host implementation. Initial
5545implementation by Thomas Renninger. The ACPICA implementation creates a
5546single
5547shared function for table overrides that attempts both a logical and a
5548physical override.
5549
5550Expanded the OSL memory read/write interfaces to 64-bit data
5551(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
5552transfer support for GAS register structures passed to AcpiRead and
5553AcpiWrite.
5554
5555Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
5556custom
5557build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
5558model.
5559See the ACPICA reference for details. ACPICA BZ 942. This option removes
5560about
556110% of the code and 5% of the static data, and the following hardware
5562ACPI
5563features become unavailable:
5564    PM Event and Control registers
5565    SCI interrupt (and handler)
5566    Fixed Events
5567    General Purpose Events (GPEs)
5568    Global Lock
5569    ACPI PM timer
5570    FACS table (Waking vectors and Global Lock)
5571
5572Updated the unix tarball directory structure to match the ACPICA git
5573source
5574tree. This ensures that the generic unix makefiles work properly (in
5575generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
5576867.
5577
5578Updated the return value of the _REV predefined method to integer value 5
5579to
5580reflect ACPI 5.0 support.
5581
5582Moved the external ACPI PM timer interface prototypes to the public
5583acpixf.h
5584file where they belong.
5585
5586Example Code and Data Size: These are the sizes for the OS-independent
5587acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5588debug
5589version of the code includes the debug output trace mechanism and has a
5590much
5591larger code and data size.
5592
5593  Previous Release:
5594    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
5595    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
5596  Current Release:
5597    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
5598    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5599
5600
56012) iASL Compiler/Disassembler and Tools:
5602
5603Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
5604descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
5605incorrectly displayed.
5606
5607AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
5608specification.
5609
5610----------------------------------------
561111 January 2012. Summary of changes for version 20120111:
5612
5613
56141) ACPICA Core Subsystem:
5615
5616Implemented a new mechanism to allow host device drivers to check for
5617address
5618range conflicts with ACPI Operation Regions. Both SystemMemory and
5619SystemIO
5620address spaces are supported. A new external interface,
5621AcpiCheckAddressRange,
5622allows drivers to check an address range against the ACPI namespace. See
5623the
5624ACPICA reference for additional details. Adds one new file,
5625utilities/utaddress.c. Lin Ming, Bob Moore.
5626
5627Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
5628Control
5629and
5630Status registers, update the ACPI 5.0 flags, and update internal data
5631structures to handle an FADT larger than 256 bytes. The size of the ACPI
56325.0
5633FADT is 268 bytes.
5634
5635Updated all ACPICA copyrights and signons to 2012. Added the 2012
5636copyright to
5637all module headers and signons, including the standard Linux header. This
5638affects virtually every file in the ACPICA core subsystem, iASL compiler,
5639and
5640all ACPICA utilities.
5641
5642Example Code and Data Size: These are the sizes for the OS-independent
5643acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5644debug
5645version of the code includes the debug output trace mechanism and has a
5646much
5647larger code and data size.
5648
5649  Previous Release:
5650    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
5651    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
5652  Current Release:
5653    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
5654    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
5655
5656
56572) iASL Compiler/Disassembler and Tools:
5658
5659Disassembler: fixed a problem with the automatic resource tag generation
5660support. Fixes a problem where the resource tags are inadvertently not
5661constructed if the table being disassembled contains external references
5662to
5663control methods. Moved the actual construction of the tags to after the
5664final
5665namespace is constructed (after 2nd parse is invoked due to external
5666control
5667method references.) ACPICA BZ 941.
5668
5669Table Compiler: Make all "generic" operators caseless. These are the
5670operators
5671like UINT8, String, etc. Making these caseless improves ease-of-use.
5672ACPICA BZ
5673934.
5674
5675----------------------------------------
567623 November 2011. Summary of changes for version 20111123:
5677
56780) ACPI 5.0 Support:
5679
5680This release contains full support for the ACPI 5.0 specification, as
5681summarized below.
5682
5683Reduced Hardware Support:
5684-------------------------
5685
5686This support allows for ACPI systems without the usual ACPI hardware.
5687This
5688support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
5689will
5690not attempt to initialize or use any of the usual ACPI hardware. Note,
5691when
5692this flag is set, all of the following ACPI hardware is assumed to be not
5693present and is not initialized or accessed:
5694
5695    General Purpose Events (GPEs)
5696    Fixed Events (PM1a/PM1b and PM Control)
5697    Power Management Timer and Console Buttons (power/sleep)
5698    Real-time Clock Alarm
5699    Global Lock
5700    System Control Interrupt (SCI)
5701    The FACS is assumed to be non-existent
5702
5703ACPI Tables:
5704------------
5705
5706All new tables and updates to existing tables are fully supported in the
5707ACPICA headers (for use by device drivers), the disassembler, and the
5708iASL
5709Data Table Compiler. ACPI 5.0 defines these new tables:
5710
5711    BGRT        /* Boot Graphics Resource Table */
5712    DRTM        /* Dynamic Root of Trust for Measurement table */
5713    FPDT        /* Firmware Performance Data Table */
5714    GTDT        /* Generic Timer Description Table */
5715    MPST        /* Memory Power State Table */
5716    PCCT        /* Platform Communications Channel Table */
5717    PMTT        /* Platform Memory Topology Table */
5718    RASF        /* RAS Feature table */
5719
5720Operation Regions/SpaceIDs:
5721---------------------------
5722
5723All new operation regions are fully supported by the iASL compiler, the
5724disassembler, and the ACPICA runtime code (for dispatch to region
5725handlers.)
5726The new operation region Space IDs are:
5727
5728    GeneralPurposeIo
5729    GenericSerialBus
5730
5731Resource Descriptors:
5732---------------------
5733
5734All new ASL resource descriptors are fully supported by the iASL
5735compiler,
5736the
5737ASL/AML disassembler, and the ACPICA runtime Resource Manager code
5738(including
5739all new predefined resource tags). New descriptors are:
5740
5741    FixedDma
5742    GpioIo
5743    GpioInt
5744    I2cSerialBus
5745    SpiSerialBus
5746    UartSerialBus
5747
5748ASL/AML Operators, New and Modified:
5749------------------------------------
5750
5751One new operator is added, the Connection operator, which is used to
5752associate
5753a GeneralPurposeIo or GenericSerialBus resource descriptor with
5754individual
5755field objects within an operation region. Several new protocols are
5756associated
5757with the AccessAs operator. All are fully supported by the iASL compiler,
5758disassembler, and runtime ACPICA AML interpreter:
5759
5760    Connection                      // Declare Field Connection
5761attributes
5762    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
5763    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
5764Protocol
5765    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
5766    RawDataBuffer                       // Data type for Vendor Data
5767fields
5768
5769Predefined ASL/AML Objects:
5770---------------------------
5771
5772All new predefined objects/control-methods are supported by the iASL
5773compiler
5774and the ACPICA runtime validation/repair (arguments and return values.)
5775New
5776predefined names include the following:
5777
5778Standard Predefined Names (Objects or Control Methods):
5779    _AEI, _CLS, _CPC, _CWS, _DEP,
5780    _DLM, _EVT, _GCP, _CRT, _GWS,
5781    _HRV, _PRE, _PSE, _SRT, _SUB.
5782
5783Resource Tags (Names used to access individual fields within resource
5784descriptors):
5785    _DBT, _DPL, _DRS, _END, _FLC,
5786    _IOR, _LIN, _MOD, _PAR, _PHA,
5787    _PIN, _PPI, _POL, _RXL, _SLV,
5788    _SPE, _STB, _TXL, _VEN.
5789
5790ACPICA External Interfaces:
5791---------------------------
5792
5793Several new interfaces have been defined for use by ACPI-related device
5794drivers and other host OS services:
5795
5796AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
5797to
5798acquire and release AML mutexes that are defined in the DSDT/SSDT tables
5799provided by the BIOS. They are intended to be used in conjunction with
5800the
5801ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
5802mutual exclusion with the AML code/interpreter.
5803
5804AcpiGetEventResources: Returns the (formatted) resource descriptors as
5805defined
5806by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
5807provides
5808resource descriptors associated with hardware-reduced platform events,
5809similar
5810to the AcpiGetCurrentResources interface.
5811
5812Operation Region Handlers: For General Purpose IO and Generic Serial Bus
5813operation regions, information about the Connection() object and any
5814optional
5815length information is passed to the region handler within the Context
5816parameter.
5817
5818AcpiBufferToResource: This interface converts a raw AML buffer containing
5819a
5820resource template or resource descriptor to the ACPI_RESOURCE internal
5821format
5822suitable for use by device drivers. Can be used by an operation region
5823handler
5824to convert the Connection() buffer object into a ACPI_RESOURCE.
5825
5826Miscellaneous/Tools/TestSuites:
5827-------------------------------
5828
5829Support for extended _HID names (Four alpha characters instead of three).
5830Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
5831Support for ACPI 5.0 features in the ASLTS test suite.
5832Fully updated documentation (ACPICA and iASL reference documents.)
5833
5834ACPI Table Definition Language:
5835-------------------------------
5836
5837Support for this language was implemented and released as a subsystem of
5838the
5839iASL compiler in 2010. (See the iASL compiler User Guide.)
5840
5841
5842Non-ACPI 5.0 changes for this release:
5843--------------------------------------
5844
58451) ACPICA Core Subsystem:
5846
5847Fix a problem with operation region declarations where a failure can
5848occur
5849if
5850the region name and an argument that evaluates to an object (such as the
5851region address) are in different namespace scopes. Lin Ming, ACPICA BZ
5852937.
5853
5854Do not abort an ACPI table load if an invalid space ID is found within.
5855This
5856will be caught later if the offending method is executed. ACPICA BZ 925.
5857
5858Fixed an issue with the FFixedHW space ID where the ID was not always
5859recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
5860
5861Fixed a problem with the 32-bit generation of the unix-specific OSL
5862(osunixxf.c). Lin Ming, ACPICA BZ 936.
5863
5864Several changes made to enable generation with the GCC 4.6 compiler.
5865ACPICA BZ
5866935.
5867
5868New error messages: Unsupported I/O requests (not 8/16/32 bit), and
5869Index/Bank
5870field registers out-of-range.
5871
58722) iASL Compiler/Disassembler and Tools:
5873
5874iASL: Implemented the __PATH__ operator, which returns the full pathname
5875of
5876the current source file.
5877
5878AcpiHelp: Automatically display expanded keyword information for all ASL
5879operators.
5880
5881Debugger: Add "Template" command to disassemble/dump resource template
5882buffers.
5883
5884Added a new master script to generate and execute the ASLTS test suite.
5885Automatically handles 32- and 64-bit generation. See tests/aslts.sh
5886
5887iASL: Fix problem with listing generation during processing of the
5888Switch()
5889operator where AML listing was disabled until the entire Switch block was
5890completed.
5891
5892iASL: Improve support for semicolon statement terminators. Fix "invalid
5893character" message for some cases when the semicolon is used. Semicolons
5894are
5895now allowed after every <Term> grammar element. ACPICA BZ 927.
5896
5897iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
5898923.
5899
5900Disassembler: Fix problem with disassembly of the DataTableRegion
5901operator
5902where an inadvertent "Unhandled deferred opcode" message could be
5903generated.
5904
59053) Example Code and Data Size
5906
5907These are the sizes for the OS-independent acpica.lib produced by the
5908Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
5909includes the debug output trace mechanism and has a much larger code and
5910data
5911size.
5912
5913  Previous Release:
5914    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
5915    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
5916  Current Release:
5917    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
5918    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
5919
5920----------------------------------------
592122 September 2011. Summary of changes for version 20110922:
5922
59230) ACPI 5.0 News:
5924
5925Support for ACPI 5.0 in ACPICA has been underway for several months and
5926will
5927be released at the same time that ACPI 5.0 is officially released.
5928
5929The ACPI 5.0 specification is on track for release in the next few
5930months.
5931
59321) ACPICA Core Subsystem:
5933
5934Fixed a problem where the maximum sleep time for the Sleep() operator was
5935intended to be limited to two seconds, but was inadvertently limited to
593620
5937seconds instead.
5938
5939Linux and Unix makefiles: Added header file dependencies to ensure
5940correct
5941generation of ACPICA core code and utilities. Also simplified the
5942makefiles
5943considerably through the use of the vpath variable to specify search
5944paths.
5945ACPICA BZ 924.
5946
59472) iASL Compiler/Disassembler and Tools:
5948
5949iASL: Implemented support to check the access length for all fields
5950created to
5951access named Resource Descriptor fields. For example, if a resource field
5952is
5953defined to be two bits, a warning is issued if a CreateXxxxField() is
5954used
5955with an incorrect bit length. This is implemented for all current
5956resource
5957descriptor names. ACPICA BZ 930.
5958
5959Disassembler: Fixed a byte ordering problem with the output of 24-bit and
596056-
5961bit integers.
5962
5963iASL: Fixed a couple of issues associated with variable-length package
5964objects. 1) properly handle constants like One, Ones, Zero -- do not make
5965a
5966VAR_PACKAGE when these are used as a package length. 2) Allow the
5967VAR_PACKAGE
5968opcode (in addition to PACKAGE) when validating object types for
5969predefined
5970names.
5971
5972iASL: Emit statistics for all output files (instead of just the ASL input
5973and
5974AML output). Includes listings, hex files, etc.
5975
5976iASL: Added -G option to the table compiler to allow the compilation of
5977custom
5978ACPI tables. The only part of a table that is required is the standard
597936-
5980byte
5981ACPI header.
5982
5983AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
5984headers),
5985which also adds correct 64-bit support. Also, now all output filenames
5986are
5987completely lower case.
5988
5989AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
5990loading table files. A warning is issued for any such tables. The only
5991exception is an FADT. This also fixes a possible fault when attempting to
5992load
5993non-AML tables. ACPICA BZ 932.
5994
5995AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
5996a
5997missing table terminator could cause a fault when using the -p option.
5998
5999AcpiSrc: Fixed a possible divide-by-zero fault when generating file
6000statistics.
6001
60023) Example Code and Data Size
6003
6004These are the sizes for the OS-independent acpica.lib produced by the
6005Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
6006includes the debug output trace mechanism and has a much larger code and
6007data
6008size.
6009
6010  Previous Release (VC 9.0):
6011    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
6012    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6013  Current Release (VC 9.0):
6014    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
6015    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6016
6017
6018----------------------------------------
601923 June 2011. Summary of changes for version 20110623:
6020
60211) ACPI CA Core Subsystem:
6022
6023Updated the predefined name repair mechanism to not attempt repair of a
6024_TSS
6025return object if a _PSS object is present. We can only sort the _TSS
6026return
6027package if there is no _PSS within the same scope. This is because if
6028_PSS
6029is
6030present, the ACPI specification dictates that the _TSS Power Dissipation
6031field
6032is to be ignored, and therefore some BIOSs leave garbage values in the
6033_TSS
6034Power field(s). In this case, it is best to just return the _TSS package
6035as-
6036is. Reported by, and fixed with assistance from Fenghua Yu.
6037
6038Added an option to globally disable the control method return value
6039validation
6040and repair. This runtime option can be used to disable return value
6041repair
6042if
6043this is causing a problem on a particular machine. Also added an option
6044to
6045AcpiExec (-dr) to set this disable flag.
6046
6047All makefiles and project files: Major changes to improve generation of
6048ACPICA
6049tools. ACPICA BZ 912:
6050    Reduce default optimization levels to improve compatibility
6051    For Linux, add strict-aliasing=0 for gcc 4
6052    Cleanup and simplify use of command line defines
6053    Cleanup multithread library support
6054    Improve usage messages
6055
6056Linux-specific header: update handling of THREAD_ID and pthread. For the
605732-
6058bit case, improve casting to eliminate possible warnings, especially with
6059the
6060acpica tools.
6061
6062Example Code and Data Size: These are the sizes for the OS-independent
6063acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6064debug
6065version of the code includes the debug output trace mechanism and has a
6066much
6067larger code and data size.
6068
6069  Previous Release (VC 9.0):
6070    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
6071    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6072  Current Release (VC 9.0):
6073    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
6074    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6075
60762) iASL Compiler/Disassembler and Tools:
6077
6078With this release, a new utility named "acpihelp" has been added to the
6079ACPICA
6080package. This utility summarizes the ACPI specification chapters for the
6081ASL
6082and AML languages. It generates under Linux/Unix as well as Windows, and
6083provides the following functionality:
6084    Find/display ASL operator(s) -- with description and syntax.
6085    Find/display ASL keyword(s) -- with exact spelling and descriptions.
6086    Find/display ACPI predefined name(s) -- with description, number
6087        of arguments, and the return value data type.
6088    Find/display AML opcode name(s) -- with opcode, arguments, and
6089grammar.
6090    Decode/display AML opcode -- with opcode name, arguments, and
6091grammar.
6092
6093Service Layers: Make multi-thread support configurable. Conditionally
6094compile
6095the multi-thread support so that threading libraries will not be linked
6096if
6097not
6098necessary. The only tool that requires multi-thread support is AcpiExec.
6099
6100iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
6101of
6102Bison appear to want the interface to yyerror to be a const char * (or at
6103least this is a problem when generating iASL on some systems.) ACPICA BZ
6104923
6105Pierre Lejeune.
6106
6107Tools: Fix for systems where O_BINARY is not defined. Only used for
6108Windows
6109versions of the tools.
6110
6111----------------------------------------
611227 May 2011. Summary of changes for version 20110527:
6113
61141) ACPI CA Core Subsystem:
6115
6116ASL Load() operator: Reinstate most restrictions on the incoming ACPI
6117table
6118signature. Now, only allow SSDT, OEMx, and a null signature. History:
6119    1) Originally, we checked the table signature for "SSDT" or "PSDT".
6120       (PSDT is now obsolete.)
6121    2) We added support for OEMx tables, signature "OEM" plus a fourth
6122       "don't care" character.
6123    3) Valid tables were encountered with a null signature, so we just
6124       gave up on validating the signature, (05/2008).
6125    4) We encountered non-AML tables such as the MADT, which caused
6126       interpreter errors and kernel faults. So now, we once again allow
6127       only SSDT, OEMx, and now, also a null signature. (05/2011).
6128
6129Added the missing _TDL predefined name to the global name list in order
6130to
6131enable validation. Affects both the core ACPICA code and the iASL
6132compiler.
6133
6134Example Code and Data Size: These are the sizes for the OS-independent
6135acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6136debug
6137version of the code includes the debug output trace mechanism and has a
6138much
6139larger code and data size.
6140
6141  Previous Release (VC 9.0):
6142    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
6143    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
6144  Current Release (VC 9.0):
6145    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
6146    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6147
61482) iASL Compiler/Disassembler and Tools:
6149
6150Debugger/AcpiExec: Implemented support for "complex" method arguments on
6151the
6152debugger command line. This adds support beyond simple integers --
6153including
6154Strings, Buffers, and Packages. Includes support for nested packages.
6155Increased the default command line buffer size to accommodate these
6156arguments.
6157See the ACPICA reference for details and syntax. ACPICA BZ 917.
6158
6159Debugger/AcpiExec: Implemented support for "default" method arguments for
6160the
6161Execute/Debug command. Now, the debugger will always invoke a control
6162method
6163with the required number of arguments -- even if the command line
6164specifies
6165none or insufficient arguments. It uses default integer values for any
6166missing
6167arguments. Also fixes a bug where only six method arguments maximum were
6168supported instead of the required seven.
6169
6170Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
6171and
6172also return status in order to prevent buffer overruns. See the ACPICA
6173reference for details and syntax. ACPICA BZ 921
6174
6175iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
6176makefiles to simplify support for the two different but similar parser
6177generators, bison and yacc.
6178
6179Updated the generic unix makefile for gcc 4. The default gcc version is
6180now
6181expected to be 4 or greater, since options specific to gcc 4 are used.
6182
6183----------------------------------------
618413 April 2011. Summary of changes for version 20110413:
6185
61861) ACPI CA Core Subsystem:
6187
6188Implemented support to execute a so-called "orphan" _REG method under the
6189EC
6190device. This change will force the execution of a _REG method underneath
6191the
6192EC
6193device even if there is no corresponding operation region of type
6194EmbeddedControl. Fixes a problem seen on some machines and apparently is
6195compatible with Windows behavior. ACPICA BZ 875.
6196
6197Added more predefined methods that are eligible for automatic NULL
6198package
6199element removal. This change adds another group of predefined names to
6200the
6201list
6202of names that can be repaired by having NULL package elements dynamically
6203removed. This group are those methods that return a single variable-
6204length
6205package containing simple data types such as integers, buffers, strings.
6206This
6207includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
6208_PSL,
6209_Sx,
6210and _TZD. ACPICA BZ 914.
6211
6212Split and segregated all internal global lock functions to a new file,
6213evglock.c.
6214
6215Updated internal address SpaceID for DataTable regions. Moved this
6216internal
6217space
6218id in preparation for ACPI 5.0 changes that will include some new space
6219IDs.
6220This
6221change should not affect user/host code.
6222
6223Example Code and Data Size: These are the sizes for the OS-independent
6224acpica.lib
6225produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
6226version of
6227the code includes the debug output trace mechanism and has a much larger
6228code
6229and
6230data size.
6231
6232  Previous Release (VC 9.0):
6233    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
6234    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
6235  Current Release (VC 9.0):
6236    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
6237    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
6238
62392) iASL Compiler/Disassembler and Tools:
6240
6241iASL/DTC: Major update for new grammar features. Allow generic data types
6242in
6243custom ACPI tables. Field names are now optional. Any line can be split
6244to
6245multiple lines using the continuation char (\). Large buffers now use
6246line-
6247continuation character(s) and no colon on the continuation lines. See the
6248grammar
6249update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
6250Moore.
6251
6252iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
6253statements.
6254Since the parser stuffs a "zero" as the return value for these statements
6255(due
6256to
6257the underlying AML grammar), they were seen as "return with value" by the
6258iASL
6259semantic checking. They are now seen correctly as "null" return
6260statements.
6261
6262iASL: Check if a_REG declaration has a corresponding Operation Region.
6263Adds a
6264check for each _REG to ensure that there is in fact a corresponding
6265operation
6266region declaration in the same scope. If not, the _REG method is not very
6267useful
6268since it probably won't be executed. ACPICA BZ 915.
6269
6270iASL/DTC: Finish support for expression evaluation. Added a new
6271expression
6272parser
6273that implements c-style operator precedence and parenthesization. ACPICA
6274bugzilla
6275908.
6276
6277Disassembler/DTC: Remove support for () and <> style comments in data
6278tables.
6279Now
6280that DTC has full expression support, we don't want to have comment
6281strings
6282that
6283start with a parentheses or a less-than symbol. Now, only the standard /*
6284and
6285//
6286comments are supported, as well as the bracket [] comments.
6287
6288AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
6289"unusual"
6290headers in the acpidump file. Update the header validation to support
6291these
6292tables. Problem introduced in previous AcpiXtract version in the change
6293to
6294support "wrong checksum" error messages emitted by acpidump utility.
6295
6296iASL: Add a * option to generate all template files (as a synonym for
6297ALL)
6298as
6299in
6300"iasl -T *" or "iasl -T ALL".
6301
6302iASL/DTC: Do not abort compiler on fatal errors. We do not want to
6303completely
6304abort the compiler on "fatal" errors, simply should abort the current
6305compile.
6306This allows multiple compiles with a single (possibly wildcard) compiler
6307invocation.
6308
6309----------------------------------------
631016 March 2011. Summary of changes for version 20110316:
6311
63121) ACPI CA Core Subsystem:
6313
6314Fixed a problem caused by a _PRW method appearing at the namespace root
6315scope
6316during the setup of wake GPEs. A fault could occur if a _PRW directly
6317under
6318the
6319root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
6320
6321Implemented support for "spurious" Global Lock interrupts. On some
6322systems, a
6323global lock interrupt can occur without the pending flag being set. Upon
6324a
6325GL
6326interrupt, we now ensure that a thread is actually waiting for the lock
6327before
6328signaling GL availability. Rafael Wysocki, Bob Moore.
6329
6330Example Code and Data Size: These are the sizes for the OS-independent
6331acpica.lib
6332produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
6333version of
6334the code includes the debug output trace mechanism and has a much larger
6335code
6336and
6337data size.
6338
6339  Previous Release (VC 9.0):
6340    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
6341    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6342  Current Release (VC 9.0):
6343    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
6344    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
6345
63462) iASL Compiler/Disassembler and Tools:
6347
6348Implemented full support for the "SLIC" ACPI table. Includes support in
6349the
6350header files, disassembler, table compiler, and template generator. Bob
6351Moore,
6352Lin Ming.
6353
6354AcpiXtract: Correctly handle embedded comments and messages from
6355AcpiDump.
6356Apparently some or all versions of acpidump will occasionally emit a
6357comment
6358like
6359"Wrong checksum", etc., into the dump file. This was causing problems for
6360AcpiXtract. ACPICA BZ 905.
6361
6362iASL: Fix the Linux makefile by removing an inadvertent double file
6363inclusion.
6364ACPICA BZ 913.
6365
6366AcpiExec: Update installation of operation region handlers. Install one
6367handler
6368for a user-defined address space. This is used by the ASL test suite
6369(ASLTS).
6370
6371----------------------------------------
637211 February 2011. Summary of changes for version 20110211:
6373
63741) ACPI CA Core Subsystem:
6375
6376Added a mechanism to defer _REG methods for some early-installed
6377handlers.
6378Most user handlers should be installed before call to
6379AcpiEnableSubsystem.
6380However, Event handlers and region handlers should be installed after
6381AcpiInitializeObjects. Override handlers for the "default" regions should
6382be
6383installed early, however. This change executes all _REG methods for the
6384default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
6385chicken/egg issues between them. ACPICA BZ 848.
6386
6387Implemented an optimization for GPE detection. This optimization will
6388simply
6389ignore GPE registers that contain no enabled GPEs -- there is no need to
6390read the register since this information is available internally. This
6391becomes more important on machines with a large GPE space. ACPICA
6392bugzilla
6393884. Lin Ming. Suggestion from Joe Liu.
6394
6395Removed all use of the highly unreliable FADT revision field. The
6396revision
6397number in the FADT has been found to be completely unreliable and cannot
6398be
6399trusted. Only the actual table length can be used to infer the version.
6400This
6401change updates the ACPICA core and the disassembler so that both no
6402longer
6403even look at the FADT version and instead depend solely upon the FADT
6404length.
6405
6406Fix an unresolved name issue for the no-debug and no-error-message source
6407generation cases. The _AcpiModuleName was left undefined in these cases,
6408but
6409it is actually needed as a parameter to some interfaces. Define
6410_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
6411
6412Split several large files (makefiles and project files updated)
6413  utglobal.c   -> utdecode.c
6414  dbcomds.c    -> dbmethod.c dbnames.c
6415  dsopcode.c   -> dsargs.c dscontrol.c
6416  dsload.c     -> dsload2.c
6417  aslanalyze.c -> aslbtypes.c aslwalks.c
6418
6419Example Code and Data Size: These are the sizes for the OS-independent
6420acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6421debug version of the code includes the debug output trace mechanism and
6422has
6423a much larger code and data size.
6424
6425  Previous Release (VC 9.0):
6426    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
6427    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6428  Current Release (VC 9.0):
6429    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
6430    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6431
64322) iASL Compiler/Disassembler and Tools:
6433
6434iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
6435These are useful C-style macros with the standard definitions. ACPICA
6436bugzilla 898.
6437
6438iASL/DTC: Added support for integer expressions and labels. Support for
6439full
6440expressions for all integer fields in all ACPI tables. Support for labels
6441in
6442"generic" portions of tables such as UEFI. See the iASL reference manual.
6443
6444Debugger: Added a command to display the status of global handlers. The
6445"handlers" command will display op region, fixed event, and miscellaneous
6446global handlers. installation status -- and for op regions, whether
6447default
6448or user-installed handler will be used.
6449
6450iASL: Warn if reserved method incorrectly returns a value. Many
6451predefined
6452names are defined such that they do not return a value. If implemented as
6453a
6454method, issue a warning if such a name explicitly returns a value. ACPICA
6455Bugzilla 855.
6456
6457iASL: Added detection of GPE method name conflicts. Detects a conflict
6458where
6459there are two GPE methods of the form _Lxy and _Exy in the same scope.
6460(For
6461example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
6462
6463iASL/DTC: Fixed a couple input scanner issues with comments and line
6464numbers. Comment remover could get confused and miss a comment ending.
6465Fixed
6466a problem with line counter maintenance.
6467
6468iASL/DTC: Reduced the severity of some errors from fatal to error. There
6469is
6470no need to abort on simple errors within a field definition.
6471
6472Debugger: Simplified the output of the help command. All help output now
6473in
6474a single screen, instead of help subcommands. ACPICA Bugzilla 897.
6475
6476----------------------------------------
647712 January 2011. Summary of changes for version 20110112:
6478
64791) ACPI CA Core Subsystem:
6480
6481Fixed a race condition between method execution and namespace walks that
6482can
6483possibly cause a fault. The problem was apparently introduced in version
648420100528 as a result of a performance optimization that reduces the
6485number
6486of
6487namespace walks upon method exit by using the delete_namespace_subtree
6488function instead of the delete_namespace_by_owner function used
6489previously.
6490Bug is a missing namespace lock in the delete_namespace_subtree function.
6491dana.myers@oracle.com
6492
6493Fixed several issues and a possible fault with the automatic "serialized"
6494method support. History: This support changes a method to "serialized" on
6495the
6496fly if the method generates an AE_ALREADY_EXISTS error, indicating the
6497possibility that it cannot handle reentrancy. This fix repairs a couple
6498of
6499issues seen in the field, especially on machines with many cores:
6500
6501    1) Delete method children only upon the exit of the last thread,
6502       so as to not delete objects out from under other running threads
6503      (and possibly causing a fault.)
6504    2) Set the "serialized" bit for the method only upon the exit of the
6505       Last thread, so as to not cause deadlock when running threads
6506       attempt to exit.
6507    3) Cleanup the use of the AML "MethodFlags" and internal method flags
6508       so that there is no longer any confusion between the two.
6509
6510    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
6511
6512Debugger: Now lock the namespace for duration of a namespace dump.
6513Prevents
6514issues if the namespace is changing dynamically underneath the debugger.
6515Especially affects temporary namespace nodes, since the debugger displays
6516these also.
6517
6518Updated the ordering of include files. The ACPICA headers should appear
6519before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
6520set
6521any necessary compiler-specific defines, etc. Affects the ACPI-related
6522tools
6523and utilities.
6524
6525Updated all ACPICA copyrights and signons to 2011. Added the 2011
6526copyright
6527to all module headers and signons, including the Linux header. This
6528affects
6529virtually every file in the ACPICA core subsystem, iASL compiler, and all
6530utilities.
6531
6532Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
6533project files for VC++ 6.0 are now obsolete. New project files can be
6534found
6535under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
6536details.
6537
6538Example Code and Data Size: These are the sizes for the OS-independent
6539acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6540debug version of the code includes the debug output trace mechanism and
6541has a
6542much larger code and data size.
6543
6544  Previous Release (VC 6.0):
6545    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
6546    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
6547  Current Release (VC 9.0):
6548    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
6549    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6550
65512) iASL Compiler/Disassembler and Tools:
6552
6553iASL: Added generic data types to the Data Table compiler. Add "generic"
6554data
6555types such as UINT32, String, Unicode, etc., to simplify the generation
6556of
6557platform-defined tables such as UEFI. Lin Ming.
6558
6559iASL: Added listing support for the Data Table Compiler. Adds listing
6560support
6561(-l) to display actual binary output for each line of input code.
6562
6563----------------------------------------
656409 December 2010. Summary of changes for version 20101209:
6565
65661) ACPI CA Core Subsystem:
6567
6568Completed the major overhaul of the GPE support code that was begun in
6569July
65702010. Major features include: removal of _PRW execution in ACPICA (host
6571executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
6572changes to existing interfaces, simplification of GPE handler operation,
6573and
6574a handful of new interfaces:
6575
6576    AcpiUpdateAllGpes
6577    AcpiFinishGpe
6578    AcpiSetupGpeForWake
6579    AcpiSetGpeWakeMask
6580    One new file, evxfgpe.c to consolidate all external GPE interfaces.
6581
6582See the ACPICA Programmer Reference for full details and programming
6583information. See the new section 4.4 "General Purpose Event (GPE)
6584Support"
6585for a full overview, and section 8.7 "ACPI General Purpose Event
6586Management"
6587for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
6588Ming,
6589Bob Moore, Rafael Wysocki.
6590
6591Implemented a new GPE feature for Windows compatibility, the "Implicit
6592Wake
6593GPE Notify". This feature will automatically issue a Notify(2) on a
6594device
6595when a Wake GPE is received if there is no corresponding GPE method or
6596handler. ACPICA BZ 870.
6597
6598Fixed a problem with the Scope() operator during table parse and load
6599phase.
6600During load phase (table load or method execution), the scope operator
6601should
6602not enter the target into the namespace. Instead, it should open a new
6603scope
6604at the target location. Linux BZ 19462, ACPICA BZ 882.
6605
6606Example Code and Data Size: These are the sizes for the OS-independent
6607acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6608debug version of the code includes the debug output trace mechanism and
6609has a
6610much larger code and data size.
6611
6612  Previous Release:
6613    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
6614    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
6615  Current Release:
6616    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6617    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6618
66192) iASL Compiler/Disassembler and Tools:
6620
6621iASL: Relax the alphanumeric restriction on _CID strings. These strings
6622are
6623"bus-specific" per the ACPI specification, and therefore any characters
6624are
6625acceptable. The only checks that can be performed are for a null string
6626and
6627perhaps for a leading asterisk. ACPICA BZ 886.
6628
6629iASL: Fixed a problem where a syntax error that caused a premature EOF
6630condition on the source file emitted a very confusing error message. The
6631premature EOF is now detected correctly. ACPICA BZ 891.
6632
6633Disassembler: Decode the AccessSize within a Generic Address Structure
6634(byte
6635access, word access, etc.) Note, this field does not allow arbitrary bit
6636access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
6637
6638New: AcpiNames utility - Example namespace dump utility. Shows an example
6639of
6640ACPICA configuration for a minimal namespace dump utility. Uses table and
6641namespace managers, but no AML interpreter. Does not add any
6642functionality
6643over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
6644partition and configure ACPICA. ACPICA BZ 883.
6645
6646AML Debugger: Increased the debugger buffer size for method return
6647objects.
6648Was 4K, increased to 16K. Also enhanced error messages for debugger
6649method
6650execution, including the buffer overflow case.
6651
6652----------------------------------------
665313 October 2010. Summary of changes for version 20101013:
6654
66551) ACPI CA Core Subsystem:
6656
6657Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
6658now
6659clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
6660HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
6661
6662Changed the type of the predefined namespace object _TZ from ThermalZone
6663to
6664Device. This was found to be confusing to the host software that
6665processes
6666the various thermal zones, since _TZ is not really a ThermalZone.
6667However,
6668a
6669Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
6670Zhang.
6671
6672Added Windows Vista SP2 to the list of supported _OSI strings. The actual
6673string is "Windows 2006 SP2".
6674
6675Eliminated duplicate code in AcpiUtExecute* functions. Now that the
6676nsrepair
6677code automatically repairs _HID-related strings, this type of code is no
6678longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
6679878.
6680
6681Example Code and Data Size: These are the sizes for the OS-independent
6682acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6683debug version of the code includes the debug output trace mechanism and
6684has a
6685much larger code and data size.
6686
6687  Previous Release:
6688    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6689    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6690  Current Release:
6691    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6692    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6693
66942) iASL Compiler/Disassembler and Tools:
6695
6696iASL: Implemented additional compile-time validation for _HID strings.
6697The
6698non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
6699length
6700of
6701the string must be exactly seven or eight characters. For both _HID and
6702_CID
6703strings, all characters must be alphanumeric. ACPICA BZ 874.
6704
6705iASL: Allow certain "null" resource descriptors. Some BIOS code creates
6706descriptors that are mostly or all zeros, with the expectation that they
6707will
6708be filled in at runtime. iASL now allows this as long as there is a
6709"resource
6710tag" (name) associated with the descriptor, which gives the ASL a handle
6711needed to modify the descriptor. ACPICA BZ 873.
6712
6713Added single-thread support to the generic Unix application OSL.
6714Primarily
6715for iASL support, this change removes the use of semaphores in the
6716single-
6717threaded ACPICA tools/applications - increasing performance. The
6718_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
6719option. ACPICA BZ 879.
6720
6721AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
6722support
6723for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
6724
6725iASL: Moved all compiler messages to a new file, aslmessages.h.
6726
6727----------------------------------------
672815 September 2010. Summary of changes for version 20100915:
6729
67301) ACPI CA Core Subsystem:
6731
6732Removed the AcpiOsDerivePciId OSL interface. The various host
6733implementations
6734of this function were not OS-dependent and are now obsolete and can be
6735removed from all host OSLs. This function has been replaced by
6736AcpiHwDerivePciId, which is now part of the ACPICA core code.
6737AcpiHwDerivePciId has been implemented without recursion. Adds one new
6738module, hwpci.c. ACPICA BZ 857.
6739
6740Implemented a dynamic repair for _HID and _CID strings. The following
6741problems are now repaired at runtime: 1) Remove a leading asterisk in the
6742string, and 2) the entire string is uppercased. Both repairs are in
6743accordance with the ACPI specification and will simplify host driver
6744code.
6745ACPICA BZ 871.
6746
6747The ACPI_THREAD_ID type is no longer configurable, internally it is now
6748always UINT64. This simplifies the ACPICA code, especially any printf
6749output.
6750UINT64 is the only common data type for all thread_id types across all
6751operating systems. It is now up to the host OSL to cast the native
6752thread_id
6753type to UINT64 before returning the value to ACPICA (via
6754AcpiOsGetThreadId).
6755Lin Ming, Bob Moore.
6756
6757Added the ACPI_INLINE type to enhance the ACPICA configuration. The
6758"inline"
6759keyword is not standard across compilers, and this type allows inline to
6760be
6761configured on a per-compiler basis. Lin Ming.
6762
6763Made the system global AcpiGbl_SystemAwakeAndRunning publically
6764available.
6765Added an extern for this boolean in acpixf.h. Some hosts utilize this
6766value
6767during suspend/restore operations. ACPICA BZ 869.
6768
6769All code that implements error/warning messages with the "ACPI:" prefix
6770has
6771been moved to a new module, utxferror.c.
6772
6773The UINT64_OVERLAY was moved to utmath.c, which is the only module where
6774it
6775is used. ACPICA BZ 829. Lin Ming, Bob Moore.
6776
6777Example Code and Data Size: These are the sizes for the OS-independent
6778acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6779debug version of the code includes the debug output trace mechanism and
6780has a
6781much larger code and data size.
6782
6783  Previous Release:
6784    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
6785    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
6786  Current Release:
6787    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6788    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6789
67902) iASL Compiler/Disassembler and Tools:
6791
6792iASL/Disassembler: Write ACPI errors to stderr instead of the output
6793file.
6794This keeps the output files free of random error messages that may
6795originate
6796from within the namespace/interpreter code. Used this opportunity to
6797merge
6798all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
6799866. Lin Ming, Bob Moore.
6800
6801Tools: update some printfs for ansi warnings on size_t. Handle width
6802change
6803of size_t on 32-bit versus 64-bit generations. Lin Ming.
6804
6805----------------------------------------
680606 August 2010. Summary of changes for version 20100806:
6807
68081) ACPI CA Core Subsystem:
6809
6810Designed and implemented a new host interface to the _OSI support code.
6811This
6812will allow the host to dynamically add or remove multiple _OSI strings,
6813as
6814well as install an optional handler that is called for each _OSI
6815invocation.
6816Also added a new AML debugger command, 'osi' to display and modify the
6817global
6818_OSI string table, and test support in the AcpiExec utility. See the
6819ACPICA
6820reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
6821New Functions:
6822    AcpiInstallInterface - Add an _OSI string.
6823    AcpiRemoveInterface - Delete an _OSI string.
6824    AcpiInstallInterfaceHandler - Install optional _OSI handler.
6825Obsolete Functions:
6826    AcpiOsValidateInterface - no longer used.
6827New Files:
6828    source/components/utilities/utosi.c
6829
6830Re-introduced the support to enable multi-byte transfers for Embedded
6831Controller (EC) operation regions. A reported problem was found to be a
6832bug
6833in the host OS, not in the multi-byte support. Previously, the maximum
6834data
6835size passed to the EC operation region handler was a single byte. There
6836are
6837often EC Fields larger than one byte that need to be transferred, and it
6838is
6839useful for the EC driver to lock these as a single transaction. This
6840change
6841enables single transfers larger than 8 bits. This effectively changes the
6842access to the EC space from ByteAcc to AnyAcc, and will probably require
6843changes to the host OS Embedded Controller driver to enable 16/32/64/256-
6844bit
6845transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
6846
6847Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
6848prototype in acpiosxf.h had the output value pointer as a (void *).
6849It should be a (UINT64 *). This may affect some host OSL code.
6850
6851Fixed a couple problems with the recently modified Linux makefiles for
6852iASL
6853and AcpiExec. These new makefiles place the generated object files in the
6854local directory so that there can be no collisions between the files that
6855are
6856shared between them that are compiled with different options.
6857
6858Example Code and Data Size: These are the sizes for the OS-independent
6859acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6860debug version of the code includes the debug output trace mechanism and
6861has a
6862much larger code and data size.
6863
6864  Previous Release:
6865    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6866    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
6867  Current Release:
6868    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
6869    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
6870
68712) iASL Compiler/Disassembler and Tools:
6872
6873iASL/Disassembler: Added a new option (-da, "disassemble all") to load
6874the
6875namespace from and disassemble an entire group of AML files. Useful for
6876loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
6877and
6878disassembling with one simple command. ACPICA BZ 865. Lin Ming.
6879
6880iASL: Allow multiple invocations of -e option. This change allows
6881multiple
6882uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
6883834.
6884Lin Ming.
6885
6886----------------------------------------
688702 July 2010. Summary of changes for version 20100702:
6888
68891) ACPI CA Core Subsystem:
6890
6891Implemented several updates to the recently added GPE reference count
6892support. The model for "wake" GPEs is changing to give the host OS
6893complete
6894control of these GPEs. Eventually, the ACPICA core will not execute any
6895_PRW
6896methods, since the host already must execute them. Also, additional
6897changes
6898were made to help ensure that the reference counts are kept in proper
6899synchronization with reality. Rafael J. Wysocki.
6900
69011) Ensure that GPEs are not enabled twice during initialization.
69022) Ensure that GPE enable masks stay in sync with the reference count.
69033) Do not inadvertently enable GPEs when writing GPE registers.
69044) Remove the internal wake reference counter and add new AcpiGpeWakeup
6905interface. This interface will set or clear individual GPEs for wakeup.
69065) Remove GpeType argument from AcpiEnable and AcpiDisable. These
6907interfaces
6908are now used for "runtime" GPEs only.
6909
6910Changed the behavior of the GPE install/remove handler interfaces. The
6911GPE
6912is
6913no longer disabled during this process, as it was found to cause problems
6914on
6915some machines. Rafael J. Wysocki.
6916
6917Reverted a change introduced in version 20100528 to enable Embedded
6918Controller multi-byte transfers. This change was found to cause problems
6919with
6920Index Fields and possibly Bank Fields. It will be reintroduced when these
6921problems have been resolved.
6922
6923Fixed a problem with references to Alias objects within Package Objects.
6924A
6925reference to an Alias within the definition of a Package was not always
6926resolved properly. Aliases to objects like Processors, Thermal zones,
6927etc.
6928were resolved to the actual object instead of a reference to the object
6929as
6930it
6931should be. Package objects are only allowed to contain integer, string,
6932buffer, package, and reference objects. Redhat bugzilla 608648.
6933
6934Example Code and Data Size: These are the sizes for the OS-independent
6935acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6936debug version of the code includes the debug output trace mechanism and
6937has a
6938much larger code and data size.
6939
6940  Previous Release:
6941    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6942    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
6943  Current Release:
6944    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6945    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
6946
69472) iASL Compiler/Disassembler and Tools:
6948
6949iASL: Implemented a new compiler subsystem to allow definition and
6950compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
6951These
6952are called "ACPI Data Tables", and the new compiler is the "Data Table
6953Compiler". This compiler is intended to simplify the existing error-prone
6954process of creating these tables for the BIOS, as well as allowing the
6955disassembly, modification, recompilation, and override of existing ACPI
6956data
6957tables. See the iASL User Guide for detailed information.
6958
6959iASL: Implemented a new Template Generator option in support of the new
6960Data
6961Table Compiler. This option will create examples of all known ACPI tables
6962that can be used as the basis for table development. See the iASL
6963documentation and the -T option.
6964
6965Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
6966Descriptor Table).
6967
6968Updated the Linux makefiles for iASL and AcpiExec to place the generated
6969object files in the local directory so that there can be no collisions
6970between the shared files between them that are generated with different
6971options.
6972
6973Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
6974Use
6975the #define __APPLE__ to enable this support.
6976
6977----------------------------------------
697828 May 2010. Summary of changes for version 20100528:
6979
6980Note: The ACPI 4.0a specification was released on April 5, 2010 and is
6981available at www.acpi.info. This is primarily an errata release.
6982
69831) ACPI CA Core Subsystem:
6984
6985Undefined ACPI tables: We are looking for the definitions for the
6986following
6987ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
6988
6989Implemented support to enable multi-byte transfers for Embedded
6990Controller
6991(EC) operation regions. Previously, the maximum data size passed to the
6992EC
6993operation region handler was a single byte. There are often EC Fields
6994larger
6995than one byte that need to be transferred, and it is useful for the EC
6996driver
6997to lock these as a single transaction. This change enables single
6998transfers
6999larger than 8 bits. This effectively changes the access to the EC space
7000from
7001ByteAcc to AnyAcc, and will probably require changes to the host OS
7002Embedded
7003Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
7004bit
7005transfers. Alexey Starikovskiy, Lin Ming
7006
7007Implemented a performance enhancement for namespace search and access.
7008This
7009change enhances the performance of namespace searches and walks by adding
7010a
7011backpointer to the parent in each namespace node. On large namespaces,
7012this
7013change can improve overall ACPI performance by up to 9X. Adding a pointer
7014to
7015each namespace node increases the overall size of the internal namespace
7016by
7017about 5%, since each namespace entry usually consists of both a namespace
7018node and an ACPI operand object. However, this is the first growth of the
7019namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
7020
7021Implemented a performance optimization that reduces the number of
7022namespace
7023walks. On control method exit, only walk the namespace if the method is
7024known
7025to have created namespace objects outside of its local scope. Previously,
7026the
7027entire namespace was traversed on each control method exit. This change
7028can
7029improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
7030Moore.
7031
7032Added support to truncate I/O addresses to 16 bits for Windows
7033compatibility.
7034Some ASL code has been seen in the field that inadvertently has bits set
7035above bit 15. This feature is optional and is enabled if the BIOS
7036requests
7037any Windows OSI strings. It can also be enabled by the host OS. Matthew
7038Garrett, Bob Moore.
7039
7040Added support to limit the maximum time for the ASL Sleep() operator. To
7041prevent accidental deep sleeps, limit the maximum time that Sleep() will
7042actually sleep. Configurable, the default maximum is two seconds. ACPICA
7043bugzilla 854.
7044
7045Added run-time validation support for the _WDG and_WED Microsoft
7046predefined
7047methods. These objects are defined by "Windows Instrumentation", and are
7048not
7049part of the ACPI spec. ACPICA BZ 860.
7050
7051Expanded all statistic counters used during namespace and device
7052initialization from 16 to 32 bits in order to support very large
7053namespaces.
7054
7055Replaced all instances of %d in printf format specifiers with %u since
7056nearly
7057all integers in ACPICA are unsigned.
7058
7059Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
7060returned
7061as AE_NO_HANDLER.
7062
7063Example Code and Data Size: These are the sizes for the OS-independent
7064acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7065debug version of the code includes the debug output trace mechanism and
7066has a
7067much larger code and data size.
7068
7069  Previous Release:
7070    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
7071    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
7072  Current Release:
7073    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
7074    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
7075
70762) iASL Compiler/Disassembler and Tools:
7077
7078iASL: Added compiler support for the _WDG and_WED Microsoft predefined
7079methods. These objects are defined by "Windows Instrumentation", and are
7080not
7081part of the ACPI spec. ACPICA BZ 860.
7082
7083AcpiExec: added option to disable the memory tracking mechanism. The -dt
7084option will disable the tracking mechanism, which improves performance
7085considerably.
7086
7087AcpiExec: Restructured the command line options into -d (disable) and -e
7088(enable) options.
7089
7090----------------------------------------
709128 April 2010. Summary of changes for version 20100428:
7092
70931) ACPI CA Core Subsystem:
7094
7095Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
7096including FADT-based and GPE Block Devices, execute any _PRW methods in
7097the
7098new table, and process any _Lxx/_Exx GPE methods in the new table. Any
7099runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
7100immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
7101Devices. Provides compatibility with other ACPI implementations. Two new
7102files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
7103Moore.
7104
7105Fixed a regression introduced in version 20100331 within the table
7106manager
7107where initial table loading could fail. This was introduced in the fix
7108for
7109AcpiReallocateRootTable. Also, renamed some of fields in the table
7110manager
7111data structures to clarify their meaning and use.
7112
7113Fixed a possible allocation overrun during internal object copy in
7114AcpiUtCopySimpleObject. The original code did not correctly handle the
7115case
7116where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
7117847.
7118
7119Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
7120possible access beyond end-of-allocation. Also, now fully validate
7121descriptor
7122(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
7123
7124Example Code and Data Size: These are the sizes for the OS-independent
7125acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7126debug version of the code includes the debug output trace mechanism and
7127has a
7128much larger code and data size.
7129
7130  Previous Release:
7131    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
7132    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
7133  Current Release:
7134    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
7135    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
7136
71372) iASL Compiler/Disassembler and Tools:
7138
7139iASL: Implemented Min/Max/Len/Gran validation for address resource
7140descriptors. This change implements validation for the address fields
7141that
7142are common to all address-type resource descriptors. These checks are
7143implemented: Checks for valid Min/Max, length within the Min/Max window,
7144valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
7145per
7146table 6-40 in the ACPI 4.0a specification. Also split the large
7147aslrestype1.c
7148and aslrestype2.c files into five new files. ACPICA BZ 840.
7149
7150iASL: Added support for the _Wxx predefined names. This support was
7151missing
7152and these names were not recognized by the compiler as valid predefined
7153names. ACPICA BZ 851.
7154
7155iASL: Added an error for all predefined names that are defined to return
7156no
7157value and thus must be implemented as Control Methods. These include all
7158of
7159the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
7160names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
7161
7162iASL: Implemented the -ts option to emit hex AML data in ASL format, as
7163an
7164ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
7165be
7166dynamically loaded via the Load() operator. Also cleaned up output for
7167the
7168-
7169ta and -tc options. ACPICA BZ 853.
7170
7171Tests: Added a new file with examples of extended iASL error checking.
7172Demonstrates the advanced error checking ability of the iASL compiler.
7173Available at tests/misc/badcode.asl.
7174
7175----------------------------------------
717631 March 2010. Summary of changes for version 20100331:
7177
71781) ACPI CA Core Subsystem:
7179
7180Completed a major update for the GPE support in order to improve support
7181for
7182shared GPEs and to simplify both host OS and ACPICA code. Added a
7183reference
7184count mechanism to support shared GPEs that require multiple device
7185drivers.
7186Several external interfaces have changed. One external interface has been
7187removed. One new external interface was added. Most of the GPE external
7188interfaces now use the GPE spinlock instead of the events mutex (and the
7189Flags parameter for many GPE interfaces has been removed.) See the
7190updated
7191ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
7192Rafael
7193Wysocki. ACPICA BZ 831.
7194
7195Changed:
7196    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
7197Removed:
7198    AcpiSetGpeType
7199New:
7200    AcpiSetGpe
7201
7202Implemented write support for DataTable operation regions. These regions
7203are
7204defined via the DataTableRegion() operator. Previously, only read support
7205was
7206implemented. The ACPI specification allows DataTableRegions to be
7207read/write,
7208however.
7209
7210Implemented a new subsystem option to force a copy of the DSDT to local
7211memory. Optionally copy the entire DSDT to local memory (instead of
7212simply
7213mapping it.) There are some (albeit very rare) BIOSs that corrupt or
7214replace
7215the original DSDT, creating the need for this option. Default is FALSE,
7216do
7217not copy the DSDT.
7218
7219Implemented detection of a corrupted or replaced DSDT. This change adds
7220support to detect a DSDT that has been corrupted and/or replaced from
7221outside
7222the OS (by firmware). This is typically catastrophic for the system, but
7223has
7224been seen on some machines. Once this problem has been detected, the DSDT
7225copy option can be enabled via system configuration. Lin Ming, Bob Moore.
7226
7227Fixed two problems with AcpiReallocateRootTable during the root table
7228copy.
7229When copying the root table to the new allocation, the length used was
7230incorrect. The new size was used instead of the current table size,
7231meaning
7232too much data was copied. Also, the count of available slots for ACPI
7233tables
7234was not set correctly. Alexey Starikovskiy, Bob Moore.
7235
7236Example Code and Data Size: These are the sizes for the OS-independent
7237acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7238debug version of the code includes the debug output trace mechanism and
7239has a
7240much larger code and data size.
7241
7242  Previous Release:
7243    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
7244    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
7245  Current Release:
7246    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
7247    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
7248
72492) iASL Compiler/Disassembler and Tools:
7250
7251iASL: Implement limited typechecking for values returned from predefined
7252control methods. The type of any returned static (unnamed) object is now
7253validated. For example, Return(1). ACPICA BZ 786.
7254
7255iASL: Fixed a predefined name object verification regression. Fixes a
7256problem
7257introduced in version 20100304. An error is incorrectly generated if a
7258predefined name is declared as a static named object with a value defined
7259using the keywords "Zero", "One", or "Ones". Lin Ming.
7260
7261iASL: Added Windows 7 support for the -g option (get local ACPI tables)
7262by
7263reducing the requested registry access rights. ACPICA BZ 842.
7264
7265Disassembler: fixed a possible fault when generating External()
7266statements.
7267Introduced in commit ae7d6fd: Properly handle externals with parent-
7268prefix
7269(carat). Fixes a string length allocation calculation. Lin Ming.
7270
7271----------------------------------------
727204 March 2010. Summary of changes for version 20100304:
7273
72741) ACPI CA Core Subsystem:
7275
7276Fixed a possible problem with the AML Mutex handling function
7277AcpiExReleaseMutex where the function could fault under the very rare
7278condition when the interpreter has blocked, the interpreter lock is
7279released,
7280the interpreter is then reentered via the same thread, and attempts to
7281acquire an AML mutex that was previously acquired. FreeBSD report 140979.
7282Lin
7283Ming.
7284
7285Implemented additional configuration support for the AML "Debug Object".
7286Output from the debug object can now be enabled via a global variable,
7287AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
7288debugging.
7289This debug output is now available in the release version of ACPICA
7290instead
7291of just the debug version. Also, the entire debug output module can now
7292be
7293configured out of the ACPICA build if desired. One new file added,
7294executer/exdebug.c. Lin Ming, Bob Moore.
7295
7296Added header support for the ACPI MCHI table (Management Controller Host
7297Interface Table). This table was added in ACPI 4.0, but the defining
7298document
7299has only recently become available.
7300
7301Standardized output of integer values for ACPICA warnings/errors. Always
7302use
73030x prefix for hex output, always use %u for unsigned integer decimal
7304output.
7305Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
7306400
7307invocations.) These invocations were converted from the original
7308ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
7309
7310Example Code and Data Size: These are the sizes for the OS-independent
7311acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7312debug version of the code includes the debug output trace mechanism and
7313has a
7314much larger code and data size.
7315
7316  Previous Release:
7317    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
7318    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
7319  Current Release:
7320    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
7321    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
7322
73232) iASL Compiler/Disassembler and Tools:
7324
7325iASL: Implemented typechecking support for static (non-control method)
7326predefined named objects that are declared with the Name() operator. For
7327example, the type of this object is now validated to be of type Integer:
7328Name(_BBN, 1). This change migrates the compiler to using the core
7329predefined
7330name table instead of maintaining a local version. Added a new file,
7331aslpredef.c. ACPICA BZ 832.
7332
7333Disassembler: Added support for the ACPI 4.0 MCHI table.
7334
7335----------------------------------------
733621 January 2010. Summary of changes for version 20100121:
7337
73381) ACPI CA Core Subsystem:
7339
7340Added the 2010 copyright to all module headers and signons. This affects
7341virtually every file in the ACPICA core subsystem, the iASL compiler, the
7342tools/utilities, and the test suites.
7343
7344Implemented a change to the AcpiGetDevices interface to eliminate
7345unnecessary
7346invocations of the _STA method. In the case where a specific _HID is
7347requested, do not run _STA until a _HID match is found. This eliminates
7348potentially dozens of _STA calls during a search for a particular
7349device/HID,
7350which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
7351
7352Implemented an additional repair for predefined method return values.
7353Attempt
7354to repair unexpected NULL elements within returned Package objects.
7355Create
7356an
7357Integer of value zero, a NULL String, or a zero-length Buffer as
7358appropriate.
7359ACPICA BZ 818. Lin Ming, Bob Moore.
7360
7361Removed the obsolete ACPI_INTEGER data type. This type was introduced as
7362the
7363code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
7364(with
736564-bit AML integers). It is now obsolete and this change removes it from
7366the
7367ACPICA code base, replaced by UINT64. The original typedef has been
7368retained
7369for now for compatibility with existing device driver code. ACPICA BZ
7370824.
7371
7372Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
7373in
7374the parse tree object.
7375
7376Added additional warning options for the gcc-4 generation. Updated the
7377source
7378accordingly. This includes some code restructuring to eliminate
7379unreachable
7380code, elimination of some gotos, elimination of unused return values,
7381some
7382additional casting, and removal of redundant declarations.
7383
7384Example Code and Data Size: These are the sizes for the OS-independent
7385acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7386debug version of the code includes the debug output trace mechanism and
7387has a
7388much larger code and data size.
7389
7390  Previous Release:
7391    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
7392    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
7393  Current Release:
7394    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
7395    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
7396
73972) iASL Compiler/Disassembler and Tools:
7398
7399No functional changes for this release.
7400
7401----------------------------------------
740214 December 2009. Summary of changes for version 20091214:
7403
74041) ACPI CA Core Subsystem:
7405
7406Enhanced automatic data type conversions for predefined name repairs.
7407This
7408change expands the automatic repairs/conversions for predefined name
7409return
7410values to make Integers, Strings, and Buffers fully interchangeable.
7411Also,
7412a
7413Buffer can be converted to a Package of Integers if necessary. The
7414nsrepair.c
7415module was completely restructured. Lin Ming, Bob Moore.
7416
7417Implemented automatic removal of null package elements during predefined
7418name
7419repairs. This change will automatically remove embedded and trailing NULL
7420package elements from returned package objects that are defined to
7421contain
7422a
7423variable number of sub-packages. The driver is then presented with a
7424package
7425with no null elements to deal with. ACPICA BZ 819.
7426
7427Implemented a repair for the predefined _FDE and _GTM names. The expected
7428return value for both names is a Buffer of 5 DWORDs. This repair fixes
7429two
7430possible problems (both seen in the field), where a package of integers
7431is
7432returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
7433Kim.
7434
7435Implemented additional module-level code support. This change will
7436properly
7437execute module-level code that is not at the root of the namespace (under
7438a
7439Device object, etc.). Now executes the code within the current scope
7440instead
7441of the root. ACPICA BZ 762. Lin Ming.
7442
7443Fixed possible mutex acquisition errors when running _REG methods. Fixes
7444a
7445problem where mutex errors can occur when running a _REG method that is
7446in
7447the same scope as a method-defined operation region or an operation
7448region
7449under a module-level IF block. This type of code is rare, so the problem
7450has
7451not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
7452
7453Fixed a possible memory leak during module-level code execution. An
7454object
7455could be leaked for each block of executed module-level code if the
7456interpreter slack mode is enabled This change deletes any implicitly
7457returned
7458object from the module-level code block. Lin Ming.
7459
7460Removed messages for successful predefined repair(s). The repair
7461mechanism
7462was considered too wordy. Now, messages are only unconditionally emitted
7463if
7464the return object cannot be repaired. Existing messages for successful
7465repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
7466827.
7467
7468Example Code and Data Size: These are the sizes for the OS-independent
7469acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7470debug version of the code includes the debug output trace mechanism and
7471has a
7472much larger code and data size.
7473
7474  Previous Release:
7475    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
7476    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
7477  Current Release:
7478    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
7479    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
7480
74812) iASL Compiler/Disassembler and Tools:
7482
7483iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
7484files
7485were no longer automatically removed at the termination of the compile.
7486
7487acpiexec: Implemented the -f option to specify default region fill value.
7488This option specifies the value used to initialize buffers that simulate
7489operation regions. Default value is zero. Useful for debugging problems
7490that
7491depend on a specific initial value for a region or field.
7492
7493----------------------------------------
749412 November 2009. Summary of changes for version 20091112:
7495
74961) ACPI CA Core Subsystem:
7497
7498Implemented a post-order callback to AcpiWalkNamespace. The existing
7499interface only has a pre-order callback. This change adds an additional
7500parameter for a post-order callback which will be more useful for bus
7501scans.
7502ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
7503
7504Modified the behavior of the operation region memory mapping cache for
7505SystemMemory. Ensure that the memory mappings created for operation
7506regions
7507do not cross 4K page boundaries. Crossing a page boundary while mapping
7508regions can cause kernel warnings on some hosts if the pages have
7509different
7510attributes. Such regions are probably BIOS bugs, and this is the
7511workaround.
7512Linux BZ 14445. Lin Ming.
7513
7514Implemented an automatic repair for predefined methods that must return
7515sorted lists. This change will repair (by sorting) packages returned by
7516_ALR,
7517_PSS, and _TSS. Drivers can now assume that the packages are correctly
7518sorted
7519and do not contain NULL package elements. Adds one new file,
7520namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
7521
7522Fixed a possible fault during predefined name validation if a return
7523Package
7524object contains NULL elements. Also adds a warning if a NULL element is
7525followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
7526may
7527include repair or removal of all such NULL elements where possible.
7528
7529Implemented additional module-level executable AML code support. This
7530change
7531will execute module-level code that is not at the root of the namespace
7532(under a Device object, etc.) at table load time. Module-level executable
7533AML
7534code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
7535
7536Implemented a new internal function to create Integer objects. This
7537function
7538simplifies miscellaneous object creation code. ACPICA BZ 823.
7539
7540Reduced the severity of predefined repair messages, Warning to Info.
7541Since
7542the object was successfully repaired, a warning is too severe. Reduced to
7543an
7544info message for now. These messages may eventually be changed to debug-
7545only.
7546ACPICA BZ 812.
7547
7548Example Code and Data Size: These are the sizes for the OS-independent
7549acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7550debug version of the code includes the debug output trace mechanism and
7551has a
7552much larger code and data size.
7553
7554  Previous Release:
7555    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
7556    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
7557  Current Release:
7558    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
7559    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
7560
75612) iASL Compiler/Disassembler and Tools:
7562
7563iASL: Implemented Switch() with While(1) so that Break works correctly.
7564This
7565change correctly implements the Switch operator with a surrounding
7566While(1)
7567so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
7568
7569iASL: Added a message if a package initializer list is shorter than
7570package
7571length. Adds a new remark for a Package() declaration if an initializer
7572list
7573exists, but is shorter than the declared length of the package. Although
7574technically legal, this is probably a coding error and it is seen in the
7575field. ACPICA BZ 815. Lin Ming, Bob Moore.
7576
7577iASL: Fixed a problem where the compiler could fault after the maximum
7578number
7579of errors was reached (200).
7580
7581acpixtract: Fixed a possible warning for pointer cast if the compiler
7582warning
7583level set very high.
7584
7585----------------------------------------
758613 October 2009. Summary of changes for version 20091013:
7587
75881) ACPI CA Core Subsystem:
7589
7590Fixed a problem where an Operation Region _REG method could be executed
7591more
7592than once. If a custom address space handler is installed by the host
7593before
7594the "initialize operation regions" phase of the ACPICA initialization,
7595any
7596_REG methods for that address space could be executed twice. This change
7597fixes the problem. ACPICA BZ 427. Lin Ming.
7598
7599Fixed a possible memory leak for the Scope() ASL operator. When the exact
7600invocation of "Scope(\)" is executed (change scope to root), one internal
7601operand object was leaked. Lin Ming.
7602
7603Implemented a run-time repair for the _MAT predefined method. If the _MAT
7604return value is defined as a Field object in the AML, and the field
7605size is less than or equal to the default width of an integer (32 or
760664),_MAT
7607can incorrectly return an Integer instead of a Buffer. ACPICA now
7608automatically repairs this problem. ACPICA BZ 810.
7609
7610Implemented a run-time repair for the _BIF and _BIX predefined methods.
7611The
7612"OEM Information" field is often incorrectly returned as an Integer with
7613value zero if the field is not supported by the platform. This is due to
7614an
7615ambiguity in the ACPI specification. The field should always be a string.
7616ACPICA now automatically repairs this problem by returning a NULL string
7617within the returned Package. ACPICA BZ 807.
7618
7619Example Code and Data Size: These are the sizes for the OS-independent
7620acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7621debug version of the code includes the debug output trace mechanism and
7622has a
7623much larger code and data size.
7624
7625  Previous Release:
7626    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
7627    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
7628  Current Release:
7629    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
7630    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
7631
76322) iASL Compiler/Disassembler and Tools:
7633
7634Disassembler: Fixed a problem where references to external symbols that
7635contained one or more parent-prefixes (carats) were not handled
7636correctly,
7637possibly causing a fault. ACPICA BZ 806. Lin Ming.
7638
7639Disassembler: Restructured the code so that all functions that handle
7640external symbols are in a single module. One new file is added,
7641common/dmextern.c.
7642
7643AML Debugger: Added a max count argument for the Batch command (which
7644executes multiple predefined methods within the namespace.)
7645
7646iASL: Updated the compiler documentation (User Reference.) Available at
7647http://www.acpica.org/documentation/. ACPICA BZ 750.
7648
7649AcpiXtract: Updated for Lint and other formatting changes. Close all open
7650files.
7651
7652----------------------------------------
765303 September 2009. Summary of changes for version 20090903:
7654
76551) ACPI CA Core Subsystem:
7656
7657For Windows Vista compatibility, added the automatic execution of an _INI
7658method located at the namespace root (\_INI). This method is executed at
7659table load time. This support is in addition to the automatic execution
7660of
7661\_SB._INI. Lin Ming.
7662
7663Fixed a possible memory leak in the interpreter for AML package objects
7664if
7665the package initializer list is longer than the defined size of the
7666package.
7667This apparently can only happen if the BIOS changes the package size on
7668the
7669fly (seen in a _PSS object), as ASL compilers do not allow this. The
7670interpreter will truncate the package to the defined size (and issue an
7671error
7672message), but previously could leave the extra objects undeleted if they
7673were
7674pre-created during the argument processing (such is the case if the
7675package
7676consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
7677
7678Fixed a problem seen when a Buffer or String is stored to itself via ASL.
7679This has been reported in the field. Previously, ACPICA would zero out
7680the
7681buffer/string. Now, the operation is treated as a noop. Provides Windows
7682compatibility. ACPICA BZ 803. Lin Ming.
7683
7684Removed an extraneous error message for ASL constructs of the form
7685Store(LocalX,LocalX) when LocalX is uninitialized. These curious
7686statements
7687are seen in many BIOSs and are once again treated as NOOPs and no error
7688is
7689emitted when they are encountered. ACPICA BZ 785.
7690
7691Fixed an extraneous warning message if a _DSM reserved method returns a
7692Package object. _DSM can return any type of object, so validation on the
7693return type cannot be performed. ACPICA BZ 802.
7694
7695Example Code and Data Size: These are the sizes for the OS-independent
7696acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7697debug version of the code includes the debug output trace mechanism and
7698has a
7699much larger code and data size.
7700
7701  Previous Release:
7702    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
7703    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
7704  Current Release:
7705    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
7706    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
7707
77082) iASL Compiler/Disassembler and Tools:
7709
7710iASL: Fixed a problem with the use of the Alias operator and Resource
7711Templates. The correct alias is now constructed and no error is emitted.
7712ACPICA BZ 738.
7713
7714iASL: Implemented the -I option to specify additional search directories
7715for
7716include files. Allows multiple additional search paths for include files.
7717Directories are searched in the order specified on the command line
7718(after
7719the local directory is searched.) ACPICA BZ 800.
7720
7721iASL: Fixed a problem where the full pathname for include files was not
7722emitted for warnings/errors. This caused the IDE support to not work
7723properly. ACPICA BZ 765.
7724
7725iASL: Implemented the -@ option to specify a Windows-style response file
7726containing additional command line options. ACPICA BZ 801.
7727
7728AcpiExec: Added support to load multiple AML files simultaneously (such
7729as
7730a
7731DSDT and multiple SSDTs). Also added support for wildcards within the AML
7732pathname. These features allow all machine tables to be easily loaded and
7733debugged together. ACPICA BZ 804.
7734
7735Disassembler: Added missing support for disassembly of HEST table Error
7736Bank
7737subtables.
7738
7739----------------------------------------
774030 July 2009. Summary of changes for version 20090730:
7741
7742The ACPI 4.0 implementation for ACPICA is complete with this release.
7743
77441) ACPI CA Core Subsystem:
7745
7746ACPI 4.0: Added header file support for all new and changed ACPI tables.
7747Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
7748new
7749for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
7750BERT,
7751EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
7752There
7753have been some ACPI 4.0 changes to other existing tables. Split the large
7754actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
7755
7756ACPI 4.0: Implemented predefined name validation for all new names. There
7757are
775831 new names in ACPI 4.0. The predefined validation module was split into
7759two
7760files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
7761
7762Implemented support for so-called "module-level executable code". This is
7763executable AML code that exists outside of any control method and is
7764intended
7765to be executed at table load time. Although illegal since ACPI 2.0, this
7766type
7767of code still exists and is apparently still being created. Blocks of
7768this
7769code are now detected and executed as intended. Currently, the code
7770blocks
7771must exist under either an If, Else, or While construct; these are the
7772typical cases seen in the field. ACPICA BZ 762. Lin Ming.
7773
7774Implemented an automatic dynamic repair for predefined names that return
7775nested Package objects. This applies to predefined names that are defined
7776to
7777return a variable-length Package of sub-packages. If the number of sub-
7778packages is one, BIOS code is occasionally seen that creates a simple
7779single
7780package with no sub-packages. This code attempts to fix the problem by
7781wrapping a new package object around the existing package. These methods
7782can
7783be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
7784BZ
7785790.
7786
7787Fixed a regression introduced in 20090625 for the AcpiGetDevices
7788interface.
7789The _HID/_CID matching was broken and no longer matched IDs correctly.
7790ACPICA
7791BZ 793.
7792
7793Fixed a problem with AcpiReset where the reset would silently fail if the
7794register was one of the protected I/O ports. AcpiReset now bypasses the
7795port
7796validation mechanism. This may eventually be driven into the
7797AcpiRead/Write
7798interfaces.
7799
7800Fixed a regression related to the recent update of the AcpiRead/Write
7801interfaces. A sleep/suspend could fail if the optional PM2 Control
7802register
7803does not exist during an attempt to write the Bus Master Arbitration bit.
7804(However, some hosts already delete the code that writes this bit, and
7805the
7806code may in fact be obsolete at this date.) ACPICA BZ 799.
7807
7808Fixed a problem where AcpiTerminate could fault if inadvertently called
7809twice
7810in succession. ACPICA BZ 795.
7811
7812Example Code and Data Size: These are the sizes for the OS-independent
7813acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7814debug version of the code includes the debug output trace mechanism and
7815has a
7816much larger code and data size.
7817
7818  Previous Release:
7819    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
7820    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
7821  Current Release:
7822    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
7823    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
7824
78252) iASL Compiler/Disassembler and Tools:
7826
7827ACPI 4.0: Implemented disassembler support for all new ACPI tables and
7828changes to existing tables. ACPICA BZ 775.
7829
7830----------------------------------------
783125 June 2009. Summary of changes for version 20090625:
7832
7833The ACPI 4.0 Specification was released on June 16 and is available at
7834www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
7835continue for the next few releases.
7836
78371) ACPI CA Core Subsystem:
7838
7839ACPI 4.0: Implemented interpreter support for the IPMI operation region
7840address space. Includes support for bi-directional data buffers and an
7841IPMI
7842address space handler (to be installed by an IPMI device driver.) ACPICA
7843BZ
7844773. Lin Ming.
7845
7846ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
7847Includes
7848support in both the header files and the disassembler.
7849
7850Completed a major update for the AcpiGetObjectInfo external interface.
7851Changes include:
7852 - Support for variable, unlimited length HID, UID, and CID strings.
7853 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
7854etc.)
7855 - Call the _SxW power methods on behalf of a device object.
7856 - Determine if a device is a PCI root bridge.
7857 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
7858These changes will require an update to all callers of this interface.
7859See
7860the updated ACPICA Programmer Reference for details. One new source file
7861has
7862been added - utilities/utids.c. ACPICA BZ 368, 780.
7863
7864Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
7865transfers. The Value parameter has been extended from 32 bits to 64 bits
7866in
7867order to support new ACPI 4.0 tables. These changes will require an
7868update
7869to
7870all callers of these interfaces. See the ACPICA Programmer Reference for
7871details. ACPICA BZ 768.
7872
7873Fixed several problems with AcpiAttachData. The handler was not invoked
7874when
7875the host node was deleted. The data sub-object was not automatically
7876deleted
7877when the host node was deleted. The interface to the handler had an
7878unused
7879parameter, this was removed. ACPICA BZ 778.
7880
7881Enhanced the function that dumps ACPI table headers. All non-printable
7882characters in the string fields are now replaced with '?' (Signature,
7883OemId,
7884OemTableId, and CompilerId.) ACPI tables with non-printable characters in
7885these fields are occasionally seen in the field. ACPICA BZ 788.
7886
7887Fixed a problem with predefined method repair code where the code that
7888attempts to repair/convert an object of incorrect type is only executed
7889on
7890the first time the predefined method is called. The mechanism that
7891disables
7892warnings on subsequent calls was interfering with the repair mechanism.
7893ACPICA BZ 781.
7894
7895Fixed a possible memory leak in the predefined validation/repair code
7896when
7897a
7898buffer is automatically converted to an expected string object.
7899
7900Removed obsolete 16-bit files from the distribution and from the current
7901git
7902tree head. ACPICA BZ 776.
7903
7904Example Code and Data Size: These are the sizes for the OS-independent
7905acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7906debug version of the code includes the debug output trace mechanism and
7907has a
7908much larger code and data size.
7909
7910  Previous Release:
7911    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
7912    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
7913  Current Release:
7914    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
7915    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
7916
79172) iASL Compiler/Disassembler and Tools:
7918
7919ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
7920operation region keyword. ACPICA BZ 771, 772. Lin Ming.
7921
7922ACPI 4.0: iASL - implemented compile-time validation support for all new
7923predefined names and control methods (31 total). ACPICA BZ 769.
7924
7925----------------------------------------
792621 May 2009. Summary of changes for version 20090521:
7927
79281) ACPI CA Core Subsystem:
7929
7930Disabled the preservation of the SCI enable bit in the PM1 control
7931register.
7932The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
7933to
7934be
7935a "preserved" bit - "OSPM always preserves this bit position", section
79364.7.3.2.1. However, some machines fail if this bit is in fact preserved
7937because the bit needs to be explicitly set by the OS as a workaround. No
7938machines fail if the bit is not preserved. Therefore, ACPICA no longer
7939attempts to preserve this bit.
7940
7941Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
7942incorrectly formed _PRT package could cause a fault. Added validation to
7943ensure that each package element is actually a sub-package.
7944
7945Implemented a new interface to install or override a single control
7946method,
7947AcpiInstallMethod. This interface is useful when debugging in order to
7948repair
7949an existing method or to install a missing method without having to
7950override
7951the entire ACPI table. See the ACPICA Programmer Reference for use and
7952examples. Lin Ming, Bob Moore.
7953
7954Fixed several reference count issues with the DdbHandle object that is
7955created from a Load or LoadTable operator. Prevent premature deletion of
7956the
7957object. Also, mark the object as invalid once the table has been
7958unloaded.
7959This is needed because the handle itself may not be deleted after the
7960table
7961unload, depending on whether it has been stored in a named object by the
7962caller. Lin Ming.
7963
7964Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
7965mutexes of the same sync level are acquired but then not released in
7966strict
7967opposite order, the internally maintained Current Sync Level becomes
7968confused
7969and can cause subsequent execution errors. ACPICA BZ 471.
7970
7971Changed the allowable release order for ASL mutex objects. The ACPI 4.0
7972specification has been changed to make the SyncLevel for mutex objects
7973more
7974useful. When releasing a mutex, the SyncLevel of the mutex must now be
7975the
7976same as the current sync level. This makes more sense than the previous
7977rule
7978(SyncLevel less than or equal). This change updates the code to match the
7979specification.
7980
7981Fixed a problem with the local version of the AcpiOsPurgeCache function.
7982The
7983(local) cache must be locked during all cache object deletions. Andrew
7984Baumann.
7985
7986Updated the Load operator to use operation region interfaces. This
7987replaces
7988direct memory mapping with region access calls. Now, all region accesses
7989go
7990through the installed region handler as they should.
7991
7992Simplified and optimized the NsGetNextNode function. Reduced parameter
7993count
7994and reduced code for this frequently used function.
7995
7996Example Code and Data Size: These are the sizes for the OS-independent
7997acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7998debug version of the code includes the debug output trace mechanism and
7999has a
8000much larger code and data size.
8001
8002  Previous Release:
8003    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
8004    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
8005  Current Release:
8006    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
8007    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
8008
80092) iASL Compiler/Disassembler and Tools:
8010
8011Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
8012problems
8013with sub-table disassembly and handling invalid sub-tables. Attempt
8014recovery
8015after an invalid sub-table ID.
8016
8017----------------------------------------
801822 April 2009. Summary of changes for version 20090422:
8019
80201) ACPI CA Core Subsystem:
8021
8022Fixed a compatibility issue with the recently released I/O port
8023protection
8024mechanism. For windows compatibility, 1) On a port protection violation,
8025simply ignore the request and do not return an exception (allow the
8026control
8027method to continue execution.) 2) If only part of the request overlaps a
8028protected port, read/write the individual ports that are not protected.
8029Linux
8030BZ 13036. Lin Ming
8031
8032Enhanced the execution of the ASL/AML BreakPoint operator so that it
8033actually
8034breaks into the AML debugger if the debugger is present. This matches the
8035ACPI-defined behavior.
8036
8037Fixed several possible warnings related to the use of the configurable
8038ACPI_THREAD_ID. This type can now be configured as either an integer or a
8039pointer with no warnings. Also fixes several warnings in printf-like
8040statements for the 64-bit build when the type is configured as a pointer.
8041ACPICA BZ 766, 767.
8042
8043Fixed a number of possible warnings when compiling with gcc 4+ (depending
8044on
8045warning options.) Examples include printf formats, aliasing, unused
8046globals,
8047missing prototypes, missing switch default statements, use of non-ANSI
8048library functions, use of non-ANSI constructs. See generate/unix/Makefile
8049for
8050a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
8051
8052Example Code and Data Size: These are the sizes for the OS-independent
8053acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8054debug version of the code includes the debug output trace mechanism and
8055has a
8056much larger code and data size.
8057
8058  Previous Release:
8059    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
8060    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
8061  Current Release:
8062    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
8063    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
8064
80652) iASL Compiler/Disassembler and Tools:
8066
8067iASL: Fixed a generation warning from Bison 2.3 and fixed several
8068warnings
8069on
8070the 64-bit build.
8071
8072iASL: Fixed a problem where the Unix/Linux versions of the compiler could
8073not
8074correctly digest Windows/DOS formatted files (with CR/LF).
8075
8076iASL: Added a new option for "quiet mode" (-va) that produces only the
8077compilation summary, not individual errors and warnings. Useful for large
8078batch compilations.
8079
8080AcpiExec: Implemented a new option (-z) to enable a forced
8081semaphore/mutex
8082timeout that can be used to detect hang conditions during execution of
8083AML
8084code (includes both internal semaphores and AML-defined mutexes and
8085events.)
8086
8087Added new makefiles for the generation of acpica in a generic unix-like
8088environment. These makefiles are intended to generate the acpica tools
8089and
8090utilities from the original acpica git source tree structure.
8091
8092Test Suites: Updated and cleaned up the documentation files. Updated the
8093copyrights to 2009, affecting all source files. Use the new version of
8094iASL
8095with quiet mode. Increased the number of available semaphores in the
8096Windows
8097OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
8098added
8099an alternate implementation of the semaphore timeout to allow aslts to
8100execute fully on Cygwin.
8101
8102----------------------------------------
810320 March 2009. Summary of changes for version 20090320:
8104
81051) ACPI CA Core Subsystem:
8106
8107Fixed a possible race condition between AcpiWalkNamespace and dynamic
8108table
8109unloads. Added a reader/writer locking mechanism to allow multiple
8110concurrent
8111namespace walks (readers), but block a dynamic table unload until it can
8112gain
8113exclusive write access to the namespace. This fixes a problem where a
8114table
8115unload could (possibly catastrophically) delete the portion of the
8116namespace
8117that is currently being examined by a walk. Adds a new file, utlock.c,
8118that
8119implements the reader/writer lock mechanism. ACPICA BZ 749.
8120
8121Fixed a regression introduced in version 20090220 where a change to the
8122FADT
8123handling could cause the ACPICA subsystem to access non-existent I/O
8124ports.
8125
8126Modified the handling of FADT register and table (FACS/DSDT) addresses.
8127The
8128FADT can contain both 32-bit and 64-bit versions of these addresses.
8129Previously, the 64-bit versions were favored, meaning that if both 32 and
813064
8131versions were valid, but not equal, the 64-bit version was used. This was
8132found to cause some machines to fail. Now, in this case, the 32-bit
8133version
8134is used instead. This now matches the Windows behavior.
8135
8136Implemented a new mechanism to protect certain I/O ports. Provides
8137Microsoft
8138compatibility and protects the standard PC I/O ports from access via AML
8139code. Adds a new file, hwvalid.c
8140
8141Fixed a possible extraneous warning message from the FADT support. The
8142message warns of a 32/64 length mismatch between the legacy and GAS
8143definitions for a register.
8144
8145Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
8146is
8147made obsolete by the port protection mechanism above. It was previously
8148used
8149to validate the entire address range of an operation region, which could
8150be
8151incorrect if the range included illegal ports, but fields within the
8152operation region did not actually access those ports. Validation is now
8153performed on a per-field basis instead of the entire region.
8154
8155Modified the handling of the PM1 Status Register ignored bit (bit 11.)
8156Ignored bits must be "preserved" according to the ACPI spec. Usually,
8157this
8158means a read/modify/write when writing to the register. However, for
8159status
8160registers, writing a one means clear the event. Writing a zero means
8161preserve
8162the event (do not clear.) This behavior is clarified in the ACPI 4.0
8163spec,
8164and the ACPICA code now simply always writes a zero to the ignored bit.
8165
8166Modified the handling of ignored bits for the PM1 A/B Control Registers.
8167As
8168per the ACPI specification, for the control registers, preserve
8169(read/modify/write) all bits that are defined as either reserved or
8170ignored.
8171
8172Updated the handling of write-only bits in the PM1 A/B Control Registers.
8173When reading the register, zero the write-only bits as per the ACPI spec.
8174ACPICA BZ 443. Lin Ming.
8175
8176Removed "Linux" from the list of supported _OSI strings. Linux no longer
8177wants to reply true to this request. The Windows strings are the only
8178paths
8179through the AML that are tested and known to work properly.
8180
8181  Previous Release:
8182    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
8183    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
8184  Current Release:
8185    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
8186    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
8187
81882) iASL Compiler/Disassembler and Tools:
8189
8190Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
8191and
8192aetables.c
8193
8194----------------------------------------
819520 February 2009. Summary of changes for version 20090220:
8196
81971) ACPI CA Core Subsystem:
8198
8199Optimized the ACPI register locking. Removed locking for reads from the
8200ACPI
8201bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
8202is
8203not required when reading the single-bit registers. The
8204AcpiGetRegisterUnlocked function is no longer needed and has been
8205removed.
8206This will improve performance for reads on these registers. ACPICA BZ
8207760.
8208
8209Fixed the parameter validation for AcpiRead/Write. Now return
8210AE_BAD_PARAMETER if the input register pointer is null, and
8211AE_BAD_ADDRESS
8212if
8213the register has an address of zero. Previously, these cases simply
8214returned
8215AE_OK. For optional registers such as PM1B status/enable/control, the
8216caller
8217should check for a valid register address before calling. ACPICA BZ 748.
8218
8219Renamed the external ACPI bit register access functions. Renamed
8220AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
8221functions. The new names are AcpiReadBitRegister and
8222AcpiWriteBitRegister.
8223Also, restructured the code for these functions by simplifying the code
8224path
8225and condensing duplicate code to reduce code size.
8226
8227Added new functions to transparently handle the possibly split PM1 A/B
8228registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
8229functions
8230now handle the split registers for PM1 Status, Enable, and Control.
8231ACPICA
8232BZ
8233746.
8234
8235Added a function to handle the PM1 control registers,
8236AcpiHwWritePm1Control.
8237This function writes both of the PM1 control registers (A/B). These
8238registers
8239are different than the PM1 A/B status and enable registers in that
8240different
8241values can be written to the A/B registers. Most notably, the SLP_TYP
8242bits
8243can be different, as per the values returned from the _Sx predefined
8244methods.
8245
8246Removed an extra register write within AcpiHwClearAcpiStatus. This
8247function
8248was writing an optional PM1B status register twice. The existing call to
8249the
8250low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
8251A/B
8252register. ACPICA BZ 751.
8253
8254Split out the PM1 Status registers from the FADT. Added new globals for
8255these
8256registers (A/B), similar to the way the PM1 Enable registers are handled.
8257Instead of overloading the FADT Event Register blocks. This makes the
8258code
8259clearer and less prone to error.
8260
8261Fixed the warning message for when the platform contains too many ACPI
8262tables
8263for the default size of the global root table data structure. The
8264calculation
8265for the truncation value was incorrect.
8266
8267Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
8268obsolete macro, since it is now a simple reference to ->common.type.
8269There
8270were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
8271
8272Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
8273TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
8274simply SLEEP_TYPE. ACPICA BZ 754.
8275
8276Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
8277function is only needed on 64-bit host operating systems and is thus not
8278included for 32-bit hosts.
8279
8280Debug output: print the input and result for invocations of the _OSI
8281reserved
8282control method via the ACPI_LV_INFO debug level. Also, reduced some of
8283the
8284verbosity of this debug level. Len Brown.
8285
8286Example Code and Data Size: These are the sizes for the OS-independent
8287acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8288debug version of the code includes the debug output trace mechanism and
8289has a
8290much larger code and data size.
8291
8292  Previous Release:
8293    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
8294    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
8295  Current Release:
8296    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
8297    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
8298
82992) iASL Compiler/Disassembler and Tools:
8300
8301Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
8302various legal performance profiles.
8303
8304----------------------------------------
830523 January 2009. Summary of changes for version 20090123:
8306
83071) ACPI CA Core Subsystem:
8308
8309Added the 2009 copyright to all module headers and signons. This affects
8310virtually every file in the ACPICA core subsystem, the iASL compiler, and
8311the tools/utilities.
8312
8313Implemented a change to allow the host to override any ACPI table,
8314including
8315dynamically loaded tables. Previously, only the DSDT could be replaced by
8316the
8317host. With this change, the AcpiOsTableOverride interface is called for
8318each
8319table found in the RSDT/XSDT during ACPICA initialization, and also
8320whenever
8321a table is dynamically loaded via the AML Load operator.
8322
8323Updated FADT flag definitions, especially the Boot Architecture flags.
8324
8325Debugger: For the Find command, automatically pad the input ACPI name
8326with
8327underscores if the name is shorter than 4 characters. This enables a
8328match
8329with the actual namespace entry which is itself padded with underscores.
8330
8331Example Code and Data Size: These are the sizes for the OS-independent
8332acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8333debug version of the code includes the debug output trace mechanism and
8334has a
8335much larger code and data size.
8336
8337  Previous Release:
8338    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
8339    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
8340  Current Release:
8341    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
8342    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
8343
83442) iASL Compiler/Disassembler and Tools:
8345
8346Fix build error under Bison-2.4.
8347
8348Dissasembler: Enhanced FADT support. Added decoding of the Boot
8349Architecture
8350flags. Now decode all flags, regardless of the FADT version. Flag output
8351includes the FADT version which first defined each flag.
8352
8353The iASL -g option now dumps the RSDT to a file (in addition to the FADT
8354and
8355DSDT). Windows only.
8356
8357----------------------------------------
835804 December 2008. Summary of changes for version 20081204:
8359
83601) ACPI CA Core Subsystem:
8361
8362The ACPICA Programmer Reference has been completely updated and revamped
8363for
8364this release. This includes updates to the external interfaces, OSL
8365interfaces, the overview sections, and the debugger reference.
8366
8367Several new ACPICA interfaces have been implemented and documented in the
8368programmer reference:
8369AcpiReset - Writes the reset value to the FADT-defined reset register.
8370AcpiDisableAllGpes - Disable all available GPEs.
8371AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
8372AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
8373AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
8374AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
8375AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
8376
8377Most of the public ACPI hardware-related interfaces have been moved to a
8378new
8379file, components/hardware/hwxface.c
8380
8381Enhanced the FADT parsing and low-level ACPI register access: The ACPI
8382register lengths within the FADT are now used, and the low level ACPI
8383register access no longer hardcodes the ACPI register lengths. Given that
8384there may be some risk in actually trusting the FADT register lengths, a
8385run-
8386time option was added to fall back to the default hardcoded lengths if
8387the
8388FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
8389option is set to true for now, and a warning is issued if a suspicious
8390FADT
8391register length is overridden with the default value.
8392
8393Fixed a reference count issue in NsRepairObject. This problem was
8394introduced
8395in version 20081031 as part of a fix to repair Buffer objects within
8396Packages. Lin Ming.
8397
8398Added semaphore support to the Linux/Unix application OS-services layer
8399(OSL). ACPICA BZ 448. Lin Ming.
8400
8401Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
8402will
8403be implemented in the OSL, or will binary semaphores be used instead.
8404
8405Example Code and Data Size: These are the sizes for the OS-independent
8406acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8407debug version of the code includes the debug output trace mechanism and
8408has a
8409much larger code and data size.
8410
8411  Previous Release:
8412    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
8413    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
8414  Current Release:
8415    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
8416    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
8417
84182) iASL Compiler/Disassembler and Tools:
8419
8420iASL: Completed the '-e' option to include additional ACPI tables in
8421order
8422to
8423aid with disassembly and External statement generation. ACPICA BZ 742.
8424Lin
8425Ming.
8426
8427iASL: Removed the "named object in while loop" error. The compiler cannot
8428determine how many times a loop will execute. ACPICA BZ 730.
8429
8430Disassembler: Implemented support for FADT revision 2 (MS extension).
8431ACPICA
8432BZ 743.
8433
8434Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
8435MCFG).
8436
8437----------------------------------------
843831 October 2008. Summary of changes for version 20081031:
8439
84401) ACPI CA Core Subsystem:
8441
8442Restructured the ACPICA header files into public/private. acpi.h now
8443includes
8444only the "public" acpica headers. All other acpica headers are "private"
8445and
8446should not be included by acpica users. One new file, accommon.h is used
8447to
8448include the commonly used private headers for acpica code generation.
8449Future
8450plans include moving all private headers to a new subdirectory.
8451
8452Implemented an automatic Buffer->String return value conversion for
8453predefined ACPI methods. For these methods (such as _BIF), added
8454automatic
8455conversion for return objects that are required to be a String, but a
8456Buffer
8457was found instead. This can happen when reading string battery data from
8458an
8459operation region, because it used to be difficult to convert the data
8460from
8461buffer to string from within the ASL. Ensures that the host OS is
8462provided
8463with a valid null-terminated string. Linux BZ 11822.
8464
8465Updated the FACS waking vector interfaces. Split
8466AcpiSetFirmwareWakingVector
8467into two: one for the 32-bit vector, another for the 64-bit vector. This
8468is
8469required because the host OS must setup the wake much differently for
8470each
8471vector (real vs. protected mode, etc.) and the interface itself should
8472not
8473be
8474deciding which vector to use. Also, eliminated the
8475GetFirmwareWakingVector
8476interface, as it served no purpose (only the firmware reads the vector,
8477OS
8478only writes the vector.) ACPICA BZ 731.
8479
8480Implemented a mechanism to escape infinite AML While() loops. Added a
8481loop
8482counter to force exit from AML While loops if the count becomes too
8483large.
8484This can occur in poorly written AML when the hardware does not respond
8485within a while loop and the loop does not implement a timeout. The
8486maximum
8487loop count is configurable. A new exception code is returned when a loop
8488is
8489broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
8490
8491Optimized the execution of AML While loops. Previously, a control state
8492object was allocated and freed for each execution of the loop. The
8493optimization is to simply reuse the control state for each iteration.
8494This
8495speeds up the raw loop execution time by about 5%.
8496
8497Enhanced the implicit return mechanism. For Windows compatibility, return
8498an
8499implicit integer of value zero for methods that contain no executable
8500code.
8501Such methods are seen in the field as stubs (presumably), and can cause
8502drivers to fail if they expect a return value. Lin Ming.
8503
8504Allow multiple backslashes as root prefixes in namepaths. In a fully
8505qualified namepath, allow multiple backslash prefixes. This can happen
8506(and
8507is seen in the field) because of the use of a double-backslash in strings
8508(since backslash is the escape character) causing confusion. ACPICA BZ
8509739
8510Lin Ming.
8511
8512Emit a warning if two different FACS or DSDT tables are discovered in the
8513FADT. Checks if there are two valid but different addresses for the FACS
8514and
8515DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
8516
8517Consolidated the method argument count validation code. Merged the code
8518that
8519validates control method argument counts into the predefined validation
8520module. Eliminates possible multiple warnings for incorrect argument
8521counts.
8522
8523Implemented ACPICA example code. Includes code for ACPICA initialization,
8524handler installation, and calling a control method. Available at
8525source/tools/examples.
8526
8527Added a global pointer for FACS table to simplify internal FACS access.
8528Use
8529the global pointer instead of using AcpiGetTableByIndex for each FACS
8530access.
8531This simplifies the code for the Global Lock and the Firmware Waking
8532Vector(s).
8533
8534Example Code and Data Size: These are the sizes for the OS-independent
8535acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8536debug version of the code includes the debug output trace mechanism and
8537has a
8538much larger code and data size.
8539
8540  Previous Release:
8541    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
8542    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
8543  Current Release:
8544    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
8545    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
8546
85472) iASL Compiler/Disassembler and Tools:
8548
8549iASL: Improved disassembly of external method calls. Added the -e option
8550to
8551allow the inclusion of additional ACPI tables to help with the
8552disassembly
8553of
8554method invocations and the generation of external declarations during the
8555disassembly. Certain external method invocations cannot be disassembled
8556properly without the actual declaration of the method. Use the -e option
8557to
8558include the table where the external method(s) are actually declared.
8559Most
8560useful for disassembling SSDTs that make method calls back to the master
8561DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
8562-d
8563-e dsdt.aml ssdt1.aml
8564
8565iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
8566problem where the use of an alias within a namepath would result in a not
8567found error or cause the compiler to fault. Also now allows forward
8568references from the Alias operator itself. ACPICA BZ 738.
8569
8570----------------------------------------
857126 September 2008. Summary of changes for version 20080926:
8572
85731) ACPI CA Core Subsystem:
8574
8575Designed and implemented a mechanism to validate predefined ACPI methods
8576and
8577objects. This code validates the predefined ACPI objects (objects whose
8578names
8579start with underscore) that appear in the namespace, at the time they are
8580evaluated. The argument count and the type of the returned object are
8581validated against the ACPI specification. The purpose of this validation
8582is
8583to detect problems with the BIOS-implemented predefined ACPI objects
8584before
8585the results are returned to the ACPI-related drivers. Future enhancements
8586may
8587include actual repair of incorrect return objects where possible. Two new
8588files are nspredef.c and acpredef.h.
8589
8590Fixed a fault in the AML parser if a memory allocation fails during the
8591Op
8592completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
8593
8594Fixed an issue with implicit return compatibility. This change improves
8595the
8596implicit return mechanism to be more compatible with the MS interpreter.
8597Lin
8598Ming, ACPICA BZ 349.
8599
8600Implemented support for zero-length buffer-to-string conversions. Allow
8601zero
8602length strings during interpreter buffer-to-string conversions. For
8603example,
8604during the ToDecimalString and ToHexString operators, as well as implicit
8605conversions. Fiodor Suietov, ACPICA BZ 585.
8606
8607Fixed two possible memory leaks in the error exit paths of
8608AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
8609are
8610similar in that they use a stack of state objects in order to eliminate
8611recursion. The stack must be fully unwound and deallocated if an error
8612occurs. Lin Ming. ACPICA BZ 383.
8613
8614Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
8615global
8616ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
8617Moore ACPICA BZ 442.
8618
8619Removed the obsolete version number in module headers. Removed the
8620"$Revision" number that appeared in each module header. This version
8621number
8622was useful under SourceSafe and CVS, but has no meaning under git. It is
8623not
8624only incorrect, it could also be misleading.
8625
8626Example Code and Data Size: These are the sizes for the OS-independent
8627acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8628debug version of the code includes the debug output trace mechanism and
8629has a
8630much larger code and data size.
8631
8632  Previous Release:
8633    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8634    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
8635  Current Release:
8636    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
8637    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
8638
8639----------------------------------------
864029 August 2008. Summary of changes for version 20080829:
8641
86421) ACPI CA Core Subsystem:
8643
8644Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
8645Reference. Changes include the elimination of cheating on the Object
8646field
8647for the DdbHandle subtype, addition of a reference class field to
8648differentiate the various reference types (instead of an AML opcode), and
8649the
8650cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
8651
8652Reduce an error to a warning for an incorrect method argument count.
8653Previously aborted with an error if too few arguments were passed to a
8654control method via the external ACPICA interface. Now issue a warning
8655instead
8656and continue. Handles the case where the method inadvertently declares
8657too
8658many arguments, but does not actually use the extra ones. Applies mainly
8659to
8660the predefined methods. Lin Ming. Linux BZ 11032.
8661
8662Disallow the evaluation of named object types with no intrinsic value.
8663Return
8664AE_TYPE for objects that have no value and therefore evaluation is
8665undefined:
8666Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
8667of
8668these types were allowed, but an exception would be generated at some
8669point
8670during the evaluation. Now, the error is generated up front.
8671
8672Fixed a possible memory leak in the AcpiNsGetExternalPathname function
8673(nsnames.c). Fixes a leak in the error exit path.
8674
8675Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
8676debug
8677levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
8678ACPI_EXCEPTION
8679interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
8680ACPI_LV_EVENTS.
8681
8682Removed obsolete and/or unused exception codes from the acexcep.h header.
8683There is the possibility that certain device drivers may be affected if
8684they
8685use any of these exceptions.
8686
8687The ACPICA documentation has been added to the public git source tree,
8688under
8689acpica/documents. Included are the ACPICA programmer reference, the iASL
8690compiler reference, and the changes.txt release logfile.
8691
8692Example Code and Data Size: These are the sizes for the OS-independent
8693acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8694debug version of the code includes the debug output trace mechanism and
8695has a
8696much larger code and data size.
8697
8698  Previous Release:
8699    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8700    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
8701  Current Release:
8702    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8703    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
8704
87052) iASL Compiler/Disassembler and Tools:
8706
8707Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
8708defines _SCP with 3 arguments. Previous versions defined it with only 1
8709argument. iASL now allows both definitions.
8710
8711iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
8712zero-
8713length subtables when disassembling ACPI tables. Also fixed a couple of
8714errors where a full 16-bit table type field was not extracted from the
8715input
8716properly.
8717
8718acpisrc: Improve comment counting mechanism for generating source code
8719statistics. Count first and last lines of multi-line comments as
8720whitespace,
8721not comment lines. Handle Linux legal header in addition to standard
8722acpica
8723header.
8724
8725----------------------------------------
8726
872729 July 2008. Summary of changes for version 20080729:
8728
87291) ACPI CA Core Subsystem:
8730
8731Fix a possible deadlock in the GPE dispatch. Remove call to
8732AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
8733attempt
8734to acquire the GPE lock but can deadlock since the GPE lock is already
8735held
8736at dispatch time. This code was introduced in version 20060831 as a
8737response
8738to Linux BZ 6881 and has since been removed from Linux.
8739
8740Add a function to dereference returned reference objects. Examines the
8741return
8742object from a call to AcpiEvaluateObject. Any Index or RefOf references
8743are
8744automatically dereferenced in an attempt to return something useful
8745(these
8746reference types cannot be converted into an external ACPI_OBJECT.)
8747Provides
8748MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
8749
8750x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
8751subtables for the MADT and one new subtable for the SRAT. Includes
8752disassembler and AcpiSrc support. Data from the Intel 64 Architecture
8753x2APIC
8754Specification, June 2008.
8755
8756Additional error checking for pathname utilities. Add error check after
8757all
8758calls to AcpiNsGetPathnameLength. Add status return from
8759AcpiNsBuildExternalPath and check after all calls. Add parameter
8760validation
8761to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
8762
8763Return status from the global init function AcpiUtGlobalInitialize. This
8764is
8765used by both the kernel subsystem and the utilities such as iASL
8766compiler.
8767The function could possibly fail when the caches are initialized. Yang
8768Yi.
8769
8770Add a function to decode reference object types to strings. Created for
8771improved error messages.
8772
8773Improve object conversion error messages. Better error messages during
8774object
8775conversion from internal to the external ACPI_OBJECT. Used for external
8776calls
8777to AcpiEvaluateObject.
8778
8779Example Code and Data Size: These are the sizes for the OS-independent
8780acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8781debug version of the code includes the debug output trace mechanism and
8782has a
8783much larger code and data size.
8784
8785  Previous Release:
8786    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
8787    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
8788  Current Release:
8789    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8790    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
8791
87922) iASL Compiler/Disassembler and Tools:
8793
8794Debugger: fix a possible hang when evaluating non-methods. Fixes a
8795problem
8796introduced in version 20080701. If the object being evaluated (via
8797execute
8798command) is not a method, the debugger can hang while trying to obtain
8799non-
8800existent parameters.
8801
8802iASL: relax error for using reserved "_T_x" identifiers. These names can
8803appear in a disassembled ASL file if they were emitted by the original
8804compiler. Instead of issuing an error or warning and forcing the user to
8805manually change these names, issue a remark instead.
8806
8807iASL: error if named object created in while loop. Emit an error if any
8808named
8809object is created within a While loop. If allowed, this code will
8810generate
8811a
8812run-time error on the second iteration of the loop when an attempt is
8813made
8814to
8815create the same named object twice. ACPICA bugzilla 730.
8816
8817iASL: Support absolute pathnames for include files. Add support for
8818absolute
8819pathnames within the Include operator. previously, only relative
8820pathnames
8821were supported.
8822
8823iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
8824Descriptor.
8825The ACPI spec requires one interrupt minimum. BZ 423
8826
8827iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
8828Handles the case for the Interrupt Resource Descriptor where
8829the ResourceSource argument is omitted but ResourceSourceIndex
8830is present. Now leave room for the Index. BZ 426
8831
8832iASL: Prevent error message if CondRefOf target does not exist. Fixes
8833cases
8834where an error message is emitted if the target does not exist. BZ 516
8835
8836iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
8837(get ACPI tables on Windows). This was apparently broken in version
883820070919.
8839
8840AcpiXtract: Handle EOF while extracting data. Correctly handle the case
8841where
8842the EOF happens immediately after the last table in the input file. Print
8843completion message. Previously, no message was displayed in this case.
8844
8845----------------------------------------
884601 July 2008. Summary of changes for version 20080701:
8847
88480) Git source tree / acpica.org
8849
8850Fixed a problem where a git-clone from http would not transfer the entire
8851source tree.
8852
88531) ACPI CA Core Subsystem:
8854
8855Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
8856enable bit. Now performs a read-change-write of the enable register
8857instead
8858of simply writing out the cached enable mask. This will prevent
8859inadvertent
8860enabling of GPEs if a rogue GPE is received during initialization (before
8861GPE
8862handlers are installed.)
8863
8864Implemented a copy for dynamically loaded tables. Previously, dynamically
8865loaded tables were simply mapped - but on some machines this memory is
8866corrupted after suspend. Now copy the table to a local buffer. For the
8867OpRegion case, added checksum verify. Use the table length from the table
8868header, not the region length. For the Buffer case, use the table length
8869also. Dennis Noordsij, Bob Moore. BZ 10734
8870
8871Fixed a problem where the same ACPI table could not be dynamically loaded
8872and
8873unloaded more than once. Without this change, a table cannot be loaded
8874again
8875once it has been loaded/unloaded one time. The current mechanism does not
8876unregister a table upon an unload. During a load, if the same table is
8877found,
8878this no longer returns an exception. BZ 722
8879
8880Fixed a problem where the wrong descriptor length was calculated for the
8881EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
8882EndTag
8883are calculated as 12 bytes long, but the actual length in the internal
8884descriptor is 16 because of the round-up to 8 on the 64-bit build.
8885Reported
8886by Linn Crosetto. BZ 728
8887
8888Fixed a possible memory leak in the Unload operator. The DdbHandle
8889returned
8890by Load() did not have its reference count decremented during unload,
8891leading
8892to a memory leak. Lin Ming. BZ 727
8893
8894Fixed a possible memory leak when deleting thermal/processor objects. Any
8895associated notify handlers (and objects) were not being deleted. Fiodor
8896Suietov. BZ 506
8897
8898Fixed the ordering of the ASCII names in the global mutex table to match
8899the
8900actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
8901only.
8902Vegard Nossum. BZ 726
8903
8904Enhanced the AcpiGetObjectInfo interface to return the number of required
8905arguments if the object is a control method. Added this call to the
8906debugger
8907so the proper number of default arguments are passed to a method. This
8908prevents a warning when executing methods from AcpiExec.
8909
8910Added a check for an invalid handle in AcpiGetObjectInfo. Return
8911AE_BAD_PARAMETER if input handle is invalid. BZ 474
8912
8913Fixed an extraneous warning from exconfig.c on the 64-bit build.
8914
8915Example Code and Data Size: These are the sizes for the OS-independent
8916acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8917debug version of the code includes the debug output trace mechanism and
8918has a
8919much larger code and data size.
8920
8921  Previous Release:
8922    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
8923    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
8924  Current Release:
8925    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
8926    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
8927
89282) iASL Compiler/Disassembler and Tools:
8929
8930iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
8931resource descriptor names.
8932
8933iASL: Detect invalid ASCII characters in input (windows version). Removed
8934the
8935"-CF" flag from the flex compile, enables correct detection of non-ASCII
8936characters in the input. BZ 441
8937
8938iASL: Eliminate warning when result of LoadTable is not used. Eliminate
8939the
8940"result of operation not used" warning when the DDB handle returned from
8941LoadTable is not used. The warning is not needed. BZ 590
8942
8943AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
8944method
8945to
8946pass address of table to the AML. Added option to disable OpRegion
8947simulation
8948to allow creation of an OpRegion with a real address that was passed to
8949_CFG.
8950All of this allows testing of the Load and Unload operators from
8951AcpiExec.
8952
8953Debugger: update tables command for unloaded tables. Handle unloaded
8954tables
8955and use the standard table header output routine.
8956
8957----------------------------------------
895809 June 2008. Summary of changes for version 20080609:
8959
89601) ACPI CA Core Subsystem:
8961
8962Implemented a workaround for reversed _PRT entries. A significant number
8963of
8964BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
8965change dynamically detects and repairs this problem. Provides
8966compatibility
8967with MS ACPI. BZ 6859
8968
8969Simplified the internal ACPI hardware interfaces to eliminate the locking
8970flag parameter from Register Read/Write. Added a new external interface,
8971AcpiGetRegisterUnlocked.
8972
8973Fixed a problem where the invocation of a GPE control method could hang.
8974This
8975was a regression introduced in 20080514. The new method argument count
8976validation mechanism can enter an infinite loop when a GPE method is
8977dispatched. Problem fixed by removing the obsolete code that passed GPE
8978block
8979information to the notify handler via the control method parameter
8980pointer.
8981
8982Fixed a problem where the _SST execution status was incorrectly returned
8983to
8984the caller of AcpiEnterSleepStatePrep. This was a regression introduced
8985in
898620080514. _SST is optional and a NOT_FOUND exception should never be
8987returned. BZ 716
8988
8989Fixed a problem where a deleted object could be accessed from within the
8990AML
8991parser. This was a regression introduced in version 20080123 as a fix for
8992the
8993Unload operator. Lin Ming. BZ 10669
8994
8995Cleaned up the debug operand dump mechanism. Eliminated unnecessary
8996operands
8997and eliminated the use of a negative index in a loop. Operands are now
8998displayed in the correct order, not backwards. This also fixes a
8999regression
9000introduced in 20080514 on 64-bit systems where the elimination of
9001ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
9002715
9003
9004Fixed a possible memory leak in EvPciConfigRegionSetup where the error
9005exit
9006path did not delete a locally allocated structure.
9007
9008Updated definitions for the DMAR and SRAT tables to synchronize with the
9009current specifications. Includes disassembler support.
9010
9011Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
9012loop termination value was used. Loop terminated on iteration early,
9013missing
9014one mutex. Linn Crosetto
9015
9016Example Code and Data Size: These are the sizes for the OS-independent
9017acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9018debug version of the code includes the debug output trace mechanism and
9019has a
9020much larger code and data size.
9021
9022  Previous Release:
9023    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
9024    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
9025  Current Release:
9026    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
9027    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
9028
90292) iASL Compiler/Disassembler and Tools:
9030
9031Disassembler: Implemented support for EisaId() within _CID objects. Now
9032disassemble integer _CID objects back to EisaId invocations, including
9033multiple integers within _CID packages. Includes single-step support for
9034debugger also.
9035
9036Disassembler: Added support for DMAR and SRAT table definition changes.
9037
9038----------------------------------------
903914 May 2008. Summary of changes for version 20080514:
9040
90411) ACPI CA Core Subsystem:
9042
9043Fixed a problem where GPEs were enabled too early during the ACPICA
9044initialization. This could lead to "handler not installed" errors on some
9045machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
9046This
9047ensures that all operation regions and devices throughout the namespace
9048have
9049been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
9050
9051Implemented a change to the enter sleep code. Moved execution of the _GTS
9052method to just before setting sleep enable bit. The execution was moved
9053from
9054AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
9055immediately before the SLP_EN bit is set, as per the ACPI specification.
9056Luming Yu, BZ 1653.
9057
9058Implemented a fix to disable unknown GPEs (2nd version). Now always
9059disable
9060the GPE, even if ACPICA thinks that that it is already disabled. It is
9061possible that the AML or some other code has enabled the GPE unbeknownst
9062to
9063the ACPICA code.
9064
9065Fixed a problem with the Field operator where zero-length fields would
9066return
9067an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
9068ASL
9069field declarations in Field(), BankField(), and IndexField(). BZ 10606.
9070
9071Implemented a fix for the Load operator, now load the table at the
9072namespace
9073root. This reverts a change introduced in version 20071019. The table is
9074now
9075loaded at the namespace root even though this goes against the ACPI
9076specification. This provides compatibility with other ACPI
9077implementations.
9078The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
9079Ming.
9080
9081Fixed a problem where ACPICA would not Load() tables with unusual
9082signatures.
9083Now ignore ACPI table signature for Load() operator. Only "SSDT" is
9084acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
9085Therefore, signature validation is worthless. Apparently MS ACPI accepts
9086such
9087signatures, ACPICA must be compatible. BZ 10454.
9088
9089Fixed a possible negative array index in AcpiUtValidateException. Added
9090NULL
9091fields to the exception string arrays to eliminate a -1 subtraction on
9092the
9093SubStatus field.
9094
9095Updated the debug tracking macros to reduce overall code and data size.
9096Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
9097instead of pointers to static strings. Jan Beulich and Bob Moore.
9098
9099Implemented argument count checking in control method invocation via
9100AcpiEvaluateObject. Now emit an error if too few arguments, warning if
9101too
9102many. This applies only to extern programmatic control method execution,
9103not
9104method-to-method calls within the AML. Lin Ming.
9105
9106Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
9107no
9108longer needed, especially with the removal of 16-bit support. It was
9109replaced
9110mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
9111bit
9112on
911332/64-bit platforms is required.
9114
9115Added the C const qualifier for appropriate string constants -- mostly
9116MODULE_NAME and printf format strings. Jan Beulich.
9117
9118Example Code and Data Size: These are the sizes for the OS-independent
9119acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9120debug version of the code includes the debug output trace mechanism and
9121has a
9122much larger code and data size.
9123
9124  Previous Release:
9125    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
9126    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
9127  Current Release:
9128    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
9129    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
9130
91312) iASL Compiler/Disassembler and Tools:
9132
9133Implemented ACPI table revision ID validation in the disassembler. Zero
9134is
9135always invalid. For DSDTs, the ID controls the interpreter integer width.
91361
9137means 32-bit and this is unusual. 2 or greater is 64-bit.
9138
9139----------------------------------------
914021 March 2008. Summary of changes for version 20080321:
9141
91421) ACPI CA Core Subsystem:
9143
9144Implemented an additional change to the GPE support in order to suppress
9145spurious or stray GPEs. The AcpiEvDisableGpe function will now
9146permanently
9147disable incoming GPEs that are neither enabled nor disabled -- meaning
9148that
9149the GPE is unknown to the system. This should prevent future interrupt
9150floods
9151from that GPE. BZ 6217 (Zhang Rui)
9152
9153Fixed a problem where NULL package elements were not returned to the
9154AcpiEvaluateObject interface correctly. The element was simply ignored
9155instead of returning a NULL ACPI_OBJECT package element, potentially
9156causing
9157a buffer overflow and/or confusing the caller who expected a fixed number
9158of
9159elements. BZ 10132 (Lin Ming, Bob Moore)
9160
9161Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
9162Dword,
9163Qword), Field, BankField, and IndexField operators when invoked from
9164inside
9165an executing control method. In this case, these operators created
9166namespace
9167nodes that were incorrectly left marked as permanent nodes instead of
9168temporary nodes. This could cause a problem if there is race condition
9169between an exiting control method and a running namespace walk. (Reported
9170by
9171Linn Crosetto)
9172
9173Fixed a problem where the CreateField and CreateXXXField operators would
9174incorrectly allow duplicate names (the name of the field) with no
9175exception
9176generated.
9177
9178Implemented several changes for Notify handling. Added support for new
9179Notify
9180values (ACPI 2.0+) and improved the Notify debug output. Notify on
9181PowerResource objects is no longer allowed, as per the ACPI
9182specification.
9183(Bob Moore, Zhang Rui)
9184
9185All Reference Objects returned via the AcpiEvaluateObject interface are
9186now
9187marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
9188for
9189NULL objects - either NULL package elements or unresolved named
9190references.
9191
9192Fixed a problem where an extraneous debug message was produced for
9193package
9194objects (when debugging enabled). The message "Package List length larger
9195than NumElements count" is now produced in the correct case, and is now
9196an
9197error message rather than a debug message. Added a debug message for the
9198opposite case, where NumElements is larger than the Package List (the
9199package
9200will be padded out with NULL elements as per the ACPI spec.)
9201
9202Implemented several improvements for the output of the ASL "Debug" object
9203to
9204clarify and keep all data for a given object on one output line.
9205
9206Fixed two size calculation issues with the variable-length Start
9207Dependent
9208resource descriptor.
9209
9210Example Code and Data Size: These are the sizes for the OS-independent
9211acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9212debug version of the code includes the debug output trace mechanism and
9213has
9214a much larger code and data size.
9215
9216  Previous Release:
9217    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
9218    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
9219  Current Release:
9220    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
9221    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
9222
92232) iASL Compiler/Disassembler and Tools:
9224
9225Fixed a problem with the use of the Switch operator where execution of
9226the
9227containing method by multiple concurrent threads could cause an
9228AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
9229actual Switch opcode, it must be simulated with local named temporary
9230variables and if/else pairs. The solution chosen was to mark any method
9231that
9232uses Switch as Serialized, thus preventing multiple thread entries. BZ
9233469.
9234
9235----------------------------------------
923613 February 2008. Summary of changes for version 20080213:
9237
92381) ACPI CA Core Subsystem:
9239
9240Implemented another MS compatibility design change for GPE/Notify
9241handling.
9242GPEs are now cleared/enabled asynchronously to allow all pending notifies
9243to
9244complete first. It is expected that the OSL will queue the enable request
9245behind all pending notify requests (may require changes to the local host
9246OSL
9247in AcpiOsExecute). Alexey Starikovskiy.
9248
9249Fixed a problem where buffer and package objects passed as arguments to a
9250control method via the external AcpiEvaluateObject interface could cause
9251an
9252AE_AML_INTERNAL exception depending on the order and type of operators
9253executed by the target control method.
9254
9255Fixed a problem where resource descriptor size optimization could cause a
9256problem when a _CRS resource template is passed to a _SRS method. The
9257_SRS
9258resource template must use the same descriptors (with the same size) as
9259returned from _CRS. This change affects the following resource
9260descriptors:
9261IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
92629487)
9263
9264Fixed a problem where a CopyObject to RegionField, BankField, and
9265IndexField
9266objects did not perform an implicit conversion as it should. These types
9267must
9268retain their initial type permanently as per the ACPI specification.
9269However,
9270a CopyObject to all other object types should not perform an implicit
9271conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
9272
9273Fixed a problem with the AcpiGetDevices interface where the mechanism to
9274match device CIDs did not examine the entire list of available CIDs, but
9275instead aborted on the first non-matching CID. Andrew Patterson.
9276
9277Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
9278was
9279inadvertently changed to return a 16-bit value instead of a 32-bit value,
9280truncating the upper dword of a 64-bit value. This macro is only used to
9281display debug output, so no incorrect calculations were made. Also,
9282reimplemented the macro so that a 64-bit shift is not performed by
9283inefficient compilers.
9284
9285Added missing va_end statements that should correspond with each va_start
9286statement.
9287
9288Example Code and Data Size: These are the sizes for the OS-independent
9289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9290debug version of the code includes the debug output trace mechanism and
9291has
9292a much larger code and data size.
9293
9294  Previous Release:
9295    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
9296    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
9297  Current Release:
9298    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
9299    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
9300
93012) iASL Compiler/Disassembler and Tools:
9302
9303Implemented full disassembler support for the following new ACPI tables:
9304BERT, EINJ, and ERST. Implemented partial disassembler support for the
9305complicated HEST table. These tables support the Windows Hardware Error
9306Architecture (WHEA).
9307
9308----------------------------------------
930923 January 2008. Summary of changes for version 20080123:
9310
93111) ACPI CA Core Subsystem:
9312
9313Added the 2008 copyright to all module headers and signons. This affects
9314virtually every file in the ACPICA core subsystem, the iASL compiler, and
9315the tools/utilities.
9316
9317Fixed a problem with the SizeOf operator when used with Package and
9318Buffer
9319objects. These objects have deferred execution for some arguments, and
9320the
9321execution is now completed before the SizeOf is executed. This problem
9322caused
9323unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
9324BZ
93259558
9326
9327Implemented an enhancement to the interpreter "slack mode". In the
9328absence
9329of
9330an explicit return or an implicitly returned object from the last
9331executed
9332opcode, a control method will now implicitly return an integer of value 0
9333for
9334Microsoft compatibility. (Lin Ming) BZ 392
9335
9336Fixed a problem with the Load operator where an exception was not
9337returned
9338in
9339the case where the table is already loaded. (Lin Ming) BZ 463
9340
9341Implemented support for the use of DDBHandles as an Indexed Reference, as
9342per
9343the ACPI spec. (Lin Ming) BZ 486
9344
9345Implemented support for UserTerm (Method invocation) for the Unload
9346operator
9347as per the ACPI spec. (Lin Ming) BZ 580
9348
9349Fixed a problem with the LoadTable operator where the OemId and
9350OemTableId
9351input strings could cause unexpected failures if they were shorter than
9352the
9353maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
9354
9355Implemented support for UserTerm (Method invocation) for the Unload
9356operator
9357as per the ACPI spec. (Lin Ming) BZ 580
9358
9359Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
9360HEST,
9361IBFT, UEFI, WDAT. Disassembler support is forthcoming.
9362
9363Example Code and Data Size: These are the sizes for the OS-independent
9364acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9365debug version of the code includes the debug output trace mechanism and
9366has
9367a much larger code and data size.
9368
9369  Previous Release:
9370    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
9371    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
9372  Current Release:
9373    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
9374    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
9375
93762) iASL Compiler/Disassembler and Tools:
9377
9378Implemented support in the disassembler for checksum validation on
9379incoming
9380binary DSDTs and SSDTs. If incorrect, a message is displayed within the
9381table
9382header dump at the start of the disassembly.
9383
9384Implemented additional debugging information in the namespace listing
9385file
9386created during compilation. In addition to the namespace hierarchy, the
9387full
9388pathname to each namespace object is displayed.
9389
9390Fixed a problem with the disassembler where invalid ACPI tables could
9391cause
9392faults or infinite loops.
9393
9394Fixed an unexpected parse error when using the optional "parameter types"
9395list in a control method declaration. (Lin Ming) BZ 397
9396
9397Fixed a problem where two External declarations with the same name did
9398not
9399cause an error (Lin Ming) BZ 509
9400
9401Implemented support for full TermArgs (adding Argx, Localx and method
9402invocation) for the ParameterData parameter to the LoadTable operator.
9403(Lin
9404Ming) BZ 583,587
9405
9406----------------------------------------
940719 December 2007. Summary of changes for version 20071219:
9408
94091) ACPI CA Core Subsystem:
9410
9411Implemented full support for deferred execution for the TermArg string
9412arguments for DataTableRegion. This enables forward references and full
9413operand resolution for the three string arguments. Similar to
9414OperationRegion
9415deferred argument execution.) Lin Ming. BZ 430
9416
9417Implemented full argument resolution support for the BankValue argument
9418to
9419BankField. Previously, only constants were supported, now any TermArg may
9420be
9421used. Lin Ming BZ 387, 393
9422
9423Fixed a problem with AcpiGetDevices where the search of a branch of the
9424device tree could be terminated prematurely. In accordance with the ACPI
9425specification, the search down the current branch is terminated if a
9426device
9427is both not present and not functional (instead of just not present.)
9428Yakui
9429Zhao.
9430
9431Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
9432if
9433the underlying AML code changed the GPE enable registers. Now, any
9434unknown
9435incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
9436disabled
9437instead of simply ignored. Rui Zhang.
9438
9439Fixed a problem with Index Fields where the Index register was
9440incorrectly
9441limited to a maximum of 32 bits. Now any size may be used.
9442
9443Fixed a couple memory leaks associated with "implicit return" objects
9444when
9445the AML Interpreter slack mode is enabled. Lin Ming BZ 349
9446
9447Example Code and Data Size: These are the sizes for the OS-independent
9448acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9449debug version of the code includes the debug output trace mechanism and
9450has
9451a much larger code and data size.
9452
9453  Previous Release:
9454    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
9455    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
9456  Current Release:
9457    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
9458    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
9459
9460----------------------------------------
946114 November 2007. Summary of changes for version 20071114:
9462
94631) ACPI CA Core Subsystem:
9464
9465Implemented event counters for each of the Fixed Events, the ACPI SCI
9466(interrupt) itself, and control methods executed. Named
9467AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
9468These
9469should be useful for debugging and statistics.
9470
9471Implemented a new external interface, AcpiGetStatistics, to retrieve the
9472contents of the various event counters. Returns the current values for
9473AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
9474AcpiMethodCount. The interface can be expanded in the future if new
9475counters
9476are added. Device drivers should use this interface rather than access
9477the
9478counters directly.
9479
9480Fixed a problem with the FromBCD and ToBCD operators. With some
9481compilers,
9482the ShortDivide function worked incorrectly, causing problems with the
9483BCD
9484functions with large input values. A truncation from 64-bit to 32-bit
9485inadvertently occurred. Internal BZ 435. Lin Ming
9486
9487Fixed a problem with Index references passed as method arguments.
9488References
9489passed as arguments to control methods were dereferenced immediately
9490(before
9491control was passed to the called method). The references are now
9492correctly
9493passed directly to the called method. BZ 5389. Lin Ming
9494
9495Fixed a problem with CopyObject used in conjunction with the Index
9496operator.
9497The reference was incorrectly dereferenced before the copy. The reference
9498is
9499now correctly copied. BZ 5391. Lin Ming
9500
9501Fixed a problem with Control Method references within Package objects.
9502These
9503references are now correctly generated. This completes the package
9504construction overhaul that began in version 20071019.
9505
9506Example Code and Data Size: These are the sizes for the OS-independent
9507acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9508debug version of the code includes the debug output trace mechanism and
9509has
9510a much larger code and data size.
9511
9512  Previous Release:
9513    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
9514    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
9515  Current Release:
9516    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
9517    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
9518
9519
95202) iASL Compiler/Disassembler and Tools:
9521
9522The AcpiExec utility now installs handlers for all of the predefined
9523Operation Region types. New types supported are: PCI_Config, CMOS, and
9524PCIBARTarget.
9525
9526Fixed a problem with the 64-bit version of AcpiExec where the extended
9527(64-
9528bit) address fields for the DSDT and FACS within the FADT were not being
9529used, causing truncation of the upper 32-bits of these addresses. Lin
9530Ming
9531and Bob Moore
9532
9533----------------------------------------
953419 October 2007. Summary of changes for version 20071019:
9535
95361) ACPI CA Core Subsystem:
9537
9538Fixed a problem with the Alias operator when the target of the alias is a
9539named ASL operator that opens a new scope -- Scope, Device,
9540PowerResource,
9541Processor, and ThermalZone. In these cases, any children of the original
9542operator could not be accessed via the alias, potentially causing
9543unexpected
9544AE_NOT_FOUND exceptions. (BZ 9067)
9545
9546Fixed a problem with the Package operator where all named references were
9547created as object references and left otherwise unresolved. According to
9548the
9549ACPI specification, a Package can only contain Data Objects or references
9550to
9551control methods. The implication is that named references to Data Objects
9552(Integer, Buffer, String, Package, BufferField, Field) should be resolved
9553immediately upon package creation. This is the approach taken with this
9554change. References to all other named objects (Methods, Devices, Scopes,
9555etc.) are all now properly created as reference objects. (BZ 5328)
9556
9557Reverted a change to Notify handling that was introduced in version
955820070508. This version changed the Notify handling from asynchronous to
9559fully synchronous (Device driver Notify handling with respect to the
9560Notify
9561ASL operator). It was found that this change caused more problems than it
9562solved and was removed by most users.
9563
9564Fixed a problem with the Increment and Decrement operators where the type
9565of
9566the target object could be unexpectedly and incorrectly changed. (BZ 353)
9567Lin Ming.
9568
9569Fixed a problem with the Load and LoadTable operators where the table
9570location within the namespace was ignored. Instead, the table was always
9571loaded into the root or current scope. Lin Ming.
9572
9573Fixed a problem with the Load operator when loading a table from a buffer
9574object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
9575
9576Fixed a problem with the Debug object where a store of a DdbHandle
9577reference
9578object to the Debug object could cause a fault.
9579
9580Added a table checksum verification for the Load operator, in the case
9581where
9582the load is from a buffer. (BZ 578).
9583
9584Implemented additional parameter validation for the LoadTable operator.
9585The
9586length of the input strings SignatureString, OemIdString, and OemTableId
9587are
9588now checked for maximum lengths. (BZ 582) Lin Ming.
9589
9590Example Code and Data Size: These are the sizes for the OS-independent
9591acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9592debug version of the code includes the debug output trace mechanism and
9593has
9594a much larger code and data size.
9595
9596  Previous Release:
9597    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
9598    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
9599  Current Release:
9600    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
9601    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
9602
9603
96042) iASL Compiler/Disassembler:
9605
9606Fixed a problem where if a single file was specified and the file did not
9607exist, no error message was emitted. (Introduced with wildcard support in
9608version 20070917.)
9609
9610----------------------------------------
961119 September 2007. Summary of changes for version 20070919:
9612
96131) ACPI CA Core Subsystem:
9614
9615Designed and implemented new external interfaces to install and remove
9616handlers for ACPI table-related events. Current events that are defined
9617are
9618LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
9619they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
9620AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
9621
9622Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
9623(acpi_serialized option on Linux) could cause some systems to hang during
9624initialization. (Bob Moore) BZ 8171
9625
9626Fixed a problem where objects of certain types (Device, ThermalZone,
9627Processor, PowerResource) can be not found if they are declared and
9628referenced from within the same control method (Lin Ming) BZ 341
9629
9630Example Code and Data Size: These are the sizes for the OS-independent
9631acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9632debug version of the code includes the debug output trace mechanism and
9633has
9634a much larger code and data size.
9635
9636  Previous Release:
9637    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
9638    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
9639  Current Release:
9640    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
9641    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
9642
9643
96442) iASL Compiler/Disassembler:
9645
9646Implemented support to allow multiple files to be compiled/disassembled
9647in
9648a
9649single invocation. This includes command line wildcard support for both
9650the
9651Windows and Unix versions of the compiler. This feature simplifies the
9652disassembly and compilation of multiple ACPI tables in a single
9653directory.
9654
9655----------------------------------------
965608 May 2007. Summary of changes for version 20070508:
9657
96581) ACPI CA Core Subsystem:
9659
9660Implemented a Microsoft compatibility design change for the handling of
9661the
9662Notify AML operator. Previously, notify handlers were dispatched and
9663executed completely asynchronously in a deferred thread. The new design
9664still executes the notify handlers in a different thread, but the
9665original
9666thread that executed the Notify() now waits at a synchronization point
9667for
9668the notify handler to complete. Some machines depend on a synchronous
9669Notify
9670operator in order to operate correctly.
9671
9672Implemented support to allow Package objects to be passed as method
9673arguments to the external AcpiEvaluateObject interface. Previously, this
9674would return the AE_NOT_IMPLEMENTED exception. This feature had not been
9675implemented since there were no reserved control methods that required it
9676until recently.
9677
9678Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
9679that
9680contained invalid non-zero values in reserved fields could cause later
9681failures because these fields have meaning in later revisions of the
9682FADT.
9683For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
9684fields
9685are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
9686
9687Fixed a problem where the Global Lock handle was not properly updated if
9688a
9689thread that acquired the Global Lock via executing AML code then
9690attempted
9691to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
9692Joe
9693Liu.
9694
9695Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
9696could be corrupted if the interrupt being removed was at the head of the
9697list. Reported by Linn Crosetto.
9698
9699Example Code and Data Size: These are the sizes for the OS-independent
9700acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9701debug version of the code includes the debug output trace mechanism and
9702has
9703a much larger code and data size.
9704
9705  Previous Release:
9706    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9707    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
9708  Current Release:
9709    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
9710    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
9711
9712----------------------------------------
971320 March 2007. Summary of changes for version 20070320:
9714
97151) ACPI CA Core Subsystem:
9716
9717Implemented a change to the order of interpretation and evaluation of AML
9718operand objects within the AML interpreter. The interpreter now evaluates
9719operands in the order that they appear in the AML stream (and the
9720corresponding ASL code), instead of in the reverse order (after the
9721entire
9722operand list has been parsed). The previous behavior caused several
9723subtle
9724incompatibilities with the Microsoft AML interpreter as well as being
9725somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
9726
9727Implemented a change to the ACPI Global Lock support. All interfaces to
9728the
9729global lock now allow the same thread to acquire the lock multiple times.
9730This affects the AcpiAcquireGlobalLock external interface to the global
9731lock
9732as well as the internal use of the global lock to support AML fields -- a
9733control method that is holding the global lock can now simultaneously
9734access
9735AML fields that require global lock protection. Previously, in both
9736cases,
9737this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
9738to
9739AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
9740Controller. There is no change to the behavior of the AML Acquire
9741operator,
9742as this can already be used to acquire a mutex multiple times by the same
9743thread. BZ 8066. With assistance from Alexey Starikovskiy.
9744
9745Fixed a problem where invalid objects could be referenced in the AML
9746Interpreter after error conditions. During operand evaluation, ensure
9747that
9748the internal "Return Object" field is cleared on error and only valid
9749pointers are stored there. Caused occasional access to deleted objects
9750that
9751resulted in "large reference count" warning messages. Valery Podrezov.
9752
9753Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
9754on
9755deeply nested control method invocations. BZ 7873, local BZ 487. Valery
9756Podrezov.
9757
9758Fixed an internal problem with the handling of result objects on the
9759interpreter result stack. BZ 7872. Valery Podrezov.
9760
9761Removed obsolete code that handled the case where AML_NAME_OP is the
9762target
9763of a reference (Reference.Opcode). This code was no longer necessary. BZ
97647874. Valery Podrezov.
9765
9766Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
9767was
9768a
9769remnant from the previously discontinued 16-bit support.
9770
9771Example Code and Data Size: These are the sizes for the OS-independent
9772acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9773debug version of the code includes the debug output trace mechanism and
9774has
9775a much larger code and data size.
9776
9777  Previous Release:
9778    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9779    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9780  Current Release:
9781    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9782    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
9783
9784----------------------------------------
978526 January 2007. Summary of changes for version 20070126:
9786
97871) ACPI CA Core Subsystem:
9788
9789Added the 2007 copyright to all module headers and signons. This affects
9790virtually every file in the ACPICA core subsystem, the iASL compiler, and
9791the utilities.
9792
9793Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
9794during a table load. A bad pointer was passed in the case where the DSDT
9795is
9796overridden, causing a fault in this case.
9797
9798Example Code and Data Size: These are the sizes for the OS-independent
9799acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9800debug version of the code includes the debug output trace mechanism and
9801has
9802a much larger code and data size.
9803
9804  Previous Release:
9805    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9806    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9807  Current Release:
9808    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9809    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9810
9811----------------------------------------
981215 December 2006. Summary of changes for version 20061215:
9813
98141) ACPI CA Core Subsystem:
9815
9816Support for 16-bit ACPICA has been completely removed since it is no
9817longer
9818necessary and it clutters the code. All 16-bit macros, types, and
9819conditional compiles have been removed, cleaning up and simplifying the
9820code
9821across the entire subsystem. DOS support is no longer needed since the
9822bootable Linux firmware kit is now available.
9823
9824The handler for the Global Lock is now removed during AcpiTerminate to
9825enable a clean subsystem restart, via the implementation of the
9826AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
9827HP)
9828
9829Implemented enhancements to the multithreading support within the
9830debugger
9831to enable improved multithreading debugging and evaluation of the
9832subsystem.
9833(Valery Podrezov)
9834
9835Debugger: Enhanced the Statistics/Memory command to emit the total
9836(maximum)
9837memory used during the execution, as well as the maximum memory consumed
9838by
9839each of the various object types. (Valery Podrezov)
9840
9841Example Code and Data Size: These are the sizes for the OS-independent
9842acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9843debug version of the code includes the debug output trace mechanism and
9844has
9845a much larger code and data size.
9846
9847  Previous Release:
9848    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
9849    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
9850  Current Release:
9851    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9852    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9853
9854
98552) iASL Compiler/Disassembler and Tools:
9856
9857AcpiExec: Implemented a new option (-m) to display full memory use
9858statistics upon subsystem/program termination. (Valery Podrezov)
9859
9860----------------------------------------
986109 November 2006. Summary of changes for version 20061109:
9862
98631) ACPI CA Core Subsystem:
9864
9865Optimized the Load ASL operator in the case where the source operand is
9866an
9867operation region. Simply map the operation region memory, instead of
9868performing a bytewise read. (Region must be of type SystemMemory, see
9869below.)
9870
9871Fixed the Load ASL operator for the case where the source operand is a
9872region field. A buffer object is also allowed as the source operand. BZ
9873480
9874
9875Fixed a problem where the Load ASL operator allowed the source operand to
9876be
9877an operation region of any type. It is now restricted to regions of type
9878SystemMemory, as per the ACPI specification. BZ 481
9879
9880Additional cleanup and optimizations for the new Table Manager code.
9881
9882AcpiEnable will now fail if all of the required ACPI tables are not
9883loaded
9884(FADT, FACS, DSDT). BZ 477
9885
9886Added #pragma pack(8/4) to acobject.h to ensure that the structures in
9887this
9888header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
9889manually optimized to be aligned and will not work if it is byte-packed.
9890
9891Example Code and Data Size: These are the sizes for the OS-independent
9892acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9893debug version of the code includes the debug output trace mechanism and
9894has
9895a much larger code and data size.
9896
9897  Previous Release:
9898    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
9899    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
9900  Current Release:
9901    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
9902    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
9903
9904
99052) iASL Compiler/Disassembler and Tools:
9906
9907Fixed a problem where the presence of the _OSI predefined control method
9908within complex expressions could cause an internal compiler error.
9909
9910AcpiExec: Implemented full region support for multiple address spaces.
9911SpaceId is now part of the REGION object. BZ 429
9912
9913----------------------------------------
991411 October 2006. Summary of changes for version 20061011:
9915
99161) ACPI CA Core Subsystem:
9917
9918Completed an AML interpreter performance enhancement for control method
9919execution. Previously a 2-pass parse/execution, control methods are now
9920completely parsed and executed in a single pass. This improves overall
9921interpreter performance by ~25%, reduces code size, and reduces CPU stack
9922use. (Valery Podrezov + interpreter changes in version 20051202 that
9923eliminated namespace loading during the pass one parse.)
9924
9925Implemented _CID support for PCI Root Bridge detection. If the _HID does
9926not
9927match the predefined PCI Root Bridge IDs, the _CID list (if present) is
9928now
9929obtained and also checked for an ID match.
9930
9931Implemented additional support for the PCI _ADR execution: upsearch until
9932a
9933device scope is found before executing _ADR. This allows PCI_Config
9934operation regions to be declared locally within control methods
9935underneath
9936PCI device objects.
9937
9938Fixed a problem with a possible race condition between threads executing
9939AcpiWalkNamespace and the AML interpreter. This condition was removed by
9940modifying AcpiWalkNamespace to (by default) ignore all temporary
9941namespace
9942entries created during any concurrent control method execution. An
9943additional namespace race condition is known to exist between
9944AcpiWalkNamespace and the Load/Unload ASL operators and is still under
9945investigation.
9946
9947Restructured the AML ParseLoop function, breaking it into several
9948subfunctions in order to reduce CPU stack use and improve
9949maintainability.
9950(Mikhail Kouzmich)
9951
9952AcpiGetHandle: Fix for parameter validation to detect invalid
9953combinations
9954of prefix handle and pathname. BZ 478
9955
9956Example Code and Data Size: These are the sizes for the OS-independent
9957acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9958debug version of the code includes the debug output trace mechanism and
9959has
9960a much larger code and data size.
9961
9962  Previous Release:
9963    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
9964    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
9965  Current Release:
9966    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
9967    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
9968
99692) iASL Compiler/Disassembler and Tools:
9970
9971Ported the -g option (get local ACPI tables) to the new ACPICA Table
9972Manager
9973to restore original behavior.
9974
9975----------------------------------------
997627 September 2006. Summary of changes for version 20060927:
9977
99781) ACPI CA Core Subsystem:
9979
9980Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
9981These functions now use a spinlock for mutual exclusion and the interrupt
9982level indication flag is not needed.
9983
9984Fixed a problem with the Global Lock where the lock could appear to be
9985obtained before it is actually obtained. The global lock semaphore was
9986inadvertently created with one unit instead of zero units. (BZ 464)
9987Fiodor
9988Suietov.
9989
9990Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
9991during
9992a read from a buffer or region field. (BZ 458) Fiodor Suietov.
9993
9994Example Code and Data Size: These are the sizes for the OS-independent
9995acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9996debug version of the code includes the debug output trace mechanism and
9997has
9998a much larger code and data size.
9999
10000  Previous Release:
10001    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
10002    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
10003  Current Release:
10004    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
10005    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
10006
10007
100082) iASL Compiler/Disassembler and Tools:
10009
10010Fixed a compilation problem with the pre-defined Resource Descriptor
10011field
10012names where an "object does not exist" error could be incorrectly
10013generated
10014if the parent ResourceTemplate pathname places the template within a
10015different namespace scope than the current scope. (BZ 7212)
10016
10017Fixed a problem where the compiler could hang after syntax errors
10018detected
10019in an ElseIf construct. (BZ 453)
10020
10021Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
10022operator. An incorrect output filename was produced when this parameter
10023was
10024a null string (""). Now, the original input filename is used as the AML
10025output filename, with an ".aml" extension.
10026
10027Implemented a generic batch command mode for the AcpiExec utility
10028(execute
10029any AML debugger command) (Valery Podrezov).
10030
10031----------------------------------------
1003212 September 2006. Summary of changes for version 20060912:
10033
100341) ACPI CA Core Subsystem:
10035
10036Enhanced the implementation of the "serialized mode" of the interpreter
10037(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
10038specified, instead of creating a serialization semaphore per control
10039method,
10040the interpreter lock is simply no longer released before a blocking
10041operation during control method execution. This effectively makes the AML
10042Interpreter single-threaded. The overhead of a semaphore per-method is
10043eliminated.
10044
10045Fixed a regression where an error was no longer emitted if a control
10046method
10047attempts to create 2 objects of the same name. This once again returns
10048AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
10049that
10050will dynamically serialize the control method to possible prevent future
10051errors. (BZ 440)
10052
10053Integrated a fix for a problem with PCI Express HID detection in the PCI
10054Config Space setup procedure. (BZ 7145)
10055
10056Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
10057AcpiHwInitialize function - the FADT registers are now validated when the
10058table is loaded.
10059
10060Added two new warnings during FADT verification - 1) if the FADT is
10061larger
10062than the largest known FADT version, and 2) if there is a mismatch
10063between
10064a
1006532-bit block address and the 64-bit X counterpart (when both are non-
10066zero.)
10067
10068Example Code and Data Size: These are the sizes for the OS-independent
10069acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10070debug version of the code includes the debug output trace mechanism and
10071has
10072a much larger code and data size.
10073
10074  Previous Release:
10075    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
10076    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
10077  Current Release:
10078    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
10079    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
10080
10081
100822) iASL Compiler/Disassembler and Tools:
10083
10084Fixed a problem with the implementation of the Switch() operator where
10085the
10086temporary variable was declared too close to the actual Switch, instead
10087of
10088at method level. This could cause a problem if the Switch() operator is
10089within a while loop, causing an error on the second iteration. (BZ 460)
10090
10091Disassembler - fix for error emitted for unknown type for target of scope
10092operator. Now, ignore it and continue.
10093
10094Disassembly of an FADT now verifies the input FADT and reports any errors
10095found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
10096
10097Disassembly of raw data buffers with byte initialization data now
10098prefixes
10099each output line with the current buffer offset.
10100
10101Disassembly of ASF! table now includes all variable-length data fields at
10102the end of some of the subtables.
10103
10104The disassembler now emits a comment if a buffer appears to be a
10105ResourceTemplate, but cannot be disassembled as such because the EndTag
10106does
10107not appear at the very end of the buffer.
10108
10109AcpiExec - Added the "-t" command line option to enable the serialized
10110mode
10111of the AML interpreter.
10112
10113----------------------------------------
1011431 August 2006. Summary of changes for version 20060831:
10115
101161) ACPI CA Core Subsystem:
10117
10118Miscellaneous fixes for the Table Manager:
10119- Correctly initialize internal common FADT for all 64-bit "X" fields
10120- Fixed a couple table mapping issues during table load
10121- Fixed a couple alignment issues for IA64
10122- Initialize input array to zero in AcpiInitializeTables
10123- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
10124AcpiGetTableByIndex
10125
10126Change for GPE support: when a "wake" GPE is received, all wake GPEs are
10127now
10128immediately disabled to prevent the waking GPE from firing again and to
10129prevent other wake GPEs from interrupting the wake process.
10130
10131Added the AcpiGpeCount global that tracks the number of processed GPEs,
10132to
10133be used for debugging systems with a large number of ACPI interrupts.
10134
10135Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
10136both the ACPICA headers and the disassembler.
10137
10138Example Code and Data Size: These are the sizes for the OS-independent
10139acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10140debug version of the code includes the debug output trace mechanism and
10141has
10142a much larger code and data size.
10143
10144  Previous Release:
10145    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
10146    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
10147  Current Release:
10148    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
10149    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
10150
10151
101522) iASL Compiler/Disassembler and Tools:
10153
10154Disassembler support for the DMAR ACPI table.
10155
10156----------------------------------------
1015723 August 2006. Summary of changes for version 20060823:
10158
101591) ACPI CA Core Subsystem:
10160
10161The Table Manager component has been completely redesigned and
10162reimplemented. The new design is much simpler, and reduces the overall
10163code
10164and data size of the kernel-resident ACPICA by approximately 5%. Also, it
10165is
10166now possible to obtain the ACPI tables very early during kernel
10167initialization, even before dynamic memory management is initialized.
10168(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
10169
10170Obsolete ACPICA interfaces:
10171
10172- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
10173init
10174time).
10175- AcpiLoadTable: Not needed.
10176- AcpiUnloadTable: Not needed.
10177
10178New ACPICA interfaces:
10179
10180- AcpiInitializeTables: Must be called before the table manager can be
10181used.
10182- AcpiReallocateRootTable: Used to transfer the root table to dynamically
10183allocated memory after it becomes available.
10184- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
10185tables
10186in the RSDT/XSDT.
10187
10188Other ACPICA changes:
10189
10190- AcpiGetTableHeader returns the actual mapped table header, not a copy.
10191Use
10192AcpiOsUnmapMemory to free this mapping.
10193- AcpiGetTable returns the actual mapped table. The mapping is managed
10194internally and must not be deleted by the caller. Use of this interface
10195causes no additional dynamic memory allocation.
10196- AcpiFindRootPointer: Support for physical addressing has been
10197eliminated,
10198it appeared to be unused.
10199- The interface to AcpiOsMapMemory has changed to be consistent with the
10200other allocation interfaces.
10201- The interface to AcpiOsGetRootPointer has changed to eliminate
10202unnecessary
10203parameters.
10204- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
1020564-
10206bit platforms. Was previously 64 bits on all platforms.
10207- The interface to the ACPI Global Lock acquire/release macros have
10208changed
10209slightly since ACPICA no longer keeps a local copy of the FACS with a
10210constructed pointer to the actual global lock.
10211
10212Porting to the new table manager:
10213
10214- AcpiInitializeTables: Must be called once, and can be called anytime
10215during the OS initialization process. It allows the host to specify an
10216area
10217of memory to be used to store the internal version of the RSDT/XSDT (root
10218table). This allows the host to access ACPI tables before memory
10219management
10220is initialized and running.
10221- AcpiReallocateRootTable: Can be called after memory management is
10222running
10223to copy the root table to a dynamically allocated array, freeing up the
10224scratch memory specified in the call to AcpiInitializeTables.
10225- AcpiSubsystemInitialize: This existing interface is independent of the
10226Table Manager, and does not have to be called before the Table Manager
10227can
10228be used, it only must be called before the rest of ACPICA can be used.
10229- ACPI Tables: Some changes have been made to the names and structure of
10230the
10231actbl.h and actbl1.h header files and may require changes to existing
10232code.
10233For example, bitfields have been completely removed because of their lack
10234of
10235portability across C compilers.
10236- Update interfaces to the Global Lock acquire/release macros if local
10237versions are used. (see acwin.h)
10238
10239Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
10240
10241New files: tbfind.c
10242
10243Example Code and Data Size: These are the sizes for the OS-independent
10244acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10245debug version of the code includes the debug output trace mechanism and
10246has
10247a much larger code and data size.
10248
10249  Previous Release:
10250    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
10251    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
10252  Current Release:
10253    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
10254    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
10255
10256
102572) iASL Compiler/Disassembler and Tools:
10258
10259No changes for this release.
10260
10261----------------------------------------
1026221 July 2006. Summary of changes for version 20060721:
10263
102641) ACPI CA Core Subsystem:
10265
10266The full source code for the ASL test suite used to validate the iASL
10267compiler and the ACPICA core subsystem is being released with the ACPICA
10268source for the first time. The source is contained in a separate package
10269and
10270consists of over 1100 files that exercise all ASL/AML operators. The
10271package
10272should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
10273Fiodor
10274Suietov)
10275
10276Completed a new design and implementation for support of the ACPI Global
10277Lock. On the OS side, the global lock is now treated as a standard AML
10278mutex. Previously, multiple OS threads could "acquire" the global lock
10279simultaneously. However, this could cause the BIOS to be starved out of
10280the
10281lock - especially in cases such as the Embedded Controller driver where
10282there is a tight coupling between the OS and the BIOS.
10283
10284Implemented an optimization for the ACPI Global Lock interrupt mechanism.
10285The Global Lock interrupt handler no longer queues the execution of a
10286separate thread to signal the global lock semaphore. Instead, the
10287semaphore
10288is signaled directly from the interrupt handler.
10289
10290Implemented support within the AML interpreter for package objects that
10291contain a larger AML length (package list length) than the package
10292element
10293count. In this case, the length of the package is truncated to match the
10294package element count. Some BIOS code apparently modifies the package
10295length
10296on the fly, and this change supports this behavior. Provides
10297compatibility
10298with the MS AML interpreter. (With assistance from Fiodor Suietov)
10299
10300Implemented a temporary fix for the BankValue parameter of a Bank Field
10301to
10302support all constant values, now including the Zero and One opcodes.
10303Evaluation of this parameter must eventually be converted to a full
10304TermArg
10305evaluation. A not-implemented error is now returned (temporarily) for
10306non-
10307constant values for this parameter.
10308
10309Fixed problem reports (Fiodor Suietov) integrated:
10310- Fix for premature object deletion after CopyObject on Operation Region
10311(BZ
10312350)
10313
10314Example Code and Data Size: These are the sizes for the OS-independent
10315acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10316debug version of the code includes the debug output trace mechanism and
10317has
10318a much larger code and data size.
10319
10320  Previous Release:
10321    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
10322    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
10323  Current Release:
10324    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
10325    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
10326
10327
103282) iASL Compiler/Disassembler and Tools:
10329
10330No changes for this release.
10331
10332----------------------------------------
1033307 July 2006. Summary of changes for version 20060707:
10334
103351) ACPI CA Core Subsystem:
10336
10337Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
10338that do not allow the initialization of address pointers within packed
10339structures - even though the hardware itself may support misaligned
10340transfers. Some of the debug data structures are packed by default to
10341minimize size.
10342
10343Added an error message for the case where AcpiOsGetThreadId() returns
10344zero.
10345A non-zero value is required by the core ACPICA code to ensure the proper
10346operation of AML mutexes and recursive control methods.
10347
10348The DSDT is now the only ACPI table that determines whether the AML
10349interpreter is in 32-bit or 64-bit mode. Not really a functional change,
10350but
10351the hooks for per-table 32/64 switching have been removed from the code.
10352A
10353clarification to the ACPI specification is forthcoming in ACPI 3.0B.
10354
10355Fixed a possible leak of an OwnerID in the error path of
10356AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
10357deletion to a single place in AcpiTbUninstallTable to correct possible
10358leaks
10359when using the AcpiTbDeleteTablesByType interface (with assistance from
10360Lance Ortiz.)
10361
10362Fixed a problem with Serialized control methods where the semaphore
10363associated with the method could be over-signaled after multiple method
10364invocations.
10365
10366Fixed two issues with the locking of the internal namespace data
10367structure.
10368Both the Unload() operator and AcpiUnloadTable interface now lock the
10369namespace during the namespace deletion associated with the table unload
10370(with assistance from Linn Crosetto.)
10371
10372Fixed problem reports (Valery Podrezov) integrated:
10373- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
10374
10375Fixed problem reports (Fiodor Suietov) integrated:
10376- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
10377- On Address Space handler deletion, needless deactivation call (BZ 374)
10378- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
10379375)
10380- Possible memory leak, Notify sub-objects of Processor, Power,
10381ThermalZone
10382(BZ 376)
10383- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
10384- Minimum Length of RSDT should be validated (BZ 379)
10385- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
10386Handler (BZ (380)
10387- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
10388loaded
10389(BZ 381)
10390
10391Example Code and Data Size: These are the sizes for the OS-independent
10392acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10393debug version of the code includes the debug output trace mechanism and
10394has
10395a much larger code and data size.
10396
10397  Previous Release:
10398    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
10399    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
10400  Current Release:
10401    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
10402    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
10403
10404
104052) iASL Compiler/Disassembler and Tools:
10406
10407Fixed problem reports:
10408Compiler segfault when ASL contains a long (>1024) String declaration (BZ
10409436)
10410
10411----------------------------------------
1041223 June 2006. Summary of changes for version 20060623:
10413
104141) ACPI CA Core Subsystem:
10415
10416Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
10417allows the type to be customized to the host OS for improved efficiency
10418(since a spinlock is usually a very small object.)
10419
10420Implemented support for "ignored" bits in the ACPI registers. According
10421to
10422the ACPI specification, these bits should be preserved when writing the
10423registers via a read/modify/write cycle. There are 3 bits preserved in
10424this
10425manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
10426
10427Implemented the initial deployment of new OSL mutex interfaces. Since
10428some
10429host operating systems have separate mutex and semaphore objects, this
10430feature was requested. The base code now uses mutexes (and the new mutex
10431interfaces) wherever a binary semaphore was used previously. However, for
10432the current release, the mutex interfaces are defined as macros to map
10433them
10434to the existing semaphore interfaces. Therefore, no OSL changes are
10435required
10436at this time. (See acpiosxf.h)
10437
10438Fixed several problems with the support for the control method SyncLevel
10439parameter. The SyncLevel now works according to the ACPI specification
10440and
10441in concert with the Mutex SyncLevel parameter, since the current
10442SyncLevel
10443is a property of the executing thread. Mutual exclusion for control
10444methods
10445is now implemented with a mutex instead of a semaphore.
10446
10447Fixed three instances of the use of the C shift operator in the bitfield
10448support code (exfldio.c) to avoid the use of a shift value larger than
10449the
10450target data width. The behavior of C compilers is undefined in this case
10451and
10452can cause unpredictable results, and therefore the case must be detected
10453and
10454avoided. (Fiodor Suietov)
10455
10456Added an info message whenever an SSDT or OEM table is loaded dynamically
10457via the Load() or LoadTable() ASL operators. This should improve
10458debugging
10459capability since it will show exactly what tables have been loaded
10460(beyond
10461the tables present in the RSDT/XSDT.)
10462
10463Example Code and Data Size: These are the sizes for the OS-independent
10464acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10465debug version of the code includes the debug output trace mechanism and
10466has
10467a much larger code and data size.
10468
10469  Previous Release:
10470    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
10471    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
10472  Current Release:
10473    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
10474    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
10475
10476
104772) iASL Compiler/Disassembler and Tools:
10478
10479No changes for this release.
10480
10481----------------------------------------
1048208 June 2006. Summary of changes for version 20060608:
10483
104841) ACPI CA Core Subsystem:
10485
10486Converted the locking mutex used for the ACPI hardware to a spinlock.
10487This
10488change should eliminate all problems caused by attempting to acquire a
10489semaphore at interrupt level, and it means that all ACPICA external
10490interfaces that directly access the ACPI hardware can be safely called
10491from
10492interrupt level. OSL code that implements the semaphore interfaces should
10493be
10494able to eliminate any workarounds for being called at interrupt level.
10495
10496Fixed a regression introduced in 20060526 where the ACPI device
10497initialization could be prematurely aborted with an AE_NOT_FOUND if a
10498device
10499did not have an optional _INI method.
10500
10501Fixed an IndexField issue where a write to the Data Register should be
10502limited in size to the AccessSize (width) of the IndexField itself. (BZ
10503433,
10504Fiodor Suietov)
10505
10506Fixed problem reports (Valery Podrezov) integrated:
10507- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
10508
10509Fixed problem reports (Fiodor Suietov) integrated:
10510- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
10511
10512Removed four global mutexes that were obsolete and were no longer being
10513used.
10514
10515Example Code and Data Size: These are the sizes for the OS-independent
10516acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10517debug version of the code includes the debug output trace mechanism and
10518has
10519a much larger code and data size.
10520
10521  Previous Release:
10522    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
10523    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
10524  Current Release:
10525    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
10526    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
10527
10528
105292) iASL Compiler/Disassembler and Tools:
10530
10531Fixed a fault when using -g option (get tables from registry) on Windows
10532machines.
10533
10534Fixed problem reports integrated:
10535- Generate error if CreateField NumBits parameter is zero. (BZ 405)
10536- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
10537Suietov)
10538- Global table revision override (-r) is ignored (BZ 413)
10539
10540----------------------------------------
1054126 May 2006. Summary of changes for version 20060526:
10542
105431) ACPI CA Core Subsystem:
10544
10545Restructured, flattened, and simplified the internal interfaces for
10546namespace object evaluation - resulting in smaller code, less CPU stack
10547use,
10548and fewer interfaces. (With assistance from Mikhail Kouzmich)
10549
10550Fixed a problem with the CopyObject operator where the first parameter
10551was
10552not typed correctly for the parser, interpreter, compiler, and
10553disassembler.
10554Caused various errors and unexpected behavior.
10555
10556Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
10557produced incorrect results with some C compilers. Since the behavior of C
10558compilers when the shift value is larger than the datatype width is
10559apparently not well defined, the interpreter now detects this condition
10560and
10561simply returns zero as expected in all such cases. (BZ 395)
10562
10563Fixed problem reports (Valery Podrezov) integrated:
10564- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
10565- Allow interpreter to handle nested method declarations (BZ 5361)
10566
10567Fixed problem reports (Fiodor Suietov) integrated:
10568- AcpiTerminate doesn't free debug memory allocation list objects (BZ
10569355)
10570- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
10571356)
10572- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
10573- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
10574- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
10575- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
10576- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
10577- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
10578- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
10579365)
10580- Status of the Global Initialization Handler call not used (BZ 366)
10581- Incorrect object parameter to Global Initialization Handler (BZ 367)
10582
10583Example Code and Data Size: These are the sizes for the OS-independent
10584acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10585debug version of the code includes the debug output trace mechanism and
10586has
10587a much larger code and data size.
10588
10589  Previous Release:
10590    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
10591    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
10592  Current Release:
10593    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
10594    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
10595
10596
105972) iASL Compiler/Disassembler and Tools:
10598
10599Modified the parser to allow the names IO, DMA, and IRQ to be used as
10600namespace identifiers with no collision with existing resource descriptor
10601macro names. This provides compatibility with other ASL compilers and is
10602most useful for disassembly/recompilation of existing tables without
10603parse
10604errors. (With assistance from Thomas Renninger)
10605
10606Disassembler: fixed an incorrect disassembly problem with the
10607DataTableRegion and CopyObject operators. Fixed a possible fault during
10608disassembly of some Alias operators.
10609
10610----------------------------------------
1061112 May 2006. Summary of changes for version 20060512:
10612
106131) ACPI CA Core Subsystem:
10614
10615Replaced the AcpiOsQueueForExecution interface with a new interface named
10616AcpiOsExecute. The major difference is that the new interface does not
10617have
10618a Priority parameter, this appeared to be useless and has been replaced
10619by
10620a
10621Type parameter. The Type tells the host what type of execution is being
10622requested, such as global lock handler, notify handler, GPE handler, etc.
10623This allows the host to queue and execute the request as appropriate for
10624the
10625request type, possibly using different work queues and different
10626priorities
10627for the various request types. This enables fixes for multithreading
10628deadlock problems such as BZ #5534, and will require changes to all
10629existing
10630OS interface layers. (Alexey Starikovskiy and Bob Moore)
10631
10632Fixed a possible memory leak associated with the support for the so-
10633called
10634"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
10635Suietov)
10636
10637Fixed a problem with the Load() operator where a table load from an
10638operation region could overwrite an internal table buffer by up to 7
10639bytes
10640and cause alignment faults on IPF systems. (With assistance from Luming
10641Yu)
10642
10643Example Code and Data Size: These are the sizes for the OS-independent
10644acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10645debug version of the code includes the debug output trace mechanism and
10646has
10647a much larger code and data size.
10648
10649  Previous Release:
10650    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
10651    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
10652  Current Release:
10653    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
10654    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
10655
10656
10657
106582) iASL Compiler/Disassembler and Tools:
10659
10660Disassembler: Implemented support to cross reference the internal
10661namespace
10662and automatically generate ASL External() statements for symbols not
10663defined
10664within the current table being disassembled. This will simplify the
10665disassembly and recompilation of interdependent tables such as SSDTs
10666since
10667these statements will no longer have to be added manually.
10668
10669Disassembler: Implemented experimental support to automatically detect
10670invocations of external control methods and generate appropriate
10671External()
10672statements. This is problematic because the AML cannot be correctly
10673parsed
10674until the number of arguments for each control method is known.
10675Currently,
10676standalone method invocations and invocations as the source operand of a
10677Store() statement are supported.
10678
10679Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
10680LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
10681LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
10682more readable and likely closer to the original ASL source.
10683
10684----------------------------------------
1068521 April 2006. Summary of changes for version 20060421:
10686
106871) ACPI CA Core Subsystem:
10688
10689Removed a device initialization optimization introduced in 20051216 where
10690the _STA method was not run unless an _INI was also present for the same
10691device. This optimization could cause problems because it could allow
10692_INI
10693methods to be run within a not-present device subtree. (If a not-present
10694device had no _INI, _STA would not be run, the not-present status would
10695not
10696be discovered, and the children of the device would be incorrectly
10697traversed.)
10698
10699Implemented a new _STA optimization where namespace subtrees that do not
10700contain _INI are identified and ignored during device initialization.
10701Selectively running _STA can significantly improve boot time on large
10702machines (with assistance from Len Brown.)
10703
10704Implemented support for the device initialization case where the returned
10705_STA flags indicate a device not-present but functioning. In this case,
10706_INI
10707is not run, but the device children are examined for presence, as per the
10708ACPI specification.
10709
10710Implemented an additional change to the IndexField support in order to
10711conform to MS behavior. The value written to the Index Register is not
10712simply a byte offset, it is a byte offset in units of the access width of
10713the parent Index Field. (Fiodor Suietov)
10714
10715Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
10716interface is called during the creation of all AML operation regions, and
10717allows the host OS to exert control over what addresses it will allow the
10718AML code to access. Operation Regions whose addresses are disallowed will
10719cause a runtime exception when they are actually accessed (will not
10720affect
10721or abort table loading.) See oswinxf or osunixxf for an example
10722implementation.
10723
10724Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
10725interface allows the host OS to match the various "optional"
10726interface/behavior strings for the _OSI predefined control method as
10727appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
10728for an example implementation.
10729
10730Restructured and corrected various problems in the exception handling
10731code
10732paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
10733(with assistance from Takayoshi Kochi.)
10734
10735Modified the Linux source converter to ignore quoted string literals
10736while
10737converting identifiers from mixed to lower case. This will correct
10738problems
10739with the disassembler and other areas where such strings must not be
10740modified.
10741
10742The ACPI_FUNCTION_* macros no longer require quotes around the function
10743name. This allows the Linux source converter to convert the names, now
10744that
10745the converter ignores quoted strings.
10746
10747Example Code and Data Size: These are the sizes for the OS-independent
10748acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10749debug version of the code includes the debug output trace mechanism and
10750has
10751a much larger code and data size.
10752
10753  Previous Release:
10754
10755    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
10756    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
10757  Current Release:
10758    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
10759    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
10760
10761
107622) iASL Compiler/Disassembler and Tools:
10763
10764Implemented 3 new warnings for iASL, and implemented multiple warning
10765levels
10766(w2 flag).
10767
107681) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
10769not
10770WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
10771check for the possible timeout, a warning is issued.
10772
107732) Useless operators: If an ASL operator does not specify an optional
10774target
10775operand and it also does not use the function return value from the
10776operator, a warning is issued since the operator effectively does
10777nothing.
10778
107793) Unreferenced objects: If a namespace object is created, but never
10780referenced, a warning is issued. This is a warning level 2 since there
10781are
10782cases where this is ok, such as when a secondary table is loaded that
10783uses
10784the unreferenced objects. Even so, care is taken to only flag objects
10785that
10786don't look like they will ever be used. For example, the reserved methods
10787(starting with an underscore) are usually not referenced because it is
10788expected that the OS will invoke them.
10789
10790----------------------------------------
1079131 March 2006. Summary of changes for version 20060331:
10792
107931) ACPI CA Core Subsystem:
10794
10795Implemented header file support for the following additional ACPI tables:
10796ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
10797support,
10798all current and known ACPI tables are now defined in the ACPICA headers
10799and
10800are available for use by device drivers and other software.
10801
10802Implemented support to allow tables that contain ACPI names with invalid
10803characters to be loaded. Previously, this would cause the table load to
10804fail, but since there are several known cases of such tables on existing
10805machines, this change was made to enable ACPI support for them. Also,
10806this
10807matches the behavior of the Microsoft ACPI implementation.
10808
10809Fixed a couple regressions introduced during the memory optimization in
10810the
1081120060317 release. The namespace node definition required additional
10812reorganization and an internal datatype that had been changed to 8-bit
10813was
10814restored to 32-bit. (Valery Podrezov)
10815
10816Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
10817could be passed through to AcpiOsReleaseObject which is unexpected. Such
10818null pointers are now trapped and ignored, matching the behavior of the
10819previous implementation before the deployment of AcpiOsReleaseObject.
10820(Valery Podrezov, Fiodor Suietov)
10821
10822Fixed a memory mapping leak during the deletion of a SystemMemory
10823operation
10824region where a cached memory mapping was not deleted. This became a
10825noticeable problem for operation regions that are defined within
10826frequently
10827used control methods. (Dana Meyers)
10828
10829Reorganized the ACPI table header files into two main files: one for the
10830ACPI tables consumed by the ACPICA core, and another for the
10831miscellaneous
10832ACPI tables that are consumed by the drivers and other software. The
10833various
10834FADT definitions were merged into one common section and three different
10835tables (ACPI 1.0, 1.0+, and 2.0)
10836
10837Example Code and Data Size: These are the sizes for the OS-independent
10838acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10839debug version of the code includes the debug output trace mechanism and
10840has
10841a much larger code and data size.
10842
10843  Previous Release:
10844    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
10845    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
10846  Current Release:
10847    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
10848    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
10849
10850
108512) iASL Compiler/Disassembler and Tools:
10852
10853Disassembler: Implemented support to decode and format all non-AML ACPI
10854tables (tables other than DSDTs and SSDTs.) This includes the new tables
10855added to the ACPICA headers, therefore all current and known ACPI tables
10856are
10857supported.
10858
10859Disassembler: The change to allow ACPI names with invalid characters also
10860enables the disassembly of such tables. Invalid characters within names
10861are
10862changed to '*' to make the name printable; the iASL compiler will still
10863generate an error for such names, however, since this is an invalid ACPI
10864character.
10865
10866Implemented an option for AcpiXtract (-a) to extract all tables found in
10867the
10868input file. The default invocation extracts only the DSDTs and SSDTs.
10869
10870Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
10871makefile for the AcpiXtract utility.
10872
10873----------------------------------------
1087417 March 2006. Summary of changes for version 20060317:
10875
108761) ACPI CA Core Subsystem:
10877
10878Implemented the use of a cache object for all internal namespace nodes.
10879Since there are about 1000 static nodes in a typical system, this will
10880decrease memory use for cache implementations that minimize per-
10881allocation
10882overhead (such as a slab allocator.)
10883
10884Removed the reference count mechanism for internal namespace nodes, since
10885it
10886was deemed unnecessary. This reduces the size of each namespace node by
10887about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
10888case,
10889and 32 bytes for the 64-bit case.
10890
10891Optimized several internal data structures to reduce object size on 64-
10892bit
10893platforms by packing data within the 64-bit alignment. This includes the
10894frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
10895instances corresponding to the namespace objects.
10896
10897Added two new strings for the predefined _OSI method: "Windows 2001.1
10898SP1"
10899and "Windows 2006".
10900
10901Split the allocation tracking mechanism out to a separate file, from
10902utalloc.c to uttrack.c. This mechanism appears to be only useful for
10903application-level code. Kernels may wish to not include uttrack.c in
10904distributions.
10905
10906Removed all remnants of the obsolete ACPI_REPORT_* macros and the
10907associated
10908code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
10909macros.)
10910
10911Code and Data Size: These are the sizes for the acpica.lib produced by
10912the
10913Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
10914ACPI
10915driver or OSPM code. The debug version of the code includes the debug
10916output
10917trace mechanism and has a much larger code and data size. Note that these
10918values will vary depending on the efficiency of the compiler and the
10919compiler options used during generation.
10920
10921  Previous Release:
10922    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
10923    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
10924  Current Release:
10925    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
10926    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
10927
10928
109292) iASL Compiler/Disassembler and Tools:
10930
10931Implemented an ANSI C version of the acpixtract utility. This version
10932will
10933automatically extract the DSDT and all SSDTs from the input acpidump text
10934file and dump the binary output to separate files. It can also display a
10935summary of the input file including the headers for each table found and
10936will extract any single ACPI table, with any signature. (See
10937source/tools/acpixtract)
10938
10939----------------------------------------
1094010 March 2006. Summary of changes for version 20060310:
10941
109421) ACPI CA Core Subsystem:
10943
10944Tagged all external interfaces to the subsystem with the new
10945ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
10946assist
10947kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
10948macro. The default definition is NULL.
10949
10950Added the ACPI_THREAD_ID type for the return value from
10951AcpiOsGetThreadId.
10952This allows the host to define this as necessary to simplify kernel
10953integration. The default definition is ACPI_NATIVE_UINT.
10954
10955Fixed two interpreter problems related to error processing, the deletion
10956of
10957objects, and placing invalid pointers onto the internal operator result
10958stack. BZ 6028, 6151 (Valery Podrezov)
10959
10960Increased the reference count threshold where a warning is emitted for
10961large
10962reference counts in order to eliminate unnecessary warnings on systems
10963with
10964large namespaces (especially 64-bit.) Increased the value from 0x400 to
109650x800.
10966
10967Due to universal disagreement as to the meaning of the 'c' in the
10968calloc()
10969function, the ACPI_MEM_CALLOCATE macro has been renamed to
10970ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
10971ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
10972ACPI_FREE.
10973
10974Code and Data Size: These are the sizes for the acpica.lib produced by
10975the
10976Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
10977ACPI
10978driver or OSPM code. The debug version of the code includes the debug
10979output
10980trace mechanism and has a much larger code and data size. Note that these
10981values will vary depending on the efficiency of the compiler and the
10982compiler options used during generation.
10983
10984  Previous Release:
10985    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
10986    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
10987  Current Release:
10988    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
10989    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
10990
10991
109922) iASL Compiler/Disassembler:
10993
10994Disassembler: implemented support for symbolic resource descriptor
10995references. If a CreateXxxxField operator references a fixed offset
10996within
10997a
10998resource descriptor, a name is assigned to the descriptor and the offset
10999is
11000translated to the appropriate resource tag and pathname. The addition of
11001this support brings the disassembled code very close to the original ASL
11002source code and helps eliminate run-time errors when the disassembled
11003code
11004is modified (and recompiled) in such a way as to invalidate the original
11005fixed offsets.
11006
11007Implemented support for a Descriptor Name as the last parameter to the
11008ASL
11009Register() macro. This parameter was inadvertently left out of the ACPI
11010specification, and will be added for ACPI 3.0b.
11011
11012Fixed a problem where the use of the "_OSI" string (versus the full path
11013"\_OSI") caused an internal compiler error. ("No back ptr to op")
11014
11015Fixed a problem with the error message that occurs when an invalid string
11016is
11017used for a _HID object (such as one with an embedded asterisk:
11018"*PNP010A".)
11019The correct message is now displayed.
11020
11021----------------------------------------
1102217 February 2006. Summary of changes for version 20060217:
11023
110241) ACPI CA Core Subsystem:
11025
11026Implemented a change to the IndexField support to match the behavior of
11027the
11028Microsoft AML interpreter. The value written to the Index register is now
11029a
11030byte offset, no longer an index based upon the width of the Data
11031register.
11032This should fix IndexField problems seen on some machines where the Data
11033register is not exactly one byte wide. The ACPI specification will be
11034clarified on this point.
11035
11036Fixed a problem where several resource descriptor types could overrun the
11037internal descriptor buffer due to size miscalculation: VendorShort,
11038VendorLong, and Interrupt. This was noticed on IA64 machines, but could
11039affect all platforms.
11040
11041Fixed a problem where individual resource descriptors were misaligned
11042within
11043the internal buffer, causing alignment faults on IA64 platforms.
11044
11045Code and Data Size: These are the sizes for the acpica.lib produced by
11046the
11047Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
11048ACPI
11049driver or OSPM code. The debug version of the code includes the debug
11050output
11051trace mechanism and has a much larger code and data size. Note that these
11052values will vary depending on the efficiency of the compiler and the
11053compiler options used during generation.
11054
11055  Previous Release:
11056    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
11057    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
11058  Current Release:
11059    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
11060    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
11061
11062
110632) iASL Compiler/Disassembler:
11064
11065Implemented support for new reserved names: _WDG and _WED are Microsoft
11066extensions for Windows Instrumentation Management, _TDL is a new ACPI-
11067defined method (Throttling Depth Limit.)
11068
11069Fixed a problem where a zero-length VendorShort or VendorLong resource
11070descriptor was incorrectly emitted as a descriptor of length one.
11071
11072----------------------------------------
1107310 February 2006. Summary of changes for version 20060210:
11074
110751) ACPI CA Core Subsystem:
11076
11077Removed a couple of extraneous ACPI_ERROR messages that appeared during
11078normal execution. These became apparent after the conversion from
11079ACPI_DEBUG_PRINT.
11080
11081Fixed a problem where the CreateField operator could hang if the BitIndex
11082or
11083NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
11084
11085Fixed a problem where a DeRefOf operation on a buffer object incorrectly
11086failed with an exception. This also fixes a couple of related RefOf and
11087DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
11088
11089Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
11090of
11091AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
11092BZ
110935480)
11094
11095Implemented a memory cleanup at the end of the execution of each
11096iteration
11097of an AML While() loop, preventing the accumulation of outstanding
11098objects.
11099(Valery Podrezov, BZ 5427)
11100
11101Eliminated a chunk of duplicate code in the object resolution code.
11102(Valery
11103Podrezov, BZ 5336)
11104
11105Fixed several warnings during the 64-bit code generation.
11106
11107The AcpiSrc source code conversion tool now inserts one line of
11108whitespace
11109after an if() statement that is followed immediately by a comment,
11110improving
11111readability of the Linux code.
11112
11113Code and Data Size: The current and previous library sizes for the core
11114subsystem are shown below. These are the code and data sizes for the
11115acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11116These
11117values do not include any ACPI driver or OSPM code. The debug version of
11118the
11119code includes the debug output trace mechanism and has a much larger code
11120and data size. Note that these values will vary depending on the
11121efficiency
11122of the compiler and the compiler options used during generation.
11123
11124  Previous Release:
11125    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
11126    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
11127  Current Release:
11128    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
11129    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
11130
11131
111322) iASL Compiler/Disassembler:
11133
11134Fixed a problem with the disassembly of a BankField operator with a
11135complex
11136expression for the BankValue parameter.
11137
11138----------------------------------------
1113927 January 2006. Summary of changes for version 20060127:
11140
111411) ACPI CA Core Subsystem:
11142
11143Implemented support in the Resource Manager to allow unresolved
11144namestring
11145references within resource package objects for the _PRT method. This
11146support
11147is in addition to the previously implemented unresolved reference support
11148within the AML parser. If the interpreter slack mode is enabled, these
11149unresolved references will be passed through to the caller as a NULL
11150package
11151entry.
11152
11153Implemented and deployed new macros and functions for error and warning
11154messages across the subsystem. These macros are simpler and generate less
11155code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
11156ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
11157macros remain defined to allow ACPI drivers time to migrate to the new
11158macros.
11159
11160Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
11161the
11162Acquire/Release Lock OSL interfaces.
11163
11164Fixed a problem where Alias ASL operators are sometimes not correctly
11165resolved, in both the interpreter and the iASL compiler.
11166
11167Fixed several problems with the implementation of the
11168ConcatenateResTemplate
11169ASL operator. As per the ACPI specification, zero length buffers are now
11170treated as a single EndTag. One-length buffers always cause a fatal
11171exception. Non-zero length buffers that do not end with a full 2-byte
11172EndTag
11173cause a fatal exception.
11174
11175Fixed a possible structure overwrite in the AcpiGetObjectInfo external
11176interface. (With assistance from Thomas Renninger)
11177
11178Code and Data Size: The current and previous library sizes for the core
11179subsystem are shown below. These are the code and data sizes for the
11180acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11181These
11182values do not include any ACPI driver or OSPM code. The debug version of
11183the
11184code includes the debug output trace mechanism and has a much larger code
11185and data size. Note that these values will vary depending on the
11186efficiency
11187of the compiler and the compiler options used during generation.
11188
11189  Previous Release:
11190    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
11191    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
11192  Current Release:
11193    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
11194    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
11195
11196
111972) iASL Compiler/Disassembler:
11198
11199Fixed an internal error that was generated for any forward references to
11200ASL
11201Alias objects.
11202
11203----------------------------------------
1120413 January 2006. Summary of changes for version 20060113:
11205
112061) ACPI CA Core Subsystem:
11207
11208Added 2006 copyright to all module headers and signons. This affects
11209virtually every file in the ACPICA core subsystem, iASL compiler, and the
11210utilities.
11211
11212Enhanced the ACPICA error reporting in order to simplify user migration
11213to
11214the non-debug version of ACPICA. Replaced all instances of the
11215ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
11216debug
11217levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
11218respectively. This preserves all error and warning messages in the non-
11219debug
11220version of the ACPICA code (this has been referred to as the "debug lite"
11221option.) Over 200 cases were converted to create a total of over 380
11222error/warning messages across the ACPICA code. This increases the code
11223and
11224data size of the default non-debug version of the code somewhat (about
1122513K),
11226but all error/warning reporting may be disabled if desired (and code
11227eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
11228configuration option. The size of the debug version of ACPICA remains
11229about
11230the same.
11231
11232Fixed a memory leak within the AML Debugger "Set" command. One object was
11233not properly deleted for every successful invocation of the command.
11234
11235Code and Data Size: The current and previous library sizes for the core
11236subsystem are shown below. These are the code and data sizes for the
11237acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11238These
11239values do not include any ACPI driver or OSPM code. The debug version of
11240the
11241code includes the debug output trace mechanism and has a much larger code
11242and data size. Note that these values will vary depending on the
11243efficiency
11244of the compiler and the compiler options used during generation.
11245
11246  Previous Release:
11247    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
11248    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
11249  Current Release:
11250    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
11251    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
11252
11253
112542) iASL Compiler/Disassembler:
11255
11256The compiler now officially supports the ACPI 3.0a specification that was
11257released on December 30, 2005. (Specification is available at
11258www.acpi.info)
11259
11260----------------------------------------
1126116 December 2005. Summary of changes for version 20051216:
11262
112631) ACPI CA Core Subsystem:
11264
11265Implemented optional support to allow unresolved names within ASL Package
11266objects. A null object is inserted in the package when a named reference
11267cannot be located in the current namespace. Enabled via the interpreter
11268slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
11269machines
11270that contain such code.
11271
11272Implemented an optimization to the initialization sequence that can
11273improve
11274boot time. During ACPI device initialization, the _STA method is now run
11275if
11276and only if the _INI method exists. The _STA method is used to determine
11277if
11278the device is present; An _INI can only be run if _STA returns present,
11279but
11280it is a waste of time to run the _STA method if the _INI does not exist.
11281(Prototype and assistance from Dong Wei)
11282
11283Implemented use of the C99 uintptr_t for the pointer casting macros if it
11284is
11285available in the current compiler. Otherwise, the default (void *) cast
11286is
11287used as before.
11288
11289Fixed some possible memory leaks found within the execution path of the
11290Break, Continue, If, and CreateField operators. (Valery Podrezov)
11291
11292Fixed a problem introduced in the 20051202 release where an exception is
11293generated during method execution if a control method attempts to declare
11294another method.
11295
11296Moved resource descriptor string constants that are used by both the AML
11297disassembler and AML debugger to the common utilities directory so that
11298these components are independent.
11299
11300Implemented support in the AcpiExec utility (-e switch) to globally
11301ignore
11302exceptions during control method execution (method is not aborted.)
11303
11304Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
11305generation.
11306
11307Code and Data Size: The current and previous library sizes for the core
11308subsystem are shown below. These are the code and data sizes for the
11309acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11310These
11311values do not include any ACPI driver or OSPM code. The debug version of
11312the
11313code includes the debug output trace mechanism and has a much larger code
11314and data size. Note that these values will vary depending on the
11315efficiency
11316of the compiler and the compiler options used during generation.
11317
11318  Previous Release:
11319    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11320    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
11321  Current Release:
11322    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
11323    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
11324
11325
113262) iASL Compiler/Disassembler:
11327
11328Fixed a problem where a CPU stack overflow fault could occur if a
11329recursive
11330method call was made from within a Return statement.
11331
11332----------------------------------------
1133302 December 2005. Summary of changes for version 20051202:
11334
113351) ACPI CA Core Subsystem:
11336
11337Modified the parsing of control methods to no longer create namespace
11338objects during the first pass of the parse. Objects are now created only
11339during the execute phase, at the moment the namespace creation operator
11340is
11341encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
11342This
11343should eliminate ALREADY_EXISTS exceptions seen on some machines where
11344reentrant control methods are protected by an AML mutex. The mutex will
11345now
11346correctly block multiple threads from attempting to create the same
11347object
11348more than once.
11349
11350Increased the number of available Owner Ids for namespace object tracking
11351from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
11352on
11353some machines with a large number of ACPI tables (either static or
11354dynamic).
11355
11356Fixed a problem with the AcpiExec utility where a fault could occur when
11357the
11358-b switch (batch mode) is used.
11359
11360Enhanced the namespace dump routine to output the owner ID for each
11361namespace object.
11362
11363Code and Data Size: The current and previous library sizes for the core
11364subsystem are shown below. These are the code and data sizes for the
11365acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11366These
11367values do not include any ACPI driver or OSPM code. The debug version of
11368the
11369code includes the debug output trace mechanism and has a much larger code
11370and data size. Note that these values will vary depending on the
11371efficiency
11372of the compiler and the compiler options used during generation.
11373
11374  Previous Release:
11375    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11376    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11377  Current Release:
11378    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11379    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
11380
11381
113822) iASL Compiler/Disassembler:
11383
11384Fixed a parse error during compilation of certain Switch/Case constructs.
11385To
11386simplify the parse, the grammar now allows for multiple Default
11387statements
11388and this error is now detected and flagged during the analysis phase.
11389
11390Disassembler: The disassembly now includes the contents of the original
11391table header within a comment at the start of the file. This includes the
11392name and version of the original ASL compiler.
11393
11394----------------------------------------
1139517 November 2005. Summary of changes for version 20051117:
11396
113971) ACPI CA Core Subsystem:
11398
11399Fixed a problem in the AML parser where the method thread count could be
11400decremented below zero if any errors occurred during the method parse
11401phase.
11402This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
11403machines.
11404This also fixed a related regression with the mechanism that detects and
11405corrects methods that cannot properly handle reentrancy (related to the
11406deployment of the new OwnerId mechanism.)
11407
11408Eliminated the pre-parsing of control methods (to detect errors) during
11409table load. Related to the problem above, this was causing unwind issues
11410if
11411any errors occurred during the parse, and it seemed to be overkill. A
11412table
11413load should not be aborted if there are problems with any single control
11414method, thus rendering this feature rather pointless.
11415
11416Fixed a problem with the new table-driven resource manager where an
11417internal
11418buffer overflow could occur for small resource templates.
11419
11420Implemented a new external interface, AcpiGetVendorResource. This
11421interface
11422will find and return a vendor-defined resource descriptor within a _CRS
11423or
11424_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
11425Helgaas.
11426
11427Removed the length limit (200) on string objects as per the upcoming ACPI
114283.0A specification. This affects the following areas of the interpreter:
114291)
11430any implicit conversion of a Buffer to a String, 2) a String object
11431result
11432of the ASL Concatentate operator, 3) the String object result of the ASL
11433ToString operator.
11434
11435Fixed a problem in the Windows OS interface layer (OSL) where a
11436WAIT_FOREVER
11437on a semaphore object would incorrectly timeout. This allows the
11438multithreading features of the AcpiExec utility to work properly under
11439Windows.
11440
11441Updated the Linux makefiles for the iASL compiler and AcpiExec to include
11442the recently added file named "utresrc.c".
11443
11444Code and Data Size: The current and previous library sizes for the core
11445subsystem are shown below. These are the code and data sizes for the
11446acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11447These
11448values do not include any ACPI driver or OSPM code. The debug version of
11449the
11450code includes the debug output trace mechanism and has a much larger code
11451and data size. Note that these values will vary depending on the
11452efficiency
11453of the compiler and the compiler options used during generation.
11454
11455  Previous Release:
11456    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
11457    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11458  Current Release:
11459    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11460    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11461
11462
114632) iASL Compiler/Disassembler:
11464
11465Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
11466specification. For the iASL compiler, this means that string literals
11467within
11468the source ASL can be of any length.
11469
11470Enhanced the listing output to dump the AML code for resource descriptors
11471immediately after the ASL code for each descriptor, instead of in a block
11472at
11473the end of the entire resource template.
11474
11475Enhanced the compiler debug output to dump the entire original parse tree
11476constructed during the parse phase, before any transforms are applied to
11477the
11478tree. The transformed tree is dumped also.
11479
11480----------------------------------------
1148102 November 2005. Summary of changes for version 20051102:
11482
114831) ACPI CA Core Subsystem:
11484
11485Modified the subsystem initialization sequence to improve GPE support.
11486The
11487GPE initialization has been split into two parts in order to defer
11488execution
11489of the _PRW methods (Power Resources for Wake) until after the hardware
11490is
11491fully initialized and the SCI handler is installed. This allows the _PRW
11492methods to access fields protected by the Global Lock. This will fix
11493systems
11494where a NO_GLOBAL_LOCK exception has been seen during initialization.
11495
11496Converted the ACPI internal object disassemble and display code within
11497the
11498AML debugger to fully table-driven operation, reducing code size and
11499increasing maintainability.
11500
11501Fixed a regression with the ConcatenateResTemplate() ASL operator
11502introduced
11503in the 20051021 release.
11504
11505Implemented support for "local" internal ACPI object types within the
11506debugger "Object" command and the AcpiWalkNamespace external interfaces.
11507These local types include RegionFields, BankFields, IndexFields, Alias,
11508and
11509reference objects.
11510
11511Moved common AML resource handling code into a new file, "utresrc.c".
11512This
11513code is shared by both the Resource Manager and the AML Debugger.
11514
11515Code and Data Size: The current and previous library sizes for the core
11516subsystem are shown below. These are the code and data sizes for the
11517acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11518These
11519values do not include any ACPI driver or OSPM code. The debug version of
11520the
11521code includes the debug output trace mechanism and has a much larger code
11522and data size. Note that these values will vary depending on the
11523efficiency
11524of the compiler and the compiler options used during generation.
11525
11526  Previous Release:
11527    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
11528    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
11529  Current Release:
11530    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
11531    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11532
11533
115342) iASL Compiler/Disassembler:
11535
11536Fixed a problem with very large initializer lists (more than 4000
11537elements)
11538for both Buffer and Package objects where the parse stack could overflow.
11539
11540Enhanced the pre-compile source code scan for non-ASCII characters to
11541ignore
11542characters within comment fields. The scan is now always performed and is
11543no
11544longer optional, detecting invalid characters within a source file
11545immediately rather than during the parse phase or later.
11546
11547Enhanced the ASL grammar definition to force early reductions on all
11548list-
11549style grammar elements so that the overall parse stack usage is greatly
11550reduced. This should improve performance and reduce the possibility of
11551parse
11552stack overflow.
11553
11554Eliminated all reduce/reduce conflicts in the iASL parser generation.
11555Also,
11556with the addition of a %expected statement, the compiler generates from
11557source with no warnings.
11558
11559Fixed a possible segment fault in the disassembler if the input filename
11560does not contain a "dot" extension (Thomas Renninger).
11561
11562----------------------------------------
1156321 October 2005. Summary of changes for version 20051021:
11564
115651) ACPI CA Core Subsystem:
11566
11567Implemented support for the EM64T and other x86-64 processors. This
11568essentially entails recognizing that these processors support non-aligned
11569memory transfers. Previously, all 64-bit processors were assumed to lack
11570hardware support for non-aligned transfers.
11571
11572Completed conversion of the Resource Manager to nearly full table-driven
11573operation. Specifically, the resource conversion code (convert AML to
11574internal format and the reverse) and the debug code to dump internal
11575resource descriptors are fully table-driven, reducing code and data size
11576and
11577improving maintainability.
11578
11579The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
11580word
11581on 64-bit processors instead of a fixed 32-bit word. (With assistance
11582from
11583Alexey Starikovskiy)
11584
11585Implemented support within the resource conversion code for the Type-
11586Specific byte within the various ACPI 3.0 *WordSpace macros.
11587
11588Fixed some issues within the resource conversion code for the type-
11589specific
11590flags for both Memory and I/O address resource descriptors. For Memory,
11591implemented support for the MTP and TTP flags. For I/O, split the TRS and
11592TTP flags into two separate fields.
11593
11594Code and Data Size: The current and previous library sizes for the core
11595subsystem are shown below. These are the code and data sizes for the
11596acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11597These
11598values do not include any ACPI driver or OSPM code. The debug version of
11599the
11600code includes the debug output trace mechanism and has a much larger code
11601and data size. Note that these values will vary depending on the
11602efficiency
11603of the compiler and the compiler options used during generation.
11604
11605  Previous Release:
11606    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
11607    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
11608  Current Release:
11609    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
11610    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
11611
11612
11613
116142) iASL Compiler/Disassembler:
11615
11616Relaxed a compiler restriction that disallowed a ResourceIndex byte if
11617the
11618corresponding ResourceSource string was not also present in a resource
11619descriptor declaration. This restriction caused problems with existing
11620AML/ASL code that includes the Index byte without the string. When such
11621AML
11622was disassembled, it could not be compiled without modification. Further,
11623the modified code created a resource template with a different size than
11624the
11625original, breaking code that used fixed offsets into the resource
11626template
11627buffer.
11628
11629Removed a recent feature of the disassembler to ignore a lone
11630ResourceIndex
11631byte. This byte is now emitted if present so that the exact AML can be
11632reproduced when the disassembled code is recompiled.
11633
11634Improved comments and text alignment for the resource descriptor code
11635emitted by the disassembler.
11636
11637Implemented disassembler support for the ACPI 3.0 AccessSize field within
11638a
11639Register() resource descriptor.
11640
11641----------------------------------------
1164230 September 2005. Summary of changes for version 20050930:
11643
116441) ACPI CA Core Subsystem:
11645
11646Completed a major overhaul of the Resource Manager code - specifically,
11647optimizations in the area of the AML/internal resource conversion code.
11648The
11649code has been optimized to simplify and eliminate duplicated code, CPU
11650stack
11651use has been decreased by optimizing function parameters and local
11652variables, and naming conventions across the manager have been
11653standardized
11654for clarity and ease of maintenance (this includes function, parameter,
11655variable, and struct/typedef names.) The update may force changes in some
11656driver code, depending on how resources are handled by the host OS.
11657
11658All Resource Manager dispatch and information tables have been moved to a
11659single location for clarity and ease of maintenance. One new file was
11660created, named "rsinfo.c".
11661
11662The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
11663guarantee that the argument is not evaluated twice, making them less
11664prone
11665to macro side-effects. However, since there exists the possibility of
11666additional stack use if a particular compiler cannot optimize them (such
11667as
11668in the debug generation case), the original macros are optionally
11669available.
11670Note that some invocations of the return_VALUE macro may now cause size
11671mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
11672to
11673eliminate these. (From Randy Dunlap)
11674
11675Implemented a new mechanism to enable debug tracing for individual
11676control
11677methods. A new external interface, AcpiDebugTrace, is provided to enable
11678this mechanism. The intent is to allow the host OS to easily enable and
11679disable tracing for problematic control methods. This interface can be
11680easily exposed to a user or debugger interface if desired. See the file
11681psxface.c for details.
11682
11683AcpiUtCallocate will now return a valid pointer if a length of zero is
11684specified - a length of one is used and a warning is issued. This matches
11685the behavior of AcpiUtAllocate.
11686
11687Code and Data Size: The current and previous library sizes for the core
11688subsystem are shown below. These are the code and data sizes for the
11689acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11690These
11691values do not include any ACPI driver or OSPM code. The debug version of
11692the
11693code includes the debug output trace mechanism and has a much larger code
11694and data size. Note that these values will vary depending on the
11695efficiency
11696of the compiler and the compiler options used during generation.
11697
11698  Previous Release:
11699    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
11700    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
11701  Current Release:
11702    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
11703    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
11704
11705
117062) iASL Compiler/Disassembler:
11707
11708A remark is issued if the effective compile-time length of a package or
11709buffer is zero. Previously, this was a warning.
11710
11711----------------------------------------
1171216 September 2005. Summary of changes for version 20050916:
11713
117141) ACPI CA Core Subsystem:
11715
11716Fixed a problem within the Resource Manager where support for the Generic
11717Register descriptor was not fully implemented. This descriptor is now
11718fully
11719recognized, parsed, disassembled, and displayed.
11720
11721Completely restructured the Resource Manager code to utilize table-driven
11722dispatch and lookup, eliminating many of the large switch() statements.
11723This
11724reduces overall subsystem code size and code complexity. Affects the
11725resource parsing and construction, disassembly, and debug dump output.
11726
11727Cleaned up and restructured the debug dump output for all resource
11728descriptors. Improved readability of the output and reduced code size.
11729
11730Fixed a problem where changes to internal data structures caused the
11731optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
11732
11733Code and Data Size: The current and previous library sizes for the core
11734subsystem are shown below. These are the code and data sizes for the
11735acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11736These
11737values do not include any ACPI driver or OSPM code. The debug version of
11738the
11739code includes the debug output trace mechanism and has a much larger code
11740and data size. Note that these values will vary depending on the
11741efficiency
11742of the compiler and the compiler options used during generation.
11743
11744  Previous Release:
11745    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
11746    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
11747  Current Release:
11748    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
11749    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
11750
11751
117522) iASL Compiler/Disassembler:
11753
11754Updated the disassembler to automatically insert an EndDependentFn()
11755macro
11756into the ASL stream if this macro is missing in the original AML code,
11757simplifying compilation of the resulting ASL module.
11758
11759Fixed a problem in the disassembler where a disassembled ResourceSource
11760string (within a large resource descriptor) was not surrounded by quotes
11761and
11762not followed by a comma, causing errors when the resulting ASL module was
11763compiled. Also, escape sequences within a ResourceSource string are now
11764handled correctly (especially "\\")
11765
11766----------------------------------------
1176702 September 2005. Summary of changes for version 20050902:
11768
117691) ACPI CA Core Subsystem:
11770
11771Fixed a problem with the internal Owner ID allocation and deallocation
11772mechanisms for control method execution and recursive method invocation.
11773This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
11774messages seen on some systems. Recursive method invocation depth is
11775currently limited to 255. (Alexey Starikovskiy)
11776
11777Completely eliminated all vestiges of support for the "module-level
11778executable code" until this support is fully implemented and debugged.
11779This
11780should eliminate the NO_RETURN_VALUE exceptions seen during table load on
11781some systems that invoke this support.
11782
11783Fixed a problem within the resource manager code where the transaction
11784flags
11785for a 64-bit address descriptor were handled incorrectly in the type-
11786specific flag byte.
11787
11788Consolidated duplicate code within the address descriptor resource
11789manager
11790code, reducing overall subsystem code size.
11791
11792Fixed a fault when using the AML debugger "disassemble" command to
11793disassemble individual control methods.
11794
11795Removed references to the "release_current" directory within the Unix
11796release package.
11797
11798Code and Data Size: The current and previous core subsystem library sizes
11799are shown below. These are the code and data sizes for the acpica.lib
11800produced by the Microsoft Visual C++ 6.0 compiler. These values do not
11801include any ACPI driver or OSPM code. The debug version of the code
11802includes
11803the debug output trace mechanism and has a much larger code and data
11804size.
11805Note that these values will vary depending on the efficiency of the
11806compiler
11807and the compiler options used during generation.
11808
11809  Previous Release:
11810    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11811    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
11812  Current Release:
11813    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
11814    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
11815
11816
118172) iASL Compiler/Disassembler:
11818
11819Implemented an error check for illegal duplicate values in the interrupt
11820and
11821dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
11822Interrupt().
11823
11824Implemented error checking for the Irq() and IrqNoFlags() macros to
11825detect
11826too many values in the interrupt list (16 max) and invalid values in the
11827list (range 0 - 15)
11828
11829The maximum length string literal within an ASL file is now restricted to
11830200 characters as per the ACPI specification.
11831
11832Fixed a fault when using the -ln option (generate namespace listing).
11833
11834Implemented an error check to determine if a DescriptorName within a
11835resource descriptor has already been used within the current scope.
11836
11837----------------------------------------
1183815 August 2005.  Summary of changes for version 20050815:
11839
118401) ACPI CA Core Subsystem:
11841
11842Implemented a full bytewise compare to determine if a table load request
11843is
11844attempting to load a duplicate table. The compare is performed if the
11845table
11846signatures and table lengths match. This will allow different tables with
11847the same OEM Table ID and revision to be loaded - probably against the
11848ACPI
11849specification, but discovered in the field nonetheless.
11850
11851Added the changes.txt logfile to each of the zipped release packages.
11852
11853Code and Data Size: Current and previous core subsystem library sizes are
11854shown below. These are the code and data sizes for the acpica.lib
11855produced
11856by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11857any ACPI driver or OSPM code. The debug version of the code includes the
11858debug output trace mechanism and has a much larger code and data size.
11859Note
11860that these values will vary depending on the efficiency of the compiler
11861and
11862the compiler options used during generation.
11863
11864  Previous Release:
11865    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11866    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
11867  Current Release:
11868    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11869    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
11870
11871
118722) iASL Compiler/Disassembler:
11873
11874Fixed a problem where incorrect AML code could be generated for Package
11875objects if optimization is disabled (via the -oa switch).
11876
11877Fixed a problem with where incorrect AML code is generated for variable-
11878length packages when the package length is not specified and the number
11879of
11880initializer values is greater than 255.
11881
11882
11883----------------------------------------
1188429 July 2005.  Summary of changes for version 20050729:
11885
118861) ACPI CA Core Subsystem:
11887
11888Implemented support to ignore an attempt to install/load a particular
11889ACPI
11890table more than once. Apparently there exists BIOS code that repeatedly
11891attempts to load the same SSDT upon certain events. With assistance from
11892Venkatesh Pallipadi.
11893
11894Restructured the main interface to the AML parser in order to correctly
11895handle all exceptional conditions. This will prevent leakage of the
11896OwnerId
11897resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
11898some
11899machines. With assistance from Alexey Starikovskiy.
11900
11901Support for "module level code" has been disabled in this version due to
11902a
11903number of issues that have appeared on various machines. The support can
11904be
11905enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
11906compilation. When the issues are fully resolved, the code will be enabled
11907by
11908default again.
11909
11910Modified the internal functions for debug print support to define the
11911FunctionName parameter as a (const char *) for compatibility with
11912compiler
11913built-in macros such as __FUNCTION__, etc.
11914
11915Linted the entire ACPICA source tree for both 32-bit and 64-bit.
11916
11917Implemented support to display an object count summary for the AML
11918Debugger
11919commands Object and Methods.
11920
11921Code and Data Size: Current and previous core subsystem library sizes are
11922shown below. These are the code and data sizes for the acpica.lib
11923produced
11924by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11925any ACPI driver or OSPM code. The debug version of the code includes the
11926debug output trace mechanism and has a much larger code and data size.
11927Note
11928that these values will vary depending on the efficiency of the compiler
11929and
11930the compiler options used during generation.
11931
11932  Previous Release:
11933    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
11934    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
11935  Current Release:
11936    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11937    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
11938
11939
119402) iASL Compiler/Disassembler:
11941
11942Fixed a regression that appeared in the 20050708 version of the compiler
11943where an error message was inadvertently emitted for invocations of the
11944_OSI
11945reserved control method.
11946
11947----------------------------------------
1194808 July 2005.  Summary of changes for version 20050708:
11949
119501) ACPI CA Core Subsystem:
11951
11952The use of the CPU stack in the debug version of the subsystem has been
11953considerably reduced. Previously, a debug structure was declared in every
11954function that used the debug macros. This structure has been removed in
11955favor of declaring the individual elements as parameters to the debug
11956functions. This reduces the cumulative stack use during nested execution
11957of
11958ACPI function calls at the cost of a small increase in the code size of
11959the
11960debug version of the subsystem. With assistance from Alexey Starikovskiy
11961and
11962Len Brown.
11963
11964Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
11965headers to define a macro that will return the current function name at
11966runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
11967by
11968the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
11969compiler-dependent header, the function name is saved on the CPU stack
11970(one
11971pointer per function.) This mechanism is used because apparently there
11972exists no standard ANSI-C defined macro that that returns the function
11973name.
11974
11975Redesigned and reimplemented the "Owner ID" mechanism used to track
11976namespace objects created/deleted by ACPI tables and control method
11977execution. A bitmap is now used to allocate and free the IDs, thus
11978solving
11979the wraparound problem present in the previous implementation. The size
11980of
11981the namespace node descriptor was reduced by 2 bytes as a result (Alexey
11982Starikovskiy).
11983
11984Removed the UINT32_BIT and UINT16_BIT types that were used for the
11985bitfield
11986flag definitions within the headers for the predefined ACPI tables. These
11987have been replaced by UINT8_BIT in order to increase the code portability
11988of
11989the subsystem. If the use of UINT8 remains a problem, we may be forced to
11990eliminate bitfields entirely because of a lack of portability.
11991
11992Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
11993This
11994is a frequently used function and this improvement increases the
11995performance
11996of the entire subsystem (Alexey Starikovskiy).
11997
11998Fixed several possible memory leaks and the inverse - premature object
11999deletion (Alexey Starikovskiy).
12000
12001Code and Data Size: Current and previous core subsystem library sizes are
12002shown below. These are the code and data sizes for the acpica.lib
12003produced
12004by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12005any ACPI driver or OSPM code. The debug version of the code includes the
12006debug output trace mechanism and has a much larger code and data size.
12007Note
12008that these values will vary depending on the efficiency of the compiler
12009and
12010the compiler options used during generation.
12011
12012  Previous Release:
12013    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
12014    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
12015  Current Release:
12016    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
12017    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
12018
12019----------------------------------------
1202024 June 2005.  Summary of changes for version 20050624:
12021
120221) ACPI CA Core Subsystem:
12023
12024Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
12025the host-defined cache object. This allows the OSL implementation to
12026define
12027and type this object in any manner desired, simplifying the OSL
12028implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
12029Linux, and should be defined in the OS-specific header file for other
12030operating systems as required.
12031
12032Changed the interface to AcpiOsAcquireObject to directly return the
12033requested object as the function return (instead of ACPI_STATUS.) This
12034change was made for performance reasons, since this is the purpose of the
12035interface in the first place. AcpiOsAcquireObject is now similar to the
12036AcpiOsAllocate interface.
12037
12038Implemented a new AML debugger command named Businfo. This command
12039displays
12040information about all devices that have an associate _PRT object. The
12041_ADR,
12042_HID, _UID, and _CID are displayed for these devices.
12043
12044Modified the initialization sequence in AcpiInitializeSubsystem to call
12045the
12046OSL interface AcpiOslInitialize first, before any local initialization.
12047This
12048change was required because the global initialization now calls OSL
12049interfaces.
12050
12051Enhanced the Dump command to display the entire contents of Package
12052objects
12053(including all sub-objects and their values.)
12054
12055Restructured the code base to split some files because of size and/or
12056because the code logically belonged in a separate file. New files are
12057listed
12058below. All makefiles and project files included in the ACPI CA release
12059have
12060been updated.
12061    utilities/utcache.c           /* Local cache interfaces */
12062    utilities/utmutex.c           /* Local mutex support */
12063    utilities/utstate.c           /* State object support */
12064    interpreter/parser/psloop.c   /* Main AML parse loop */
12065
12066Code and Data Size: Current and previous core subsystem library sizes are
12067shown below. These are the code and data sizes for the acpica.lib
12068produced
12069by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12070any ACPI driver or OSPM code. The debug version of the code includes the
12071debug output trace mechanism and has a much larger code and data size.
12072Note
12073that these values will vary depending on the efficiency of the compiler
12074and
12075the compiler options used during generation.
12076
12077  Previous Release:
12078    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
12079    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
12080  Current Release:
12081    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
12082    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
12083
12084
120852) iASL Compiler/Disassembler:
12086
12087Fixed a regression introduced in version 20050513 where the use of a
12088Package
12089object within a Case() statement caused a compile time exception. The
12090original behavior has been restored (a Match() operator is emitted.)
12091
12092----------------------------------------
1209317 June 2005.  Summary of changes for version 20050617:
12094
120951) ACPI CA Core Subsystem:
12096
12097Moved the object cache operations into the OS interface layer (OSL) to
12098allow
12099the host OS to handle these operations if desired (for example, the Linux
12100OSL will invoke the slab allocator). This support is optional; the
12101compile
12102time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
12103cache
12104code in the ACPI CA core. The new OSL interfaces are shown below. See
12105utalloc.c for an example implementation, and acpiosxf.h for the exact
12106interface definitions. With assistance from Alexey Starikovskiy.
12107    AcpiOsCreateCache
12108    AcpiOsDeleteCache
12109    AcpiOsPurgeCache
12110    AcpiOsAcquireObject
12111    AcpiOsReleaseObject
12112
12113Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
12114return
12115and restore a flags parameter. This fits better with many OS lock models.
12116Note: the current execution state (interrupt handler or not) is no longer
12117passed to these interfaces. If necessary, the OSL must determine this
12118state
12119by itself, a simple and fast operation. With assistance from Alexey
12120Starikovskiy.
12121
12122Fixed a problem in the ACPI table handling where a valid XSDT was assumed
12123present if the revision of the RSDP was 2 or greater. According to the
12124ACPI
12125specification, the XSDT is optional in all cases, and the table manager
12126therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
12127Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
12128contain
12129only the RSDT.
12130
12131Fixed an interpreter problem with the Mid() operator in the case of an
12132input
12133string where the resulting output string is of zero length. It now
12134correctly
12135returns a valid, null terminated string object instead of a string object
12136with a null pointer.
12137
12138Fixed a problem with the control method argument handling to allow a
12139store
12140to an Arg object that already contains an object of type Device. The
12141Device
12142object is now correctly overwritten. Previously, an error was returned.
12143
12144
12145Enhanced the debugger Find command to emit object values in addition to
12146the
12147found object pathnames. The output format is the same as the dump
12148namespace
12149command.
12150
12151Enhanced the debugger Set command. It now has the ability to set the
12152value
12153of any Named integer object in the namespace (Previously, only method
12154locals
12155and args could be set.)
12156
12157Code and Data Size: Current and previous core subsystem library sizes are
12158shown below. These are the code and data sizes for the acpica.lib
12159produced
12160by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12161any ACPI driver or OSPM code. The debug version of the code includes the
12162debug output trace mechanism and has a much larger code and data size.
12163Note
12164that these values will vary depending on the efficiency of the compiler
12165and
12166the compiler options used during generation.
12167
12168  Previous Release:
12169    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
12170    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
12171  Current Release:
12172    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
12173    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
12174
12175
121762) iASL Compiler/Disassembler:
12177
12178Fixed a regression in the disassembler where if/else/while constructs
12179were
12180output incorrectly. This problem was introduced in the previous release
12181(20050526). This problem also affected the single-step disassembly in the
12182debugger.
12183
12184Fixed a problem where compiling the reserved _OSI method would randomly
12185(but
12186rarely) produce compile errors.
12187
12188Enhanced the disassembler to emit compilable code in the face of
12189incorrect
12190AML resource descriptors. If the optional ResourceSourceIndex is present,
12191but the ResourceSource is not, do not emit the ResourceSourceIndex in the
12192disassembly. Otherwise, the resulting code cannot be compiled without
12193errors.
12194
12195----------------------------------------
1219626 May 2005.  Summary of changes for version 20050526:
12197
121981) ACPI CA Core Subsystem:
12199
12200Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
12201the module level (not within a control method.) These opcodes are
12202executed
12203exactly once at the time the table is loaded. This type of code was legal
12204up
12205until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
12206in
12207order to provide backwards compatibility with earlier BIOS
12208implementations.
12209This eliminates the "Encountered executable code at module level" warning
12210that was previously generated upon detection of such code.
12211
12212Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
12213inadvertently be generated during the lookup of namespace objects in the
12214second pass parse of ACPI tables and control methods. It appears that
12215this
12216problem could occur during the resolution of forward references to
12217namespace
12218objects.
12219
12220Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
12221corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
12222allows the deadlock detection debug code to be compiled out in the normal
12223case, improving mutex performance (and overall subsystem performance)
12224considerably.
12225
12226Implemented a handful of miscellaneous fixes for possible memory leaks on
12227error conditions and error handling control paths. These fixes were
12228suggested by FreeBSD and the Coverity Prevent source code analysis tool.
12229
12230Added a check for a null RSDT pointer in AcpiGetFirmwareTable
12231(tbxfroot.c)
12232to prevent a fault in this error case.
12233
12234Code and Data Size: Current and previous core subsystem library sizes are
12235shown below. These are the code and data sizes for the acpica.lib
12236produced
12237by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12238any ACPI driver or OSPM code. The debug version of the code includes the
12239debug output trace mechanism and has a much larger code and data size.
12240Note
12241that these values will vary depending on the efficiency of the compiler
12242and
12243the compiler options used during generation.
12244
12245  Previous Release:
12246    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12247    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12248  Current Release:
12249    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
12250    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
12251
12252
122532) iASL Compiler/Disassembler:
12254
12255Implemented support to allow Type 1 and Type 2 ASL operators to appear at
12256the module level (not within a control method.) These operators will be
12257executed once at the time the table is loaded. This type of code was
12258legal
12259up until the release of ACPI 2.0B (2002) and is now supported by the iASL
12260compiler in order to provide backwards compatibility with earlier BIOS
12261ASL
12262code.
12263
12264The ACPI integer width (specified via the table revision ID or the -r
12265override, 32 or 64 bits) is now used internally during compile-time
12266constant
12267folding to ensure that constants are truncated to 32 bits if necessary.
12268Previously, the revision ID value was only emitted in the AML table
12269header.
12270
12271An error message is now generated for the Mutex and Method operators if
12272the
12273SyncLevel parameter is outside the legal range of 0 through 15.
12274
12275Fixed a problem with the Method operator ParameterTypes list handling
12276(ACPI
122773.0). Previously, more than 2 types or 2 arguments generated a syntax
12278error.
12279The actual underlying implementation of method argument typechecking is
12280still under development, however.
12281
12282----------------------------------------
1228313 May 2005.  Summary of changes for version 20050513:
12284
122851) ACPI CA Core Subsystem:
12286
12287Implemented support for PCI Express root bridges -- added support for
12288device
12289PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
12290
12291The interpreter now automatically truncates incoming 64-bit constants to
1229232
12293bits if currently executing out of a 32-bit ACPI table (Revision < 2).
12294This
12295also affects the iASL compiler constant folding. (Note: as per below, the
12296iASL compiler no longer allows 64-bit constants within 32-bit tables.)
12297
12298Fixed a problem where string and buffer objects with "static" pointers
12299(pointers to initialization data within an ACPI table) were not handled
12300consistently. The internal object copy operation now always copies the
12301data
12302to a newly allocated buffer, regardless of whether the source object is
12303static or not.
12304
12305Fixed a problem with the FromBCD operator where an implicit result
12306conversion was improperly performed while storing the result to the
12307target
12308operand. Since this is an "explicit conversion" operator, the implicit
12309conversion should never be performed on the output.
12310
12311Fixed a problem with the CopyObject operator where a copy to an existing
12312named object did not always completely overwrite the existing object
12313stored
12314at name. Specifically, a buffer-to-buffer copy did not delete the
12315existing
12316buffer.
12317
12318Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
12319and
12320structs for consistency.
12321
12322Code and Data Size: Current and previous core subsystem library sizes are
12323shown below. These are the code and data sizes for the acpica.lib
12324produced
12325by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12326any ACPI driver or OSPM code. The debug version of the code includes the
12327debug output trace mechanism and has a much larger code and data size.
12328Note
12329that these values will vary depending on the efficiency of the compiler
12330and
12331the compiler options used during generation.
12332
12333  Previous Release:
12334    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12335    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12336  Current Release: (Same sizes)
12337    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12338    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12339
12340
123412) iASL Compiler/Disassembler:
12342
12343The compiler now emits a warning if an attempt is made to generate a 64-
12344bit
12345integer constant from within a 32-bit ACPI table (Revision < 2). The
12346integer
12347is truncated to 32 bits.
12348
12349Fixed a problem with large package objects: if the static length of the
12350package is greater than 255, the "variable length package" opcode is
12351emitted. Previously, this caused an error. This requires an update to the
12352ACPI spec, since it currently (incorrectly) states that packages larger
12353than
12354255 elements are not allowed.
12355
12356The disassembler now correctly handles variable length packages and
12357packages
12358larger than 255 elements.
12359
12360----------------------------------------
1236108 April 2005.  Summary of changes for version 20050408:
12362
123631) ACPI CA Core Subsystem:
12364
12365Fixed three cases in the interpreter where an "index" argument to an ASL
12366function was still (internally) 32 bits instead of the required 64 bits.
12367This was the Index argument to the Index, Mid, and Match operators.
12368
12369The "strupr" function is now permanently local (AcpiUtStrupr), since this
12370is
12371not a POSIX-defined function and not present in most kernel-level C
12372libraries. All references to the C library strupr function have been
12373removed
12374from the headers.
12375
12376Completed the deployment of static functions/prototypes. All prototypes
12377with
12378the static attribute have been moved from the headers to the owning C
12379file.
12380
12381Implemented an extract option (-e) for the AcpiBin utility (AML binary
12382utility). This option allows the utility to extract individual ACPI
12383tables
12384from the output of AcpiDmp. It provides the same functionality of the
12385acpixtract.pl perl script without the worry of setting the correct perl
12386options. AcpiBin runs on Windows and has not yet been generated/validated
12387in
12388the Linux/Unix environment (but should be soon).
12389
12390Updated and fixed the table dump option for AcpiBin (-d). This option
12391converts a single ACPI table to a hex/ascii file, similar to the output
12392of
12393AcpiDmp.
12394
12395Code and Data Size: Current and previous core subsystem library sizes are
12396shown below. These are the code and data sizes for the acpica.lib
12397produced
12398by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12399any ACPI driver or OSPM code. The debug version of the code includes the
12400debug output trace mechanism and has a much larger code and data size.
12401Note
12402that these values will vary depending on the efficiency of the compiler
12403and
12404the compiler options used during generation.
12405
12406  Previous Release:
12407    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
12408    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
12409  Current Release:
12410    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12411    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12412
12413
124142) iASL Compiler/Disassembler:
12415
12416Disassembler fix: Added a check to ensure that the table length found in
12417the
12418ACPI table header within the input file is not longer than the actual
12419input
12420file size. This indicates some kind of file or table corruption.
12421
12422----------------------------------------
1242329 March 2005.  Summary of changes for version 20050329:
12424
124251) ACPI CA Core Subsystem:
12426
12427An error is now generated if an attempt is made to create a Buffer Field
12428of
12429length zero (A CreateField with a length operand of zero.)
12430
12431The interpreter now issues a warning whenever executable code at the
12432module
12433level is detected during ACPI table load. This will give some idea of the
12434prevalence of this type of code.
12435
12436Implemented support for references to named objects (other than control
12437methods) within package objects.
12438
12439Enhanced package object output for the debug object. Package objects are
12440now
12441completely dumped, showing all elements.
12442
12443Enhanced miscellaneous object output for the debug object. Any object can
12444now be written to the debug object (for example, a device object can be
12445written, and the type of the object will be displayed.)
12446
12447The "static" qualifier has been added to all local functions across both
12448the
12449core subsystem and the iASL compiler.
12450
12451The number of "long" lines (> 80 chars) within the source has been
12452significantly reduced, by about 1/3.
12453
12454Cleaned up all header files to ensure that all CA/iASL functions are
12455prototyped (even static functions) and the formatting is consistent.
12456
12457Two new header files have been added, acopcode.h and acnames.h.
12458
12459Removed several obsolete functions that were no longer used.
12460
12461Code and Data Size: Current and previous core subsystem library sizes are
12462shown below. These are the code and data sizes for the acpica.lib
12463produced
12464by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12465any ACPI driver or OSPM code. The debug version of the code includes the
12466debug output trace mechanism and has a much larger code and data size.
12467Note
12468that these values will vary depending on the efficiency of the compiler
12469and
12470the compiler options used during generation.
12471
12472  Previous Release:
12473    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12474    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
12475  Current Release:
12476    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
12477    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
12478
12479
12480
124812) iASL Compiler/Disassembler:
12482
12483Fixed a problem with the resource descriptor generation/support. For the
12484ResourceSourceIndex and the ResourceSource fields, both must be present,
12485or
12486both must be not present - can't have one without the other.
12487
12488The compiler now returns non-zero from the main procedure if any errors
12489have
12490occurred during the compilation.
12491
12492
12493----------------------------------------
1249409 March 2005.  Summary of changes for version 20050309:
12495
124961) ACPI CA Core Subsystem:
12497
12498The string-to-buffer implicit conversion code has been modified again
12499after
12500a change to the ACPI specification.  In order to match the behavior of
12501the
12502other major ACPI implementation, the target buffer is no longer truncated
12503if
12504the source string is smaller than an existing target buffer. This change
12505requires an update to the ACPI spec, and should eliminate the recent
12506AE_AML_BUFFER_LIMIT issues.
12507
12508The "implicit return" support was rewritten to a new algorithm that
12509solves
12510the general case. Rather than attempt to determine when a method is about
12511to
12512exit, the result of every ASL operator is saved momentarily until the
12513very
12514next ASL operator is executed. Therefore, no matter how the method exits,
12515there will always be a saved implicit return value. This feature is only
12516enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
12517eliminate
12518AE_AML_NO_RETURN_VALUE errors when enabled.
12519
12520Implemented implicit conversion support for the predicate (operand) of
12521the
12522If, Else, and While operators. String and Buffer arguments are
12523automatically
12524converted to Integers.
12525
12526Changed the string-to-integer conversion behavior to match the new ACPI
12527errata: "If no integer object exists, a new integer is created. The ASCII
12528string is interpreted as a hexadecimal constant. Each string character is
12529interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
12530with the first character as the most significant digit, and ending with
12531the
12532first non-hexadecimal character or end-of-string." This means that the
12533first
12534non-hex character terminates the conversion and this is the code that was
12535changed.
12536
12537Fixed a problem where the ObjectType operator would fail (fault) when
12538used
12539on an Index of a Package which pointed to a null package element. The
12540operator now properly returns zero (Uninitialized) in this case.
12541
12542Fixed a problem where the While operator used excessive memory by not
12543properly popping the result stack during execution. There was no memory
12544leak
12545after execution, however. (Code provided by Valery Podrezov.)
12546
12547Fixed a problem where references to control methods within Package
12548objects
12549caused the method to be invoked, instead of producing a reference object
12550pointing to the method.
12551
12552Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
12553to
12554improve performance and reduce code size. (Code provided by Alexey
12555Starikovskiy.)
12556
12557Code and Data Size: Current and previous core subsystem library sizes are
12558shown below. These are the code and data sizes for the acpica.lib
12559produced
12560by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12561any ACPI driver or OSPM code. The debug version of the code includes the
12562debug output trace mechanism and has a much larger code and data size.
12563Note
12564that these values will vary depending on the efficiency of the compiler
12565and
12566the compiler options used during generation.
12567
12568  Previous Release:
12569    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12570    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
12571  Current Release:
12572    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12573    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
12574
12575
125762) iASL Compiler/Disassembler:
12577
12578Fixed a problem with the Return operator with no arguments. Since the AML
12579grammar for the byte encoding requires an operand for the Return opcode,
12580the
12581compiler now emits a Return(Zero) for this case.  An ACPI specification
12582update has been written for this case.
12583
12584For tables other than the DSDT, namepath optimization is automatically
12585disabled. This is because SSDTs can be loaded anywhere in the namespace,
12586the
12587compiler has no knowledge of where, and thus cannot optimize namepaths.
12588
12589Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
12590inadvertently omitted from the ACPI specification, and will require an
12591update to the spec.
12592
12593The source file scan for ASCII characters is now optional (-a). This
12594change
12595was made because some vendors place non-ascii characters within comments.
12596However, the scan is simply a brute-force byte compare to ensure all
12597characters in the file are in the range 0x00 to 0x7F.
12598
12599Fixed a problem with the CondRefOf operator where the compiler was
12600inappropriately checking for the existence of the target. Since the point
12601of
12602the operator is to check for the existence of the target at run-time, the
12603compiler no longer checks for the target existence.
12604
12605Fixed a problem where errors generated from the internal AML interpreter
12606during constant folding were not handled properly, causing a fault.
12607
12608Fixed a problem with overly aggressive range checking for the Stall
12609operator. The valid range (max 255) is now only checked if the operand is
12610of
12611type Integer. All other operand types cannot be statically checked.
12612
12613Fixed a problem where control method references within the RefOf,
12614DeRefOf,
12615and ObjectType operators were not treated properly. They are now treated
12616as
12617actual references, not method invocations.
12618
12619Fixed and enhanced the "list namespace" option (-ln). This option was
12620broken
12621a number of releases ago.
12622
12623Improved error handling for the Field, IndexField, and BankField
12624operators.
12625The compiler now cleanly reports and recovers from errors in the field
12626component (FieldUnit) list.
12627
12628Fixed a disassembler problem where the optional ResourceDescriptor fields
12629TRS and TTP were not always handled correctly.
12630
12631Disassembler - Comments in output now use "//" instead of "/*"
12632
12633----------------------------------------
1263428 February 2005.  Summary of changes for version 20050228:
12635
126361) ACPI CA Core Subsystem:
12637
12638Fixed a problem where the result of an Index() operator (an object
12639reference) must increment the reference count on the target object for
12640the
12641life of the object reference.
12642
12643Implemented AML Interpreter and Debugger support for the new ACPI 3.0
12644Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
12645WordSpace
12646resource descriptors.
12647
12648Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
12649Space Descriptor" string, indicating interpreter support for the
12650descriptors
12651above.
12652
12653Implemented header support for the new ACPI 3.0 FADT flag bits.
12654
12655Implemented header support for the new ACPI 3.0 PCI Express bits for the
12656PM1
12657status/enable registers.
12658
12659Updated header support for the MADT processor local Apic struct and MADT
12660platform interrupt source struct for new ACPI 3.0 fields.
12661
12662Implemented header support for the SRAT and SLIT ACPI tables.
12663
12664Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
12665flag
12666at runtime.
12667
12668Code and Data Size: Current and previous core subsystem library sizes are
12669shown below. These are the code and data sizes for the acpica.lib
12670produced
12671by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12672any ACPI driver or OSPM code. The debug version of the code includes the
12673debug output trace mechanism and has a much larger code and data size.
12674Note
12675that these values will vary depending on the efficiency of the compiler
12676and
12677the compiler options used during generation.
12678
12679  Previous Release:
12680    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
12681    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
12682  Current Release:
12683    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12684    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
12685
12686
126872) iASL Compiler/Disassembler:
12688
12689Fixed a problem with the internal 64-bit String-to-integer conversion
12690with
12691strings less than two characters long.
12692
12693Fixed a problem with constant folding where the result of the Index()
12694operator can not be considered a constant. This means that Index() cannot
12695be
12696a type3 opcode and this will require an update to the ACPI specification.
12697
12698Disassembler: Implemented support for the TTP, MTP, and TRS resource
12699descriptor fields. These fields were inadvertently ignored and not output
12700in
12701the disassembly of the resource descriptor.
12702
12703
12704 ----------------------------------------
1270511 February 2005.  Summary of changes for version 20050211:
12706
127071) ACPI CA Core Subsystem:
12708
12709Implemented ACPI 3.0 support for implicit conversion within the Match()
12710operator. MatchObjects can now be of type integer, buffer, or string
12711instead
12712of just type integer.  Package elements are implicitly converted to the
12713type
12714of the MatchObject. This change aligns the behavior of Match() with the
12715behavior of the other logical operators (LLess(), etc.) It also requires
12716an
12717errata change to the ACPI specification as this support was intended for
12718ACPI 3.0, but was inadvertently omitted.
12719
12720Fixed a problem with the internal implicit "to buffer" conversion.
12721Strings
12722that are converted to buffers will cause buffer truncation if the string
12723is
12724smaller than the target buffer. Integers that are converted to buffers
12725will
12726not cause buffer truncation, only zero extension (both as per the ACPI
12727spec.) The problem was introduced when code was added to truncate the
12728buffer, but this should not be performed in all cases, only the string
12729case.
12730
12731Fixed a problem with the Buffer and Package operators where the
12732interpreter
12733would get confused if two such operators were used as operands to an ASL
12734operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
12735stack was not being popped after the execution of these operators,
12736resulting
12737in an AE_NO_RETURN_VALUE exception.
12738
12739Fixed a problem with constructs of the form Store(Index(...),...). The
12740reference object returned from Index was inadvertently resolved to an
12741actual
12742value. This problem was introduced in version 20050114 when the behavior
12743of
12744Store() was modified to restrict the object types that can be used as the
12745source operand (to match the ACPI specification.)
12746
12747Reduced excessive stack use within the AcpiGetObjectInfo procedure.
12748
12749Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
12750
12751Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
12752
12753Code and Data Size: Current and previous core subsystem library sizes are
12754shown below. These are the code and data sizes for the acpica.lib
12755produced
12756by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12757any ACPI driver or OSPM code. The debug version of the code includes the
12758debug output trace mechanism and has a much larger code and data size.
12759Note
12760that these values will vary depending on the efficiency of the compiler
12761and
12762the compiler options used during generation.
12763
12764  Previous Release:
12765    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
12766    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
12767  Current Release:
12768    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
12769    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
12770
12771
127722) iASL Compiler/Disassembler:
12773
12774Fixed a code generation problem in the constant folding optimization code
12775where incorrect code was generated if a constant was reduced to a buffer
12776object (i.e., a reduced type 5 opcode.)
12777
12778Fixed a typechecking problem for the ToBuffer operator. Caused by an
12779incorrect return type in the internal opcode information table.
12780
12781----------------------------------------
1278225 January 2005.  Summary of changes for version 20050125:
12783
127841) ACPI CA Core Subsystem:
12785
12786Fixed a recently introduced problem with the Global Lock where the
12787underlying semaphore was not created.  This problem was introduced in
12788version 20050114, and caused an AE_AML_NO_OPERAND exception during an
12789Acquire() operation on _GL.
12790
12791The local object cache is now optional, and is disabled by default. Both
12792AcpiExec and the iASL compiler enable the cache because they run in user
12793mode and this enhances their performance. #define
12794ACPI_ENABLE_OBJECT_CACHE
12795to enable the local cache.
12796
12797Fixed an issue in the internal function AcpiUtEvaluateObject concerning
12798the
12799optional "implicit return" support where an error was returned if no
12800return
12801object was expected, but one was implicitly returned. AE_OK is now
12802returned
12803in this case and the implicitly returned object is deleted.
12804AcpiUtEvaluateObject is only occasionally used, and only to execute
12805reserved
12806methods such as _STA and _INI where the return type is known up front.
12807
12808Fixed a few issues with the internal convert-to-integer code. It now
12809returns
12810an error if an attempt is made to convert a null string, a string of only
12811blanks/tabs, or a zero-length buffer. This affects both implicit
12812conversion
12813and explicit conversion via the ToInteger() operator.
12814
12815The internal debug code in AcpiUtAcquireMutex has been commented out. It
12816is
12817not needed for normal operation and should increase the performance of
12818the
12819entire subsystem. The code remains in case it is needed for debug
12820purposes
12821again.
12822
12823The AcpiExec source and makefile are included in the Unix/Linux package
12824for
12825the first time.
12826
12827Code and Data Size: Current and previous core subsystem library sizes are
12828shown below. These are the code and data sizes for the acpica.lib
12829produced
12830by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12831any ACPI driver or OSPM code. The debug version of the code includes the
12832debug output trace mechanism and has a much larger code and data size.
12833Note
12834that these values will vary depending on the efficiency of the compiler
12835and
12836the compiler options used during generation.
12837
12838  Previous Release:
12839    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
12840    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
12841  Current Release:
12842    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
12843    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
12844
128452) iASL Compiler/Disassembler:
12846
12847Switch/Case support: A warning is now issued if the type of the Switch
12848value
12849cannot be determined at compile time. For example, Switch(Arg0) will
12850generate the warning, and the type is assumed to be an integer. As per
12851the
12852ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
12853the
12854warning.
12855
12856Switch/Case support: Implemented support for buffer and string objects as
12857the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
12858buffers and strings.
12859
12860Switch/Case support: The emitted code for the LEqual() comparisons now
12861uses
12862the switch value as the first operand, not the second. The case value is
12863now
12864the second operand, and this allows the case value to be implicitly
12865converted to the type of the switch value, not the other way around.
12866
12867Switch/Case support: Temporary variables are now emitted immediately
12868within
12869the control method, not at the global level. This means that there are
12870now
1287136 temps available per-method, not 36 temps per-module as was the case
12872with
12873the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
12874
12875----------------------------------------
1287614 January 2005.  Summary of changes for version 20050114:
12877
12878Added 2005 copyright to all module headers.  This affects every module in
12879the core subsystem, iASL compiler, and the utilities.
12880
128811) ACPI CA Core Subsystem:
12882
12883Fixed an issue with the String-to-Buffer conversion code where the string
12884null terminator was not included in the buffer after conversion, but
12885there
12886is existing ASL that assumes the string null terminator is included. This
12887is
12888the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
12889introduced in the previous version when the code was updated to correctly
12890set the converted buffer size as per the ACPI specification. The ACPI
12891spec
12892is ambiguous and will be updated to specify that the null terminator must
12893be
12894included in the converted buffer. This also affects the ToBuffer() ASL
12895operator.
12896
12897Fixed a problem with the Mid() ASL/AML operator where it did not work
12898correctly on Buffer objects. Newly created sub-buffers were not being
12899marked
12900as initialized.
12901
12902
12903Fixed a problem in AcpiTbFindTable where incorrect string compares were
12904performed on the OemId and OemTableId table header fields.  These fields
12905are
12906not null terminated, so strncmp is now used instead of strcmp.
12907
12908Implemented a restriction on the Store() ASL/AML operator to align the
12909behavior with the ACPI specification.  Previously, any object could be
12910used
12911as the source operand.  Now, the only objects that may be used are
12912Integers,
12913Buffers, Strings, Packages, Object References, and DDB Handles.  If
12914necessary, the original behavior can be restored by enabling the
12915EnableInterpreterSlack flag.
12916
12917Enhanced the optional "implicit return" support to allow an implicit
12918return
12919value from methods that are invoked externally via the AcpiEvaluateObject
12920interface.  This enables implicit returns from the _STA and _INI methods,
12921for example.
12922
12923Changed the Revision() ASL/AML operator to return the current version of
12924the
12925AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
12926returned
12927the supported ACPI version (This is the function of the _REV method).
12928
12929Updated the _REV predefined method to return the currently supported
12930version
12931of ACPI, now 3.
12932
12933Implemented batch mode option for the AcpiExec utility (-b).
12934
12935Code and Data Size: Current and previous core subsystem library sizes are
12936shown below. These are the code and data sizes for the acpica.lib
12937produced
12938by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12939any ACPI driver or OSPM code. The debug version of the code includes the
12940debug output trace mechanism and has a much larger code and data size.
12941Note
12942that these values will vary depending on the efficiency of the compiler
12943and
12944the compiler options used during generation.
12945
12946  Previous Release:
12947    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12948    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
12949  Current Release:
12950    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
12951    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
12952
12953----------------------------------------
1295410 December 2004.  Summary of changes for version 20041210:
12955
12956ACPI 3.0 support is nearing completion in both the iASL compiler and the
12957ACPI CA core subsystem.
12958
129591) ACPI CA Core Subsystem:
12960
12961Fixed a problem in the ToDecimalString operator where the resulting
12962string
12963length was incorrectly calculated. The length is now calculated exactly,
12964eliminating incorrect AE_STRING_LIMIT exceptions.
12965
12966Fixed a problem in the ToHexString operator to allow a maximum 200
12967character
12968string to be produced.
12969
12970Fixed a problem in the internal string-to-buffer and buffer-to-buffer
12971copy
12972routine where the length of the resulting buffer was not truncated to the
12973new size (if the target buffer already existed).
12974
12975Code and Data Size: Current and previous core subsystem library sizes are
12976shown below. These are the code and data sizes for the acpica.lib
12977produced
12978by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12979any ACPI driver or OSPM code. The debug version of the code includes the
12980debug output trace mechanism and has a much larger code and data size.
12981Note
12982that these values will vary depending on the efficiency of the compiler
12983and
12984the compiler options used during generation.
12985
12986  Previous Release:
12987    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12988    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
12989  Current Release:
12990    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12991    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
12992
12993
129942) iASL Compiler/Disassembler:
12995
12996Implemented the new ACPI 3.0 resource template macros - DWordSpace,
12997ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
12998Includes support in the disassembler.
12999
13000Implemented support for the new (ACPI 3.0) parameter to the Register
13001macro,
13002AccessSize.
13003
13004Fixed a problem where the _HE resource name for the Interrupt macro was
13005referencing bit 0 instead of bit 1.
13006
13007Implemented check for maximum 255 interrupts in the Interrupt macro.
13008
13009Fixed a problem with the predefined resource descriptor names where
13010incorrect AML code was generated if the offset within the resource buffer
13011was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
13012but did not update the surrounding package lengths.
13013
13014Changes to the Dma macro:  All channels within the channel list must be
13015in
13016the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
13017optional (default is BusMaster).
13018
13019Implemented check for maximum 7 data bytes for the VendorShort macro.
13020
13021The ReadWrite parameter is now optional for the Memory32 and similar
13022macros.
13023
13024----------------------------------------
1302503 December 2004.  Summary of changes for version 20041203:
13026
130271) ACPI CA Core Subsystem:
13028
13029The low-level field insertion/extraction code (exfldio) has been
13030completely
13031rewritten to eliminate unnecessary complexity, bugs, and boundary
13032conditions.
13033
13034Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
13035ToDecimalString
13036operators where the input operand could be inadvertently deleted if no
13037conversion was necessary (e.g., if the input to ToInteger was an Integer
13038object.)
13039
13040Fixed a problem with the ToDecimalString and ToHexString where an
13041incorrect
13042exception code was returned if the resulting string would be > 200 chars.
13043AE_STRING_LIMIT is now returned.
13044
13045Fixed a problem with the Concatenate operator where AE_OK was always
13046returned, even if the operation failed.
13047
13048Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
13049semaphores to be allocated.
13050
13051Code and Data Size: Current and previous core subsystem library sizes are
13052shown below. These are the code and data sizes for the acpica.lib
13053produced
13054by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13055any ACPI driver or OSPM code. The debug version of the code includes the
13056debug output trace mechanism and has a much larger code and data size.
13057Note
13058that these values will vary depending on the efficiency of the compiler
13059and
13060the compiler options used during generation.
13061
13062  Previous Release:
13063    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13064    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13065  Current Release:
13066    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
13067    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
13068
13069
130702) iASL Compiler/Disassembler:
13071
13072Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
13073recently introduced in 20041119.
13074
13075Fixed a problem with the ToUUID macro where the upper nybble of each
13076buffer
13077byte was inadvertently set to zero.
13078
13079----------------------------------------
1308019 November 2004.  Summary of changes for version 20041119:
13081
130821) ACPI CA Core Subsystem:
13083
13084Fixed a problem in the internal ConvertToInteger routine where new
13085integers
13086were not truncated to 32 bits for 32-bit ACPI tables. This routine
13087converts
13088buffers and strings to integers.
13089
13090Implemented support to store a value to an Index() on a String object.
13091This
13092is an ACPI 2.0 feature that had not yet been implemented.
13093
13094Implemented new behavior for storing objects to individual package
13095elements
13096(via the Index() operator). The previous behavior was to invoke the
13097implicit
13098conversion rules if an object was already present at the index.  The new
13099behavior is to simply delete any existing object and directly store the
13100new
13101object. Although the ACPI specification seems unclear on this subject,
13102other
13103ACPI implementations behave in this manner.  (This is the root of the
13104AE_BAD_HEX_CONSTANT issue.)
13105
13106Modified the RSDP memory scan mechanism to support the extended checksum
13107for
13108ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
13109RSDP signature is found with a valid checksum.
13110
13111Code and Data Size: Current and previous core subsystem library sizes are
13112shown below. These are the code and data sizes for the acpica.lib
13113produced
13114by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13115any ACPI driver or OSPM code. The debug version of the code includes the
13116debug output trace mechanism and has a much larger code and data size.
13117Note
13118that these values will vary depending on the efficiency of the compiler
13119and
13120the compiler options used during generation.
13121
13122  Previous Release:
13123    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13124    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13125  Current Release:
13126    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13127    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13128
13129
131302) iASL Compiler/Disassembler:
13131
13132Fixed a missing semicolon in the aslcompiler.y file.
13133
13134----------------------------------------
1313505 November 2004.  Summary of changes for version 20041105:
13136
131371) ACPI CA Core Subsystem:
13138
13139Implemented support for FADT revision 2.  This was an interim table
13140(between
13141ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
13142
13143Implemented optional support to allow uninitialized LocalX and ArgX
13144variables in a control method.  The variables are initialized to an
13145Integer
13146object with a value of zero.  This support is enabled by setting the
13147AcpiGbl_EnableInterpreterSlack flag to TRUE.
13148
13149Implemented support for Integer objects for the SizeOf operator.  Either
131504
13151or 8 is returned, depending on the current integer size (32-bit or 64-
13152bit,
13153depending on the parent table revision).
13154
13155Fixed a problem in the implementation of the SizeOf and ObjectType
13156operators
13157where the operand was resolved to a value too early, causing incorrect
13158return values for some objects.
13159
13160Fixed some possible memory leaks during exceptional conditions.
13161
13162Code and Data Size: Current and previous core subsystem library sizes are
13163shown below. These are the code and data sizes for the acpica.lib
13164produced
13165by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13166any ACPI driver or OSPM code. The debug version of the code includes the
13167debug output trace mechanism and has a much larger code and data size.
13168Note
13169that these values will vary depending on the efficiency of the compiler
13170and
13171the compiler options used during generation.
13172
13173  Previous Release:
13174    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13175    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
13176  Current Release:
13177    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13178    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13179
13180
131812) iASL Compiler/Disassembler:
13182
13183Implemented support for all ACPI 3.0 reserved names and methods.
13184
13185Implemented all ACPI 3.0 grammar elements in the front-end, including
13186support for semicolons.
13187
13188Implemented the ACPI 3.0 Function() and ToUUID() macros
13189
13190Fixed a problem in the disassembler where a Scope() operator would not be
13191emitted properly if the target of the scope was in another table.
13192
13193----------------------------------------
1319415 October 2004.  Summary of changes for version 20041015:
13195
13196Note:  ACPI CA is currently undergoing an in-depth and complete formal
13197evaluation to test/verify the following areas. Other suggestions are
13198welcome. This will result in an increase in the frequency of releases and
13199the number of bug fixes in the next few months.
13200  - Functional tests for all ASL/AML operators
13201  - All implicit/explicit type conversions
13202  - Bit fields and operation regions
13203  - 64-bit math support and 32-bit-only "truncated" math support
13204  - Exceptional conditions, both compiler and interpreter
13205  - Dynamic object deletion and memory leaks
13206  - ACPI 3.0 support when implemented
13207  - External interfaces to the ACPI subsystem
13208
13209
132101) ACPI CA Core Subsystem:
13211
13212Fixed two alignment issues on 64-bit platforms - within debug statements
13213in
13214AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
13215Address
13216field within the non-aligned ACPI generic address structure.
13217
13218Fixed a problem in the Increment and Decrement operators where incorrect
13219operand resolution could result in the inadvertent modification of the
13220original integer when the integer is passed into another method as an
13221argument and the arg is then incremented/decremented.
13222
13223Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
13224bit
13225BCD number were truncated during conversion.
13226
13227Fixed a problem in the ToDecimal operator where the length of the
13228resulting
13229string could be set incorrectly too long if the input operand was a
13230Buffer
13231object.
13232
13233Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
13234(0)
13235within a buffer would prematurely terminate a compare between buffer
13236objects.
13237
13238Added a check for string overflow (>200 characters as per the ACPI
13239specification) during the Concatenate operator with two string operands.
13240
13241Code and Data Size: Current and previous core subsystem library sizes are
13242shown below. These are the code and data sizes for the acpica.lib
13243produced
13244by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13245any ACPI driver or OSPM code. The debug version of the code includes the
13246debug output trace mechanism and has a much larger code and data size.
13247Note
13248that these values will vary depending on the efficiency of the compiler
13249and
13250the compiler options used during generation.
13251
13252  Previous Release:
13253    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13254    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
13255  Current Release:
13256    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13257    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
13258
13259
13260
132612) iASL Compiler/Disassembler:
13262
13263Allow the use of the ObjectType operator on uninitialized Locals and Args
13264(returns 0 as per the ACPI specification).
13265
13266Fixed a problem where the compiler would fault if there was a syntax
13267error
13268in the FieldName of all of the various CreateXXXField operators.
13269
13270Disallow the use of lower case letters within the EISAID macro, as per
13271the
13272ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
13273Where
13274U is an uppercase letter and N is a hex digit.
13275
13276
13277----------------------------------------
1327806 October 2004.  Summary of changes for version 20041006:
13279
132801) ACPI CA Core Subsystem:
13281
13282Implemented support for the ACPI 3.0 Timer operator. This ASL function
13283implements a 64-bit timer with 100 nanosecond granularity.
13284
13285Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
13286implement the ACPI 3.0 Timer operator.  This allows the host OS to
13287implement
13288the timer with the best clock available. Also, it keeps the core
13289subsystem
13290out of the clock handling business, since the host OS (usually) performs
13291this function.
13292
13293Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
13294functions use a 64-bit address which is part of the packed ACPI Generic
13295Address Structure. Since the structure is non-aligned, the alignment
13296macros
13297are now used to extract the address to a local variable before use.
13298
13299Fixed a problem where the ToInteger operator assumed all input strings
13300were
13301hexadecimal. The operator now handles both decimal strings and hex
13302strings
13303(prefixed with "0x").
13304
13305Fixed a problem where the string length in the string object created as a
13306result of the internal ConvertToString procedure could be incorrect. This
13307potentially affected all implicit conversions and also the
13308ToDecimalString
13309and ToHexString operators.
13310
13311Fixed two problems in the ToString operator. If the length parameter was
13312zero, an incorrect string object was created and the value of the input
13313length parameter was inadvertently changed from zero to Ones.
13314
13315Fixed a problem where the optional ResourceSource string in the
13316ExtendedIRQ
13317resource macro was ignored.
13318
13319Simplified the interfaces to the internal division functions, reducing
13320code
13321size and complexity.
13322
13323Code and Data Size: Current and previous core subsystem library sizes are
13324shown below. These are the code and data sizes for the acpica.lib
13325produced
13326by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13327any ACPI driver or OSPM code. The debug version of the code includes the
13328debug output trace mechanism and has a much larger code and data size.
13329Note
13330that these values will vary depending on the efficiency of the compiler
13331and
13332the compiler options used during generation.
13333
13334  Previous Release:
13335    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
13336    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
13337  Current Release:
13338    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13339    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
13340
13341
133422) iASL Compiler/Disassembler:
13343
13344Implemented support for the ACPI 3.0 Timer operator.
13345
13346Fixed a problem where the Default() operator was inadvertently ignored in
13347a
13348Switch/Case block.  This was a problem in the translation of the Switch
13349statement to If...Else pairs.
13350
13351Added support to allow a standalone Return operator, with no parentheses
13352(or
13353operands).
13354
13355Fixed a problem with code generation for the ElseIf operator where the
13356translated Else...If parse tree was improperly constructed leading to the
13357loss of some code.
13358
13359----------------------------------------
1336022 September 2004.  Summary of changes for version 20040922:
13361
133621) ACPI CA Core Subsystem:
13363
13364Fixed a problem with the implementation of the LNot() operator where
13365"Ones"
13366was not returned for the TRUE case. Changed the code to return Ones
13367instead
13368of (!Arg) which was usually 1. This change affects iASL constant folding
13369for
13370this operator also.
13371
13372Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
13373not
13374initialized properly -- Now zero the entire buffer in this case where the
13375buffer already exists.
13376
13377Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
13378Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
13379related code considerably. This will require changes/updates to all OS
13380interface layers (OSLs.)
13381
13382Implemented a new external interface, AcpiInstallExceptionHandler, to
13383allow
13384a system exception handler to be installed. This handler is invoked upon
13385any
13386run-time exception that occurs during control method execution.
13387
13388Added support for the DSDT in AcpiTbFindTable. This allows the
13389DataTableRegion() operator to access the local copy of the DSDT.
13390
13391Code and Data Size: Current and previous core subsystem library sizes are
13392shown below. These are the code and data sizes for the acpica.lib
13393produced
13394by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13395any ACPI driver or OSPM code. The debug version of the code includes the
13396debug output trace mechanism and has a much larger code and data size.
13397Note
13398that these values will vary depending on the efficiency of the compiler
13399and
13400the compiler options used during generation.
13401
13402  Previous Release:
13403    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
13404    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
13405  Current Release:
13406    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
13407    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
13408
13409
134102) iASL Compiler/Disassembler:
13411
13412Fixed a problem with constant folding and the LNot operator. LNot was
13413returning 1 in the TRUE case, not Ones as per the ACPI specification.
13414This
13415could result in the generation of an incorrect folded/reduced constant.
13416
13417End-Of-File is now allowed within a "//"-style comment.  A parse error no
13418longer occurs if such a comment is at the very end of the input ASL
13419source
13420file.
13421
13422Implemented the "-r" option to override the Revision in the table header.
13423The initial use of this option will be to simplify the evaluation of the
13424AML
13425interpreter by allowing a single ASL source module to be compiled for
13426either
1342732-bit or 64-bit integers.
13428
13429
13430----------------------------------------
1343127 August 2004.  Summary of changes for version 20040827:
13432
134331) ACPI CA Core Subsystem:
13434
13435- Implemented support for implicit object conversion in the non-numeric
13436logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
13437and
13438LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
13439the second operand is implicitly converted on the fly to match the type
13440of
13441the first operand.  For example:
13442
13443    LEqual (Source1, Source2)
13444
13445Source1 and Source2 must each evaluate to an integer, a string, or a
13446buffer.
13447The data type of Source1 dictates the required type of Source2. Source2
13448is
13449implicitly converted if necessary to match the type of Source1.
13450
13451- Updated and corrected the behavior of the string conversion support.
13452The
13453rules concerning conversion of buffers to strings (according to the ACPI
13454specification) are as follows:
13455
13456ToDecimalString - explicit byte-wise conversion of buffer to string of
13457decimal values (0-255) separated by commas. ToHexString - explicit byte-
13458wise
13459conversion of buffer to string of hex values (0-FF) separated by commas.
13460ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
13461byte
13462copy with no transform except NULL terminated. Any other implicit buffer-
13463to-
13464string conversion - byte-wise conversion of buffer to string of hex
13465values
13466(0-FF) separated by spaces.
13467
13468- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
13469
13470- Fixed a problem in AcpiNsGetPathnameLength where the returned length
13471was
13472one byte too short in the case of a node in the root scope.  This could
13473cause a fault during debug output.
13474
13475- Code and Data Size: Current and previous core subsystem library sizes
13476are
13477shown below.  These are the code and data sizes for the acpica.lib
13478produced
13479by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13480any ACPI driver or OSPM code.  The debug version of the code includes the
13481debug output trace mechanism and has a much larger code and data size.
13482Note
13483that these values will vary depending on the efficiency of the compiler
13484and
13485the compiler options used during generation.
13486
13487  Previous Release:
13488    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
13489    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
13490  Current Release:
13491    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
13492    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
13493
13494
134952) iASL Compiler/Disassembler:
13496
13497- Fixed a Linux generation error.
13498
13499
13500----------------------------------------
1350116 August 2004.  Summary of changes for version 20040816:
13502
135031) ACPI CA Core Subsystem:
13504
13505Designed and implemented support within the AML interpreter for the so-
13506called "implicit return".  This support returns the result of the last
13507ASL
13508operation within a control method, in the absence of an explicit Return()
13509operator.  A few machines depend on this behavior, even though it is not
13510explicitly supported by the ASL language.  It is optional support that
13511can
13512be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
13513
13514Removed support for the PCI_Config address space from the internal low
13515level
13516hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
13517support was not used internally, and would not work correctly anyway
13518because
13519the PCI bus number and segment number were not supported.  There are
13520separate interfaces for PCI configuration space access because of the
13521unique
13522interface.
13523
13524Code and Data Size: Current and previous core subsystem library sizes are
13525shown below.  These are the code and data sizes for the acpica.lib
13526produced
13527by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13528any ACPI driver or OSPM code.  The debug version of the code includes the
13529debug output trace mechanism and has a much larger code and data size.
13530Note
13531that these values will vary depending on the efficiency of the compiler
13532and
13533the compiler options used during generation.
13534
13535  Previous Release:
13536    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13537    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
13538  Current Release:
13539    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
13540    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
13541
13542
135432) iASL Compiler/Disassembler:
13544
13545Fixed a problem where constants in ASL expressions at the root level (not
13546within a control method) could be inadvertently truncated during code
13547generation.  This problem was introduced in the 20040715 release.
13548
13549
13550----------------------------------------
1355115 July 2004.  Summary of changes for version 20040715:
13552
135531) ACPI CA Core Subsystem:
13554
13555Restructured the internal HW GPE interfaces to pass/track the current
13556state
13557of interrupts (enabled/disabled) in order to avoid possible deadlock and
13558increase flexibility of the interfaces.
13559
13560Implemented a "lexicographical compare" for String and Buffer objects
13561within
13562the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
13563-
13564as per further clarification to the ACPI specification.  Behavior is
13565similar
13566to C library "strcmp".
13567
13568Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
13569external function.  In the 32-bit non-debug case, the stack use has been
13570reduced from 168 bytes to 32 bytes.
13571
13572Deployed a new run-time configuration flag,
13573AcpiGbl_EnableInterpreterSlack,
13574whose purpose is to allow the AML interpreter to forgive certain bad AML
13575constructs.  Default setting is FALSE.
13576
13577Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
13578IO
13579support code.  If enabled, it allows field access to go beyond the end of
13580a
13581region definition if the field is within the region length rounded up to
13582the
13583next access width boundary (a common coding error.)
13584
13585Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
13586ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
13587these
13588symbols are lowercased by the latest version of the AcpiSrc tool.
13589
13590The prototypes for the PCI interfaces in acpiosxf.h have been updated to
13591rename "Register" to simply "Reg" to prevent certain compilers from
13592complaining.
13593
13594Code and Data Size: Current and previous core subsystem library sizes are
13595shown below.  These are the code and data sizes for the acpica.lib
13596produced
13597by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13598any ACPI driver or OSPM code.  The debug version of the code includes the
13599debug output trace mechanism and has a much larger code and data size.
13600Note
13601that these values will vary depending on the efficiency of the compiler
13602and
13603the compiler options used during generation.
13604
13605  Previous Release:
13606    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13607    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
13608  Current Release:
13609    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13610    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
13611
13612
136132) iASL Compiler/Disassembler:
13614
13615Implemented full support for Package objects within the Case() operator.
13616Note: The Break() operator is currently not supported within Case blocks
13617(TermLists) as there is some question about backward compatibility with
13618ACPI
136191.0 interpreters.
13620
13621
13622Fixed a problem where complex terms were not supported properly within
13623the
13624Switch() operator.
13625
13626Eliminated extraneous warning for compiler-emitted reserved names of the
13627form "_T_x".  (Used in Switch/Case operators.)
13628
13629Eliminated optimization messages for "_T_x" objects and small constants
13630within the DefinitionBlock operator.
13631
13632
13633----------------------------------------
1363415 June 2004.  Summary of changes for version 20040615:
13635
136361) ACPI CA Core Subsystem:
13637
13638Implemented support for Buffer and String objects (as per ACPI 2.0) for
13639the
13640following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
13641LLessEqual.
13642
13643All directory names in the entire source package are lower case, as they
13644were in earlier releases.
13645
13646Implemented "Disassemble" command in the AML debugger that will
13647disassemble
13648a single control method.
13649
13650Code and Data Size: Current and previous core subsystem library sizes are
13651shown below.  These are the code and data sizes for the acpica.lib
13652produced
13653by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13654any ACPI driver or OSPM code.  The debug version of the code includes the
13655debug output trace mechanism and has a much larger code and data size.
13656Note
13657that these values will vary depending on the efficiency of the compiler
13658and
13659the compiler options used during generation.
13660
13661  Previous Release:
13662    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
13663    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
13664
13665  Current Release:
13666    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13667    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
13668
13669
136702) iASL Compiler/Disassembler:
13671
13672Implemented support for Buffer and String objects (as per ACPI 2.0) for
13673the
13674following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
13675LLessEqual.
13676
13677All directory names in the entire source package are lower case, as they
13678were in earlier releases.
13679
13680Fixed a fault when using the -g or -d<nofilename> options if the FADT was
13681not found.
13682
13683Fixed an issue with the Windows version of the compiler where later
13684versions
13685of Windows place the FADT in the registry under the name "FADT" and not
13686"FACP" as earlier versions did.  This applies when using the -g or -
13687d<nofilename> options.  The compiler now looks for both strings as
13688necessary.
13689
13690Fixed a problem with compiler namepath optimization where a namepath
13691within
13692the Scope() operator could not be optimized if the namepath was a subpath
13693of
13694the current scope path.
13695
13696----------------------------------------
1369727 May 2004.  Summary of changes for version 20040527:
13698
136991) ACPI CA Core Subsystem:
13700
13701Completed a new design and implementation for EBDA (Extended BIOS Data
13702Area)
13703support in the RSDP scan code.  The original code improperly scanned for
13704the
13705EBDA by simply scanning from memory location 0 to 0x400.  The correct
13706method
13707is to first obtain the EBDA pointer from within the BIOS data area, then
13708scan 1K of memory starting at the EBDA pointer.  There appear to be few
13709if
13710any machines that place the RSDP in the EBDA, however.
13711
13712Integrated a fix for a possible fault during evaluation of BufferField
13713arguments.  Obsolete code that was causing the problem was removed.
13714
13715Found and fixed a problem in the Field Support Code where data could be
13716corrupted on a bit field read that starts on an aligned boundary but does
13717not end on an aligned boundary.  Merged the read/write "datum length"
13718calculation code into a common procedure.
13719
13720Rolled in a couple of changes to the FreeBSD-specific header.
13721
13722
13723Code and Data Size: Current and previous core subsystem library sizes are
13724shown below.  These are the code and data sizes for the acpica.lib
13725produced
13726by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13727any ACPI driver or OSPM code.  The debug version of the code includes the
13728debug output trace mechanism and has a much larger code and data size.
13729Note
13730that these values will vary depending on the efficiency of the compiler
13731and
13732the compiler options used during generation.
13733
13734  Previous Release:
13735    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13736    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
13737  Current Release:
13738    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
13739    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
13740
13741
137422) iASL Compiler/Disassembler:
13743
13744Fixed a generation warning produced by some overly-verbose compilers for
13745a
1374664-bit constant.
13747
13748----------------------------------------
1374914 May 2004.  Summary of changes for version 20040514:
13750
137511) ACPI CA Core Subsystem:
13752
13753Fixed a problem where hardware GPE enable bits sometimes not set properly
13754during and after GPE method execution.  Result of 04/27 changes.
13755
13756Removed extra "clear all GPEs" when sleeping/waking.
13757
13758Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
13759AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
13760to
13761the new AcpiEv* calls as appropriate.
13762
13763ACPI_OS_NAME was removed from the OS-specific headers.  The default name
13764is
13765now "Microsoft Windows NT" for maximum compatibility.  However this can
13766be
13767changed by modifying the acconfig.h file.
13768
13769Allow a single invocation of AcpiInstallNotifyHandler for a handler that
13770traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
13771
13772Run _INI methods on ThermalZone objects.  This is against the ACPI
13773specification, but there is apparently ASL code in the field that has
13774these
13775_INI methods, and apparently "other" AML interpreters execute them.
13776
13777Performed a full 16/32/64 bit lint that resulted in some small changes.
13778
13779Added a sleep simulation command to the AML debugger to test sleep code.
13780
13781Code and Data Size: Current and previous core subsystem library sizes are
13782shown below.  These are the code and data sizes for the acpica.lib
13783produced
13784by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13785any ACPI driver or OSPM code.  The debug version of the code includes the
13786debug output trace mechanism and has a much larger code and data size.
13787Note
13788that these values will vary depending on the efficiency of the compiler
13789and
13790the compiler options used during generation.
13791
13792  Previous Release:
13793    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13794    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
13795  Current Release:
13796    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13797    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
13798
13799----------------------------------------
1380027 April 2004.  Summary of changes for version 20040427:
13801
138021) ACPI CA Core Subsystem:
13803
13804Completed a major overhaul of the GPE handling within ACPI CA.  There are
13805now three types of GPEs:  wake-only, runtime-only, and combination
13806wake/run.
13807The only GPEs allowed to be combination wake/run are for button-style
13808devices such as a control-method power button, control-method sleep
13809button,
13810or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
13811not
13812referenced by any _PRW methods are marked for "runtime" and hardware
13813enabled.  Any GPE that is referenced by a _PRW method is marked for
13814"wake"
13815(and disabled at runtime).  However, at sleep time, only those GPEs that
13816have been specifically enabled for wake via the AcpiEnableGpe interface
13817will
13818actually be hardware enabled.
13819
13820A new external interface has been added, AcpiSetGpeType(), that is meant
13821to
13822be used by device drivers to force a GPE to a particular type.  It will
13823be
13824especially useful for the drivers for the button devices mentioned above.
13825
13826Completed restructuring of the ACPI CA initialization sequence so that
13827default operation region handlers are installed before GPEs are
13828initialized
13829and the _PRW methods are executed.  This will prevent errors when the
13830_PRW
13831methods attempt to access system memory or I/O space.
13832
13833GPE enable/disable no longer reads the GPE enable register.  We now keep
13834the
13835enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
13836thus no longer depend on the hardware to maintain these bits.
13837
13838Always clear the wake status and fixed/GPE status bits before sleep, even
13839for state S5.
13840
13841Improved the AML debugger output for displaying the GPE blocks and their
13842current status.
13843
13844Added new strings for the _OSI method, of the form "Windows 2001 SPx"
13845where
13846x = 0,1,2,3,4.
13847
13848Fixed a problem where the physical address was incorrectly calculated
13849when
13850the Load() operator was used to directly load from an Operation Region
13851(vs.
13852loading from a Field object.)  Also added check for minimum table length
13853for
13854this case.
13855
13856Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
13857mutex release.
13858
13859Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
13860consistency with the other fields returned.
13861
13862Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
13863structure for each GPE in the system, so the size of this structure is
13864important.
13865
13866CPU stack requirement reduction:  Cleaned up the method execution and
13867object
13868evaluation paths so that now a parameter structure is passed, instead of
13869copying the various method parameters over and over again.
13870
13871In evregion.c:  Correctly exit and reenter the interpreter region if and
13872only if dispatching an operation region request to a user-installed
13873handler.
13874Do not exit/reenter when dispatching to a default handler (e.g., default
13875system memory or I/O handlers)
13876
13877
13878Notes for updating drivers for the new GPE support.  The following
13879changes
13880must be made to ACPI-related device drivers that are attached to one or
13881more
13882GPEs: (This information will be added to the ACPI CA Programmer
13883Reference.)
13884
138851) AcpiInstallGpeHandler no longer automatically enables the GPE, you
13886must
13887explicitly call AcpiEnableGpe.
138882) There is a new interface called AcpiSetGpeType. This should be called
13889before enabling the GPE.  Also, this interface will automatically disable
13890the GPE if it is currently enabled.
138913) AcpiEnableGpe no longer supports a GPE type flag.
13892
13893Specific drivers that must be changed:
138941) EC driver:
13895    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
13896AeGpeHandler, NULL);
13897    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
13898    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
13899
139002) Button Drivers (Power, Lid, Sleep):
13901Run _PRW method under parent device
13902If _PRW exists: /* This is a control-method button */
13903    Extract GPE number and possibly GpeDevice
13904    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
13905    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
13906
13907For all other devices that have _PRWs, we automatically set the GPE type
13908to
13909ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
13910This
13911must be done on a selective basis, usually requiring some kind of user
13912app
13913to allow the user to pick the wake devices.
13914
13915
13916Code and Data Size: Current and previous core subsystem library sizes are
13917shown below.  These are the code and data sizes for the acpica.lib
13918produced
13919by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13920any ACPI driver or OSPM code.  The debug version of the code includes the
13921debug output trace mechanism and has a much larger code and data size.
13922Note
13923that these values will vary depending on the efficiency of the compiler
13924and
13925the compiler options used during generation.
13926
13927  Previous Release:
13928    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
13929    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
13930  Current Release:
13931
13932    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13933    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
13934
13935
13936
13937----------------------------------------
1393802 April 2004.  Summary of changes for version 20040402:
13939
139401) ACPI CA Core Subsystem:
13941
13942Fixed an interpreter problem where an indirect store through an ArgX
13943parameter was incorrectly applying the "implicit conversion rules" during
13944the store.  From the ACPI specification: "If the target is a method local
13945or
13946argument (LocalX or ArgX), no conversion is performed and the result is
13947stored directly to the target".  The new behavior is to disable implicit
13948conversion during ALL stores to an ArgX.
13949
13950Changed the behavior of the _PRW method scan to ignore any and all errors
13951returned by a given _PRW.  This prevents the scan from aborting from the
13952failure of any single _PRW.
13953
13954Moved the runtime configuration parameters from the global init procedure
13955to
13956static variables in acglobal.h.  This will allow the host to override the
13957default values easily.
13958
13959Code and Data Size: Current and previous core subsystem library sizes are
13960shown below.  These are the code and data sizes for the acpica.lib
13961produced
13962by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13963any ACPI driver or OSPM code.  The debug version of the code includes the
13964debug output trace mechanism and has a much larger code and data size.
13965Note
13966that these values will vary depending on the efficiency of the compiler
13967and
13968the compiler options used during generation.
13969
13970  Previous Release:
13971    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
13972    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
13973  Current Release:
13974    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
13975    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
13976
13977
139782) iASL Compiler/Disassembler:
13979
13980iASL now fully disassembles SSDTs.  However, External() statements are
13981not
13982generated automatically for unresolved symbols at this time.  This is a
13983planned feature for future implementation.
13984
13985Fixed a scoping problem in the disassembler that occurs when the type of
13986the
13987target of a Scope() operator is overridden.  This problem caused an
13988incorrectly nested internal namespace to be constructed.
13989
13990Any warnings or errors that are emitted during disassembly are now
13991commented
13992out automatically so that the resulting file can be recompiled without
13993any
13994hand editing.
13995
13996----------------------------------------
1399726 March 2004.  Summary of changes for version 20040326:
13998
139991) ACPI CA Core Subsystem:
14000
14001Implemented support for "wake" GPEs via interaction between GPEs and the
14002_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
14003identified as a WAKE GPE and by default will no longer be enabled at
14004runtime.  Previously, we were blindly enabling all GPEs with a
14005corresponding
14006_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
14007We
14008believe this has been the cause of thousands of "spurious" GPEs on some
14009systems.
14010
14011This new GPE behavior is can be reverted to the original behavior (enable
14012ALL GPEs at runtime) via a runtime flag.
14013
14014Fixed a problem where aliased control methods could not access objects
14015properly.  The proper scope within the namespace was not initialized
14016(transferred to the target of the aliased method) before executing the
14017target method.
14018
14019Fixed a potential race condition on internal object deletion on the
14020return
14021object in AcpiEvaluateObject.
14022
14023Integrated a fix for resource descriptors where both _MEM and _MTP were
14024being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
14025wide, 0x0F instead of 0x03.)
14026
14027Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
14028preventing
14029a
14030fault in some cases.
14031
14032Updated Notify() values for debug statements in evmisc.c
14033
14034Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
14035
14036Code and Data Size: Current and previous core subsystem library sizes are
14037shown below.  These are the code and data sizes for the acpica.lib
14038produced
14039by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14040any ACPI driver or OSPM code.  The debug version of the code includes the
14041debug output trace mechanism and has a much larger code and data size.
14042Note
14043that these values will vary depending on the efficiency of the compiler
14044and
14045the compiler options used during generation.
14046
14047  Previous Release:
14048
14049    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
14050    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
14051  Current Release:
14052    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
14053    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
14054
14055----------------------------------------
1405611 March 2004.  Summary of changes for version 20040311:
14057
140581) ACPI CA Core Subsystem:
14059
14060Fixed a problem where errors occurring during the parse phase of control
14061method execution did not abort cleanly.  For example, objects created and
14062installed in the namespace were not deleted.  This caused all subsequent
14063invocations of the method to return the AE_ALREADY_EXISTS exception.
14064
14065Implemented a mechanism to force a control method to "Serialized"
14066execution
14067if the method attempts to create namespace objects. (The root of the
14068AE_ALREADY_EXISTS problem.)
14069
14070Implemented support for the predefined _OSI "internal" control method.
14071Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
14072and
14073"Windows 2001.1", and can be easily upgraded for new strings as
14074necessary.
14075This feature will allow "other" operating systems to execute the fully
14076tested, "Windows" code path through the ASL code
14077
14078Global Lock Support:  Now allows multiple acquires and releases with any
14079internal thread.  Removed concept of "owning thread" for this special
14080mutex.
14081
14082Fixed two functions that were inappropriately declaring large objects on
14083the
14084CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
14085during
14086method execution considerably.
14087
14088Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
14089S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
14090
14091Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
14092defined on the machine.
14093
14094Implemented two runtime options:  One to force all control method
14095execution
14096to "Serialized" to mimic Windows behavior, another to disable _OSI
14097support
14098if it causes problems on a given machine.
14099
14100Code and Data Size: Current and previous core subsystem library sizes are
14101shown below.  These are the code and data sizes for the acpica.lib
14102produced
14103by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14104any ACPI driver or OSPM code.  The debug version of the code includes the
14105debug output trace mechanism and has a much larger code and data size.
14106Note
14107that these values will vary depending on the efficiency of the compiler
14108and
14109the compiler options used during generation.
14110
14111  Previous Release:
14112    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
14113    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
14114  Current Release:
14115    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
14116    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
14117
141182) iASL Compiler/Disassembler:
14119
14120Fixed an array size problem for FreeBSD that would cause the compiler to
14121fault.
14122
14123----------------------------------------
1412420 February 2004.  Summary of changes for version 20040220:
14125
14126
141271) ACPI CA Core Subsystem:
14128
14129Implemented execution of _SxD methods for Device objects in the
14130GetObjectInfo interface.
14131
14132Fixed calls to _SST method to pass the correct arguments.
14133
14134Added a call to _SST on wake to restore to "working" state.
14135
14136Check for End-Of-Buffer failure case in the WalkResources interface.
14137
14138Integrated fix for 64-bit alignment issue in acglobal.h by moving two
14139structures to the beginning of the file.
14140
14141After wake, clear GPE status register(s) before enabling GPEs.
14142
14143After wake, clear/enable power button.  (Perhaps we should clear/enable
14144all
14145fixed events upon wake.)
14146
14147Fixed a couple of possible memory leaks in the Namespace manager.
14148
14149Integrated latest acnetbsd.h file.
14150
14151----------------------------------------
1415211 February 2004.  Summary of changes for version 20040211:
14153
14154
141551) ACPI CA Core Subsystem:
14156
14157Completed investigation and implementation of the call-by-reference
14158mechanism for control method arguments.
14159
14160Fixed a problem where a store of an object into an indexed package could
14161fail if the store occurs within a different method than the method that
14162created the package.
14163
14164Fixed a problem where the ToDecimal operator could return incorrect
14165results.
14166
14167Fixed a problem where the CopyObject operator could fail on some of the
14168more
14169obscure objects (e.g., Reference objects.)
14170
14171Improved the output of the Debug object to display buffer, package, and
14172index objects.
14173
14174Fixed a problem where constructs of the form "RefOf (ArgX)" did not
14175return
14176the expected result.
14177
14178Added permanent ACPI_REPORT_ERROR macros for all instances of the
14179ACPI_AML_INTERNAL exception.
14180
14181Integrated latest version of acfreebsd.h
14182
14183----------------------------------------
1418416 January 2004.  Summary of changes for version 20040116:
14185
14186The purpose of this release is primarily to update the copyright years in
14187each module, thus causing a huge number of diffs.  There are a few small
14188functional changes, however.
14189
141901) ACPI CA Core Subsystem:
14191
14192Improved error messages when there is a problem finding one or more of
14193the
14194required base ACPI tables
14195
14196Reintroduced the definition of APIC_HEADER in actbl.h
14197
14198Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
14199
14200Removed extraneous reference to NewObj in dsmthdat.c
14201
142022) iASL compiler
14203
14204Fixed a problem introduced in December that disabled the correct
14205disassembly
14206of Resource Templates
14207
14208
14209----------------------------------------
1421003 December 2003.  Summary of changes for version 20031203:
14211
142121) ACPI CA Core Subsystem:
14213
14214Changed the initialization of Operation Regions during subsystem
14215init to perform two entire walks of the ACPI namespace; The first
14216to initialize the regions themselves, the second to execute the
14217_REG methods.  This fixed some interdependencies across _REG
14218methods found on some machines.
14219
14220Fixed a problem where a Store(Local0, Local1) could simply update
14221the object reference count, and not create a new copy of the
14222object if the Local1 is uninitialized.
14223
14224Implemented support for the _SST reserved method during sleep
14225transitions.
14226
14227Implemented support to clear the SLP_TYP and SLP_EN bits when
14228waking up, this is apparently required by some machines.
14229
14230When sleeping, clear the wake status only if SleepState is not S5.
14231
14232Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
14233pointer arithmetic advanced a string pointer too far.
14234
14235Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
14236could be returned if the requested table has not been loaded.
14237
14238Within the support for IRQ resources, restructured the handling of
14239the active and edge/level bits.
14240
14241Fixed a few problems in AcpiPsxExecute() where memory could be
14242leaked under certain error conditions.
14243
14244Improved error messages for the cases where the ACPI mode could
14245not be entered.
14246
14247Code and Data Size: Current and previous core subsystem library
14248sizes are shown below.  These are the code and data sizes for the
14249acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14250these values do not include any ACPI driver or OSPM code.  The
14251debug version of the code includes the debug output trace
14252mechanism and has a much larger code and data size.  Note that
14253these values will vary depending on the efficiency of the compiler
14254and the compiler options used during generation.
14255
14256  Previous Release (20031029):
14257    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
14258    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
14259  Current Release:
14260    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
14261    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
14262
142632) iASL Compiler/Disassembler:
14264
14265Implemented a fix for the iASL disassembler where a bad index was
14266generated.  This was most noticeable on 64-bit platforms
14267
14268
14269----------------------------------------
1427029 October 2003.  Summary of changes for version 20031029:
14271
142721) ACPI CA Core Subsystem:
14273
14274
14275Fixed a problem where a level-triggered GPE with an associated
14276_Lxx control method was incorrectly cleared twice.
14277
14278Fixed a problem with the Field support code where an access can
14279occur beyond the end-of-region if the field is non-aligned but
14280extends to the very end of the parent region (resulted in an
14281AE_AML_REGION_LIMIT exception.)
14282
14283Fixed a problem with ACPI Fixed Events where an RT Clock handler
14284would not get invoked on an RTC event.  The RTC event bitmasks for
14285the PM1 registers were not being initialized properly.
14286
14287Implemented support for executing _STA and _INI methods for
14288Processor objects.  Although this is currently not part of the
14289ACPI specification, there is existing ASL code that depends on the
14290init-time execution of these methods.
14291
14292Implemented and deployed a GetDescriptorName function to decode
14293the various types of internal descriptors.  Guards against null
14294descriptors during debug output also.
14295
14296Implemented and deployed a GetNodeName function to extract the 4-
14297character namespace node name.  This function simplifies the debug
14298and error output, as well as guarding against null pointers during
14299output.
14300
14301Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
14302simplify the debug and error output of 64-bit integers.  This
14303macro replaces the HIDWORD and LODWORD macros for dumping these
14304integers.
14305
14306Updated the implementation of the Stall() operator to only call
14307AcpiOsStall(), and also return an error if the operand is larger
14308than 255.  This preserves the required behavior of not
14309relinquishing the processor, as would happen if AcpiOsSleep() was
14310called for "long stalls".
14311
14312Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
14313initialized are now treated as NOOPs.
14314
14315Cleaned up a handful of warnings during 64-bit generation.
14316
14317Fixed a reported error where and incorrect GPE number was passed
14318to the GPE dispatch handler.  This value is only used for error
14319output, however.  Used this opportunity to clean up and streamline
14320the GPE dispatch code.
14321
14322Code and Data Size: Current and previous core subsystem library
14323sizes are shown below.  These are the code and data sizes for the
14324acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14325these values do not include any ACPI driver or OSPM code.  The
14326
14327debug version of the code includes the debug output trace
14328mechanism and has a much larger code and data size.  Note that
14329these values will vary depending on the efficiency of the compiler
14330and the compiler options used during generation.
14331
14332  Previous Release (20031002):
14333    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
14334    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
14335  Current Release:
14336    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
14337    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
14338
14339
143402) iASL Compiler/Disassembler:
14341
14342Updated the iASL compiler to return an error if the operand to the
14343Stall() operator is larger than 255.
14344
14345
14346----------------------------------------
1434702 October 2003.  Summary of changes for version 20031002:
14348
14349
143501) ACPI CA Core Subsystem:
14351
14352Fixed a problem with Index Fields where the index was not
14353incremented for fields that require multiple writes to the
14354index/data registers (Fields that are wider than the data
14355register.)
14356
14357Fixed a problem with all Field objects where a write could go
14358beyond the end-of-field if the field was larger than the access
14359granularity and therefore required multiple writes to complete the
14360request.  An extra write beyond the end of the field could happen
14361inadvertently.
14362
14363Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
14364would incorrectly be returned if the width of the Data Register
14365was larger than the specified field access width.
14366
14367Completed fixes for LoadTable() and Unload() and verified their
14368operation.  Implemented full support for the "DdbHandle" object
14369throughout the ACPI CA subsystem.
14370
14371Implemented full support for the MADT and ECDT tables in the ACPI
14372CA header files.  Even though these tables are not directly
14373consumed by ACPI CA, the header definitions are useful for ACPI
14374device drivers.
14375
14376Integrated resource descriptor fixes posted to the Linux ACPI
14377list.  This included checks for minimum descriptor length, and
14378support for trailing NULL strings within descriptors that have
14379optional string elements.
14380
14381Code and Data Size: Current and previous core subsystem library
14382sizes are shown below.  These are the code and data sizes for the
14383acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14384these values do not include any ACPI driver or OSPM code.  The
14385debug version of the code includes the debug output trace
14386mechanism and has a much larger code and data size.  Note that
14387these values will vary depending on the efficiency of the compiler
14388and the compiler options used during generation.
14389
14390  Previous Release (20030918):
14391    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
14392    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
14393  Current Release:
14394    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
14395    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
14396
14397
143982) iASL Compiler:
14399
14400Implemented detection of non-ASCII characters within the input
14401source ASL file.  This catches attempts to compile binary (AML)
14402files early in the compile, with an informative error message.
14403
14404Fixed a problem where the disassembler would fault if the output
14405filename could not be generated or if the output file could not be
14406opened.
14407
14408----------------------------------------
1440918 September 2003.  Summary of changes for version 20030918:
14410
14411
144121) ACPI CA Core Subsystem:
14413
14414Found and fixed a longstanding problem with the late execution of
14415the various deferred AML opcodes (such as Operation Regions,
14416Buffer Fields, Buffers, and Packages).  If the name string
14417specified for the name of the new object placed the object in a
14418scope other than the current scope, the initialization/execution
14419of the opcode failed.  The solution to this problem was to
14420implement a mechanism where the late execution of such opcodes
14421does not attempt to lookup/create the name a second time in an
14422incorrect scope.  This fixes the "region size computed
14423incorrectly" problem.
14424
14425Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
14426Global Lock AE_BAD_PARAMETER error.
14427
14428Fixed several 64-bit issues with prototypes, casting and data
14429types.
14430
14431Removed duplicate prototype from acdisasm.h
14432
14433Fixed an issue involving EC Operation Region Detach (Shaohua Li)
14434
14435Code and Data Size: Current and previous core subsystem library
14436sizes are shown below.  These are the code and data sizes for the
14437acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14438these values do not include any ACPI driver or OSPM code.  The
14439debug version of the code includes the debug output trace
14440mechanism and has a much larger code and data size.  Note that
14441these values will vary depending on the efficiency of the compiler
14442and the compiler options used during generation.
14443
14444  Previous Release:
14445
14446    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
14447    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
14448  Current Release:
14449    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
14450    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
14451
14452
144532) Linux:
14454
14455Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
14456correct sleep time in seconds.
14457
14458----------------------------------------
1445914 July 2003.  Summary of changes for version 20030619:
14460
144611) ACPI CA Core Subsystem:
14462
14463Parse SSDTs in order discovered, as opposed to reverse order
14464(Hrvoje Habjanic)
14465
14466Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
14467Klausner,
14468   Nate Lawson)
14469
14470
144712) Linux:
14472
14473Dynamically allocate SDT list (suggested by Andi Kleen)
14474
14475proc function return value cleanups (Andi Kleen)
14476
14477Correctly handle NMI watchdog during long stalls (Andrew Morton)
14478
14479Make it so acpismp=force works (reported by Andrew Morton)
14480
14481
14482----------------------------------------
1448319 June 2003.  Summary of changes for version 20030619:
14484
144851) ACPI CA Core Subsystem:
14486
14487Fix To/FromBCD, eliminating the need for an arch-specific #define.
14488
14489Do not acquire a semaphore in the S5 shutdown path.
14490
14491Fix ex_digits_needed for 0. (Takayoshi Kochi)
14492
14493Fix sleep/stall code reversal. (Andi Kleen)
14494
14495Revert a change having to do with control method calling
14496semantics.
14497
144982) Linux:
14499
14500acpiphp update (Takayoshi Kochi)
14501
14502Export acpi_disabled for sonypi (Stelian Pop)
14503
14504Mention acpismp=force in config help
14505
14506Re-add acpitable.c and acpismp=force. This improves backwards
14507
14508compatibility and also cleans up the code to a significant degree.
14509
14510Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
14511
14512----------------------------------------
1451322 May 2003.  Summary of changes for version 20030522:
14514
145151) ACPI CA Core Subsystem:
14516
14517Found and fixed a reported problem where an AE_NOT_FOUND error
14518occurred occasionally during _BST evaluation.  This turned out to
14519be an Owner ID allocation issue where a called method did not get
14520a new ID assigned to it.  Eventually, (after 64k calls), the Owner
14521ID UINT16 would wraparound so that the ID would be the same as the
14522caller's and the called method would delete the caller's
14523namespace.
14524
14525Implemented extended error reporting for control methods that are
14526aborted due to a run-time exception.  Output includes the exact
14527AML instruction that caused the method abort, a dump of the method
14528locals and arguments at the time of the abort, and a trace of all
14529nested control method calls.
14530
14531Modified the interpreter to allow the creation of buffers of zero
14532length from the AML code. Implemented new code to ensure that no
14533attempt is made to actually allocate a memory buffer (of length
14534zero) - instead, a simple buffer object with a NULL buffer pointer
14535and length zero is created.  A warning is no longer issued when
14536the AML attempts to create a zero-length buffer.
14537
14538Implemented a workaround for the "leading asterisk issue" in
14539_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
14540asterisk is automatically removed if present in any HID, UID, or
14541CID strings.  The iASL compiler will still flag this asterisk as
14542an error, however.
14543
14544Implemented full support for _CID methods that return a package of
14545multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
14546now additionally returns a device _CID list if present.  This
14547required a change to the external interface in order to pass an
14548ACPI_BUFFER object as a parameter since the _CID list is of
14549variable length.
14550
14551Fixed a problem with the new AE_SAME_HANDLER exception where
14552handler initialization code did not know about this exception.
14553
14554Code and Data Size: Current and previous core subsystem library
14555sizes are shown below.  These are the code and data sizes for the
14556acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14557these values do not include any ACPI driver or OSPM code.  The
14558debug version of the code includes the debug output trace
14559mechanism and has a much larger code and data size.  Note that
14560these values will vary depending on the efficiency of the compiler
14561and the compiler options used during generation.
14562
14563  Previous Release (20030509):
14564    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
14565    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
14566  Current Release:
14567    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
14568    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
14569
14570
145712) Linux:
14572
14573Fixed a bug in which we would reinitialize the ACPI interrupt
14574after it was already working, thus disabling all ACPI and the IRQs
14575for any other device sharing the interrupt. (Thanks to Stian
14576Jordet)
14577
14578Toshiba driver update (John Belmonte)
14579
14580Return only 0 or 1 for our interrupt handler status (Andrew
14581Morton)
14582
14583
145843) iASL Compiler:
14585
14586Fixed a reported problem where multiple (nested) ElseIf()
14587statements were not handled correctly by the compiler, resulting
14588in incorrect warnings and incorrect AML code.  This was a problem
14589in both the ASL parser and the code generator.
14590
14591
145924) Documentation:
14593
14594Added changes to existing interfaces, new exception codes, and new
14595text concerning reference count object management versus garbage
14596collection.
14597
14598----------------------------------------
1459909 May 2003.  Summary of changes for version 20030509.
14600
14601
146021) ACPI CA Core Subsystem:
14603
14604Changed the subsystem initialization sequence to hold off
14605installation of address space handlers until the hardware has been
14606initialized and the system has entered ACPI mode.  This is because
14607the installation of space handlers can cause _REG methods to be
14608run.  Previously, the _REG methods could potentially be run before
14609ACPI mode was enabled.
14610
14611Fixed some memory leak issues related to address space handler and
14612notify handler installation.  There were some problems with the
14613reference count mechanism caused by the fact that the handler
14614objects are shared across several namespace objects.
14615
14616Fixed a reported problem where reference counts within the
14617namespace were not properly updated when named objects created by
14618method execution were deleted.
14619
14620Fixed a reported problem where multiple SSDTs caused a deletion
14621issue during subsystem termination.  Restructured the table data
14622structures to simplify the linked lists and the related code.
14623
14624Fixed a problem where the table ID associated with secondary
14625tables (SSDTs) was not being propagated into the namespace objects
14626created by those tables.  This would only present a problem for
14627tables that are unloaded at run-time, however.
14628
14629Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
14630type as the length parameter (instead of UINT32).
14631
14632Solved a long-standing problem where an ALREADY_EXISTS error
14633appears on various systems.  This problem could happen when there
14634are multiple PCI_Config operation regions under a single PCI root
14635bus.  This doesn't happen very frequently, but there are some
14636systems that do this in the ASL.
14637
14638Fixed a reported problem where the internal DeleteNode function
14639was incorrectly handling the case where a namespace node was the
14640first in the parent's child list, and had additional peers (not
14641the only child, but first in the list of children.)
14642
14643Code and Data Size: Current core subsystem library sizes are shown
14644below.  These are the code and data sizes for the acpica.lib
14645produced by the Microsoft Visual C++ 6.0 compiler, and these
14646values do not include any ACPI driver or OSPM code.  The debug
14647version of the code includes the debug output trace mechanism and
14648has a much larger code and data size.  Note that these values will
14649vary depending on the efficiency of the compiler and the compiler
14650options used during generation.
14651
14652  Previous Release
14653    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
14654    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
14655  Current Release:
14656    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
14657    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
14658
14659
146602) Linux:
14661
14662Allow ":" in OS override string (Ducrot Bruno)
14663
14664Kobject fix (Greg KH)
14665
14666
146673 iASL Compiler/Disassembler:
14668
14669Fixed a problem in the generation of the C source code files (AML
14670is emitted in C source statements for BIOS inclusion) where the
14671Ascii dump that appears within a C comment at the end of each line
14672could cause a compile time error if the AML sequence happens to
14673have an open comment or close comment sequence embedded.
14674
14675
14676----------------------------------------
1467724 April 2003.  Summary of changes for version 20030424.
14678
14679
146801) ACPI CA Core Subsystem:
14681
14682Support for big-endian systems has been implemented.  Most of the
14683support has been invisibly added behind big-endian versions of the
14684ACPI_MOVE_* macros.
14685
14686Fixed a problem in AcpiHwDisableGpeBlock() and
14687AcpiHwClearGpeBlock() where an incorrect offset was passed to the
14688low level hardware write routine.  The offset parameter was
14689actually eliminated from the low level read/write routines because
14690they had become obsolete.
14691
14692Fixed a problem where a handler object was deleted twice during
14693the removal of a fixed event handler.
14694
14695
146962) Linux:
14697
14698A fix for SMP systems with link devices was contributed by
14699
14700Compaq's Dan Zink.
14701
14702(2.5) Return whether we handled the interrupt in our IRQ handler.
14703(Linux ISRs no longer return void, so we can propagate the handler
14704return value from the ACPI CA core back to the OS.)
14705
14706
14707
147083) Documentation:
14709
14710The ACPI CA Programmer Reference has been updated to reflect new
14711interfaces and changes to existing interfaces.
14712
14713----------------------------------------
1471428 March 2003.  Summary of changes for version 20030328.
14715
147161) ACPI CA Core Subsystem:
14717
14718The GPE Block Device support has been completed.  New interfaces
14719are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
14720interfaces (enable, disable, clear, getstatus) have been split
14721into separate interfaces for Fixed Events and General Purpose
14722Events (GPEs) in order to support GPE Block Devices properly.
14723
14724Fixed a problem where the error message "Failed to acquire
14725semaphore" would appear during operations on the embedded
14726controller (EC).
14727
14728Code and Data Size: Current core subsystem library sizes are shown
14729below.  These are the code and data sizes for the acpica.lib
14730produced by the Microsoft Visual C++ 6.0 compiler, and these
14731values do not include any ACPI driver or OSPM code.  The debug
14732version of the code includes the debug output trace mechanism and
14733has a much larger code and data size.  Note that these values will
14734vary depending on the efficiency of the compiler and the compiler
14735options used during generation.
14736
14737  Previous Release
14738    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
14739    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
14740  Current Release:
14741    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
14742    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
14743
14744
14745----------------------------------------
1474628 February 2003.  Summary of changes for version 20030228.
14747
14748
147491) ACPI CA Core Subsystem:
14750
14751The GPE handling and dispatch code has been completely overhauled
14752in preparation for support of GPE Block Devices (ID ACPI0006).
14753This affects internal data structures and code only; there should
14754be no differences visible externally.  One new file has been
14755added, evgpeblk.c
14756
14757The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
14758fields that are used to determine the GPE block lengths.  The
14759REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
14760structures are ignored.  This is per the ACPI specification but it
14761isn't very clear.  The full 256 Block 0/1 GPEs are now supported
14762(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
14763
14764In the SCI interrupt handler, removed the read of the PM1_CONTROL
14765register to look at the SCI_EN bit.  On some machines, this read
14766causes an SMI event and greatly slows down SCI events.  (This may
14767in fact be the cause of slow battery status response on some
14768systems.)
14769
14770Fixed a problem where a store of a NULL string to a package object
14771could cause the premature deletion of the object.  This was seen
14772during execution of the battery _BIF method on some systems,
14773resulting in no battery data being returned.
14774
14775Added AcpiWalkResources interface to simplify parsing of resource
14776lists.
14777
14778Code and Data Size: Current core subsystem library sizes are shown
14779below.  These are the code and data sizes for the acpica.lib
14780produced by the Microsoft Visual C++ 6.0 compiler, and these
14781values do not include any ACPI driver or OSPM code.  The debug
14782version of the code includes the debug output trace mechanism and
14783has a much larger code and data size.  Note that these values will
14784vary depending on the efficiency of the compiler and the compiler
14785options used during generation.
14786
14787  Previous Release
14788    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14789    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14790  Current Release:
14791    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
14792    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
14793
14794
147952) Linux
14796
14797S3 fixes (Ole Rohne)
14798
14799Update ACPI PHP driver with to use new acpi_walk_resource API
14800(Bjorn Helgaas)
14801
14802Add S4BIOS support (Pavel Machek)
14803
14804Map in entire table before performing checksum (John Stultz)
14805
14806Expand the mem= cmdline to allow the specification of reserved and
14807ACPI DATA blocks (Pavel Machek)
14808
14809Never use ACPI on VISWS
14810
14811Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
14812
14813Revert a change that allowed P_BLK lengths to be 4 or 5. This is
14814causing us to think that some systems support C2 when they really
14815don't.
14816
14817Do not count processor objects for non-present CPUs (Thanks to
14818Dominik Brodowski)
14819
14820
148213) iASL Compiler:
14822
14823Fixed a problem where ASL include files could not be found and
14824opened.
14825
14826Added support for the _PDC reserved name.
14827
14828
14829----------------------------------------
1483022 January 2003.  Summary of changes for version 20030122.
14831
14832
148331) ACPI CA Core Subsystem:
14834
14835Added a check for constructs of the form:  Store (Local0, Local0)
14836where Local0 is not initialized.  Apparently, some BIOS
14837programmers believe that this is a NOOP.  Since this store doesn't
14838do anything anyway, the new prototype behavior will ignore this
14839error.  This is a case where we can relax the strict checking in
14840the interpreter in the name of compatibility.
14841
14842
148432) Linux
14844
14845The AcpiSrc Source Conversion Utility has been released with the
14846Linux package for the first time.  This is the utility that is
14847used to convert the ACPI CA base source code to the Linux version.
14848
14849(Both) Handle P_BLK lengths shorter than 6 more gracefully
14850
14851(Both) Move more headers to include/acpi, and delete an unused
14852header.
14853
14854(Both) Move drivers/acpi/include directory to include/acpi
14855
14856(Both) Boot functions don't use cmdline, so don't pass it around
14857
14858(Both) Remove include of unused header (Adrian Bunk)
14859
14860(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
14861the
14862former now also includes the latter, acpiphp.h only needs the one,
14863now.
14864
14865(2.5) Make it possible to select method of bios restoring after S3
14866resume. [=> no more ugly ifdefs] (Pavel Machek)
14867
14868(2.5) Make proc write interfaces work (Pavel Machek)
14869
14870(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
14871
14872(2.5) Break out ACPI Perf code into its own module, under cpufreq
14873(Dominik Brodowski)
14874
14875(2.4) S4BIOS support (Ducrot Bruno)
14876
14877(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
14878Visinoni)
14879
14880
148813) iASL Compiler:
14882
14883Added support to disassemble SSDT and PSDTs.
14884
14885Implemented support to obtain SSDTs from the Windows registry if
14886available.
14887
14888
14889----------------------------------------
1489009 January 2003.  Summary of changes for version 20030109.
14891
148921) ACPI CA Core Subsystem:
14893
14894Changed the behavior of the internal Buffer-to-String conversion
14895function.  The current ACPI specification states that the contents
14896of the buffer are "converted to a string of two-character
14897hexadecimal numbers, each separated by a space".  Unfortunately,
14898this definition is not backwards compatible with existing ACPI 1.0
14899implementations (although the behavior was not defined in the ACPI
149001.0 specification).  The new behavior simply copies data from the
14901buffer to the string until a null character is found or the end of
14902the buffer is reached.  The new String object is always null
14903terminated.  This problem was seen during the generation of _BIF
14904battery data where incorrect strings were returned for battery
14905type, etc.  This will also require an errata to the ACPI
14906specification.
14907
14908Renamed all instances of NATIVE_UINT and NATIVE_INT to
14909ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
14910
14911Copyright in all module headers (both Linux and non-Linux) has be
14912updated to 2003.
14913
14914Code and Data Size: Current core subsystem library sizes are shown
14915below.  These are the code and data sizes for the acpica.lib
14916produced by the Microsoft Visual C++ 6.0 compiler, and these
14917values do not include any ACPI driver or OSPM code.  The debug
14918version of the code includes the debug output trace mechanism and
14919has a much larger code and data size.  Note that these values will
14920vary depending on the efficiency of the compiler and the compiler
14921options used during generation.
14922
14923  Previous Release
14924    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14925    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14926  Current Release:
14927    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14928    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14929
14930
149312) Linux
14932
14933Fixed an oops on module insertion/removal (Matthew Tippett)
14934
14935(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
14936
14937(2.5) Replace pr_debug (Randy Dunlap)
14938
14939(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
14940
14941(Both) Eliminate spawning of thread from timer callback, in favor
14942of schedule_work()
14943
14944(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
14945
14946(Both) Added define for Fixed Function HW region (Matthew Wilcox)
14947
14948(Both) Add missing statics to button.c (Pavel Machek)
14949
14950Several changes have been made to the source code translation
14951utility that generates the Linux Code in order to make the code
14952more "Linux-like":
14953
14954All typedefs on structs and unions have been removed in keeping
14955with the Linux coding style.
14956
14957Removed the non-Linux SourceSafe module revision number from each
14958module header.
14959
14960Completed major overhaul of symbols to be lowercased for linux.
14961Doubled the number of symbols that are lowercased.
14962
14963Fixed a problem where identifiers within procedure headers and
14964within quotes were not fully lower cased (they were left with a
14965starting capital.)
14966
14967Some C macros whose only purpose is to allow the generation of 16-
14968bit code are now completely removed in the Linux code, increasing
14969readability and maintainability.
14970
14971----------------------------------------
14972
1497312 December 2002.  Summary of changes for version 20021212.
14974
14975
149761) ACPI CA Core Subsystem:
14977
14978Fixed a problem where the creation of a zero-length AML Buffer
14979would cause a fault.
14980
14981Fixed a problem where a Buffer object that pointed to a static AML
14982buffer (in an ACPI table) could inadvertently be deleted, causing
14983memory corruption.
14984
14985Fixed a problem where a user buffer (passed in to the external
14986ACPI CA interfaces) could be overwritten if the buffer was too
14987small to complete the operation, causing memory corruption.
14988
14989Fixed a problem in the Buffer-to-String conversion code where a
14990string of length one was always returned, regardless of the size
14991of the input Buffer object.
14992
14993Removed the NATIVE_CHAR data type across the entire source due to
14994lack of need and lack of consistent use.
14995
14996Code and Data Size: Current core subsystem library sizes are shown
14997below.  These are the code and data sizes for the acpica.lib
14998produced by the Microsoft Visual C++ 6.0 compiler, and these
14999values do not include any ACPI driver or OSPM code.  The debug
15000version of the code includes the debug output trace mechanism and
15001has a much larger code and data size.  Note that these values will
15002vary depending on the efficiency of the compiler and the compiler
15003options used during generation.
15004
15005  Previous Release
15006    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
15007    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
15008  Current Release:
15009    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
15010    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
15011
15012
15013----------------------------------------
1501405 December 2002.  Summary of changes for version 20021205.
15015
150161) ACPI CA Core Subsystem:
15017
15018Fixed a problem where a store to a String or Buffer object could
15019cause corruption of the DSDT if the object type being stored was
15020the same as the target object type and the length of the object
15021being stored was equal to or smaller than the original (existing)
15022target object.  This was seen to cause corruption of battery _BIF
15023buffers if the _BIF method modified the buffer on the fly.
15024
15025Fixed a problem where an internal error was generated if a control
15026method invocation was used in an OperationRegion, Buffer, or
15027Package declaration.  This was caused by the deferred parsing of
15028the control method and thus the deferred creation of the internal
15029method object.  The solution to this problem was to create the
15030internal method object at the moment the method is encountered in
15031the first pass - so that subsequent references to the method will
15032able to obtain the required parameter count and thus properly
15033parse the method invocation.  This problem presented itself as an
15034AE_AML_INTERNAL during the pass 1 parse phase during table load.
15035
15036Fixed a problem where the internal String object copy routine did
15037not always allocate sufficient memory for the target String object
15038and caused memory corruption.  This problem was seen to cause
15039"Allocation already present in list!" errors as memory allocation
15040became corrupted.
15041
15042Implemented a new function for the evaluation of namespace objects
15043that allows the specification of the allowable return object
15044types.  This simplifies a lot of code that checks for a return
15045object of one or more specific objects returned from the
15046evaluation (such as _STA, etc.)  This may become and external
15047function if it would be useful to ACPI-related drivers.
15048
15049Completed another round of prefixing #defines with "ACPI_" for
15050clarity.
15051
15052Completed additional code restructuring to allow more modular
15053linking for iASL compiler and AcpiExec.  Several files were split
15054creating new files.  New files:  nsparse.c dsinit.c evgpe.c
15055
15056Implemented an abort mechanism to terminate an executing control
15057method via the AML debugger.  This feature is useful for debugging
15058control methods that depend (wait) for specific hardware
15059responses.
15060
15061Code and Data Size: Current core subsystem library sizes are shown
15062below.  These are the code and data sizes for the acpica.lib
15063produced by the Microsoft Visual C++ 6.0 compiler, and these
15064values do not include any ACPI driver or OSPM code.  The debug
15065version of the code includes the debug output trace mechanism and
15066has a much larger code and data size.  Note that these values will
15067vary depending on the efficiency of the compiler and the compiler
15068options used during generation.
15069
15070  Previous Release
15071    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15072    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
15073  Current Release:
15074    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
15075    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
15076
15077
150782) iASL Compiler/Disassembler
15079
15080Fixed a compiler code generation problem for "Interrupt" Resource
15081Descriptors.  If specified in the ASL, the optional "Resource
15082Source Index" and "Resource Source" fields were not inserted into
15083the correct location within the AML resource descriptor, creating
15084an invalid descriptor.
15085
15086Fixed a disassembler problem for "Interrupt" resource descriptors.
15087The optional "Resource Source Index" and "Resource Source" fields
15088were ignored.
15089
15090
15091----------------------------------------
1509222 November 2002.  Summary of changes for version 20021122.
15093
15094
150951) ACPI CA Core Subsystem:
15096
15097Fixed a reported problem where an object stored to a Method Local
15098or Arg was not copied to a new object during the store - the
15099object pointer was simply copied to the Local/Arg.  This caused
15100all subsequent operations on the Local/Arg to also affect the
15101original source of the store operation.
15102
15103Fixed a problem where a store operation to a Method Local or Arg
15104was not completed properly if the Local/Arg contained a reference
15105(from RefOf) to a named field.  The general-purpose store-to-
15106namespace-node code is now used so that this case is handled
15107automatically.
15108
15109Fixed a problem where the internal object copy routine would cause
15110a protection fault if the object being copied was a Package and
15111contained either 1) a NULL package element or 2) a nested sub-
15112package.
15113
15114Fixed a problem with the GPE initialization that resulted from an
15115ambiguity in the ACPI specification.  One section of the
15116specification states that both the address and length of the GPE
15117block must be zero if the block is not supported.  Another section
15118implies that only the address need be zero if the block is not
15119supported.  The code has been changed so that both the address and
15120the length must be non-zero to indicate a valid GPE block (i.e.,
15121if either the address or the length is zero, the GPE block is
15122invalid.)
15123
15124Code and Data Size: Current core subsystem library sizes are shown
15125below.  These are the code and data sizes for the acpica.lib
15126produced by the Microsoft Visual C++ 6.0 compiler, and these
15127values do not include any ACPI driver or OSPM code.  The debug
15128version of the code includes the debug output trace mechanism and
15129has a much larger code and data size.  Note that these values will
15130vary depending on the efficiency of the compiler and the compiler
15131options used during generation.
15132
15133  Previous Release
15134    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
15135    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
15136  Current Release:
15137    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15138    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
15139
15140
151412) Linux
15142
15143Cleaned up EC driver. Exported an external EC read/write
15144interface. By going through this, other drivers (most notably
15145sonypi) will be able to serialize access to the EC.
15146
15147
151483) iASL Compiler/Disassembler
15149
15150Implemented support to optionally generate include files for both
15151ASM and C (the -i switch).  This simplifies BIOS development by
15152automatically creating include files that contain external
15153declarations for the symbols that are created within the
15154
15155(optionally generated) ASM and C AML source files.
15156
15157
15158----------------------------------------
1515915 November 2002.  Summary of changes for version 20021115.
15160
151611) ACPI CA Core Subsystem:
15162
15163Fixed a memory leak problem where an error during resolution of
15164
15165method arguments during a method invocation from another method
15166failed to cleanup properly by deleting all successfully resolved
15167argument objects.
15168
15169Fixed a problem where the target of the Index() operator was not
15170correctly constructed if the source object was a package.  This
15171problem has not been detected because the use of a target operand
15172with Index() is very rare.
15173
15174Fixed a problem with the Index() operator where an attempt was
15175made to delete the operand objects twice.
15176
15177Fixed a problem where an attempt was made to delete an operand
15178twice during execution of the CondRefOf() operator if the target
15179did not exist.
15180
15181Implemented the first of perhaps several internal create object
15182functions that create and initialize a specific object type.  This
15183consolidates duplicated code wherever the object is created, thus
15184shrinking the size of the subsystem.
15185
15186Implemented improved debug/error messages for errors that occur
15187during nested method invocations.  All executing method pathnames
15188are displayed (with the error) as the call stack is unwound - thus
15189simplifying debug.
15190
15191Fixed a problem introduced in the 10/02 release that caused
15192premature deletion of a buffer object if a buffer was used as an
15193ASL operand where an integer operand is required (Thus causing an
15194implicit object conversion from Buffer to Integer.)  The change in
15195the 10/02 release was attempting to fix a memory leak (albeit
15196incorrectly.)
15197
15198Code and Data Size: Current core subsystem library sizes are shown
15199below.  These are the code and data sizes for the acpica.lib
15200produced by the Microsoft Visual C++ 6.0 compiler, and these
15201values do not include any ACPI driver or OSPM code.  The debug
15202version of the code includes the debug output trace mechanism and
15203has a much larger code and data size.  Note that these values will
15204vary depending on the efficiency of the compiler and the compiler
15205options used during generation.
15206
15207  Previous Release
15208    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
15209    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
15210  Current Release:
15211    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
15212    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
15213
15214
152152) Linux
15216
15217Changed the implementation of the ACPI semaphores to use down()
15218instead of down_interruptable().  It is important that the
15219execution of ACPI control methods not be interrupted by signals.
15220Methods must run to completion, or the system may be left in an
15221unknown/unstable state.
15222
15223Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
15224(Shawn Starr)
15225
15226
152273) iASL Compiler/Disassembler
15228
15229
15230Changed the default location of output files.  All output files
15231are now placed in the current directory by default instead of in
15232the directory of the source file.  This change may affect some
15233existing makefiles, but it brings the behavior of the compiler in
15234line with other similar tools.  The location of the output files
15235can be overridden with the -p command line switch.
15236
15237
15238----------------------------------------
1523911 November 2002.  Summary of changes for version 20021111.
15240
15241
152420) ACPI Specification 2.0B is released and is now available at:
15243http://www.acpi.info/index.html
15244
15245
152461) ACPI CA Core Subsystem:
15247
15248Implemented support for the ACPI 2.0 SMBus Operation Regions.
15249This includes the early detection and handoff of the request to
15250the SMBus region handler (avoiding all of the complex field
15251support code), and support for the bidirectional return packet
15252from an SMBus write operation.  This paves the way for the
15253development of SMBus drivers in each host operating system.
15254
15255Fixed a problem where the semaphore WAIT_FOREVER constant was
15256defined as 32 bits, but must be 16 bits according to the ACPI
15257specification.  This had the side effect of causing ASL
15258Mutex/Event timeouts even though the ASL code requested a wait
15259forever.  Changed all internal references to the ACPI timeout
15260parameter to 16 bits to prevent future problems.  Changed the name
15261of WAIT_FOREVER to ACPI_WAIT_FOREVER.
15262
15263Code and Data Size: Current core subsystem library sizes are shown
15264below.  These are the code and data sizes for the acpica.lib
15265produced by the Microsoft Visual C++ 6.0 compiler, and these
15266values do not include any ACPI driver or OSPM code.  The debug
15267version of the code includes the debug output trace mechanism and
15268has a much larger code and data size.  Note that these values will
15269vary depending on the efficiency of the compiler and the compiler
15270options used during generation.
15271
15272  Previous Release
15273    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15274    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
15275  Current Release:
15276    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
15277    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
15278
15279
152802) Linux
15281
15282Module loading/unloading fixes (John Cagle)
15283
15284
152853) iASL Compiler/Disassembler
15286
15287Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
15288
15289Implemented support for the disassembly of all SMBus protocol
15290keywords (SMBQuick, SMBWord, etc.)
15291
15292----------------------------------------
1529301 November 2002.  Summary of changes for version 20021101.
15294
15295
152961) ACPI CA Core Subsystem:
15297
15298Fixed a problem where platforms that have a GPE1 block but no GPE0
15299block were not handled correctly.  This resulted in a "GPE
15300overlap" error message.  GPE0 is no longer required.
15301
15302Removed code added in the previous release that inserted nodes
15303into the namespace in alphabetical order.  This caused some side-
15304effects on various machines.  The root cause of the problem is
15305still under investigation since in theory, the internal ordering
15306of the namespace nodes should not matter.
15307
15308
15309Enhanced error reporting for the case where a named object is not
15310found during control method execution.  The full ACPI namepath
15311(name reference) of the object that was not found is displayed in
15312this case.
15313
15314Note: as a result of the overhaul of the namespace object types in
15315the previous release, the namespace nodes for the predefined
15316scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
15317instead of ACPI_TYPE_ANY.  This simplifies the namespace
15318management code but may affect code that walks the namespace tree
15319looking for specific object types.
15320
15321Code and Data Size: Current core subsystem library sizes are shown
15322below.  These are the code and data sizes for the acpica.lib
15323produced by the Microsoft Visual C++ 6.0 compiler, and these
15324values do not include any ACPI driver or OSPM code.  The debug
15325version of the code includes the debug output trace mechanism and
15326has a much larger code and data size.  Note that these values will
15327vary depending on the efficiency of the compiler and the compiler
15328options used during generation.
15329
15330  Previous Release
15331    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
15332    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
15333  Current Release:
15334    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15335    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
15336
15337
153382) Linux
15339
15340Fixed a problem introduced in the previous release where the
15341Processor and Thermal objects were not recognized and installed in
15342/proc.  This was related to the scope type change described above.
15343
15344
153453) iASL Compiler/Disassembler
15346
15347Implemented the -g option to get all of the required ACPI tables
15348from the registry and save them to files (Windows version of the
15349compiler only.)  The required tables are the FADT, FACS, and DSDT.
15350
15351Added ACPI table checksum validation during table disassembly in
15352order to catch corrupted tables.
15353
15354
15355----------------------------------------
1535622 October 2002.  Summary of changes for version 20021022.
15357
153581) ACPI CA Core Subsystem:
15359
15360Implemented a restriction on the Scope operator that the target
15361must already exist in the namespace at the time the operator is
15362encountered (during table load or method execution).  In other
15363words, forward references are not allowed and Scope() cannot
15364create a new object. This changes the previous behavior where the
15365interpreter would create the name if not found.  This new behavior
15366correctly enables the search-to-root algorithm during namespace
15367lookup of the target name.  Because of this upsearch, this fixes
15368the known Compaq _SB_.OKEC problem and makes both the AML
15369interpreter and iASL compiler compatible with other ACPI
15370implementations.
15371
15372Completed a major overhaul of the internal ACPI object types for
15373the ACPI Namespace and the associated operand objects.  Many of
15374these types had become obsolete with the introduction of the two-
15375pass namespace load.  This cleanup simplifies the code and makes
15376the entire namespace load mechanism much clearer and easier to
15377understand.
15378
15379Improved debug output for tracking scope opening/closing to help
15380diagnose scoping issues.  The old scope name as well as the new
15381scope name are displayed.  Also improved error messages for
15382problems with ASL Mutex objects and error messages for GPE
15383problems.
15384
15385Cleaned up the namespace dump code, removed obsolete code.
15386
15387All string output (for all namespace/object dumps) now uses the
15388common ACPI string output procedure which handles escapes properly
15389and does not emit non-printable characters.
15390
15391Fixed some issues with constants in the 64-bit version of the
15392local C library (utclib.c)
15393
15394
153952) Linux
15396
15397EC Driver:  No longer attempts to acquire the Global Lock at
15398interrupt level.
15399
15400
154013) iASL Compiler/Disassembler
15402
15403Implemented ACPI 2.0B grammar change that disallows all Type 1 and
154042 opcodes outside of a control method.  This means that the
15405"executable" operators (versus the "namespace" operators) cannot
15406be used at the table level; they can only be used within a control
15407method.
15408
15409Implemented the restriction on the Scope() operator where the
15410target must already exist in the namespace at the time the
15411operator is encountered (during ASL compilation). In other words,
15412forward references are not allowed and Scope() cannot create a new
15413object.  This makes the iASL compiler compatible with other ACPI
15414implementations and makes the Scope() implementation adhere to the
15415ACPI specification.
15416
15417Fixed a problem where namepath optimization for the Alias operator
15418was optimizing the wrong path (of the two namepaths.)  This caused
15419a "Missing alias link" error message.
15420
15421Fixed a problem where an "unknown reserved name" warning could be
15422incorrectly generated for names like "_SB" when the trailing
15423underscore is not used in the original ASL.
15424
15425Fixed a problem where the reserved name check did not handle
15426NamePaths with multiple NameSegs correctly.  The first nameseg of
15427the NamePath was examined instead of the last NameSeg.
15428
15429
15430----------------------------------------
15431
1543202 October 2002.  Summary of changes for this release.
15433
15434
154351) ACPI CA Core Subsystem version 20021002:
15436
15437Fixed a problem where a store/copy of a string to an existing
15438string did not always set the string length properly in the String
15439object.
15440
15441Fixed a reported problem with the ToString operator where the
15442behavior was identical to the ToHexString operator instead of just
15443simply converting a raw buffer to a string data type.
15444
15445Fixed a problem where CopyObject and the other "explicit"
15446conversion operators were not updating the internal namespace node
15447type as part of the store operation.
15448
15449Fixed a memory leak during implicit source operand conversion
15450where the original object was not deleted if it was converted to a
15451new object of a different type.
15452
15453Enhanced error messages for all problems associated with namespace
15454lookups.  Common procedure generates and prints the lookup name as
15455well as the formatted status.
15456
15457Completed implementation of a new design for the Alias support
15458within the namespace.  The existing design did not handle the case
15459where a new object was assigned to one of the two names due to the
15460use of an explicit conversion operator, resulting in the two names
15461pointing to two different objects.  The new design simply points
15462the Alias name to the original name node - not to the object.
15463This results in a level of indirection that must be handled in the
15464name resolution mechanism.
15465
15466Code and Data Size: Current core subsystem library sizes are shown
15467below.  These are the code and data sizes for the acpica.lib
15468produced by the Microsoft Visual C++ 6.0 compiler, and these
15469values do not include any ACPI driver or OSPM code.  The debug
15470version of the code includes the debug output trace mechanism and
15471has a larger code and data size.  Note that these values will vary
15472depending on the efficiency of the compiler and the compiler
15473options used during generation.
15474
15475  Previous Release
15476    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
15477    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
15478  Current Release:
15479    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
15480    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
15481
15482
154832) Linux
15484
15485Initialize thermal driver's timer before it is used. (Knut
15486Neumann)
15487
15488Allow handling negative celsius values. (Kochi Takayoshi)
15489
15490Fix thermal management and make trip points. R/W (Pavel Machek)
15491
15492Fix /proc/acpi/sleep. (P. Christeas)
15493
15494IA64 fixes. (David Mosberger)
15495
15496Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
15497
15498Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
15499Brodowski)
15500
15501
155023) iASL Compiler/Disassembler
15503
15504Clarified some warning/error messages.
15505
15506
15507----------------------------------------
1550818 September 2002.  Summary of changes for this release.
15509
15510
155111) ACPI CA Core Subsystem version 20020918:
15512
15513Fixed a reported problem with reference chaining (via the Index()
15514and RefOf() operators) in the ObjectType() and SizeOf() operators.
15515The definition of these operators includes the dereferencing of
15516all chained references to return information on the base object.
15517
15518Fixed a problem with stores to indexed package elements - the
15519existing code would not complete the store if an "implicit
15520conversion" was not performed.  In other words, if the existing
15521object (package element) was to be replaced completely, the code
15522didn't handle this case.
15523
15524Relaxed typechecking on the ASL "Scope" operator to allow the
15525target name to refer to an object of type Integer, String, or
15526Buffer, in addition to the scoping object types (Device,
15527predefined Scopes, Processor, PowerResource, and ThermalZone.)
15528This allows existing AML code that has workarounds for a bug in
15529Windows to function properly.  A warning is issued, however.  This
15530affects both the AML interpreter and the iASL compiler. Below is
15531an example of this type of ASL code:
15532
15533      Name(DEB,0x00)
15534      Scope(DEB)
15535      {
15536
15537Fixed some reported problems with 64-bit integer support in the
15538local implementation of C library functions (clib.c)
15539
15540
155412) Linux
15542
15543Use ACPI fix map region instead of IOAPIC region, since it is
15544undefined in non-SMP.
15545
15546Ensure that the SCI has the proper polarity and trigger, even on
15547systems that do not have an interrupt override entry in the MADT.
15548
155492.5 big driver reorganization (Pat Mochel)
15550
15551Use early table mapping code from acpitable.c (Andi Kleen)
15552
15553New blacklist entries (Andi Kleen)
15554
15555Blacklist improvements. Split blacklist code out into a separate
15556file. Move checking the blacklist to very early. Previously, we
15557would use ACPI tables, and then halfway through init, check the
15558blacklist -- too late. Now, it's early enough to completely fall-
15559back to non-ACPI.
15560
15561
155623) iASL Compiler/Disassembler version 20020918:
15563
15564Fixed a problem where the typechecking code didn't know that an
15565alias could point to a method.  In other words, aliases were not
15566being dereferenced during typechecking.
15567
15568
15569----------------------------------------
1557029 August 2002.  Summary of changes for this release.
15571
155721) ACPI CA Core Subsystem Version 20020829:
15573
15574If the target of a Scope() operator already exists, it must be an
15575object type that actually opens a scope -- such as a Device,
15576Method, Scope, etc.  This is a fatal runtime error.  Similar error
15577check has been added to the iASL compiler also.
15578
15579Tightened up the namespace load to disallow multiple names in the
15580same scope.  This previously was allowed if both objects were of
15581the same type.  (i.e., a lookup was the same as entering a new
15582name).
15583
15584
155852) Linux
15586
15587Ensure that the ACPI interrupt has the proper trigger and
15588polarity.
15589
15590local_irq_disable is extraneous. (Matthew Wilcox)
15591
15592Make "acpi=off" actually do what it says, and not use the ACPI
15593interpreter *or* the tables.
15594
15595Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
15596Takayoshi)
15597
15598
155993) iASL Compiler/Disassembler  Version 20020829:
15600
15601Implemented namepath optimization for name declarations.  For
15602example, a declaration like "Method (\_SB_.ABCD)" would get
15603optimized to "Method (ABCD)" if the declaration is within the
15604\_SB_ scope.  This optimization is in addition to the named
15605reference path optimization first released in the previous
15606version. This would seem to complete all possible optimizations
15607for namepaths within the ASL/AML.
15608
15609If the target of a Scope() operator already exists, it must be an
15610object type that actually opens a scope -- such as a Device,
15611Method, Scope, etc.
15612
15613Implemented a check and warning for unreachable code in the same
15614block below a Return() statement.
15615
15616Fixed a problem where the listing file was not generated if the
15617compiler aborted if the maximum error count was exceeded (200).
15618
15619Fixed a problem where the typechecking of method return values was
15620broken.  This includes the check for a return value when the
15621method is invoked as a TermArg (a return value is expected.)
15622
15623Fixed a reported problem where EOF conditions during a quoted
15624string or comment caused a fault.
15625
15626
15627----------------------------------------
1562815 August 2002.  Summary of changes for this release.
15629
156301) ACPI CA Core Subsystem Version 20020815:
15631
15632Fixed a reported problem where a Store to a method argument that
15633contains a reference did not perform the indirect store correctly.
15634This problem was created during the conversion to the new
15635reference object model - the indirect store to a method argument
15636code was not updated to reflect the new model.
15637
15638Reworked the ACPI mode change code to better conform to ACPI 2.0,
15639handle corner cases, and improve code legibility (Kochi Takayoshi)
15640
15641Fixed a problem with the pathname parsing for the carat (^)
15642prefix.  The heavy use of the carat operator by the new namepath
15643optimization in the iASL compiler uncovered a problem with the AML
15644interpreter handling of this prefix.  In the case where one or
15645more carats precede a single nameseg, the nameseg was treated as
15646standalone and the search rule (to root) was inadvertently
15647applied.  This could cause both the iASL compiler and the
15648interpreter to find the wrong object or to miss the error that
15649should occur if the object does not exist at that exact pathname.
15650
15651Found and fixed the problem where the HP Pavilion DSDT would not
15652load.  This was a relatively minor tweak to the table loading code
15653(a problem caused by the unexpected encounter with a method
15654invocation not within a control method), but it does not solve the
15655overall issue of the execution of AML code at the table level.
15656This investigation is still ongoing.
15657
15658Code and Data Size: Current core subsystem library sizes are shown
15659below.  These are the code and data sizes for the acpica.lib
15660produced by the Microsoft Visual C++ 6.0 compiler, and these
15661values do not include any ACPI driver or OSPM code.  The debug
15662version of the code includes the debug output trace mechanism and
15663has a larger code and data size.  Note that these values will vary
15664depending on the efficiency of the compiler and the compiler
15665options used during generation.
15666
15667  Previous Release
15668    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
15669    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
15670  Current Release:
15671    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
15672    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
15673
15674
156752) Linux
15676
15677Remove redundant slab.h include (Brad Hards)
15678
15679Fix several bugs in thermal.c (Herbert Nachtnebel)
15680
15681Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
15682
15683Change acpi_system_suspend to use updated irq functions (Pavel
15684Machek)
15685
15686Export acpi_get_firmware_table (Matthew Wilcox)
15687
15688Use proper root proc entry for ACPI (Kochi Takayoshi)
15689
15690Fix early-boot table parsing (Bjorn Helgaas)
15691
15692
156933) iASL Compiler/Disassembler
15694
15695Reworked the compiler options to make them more consistent and to
15696use two-letter options where appropriate.  We were running out of
15697sensible letters.   This may break some makefiles, so check the
15698current options list by invoking the compiler with no parameters.
15699
15700Completed the design and implementation of the ASL namepath
15701optimization option for the compiler.  This option optimizes all
15702references to named objects to the shortest possible path.  The
15703first attempt tries to utilize a single nameseg (4 characters) and
15704the "search-to-root" algorithm used by the interpreter.  If that
15705cannot be used (because either the name is not in the search path
15706or there is a conflict with another object with the same name),
15707the pathname is optimized using the carat prefix (usually a
15708shorter string than specifying the entire path from the root.)
15709
15710Implemented support to obtain the DSDT from the Windows registry
15711(when the disassembly option is specified with no input file).
15712Added this code as the implementation for AcpiOsTableOverride in
15713the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
15714utility) to scan memory for the DSDT to the AcpiOsTableOverride
15715function in the DOS OSL to make the disassembler truly OS
15716independent.
15717
15718Implemented a new option to disassemble and compile in one step.
15719When used without an input filename, this option will grab the
15720DSDT from the local machine, disassemble it, and compile it in one
15721step.
15722
15723Added a warning message for invalid escapes (a backslash followed
15724by any character other than the allowable escapes).  This catches
15725the quoted string error "\_SB_" (which should be "\\_SB_" ).
15726
15727Also, there are numerous instances in the ACPI specification where
15728this error occurs.
15729
15730Added a compiler option to disable all optimizations.  This is
15731basically the "compatibility mode" because by using this option,
15732the AML code will come out exactly the same as other ASL
15733compilers.
15734
15735Added error messages for incorrectly ordered dependent resource
15736functions.  This includes: missing EndDependentFn macro at end of
15737dependent resource list, nested dependent function macros (both
15738start and end), and missing StartDependentFn macro.  These are
15739common errors that should be caught at compile time.
15740
15741Implemented _OSI support for the disassembler and compiler.  _OSI
15742must be included in the namespace for proper disassembly (because
15743the disassembler must know the number of arguments.)
15744
15745Added an "optimization" message type that is optional (off by
15746default).  This message is used for all optimizations - including
15747constant folding, integer optimization, and namepath optimization.
15748
15749----------------------------------------
1575025 July 2002.  Summary of changes for this release.
15751
15752
157531) ACPI CA Core Subsystem Version 20020725:
15754
15755The AML Disassembler has been enhanced to produce compilable ASL
15756code and has been integrated into the iASL compiler (see below) as
15757well as the single-step disassembly for the AML debugger and the
15758disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
15759resource templates and macros are fully supported.  The
15760disassembler has been tested on over 30 different AML files,
15761producing identical AML when the resulting disassembled ASL file
15762is recompiled with the same ASL compiler.
15763
15764Modified the Resource Manager to allow zero interrupts and zero
15765dma channels during the GetCurrentResources call.  This was
15766causing problems on some platforms.
15767
15768Added the AcpiOsRedirectOutput interface to the OSL to simplify
15769output redirection for the AcpiOsPrintf and AcpiOsVprintf
15770interfaces.
15771
15772Code and Data Size: Current core subsystem library sizes are shown
15773below.  These are the code and data sizes for the acpica.lib
15774produced by the Microsoft Visual C++ 6.0 compiler, and these
15775values do not include any ACPI driver or OSPM code.  The debug
15776version of the code includes the debug output trace mechanism and
15777has a larger code and data size.  Note that these values will vary
15778depending on the efficiency of the compiler and the compiler
15779options used during generation.
15780
15781  Previous Release
15782    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
15783    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
15784  Current Release:
15785    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
15786    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
15787
15788
157892) Linux
15790
15791Fixed a panic in the EC driver (Dominik Brodowski)
15792
15793Implemented checksum of the R/XSDT itself during Linux table scan
15794(Richard Schaal)
15795
15796
157973) iASL compiler
15798
15799The AML disassembler is integrated into the compiler.  The "-d"
15800option invokes the disassembler  to completely disassemble an
15801input AML file, producing as output a text ASL file with the
15802extension ".dsl" (to avoid name collisions with existing .asl
15803source files.)  A future enhancement will allow the disassembler
15804to obtain the BIOS DSDT from the registry under Windows.
15805
15806Fixed a problem with the VendorShort and VendorLong resource
15807descriptors where an invalid AML sequence was created.
15808
15809Implemented a fix for BufferData term in the ASL parser.  It was
15810inadvertently defined twice, allowing invalid syntax to pass and
15811causing reduction conflicts.
15812
15813Fixed a problem where the Ones opcode could get converted to a
15814value of zero if "Ones" was used where a byte, word or dword value
15815was expected.  The 64-bit value is now truncated to the correct
15816size with the correct value.
15817
15818
15819
15820----------------------------------------
1582102 July 2002.  Summary of changes for this release.
15822
15823
158241) ACPI CA Core Subsystem Version 20020702:
15825
15826The Table Manager code has been restructured to add several new
15827features.  Tables that are not required by the core subsystem
15828(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
15829validated in any way and are returned from AcpiGetFirmwareTable if
15830requested.  The AcpiOsTableOverride interface is now called for
15831each table that is loaded by the subsystem in order to allow the
15832host to override any table it chooses.  Previously, only the DSDT
15833could be overridden.  Added one new files, tbrsdt.c and
15834tbgetall.c.
15835
15836Fixed a problem with the conversion of internal package objects to
15837external objects (when a package is returned from a control
15838method.)  The return buffer length was set to zero instead of the
15839proper length of the package object.
15840
15841Fixed a reported problem with the use of the RefOf and DeRefOf
15842operators when passing reference arguments to control methods.  A
15843new type of Reference object is used internally for references
15844produced by the RefOf operator.
15845
15846Added additional error messages in the Resource Manager to explain
15847AE_BAD_DATA errors when they occur during resource parsing.
15848
15849Split the AcpiEnableSubsystem into two primitives to enable a
15850finer granularity initialization sequence.  These two calls should
15851be called in this order: AcpiEnableSubsystem (flags),
15852AcpiInitializeObjects (flags).  The flags parameter remains the
15853same.
15854
15855
158562) Linux
15857
15858Updated the ACPI utilities module to understand the new style of
15859fully resolved package objects that are now returned from the core
15860subsystem.  This eliminates errors of the form:
15861
15862    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
15863    acpi_utils-0430 [145] acpi_evaluate_reference:
15864        Invalid element in package (not a device reference)
15865
15866The method evaluation utility uses the new buffer allocation
15867scheme instead of calling AcpiEvaluate Object twice.
15868
15869Added support for ECDT. This allows the use of the Embedded
15870
15871Controller before the namespace has been fully initialized, which
15872is necessary for ACPI 2.0 support, and for some laptops to
15873initialize properly. (Laptops using ECDT are still rare, so only
15874limited testing was performed of the added functionality.)
15875
15876Fixed memory leaks in the EC driver.
15877
15878Eliminated a brittle code structure in acpi_bus_init().
15879
15880Eliminated the acpi_evaluate() helper function in utils.c. It is
15881no longer needed since acpi_evaluate_object can optionally
15882allocate memory for the return object.
15883
15884Implemented fix for keyboard hang when getting battery readings on
15885some systems (Stephen White)
15886
15887PCI IRQ routing update (Dominik Brodowski)
15888
15889Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
15890support
15891
15892----------------------------------------
1589311 June 2002.  Summary of changes for this release.
15894
15895
158961) ACPI CA Core Subsystem Version 20020611:
15897
15898Fixed a reported problem where constants such as Zero and One
15899appearing within _PRT packages were not handled correctly within
15900the resource manager code.  Originally reported against the ASL
15901compiler because the code generator now optimizes integers to
15902their minimal AML representation (i.e. AML constants if possible.)
15903The _PRT code now handles all AML constant opcodes correctly
15904(Zero, One, Ones, Revision).
15905
15906Fixed a problem with the Concatenate operator in the AML
15907interpreter where a buffer result object was incorrectly marked as
15908not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
15909
15910All package sub-objects are now fully resolved before they are
15911returned from the external ACPI interfaces.  This means that name
15912strings are resolved to object handles, and constant operators
15913(Zero, One, Ones, Revision) are resolved to Integers.
15914
15915Implemented immediate resolution of the AML Constant opcodes
15916(Zero, One, Ones, Revision) to Integer objects upon detection
15917within the AML stream. This has simplified and reduced the
15918generated code size of the subsystem by eliminating about 10
15919switch statements for these constants (which previously were
15920contained in Reference objects.)  The complicating issues are that
15921the Zero opcode is used as a "placeholder" for unspecified
15922optional target operands and stores to constants are defined to be
15923no-ops.
15924
15925Code and Data Size: Current core subsystem library sizes are shown
15926below. These are the code and data sizes for the acpica.lib
15927produced by the Microsoft Visual C++ 6.0 compiler, and these
15928values do not include any ACPI driver or OSPM code.  The debug
15929version of the code includes the debug output trace mechanism and
15930has a larger code and data size.  Note that these values will vary
15931depending on the efficiency of the compiler and the compiler
15932options used during generation.
15933
15934  Previous Release
15935    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
15936    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
15937  Current Release:
15938    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
15939    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
15940
15941
159422) Linux
15943
15944
15945Added preliminary support for obtaining _TRA data for PCI root
15946bridges (Bjorn Helgaas).
15947
15948
159493) iASL Compiler Version X2046:
15950
15951Fixed a problem where the "_DDN" reserved name was defined to be a
15952control method with one argument.  There are no arguments, and
15953_DDN does not have to be a control method.
15954
15955Fixed a problem with the Linux version of the compiler where the
15956source lines printed with error messages were the wrong lines.
15957This turned out to be the "LF versus CR/LF" difference between
15958Windows and Unix.  This appears to be the longstanding issue
15959concerning listing output and error messages.
15960
15961Fixed a problem with the Linux version of compiler where opcode
15962names within error messages were wrong.  This was caused by a
15963slight difference in the output of the Flex tool on Linux versus
15964Windows.
15965
15966Fixed a problem with the Linux compiler where the hex output files
15967contained some garbage data caused by an internal buffer overrun.
15968
15969
15970----------------------------------------
1597117 May 2002.  Summary of changes for this release.
15972
15973
159741) ACPI CA Core Subsystem Version 20020517:
15975
15976Implemented a workaround to an BIOS bug discovered on the HP
15977OmniBook where the FADT revision number and the table size are
15978inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
15979behavior is to fallback to using only the ACPI 1.0 fields of the
15980FADT if the table is too small to be a ACPI 2.0 table as claimed
15981by the revision number.  Although this is a BIOS bug, this is a
15982case where the workaround is simple enough and with no side
15983effects, so it seemed prudent to add it.  A warning message is
15984issued, however.
15985
15986Implemented minimum size checks for the fixed-length ACPI tables -
15987- the FADT and FACS, as well as consistency checks between the
15988revision number and the table size.
15989
15990Fixed a reported problem in the table override support where the
15991new table pointer was incorrectly treated as a physical address
15992instead of a logical address.
15993
15994Eliminated the use of the AE_AML_ERROR exception and replaced it
15995with more descriptive codes.
15996
15997Fixed a problem where an exception would occur if an ASL Field was
15998defined with no named Field Units underneath it (used by some
15999index fields).
16000
16001Code and Data Size: Current core subsystem library sizes are shown
16002below.  These are the code and data sizes for the acpica.lib
16003produced by the Microsoft Visual C++ 6.0 compiler, and these
16004values do not include any ACPI driver or OSPM code.  The debug
16005version of the code includes the debug output trace mechanism and
16006has a larger code and data size.  Note that these values will vary
16007depending on the efficiency of the compiler and the compiler
16008options used during generation.
16009
16010  Previous Release
16011    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
16012    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
16013  Current Release:
16014    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
16015    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
16016
16017
16018
160192) Linux
16020
16021Much work done on ACPI init (MADT and PCI IRQ routing support).
16022(Paul D. and Dominik Brodowski)
16023
16024Fix PCI IRQ-related panic on boot (Sam Revitch)
16025
16026Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
16027
16028Fix "MHz" typo (Dominik Brodowski)
16029
16030Fix RTC year 2000 issue (Dominik Brodowski)
16031
16032Preclude multiple button proc entries (Eric Brunet)
16033
16034Moved arch-specific code out of include/platform/aclinux.h
16035
160363) iASL Compiler Version X2044:
16037
16038Implemented error checking for the string used in the EISAID macro
16039(Usually used in the definition of the _HID object.)  The code now
16040strictly enforces the PnP format - exactly 7 characters, 3
16041uppercase letters and 4 hex digits.
16042
16043If a raw string is used in the definition of the _HID object
16044(instead of the EISAID macro), the string must contain all
16045alphanumeric characters (e.g., "*PNP0011" is not allowed because
16046of the asterisk.)
16047
16048Implemented checking for invalid use of ACPI reserved names for
16049most of the name creation operators (Name, Device, Event, Mutex,
16050OperationRegion, PowerResource, Processor, and ThermalZone.)
16051Previously, this check was only performed for control methods.
16052
16053Implemented an additional check on the Name operator to emit an
16054error if a reserved name that must be implemented in ASL as a
16055control method is used.  We know that a reserved name must be a
16056method if it is defined with input arguments.
16057
16058The warning emitted when a namespace object reference is not found
16059during the cross reference phase has been changed into an error.
16060The "External" directive should be used for names defined in other
16061modules.
16062
16063
160644) Tools and Utilities
16065
16066The 16-bit tools (adump16 and aexec16) have been regenerated and
16067tested.
16068
16069Fixed a problem with the output of both acpidump and adump16 where
16070the indentation of closing parentheses and brackets was not
16071
16072aligned properly with the parent block.
16073
16074
16075----------------------------------------
1607603 May 2002.  Summary of changes for this release.
16077
16078
160791) ACPI CA Core Subsystem Version 20020503:
16080
16081Added support a new OSL interface that allows the host operating
16082
16083system software to override the DSDT found in the firmware -
16084AcpiOsTableOverride.  With this interface, the OSL can examine the
16085version of the firmware DSDT and replace it with a different one
16086if desired.
16087
16088Added new external interfaces for accessing ACPI registers from
16089device drivers and other system software - AcpiGetRegister and
16090AcpiSetRegister.  This was simply an externalization of the
16091existing AcpiHwBitRegister interfaces.
16092
16093Fixed a regression introduced in the previous build where the
16094ASL/AML CreateField operator always returned an error,
16095"destination must be a NS Node".
16096
16097Extended the maximum time (before failure) to successfully enable
16098ACPI mode to 3 seconds.
16099
16100Code and Data Size: Current core subsystem library sizes are shown
16101below.  These are the code and data sizes for the acpica.lib
16102produced by the Microsoft Visual C++ 6.0 compiler, and these
16103values do not include any ACPI driver or OSPM code.  The debug
16104version of the code includes the debug output trace mechanism and
16105has a larger code and data size.  Note that these values will vary
16106depending on the efficiency of the compiler and the compiler
16107options used during generation.
16108
16109  Previous Release
16110    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
16111    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
16112  Current Release:
16113    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
16114    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
16115
16116
161172) Linux
16118
16119Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
16120free. While 3 out of 4 of our in-house systems work fine, the last
16121one still hangs when testing the LAPIC timer.
16122
16123Renamed many files in 2.5 kernel release to omit "acpi_" from the
16124name.
16125
16126Added warning on boot for Presario 711FR.
16127
16128Sleep improvements (Pavel Machek)
16129
16130ACPI can now be built without CONFIG_PCI enabled.
16131
16132IA64: Fixed memory map functions (JI Lee)
16133
16134
161353) iASL Compiler Version X2043:
16136
16137Added support to allow the compiler to be integrated into the MS
16138VC++ development environment for one-button compilation of single
16139files or entire projects -- with error-to-source-line mapping.
16140
16141Implemented support for compile-time constant folding for the
16142Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
16143specification.  This allows the ASL writer to use expressions
16144instead of Integer/Buffer/String constants in terms that must
16145evaluate to constants at compile time and will also simplify the
16146emitted AML in any such sub-expressions that can be folded
16147(evaluated at compile-time.)  This increases the size of the
16148compiler significantly because a portion of the ACPI CA AML
16149interpreter is included within the compiler in order to pre-
16150evaluate constant expressions.
16151
16152
16153Fixed a problem with the "Unicode" ASL macro that caused the
16154compiler to fault.  (This macro is used in conjunction with the
16155_STR reserved name.)
16156
16157Implemented an AML opcode optimization to use the Zero, One, and
16158Ones opcodes where possible to further reduce the size of integer
16159constants and thus reduce the overall size of the generated AML
16160code.
16161
16162Implemented error checking for new reserved terms for ACPI version
161632.0A.
16164
16165Implemented the -qr option to display the current list of ACPI
16166reserved names known to the compiler.
16167
16168Implemented the -qc option to display the current list of ASL
16169operators that are allowed within constant expressions and can
16170therefore be folded at compile time if the operands are constants.
16171
16172
161734) Documentation
16174
16175Updated the Programmer's Reference for new interfaces, data types,
16176and memory allocation model options.
16177
16178Updated the iASL Compiler User Reference to apply new format and
16179add information about new features and options.
16180
16181----------------------------------------
1618219 April 2002.  Summary of changes for this release.
16183
161841) ACPI CA Core Subsystem Version 20020419:
16185
16186The source code base for the Core Subsystem has been completely
16187cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
16188versions.  The Lint option files used are included in the
16189/acpi/generate/lint directory.
16190
16191Implemented enhanced status/error checking across the entire
16192Hardware manager subsystem.  Any hardware errors (reported from
16193the OSL) are now bubbled up and will abort a running control
16194method.
16195
16196
16197Fixed a problem where the per-ACPI-table integer width (32 or 64)
16198was stored only with control method nodes, causing a fault when
16199non-control method code was executed during table loading.  The
16200solution implemented uses a global variable to indicate table
16201width across the entire ACPI subsystem.  Therefore, ACPI CA does
16202not support mixed integer widths across different ACPI tables
16203(DSDT, SSDT).
16204
16205Fixed a problem where NULL extended fields (X fields) in an ACPI
162062.0 ACPI FADT caused the table load to fail.  Although the
16207existing ACPI specification is a bit fuzzy on this topic, the new
16208behavior is to fall back on a ACPI 1.0 field if the corresponding
16209ACPI 2.0 X field is zero (even though the table revision indicates
16210a full ACPI 2.0 table.)  The ACPI specification will be updated to
16211clarify this issue.
16212
16213Fixed a problem with the SystemMemory operation region handler
16214where memory was always accessed byte-wise even if the AML-
16215specified access width was larger than a byte.  This caused
16216problems on systems with memory-mapped I/O.  Memory is now
16217accessed with the width specified.  On systems that do not support
16218non-aligned transfers, a check is made to guarantee proper address
16219alignment before proceeding in order to avoid an AML-caused
16220alignment fault within the kernel.
16221
16222
16223Fixed a problem with the ExtendedIrq resource where only one byte
16224of the 4-byte Irq field was extracted.
16225
16226Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
16227function was out of date and required a rewrite.
16228
16229Code and Data Size: Current core subsystem library sizes are shown
16230below.  These are the code and data sizes for the acpica.lib
16231produced by the Microsoft Visual C++ 6.0 compiler, and these
16232values do not include any ACPI driver or OSPM code.  The debug
16233version of the code includes the debug output trace mechanism and
16234has a larger code and data size.  Note that these values will vary
16235depending on the efficiency of the compiler and the compiler
16236options used during generation.
16237
16238  Previous Release
16239    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
16240    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
16241  Current Release:
16242    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
16243    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
16244
16245
162462) Linux
16247
16248PCI IRQ routing fixes (Dominik Brodowski)
16249
16250
162513) iASL Compiler Version X2042:
16252
16253Implemented an additional compile-time error check for a field
16254unit whose size + minimum access width would cause a run-time
16255access beyond the end-of-region.  Previously, only the field size
16256itself was checked.
16257
16258The Core subsystem and iASL compiler now share a common parse
16259object in preparation for compile-time evaluation of the type
162603/4/5 ASL operators.
16261
16262
16263----------------------------------------
16264Summary of changes for this release: 03_29_02
16265
162661) ACPI CA Core Subsystem Version 20020329:
16267
16268Implemented support for late evaluation of TermArg operands to
16269Buffer and Package objects.  This allows complex expressions to be
16270used in the declarations of these object types.
16271
16272Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
162731.0, if the field was larger than 32 bits, it was returned as a
16274buffer - otherwise it was returned as an integer.  In ACPI 2.0,
16275the field is returned as a buffer only if the field is larger than
1627664 bits.  The TableRevision is now considered when making this
16277conversion to avoid incompatibility with existing ASL code.
16278
16279Implemented logical addressing for AcpiOsGetRootPointer.  This
16280allows an RSDP with either a logical or physical address.  With
16281this support, the host OS can now override all ACPI tables with
16282one logical RSDP.  Includes implementation of  "typed" pointer
16283support to allow a common data type for both physical and logical
16284pointers internally.  This required a change to the
16285AcpiOsGetRootPointer interface.
16286
16287Implemented the use of ACPI 2.0 Generic Address Structures for all
16288GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
16289mapped I/O for these ACPI features.
16290
16291Initialization now ignores not only non-required tables (All
16292tables other than the FADT, FACS, DSDT, and SSDTs), but also does
16293not validate the table headers of unrecognized tables.
16294
16295Fixed a problem where a notify handler could only be
16296installed/removed on an object of type Device.  All "notify"
16297
16298objects are now supported -- Devices, Processor, Power, and
16299Thermal.
16300
16301Removed most verbosity from the ACPI_DB_INFO debug level.  Only
16302critical information is returned when this debug level is enabled.
16303
16304Code and Data Size: Current core subsystem library sizes are shown
16305below.  These are the code and data sizes for the acpica.lib
16306produced by the Microsoft Visual C++ 6.0 compiler, and these
16307values do not include any ACPI driver or OSPM code.  The debug
16308version of the code includes the debug output trace mechanism and
16309has a larger code and data size.  Note that these values will vary
16310depending on the efficiency of the compiler and the compiler
16311options used during generation.
16312
16313  Previous Release
16314    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
16315    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
16316  Current Release:
16317    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
16318    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
16319
16320
163212) Linux:
16322
16323The processor driver (acpi_processor.c) now fully supports ACPI
163242.0-based processor performance control (e.g. Intel(R)
16325SpeedStep(TM) technology) Note that older laptops that only have
16326the Intel "applet" interface are not supported through this.  The
16327'limit' and 'performance' interface (/proc) are fully functional.
16328[Note that basic policy for controlling performance state
16329transitions will be included in the next version of ospmd.]  The
16330idle handler was modified to more aggressively use C2, and PIIX4
16331errata handling underwent a complete overhaul (big thanks to
16332Dominik Brodowski).
16333
16334Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
16335based devices in the ACPI namespace are now dynamically bound
16336(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
16337This allows, among other things, ACPI to resolve bus numbers for
16338subordinate PCI bridges.
16339
16340Enhanced PCI IRQ routing to get the proper bus number for _PRT
16341entries defined underneath PCI bridges.
16342
16343Added IBM 600E to bad bios list due to invalid _ADR value for
16344PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
16345
16346In the process of adding full MADT support (e.g. IOAPIC) for IA32
16347(acpi.c, mpparse.c) -- stay tuned.
16348
16349Added back visual differentiation between fixed-feature and
16350control-method buttons in dmesg.  Buttons are also subtyped (e.g.
16351button/power/PWRF) to simplify button identification.
16352
16353We no longer use -Wno-unused when compiling debug. Please ignore
16354any "_THIS_MODULE defined but not used" messages.
16355
16356Can now shut down the system using "magic sysrq" key.
16357
16358
163593) iASL Compiler version 2041:
16360
16361Fixed a problem where conversion errors for hex/octal/decimal
16362constants were not reported.
16363
16364Implemented a fix for the General Register template Address field.
16365This field was 8 bits when it should be 64.
16366
16367Fixed a problem where errors/warnings were no longer being emitted
16368within the listing output file.
16369
16370Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
16371exactly 4 characters, alphanumeric only.
16372
16373
16374
16375
16376----------------------------------------
16377Summary of changes for this release: 03_08_02
16378
16379
163801) ACPI CA Core Subsystem Version 20020308:
16381
16382Fixed a problem with AML Fields where the use of the "AccessAny"
16383keyword could cause an interpreter error due to attempting to read
16384or write beyond the end of the parent Operation Region.
16385
16386Fixed a problem in the SystemMemory Operation Region handler where
16387an attempt was made to map memory beyond the end of the region.
16388This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
16389errors on some Linux systems.
16390
16391Fixed a problem where the interpreter/namespace "search to root"
16392algorithm was not functioning for some object types.  Relaxed the
16393internal restriction on the search to allow upsearches for all
16394external object types as well as most internal types.
16395
16396
163972) Linux:
16398
16399We now use safe_halt() macro versus individual calls to sti | hlt.
16400
16401Writing to the processor limit interface should now work. "echo 1"
16402will increase the limit, 2 will decrease, and 0 will reset to the
16403
16404default.
16405
16406
164073) ASL compiler:
16408
16409Fixed segfault on Linux version.
16410
16411
16412----------------------------------------
16413Summary of changes for this release: 02_25_02
16414
164151) ACPI CA Core Subsystem:
16416
16417
16418Fixed a problem where the GPE bit masks were not initialized
16419properly, causing erratic GPE behavior.
16420
16421Implemented limited support for multiple calling conventions.  The
16422code can be generated with either the VPL (variable parameter
16423list, or "C") convention, or the FPL (fixed parameter list, or
16424"Pascal") convention.  The core subsystem is about 3.4% smaller
16425when generated with FPL.
16426
16427
164282) Linux
16429
16430Re-add some /proc/acpi/event functionality that was lost during
16431the rewrite
16432
16433Resolved issue with /proc events for fixed-feature buttons showing
16434up as the system device.
16435
16436Fixed checks on C2/C3 latencies to be inclusive of maximum values.
16437
16438Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
16439
16440Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
16441
16442Fixed limit interface & usage to fix bugs with passive cooling
16443hysterisis.
16444
16445Restructured PRT support.
16446
16447
16448----------------------------------------
16449Summary of changes for this label: 02_14_02
16450
16451
164521) ACPI CA Core Subsystem:
16453
16454Implemented support in AcpiLoadTable to allow loading of FACS and
16455FADT tables.
16456
16457Suport for the now-obsolete interim 0.71 64-bit ACPI tables has
16458been removed.  All 64-bit platforms should be migrated to the ACPI
164592.0 tables.  The actbl71.h header has been removed from the source
16460tree.
16461
16462All C macros defined within the subsystem have been prefixed with
16463"ACPI_" to avoid collision with other system include files.
16464
16465Removed the return value for the two AcpiOsPrint interfaces, since
16466it is never used and causes lint warnings for ignoring the return
16467value.
16468
16469Added error checking to all internal mutex acquire and release
16470calls.  Although a failure from one of these interfaces is
16471probably a fatal system error, these checks will cause the
16472immediate abort of the currently executing method or interface.
16473
16474Fixed a problem where the AcpiSetCurrentResources interface could
16475fault.  This was a side effect of the deployment of the new memory
16476allocation model.
16477
16478Fixed a couple of problems with the Global Lock support introduced
16479in the last major build.  The "common" (1.0/2.0) internal FACS was
16480being overwritten with the FACS signature and clobbering the
16481Global Lock pointer.  Also, the actual firmware FACS was being
16482unmapped after construction of the "common" FACS, preventing
16483access to the actual Global Lock field within it.  The "common"
16484internal FACS is no longer installed as an actual ACPI table; it
16485is used simply as a global.
16486
16487Code and Data Size: Current core subsystem library sizes are shown
16488below.  These are the code and data sizes for the acpica.lib
16489produced by the Microsoft Visual C++ 6.0 compiler, and these
16490values do not include any ACPI driver or OSPM code.  The debug
16491version of the code includes the debug output trace mechanism and
16492has a larger code and data size.  Note that these values will vary
16493depending on the efficiency of the compiler and the compiler
16494options used during generation.
16495
16496  Previous Release (02_07_01)
16497    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
16498    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
16499  Current Release:
16500    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
16501    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
16502
16503
165042) Linux
16505
16506Updated Linux-specific code for core macro and OSL interface
16507changes described above.
16508
16509Improved /proc/acpi/event. It now can be opened only once and has
16510proper poll functionality.
16511
16512Fixed and restructured power management (acpi_bus).
16513
16514Only create /proc "view by type" when devices of that class exist.
16515
16516Fixed "charging/discharging" bug (and others) in acpi_battery.
16517
16518Improved thermal zone code.
16519
16520
165213) ASL Compiler, version X2039:
16522
16523
16524Implemented the new compiler restriction on ASL String hex/octal
16525escapes to non-null, ASCII values.  An error results if an invalid
16526value is used.  (This will require an ACPI 2.0 specification
16527change.)
16528
16529AML object labels that are output to the optional C and ASM source
16530are now prefixed with both the ACPI table signature and table ID
16531to help guarantee uniqueness within a large BIOS project.
16532
16533
16534----------------------------------------
16535Summary of changes for this label: 02_01_02
16536
165371) ACPI CA Core Subsystem:
16538
16539ACPI 2.0 support is complete in the entire Core Subsystem and the
16540ASL compiler. All new ACPI 2.0 operators are implemented and all
16541other changes for ACPI 2.0 support are complete.  With
16542simultaneous code and data optimizations throughout the subsystem,
16543ACPI 2.0 support has been implemented with almost no additional
16544cost in terms of code and data size.
16545
16546Implemented a new mechanism for allocation of return buffers.  If
16547the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
16548be allocated on behalf of the caller.  Consolidated all return
16549buffer validation and allocation to a common procedure.  Return
16550buffers will be allocated via the primary OSL allocation interface
16551since it appears that a separate pool is not needed by most users.
16552If a separate pool is required for these buffers, the caller can
16553still use the original mechanism and pre-allocate the buffer(s).
16554
16555Implemented support for string operands within the DerefOf
16556operator.
16557
16558Restructured the Hardware and Event managers to be table driven,
16559simplifying the source code and reducing the amount of generated
16560code.
16561
16562Split the common read/write low-level ACPI register bitfield
16563procedure into a separate read and write, simplifying the code
16564considerably.
16565
16566Obsoleted the AcpiOsCallocate OSL interface.  This interface was
16567used only a handful of times and didn't have enough critical mass
16568for a separate interface.  Replaced with a common calloc procedure
16569in the core.
16570
16571Fixed a reported problem with the GPE number mapping mechanism
16572that allows GPE1 numbers to be non-contiguous with GPE0.
16573Reorganized the GPE information and shrunk a large array that was
16574originally large enough to hold info for all possible GPEs (256)
16575to simply large enough to hold all GPEs up to the largest GPE
16576number on the machine.
16577
16578Fixed a reported problem with resource structure alignment on 64-
16579bit platforms.
16580
16581Changed the AcpiEnableEvent and AcpiDisableEvent external
16582interfaces to not require any flags for the common case of
16583enabling/disabling a GPE.
16584
16585Implemented support to allow a "Notify" on a Processor object.
16586
16587Most TBDs in comments within the source code have been resolved
16588and eliminated.
16589
16590
16591Fixed a problem in the interpreter where a standalone parent
16592prefix (^) was not handled correctly in the interpreter and
16593debugger.
16594
16595Removed obsolete and unnecessary GPE save/restore code.
16596
16597Implemented Field support in the ASL Load operator.  This allows a
16598table to be loaded from a named field, in addition to loading a
16599table directly from an Operation Region.
16600
16601Implemented timeout and handle support in the external Global Lock
16602interfaces.
16603
16604Fixed a problem in the AcpiDump utility where pathnames were no
16605longer being generated correctly during the dump of named objects.
16606
16607Modified the AML debugger to give a full display of if/while
16608predicates instead of just one AML opcode at a time.  (The
16609predicate can have several nested ASL statements.)  The old method
16610was confusing during single stepping.
16611
16612Code and Data Size: Current core subsystem library sizes are shown
16613below. These are the code and data sizes for the acpica.lib
16614produced by the Microsoft Visual C++ 6.0 compiler, and these
16615values do not include any ACPI driver or OSPM code.  The debug
16616version of the code includes the debug output trace mechanism and
16617has a larger code and data size.  Note that these values will vary
16618depending on the efficiency of the compiler and the compiler
16619options used during generation.
16620
16621  Previous Release (12_18_01)
16622     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
16623     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
16624   Current Release:
16625     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
16626     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
16627
166282) Linux
16629
16630 Implemented fix for PIIX reverse throttling errata (Processor
16631driver)
16632
16633Added new Limit interface (Processor and Thermal drivers)
16634
16635New thermal policy (Thermal driver)
16636
16637Many updates to /proc
16638
16639Battery "low" event support (Battery driver)
16640
16641Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
16642
16643IA32 - IA64 initialization unification, no longer experimental
16644
16645Menuconfig options redesigned
16646
166473) ASL Compiler, version X2037:
16648
16649Implemented several new output features to simplify integration of
16650AML code into  firmware: 1) Output the AML in C source code with
16651labels for each named ASL object.  The    original ASL source code
16652is interleaved as C comments. 2) Output the AML in ASM source code
16653with labels and interleaved ASL    source. 3) Output the AML in
16654raw hex table form, in either C or ASM.
16655
16656Implemented support for optional string parameters to the
16657LoadTable operator.
16658
16659Completed support for embedded escape sequences within string
16660literals.  The compiler now supports all single character escapes
16661as well as the Octal and Hex escapes.  Note: the insertion of a
16662null byte into a string literal (via the hex/octal escape) causes
16663the string to be immediately terminated.  A warning is issued.
16664
16665Fixed a problem where incorrect AML was generated for the case
16666where an ASL namepath consists of a single parent prefix (
16667
16668) with no trailing name segments.
16669
16670The compiler has been successfully generated with a 64-bit C
16671compiler.
16672
16673
16674
16675
16676----------------------------------------
16677Summary of changes for this label: 12_18_01
16678
166791) Linux
16680
16681Enhanced blacklist with reason and severity fields. Any table's
16682signature may now be used to identify a blacklisted system.
16683
16684Call _PIC control method to inform the firmware which interrupt
16685model the OS is using. Turn on any disabled link devices.
16686
16687Cleaned up busmgr /proc error handling (Andreas Dilger)
16688
16689 2) ACPI CA Core Subsystem:
16690
16691Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
16692while loop)
16693
16694Completed implementation of the ACPI 2.0 "Continue",
16695"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
16696operators.  All new ACPI 2.0 operators are now implemented in both
16697the ASL compiler and the AML interpreter.  The only remaining ACPI
166982.0 task is support for the String data type in the DerefOf
16699operator.  Fixed a problem with AcquireMutex where the status code
16700was lost if the caller had to actually wait for the mutex.
16701
16702Increased the maximum ASL Field size from 64K bits to 4G bits.
16703
16704Completed implementation of the external Global Lock interfaces --
16705AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
16706Handler parameters were added.
16707
16708Completed another pass at removing warnings and issues when
16709compiling with 64-bit compilers.  The code now compiles cleanly
16710with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
16711add and subtract (diff) macros have changed considerably.
16712
16713
16714Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1671564-bit platforms, 32-bits on all others.  This type is used
16716wherever memory allocation and/or the C sizeof() operator is used,
16717and affects the OSL memory allocation interfaces AcpiOsAllocate
16718and AcpiOsCallocate.
16719
16720Implemented sticky user breakpoints in the AML debugger.
16721
16722Code and Data Size: Current core subsystem library sizes are shown
16723below. These are the code and data sizes for the acpica.lib
16724produced by the Microsoft Visual C++ 6.0 compiler, and these
16725values do not include any ACPI driver or OSPM code.  The debug
16726version of the code includes the debug output trace mechanism and
16727has a larger code and data size. Note that these values will vary
16728depending on the efficiency of the compiler and the compiler
16729options used during generation.
16730
16731  Previous Release (12_05_01)
16732     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
16733     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
16734   Current Release:
16735     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
16736     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
16737
16738 3) ASL Compiler, version X2034:
16739
16740Now checks for (and generates an error if detected) the use of a
16741Break or Continue statement without an enclosing While statement.
16742
16743
16744Successfully generated the compiler with the Intel 64-bit C
16745compiler.
16746
16747 ----------------------------------------
16748Summary of changes for this label: 12_05_01
16749
16750 1) ACPI CA Core Subsystem:
16751
16752The ACPI 2.0 CopyObject operator is fully implemented.  This
16753operator creates a new copy of an object (and is also used to
16754bypass the "implicit conversion" mechanism of the Store operator.)
16755
16756The ACPI 2.0 semantics for the SizeOf operator are fully
16757implemented.  The change is that performing a SizeOf on a
16758reference object causes an automatic dereference of the object to
16759tha actual value before the size is evaluated. This behavior was
16760undefined in ACPI 1.0.
16761
16762The ACPI 2.0 semantics for the Extended IRQ resource descriptor
16763have been implemented.  The interrupt polarity and mode are now
16764independently set.
16765
16766Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
16767appearing in Package objects were not properly converted to
16768integers when the internal Package was converted to an external
16769object (via the AcpiEvaluateObject interface.)
16770
16771Fixed a problem with the namespace object deletion mechanism for
16772objects created by control methods.  There were two parts to this
16773problem: 1) Objects created during the initialization phase method
16774parse were not being deleted, and 2) The object owner ID mechanism
16775to track objects was broken.
16776
16777Fixed a problem where the use of the ASL Scope operator within a
16778control method would result in an invalid opcode exception.
16779
16780Fixed a problem introduced in the previous label where the buffer
16781length required for the _PRT structure was not being returned
16782correctly.
16783
16784Code and Data Size: Current core subsystem library sizes are shown
16785below. These are the code and data sizes for the acpica.lib
16786produced by the Microsoft Visual C++ 6.0 compiler, and these
16787values do not include any ACPI driver or OSPM code.  The debug
16788version of the code includes the debug output trace mechanism and
16789has a larger code and data size.  Note that these values will vary
16790depending on the efficiency of the compiler and the compiler
16791options used during generation.
16792
16793  Previous Release (11_20_01)
16794     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
16795     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
16796
16797  Current Release:
16798     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
16799     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
16800
16801 2) Linux:
16802
16803Updated all files to apply cleanly against 2.4.16.
16804
16805Added basic PCI Interrupt Routing Table (PRT) support for IA32
16806(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
16807version supports both static and dyanmic PRT entries, but dynamic
16808entries are treated as if they were static (not yet
16809reconfigurable).  Architecture- specific code to use this data is
16810absent on IA32 but should be available shortly.
16811
16812Changed the initialization sequence to start the ACPI interpreter
16813(acpi_init) prior to initialization of the PCI driver (pci_init)
16814in init/main.c.  This ordering is required to support PRT and
16815facilitate other (future) enhancement.  A side effect is that the
16816ACPI bus driver and certain device drivers can no longer be loaded
16817as modules.
16818
16819Modified the 'make menuconfig' options to allow PCI Interrupt
16820Routing support to be included without the ACPI Bus and other
16821device drivers.
16822
16823 3) ASL Compiler, version X2033:
16824
16825Fixed some issues with the use of the new CopyObject and
16826DataTableRegion operators.  Both are fully functional.
16827
16828 ----------------------------------------
16829Summary of changes for this label: 11_20_01
16830
16831 20 November 2001.  Summary of changes for this release.
16832
16833 1) ACPI CA Core Subsystem:
16834
16835Updated Index support to match ACPI 2.0 semantics.  Storing a
16836Integer, String, or Buffer to an Index of a Buffer will store only
16837the least-significant byte of the source to the Indexed buffer
16838byte.  Multiple writes are not performed.
16839
16840Fixed a problem where the access type used in an AccessAs ASL
16841operator was not recorded correctly into the field object.
16842
16843Fixed a problem where ASL Event objects were created in a
16844signalled state. Events are now created in an unsignalled state.
16845
16846The internal object cache is now purged after table loading and
16847initialization to reduce the use of dynamic kernel memory -- on
16848the assumption that object use is greatest during the parse phase
16849of the entire table (versus the run-time use of individual control
16850methods.)
16851
16852ACPI 2.0 variable-length packages are now fully operational.
16853
16854Code and Data Size: Code and Data optimizations have permitted new
16855feature development with an actual reduction in the library size.
16856Current core subsystem library sizes are shown below.  These are
16857the code and data sizes for the acpica.lib produced by the
16858Microsoft Visual C++ 6.0 compiler, and these values do not include
16859any ACPI driver or OSPM code.  The debug version of the code
16860includes the debug output trace mechanism and has a larger code
16861and data size.  Note that these values will vary depending on the
16862efficiency of the compiler and the compiler options used during
16863generation.
16864
16865  Previous Release (11_09_01):
16866     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
16867     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
16868
16869  Current Release:
16870     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
16871     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
16872
16873 2) Linux:
16874
16875Enhanced the ACPI boot-time initialization code to allow the use
16876of Local APIC tables for processor enumeration on IA-32, and to
16877pave the way for a fully MPS-free boot (on SMP systems) in the
16878near future.  This functionality replaces
16879arch/i386/kernel/acpitables.c, which was introduced in an earlier
168802.4.15-preX release.  To enable this feature you must add
16881"acpi_boot=on" to the kernel command line -- see the help entry
16882for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
16883the works...
16884
16885Restructured the configuration options to allow boot-time table
16886parsing support without inclusion of the ACPI Interpreter (and
16887other) code.
16888
16889NOTE: This release does not include fixes for the reported events,
16890power-down, and thermal passive cooling issues (coming soon).
16891
16892 3) ASL Compiler:
16893
16894Added additional typechecking for Fields within restricted access
16895Operation Regions.  All fields within EC and CMOS regions must be
16896declared with ByteAcc. All fields withing SMBus regions must be
16897declared with the BufferAcc access type.
16898
16899Fixed a problem where the listing file output of control methods
16900no longer interleaved the actual AML code with the ASL source
16901code.
16902
16903
16904
16905
16906----------------------------------------
16907Summary of changes for this label: 11_09_01
16908
169091) ACPI CA Core Subsystem:
16910
16911Implemented ACPI 2.0-defined support for writes to fields with a
16912Buffer, String, or Integer source operand that is smaller than the
16913target field. In these cases, the source operand is zero-extended
16914to fill the target field.
16915
16916Fixed a problem where a Field starting bit offset (within the
16917parent operation region) was calculated incorrectly if the
16918
16919alignment of the field differed from the access width.  This
16920affected CreateWordField, CreateDwordField, CreateQwordField, and
16921possibly other fields that use the "AccessAny" keyword.
16922
16923Fixed a problem introduced in the 11_02_01 release where indirect
16924stores through method arguments did not operate correctly.
16925
169262) Linux:
16927
16928Implemented boot-time ACPI table parsing support
16929(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
16930facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
16931legacy BIOS interfaces (e.g. MPS) for the configuration of system
16932processors, memory, and interrupts during setup_arch().  Note that
16933this patch does not include the required architecture-specific
16934changes required to apply this information -- subsequent patches
16935will be posted for both IA32 and IA64 to achieve this.
16936
16937Added low-level sleep support for IA32 platforms, courtesy of Pat
16938Mochel. This allows IA32 systems to transition to/from various
16939sleeping states (e.g. S1, S3), although the lack of a centralized
16940driver model and power-manageable drivers will prevent its
16941(successful) use on most systems.
16942
16943Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
16944submenu, unified IA32 and IA64 options, added new "Boot using ACPI
16945tables" option, etc.
16946
16947Increased the default timeout for the EC driver from 1ms to 10ms
16948(1000 cycles of 10us) to try to address AE_TIME errors during EC
16949transactions.
16950
16951 ----------------------------------------
16952Summary of changes for this label: 11_02_01
16953
169541) ACPI CA Core Subsystem:
16955
16956ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
16957(QWordAcc keyword). All ACPI 2.0 64-bit support is now
16958implemented.
16959
16960OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
16961changes to support ACPI 2.0 Qword field access.  Read/Write
16962PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
16963accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
16964the value parameter for the address space handler interface is now
16965an ACPI_INTEGER.  OSL implementations of these interfaces must now
16966handle the case where the Width parameter is 64.
16967
16968Index Fields: Fixed a problem where unaligned bit assembly and
16969disassembly for IndexFields was not supported correctly.
16970
16971Index and Bank Fields:  Nested Index and Bank Fields are now
16972supported. During field access, a check is performed to ensure
16973that the value written to an Index or Bank register is not out of
16974the range of the register.  The Index (or Bank) register is
16975written before each access to the field data. Future support will
16976include allowing individual IndexFields to be wider than the
16977DataRegister width.
16978
16979Fields: Fixed a problem where the AML interpreter was incorrectly
16980attempting to write beyond the end of a Field/OpRegion.  This was
16981a boundary case that occurred when a DWORD field was written to a
16982BYTE access OpRegion, forcing multiple writes and causing the
16983interpreter to write one datum too many.
16984
16985Fields: Fixed a problem with Field/OpRegion access where the
16986starting bit address of a field was incorrectly calculated if the
16987current access type was wider than a byte (WordAcc, DwordAcc, or
16988QwordAcc).
16989
16990Fields: Fixed a problem where forward references to individual
16991FieldUnits (individual Field names within a Field definition) were
16992not resolved during the AML table load.
16993
16994Fields: Fixed a problem where forward references from a Field
16995definition to the parent Operation Region definition were not
16996resolved during the AML table load.
16997
16998Fields: Duplicate FieldUnit names within a scope are now detected
16999during AML table load.
17000
17001Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
17002returned an incorrect name for the root node.
17003
17004Code and Data Size: Code and Data optimizations have permitted new
17005feature development with an actual reduction in the library size.
17006Current core subsystem library sizes are shown below.  These are
17007the code and data sizes for the acpica.lib produced by the
17008Microsoft Visual C++ 6.0 compiler, and these values do not include
17009any ACPI driver or OSPM code.  The debug version of the code
17010includes the debug output trace mechanism and has a larger code
17011and data size.  Note that these values will vary depending on the
17012efficiency of the compiler and the compiler options used during
17013generation.
17014
17015  Previous Release (10_18_01):
17016     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
17017     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
17018
17019  Current Release:
17020     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
17021     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
17022
17023 2) Linux:
17024
17025Improved /proc processor output (Pavel Machek) Re-added
17026MODULE_LICENSE("GPL") to all modules.
17027
17028 3) ASL Compiler version X2030:
17029
17030Duplicate FieldUnit names within a scope are now detected and
17031flagged as errors.
17032
17033 4) Documentation:
17034
17035Programmer Reference updated to reflect OSL and address space
17036handler interface changes described above.
17037
17038----------------------------------------
17039Summary of changes for this label: 10_18_01
17040
17041ACPI CA Core Subsystem:
17042
17043Fixed a problem with the internal object reference count mechanism
17044that occasionally caused premature object deletion. This resolves
17045all of the outstanding problem reports where an object is deleted
17046in the middle of an interpreter evaluation.  Although this problem
17047only showed up in rather obscure cases, the solution to the
17048problem involved an adjustment of all reference counts involving
17049objects attached to namespace nodes.
17050
17051Fixed a problem with Field support in the interpreter where
17052writing to an aligned field whose length is an exact multiple (2
17053or greater) of the field access granularity would cause an attempt
17054to write beyond the end of the field.
17055
17056The top level AML opcode execution functions within the
17057interpreter have been renamed with a more meaningful and
17058consistent naming convention.  The modules exmonad.c and
17059exdyadic.c were eliminated.  New modules are exoparg1.c,
17060exoparg2.c, exoparg3.c, and exoparg6.c.
17061
17062Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
17063
17064Fixed a problem where the AML debugger was causing some internal
17065objects to not be deleted during subsystem termination.
17066
17067Fixed a problem with the external AcpiEvaluateObject interface
17068where the subsystem would fault if the named object to be
17069evaluated refered to a constant such as Zero, Ones, etc.
17070
17071Fixed a problem with IndexFields and BankFields where the
17072subsystem would fault if the index, data, or bank registers were
17073not defined in the same scope as the field itself.
17074
17075Added printf format string checking for compilers that support
17076this feature.  Corrected more than 50 instances of issues with
17077format specifiers within invocations of ACPI_DEBUG_PRINT
17078throughout the core subsystem code.
17079
17080The ASL "Revision" operator now returns the ACPI support level
17081implemented in the core - the value "2" since the ACPI 2.0 support
17082is more than 50% implemented.
17083
17084Enhanced the output of the AML debugger "dump namespace" command
17085to output in a more human-readable form.
17086
17087Current core subsystem library code sizes are shown below.  These
17088
17089are the code and data sizes for the acpica.lib produced by the
17090Microsoft Visual C++ 6.0 compiler, and these values do not include
17091any ACPI driver or OSPM code.  The debug version of the code
17092includes the full debug trace mechanism -- leading to a much
17093
17094larger code and data size.  Note that these values will vary
17095depending on the efficiency of the compiler and the compiler
17096options used during generation.
17097
17098     Previous Label (09_20_01):
17099     Non-Debug Version:    65K Code,     5K Data,     70K Total
17100     Debug Version:       138K Code,    58K Data,    196K Total
17101
17102     This Label:
17103
17104     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
17105     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
17106
17107Linux:
17108
17109Implemented a "Bad BIOS Blacklist" to track machines that have
17110known ASL/AML problems.
17111
17112Enhanced the /proc interface for the thermal zone driver and added
17113support for _HOT (the critical suspend trip point).  The 'info'
17114file now includes threshold/policy information, and allows setting
17115of _SCP (cooling preference) and _TZP (polling frequency) values
17116to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
17117frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
17118preference to the passive/quiet mode (if supported by the ASL).
17119
17120Implemented a workaround for a gcc bug that resuted in an OOPs
17121when loading the control method battery driver.
17122
17123 ----------------------------------------
17124Summary of changes for this label: 09_20_01
17125
17126 ACPI CA Core Subsystem:
17127
17128The AcpiEnableEvent and AcpiDisableEvent interfaces have been
17129modified to allow individual GPE levels to be flagged as wake-
17130enabled (i.e., these GPEs are to remain enabled when the platform
17131sleeps.)
17132
17133The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
17134support wake-enabled GPEs.  This means that upon entering the
17135sleep state, all GPEs that are not wake-enabled are disabled.
17136When leaving the sleep state, these GPEs are reenabled.
17137
17138A local double-precision divide/modulo module has been added to
17139enhance portability to OS kernels where a 64-bit math library is
17140not available.  The new module is "utmath.c".
17141
17142Several optimizations have been made to reduce the use of CPU
17143stack.  Originally over 2K, the maximum stack usage is now below
171442K at 1860  bytes (1.82k)
17145
17146Fixed a problem with the AcpiGetFirmwareTable interface where the
17147root table pointer was not mapped into a logical address properly.
17148
17149Fixed a problem where a NULL pointer was being dereferenced in the
17150interpreter code for the ASL Notify operator.
17151
17152Fixed a problem where the use of the ASL Revision operator
17153returned an error. This operator now returns the current version
17154of the ACPI CA core subsystem.
17155
17156Fixed a problem where objects passed as control method parameters
17157to AcpiEvaluateObject were always deleted at method termination.
17158However, these objects may end up being stored into the namespace
17159by the called method.  The object reference count mechanism was
17160applied to these objects instead of a force delete.
17161
17162Fixed a problem where static strings or buffers (contained in the
17163AML code) that are declared as package elements within the ASL
17164code could cause a fault because the interpreter would attempt to
17165delete them.  These objects are now marked with the "static
17166object" flag to prevent any attempt to delete them.
17167
17168Implemented an interpreter optimization to use operands directly
17169from the state object instead of extracting the operands to local
17170variables.  This reduces stack use and code size, and improves
17171performance.
17172
17173The module exxface.c was eliminated as it was an unnecessary extra
17174layer of code.
17175
17176Current core subsystem library code sizes are shown below.  These
17177are the code and data sizes for the acpica.lib produced by the
17178Microsoft Visual C++ 6.0 compiler, and these values do not include
17179any ACPI driver or OSPM code.  The debug version of the code
17180includes the full debug trace mechanism -- leading to a much
17181larger code and data size.  Note that these values will vary
17182depending on the efficiency of the compiler and the compiler
17183options used during generation.
17184
17185  Non-Debug Version:  65K Code,   5K Data,   70K Total
17186(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
17187Total  (Previously 195K)
17188
17189Linux:
17190
17191Support for ACPI 2.0 64-bit integers has been added.   All ACPI
17192Integer objects are now 64 bits wide
17193
17194All Acpi data types and structures are now in lower case.  Only
17195Acpi macros are upper case for differentiation.
17196
17197 Documentation:
17198
17199Changes to the external interfaces as described above.
17200
17201 ----------------------------------------
17202Summary of changes for this label: 08_31_01
17203
17204 ACPI CA Core Subsystem:
17205
17206A bug with interpreter implementation of the ASL Divide operator
17207was found and fixed.  The implicit function return value (not the
17208explicit store operands) was returning the remainder instead of
17209the quotient.  This was a longstanding bug and it fixes several
17210known outstanding issues on various platforms.
17211
17212The ACPI_DEBUG_PRINT and function trace entry/exit macros have
17213been further optimized for size.  There are 700 invocations of the
17214DEBUG_PRINT macro alone, so each optimization reduces the size of
17215the debug version of the subsystem significantly.
17216
17217A stack trace mechanism has been implemented.  The maximum stack
17218usage is about 2K on 32-bit platforms.  The debugger command "stat
17219stack" will display the current maximum stack usage.
17220
17221All public symbols and global variables within the subsystem are
17222now prefixed with the string "Acpi".  This keeps all of the
17223symbols grouped together in a kernel map, and avoids conflicts
17224with other kernel subsystems.
17225
17226Most of the internal fixed lookup tables have been moved into the
17227code segment via the const operator.
17228
17229Several enhancements have been made to the interpreter to both
17230reduce the code size and improve performance.
17231
17232Current core subsystem library code sizes are shown below.  These
17233are the code and data sizes for the acpica.lib produced by the
17234Microsoft Visual C++ 6.0 compiler, and these values do not include
17235any ACPI driver or OSPM code.  The debug version of the code
17236includes the full debug trace mechanism which contains over 700
17237invocations of the DEBUG_PRINT macro, 500 function entry macro
17238invocations, and over 900 function exit macro invocations --
17239leading to a much larger code and data size.  Note that these
17240values will vary depending on the efficiency of the compiler and
17241the compiler options used during generation.
17242
17243        Non-Debug Version:  64K Code,   5K Data,   69K Total
17244Debug Version:     137K Code,  58K Data,  195K Total
17245
17246 Linux:
17247
17248Implemented wbinvd() macro, pending a kernel-wide definition.
17249
17250Fixed /proc/acpi/event to handle poll() and short reads.
17251
17252 ASL Compiler, version X2026:
17253
17254Fixed a problem introduced in the previous label where the AML
17255
17256code emitted for package objects produced packages with zero
17257length.
17258
17259 ----------------------------------------
17260Summary of changes for this label: 08_16_01
17261
17262ACPI CA Core Subsystem:
17263
17264The following ACPI 2.0 ASL operators have been implemented in the
17265AML interpreter (These are already supported by the Intel ASL
17266compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
17267ToBuffer.  Support for 64-bit AML constants is implemented in the
17268AML parser, debugger, and disassembler.
17269
17270The internal memory tracking mechanism (leak detection code) has
17271been upgraded to reduce the memory overhead (a separate tracking
17272block is no longer allocated for each memory allocation), and now
17273supports all of the internal object caches.
17274
17275The data structures and code for the internal object caches have
17276been coelesced and optimized so that there is a single cache and
17277memory list data structure and a single group of functions that
17278implement generic cache management.  This has reduced the code
17279size in both the debug and release versions of the subsystem.
17280
17281The DEBUG_PRINT macro(s) have been optimized for size and replaced
17282by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
17283different, because it generates a single call to an internal
17284function.  This results in a savings of about 90 bytes per
17285invocation, resulting in an overall code and data savings of about
1728616% in the debug version of the subsystem.
17287
17288 Linux:
17289
17290Fixed C3 disk corruption problems and re-enabled C3 on supporting
17291machines.
17292
17293Integrated low-level sleep code by Patrick Mochel.
17294
17295Further tweaked source code Linuxization.
17296
17297Other minor fixes.
17298
17299 ASL Compiler:
17300
17301Support for ACPI 2.0 variable length packages is fixed/completed.
17302
17303Fixed a problem where the optional length parameter for the ACPI
173042.0 ToString operator.
17305
17306Fixed multiple extraneous error messages when a syntax error is
17307detected within the declaration line of a control method.
17308
17309 ----------------------------------------
17310Summary of changes for this label: 07_17_01
17311
17312ACPI CA Core Subsystem:
17313
17314Added a new interface named AcpiGetFirmwareTable to obtain any
17315ACPI table via the ACPI signature.  The interface can be called at
17316any time during kernel initialization, even before the kernel
17317virtual memory manager is initialized and paging is enabled.  This
17318allows kernel subsystems to obtain ACPI tables very early, even
17319before the ACPI CA subsystem is initialized.
17320
17321Fixed a problem where Fields defined with the AnyAcc attribute
17322could be resolved to the incorrect address under the following
17323conditions: 1) the field width is larger than 8 bits and 2) the
17324parent operation region is not defined on a DWORD boundary.
17325
17326Fixed a problem where the interpreter is not being locked during
17327namespace initialization (during execution of the _INI control
17328methods), causing an error when an attempt is made to release it
17329later.
17330
17331ACPI 2.0 support in the AML Interpreter has begun and will be
17332ongoing throughout the rest of this year.  In this label, The Mod
17333operator is implemented.
17334
17335Added a new data type to contain full PCI addresses named
17336ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
17337and Function values.
17338
17339 Linux:
17340
17341Enhanced the Linux version of the source code to change most
17342capitalized ACPI type names to lowercase. For example, all
17343instances of ACPI_STATUS are changed to acpi_status.  This will
17344result in a large diff, but the change is strictly cosmetic and
17345aligns the CA code closer to the Linux coding standard.
17346
17347OSL Interfaces:
17348
17349The interfaces to the PCI configuration space have been changed to
17350add the PCI Segment number and to split the single 32-bit combined
17351DeviceFunction field into two 16-bit fields.  This was
17352accomplished by moving the four values that define an address in
17353PCI configuration space (segment, bus, device, and function) to
17354the new ACPI_PCI_ID structure.
17355
17356The changes to the PCI configuration space interfaces led to a
17357reexamination of the complete set of address space access
17358interfaces for PCI, I/O, and Memory.  The previously existing 18
17359interfaces have proven difficult to maintain (any small change
17360must be propagated across at least 6 interfaces) and do not easily
17361allow for future expansion to 64 bits if necessary.  Also, on some
17362systems, it would not be appropriate to demultiplex the access
17363width (8, 16, 32,or 64) before calling the OSL if the
17364corresponding native OS interfaces contain a similar access width
17365parameter.  For these reasons, the 18 address space interfaces
17366have been replaced by these 6 new ones:
17367
17368AcpiOsReadPciConfiguration
17369AcpiOsWritePciConfiguration
17370AcpiOsReadMemory
17371AcpiOsWriteMemory
17372AcpiOsReadPort
17373AcpiOsWritePort
17374
17375Added a new interface named AcpiOsGetRootPointer to allow the OSL
17376to perform the platform and/or OS-specific actions necessary to
17377obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
17378interface will simply call down to the CA core to perform the low-
17379memory search for the table.  On IA-64, the RSDP is obtained from
17380EFI.  Migrating this interface to the OSL allows the CA core to
17381
17382remain OS and platform independent.
17383
17384Added a new interface named AcpiOsSignal to provide a generic
17385"function code and pointer" interface for various miscellaneous
17386signals and notifications that must be made to the host OS.   The
17387first such signals are intended to support the ASL Fatal and
17388Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
17389interface has been obsoleted.
17390
17391The definition of the AcpiFormatException interface has been
17392changed to simplify its use.  The caller no longer must supply a
17393buffer to the call; A pointer to a const string is now returned
17394directly.  This allows the call to be easily used in printf
17395statements, etc. since the caller does not have to manage a local
17396buffer.
17397
17398
17399 ASL Compiler, Version X2025:
17400
17401The ACPI 2.0 Switch/Case/Default operators have been implemented
17402and are fully functional.  They will work with all ACPI 1.0
17403interpreters, since the operators are simply translated to If/Else
17404pairs.
17405
17406The ACPI 2.0 ElseIf operator is implemented and will also work
17407with 1.0 interpreters, for the same reason.
17408
17409Implemented support for ACPI 2.0 variable-length packages.  These
17410packages have a separate opcode, and their size is determined by
17411the interpreter at run-time.
17412
17413Documentation The ACPI CA Programmer Reference has been updated to
17414reflect the new interfaces and changes to existing interfaces.
17415
17416 ------------------------------------------
17417Summary of changes for this label: 06_15_01
17418
17419 ACPI CA Core Subsystem:
17420
17421Fixed a problem where a DWORD-accessed field within a Buffer
17422object would get its byte address inadvertently rounded down to
17423the nearest DWORD.  Buffers are always Byte-accessible.
17424
17425 ASL Compiler, version X2024:
17426
17427Fixed a problem where the Switch() operator would either fault or
17428hang the compiler.  Note however, that the AML code for this ACPI
174292.0 operator is not yet implemented.
17430
17431Compiler uses the new AcpiOsGetTimer interface to obtain compile
17432timings.
17433
17434Implementation of the CreateField operator automatically converts
17435a reference to a named field within a resource descriptor from a
17436byte offset to a bit offset if required.
17437
17438Added some missing named fields from the resource descriptor
17439support. These are the names that are automatically created by the
17440compiler to reference fields within a descriptor.  They are only
17441valid at compile time and are not passed through to the AML
17442interpreter.
17443
17444Resource descriptor named fields are now typed as Integers and
17445subject to compile-time typechecking when used in expressions.
17446
17447 ------------------------------------------
17448Summary of changes for this label: 05_18_01
17449
17450 ACPI CA Core Subsystem:
17451
17452Fixed a couple of problems in the Field support code where bits
17453from adjacent fields could be returned along with the proper field
17454bits. Restructured the field support code to improve performance,
17455readability and maintainability.
17456
17457New DEBUG_PRINTP macro automatically inserts the procedure name
17458into the output, saving hundreds of copies of procedure name
17459strings within the source, shrinking the memory footprint of the
17460debug version of the core subsystem.
17461
17462 Source Code Structure:
17463
17464The source code directory tree was restructured to reflect the
17465current organization of the component architecture.  Some files
17466and directories have been moved and/or renamed.
17467
17468 Linux:
17469
17470Fixed leaking kacpidpc processes.
17471
17472Fixed queueing event data even when /proc/acpi/event is not
17473opened.
17474
17475 ASL Compiler, version X2020:
17476
17477Memory allocation performance enhancement - over 24X compile time
17478improvement on large ASL files.  Parse nodes and namestring
17479buffers are now allocated from a large internal compiler buffer.
17480
17481The temporary .SRC file is deleted unless the "-s" option is
17482specified
17483
17484The "-d" debug output option now sends all output to the .DBG file
17485instead of the console.
17486
17487"External" second parameter is now optional
17488
17489"ElseIf" syntax now properly allows the predicate
17490
17491Last operand to "Load" now recognized as a Target operand
17492
17493Debug object can now be used anywhere as a normal object.
17494
17495ResourceTemplate now returns an object of type BUFFER
17496
17497EISAID now returns an object of type INTEGER
17498
17499"Index" now works with a STRING operand
17500
17501"LoadTable" now accepts optional parameters
17502
17503"ToString" length parameter is now optional
17504
17505"Interrupt (ResourceType," parse error fixed.
17506
17507"Register" with a user-defined region space parse error fixed
17508
17509Escaped backslash at the end of a string ("\\") scan/parse error
17510fixed
17511
17512"Revision" is now an object of type INTEGER.
17513
17514
17515
17516------------------------------------------
17517Summary of changes for this label: 05_02_01
17518
17519Linux:
17520
17521/proc/acpi/event now blocks properly.
17522
17523Removed /proc/sys/acpi. You can still dump your DSDT from
17524/proc/acpi/dsdt.
17525
17526 ACPI CA Core Subsystem:
17527
17528Fixed a problem introduced in the previous label where some of the
17529"small" resource descriptor types were not recognized.
17530
17531Improved error messages for the case where an ASL Field is outside
17532the range of the parent operation region.
17533
17534 ASL Compiler, version X2018:
17535
17536
17537Added error detection for ASL Fields that extend beyond the length
17538of the parent operation region (only if the length of the region
17539is known at compile time.)  This includes fields that have a
17540minimum access width that is smaller than the parent region, and
17541individual field units that are partially or entirely beyond the
17542extent of the parent.
17543
17544
17545
17546------------------------------------------
17547Summary of changes for this label: 04_27_01
17548
17549 ACPI CA Core Subsystem:
17550
17551Fixed a problem where the namespace mutex could be released at the
17552wrong time during execution of AcpiRemoveAddressSpaceHandler.
17553
17554Added optional thread ID output for debug traces, to simplify
17555debugging of multiple threads.  Added context switch notification
17556when the debug code realizes that a different thread is now
17557executing ACPI code.
17558
17559Some additional external data types have been prefixed with the
17560string "ACPI_" for consistency.  This may effect existing code.
17561The data types affected are the external callback typedefs - e.g.,
17562
17563WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
17564
17565 Linux:
17566
17567Fixed an issue with the OSL semaphore implementation where a
17568thread was waking up with an error from receiving a SIGCHLD
17569signal.
17570
17571Linux version of ACPI CA now uses the system C library for string
17572manipulation routines instead of a local implementation.
17573
17574Cleaned up comments and removed TBDs.
17575
17576 ASL Compiler, version X2017:
17577
17578Enhanced error detection and reporting for all file I/O
17579operations.
17580
17581 Documentation:
17582
17583Programmer Reference updated to version 1.06.
17584
17585
17586
17587------------------------------------------
17588Summary of changes for this label: 04_13_01
17589
17590 ACPI CA Core Subsystem:
17591
17592Restructured support for BufferFields and RegionFields.
17593BankFields support is now fully operational.  All known 32-bit
17594limitations on field sizes have been removed.  Both BufferFields
17595and (Operation) RegionFields are now supported by the same field
17596management code.
17597
17598Resource support now supports QWORD address and IO resources. The
1759916/32/64 bit address structures and the Extended IRQ structure
17600have been changed to properly handle Source Resource strings.
17601
17602A ThreadId of -1 is now used to indicate a "mutex not acquired"
17603condition internally and must never be returned by AcpiOsThreadId.
17604This reserved value was changed from 0 since Unix systems allow a
17605thread ID of 0.
17606
17607Linux:
17608
17609Driver code reorganized to enhance portability
17610
17611Added a kernel configuration option to control ACPI_DEBUG
17612
17613Fixed the EC driver to honor _GLK.
17614
17615ASL Compiler, version X2016:
17616
17617Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
17618address space was set to 0, not 0x7f as it should be.
17619
17620 ------------------------------------------
17621Summary of changes for this label: 03_13_01
17622
17623 ACPI CA Core Subsystem:
17624
17625During ACPI initialization, the _SB_._INI method is now run if
17626present.
17627
17628Notify handler fix - notifies are deferred until the parent method
17629completes execution.  This fixes the "mutex already acquired"
17630issue seen occasionally.
17631
17632Part of the "implicit conversion" rules in ACPI 2.0 have been
17633found to cause compatibility problems with existing ASL/AML.  The
17634convert "result-to-target-type" implementation has been removed
17635for stores to method Args and Locals.  Source operand conversion
17636is still fully implemented.  Possible changes to ACPI 2.0
17637specification pending.
17638
17639Fix to AcpiRsCalculatePciRoutingTableLength to return correct
17640length.
17641
17642Fix for compiler warnings for 64-bit compiles.
17643
17644 Linux:
17645
17646/proc output aligned for easier parsing.
17647
17648Release-version compile problem fixed.
17649
17650New kernel configuration options documented in Configure.help.
17651
17652IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
17653context" message.
17654
17655 OSPM:
17656
17657Power resource driver integrated with bus manager.
17658
17659Fixed kernel fault during active cooling for thermal zones.
17660
17661Source Code:
17662
17663The source code tree has been restructured.
17664
17665
17666
17667------------------------------------------
17668Summary of changes for this label: 03_02_01
17669
17670 Linux OS Services Layer (OSL):
17671
17672Major revision of all Linux-specific code.
17673
17674Modularized all ACPI-specific drivers.
17675
17676Added new thermal zone and power resource drivers.
17677
17678Revamped /proc interface (new functionality is under /proc/acpi).
17679
17680New kernel configuration options.
17681
17682 Linux known issues:
17683
17684New kernel configuration options not documented in Configure.help
17685yet.
17686
17687
17688Module dependencies not currently implemented. If used, they
17689should be loaded in this order: busmgr, power, ec, system,
17690processor, battery, ac_adapter, button, thermal.
17691
17692Modules will not load if CONFIG_MODVERSION is set.
17693
17694IBM 600E - entering S5 may reboot instead of shutting down.
17695
17696IBM 600E - Sleep button may generate "Invalid <NULL> context"
17697message.
17698
17699Some systems may fail with "execution mutex already acquired"
17700message.
17701
17702 ACPI CA Core Subsystem:
17703
17704Added a new OSL Interface, AcpiOsGetThreadId.  This was required
17705for the  deadlock detection code. Defined to return a non-zero, 32-
17706bit thread ID for the currently executing thread.  May be a non-
17707zero constant integer on single-thread systems.
17708
17709Implemented deadlock detection for internal subsystem mutexes.  We
17710may add conditional compilation for this code (debug only) later.
17711
17712ASL/AML Mutex object semantics are now fully supported.  This
17713includes multiple acquires/releases by owner and support for the
17714
17715Mutex SyncLevel parameter.
17716
17717A new "Force Release" mechanism automatically frees all ASL
17718Mutexes that have been acquired but not released when a thread
17719exits the interpreter.  This forces conformance to the ACPI spec
17720("All mutexes must be released when an invocation exits") and
17721prevents deadlocked ASL threads.  This mechanism can be expanded
17722(later) to monitor other resource acquisitions if OEM ASL code
17723continues to misbehave (which it will).
17724
17725Several new ACPI exception codes have been added for the Mutex
17726support.
17727
17728Recursive method calls are now allowed and supported (the ACPI
17729spec does in fact allow recursive method calls.)  The number of
17730recursive calls is subject to the restrictions imposed by the
17731SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
17732parameter.
17733
17734Implemented support for the SyncLevel parameter for control
17735methods (ACPI 2.0 feature)
17736
17737Fixed a deadlock problem when multiple threads attempted to use
17738the interpreter.
17739
17740Fixed a problem where the string length of a String package
17741element was not always set in a package returned from
17742AcpiEvaluateObject.
17743
17744Fixed a problem where the length of a String package element was
17745not always included in the length of the overall package returned
17746from AcpiEvaluateObject.
17747
17748Added external interfaces (Acpi*) to the ACPI debug memory
17749manager.  This manager keeps a list of all outstanding
17750allocations, and can therefore detect memory leaks and attempts to
17751free memory blocks more than once. Useful for code such as the
17752power manager, etc.  May not be appropriate for device drivers.
17753Performance with the debug code enabled is slow.
17754
17755The ACPI Global Lock is now an optional hardware element.
17756
17757 ASL Compiler Version X2015:
17758
17759Integrated changes to allow the compiler to be generated on
17760multiple platforms.
17761
17762Linux makefile added to generate the compiler on Linux
17763
17764 Source Code:
17765
17766All platform-specific headers have been moved to their own
17767subdirectory, Include/Platform.
17768
17769New source file added, Interpreter/ammutex.c
17770
17771New header file, Include/acstruct.h
17772
17773 Documentation:
17774
17775The programmer reference has been updated for the following new
17776interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
17777
17778 ------------------------------------------
17779Summary of changes for this label: 02_08_01
17780
17781Core ACPI CA Subsystem: Fixed a problem where an error was
17782incorrectly returned if the return resource buffer was larger than
17783the actual data (in the resource interfaces).
17784
17785References to named objects within packages are resolved to the
17786
17787full pathname string before packages are returned directly (via
17788the AcpiEvaluateObject interface) or indirectly via the resource
17789interfaces.
17790
17791Linux OS Services Layer (OSL):
17792
17793Improved /proc battery interface.
17794
17795
17796Added C-state debugging output and other miscellaneous fixes.
17797
17798ASL Compiler Version X2014:
17799
17800All defined method arguments can now be used as local variables,
17801including the ones that are not actually passed in as parameters.
17802The compiler tracks initialization of the arguments and issues an
17803exception if they are used without prior assignment (just like
17804locals).
17805
17806The -o option now specifies a filename prefix that is used for all
17807output files, including the AML output file.  Otherwise, the
17808default behavior is as follows:  1) the AML goes to the file
17809specified in the DSDT.  2) all other output files use the input
17810source filename as the base.
17811
17812 ------------------------------------------
17813Summary of changes for this label: 01_25_01
17814
17815Core ACPI CA Subsystem: Restructured the implementation of object
17816store support within the  interpreter.  This includes support for
17817the Store operator as well  as any ASL operators that include a
17818target operand.
17819
17820Partially implemented support for Implicit Result-to-Target
17821conversion. This is when a result object is converted on the fly
17822to the type of  an existing target object.  Completion of this
17823support is pending  further analysis of the ACPI specification
17824concerning this matter.
17825
17826CPU-specific code has been removed from the subsystem (hardware
17827directory).
17828
17829New Power Management Timer functions added
17830
17831Linux OS Services Layer (OSL): Moved system state transition code
17832to the core, fixed it, and modified  Linux OSL accordingly.
17833
17834Fixed C2 and C3 latency calculations.
17835
17836
17837We no longer use the compilation date for the version message on
17838initialization, but retrieve the version from AcpiGetSystemInfo().
17839
17840Incorporated for fix Sony VAIO machines.
17841
17842Documentation:  The Programmer Reference has been updated and
17843reformatted.
17844
17845
17846ASL Compiler:  Version X2013: Fixed a problem where the line
17847numbering and error reporting could get out  of sync in the
17848presence of multiple include files.
17849
17850 ------------------------------------------
17851Summary of changes for this label: 01_15_01
17852
17853Core ACPI CA Subsystem:
17854
17855Implemented support for type conversions in the execution of the
17856ASL  Concatenate operator (The second operand is converted to
17857match the type  of the first operand before concatenation.)
17858
17859Support for implicit source operand conversion is partially
17860implemented.   The ASL source operand types Integer, Buffer, and
17861String are freely  interchangeable for most ASL operators and are
17862converted by the interpreter  on the fly as required.  Implicit
17863Target operand conversion (where the  result is converted to the
17864target type before storing) is not yet implemented.
17865
17866Support for 32-bit and 64-bit BCD integers is implemented.
17867
17868Problem fixed where a field read on an aligned field could cause a
17869read  past the end of the field.
17870
17871New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
17872does not return a value, but the caller expects one.  (The ASL
17873compiler flags this as a warning.)
17874
17875ASL Compiler:
17876
17877Version X2011:
178781. Static typechecking of all operands is implemented. This
17879prevents the use of invalid objects (such as using a Package where
17880an Integer is required) at compile time instead of at interpreter
17881run-time.
178822. The ASL source line is printed with ALL errors and warnings.
178833. Bug fix for source EOF without final linefeed.
178844. Debug option is split into a parse trace and a namespace trace.
178855. Namespace output option (-n) includes initial values for
17886integers and strings.
178876. Parse-only option added for quick syntax checking.
178887. Compiler checks for duplicate ACPI name declarations
17889
17890Version X2012:
178911. Relaxed typechecking to allow interchangeability between
17892strings, integers, and buffers.  These types are now converted by
17893the interpreter at runtime.
178942. Compiler reports time taken by each internal subsystem in the
17895debug         output file.
17896
17897
17898 ------------------------------------------
17899Summary of changes for this label: 12_14_00
17900
17901ASL Compiler:
17902
17903This is the first official release of the compiler. Since the
17904compiler requires elements of the Core Subsystem, this label
17905synchronizes everything.
17906
17907------------------------------------------
17908Summary of changes for this label: 12_08_00
17909
17910
17911Fixed a problem where named references within the ASL definition
17912of both OperationRegions and CreateXXXFields did not work
17913properly.  The symptom was an AE_AML_OPERAND_TYPE during
17914initialization of the region/field. This is similar (but not
17915related internally) to the problem that was fixed in the last
17916label.
17917
17918Implemented both 32-bit and 64-bit support for the BCD ASL
17919functions ToBCD and FromBCD.
17920
17921Updated all legal headers to include "2000" in the copyright
17922years.
17923
17924 ------------------------------------------
17925Summary of changes for this label: 12_01_00
17926
17927Fixed a problem where method invocations within the ASL definition
17928of both OperationRegions and CreateXXXFields did not work
17929properly.  The symptom was an AE_AML_OPERAND_TYPE during
17930initialization of the region/field:
17931
17932  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
17933[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
17934(0x3005)
17935
17936Fixed a problem where operators with more than one nested
17937subexpression would fail.  The symptoms were varied, by mostly
17938AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
17939problem that has gone unnoticed until now.
17940
17941  Subtract (Add (1,2), Multiply (3,4))
17942
17943Fixed a problem where AcpiGetHandle didn't quite get fixed in the
17944previous build (The prefix part of a relative path was handled
17945incorrectly).
17946
17947Fixed a problem where Operation Region initialization failed if
17948the operation region name was a "namepath" instead of a simple
17949"nameseg". Symptom was an AE_NO_OPERAND error.
17950
17951Fixed a problem where an assignment to a local variable via the
17952indirect RefOf mechanism only worked for the first such
17953assignment.  Subsequent assignments were ignored.
17954
17955 ------------------------------------------
17956Summary of changes for this label: 11_15_00
17957
17958ACPI 2.0 table support with backwards support for ACPI 1.0 and the
179590.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
17960the AML  interpreter does NOT have support for the new 2.0 ASL
17961grammar terms at this time.
17962
17963All ACPI hardware access is via the GAS structures in the ACPI 2.0
17964FADT.
17965
17966All physical memory addresses across all platforms are now 64 bits
17967wide. Logical address width remains dependent on the platform
17968(i.e., "void *").
17969
17970AcpiOsMapMemory interface changed to a 64-bit physical address.
17971
17972The AML interpreter integer size is now 64 bits, as per the ACPI
179732.0 specification.
17974
17975For backwards compatibility with ACPI 1.0, ACPI tables with a
17976revision number less than 2 use 32-bit integers only.
17977
17978Fixed a problem where the evaluation of OpRegion operands did not
17979always resolve them to numbers properly.
17980
17981------------------------------------------
17982Summary of changes for this label: 10_20_00
17983
17984Fix for CBN_._STA issue.  This fix will allow correct access to
17985CBN_ OpRegions when the _STA returns 0x8.
17986
17987Support to convert ACPI constants (Ones, Zeros, One) to actual
17988values before a package object is returned
17989
17990Fix for method call as predicate to if/while construct causing
17991incorrect if/while behavior
17992
17993Fix for Else block package lengths sometimes calculated wrong (if
17994block > 63 bytes)
17995
17996Fix for Processor object length field, was always zero
17997
17998Table load abort if FACP sanity check fails
17999
18000Fix for problem with Scope(name) if name already exists
18001
18002Warning emitted if a named object referenced cannot be found
18003(resolved) during method execution.
18004
18005
18006
18007
18008
18009------------------------------------------
18010Summary of changes for this label: 9_29_00
18011
18012New table initialization interfaces: AcpiInitializeSubsystem no
18013longer has any parameters AcpiFindRootPointer - Find the RSDP (if
18014necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
18015>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
18016AcpiLoadTables
18017
18018Note: These interface changes require changes to all existing OSDs
18019
18020The PCI_Config default address space handler is always installed
18021at the root namespace object.
18022
18023-------------------------------------------
18024Summary of changes for this label: 09_15_00
18025
18026The new initialization architecture is implemented.  New
18027interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
18028AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
18029
18030(Namespace is automatically loaded when a table is loaded)
18031
18032The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1803352 bytes to 32 bytes.  There is usually one of these for every
18034namespace object, so the memory savings is significant.
18035
18036Implemented just-in-time evaluation of the CreateField operators.
18037
18038Bug fixes for IA-64 support have been integrated.
18039
18040Additional code review comments have been implemented
18041
18042The so-called "third pass parse" has been replaced by a final walk
18043through the namespace to initialize all operation regions (address
18044spaces) and fields that have not yet been initialized during the
18045execution of the various _INI and REG methods.
18046
18047New file - namespace/nsinit.c
18048
18049-------------------------------------------
18050Summary of changes for this label: 09_01_00
18051
18052Namespace manager data structures have been reworked to change the
18053primary  object from a table to a single object.  This has
18054resulted in dynamic memory  savings of 3X within the namespace and
180552X overall in the ACPI CA subsystem.
18056
18057Fixed problem where the call to AcpiEvFindPciRootBuses was
18058inadvertently left  commented out.
18059
18060Reduced the warning count when generating the source with the GCC
18061compiler.
18062
18063Revision numbers added to each module header showing the
18064SourceSafe version of the file.  Please refer to this version
18065number when giving us feedback or comments on individual modules.
18066
18067The main object types within the subsystem have been renamed to
18068clarify their  purpose:
18069
18070ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
18071ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
18072ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
18073
18074NOTE: no changes to the initialization sequence are included in
18075this label.
18076
18077-------------------------------------------
18078Summary of changes for this label: 08_23_00
18079
18080Fixed problem where TerminateControlMethod was being called
18081multiple times per  method
18082
18083Fixed debugger problem where single stepping caused a semaphore to
18084be  oversignalled
18085
18086Improved performance through additional parse object caching -
18087added  ACPI_EXTENDED_OP type
18088
18089-------------------------------------------
18090Summary of changes for this label: 08_10_00
18091
18092Parser/Interpreter integration:  Eliminated the creation of
18093complete parse trees  for ACPI tables and control methods.
18094Instead, parse subtrees are created and  then deleted as soon as
18095they are processed (Either entered into the namespace or  executed
18096by the interpreter).  This reduces the use of dynamic kernel
18097memory  significantly. (about 10X)
18098
18099Exception codes broken into classes and renumbered.  Be sure to
18100recompile all  code that includes acexcep.h.  Hopefully we won't
18101have to renumber the codes  again now that they are split into
18102classes (environment, programmer, AML code,  ACPI table, and
18103internal).
18104
18105Fixed some additional alignment issues in the Resource Manager
18106subcomponent
18107
18108Implemented semaphore tracking in the AcpiExec utility, and fixed
18109several places  where mutexes/semaphores were being unlocked
18110without a corresponding lock  operation.  There are no known
18111semaphore or mutex "leaks" at this time.
18112
18113Fixed the case where an ASL Return operator is used to return an
18114unnamed  package.
18115
18116-------------------------------------------
18117Summary of changes for this label: 07_28_00
18118
18119Fixed a problem with the way addresses were calculated in
18120AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
18121manifested itself when a Field was  created with WordAccess or
18122DwordAccess, but the field unit defined within the  Field was less
18123
18124than a Word or Dword.
18125
18126Fixed a problem in AmlDumpOperands() module's loop to pull
18127operands off of the  operand stack to display information. The
18128problem manifested itself as a TLB  error on 64-bit systems when
18129accessing an operand stack with two or more  operands.
18130
18131Fixed a problem with the PCI configuration space handlers where
18132context was  getting confused between accesses. This required a
18133change to the generic address  space handler and address space
18134setup definitions. Handlers now get both a  global handler context
18135(this is the one passed in by the user when executing
18136AcpiInstallAddressSpaceHandler() and a specific region context
18137that is unique to  each region (For example, the _ADR, _SEG and
18138_BBN values associated with a  specific region). The generic
18139function definitions have changed to the  following:
18140
18141typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
18142UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
18143*HandlerContext, // This used to be void *Context void
18144*RegionContext); // This is an additional parameter
18145
18146typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
18147RegionHandle, UINT32 Function, void *HandlerContext,  void
18148**RegionContext); // This used to be **ReturnContext
18149
18150-------------------------------------------
18151Summary of changes for this label: 07_21_00
18152
18153Major file consolidation and rename.  All files within the
18154interpreter have been  renamed as well as most header files.  This
18155was done to prevent collisions with  existing files in the host
18156OSs -- filenames such as "config.h" and "global.h"  seem to be
18157quite common.  The VC project files have been updated.  All
18158makefiles  will require modification.
18159
18160The parser/interpreter integration continues in Phase 5 with the
18161implementation  of a complete 2-pass parse (the AML is parsed
18162twice) for each table;  This  avoids the construction of a huge
18163parse tree and therefore reduces the amount of  dynamic memory
18164required by the subsystem.  Greater use of the parse object cache
18165means that performance is unaffected.
18166
18167Many comments from the two code reviews have been rolled in.
18168
18169The 64-bit alignment support is complete.
18170
18171-------------------------------------------
18172Summary of changes for this label: 06_30_00
18173
18174With a nod and a tip of the hat to the technology of yesteryear,
18175we've added  support in the source code for 80 column output
18176devices.  The code is now mostly  constrained to 80 columns or
18177less to support environments and editors that 1)  cannot display
18178or print more than 80 characters on a single line, and 2) cannot
18179disable line wrapping.
18180
18181A major restructuring of the namespace data structure has been
18182completed.  The  result is 1) cleaner and more
18183understandable/maintainable code, and 2) a  significant reduction
18184in the dynamic memory requirement for each named ACPI  object
18185(almost half).
18186
18187-------------------------------------------
18188Summary of changes for this label: 06_23_00
18189
18190Linux support has been added.  In order to obtain approval to get
18191the ACPI CA  subsystem into the Linux kernel, we've had to make
18192quite a few changes to the  base subsystem that will affect all
18193users (all the changes are generic and OS- independent).  The
18194effects of these global changes have been somewhat far  reaching.
18195Files have been merged and/or renamed and interfaces have been
18196renamed.   The major changes are described below.
18197
18198Osd* interfaces renamed to AcpiOs* to eliminate namespace
18199pollution/confusion  within our target kernels.  All OSD
18200interfaces must be modified to match the new  naming convention.
18201
18202Files merged across the subsystem.  A number of the smaller source
18203and header  files have been merged to reduce the file count and
18204increase the density of the  existing files.  There are too many
18205to list here.  In general, makefiles that  call out individual
18206files will require rebuilding.
18207
18208Interpreter files renamed.  All interpreter files now have the
18209prefix am*  instead of ie* and is*.
18210
18211Header files renamed:  The acapi.h file is now acpixf.h.  The
18212acpiosd.h file is  now acpiosxf.h.  We are removing references to
18213the acronym "API" since it is  somewhat windowsy. The new name is
18214"external interface" or xface or xf in the  filenames.j
18215
18216
18217All manifest constants have been forced to upper case (some were
18218mixed case.)   Also, the string "ACPI_" has been prepended to many
18219(not all) of the constants,  typedefs, and structs.
18220
18221The globals "DebugLevel" and "DebugLayer" have been renamed
18222"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
18223
18224All other globals within the subsystem are now prefixed with
18225"AcpiGbl_" Internal procedures within the subsystem are now
18226prefixed with "Acpi" (with only  a few exceptions).  The original
18227two-letter abbreviation for the subcomponent  remains after "Acpi"
18228- for example, CmCallocate became AcpiCmCallocate.
18229
18230Added a source code translation/conversion utility.  Used to
18231generate the Linux  source code, it can be modified to generate
18232other types of source as well. Can  also be used to cleanup
18233existing source by removing extraneous spaces and blank  lines.
18234Found in tools/acpisrc/*
18235
18236OsdUnMapMemory was renamed to OsdUnmapMemory and then
18237AcpiOsUnmapMemory.  (UnMap  became Unmap).
18238
18239A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
18240When set to  one, this indicates that the caller wants to use the
18241
18242semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
18243both types.  However, implementers of this  call may want to use
18244different OS primitives depending on the type of semaphore
18245requested.  For example, some operating systems provide separate
18246
18247"mutex" and  "semaphore" interfaces - where the mutex interface is
18248much faster because it  doesn't have all the overhead of a full
18249semaphore implementation.
18250
18251Fixed a deadlock problem where a method that accesses the PCI
18252address space can  block forever if it is the first access to the
18253space.
18254
18255-------------------------------------------
18256Summary of changes for this label: 06_02_00
18257
18258Support for environments that cannot handle unaligned data
18259accesses (e.g.  firmware and OS environments devoid of alignment
18260handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
18261been added (via configurable macros) in  these three areas: -
18262Transfer of data from the raw AML byte stream is done via byte
18263moves instead of    word/dword/qword moves. - External objects are
18264aligned within the user buffer, including package   elements (sub-
18265objects). - Conversion of name strings to UINT32 Acpi Names is now
18266done byte-wise.
18267
18268The Store operator was modified to mimic Microsoft's
18269implementation when storing  to a Buffer Field.
18270
18271Added a check of the BM_STS bit before entering C3.
18272
18273The methods subdirectory has been obsoleted and removed.  A new
18274file, cmeval.c  subsumes the functionality.
18275
18276A 16-bit (DOS) version of AcpiExec has been developed.  The
18277makefile is under  the acpiexec directory.
18278