xref: /dragonfly/sys/contrib/dev/acpica/changes.txt (revision 6721db86)
1----------------------------------------
231 October 2018. Summary of changes for version 20181031:
3
4This release is available at https://acpica.org/downloads
5
6
7An Operation Region regression was fixed by properly adding address
8ranges to a global list during initialization. This allows OS to
9accurately check for overlapping regions between native devices (such as
10PCI) and Operation regions as well as checking for region conflicts
11between two Operation Regions.
12
13Added support for the 2-byte extended opcodes in the code/feature that
14attempts to continue parsing during the table load phase. Skip parsing
15Device declarations (and other extended opcodes) when an error occurs
16during parsing. Previously, only single-byte opcodes were supported.
17
18Cleanup: Simplified the module-level code support by eliminating a
19useless global variable (AcpiGbl_GroupModuleLeveCode).
20
21
222) iASL Compiler/Disassembler and Tools:
23
24iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE
25could cause a fault in the preprocessor. This was an inadvertent side-
26effect from moving more allocations/frees to the local cache/memory
27mechanism.
28
29iASL: Enhanced error detection by validating that all NameSeg elements
30within a NamePatch actually exist. The previous behavior was spotty at
31best, and such errors could be improperly ignored at compiler time (never
32at runtime, however. There are two new error messages, as shown in the
33examples below:
34
35dsdt.asl     33:     CreateByteField (TTTT.BXXX, 1, CBF1)
36Error    6161 -                              ^ One or more objects within
37the Pathname do not exist (TTTT.BXXX)
38
39dsdt.asl     34:     CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)
40Error    6160 -        One or more prefix Scopes do not exist ^
41(BBBB.CBF1)
42
43iASL: Disassembler/table-compiler: Added support for the static data
44table TPM2 revision 3 (an older version of TPM2). The support has been
45added for the compiler and the disassembler.
46
47Fixed compilation of DOS format data table file on Unix/Linux systems.
48iASL now properly detects line continuations (\) for DOS format data
49table definition language files on when executing on Unix/Linux.
50
51----------------------------------------
5203 October 2018. Summary of changes for version 20181003:
53
54
552) iASL Compiler/Disassembler and Tools:
56
57Fixed a regression introduced in version 20180927 that could cause the
58compiler to fault, especially with NamePaths containing one or more
59carats (^). Such as: ^^_SB_PCI0
60
61Added a new remark for the Sleep() operator when the sleep time operand
62is larger than one second. This is a very long time for the ASL/BIOS code
63and may not be what was intended by the ASL writer.
64
65----------------------------------------
6627 September 2018. Summary of changes for version 20180927:
67
68
691) ACPICA kernel-resident subsystem:
70
71Updated the GPE support to clear the status of all ACPI events when
72entering any/all sleep states in order to avoid premature wakeups. In
73theory, this may cause some wakeup events to be missed, but the
74likelihood of this is small. This change restores the original behavior
75of the ACPICA code in order to fix a regression seen from the previous
76"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.
77This regression could cause some systems to incorrectly wake immediately.
78
79Updated the execution of the _REG methods during initialization and
80namespace loading to bring the behavior into closer conformance to the
81ACPI specification and other ACPI implementations:
82
83From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):
84    "Control methods must assume all operation regions are inaccessible
85until the _REG(RegionSpace, 1) method is executed"
86
87    "The exceptions to this rule are:
881.  OSPM must guarantee that the following operation regions are always
89accessible:
90    SystemIO operation regions.
91    SystemMemory operation regions when accessing memory returned by the
92System Address Map reporting interfaces."
93
94Since the state of both the SystemIO and SystemMemory address spaces are
95defined by the specification to never change, this ACPICA change ensures
96that now _REG is never called on them. This solves some problems seen in
97the field and provides compatibility with other ACPI implementations. An
98update to the upcoming new version of the ACPI specification will help
99clarify this behavior.
100
101Updated the implementation of support for the Generic Serial Bus. For the
102"bidirectional" protocols, the internal implementation now automatically
103creates a return data buffer of the maximum size (255). This handles the
104worst-case for data that is returned from the serial bus handler, and
105fixes some problems seen in the field. This new buffer is directly
106returned to the ASL. As such, there is no true "bidirectional" buffer,
107which matches the ACPI specification. This is the reason for the "double
108store" seen in the example ASL code in the specification, shown below:
109
110Word Process Call (AttribProcessCall):
111    OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)
112    Field(TOP1, BufferAcc, NoLock, Preserve)
113    {
114        FLD1, 8, // Virtual register at command value 1.
115    }
116
117    Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer
118                             // as BUFF
119    CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)
120
121    Store(0x5416, DATA)               // Save 0x5416 into the data buffer
122    Store(Store(BUFF, FLD1), BUFF)    // Invoke a write/read Process Call
123transaction
124                           // This is the "double store". The write to
125                           // FLD1 returns a new buffer, which is stored
126                           // back into BUFF with the second Store.
127
128
1292) iASL Compiler/Disassembler and Tools:
130
131iASL: Implemented detection of extraneous/redundant uses of the Offset()
132operator within a Field Unit list. A remark is now issued for these. For
133example, the first two of the Offset() operators below are extraneous.
134Because both the compiler and the interpreter track the offsets
135automatically, these Offsets simply refer to the current offset and are
136unnecessary. Note, when optimization is enabled, the iASL compiler will
137in fact remove the redundant Offset operators and will not emit any AML
138code for them.
139
140    OperationRegion (OPR1, SystemMemory, 0x100, 0x100)
141    Field (OPR1)
142    {
143        Offset (0),     // Never needed
144        FLD1, 32,
145        Offset (4),     // Redundant, offset is already 4 (bytes)
146        FLD2, 8,
147        Offset (64),    // OK use of Offset.
148        FLD3, 16,
149    }
150dsdt.asl     14:         Offset (0),
151Remark   2158 -                 ^ Unnecessary/redundant use of Offset
152operator
153
154dsdt.asl     16:         Offset (4),
155Remark   2158 -                 ^ Unnecessary/redundant use of Offset
156operator
157
158----------------------------------------
15910 August 2018. Summary of changes for version 20180810:
160
161
1621) ACPICA kernel-resident subsystem:
163
164Initial ACPI table loading: Attempt to continue loading ACPI tables
165regardless of malformed AML. Since migrating table initialization to the
166new module-level code support, the AML interpreter rejected tables upon
167any ACPI error encountered during table load. This is a problem because
168non-serious ACPI errors during table load do not necessarily mean that
169the entire definition block (DSDT or SSDT) is invalid. This change
170improves the table loading by ignoring some types of errors that can be
171generated by incorrect AML. This can range from object type errors, scope
172errors, and index errors.
173
174Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs
175during suspend/resume. The status of ACPI events is no longer cleared
176when entering the ACPI S5 system state (power off) which caused some
177systems to power up immediately after turning off power in certain
178situations. This was a functional regression. It was fixed by clearing
179the status of all ACPI events again when entering S5 (for system-wide
180suspend or hibernation the clearing of the status of all events is not
181desirable, as it might cause the kernel to miss wakeup events sometimes).
182Rafael Wysocki.
183
184
1852) iASL Compiler/Disassembler and Tools:
186
187AcpiExec: Enhanced the -fi option (Namespace initialization file). Field
188elements listed in the initialization file were previously initialized
189after the table load and before executing module-level code blocks.
190Recent changes in the module-level code support means that the table load
191becomes a large control method execution. If fields are used within
192module-level code and we are executing with the -fi option, the
193initialization values were used to initialize the namespace object(s)
194only after the table was finished loading. This change Provides an early
195initialization of objects specified in the initialization file so that
196field unit values are populated during the table load (not after the
197load).
198
199AcpiExec: Fixed a small memory leak regression that could result in
200warnings during exit of the utility. These warnings were similar to
201these:
202    0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]
203    0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001
204
205----------------------------------------
20629 June 2018. Summary of changes for version 20180629:
207
208
2091) iASL Compiler/Disassembler and Tools:
210
211iASL: Fixed a regression related to the use of the ASL External
212statement. Error checking for the use of the External() statement has
213been relaxed. Previously, a restriction on the use of External meant that
214the referenced named object was required to be defined in a different
215table (an SSDT). Thus it would be an error to declare an object as an
216external and then define the same named object in the same table. For
217example:
218    DefinitionBlock (...)
219    {
220        External (DEV1)
221        Device (DEV1){...} // This was an error
222    }
223However, this behavior has caused regressions in some existing ASL code,
224because there is code that depends on named objects and externals (with
225the same name) being declared in the same table. This change will allow
226the ASL code above to compile without errors or warnings.
227
228iASL: Implemented ASL language extensions for four operators to make some
229of their arguments optional instead of required:
230    1) Field (RegionName, AccessType, LockRule, UpdateRule)
231    2) BankField (RegionName, BankName, BankValue,
232                AccessType, LockRule, UpdateRule)
233    3) IndexField (IndexName, DataName,
234                AccessType, LockRule, UpdateRule)
235For the Field operators above, the AccessType, LockRule, and UpdateRule
236are now optional arguments. The default values are:
237        AccessType: AnyAcc
238        LockRule:   NoLock
239        UpdateRule: Preserve
240    4) Mutex (MutexName, SyncLevel)
241For this operator, the SyncLevel argument is now optional. This argument
242is rarely used in any meaningful way by ASL code, and thus it makes sense
243to make it optional. The default value is:
244        SyncLevel:  0
245
246iASL: Attempted use of the ASL Unload() operator now results in the
247following warning:
248    "Unload is not supported by all operating systems"
249This is in fact very true, and the Unload operator may be completely
250deprecated in the near future.
251
252AcpiExec: Fixed a regression for the -fi option (Namespace initialization
253file. Recent changes in the ACPICA module-level code support altered the
254table load/initialization sequence . This means that the table load has
255become a large method execution of the table itself. If Operation Region
256Fields are used within any module-level code and the -fi option was
257specified, the initialization values were populated only after the table
258had completely finished loading (and thus the module-level code had
259already been executed). This change moves the initialization of objects
260listed in the initialization file to before the table is executed as a
261method. Field unit values are now initialized before the table execution
262is performed.
263
264----------------------------------------
26531 May 2018. Summary of changes for version 20180531:
266
267
2681) ACPICA kernel-resident Subsystem:
269
270Implemented additional support to help ensure that a DSDT or SSDT is
271fully loaded even if errors are incurred during the load. The majority of
272the problems that are seen is the failure of individual AML operators
273that occur during execution of any module-level code (MLC) existing in
274the table. This support adds a mechanism to abort the current ASL
275statement (AML opcode), emit an error message, and to simply move on to
276the next opcode -- instead of aborting the entire table load. This is
277different than the execution of a control method where the entire method
278is aborted upon any error. The goal is to perform a very "best effort" to
279load the ACPI tables. The most common MLC errors that have been seen in
280the field are direct references to unresolved ASL/AML symbols (referenced
281directly without the use of the CondRefOf operator to validate the
282symbol). This new ACPICA behavior is now compatible with other ACPI
283implementations.
284
285Interpreter: The Unload AML operator is no longer supported for the
286reasons below. An AE_NOT_IMPLEMENTED exception is returned.
2871) A correct implementation on at least some hosts may not be possible.
2882) Other ACPI implementations do not correctly/fully support it.
2893) It requires host device driver support which is not known to exist.
290    (To properly support namespace unload out from underneath.)
2914) This AML operator has never been seen in the field.
292
293Parser: Added a debug option to dump AML parse sub-trees as they are
294being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is
295ACPI_DB_PARSE_TREES.
296
297Debugger: Reduced the verbosity for errors incurred during table load and
298module-level code execution.
299
300Completed an investigation into adding a namespace node "owner list"
301instead of the current "owner ID" associated with namespace nodes. This
302list would link together all nodes that are owned by an individual
303control method. The purpose would be to enhance control method execution
304by speeding up cleanup during method exit (all namespace nodes created by
305a method are deleted upon method termination.) Currently, the entire
306namespace must be searched for matching owner IDs if (and only if) the
307method creates named objects outside of the local scope. However, by far
308the most common case is that methods create objects locally, not outside
309the method scope. There is already an ACPICA optimization in place that
310only searches the entire namespace in the rare case of a method creating
311objects elsewhere in the namespace. Therefore, it is felt that the
312overhead of adding an additional pointer to each namespace node to
313implement the owner list makes this feature unnecessary.
314
315
3162) iASL Compiler/Disassembler and Tools:
317
318iASL, Disassembler, and Template generator: Implemented support for
319Revision D of the IORT table. Adds a new subtable that is used to specify
320SMMUv3 PMCGs. rmurphy-arm.
321
322Disassembler: Restored correct table header validation for the "special"
323ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI
324table header and must be special-cased. This was a regression that has
325been present for apparently a long time.
326
327AcpiExec: Reduced verbosity of the local exception handler implemented
328within acpiexec. This handler is invoked by ACPICA upon any exceptions
329generated during control method execution. A new option was added: -vh
330restores the original verbosity level if desired.
331
332AcpiExec: Changed the default base from decimal to hex for the -x option
333(set debug level). This simplifies the use of this option and matches the
334behavior of the corresponding iASL -x option.
335
336AcpiExec: Restored a force-exit on multiple control-c (sigint)
337interrupts. This allows program termination even if other issues cause
338the control-c to fail.
339
340ASL test suite (ASLTS): Added tests for the recently implemented package
341element resolution mechanism that allows forward references to named
342objects from individual package elements (this mechanism provides
343compatibility with other ACPI implementations.)
344
345
346----------------------------------------
3478 May 2018. Summary of changes for version 20180508:
348
349
3501) ACPICA kernel-resident subsystem:
351
352Completed the new (recently deployed) package resolution mechanism for
353the Load and LoadTable ASL/AML operators. This fixes a regression that
354was introduced in version 20180209 that could result in an
355AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table
356(SSDT) that contains package objects.
357
358
3592) iASL Compiler/Disassembler and Tools:
360
361AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than
3621 MB. This change allows for table offsets within the acpidump file to be
363up to 8 characters. These changes are backwards compatible with existing
364acpidump files.
365
366
367----------------------------------------
36827 April 2018. Summary of changes for version 20180427:
369
370
3711) ACPICA kernel-resident subsystem:
372
373Debugger: Added support for Package objects in the "Test Objects"
374command. This command walks the entire namespace and evaluates all named
375data objects (Integers, Strings, Buffers, and now Packages).
376
377Improved error messages for the namespace root node. Originally, the root
378was referred to by the confusing string "\___". This has been replaced by
379"Namespace Root" for clarification.
380
381Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin
382Ian King <colin.king@canonical.com>.
383
384
3852) iASL Compiler/Disassembler and Tools:
386
387iASL: Implemented support to detect and flag illegal forward references.
388For compatibility with other ACPI implementations, these references are
389now illegal at the root level of the DSDT or SSDTs. Forward references
390have always been illegal within control methods. This change should not
391affect existing ASL/AML code because of the fact that these references
392have always been illegal in the other ACPI implementation.
393
394iASL: Added error messages for the case where a table OEM ID and OEM
395TABLE ID strings are longer than the ACPI-defined length. Previously,
396these strings were simply silently truncated.
397
398iASL: Enhanced the -tc option (which creates an AML hex file in C,
399suitable for import into a firmware project):
400  1) Create a unique name for the table, to simplify use of multiple
401SSDTs.
402  2) Add a protection #ifdef in the file, similar to a .h header file.
403With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd,
404evan.lloyd@arm.com
405
406AcpiExec: Added a new option, -df, to disable the local fault handler.
407This is useful during debugging, where it may be desired to drop into a
408debugger on a fault.
409
410----------------------------------------
41113 March 2018. Summary of changes for version 20180313:
412
413
4141) ACPICA kernel-resident subsystem:
415
416Implemented various improvements to the GPE support:
417
4181) Dispatch all active GPEs at initialization time so that no GPEs are
419lost.
4202) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled
421before devices are enumerated.
4223) Don't unconditionally clear ACPI IRQs during suspend/resume, so that
423IRQs are not lost.
4244) Add parallel GPE handling to eliminate the possibility of dispatching
425the same GPE twice.
4265) Dispatch any pending GPEs after enabling for the first time.
427
428AcpiGetObjectInfo - removed support for the _STA method. This was causing
429problems on some platforms.
430
431Added a new _OSI string, "Windows 2017.2".
432
433Cleaned up and simplified the module-level code support. These changes
434are in preparation for the eventual removal of the legacy MLC support
435(deferred execution), replaced by the new MLC architecture which executes
436the MLC as a table is loaded (DSDT/SSDTs).
437
438Changed a compile-time option to a runtime option. Changes the option to
439ignore ACPI table load-time package resolution errors into a runtime
440option. Used only for platforms that generate many AE_NOT_FOUND errors
441during boot. AcpiGbl_IgnorePackageResolutionErrors.
442
443Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some
444ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid
445compilation errors from unused variables (seen with some compilers).
446
447
4482) iASL Compiler/Disassembler and Tools:
449
450ASLTS: parallelized execution in order to achieve an (approximately) 2X
451performance increase.
452
453ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves
454error reporting.
455
456----------------------------------------
45709 February 2018. Summary of changes for version 20180209:
458
459
4601) ACPICA kernel-resident subsystem:
461
462Completed the final integration of the recent changes to Package Object
463handling and the module-level AML code support. This allows forward
464references from individual package elements when the package object is
465declared from within module-level code blocks. Provides compatibility
466with other ACPI implementations.
467
468The new architecture for the AML module-level code has been completed and
469is now the default for the ACPICA code. This new architecture executes
470the module-level code in-line as the ACPI table is loaded/parsed instead
471of the previous architecture which deferred this code until after the
472table was fully loaded. This solves some ASL code ordering issues and
473provides compatibility with other ACPI implementations. At this time,
474there is an option to fallback to the earlier architecture, but this
475support is deprecated and is planned to be completely removed later this
476year.
477
478Added a compile-time option to ignore AE_NOT_FOUND exceptions during
479resolution of named reference elements within Package objects. Although
480this is potentially a serious problem, it can generate a lot of
481noise/errors on platforms whose firmware carries around a bunch of unused
482Package objects. To disable these errors, define
483ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All
484errors are always reported for ACPICA applications such as AcpiExec.
485
486Fixed a regression related to the explicit type-conversion AML operators
487(ToXXXX). The regression was introduced early in 2017 but was not seen
488until recently because these operators are not fully supported by other
489ACPI implementations and are thus rarely used by firmware developers. The
490operators are defined by the ACPI specification to not implement the
491"implicit result object conversion". The regression incorrectly
492introduced this object conversion for the following explicit conversion
493operators:
494    ToInteger
495    ToString
496    ToBuffer
497    ToDecimalString
498    ToHexString
499    ToBCD
500    FromBCD
501
502
5032) iASL Compiler/Disassembler and Tools:
504
505iASL: Fixed a problem with the compiler constant folding feature as
506related to the ToXXXX explicit conversion operators. These operators do
507not support the "implicit result object conversion" by definition. Thus,
508ASL expressions that use these operators cannot be folded to a simple
509Store operator because Store implements the implicit conversion. This
510change uses the CopyObject operator for the ToXXXX operator folding
511instead. CopyObject is defined to not implement implicit result
512conversions and is thus appropriate for folding the ToXXXX operators.
513
514iASL: Changed the severity of an error condition to a simple warning for
515the case where a symbol is declared both locally and as an external
516symbol. This accommodates existing ASL code.
517
518AcpiExec: The -ep option to enable the new architecture for module-level
519code has been removed. It is replaced by the -dp option which instead has
520the opposite effect: it disables the new architecture (the default) and
521enables the legacy architecture. When the legacy code is removed in the
522future, the -dp option will be removed also.
523
524----------------------------------------
52505 January 2018. Summary of changes for version 20180105:
526
527
5281) ACPICA kernel-resident subsystem:
529
530Updated all copyrights to 2018. This affects all source code modules.
531
532Fixed a possible build error caused by an unresolved reference to the
533AcpiUtSafeStrncpy function.
534
535Removed NULL pointer arithmetic in the various pointer manipulation
536macros. All "(void *) NULL" constructs are converted to "(void *) 0".
537This eliminates warnings/errors in newer C compilers. Jung-uk Kim.
538
539Added support for A32 ABI compilation, which uses the ILP32 model. Anuj
540Mittal.
541
542
5432) iASL Compiler/Disassembler and Tools:
544
545ASLTS: Updated all copyrights to 2018.
546
547Tools: Updated all signon copyrights to 2018.
548
549AcpiXtract: Fixed a regression related to ACPI table signatures where the
550signature was truncated to 3 characters (instead of 4).
551
552AcpiExec: Restore the original terminal mode after the use of the -v and
553-vd options.
554
555ASLTS: Deployed the iASL __METHOD__ macro across the test suite.
556
557----------------------------------------
55814 December 2017. Summary of changes for version 20171214:
559
560
5611) ACPICA kernel-resident subsystem:
562
563Fixed a regression in the external (public) AcpiEvaluateObjectTyped
564interface where the optional "pathname" argument had inadvertently become
565a required argument returning an error if omitted (NULL pointer
566argument).
567
568Fixed two possible memory leaks related to the recently developed "late
569resolution" of reference objects within ASL Package Object definitions.
570
571Added two recently defined _OSI strings: "Windows 2016" and "Windows
5722017". Mario Limonciello.
573
574Implemented and deployed a safer version of the C library function
575strncpy:  AcpiUtSafeStrncpy. The intent is to at least prevent the
576creation of unterminated strings as a possible result of a standard
577strncpy.
578
579Cleaned up and restructured the global variable file (acglobal.h). There
580are many changes, but no functional changes.
581
582
5832) iASL Compiler/Disassembler and Tools:
584
585iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the
586optional OemData field at the end of the table was incorrectly required
587for proper compilation. It is now correctly an optional field.
588
589ASLTS: The entire suite was converted from standard ASL to the ASL+
590language, using the ASL-to-ASL+ converter which is integrated into the
591iASL compiler. A binary compare of all output files has verified the
592correctness of the conversion.
593
594iASL: Fixed the source code build for platforms where "char" is unsigned.
595This affected the iASL lexer only. Jung-uk Kim.
596
597----------------------------------------
59810 November 2017. Summary of changes for version 20171110:
599
600
6011) ACPICA kernel-resident subsystem:
602
603This release implements full support for ACPI 6.2A:
604    NFIT - Added a new subtable, "Platform Capabilities Structure"
605No other changes to ACPICA were required, since ACPI 6.2A is primarily an
606errata release of the specification.
607
608Other ACPI table changes:
609    IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo
610    PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy
611Linton
612
613Utilities: Modified the string/integer conversion functions to use
614internal 64-bit divide support instead of a native divide. On 32-bit
615platforms, a 64-bit divide typically requires a library function which
616may not be present in the build (kernel or otherwise).
617
618Implemented a targeted error message for timeouts returned from the
619Embedded Controller device driver. This is seen frequently enough to
620special-case an AE_TIME returned from an EC operation region access:
621    "Timeout from EC hardware or EC device driver"
622
623Changed the "ACPI Exception" message prefix to "ACPI Error" so that all
624runtime error messages have the identical prefix.
625
626
6272) iASL Compiler/Disassembler and Tools:
628
629AcpiXtract: Fixed a problem with table header detection within the
630acpidump file. Processing a table could be ended early if a 0x40 (@)
631appears in the original binary table, resulting in the @ symbol appearing
632in the decoded ASCII field at the end of the acpidump text line. The
633symbol caused acpixtract to incorrectly think it had reached the end of
634the current table and the beginning of a new table.
635
636AcpiXtract: Added an option (-f) to ignore some errors during table
637extraction. This initial implementation ignores non-ASCII and non-
638printable characters found in the acpidump text file.
639
640TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics
641for ASLTS. This feature is used to track memory allocations from
642different memory caches within the ACPICA code. At the end of an ASLTS
643run, these memory statistics are recorded and stored in a log file.
644
645Debugger (user-space version): Implemented a simple "Background" command.
646Creates a new thread to execute a control method in the background, while
647control returns to the debugger prompt to allow additional commands.
648    Syntax: Background <Namepath> [Arguments]
649
650----------------------------------------
65129 September 2017. Summary of changes for version 20170929:
652
653
6541) ACPICA kernel-resident subsystem:
655
656Redesigned and implemented an improved ASL While() loop timeout
657mechanism. This mechanism is used to prevent infinite loops in the kernel
658AML interpreter caused by either non-responsive hardware or incorrect AML
659code. The new implementation uses AcpiOsGetTimer instead of a simple
660maximum loop count, and is thus more accurate and constant across
661different machines. The default timeout is currently 30 seconds, but this
662may be adjusted later.
663
664Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to
665better reflect the new implementation of the loop timeout mechanism.
666
667Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support
668and to fix an off-by-one error. Jung-uk Kim.
669
670Fixed an EFI build problem by updating the makefiles to for a new file
671that was added, utstrsuppt.c
672
673
6742) iASL Compiler/Disassembler and Tools:
675
676Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This
677includes support in the table disassembler, compiler, and template
678generator.
679
680iASL: Added an exception for an illegal type of recursive method
681invocation. If a method creates named objects, the first recursive call
682will fail at runtime. This change adds an error detection at compile time
683to catch the problem up front. Note: Marking such a method as
684"serialized" will not help with this problem, because the same thread can
685acquire the method mutex more than once. Example compiler and runtime
686output:
687
688    Method (MTH1)
689    {
690        Name (INT1, 1)
691        MTH1 ()
692    }
693
694    dsdt.asl     22: MTH1 ()
695    Error    6152 -  ^ Illegal recursive call to method
696                       that creates named objects (MTH1)
697
698Previous runtime exception:
699    ACPI Error: [INT1] Namespace lookup failure,
700    AE_ALREADY_EXISTS (20170831/dswload2-465)
701
702iASL: Updated support for External() opcodes to improve namespace
703management and error detection. These changes are related to issues seen
704with multiple-segment namespace pathnames within External declarations,
705such as below:
706
707    External(\_SB.PCI0.GFX0, DeviceObj)
708    External(\_SB.PCI0.GFX0.ALSI)
709
710iASL: Implemented support for multi-line error/warning messages. This
711enables more detailed and helpful error messages as below, from the
712initial deployment for the duplicate names error:
713
714    DSDT.iiii   1692:       Device(PEG2) {
715    Error    6074 -                  ^ Name already exists in scope
716(PEG2)
717
718        Original name creation/declaration below:
719        DSDT.iiii     93:   External(\_SB.PCI0.PEG2, DeviceObj)
720
721AcpiXtract: Added additional flexibility to support differing input hex
722dump formats. Specifically, hex dumps that contain partial disassembly
723and/or comments within the ACPI table data definition. There exist some
724dump utilities seen in the field that create this type of hex dump (such
725as Simics). For example:
726
727    DSDT @ 0xdfffd0c0 (10999 bytes)
728        Signature DSDT
729        Length 10999
730        Revision 1
731        Checksum 0xf3 (Ok)
732        OEM_ID BXPC
733        OEM_table_id BXDSDT
734        OEM_revision 1
735        Creator_id 1280593481
736        Creator_revision 537399345
737      0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00
738      ...
739      2af0: 5f 4c 30 46 00 a4 01
740
741Test suite: Miscellaneous changes/fixes:
742    More cleanup and simplification of makefiles
743    Continue compilation of test cases after a compile failure
744    Do not perform binary compare unless both files actually exist
745
746iASL: Performed some code/module restructuring. Moved all memory
747allocation functions to new modules. Two new files, aslallocate.c and
748aslcache.c
749
750----------------------------------------
75131 August 2017. Summary of changes for version 20170831:
752
753
7541) ACPICA kernel-resident subsystem:
755
756Implemented internal support for full 64-bit addresses that appear in all
757Generic Address Structure (GAS) structures. Previously, only the lower 32
758bits were used. Affects the use of GAS structures in the FADT and other
759tables, as well as the GAS structures passed to the AcpiRead and
760AcpiWrite public external interfaces that are used by drivers. Lv Zheng.
761
762Added header support for the PDTT ACPI table (Processor Debug Trigger
763Table). Full support in the iASL Data Table Compiler and disassembler is
764forthcoming.
765
766
7672) iASL Compiler/Disassembler and Tools:
768
769iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor
770Properties Topology Table) where a flag bit was specified in the wrong
771bit position ("Line Size Valid", bit 6).
772
773iASL: Implemented support for Octal integer constants as defined by the
774ASL language grammar, per the ACPI specification. Any integer constant
775that starts with a zero is an octal constant. For example,
776    Store (037777, Local0) /* Octal constant */
777    Store (0x3FFF, Local0) /* Hex equivalent */
778    Store (16383,  Local0) /* Decimal equivalent */
779
780iASL: Improved overflow detection for 64-bit string conversions during
781compilation of integer constants. "Overflow" in this case means a string
782that represents an integer that is too large to fit into a 64-bit value.
783Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to
784the low-order 32 bits with a warning, as previously implemented. Several
785new exceptions are defined that indicate a 64-bit overflow, as well as
786the base (radix) that was used during the attempted conversion. Examples:
787    Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF        // AE_HEX_OVERFLOW
788    Local0 = 01111222233334444555566667777     // AE_OCTAL_OVERFLOW
789    Local0 = 11112222333344445555666677778888  // AE_DECIMAL_OVERFLOW
790
791iASL: Added a warning for the case where a ResourceTemplate is declared
792with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In
793this case, the resulting template is created with a single END_TAG
794descriptor, which is essentially useless.
795
796iASL: Expanded the -vw option (ignore specific warnings/remarks) to
797include compilation error codes as well.
798
799----------------------------------------
80028 July 2017. Summary of changes for version 20170728:
801
802
8031) ACPICA kernel-resident subsystem:
804
805Fixed a regression seen with small resource descriptors that could cause
806an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.
807
808AML interpreter: Implemented a new feature that allows forward references
809from individual named references within package objects that are
810contained within blocks of "module-level code". This provides
811compatibility with other ACPI implementations and supports existing
812firmware that depends on this feature. Example:
813
814    Name (ABCD, 1)
815    If (ABCD)                       /* An If() at module-level */
816    {
817        Name (PKG1, Package()
818        {
819            INT1                    /* Forward reference to object INT1
820*/
821        })
822        Name (INT1, 0x1234)
823    }
824
825AML Interpreter: Fixed a problem with the Alias() operator where aliases
826to some ASL objects were not handled properly. Objects affected are:
827Mutex, Event, and OperationRegion.
828
829AML Debugger: Enhanced to properly handle AML Alias objects. These
830objects have one level of indirection which was not fully supported by
831the debugger.
832
833Table Manager: Added support to detect and ignore duplicate SSDTs within
834the XSDT/RSDT. This error in the XSDT has been seen in the field.
835
836EFI and EDK2 support:
837    Enabled /WX flag for MSVC builds
838    Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer
839    Added local support for 64-bit multiply and shift operations
840    Added support to compile acpidump.efi on Windows
841    Added OSL function stubs for interfaces not used under EFI
842
843Added additional support for the _DMA predefined name. _DMA returns a
844buffer containing a resource template. This change add support within the
845resource manager (AcpiWalkResourceBuffer) to walk and parse this list of
846resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
847
848
8492) iASL Compiler/Disassembler and Tools:
850
851iASL: Fixed a problem where the internal input line buffer(s) could
852overflow if there are very long lines in the input ASL source code file.
853Implemented buffer management that automatically increases the size of
854the buffers as necessary.
855
856iASL: Added an option (-vx) to "expect" particular remarks, warnings and
857errors. If the specified exception is not raised during compilation, the
858compiler emits an error. This is intended to support the ASL test suite,
859but may be useful in other contexts.
860
861iASL: Implemented a new predefined macro, __METHOD__, which returns a
862string containing the name of the current control method that is being
863compiled.
864
865iASL: Implemented debugger and table compiler support for the SDEI ACPI
866table (Software Delegated Exception Interface). James Morse
867<james.morse@arm.com>
868
869Unix/Linux makefiles: Added an option to disable compile optimizations.
870The disable occurs when the NOOPT flag is set to TRUE.
871theracermaster@gmail.com
872
873Acpidump: Added support for multiple DSDT and FACS tables. This can occur
874when there are different tables for 32-bit versus 64-bit.
875
876Enhanced error reporting for the ASL test suite (ASLTS) by removing
877unnecessary/verbose text, and emit the actual line number where an error
878has occurred. These changes are intended to improve the usefulness of the
879test suite.
880
881----------------------------------------
88229 June 2017. Summary of changes for version 20170629:
883
884
8851) ACPICA kernel-resident subsystem:
886
887Tables: Implemented a deferred ACPI table verification. This is useful
888for operating systems where the tables cannot be verified in the early
889initialization stage due to early memory mapping limitations on some
890architectures. Lv Zheng.
891
892Tables: Removed the signature validation for dynamically loaded tables.
893Provides compatibility with other ACPI implementations. Previously, only
894SSDT tables were allowed, as per the ACPI specification. Now, any table
895signature can be used via the Load() operator. Lv Zheng.
896
897Tables: Fixed several mutex issues that could cause errors during table
898acquisition. Lv Zheng.
899
900Tables: Fixed a problem where an ACPI warning could be generated if a
901null pointer was passed to the AcpiPutTable interface. Lv Zheng.
902
903Tables: Added a mechanism to handle imbalances for the AcpiGetTable and
904AcpiPutTable interfaces. This applies to the "late stage" table loading
905when the use of AcpiPutTable is no longer required (since the system
906memory manager is fully running and available). Lv Zheng.
907
908Fixed/Reverted a regression during processing of resource descriptors
909that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG
910exception in this case.
911
912Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the
913I/O Remapping specification. Robin Murphy <robin.murphy@arm.com>
914
915Interpreter: Fixed a possible fault if an Alias operator with an invalid
916or duplicate target is encountered during Alias creation in
917AcpiExCreateAlias. Alex James <theracermaster@gmail.com>
918
919Added an option to use designated initializers for function pointers.
920Kees Cook <keescook@google.com>
921
922
9232) iASL Compiler/Disassembler and Tools:
924
925iASL: Allow compilation of External declarations with target pathnames
926that refer to existing named objects within the table. Erik Schmauss.
927
928iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a
929FieldUnit name also is declared via External in the same table. Erik
930Schmauss.
931
932iASL: Allow existing scope names within pathnames used in External
933statements. For example:
934    External (ABCD.EFGH) // ABCD exists, but EFGH is truly external
935    Device (ABCD)
936
937iASL: IORT ACPI table: Implemented changes required to decode the new
938Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table
939compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
940
941Disassembler: Don't abort disassembly on errors from External()
942statements. Erik Schmauss.
943
944Disassembler: fixed a possible fault when one of the Create*Field
945operators references a Resource Template. ACPICA Bugzilla 1396.
946
947iASL: In the source code, resolved some naming inconsistences across the
948parsing support. Fixes confusion between "Parse Op" and "Parse Node".
949Adds a new file, aslparseop.c
950
951----------------------------------------
95231 May 2017. Summary of changes for version 20170531:
953
954
9550) ACPI 6.2 support:
956
957The ACPI specification version 6.2 has been released and is available at
958http://uefi.org/specifications
959
960This version of ACPICA fully supports the ACPI 6.2 specification. Changes
961are summarized below.
962
963New ACPI tables (Table Compiler/Disassembler/Templates):
964    HMAT (Heterogeneous Memory Attributes Table)
965    WSMT (Windows SMM Security Mitigation Table)
966    PPTT (Processor Properties Topology Table)
967
968New subtables for existing ACPI tables:
969    HEST (New subtable, Arch-deferred machine check)
970    SRAT (New subtable, Arch-specific affinity structure)
971    PCCT (New subtables, Extended PCC subspaces (types 3 and 4))
972
973Simple updates for existing ACPI tables:
974    BGRT (two new flag bits)
975    HEST (New bit defined for several subtables, GHES_ASSIST)
976
977New Resource Descriptors and Resource macros (Compiler/Disassembler):
978    PinConfig()
979    PinFunction()
980    PinGroup()
981    PinGroupConfig()
982    PinGroupFunction()
983    New type for hardware error notification (section 18.3.2.9)
984
985New predefined names/methods (Compiler/Interpreter):
986    _HMA (Heterogeneous Memory Attributes)
987    _LSI (Label Storage Information)
988    _LSR (Label Storage Read)
989    _LSW (Label Storage Write)
990
991ASL grammar/macro changes (Compiler):
992    For() ASL macro, implemented with the AML while operator
993    Extensions to Concatenate operator
994    Support for multiple definition blocks in same ASL file
995    Clarification for Buffer operator
996    Allow executable AML code underneath all scopes (Devices, etc.)
997    Clarification/change for the _OSI return value
998    ASL grammar update for reference operators
999    Allow a zero-length string for AML filename in DefinitionBlock
1000
1001Miscellaneous:
1002    New device object notification value
1003    Remove a notify value (0x0C) for graceful shutdown
1004    New UUIDs for processor/cache properties and
1005        physical package property
1006    New _HID, ACPI0014 (Wireless Power Calibration Device)
1007
1008
10091) ACPICA kernel-resident subsystem:
1010
1011Added support to disable ACPI events on hardware-reduced platforms.
1012Eliminates error messages of the form "Could not enable fixed event". Lv
1013Zheng
1014
1015Fixed a problem using Device/Thermal objects with the ObjectType and
1016DerefOf ASL operators. This support had not been fully/properly
1017implemented.
1018
1019Fixed a problem where if a Buffer object containing a resource template
1020was longer than the actual resource template, an error was generated --
1021even though the AML is legal. This case has been seen in the field.
1022
1023Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.
1024The values for DUAL_PIC and MULTIPLE_APIC were reversed.
1025
1026Added header file changes for the TPM2 ACPI table. Update to new version
1027of the TCG specification. Adds a new TPM2 subtable for ARM SMC.
1028
1029Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.
1030These interfaces are intended to be used only in conjunction with the
1031predefined _DLM method (Device Lock Method). "This object appears in a
1032device scope when AML access to the device must be synchronized with the
1033OS environment".
1034
1035Example Code and Data Size: These are the sizes for the OS-independent
1036acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1037debug version of the code includes the debug output trace mechanism and
1038has a much larger code and data size.
1039
1040  Current Release:
1041    Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total
1042    Debug Version:     204.0K Code, 84.3K Data, 288.3K Total
1043  Previous Release:
1044    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
1045    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
1046
1047
10482) iASL Compiler/Disassembler and Tools:
1049
1050iASL: Fixed a problem where an External() declaration could not refer to
1051a Field Unit. Erik Schmauss.
1052
1053Disassembler: Improved support for the Switch/Case operators. This
1054feature will disassemble AML code back to the original Switch operators
1055when possible, instead of an If..Else sequence. David Box
1056
1057iASL and disassembler: Improved the handling of multiple extraneous
1058parentheses for both ASL input and disassembled ASL output.
1059
1060Improved the behavior of the iASL compiler and disassembler to detect
1061improper use of external declarations
1062
1063Disassembler: Now aborts immediately upon detection of an unknown AML
1064opcode. The AML parser has no real way to recover from this, and can
1065result in the creation of an ill-formed parse tree that causes errors
1066later during the disassembly.
1067
1068All tools: Fixed a problem where the Unix application OSL did not handle
1069control-c correctly. For example, a control-c could incorrectly wake the
1070debugger.
1071
1072AcpiExec: Improved the Control-C handling and added a handler for
1073segmentation faults (SIGSEGV). Supports both Windows and Unix-like
1074environments.
1075
1076Reduced the verbosity of the generic unix makefiles. Previously, each
1077compilation displayed the full set of compiler options. This has been
1078eliminated as the options are easily inspected within the makefiles. Each
1079compilation now results in a single line of output.
1080
1081----------------------------------------
108203 March 2017. Summary of changes for version 20170303:
1083
1084
10850) ACPICA licensing:
1086
1087The licensing information at the start of each source code module has
1088been updated. In addition to the Intel license, the dual GPLv2/BSD
1089license has been added for completeness. Now, a single version of the
1090source code should be suitable for all ACPICA customers. This is the
1091major change for this release since it affects all source code modules.
1092
1093
10941) ACPICA kernel-resident subsystem:
1095
1096Fixed two issues with the common asltypes.h header that could cause
1097problems in some environments: (Kim Jung-uk)
1098    Removed typedef for YY_BUFFER_STATE ?
1099       Fixes an error with earlier versions of Flex.
1100    Removed use of FILE typedef (which is only defined in stdio.h)
1101
1102
11032) iASL Compiler/Disassembler and Tools:
1104
1105Disassembler: fixed a regression introduced in 20170224. A fix for a
1106memory leak related to resource descriptor tags (names) could fault when
1107the disassembler was generated with 64-bit compilers.
1108
1109The ASLTS test suite has been updated to implement a new testing
1110architecture. During generation of the suite from ASL source, both the
1111ASL and ASL+ compilers are now validated, as well as the disassembler
1112itself (Erik Schmauss). The architecture executes as follows:
1113
1114    For every ASL source module:
1115        Compile (legacy ASL compilation)
1116        Disassemble the resulting AML to ASL+ source code
1117        Compile the new ASL+ module
1118        Perform a binary compare on the legacy AML and the new ASL+ AML
1119    The ASLTS suite then executes normally using the AML binaries.
1120
1121----------------------------------------
112224 February 2017. Summary of changes for version 20170224:
1123
1124
11251) ACPICA kernel-resident subsystem:
1126
1127Interpreter: Fixed two issues with the control method return value auto-
1128repair feature, where an attempt to double-delete an internal object
1129could result in an ACPICA warning (for _CID repair and others). No fault
1130occurs, however, because the attempted deletion (actually a release to an
1131internal cache) is detected and ignored via object poisoning.
1132
1133Debugger: Fixed an AML interpreter mutex issue during the single stepping
1134of control methods. If certain debugger commands are executed during
1135stepping, a mutex aquire/release error could occur. Lv Zheng.
1136
1137Fixed some issues generating ACPICA with the Intel C compiler by
1138restoring the original behavior and compiler-specific include file in
1139acenv.h. Lv Zheng.
1140
1141Example Code and Data Size: These are the sizes for the OS-independent
1142acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1143debug version of the code includes the debug output trace mechanism and
1144has a much larger code and data size.
1145
1146  Current Release:
1147    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
1148    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
1149  Previous Release:
1150    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
1151    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
1152
1153
11542) iASL Compiler/Disassembler and Tools:
1155
1156iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion
1157tool has been designed, implemented, and included in this release. The
1158key feature of this utility is that the original comments within the
1159input ASL file are preserved during the conversion process, and included
1160within the converted ASL+ file -- thus creating a transparent conversion
1161of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.
1162
1163    Usage: iasl -ca <ASL-filename>  // Output is a .dsl file with
1164converted code
1165
1166iASL/Disassembler: Improved the detection and correct disassembly of
1167Switch/Case operators. This feature detects sequences of if/elseif/else
1168operators that originated from ASL Switch/Case/Default operators and
1169emits the original operators. David Box.
1170
1171iASL: Improved the IORT ACPI table support in the following areas. Lv
1172Zheng:
1173    Clear MappingOffset if the MappingCount is zero.
1174    Fix the disassembly of the SMMU GSU interrupt offset.
1175    Update the template file for the IORT table.
1176
1177Disassembler: Enhanced the detection and disassembly of resource
1178template/descriptor within a Buffer object. An EndTag descriptor is now
1179required to have a zero second byte, since all known ASL compilers emit
1180this. This helps eliminate incorrect decisions when a buffer is
1181disassembled (false positives on resource templates).
1182
1183----------------------------------------
118419 January 2017. Summary of changes for version 20170119:
1185
1186
11871) General ACPICA software:
1188
1189Entire source code base: Added the 2017 copyright to all source code
1190legal/licensing module headers and utility/tool signons. This includes
1191the standard Linux dual-license header. This affects virtually every file
1192in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
1193the ACPICA test suite.
1194
1195
11962) iASL Compiler/Disassembler and Tools:
1197
1198iASL: Removed/fixed an inadvertent remark when a method argument
1199containing a reference is used as a target operand within the method (and
1200never used as a simple argument), as in the example below. Jeffrey Hugo.
1201
1202    dsdt.asl   1507:    Store(0x1, Arg0)
1203    Remark   2146 -                ^ Method Argument is never used (Arg0)
1204
1205All tools: Removed the bit width of the compiler that generated the tool
1206from the common signon for all user space tools. This proved to be
1207confusing and unnecessary. This includes similar removal of HARDWARE_NAME
1208from the generic makefiles (Thomas Petazzoni). Example below.
1209
1210    Old:
1211    ASL+ Optimizing Compiler version 20170119-32
1212    ASL+ Optimizing Compiler version 20170119-64
1213
1214    New:
1215    ASL+ Optimizing Compiler version 20170119
1216
1217----------------------------------------
121822 December 2016. Summary of changes for version 20161222:
1219
1220
12211) ACPICA kernel-resident subsystem:
1222
1223AML Debugger: Implemented a new mechanism to simplify and enhance
1224debugger integration into all environments, including kernel debuggers
1225and user-space utilities, as well as remote debug services. This
1226mechanism essentially consists of new OSL interfaces to support debugger
1227initialization/termination, as well as wait/notify interfaces to perform
1228the debugger handshake with the host. Lv Zheng.
1229
1230    New OSL interfaces:
1231        AcpiOsInitializeDebugger (void)
1232        AcpiOsTerminateDebugger (void)
1233        AcpiOsWaitCommandReady (void)
1234        AcpiOsNotifyCommandComplete (void)
1235
1236    New OS services layer:
1237        osgendbg.c -- Example implementation, and used for AcpiExec
1238
1239Update for Generic Address Space (GAS) support: Although the AccessWidth
1240and/or BitOffset fields of the GAS are not often used, this change now
1241fully supports these fields. This affects the internal support for FADT
1242registers, registers in other ACPI data tables, and the AcpiRead and
1243AcpiWrite public interfaces. Lv Zheng.
1244
1245Sleep support: In order to simplify integration of ACPI sleep for the
1246various host operating systems, a new OSL interface has been introduced.
1247AcpiOsEnterSleep allows the host to perform any required operations
1248before the final write to the sleep control register(s) is performed by
1249ACPICA. Lv Zheng.
1250
1251    New OSL interface:
1252        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
1253
1254    Called from these internal interfaces:
1255        AcpiHwLegacySleep
1256        AcpiHwExtendedSleep
1257
1258EFI support: Added a very small EFI/ACPICA example application. Provides
1259a simple demo for EFI integration, as well as assisting with resolution
1260of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
1261
1262    source/tools/efihello/efihello.c
1263
1264Local C library: Implemented several new functions to enhance ACPICA
1265portability, for environments where these clib functions are not
1266available (such as EFI). Lv Zheng:
1267    putchar
1268    getchar
1269    strpbrk
1270    strtok
1271    memmove
1272
1273Fixed a regression where occasionally a valid resource descriptor was
1274incorrectly detected as invalid at runtime, and a
1275AE_AML_NO_RESOURCE_END_TAG was returned.
1276
1277Fixed a problem with the recently implemented support that enables
1278control method invocations as Target operands to many ASL operators.
1279Warnings of this form: "Needed type [Reference], found [Processor]" were
1280seen at runtime for some method invocations.
1281
1282Example Code and Data Size: These are the sizes for the OS-independent
1283acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1284debug version of the code includes the debug output trace mechanism and
1285has a much larger code and data size.
1286
1287  Current Release:
1288    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
1289    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
1290  Previous Release:
1291    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
1292    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
1293
1294
12952) iASL Compiler/Disassembler and Tools:
1296
1297Disassembler: Enhanced output by adding the capability to detect and
1298disassemble ASL Switch/Case statements back to the original ASL source
1299code instead of if/else blocks. David Box.
1300
1301AcpiHelp: Split a large file into separate files based upon
1302functionality/purpose. New files are:
1303    ahaml.c
1304    ahasl.c
1305
1306----------------------------------------
130717 November 2016. Summary of changes for version 20161117:
1308
1309
13101) ACPICA kernel-resident subsystem:
1311
1312Table Manager: Fixed a regression introduced in 20160729, "FADT support
1313cleanup". This was an attempt to remove all references in the source to
1314the FADT version 2, which never was a legal version number. It was
1315skipped because it was an early version of 64-bit support that was
1316eventually abandoned for the current 64-bit support.
1317
1318Interpreter: Fixed a problem where runtime implicit conversion was
1319incorrectly disabled for the ASL operators below. This brings the
1320behavior into compliance with the ACPI specification:
1321    FromBCD
1322    ToBCD
1323    ToDecimalString
1324    ToHexString
1325    ToInteger
1326    ToBuffer
1327
1328Table Manager: Added a new public interface, AcpiPutTable, used to
1329release and free an ACPI table returned by AcpiGetTable and related
1330interfaces. Lv Zheng.
1331
1332Example Code and Data Size: These are the sizes for the OS-independent
1333acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1334debug version of the code includes the debug output trace mechanism and
1335has a much larger code and data size.
1336
1337  Current Release:
1338    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
1339    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
1340  Previous Release:
1341    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
1342    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
1343
1344
13452) iASL Compiler/Disassembler and Tools:
1346
1347Disassembler: Fixed a regression for disassembly of Resource Template.
1348Detection of templates in the AML stream missed some types of templates.
1349
1350iASL: Fixed a problem where an Access Size error was returned for the PCC
1351address space when the AccessSize of the GAS register is greater than a
1352DWORD. Hoan Tran.
1353
1354iASL: Implemented several grammar changes for the operators below. These
1355changes are slated for the next version of the ACPI specification:
1356    RefOf        - Disallow method invocation as an operand
1357    CondRefOf    - Disallow method invocation as an operand
1358    DerefOf      - Disallow operands that use the result from operators
1359that
1360                   do not return a reference (Changed TermArg to
1361SuperName).
1362
1363iASL: Control method invocations are now allowed for Target operands, as
1364per the ACPI specification. Removed error for using a control method
1365invocation as a Target operand.
1366
1367Disassembler: Improved detection of Resource Templates, Unicode, and
1368Strings within Buffer objects. These subtypes do not contain a specific
1369opcode to indicate the originating ASL code, and they must be detected by
1370other means within the disassembler.
1371
1372iASL: Implemented an optimization improvement for 32-bit ACPI tables
1373(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
1374only after 64-bit to 32-bit truncation. A truncation warning message is
1375still emitted, however.
1376
1377AcpiXtract: Implemented handling for both types of line terminators (LF
1378or CR/LF) so that it can accept AcpiDump output files from any system.
1379Peter Wu.
1380
1381AcpiBin: Added two new options for comparing AML files:
1382    -a: compare and display ALL mismatches
1383    -o: start compare at this offset into the second file
1384
1385----------------------------------------
138630 September 2016. Summary of changes for version 20160930:
1387
1388
13891) ACPICA kernel-resident subsystem:
1390
1391Fixed a regression in the internal AcpiTbFindTable function where a non
1392AE_OK exception could inadvertently be returned even if the function did
1393not fail. This problem affects the following operators:
1394    DataTableRegion
1395    LoadTable
1396
1397Fixed a regression in the LoadTable operator where a load to any
1398namespace location other than the root no longer worked properly.
1399
1400Increased the maximum loop count value that will result in the
1401AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to
1402prevent infinite loops within the AML interpreter and thus the host OS
1403kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to
14041,048,575).
1405
1406Moved the AcpiGbl_MaxLoopIterations configuration variable to the public
1407acpixf.h file. This allows hosts to easily configure the maximum loop
1408count at runtime.
1409
1410Removed an illegal character in the strtoul64.c file. This character
1411caused errors with some C compilers.
1412
1413Example Code and Data Size: These are the sizes for the OS-independent
1414acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1415debug version of the code includes the debug output trace mechanism and
1416has a much larger code and data size.
1417
1418  Current Release:
1419    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
1420    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
1421  Previous Release:
1422    Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total
1423    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
1424
1425
14262) iASL Compiler/Disassembler and Tools:
1427
1428Disassembler: Fixed a problem with the conversion of Else{If{ blocks into
1429the simpler ASL ElseIf keyword. During the conversion, a trailing If
1430block could be lost and missing from the disassembled output.
1431
1432iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,
1433the missing rule caused a parse error when using the Index operator as an
1434operand to ObjectType. This construct now compiles properly. Example:
1435    ObjectType(PKG1[4]).
1436
1437iASL: Correctly handle unresolved symbols in the hardware map file (-lm
1438option). Previously, unresolved symbols could cause a protection fault.
1439Such symbols are now marked as unresolved in the map file.
1440
1441iASL: Implemented support to allow control method invocations as an
1442operand to the ASL DeRefOf operator. Example:
1443    DeRefOf(MTH1(Local0))
1444
1445Disassembler: Improved support for the ToPLD ASL macro. Detection of a
1446possible _PLD buffer now includes examination of both the normal buffer
1447length (16 or 20) as well as the surrounding AML package length.
1448
1449Disassembler: Fixed a problem with the decoding of complex expressions
1450within the Divide operator for ASL+. For the case where both the quotient
1451and remainder targets are specified, the entire statement cannot be
1452disassembled. Previously, the output incorrectly contained a mix of ASL-
1453and ASL+ operators. This mixed statement causes a syntax error when
1454compiled. Example:
1455    Divide (Add (INT1, 6), 128, RSLT, QUOT)  // was incorrectly
1456disassembled to:
1457    Divide (INT1 + 6, 128, RSLT, QUOT)
1458
1459iASL/Tools: Added support to process AML and non-AML ACPI tables
1460consistently. For the disassembler and AcpiExec, allow all types of ACPI
1461tables (AML and data tables). For the iASL -e option, allow only AML
1462tables (DSDT/SSDT).
1463
1464----------------------------------------
146531 August 2016. Summary of changes for version 20160831:
1466
1467
14681) ACPICA kernel-resident subsystem:
1469
1470Improve support for the so-called "module-level code", which is defined
1471to be math, logical and control AML opcodes that appear outside of any
1472control method. This change improves the support by adding more opcodes
1473that can be executed in the manner. Some other issues have been solved,
1474and the ASL grammar changes to support such code under all scope
1475operators (Device, etc.) are complete. Lv Zheng.
1476
1477UEFI support: these OSL functions have been implemented. This is an
1478additional step toward supporting the AcpiExec utility natively (with
1479full hardware access) under UEFI. Marcelo Ferreira.
1480    AcpiOsReadPciConfiguration
1481    AcpiOsWritePciConfiguration
1482
1483Fixed a possible mutex error during control method auto-serialization. Lv
1484Zheng.
1485
1486Updated support for the Generic Address Structure by fully implementing
1487all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv
1488Zheng.
1489
1490Updated the return value for the internal _OSI method. Instead of
14910xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF
1492for 64-bit ACPI tables. This fixes an incompatibility with other ACPI
1493implementations, and will be reflected and clarified in the next version
1494of the ACPI specification.
1495
1496Implemented two new table events that can be passed to an ACPICA table
1497handler. These events are used to indicate a table installation or
1498uninstallation. These events are used in addition to existed table load
1499and unload events. Lv Zheng.
1500
1501Implemented a cleanup for all internal string-to-integer conversions.
1502Consolidate multiple versions of this functionality and limit possible
1503bases to either 10 or 16 to simplify the code. Adds a new file,
1504utstrtoul64.
1505
1506Cleanup the inclusion order of the various compiler-specific headers.
1507This simplifies build configuration management. The compiler-specific
1508headers are now split out from the host-specific headers. Lv Zheng.
1509
1510Example Code and Data Size: These are the sizes for the OS-independent
1511acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1512debug version of the code includes the debug output trace mechanism and
1513has a much larger code and data size.
1514
1515  Current Release:
1516    Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total
1517    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
1518
1519
15202) iASL Compiler/Disassembler and Tools:
1521
1522iASL/AcpiExec: Added a command line option to display the build date/time
1523of the tool (-vd). This can be useful to verify that the correct version
1524of the tools are being used.
1525
1526AML Debugger: Implemented a new subcommand ("execute predef") to execute
1527all predefined control methods and names within the current namespace.
1528This can be useful for debugging problems with ACPI tables and the ACPI
1529namespace.
1530
1531----------------------------------------
153229 July 2016. Summary of changes for version 20160729:
1533
1534
15351) ACPICA kernel-resident subsystem:
1536
1537Implemented basic UEFI support for the various ACPICA tools. This
1538includes:
15391) An OSL to implement the various AcpiOs* interfaces on UEFI.
15402) Support to obtain the ACPI tables on UEFI.
15413) Local implementation of required C library functions not available on
1542UEFI.
15434) A front-end (main) function for the tools for UEFI-related
1544initialization.
1545
1546The initial deployment of this support is the AcpiDump utility executing
1547as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").
1548Current environments supported are Linux/Unix. MSVC generation is not
1549supported at this time. See the generate/efi/README file for build
1550instructions. Lv Zheng.
1551
1552Future plans include porting the AcpiExec utility to execute natively on
1553the platform with I/O and memory access. This will allow viewing/dump of
1554the platform namespace and native execution of ACPI control methods that
1555access the actual hardware. To fully implement this support, the OSL
1556functions below must be implemented with UEFI interfaces. Any community
1557help in the implementation of these functions would be appreciated:
1558    AcpiOsReadPort
1559    AcpiOsWritePort
1560    AcpiOsReadMemory
1561    AcpiOsWriteMemory
1562    AcpiOsReadPciConfiguration
1563    AcpiOsWritePciConfiguration
1564
1565Restructured and standardized the C library configuration for ACPICA,
1566resulting in the various configuration options below. This includes a
1567global restructuring of the compiler-dependent and platform-dependent
1568include files. These changes may affect the existing platform-dependent
1569configuration files on some hosts. Lv Zheng.
1570
1571The current C library configuration options appear below. For any issues,
1572it may be helpful to examine the existing compiler-dependent and
1573platform-dependent files as examples. Lv Zheng.
1574
15751) Linux kernel:
1576    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
1577library.
1578    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
15792) Unix/Windows/BSD applications:
1580    ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C
1581library.
1582    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
15833) UEFI applications:
1584    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
1585library.
1586    ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.
15874) UEFI applications (EDK2/StdLib):
1588    ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.
1589    ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.
1590
1591
1592AML interpreter: "module-level code" support. Allows for execution of so-
1593called "executable" AML code (math/logical operations, etc.) outside of
1594control methods not just at the module level (top level) but also within
1595any scope declared outside of a control method - Scope{}, Device{},
1596Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.
1597
1598Simplified the configuration of the "maximum AML loops" global option by
1599adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be
1600modified at runtime.
1601
1602
1603Example Code and Data Size: These are the sizes for the OS-independent
1604acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1605debug version of the code includes the debug output trace mechanism and
1606has a much larger code and data size.
1607
1608  Current Release:
1609    Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total
1610    Debug Version:     199.0K Code, 81.8K Data, 280.8K Total
1611
1612
16132) iASL Compiler/Disassembler and Tools:
1614
1615iASL: Add full support for the RASF ACPI table (RAS Features Table).
1616Includes disassembler, data table compiler, and header support.
1617
1618iASL Expand "module-level code" support. Allows for
1619compilation/disassembly of so-called "executable" AML code (math/logical
1620operations, etc.) outside of control methods not just at the module level
1621(top level) but also within any scope declared outside of a control
1622method - Scope{}, Device{}, Processor{}, PowerResource{}, and
1623ThermalZone{}.
1624
1625AcpiDump: Added support for dumping all SSDTs on newer versions of
1626Windows. These tables are now easily available -- SSDTs are not available
1627through the registry on older versions.
1628
1629----------------------------------------
163027 May 2016. Summary of changes for version 20160527:
1631
1632
16331) ACPICA kernel-resident subsystem:
1634
1635Temporarily reverted the new arbitrary bit length/alignment support in
1636AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
1637a number of regressions with the new code that need to be fully resolved
1638and tested before this support can be finally integrated into ACPICA.
1639Apologies for any inconveniences these issues may have caused.
1640
1641The ACPI message macros are not configurable (ACPI_MSG_ERROR,
1642ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
1643and ACPI_MSG_BIOS_WARNING). Lv Zheng.
1644
1645Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
1646option. Adds a new return macro, return_STR. Junk-uk Kim.
1647
1648Example Code and Data Size: These are the sizes for the OS-independent
1649acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1650debug version of the code includes the debug output trace mechanism and
1651has a much larger code and data size.
1652
1653  Current Release:
1654    Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
1655    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
1656  Previous Release:
1657    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
1658    Debug Version:     200.9K Code, 82.2K Data, 283.1K Total
1659
1660----------------------------------------
166122 April 2016. Summary of changes for version 20160422:
1662
16631) ACPICA kernel-resident subsystem:
1664
1665Fixed a regression in the GAS (generic address structure) arbitrary bit
1666support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
1667and incorrect return values. Lv Zheng. ACPICA BZ 1270.
1668
1669ACPI 6.0: Added support for new/renamed resource macros. One new argument
1670was added to each of these macros, and the original name has been
1671deprecated. The AML disassembler will always disassemble to the new
1672names. Support for the new macros was added to iASL, disassembler,
1673resource manager, and the acpihelp utility. ACPICA BZ 1274.
1674
1675    I2cSerialBus  -> I2cSerialBusV2
1676    SpiSerialBus  -> SpiSerialBusV2
1677    UartSerialBus -> UartSerialBusV2
1678
1679ACPI 6.0: Added support for a new integer field that was appended to the
1680package object returned by the _BIX method. This adds iASL compile-time
1681and AML runtime error checking. ACPICA BZ 1273.
1682
1683ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
1684Subspace Type2" (Headers, Disassembler, and data table compiler).
1685
1686Example Code and Data Size: These are the sizes for the OS-independent
1687acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1688debug version of the code includes the debug output trace mechanism and
1689has a much larger code and data size.
1690
1691  Current Release:
1692    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
1693    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
1694  Previous Release:
1695    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
1696    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
1697
1698
16992) iASL Compiler/Disassembler and Tools:
1700
1701iASL: Implemented an ASL grammar extension to allow/enable executable
1702"module-level code" to be created and executed under the various
1703operators that create new scopes. This type of AML code is already
1704supported in all known AML interpreters, and the grammar change will
1705appear in the next version of the ACPI specification. Simplifies the
1706conditional runtime creation of named objects under these object types:
1707
1708    Device
1709    PowerResource
1710    Processor
1711    Scope
1712    ThermalZone
1713
1714iASL: Implemented a new ASL extension, a "For" loop macro to add greater
1715ease-of-use to the ASL language. The syntax is similar to the
1716corresponding C operator, and is implemented with the existing AML While
1717opcode -- thus requiring no changes to existing AML interpreters.
1718
1719    For (Initialize, Predicate, Update) {TermList}
1720
1721Grammar:
1722    ForTerm :=
1723        For (
1724            Initializer    // Nothing | TermArg => ComputationalData
1725            Predicate      // Nothing | TermArg => ComputationalData
1726            Update         // Nothing | TermArg => ComputationalData
1727        ) {TermList}
1728
1729
1730iASL: The _HID/_ADR detection and validation has been enhanced to search
1731under conditionals in order to allow these objects to be conditionally
1732created at runtime.
1733
1734iASL: Fixed several issues with the constant folding feature. The
1735improvement allows better detection and resolution of statements that can
1736be folded at compile time. ACPICA BZ 1266.
1737
1738iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
1739conversion to the ASL ElseIf operator where incorrect ASL code could be
1740generated.
1741
1742iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
1743sometimes an extra (and extraneous) set of parentheses were emitted for
1744some combinations of operators. Although this did not cause any problems
1745with recompilation of the disassembled code, it made the code more
1746difficult to read. David Box. ACPICA BZ 1231.
1747
1748iASL: Changed to ignore the unreferenced detection for predefined names
1749of resource descriptor elements, when the resource descriptor is
1750created/defined within a control method.
1751
1752iASL: Disassembler: Fix a possible fault with externally declared Buffer
1753objects.
1754
1755----------------------------------------
175618 March 2016. Summary of changes for version 20160318:
1757
17581) ACPICA kernel-resident subsystem:
1759
1760Added support for arbitrary bit lengths and bit offsets for registers
1761defined by the Generic Address Structure. Previously, only aligned bit
1762lengths of 8/16/32/64 were supported. This was sufficient for many years,
1763but recently some machines have been seen that require arbitrary bit-
1764level support. ACPICA BZ 1240. Lv Zheng.
1765
1766Fixed an issue where the \_SB._INI method sometimes must be evaluated
1767before any _REG methods are evaluated. Lv Zheng.
1768
1769Implemented several changes related to ACPI table support
1770(Headers/Disassembler/TableCompiler):
1771NFIT: For ACPI 6.1, updated to add some additional new fields and
1772constants.
1773FADT: Updated a warning message and set compliance to ACPI 6.1 (Version
17746).
1775DMAR: Added new constants per the 10/2014 DMAR spec.
1776IORT: Added new subtable per the 10/2015 IORT spec.
1777HEST: For ACPI 6.1, added new constants and new subtable.
1778DBG2: Added new constants per the 12/2015 DBG2 spec.
1779FPDT: Fixed several incorrect fields, add the FPDT boot record structure.
1780ACPICA BZ 1249.
1781ERST/EINJ: Updated disassembler with new "Execute Timings" actions.
1782
1783Updated header support for the DMAR table to match the current version of
1784the related spec.
1785
1786Added extensions to the ASL Concatenate operator to allow any ACPI object
1787to be passed as an operand. Any object other than Integer/String/Buffer
1788simply returns a string containing the object type. This extends the
1789usefulness of the Printf macros. Previously, Concatenate would abort the
1790control method if a non-data object was encountered.
1791
1792ACPICA source code: Deployed the C "const" keyword across the source code
1793where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).
1794
1795Example Code and Data Size: These are the sizes for the OS-independent
1796acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1797debug version of the code includes the debug output trace mechanism and
1798has a much larger code and data size.
1799
1800  Current Release:
1801    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
1802    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
1803  Previous Release:
1804    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
1805    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
1806
1807
18082) iASL Compiler/Disassembler and Tools:
1809
1810iASL/Disassembler: Improved the heuristic used to determine the number of
1811arguments for an externally defined control method (a method in another
1812table). Although this is an improvement, there is no deterministic way to
1813"guess" the number of method arguments. Only the ACPI 6.0 External opcode
1814will completely solve this problem as it is deployed (automatically) in
1815newer BIOS code.
1816
1817iASL/Disassembler: Fixed an ordering issue for emitted External() ASL
1818statements that could cause errors when the disassembled file is
1819compiled. ACPICA BZ 1243. David Box.
1820
1821iASL: Fixed a regression caused by the merger of the two versions of the
1822local strtoul64. Because of a dependency on a global variable, strtoul64
1823could return an error for integers greater than a 32-bit value. ACPICA BZ
18241260.
1825
1826iASL: Fixed a regression where a fault could occur for an ASL Return
1827statement if it invokes a control method that is not resolved. ACPICA BZ
18281264.
1829
1830AcpiXtract: Improved input file validation: detection of binary files and
1831non-acpidump text files.
1832
1833----------------------------------------
183412 February 2016. Summary of changes for version 20160212:
1835
18361) ACPICA kernel-resident subsystem:
1837
1838Implemented full support for the ACPI 6.1 specification (released in
1839January). This version of the specification is available at:
1840http://www.uefi.org/specifications
1841
1842Only a relatively small number of changes were required in ACPICA to
1843support ACPI 6.1, in these areas:
1844- New predefined names
1845- New _HID values
1846- A new subtable for HEST
1847- A few other header changes for new values
1848
1849Ensure \_SB_._INI is executed before any _REG methods are executed. There
1850appears to be existing BIOS code that relies on this behavior. Lv Zheng.
1851
1852Reverted a change made in version 20151218 which enabled method
1853invocations to be targets of various ASL operators (SuperName and Target
1854grammar elements). While the new behavior is supported by the ACPI
1855specification, other AML interpreters do not support this behavior and
1856never will. The ACPI specification will be updated for ACPI 6.2 to remove
1857this support. Therefore, the change was reverted to the original ACPICA
1858behavior.
1859
1860ACPICA now supports the GCC 6 compiler.
1861
1862Current Release: (Note: build changes increased sizes)
1863    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
1864    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
1865Previous Release:
1866    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
1867    Debug Version:     200.4K Code, 81.9K Data, 282.3K Total
1868
1869
18702) iASL Compiler/Disassembler and Tools:
1871
1872Completed full support for the ACPI 6.0 External() AML opcode. The
1873compiler emits an external AML opcode for each ASL External statement.
1874This opcode is used by the disassembler to assist with the disassembly of
1875external control methods by specifying the required number of arguments
1876for the method. AML interpreters do not use this opcode. To ensure that
1877interpreters do not even see the opcode, a block of one or more external
1878opcodes is surrounded by an "If(0)" construct. As this feature becomes
1879commonly deployed in BIOS code, the ability of disassemblers to correctly
1880disassemble AML code will be greatly improved. David Box.
1881
1882iASL: Implemented support for an optional cross-reference output file.
1883The -lx option will create a the cross-reference file with the suffix
1884"xrf". Three different types of cross-reference are created in this file:
1885- List of object references made from within each control method
1886- Invocation (caller) list for each user-defined control method
1887- List of references to each non-method object in the namespace
1888
1889iASL: Method invocations as ASL Target operands are now disallowed and
1890flagged as errors in preparation for ACPI 6.2 (see the description of the
1891problem above).
1892
1893----------------------------------------
18948 January 2016. Summary of changes for version 20160108:
1895
18961) ACPICA kernel-resident subsystem:
1897
1898Updated all ACPICA copyrights and signons to 2016: Added the 2016
1899copyright to all source code module headers and utility/tool signons.
1900This includes the standard Linux dual-license header. This affects
1901virtually every file in the ACPICA core subsystem, iASL compiler, all
1902ACPICA utilities, and the ACPICA test suite.
1903
1904Fixed a regression introduced in version 20151218 concerning the
1905execution of so-called module-level ASL/AML code. Namespace objects
1906created under a module-level If() construct were not properly/fully
1907entered into the namespace and could cause an interpreter fault when
1908accessed.
1909
1910Example Code and Data Size: These are the sizes for the OS-independent
1911acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
1912debug version of the code includes the debug output trace mechanism and
1913has a much larger code and data size.
1914
1915Current Release:
1916    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
1917    Debug Version:     200.4K Code, 81.9K Data, 282.4K Total
1918  Previous Release:
1919    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
1920    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
1921
1922
19232) iASL Compiler/Disassembler and Tools:
1924
1925Fixed a problem with the compilation of the GpioIo and GpioInt resource
1926descriptors. The _PIN field name was incorrectly defined to be an array
1927of 32-bit values, but the _PIN values are in fact 16 bits each. This
1928would cause incorrect bit width warnings when using Word (16-bit) fields
1929to access the descriptors.
1930
1931
1932----------------------------------------
193318 December 2015. Summary of changes for version 20151218:
1934
19351) ACPICA kernel-resident subsystem:
1936
1937Implemented per-AML-table execution of "module-level code" as individual
1938ACPI tables are loaded into the namespace during ACPICA initialization.
1939In other words, any module-level code within an AML table is executed
1940immediately after the table is loaded, instead of batched and executed
1941after all of the tables have been loaded. This provides compatibility
1942with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,
1943David Box.
1944
1945To fully support the feature above, the default operation region handlers
1946for the SystemMemory, SystemIO, and PCI_Config address spaces are now
1947installed before any ACPI tables are loaded. This enables module-level
1948code to access these address spaces during the table load and module-
1949level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David
1950Box.
1951
1952Implemented several changes to the internal _REG support in conjunction
1953with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples
1954utilities for the changes above. Although these tools were changed, host
1955operating systems that simply use the default handlers for SystemMemory,
1956SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.
1957
1958For example, in the code below, DEV1 is conditionally added to the
1959namespace by the DSDT via module-level code that accesses an operation
1960region. The SSDT references DEV1 via the Scope operator. DEV1 must be
1961created immediately after the DSDT is loaded in order for the SSDT to
1962successfully reference DEV1. Previously, this code would cause an
1963AE_NOT_EXIST exception during the load of the SSDT. Now, this code is
1964fully supported by ACPICA.
1965
1966    DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)
1967    {
1968        OperationRegion (OPR1, SystemMemory, 0x400, 32)
1969        Field (OPR1, AnyAcc, NoLock, Preserve)
1970        {
1971            FLD1, 1
1972        }
1973        If (FLD1)
1974        {
1975            Device (\DEV1)
1976            {
1977            }
1978        }
1979    }
1980    DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)
1981    {
1982        External (\DEV1, DeviceObj)
1983        Scope (\DEV1)
1984        {
1985        }
1986    }
1987
1988Fixed an AML interpreter problem where control method invocations were
1989not handled correctly when the invocation was itself a SuperName argument
1990to another ASL operator. In these cases, the method was not invoked.
1991ACPICA BZ 1002. Affects the following ASL operators that have a SuperName
1992argument:
1993    Store
1994    Acquire, Wait
1995    CondRefOf, RefOf
1996    Decrement, Increment
1997    Load, Unload
1998    Notify
1999    Signal, Release, Reset
2000    SizeOf
2001
2002Implemented automatic String-to-ObjectReference conversion support for
2003packages returned by predefined names (such as _DEP). A common BIOS error
2004is to add double quotes around an ObjectReference namepath, which turns
2005the reference into an unexpected string object. This support detects the
2006problem and corrects it before the package is returned to the caller that
2007invoked the method. Lv Zheng.
2008
2009Implemented extensions to the Concatenate operator. Concatenate now
2010accepts any type of object, it is not restricted to simply
2011Integer/String/Buffer. For objects other than these 3 basic data types,
2012the argument is treated as a string containing the name of the object
2013type. This expands the utility of Concatenate and the Printf/Fprintf
2014macros. ACPICA BZ 1222.
2015
2016Cleaned up the output of the ASL Debug object. The timer() value is now
2017optional and no longer emitted by default. Also, the basic data types of
2018Integer/String/Buffer are simply emitted as their values, without a data
2019type string -- since the data type is obvious from the output. ACPICA BZ
20201221.
2021
2022Example Code and Data Size: These are the sizes for the OS-independent
2023acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2024debug version of the code includes the debug output trace mechanism and
2025has a much larger code and data size.
2026
2027  Current Release:
2028    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
2029    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
2030  Previous Release:
2031    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
2032    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
2033
2034
20352) iASL Compiler/Disassembler and Tools:
2036
2037iASL: Fixed some issues with the ASL Include() operator. This operator
2038was incorrectly defined in the iASL parser rules, causing a new scope to
2039be opened for the code within the include file. This could lead to
2040several issues, including allowing ASL code that is technically illegal
2041and not supported by AML interpreters. Note, this does not affect the
2042related #include preprocessor operator. ACPICA BZ 1212.
2043
2044iASL/Disassembler: Implemented support for the ASL ElseIf operator. This
2045operator is essentially an ASL macro since there is no AML opcode
2046associated with it. The code emitted by the iASL compiler for ElseIf is
2047an Else opcode followed immediately by an If opcode. The disassembler
2048will now emit an ElseIf if it finds an Else immediately followed by an
2049If. This simplifies the decoded ASL, especially for deeply nested
2050If..Else and large Switch constructs. Thus, the disassembled code more
2051closely follows the original source ASL. ACPICA BZ 1211. Example:
2052
2053    Old disassembly:
2054        Else
2055        {
2056            If (Arg0 == 0x02)
2057            {
2058                Local0 = 0x05
2059            }
2060        }
2061
2062    New disassembly:
2063        ElseIf (Arg0 == 0x02)
2064        {
2065            Local0 = 0x05
2066        }
2067
2068AcpiExec: Added support for the new module level code behavior and the
2069early region installation. This required a small change to the
2070initialization, since AcpiExec must install its own operation region
2071handlers.
2072
2073AcpiExec: Added support to make the debug object timer optional. Default
2074is timer disabled. This cleans up the debug object output -- the timer
2075data is rarely used.
2076
2077AcpiExec: Multiple ACPI tables are now loaded in the order that they
2078appear on the command line. This can be important when there are
2079interdependencies/references between the tables.
2080
2081iASL/Templates. Add support to generate template files with multiple
2082SSDTs within a single output file. Also added ommand line support to
2083specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ
20841223, 1225.
2085
2086
2087----------------------------------------
208824 November 2015. Summary of changes for version 20151124:
2089
20901) ACPICA kernel-resident subsystem:
2091
2092Fixed a possible regression for a previous update to FADT handling. The
2093FADT no longer has a fixed table ID, causing some issues with code that
2094was hardwired to a specific ID. Lv Zheng.
2095
2096Fixed a problem where the method auto-serialization could interfere with
2097the current SyncLevel. This change makes the auto-serialization support
2098transparent to the SyncLevel support and management.
2099
2100Removed support for the _SUB predefined name in AcpiGetObjectInfo. This
2101interface is intended for early access to the namespace during the
2102initial namespace device discovery walk. The _SUB method has been seen to
2103access operation regions in some cases, causing errors because the
2104operation regions are not fully initialized.
2105
2106AML Debugger: Fixed some issues with the terminate/quit/exit commands
2107that can cause faults. Lv Zheng.
2108
2109AML Debugger: Add thread ID support so that single-step mode only applies
2110to the AML Debugger thread. This prevents runtime errors within some
2111kernels. Lv Zheng.
2112
2113Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx
2114methods that are invoked by this interface are optional, removed warnings
2115emitted for the case where one or more of these methods do not exist.
2116ACPICA BZ 1208, original change by Prarit Bhargava.
2117
2118Made a major pass through the entire ACPICA source code base to
2119standardize formatting that has diverged a bit over time. There are no
2120functional changes, but this will of course cause quite a few code
2121differences from the previous ACPICA release.
2122
2123Example Code and Data Size: These are the sizes for the OS-independent
2124acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2125debug version of the code includes the debug output trace mechanism and
2126has a much larger code and data size.
2127
2128  Current Release:
2129    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
2130    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
2131  Previous Release:
2132    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
2133    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
2134
2135
21362) iASL Compiler/Disassembler and Tools:
2137
2138iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple
2139definition blocks within a single ASL file and the resulting AML file.
2140Support for this type of file was also added to the various tools that
2141use binary AML files: acpiexec, acpixtract, and the AML disassembler. The
2142example code below shows two definition blocks within the same file:
2143
2144    DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",
21450x12345678)
2146    {
2147    }
2148    DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)
2149    {
2150    }
2151
2152iASL: Enhanced typechecking for the Name() operator. All expressions for
2153the value of the named object must be reduced/folded to a single constant
2154at compile time, as per the ACPI specification (the AML definition of
2155Name()).
2156
2157iASL: Fixed some code indentation issues for the -ic and -ia options (C
2158and assembly headers). Now all emitted code correctly begins in column 1.
2159
2160iASL: Added an error message for an attempt to open a Scope() on an
2161object defined in an SSDT. The DSDT is always loaded into the namespace
2162first, so any attempt to open a Scope on an SSDT object will fail at
2163runtime.
2164
2165
2166----------------------------------------
216730 September 2015. Summary of changes for version 20150930:
2168
21691) ACPICA kernel-resident subsystem:
2170
2171Debugger: Implemented several changes and bug fixes to assist support for
2172the in-kernel version of the AML debugger. Lv Zheng.
2173- Fix the "predefined" command for in-kernel debugger.
2174- Do not enter debug command loop for the help and version commands.
2175- Disallow "execute" command during execution/single-step of a method.
2176
2177Interpreter: Updated runtime typechecking for all operators that have
2178target operands. The operand is resolved and validated that it is legal.
2179For example, the target cannot be a non-data object such as a Device,
2180Mutex, ThermalZone, etc., as per the ACPI specification.
2181
2182Debugger: Fixed the double-mutex user I/O handshake to work when local
2183deadlock detection is enabled.
2184
2185Debugger: limited display of method locals and arguments (LocalX and
2186ArgX) to only those that have actually been initialized. This prevents
2187lines of extraneous output.
2188
2189Updated the definition of the NFIT table to correct the bit polarity of
2190one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
2191
2192Example Code and Data Size: These are the sizes for the OS-independent
2193acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2194debug version of the code includes the debug output trace mechanism and
2195has a much larger code and data size.
2196
2197  Current Release:
2198    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
2199    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
2200  Previous Release:
2201    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
2202    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
2203
2204
22052) iASL Compiler/Disassembler and Tools:
2206
2207iASL: Improved the compile-time typechecking for operands of many of the
2208ASL operators:
2209
2210-- Added an option to disable compiler operand/operator typechecking (-
2211ot).
2212
2213-- For the following operators, the TermArg operands are now validated
2214when possible to be Integer data objects: BankField, OperationRegion,
2215DataTableRegion, Buffer, and Package.
2216
2217-- Store (Source, Target): Both the source and target operands are
2218resolved and checked that the operands are both legal. For example,
2219neither operand can be a non-data object such as a Device, Mutex,
2220ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
2221operator can be used to store an object to any type of target object.
2222
2223-- Store (Source, Target): If the source is a Package object, the target
2224must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
2225is a Package, the source must also be a Package.
2226
2227-- Store (Source, Target): A warning is issued if the source and target
2228resolve to the identical named object.
2229
2230-- Store (Source, <method invocation>): An error is generated for the
2231target method invocation, as this construct is not supported by the AML
2232interpreter.
2233
2234-- For all ASL math and logic operators, the target operand must be a
2235data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
2236includes the function return value also.
2237
2238-- External declarations are also included in the typechecking where
2239possible. External objects defined using the UnknownObj keyword cannot be
2240typechecked, however.
2241
2242iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
2243operator:
2244- Legacy code: Index(PKG1, 3)
2245- New ASL+ code: PKG1[3]
2246This completes the ACPI 6.0 ASL+ support as it was the only operator not
2247supported.
2248
2249iASL: Fixed the file suffix for the preprocessor output file (.i). Two
2250spaces were inadvertently appended to the filename, causing file access
2251and deletion problems on some systems.
2252
2253ASL Test Suite (ASLTS): Updated the master makefile to generate all
2254possible compiler output files when building the test suite -- thus
2255exercising these features of the compiler. These files are automatically
2256deleted when the test suite exits.
2257
2258
2259----------------------------------------
226018 August 2015. Summary of changes for version 20150818:
2261
22621) ACPICA kernel-resident subsystem:
2263
2264Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
2265Zheng. ACPICA BZ 1186.
2266
2267Completed development to ensure that the ACPICA Disassembler and Debugger
2268are fully standalone components of ACPICA. Removed cross-component
2269dependences. Lv Zheng.
2270
2271The max-number-of-AML-loops is now runtime configurable (previously was
2272compile-time only). This is essentially a loop timeout to force-abort
2273infinite AML loops. ACPCIA BZ 1192.
2274
2275Debugger: Cleanup output to dump ACPI names and namepaths without any
2276trailing underscores. Lv Zheng. ACPICA BZ 1135.
2277
2278Removed unnecessary conditional compilations across the Debugger and
2279Disassembler components where entire modules could be left uncompiled.
2280
2281The aapits test is deprecated and has been removed from the ACPICA git
2282tree. The test has never been completed and has not been maintained, thus
2283becoming rather useless. ACPICA BZ 1015, 794.
2284
2285A batch of small changes to close bugzilla and other reports:
2286- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
2287- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
2288- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
2289- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
2290Moore.
2291- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
2292ACPICA BZ 1184.
2293- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
2294operators.
2295- Debugger: Split debugger initialization/termination interfaces. Lv
2296Zheng.
2297- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
2298identification.
2299- AcpiExec: Add debug message during _REG method phase during table
2300load/init.
2301- AcpiNames: Fix a regression where some output was missing and no longer
2302emitted.
2303- Debugger: General cleanup and simplification. Lv Zheng.
2304- Disassembler: Cleanup use of several global option variables. Lv Zheng.
2305
2306Example Code and Data Size: These are the sizes for the OS-independent
2307acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2308debug version of the code includes the debug output trace mechanism and
2309has a much larger code and data size.
2310
2311  Current Release:
2312    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
2313    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
2314  Previous Release:
2315    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
2316    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
2317
2318
23192) iASL Compiler/Disassembler and Tools:
2320
2321AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
2322were not handled properly and caused load errors. Now, properly invoke
2323and use the ACPICA auto-reallocate mechanism for ACPI table data
2324structures. ACPICA BZ 1188
2325
2326AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
2327BZ 1190.
2328
2329AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
2330AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
2331executed during initialization. ACPICA BZ 1187, 1189.
2332
2333iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
2334that corresponds to each disassembled ASL statement, to simplify
2335debugging. ACPICA BZ 1191.
2336
2337Debugger: Add option to the "objects" command to display a summary of the
2338current namespace objects (Object type and count). This is displayed if
2339the command is entered with no arguments.
2340
2341AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
2342
2343
2344----------------------------------------
234517 July 2015. Summary of changes for version 20150717:
2346
23471) ACPICA kernel-resident subsystem:
2348
2349Improved the partitioning between the Debugger and Disassembler
2350components. This allows the Debugger to be used standalone within kernel
2351code without the Disassembler (which is used for single stepping also).
2352This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
2353
2354Debugger: Implemented a new command to trace the execution of control
2355methods (Trace). This is especially useful for the in-kernel version of
2356the debugger when file I/O may not be available for method trace output.
2357See the ACPICA reference for more information. Lv Zheng.
2358
2359Moved all C library prototypes (used for the local versions of these
2360functions when requested) to a new header, acclib.h
2361Cleaned up the use of non-ANSI C library functions. These functions are
2362implemented locally in ACPICA. Moved all such functions to a common
2363source file, utnonansi.c
2364
2365Debugger: Fixed a problem with the "!!" command (get last command
2366executed) where the debugger could enter an infinite loop and eventually
2367crash.
2368
2369Removed the use of local macros that were used for some of the standard C
2370library functions to automatically cast input parameters. This mostly
2371affected the is* functions where the input parameter is defined to be an
2372int. This required a few modifications to the main ACPICA source code to
2373provide casting for these functions and eliminate possible compiler
2374warnings for these parameters.
2375
2376Across the source code, added additional status/error checking to resolve
2377issues discovered by static source code analysis tools such as Coverity.
2378
2379Example Code and Data Size: These are the sizes for the OS-independent
2380acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2381debug version of the code includes the debug output trace mechanism and
2382has a much larger code and data size.
2383
2384  Current Release:
2385    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
2386    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
2387  Previous Release:
2388    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
2389    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
2390
2391
23922) iASL Compiler/Disassembler and Tools:
2393
2394iASL: Fixed a regression where the device map file feature no longer
2395worked properly when used in conjunction with the disassembler. It only
2396worked properly with the compiler itself.
2397
2398iASL: Implemented a new warning for method LocalX variables that are set
2399but never used (similar to a C compiler such as gcc). This also applies
2400to ArgX variables that are not defined by the parent method, and are
2401instead (legally) used as local variables.
2402
2403iASL/Preprocessor: Finished the pass-through of line numbers from the
2404preprocessor to the compiler. This ensures that compiler errors/warnings
2405have the correct original line numbers and filenames, regardless of any
2406#include files.
2407
2408iASL/Preprocessor: Fixed a couple of issues with comment handling and the
2409pass-through of comments to the preprocessor output file (which becomes
2410the compiler input file). Also fixed a problem with // comments that
2411appear after a math expression.
2412
2413iASL: Added support for the TCPA server table to the table compiler and
2414template generator. (The client table was already previously supported)
2415
2416iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
2417identify the iASL compiler.
2418
2419Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
2420multiple times. The new names are ACPI_SIGN_NEGATIVE and
2421ACPI_SIGN_POSITIVE.
2422
2423AcpiHelp: Update to expand help messages for the iASL preprocessor
2424directives.
2425
2426
2427----------------------------------------
242819 June 2015. Summary of changes for version 20150619:
2429
2430Two regressions in version 20150616 have been addressed:
2431
2432Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
2433etc.) This update changes ACPICA to only use the standard headers for
2434functions, or the prototypes for the local versions of the C library
2435functions. Across the source code, this required some additional casts
2436for some Clib invocations for portability. Moved all local prototypes to
2437a new file, acclib.h
2438
2439Fixes several problems with recent changes to the handling of the FACS
2440table that could cause some systems not to boot.
2441
2442
2443----------------------------------------
244416 June 2015. Summary of changes for version 20150616:
2445
2446
24471) ACPICA kernel-resident subsystem:
2448
2449Across the entire ACPICA source code base, the various macros for the C
2450library functions (such as ACPI_STRLEN, etc.) have been removed and
2451replaced by the standard C library names (strlen, etc.) The original
2452purpose for these macros is no longer applicable. This simplification
2453reduces the number of macros used in the ACPICA source code
2454significantly, improving readability and maintainability.
2455
2456Implemented support for a new ACPI table, the OSDT. This table, the
2457"override" SDT, can be loaded directly by the host OS at boot time. It
2458enables the replacement of existing namespace objects that were installed
2459via the DSDT and/or SSDTs. The primary purpose for this is to replace
2460buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
2461for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
2462Moore.
2463
2464Added support for systems with (improperly) two FACS tables -- a "32-bit"
2465table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
2466X field). This change will support both automatically. There continues to
2467be systems found with this issue. This support requires a change to the
2468AcpiSetFirmwareWakingVector interface. Also, a public global variable has
2469been added to allow the host to select which FACS is desired
2470(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
2471details Lv Zheng.
2472
2473Added a new feature to allow for systems that do not contain an FACS.
2474Although this is already supported on hardware-reduced platforms, the
2475feature has been extended for all platforms. The reasoning is that we do
2476not want to abort the entire ACPICA initialization just because the
2477system is seriously buggy and has no FACS.
2478
2479Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
2480not correctly transcribed from the ACPI specification in ACPICA version
248120150515.
2482
2483Implemented support for the _CLS object in the AcpiGetObjectInfo external
2484interface.
2485
2486Updated the definitions of the TCPA and TPM2 ACPI tables to the more
2487recent TCG ACPI Specification, December 14, 2014. Table disassembler and
2488compiler also updated. Note: The TCPA "server" table is not supported by
2489the disassembler/table-compiler at this time.
2490
2491ACPI 6.0: Added definitions for the new GIC version field in the MADT.
2492
2493Example Code and Data Size: These are the sizes for the OS-independent
2494acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2495debug version of the code includes the debug output trace mechanism and
2496has a much larger code and data size.
2497
2498  Current Release:
2499    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
2500    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
2501  Previous Release:
2502    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
2503    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
2504
2505
25062) iASL Compiler/Disassembler and Tools:
2507
2508Disassembler: Fixed a problem with the new symbolic operator disassembler
2509where incorrect ASL code could be emitted in some cases for the "non-
2510commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
2511ShiftRight. The actual problem cases seem to be rather unusual in common
2512ASL code, however. David Box.
2513
2514Modified the linux version of acpidump to obtain ACPI tables from not
2515just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
2516Zheng.
2517
2518iASL: Fixed a problem where the user preprocessor output file (.i)
2519contained extra data that was not expected. The compiler was using this
2520file as a temporary file and passed through #line directives in order to
2521keep compiler error messages in sync with the input file and line number
2522across multiple include files. The (.i) is no longer a temporary file as
2523the compiler uses a new, different file for the original purpose.
2524
2525iASL: Fixed a problem where comments within the original ASL source code
2526file were not passed through to the preprocessor output file, nor any
2527listing files.
2528
2529iASL: Fixed some issues for the handling of the "#include" preprocessor
2530directive and the similar (but not the same) "Include" ASL operator.
2531
2532iASL: Add support for the new OSDT in both the disassembler and compiler.
2533
2534iASL: Fixed a problem with the constant folding support where a Buffer
2535object could be incorrectly generated (incorrectly formed) during a
2536conversion to a Store() operator.
2537
2538AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
2539description text for the _REV predefined name. _REV now permanently
2540returns 2, as per the ACPI 6.0 specification.
2541
2542Debugger: Enhanced the output of the Debug ASL object for references
2543produced by the Index operator. For Buffers and strings, only output the
2544actual byte pointed to by the index. For packages, only print the single
2545package element decoded by the index. Previously, the entire
2546buffer/string/package was emitted.
2547
2548iASL/Table-compiler: Fixed a regression where the "generic" data types
2549were no longer recognized, causing errors.
2550
2551
2552----------------------------------------
255315 May 2015. Summary of changes for version 20150515:
2554
2555This release implements most of ACPI 6.0 as described below.
2556
25571) ACPICA kernel-resident subsystem:
2558
2559Implemented runtime argument checking and return value checking for all
2560new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
2561_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
2562
2563Example Code and Data Size: These are the sizes for the OS-independent
2564acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2565debug version of the code includes the debug output trace mechanism and
2566has a much larger code and data size.
2567
2568  Current Release:
2569    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
2570    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
2571  Previous Release:
2572    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
2573    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
2574
2575
25762) iASL Compiler/Disassembler and Tools:
2577
2578iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
2579names (argument count validation and return value typechecking.)
2580
2581iASL disassembler and table compiler: implemented support for all new
2582ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
2583
2584iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
2585tables: FADT, MADT.
2586
2587iASL preprocessor: Added a new directive to enable inclusion of binary
2588blobs into ASL code. The new directive is #includebuffer. It takes a
2589binary file as input and emits a named ascii buffer object into the ASL
2590code.
2591
2592AcpiHelp: Added support for all new ACPI 6.0 predefined names.
2593
2594AcpiHelp: Added a new option, -d, to display all iASL preprocessor
2595directives.
2596
2597AcpiHelp: Added a new option, -t, to display all known/supported ACPI
2598tables.
2599
2600
2601----------------------------------------
260210 April 2015. Summary of changes for version 20150410:
2603
2604Reverted a change introduced in version 20150408 that caused
2605a regression in the disassembler where incorrect operator
2606symbols could be emitted.
2607
2608
2609----------------------------------------
261008 April 2015. Summary of changes for version 20150408:
2611
2612
26131) ACPICA kernel-resident subsystem:
2614
2615Permanently set the return value for the _REV predefined name. It now
2616returns 2 (was 5). This matches other ACPI implementations. _REV will be
2617deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
2618for ACPI 2.0 and later. It should never be used to differentiate or
2619identify operating systems.
2620
2621Added the "Windows 2015" string to the _OSI support. ACPICA will now
2622return TRUE to a query with this string.
2623
2624Fixed several issues with the local version of the printf function.
2625
2626Added the C99 compiler option (-std=c99) to the Unix makefiles.
2627
2628  Current Release:
2629    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
2630    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
2631  Previous Release:
2632    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
2633    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
2634
2635
26362) iASL Compiler/Disassembler and Tools:
2637
2638iASL: Implemented an enhancement to the constant folding feature to
2639transform the parse tree to a simple Store operation whenever possible:
2640    Add (2, 3, X) ==> is converted to: Store (5, X)
2641    X = 2 + 3     ==> is converted to: Store (5, X)
2642
2643Updated support for the SLIC table (Software Licensing Description Table)
2644in both the Data Table compiler and the disassembler. The SLIC table
2645support now conforms to "Microsoft Software Licensing Tables (SLIC and
2646MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
2647following the ACPI header is now defined to be "Proprietary Data", and as
2648such, can only be entered or displayed as a hex data block.
2649
2650Implemented full support for the MSDM table as described in the document
2651above. Note: The format of MSDM is similar to SLIC. Any MSDM data
2652following the ACPI header is defined to be "Proprietary Data", and can
2653only be entered or displayed as a hex data block.
2654
2655Implemented the -Pn option for the iASL Table Compiler (was only
2656implemented for the ASL compiler). This option disables the iASL
2657preprocessor.
2658
2659Disassembler: For disassembly of Data Tables, added a comment field
2660around the Ascii equivalent data that is emitted as part of the "Raw
2661Table Data" block. This prevents the iASL Preprocessor from possible
2662confusion if/when the table is compiled.
2663
2664Disassembler: Added an option (-df) to force the disassembler to assume
2665that the table being disassembled contains valid AML. This feature is
2666useful for disassembling AML files that contain ACPI signatures other
2667than DSDT or SSDT (such as OEMx or other signatures).
2668
2669Changes for the EFI version of the tools:
26701) Fixed a build error/issue
26712) Fixed a cast warning
2672
2673iASL: Fixed a path issue with the __FILE__ operator by making the
2674directory prefix optional within the internal SplitInputFilename
2675function.
2676
2677Debugger: Removed some unused global variables.
2678
2679Tests: Updated the makefile for proper generation of the AAPITS suite.
2680
2681
2682----------------------------------------
268304 February 2015. Summary of changes for version 20150204:
2684
2685ACPICA kernel-resident subsystem:
2686
2687Updated all ACPICA copyrights and signons to 2014. Added the 2014
2688copyright to all module headers and signons, including the standard Linux
2689header. This affects virtually every file in the ACPICA core subsystem,
2690iASL compiler, all ACPICA utilities, and the test suites.
2691
2692Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
2693A raw gpe handling mechanism was created to allow better handling of GPE
2694storms that aren't easily managed by the normal handler. The raw handler
2695allows disabling/renabling of the the GPE so that interrupt storms can be
2696avoided in cases where events cannot be timely serviced. In this
2697scenario, handlers should use the AcpiSetGpe() API to disable/enable the
2698GPE. This API will leave the reference counts undisturbed, thereby
2699preventing unintentional clearing of the GPE when the intent in only to
2700temporarily disable it. Raw handlers allow enabling and disabling of a
2701GPE by removing GPE register locking. As such, raw handlers much provide
2702their own locks while using GPE API's to protect access to GPE data
2703structures.
2704Lv Zheng
2705
2706Events: Always modify GPE registers under the GPE lock.
2707Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
2708values. Reported as bug by joe.liu@apple.com.
2709
2710Unix makefiles: Separate option to disable optimizations and
2711_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
2712NOOPT disable option and creates a separate flag (NOFORTIFY) for this
2713purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
2714errors when building ACPICA. This allows disabling the option without
2715also having to disable optimazations.
2716David Box
2717
2718  Current Release:
2719    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
2720    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
2721
2722--
2723--------------------------------------
272407 November 2014. Summary of changes for version 20141107:
2725
2726This release is available at https://acpica.org/downloads
2727
2728This release introduces and implements language extensions to ASL that
2729provide support for symbolic ("C-style") operators and expressions. These
2730language extensions are known collectively as ASL+.
2731
2732
27331) iASL Compiler/Disassembler and Tools:
2734
2735Disassembler: Fixed a problem with disassembly of the UartSerialBus
2736macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
2737Box.
2738
2739Disassembler: Fixed the Unicode macro support to add escape sequences.
2740All non-printable ASCII values are emitted as escape sequences, as well
2741as the standard escapes for quote and backslash. Ensures that the
2742disassembled macro can be correctly recompiled.
2743
2744iASL: Added Printf/Fprintf macros for formatted output. These macros are
2745translated to existing AML Concatenate and Store operations. Printf
2746writes to the ASL Debug object. Fprintf allows the specification of an
2747ASL name as the target. Only a single format specifier is required, %o,
2748since the AML interpreter dynamically converts objects to the required
2749type. David E. Box.
2750
2751    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
2752                 (Concatenate (Concatenate (Concatenate ("", Arg0),
2753                 ": Unexpected value for "), Arg1), ", "), Arg2),
2754                 " at line "), Arg3), Debug)
2755
2756    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
2757                 Arg0, Arg1, Arg2, Arg3)
2758
2759    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
2760                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
2761
2762    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
2763
2764iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
2765ASL parse tree before the AML code is generated. This allows blocks of
2766ASL code to be removed in order to help locate and identify problem
2767devices and/or code. David E. Box.
2768
2769AcpiExec: Added support (-fi) for an optional namespace object
2770initialization file. This file specifies initial values for namespace
2771objects as necessary for debugging and testing different ASL code paths
2772that may be taken as a result of BIOS options.
2773
2774
27752) Overview of symbolic operator support for ASL (ASL+)
2776-------------------------------------------------------
2777
2778As an extension to the ASL language, iASL implements support for symbolic
2779(C-style) operators for math and logical expressions. This can greatly
2780simplify ASL code as well as improve both readability and
2781maintainability. These language extensions can exist concurrently with
2782all legacy ASL code and expressions.
2783
2784The symbolic extensions are 100% compatible with existing AML
2785interpreters, since no new AML opcodes are created. To implement the
2786extensions, the iASL compiler transforms the symbolic expressions into
2787the legacy ASL/AML equivalents at compile time.
2788
2789Full symbolic expressions are supported, along with the standard C
2790precedence and associativity rules.
2791
2792Full disassembler support for the symbolic expressions is provided, and
2793creates an automatic migration path for existing ASL code to ASL+ code
2794via the disassembly process. By default, the disassembler now emits ASL+
2795code with symbolic expressions. An option (-dl) is provided to force the
2796disassembler to emit legacy ASL code if desired.
2797
2798Below is the complete list of the currently supported symbolic operators
2799with examples. See the iASL User Guide for additional information.
2800
2801
2802ASL+ Syntax      Legacy ASL Equivalent
2803-----------      ---------------------
2804
2805    // Math operators
2806
2807Z = X + Y        Add (X, Y, Z)
2808Z = X - Y        Subtract (X, Y, Z)
2809Z = X * Y        Multiply (X, Y, Z)
2810Z = X / Y        Divide (X, Y, , Z)
2811Z = X % Y        Mod (X, Y, Z)
2812Z = X << Y       ShiftLeft (X, Y, Z)
2813Z = X >> Y       ShiftRight (X, Y, Z)
2814Z = X & Y        And (X, Y, Z)
2815Z = X | Y        Or (X, Y, Z)
2816Z = X ^ Y        Xor (X, Y, Z)
2817Z = ~X           Not (X, Z)
2818X++              Increment (X)
2819X--              Decrement (X)
2820
2821    // Logical operators
2822
2823(X == Y)         LEqual (X, Y)
2824(X != Y)         LNotEqual (X, Y)
2825(X < Y)          LLess (X, Y)
2826(X > Y)          LGreater (X, Y)
2827(X <= Y)         LLessEqual (X, Y)
2828(X >= Y)         LGreaterEqual (X, Y)
2829(X && Y)         LAnd (X, Y)
2830(X || Y)         LOr (X, Y)
2831(!X)             LNot (X)
2832
2833    // Assignment and compound assignment operations
2834
2835X = Y           Store (Y, X)
2836X += Y          Add (X, Y, X)
2837X -= Y          Subtract (X, Y, X)
2838X *= Y          Multiply (X, Y, X)
2839X /= Y          Divide (X, Y, , X)
2840X %= Y          Mod (X, Y, X)
2841X <<= Y         ShiftLeft (X, Y, X)
2842X >>= Y         ShiftRight (X, Y, X)
2843X &= Y          And (X, Y, X)
2844X |= Y          Or (X, Y, X)
2845X ^= Y          Xor (X, Y, X)
2846
2847
28483) ASL+ Examples:
2849-----------------
2850
2851Legacy ASL:
2852        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
2853            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
28540x03FB),
2855            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
2856        {
2857            And (MEMB, 0xFFFFFFF0, SRMB)
2858            Store (MEMB, Local2)
2859            Store (PDBM, Local1)
2860            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
2861            Store (SRMB, MEMB)
2862            Or (PDBM, 0x02, PDBM)
2863        }
2864
2865ASL+ version:
2866        If (((R510 & 0x03FB) == 0x02E0) ||
2867            ((R520 & 0x03FB) == 0x02E0) ||
2868            ((R530 & 0x03FB) == 0x02E0) ||
2869            ((R540 & 0x03FB) == 0x02E0))
2870        {
2871            SRMB = (MEMB & 0xFFFFFFF0)
2872            Local2 = MEMB
2873            Local1 = PDBM
2874            PDBM &= 0xFFFFFFFFFFFFFFF9
2875            MEMB = SRMB
2876            PDBM |= 0x02
2877        }
2878
2879Legacy ASL:
2880        Store (0x1234, Local1)
2881        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
2882        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
2883        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
2884        Store (Index (PKG1, 0x03), Local6)
2885        Store (Add (Local3, Local2), Debug)
2886        Add (Local1, 0x0F, Local2)
2887        Add (Local1, Multiply (Local2, Local3), Local2)
2888        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
2889
2890ASL+ version:
2891        Local1 = 0x1234
2892        Local3 = (((Local1 + TEST) + 0x20) * Local2)
2893        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
2894        Local3 = (Local1 + (TEST + (0x20 * Local2)))
2895        Local6 = Index (PKG1, 0x03)
2896        Debug = (Local3 + Local2)
2897        Local2 = (Local1 + 0x0F)
2898        Local2 = (Local1 + (Local2 * Local3))
2899        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
2900
2901
2902----------------------------------------
290326 September 2014. Summary of changes for version 20140926:
2904
29051) ACPICA kernel-resident subsystem:
2906
2907Updated the GPIO operation region handler interface (GeneralPurposeIo).
2908In order to support GPIO Connection objects with multiple pins, along
2909with the related Field objects, the following changes to the interface
2910have been made: The Address is now defined to be the offset in bits of
2911the field unit from the previous invocation of a Connection. It can be
2912viewed as a "Pin Number Index" into the connection resource descriptor.
2913The BitWidth is the exact bit width of the field. It is usually one bit,
2914but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
2915additional information and examples.
2916
2917GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
2918corresponding _Lxx/_Exx methods are disabled (they may have been enabled
2919by the firmware), so that they cannot fire until they are enabled via
2920AcpiUpdateAllGpes. Rafael J. Wysocki.
2921
2922Added a new return flag for the Event/GPE status interfaces --
2923AcpiGetEventStatus and AcpiGetGpeStatus. The new
2924ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
2925GPE currently has a handler associated with it, and can thus actually
2926affect the system. Lv Zheng.
2927
2928Example Code and Data Size: These are the sizes for the OS-independent
2929acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2930debug version of the code includes the debug output trace mechanism and
2931has a much larger code and data size.
2932
2933  Current Release:
2934    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
2935    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
2936  Previous Release:
2937    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
2938    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
2939
29402) iASL Compiler/Disassembler and Tools:
2941
2942iASL: Fixed a memory allocation/free regression introduced in 20140828
2943that could cause the compiler to crash. This was introduced inadvertently
2944during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
29451113.
2946
2947iASL: Removed two error messages that have been found to create false
2948positives, until they can be fixed and fully validated (ACPICA BZ 1112):
29491) Illegal forward reference within a method
29502) Illegal reference across two methods
2951
2952iASL: Implemented a new option (-lm) to create a hardware mapping file
2953that summarizes all GPIO, I2C, SPI, and UART connections. This option
2954works for both the compiler and disassembler. See the iASL compiler user
2955guide for additional information and examples (section 6.4.6).
2956
2957AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
2958version 2. This corrects the AE_BAD_HEADER exception seen on systems with
2959a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
2960
2961AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
2962unless STDIN is actually a terminal. Assists with batch-mode processing.
2963ACPICA BZ 1114.
2964
2965Disassembler/AcpiHelp: Added another large group of recognized _HID
2966values.
2967
2968
2969----------------------------------------
297028 August 2014. Summary of changes for version 20140828:
2971
29721) ACPICA kernel-resident subsystem:
2973
2974Fixed a problem related to the internal use of the Timer() operator where
2975a 64-bit divide could cause an attempted link to a double-precision math
2976library. This divide is not actually necessary, so the code was
2977restructured to eliminate it. Lv Zheng.
2978
2979ACPI 5.1: Added support for the runtime validation of the _DSD package
2980(similar to the iASL support).
2981
2982ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
2983SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
2984
2985Example Code and Data Size: These are the sizes for the OS-independent
2986acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2987debug version of the code includes the debug output trace mechanism and
2988has a much larger code and data size.
2989
2990  Current Release:
2991    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
2992    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
2993  Previous Release:
2994    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
2995    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
2996
29972) iASL Compiler/Disassembler and Tools:
2998
2999AcpiExec: Fixed a problem on unix systems where the original terminal
3000state was not always properly restored upon exit. Seen when using the -v
3001option. ACPICA BZ 1104.
3002
3003iASL: Fixed a problem with the validation of the ranges/length within the
3004Memory24 resource descriptor. There was a boundary condition when the
3005range was equal to the (length -1) caused by the fact that these values
3006are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
3007
3008Disassembler: Fixed a problem with the GpioInt descriptor interrupt
3009polarity
3010flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
3011is
3012now supported properly.
3013
3014ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
3015in the disassembler, data table compiler, and table template generator.
3016
3017iASL: Added a requirement for Device() objects that one of either a _HID
3018or _ADR must exist within the scope of a Device, as per the ACPI
3019specification. Remove a similar requirement that was incorrectly in place
3020for the _DSD object.
3021
3022iASL: Added error detection for illegal named references within control
3023methods that would cause runtime failures. Now trapped as errors are: 1)
3024References to objects within a non-parent control method. 2) Forward
3025references (within a method) -- for control methods, AML interpreters use
3026a one-pass parse of control methods. ACPICA BZ 1008.
3027
3028iASL: Added error checking for dependencies related to the _PSx power
3029methods. ACPICA BZ 1029.
30301) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
3031_PS3.
30322) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
3033scope.
3034
3035iASL and table compiler: Cleanup miscellaneous memory leaks by fully
3036deploying the existing object and string caches and adding new caches for
3037the table compiler.
3038
3039iASL: Split the huge parser source file into multiple subfiles to improve
3040manageability. Generation now requires the M4 macro preprocessor, which
3041is part of the Bison distribution on both unix and windows platforms.
3042
3043AcpiSrc: Fixed and removed all extraneous warnings generated during
3044entire ACPICA source code scan and/or conversion.
3045
3046
3047----------------------------------------
3048
304924 July 2014. Summary of changes for version 20140724:
3050
3051The ACPI 5.1 specification has been released and is available at:
3052http://uefi.org/specs/access
3053
3054
30550) ACPI 5.1 support in ACPICA:
3056
3057ACPI 5.1 is fully supported in ACPICA as of this release.
3058
3059New predefined names. Support includes iASL and runtime ACPICA
3060validation.
3061    _CCA (Cache Coherency Attribute).
3062    _DSD (Device-Specific Data). David Box.
3063
3064Modifications to existing ACPI tables. Support includes headers, iASL
3065Data Table compiler, disassembler, and the template generator.
3066    FADT - New fields and flags. Graeme Gregory.
3067    GTDT - One new subtable and new fields. Tomasz Nowicki.
3068    MADT - Two new subtables. Tomasz Nowicki.
3069    PCCT - One new subtable.
3070
3071Miscellaneous.
3072    New notification type for System Resource Affinity change events.
3073
3074
30751) ACPICA kernel-resident subsystem:
3076
3077Fixed a regression introduced in 20140627 where a fault can happen during
3078the deletion of Alias AML namespace objects. The problem affected both
3079the core ACPICA and the ACPICA tools including iASL and AcpiExec.
3080
3081Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
3082simple mechanism to enable wake GPEs that have no associated handler or
3083control method. Rafael Wysocki.
3084
3085Updated the AcpiEnableGpe interface to disallow the enable if there is no
3086handler or control method associated with the particular GPE. This will
3087help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
3088
3089Updated GPE handling and dispatch by disabling the GPE before clearing
3090the status bit for edge-triggered GPEs. Lv Zheng.
3091
3092Added Timer() support to the AML Debug object. The current timer value is
3093now displayed with each invocation of (Store to) the debug object to
3094enable simple generation of execution times for AML code (method
3095execution for example.) ACPICA BZ 1093.
3096
3097Example Code and Data Size: These are the sizes for the OS-independent
3098acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3099debug version of the code includes the debug output trace mechanism and
3100has a much larger code and data size.
3101
3102  Current Release:
3103    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
3104    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
3105  Previous Release:
3106    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
3107    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
3108
3109
31102) iASL Compiler/Disassembler and Tools:
3111
3112Fixed an issue with the recently added local printf implementation,
3113concerning width/precision specifiers that could cause incorrect output.
3114Lv Zheng. ACPICA BZ 1094.
3115
3116Disassembler: Added support to detect buffers that contain UUIDs and
3117disassemble them to an invocation of the ToUUID operator. Also emit
3118commented descriptions of known ACPI-related UUIDs.
3119
3120AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
3121-u. Adds three new files.
3122
3123iASL: Update table compiler and disassembler for DMAR table changes that
3124were introduced in September 2013. With assistance by David Woodhouse.
3125
3126----------------------------------------
312727 June 2014. Summary of changes for version 20140627:
3128
31291) ACPICA kernel-resident subsystem:
3130
3131Formatted Output: Implemented local versions of standard formatted output
3132utilities such as printf, etc. Over time, it has been discovered that
3133there are in fact many portability issues with printf, and the addition
3134of this feature will fix/prevent these issues once and for all. Some
3135known issues are summarized below:
3136
31371) Output of 64-bit values is not portable. For example, UINT64 is %ull
3138for the Linux kernel and is %uI64 for some MSVC versions.
31392) Invoking printf consistently in a manner that is portable across both
314032-bit and 64-bit platforms is difficult at best in many situations.
31413) The output format for pointers varies from system to system (leading
3142zeros especially), and leads to inconsistent output from ACPICA across
3143platforms.
31444) Certain platform-specific printf formats may conflict with ACPICA use.
31455) If there is no local C library available, ACPICA now has local support
3146for printf.
3147
3148-- To address these printf issues in a complete manner, ACPICA now
3149directly implements a small subset of printf format specifiers, only
3150those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
3151
3152Implemented support for ACPICA generation within the EFI environment.
3153Initially, the AcpiDump utility is supported in the UEFI shell
3154environment. Lv Zheng.
3155
3156Added a new external interface, AcpiLogError, to improve ACPICA
3157portability. This allows the host to redirect error messages from the
3158ACPICA utilities. Lv Zheng.
3159
3160Added and deployed new OSL file I/O interfaces to improve ACPICA
3161portability:
3162  AcpiOsOpenFile
3163  AcpiOsCloseFile
3164  AcpiOsReadFile
3165  AcpiOsWriteFile
3166  AcpiOsGetFileOffset
3167  AcpiOsSetFileOffset
3168There are C library implementations of these functions in the new file
3169service_layers/oslibcfs.c -- however, the functions can be implemented by
3170the local host in any way necessary. Lv Zheng.
3171
3172Implemented a mechanism to disable/enable ACPI table checksum validation
3173at runtime. This can be useful when loading tables very early during OS
3174initialization when it may not be possible to map the entire table in
3175order to compute the checksum. Lv Zheng.
3176
3177Fixed a buffer allocation issue for the Generic Serial Bus support.
3178Originally, a fixed buffer length was used. This change allows for
3179variable-length buffers based upon the protocol indicated by the field
3180access attributes. Reported by Lan Tianyu. Lv Zheng.
3181
3182Fixed a problem where an object detached from a namespace node was not
3183properly terminated/cleared and could cause a circular list problem if
3184reattached. ACPICA BZ 1063. David Box.
3185
3186Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
3187
3188Fixed a possible memory leak in an error return path within the function
3189AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
3190
3191Example Code and Data Size: These are the sizes for the OS-independent
3192acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3193debug version of the code includes the debug output trace mechanism and
3194has a much larger code and data size.
3195
3196  Current Release:
3197    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
3198    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
3199  Previous Release:
3200    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
3201    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
3202
3203
32042) iASL Compiler/Disassembler and Tools:
3205
3206Disassembler: Add dump of ASCII equivalent text within a comment at the
3207end of each line of the output for the Buffer() ASL operator.
3208
3209AcpiDump: Miscellaneous changes:
3210  Fixed repetitive table dump in -n mode.
3211  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
3212the ACPI 2.0 GUID fails.
3213
3214iASL: Fixed a problem where the compiler could fault if incorrectly given
3215an acpidump output file as input. ACPICA BZ 1088. David Box.
3216
3217AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
3218they are invoked without any arguments.
3219
3220Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
32211086. Colin Ian King.
3222
3223Disassembler: Cleaned up a block of code that extracts a parent Op
3224object. Added a comment that explains that the parent is guaranteed to be
3225valid in this case. ACPICA BZ 1069.
3226
3227
3228----------------------------------------
322924 April 2014. Summary of changes for version 20140424:
3230
32311) ACPICA kernel-resident subsystem:
3232
3233Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
3234Some of these tables are known to contain a trailing NULL entry. Lv
3235Zheng.
3236
3237Removed an extraneous error message for the case where there are a large
3238number of system GPEs (> 124). This was the "32-bit FADT register is too
3239long to convert to GAS struct" message, which is irrelevant for GPEs
3240since the GPEx_BLK_LEN fields of the FADT are always used instead of the
3241(limited capacity) GAS bit length. Also, several changes to ensure proper
3242support for GPE numbers > 255, where some "GPE number" fields were 8-bits
3243internally.
3244
3245Implemented and deployed additional configuration support for the public
3246ACPICA external interfaces. Entire classes of interfaces can now be
3247easily modified or configured out, replaced by stubbed inline functions
3248by default. Lv Zheng.
3249
3250Moved all public ACPICA runtime configuration globals to the public
3251ACPICA external interface file for convenience. Also, removed some
3252obsolete/unused globals. See the file acpixf.h. Lv Zheng.
3253
3254Documentation: Added a new section to the ACPICA reference describing the
3255maximum number of GPEs that can be supported by the FADT-defined GPEs in
3256block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
3257reference.
3258
3259Example Code and Data Size: These are the sizes for the OS-independent
3260acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3261debug version of the code includes the debug output trace mechanism and
3262has a much larger code and data size.
3263
3264  Current Release:
3265    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
3266    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
3267  Previous Release:
3268    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
3269    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
3270
3271
32722) iASL Compiler/Disassembler and Tools:
3273
3274iASL and disassembler: Add full support for the LPIT table (Low Power
3275Idle Table). Includes support in the disassembler, data table compiler,
3276and template generator.
3277
3278AcpiDump utility:
32791) Add option to force the use of the RSDT (over the XSDT).
32802) Improve validation of the RSDP signature (use 8 chars instead of 4).
3281
3282iASL: Add check for predefined packages that are too large.  For
3283predefined names that contain subpackages, check if each subpackage is
3284too large. (Check for too small already exists.)
3285
3286Debugger: Updated the GPE command (which simulates a GPE by executing the
3287GPE code paths in ACPICA). The GPE device is now optional, and defaults
3288to the GPE 0/1 FADT-defined blocks.
3289
3290Unix application OSL: Update line-editing support. Add additional error
3291checking and take care not to reset terminal attributes on exit if they
3292were never set. This should help guarantee that the terminal is always
3293left in the previous state on program exit.
3294
3295
3296----------------------------------------
329725 March 2014. Summary of changes for version 20140325:
3298
32991) ACPICA kernel-resident subsystem:
3300
3301Updated the auto-serialize feature for control methods. This feature
3302automatically serializes all methods that create named objects in order
3303to prevent runtime errors. The update adds support to ignore the
3304currently executing AML SyncLevel when invoking such a method, in order
3305to prevent disruption of any existing SyncLevel priorities that may exist
3306in the AML code. Although the use of SyncLevels is relatively rare, this
3307change fixes a regression where an AE_AML_MUTEX_ORDER exception can
3308appear on some machines starting with the 20140214 release.
3309
3310Added a new external interface to allow the host to install ACPI tables
3311very early, before the namespace is even created. AcpiInstallTable gives
3312the host additional flexibility for ACPI table management. Tables can be
3313installed directly by the host as if they had originally appeared in the
3314XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
3315(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
3316with additional internal restructuring and cleanup. See the ACPICA
3317Reference for interface details. Lv Zheng.
3318
3319Added validation of the checksum for all incoming dynamically loaded
3320tables (via external interfaces or via AML Load/LoadTable operators). Lv
3321Zheng.
3322
3323Updated the use of the AcpiOsWaitEventsComplete interface during Notify
3324and GPE handler removal. Restructured calls to eliminate possible race
3325conditions. Lv Zheng.
3326
3327Added a warning for the use/execution of the ASL/AML Unload (table)
3328operator. This will help detect and identify machines that use this
3329operator if and when it is ever used. This operator has never been seen
3330in the field and the usage model and possible side-effects of the drastic
3331runtime action of a full table removal are unknown.
3332
3333Reverted the use of #pragma push/pop which was introduced in the 20140214
3334release. It appears that push and pop are not implemented by enough
3335compilers to make the use of this feature feasible for ACPICA at this
3336time. However, these operators may be deployed in a future ACPICA
3337release.
3338
3339Added the missing EXPORT_SYMBOL macros for the install and remove SCI
3340handler interfaces.
3341
3342Source code generation:
33431) Disabled the use of the "strchr" macro for the gcc-specific
3344generation. For some versions of gcc, this macro can periodically expose
3345a compiler bug which in turn causes compile-time error(s).
33462) Added support for PPC64 compilation. Colin Ian King.
3347
3348Example Code and Data Size: These are the sizes for the OS-independent
3349acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3350debug version of the code includes the debug output trace mechanism and
3351has a much larger code and data size.
3352
3353  Current 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  Previous Release:
3357    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
3358    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
3359
3360
33612) iASL Compiler/Disassembler and Tools:
3362
3363Disassembler: Added several new features to improve the readability of
3364the resulting ASL code. Extra information is emitted within comment
3365fields in the ASL code:
33661) Known _HID/_CID values are decoded to descriptive text.
33672) Standard values for the Notify() operator are decoded to descriptive
3368text.
33693) Target operands are expanded to full pathnames (in a comment) when
3370possible.
3371
3372Disassembler: Miscellaneous updates for extern() handling:
33731) Abort compiler if file specified by -fe option does not exist.
33742) Silence unnecessary warnings about argument count mismatches.
33753) Update warning messages concerning unresolved method externals.
33764) Emit "UnknownObj" keyword for externals whose type cannot be
3377determined.
3378
3379AcpiHelp utility:
33801) Added the -a option to display both the ASL syntax and the AML
3381encoding for an input ASL operator. This effectively displays all known
3382information about an ASL operator with one AcpiHelp invocation.
33832) Added substring match support (similar to a wildcard) for the -i
3384(_HID/PNP IDs) option.
3385
3386iASL/Disassembler: Since this tool does not yet support execution on big-
3387endian machines, added detection of endianness and an error message if
3388execution is attempted on big-endian. Support for big-endian within iASL
3389is a feature that is on the ACPICA to-be-done list.
3390
3391AcpiBin utility:
33921) Remove option to extract binary files from an acpidump; this function
3393is made obsolete by the AcpiXtract utility.
33942) General cleanup of open files and allocated buffers.
3395
3396
3397----------------------------------------
339814 February 2014. Summary of changes for version 20140214:
3399
34001) ACPICA kernel-resident subsystem:
3401
3402Implemented a new mechanism to proactively prevent problems with ill-
3403behaved reentrant control methods that create named ACPI objects. This
3404behavior is illegal as per the ACPI specification, but is nonetheless
3405frequently seen in the field. Previously, this could lead to an
3406AE_ALREADY_EXISTS exception if the method was actually entered by more
3407than one thread. This new mechanism detects such methods at table load
3408time and marks them "serialized" to prevent reentrancy. A new global
3409option, AcpiGbl_AutoSerializeMethods, has been added to disable this
3410feature if desired. This mechanism and global option obsoletes and
3411supersedes the previous AcpiGbl_SerializeAllMethods option.
3412
3413Added the "Windows 2013" string to the _OSI support. ACPICA will now
3414respond TRUE to _OSI queries with this string. It is the stated policy of
3415ACPICA to add new strings to the _OSI support as soon as possible after
3416they are defined. See the full ACPICA _OSI policy which has been added to
3417the utilities/utosi.c file.
3418
3419Hardened/updated the _PRT return value auto-repair code:
34201) Do not abort the repair on a single subpackage failure, continue to
3421check all subpackages.
34222) Add check for the minimum subpackage length (4).
34233) Properly handle extraneous NULL package elements.
3424
3425Added support to avoid the possibility of infinite loops when traversing
3426object linked lists. Never allow an infinite loop, even in the face of
3427corrupted object lists.
3428
3429ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
3430pack(pop) directives to ensure that the ACPICA headers are independent of
3431compiler settings or other host headers.
3432
3433Example Code and Data Size: These are the sizes for the OS-independent
3434acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3435debug version of the code includes the debug output trace mechanism and
3436has a much larger code and data size.
3437
3438  Current Release:
3439    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
3440    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
3441  Previous Release:
3442    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
3443    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
3444
3445
34462) iASL Compiler/Disassembler and Tools:
3447
3448iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
3449first reserved field was incorrectly forced to have a value of zero. This
3450change correctly forces the field to have a value of one. ACPICA BZ 1081.
3451
3452Debugger: Added missing support for the "Extra" and "Data" subobjects
3453when displaying object data.
3454
3455Debugger: Added support to display entire object linked lists when
3456displaying object data.
3457
3458iASL: Removed the obsolete -g option to obtain ACPI tables from the
3459Windows registry. This feature has been superseded by the acpidump
3460utility.
3461
3462
3463----------------------------------------
346414 January 2014. Summary of changes for version 20140114:
3465
34661) ACPICA kernel-resident subsystem:
3467
3468Updated all ACPICA copyrights and signons to 2014. Added the 2014
3469copyright to all module headers and signons, including the standard Linux
3470header. This affects virtually every file in the ACPICA core subsystem,
3471iASL compiler, all ACPICA utilities, and the test suites.
3472
3473Improved parameter validation for AcpiInstallGpeBlock. Added the
3474following checks:
34751) The incoming device handle refers to type ACPI_TYPE_DEVICE.
34762) There is not already a GPE block attached to the device.
3477Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
3478device.
3479
3480Correctly support "references" in the ACPI_OBJECT. This change fixes the
3481support to allow references (namespace nodes) to be passed as arguments
3482to control methods via the evaluate object interface. This is probably
3483most useful for testing purposes, however.
3484
3485Improved support for 32/64 bit physical addresses in printf()-like
3486output. This change improves the support for physical addresses in printf
3487debug statements and other output on both 32-bit and 64-bit hosts. It
3488consistently outputs the appropriate number of bytes for each host. The
3489%p specifier is unsatisfactory since it does not emit uniform output on
3490all hosts/clib implementations (on some, leading zeros are not supported,
3491leading to difficult-to-read output).
3492
3493Example Code and Data Size: These are the sizes for the OS-independent
3494acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3495debug version of the code includes the debug output trace mechanism and
3496has a much larger code and data size.
3497
3498  Current Release:
3499    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
3500    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
3501  Previous Release:
3502    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
3503    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
3504
3505
35062) iASL Compiler/Disassembler and Tools:
3507
3508iASL: Fix a possible fault when using the Connection() operator. Fixes a
3509problem if the parent Field definition for the Connection operator refers
3510to an operation region that does not exist. ACPICA BZ 1064.
3511
3512AcpiExec: Load of local test tables is now optional. The utility has the
3513capability to load some various tables to test features of ACPICA.
3514However, there are enough of them that the output of the utility became
3515confusing. With this change, only the required local tables are displayed
3516(RSDP, XSDT, etc.) along with the actual tables loaded via the command
3517line specification. This makes the default output simler and easier to
3518understand. The -el command line option restores the original behavior
3519for testing purposes.
3520
3521AcpiExec: Added support for overlapping operation regions. This change
3522expands the simulation of operation regions by supporting regions that
3523overlap within the given address space. Supports SystemMemory and
3524SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
3525
3526AcpiExec: Added region handler support for PCI_Config and EC spaces. This
3527allows AcpiExec to simulate these address spaces, similar to the current
3528support for SystemMemory and SystemIO.
3529
3530Debugger: Added new command to read/write/compare all namespace objects.
3531The command "test objects" will exercise the entire namespace by writing
3532new values to each data object, and ensuring that the write was
3533successful. The original value is then restored and verified.
3534
3535Debugger: Added the "test predefined" command. This change makes this
3536test public and puts it under the new "test" command. The test executes
3537each and every predefined name within the current namespace.
3538
3539
3540----------------------------------------
354118 December 2013. Summary of changes for version 20131218:
3542
3543Global note: The ACPI 5.0A specification was released this month. There
3544are no changes needed for ACPICA since this release of ACPI is an
3545errata/clarification release. The specification is available at
3546acpi.info.
3547
3548
35491) ACPICA kernel-resident subsystem:
3550
3551Added validation of the XSDT root table if it is present. Some older
3552platforms contain an XSDT that is ill-formed or otherwise invalid (such
3553as containing some or all entries that are NULL pointers). This change
3554adds a new function to validate the XSDT before actually using it. If the
3555XSDT is found to be invalid, ACPICA will now automatically fall back to
3556using the RSDT instead. Original implementation by Zhao Yakui. Ported to
3557ACPICA and enhanced by Lv Zheng and Bob Moore.
3558
3559Added a runtime option to ignore the XSDT and force the use of the RSDT.
3560This change adds a runtime option that will force ACPICA to use the RSDT
3561instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
3562requires that an XSDT be used instead of the RSDT, the XSDT has been
3563found to be corrupt or ill-formed on some machines. Lv Zheng.
3564
3565Added a runtime option to favor 32-bit FADT register addresses over the
356664-bit addresses. This change adds an option to favor 32-bit FADT
3567addresses when there is a conflict between the 32-bit and 64-bit versions
3568of the same register. The default behavior is to use the 64-bit version
3569in accordance with the ACPI specification. This can now be overridden via
3570the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
3571
3572During the change above, the internal "Convert FADT" and "Verify FADT"
3573functions have been merged to simplify the code, making it easier to
3574understand and maintain. ACPICA BZ 933.
3575
3576Improve exception reporting and handling for GPE block installation.
3577Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
3578status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
3579
3580Added helper macros to extract bus/segment numbers from the HEST table.
3581This change adds two macros to extract the encoded bus and segment
3582numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
3583Betty Dall <betty.dall@hp.com>
3584
3585Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
3586by ACPICA. It is not a public macro, so it should have no effect on
3587existing OSV code. Lv Zheng.
3588
3589Example Code and Data Size: These are the sizes for the OS-independent
3590acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3591debug version of the code includes the debug output trace mechanism and
3592has a much larger code and data size.
3593
3594  Current Release:
3595    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
3596    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
3597  Previous Release:
3598    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
3599    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
3600
3601
36022) iASL Compiler/Disassembler and Tools:
3603
3604Disassembler: Improved pathname support for emitted External()
3605statements. This change adds full pathname support for external names
3606that have been resolved internally by the inclusion of additional ACPI
3607tables (via the iASL -e option). Without this change, the disassembler
3608can emit multiple externals for the same object, or it become confused
3609when the Scope() operator is used on an external object. Overall, greatly
3610improves the ability to actually recompile the emitted ASL code when
3611objects a referenced across multiple ACPI tables. Reported by Michael
3612Tsirkin (mst@redhat.com).
3613
3614Tests/ASLTS: Updated functional control suite to execute with no errors.
3615David Box. Fixed several errors related to the testing of the interpreter
3616slack mode. Lv Zheng.
3617
3618iASL: Added support to detect names that are declared within a control
3619method, but are unused (these are temporary names that are only valid
3620during the time the method is executing). A remark is issued for these
3621cases. ACPICA BZ 1022.
3622
3623iASL: Added full support for the DBG2 table. Adds full disassembler,
3624table compiler, and template generator support for the DBG2 table (Debug
3625Port 2 table).
3626
3627iASL: Added full support for the PCCT table, update the table definition.
3628Updates the PCCT table definition in the actbl3.h header and adds table
3629compiler and template generator support.
3630
3631iASL: Added an option to emit only error messages (no warnings/remarks).
3632The -ve option will enable only error messages, warnings and remarks are
3633suppressed. This can simplify debugging when only the errors are
3634important, such as when an ACPI table is disassembled and there are many
3635warnings and remarks -- but only the actual errors are of real interest.
3636
3637Example ACPICA code (source/tools/examples): Updated the example code so
3638that it builds to an actual working program, not just example code. Added
3639ACPI tables and execution of an example control method in the DSDT. Added
3640makefile support for Unix generation.
3641
3642
3643----------------------------------------
364415 November 2013. Summary of changes for version 20131115:
3645
3646This release is available at https://acpica.org/downloads
3647
3648
36491) ACPICA kernel-resident subsystem:
3650
3651Resource Manager: Fixed loop termination for the "get AML length"
3652function. The loop previously had an error termination on a NULL resource
3653pointer, which can never happen since the loop simply increments a valid
3654resource pointer. This fix changes the loop to terminate with an error on
3655an invalid end-of-buffer condition. The problem can be seen as an
3656infinite loop by callers to AcpiSetCurrentResources with an invalid or
3657corrupted resource descriptor, or a resource descriptor that is missing
3658an END_TAG descriptor. Reported by Dan Carpenter
3659<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
3660
3661Table unload and ACPICA termination: Delete all attached data objects
3662during namespace node deletion. This fix updates namespace node deletion
3663to delete the entire list of attached objects (attached via
3664AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
36651024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
3666
3667ACPICA termination: Added support to delete all objects attached to the
3668root namespace node. This fix deletes any and all objects that have been
3669attached to the root node via AcpiAttachData. Previously, none of these
3670objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
3671
3672Debug output: Do not emit the function nesting level for the in-kernel
3673build. The nesting level is really only useful during a single-thread
3674execution. Therefore, only enable this output for the AcpiExec utility.
3675Also, only emit the thread ID when executing under AcpiExec (Context
3676switches are still always detected and a message is emitted). ACPICA BZ
3677972.
3678
3679Example Code and Data Size: These are the sizes for the OS-independent
3680acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3681debug version of the code includes the debug output trace mechanism and
3682has a much larger code and data size.
3683
3684  Current Release:
3685    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
3686    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
3687  Previous Release:
3688    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
3689    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
3690
3691
36922) iASL Compiler/Disassembler and Tools:
3693
3694AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
3695correct portable POSIX header for terminal control functions.
3696
3697Disassembler: Fixed control method invocation issues related to the use
3698of the CondRefOf() operator. The problem is seen in the disassembly where
3699control method invocations may not be disassembled properly if the
3700control method name has been used previously as an argument to CondRefOf.
3701The solution is to not attempt to emit an external declaration for the
3702CondRefOf target (it is not necessary in the first place). This prevents
3703disassembler object type confusion. ACPICA BZ 988.
3704
3705Unix Makefiles: Added an option to disable compiler optimizations and the
3706_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
3707with optimizations (reportedly, gcc 4.4 for example). This change adds a
3708command line option for make (NOOPT) that disables all compiler
3709optimizations and the _FORTIFY_SOURCE compiler flag. The default
3710optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
37111034. Lv Zheng, Bob Moore.
3712
3713Tests/ASLTS: Added options to specify individual test cases and modes.
3714This allows testers running aslts.sh to optionally specify individual
3715test modes and test cases. Also added an option to disable the forced
3716generation of the ACPICA tools from source if desired. Lv Zheng.
3717
3718----------------------------------------
371927 September 2013. Summary of changes for version 20130927:
3720
3721This release is available at https://acpica.org/downloads
3722
3723
37241) ACPICA kernel-resident subsystem:
3725
3726Fixed a problem with store operations to reference objects. This change
3727fixes a problem where a Store operation to an ArgX object that contained
3728a
3729reference to a field object did not complete the automatic dereference
3730and
3731then write to the actual field object. Instead, the object type of the
3732field object was inadvertently changed to match the type of the source
3733operand. The new behavior will actually write to the field object (buffer
3734field or field unit), thus matching the correct ACPI-defined behavior.
3735
3736Implemented support to allow the host to redefine individual OSL
3737prototypes. This change enables the host to redefine OSL prototypes found
3738in the acpiosxf.h file. This allows the host to implement OSL interfaces
3739with a macro or inlined function. Further, it allows the host to add any
3740additional required modifiers such as __iomem, __init, __exit, etc., as
3741necessary on a per-interface basis. Enables maximum flexibility for the
3742OSL interfaces. Lv Zheng.
3743
3744Hardcoded the access width for the FADT-defined reset register. The ACPI
3745specification requires the reset register width to be 8 bits. ACPICA now
3746hardcodes the width to 8 and ignores the FADT width value. This provides
3747compatibility with other ACPI implementations that have allowed BIOS code
3748with bad register width values to go unnoticed. Matthew Garett, Bob
3749Moore,
3750Lv Zheng.
3751
3752Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
3753used
3754in the OSL header (acpiosxf). The change modifies the position of this
3755macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
3756build issues if the OSL defines the implementation of the interface to be
3757an inline stub function. Lv Zheng.
3758
3759Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
3760initialization interfaces. This change adds a new macro for the main init
3761and terminate external interfaces in order to support hosts that require
3762additional or different processing for these functions. Changed from
3763ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
3764Zheng, Bob Moore.
3765
3766Cleaned up the memory allocation macros for configurability. In the
3767common
3768case, the ACPI_ALLOCATE and related macros now resolve directly to their
3769respective AcpiOs* OSL interfaces. Two options:
37701) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
3771default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
37722) For AcpiExec (and for debugging), the macros can optionally be
3773resolved
3774to the local ACPICA interfaces that track each allocation (local tracking
3775is used to immediately detect memory leaks).
3776Lv Zheng.
3777
3778Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
3779to predefine this macro to either TRUE or FALSE during the system build.
3780
3781Replaced __FUNCTION_ with __func__ in the gcc-specific header.
3782
3783Example Code and Data Size: These are the sizes for the OS-independent
3784acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3785debug version of the code includes the debug output trace mechanism and
3786has a much larger code and data size.
3787
3788  Current Release:
3789    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
3790    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
3791  Previous Release:
3792    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
3793    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
3794
3795
37962) iASL Compiler/Disassembler and Tools:
3797
3798iASL: Implemented wildcard support for the -e option. This simplifies use
3799when there are many SSDTs that must be included to resolve external
3800method
3801declarations. ACPICA BZ 1041. Example:
3802    iasl -e ssdt*.dat -d dsdt.dat
3803
3804AcpiExec: Add history/line-editing for Unix/Linux systems. This change
3805adds a portable module that implements full history and limited line
3806editing for Unix and Linux systems. It does not use readline() due to
3807portability issues. Instead it uses the POSIX termio interface to put the
3808terminal in raw input mode so that the various special keys can be
3809trapped
3810(such as up/down-arrow for history support and left/right-arrow for line
3811editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
3812
3813AcpiXtract: Add support to handle (ignore) "empty" lines containing only
3814one or more spaces. This provides compatible with early or different
3815versions of the AcpiDump utility. ACPICA BZ 1044.
3816
3817AcpiDump: Do not ignore tables that contain only an ACPI table header.
3818Apparently, some BIOSs create SSDTs that contain an ACPI table header but
3819no other data. This change adds support to dump these tables. Any tables
3820shorter than the length of an ACPI table header remain in error (an error
3821message is emitted). Reported by Yi Li.
3822
3823Debugger: Echo actual command along with the "unknown command" message.
3824
3825----------------------------------------
382623 August 2013. Summary of changes for version 20130823:
3827
38281) ACPICA kernel-resident subsystem:
3829
3830Implemented support for host-installed System Control Interrupt (SCI)
3831handlers. Certain ACPI functionality requires the host to handle raw
3832SCIs. For example, the "SCI Doorbell" that is defined for memory power
3833state support requires the host device driver to handle SCIs to examine
3834if the doorbell has been activated. Multiple SCI handlers can be
3835installed to allow for future expansion. New external interfaces are
3836AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
3837details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
3838
3839Operation region support: Never locally free the handler "context"
3840pointer. This change removes some dangerous code that attempts to free
3841the handler context pointer in some (rare) circumstances. The owner of
3842the handler owns this pointer and the ACPICA code should never touch it.
3843Although not seen to be an issue in any kernel, it did show up as a
3844problem (fault) under AcpiExec. Also, set the internal storage field for
3845the context pointer to zero when the region is deactivated, simply for
3846sanity. David Box. ACPICA BZ 1039.
3847
3848AcpiRead: On error, do not modify the return value target location. If an
3849error happens in the middle of a split 32/32 64-bit I/O operation, do not
3850modify the target of the return value pointer. Makes the code consistent
3851with the rest of ACPICA. Bjorn Helgaas.
3852
3853Example Code and Data Size: These are the sizes for the OS-independent
3854acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3855debug version of the code includes the debug output trace mechanism and
3856has a much larger code and data size.
3857
3858  Current Release:
3859    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
3860    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
3861  Previous Release:
3862    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
3863    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
3864
3865
38662) iASL Compiler/Disassembler and Tools:
3867
3868AcpiDump: Implemented several new features and fixed some problems:
38691) Added support to dump the RSDP, RSDT, and XSDT tables.
38702) Added support for multiple table instances (SSDT, UEFI).
38713) Added option to dump "customized" (overridden) tables (-c).
38724) Fixed a problem where some table filenames were improperly
3873constructed.
38745) Improved some error messages, removed some unnecessary messages.
3875
3876iASL: Implemented additional support for disassembly of ACPI tables that
3877contain invocations of external control methods. The -fe<file> option
3878allows the import of a file that specifies the external methods along
3879with the required number of arguments for each -- allowing for the
3880correct disassembly of the table. This is a workaround for a limitation
3881of AML code where the disassembler often cannot determine the number of
3882arguments required for an external control method and generates incorrect
3883ASL code. See the iASL reference for details. ACPICA BZ 1030.
3884
3885Debugger: Implemented a new command (paths) that displays the full
3886pathnames (namepaths) and object types of all objects in the namespace.
3887This is an alternative to the namespace command.
3888
3889Debugger: Implemented a new command (sci) that invokes the SCI dispatch
3890mechanism and any installed handlers.
3891
3892iASL: Fixed a possible segfault for "too many parent prefixes" condition.
3893This can occur if there are too many parent prefixes in a namepath (for
3894example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
3895
3896Application OSLs: Set the return value for the PCI read functions. These
3897functions simply return AE_OK, but should set the return value to zero
3898also. This change implements this. ACPICA BZ 1038.
3899
3900Debugger: Prevent possible command line buffer overflow. Increase the
3901size of a couple of the debugger line buffers, and ensure that overflow
3902cannot happen. ACPICA BZ 1037.
3903
3904iASL: Changed to abort immediately on serious errors during the parsing
3905phase. Due to the nature of ASL, there is no point in attempting to
3906compile these types of errors, and they typically end up causing a
3907cascade of hundreds of errors which obscure the original problem.
3908
3909----------------------------------------
391025 July 2013. Summary of changes for version 20130725:
3911
39121) ACPICA kernel-resident subsystem:
3913
3914Fixed a problem with the DerefOf operator where references to FieldUnits
3915and BufferFields incorrectly returned the parent object, not the actual
3916value of the object. After this change, a dereference of a FieldUnit
3917reference results in a read operation on the field to get the value, and
3918likewise, the appropriate BufferField value is extracted from the target
3919buffer.
3920
3921Fixed a problem where the _WAK method could cause a fault under these
3922circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
3923method returned no value. The problem is rarely seen because most kernels
3924run ACPICA in slack mode.
3925
3926For the DerefOf operator, a fatal error now results if an attempt is made
3927to dereference a reference (created by the Index operator) to a NULL
3928package element. Provides compatibility with other ACPI implementations,
3929and this behavior will be added to a future version of the ACPI
3930specification.
3931
3932The ACPI Power Management Timer (defined in the FADT) is now optional.
3933This provides compatibility with other ACPI implementations and will
3934appear in the next version of the ACPI specification. If there is no PM
3935Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
3936zero in the FADT indicates no PM timer.
3937
3938Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
3939allows the host to globally enable/disable all vendor strings, all
3940feature strings, or both. Intended to be primarily used for debugging
3941purposes only. Lv Zheng.
3942
3943Expose the collected _OSI data to the host via a global variable. This
3944data tracks the highest level vendor ID that has been invoked by the BIOS
3945so that the host (and potentially ACPICA itself) can change behaviors
3946based upon the age of the BIOS.
3947
3948Example Code and Data Size: These are the sizes for the OS-independent
3949acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3950debug version of the code includes the debug output trace mechanism and
3951has a much larger code and data size.
3952
3953  Current Release:
3954    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
3955    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
3956  Previous Release:
3957    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
3958    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
3959
3960
39612) iASL Compiler/Disassembler and Tools:
3962
3963iASL: Created the following enhancements for the -so option (create
3964offset table):
39651)Add offsets for the last nameseg in each namepath for every supported
3966object type
39672)Add support for Processor, Device, Thermal Zone, and Scope objects
39683)Add the actual AML opcode for the parent object of every supported
3969object type
39704)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
3971
3972Disassembler: Emit all unresolved external symbols in a single block.
3973These are external references to control methods that could not be
3974resolved, and thus, the disassembler had to make a guess at the number of
3975arguments to parse.
3976
3977iASL: The argument to the -T option (create table template) is now
3978optional. If not specified, the default table is a DSDT, typically the
3979most common case.
3980
3981----------------------------------------
398226 June 2013. Summary of changes for version 20130626:
3983
39841) ACPICA kernel-resident subsystem:
3985
3986Fixed an issue with runtime repair of the _CST object. Null or invalid
3987elements were not always removed properly. Lv Zheng.
3988
3989Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
3990FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
3991the maximum number of GPEs is 1016. Use of multiple GPE block devices
3992makes the system-wide number of GPEs essentially unlimited.
3993
3994Example Code and Data Size: These are the sizes for the OS-independent
3995acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3996debug version of the code includes the debug output trace mechanism and
3997has a much larger code and data size.
3998
3999  Current Release:
4000    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
4001    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
4002  Previous Release:
4003    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
4004    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
4005
4006
40072) iASL Compiler/Disassembler and Tools:
4008
4009Portable AcpiDump: Implemented full support for the Linux and FreeBSD
4010hosts. Now supports Linux, FreeBSD, and Windows.
4011
4012Disassembler: Added some missing types for the HEST and EINJ tables: "Set
4013Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
4014
4015iASL/Preprocessor: Implemented full support for nested
4016#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
4017
4018Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
4019max. The original purpose of this constraint was to limit the amount of
4020debug output. However, the string function in question (UtPrintString) is
4021now used for the disassembler also, where 256 bytes is insufficient.
4022Reported by RehabMan@GitHub.
4023
4024iASL/DataTables: Fixed some problems and issues with compilation of DMAR
4025tables. ACPICA BZ 999. Lv Zheng.
4026
4027iASL: Fixed a couple of error exit issues that could result in a "Could
4028not delete <file>" message during ASL compilation.
4029
4030AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
4031the actual signatures for these tables are "FACP" and "APIC",
4032respectively.
4033
4034AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
4035tables are allowed to have multiple instances.
4036
4037----------------------------------------
403817 May 2013. Summary of changes for version 20130517:
4039
40401) ACPICA kernel-resident subsystem:
4041
4042Fixed a regression introduced in version 20130328 for _INI methods. This
4043change fixes a problem introduced in 20130328 where _INI methods are no
4044longer executed properly because of a memory block that was not
4045initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
4046<tomasz.nowicki@linaro.org>.
4047
4048Fixed a possible problem with the new extended sleep registers in the
4049ACPI
40505.0 FADT. Do not use these registers (even if populated) unless the HW-
4051reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
40521020. Lv Zheng.
4053
4054Implemented return value repair code for _CST predefined objects: Sort
4055the
4056list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
4057
4058Implemented a debug-only option to disable loading of SSDTs from the
4059RSDT/XSDT during ACPICA initialization. This can be useful for debugging
4060ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
4061acglobal.h - ACPICA BZ 1005. Lv Zheng.
4062
4063Fixed some issues in the ACPICA initialization and termination code:
4064Tomasz Nowicki <tomasz.nowicki@linaro.org>
40651) Clear events initialized flag upon event component termination. ACPICA
4066BZ 1013.
40672) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
40683) Delete global lock pending lock during termination. ACPICA BZ 1012.
40694) Clear debug buffer global on termination to prevent possible multiple
4070delete. ACPICA BZ 1010.
4071
4072Standardized all switch() blocks across the entire source base. After
4073many
4074years, different formatting for switch() had crept in. This change makes
4075the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
4076
4077Split some files to enhance ACPICA modularity and configurability:
40781) Split buffer dump routines into utilities/utbuffer.c
40792) Split internal error message routines into utilities/uterror.c
40803) Split table print utilities into tables/tbprint.c
40814) Split iASL command-line option processing into asloptions.c
4082
4083Makefile enhancements:
40841) Support for all new files above.
40852) Abort make on errors from any subcomponent. Chao Guan.
40863) Add build support for Apple Mac OS X. Liang Qi.
4087
4088Example Code and Data Size: These are the sizes for the OS-independent
4089acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4090debug version of the code includes the debug output trace mechanism and
4091has a much larger code and data size.
4092
4093  Current Release:
4094    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
4095    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
4096  Previous Release:
4097    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
4098    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
4099
4100
41012) iASL Compiler/Disassembler and Tools:
4102
4103New utility: Implemented an easily portable version of the acpidump
4104utility to extract ACPI tables from the system (or a file) in an ASCII
4105hex
4106dump format. The top-level code implements the various command line
4107options, file I/O, and table dump routines. To port to a new host, only
4108three functions need to be implemented to get tables -- since this
4109functionality is OS-dependent. See the tools/acpidump/apmain.c module and
4110the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
41111) The Windows version obtains the ACPI tables from the Registry.
41122) The Linux version is under development.
41133) Other hosts - If an OS-dependent module is submitted, it will be
4114distributed with ACPICA.
4115
4116iASL: Fixed a regression for -D preprocessor option (define symbol). A
4117restructuring/change to the initialization sequence caused this option to
4118no longer work properly.
4119
4120iASL: Implemented a mechanism to disable specific warnings and remarks.
4121Adds a new command line option, "-vw <messageid> as well as "#pragma
4122disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
4123
4124iASL: Fix for too-strict package object validation. The package object
4125validation for return values from the predefined names is a bit too
4126strict, it does not allow names references within the package (which will
4127be resolved at runtime.) These types of references cannot be validated at
4128compile time. This change ignores named references within package objects
4129for names that return or define static packages.
4130
4131Debugger: Fixed the 80-character command line limitation for the History
4132command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
4133
4134iASL: Added control method and package support for the -so option
4135(generates AML offset table for BIOS support.)
4136
4137iASL: issue a remark if a non-serialized method creates named objects. If
4138a thread blocks within the method for any reason, and another thread
4139enters the method, the method will fail because an attempt will be made
4140to
4141create the same (named) object twice. In this case, issue a remark that
4142the method should be marked serialized. NOTE: may become a warning later.
4143ACPICA BZ 909.
4144
4145----------------------------------------
414618 April 2013. Summary of changes for version 20130418:
4147
41481) ACPICA kernel-resident subsystem:
4149
4150Fixed a possible buffer overrun during some rare but specific field unit
4151read operations. This overrun can only happen if the DSDT version is 1 --
4152meaning that all AML integers are 32 bits -- and the field length is
4153between 33 and 55 bits long. During the read, an internal buffer object
4154is
4155created for the field unit because the field is larger than an integer
4156(32
4157bits). However, in this case, the buffer will be incorrectly written
4158beyond the end because the buffer length is less than the internal
4159minimum
4160of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
4161long, but a full 8 bytes will be written.
4162
4163Updated the Embedded Controller "orphan" _REG method support. This refers
4164to _REG methods under the EC device that have no corresponding operation
4165region. This is allowed by the ACPI specification. This update removes a
4166dependency on the existence an ECDT table. It will execute an orphan _REG
4167method as long as the operation region handler for the EC is installed at
4168the EC device node and not the namespace root. Rui Zhang (original
4169update), Bob Moore (update/integrate).
4170
4171Implemented run-time argument typechecking for all predefined ACPI names
4172(_STA, _BIF, etc.) This change performs object typechecking on all
4173incoming arguments for all predefined names executed via
4174AcpiEvaluateObject. This ensures that ACPI-related device drivers are
4175passing correct object types as well as the correct number of arguments
4176(therefore identifying any issues immediately). Also, the ASL/namespace
4177definition of the predefined name is checked against the ACPI
4178specification for the proper argument count. Adds one new file,
4179nsarguments.c
4180
4181Changed an exception code for the ASL UnLoad() operator. Changed the
4182exception code for the case where the input DdbHandle is invalid, from
4183AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
4184
4185Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
4186global makefile. The use of this flag causes compiler errors on earlier
4187versions of GCC, so it has been removed for compatibility.
4188
4189Miscellaneous cleanup:
41901) Removed some unused/obsolete macros
41912) Fixed a possible memory leak in the _OSI support
41923) Removed an unused variable in the predefined name support
41934) Windows OSL: remove obsolete reference to a memory list field
4194
4195Example Code and Data Size: These are the sizes for the OS-independent
4196acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4197debug version of the code includes the debug output trace mechanism and
4198has a much larger code and data size.
4199
4200  Current Release:
4201    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
4202    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
4203  Previous Release:
4204    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
4205    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
4206
4207
42082) iASL Compiler/Disassembler and Tools:
4209
4210AcpiExec: Added installation of a handler for the SystemCMOS address
4211space. This prevents control method abort if a method accesses this
4212space.
4213
4214AcpiExec: Added support for multiple EC devices, and now install EC
4215operation region handler(s) at the actual EC device instead of the
4216namespace root. This reflects the typical behavior of host operating
4217systems.
4218
4219AcpiExec: Updated to ensure that all operation region handlers are
4220installed before the _REG methods are executed. This prevents a _REG
4221method from aborting if it accesses an address space has no handler.
4222AcpiExec installs a handler for every possible address space.
4223
4224Debugger: Enhanced the "handlers" command to display non-root handlers.
4225This change enhances the handlers command to display handlers associated
4226with individual devices throughout the namespace, in addition to the
4227currently supported display of handlers associated with the root
4228namespace
4229node.
4230
4231ASL Test Suite: Several test suite errors have been identified and
4232resolved, reducing the total error count during execution. Chao Guan.
4233
4234----------------------------------------
423528 March 2013. Summary of changes for version 20130328:
4236
42371) ACPICA kernel-resident subsystem:
4238
4239Fixed several possible race conditions with the internal object reference
4240counting mechanism. Some of the external ACPICA interfaces update object
4241reference counts without holding the interpreter or namespace lock. This
4242change adds a spinlock to protect reference count updates on the internal
4243ACPICA objects. Reported by and with assistance from Andriy Gapon
4244(avg@FreeBSD.org).
4245
4246FADT support: Removed an extraneous warning for very large GPE register
4247sets. This change removes a size mismatch warning if the legacy length
4248field for a GPE register set is larger than the 64-bit GAS structure can
4249accommodate. GPE register sets can be larger than the 255-bit width
4250limitation of the GAS structure. Linn Crosetto (linn@hp.com).
4251
4252_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
4253return from this interface. Handles a possible timeout case if
4254ACPI_WAIT_FOREVER is modified by the host to be a value less than
4255"forever". Jung-uk Kim.
4256
4257Predefined name support: Add allowed/required argument type information
4258to
4259the master predefined info table. This change adds the infrastructure to
4260enable typechecking on incoming arguments for all predefined
4261methods/objects. It does not actually contain the code that will fully
4262utilize this information, this is still under development. Also condenses
4263some duplicate code for the predefined names into a new module,
4264utilities/utpredef.c
4265
4266Example Code and Data Size: These are the sizes for the OS-independent
4267acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4268debug version of the code includes the debug output trace mechanism and
4269has a much larger code and data size.
4270
4271  Previous Release:
4272    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
4273    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
4274  Current Release:
4275    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
4276    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
4277
4278
42792) iASL Compiler/Disassembler and Tools:
4280
4281iASL: Implemented a new option to simplify the development of ACPI-
4282related
4283BIOS code. Adds support for a new "offset table" output file. The -so
4284option will create a C table containing the AML table offsets of various
4285named objects in the namespace so that BIOS code can modify them easily
4286at
4287boot time. This can simplify BIOS runtime code by eliminating expensive
4288searches for "magic values", enhancing boot times and adding greater
4289reliability. With assistance from Lee Hamel.
4290
4291iASL: Allow additional predefined names to return zero-length packages.
4292Now, all predefined names that are defined by the ACPI specification to
4293return a "variable-length package of packages" are allowed to return a
4294zero length top-level package. This allows the BIOS to tell the host that
4295the requested feature is not supported, and supports existing BIOS/ASL
4296code and practices.
4297
4298iASL: Changed the "result not used" warning to an error. This is the case
4299where an ASL operator is effectively a NOOP because the result of the
4300operation is not stored anywhere. For example:
4301    Add (4, Local0)
4302There is no target (missing 3rd argument), nor is the function return
4303value used. This is potentially a very serious problem -- since the code
4304was probably intended to do something, but for whatever reason, the value
4305was not stored. Therefore, this issue has been upgraded from a warning to
4306an error.
4307
4308AcpiHelp: Added allowable/required argument types to the predefined names
4309info display. This feature utilizes the recent update to the predefined
4310names table (above).
4311
4312----------------------------------------
431314 February 2013. Summary of changes for version 20130214:
4314
43151) ACPICA Kernel-resident Subsystem:
4316
4317Fixed a possible regression on some hosts: Reinstated the safe return
4318macros (return_ACPI_STATUS, etc.) that ensure that the argument is
4319evaluated only once. Although these macros are not needed for the ACPICA
4320code itself, they are often used by ACPI-related host device drivers
4321where
4322the safe feature may be necessary.
4323
4324Fixed several issues related to the ACPI 5.0 reduced hardware support
4325(SOC): Now ensure that if the platform declares itself as hardware-
4326reduced
4327via the FADT, the following functions become NOOPs (and always return
4328AE_OK) because ACPI is always enabled by definition on these machines:
4329  AcpiEnable
4330  AcpiDisable
4331  AcpiHwGetMode
4332  AcpiHwSetMode
4333
4334Dynamic Object Repair: Implemented additional runtime repairs for
4335predefined name return values. Both of these repairs can simplify code in
4336the related device drivers that invoke these methods:
43371) For the _STR and _MLS names, automatically repair/convert an ASCII
4338string to a Unicode buffer.
43392) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
4340a
4341lone end tag descriptor in the following cases: A Return(0) was executed,
4342a null buffer was returned, or no object at all was returned (non-slack
4343mode only). Adds a new file, nsconvert.c
4344ACPICA BZ 998. Bob Moore, Lv Zheng.
4345
4346Resource Manager: Added additional code to prevent possible infinite
4347loops
4348while traversing corrupted or ill-formed resource template buffers. Check
4349for zero-length resource descriptors in all code that loops through
4350resource templates (the length field is used to index through the
4351template). This change also hardens the external AcpiWalkResources and
4352AcpiWalkResourceBuffer interfaces.
4353
4354Local Cache Manager: Enhanced the main data structure to eliminate an
4355unnecessary mechanism to access the next object in the list. Actually
4356provides a small performance enhancement for hosts that use the local
4357ACPICA cache manager. Jung-uk Kim.
4358
4359Example Code and Data Size: These are the sizes for the OS-independent
4360acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4361debug version of the code includes the debug output trace mechanism and
4362has a much larger code and data size.
4363
4364  Previous Release:
4365    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
4366    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
4367  Current Release:
4368    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
4369    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
4370
4371
43722) iASL Compiler/Disassembler and Tools:
4373
4374iASL/Disassembler: Fixed several issues with the definition of the ACPI
43755.0 RASF table (RAS Feature Table). This change incorporates late changes
4376that were made to the ACPI 5.0 specification.
4377
4378iASL/Disassembler: Added full support for the following new ACPI tables:
4379  1) The MTMR table (MID Timer Table)
4380  2) The VRTC table (Virtual Real Time Clock Table).
4381Includes header file, disassembler, table compiler, and template support
4382for both tables.
4383
4384iASL: Implemented compile-time validation of package objects returned by
4385predefined names. This new feature validates static package objects
4386returned by the various predefined names defined to return packages. Both
4387object types and package lengths are validated, for both parent packages
4388and sub-packages, if any. The code is similar in structure and behavior
4389to
4390the runtime repair mechanism within the AML interpreter and uses the
4391existing predefined name information table. Adds a new file, aslprepkg.c.
4392ACPICA BZ 938.
4393
4394iASL: Implemented auto-detection of binary ACPI tables for disassembly.
4395This feature detects a binary file with a valid ACPI table header and
4396invokes the disassembler automatically. Eliminates the need to
4397specifically invoke the disassembler with the -d option. ACPICA BZ 862.
4398
4399iASL/Disassembler: Added several warnings for the case where there are
4400unresolved control methods during the disassembly. This can potentially
4401cause errors when the output file is compiled, because the disassembler
4402assumes zero method arguments in these cases (it cannot determine the
4403actual number of arguments without resolution/definition of the method).
4404
4405Debugger: Added support to display all resources with a single command.
4406Invocation of the resources command with no arguments will now display
4407all
4408resources within the current namespace.
4409
4410AcpiHelp: Added descriptive text for each ACPICA exception code displayed
4411via the -e option.
4412
4413----------------------------------------
441417 January 2013. Summary of changes for version 20130117:
4415
44161) ACPICA Kernel-resident Subsystem:
4417
4418Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
4419return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
4420objects to return a package containing one integer, most BIOS code
4421returns
4422two integers and the previous code reflects that. However, we also need
4423to
4424support BIOS code that actually implements to the ACPI spec, and this
4425change reflects this.
4426
4427Fixed two issues with the ACPI_DEBUG_PRINT macros:
44281) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
4429C compilers that require this support.
44302) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
4431ACPI_DEBUG is already used by many of the various hosts.
4432
4433Updated all ACPICA copyrights and signons to 2013. Added the 2013
4434copyright to all module headers and signons, including the standard Linux
4435header. This affects virtually every file in the ACPICA core subsystem,
4436iASL compiler, all ACPICA utilities, and the test suites.
4437
4438Example Code and Data Size: These are the sizes for the OS-independent
4439acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4440debug version of the code includes the debug output trace mechanism and
4441has a much larger code and data size.
4442
4443  Previous Release:
4444    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
4445    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
4446  Current Release:
4447    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
4448    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
4449
4450
44512) iASL Compiler/Disassembler and Tools:
4452
4453Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
4454prevent a possible fault on some hosts. Some C libraries modify the arg
4455pointer parameter to vfprintf making it difficult to call it twice in the
4456AcpiOsVprintf function. Use a local buffer to workaround this issue. This
4457does not affect the Windows OSL since the Win C library does not modify
4458the arg pointer. Chao Guan, Bob Moore.
4459
4460iASL: Fixed a possible infinite loop when the maximum error count is
4461reached. If an output file other than the .AML file is specified (such as
4462a listing file), and the maximum number of errors is reached, do not
4463attempt to flush data to the output file(s) as the compiler is aborting.
4464This can cause an infinite loop as the max error count code essentially
4465keeps calling itself.
4466
4467iASL/Disassembler: Added an option (-in) to ignore NOOP
4468opcodes/operators.
4469Implemented for both the compiler and the disassembler. Often, the NOOP
4470opcode is used as padding for packages that are changed dynamically by
4471the
4472BIOS. When disassembled and recompiled, these NOOPs will cause syntax
4473errors. This option causes the disassembler to ignore all NOOP opcodes
4474(0xA3), and it also causes the compiler to ignore all ASL source code
4475NOOP
4476statements as well.
4477
4478Debugger: Enhanced the Sleep command to execute all sleep states. This
4479change allows Sleep to be invoked with no arguments and causes the
4480debugger to execute all of the sleep states, 0-5, automatically.
4481
4482----------------------------------------
448320 December 2012. Summary of changes for version 20121220:
4484
44851) ACPICA Kernel-resident Subsystem:
4486
4487Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
4488alternate entry point for AcpiWalkResources and improves the usability of
4489the resource manager by accepting as input a buffer containing the output
4490of either a _CRS, _PRS, or _AEI method. The key functionality is that the
4491input buffer is not deleted by this interface so that it can be used by
4492the host later. See the ACPICA reference for details.
4493
4494Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
4495(DSDT version < 2). The constant will be truncated and this warning
4496reflects that behavior.
4497
4498Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
4499ExtendedInterrupt, and GpioInt descriptors. This change adds support to
4500both get and set the new wake bit in these descriptors, separately from
4501the existing share bit. Reported by Aaron Lu.
4502
4503Interpreter: Fix Store() when an implicit conversion is not possible. For
4504example, in the cases such as a store of a string to an existing package
4505object, implement the store as a CopyObject(). This is a small departure
4506from the ACPI specification which states that the control method should
4507be
4508aborted in this case. However, the ASLTS suite depends on this behavior.
4509
4510Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
4511macros: check if debug output is currently enabled as soon as possible to
4512minimize performance impact if debug is in fact not enabled.
4513
4514Source code restructuring: Cleanup to improve modularity. The following
4515new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
4516psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
4517Associated makefiles and project files have been updated.
4518
4519Changed an exception code for LoadTable operator. For the case where one
4520of the input strings is too long, change the returned exception code from
4521AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
4522
4523Fixed a possible memory leak in dispatcher error path. On error, delete
4524the mutex object created during method mutex creation. Reported by
4525tim.gardner@canonical.com.
4526
4527Example Code and Data Size: These are the sizes for the OS-independent
4528acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4529debug version of the code includes the debug output trace mechanism and
4530has a much larger code and data size.
4531
4532  Previous Release:
4533    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
4534    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4535  Current Release:
4536    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
4537    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
4538
4539
45402) iASL Compiler/Disassembler and Tools:
4541
4542iASL: Disallow a method call as argument to the ObjectType ASL operator.
4543This change tracks an errata to the ACPI 5.0 document. The AML grammar
4544will not allow the interpreter to differentiate between a method and a
4545method invocation when these are used as an argument to the ObjectType
4546operator. The ACPI specification change is to disallow a method
4547invocation
4548(UserTerm) for the ObjectType operator.
4549
4550Finish support for the TPM2 and CSRT tables in the headers, table
4551compiler, and disassembler.
4552
4553Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
4554always expires immediately if the semaphore is not available. The
4555original
4556code was using a relative-time timeout, but sem_timedwait requires the
4557use
4558of an absolute time.
4559
4560iASL: Added a remark if the Timer() operator is used within a 32-bit
4561table. This operator returns a 64-bit time value that will be truncated
4562within a 32-bit table.
4563
4564iASL Source code restructuring: Cleanup to improve modularity. The
4565following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
4566aslmethod.c, and aslfileio.c. Associated makefiles and project files have
4567been updated.
4568
4569
4570----------------------------------------
457114 November 2012. Summary of changes for version 20121114:
4572
45731) ACPICA Kernel-resident Subsystem:
4574
4575Implemented a performance enhancement for ACPI/AML Package objects. This
4576change greatly increases the performance of Package objects within the
4577interpreter. It changes the processing of reference counts for packages
4578by
4579optimizing for the most common case where the package sub-objects are
4580either Integers, Strings, or Buffers. Increases the overall performance
4581of
4582the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
45832X.)
4584Chao Guan. ACPICA BZ 943.
4585
4586Implemented and deployed common macros to extract flag bits from resource
4587descriptors. Improves readability and maintainability of the code. Fixes
4588a
4589problem with the UART serial bus descriptor for the number of data bits
4590flags (was incorrectly 2 bits, should be 3).
4591
4592Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
4593of the macros and changed the SETx macros to the style of (destination,
4594source). Also added ACPI_CASTx companion macros. Lv Zheng.
4595
4596Example Code and Data Size: These are the sizes for the OS-independent
4597acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4598debug version of the code includes the debug output trace mechanism and
4599has a much larger code and data size.
4600
4601  Previous Release:
4602    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
4603    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4604  Current Release:
4605    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
4606    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4607
4608
46092) iASL Compiler/Disassembler and Tools:
4610
4611Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
4612adds the ShareAndWake and ExclusiveAndWake flags which were added to the
4613Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
4614
4615Disassembler: Fixed a problem with external declaration generation. Fixes
4616a problem where an incorrect pathname could be generated for an external
4617declaration if the original reference to the object includes leading
4618carats (^). ACPICA BZ 984.
4619
4620Debugger: Completed a major update for the Disassemble<method> command.
4621This command was out-of-date and did not properly disassemble control
4622methods that had any reasonable complexity. This fix brings the command
4623up
4624to the same level as the rest of the disassembler. Adds one new file,
4625dmdeferred.c, which is existing code that is now common with the main
4626disassembler and the debugger disassemble command. ACPICA MZ 978.
4627
4628iASL: Moved the parser entry prototype to avoid a duplicate declaration.
4629Newer versions of Bison emit this prototype, so moved the prototype out
4630of
4631the iASL header to where it is actually used in order to avoid a
4632duplicate
4633declaration.
4634
4635iASL/Tools: Standardized use of the stream I/O functions:
4636  1) Ensure check for I/O error after every fopen/fread/fwrite
4637  2) Ensure proper order of size/count arguments for fread/fwrite
4638  3) Use test of (Actual != Requested) after all fwrite, and most fread
4639  4) Standardize I/O error messages
4640Improves reliability and maintainability of the code. Bob Moore, Lv
4641Zheng.
4642ACPICA BZ 981.
4643
4644Disassembler: Prevent duplicate External() statements. During generation
4645of external statements, detect similar pathnames that are actually
4646duplicates such as these:
4647  External (\ABCD)
4648  External (ABCD)
4649Remove all leading '\' characters from pathnames during the external
4650statement generation so that duplicates will be detected and tossed.
4651ACPICA BZ 985.
4652
4653Tools: Replace low-level I/O with stream I/O functions. Replace
4654open/read/write/close with the stream I/O equivalents
4655fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
4656Moore.
4657
4658AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
4659name header so that AcpiXtract recognizes the output file/table.
4660
4661iASL: Remove obsolete -2 option flag. Originally intended to force the
4662compiler/disassembler into an ACPI 2.0 mode, this was never implemented
4663and the entire concept is now obsolete.
4664
4665----------------------------------------
466618 October 2012. Summary of changes for version 20121018:
4667
4668
46691) ACPICA Kernel-resident Subsystem:
4670
4671Updated support for the ACPI 5.0 MPST table. Fixes some problems
4672introduced by late changes to the table as it was added to the ACPI 5.0
4673specification. Includes header, disassembler, and data table compiler
4674support as well as a new version of the MPST template.
4675
4676AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
46775.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
4678methods: _HID, _CID, and _UID.
4679
4680Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
4681ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
4682name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
4683names for their various drivers. Affects the AcpiGetObjectInfo external
4684interface, and other internal interfaces as well.
4685
4686Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
4687This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
4688on machines that support non-aligned transfers. Optimizes for this case
4689rather than using a strncpy. With assistance from Zheng Lv.
4690
4691Resource Manager: Small fix for buffer size calculation. Fixed a one byte
4692error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
4693
4694Added a new debug print message for AML mutex objects that are force-
4695released. At control method termination, any currently acquired mutex
4696objects are force-released. Adds a new debug-only message for each one
4697that is released.
4698
4699Audited/updated all ACPICA return macros and the function debug depth
4700counter: 1) Ensure that all functions that use the various TRACE macros
4701also use the appropriate ACPICA return macros. 2) Ensure that all normal
4702return statements surround the return expression (value) with parens to
4703ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
4704Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
4705
4706Global source code changes/maintenance: All extra lines at the start and
4707end of each source file have been removed for consistency. Also, within
4708comments, all new sentences start with a single space instead of a double
4709space, again for consistency across the code base.
4710
4711Example Code and Data Size: These are the sizes for the OS-independent
4712acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4713debug version of the code includes the debug output trace mechanism and
4714has a much larger code and data size.
4715
4716  Previous Release:
4717    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
4718    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
4719  Current Release:
4720    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
4721    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
4722
4723
47242) iASL Compiler/Disassembler and Tools:
4725
4726AcpiExec: Improved the algorithm used for memory leak/corruption
4727detection. Added some intelligence to the code that maintains the global
4728list of allocated memory. The list is now ordered by allocated memory
4729address, significantly improving performance. When running AcpiExec on
4730the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
4731on the platform and/or the environment. Note, this performance
4732enhancement affects the AcpiExec utility only, not the kernel-resident
4733ACPICA code.
4734
4735Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
4736the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
4737incorrect table offset reported for invalid opcodes. Report the original
473832-bit value for bad ACPI_NAMEs (as well as the repaired name.)
4739
4740Disassembler: Enhanced the -vt option to emit the binary table data in
4741hex format to assist with debugging.
4742
4743Fixed a potential filename buffer overflow in osunixdir.c. Increased the
4744size of file structure. Colin Ian King.
4745
4746----------------------------------------
474713 September 2012. Summary of changes for version 20120913:
4748
4749
47501) ACPICA Kernel-resident Subsystem:
4751
4752ACPI 5.0: Added two new notify types for the Hardware Error Notification
4753Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
4754and
4755MCE(6).
4756
4757Table Manager: Merged/removed duplicate code in the root table resize
4758functions. One function is external, the other is internal. Lv Zheng,
4759ACPICA
4760BZ 846.
4761
4762Makefiles: Completely removed the obsolete "Linux" makefiles under
4763acpica/generate/linux. These makefiles are obsolete and have been
4764replaced
4765by
4766the generic unix makefiles under acpica/generate/unix.
4767
4768Makefiles: Ensure that binary files always copied properly. Minor rule
4769change
4770to ensure that the final binary output files are always copied up to the
4771appropriate binary directory (bin32 or bin64.)
4772
4773Example Code and Data Size: These are the sizes for the OS-independent
4774acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4775debug
4776version of the code includes the debug output trace mechanism and has a
4777much
4778larger code and data size.
4779
4780  Previous Release:
4781    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
4782    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
4783  Current Release:
4784    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
4785    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
4786
4787
47882) iASL Compiler/Disassembler and Tools:
4789
4790Disassembler: Fixed a possible fault during the disassembly of resource
4791descriptors when a second parse is required because of the invocation of
4792external control methods within the table. With assistance from
4793adq@lidskialf.net. ACPICA BZ 976.
4794
4795iASL: Fixed a namepath optimization problem. An error can occur if the
4796parse
4797node that contains the namepath to be optimized does not have a parent
4798node
4799that is a named object. This change fixes the problem.
4800
4801iASL: Fixed a regression where the AML file is not deleted on errors. The
4802AML
4803output file should be deleted if there are any errors during the
4804compiler.
4805The
4806only exception is if the -f (force output) option is used. ACPICA BZ 974.
4807
4808iASL: Added a feature to automatically increase internal line buffer
4809sizes.
4810Via realloc(), automatically increase the internal line buffer sizes as
4811necessary to support very long source code lines. The current version of
4812the
4813preprocessor requires a buffer long enough to contain full source code
4814lines.
4815This change increases the line buffer(s) if the input lines go beyond the
4816current buffer size. This eliminates errors that occurred when a source
4817code
4818line was longer than the buffer.
4819
4820iASL: Fixed a problem with constant folding in method declarations. The
4821SyncLevel term is a ByteConstExpr, and incorrect code would be generated
4822if a
4823Type3 opcode was used.
4824
4825Debugger: Improved command help support. For incorrect argument count,
4826display
4827full help for the command. For help command itself, allow an argument to
4828specify a command.
4829
4830Test Suites: Several bug fixes for the ASLTS suite reduces the number of
4831errors during execution of the suite. Guan Chao.
4832
4833----------------------------------------
483416 August 2012. Summary of changes for version 20120816:
4835
4836
48371) ACPICA Kernel-resident Subsystem:
4838
4839Removed all use of the deprecated _GTS and _BFS predefined methods. The
4840_GTS
4841(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
4842deprecated and will probably be removed from the ACPI specification.
4843Windows
4844does not invoke them, and reportedly never will. The final nail in the
4845coffin
4846is that the ACPI specification states that these methods must be run with
4847interrupts off, which is not going to happen in a kernel interpreter.
4848Note:
4849Linux has removed all use of the methods also. It was discovered that
4850invoking these functions caused failures on some machines, probably
4851because
4852they were never tested since Windows does not call them. Affects two
4853external
4854interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
4855ACPICA BZ 969.
4856
4857Implemented support for complex bit-packed buffers returned from the _PLD
4858(Physical Location of Device) predefined method. Adds a new external
4859interface, AcpiDecodePldBuffer that parses the buffer into a more usable
4860C
4861structure. Note: C Bitfields cannot be used for this type of predefined
4862structure since the memory layout of individual bitfields is not defined
4863by
4864the C language. In addition, there are endian concerns where a compiler
4865will
4866change the bitfield ordering based on the machine type. The new ACPICA
4867interface eliminates these issues, and should be called after _PLD is
4868executed. ACPICA BZ 954.
4869
4870Implemented a change to allow a scope change to root (via "Scope (\)")
4871during
4872execution of module-level ASL code (code that is executed at table load
4873time.) Lin Ming.
4874
4875Added the Windows8/Server2012 string for the _OSI method. This change
4876adds
4877a
4878new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
48792012.
4880
4881Added header support for the new ACPI tables DBG2 (Debug Port Table Type
48822)
4883and CSRT (Core System Resource Table).
4884
4885Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
4886names. This simplifies access to the buffers returned by these predefined
4887names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
4888
4889GPE support: Removed an extraneous parameter from the various low-level
4890internal GPE functions. Tang Feng.
4891
4892Removed the linux makefiles from the unix packages. The generate/linux
4893makefiles are obsolete and have been removed from the unix tarball
4894release
4895packages. The replacement makefiles are under generate/unix, and there is
4896a
4897top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
4898
4899Updates for Unix makefiles:
49001) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
49012) Update linker flags (move to end of command line) for AcpiExec
4902utility.
4903Guan Chao.
4904
4905Split ACPICA initialization functions to new file, utxfinit.c. Split from
4906utxface.c to improve modularity and reduce file size.
4907
4908Example Code and Data Size: These are the sizes for the OS-independent
4909acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4910debug version of the code includes the debug output trace mechanism and
4911has a
4912much larger code and data size.
4913
4914  Previous Release:
4915    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
4916    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
4917  Current Release:
4918    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
4919    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
4920
4921
49222) iASL Compiler/Disassembler and Tools:
4923
4924iASL: Fixed a problem with constant folding for fixed-length constant
4925expressions. The constant-folding code was not being invoked for constant
4926expressions that allow the use of type 3/4/5 opcodes to generate
4927constants
4928for expressions such as ByteConstExpr, WordConstExpr, etc. This could
4929result
4930in the generation of invalid AML bytecode. ACPICA BZ 970.
4931
4932iASL: Fixed a generation issue on newer versions of Bison. Newer versions
4933apparently automatically emit some of the necessary externals. This
4934change
4935handles these versions in order to eliminate generation warnings.
4936
4937Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
4938
4939Disassembler: Add support to decode _PLD buffers. The decoded buffer
4940appears
4941within comments in the output file.
4942
4943Debugger: Fixed a regression with the "Threads" command where
4944AE_BAD_PARAMETER was always returned.
4945
4946----------------------------------------
494711 July 2012. Summary of changes for version 20120711:
4948
49491) ACPICA Kernel-resident Subsystem:
4950
4951Fixed a possible fault in the return package object repair code. Fixes a
4952problem that can occur when a lone package object is wrapped with an
4953outer
4954package object in order to force conformance to the ACPI specification.
4955Can
4956affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
4957_DLM,
4958_CSD, _PSD, _TSD.
4959
4960Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
4961PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
4962ARB_DIS bit must be implemented in the host-dependent C3 processor power
4963state
4964support. Note, ARB_DIS is obsolete and only applies to older chipsets,
4965both
4966Intel and other vendors. (for Intel: ICH4-M and earlier)
4967
4968This change removes the code to disable/enable bus master arbitration
4969during
4970suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
4971causes
4972resume problems on some machines. The change has been in use for over
4973seven
4974years within Linux.
4975
4976Implemented two new external interfaces to support host-directed dynamic
4977ACPI
4978table load and unload. They are intended to simplify the host
4979implementation
4980of hot-plug support:
4981  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
4982  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
4983table.
4984See the ACPICA reference for additional details. Adds one new file,
4985components/tables/tbxfload.c
4986
4987Implemented and deployed two new interfaces for errors and warnings that
4988are
4989known to be caused by BIOS/firmware issues:
4990  AcpiBiosError: Prints "ACPI Firmware Error" message.
4991  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
4992Deployed these new interfaces in the ACPICA Table Manager code for ACPI
4993table
4994and FADT errors. Additional deployment to be completed as appropriate in
4995the
4996future. The associated conditional macros are ACPI_BIOS_ERROR and
4997ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
4998ACPICA
4999BZ
5000843.
5001
5002Implicit notify support: ensure that no memory allocation occurs within a
5003critical region. This fix moves a memory allocation outside of the time
5004that a
5005spinlock is held. Fixes issues on systems that do not allow this
5006behavior.
5007Jung-uk Kim.
5008
5009Split exception code utilities and tables into a new file,
5010utilities/utexcep.c
5011
5012Example Code and Data Size: These are the sizes for the OS-independent
5013acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5014debug
5015version of the code includes the debug output trace mechanism and has a
5016much
5017larger code and data size.
5018
5019  Previous Release:
5020    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
5021    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
5022  Current Release:
5023    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
5024    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
5025
5026
50272) iASL Compiler/Disassembler and Tools:
5028
5029iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
5030of
50310. Jung-uk Kim.
5032
5033Debugger: Enhanced the "tables" command to emit additional information
5034about
5035the current set of ACPI tables, including the owner ID and flags decode.
5036
5037Debugger: Reimplemented the "unload" command to use the new
5038AcpiUnloadParentTable external interface. This command was disable
5039previously
5040due to need for an unload interface.
5041
5042AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
5043option
5044will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
5045
5046----------------------------------------
504720 June 2012. Summary of changes for version 20120620:
5048
5049
50501) ACPICA Kernel-resident Subsystem:
5051
5052Implemented support to expand the "implicit notify" feature to allow
5053multiple
5054devices to be notified by a single GPE. This feature automatically
5055generates a
5056runtime device notification in the absence of a BIOS-provided GPE control
5057method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
5058notify is
5059provided by ACPICA for Windows compatibility, and is a workaround for
5060BIOS
5061AML
5062code errors. See the description of the AcpiSetupGpeForWake interface in
5063the
5064APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
5065
5066Changed some comments and internal function names to simplify and ensure
5067correctness of the Linux code translation. No functional changes.
5068
5069Example Code and Data Size: These are the sizes for the OS-independent
5070acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5071debug
5072version of the code includes the debug output trace mechanism and has a
5073much
5074larger code and data size.
5075
5076  Previous Release:
5077    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
5078    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
5079  Current Release:
5080    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
5081    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
5082
5083
50842) iASL Compiler/Disassembler and Tools:
5085
5086Disassembler: Added support to emit short, commented descriptions for the
5087ACPI
5088predefined names in order to improve the readability of the disassembled
5089output. ACPICA BZ 959. Changes include:
5090  1) Emit descriptions for all standard predefined names (_INI, _STA,
5091_PRW,
5092etc.)
5093  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
5094  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
5095etc.)
5096
5097AcpiSrc: Fixed several long-standing Linux code translation issues.
5098Argument
5099descriptions in function headers are now translated properly to lower
5100case
5101and
5102underscores. ACPICA BZ 961. Also fixes translation problems such as
5103these:
5104(old -> new)
5105  i_aSL -> iASL
5106  00-7_f -> 00-7F
5107  16_k -> 16K
5108  local_fADT -> local_FADT
5109  execute_oSI -> execute_OSI
5110
5111iASL: Fixed a problem where null bytes were inadvertently emitted into
5112some
5113listing files.
5114
5115iASL: Added the existing debug options to the standard help screen. There
5116are
5117no longer two different help screens. ACPICA BZ 957.
5118
5119AcpiHelp: Fixed some typos in the various predefined name descriptions.
5120Also
5121expand some of the descriptions where appropriate.
5122
5123iASL: Fixed the -ot option (display compile times/statistics). Was not
5124working
5125properly for standard output; only worked for the debug file case.
5126
5127----------------------------------------
512818 May 2012. Summary of changes for version 20120518:
5129
5130
51311) ACPICA Core Subsystem:
5132
5133Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
5134defined
5135to block until asynchronous events such as notifies and GPEs have
5136completed.
5137Within ACPICA, it is only called before a notify or GPE handler is
5138removed/uninstalled. It also may be useful for the host OS within related
5139drivers such as the Embedded Controller driver. See the ACPICA reference
5140for
5141additional information. ACPICA BZ 868.
5142
5143ACPI Tables: Added a new error message for a possible overflow failure
5144during
5145the conversion of FADT 32-bit legacy register addresses to internal
5146common
514764-
5148bit GAS structure representation. The GAS has a one-byte "bit length"
5149field,
5150thus limiting the register length to 255 bits. ACPICA BZ 953.
5151
5152Example Code and Data Size: These are the sizes for the OS-independent
5153acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5154debug
5155version of the code includes the debug output trace mechanism and has a
5156much
5157larger code and data size.
5158
5159  Previous Release:
5160    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5161    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
5162  Current 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
5166
51672) iASL Compiler/Disassembler and Tools:
5168
5169iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
5170macro.
5171This keyword was added late in the ACPI 5.0 release cycle and was not
5172implemented until now.
5173
5174Disassembler: Added support for Operation Region externals. Adds missing
5175support for operation regions that are defined in another table, and
5176referenced locally via a Field or BankField ASL operator. Now generates
5177the
5178correct External statement.
5179
5180Disassembler: Several additional fixes for the External() statement
5181generation
5182related to some ASL operators. Also, order the External() statements
5183alphabetically in the disassembler output. Fixes the External()
5184generation
5185for
5186the Create* field, Alias, and Scope operators:
5187 1) Create* buffer field operators - fix type mismatch warning on
5188disassembly
5189 2) Alias - implement missing External support
5190 3) Scope - fix to make sure all necessary externals are emitted.
5191
5192iASL: Improved pathname support. For include files, merge the prefix
5193pathname
5194with the file pathname and eliminate unnecessary components. Convert
5195backslashes in all pathnames to forward slashes, for readability. Include
5196file
5197pathname changes affect both #include and Include() type operators.
5198
5199iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
5200end
5201of a valid line by inserting a newline and then returning the EOF during
5202the
5203next call to GetNextLine. Prevents the line from being ignored due to EOF
5204condition.
5205
5206iASL: Implemented some changes to enhance the IDE support (-vi option.)
5207Error
5208and Warning messages are now correctly recognized for both the source
5209code
5210browser and the global error and warning counts.
5211
5212----------------------------------------
521320 April 2012. Summary of changes for version 20120420:
5214
5215
52161) ACPICA Core Subsystem:
5217
5218Implemented support for multiple notify handlers. This change adds
5219support
5220to
5221allow multiple system and device notify handlers on Device, Thermal Zone,
5222and
5223Processor objects. This can simplify the host OS notification
5224implementation.
5225Also re-worked and restructured the entire notify support code to
5226simplify
5227handler installation, handler removal, notify event queuing, and notify
5228dispatch to handler(s). Note: there can still only be two global notify
5229handlers - one for system notifies and one for device notifies. There are
5230no
5231changes to the existing handler install/remove interfaces. Lin Ming, Bob
5232Moore, Rafael Wysocki.
5233
5234Fixed a regression in the package repair code where the object reference
5235count was calculated incorrectly. Regression was introduced in the commit
5236"Support to add Package wrappers".
5237
5238Fixed a couple possible memory leaks in the AML parser, in the error
5239recovery
5240path. Jesper Juhl, Lin Ming.
5241
5242Example Code and Data Size: These are the sizes for the OS-independent
5243acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5244debug version of the code includes the debug output trace mechanism and
5245has a
5246much larger code and data size.
5247
5248  Previous Release:
5249    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5250    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5251  Current Release:
5252    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5253    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
5254
5255
52562) iASL Compiler/Disassembler and Tools:
5257
5258iASL: Fixed a problem with the resource descriptor support where the
5259length
5260of the StartDependentFn and StartDependentFnNoPrio descriptors were not
5261included in cumulative descriptor offset, resulting in incorrect values
5262for
5263resource tags within resource descriptors appearing after a
5264StartDependent*
5265descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
5266
5267iASL and Preprocessor: Implemented full support for the #line directive
5268to
5269correctly track original source file line numbers through the .i
5270preprocessor
5271output file - for error and warning messages.
5272
5273iASL: Expand the allowable byte constants for address space IDs.
5274Previously,
5275the allowable range was 0x80-0xFF (user-defined spaces), now the range is
52760x0A-0xFF to allow for custom and new IDs without changing the compiler.
5277
5278iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
5279
5280iASL: Add option to completely disable the preprocessor (-Pn).
5281
5282iASL: Now emit all error/warning messages to standard error (stderr) by
5283default (instead of the previous stdout).
5284
5285ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
5286Update
5287for resource descriptor offset fix above. Update/cleanup error output
5288routines. Enable and send iASL errors/warnings to an error logfile
5289(error.txt). Send all other iASL output to a logfile (compiler.txt).
5290Fixed
5291several extraneous "unrecognized operator" messages.
5292
5293----------------------------------------
529420 March 2012. Summary of changes for version 20120320:
5295
5296
52971) ACPICA Core Subsystem:
5298
5299Enhanced the sleep/wake interfaces to optionally execute the _GTS method
5300(Going To Sleep) and the _BFS method (Back From Sleep). Windows
5301apparently
5302does not execute these methods, and therefore these methods are often
5303untested. It has been seen on some systems where the execution of these
5304methods causes errors and also prevents the machine from entering S5. It
5305is
5306therefore suggested that host operating systems do not execute these
5307methods
5308by default. In the future, perhaps these methods can be optionally
5309executed
5310based on the age of the system and/or what is the newest version of
5311Windows
5312that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
5313and
5314AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
5315Ming.
5316
5317Fixed a problem where the length of the local/common FADT was set too
5318early.
5319The local FADT table length cannot be set to the common length until the
5320original length has been examined. There is code that checks the table
5321length
5322and sets various fields appropriately. This can affect older machines
5323with
5324early FADT versions. For example, this can cause inadvertent writes to
5325the
5326CST_CNT register. Julian Anastasov.
5327
5328Fixed a mapping issue related to a physical table override. Use the
5329deferred
5330mapping mechanism for tables loaded via the physical override OSL
5331interface.
5332This allows for early mapping before the virtual memory manager is
5333available.
5334Thomas Renninger, Bob Moore.
5335
5336Enhanced the automatic return-object repair code: Repair a common problem
5337with
5338predefined methods that are defined to return a variable-length Package
5339of
5340sub-objects. If there is only one sub-object, some BIOS ASL code
5341mistakenly
5342simply returns the single object instead of a Package with one sub-
5343object.
5344This new support will repair this error by wrapping a Package object
5345around
5346the original object, creating the correct and expected Package with one
5347sub-
5348object. Names that can be repaired in this manner include: _ALR, _CSD,
5349_HPX,
5350_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
5351939.
5352
5353Changed the exception code returned for invalid ACPI paths passed as
5354parameters to external interfaces such as AcpiEvaluateObject. Was
5355AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
5356
5357Example Code and Data Size: These are the sizes for the OS-independent
5358acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5359debug
5360version of the code includes the debug output trace mechanism and has a
5361much
5362larger code and data size.
5363
5364  Previous Release:
5365    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
5366    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5367  Current Release:
5368    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
5369    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5370
5371
53722) iASL Compiler/Disassembler and Tools:
5373
5374iASL: Added the infrastructure and initial implementation of a integrated
5375C-
5376like preprocessor. This will simplify BIOS development process by
5377eliminating
5378the need for a separate preprocessing step during builds. On Windows, it
5379also
5380eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
5381features including full #define() macro support are still under
5382development.
5383These preprocessor directives are supported:
5384    #define
5385    #elif
5386    #else
5387    #endif
5388    #error
5389    #if
5390    #ifdef
5391    #ifndef
5392    #include
5393    #pragma message
5394    #undef
5395    #warning
5396In addition, these new command line options are supported:
5397    -D <symbol> Define symbol for preprocessor use
5398    -li         Create preprocessed output file (*.i)
5399    -P          Preprocess only and create preprocessor output file (*.i)
5400
5401Table Compiler: Fixed a problem where the equals operator within an
5402expression
5403did not work properly.
5404
5405Updated iASL to use the current versions of Bison/Flex. Updated the
5406Windows
5407project file to invoke these tools from the standard location. ACPICA BZ
5408904.
5409Versions supported:
5410    Flex for Windows:  V2.5.4
5411    Bison for Windows: V2.4.1
5412
5413----------------------------------------
541415 February 2012. Summary of changes for version 20120215:
5415
5416
54171) ACPICA Core Subsystem:
5418
5419There have been some major changes to the sleep/wake support code, as
5420described below (a - e).
5421
5422a) The AcpiLeaveSleepState has been split into two interfaces, similar to
5423AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
5424AcpiLeaveSleepStatePrep. This allows the host to perform actions between
5425the
5426time the _BFS method is called and the _WAK method is called. NOTE: all
5427hosts
5428must update their wake/resume code or else sleep/wake will not work
5429properly.
5430Rafael Wysocki.
5431
5432b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
5433_WAK
5434method. Some machines require that the GPEs are enabled before the _WAK
5435method
5436is executed. Thomas Renninger.
5437
5438c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
5439bit.
5440Some BIOS code assumes that WAK_STS will be cleared on resume and use it
5441to
5442determine whether the system is rebooting or resuming. Matthew Garrett.
5443
5444d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
5445Sleep) to
5446match the ACPI specification requirement. Rafael Wysocki.
5447
5448e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
5449registers within the V5 FADT. This support adds two new files:
5450hardware/hwesleep.c implements the support for the new registers. Moved
5451all
5452sleep/wake external interfaces to hardware/hwxfsleep.c.
5453
5454
5455Added a new OSL interface for ACPI table overrides,
5456AcpiOsPhysicalTableOverride. This interface allows the host to override a
5457table via a physical address, instead of the logical address required by
5458AcpiOsTableOverride. This simplifies the host implementation. Initial
5459implementation by Thomas Renninger. The ACPICA implementation creates a
5460single
5461shared function for table overrides that attempts both a logical and a
5462physical override.
5463
5464Expanded the OSL memory read/write interfaces to 64-bit data
5465(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
5466transfer support for GAS register structures passed to AcpiRead and
5467AcpiWrite.
5468
5469Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
5470custom
5471build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
5472model.
5473See the ACPICA reference for details. ACPICA BZ 942. This option removes
5474about
547510% of the code and 5% of the static data, and the following hardware
5476ACPI
5477features become unavailable:
5478    PM Event and Control registers
5479    SCI interrupt (and handler)
5480    Fixed Events
5481    General Purpose Events (GPEs)
5482    Global Lock
5483    ACPI PM timer
5484    FACS table (Waking vectors and Global Lock)
5485
5486Updated the unix tarball directory structure to match the ACPICA git
5487source
5488tree. This ensures that the generic unix makefiles work properly (in
5489generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
5490867.
5491
5492Updated the return value of the _REV predefined method to integer value 5
5493to
5494reflect ACPI 5.0 support.
5495
5496Moved the external ACPI PM timer interface prototypes to the public
5497acpixf.h
5498file where they belong.
5499
5500Example Code and Data Size: These are the sizes for the OS-independent
5501acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5502debug
5503version of the code includes the debug output trace mechanism and has a
5504much
5505larger code and data size.
5506
5507  Previous Release:
5508    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
5509    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
5510  Current Release:
5511    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
5512    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
5513
5514
55152) iASL Compiler/Disassembler and Tools:
5516
5517Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
5518descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
5519incorrectly displayed.
5520
5521AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
5522specification.
5523
5524----------------------------------------
552511 January 2012. Summary of changes for version 20120111:
5526
5527
55281) ACPICA Core Subsystem:
5529
5530Implemented a new mechanism to allow host device drivers to check for
5531address
5532range conflicts with ACPI Operation Regions. Both SystemMemory and
5533SystemIO
5534address spaces are supported. A new external interface,
5535AcpiCheckAddressRange,
5536allows drivers to check an address range against the ACPI namespace. See
5537the
5538ACPICA reference for additional details. Adds one new file,
5539utilities/utaddress.c. Lin Ming, Bob Moore.
5540
5541Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
5542Control
5543and
5544Status registers, update the ACPI 5.0 flags, and update internal data
5545structures to handle an FADT larger than 256 bytes. The size of the ACPI
55465.0
5547FADT is 268 bytes.
5548
5549Updated all ACPICA copyrights and signons to 2012. Added the 2012
5550copyright to
5551all module headers and signons, including the standard Linux header. This
5552affects virtually every file in the ACPICA core subsystem, iASL compiler,
5553and
5554all ACPICA utilities.
5555
5556Example Code and Data Size: These are the sizes for the OS-independent
5557acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5558debug
5559version of the code includes the debug output trace mechanism and has a
5560much
5561larger code and data size.
5562
5563  Previous Release:
5564    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
5565    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
5566  Current Release:
5567    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
5568    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
5569
5570
55712) iASL Compiler/Disassembler and Tools:
5572
5573Disassembler: fixed a problem with the automatic resource tag generation
5574support. Fixes a problem where the resource tags are inadvertently not
5575constructed if the table being disassembled contains external references
5576to
5577control methods. Moved the actual construction of the tags to after the
5578final
5579namespace is constructed (after 2nd parse is invoked due to external
5580control
5581method references.) ACPICA BZ 941.
5582
5583Table Compiler: Make all "generic" operators caseless. These are the
5584operators
5585like UINT8, String, etc. Making these caseless improves ease-of-use.
5586ACPICA BZ
5587934.
5588
5589----------------------------------------
559023 November 2011. Summary of changes for version 20111123:
5591
55920) ACPI 5.0 Support:
5593
5594This release contains full support for the ACPI 5.0 specification, as
5595summarized below.
5596
5597Reduced Hardware Support:
5598-------------------------
5599
5600This support allows for ACPI systems without the usual ACPI hardware.
5601This
5602support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
5603will
5604not attempt to initialize or use any of the usual ACPI hardware. Note,
5605when
5606this flag is set, all of the following ACPI hardware is assumed to be not
5607present and is not initialized or accessed:
5608
5609    General Purpose Events (GPEs)
5610    Fixed Events (PM1a/PM1b and PM Control)
5611    Power Management Timer and Console Buttons (power/sleep)
5612    Real-time Clock Alarm
5613    Global Lock
5614    System Control Interrupt (SCI)
5615    The FACS is assumed to be non-existent
5616
5617ACPI Tables:
5618------------
5619
5620All new tables and updates to existing tables are fully supported in the
5621ACPICA headers (for use by device drivers), the disassembler, and the
5622iASL
5623Data Table Compiler. ACPI 5.0 defines these new tables:
5624
5625    BGRT        /* Boot Graphics Resource Table */
5626    DRTM        /* Dynamic Root of Trust for Measurement table */
5627    FPDT        /* Firmware Performance Data Table */
5628    GTDT        /* Generic Timer Description Table */
5629    MPST        /* Memory Power State Table */
5630    PCCT        /* Platform Communications Channel Table */
5631    PMTT        /* Platform Memory Topology Table */
5632    RASF        /* RAS Feature table */
5633
5634Operation Regions/SpaceIDs:
5635---------------------------
5636
5637All new operation regions are fully supported by the iASL compiler, the
5638disassembler, and the ACPICA runtime code (for dispatch to region
5639handlers.)
5640The new operation region Space IDs are:
5641
5642    GeneralPurposeIo
5643    GenericSerialBus
5644
5645Resource Descriptors:
5646---------------------
5647
5648All new ASL resource descriptors are fully supported by the iASL
5649compiler,
5650the
5651ASL/AML disassembler, and the ACPICA runtime Resource Manager code
5652(including
5653all new predefined resource tags). New descriptors are:
5654
5655    FixedDma
5656    GpioIo
5657    GpioInt
5658    I2cSerialBus
5659    SpiSerialBus
5660    UartSerialBus
5661
5662ASL/AML Operators, New and Modified:
5663------------------------------------
5664
5665One new operator is added, the Connection operator, which is used to
5666associate
5667a GeneralPurposeIo or GenericSerialBus resource descriptor with
5668individual
5669field objects within an operation region. Several new protocols are
5670associated
5671with the AccessAs operator. All are fully supported by the iASL compiler,
5672disassembler, and runtime ACPICA AML interpreter:
5673
5674    Connection                      // Declare Field Connection
5675attributes
5676    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
5677    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
5678Protocol
5679    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
5680    RawDataBuffer                       // Data type for Vendor Data
5681fields
5682
5683Predefined ASL/AML Objects:
5684---------------------------
5685
5686All new predefined objects/control-methods are supported by the iASL
5687compiler
5688and the ACPICA runtime validation/repair (arguments and return values.)
5689New
5690predefined names include the following:
5691
5692Standard Predefined Names (Objects or Control Methods):
5693    _AEI, _CLS, _CPC, _CWS, _DEP,
5694    _DLM, _EVT, _GCP, _CRT, _GWS,
5695    _HRV, _PRE, _PSE, _SRT, _SUB.
5696
5697Resource Tags (Names used to access individual fields within resource
5698descriptors):
5699    _DBT, _DPL, _DRS, _END, _FLC,
5700    _IOR, _LIN, _MOD, _PAR, _PHA,
5701    _PIN, _PPI, _POL, _RXL, _SLV,
5702    _SPE, _STB, _TXL, _VEN.
5703
5704ACPICA External Interfaces:
5705---------------------------
5706
5707Several new interfaces have been defined for use by ACPI-related device
5708drivers and other host OS services:
5709
5710AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
5711to
5712acquire and release AML mutexes that are defined in the DSDT/SSDT tables
5713provided by the BIOS. They are intended to be used in conjunction with
5714the
5715ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
5716mutual exclusion with the AML code/interpreter.
5717
5718AcpiGetEventResources: Returns the (formatted) resource descriptors as
5719defined
5720by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
5721provides
5722resource descriptors associated with hardware-reduced platform events,
5723similar
5724to the AcpiGetCurrentResources interface.
5725
5726Operation Region Handlers: For General Purpose IO and Generic Serial Bus
5727operation regions, information about the Connection() object and any
5728optional
5729length information is passed to the region handler within the Context
5730parameter.
5731
5732AcpiBufferToResource: This interface converts a raw AML buffer containing
5733a
5734resource template or resource descriptor to the ACPI_RESOURCE internal
5735format
5736suitable for use by device drivers. Can be used by an operation region
5737handler
5738to convert the Connection() buffer object into a ACPI_RESOURCE.
5739
5740Miscellaneous/Tools/TestSuites:
5741-------------------------------
5742
5743Support for extended _HID names (Four alpha characters instead of three).
5744Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
5745Support for ACPI 5.0 features in the ASLTS test suite.
5746Fully updated documentation (ACPICA and iASL reference documents.)
5747
5748ACPI Table Definition Language:
5749-------------------------------
5750
5751Support for this language was implemented and released as a subsystem of
5752the
5753iASL compiler in 2010. (See the iASL compiler User Guide.)
5754
5755
5756Non-ACPI 5.0 changes for this release:
5757--------------------------------------
5758
57591) ACPICA Core Subsystem:
5760
5761Fix a problem with operation region declarations where a failure can
5762occur
5763if
5764the region name and an argument that evaluates to an object (such as the
5765region address) are in different namespace scopes. Lin Ming, ACPICA BZ
5766937.
5767
5768Do not abort an ACPI table load if an invalid space ID is found within.
5769This
5770will be caught later if the offending method is executed. ACPICA BZ 925.
5771
5772Fixed an issue with the FFixedHW space ID where the ID was not always
5773recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
5774
5775Fixed a problem with the 32-bit generation of the unix-specific OSL
5776(osunixxf.c). Lin Ming, ACPICA BZ 936.
5777
5778Several changes made to enable generation with the GCC 4.6 compiler.
5779ACPICA BZ
5780935.
5781
5782New error messages: Unsupported I/O requests (not 8/16/32 bit), and
5783Index/Bank
5784field registers out-of-range.
5785
57862) iASL Compiler/Disassembler and Tools:
5787
5788iASL: Implemented the __PATH__ operator, which returns the full pathname
5789of
5790the current source file.
5791
5792AcpiHelp: Automatically display expanded keyword information for all ASL
5793operators.
5794
5795Debugger: Add "Template" command to disassemble/dump resource template
5796buffers.
5797
5798Added a new master script to generate and execute the ASLTS test suite.
5799Automatically handles 32- and 64-bit generation. See tests/aslts.sh
5800
5801iASL: Fix problem with listing generation during processing of the
5802Switch()
5803operator where AML listing was disabled until the entire Switch block was
5804completed.
5805
5806iASL: Improve support for semicolon statement terminators. Fix "invalid
5807character" message for some cases when the semicolon is used. Semicolons
5808are
5809now allowed after every <Term> grammar element. ACPICA BZ 927.
5810
5811iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
5812923.
5813
5814Disassembler: Fix problem with disassembly of the DataTableRegion
5815operator
5816where an inadvertent "Unhandled deferred opcode" message could be
5817generated.
5818
58193) Example Code and Data Size
5820
5821These are the sizes for the OS-independent acpica.lib produced by the
5822Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
5823includes the debug output trace mechanism and has a much larger code and
5824data
5825size.
5826
5827  Previous Release:
5828    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
5829    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
5830  Current Release:
5831    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
5832    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
5833
5834----------------------------------------
583522 September 2011. Summary of changes for version 20110922:
5836
58370) ACPI 5.0 News:
5838
5839Support for ACPI 5.0 in ACPICA has been underway for several months and
5840will
5841be released at the same time that ACPI 5.0 is officially released.
5842
5843The ACPI 5.0 specification is on track for release in the next few
5844months.
5845
58461) ACPICA Core Subsystem:
5847
5848Fixed a problem where the maximum sleep time for the Sleep() operator was
5849intended to be limited to two seconds, but was inadvertently limited to
585020
5851seconds instead.
5852
5853Linux and Unix makefiles: Added header file dependencies to ensure
5854correct
5855generation of ACPICA core code and utilities. Also simplified the
5856makefiles
5857considerably through the use of the vpath variable to specify search
5858paths.
5859ACPICA BZ 924.
5860
58612) iASL Compiler/Disassembler and Tools:
5862
5863iASL: Implemented support to check the access length for all fields
5864created to
5865access named Resource Descriptor fields. For example, if a resource field
5866is
5867defined to be two bits, a warning is issued if a CreateXxxxField() is
5868used
5869with an incorrect bit length. This is implemented for all current
5870resource
5871descriptor names. ACPICA BZ 930.
5872
5873Disassembler: Fixed a byte ordering problem with the output of 24-bit and
587456-
5875bit integers.
5876
5877iASL: Fixed a couple of issues associated with variable-length package
5878objects. 1) properly handle constants like One, Ones, Zero -- do not make
5879a
5880VAR_PACKAGE when these are used as a package length. 2) Allow the
5881VAR_PACKAGE
5882opcode (in addition to PACKAGE) when validating object types for
5883predefined
5884names.
5885
5886iASL: Emit statistics for all output files (instead of just the ASL input
5887and
5888AML output). Includes listings, hex files, etc.
5889
5890iASL: Added -G option to the table compiler to allow the compilation of
5891custom
5892ACPI tables. The only part of a table that is required is the standard
589336-
5894byte
5895ACPI header.
5896
5897AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
5898headers),
5899which also adds correct 64-bit support. Also, now all output filenames
5900are
5901completely lower case.
5902
5903AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
5904loading table files. A warning is issued for any such tables. The only
5905exception is an FADT. This also fixes a possible fault when attempting to
5906load
5907non-AML tables. ACPICA BZ 932.
5908
5909AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
5910a
5911missing table terminator could cause a fault when using the -p option.
5912
5913AcpiSrc: Fixed a possible divide-by-zero fault when generating file
5914statistics.
5915
59163) Example Code and Data Size
5917
5918These are the sizes for the OS-independent acpica.lib produced by the
5919Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
5920includes the debug output trace mechanism and has a much larger code and
5921data
5922size.
5923
5924  Previous Release (VC 9.0):
5925    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
5926    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
5927  Current Release (VC 9.0):
5928    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
5929    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
5930
5931
5932----------------------------------------
593323 June 2011. Summary of changes for version 20110623:
5934
59351) ACPI CA Core Subsystem:
5936
5937Updated the predefined name repair mechanism to not attempt repair of a
5938_TSS
5939return object if a _PSS object is present. We can only sort the _TSS
5940return
5941package if there is no _PSS within the same scope. This is because if
5942_PSS
5943is
5944present, the ACPI specification dictates that the _TSS Power Dissipation
5945field
5946is to be ignored, and therefore some BIOSs leave garbage values in the
5947_TSS
5948Power field(s). In this case, it is best to just return the _TSS package
5949as-
5950is. Reported by, and fixed with assistance from Fenghua Yu.
5951
5952Added an option to globally disable the control method return value
5953validation
5954and repair. This runtime option can be used to disable return value
5955repair
5956if
5957this is causing a problem on a particular machine. Also added an option
5958to
5959AcpiExec (-dr) to set this disable flag.
5960
5961All makefiles and project files: Major changes to improve generation of
5962ACPICA
5963tools. ACPICA BZ 912:
5964    Reduce default optimization levels to improve compatibility
5965    For Linux, add strict-aliasing=0 for gcc 4
5966    Cleanup and simplify use of command line defines
5967    Cleanup multithread library support
5968    Improve usage messages
5969
5970Linux-specific header: update handling of THREAD_ID and pthread. For the
597132-
5972bit case, improve casting to eliminate possible warnings, especially with
5973the
5974acpica tools.
5975
5976Example Code and Data Size: These are the sizes for the OS-independent
5977acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5978debug
5979version of the code includes the debug output trace mechanism and has a
5980much
5981larger code and data size.
5982
5983  Previous Release (VC 9.0):
5984    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
5985    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
5986  Current Release (VC 9.0):
5987    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
5988    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
5989
59902) iASL Compiler/Disassembler and Tools:
5991
5992With this release, a new utility named "acpihelp" has been added to the
5993ACPICA
5994package. This utility summarizes the ACPI specification chapters for the
5995ASL
5996and AML languages. It generates under Linux/Unix as well as Windows, and
5997provides the following functionality:
5998    Find/display ASL operator(s) -- with description and syntax.
5999    Find/display ASL keyword(s) -- with exact spelling and descriptions.
6000    Find/display ACPI predefined name(s) -- with description, number
6001        of arguments, and the return value data type.
6002    Find/display AML opcode name(s) -- with opcode, arguments, and
6003grammar.
6004    Decode/display AML opcode -- with opcode name, arguments, and
6005grammar.
6006
6007Service Layers: Make multi-thread support configurable. Conditionally
6008compile
6009the multi-thread support so that threading libraries will not be linked
6010if
6011not
6012necessary. The only tool that requires multi-thread support is AcpiExec.
6013
6014iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
6015of
6016Bison appear to want the interface to yyerror to be a const char * (or at
6017least this is a problem when generating iASL on some systems.) ACPICA BZ
6018923
6019Pierre Lejeune.
6020
6021Tools: Fix for systems where O_BINARY is not defined. Only used for
6022Windows
6023versions of the tools.
6024
6025----------------------------------------
602627 May 2011. Summary of changes for version 20110527:
6027
60281) ACPI CA Core Subsystem:
6029
6030ASL Load() operator: Reinstate most restrictions on the incoming ACPI
6031table
6032signature. Now, only allow SSDT, OEMx, and a null signature. History:
6033    1) Originally, we checked the table signature for "SSDT" or "PSDT".
6034       (PSDT is now obsolete.)
6035    2) We added support for OEMx tables, signature "OEM" plus a fourth
6036       "don't care" character.
6037    3) Valid tables were encountered with a null signature, so we just
6038       gave up on validating the signature, (05/2008).
6039    4) We encountered non-AML tables such as the MADT, which caused
6040       interpreter errors and kernel faults. So now, we once again allow
6041       only SSDT, OEMx, and now, also a null signature. (05/2011).
6042
6043Added the missing _TDL predefined name to the global name list in order
6044to
6045enable validation. Affects both the core ACPICA code and the iASL
6046compiler.
6047
6048Example Code and Data Size: These are the sizes for the OS-independent
6049acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6050debug
6051version of the code includes the debug output trace mechanism and has a
6052much
6053larger code and data size.
6054
6055  Previous Release (VC 9.0):
6056    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
6057    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
6058  Current Release (VC 9.0):
6059    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
6060    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6061
60622) iASL Compiler/Disassembler and Tools:
6063
6064Debugger/AcpiExec: Implemented support for "complex" method arguments on
6065the
6066debugger command line. This adds support beyond simple integers --
6067including
6068Strings, Buffers, and Packages. Includes support for nested packages.
6069Increased the default command line buffer size to accommodate these
6070arguments.
6071See the ACPICA reference for details and syntax. ACPICA BZ 917.
6072
6073Debugger/AcpiExec: Implemented support for "default" method arguments for
6074the
6075Execute/Debug command. Now, the debugger will always invoke a control
6076method
6077with the required number of arguments -- even if the command line
6078specifies
6079none or insufficient arguments. It uses default integer values for any
6080missing
6081arguments. Also fixes a bug where only six method arguments maximum were
6082supported instead of the required seven.
6083
6084Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
6085and
6086also return status in order to prevent buffer overruns. See the ACPICA
6087reference for details and syntax. ACPICA BZ 921
6088
6089iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
6090makefiles to simplify support for the two different but similar parser
6091generators, bison and yacc.
6092
6093Updated the generic unix makefile for gcc 4. The default gcc version is
6094now
6095expected to be 4 or greater, since options specific to gcc 4 are used.
6096
6097----------------------------------------
609813 April 2011. Summary of changes for version 20110413:
6099
61001) ACPI CA Core Subsystem:
6101
6102Implemented support to execute a so-called "orphan" _REG method under the
6103EC
6104device. This change will force the execution of a _REG method underneath
6105the
6106EC
6107device even if there is no corresponding operation region of type
6108EmbeddedControl. Fixes a problem seen on some machines and apparently is
6109compatible with Windows behavior. ACPICA BZ 875.
6110
6111Added more predefined methods that are eligible for automatic NULL
6112package
6113element removal. This change adds another group of predefined names to
6114the
6115list
6116of names that can be repaired by having NULL package elements dynamically
6117removed. This group are those methods that return a single variable-
6118length
6119package containing simple data types such as integers, buffers, strings.
6120This
6121includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
6122_PSL,
6123_Sx,
6124and _TZD. ACPICA BZ 914.
6125
6126Split and segregated all internal global lock functions to a new file,
6127evglock.c.
6128
6129Updated internal address SpaceID for DataTable regions. Moved this
6130internal
6131space
6132id in preparation for ACPI 5.0 changes that will include some new space
6133IDs.
6134This
6135change should not affect user/host code.
6136
6137Example Code and Data Size: These are the sizes for the OS-independent
6138acpica.lib
6139produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
6140version of
6141the code includes the debug output trace mechanism and has a much larger
6142code
6143and
6144data size.
6145
6146  Previous Release (VC 9.0):
6147    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
6148    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
6149  Current Release (VC 9.0):
6150    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
6151    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
6152
61532) iASL Compiler/Disassembler and Tools:
6154
6155iASL/DTC: Major update for new grammar features. Allow generic data types
6156in
6157custom ACPI tables. Field names are now optional. Any line can be split
6158to
6159multiple lines using the continuation char (\). Large buffers now use
6160line-
6161continuation character(s) and no colon on the continuation lines. See the
6162grammar
6163update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
6164Moore.
6165
6166iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
6167statements.
6168Since the parser stuffs a "zero" as the return value for these statements
6169(due
6170to
6171the underlying AML grammar), they were seen as "return with value" by the
6172iASL
6173semantic checking. They are now seen correctly as "null" return
6174statements.
6175
6176iASL: Check if a_REG declaration has a corresponding Operation Region.
6177Adds a
6178check for each _REG to ensure that there is in fact a corresponding
6179operation
6180region declaration in the same scope. If not, the _REG method is not very
6181useful
6182since it probably won't be executed. ACPICA BZ 915.
6183
6184iASL/DTC: Finish support for expression evaluation. Added a new
6185expression
6186parser
6187that implements c-style operator precedence and parenthesization. ACPICA
6188bugzilla
6189908.
6190
6191Disassembler/DTC: Remove support for () and <> style comments in data
6192tables.
6193Now
6194that DTC has full expression support, we don't want to have comment
6195strings
6196that
6197start with a parentheses or a less-than symbol. Now, only the standard /*
6198and
6199//
6200comments are supported, as well as the bracket [] comments.
6201
6202AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
6203"unusual"
6204headers in the acpidump file. Update the header validation to support
6205these
6206tables. Problem introduced in previous AcpiXtract version in the change
6207to
6208support "wrong checksum" error messages emitted by acpidump utility.
6209
6210iASL: Add a * option to generate all template files (as a synonym for
6211ALL)
6212as
6213in
6214"iasl -T *" or "iasl -T ALL".
6215
6216iASL/DTC: Do not abort compiler on fatal errors. We do not want to
6217completely
6218abort the compiler on "fatal" errors, simply should abort the current
6219compile.
6220This allows multiple compiles with a single (possibly wildcard) compiler
6221invocation.
6222
6223----------------------------------------
622416 March 2011. Summary of changes for version 20110316:
6225
62261) ACPI CA Core Subsystem:
6227
6228Fixed a problem caused by a _PRW method appearing at the namespace root
6229scope
6230during the setup of wake GPEs. A fault could occur if a _PRW directly
6231under
6232the
6233root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
6234
6235Implemented support for "spurious" Global Lock interrupts. On some
6236systems, a
6237global lock interrupt can occur without the pending flag being set. Upon
6238a
6239GL
6240interrupt, we now ensure that a thread is actually waiting for the lock
6241before
6242signaling GL availability. Rafael Wysocki, Bob Moore.
6243
6244Example Code and Data Size: These are the sizes for the OS-independent
6245acpica.lib
6246produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
6247version of
6248the code includes the debug output trace mechanism and has a much larger
6249code
6250and
6251data size.
6252
6253  Previous Release (VC 9.0):
6254    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
6255    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6256  Current Release (VC 9.0):
6257    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
6258    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
6259
62602) iASL Compiler/Disassembler and Tools:
6261
6262Implemented full support for the "SLIC" ACPI table. Includes support in
6263the
6264header files, disassembler, table compiler, and template generator. Bob
6265Moore,
6266Lin Ming.
6267
6268AcpiXtract: Correctly handle embedded comments and messages from
6269AcpiDump.
6270Apparently some or all versions of acpidump will occasionally emit a
6271comment
6272like
6273"Wrong checksum", etc., into the dump file. This was causing problems for
6274AcpiXtract. ACPICA BZ 905.
6275
6276iASL: Fix the Linux makefile by removing an inadvertent double file
6277inclusion.
6278ACPICA BZ 913.
6279
6280AcpiExec: Update installation of operation region handlers. Install one
6281handler
6282for a user-defined address space. This is used by the ASL test suite
6283(ASLTS).
6284
6285----------------------------------------
628611 February 2011. Summary of changes for version 20110211:
6287
62881) ACPI CA Core Subsystem:
6289
6290Added a mechanism to defer _REG methods for some early-installed
6291handlers.
6292Most user handlers should be installed before call to
6293AcpiEnableSubsystem.
6294However, Event handlers and region handlers should be installed after
6295AcpiInitializeObjects. Override handlers for the "default" regions should
6296be
6297installed early, however. This change executes all _REG methods for the
6298default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
6299chicken/egg issues between them. ACPICA BZ 848.
6300
6301Implemented an optimization for GPE detection. This optimization will
6302simply
6303ignore GPE registers that contain no enabled GPEs -- there is no need to
6304read the register since this information is available internally. This
6305becomes more important on machines with a large GPE space. ACPICA
6306bugzilla
6307884. Lin Ming. Suggestion from Joe Liu.
6308
6309Removed all use of the highly unreliable FADT revision field. The
6310revision
6311number in the FADT has been found to be completely unreliable and cannot
6312be
6313trusted. Only the actual table length can be used to infer the version.
6314This
6315change updates the ACPICA core and the disassembler so that both no
6316longer
6317even look at the FADT version and instead depend solely upon the FADT
6318length.
6319
6320Fix an unresolved name issue for the no-debug and no-error-message source
6321generation cases. The _AcpiModuleName was left undefined in these cases,
6322but
6323it is actually needed as a parameter to some interfaces. Define
6324_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
6325
6326Split several large files (makefiles and project files updated)
6327  utglobal.c   -> utdecode.c
6328  dbcomds.c    -> dbmethod.c dbnames.c
6329  dsopcode.c   -> dsargs.c dscontrol.c
6330  dsload.c     -> dsload2.c
6331  aslanalyze.c -> aslbtypes.c aslwalks.c
6332
6333Example Code and Data Size: These are the sizes for the OS-independent
6334acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6335debug version of the code includes the debug output trace mechanism and
6336has
6337a much larger code and data 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.7K Code, 23.7K Data, 113.4K Total
6344    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6345
63462) iASL Compiler/Disassembler and Tools:
6347
6348iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
6349These are useful C-style macros with the standard definitions. ACPICA
6350bugzilla 898.
6351
6352iASL/DTC: Added support for integer expressions and labels. Support for
6353full
6354expressions for all integer fields in all ACPI tables. Support for labels
6355in
6356"generic" portions of tables such as UEFI. See the iASL reference manual.
6357
6358Debugger: Added a command to display the status of global handlers. The
6359"handlers" command will display op region, fixed event, and miscellaneous
6360global handlers. installation status -- and for op regions, whether
6361default
6362or user-installed handler will be used.
6363
6364iASL: Warn if reserved method incorrectly returns a value. Many
6365predefined
6366names are defined such that they do not return a value. If implemented as
6367a
6368method, issue a warning if such a name explicitly returns a value. ACPICA
6369Bugzilla 855.
6370
6371iASL: Added detection of GPE method name conflicts. Detects a conflict
6372where
6373there are two GPE methods of the form _Lxy and _Exy in the same scope.
6374(For
6375example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
6376
6377iASL/DTC: Fixed a couple input scanner issues with comments and line
6378numbers. Comment remover could get confused and miss a comment ending.
6379Fixed
6380a problem with line counter maintenance.
6381
6382iASL/DTC: Reduced the severity of some errors from fatal to error. There
6383is
6384no need to abort on simple errors within a field definition.
6385
6386Debugger: Simplified the output of the help command. All help output now
6387in
6388a single screen, instead of help subcommands. ACPICA Bugzilla 897.
6389
6390----------------------------------------
639112 January 2011. Summary of changes for version 20110112:
6392
63931) ACPI CA Core Subsystem:
6394
6395Fixed a race condition between method execution and namespace walks that
6396can
6397possibly cause a fault. The problem was apparently introduced in version
639820100528 as a result of a performance optimization that reduces the
6399number
6400of
6401namespace walks upon method exit by using the delete_namespace_subtree
6402function instead of the delete_namespace_by_owner function used
6403previously.
6404Bug is a missing namespace lock in the delete_namespace_subtree function.
6405dana.myers@oracle.com
6406
6407Fixed several issues and a possible fault with the automatic "serialized"
6408method support. History: This support changes a method to "serialized" on
6409the
6410fly if the method generates an AE_ALREADY_EXISTS error, indicating the
6411possibility that it cannot handle reentrancy. This fix repairs a couple
6412of
6413issues seen in the field, especially on machines with many cores:
6414
6415    1) Delete method children only upon the exit of the last thread,
6416       so as to not delete objects out from under other running threads
6417      (and possibly causing a fault.)
6418    2) Set the "serialized" bit for the method only upon the exit of the
6419       Last thread, so as to not cause deadlock when running threads
6420       attempt to exit.
6421    3) Cleanup the use of the AML "MethodFlags" and internal method flags
6422       so that there is no longer any confusion between the two.
6423
6424    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
6425
6426Debugger: Now lock the namespace for duration of a namespace dump.
6427Prevents
6428issues if the namespace is changing dynamically underneath the debugger.
6429Especially affects temporary namespace nodes, since the debugger displays
6430these also.
6431
6432Updated the ordering of include files. The ACPICA headers should appear
6433before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
6434set
6435any necessary compiler-specific defines, etc. Affects the ACPI-related
6436tools
6437and utilities.
6438
6439Updated all ACPICA copyrights and signons to 2011. Added the 2011
6440copyright
6441to all module headers and signons, including the Linux header. This
6442affects
6443virtually every file in the ACPICA core subsystem, iASL compiler, and all
6444utilities.
6445
6446Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
6447project files for VC++ 6.0 are now obsolete. New project files can be
6448found
6449under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
6450details.
6451
6452Example Code and Data Size: These are the sizes for the OS-independent
6453acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6454debug version of the code includes the debug output trace mechanism and
6455has a
6456much larger code and data size.
6457
6458  Previous Release (VC 6.0):
6459    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
6460    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
6461  Current Release (VC 9.0):
6462    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
6463    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
6464
64652) iASL Compiler/Disassembler and Tools:
6466
6467iASL: Added generic data types to the Data Table compiler. Add "generic"
6468data
6469types such as UINT32, String, Unicode, etc., to simplify the generation
6470of
6471platform-defined tables such as UEFI. Lin Ming.
6472
6473iASL: Added listing support for the Data Table Compiler. Adds listing
6474support
6475(-l) to display actual binary output for each line of input code.
6476
6477----------------------------------------
647809 December 2010. Summary of changes for version 20101209:
6479
64801) ACPI CA Core Subsystem:
6481
6482Completed the major overhaul of the GPE support code that was begun in
6483July
64842010. Major features include: removal of _PRW execution in ACPICA (host
6485executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
6486changes to existing interfaces, simplification of GPE handler operation,
6487and
6488a handful of new interfaces:
6489
6490    AcpiUpdateAllGpes
6491    AcpiFinishGpe
6492    AcpiSetupGpeForWake
6493    AcpiSetGpeWakeMask
6494    One new file, evxfgpe.c to consolidate all external GPE interfaces.
6495
6496See the ACPICA Programmer Reference for full details and programming
6497information. See the new section 4.4 "General Purpose Event (GPE)
6498Support"
6499for a full overview, and section 8.7 "ACPI General Purpose Event
6500Management"
6501for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
6502Ming,
6503Bob Moore, Rafael Wysocki.
6504
6505Implemented a new GPE feature for Windows compatibility, the "Implicit
6506Wake
6507GPE Notify". This feature will automatically issue a Notify(2) on a
6508device
6509when a Wake GPE is received if there is no corresponding GPE method or
6510handler. ACPICA BZ 870.
6511
6512Fixed a problem with the Scope() operator during table parse and load
6513phase.
6514During load phase (table load or method execution), the scope operator
6515should
6516not enter the target into the namespace. Instead, it should open a new
6517scope
6518at the target location. Linux BZ 19462, ACPICA BZ 882.
6519
6520Example Code and Data Size: These are the sizes for the OS-independent
6521acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6522debug version of the code includes the debug output trace mechanism and
6523has a
6524much larger code and data size.
6525
6526  Previous Release:
6527    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
6528    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
6529  Current Release:
6530    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6531    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6532
65332) iASL Compiler/Disassembler and Tools:
6534
6535iASL: Relax the alphanumeric restriction on _CID strings. These strings
6536are
6537"bus-specific" per the ACPI specification, and therefore any characters
6538are
6539acceptable. The only checks that can be performed are for a null string
6540and
6541perhaps for a leading asterisk. ACPICA BZ 886.
6542
6543iASL: Fixed a problem where a syntax error that caused a premature EOF
6544condition on the source file emitted a very confusing error message. The
6545premature EOF is now detected correctly. ACPICA BZ 891.
6546
6547Disassembler: Decode the AccessSize within a Generic Address Structure
6548(byte
6549access, word access, etc.) Note, this field does not allow arbitrary bit
6550access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
6551
6552New: AcpiNames utility - Example namespace dump utility. Shows an example
6553of
6554ACPICA configuration for a minimal namespace dump utility. Uses table and
6555namespace managers, but no AML interpreter. Does not add any
6556functionality
6557over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
6558partition and configure ACPICA. ACPICA BZ 883.
6559
6560AML Debugger: Increased the debugger buffer size for method return
6561objects.
6562Was 4K, increased to 16K. Also enhanced error messages for debugger
6563method
6564execution, including the buffer overflow case.
6565
6566----------------------------------------
656713 October 2010. Summary of changes for version 20101013:
6568
65691) ACPI CA Core Subsystem:
6570
6571Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
6572now
6573clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
6574HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
6575
6576Changed the type of the predefined namespace object _TZ from ThermalZone
6577to
6578Device. This was found to be confusing to the host software that
6579processes
6580the various thermal zones, since _TZ is not really a ThermalZone.
6581However,
6582a
6583Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
6584Zhang.
6585
6586Added Windows Vista SP2 to the list of supported _OSI strings. The actual
6587string is "Windows 2006 SP2".
6588
6589Eliminated duplicate code in AcpiUtExecute* functions. Now that the
6590nsrepair
6591code automatically repairs _HID-related strings, this type of code is no
6592longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
6593878.
6594
6595Example Code and Data Size: These are the sizes for the OS-independent
6596acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6597debug version of the code includes the debug output trace mechanism and
6598has a
6599much larger code and data size.
6600
6601  Previous Release:
6602    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6603    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6604  Current Release:
6605    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6606    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6607
66082) iASL Compiler/Disassembler and Tools:
6609
6610iASL: Implemented additional compile-time validation for _HID strings.
6611The
6612non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
6613length
6614of
6615the string must be exactly seven or eight characters. For both _HID and
6616_CID
6617strings, all characters must be alphanumeric. ACPICA BZ 874.
6618
6619iASL: Allow certain "null" resource descriptors. Some BIOS code creates
6620descriptors that are mostly or all zeros, with the expectation that they
6621will
6622be filled in at runtime. iASL now allows this as long as there is a
6623"resource
6624tag" (name) associated with the descriptor, which gives the ASL a handle
6625needed to modify the descriptor. ACPICA BZ 873.
6626
6627Added single-thread support to the generic Unix application OSL.
6628Primarily
6629for iASL support, this change removes the use of semaphores in the
6630single-
6631threaded ACPICA tools/applications - increasing performance. The
6632_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
6633option. ACPICA BZ 879.
6634
6635AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
6636support
6637for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
6638
6639iASL: Moved all compiler messages to a new file, aslmessages.h.
6640
6641----------------------------------------
664215 September 2010. Summary of changes for version 20100915:
6643
66441) ACPI CA Core Subsystem:
6645
6646Removed the AcpiOsDerivePciId OSL interface. The various host
6647implementations
6648of this function were not OS-dependent and are now obsolete and can be
6649removed from all host OSLs. This function has been replaced by
6650AcpiHwDerivePciId, which is now part of the ACPICA core code.
6651AcpiHwDerivePciId has been implemented without recursion. Adds one new
6652module, hwpci.c. ACPICA BZ 857.
6653
6654Implemented a dynamic repair for _HID and _CID strings. The following
6655problems are now repaired at runtime: 1) Remove a leading asterisk in the
6656string, and 2) the entire string is uppercased. Both repairs are in
6657accordance with the ACPI specification and will simplify host driver
6658code.
6659ACPICA BZ 871.
6660
6661The ACPI_THREAD_ID type is no longer configurable, internally it is now
6662always UINT64. This simplifies the ACPICA code, especially any printf
6663output.
6664UINT64 is the only common data type for all thread_id types across all
6665operating systems. It is now up to the host OSL to cast the native
6666thread_id
6667type to UINT64 before returning the value to ACPICA (via
6668AcpiOsGetThreadId).
6669Lin Ming, Bob Moore.
6670
6671Added the ACPI_INLINE type to enhance the ACPICA configuration. The
6672"inline"
6673keyword is not standard across compilers, and this type allows inline to
6674be
6675configured on a per-compiler basis. Lin Ming.
6676
6677Made the system global AcpiGbl_SystemAwakeAndRunning publically
6678available.
6679Added an extern for this boolean in acpixf.h. Some hosts utilize this
6680value
6681during suspend/restore operations. ACPICA BZ 869.
6682
6683All code that implements error/warning messages with the "ACPI:" prefix
6684has
6685been moved to a new module, utxferror.c.
6686
6687The UINT64_OVERLAY was moved to utmath.c, which is the only module where
6688it
6689is used. ACPICA BZ 829. Lin Ming, Bob Moore.
6690
6691Example Code and Data Size: These are the sizes for the OS-independent
6692acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6693debug version of the code includes the debug output trace mechanism and
6694has a
6695much larger code and data size.
6696
6697  Previous Release:
6698    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
6699    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
6700  Current Release:
6701    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
6702    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
6703
67042) iASL Compiler/Disassembler and Tools:
6705
6706iASL/Disassembler: Write ACPI errors to stderr instead of the output
6707file.
6708This keeps the output files free of random error messages that may
6709originate
6710from within the namespace/interpreter code. Used this opportunity to
6711merge
6712all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
6713866. Lin Ming, Bob Moore.
6714
6715Tools: update some printfs for ansi warnings on size_t. Handle width
6716change
6717of size_t on 32-bit versus 64-bit generations. Lin Ming.
6718
6719----------------------------------------
672006 August 2010. Summary of changes for version 20100806:
6721
67221) ACPI CA Core Subsystem:
6723
6724Designed and implemented a new host interface to the _OSI support code.
6725This
6726will allow the host to dynamically add or remove multiple _OSI strings,
6727as
6728well as install an optional handler that is called for each _OSI
6729invocation.
6730Also added a new AML debugger command, 'osi' to display and modify the
6731global
6732_OSI string table, and test support in the AcpiExec utility. See the
6733ACPICA
6734reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
6735New Functions:
6736    AcpiInstallInterface - Add an _OSI string.
6737    AcpiRemoveInterface - Delete an _OSI string.
6738    AcpiInstallInterfaceHandler - Install optional _OSI handler.
6739Obsolete Functions:
6740    AcpiOsValidateInterface - no longer used.
6741New Files:
6742    source/components/utilities/utosi.c
6743
6744Re-introduced the support to enable multi-byte transfers for Embedded
6745Controller (EC) operation regions. A reported problem was found to be a
6746bug
6747in the host OS, not in the multi-byte support. Previously, the maximum
6748data
6749size passed to the EC operation region handler was a single byte. There
6750are
6751often EC Fields larger than one byte that need to be transferred, and it
6752is
6753useful for the EC driver to lock these as a single transaction. This
6754change
6755enables single transfers larger than 8 bits. This effectively changes the
6756access to the EC space from ByteAcc to AnyAcc, and will probably require
6757changes to the host OS Embedded Controller driver to enable 16/32/64/256-
6758bit
6759transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
6760
6761Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
6762prototype in acpiosxf.h had the output value pointer as a (void *).
6763It should be a (UINT64 *). This may affect some host OSL code.
6764
6765Fixed a couple problems with the recently modified Linux makefiles for
6766iASL
6767and AcpiExec. These new makefiles place the generated object files in the
6768local directory so that there can be no collisions between the files that
6769are
6770shared between them that are compiled with different options.
6771
6772Example Code and Data Size: These are the sizes for the OS-independent
6773acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6774debug version of the code includes the debug output trace mechanism and
6775has a
6776much larger code and data size.
6777
6778  Previous Release:
6779    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6780    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
6781  Current Release:
6782    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
6783    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
6784
67852) iASL Compiler/Disassembler and Tools:
6786
6787iASL/Disassembler: Added a new option (-da, "disassemble all") to load
6788the
6789namespace from and disassemble an entire group of AML files. Useful for
6790loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
6791and
6792disassembling with one simple command. ACPICA BZ 865. Lin Ming.
6793
6794iASL: Allow multiple invocations of -e option. This change allows
6795multiple
6796uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
6797834.
6798Lin Ming.
6799
6800----------------------------------------
680102 July 2010. Summary of changes for version 20100702:
6802
68031) ACPI CA Core Subsystem:
6804
6805Implemented several updates to the recently added GPE reference count
6806support. The model for "wake" GPEs is changing to give the host OS
6807complete
6808control of these GPEs. Eventually, the ACPICA core will not execute any
6809_PRW
6810methods, since the host already must execute them. Also, additional
6811changes
6812were made to help ensure that the reference counts are kept in proper
6813synchronization with reality. Rafael J. Wysocki.
6814
68151) Ensure that GPEs are not enabled twice during initialization.
68162) Ensure that GPE enable masks stay in sync with the reference count.
68173) Do not inadvertently enable GPEs when writing GPE registers.
68184) Remove the internal wake reference counter and add new AcpiGpeWakeup
6819interface. This interface will set or clear individual GPEs for wakeup.
68205) Remove GpeType argument from AcpiEnable and AcpiDisable. These
6821interfaces
6822are now used for "runtime" GPEs only.
6823
6824Changed the behavior of the GPE install/remove handler interfaces. The
6825GPE
6826is
6827no longer disabled during this process, as it was found to cause problems
6828on
6829some machines. Rafael J. Wysocki.
6830
6831Reverted a change introduced in version 20100528 to enable Embedded
6832Controller multi-byte transfers. This change was found to cause problems
6833with
6834Index Fields and possibly Bank Fields. It will be reintroduced when these
6835problems have been resolved.
6836
6837Fixed a problem with references to Alias objects within Package Objects.
6838A
6839reference to an Alias within the definition of a Package was not always
6840resolved properly. Aliases to objects like Processors, Thermal zones,
6841etc.
6842were resolved to the actual object instead of a reference to the object
6843as
6844it
6845should be. Package objects are only allowed to contain integer, string,
6846buffer, package, and reference objects. Redhat bugzilla 608648.
6847
6848Example Code and Data Size: These are the sizes for the OS-independent
6849acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6850debug version of the code includes the debug output trace mechanism and
6851has a
6852much larger code and data size.
6853
6854  Previous Release:
6855    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6856    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
6857  Current Release:
6858    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6859    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
6860
68612) iASL Compiler/Disassembler and Tools:
6862
6863iASL: Implemented a new compiler subsystem to allow definition and
6864compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
6865These
6866are called "ACPI Data Tables", and the new compiler is the "Data Table
6867Compiler". This compiler is intended to simplify the existing error-prone
6868process of creating these tables for the BIOS, as well as allowing the
6869disassembly, modification, recompilation, and override of existing ACPI
6870data
6871tables. See the iASL User Guide for detailed information.
6872
6873iASL: Implemented a new Template Generator option in support of the new
6874Data
6875Table Compiler. This option will create examples of all known ACPI tables
6876that can be used as the basis for table development. See the iASL
6877documentation and the -T option.
6878
6879Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
6880Descriptor Table).
6881
6882Updated the Linux makefiles for iASL and AcpiExec to place the generated
6883object files in the local directory so that there can be no collisions
6884between the shared files between them that are generated with different
6885options.
6886
6887Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
6888Use
6889the #define __APPLE__ to enable this support.
6890
6891----------------------------------------
689228 May 2010. Summary of changes for version 20100528:
6893
6894Note: The ACPI 4.0a specification was released on April 5, 2010 and is
6895available at www.acpi.info. This is primarily an errata release.
6896
68971) ACPI CA Core Subsystem:
6898
6899Undefined ACPI tables: We are looking for the definitions for the
6900following
6901ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
6902
6903Implemented support to enable multi-byte transfers for Embedded
6904Controller
6905(EC) operation regions. Previously, the maximum data size passed to the
6906EC
6907operation region handler was a single byte. There are often EC Fields
6908larger
6909than one byte that need to be transferred, and it is useful for the EC
6910driver
6911to lock these as a single transaction. This change enables single
6912transfers
6913larger than 8 bits. This effectively changes the access to the EC space
6914from
6915ByteAcc to AnyAcc, and will probably require changes to the host OS
6916Embedded
6917Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
6918bit
6919transfers. Alexey Starikovskiy, Lin Ming
6920
6921Implemented a performance enhancement for namespace search and access.
6922This
6923change enhances the performance of namespace searches and walks by adding
6924a
6925backpointer to the parent in each namespace node. On large namespaces,
6926this
6927change can improve overall ACPI performance by up to 9X. Adding a pointer
6928to
6929each namespace node increases the overall size of the internal namespace
6930by
6931about 5%, since each namespace entry usually consists of both a namespace
6932node and an ACPI operand object. However, this is the first growth of the
6933namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
6934
6935Implemented a performance optimization that reduces the number of
6936namespace
6937walks. On control method exit, only walk the namespace if the method is
6938known
6939to have created namespace objects outside of its local scope. Previously,
6940the
6941entire namespace was traversed on each control method exit. This change
6942can
6943improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
6944Moore.
6945
6946Added support to truncate I/O addresses to 16 bits for Windows
6947compatibility.
6948Some ASL code has been seen in the field that inadvertently has bits set
6949above bit 15. This feature is optional and is enabled if the BIOS
6950requests
6951any Windows OSI strings. It can also be enabled by the host OS. Matthew
6952Garrett, Bob Moore.
6953
6954Added support to limit the maximum time for the ASL Sleep() operator. To
6955prevent accidental deep sleeps, limit the maximum time that Sleep() will
6956actually sleep. Configurable, the default maximum is two seconds. ACPICA
6957bugzilla 854.
6958
6959Added run-time validation support for the _WDG and_WED Microsoft
6960predefined
6961methods. These objects are defined by "Windows Instrumentation", and are
6962not
6963part of the ACPI spec. ACPICA BZ 860.
6964
6965Expanded all statistic counters used during namespace and device
6966initialization from 16 to 32 bits in order to support very large
6967namespaces.
6968
6969Replaced all instances of %d in printf format specifiers with %u since
6970nearly
6971all integers in ACPICA are unsigned.
6972
6973Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
6974returned
6975as AE_NO_HANDLER.
6976
6977Example Code and Data Size: These are the sizes for the OS-independent
6978acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
6979debug version of the code includes the debug output trace mechanism and
6980has a
6981much larger code and data size.
6982
6983  Previous Release:
6984    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
6985    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
6986  Current Release:
6987    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
6988    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
6989
69902) iASL Compiler/Disassembler and Tools:
6991
6992iASL: Added compiler support for the _WDG and_WED Microsoft predefined
6993methods. These objects are defined by "Windows Instrumentation", and are
6994not
6995part of the ACPI spec. ACPICA BZ 860.
6996
6997AcpiExec: added option to disable the memory tracking mechanism. The -dt
6998option will disable the tracking mechanism, which improves performance
6999considerably.
7000
7001AcpiExec: Restructured the command line options into -d (disable) and -e
7002(enable) options.
7003
7004----------------------------------------
700528 April 2010. Summary of changes for version 20100428:
7006
70071) ACPI CA Core Subsystem:
7008
7009Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
7010including FADT-based and GPE Block Devices, execute any _PRW methods in
7011the
7012new table, and process any _Lxx/_Exx GPE methods in the new table. Any
7013runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
7014immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
7015Devices. Provides compatibility with other ACPI implementations. Two new
7016files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
7017Moore.
7018
7019Fixed a regression introduced in version 20100331 within the table
7020manager
7021where initial table loading could fail. This was introduced in the fix
7022for
7023AcpiReallocateRootTable. Also, renamed some of fields in the table
7024manager
7025data structures to clarify their meaning and use.
7026
7027Fixed a possible allocation overrun during internal object copy in
7028AcpiUtCopySimpleObject. The original code did not correctly handle the
7029case
7030where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
7031847.
7032
7033Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
7034possible access beyond end-of-allocation. Also, now fully validate
7035descriptor
7036(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
7037
7038Example Code and Data Size: These are the sizes for the OS-independent
7039acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7040debug version of the code includes the debug output trace mechanism and
7041has a
7042much larger code and data size.
7043
7044  Previous Release:
7045    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
7046    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
7047  Current Release:
7048    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
7049    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
7050
70512) iASL Compiler/Disassembler and Tools:
7052
7053iASL: Implemented Min/Max/Len/Gran validation for address resource
7054descriptors. This change implements validation for the address fields
7055that
7056are common to all address-type resource descriptors. These checks are
7057implemented: Checks for valid Min/Max, length within the Min/Max window,
7058valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
7059per
7060table 6-40 in the ACPI 4.0a specification. Also split the large
7061aslrestype1.c
7062and aslrestype2.c files into five new files. ACPICA BZ 840.
7063
7064iASL: Added support for the _Wxx predefined names. This support was
7065missing
7066and these names were not recognized by the compiler as valid predefined
7067names. ACPICA BZ 851.
7068
7069iASL: Added an error for all predefined names that are defined to return
7070no
7071value and thus must be implemented as Control Methods. These include all
7072of
7073the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
7074names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
7075
7076iASL: Implemented the -ts option to emit hex AML data in ASL format, as
7077an
7078ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
7079be
7080dynamically loaded via the Load() operator. Also cleaned up output for
7081the
7082-
7083ta and -tc options. ACPICA BZ 853.
7084
7085Tests: Added a new file with examples of extended iASL error checking.
7086Demonstrates the advanced error checking ability of the iASL compiler.
7087Available at tests/misc/badcode.asl.
7088
7089----------------------------------------
709031 March 2010. Summary of changes for version 20100331:
7091
70921) ACPI CA Core Subsystem:
7093
7094Completed a major update for the GPE support in order to improve support
7095for
7096shared GPEs and to simplify both host OS and ACPICA code. Added a
7097reference
7098count mechanism to support shared GPEs that require multiple device
7099drivers.
7100Several external interfaces have changed. One external interface has been
7101removed. One new external interface was added. Most of the GPE external
7102interfaces now use the GPE spinlock instead of the events mutex (and the
7103Flags parameter for many GPE interfaces has been removed.) See the
7104updated
7105ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
7106Rafael
7107Wysocki. ACPICA BZ 831.
7108
7109Changed:
7110    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
7111Removed:
7112    AcpiSetGpeType
7113New:
7114    AcpiSetGpe
7115
7116Implemented write support for DataTable operation regions. These regions
7117are
7118defined via the DataTableRegion() operator. Previously, only read support
7119was
7120implemented. The ACPI specification allows DataTableRegions to be
7121read/write,
7122however.
7123
7124Implemented a new subsystem option to force a copy of the DSDT to local
7125memory. Optionally copy the entire DSDT to local memory (instead of
7126simply
7127mapping it.) There are some (albeit very rare) BIOSs that corrupt or
7128replace
7129the original DSDT, creating the need for this option. Default is FALSE,
7130do
7131not copy the DSDT.
7132
7133Implemented detection of a corrupted or replaced DSDT. This change adds
7134support to detect a DSDT that has been corrupted and/or replaced from
7135outside
7136the OS (by firmware). This is typically catastrophic for the system, but
7137has
7138been seen on some machines. Once this problem has been detected, the DSDT
7139copy option can be enabled via system configuration. Lin Ming, Bob Moore.
7140
7141Fixed two problems with AcpiReallocateRootTable during the root table
7142copy.
7143When copying the root table to the new allocation, the length used was
7144incorrect. The new size was used instead of the current table size,
7145meaning
7146too much data was copied. Also, the count of available slots for ACPI
7147tables
7148was not set correctly. Alexey Starikovskiy, Bob Moore.
7149
7150Example Code and Data Size: These are the sizes for the OS-independent
7151acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7152debug version of the code includes the debug output trace mechanism and
7153has a
7154much larger code and data size.
7155
7156  Previous Release:
7157    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
7158    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
7159  Current Release:
7160    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
7161    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
7162
71632) iASL Compiler/Disassembler and Tools:
7164
7165iASL: Implement limited typechecking for values returned from predefined
7166control methods. The type of any returned static (unnamed) object is now
7167validated. For example, Return(1). ACPICA BZ 786.
7168
7169iASL: Fixed a predefined name object verification regression. Fixes a
7170problem
7171introduced in version 20100304. An error is incorrectly generated if a
7172predefined name is declared as a static named object with a value defined
7173using the keywords "Zero", "One", or "Ones". Lin Ming.
7174
7175iASL: Added Windows 7 support for the -g option (get local ACPI tables)
7176by
7177reducing the requested registry access rights. ACPICA BZ 842.
7178
7179Disassembler: fixed a possible fault when generating External()
7180statements.
7181Introduced in commit ae7d6fd: Properly handle externals with parent-
7182prefix
7183(carat). Fixes a string length allocation calculation. Lin Ming.
7184
7185----------------------------------------
718604 March 2010. Summary of changes for version 20100304:
7187
71881) ACPI CA Core Subsystem:
7189
7190Fixed a possible problem with the AML Mutex handling function
7191AcpiExReleaseMutex where the function could fault under the very rare
7192condition when the interpreter has blocked, the interpreter lock is
7193released,
7194the interpreter is then reentered via the same thread, and attempts to
7195acquire an AML mutex that was previously acquired. FreeBSD report 140979.
7196Lin
7197Ming.
7198
7199Implemented additional configuration support for the AML "Debug Object".
7200Output from the debug object can now be enabled via a global variable,
7201AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
7202debugging.
7203This debug output is now available in the release version of ACPICA
7204instead
7205of just the debug version. Also, the entire debug output module can now
7206be
7207configured out of the ACPICA build if desired. One new file added,
7208executer/exdebug.c. Lin Ming, Bob Moore.
7209
7210Added header support for the ACPI MCHI table (Management Controller Host
7211Interface Table). This table was added in ACPI 4.0, but the defining
7212document
7213has only recently become available.
7214
7215Standardized output of integer values for ACPICA warnings/errors. Always
7216use
72170x prefix for hex output, always use %u for unsigned integer decimal
7218output.
7219Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
7220400
7221invocations.) These invocations were converted from the original
7222ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
7223
7224Example Code and Data Size: These are the sizes for the OS-independent
7225acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7226debug version of the code includes the debug output trace mechanism and
7227has a
7228much larger code and data size.
7229
7230  Previous Release:
7231    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
7232    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
7233  Current Release:
7234    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
7235    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
7236
72372) iASL Compiler/Disassembler and Tools:
7238
7239iASL: Implemented typechecking support for static (non-control method)
7240predefined named objects that are declared with the Name() operator. For
7241example, the type of this object is now validated to be of type Integer:
7242Name(_BBN, 1). This change migrates the compiler to using the core
7243predefined
7244name table instead of maintaining a local version. Added a new file,
7245aslpredef.c. ACPICA BZ 832.
7246
7247Disassembler: Added support for the ACPI 4.0 MCHI table.
7248
7249----------------------------------------
725021 January 2010. Summary of changes for version 20100121:
7251
72521) ACPI CA Core Subsystem:
7253
7254Added the 2010 copyright to all module headers and signons. This affects
7255virtually every file in the ACPICA core subsystem, the iASL compiler, the
7256tools/utilities, and the test suites.
7257
7258Implemented a change to the AcpiGetDevices interface to eliminate
7259unnecessary
7260invocations of the _STA method. In the case where a specific _HID is
7261requested, do not run _STA until a _HID match is found. This eliminates
7262potentially dozens of _STA calls during a search for a particular
7263device/HID,
7264which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
7265
7266Implemented an additional repair for predefined method return values.
7267Attempt
7268to repair unexpected NULL elements within returned Package objects.
7269Create
7270an
7271Integer of value zero, a NULL String, or a zero-length Buffer as
7272appropriate.
7273ACPICA BZ 818. Lin Ming, Bob Moore.
7274
7275Removed the obsolete ACPI_INTEGER data type. This type was introduced as
7276the
7277code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
7278(with
727964-bit AML integers). It is now obsolete and this change removes it from
7280the
7281ACPICA code base, replaced by UINT64. The original typedef has been
7282retained
7283for now for compatibility with existing device driver code. ACPICA BZ
7284824.
7285
7286Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
7287in
7288the parse tree object.
7289
7290Added additional warning options for the gcc-4 generation. Updated the
7291source
7292accordingly. This includes some code restructuring to eliminate
7293unreachable
7294code, elimination of some gotos, elimination of unused return values,
7295some
7296additional casting, and removal of redundant declarations.
7297
7298Example Code and Data Size: These are the sizes for the OS-independent
7299acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7300debug version of the code includes the debug output trace mechanism and
7301has a
7302much larger code and data size.
7303
7304  Previous Release:
7305    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
7306    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
7307  Current Release:
7308    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
7309    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
7310
73112) iASL Compiler/Disassembler and Tools:
7312
7313No functional changes for this release.
7314
7315----------------------------------------
731614 December 2009. Summary of changes for version 20091214:
7317
73181) ACPI CA Core Subsystem:
7319
7320Enhanced automatic data type conversions for predefined name repairs.
7321This
7322change expands the automatic repairs/conversions for predefined name
7323return
7324values to make Integers, Strings, and Buffers fully interchangeable.
7325Also,
7326a
7327Buffer can be converted to a Package of Integers if necessary. The
7328nsrepair.c
7329module was completely restructured. Lin Ming, Bob Moore.
7330
7331Implemented automatic removal of null package elements during predefined
7332name
7333repairs. This change will automatically remove embedded and trailing NULL
7334package elements from returned package objects that are defined to
7335contain
7336a
7337variable number of sub-packages. The driver is then presented with a
7338package
7339with no null elements to deal with. ACPICA BZ 819.
7340
7341Implemented a repair for the predefined _FDE and _GTM names. The expected
7342return value for both names is a Buffer of 5 DWORDs. This repair fixes
7343two
7344possible problems (both seen in the field), where a package of integers
7345is
7346returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
7347Kim.
7348
7349Implemented additional module-level code support. This change will
7350properly
7351execute module-level code that is not at the root of the namespace (under
7352a
7353Device object, etc.). Now executes the code within the current scope
7354instead
7355of the root. ACPICA BZ 762. Lin Ming.
7356
7357Fixed possible mutex acquisition errors when running _REG methods. Fixes
7358a
7359problem where mutex errors can occur when running a _REG method that is
7360in
7361the same scope as a method-defined operation region or an operation
7362region
7363under a module-level IF block. This type of code is rare, so the problem
7364has
7365not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
7366
7367Fixed a possible memory leak during module-level code execution. An
7368object
7369could be leaked for each block of executed module-level code if the
7370interpreter slack mode is enabled This change deletes any implicitly
7371returned
7372object from the module-level code block. Lin Ming.
7373
7374Removed messages for successful predefined repair(s). The repair
7375mechanism
7376was considered too wordy. Now, messages are only unconditionally emitted
7377if
7378the return object cannot be repaired. Existing messages for successful
7379repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
7380827.
7381
7382Example Code and Data Size: These are the sizes for the OS-independent
7383acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7384debug version of the code includes the debug output trace mechanism and
7385has a
7386much larger code and data size.
7387
7388  Previous Release:
7389    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
7390    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
7391  Current Release:
7392    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
7393    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
7394
73952) iASL Compiler/Disassembler and Tools:
7396
7397iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
7398files
7399were no longer automatically removed at the termination of the compile.
7400
7401acpiexec: Implemented the -f option to specify default region fill value.
7402This option specifies the value used to initialize buffers that simulate
7403operation regions. Default value is zero. Useful for debugging problems
7404that
7405depend on a specific initial value for a region or field.
7406
7407----------------------------------------
740812 November 2009. Summary of changes for version 20091112:
7409
74101) ACPI CA Core Subsystem:
7411
7412Implemented a post-order callback to AcpiWalkNamespace. The existing
7413interface only has a pre-order callback. This change adds an additional
7414parameter for a post-order callback which will be more useful for bus
7415scans.
7416ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
7417
7418Modified the behavior of the operation region memory mapping cache for
7419SystemMemory. Ensure that the memory mappings created for operation
7420regions
7421do not cross 4K page boundaries. Crossing a page boundary while mapping
7422regions can cause kernel warnings on some hosts if the pages have
7423different
7424attributes. Such regions are probably BIOS bugs, and this is the
7425workaround.
7426Linux BZ 14445. Lin Ming.
7427
7428Implemented an automatic repair for predefined methods that must return
7429sorted lists. This change will repair (by sorting) packages returned by
7430_ALR,
7431_PSS, and _TSS. Drivers can now assume that the packages are correctly
7432sorted
7433and do not contain NULL package elements. Adds one new file,
7434namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
7435
7436Fixed a possible fault during predefined name validation if a return
7437Package
7438object contains NULL elements. Also adds a warning if a NULL element is
7439followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
7440may
7441include repair or removal of all such NULL elements where possible.
7442
7443Implemented additional module-level executable AML code support. This
7444change
7445will execute module-level code that is not at the root of the namespace
7446(under a Device object, etc.) at table load time. Module-level executable
7447AML
7448code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
7449
7450Implemented a new internal function to create Integer objects. This
7451function
7452simplifies miscellaneous object creation code. ACPICA BZ 823.
7453
7454Reduced the severity of predefined repair messages, Warning to Info.
7455Since
7456the object was successfully repaired, a warning is too severe. Reduced to
7457an
7458info message for now. These messages may eventually be changed to debug-
7459only.
7460ACPICA BZ 812.
7461
7462Example Code and Data Size: These are the sizes for the OS-independent
7463acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7464debug version of the code includes the debug output trace mechanism and
7465has a
7466much larger code and data size.
7467
7468  Previous Release:
7469    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
7470    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
7471  Current Release:
7472    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
7473    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
7474
74752) iASL Compiler/Disassembler and Tools:
7476
7477iASL: Implemented Switch() with While(1) so that Break works correctly.
7478This
7479change correctly implements the Switch operator with a surrounding
7480While(1)
7481so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
7482
7483iASL: Added a message if a package initializer list is shorter than
7484package
7485length. Adds a new remark for a Package() declaration if an initializer
7486list
7487exists, but is shorter than the declared length of the package. Although
7488technically legal, this is probably a coding error and it is seen in the
7489field. ACPICA BZ 815. Lin Ming, Bob Moore.
7490
7491iASL: Fixed a problem where the compiler could fault after the maximum
7492number
7493of errors was reached (200).
7494
7495acpixtract: Fixed a possible warning for pointer cast if the compiler
7496warning
7497level set very high.
7498
7499----------------------------------------
750013 October 2009. Summary of changes for version 20091013:
7501
75021) ACPI CA Core Subsystem:
7503
7504Fixed a problem where an Operation Region _REG method could be executed
7505more
7506than once. If a custom address space handler is installed by the host
7507before
7508the "initialize operation regions" phase of the ACPICA initialization,
7509any
7510_REG methods for that address space could be executed twice. This change
7511fixes the problem. ACPICA BZ 427. Lin Ming.
7512
7513Fixed a possible memory leak for the Scope() ASL operator. When the exact
7514invocation of "Scope(\)" is executed (change scope to root), one internal
7515operand object was leaked. Lin Ming.
7516
7517Implemented a run-time repair for the _MAT predefined method. If the _MAT
7518return value is defined as a Field object in the AML, and the field
7519size is less than or equal to the default width of an integer (32 or
752064),_MAT
7521can incorrectly return an Integer instead of a Buffer. ACPICA now
7522automatically repairs this problem. ACPICA BZ 810.
7523
7524Implemented a run-time repair for the _BIF and _BIX predefined methods.
7525The
7526"OEM Information" field is often incorrectly returned as an Integer with
7527value zero if the field is not supported by the platform. This is due to
7528an
7529ambiguity in the ACPI specification. The field should always be a string.
7530ACPICA now automatically repairs this problem by returning a NULL string
7531within the returned Package. ACPICA BZ 807.
7532
7533Example Code and Data Size: These are the sizes for the OS-independent
7534acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7535debug version of the code includes the debug output trace mechanism and
7536has a
7537much larger code and data size.
7538
7539  Previous Release:
7540    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
7541    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
7542  Current Release:
7543    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
7544    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
7545
75462) iASL Compiler/Disassembler and Tools:
7547
7548Disassembler: Fixed a problem where references to external symbols that
7549contained one or more parent-prefixes (carats) were not handled
7550correctly,
7551possibly causing a fault. ACPICA BZ 806. Lin Ming.
7552
7553Disassembler: Restructured the code so that all functions that handle
7554external symbols are in a single module. One new file is added,
7555common/dmextern.c.
7556
7557AML Debugger: Added a max count argument for the Batch command (which
7558executes multiple predefined methods within the namespace.)
7559
7560iASL: Updated the compiler documentation (User Reference.) Available at
7561http://www.acpica.org/documentation/. ACPICA BZ 750.
7562
7563AcpiXtract: Updated for Lint and other formatting changes. Close all open
7564files.
7565
7566----------------------------------------
756703 September 2009. Summary of changes for version 20090903:
7568
75691) ACPI CA Core Subsystem:
7570
7571For Windows Vista compatibility, added the automatic execution of an _INI
7572method located at the namespace root (\_INI). This method is executed at
7573table load time. This support is in addition to the automatic execution
7574of
7575\_SB._INI. Lin Ming.
7576
7577Fixed a possible memory leak in the interpreter for AML package objects
7578if
7579the package initializer list is longer than the defined size of the
7580package.
7581This apparently can only happen if the BIOS changes the package size on
7582the
7583fly (seen in a _PSS object), as ASL compilers do not allow this. The
7584interpreter will truncate the package to the defined size (and issue an
7585error
7586message), but previously could leave the extra objects undeleted if they
7587were
7588pre-created during the argument processing (such is the case if the
7589package
7590consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
7591
7592Fixed a problem seen when a Buffer or String is stored to itself via ASL.
7593This has been reported in the field. Previously, ACPICA would zero out
7594the
7595buffer/string. Now, the operation is treated as a noop. Provides Windows
7596compatibility. ACPICA BZ 803. Lin Ming.
7597
7598Removed an extraneous error message for ASL constructs of the form
7599Store(LocalX,LocalX) when LocalX is uninitialized. These curious
7600statements
7601are seen in many BIOSs and are once again treated as NOOPs and no error
7602is
7603emitted when they are encountered. ACPICA BZ 785.
7604
7605Fixed an extraneous warning message if a _DSM reserved method returns a
7606Package object. _DSM can return any type of object, so validation on the
7607return type cannot be performed. ACPICA BZ 802.
7608
7609Example Code and Data Size: These are the sizes for the OS-independent
7610acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7611debug version of the code includes the debug output trace mechanism and
7612has a
7613much larger code and data size.
7614
7615  Previous Release:
7616    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
7617    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
7618  Current Release:
7619    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
7620    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
7621
76222) iASL Compiler/Disassembler and Tools:
7623
7624iASL: Fixed a problem with the use of the Alias operator and Resource
7625Templates. The correct alias is now constructed and no error is emitted.
7626ACPICA BZ 738.
7627
7628iASL: Implemented the -I option to specify additional search directories
7629for
7630include files. Allows multiple additional search paths for include files.
7631Directories are searched in the order specified on the command line
7632(after
7633the local directory is searched.) ACPICA BZ 800.
7634
7635iASL: Fixed a problem where the full pathname for include files was not
7636emitted for warnings/errors. This caused the IDE support to not work
7637properly. ACPICA BZ 765.
7638
7639iASL: Implemented the -@ option to specify a Windows-style response file
7640containing additional command line options. ACPICA BZ 801.
7641
7642AcpiExec: Added support to load multiple AML files simultaneously (such
7643as
7644a
7645DSDT and multiple SSDTs). Also added support for wildcards within the AML
7646pathname. These features allow all machine tables to be easily loaded and
7647debugged together. ACPICA BZ 804.
7648
7649Disassembler: Added missing support for disassembly of HEST table Error
7650Bank
7651subtables.
7652
7653----------------------------------------
765430 July 2009. Summary of changes for version 20090730:
7655
7656The ACPI 4.0 implementation for ACPICA is complete with this release.
7657
76581) ACPI CA Core Subsystem:
7659
7660ACPI 4.0: Added header file support for all new and changed ACPI tables.
7661Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
7662new
7663for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
7664BERT,
7665EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
7666There
7667have been some ACPI 4.0 changes to other existing tables. Split the large
7668actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
7669
7670ACPI 4.0: Implemented predefined name validation for all new names. There
7671are
767231 new names in ACPI 4.0. The predefined validation module was split into
7673two
7674files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
7675
7676Implemented support for so-called "module-level executable code". This is
7677executable AML code that exists outside of any control method and is
7678intended
7679to be executed at table load time. Although illegal since ACPI 2.0, this
7680type
7681of code still exists and is apparently still being created. Blocks of
7682this
7683code are now detected and executed as intended. Currently, the code
7684blocks
7685must exist under either an If, Else, or While construct; these are the
7686typical cases seen in the field. ACPICA BZ 762. Lin Ming.
7687
7688Implemented an automatic dynamic repair for predefined names that return
7689nested Package objects. This applies to predefined names that are defined
7690to
7691return a variable-length Package of sub-packages. If the number of sub-
7692packages is one, BIOS code is occasionally seen that creates a simple
7693single
7694package with no sub-packages. This code attempts to fix the problem by
7695wrapping a new package object around the existing package. These methods
7696can
7697be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
7698BZ
7699790.
7700
7701Fixed a regression introduced in 20090625 for the AcpiGetDevices
7702interface.
7703The _HID/_CID matching was broken and no longer matched IDs correctly.
7704ACPICA
7705BZ 793.
7706
7707Fixed a problem with AcpiReset where the reset would silently fail if the
7708register was one of the protected I/O ports. AcpiReset now bypasses the
7709port
7710validation mechanism. This may eventually be driven into the
7711AcpiRead/Write
7712interfaces.
7713
7714Fixed a regression related to the recent update of the AcpiRead/Write
7715interfaces. A sleep/suspend could fail if the optional PM2 Control
7716register
7717does not exist during an attempt to write the Bus Master Arbitration bit.
7718(However, some hosts already delete the code that writes this bit, and
7719the
7720code may in fact be obsolete at this date.) ACPICA BZ 799.
7721
7722Fixed a problem where AcpiTerminate could fault if inadvertently called
7723twice
7724in succession. ACPICA BZ 795.
7725
7726Example Code and Data Size: These are the sizes for the OS-independent
7727acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7728debug version of the code includes the debug output trace mechanism and
7729has a
7730much larger code and data size.
7731
7732  Previous Release:
7733    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
7734    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
7735  Current Release:
7736    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
7737    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
7738
77392) iASL Compiler/Disassembler and Tools:
7740
7741ACPI 4.0: Implemented disassembler support for all new ACPI tables and
7742changes to existing tables. ACPICA BZ 775.
7743
7744----------------------------------------
774525 June 2009. Summary of changes for version 20090625:
7746
7747The ACPI 4.0 Specification was released on June 16 and is available at
7748www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
7749continue for the next few releases.
7750
77511) ACPI CA Core Subsystem:
7752
7753ACPI 4.0: Implemented interpreter support for the IPMI operation region
7754address space. Includes support for bi-directional data buffers and an
7755IPMI
7756address space handler (to be installed by an IPMI device driver.) ACPICA
7757BZ
7758773. Lin Ming.
7759
7760ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
7761Includes
7762support in both the header files and the disassembler.
7763
7764Completed a major update for the AcpiGetObjectInfo external interface.
7765Changes include:
7766 - Support for variable, unlimited length HID, UID, and CID strings.
7767 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
7768etc.)
7769 - Call the _SxW power methods on behalf of a device object.
7770 - Determine if a device is a PCI root bridge.
7771 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
7772These changes will require an update to all callers of this interface.
7773See
7774the updated ACPICA Programmer Reference for details. One new source file
7775has
7776been added - utilities/utids.c. ACPICA BZ 368, 780.
7777
7778Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
7779transfers. The Value parameter has been extended from 32 bits to 64 bits
7780in
7781order to support new ACPI 4.0 tables. These changes will require an
7782update
7783to
7784all callers of these interfaces. See the ACPICA Programmer Reference for
7785details. ACPICA BZ 768.
7786
7787Fixed several problems with AcpiAttachData. The handler was not invoked
7788when
7789the host node was deleted. The data sub-object was not automatically
7790deleted
7791when the host node was deleted. The interface to the handler had an
7792unused
7793parameter, this was removed. ACPICA BZ 778.
7794
7795Enhanced the function that dumps ACPI table headers. All non-printable
7796characters in the string fields are now replaced with '?' (Signature,
7797OemId,
7798OemTableId, and CompilerId.) ACPI tables with non-printable characters in
7799these fields are occasionally seen in the field. ACPICA BZ 788.
7800
7801Fixed a problem with predefined method repair code where the code that
7802attempts to repair/convert an object of incorrect type is only executed
7803on
7804the first time the predefined method is called. The mechanism that
7805disables
7806warnings on subsequent calls was interfering with the repair mechanism.
7807ACPICA BZ 781.
7808
7809Fixed a possible memory leak in the predefined validation/repair code
7810when
7811a
7812buffer is automatically converted to an expected string object.
7813
7814Removed obsolete 16-bit files from the distribution and from the current
7815git
7816tree head. ACPICA BZ 776.
7817
7818Example Code and Data Size: These are the sizes for the OS-independent
7819acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7820debug version of the code includes the debug output trace mechanism and
7821has a
7822much larger code and data size.
7823
7824  Previous Release:
7825    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
7826    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
7827  Current Release:
7828    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
7829    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
7830
78312) iASL Compiler/Disassembler and Tools:
7832
7833ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
7834operation region keyword. ACPICA BZ 771, 772. Lin Ming.
7835
7836ACPI 4.0: iASL - implemented compile-time validation support for all new
7837predefined names and control methods (31 total). ACPICA BZ 769.
7838
7839----------------------------------------
784021 May 2009. Summary of changes for version 20090521:
7841
78421) ACPI CA Core Subsystem:
7843
7844Disabled the preservation of the SCI enable bit in the PM1 control
7845register.
7846The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
7847to
7848be
7849a "preserved" bit - "OSPM always preserves this bit position", section
78504.7.3.2.1. However, some machines fail if this bit is in fact preserved
7851because the bit needs to be explicitly set by the OS as a workaround. No
7852machines fail if the bit is not preserved. Therefore, ACPICA no longer
7853attempts to preserve this bit.
7854
7855Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
7856incorrectly formed _PRT package could cause a fault. Added validation to
7857ensure that each package element is actually a sub-package.
7858
7859Implemented a new interface to install or override a single control
7860method,
7861AcpiInstallMethod. This interface is useful when debugging in order to
7862repair
7863an existing method or to install a missing method without having to
7864override
7865the entire ACPI table. See the ACPICA Programmer Reference for use and
7866examples. Lin Ming, Bob Moore.
7867
7868Fixed several reference count issues with the DdbHandle object that is
7869created from a Load or LoadTable operator. Prevent premature deletion of
7870the
7871object. Also, mark the object as invalid once the table has been
7872unloaded.
7873This is needed because the handle itself may not be deleted after the
7874table
7875unload, depending on whether it has been stored in a named object by the
7876caller. Lin Ming.
7877
7878Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
7879mutexes of the same sync level are acquired but then not released in
7880strict
7881opposite order, the internally maintained Current Sync Level becomes
7882confused
7883and can cause subsequent execution errors. ACPICA BZ 471.
7884
7885Changed the allowable release order for ASL mutex objects. The ACPI 4.0
7886specification has been changed to make the SyncLevel for mutex objects
7887more
7888useful. When releasing a mutex, the SyncLevel of the mutex must now be
7889the
7890same as the current sync level. This makes more sense than the previous
7891rule
7892(SyncLevel less than or equal). This change updates the code to match the
7893specification.
7894
7895Fixed a problem with the local version of the AcpiOsPurgeCache function.
7896The
7897(local) cache must be locked during all cache object deletions. Andrew
7898Baumann.
7899
7900Updated the Load operator to use operation region interfaces. This
7901replaces
7902direct memory mapping with region access calls. Now, all region accesses
7903go
7904through the installed region handler as they should.
7905
7906Simplified and optimized the NsGetNextNode function. Reduced parameter
7907count
7908and reduced code for this frequently used function.
7909
7910Example Code and Data Size: These are the sizes for the OS-independent
7911acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7912debug version of the code includes the debug output trace mechanism and
7913has a
7914much larger code and data size.
7915
7916  Previous Release:
7917    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
7918    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
7919  Current Release:
7920    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
7921    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
7922
79232) iASL Compiler/Disassembler and Tools:
7924
7925Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
7926problems
7927with sub-table disassembly and handling invalid sub-tables. Attempt
7928recovery
7929after an invalid sub-table ID.
7930
7931----------------------------------------
793222 April 2009. Summary of changes for version 20090422:
7933
79341) ACPI CA Core Subsystem:
7935
7936Fixed a compatibility issue with the recently released I/O port
7937protection
7938mechanism. For windows compatibility, 1) On a port protection violation,
7939simply ignore the request and do not return an exception (allow the
7940control
7941method to continue execution.) 2) If only part of the request overlaps a
7942protected port, read/write the individual ports that are not protected.
7943Linux
7944BZ 13036. Lin Ming
7945
7946Enhanced the execution of the ASL/AML BreakPoint operator so that it
7947actually
7948breaks into the AML debugger if the debugger is present. This matches the
7949ACPI-defined behavior.
7950
7951Fixed several possible warnings related to the use of the configurable
7952ACPI_THREAD_ID. This type can now be configured as either an integer or a
7953pointer with no warnings. Also fixes several warnings in printf-like
7954statements for the 64-bit build when the type is configured as a pointer.
7955ACPICA BZ 766, 767.
7956
7957Fixed a number of possible warnings when compiling with gcc 4+ (depending
7958on
7959warning options.) Examples include printf formats, aliasing, unused
7960globals,
7961missing prototypes, missing switch default statements, use of non-ANSI
7962library functions, use of non-ANSI constructs. See generate/unix/Makefile
7963for
7964a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
7965
7966Example Code and Data Size: These are the sizes for the OS-independent
7967acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7968debug version of the code includes the debug output trace mechanism and
7969has a
7970much larger code and data size.
7971
7972  Previous Release:
7973    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
7974    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
7975  Current Release:
7976    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
7977    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
7978
79792) iASL Compiler/Disassembler and Tools:
7980
7981iASL: Fixed a generation warning from Bison 2.3 and fixed several
7982warnings
7983on
7984the 64-bit build.
7985
7986iASL: Fixed a problem where the Unix/Linux versions of the compiler could
7987not
7988correctly digest Windows/DOS formatted files (with CR/LF).
7989
7990iASL: Added a new option for "quiet mode" (-va) that produces only the
7991compilation summary, not individual errors and warnings. Useful for large
7992batch compilations.
7993
7994AcpiExec: Implemented a new option (-z) to enable a forced
7995semaphore/mutex
7996timeout that can be used to detect hang conditions during execution of
7997AML
7998code (includes both internal semaphores and AML-defined mutexes and
7999events.)
8000
8001Added new makefiles for the generation of acpica in a generic unix-like
8002environment. These makefiles are intended to generate the acpica tools
8003and
8004utilities from the original acpica git source tree structure.
8005
8006Test Suites: Updated and cleaned up the documentation files. Updated the
8007copyrights to 2009, affecting all source files. Use the new version of
8008iASL
8009with quiet mode. Increased the number of available semaphores in the
8010Windows
8011OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
8012added
8013an alternate implementation of the semaphore timeout to allow aslts to
8014execute fully on Cygwin.
8015
8016----------------------------------------
801720 March 2009. Summary of changes for version 20090320:
8018
80191) ACPI CA Core Subsystem:
8020
8021Fixed a possible race condition between AcpiWalkNamespace and dynamic
8022table
8023unloads. Added a reader/writer locking mechanism to allow multiple
8024concurrent
8025namespace walks (readers), but block a dynamic table unload until it can
8026gain
8027exclusive write access to the namespace. This fixes a problem where a
8028table
8029unload could (possibly catastrophically) delete the portion of the
8030namespace
8031that is currently being examined by a walk. Adds a new file, utlock.c,
8032that
8033implements the reader/writer lock mechanism. ACPICA BZ 749.
8034
8035Fixed a regression introduced in version 20090220 where a change to the
8036FADT
8037handling could cause the ACPICA subsystem to access non-existent I/O
8038ports.
8039
8040Modified the handling of FADT register and table (FACS/DSDT) addresses.
8041The
8042FADT can contain both 32-bit and 64-bit versions of these addresses.
8043Previously, the 64-bit versions were favored, meaning that if both 32 and
804464
8045versions were valid, but not equal, the 64-bit version was used. This was
8046found to cause some machines to fail. Now, in this case, the 32-bit
8047version
8048is used instead. This now matches the Windows behavior.
8049
8050Implemented a new mechanism to protect certain I/O ports. Provides
8051Microsoft
8052compatibility and protects the standard PC I/O ports from access via AML
8053code. Adds a new file, hwvalid.c
8054
8055Fixed a possible extraneous warning message from the FADT support. The
8056message warns of a 32/64 length mismatch between the legacy and GAS
8057definitions for a register.
8058
8059Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
8060is
8061made obsolete by the port protection mechanism above. It was previously
8062used
8063to validate the entire address range of an operation region, which could
8064be
8065incorrect if the range included illegal ports, but fields within the
8066operation region did not actually access those ports. Validation is now
8067performed on a per-field basis instead of the entire region.
8068
8069Modified the handling of the PM1 Status Register ignored bit (bit 11.)
8070Ignored bits must be "preserved" according to the ACPI spec. Usually,
8071this
8072means a read/modify/write when writing to the register. However, for
8073status
8074registers, writing a one means clear the event. Writing a zero means
8075preserve
8076the event (do not clear.) This behavior is clarified in the ACPI 4.0
8077spec,
8078and the ACPICA code now simply always writes a zero to the ignored bit.
8079
8080Modified the handling of ignored bits for the PM1 A/B Control Registers.
8081As
8082per the ACPI specification, for the control registers, preserve
8083(read/modify/write) all bits that are defined as either reserved or
8084ignored.
8085
8086Updated the handling of write-only bits in the PM1 A/B Control Registers.
8087When reading the register, zero the write-only bits as per the ACPI spec.
8088ACPICA BZ 443. Lin Ming.
8089
8090Removed "Linux" from the list of supported _OSI strings. Linux no longer
8091wants to reply true to this request. The Windows strings are the only
8092paths
8093through the AML that are tested and known to work properly.
8094
8095  Previous Release:
8096    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
8097    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
8098  Current Release:
8099    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
8100    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
8101
81022) iASL Compiler/Disassembler and Tools:
8103
8104Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
8105and
8106aetables.c
8107
8108----------------------------------------
810920 February 2009. Summary of changes for version 20090220:
8110
81111) ACPI CA Core Subsystem:
8112
8113Optimized the ACPI register locking. Removed locking for reads from the
8114ACPI
8115bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
8116is
8117not required when reading the single-bit registers. The
8118AcpiGetRegisterUnlocked function is no longer needed and has been
8119removed.
8120This will improve performance for reads on these registers. ACPICA BZ
8121760.
8122
8123Fixed the parameter validation for AcpiRead/Write. Now return
8124AE_BAD_PARAMETER if the input register pointer is null, and
8125AE_BAD_ADDRESS
8126if
8127the register has an address of zero. Previously, these cases simply
8128returned
8129AE_OK. For optional registers such as PM1B status/enable/control, the
8130caller
8131should check for a valid register address before calling. ACPICA BZ 748.
8132
8133Renamed the external ACPI bit register access functions. Renamed
8134AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
8135functions. The new names are AcpiReadBitRegister and
8136AcpiWriteBitRegister.
8137Also, restructured the code for these functions by simplifying the code
8138path
8139and condensing duplicate code to reduce code size.
8140
8141Added new functions to transparently handle the possibly split PM1 A/B
8142registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
8143functions
8144now handle the split registers for PM1 Status, Enable, and Control.
8145ACPICA
8146BZ
8147746.
8148
8149Added a function to handle the PM1 control registers,
8150AcpiHwWritePm1Control.
8151This function writes both of the PM1 control registers (A/B). These
8152registers
8153are different than the PM1 A/B status and enable registers in that
8154different
8155values can be written to the A/B registers. Most notably, the SLP_TYP
8156bits
8157can be different, as per the values returned from the _Sx predefined
8158methods.
8159
8160Removed an extra register write within AcpiHwClearAcpiStatus. This
8161function
8162was writing an optional PM1B status register twice. The existing call to
8163the
8164low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
8165A/B
8166register. ACPICA BZ 751.
8167
8168Split out the PM1 Status registers from the FADT. Added new globals for
8169these
8170registers (A/B), similar to the way the PM1 Enable registers are handled.
8171Instead of overloading the FADT Event Register blocks. This makes the
8172code
8173clearer and less prone to error.
8174
8175Fixed the warning message for when the platform contains too many ACPI
8176tables
8177for the default size of the global root table data structure. The
8178calculation
8179for the truncation value was incorrect.
8180
8181Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
8182obsolete macro, since it is now a simple reference to ->common.type.
8183There
8184were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
8185
8186Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
8187TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
8188simply SLEEP_TYPE. ACPICA BZ 754.
8189
8190Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
8191function is only needed on 64-bit host operating systems and is thus not
8192included for 32-bit hosts.
8193
8194Debug output: print the input and result for invocations of the _OSI
8195reserved
8196control method via the ACPI_LV_INFO debug level. Also, reduced some of
8197the
8198verbosity of this debug level. Len Brown.
8199
8200Example Code and Data Size: These are the sizes for the OS-independent
8201acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8202debug version of the code includes the debug output trace mechanism and
8203has a
8204much larger code and data size.
8205
8206  Previous Release:
8207    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
8208    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
8209  Current Release:
8210    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
8211    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
8212
82132) iASL Compiler/Disassembler and Tools:
8214
8215Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
8216various legal performance profiles.
8217
8218----------------------------------------
821923 January 2009. Summary of changes for version 20090123:
8220
82211) ACPI CA Core Subsystem:
8222
8223Added the 2009 copyright to all module headers and signons. This affects
8224virtually every file in the ACPICA core subsystem, the iASL compiler, and
8225the tools/utilities.
8226
8227Implemented a change to allow the host to override any ACPI table,
8228including
8229dynamically loaded tables. Previously, only the DSDT could be replaced by
8230the
8231host. With this change, the AcpiOsTableOverride interface is called for
8232each
8233table found in the RSDT/XSDT during ACPICA initialization, and also
8234whenever
8235a table is dynamically loaded via the AML Load operator.
8236
8237Updated FADT flag definitions, especially the Boot Architecture flags.
8238
8239Debugger: For the Find command, automatically pad the input ACPI name
8240with
8241underscores if the name is shorter than 4 characters. This enables a
8242match
8243with the actual namespace entry which is itself padded with underscores.
8244
8245Example Code and Data Size: These are the sizes for the OS-independent
8246acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8247debug version of the code includes the debug output trace mechanism and
8248has a
8249much larger code and data size.
8250
8251  Previous Release:
8252    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
8253    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
8254  Current Release:
8255    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
8256    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
8257
82582) iASL Compiler/Disassembler and Tools:
8259
8260Fix build error under Bison-2.4.
8261
8262Dissasembler: Enhanced FADT support. Added decoding of the Boot
8263Architecture
8264flags. Now decode all flags, regardless of the FADT version. Flag output
8265includes the FADT version which first defined each flag.
8266
8267The iASL -g option now dumps the RSDT to a file (in addition to the FADT
8268and
8269DSDT). Windows only.
8270
8271----------------------------------------
827204 December 2008. Summary of changes for version 20081204:
8273
82741) ACPI CA Core Subsystem:
8275
8276The ACPICA Programmer Reference has been completely updated and revamped
8277for
8278this release. This includes updates to the external interfaces, OSL
8279interfaces, the overview sections, and the debugger reference.
8280
8281Several new ACPICA interfaces have been implemented and documented in the
8282programmer reference:
8283AcpiReset - Writes the reset value to the FADT-defined reset register.
8284AcpiDisableAllGpes - Disable all available GPEs.
8285AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
8286AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
8287AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
8288AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
8289AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
8290
8291Most of the public ACPI hardware-related interfaces have been moved to a
8292new
8293file, components/hardware/hwxface.c
8294
8295Enhanced the FADT parsing and low-level ACPI register access: The ACPI
8296register lengths within the FADT are now used, and the low level ACPI
8297register access no longer hardcodes the ACPI register lengths. Given that
8298there may be some risk in actually trusting the FADT register lengths, a
8299run-
8300time option was added to fall back to the default hardcoded lengths if
8301the
8302FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
8303option is set to true for now, and a warning is issued if a suspicious
8304FADT
8305register length is overridden with the default value.
8306
8307Fixed a reference count issue in NsRepairObject. This problem was
8308introduced
8309in version 20081031 as part of a fix to repair Buffer objects within
8310Packages. Lin Ming.
8311
8312Added semaphore support to the Linux/Unix application OS-services layer
8313(OSL). ACPICA BZ 448. Lin Ming.
8314
8315Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
8316will
8317be implemented in the OSL, or will binary semaphores be used instead.
8318
8319Example Code and Data Size: These are the sizes for the OS-independent
8320acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8321debug version of the code includes the debug output trace mechanism and
8322has a
8323much larger code and data size.
8324
8325  Previous Release:
8326    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
8327    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
8328  Current Release:
8329    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
8330    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
8331
83322) iASL Compiler/Disassembler and Tools:
8333
8334iASL: Completed the '-e' option to include additional ACPI tables in
8335order
8336to
8337aid with disassembly and External statement generation. ACPICA BZ 742.
8338Lin
8339Ming.
8340
8341iASL: Removed the "named object in while loop" error. The compiler cannot
8342determine how many times a loop will execute. ACPICA BZ 730.
8343
8344Disassembler: Implemented support for FADT revision 2 (MS extension).
8345ACPICA
8346BZ 743.
8347
8348Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
8349MCFG).
8350
8351----------------------------------------
835231 October 2008. Summary of changes for version 20081031:
8353
83541) ACPI CA Core Subsystem:
8355
8356Restructured the ACPICA header files into public/private. acpi.h now
8357includes
8358only the "public" acpica headers. All other acpica headers are "private"
8359and
8360should not be included by acpica users. One new file, accommon.h is used
8361to
8362include the commonly used private headers for acpica code generation.
8363Future
8364plans include moving all private headers to a new subdirectory.
8365
8366Implemented an automatic Buffer->String return value conversion for
8367predefined ACPI methods. For these methods (such as _BIF), added
8368automatic
8369conversion for return objects that are required to be a String, but a
8370Buffer
8371was found instead. This can happen when reading string battery data from
8372an
8373operation region, because it used to be difficult to convert the data
8374from
8375buffer to string from within the ASL. Ensures that the host OS is
8376provided
8377with a valid null-terminated string. Linux BZ 11822.
8378
8379Updated the FACS waking vector interfaces. Split
8380AcpiSetFirmwareWakingVector
8381into two: one for the 32-bit vector, another for the 64-bit vector. This
8382is
8383required because the host OS must setup the wake much differently for
8384each
8385vector (real vs. protected mode, etc.) and the interface itself should
8386not
8387be
8388deciding which vector to use. Also, eliminated the
8389GetFirmwareWakingVector
8390interface, as it served no purpose (only the firmware reads the vector,
8391OS
8392only writes the vector.) ACPICA BZ 731.
8393
8394Implemented a mechanism to escape infinite AML While() loops. Added a
8395loop
8396counter to force exit from AML While loops if the count becomes too
8397large.
8398This can occur in poorly written AML when the hardware does not respond
8399within a while loop and the loop does not implement a timeout. The
8400maximum
8401loop count is configurable. A new exception code is returned when a loop
8402is
8403broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
8404
8405Optimized the execution of AML While loops. Previously, a control state
8406object was allocated and freed for each execution of the loop. The
8407optimization is to simply reuse the control state for each iteration.
8408This
8409speeds up the raw loop execution time by about 5%.
8410
8411Enhanced the implicit return mechanism. For Windows compatibility, return
8412an
8413implicit integer of value zero for methods that contain no executable
8414code.
8415Such methods are seen in the field as stubs (presumably), and can cause
8416drivers to fail if they expect a return value. Lin Ming.
8417
8418Allow multiple backslashes as root prefixes in namepaths. In a fully
8419qualified namepath, allow multiple backslash prefixes. This can happen
8420(and
8421is seen in the field) because of the use of a double-backslash in strings
8422(since backslash is the escape character) causing confusion. ACPICA BZ
8423739
8424Lin Ming.
8425
8426Emit a warning if two different FACS or DSDT tables are discovered in the
8427FADT. Checks if there are two valid but different addresses for the FACS
8428and
8429DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
8430
8431Consolidated the method argument count validation code. Merged the code
8432that
8433validates control method argument counts into the predefined validation
8434module. Eliminates possible multiple warnings for incorrect argument
8435counts.
8436
8437Implemented ACPICA example code. Includes code for ACPICA initialization,
8438handler installation, and calling a control method. Available at
8439source/tools/examples.
8440
8441Added a global pointer for FACS table to simplify internal FACS access.
8442Use
8443the global pointer instead of using AcpiGetTableByIndex for each FACS
8444access.
8445This simplifies the code for the Global Lock and the Firmware Waking
8446Vector(s).
8447
8448Example Code and Data Size: These are the sizes for the OS-independent
8449acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8450debug version of the code includes the debug output trace mechanism and
8451has a
8452much larger code and data size.
8453
8454  Previous Release:
8455    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
8456    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
8457  Current Release:
8458    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
8459    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
8460
84612) iASL Compiler/Disassembler and Tools:
8462
8463iASL: Improved disassembly of external method calls. Added the -e option
8464to
8465allow the inclusion of additional ACPI tables to help with the
8466disassembly
8467of
8468method invocations and the generation of external declarations during the
8469disassembly. Certain external method invocations cannot be disassembled
8470properly without the actual declaration of the method. Use the -e option
8471to
8472include the table where the external method(s) are actually declared.
8473Most
8474useful for disassembling SSDTs that make method calls back to the master
8475DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
8476-d
8477-e dsdt.aml ssdt1.aml
8478
8479iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
8480problem where the use of an alias within a namepath would result in a not
8481found error or cause the compiler to fault. Also now allows forward
8482references from the Alias operator itself. ACPICA BZ 738.
8483
8484----------------------------------------
848526 September 2008. Summary of changes for version 20080926:
8486
84871) ACPI CA Core Subsystem:
8488
8489Designed and implemented a mechanism to validate predefined ACPI methods
8490and
8491objects. This code validates the predefined ACPI objects (objects whose
8492names
8493start with underscore) that appear in the namespace, at the time they are
8494evaluated. The argument count and the type of the returned object are
8495validated against the ACPI specification. The purpose of this validation
8496is
8497to detect problems with the BIOS-implemented predefined ACPI objects
8498before
8499the results are returned to the ACPI-related drivers. Future enhancements
8500may
8501include actual repair of incorrect return objects where possible. Two new
8502files are nspredef.c and acpredef.h.
8503
8504Fixed a fault in the AML parser if a memory allocation fails during the
8505Op
8506completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
8507
8508Fixed an issue with implicit return compatibility. This change improves
8509the
8510implicit return mechanism to be more compatible with the MS interpreter.
8511Lin
8512Ming, ACPICA BZ 349.
8513
8514Implemented support for zero-length buffer-to-string conversions. Allow
8515zero
8516length strings during interpreter buffer-to-string conversions. For
8517example,
8518during the ToDecimalString and ToHexString operators, as well as implicit
8519conversions. Fiodor Suietov, ACPICA BZ 585.
8520
8521Fixed two possible memory leaks in the error exit paths of
8522AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
8523are
8524similar in that they use a stack of state objects in order to eliminate
8525recursion. The stack must be fully unwound and deallocated if an error
8526occurs. Lin Ming. ACPICA BZ 383.
8527
8528Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
8529global
8530ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
8531Moore ACPICA BZ 442.
8532
8533Removed the obsolete version number in module headers. Removed the
8534"$Revision" number that appeared in each module header. This version
8535number
8536was useful under SourceSafe and CVS, but has no meaning under git. It is
8537not
8538only incorrect, it could also be misleading.
8539
8540Example Code and Data Size: These are the sizes for the OS-independent
8541acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8542debug version of the code includes the debug output trace mechanism and
8543has a
8544much larger code and data size.
8545
8546  Previous Release:
8547    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8548    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
8549  Current Release:
8550    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
8551    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
8552
8553----------------------------------------
855429 August 2008. Summary of changes for version 20080829:
8555
85561) ACPI CA Core Subsystem:
8557
8558Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
8559Reference. Changes include the elimination of cheating on the Object
8560field
8561for the DdbHandle subtype, addition of a reference class field to
8562differentiate the various reference types (instead of an AML opcode), and
8563the
8564cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
8565
8566Reduce an error to a warning for an incorrect method argument count.
8567Previously aborted with an error if too few arguments were passed to a
8568control method via the external ACPICA interface. Now issue a warning
8569instead
8570and continue. Handles the case where the method inadvertently declares
8571too
8572many arguments, but does not actually use the extra ones. Applies mainly
8573to
8574the predefined methods. Lin Ming. Linux BZ 11032.
8575
8576Disallow the evaluation of named object types with no intrinsic value.
8577Return
8578AE_TYPE for objects that have no value and therefore evaluation is
8579undefined:
8580Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
8581of
8582these types were allowed, but an exception would be generated at some
8583point
8584during the evaluation. Now, the error is generated up front.
8585
8586Fixed a possible memory leak in the AcpiNsGetExternalPathname function
8587(nsnames.c). Fixes a leak in the error exit path.
8588
8589Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
8590debug
8591levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
8592ACPI_EXCEPTION
8593interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
8594ACPI_LV_EVENTS.
8595
8596Removed obsolete and/or unused exception codes from the acexcep.h header.
8597There is the possibility that certain device drivers may be affected if
8598they
8599use any of these exceptions.
8600
8601The ACPICA documentation has been added to the public git source tree,
8602under
8603acpica/documents. Included are the ACPICA programmer reference, the iASL
8604compiler reference, and the changes.txt release logfile.
8605
8606Example Code and Data Size: These are the sizes for the OS-independent
8607acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8608debug version of the code includes the debug output trace mechanism and
8609has a
8610much larger code and data size.
8611
8612  Previous Release:
8613    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8614    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
8615  Current Release:
8616    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8617    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
8618
86192) iASL Compiler/Disassembler and Tools:
8620
8621Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
8622defines _SCP with 3 arguments. Previous versions defined it with only 1
8623argument. iASL now allows both definitions.
8624
8625iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
8626zero-
8627length subtables when disassembling ACPI tables. Also fixed a couple of
8628errors where a full 16-bit table type field was not extracted from the
8629input
8630properly.
8631
8632acpisrc: Improve comment counting mechanism for generating source code
8633statistics. Count first and last lines of multi-line comments as
8634whitespace,
8635not comment lines. Handle Linux legal header in addition to standard
8636acpica
8637header.
8638
8639----------------------------------------
8640
864129 July 2008. Summary of changes for version 20080729:
8642
86431) ACPI CA Core Subsystem:
8644
8645Fix a possible deadlock in the GPE dispatch. Remove call to
8646AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
8647attempt
8648to acquire the GPE lock but can deadlock since the GPE lock is already
8649held
8650at dispatch time. This code was introduced in version 20060831 as a
8651response
8652to Linux BZ 6881 and has since been removed from Linux.
8653
8654Add a function to dereference returned reference objects. Examines the
8655return
8656object from a call to AcpiEvaluateObject. Any Index or RefOf references
8657are
8658automatically dereferenced in an attempt to return something useful
8659(these
8660reference types cannot be converted into an external ACPI_OBJECT.)
8661Provides
8662MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
8663
8664x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
8665subtables for the MADT and one new subtable for the SRAT. Includes
8666disassembler and AcpiSrc support. Data from the Intel 64 Architecture
8667x2APIC
8668Specification, June 2008.
8669
8670Additional error checking for pathname utilities. Add error check after
8671all
8672calls to AcpiNsGetPathnameLength. Add status return from
8673AcpiNsBuildExternalPath and check after all calls. Add parameter
8674validation
8675to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
8676
8677Return status from the global init function AcpiUtGlobalInitialize. This
8678is
8679used by both the kernel subsystem and the utilities such as iASL
8680compiler.
8681The function could possibly fail when the caches are initialized. Yang
8682Yi.
8683
8684Add a function to decode reference object types to strings. Created for
8685improved error messages.
8686
8687Improve object conversion error messages. Better error messages during
8688object
8689conversion from internal to the external ACPI_OBJECT. Used for external
8690calls
8691to AcpiEvaluateObject.
8692
8693Example Code and Data Size: These are the sizes for the OS-independent
8694acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8695debug version of the code includes the debug output trace mechanism and
8696has a
8697much larger code and data size.
8698
8699  Previous Release:
8700    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
8701    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
8702  Current Release:
8703    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
8704    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
8705
87062) iASL Compiler/Disassembler and Tools:
8707
8708Debugger: fix a possible hang when evaluating non-methods. Fixes a
8709problem
8710introduced in version 20080701. If the object being evaluated (via
8711execute
8712command) is not a method, the debugger can hang while trying to obtain
8713non-
8714existent parameters.
8715
8716iASL: relax error for using reserved "_T_x" identifiers. These names can
8717appear in a disassembled ASL file if they were emitted by the original
8718compiler. Instead of issuing an error or warning and forcing the user to
8719manually change these names, issue a remark instead.
8720
8721iASL: error if named object created in while loop. Emit an error if any
8722named
8723object is created within a While loop. If allowed, this code will
8724generate
8725a
8726run-time error on the second iteration of the loop when an attempt is
8727made
8728to
8729create the same named object twice. ACPICA bugzilla 730.
8730
8731iASL: Support absolute pathnames for include files. Add support for
8732absolute
8733pathnames within the Include operator. previously, only relative
8734pathnames
8735were supported.
8736
8737iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
8738Descriptor.
8739The ACPI spec requires one interrupt minimum. BZ 423
8740
8741iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
8742Handles the case for the Interrupt Resource Descriptor where
8743the ResourceSource argument is omitted but ResourceSourceIndex
8744is present. Now leave room for the Index. BZ 426
8745
8746iASL: Prevent error message if CondRefOf target does not exist. Fixes
8747cases
8748where an error message is emitted if the target does not exist. BZ 516
8749
8750iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
8751(get ACPI tables on Windows). This was apparently broken in version
875220070919.
8753
8754AcpiXtract: Handle EOF while extracting data. Correctly handle the case
8755where
8756the EOF happens immediately after the last table in the input file. Print
8757completion message. Previously, no message was displayed in this case.
8758
8759----------------------------------------
876001 July 2008. Summary of changes for version 20080701:
8761
87620) Git source tree / acpica.org
8763
8764Fixed a problem where a git-clone from http would not transfer the entire
8765source tree.
8766
87671) ACPI CA Core Subsystem:
8768
8769Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
8770enable bit. Now performs a read-change-write of the enable register
8771instead
8772of simply writing out the cached enable mask. This will prevent
8773inadvertent
8774enabling of GPEs if a rogue GPE is received during initialization (before
8775GPE
8776handlers are installed.)
8777
8778Implemented a copy for dynamically loaded tables. Previously, dynamically
8779loaded tables were simply mapped - but on some machines this memory is
8780corrupted after suspend. Now copy the table to a local buffer. For the
8781OpRegion case, added checksum verify. Use the table length from the table
8782header, not the region length. For the Buffer case, use the table length
8783also. Dennis Noordsij, Bob Moore. BZ 10734
8784
8785Fixed a problem where the same ACPI table could not be dynamically loaded
8786and
8787unloaded more than once. Without this change, a table cannot be loaded
8788again
8789once it has been loaded/unloaded one time. The current mechanism does not
8790unregister a table upon an unload. During a load, if the same table is
8791found,
8792this no longer returns an exception. BZ 722
8793
8794Fixed a problem where the wrong descriptor length was calculated for the
8795EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
8796EndTag
8797are calculated as 12 bytes long, but the actual length in the internal
8798descriptor is 16 because of the round-up to 8 on the 64-bit build.
8799Reported
8800by Linn Crosetto. BZ 728
8801
8802Fixed a possible memory leak in the Unload operator. The DdbHandle
8803returned
8804by Load() did not have its reference count decremented during unload,
8805leading
8806to a memory leak. Lin Ming. BZ 727
8807
8808Fixed a possible memory leak when deleting thermal/processor objects. Any
8809associated notify handlers (and objects) were not being deleted. Fiodor
8810Suietov. BZ 506
8811
8812Fixed the ordering of the ASCII names in the global mutex table to match
8813the
8814actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
8815only.
8816Vegard Nossum. BZ 726
8817
8818Enhanced the AcpiGetObjectInfo interface to return the number of required
8819arguments if the object is a control method. Added this call to the
8820debugger
8821so the proper number of default arguments are passed to a method. This
8822prevents a warning when executing methods from AcpiExec.
8823
8824Added a check for an invalid handle in AcpiGetObjectInfo. Return
8825AE_BAD_PARAMETER if input handle is invalid. BZ 474
8826
8827Fixed an extraneous warning from exconfig.c on the 64-bit build.
8828
8829Example Code and Data Size: These are the sizes for the OS-independent
8830acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8831debug version of the code includes the debug output trace mechanism and
8832has a
8833much larger code and data size.
8834
8835  Previous Release:
8836    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
8837    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
8838  Current Release:
8839    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
8840    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
8841
88422) iASL Compiler/Disassembler and Tools:
8843
8844iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
8845resource descriptor names.
8846
8847iASL: Detect invalid ASCII characters in input (windows version). Removed
8848the
8849"-CF" flag from the flex compile, enables correct detection of non-ASCII
8850characters in the input. BZ 441
8851
8852iASL: Eliminate warning when result of LoadTable is not used. Eliminate
8853the
8854"result of operation not used" warning when the DDB handle returned from
8855LoadTable is not used. The warning is not needed. BZ 590
8856
8857AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
8858method
8859to
8860pass address of table to the AML. Added option to disable OpRegion
8861simulation
8862to allow creation of an OpRegion with a real address that was passed to
8863_CFG.
8864All of this allows testing of the Load and Unload operators from
8865AcpiExec.
8866
8867Debugger: update tables command for unloaded tables. Handle unloaded
8868tables
8869and use the standard table header output routine.
8870
8871----------------------------------------
887209 June 2008. Summary of changes for version 20080609:
8873
88741) ACPI CA Core Subsystem:
8875
8876Implemented a workaround for reversed _PRT entries. A significant number
8877of
8878BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
8879change dynamically detects and repairs this problem. Provides
8880compatibility
8881with MS ACPI. BZ 6859
8882
8883Simplified the internal ACPI hardware interfaces to eliminate the locking
8884flag parameter from Register Read/Write. Added a new external interface,
8885AcpiGetRegisterUnlocked.
8886
8887Fixed a problem where the invocation of a GPE control method could hang.
8888This
8889was a regression introduced in 20080514. The new method argument count
8890validation mechanism can enter an infinite loop when a GPE method is
8891dispatched. Problem fixed by removing the obsolete code that passed GPE
8892block
8893information to the notify handler via the control method parameter
8894pointer.
8895
8896Fixed a problem where the _SST execution status was incorrectly returned
8897to
8898the caller of AcpiEnterSleepStatePrep. This was a regression introduced
8899in
890020080514. _SST is optional and a NOT_FOUND exception should never be
8901returned. BZ 716
8902
8903Fixed a problem where a deleted object could be accessed from within the
8904AML
8905parser. This was a regression introduced in version 20080123 as a fix for
8906the
8907Unload operator. Lin Ming. BZ 10669
8908
8909Cleaned up the debug operand dump mechanism. Eliminated unnecessary
8910operands
8911and eliminated the use of a negative index in a loop. Operands are now
8912displayed in the correct order, not backwards. This also fixes a
8913regression
8914introduced in 20080514 on 64-bit systems where the elimination of
8915ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
8916715
8917
8918Fixed a possible memory leak in EvPciConfigRegionSetup where the error
8919exit
8920path did not delete a locally allocated structure.
8921
8922Updated definitions for the DMAR and SRAT tables to synchronize with the
8923current specifications. Includes disassembler support.
8924
8925Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
8926loop termination value was used. Loop terminated on iteration early,
8927missing
8928one mutex. Linn Crosetto
8929
8930Example Code and Data Size: These are the sizes for the OS-independent
8931acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8932debug version of the code includes the debug output trace mechanism and
8933has a
8934much larger code and data size.
8935
8936  Previous Release:
8937    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
8938    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
8939  Current Release:
8940    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
8941    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
8942
89432) iASL Compiler/Disassembler and Tools:
8944
8945Disassembler: Implemented support for EisaId() within _CID objects. Now
8946disassemble integer _CID objects back to EisaId invocations, including
8947multiple integers within _CID packages. Includes single-step support for
8948debugger also.
8949
8950Disassembler: Added support for DMAR and SRAT table definition changes.
8951
8952----------------------------------------
895314 May 2008. Summary of changes for version 20080514:
8954
89551) ACPI CA Core Subsystem:
8956
8957Fixed a problem where GPEs were enabled too early during the ACPICA
8958initialization. This could lead to "handler not installed" errors on some
8959machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
8960This
8961ensures that all operation regions and devices throughout the namespace
8962have
8963been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
8964
8965Implemented a change to the enter sleep code. Moved execution of the _GTS
8966method to just before setting sleep enable bit. The execution was moved
8967from
8968AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
8969immediately before the SLP_EN bit is set, as per the ACPI specification.
8970Luming Yu, BZ 1653.
8971
8972Implemented a fix to disable unknown GPEs (2nd version). Now always
8973disable
8974the GPE, even if ACPICA thinks that that it is already disabled. It is
8975possible that the AML or some other code has enabled the GPE unbeknownst
8976to
8977the ACPICA code.
8978
8979Fixed a problem with the Field operator where zero-length fields would
8980return
8981an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
8982ASL
8983field declarations in Field(), BankField(), and IndexField(). BZ 10606.
8984
8985Implemented a fix for the Load operator, now load the table at the
8986namespace
8987root. This reverts a change introduced in version 20071019. The table is
8988now
8989loaded at the namespace root even though this goes against the ACPI
8990specification. This provides compatibility with other ACPI
8991implementations.
8992The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
8993Ming.
8994
8995Fixed a problem where ACPICA would not Load() tables with unusual
8996signatures.
8997Now ignore ACPI table signature for Load() operator. Only "SSDT" is
8998acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
8999Therefore, signature validation is worthless. Apparently MS ACPI accepts
9000such
9001signatures, ACPICA must be compatible. BZ 10454.
9002
9003Fixed a possible negative array index in AcpiUtValidateException. Added
9004NULL
9005fields to the exception string arrays to eliminate a -1 subtraction on
9006the
9007SubStatus field.
9008
9009Updated the debug tracking macros to reduce overall code and data size.
9010Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
9011instead of pointers to static strings. Jan Beulich and Bob Moore.
9012
9013Implemented argument count checking in control method invocation via
9014AcpiEvaluateObject. Now emit an error if too few arguments, warning if
9015too
9016many. This applies only to extern programmatic control method execution,
9017not
9018method-to-method calls within the AML. Lin Ming.
9019
9020Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
9021no
9022longer needed, especially with the removal of 16-bit support. It was
9023replaced
9024mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
9025bit
9026on
902732/64-bit platforms is required.
9028
9029Added the C const qualifier for appropriate string constants -- mostly
9030MODULE_NAME and printf format strings. Jan Beulich.
9031
9032Example Code and Data Size: These are the sizes for the OS-independent
9033acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9034debug version of the code includes the debug output trace mechanism and
9035has a
9036much larger code and data size.
9037
9038  Previous Release:
9039    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
9040    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
9041  Current Release:
9042    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
9043    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
9044
90452) iASL Compiler/Disassembler and Tools:
9046
9047Implemented ACPI table revision ID validation in the disassembler. Zero
9048is
9049always invalid. For DSDTs, the ID controls the interpreter integer width.
90501
9051means 32-bit and this is unusual. 2 or greater is 64-bit.
9052
9053----------------------------------------
905421 March 2008. Summary of changes for version 20080321:
9055
90561) ACPI CA Core Subsystem:
9057
9058Implemented an additional change to the GPE support in order to suppress
9059spurious or stray GPEs. The AcpiEvDisableGpe function will now
9060permanently
9061disable incoming GPEs that are neither enabled nor disabled -- meaning
9062that
9063the GPE is unknown to the system. This should prevent future interrupt
9064floods
9065from that GPE. BZ 6217 (Zhang Rui)
9066
9067Fixed a problem where NULL package elements were not returned to the
9068AcpiEvaluateObject interface correctly. The element was simply ignored
9069instead of returning a NULL ACPI_OBJECT package element, potentially
9070causing
9071a buffer overflow and/or confusing the caller who expected a fixed number
9072of
9073elements. BZ 10132 (Lin Ming, Bob Moore)
9074
9075Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
9076Dword,
9077Qword), Field, BankField, and IndexField operators when invoked from
9078inside
9079an executing control method. In this case, these operators created
9080namespace
9081nodes that were incorrectly left marked as permanent nodes instead of
9082temporary nodes. This could cause a problem if there is race condition
9083between an exiting control method and a running namespace walk. (Reported
9084by
9085Linn Crosetto)
9086
9087Fixed a problem where the CreateField and CreateXXXField operators would
9088incorrectly allow duplicate names (the name of the field) with no
9089exception
9090generated.
9091
9092Implemented several changes for Notify handling. Added support for new
9093Notify
9094values (ACPI 2.0+) and improved the Notify debug output. Notify on
9095PowerResource objects is no longer allowed, as per the ACPI
9096specification.
9097(Bob Moore, Zhang Rui)
9098
9099All Reference Objects returned via the AcpiEvaluateObject interface are
9100now
9101marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
9102for
9103NULL objects - either NULL package elements or unresolved named
9104references.
9105
9106Fixed a problem where an extraneous debug message was produced for
9107package
9108objects (when debugging enabled). The message "Package List length larger
9109than NumElements count" is now produced in the correct case, and is now
9110an
9111error message rather than a debug message. Added a debug message for the
9112opposite case, where NumElements is larger than the Package List (the
9113package
9114will be padded out with NULL elements as per the ACPI spec.)
9115
9116Implemented several improvements for the output of the ASL "Debug" object
9117to
9118clarify and keep all data for a given object on one output line.
9119
9120Fixed two size calculation issues with the variable-length Start
9121Dependent
9122resource descriptor.
9123
9124Example Code and Data Size: These are the sizes for the OS-independent
9125acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9126debug version of the code includes the debug output trace mechanism and
9127has
9128a much larger code and data size.
9129
9130  Previous Release:
9131    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
9132    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
9133  Current Release:
9134    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
9135    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
9136
91372) iASL Compiler/Disassembler and Tools:
9138
9139Fixed a problem with the use of the Switch operator where execution of
9140the
9141containing method by multiple concurrent threads could cause an
9142AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
9143actual Switch opcode, it must be simulated with local named temporary
9144variables and if/else pairs. The solution chosen was to mark any method
9145that
9146uses Switch as Serialized, thus preventing multiple thread entries. BZ
9147469.
9148
9149----------------------------------------
915013 February 2008. Summary of changes for version 20080213:
9151
91521) ACPI CA Core Subsystem:
9153
9154Implemented another MS compatibility design change for GPE/Notify
9155handling.
9156GPEs are now cleared/enabled asynchronously to allow all pending notifies
9157to
9158complete first. It is expected that the OSL will queue the enable request
9159behind all pending notify requests (may require changes to the local host
9160OSL
9161in AcpiOsExecute). Alexey Starikovskiy.
9162
9163Fixed a problem where buffer and package objects passed as arguments to a
9164control method via the external AcpiEvaluateObject interface could cause
9165an
9166AE_AML_INTERNAL exception depending on the order and type of operators
9167executed by the target control method.
9168
9169Fixed a problem where resource descriptor size optimization could cause a
9170problem when a _CRS resource template is passed to a _SRS method. The
9171_SRS
9172resource template must use the same descriptors (with the same size) as
9173returned from _CRS. This change affects the following resource
9174descriptors:
9175IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
91769487)
9177
9178Fixed a problem where a CopyObject to RegionField, BankField, and
9179IndexField
9180objects did not perform an implicit conversion as it should. These types
9181must
9182retain their initial type permanently as per the ACPI specification.
9183However,
9184a CopyObject to all other object types should not perform an implicit
9185conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
9186
9187Fixed a problem with the AcpiGetDevices interface where the mechanism to
9188match device CIDs did not examine the entire list of available CIDs, but
9189instead aborted on the first non-matching CID. Andrew Patterson.
9190
9191Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
9192was
9193inadvertently changed to return a 16-bit value instead of a 32-bit value,
9194truncating the upper dword of a 64-bit value. This macro is only used to
9195display debug output, so no incorrect calculations were made. Also,
9196reimplemented the macro so that a 64-bit shift is not performed by
9197inefficient compilers.
9198
9199Added missing va_end statements that should correspond with each va_start
9200statement.
9201
9202Example Code and Data Size: These are the sizes for the OS-independent
9203acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9204debug version of the code includes the debug output trace mechanism and
9205has
9206a much larger code and data size.
9207
9208  Previous Release:
9209    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
9210    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
9211  Current Release:
9212    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
9213    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
9214
92152) iASL Compiler/Disassembler and Tools:
9216
9217Implemented full disassembler support for the following new ACPI tables:
9218BERT, EINJ, and ERST. Implemented partial disassembler support for the
9219complicated HEST table. These tables support the Windows Hardware Error
9220Architecture (WHEA).
9221
9222----------------------------------------
922323 January 2008. Summary of changes for version 20080123:
9224
92251) ACPI CA Core Subsystem:
9226
9227Added the 2008 copyright to all module headers and signons. This affects
9228virtually every file in the ACPICA core subsystem, the iASL compiler, and
9229the tools/utilities.
9230
9231Fixed a problem with the SizeOf operator when used with Package and
9232Buffer
9233objects. These objects have deferred execution for some arguments, and
9234the
9235execution is now completed before the SizeOf is executed. This problem
9236caused
9237unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
9238BZ
92399558
9240
9241Implemented an enhancement to the interpreter "slack mode". In the
9242absence
9243of
9244an explicit return or an implicitly returned object from the last
9245executed
9246opcode, a control method will now implicitly return an integer of value 0
9247for
9248Microsoft compatibility. (Lin Ming) BZ 392
9249
9250Fixed a problem with the Load operator where an exception was not
9251returned
9252in
9253the case where the table is already loaded. (Lin Ming) BZ 463
9254
9255Implemented support for the use of DDBHandles as an Indexed Reference, as
9256per
9257the ACPI spec. (Lin Ming) BZ 486
9258
9259Implemented support for UserTerm (Method invocation) for the Unload
9260operator
9261as per the ACPI spec. (Lin Ming) BZ 580
9262
9263Fixed a problem with the LoadTable operator where the OemId and
9264OemTableId
9265input strings could cause unexpected failures if they were shorter than
9266the
9267maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
9268
9269Implemented support for UserTerm (Method invocation) for the Unload
9270operator
9271as per the ACPI spec. (Lin Ming) BZ 580
9272
9273Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
9274HEST,
9275IBFT, UEFI, WDAT. Disassembler support is forthcoming.
9276
9277Example Code and Data Size: These are the sizes for the OS-independent
9278acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9279debug version of the code includes the debug output trace mechanism and
9280has
9281a much larger code and data size.
9282
9283  Previous Release:
9284    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
9285    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
9286  Current Release:
9287    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
9288    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
9289
92902) iASL Compiler/Disassembler and Tools:
9291
9292Implemented support in the disassembler for checksum validation on
9293incoming
9294binary DSDTs and SSDTs. If incorrect, a message is displayed within the
9295table
9296header dump at the start of the disassembly.
9297
9298Implemented additional debugging information in the namespace listing
9299file
9300created during compilation. In addition to the namespace hierarchy, the
9301full
9302pathname to each namespace object is displayed.
9303
9304Fixed a problem with the disassembler where invalid ACPI tables could
9305cause
9306faults or infinite loops.
9307
9308Fixed an unexpected parse error when using the optional "parameter types"
9309list in a control method declaration. (Lin Ming) BZ 397
9310
9311Fixed a problem where two External declarations with the same name did
9312not
9313cause an error (Lin Ming) BZ 509
9314
9315Implemented support for full TermArgs (adding Argx, Localx and method
9316invocation) for the ParameterData parameter to the LoadTable operator.
9317(Lin
9318Ming) BZ 583,587
9319
9320----------------------------------------
932119 December 2007. Summary of changes for version 20071219:
9322
93231) ACPI CA Core Subsystem:
9324
9325Implemented full support for deferred execution for the TermArg string
9326arguments for DataTableRegion. This enables forward references and full
9327operand resolution for the three string arguments. Similar to
9328OperationRegion
9329deferred argument execution.) Lin Ming. BZ 430
9330
9331Implemented full argument resolution support for the BankValue argument
9332to
9333BankField. Previously, only constants were supported, now any TermArg may
9334be
9335used. Lin Ming BZ 387, 393
9336
9337Fixed a problem with AcpiGetDevices where the search of a branch of the
9338device tree could be terminated prematurely. In accordance with the ACPI
9339specification, the search down the current branch is terminated if a
9340device
9341is both not present and not functional (instead of just not present.)
9342Yakui
9343Zhao.
9344
9345Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
9346if
9347the underlying AML code changed the GPE enable registers. Now, any
9348unknown
9349incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
9350disabled
9351instead of simply ignored. Rui Zhang.
9352
9353Fixed a problem with Index Fields where the Index register was
9354incorrectly
9355limited to a maximum of 32 bits. Now any size may be used.
9356
9357Fixed a couple memory leaks associated with "implicit return" objects
9358when
9359the AML Interpreter slack mode is enabled. Lin Ming BZ 349
9360
9361Example Code and Data Size: These are the sizes for the OS-independent
9362acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9363debug version of the code includes the debug output trace mechanism and
9364has
9365a much larger code and data size.
9366
9367  Previous Release:
9368    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
9369    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
9370  Current Release:
9371    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
9372    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
9373
9374----------------------------------------
937514 November 2007. Summary of changes for version 20071114:
9376
93771) ACPI CA Core Subsystem:
9378
9379Implemented event counters for each of the Fixed Events, the ACPI SCI
9380(interrupt) itself, and control methods executed. Named
9381AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
9382These
9383should be useful for debugging and statistics.
9384
9385Implemented a new external interface, AcpiGetStatistics, to retrieve the
9386contents of the various event counters. Returns the current values for
9387AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
9388AcpiMethodCount. The interface can be expanded in the future if new
9389counters
9390are added. Device drivers should use this interface rather than access
9391the
9392counters directly.
9393
9394Fixed a problem with the FromBCD and ToBCD operators. With some
9395compilers,
9396the ShortDivide function worked incorrectly, causing problems with the
9397BCD
9398functions with large input values. A truncation from 64-bit to 32-bit
9399inadvertently occurred. Internal BZ 435. Lin Ming
9400
9401Fixed a problem with Index references passed as method arguments.
9402References
9403passed as arguments to control methods were dereferenced immediately
9404(before
9405control was passed to the called method). The references are now
9406correctly
9407passed directly to the called method. BZ 5389. Lin Ming
9408
9409Fixed a problem with CopyObject used in conjunction with the Index
9410operator.
9411The reference was incorrectly dereferenced before the copy. The reference
9412is
9413now correctly copied. BZ 5391. Lin Ming
9414
9415Fixed a problem with Control Method references within Package objects.
9416These
9417references are now correctly generated. This completes the package
9418construction overhaul that began in version 20071019.
9419
9420Example Code and Data Size: These are the sizes for the OS-independent
9421acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9422debug version of the code includes the debug output trace mechanism and
9423has
9424a much larger code and data size.
9425
9426  Previous Release:
9427    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
9428    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
9429  Current Release:
9430    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
9431    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
9432
9433
94342) iASL Compiler/Disassembler and Tools:
9435
9436The AcpiExec utility now installs handlers for all of the predefined
9437Operation Region types. New types supported are: PCI_Config, CMOS, and
9438PCIBARTarget.
9439
9440Fixed a problem with the 64-bit version of AcpiExec where the extended
9441(64-
9442bit) address fields for the DSDT and FACS within the FADT were not being
9443used, causing truncation of the upper 32-bits of these addresses. Lin
9444Ming
9445and Bob Moore
9446
9447----------------------------------------
944819 October 2007. Summary of changes for version 20071019:
9449
94501) ACPI CA Core Subsystem:
9451
9452Fixed a problem with the Alias operator when the target of the alias is a
9453named ASL operator that opens a new scope -- Scope, Device,
9454PowerResource,
9455Processor, and ThermalZone. In these cases, any children of the original
9456operator could not be accessed via the alias, potentially causing
9457unexpected
9458AE_NOT_FOUND exceptions. (BZ 9067)
9459
9460Fixed a problem with the Package operator where all named references were
9461created as object references and left otherwise unresolved. According to
9462the
9463ACPI specification, a Package can only contain Data Objects or references
9464to
9465control methods. The implication is that named references to Data Objects
9466(Integer, Buffer, String, Package, BufferField, Field) should be resolved
9467immediately upon package creation. This is the approach taken with this
9468change. References to all other named objects (Methods, Devices, Scopes,
9469etc.) are all now properly created as reference objects. (BZ 5328)
9470
9471Reverted a change to Notify handling that was introduced in version
947220070508. This version changed the Notify handling from asynchronous to
9473fully synchronous (Device driver Notify handling with respect to the
9474Notify
9475ASL operator). It was found that this change caused more problems than it
9476solved and was removed by most users.
9477
9478Fixed a problem with the Increment and Decrement operators where the type
9479of
9480the target object could be unexpectedly and incorrectly changed. (BZ 353)
9481Lin Ming.
9482
9483Fixed a problem with the Load and LoadTable operators where the table
9484location within the namespace was ignored. Instead, the table was always
9485loaded into the root or current scope. Lin Ming.
9486
9487Fixed a problem with the Load operator when loading a table from a buffer
9488object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
9489
9490Fixed a problem with the Debug object where a store of a DdbHandle
9491reference
9492object to the Debug object could cause a fault.
9493
9494Added a table checksum verification for the Load operator, in the case
9495where
9496the load is from a buffer. (BZ 578).
9497
9498Implemented additional parameter validation for the LoadTable operator.
9499The
9500length of the input strings SignatureString, OemIdString, and OemTableId
9501are
9502now checked for maximum lengths. (BZ 582) Lin Ming.
9503
9504Example Code and Data Size: These are the sizes for the OS-independent
9505acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9506debug version of the code includes the debug output trace mechanism and
9507has
9508a much larger code and data size.
9509
9510  Previous Release:
9511    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
9512    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
9513  Current Release:
9514    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
9515    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
9516
9517
95182) iASL Compiler/Disassembler:
9519
9520Fixed a problem where if a single file was specified and the file did not
9521exist, no error message was emitted. (Introduced with wildcard support in
9522version 20070917.)
9523
9524----------------------------------------
952519 September 2007. Summary of changes for version 20070919:
9526
95271) ACPI CA Core Subsystem:
9528
9529Designed and implemented new external interfaces to install and remove
9530handlers for ACPI table-related events. Current events that are defined
9531are
9532LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
9533they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
9534AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
9535
9536Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
9537(acpi_serialized option on Linux) could cause some systems to hang during
9538initialization. (Bob Moore) BZ 8171
9539
9540Fixed a problem where objects of certain types (Device, ThermalZone,
9541Processor, PowerResource) can be not found if they are declared and
9542referenced from within the same control method (Lin Ming) BZ 341
9543
9544Example Code and Data Size: These are the sizes for the OS-independent
9545acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9546debug version of the code includes the debug output trace mechanism and
9547has
9548a much larger code and data size.
9549
9550  Previous Release:
9551    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
9552    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
9553  Current Release:
9554    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
9555    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
9556
9557
95582) iASL Compiler/Disassembler:
9559
9560Implemented support to allow multiple files to be compiled/disassembled
9561in
9562a
9563single invocation. This includes command line wildcard support for both
9564the
9565Windows and Unix versions of the compiler. This feature simplifies the
9566disassembly and compilation of multiple ACPI tables in a single
9567directory.
9568
9569----------------------------------------
957008 May 2007. Summary of changes for version 20070508:
9571
95721) ACPI CA Core Subsystem:
9573
9574Implemented a Microsoft compatibility design change for the handling of
9575the
9576Notify AML operator. Previously, notify handlers were dispatched and
9577executed completely asynchronously in a deferred thread. The new design
9578still executes the notify handlers in a different thread, but the
9579original
9580thread that executed the Notify() now waits at a synchronization point
9581for
9582the notify handler to complete. Some machines depend on a synchronous
9583Notify
9584operator in order to operate correctly.
9585
9586Implemented support to allow Package objects to be passed as method
9587arguments to the external AcpiEvaluateObject interface. Previously, this
9588would return the AE_NOT_IMPLEMENTED exception. This feature had not been
9589implemented since there were no reserved control methods that required it
9590until recently.
9591
9592Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
9593that
9594contained invalid non-zero values in reserved fields could cause later
9595failures because these fields have meaning in later revisions of the
9596FADT.
9597For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
9598fields
9599are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
9600
9601Fixed a problem where the Global Lock handle was not properly updated if
9602a
9603thread that acquired the Global Lock via executing AML code then
9604attempted
9605to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
9606Joe
9607Liu.
9608
9609Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
9610could be corrupted if the interrupt being removed was at the head of the
9611list. Reported by Linn Crosetto.
9612
9613Example Code and Data Size: These are the sizes for the OS-independent
9614acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9615debug version of the code includes the debug output trace mechanism and
9616has
9617a much larger code and data size.
9618
9619  Previous Release:
9620    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9621    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
9622  Current Release:
9623    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
9624    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
9625
9626----------------------------------------
962720 March 2007. Summary of changes for version 20070320:
9628
96291) ACPI CA Core Subsystem:
9630
9631Implemented a change to the order of interpretation and evaluation of AML
9632operand objects within the AML interpreter. The interpreter now evaluates
9633operands in the order that they appear in the AML stream (and the
9634corresponding ASL code), instead of in the reverse order (after the
9635entire
9636operand list has been parsed). The previous behavior caused several
9637subtle
9638incompatibilities with the Microsoft AML interpreter as well as being
9639somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
9640
9641Implemented a change to the ACPI Global Lock support. All interfaces to
9642the
9643global lock now allow the same thread to acquire the lock multiple times.
9644This affects the AcpiAcquireGlobalLock external interface to the global
9645lock
9646as well as the internal use of the global lock to support AML fields -- a
9647control method that is holding the global lock can now simultaneously
9648access
9649AML fields that require global lock protection. Previously, in both
9650cases,
9651this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
9652to
9653AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
9654Controller. There is no change to the behavior of the AML Acquire
9655operator,
9656as this can already be used to acquire a mutex multiple times by the same
9657thread. BZ 8066. With assistance from Alexey Starikovskiy.
9658
9659Fixed a problem where invalid objects could be referenced in the AML
9660Interpreter after error conditions. During operand evaluation, ensure
9661that
9662the internal "Return Object" field is cleared on error and only valid
9663pointers are stored there. Caused occasional access to deleted objects
9664that
9665resulted in "large reference count" warning messages. Valery Podrezov.
9666
9667Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
9668on
9669deeply nested control method invocations. BZ 7873, local BZ 487. Valery
9670Podrezov.
9671
9672Fixed an internal problem with the handling of result objects on the
9673interpreter result stack. BZ 7872. Valery Podrezov.
9674
9675Removed obsolete code that handled the case where AML_NAME_OP is the
9676target
9677of a reference (Reference.Opcode). This code was no longer necessary. BZ
96787874. Valery Podrezov.
9679
9680Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
9681was
9682a
9683remnant from the previously discontinued 16-bit support.
9684
9685Example Code and Data Size: These are the sizes for the OS-independent
9686acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9687debug version of the code includes the debug output trace mechanism and
9688has
9689a much larger code and data size.
9690
9691  Previous Release:
9692    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9693    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9694  Current Release:
9695    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9696    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
9697
9698----------------------------------------
969926 January 2007. Summary of changes for version 20070126:
9700
97011) ACPI CA Core Subsystem:
9702
9703Added the 2007 copyright to all module headers and signons. This affects
9704virtually every file in the ACPICA core subsystem, the iASL compiler, and
9705the utilities.
9706
9707Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
9708during a table load. A bad pointer was passed in the case where the DSDT
9709is
9710overridden, causing a fault in this case.
9711
9712Example Code and Data Size: These are the sizes for the OS-independent
9713acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9714debug version of the code includes the debug output trace mechanism and
9715has
9716a much larger code and data size.
9717
9718  Previous Release:
9719    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9720    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9721  Current Release:
9722    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9723    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9724
9725----------------------------------------
972615 December 2006. Summary of changes for version 20061215:
9727
97281) ACPI CA Core Subsystem:
9729
9730Support for 16-bit ACPICA has been completely removed since it is no
9731longer
9732necessary and it clutters the code. All 16-bit macros, types, and
9733conditional compiles have been removed, cleaning up and simplifying the
9734code
9735across the entire subsystem. DOS support is no longer needed since the
9736bootable Linux firmware kit is now available.
9737
9738The handler for the Global Lock is now removed during AcpiTerminate to
9739enable a clean subsystem restart, via the implementation of the
9740AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
9741HP)
9742
9743Implemented enhancements to the multithreading support within the
9744debugger
9745to enable improved multithreading debugging and evaluation of the
9746subsystem.
9747(Valery Podrezov)
9748
9749Debugger: Enhanced the Statistics/Memory command to emit the total
9750(maximum)
9751memory used during the execution, as well as the maximum memory consumed
9752by
9753each of the various object types. (Valery Podrezov)
9754
9755Example Code and Data Size: These are the sizes for the OS-independent
9756acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9757debug version of the code includes the debug output trace mechanism and
9758has
9759a much larger code and data size.
9760
9761  Previous Release:
9762    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
9763    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
9764  Current Release:
9765    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
9766    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
9767
9768
97692) iASL Compiler/Disassembler and Tools:
9770
9771AcpiExec: Implemented a new option (-m) to display full memory use
9772statistics upon subsystem/program termination. (Valery Podrezov)
9773
9774----------------------------------------
977509 November 2006. Summary of changes for version 20061109:
9776
97771) ACPI CA Core Subsystem:
9778
9779Optimized the Load ASL operator in the case where the source operand is
9780an
9781operation region. Simply map the operation region memory, instead of
9782performing a bytewise read. (Region must be of type SystemMemory, see
9783below.)
9784
9785Fixed the Load ASL operator for the case where the source operand is a
9786region field. A buffer object is also allowed as the source operand. BZ
9787480
9788
9789Fixed a problem where the Load ASL operator allowed the source operand to
9790be
9791an operation region of any type. It is now restricted to regions of type
9792SystemMemory, as per the ACPI specification. BZ 481
9793
9794Additional cleanup and optimizations for the new Table Manager code.
9795
9796AcpiEnable will now fail if all of the required ACPI tables are not
9797loaded
9798(FADT, FACS, DSDT). BZ 477
9799
9800Added #pragma pack(8/4) to acobject.h to ensure that the structures in
9801this
9802header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
9803manually optimized to be aligned and will not work if it is byte-packed.
9804
9805Example Code and Data Size: These are the sizes for the OS-independent
9806acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9807debug version of the code includes the debug output trace mechanism and
9808has
9809a much larger code and data size.
9810
9811  Previous Release:
9812    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
9813    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
9814  Current Release:
9815    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
9816    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
9817
9818
98192) iASL Compiler/Disassembler and Tools:
9820
9821Fixed a problem where the presence of the _OSI predefined control method
9822within complex expressions could cause an internal compiler error.
9823
9824AcpiExec: Implemented full region support for multiple address spaces.
9825SpaceId is now part of the REGION object. BZ 429
9826
9827----------------------------------------
982811 October 2006. Summary of changes for version 20061011:
9829
98301) ACPI CA Core Subsystem:
9831
9832Completed an AML interpreter performance enhancement for control method
9833execution. Previously a 2-pass parse/execution, control methods are now
9834completely parsed and executed in a single pass. This improves overall
9835interpreter performance by ~25%, reduces code size, and reduces CPU stack
9836use. (Valery Podrezov + interpreter changes in version 20051202 that
9837eliminated namespace loading during the pass one parse.)
9838
9839Implemented _CID support for PCI Root Bridge detection. If the _HID does
9840not
9841match the predefined PCI Root Bridge IDs, the _CID list (if present) is
9842now
9843obtained and also checked for an ID match.
9844
9845Implemented additional support for the PCI _ADR execution: upsearch until
9846a
9847device scope is found before executing _ADR. This allows PCI_Config
9848operation regions to be declared locally within control methods
9849underneath
9850PCI device objects.
9851
9852Fixed a problem with a possible race condition between threads executing
9853AcpiWalkNamespace and the AML interpreter. This condition was removed by
9854modifying AcpiWalkNamespace to (by default) ignore all temporary
9855namespace
9856entries created during any concurrent control method execution. An
9857additional namespace race condition is known to exist between
9858AcpiWalkNamespace and the Load/Unload ASL operators and is still under
9859investigation.
9860
9861Restructured the AML ParseLoop function, breaking it into several
9862subfunctions in order to reduce CPU stack use and improve
9863maintainability.
9864(Mikhail Kouzmich)
9865
9866AcpiGetHandle: Fix for parameter validation to detect invalid
9867combinations
9868of prefix handle and pathname. BZ 478
9869
9870Example Code and Data Size: These are the sizes for the OS-independent
9871acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9872debug version of the code includes the debug output trace mechanism and
9873has
9874a much larger code and data size.
9875
9876  Previous Release:
9877    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
9878    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
9879  Current Release:
9880    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
9881    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
9882
98832) iASL Compiler/Disassembler and Tools:
9884
9885Ported the -g option (get local ACPI tables) to the new ACPICA Table
9886Manager
9887to restore original behavior.
9888
9889----------------------------------------
989027 September 2006. Summary of changes for version 20060927:
9891
98921) ACPI CA Core Subsystem:
9893
9894Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
9895These functions now use a spinlock for mutual exclusion and the interrupt
9896level indication flag is not needed.
9897
9898Fixed a problem with the Global Lock where the lock could appear to be
9899obtained before it is actually obtained. The global lock semaphore was
9900inadvertently created with one unit instead of zero units. (BZ 464)
9901Fiodor
9902Suietov.
9903
9904Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
9905during
9906a read from a buffer or region field. (BZ 458) Fiodor Suietov.
9907
9908Example Code and Data Size: These are the sizes for the OS-independent
9909acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9910debug version of the code includes the debug output trace mechanism and
9911has
9912a much larger code and data size.
9913
9914  Previous Release:
9915    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
9916    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
9917  Current Release:
9918    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
9919    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
9920
9921
99222) iASL Compiler/Disassembler and Tools:
9923
9924Fixed a compilation problem with the pre-defined Resource Descriptor
9925field
9926names where an "object does not exist" error could be incorrectly
9927generated
9928if the parent ResourceTemplate pathname places the template within a
9929different namespace scope than the current scope. (BZ 7212)
9930
9931Fixed a problem where the compiler could hang after syntax errors
9932detected
9933in an ElseIf construct. (BZ 453)
9934
9935Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
9936operator. An incorrect output filename was produced when this parameter
9937was
9938a null string (""). Now, the original input filename is used as the AML
9939output filename, with an ".aml" extension.
9940
9941Implemented a generic batch command mode for the AcpiExec utility
9942(execute
9943any AML debugger command) (Valery Podrezov).
9944
9945----------------------------------------
994612 September 2006. Summary of changes for version 20060912:
9947
99481) ACPI CA Core Subsystem:
9949
9950Enhanced the implementation of the "serialized mode" of the interpreter
9951(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
9952specified, instead of creating a serialization semaphore per control
9953method,
9954the interpreter lock is simply no longer released before a blocking
9955operation during control method execution. This effectively makes the AML
9956Interpreter single-threaded. The overhead of a semaphore per-method is
9957eliminated.
9958
9959Fixed a regression where an error was no longer emitted if a control
9960method
9961attempts to create 2 objects of the same name. This once again returns
9962AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
9963that
9964will dynamically serialize the control method to possible prevent future
9965errors. (BZ 440)
9966
9967Integrated a fix for a problem with PCI Express HID detection in the PCI
9968Config Space setup procedure. (BZ 7145)
9969
9970Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
9971AcpiHwInitialize function - the FADT registers are now validated when the
9972table is loaded.
9973
9974Added two new warnings during FADT verification - 1) if the FADT is
9975larger
9976than the largest known FADT version, and 2) if there is a mismatch
9977between
9978a
997932-bit block address and the 64-bit X counterpart (when both are non-
9980zero.)
9981
9982Example Code and Data Size: These are the sizes for the OS-independent
9983acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9984debug version of the code includes the debug output trace mechanism and
9985has
9986a much larger code and data size.
9987
9988  Previous Release:
9989    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
9990    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
9991  Current Release:
9992    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
9993    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
9994
9995
99962) iASL Compiler/Disassembler and Tools:
9997
9998Fixed a problem with the implementation of the Switch() operator where
9999the
10000temporary variable was declared too close to the actual Switch, instead
10001of
10002at method level. This could cause a problem if the Switch() operator is
10003within a while loop, causing an error on the second iteration. (BZ 460)
10004
10005Disassembler - fix for error emitted for unknown type for target of scope
10006operator. Now, ignore it and continue.
10007
10008Disassembly of an FADT now verifies the input FADT and reports any errors
10009found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
10010
10011Disassembly of raw data buffers with byte initialization data now
10012prefixes
10013each output line with the current buffer offset.
10014
10015Disassembly of ASF! table now includes all variable-length data fields at
10016the end of some of the subtables.
10017
10018The disassembler now emits a comment if a buffer appears to be a
10019ResourceTemplate, but cannot be disassembled as such because the EndTag
10020does
10021not appear at the very end of the buffer.
10022
10023AcpiExec - Added the "-t" command line option to enable the serialized
10024mode
10025of the AML interpreter.
10026
10027----------------------------------------
1002831 August 2006. Summary of changes for version 20060831:
10029
100301) ACPI CA Core Subsystem:
10031
10032Miscellaneous fixes for the Table Manager:
10033- Correctly initialize internal common FADT for all 64-bit "X" fields
10034- Fixed a couple table mapping issues during table load
10035- Fixed a couple alignment issues for IA64
10036- Initialize input array to zero in AcpiInitializeTables
10037- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
10038AcpiGetTableByIndex
10039
10040Change for GPE support: when a "wake" GPE is received, all wake GPEs are
10041now
10042immediately disabled to prevent the waking GPE from firing again and to
10043prevent other wake GPEs from interrupting the wake process.
10044
10045Added the AcpiGpeCount global that tracks the number of processed GPEs,
10046to
10047be used for debugging systems with a large number of ACPI interrupts.
10048
10049Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
10050both the ACPICA headers and the disassembler.
10051
10052Example Code and Data Size: These are the sizes for the OS-independent
10053acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10054debug version of the code includes the debug output trace mechanism and
10055has
10056a much larger code and data size.
10057
10058  Previous Release:
10059    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
10060    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
10061  Current Release:
10062    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
10063    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
10064
10065
100662) iASL Compiler/Disassembler and Tools:
10067
10068Disassembler support for the DMAR ACPI table.
10069
10070----------------------------------------
1007123 August 2006. Summary of changes for version 20060823:
10072
100731) ACPI CA Core Subsystem:
10074
10075The Table Manager component has been completely redesigned and
10076reimplemented. The new design is much simpler, and reduces the overall
10077code
10078and data size of the kernel-resident ACPICA by approximately 5%. Also, it
10079is
10080now possible to obtain the ACPI tables very early during kernel
10081initialization, even before dynamic memory management is initialized.
10082(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
10083
10084Obsolete ACPICA interfaces:
10085
10086- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
10087init
10088time).
10089- AcpiLoadTable: Not needed.
10090- AcpiUnloadTable: Not needed.
10091
10092New ACPICA interfaces:
10093
10094- AcpiInitializeTables: Must be called before the table manager can be
10095used.
10096- AcpiReallocateRootTable: Used to transfer the root table to dynamically
10097allocated memory after it becomes available.
10098- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
10099tables
10100in the RSDT/XSDT.
10101
10102Other ACPICA changes:
10103
10104- AcpiGetTableHeader returns the actual mapped table header, not a copy.
10105Use
10106AcpiOsUnmapMemory to free this mapping.
10107- AcpiGetTable returns the actual mapped table. The mapping is managed
10108internally and must not be deleted by the caller. Use of this interface
10109causes no additional dynamic memory allocation.
10110- AcpiFindRootPointer: Support for physical addressing has been
10111eliminated,
10112it appeared to be unused.
10113- The interface to AcpiOsMapMemory has changed to be consistent with the
10114other allocation interfaces.
10115- The interface to AcpiOsGetRootPointer has changed to eliminate
10116unnecessary
10117parameters.
10118- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
1011964-
10120bit platforms. Was previously 64 bits on all platforms.
10121- The interface to the ACPI Global Lock acquire/release macros have
10122changed
10123slightly since ACPICA no longer keeps a local copy of the FACS with a
10124constructed pointer to the actual global lock.
10125
10126Porting to the new table manager:
10127
10128- AcpiInitializeTables: Must be called once, and can be called anytime
10129during the OS initialization process. It allows the host to specify an
10130area
10131of memory to be used to store the internal version of the RSDT/XSDT (root
10132table). This allows the host to access ACPI tables before memory
10133management
10134is initialized and running.
10135- AcpiReallocateRootTable: Can be called after memory management is
10136running
10137to copy the root table to a dynamically allocated array, freeing up the
10138scratch memory specified in the call to AcpiInitializeTables.
10139- AcpiSubsystemInitialize: This existing interface is independent of the
10140Table Manager, and does not have to be called before the Table Manager
10141can
10142be used, it only must be called before the rest of ACPICA can be used.
10143- ACPI Tables: Some changes have been made to the names and structure of
10144the
10145actbl.h and actbl1.h header files and may require changes to existing
10146code.
10147For example, bitfields have been completely removed because of their lack
10148of
10149portability across C compilers.
10150- Update interfaces to the Global Lock acquire/release macros if local
10151versions are used. (see acwin.h)
10152
10153Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
10154
10155New files: tbfind.c
10156
10157Example Code and Data Size: These are the sizes for the OS-independent
10158acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10159debug version of the code includes the debug output trace mechanism and
10160has
10161a much larger code and data size.
10162
10163  Previous Release:
10164    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
10165    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
10166  Current Release:
10167    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
10168    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
10169
10170
101712) iASL Compiler/Disassembler and Tools:
10172
10173No changes for this release.
10174
10175----------------------------------------
1017621 July 2006. Summary of changes for version 20060721:
10177
101781) ACPI CA Core Subsystem:
10179
10180The full source code for the ASL test suite used to validate the iASL
10181compiler and the ACPICA core subsystem is being released with the ACPICA
10182source for the first time. The source is contained in a separate package
10183and
10184consists of over 1100 files that exercise all ASL/AML operators. The
10185package
10186should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
10187Fiodor
10188Suietov)
10189
10190Completed a new design and implementation for support of the ACPI Global
10191Lock. On the OS side, the global lock is now treated as a standard AML
10192mutex. Previously, multiple OS threads could "acquire" the global lock
10193simultaneously. However, this could cause the BIOS to be starved out of
10194the
10195lock - especially in cases such as the Embedded Controller driver where
10196there is a tight coupling between the OS and the BIOS.
10197
10198Implemented an optimization for the ACPI Global Lock interrupt mechanism.
10199The Global Lock interrupt handler no longer queues the execution of a
10200separate thread to signal the global lock semaphore. Instead, the
10201semaphore
10202is signaled directly from the interrupt handler.
10203
10204Implemented support within the AML interpreter for package objects that
10205contain a larger AML length (package list length) than the package
10206element
10207count. In this case, the length of the package is truncated to match the
10208package element count. Some BIOS code apparently modifies the package
10209length
10210on the fly, and this change supports this behavior. Provides
10211compatibility
10212with the MS AML interpreter. (With assistance from Fiodor Suietov)
10213
10214Implemented a temporary fix for the BankValue parameter of a Bank Field
10215to
10216support all constant values, now including the Zero and One opcodes.
10217Evaluation of this parameter must eventually be converted to a full
10218TermArg
10219evaluation. A not-implemented error is now returned (temporarily) for
10220non-
10221constant values for this parameter.
10222
10223Fixed problem reports (Fiodor Suietov) integrated:
10224- Fix for premature object deletion after CopyObject on Operation Region
10225(BZ
10226350)
10227
10228Example Code and Data Size: These are the sizes for the OS-independent
10229acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10230debug version of the code includes the debug output trace mechanism and
10231has
10232a much larger code and data size.
10233
10234  Previous Release:
10235    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
10236    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
10237  Current Release:
10238    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
10239    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
10240
10241
102422) iASL Compiler/Disassembler and Tools:
10243
10244No changes for this release.
10245
10246----------------------------------------
1024707 July 2006. Summary of changes for version 20060707:
10248
102491) ACPI CA Core Subsystem:
10250
10251Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
10252that do not allow the initialization of address pointers within packed
10253structures - even though the hardware itself may support misaligned
10254transfers. Some of the debug data structures are packed by default to
10255minimize size.
10256
10257Added an error message for the case where AcpiOsGetThreadId() returns
10258zero.
10259A non-zero value is required by the core ACPICA code to ensure the proper
10260operation of AML mutexes and recursive control methods.
10261
10262The DSDT is now the only ACPI table that determines whether the AML
10263interpreter is in 32-bit or 64-bit mode. Not really a functional change,
10264but
10265the hooks for per-table 32/64 switching have been removed from the code.
10266A
10267clarification to the ACPI specification is forthcoming in ACPI 3.0B.
10268
10269Fixed a possible leak of an OwnerID in the error path of
10270AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
10271deletion to a single place in AcpiTbUninstallTable to correct possible
10272leaks
10273when using the AcpiTbDeleteTablesByType interface (with assistance from
10274Lance Ortiz.)
10275
10276Fixed a problem with Serialized control methods where the semaphore
10277associated with the method could be over-signaled after multiple method
10278invocations.
10279
10280Fixed two issues with the locking of the internal namespace data
10281structure.
10282Both the Unload() operator and AcpiUnloadTable interface now lock the
10283namespace during the namespace deletion associated with the table unload
10284(with assistance from Linn Crosetto.)
10285
10286Fixed problem reports (Valery Podrezov) integrated:
10287- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
10288
10289Fixed problem reports (Fiodor Suietov) integrated:
10290- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
10291- On Address Space handler deletion, needless deactivation call (BZ 374)
10292- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
10293375)
10294- Possible memory leak, Notify sub-objects of Processor, Power,
10295ThermalZone
10296(BZ 376)
10297- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
10298- Minimum Length of RSDT should be validated (BZ 379)
10299- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
10300Handler (BZ (380)
10301- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
10302loaded
10303(BZ 381)
10304
10305Example Code and Data Size: These are the sizes for the OS-independent
10306acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10307debug version of the code includes the debug output trace mechanism and
10308has
10309a much larger code and data size.
10310
10311  Previous Release:
10312    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
10313    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
10314  Current Release:
10315    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
10316    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
10317
10318
103192) iASL Compiler/Disassembler and Tools:
10320
10321Fixed problem reports:
10322Compiler segfault when ASL contains a long (>1024) String declaration (BZ
10323436)
10324
10325----------------------------------------
1032623 June 2006. Summary of changes for version 20060623:
10327
103281) ACPI CA Core Subsystem:
10329
10330Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
10331allows the type to be customized to the host OS for improved efficiency
10332(since a spinlock is usually a very small object.)
10333
10334Implemented support for "ignored" bits in the ACPI registers. According
10335to
10336the ACPI specification, these bits should be preserved when writing the
10337registers via a read/modify/write cycle. There are 3 bits preserved in
10338this
10339manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
10340
10341Implemented the initial deployment of new OSL mutex interfaces. Since
10342some
10343host operating systems have separate mutex and semaphore objects, this
10344feature was requested. The base code now uses mutexes (and the new mutex
10345interfaces) wherever a binary semaphore was used previously. However, for
10346the current release, the mutex interfaces are defined as macros to map
10347them
10348to the existing semaphore interfaces. Therefore, no OSL changes are
10349required
10350at this time. (See acpiosxf.h)
10351
10352Fixed several problems with the support for the control method SyncLevel
10353parameter. The SyncLevel now works according to the ACPI specification
10354and
10355in concert with the Mutex SyncLevel parameter, since the current
10356SyncLevel
10357is a property of the executing thread. Mutual exclusion for control
10358methods
10359is now implemented with a mutex instead of a semaphore.
10360
10361Fixed three instances of the use of the C shift operator in the bitfield
10362support code (exfldio.c) to avoid the use of a shift value larger than
10363the
10364target data width. The behavior of C compilers is undefined in this case
10365and
10366can cause unpredictable results, and therefore the case must be detected
10367and
10368avoided. (Fiodor Suietov)
10369
10370Added an info message whenever an SSDT or OEM table is loaded dynamically
10371via the Load() or LoadTable() ASL operators. This should improve
10372debugging
10373capability since it will show exactly what tables have been loaded
10374(beyond
10375the tables present in the RSDT/XSDT.)
10376
10377Example Code and Data Size: These are the sizes for the OS-independent
10378acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10379debug version of the code includes the debug output trace mechanism and
10380has
10381a much larger code and data size.
10382
10383  Previous Release:
10384    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
10385    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
10386  Current Release:
10387    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
10388    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
10389
10390
103912) iASL Compiler/Disassembler and Tools:
10392
10393No changes for this release.
10394
10395----------------------------------------
1039608 June 2006. Summary of changes for version 20060608:
10397
103981) ACPI CA Core Subsystem:
10399
10400Converted the locking mutex used for the ACPI hardware to a spinlock.
10401This
10402change should eliminate all problems caused by attempting to acquire a
10403semaphore at interrupt level, and it means that all ACPICA external
10404interfaces that directly access the ACPI hardware can be safely called
10405from
10406interrupt level. OSL code that implements the semaphore interfaces should
10407be
10408able to eliminate any workarounds for being called at interrupt level.
10409
10410Fixed a regression introduced in 20060526 where the ACPI device
10411initialization could be prematurely aborted with an AE_NOT_FOUND if a
10412device
10413did not have an optional _INI method.
10414
10415Fixed an IndexField issue where a write to the Data Register should be
10416limited in size to the AccessSize (width) of the IndexField itself. (BZ
10417433,
10418Fiodor Suietov)
10419
10420Fixed problem reports (Valery Podrezov) integrated:
10421- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
10422
10423Fixed problem reports (Fiodor Suietov) integrated:
10424- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
10425
10426Removed four global mutexes that were obsolete and were no longer being
10427used.
10428
10429Example Code and Data Size: These are the sizes for the OS-independent
10430acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10431debug version of the code includes the debug output trace mechanism and
10432has
10433a much larger code and data size.
10434
10435  Previous Release:
10436    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
10437    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
10438  Current Release:
10439    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
10440    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
10441
10442
104432) iASL Compiler/Disassembler and Tools:
10444
10445Fixed a fault when using -g option (get tables from registry) on Windows
10446machines.
10447
10448Fixed problem reports integrated:
10449- Generate error if CreateField NumBits parameter is zero. (BZ 405)
10450- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
10451Suietov)
10452- Global table revision override (-r) is ignored (BZ 413)
10453
10454----------------------------------------
1045526 May 2006. Summary of changes for version 20060526:
10456
104571) ACPI CA Core Subsystem:
10458
10459Restructured, flattened, and simplified the internal interfaces for
10460namespace object evaluation - resulting in smaller code, less CPU stack
10461use,
10462and fewer interfaces. (With assistance from Mikhail Kouzmich)
10463
10464Fixed a problem with the CopyObject operator where the first parameter
10465was
10466not typed correctly for the parser, interpreter, compiler, and
10467disassembler.
10468Caused various errors and unexpected behavior.
10469
10470Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
10471produced incorrect results with some C compilers. Since the behavior of C
10472compilers when the shift value is larger than the datatype width is
10473apparently not well defined, the interpreter now detects this condition
10474and
10475simply returns zero as expected in all such cases. (BZ 395)
10476
10477Fixed problem reports (Valery Podrezov) integrated:
10478- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
10479- Allow interpreter to handle nested method declarations (BZ 5361)
10480
10481Fixed problem reports (Fiodor Suietov) integrated:
10482- AcpiTerminate doesn't free debug memory allocation list objects (BZ
10483355)
10484- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
10485356)
10486- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
10487- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
10488- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
10489- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
10490- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
10491- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
10492- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
10493365)
10494- Status of the Global Initialization Handler call not used (BZ 366)
10495- Incorrect object parameter to Global Initialization Handler (BZ 367)
10496
10497Example Code and Data Size: These are the sizes for the OS-independent
10498acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10499debug version of the code includes the debug output trace mechanism and
10500has
10501a much larger code and data size.
10502
10503  Previous Release:
10504    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
10505    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
10506  Current Release:
10507    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
10508    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
10509
10510
105112) iASL Compiler/Disassembler and Tools:
10512
10513Modified the parser to allow the names IO, DMA, and IRQ to be used as
10514namespace identifiers with no collision with existing resource descriptor
10515macro names. This provides compatibility with other ASL compilers and is
10516most useful for disassembly/recompilation of existing tables without
10517parse
10518errors. (With assistance from Thomas Renninger)
10519
10520Disassembler: fixed an incorrect disassembly problem with the
10521DataTableRegion and CopyObject operators. Fixed a possible fault during
10522disassembly of some Alias operators.
10523
10524----------------------------------------
1052512 May 2006. Summary of changes for version 20060512:
10526
105271) ACPI CA Core Subsystem:
10528
10529Replaced the AcpiOsQueueForExecution interface with a new interface named
10530AcpiOsExecute. The major difference is that the new interface does not
10531have
10532a Priority parameter, this appeared to be useless and has been replaced
10533by
10534a
10535Type parameter. The Type tells the host what type of execution is being
10536requested, such as global lock handler, notify handler, GPE handler, etc.
10537This allows the host to queue and execute the request as appropriate for
10538the
10539request type, possibly using different work queues and different
10540priorities
10541for the various request types. This enables fixes for multithreading
10542deadlock problems such as BZ #5534, and will require changes to all
10543existing
10544OS interface layers. (Alexey Starikovskiy and Bob Moore)
10545
10546Fixed a possible memory leak associated with the support for the so-
10547called
10548"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
10549Suietov)
10550
10551Fixed a problem with the Load() operator where a table load from an
10552operation region could overwrite an internal table buffer by up to 7
10553bytes
10554and cause alignment faults on IPF systems. (With assistance from Luming
10555Yu)
10556
10557Example Code and Data Size: These are the sizes for the OS-independent
10558acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10559debug version of the code includes the debug output trace mechanism and
10560has
10561a much larger code and data size.
10562
10563  Previous Release:
10564    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
10565    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
10566  Current Release:
10567    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
10568    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
10569
10570
10571
105722) iASL Compiler/Disassembler and Tools:
10573
10574Disassembler: Implemented support to cross reference the internal
10575namespace
10576and automatically generate ASL External() statements for symbols not
10577defined
10578within the current table being disassembled. This will simplify the
10579disassembly and recompilation of interdependent tables such as SSDTs
10580since
10581these statements will no longer have to be added manually.
10582
10583Disassembler: Implemented experimental support to automatically detect
10584invocations of external control methods and generate appropriate
10585External()
10586statements. This is problematic because the AML cannot be correctly
10587parsed
10588until the number of arguments for each control method is known.
10589Currently,
10590standalone method invocations and invocations as the source operand of a
10591Store() statement are supported.
10592
10593Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
10594LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
10595LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
10596more readable and likely closer to the original ASL source.
10597
10598----------------------------------------
1059921 April 2006. Summary of changes for version 20060421:
10600
106011) ACPI CA Core Subsystem:
10602
10603Removed a device initialization optimization introduced in 20051216 where
10604the _STA method was not run unless an _INI was also present for the same
10605device. This optimization could cause problems because it could allow
10606_INI
10607methods to be run within a not-present device subtree. (If a not-present
10608device had no _INI, _STA would not be run, the not-present status would
10609not
10610be discovered, and the children of the device would be incorrectly
10611traversed.)
10612
10613Implemented a new _STA optimization where namespace subtrees that do not
10614contain _INI are identified and ignored during device initialization.
10615Selectively running _STA can significantly improve boot time on large
10616machines (with assistance from Len Brown.)
10617
10618Implemented support for the device initialization case where the returned
10619_STA flags indicate a device not-present but functioning. In this case,
10620_INI
10621is not run, but the device children are examined for presence, as per the
10622ACPI specification.
10623
10624Implemented an additional change to the IndexField support in order to
10625conform to MS behavior. The value written to the Index Register is not
10626simply a byte offset, it is a byte offset in units of the access width of
10627the parent Index Field. (Fiodor Suietov)
10628
10629Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
10630interface is called during the creation of all AML operation regions, and
10631allows the host OS to exert control over what addresses it will allow the
10632AML code to access. Operation Regions whose addresses are disallowed will
10633cause a runtime exception when they are actually accessed (will not
10634affect
10635or abort table loading.) See oswinxf or osunixxf for an example
10636implementation.
10637
10638Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
10639interface allows the host OS to match the various "optional"
10640interface/behavior strings for the _OSI predefined control method as
10641appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
10642for an example implementation.
10643
10644Restructured and corrected various problems in the exception handling
10645code
10646paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
10647(with assistance from Takayoshi Kochi.)
10648
10649Modified the Linux source converter to ignore quoted string literals
10650while
10651converting identifiers from mixed to lower case. This will correct
10652problems
10653with the disassembler and other areas where such strings must not be
10654modified.
10655
10656The ACPI_FUNCTION_* macros no longer require quotes around the function
10657name. This allows the Linux source converter to convert the names, now
10658that
10659the converter ignores quoted strings.
10660
10661Example Code and Data Size: These are the sizes for the OS-independent
10662acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10663debug version of the code includes the debug output trace mechanism and
10664has
10665a much larger code and data size.
10666
10667  Previous Release:
10668
10669    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
10670    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
10671  Current Release:
10672    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
10673    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
10674
10675
106762) iASL Compiler/Disassembler and Tools:
10677
10678Implemented 3 new warnings for iASL, and implemented multiple warning
10679levels
10680(w2 flag).
10681
106821) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
10683not
10684WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
10685check for the possible timeout, a warning is issued.
10686
106872) Useless operators: If an ASL operator does not specify an optional
10688target
10689operand and it also does not use the function return value from the
10690operator, a warning is issued since the operator effectively does
10691nothing.
10692
106933) Unreferenced objects: If a namespace object is created, but never
10694referenced, a warning is issued. This is a warning level 2 since there
10695are
10696cases where this is ok, such as when a secondary table is loaded that
10697uses
10698the unreferenced objects. Even so, care is taken to only flag objects
10699that
10700don't look like they will ever be used. For example, the reserved methods
10701(starting with an underscore) are usually not referenced because it is
10702expected that the OS will invoke them.
10703
10704----------------------------------------
1070531 March 2006. Summary of changes for version 20060331:
10706
107071) ACPI CA Core Subsystem:
10708
10709Implemented header file support for the following additional ACPI tables:
10710ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
10711support,
10712all current and known ACPI tables are now defined in the ACPICA headers
10713and
10714are available for use by device drivers and other software.
10715
10716Implemented support to allow tables that contain ACPI names with invalid
10717characters to be loaded. Previously, this would cause the table load to
10718fail, but since there are several known cases of such tables on existing
10719machines, this change was made to enable ACPI support for them. Also,
10720this
10721matches the behavior of the Microsoft ACPI implementation.
10722
10723Fixed a couple regressions introduced during the memory optimization in
10724the
1072520060317 release. The namespace node definition required additional
10726reorganization and an internal datatype that had been changed to 8-bit
10727was
10728restored to 32-bit. (Valery Podrezov)
10729
10730Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
10731could be passed through to AcpiOsReleaseObject which is unexpected. Such
10732null pointers are now trapped and ignored, matching the behavior of the
10733previous implementation before the deployment of AcpiOsReleaseObject.
10734(Valery Podrezov, Fiodor Suietov)
10735
10736Fixed a memory mapping leak during the deletion of a SystemMemory
10737operation
10738region where a cached memory mapping was not deleted. This became a
10739noticeable problem for operation regions that are defined within
10740frequently
10741used control methods. (Dana Meyers)
10742
10743Reorganized the ACPI table header files into two main files: one for the
10744ACPI tables consumed by the ACPICA core, and another for the
10745miscellaneous
10746ACPI tables that are consumed by the drivers and other software. The
10747various
10748FADT definitions were merged into one common section and three different
10749tables (ACPI 1.0, 1.0+, and 2.0)
10750
10751Example Code and Data Size: These are the sizes for the OS-independent
10752acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10753debug version of the code includes the debug output trace mechanism and
10754has
10755a much larger code and data size.
10756
10757  Previous Release:
10758    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
10759    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
10760  Current Release:
10761    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
10762    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
10763
10764
107652) iASL Compiler/Disassembler and Tools:
10766
10767Disassembler: Implemented support to decode and format all non-AML ACPI
10768tables (tables other than DSDTs and SSDTs.) This includes the new tables
10769added to the ACPICA headers, therefore all current and known ACPI tables
10770are
10771supported.
10772
10773Disassembler: The change to allow ACPI names with invalid characters also
10774enables the disassembly of such tables. Invalid characters within names
10775are
10776changed to '*' to make the name printable; the iASL compiler will still
10777generate an error for such names, however, since this is an invalid ACPI
10778character.
10779
10780Implemented an option for AcpiXtract (-a) to extract all tables found in
10781the
10782input file. The default invocation extracts only the DSDTs and SSDTs.
10783
10784Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
10785makefile for the AcpiXtract utility.
10786
10787----------------------------------------
1078817 March 2006. Summary of changes for version 20060317:
10789
107901) ACPI CA Core Subsystem:
10791
10792Implemented the use of a cache object for all internal namespace nodes.
10793Since there are about 1000 static nodes in a typical system, this will
10794decrease memory use for cache implementations that minimize per-
10795allocation
10796overhead (such as a slab allocator.)
10797
10798Removed the reference count mechanism for internal namespace nodes, since
10799it
10800was deemed unnecessary. This reduces the size of each namespace node by
10801about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
10802case,
10803and 32 bytes for the 64-bit case.
10804
10805Optimized several internal data structures to reduce object size on 64-
10806bit
10807platforms by packing data within the 64-bit alignment. This includes the
10808frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
10809instances corresponding to the namespace objects.
10810
10811Added two new strings for the predefined _OSI method: "Windows 2001.1
10812SP1"
10813and "Windows 2006".
10814
10815Split the allocation tracking mechanism out to a separate file, from
10816utalloc.c to uttrack.c. This mechanism appears to be only useful for
10817application-level code. Kernels may wish to not include uttrack.c in
10818distributions.
10819
10820Removed all remnants of the obsolete ACPI_REPORT_* macros and the
10821associated
10822code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
10823macros.)
10824
10825Code and Data Size: These are the sizes for the acpica.lib produced by
10826the
10827Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
10828ACPI
10829driver or OSPM code. The debug version of the code includes the debug
10830output
10831trace mechanism and has a much larger code and data size. Note that these
10832values will vary depending on the efficiency of the compiler and the
10833compiler options used during generation.
10834
10835  Previous Release:
10836    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
10837    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
10838  Current Release:
10839    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
10840    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
10841
10842
108432) iASL Compiler/Disassembler and Tools:
10844
10845Implemented an ANSI C version of the acpixtract utility. This version
10846will
10847automatically extract the DSDT and all SSDTs from the input acpidump text
10848file and dump the binary output to separate files. It can also display a
10849summary of the input file including the headers for each table found and
10850will extract any single ACPI table, with any signature. (See
10851source/tools/acpixtract)
10852
10853----------------------------------------
1085410 March 2006. Summary of changes for version 20060310:
10855
108561) ACPI CA Core Subsystem:
10857
10858Tagged all external interfaces to the subsystem with the new
10859ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
10860assist
10861kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
10862macro. The default definition is NULL.
10863
10864Added the ACPI_THREAD_ID type for the return value from
10865AcpiOsGetThreadId.
10866This allows the host to define this as necessary to simplify kernel
10867integration. The default definition is ACPI_NATIVE_UINT.
10868
10869Fixed two interpreter problems related to error processing, the deletion
10870of
10871objects, and placing invalid pointers onto the internal operator result
10872stack. BZ 6028, 6151 (Valery Podrezov)
10873
10874Increased the reference count threshold where a warning is emitted for
10875large
10876reference counts in order to eliminate unnecessary warnings on systems
10877with
10878large namespaces (especially 64-bit.) Increased the value from 0x400 to
108790x800.
10880
10881Due to universal disagreement as to the meaning of the 'c' in the
10882calloc()
10883function, the ACPI_MEM_CALLOCATE macro has been renamed to
10884ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
10885ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
10886ACPI_FREE.
10887
10888Code and Data Size: These are the sizes for the acpica.lib produced by
10889the
10890Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
10891ACPI
10892driver or OSPM code. The debug version of the code includes the debug
10893output
10894trace mechanism and has a much larger code and data size. Note that these
10895values will vary depending on the efficiency of the compiler and the
10896compiler options used during generation.
10897
10898  Previous Release:
10899    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
10900    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
10901  Current Release:
10902    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
10903    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
10904
10905
109062) iASL Compiler/Disassembler:
10907
10908Disassembler: implemented support for symbolic resource descriptor
10909references. If a CreateXxxxField operator references a fixed offset
10910within
10911a
10912resource descriptor, a name is assigned to the descriptor and the offset
10913is
10914translated to the appropriate resource tag and pathname. The addition of
10915this support brings the disassembled code very close to the original ASL
10916source code and helps eliminate run-time errors when the disassembled
10917code
10918is modified (and recompiled) in such a way as to invalidate the original
10919fixed offsets.
10920
10921Implemented support for a Descriptor Name as the last parameter to the
10922ASL
10923Register() macro. This parameter was inadvertently left out of the ACPI
10924specification, and will be added for ACPI 3.0b.
10925
10926Fixed a problem where the use of the "_OSI" string (versus the full path
10927"\_OSI") caused an internal compiler error. ("No back ptr to op")
10928
10929Fixed a problem with the error message that occurs when an invalid string
10930is
10931used for a _HID object (such as one with an embedded asterisk:
10932"*PNP010A".)
10933The correct message is now displayed.
10934
10935----------------------------------------
1093617 February 2006. Summary of changes for version 20060217:
10937
109381) ACPI CA Core Subsystem:
10939
10940Implemented a change to the IndexField support to match the behavior of
10941the
10942Microsoft AML interpreter. The value written to the Index register is now
10943a
10944byte offset, no longer an index based upon the width of the Data
10945register.
10946This should fix IndexField problems seen on some machines where the Data
10947register is not exactly one byte wide. The ACPI specification will be
10948clarified on this point.
10949
10950Fixed a problem where several resource descriptor types could overrun the
10951internal descriptor buffer due to size miscalculation: VendorShort,
10952VendorLong, and Interrupt. This was noticed on IA64 machines, but could
10953affect all platforms.
10954
10955Fixed a problem where individual resource descriptors were misaligned
10956within
10957the internal buffer, causing alignment faults on IA64 platforms.
10958
10959Code and Data Size: These are the sizes for the acpica.lib produced by
10960the
10961Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
10962ACPI
10963driver or OSPM code. The debug version of the code includes the debug
10964output
10965trace mechanism and has a much larger code and data size. Note that these
10966values will vary depending on the efficiency of the compiler and the
10967compiler options used during generation.
10968
10969  Previous Release:
10970    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
10971    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
10972  Current Release:
10973    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
10974    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
10975
10976
109772) iASL Compiler/Disassembler:
10978
10979Implemented support for new reserved names: _WDG and _WED are Microsoft
10980extensions for Windows Instrumentation Management, _TDL is a new ACPI-
10981defined method (Throttling Depth Limit.)
10982
10983Fixed a problem where a zero-length VendorShort or VendorLong resource
10984descriptor was incorrectly emitted as a descriptor of length one.
10985
10986----------------------------------------
1098710 February 2006. Summary of changes for version 20060210:
10988
109891) ACPI CA Core Subsystem:
10990
10991Removed a couple of extraneous ACPI_ERROR messages that appeared during
10992normal execution. These became apparent after the conversion from
10993ACPI_DEBUG_PRINT.
10994
10995Fixed a problem where the CreateField operator could hang if the BitIndex
10996or
10997NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
10998
10999Fixed a problem where a DeRefOf operation on a buffer object incorrectly
11000failed with an exception. This also fixes a couple of related RefOf and
11001DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
11002
11003Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
11004of
11005AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
11006BZ
110075480)
11008
11009Implemented a memory cleanup at the end of the execution of each
11010iteration
11011of an AML While() loop, preventing the accumulation of outstanding
11012objects.
11013(Valery Podrezov, BZ 5427)
11014
11015Eliminated a chunk of duplicate code in the object resolution code.
11016(Valery
11017Podrezov, BZ 5336)
11018
11019Fixed several warnings during the 64-bit code generation.
11020
11021The AcpiSrc source code conversion tool now inserts one line of
11022whitespace
11023after an if() statement that is followed immediately by a comment,
11024improving
11025readability of the Linux code.
11026
11027Code and Data Size: The current and previous library sizes for the core
11028subsystem are shown below. These are the code and data sizes for the
11029acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11030These
11031values do not include any ACPI driver or OSPM code. The debug version of
11032the
11033code includes the debug output trace mechanism and has a much larger code
11034and data size. Note that these values will vary depending on the
11035efficiency
11036of the compiler and the compiler options used during generation.
11037
11038  Previous Release:
11039    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
11040    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
11041  Current Release:
11042    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
11043    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
11044
11045
110462) iASL Compiler/Disassembler:
11047
11048Fixed a problem with the disassembly of a BankField operator with a
11049complex
11050expression for the BankValue parameter.
11051
11052----------------------------------------
1105327 January 2006. Summary of changes for version 20060127:
11054
110551) ACPI CA Core Subsystem:
11056
11057Implemented support in the Resource Manager to allow unresolved
11058namestring
11059references within resource package objects for the _PRT method. This
11060support
11061is in addition to the previously implemented unresolved reference support
11062within the AML parser. If the interpreter slack mode is enabled, these
11063unresolved references will be passed through to the caller as a NULL
11064package
11065entry.
11066
11067Implemented and deployed new macros and functions for error and warning
11068messages across the subsystem. These macros are simpler and generate less
11069code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
11070ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
11071macros remain defined to allow ACPI drivers time to migrate to the new
11072macros.
11073
11074Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
11075the
11076Acquire/Release Lock OSL interfaces.
11077
11078Fixed a problem where Alias ASL operators are sometimes not correctly
11079resolved, in both the interpreter and the iASL compiler.
11080
11081Fixed several problems with the implementation of the
11082ConcatenateResTemplate
11083ASL operator. As per the ACPI specification, zero length buffers are now
11084treated as a single EndTag. One-length buffers always cause a fatal
11085exception. Non-zero length buffers that do not end with a full 2-byte
11086EndTag
11087cause a fatal exception.
11088
11089Fixed a possible structure overwrite in the AcpiGetObjectInfo external
11090interface. (With assistance from Thomas Renninger)
11091
11092Code and Data Size: The current and previous library sizes for the core
11093subsystem are shown below. These are the code and data sizes for the
11094acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11095These
11096values do not include any ACPI driver or OSPM code. The debug version of
11097the
11098code includes the debug output trace mechanism and has a much larger code
11099and data size. Note that these values will vary depending on the
11100efficiency
11101of the compiler and the compiler options used during generation.
11102
11103  Previous Release:
11104    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
11105    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
11106  Current Release:
11107    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
11108    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
11109
11110
111112) iASL Compiler/Disassembler:
11112
11113Fixed an internal error that was generated for any forward references to
11114ASL
11115Alias objects.
11116
11117----------------------------------------
1111813 January 2006. Summary of changes for version 20060113:
11119
111201) ACPI CA Core Subsystem:
11121
11122Added 2006 copyright to all module headers and signons. This affects
11123virtually every file in the ACPICA core subsystem, iASL compiler, and the
11124utilities.
11125
11126Enhanced the ACPICA error reporting in order to simplify user migration
11127to
11128the non-debug version of ACPICA. Replaced all instances of the
11129ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
11130debug
11131levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
11132respectively. This preserves all error and warning messages in the non-
11133debug
11134version of the ACPICA code (this has been referred to as the "debug lite"
11135option.) Over 200 cases were converted to create a total of over 380
11136error/warning messages across the ACPICA code. This increases the code
11137and
11138data size of the default non-debug version of the code somewhat (about
1113913K),
11140but all error/warning reporting may be disabled if desired (and code
11141eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
11142configuration option. The size of the debug version of ACPICA remains
11143about
11144the same.
11145
11146Fixed a memory leak within the AML Debugger "Set" command. One object was
11147not properly deleted for every successful invocation of the command.
11148
11149Code and Data Size: The current and previous library sizes for the core
11150subsystem are shown below. These are the code and data sizes for the
11151acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11152These
11153values do not include any ACPI driver or OSPM code. The debug version of
11154the
11155code includes the debug output trace mechanism and has a much larger code
11156and data size. Note that these values will vary depending on the
11157efficiency
11158of the compiler and the compiler options used during generation.
11159
11160  Previous Release:
11161    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
11162    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
11163  Current Release:
11164    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
11165    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
11166
11167
111682) iASL Compiler/Disassembler:
11169
11170The compiler now officially supports the ACPI 3.0a specification that was
11171released on December 30, 2005. (Specification is available at
11172www.acpi.info)
11173
11174----------------------------------------
1117516 December 2005. Summary of changes for version 20051216:
11176
111771) ACPI CA Core Subsystem:
11178
11179Implemented optional support to allow unresolved names within ASL Package
11180objects. A null object is inserted in the package when a named reference
11181cannot be located in the current namespace. Enabled via the interpreter
11182slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
11183machines
11184that contain such code.
11185
11186Implemented an optimization to the initialization sequence that can
11187improve
11188boot time. During ACPI device initialization, the _STA method is now run
11189if
11190and only if the _INI method exists. The _STA method is used to determine
11191if
11192the device is present; An _INI can only be run if _STA returns present,
11193but
11194it is a waste of time to run the _STA method if the _INI does not exist.
11195(Prototype and assistance from Dong Wei)
11196
11197Implemented use of the C99 uintptr_t for the pointer casting macros if it
11198is
11199available in the current compiler. Otherwise, the default (void *) cast
11200is
11201used as before.
11202
11203Fixed some possible memory leaks found within the execution path of the
11204Break, Continue, If, and CreateField operators. (Valery Podrezov)
11205
11206Fixed a problem introduced in the 20051202 release where an exception is
11207generated during method execution if a control method attempts to declare
11208another method.
11209
11210Moved resource descriptor string constants that are used by both the AML
11211disassembler and AML debugger to the common utilities directory so that
11212these components are independent.
11213
11214Implemented support in the AcpiExec utility (-e switch) to globally
11215ignore
11216exceptions during control method execution (method is not aborted.)
11217
11218Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
11219generation.
11220
11221Code and Data Size: The current and previous library sizes for the core
11222subsystem are shown below. These are the code and data sizes for the
11223acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11224These
11225values do not include any ACPI driver or OSPM code. The debug version of
11226the
11227code includes the debug output trace mechanism and has a much larger code
11228and data size. Note that these values will vary depending on the
11229efficiency
11230of the compiler and the compiler options used during generation.
11231
11232  Previous Release:
11233    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11234    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
11235  Current Release:
11236    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
11237    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
11238
11239
112402) iASL Compiler/Disassembler:
11241
11242Fixed a problem where a CPU stack overflow fault could occur if a
11243recursive
11244method call was made from within a Return statement.
11245
11246----------------------------------------
1124702 December 2005. Summary of changes for version 20051202:
11248
112491) ACPI CA Core Subsystem:
11250
11251Modified the parsing of control methods to no longer create namespace
11252objects during the first pass of the parse. Objects are now created only
11253during the execute phase, at the moment the namespace creation operator
11254is
11255encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
11256This
11257should eliminate ALREADY_EXISTS exceptions seen on some machines where
11258reentrant control methods are protected by an AML mutex. The mutex will
11259now
11260correctly block multiple threads from attempting to create the same
11261object
11262more than once.
11263
11264Increased the number of available Owner Ids for namespace object tracking
11265from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
11266on
11267some machines with a large number of ACPI tables (either static or
11268dynamic).
11269
11270Fixed a problem with the AcpiExec utility where a fault could occur when
11271the
11272-b switch (batch mode) is used.
11273
11274Enhanced the namespace dump routine to output the owner ID for each
11275namespace object.
11276
11277Code and Data Size: The current and previous library sizes for the core
11278subsystem are shown below. These are the code and data sizes for the
11279acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11280These
11281values do not include any ACPI driver or OSPM code. The debug version of
11282the
11283code includes the debug output trace mechanism and has a much larger code
11284and data size. Note that these values will vary depending on the
11285efficiency
11286of the compiler and the compiler options used during generation.
11287
11288  Previous Release:
11289    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11290    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11291  Current Release:
11292    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11293    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
11294
11295
112962) iASL Compiler/Disassembler:
11297
11298Fixed a parse error during compilation of certain Switch/Case constructs.
11299To
11300simplify the parse, the grammar now allows for multiple Default
11301statements
11302and this error is now detected and flagged during the analysis phase.
11303
11304Disassembler: The disassembly now includes the contents of the original
11305table header within a comment at the start of the file. This includes the
11306name and version of the original ASL compiler.
11307
11308----------------------------------------
1130917 November 2005. Summary of changes for version 20051117:
11310
113111) ACPI CA Core Subsystem:
11312
11313Fixed a problem in the AML parser where the method thread count could be
11314decremented below zero if any errors occurred during the method parse
11315phase.
11316This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
11317machines.
11318This also fixed a related regression with the mechanism that detects and
11319corrects methods that cannot properly handle reentrancy (related to the
11320deployment of the new OwnerId mechanism.)
11321
11322Eliminated the pre-parsing of control methods (to detect errors) during
11323table load. Related to the problem above, this was causing unwind issues
11324if
11325any errors occurred during the parse, and it seemed to be overkill. A
11326table
11327load should not be aborted if there are problems with any single control
11328method, thus rendering this feature rather pointless.
11329
11330Fixed a problem with the new table-driven resource manager where an
11331internal
11332buffer overflow could occur for small resource templates.
11333
11334Implemented a new external interface, AcpiGetVendorResource. This
11335interface
11336will find and return a vendor-defined resource descriptor within a _CRS
11337or
11338_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
11339Helgaas.
11340
11341Removed the length limit (200) on string objects as per the upcoming ACPI
113423.0A specification. This affects the following areas of the interpreter:
113431)
11344any implicit conversion of a Buffer to a String, 2) a String object
11345result
11346of the ASL Concatentate operator, 3) the String object result of the ASL
11347ToString operator.
11348
11349Fixed a problem in the Windows OS interface layer (OSL) where a
11350WAIT_FOREVER
11351on a semaphore object would incorrectly timeout. This allows the
11352multithreading features of the AcpiExec utility to work properly under
11353Windows.
11354
11355Updated the Linux makefiles for the iASL compiler and AcpiExec to include
11356the recently added file named "utresrc.c".
11357
11358Code and Data Size: The current and previous library sizes for the core
11359subsystem are shown below. These are the code and data sizes for the
11360acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11361These
11362values do not include any ACPI driver or OSPM code. The debug version of
11363the
11364code includes the debug output trace mechanism and has a much larger code
11365and data size. Note that these values will vary depending on the
11366efficiency
11367of the compiler and the compiler options used during generation.
11368
11369  Previous Release:
11370    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
11371    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11372  Current Release:
11373    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
11374    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11375
11376
113772) iASL Compiler/Disassembler:
11378
11379Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
11380specification. For the iASL compiler, this means that string literals
11381within
11382the source ASL can be of any length.
11383
11384Enhanced the listing output to dump the AML code for resource descriptors
11385immediately after the ASL code for each descriptor, instead of in a block
11386at
11387the end of the entire resource template.
11388
11389Enhanced the compiler debug output to dump the entire original parse tree
11390constructed during the parse phase, before any transforms are applied to
11391the
11392tree. The transformed tree is dumped also.
11393
11394----------------------------------------
1139502 November 2005. Summary of changes for version 20051102:
11396
113971) ACPI CA Core Subsystem:
11398
11399Modified the subsystem initialization sequence to improve GPE support.
11400The
11401GPE initialization has been split into two parts in order to defer
11402execution
11403of the _PRW methods (Power Resources for Wake) until after the hardware
11404is
11405fully initialized and the SCI handler is installed. This allows the _PRW
11406methods to access fields protected by the Global Lock. This will fix
11407systems
11408where a NO_GLOBAL_LOCK exception has been seen during initialization.
11409
11410Converted the ACPI internal object disassemble and display code within
11411the
11412AML debugger to fully table-driven operation, reducing code size and
11413increasing maintainability.
11414
11415Fixed a regression with the ConcatenateResTemplate() ASL operator
11416introduced
11417in the 20051021 release.
11418
11419Implemented support for "local" internal ACPI object types within the
11420debugger "Object" command and the AcpiWalkNamespace external interfaces.
11421These local types include RegionFields, BankFields, IndexFields, Alias,
11422and
11423reference objects.
11424
11425Moved common AML resource handling code into a new file, "utresrc.c".
11426This
11427code is shared by both the Resource Manager and the AML Debugger.
11428
11429Code and Data Size: The current and previous library sizes for the core
11430subsystem are shown below. These are the code and data sizes for the
11431acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11432These
11433values do not include any ACPI driver or OSPM code. The debug version of
11434the
11435code includes the debug output trace mechanism and has a much larger code
11436and data size. Note that these values will vary depending on the
11437efficiency
11438of the compiler and the compiler options used during generation.
11439
11440  Previous Release:
11441    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
11442    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
11443  Current Release:
11444    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
11445    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
11446
11447
114482) iASL Compiler/Disassembler:
11449
11450Fixed a problem with very large initializer lists (more than 4000
11451elements)
11452for both Buffer and Package objects where the parse stack could overflow.
11453
11454Enhanced the pre-compile source code scan for non-ASCII characters to
11455ignore
11456characters within comment fields. The scan is now always performed and is
11457no
11458longer optional, detecting invalid characters within a source file
11459immediately rather than during the parse phase or later.
11460
11461Enhanced the ASL grammar definition to force early reductions on all
11462list-
11463style grammar elements so that the overall parse stack usage is greatly
11464reduced. This should improve performance and reduce the possibility of
11465parse
11466stack overflow.
11467
11468Eliminated all reduce/reduce conflicts in the iASL parser generation.
11469Also,
11470with the addition of a %expected statement, the compiler generates from
11471source with no warnings.
11472
11473Fixed a possible segment fault in the disassembler if the input filename
11474does not contain a "dot" extension (Thomas Renninger).
11475
11476----------------------------------------
1147721 October 2005. Summary of changes for version 20051021:
11478
114791) ACPI CA Core Subsystem:
11480
11481Implemented support for the EM64T and other x86-64 processors. This
11482essentially entails recognizing that these processors support non-aligned
11483memory transfers. Previously, all 64-bit processors were assumed to lack
11484hardware support for non-aligned transfers.
11485
11486Completed conversion of the Resource Manager to nearly full table-driven
11487operation. Specifically, the resource conversion code (convert AML to
11488internal format and the reverse) and the debug code to dump internal
11489resource descriptors are fully table-driven, reducing code and data size
11490and
11491improving maintainability.
11492
11493The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
11494word
11495on 64-bit processors instead of a fixed 32-bit word. (With assistance
11496from
11497Alexey Starikovskiy)
11498
11499Implemented support within the resource conversion code for the Type-
11500Specific byte within the various ACPI 3.0 *WordSpace macros.
11501
11502Fixed some issues within the resource conversion code for the type-
11503specific
11504flags for both Memory and I/O address resource descriptors. For Memory,
11505implemented support for the MTP and TTP flags. For I/O, split the TRS and
11506TTP flags into two separate fields.
11507
11508Code and Data Size: The current and previous library sizes for the core
11509subsystem are shown below. These are the code and data sizes for the
11510acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11511These
11512values do not include any ACPI driver or OSPM code. The debug version of
11513the
11514code includes the debug output trace mechanism and has a much larger code
11515and data size. Note that these values will vary depending on the
11516efficiency
11517of the compiler and the compiler options used during generation.
11518
11519  Previous Release:
11520    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
11521    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
11522  Current Release:
11523    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
11524    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
11525
11526
11527
115282) iASL Compiler/Disassembler:
11529
11530Relaxed a compiler restriction that disallowed a ResourceIndex byte if
11531the
11532corresponding ResourceSource string was not also present in a resource
11533descriptor declaration. This restriction caused problems with existing
11534AML/ASL code that includes the Index byte without the string. When such
11535AML
11536was disassembled, it could not be compiled without modification. Further,
11537the modified code created a resource template with a different size than
11538the
11539original, breaking code that used fixed offsets into the resource
11540template
11541buffer.
11542
11543Removed a recent feature of the disassembler to ignore a lone
11544ResourceIndex
11545byte. This byte is now emitted if present so that the exact AML can be
11546reproduced when the disassembled code is recompiled.
11547
11548Improved comments and text alignment for the resource descriptor code
11549emitted by the disassembler.
11550
11551Implemented disassembler support for the ACPI 3.0 AccessSize field within
11552a
11553Register() resource descriptor.
11554
11555----------------------------------------
1155630 September 2005. Summary of changes for version 20050930:
11557
115581) ACPI CA Core Subsystem:
11559
11560Completed a major overhaul of the Resource Manager code - specifically,
11561optimizations in the area of the AML/internal resource conversion code.
11562The
11563code has been optimized to simplify and eliminate duplicated code, CPU
11564stack
11565use has been decreased by optimizing function parameters and local
11566variables, and naming conventions across the manager have been
11567standardized
11568for clarity and ease of maintenance (this includes function, parameter,
11569variable, and struct/typedef names.) The update may force changes in some
11570driver code, depending on how resources are handled by the host OS.
11571
11572All Resource Manager dispatch and information tables have been moved to a
11573single location for clarity and ease of maintenance. One new file was
11574created, named "rsinfo.c".
11575
11576The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
11577guarantee that the argument is not evaluated twice, making them less
11578prone
11579to macro side-effects. However, since there exists the possibility of
11580additional stack use if a particular compiler cannot optimize them (such
11581as
11582in the debug generation case), the original macros are optionally
11583available.
11584Note that some invocations of the return_VALUE macro may now cause size
11585mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
11586to
11587eliminate these. (From Randy Dunlap)
11588
11589Implemented a new mechanism to enable debug tracing for individual
11590control
11591methods. A new external interface, AcpiDebugTrace, is provided to enable
11592this mechanism. The intent is to allow the host OS to easily enable and
11593disable tracing for problematic control methods. This interface can be
11594easily exposed to a user or debugger interface if desired. See the file
11595psxface.c for details.
11596
11597AcpiUtCallocate will now return a valid pointer if a length of zero is
11598specified - a length of one is used and a warning is issued. This matches
11599the behavior of AcpiUtAllocate.
11600
11601Code and Data Size: The current and previous library sizes for the core
11602subsystem are shown below. These are the code and data sizes for the
11603acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11604These
11605values do not include any ACPI driver or OSPM code. The debug version of
11606the
11607code includes the debug output trace mechanism and has a much larger code
11608and data size. Note that these values will vary depending on the
11609efficiency
11610of the compiler and the compiler options used during generation.
11611
11612  Previous Release:
11613    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
11614    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
11615  Current Release:
11616    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
11617    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
11618
11619
116202) iASL Compiler/Disassembler:
11621
11622A remark is issued if the effective compile-time length of a package or
11623buffer is zero. Previously, this was a warning.
11624
11625----------------------------------------
1162616 September 2005. Summary of changes for version 20050916:
11627
116281) ACPI CA Core Subsystem:
11629
11630Fixed a problem within the Resource Manager where support for the Generic
11631Register descriptor was not fully implemented. This descriptor is now
11632fully
11633recognized, parsed, disassembled, and displayed.
11634
11635Completely restructured the Resource Manager code to utilize table-driven
11636dispatch and lookup, eliminating many of the large switch() statements.
11637This
11638reduces overall subsystem code size and code complexity. Affects the
11639resource parsing and construction, disassembly, and debug dump output.
11640
11641Cleaned up and restructured the debug dump output for all resource
11642descriptors. Improved readability of the output and reduced code size.
11643
11644Fixed a problem where changes to internal data structures caused the
11645optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
11646
11647Code and Data Size: The current and previous library sizes for the core
11648subsystem are shown below. These are the code and data sizes for the
11649acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
11650These
11651values do not include any ACPI driver or OSPM code. The debug version of
11652the
11653code includes the debug output trace mechanism and has a much larger code
11654and data size. Note that these values will vary depending on the
11655efficiency
11656of the compiler and the compiler options used during generation.
11657
11658  Previous Release:
11659    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
11660    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
11661  Current Release:
11662    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
11663    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
11664
11665
116662) iASL Compiler/Disassembler:
11667
11668Updated the disassembler to automatically insert an EndDependentFn()
11669macro
11670into the ASL stream if this macro is missing in the original AML code,
11671simplifying compilation of the resulting ASL module.
11672
11673Fixed a problem in the disassembler where a disassembled ResourceSource
11674string (within a large resource descriptor) was not surrounded by quotes
11675and
11676not followed by a comma, causing errors when the resulting ASL module was
11677compiled. Also, escape sequences within a ResourceSource string are now
11678handled correctly (especially "\\")
11679
11680----------------------------------------
1168102 September 2005. Summary of changes for version 20050902:
11682
116831) ACPI CA Core Subsystem:
11684
11685Fixed a problem with the internal Owner ID allocation and deallocation
11686mechanisms for control method execution and recursive method invocation.
11687This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
11688messages seen on some systems. Recursive method invocation depth is
11689currently limited to 255. (Alexey Starikovskiy)
11690
11691Completely eliminated all vestiges of support for the "module-level
11692executable code" until this support is fully implemented and debugged.
11693This
11694should eliminate the NO_RETURN_VALUE exceptions seen during table load on
11695some systems that invoke this support.
11696
11697Fixed a problem within the resource manager code where the transaction
11698flags
11699for a 64-bit address descriptor were handled incorrectly in the type-
11700specific flag byte.
11701
11702Consolidated duplicate code within the address descriptor resource
11703manager
11704code, reducing overall subsystem code size.
11705
11706Fixed a fault when using the AML debugger "disassemble" command to
11707disassemble individual control methods.
11708
11709Removed references to the "release_current" directory within the Unix
11710release package.
11711
11712Code and Data Size: The current and previous core subsystem library sizes
11713are shown below. These are the code and data sizes for the acpica.lib
11714produced by the Microsoft Visual C++ 6.0 compiler. These values do not
11715include any ACPI driver or OSPM code. The debug version of the code
11716includes
11717the debug output trace mechanism and has a much larger code and data
11718size.
11719Note that these values will vary depending on the efficiency of the
11720compiler
11721and the compiler options used during generation.
11722
11723  Previous Release:
11724    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11725    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
11726  Current Release:
11727    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
11728    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
11729
11730
117312) iASL Compiler/Disassembler:
11732
11733Implemented an error check for illegal duplicate values in the interrupt
11734and
11735dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
11736Interrupt().
11737
11738Implemented error checking for the Irq() and IrqNoFlags() macros to
11739detect
11740too many values in the interrupt list (16 max) and invalid values in the
11741list (range 0 - 15)
11742
11743The maximum length string literal within an ASL file is now restricted to
11744200 characters as per the ACPI specification.
11745
11746Fixed a fault when using the -ln option (generate namespace listing).
11747
11748Implemented an error check to determine if a DescriptorName within a
11749resource descriptor has already been used within the current scope.
11750
11751----------------------------------------
1175215 August 2005.  Summary of changes for version 20050815:
11753
117541) ACPI CA Core Subsystem:
11755
11756Implemented a full bytewise compare to determine if a table load request
11757is
11758attempting to load a duplicate table. The compare is performed if the
11759table
11760signatures and table lengths match. This will allow different tables with
11761the same OEM Table ID and revision to be loaded - probably against the
11762ACPI
11763specification, but discovered in the field nonetheless.
11764
11765Added the changes.txt logfile to each of the zipped release packages.
11766
11767Code and Data Size: Current and previous core subsystem library sizes are
11768shown below. These are the code and data sizes for the acpica.lib
11769produced
11770by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11771any ACPI driver or OSPM code. The debug version of the code includes the
11772debug output trace mechanism and has a much larger code and data size.
11773Note
11774that these values will vary depending on the efficiency of the compiler
11775and
11776the compiler options used during generation.
11777
11778  Previous Release:
11779    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11780    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
11781  Current Release:
11782    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11783    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
11784
11785
117862) iASL Compiler/Disassembler:
11787
11788Fixed a problem where incorrect AML code could be generated for Package
11789objects if optimization is disabled (via the -oa switch).
11790
11791Fixed a problem with where incorrect AML code is generated for variable-
11792length packages when the package length is not specified and the number
11793of
11794initializer values is greater than 255.
11795
11796
11797----------------------------------------
1179829 July 2005.  Summary of changes for version 20050729:
11799
118001) ACPI CA Core Subsystem:
11801
11802Implemented support to ignore an attempt to install/load a particular
11803ACPI
11804table more than once. Apparently there exists BIOS code that repeatedly
11805attempts to load the same SSDT upon certain events. With assistance from
11806Venkatesh Pallipadi.
11807
11808Restructured the main interface to the AML parser in order to correctly
11809handle all exceptional conditions. This will prevent leakage of the
11810OwnerId
11811resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
11812some
11813machines. With assistance from Alexey Starikovskiy.
11814
11815Support for "module level code" has been disabled in this version due to
11816a
11817number of issues that have appeared on various machines. The support can
11818be
11819enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
11820compilation. When the issues are fully resolved, the code will be enabled
11821by
11822default again.
11823
11824Modified the internal functions for debug print support to define the
11825FunctionName parameter as a (const char *) for compatibility with
11826compiler
11827built-in macros such as __FUNCTION__, etc.
11828
11829Linted the entire ACPICA source tree for both 32-bit and 64-bit.
11830
11831Implemented support to display an object count summary for the AML
11832Debugger
11833commands Object and Methods.
11834
11835Code and Data Size: Current and previous core subsystem library sizes are
11836shown below. These are the code and data sizes for the acpica.lib
11837produced
11838by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11839any ACPI driver or OSPM code. The debug version of the code includes the
11840debug output trace mechanism and has a much larger code and data size.
11841Note
11842that these values will vary depending on the efficiency of the compiler
11843and
11844the compiler options used during generation.
11845
11846  Previous Release:
11847    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
11848    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
11849  Current Release:
11850    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
11851    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
11852
11853
118542) iASL Compiler/Disassembler:
11855
11856Fixed a regression that appeared in the 20050708 version of the compiler
11857where an error message was inadvertently emitted for invocations of the
11858_OSI
11859reserved control method.
11860
11861----------------------------------------
1186208 July 2005.  Summary of changes for version 20050708:
11863
118641) ACPI CA Core Subsystem:
11865
11866The use of the CPU stack in the debug version of the subsystem has been
11867considerably reduced. Previously, a debug structure was declared in every
11868function that used the debug macros. This structure has been removed in
11869favor of declaring the individual elements as parameters to the debug
11870functions. This reduces the cumulative stack use during nested execution
11871of
11872ACPI function calls at the cost of a small increase in the code size of
11873the
11874debug version of the subsystem. With assistance from Alexey Starikovskiy
11875and
11876Len Brown.
11877
11878Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
11879headers to define a macro that will return the current function name at
11880runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
11881by
11882the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
11883compiler-dependent header, the function name is saved on the CPU stack
11884(one
11885pointer per function.) This mechanism is used because apparently there
11886exists no standard ANSI-C defined macro that that returns the function
11887name.
11888
11889Redesigned and reimplemented the "Owner ID" mechanism used to track
11890namespace objects created/deleted by ACPI tables and control method
11891execution. A bitmap is now used to allocate and free the IDs, thus
11892solving
11893the wraparound problem present in the previous implementation. The size
11894of
11895the namespace node descriptor was reduced by 2 bytes as a result (Alexey
11896Starikovskiy).
11897
11898Removed the UINT32_BIT and UINT16_BIT types that were used for the
11899bitfield
11900flag definitions within the headers for the predefined ACPI tables. These
11901have been replaced by UINT8_BIT in order to increase the code portability
11902of
11903the subsystem. If the use of UINT8 remains a problem, we may be forced to
11904eliminate bitfields entirely because of a lack of portability.
11905
11906Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
11907This
11908is a frequently used function and this improvement increases the
11909performance
11910of the entire subsystem (Alexey Starikovskiy).
11911
11912Fixed several possible memory leaks and the inverse - premature object
11913deletion (Alexey Starikovskiy).
11914
11915Code and Data Size: Current and previous core subsystem library sizes are
11916shown below. These are the code and data sizes for the acpica.lib
11917produced
11918by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11919any ACPI driver or OSPM code. The debug version of the code includes the
11920debug output trace mechanism and has a much larger code and data size.
11921Note
11922that these values will vary depending on the efficiency of the compiler
11923and
11924the compiler options used during generation.
11925
11926  Previous Release:
11927    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
11928    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
11929  Current Release:
11930    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
11931    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
11932
11933----------------------------------------
1193424 June 2005.  Summary of changes for version 20050624:
11935
119361) ACPI CA Core Subsystem:
11937
11938Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
11939the host-defined cache object. This allows the OSL implementation to
11940define
11941and type this object in any manner desired, simplifying the OSL
11942implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
11943Linux, and should be defined in the OS-specific header file for other
11944operating systems as required.
11945
11946Changed the interface to AcpiOsAcquireObject to directly return the
11947requested object as the function return (instead of ACPI_STATUS.) This
11948change was made for performance reasons, since this is the purpose of the
11949interface in the first place. AcpiOsAcquireObject is now similar to the
11950AcpiOsAllocate interface.
11951
11952Implemented a new AML debugger command named Businfo. This command
11953displays
11954information about all devices that have an associate _PRT object. The
11955_ADR,
11956_HID, _UID, and _CID are displayed for these devices.
11957
11958Modified the initialization sequence in AcpiInitializeSubsystem to call
11959the
11960OSL interface AcpiOslInitialize first, before any local initialization.
11961This
11962change was required because the global initialization now calls OSL
11963interfaces.
11964
11965Enhanced the Dump command to display the entire contents of Package
11966objects
11967(including all sub-objects and their values.)
11968
11969Restructured the code base to split some files because of size and/or
11970because the code logically belonged in a separate file. New files are
11971listed
11972below. All makefiles and project files included in the ACPI CA release
11973have
11974been updated.
11975    utilities/utcache.c           /* Local cache interfaces */
11976    utilities/utmutex.c           /* Local mutex support */
11977    utilities/utstate.c           /* State object support */
11978    interpreter/parser/psloop.c   /* Main AML parse loop */
11979
11980Code and Data Size: Current and previous core subsystem library sizes are
11981shown below. These are the code and data sizes for the acpica.lib
11982produced
11983by the Microsoft Visual C++ 6.0 compiler, and these values do not include
11984any ACPI driver or OSPM code. The debug version of the code includes the
11985debug output trace mechanism and has a much larger code and data size.
11986Note
11987that these values will vary depending on the efficiency of the compiler
11988and
11989the compiler options used during generation.
11990
11991  Previous Release:
11992    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
11993    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
11994  Current Release:
11995    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
11996    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
11997
11998
119992) iASL Compiler/Disassembler:
12000
12001Fixed a regression introduced in version 20050513 where the use of a
12002Package
12003object within a Case() statement caused a compile time exception. The
12004original behavior has been restored (a Match() operator is emitted.)
12005
12006----------------------------------------
1200717 June 2005.  Summary of changes for version 20050617:
12008
120091) ACPI CA Core Subsystem:
12010
12011Moved the object cache operations into the OS interface layer (OSL) to
12012allow
12013the host OS to handle these operations if desired (for example, the Linux
12014OSL will invoke the slab allocator). This support is optional; the
12015compile
12016time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
12017cache
12018code in the ACPI CA core. The new OSL interfaces are shown below. See
12019utalloc.c for an example implementation, and acpiosxf.h for the exact
12020interface definitions. With assistance from Alexey Starikovskiy.
12021    AcpiOsCreateCache
12022    AcpiOsDeleteCache
12023    AcpiOsPurgeCache
12024    AcpiOsAcquireObject
12025    AcpiOsReleaseObject
12026
12027Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
12028return
12029and restore a flags parameter. This fits better with many OS lock models.
12030Note: the current execution state (interrupt handler or not) is no longer
12031passed to these interfaces. If necessary, the OSL must determine this
12032state
12033by itself, a simple and fast operation. With assistance from Alexey
12034Starikovskiy.
12035
12036Fixed a problem in the ACPI table handling where a valid XSDT was assumed
12037present if the revision of the RSDP was 2 or greater. According to the
12038ACPI
12039specification, the XSDT is optional in all cases, and the table manager
12040therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
12041Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
12042contain
12043only the RSDT.
12044
12045Fixed an interpreter problem with the Mid() operator in the case of an
12046input
12047string where the resulting output string is of zero length. It now
12048correctly
12049returns a valid, null terminated string object instead of a string object
12050with a null pointer.
12051
12052Fixed a problem with the control method argument handling to allow a
12053store
12054to an Arg object that already contains an object of type Device. The
12055Device
12056object is now correctly overwritten. Previously, an error was returned.
12057
12058
12059Enhanced the debugger Find command to emit object values in addition to
12060the
12061found object pathnames. The output format is the same as the dump
12062namespace
12063command.
12064
12065Enhanced the debugger Set command. It now has the ability to set the
12066value
12067of any Named integer object in the namespace (Previously, only method
12068locals
12069and args could be set.)
12070
12071Code and Data Size: Current and previous core subsystem library sizes are
12072shown below. These are the code and data sizes for the acpica.lib
12073produced
12074by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12075any ACPI driver or OSPM code. The debug version of the code includes the
12076debug output trace mechanism and has a much larger code and data size.
12077Note
12078that these values will vary depending on the efficiency of the compiler
12079and
12080the compiler options used during generation.
12081
12082  Previous Release:
12083    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
12084    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
12085  Current Release:
12086    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
12087    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
12088
12089
120902) iASL Compiler/Disassembler:
12091
12092Fixed a regression in the disassembler where if/else/while constructs
12093were
12094output incorrectly. This problem was introduced in the previous release
12095(20050526). This problem also affected the single-step disassembly in the
12096debugger.
12097
12098Fixed a problem where compiling the reserved _OSI method would randomly
12099(but
12100rarely) produce compile errors.
12101
12102Enhanced the disassembler to emit compilable code in the face of
12103incorrect
12104AML resource descriptors. If the optional ResourceSourceIndex is present,
12105but the ResourceSource is not, do not emit the ResourceSourceIndex in the
12106disassembly. Otherwise, the resulting code cannot be compiled without
12107errors.
12108
12109----------------------------------------
1211026 May 2005.  Summary of changes for version 20050526:
12111
121121) ACPI CA Core Subsystem:
12113
12114Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
12115the module level (not within a control method.) These opcodes are
12116executed
12117exactly once at the time the table is loaded. This type of code was legal
12118up
12119until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
12120in
12121order to provide backwards compatibility with earlier BIOS
12122implementations.
12123This eliminates the "Encountered executable code at module level" warning
12124that was previously generated upon detection of such code.
12125
12126Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
12127inadvertently be generated during the lookup of namespace objects in the
12128second pass parse of ACPI tables and control methods. It appears that
12129this
12130problem could occur during the resolution of forward references to
12131namespace
12132objects.
12133
12134Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
12135corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
12136allows the deadlock detection debug code to be compiled out in the normal
12137case, improving mutex performance (and overall subsystem performance)
12138considerably.
12139
12140Implemented a handful of miscellaneous fixes for possible memory leaks on
12141error conditions and error handling control paths. These fixes were
12142suggested by FreeBSD and the Coverity Prevent source code analysis tool.
12143
12144Added a check for a null RSDT pointer in AcpiGetFirmwareTable
12145(tbxfroot.c)
12146to prevent a fault in this error case.
12147
12148Code and Data Size: Current and previous core subsystem library sizes are
12149shown below. These are the code and data sizes for the acpica.lib
12150produced
12151by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12152any ACPI driver or OSPM code. The debug version of the code includes the
12153debug output trace mechanism and has a much larger code and data size.
12154Note
12155that these values will vary depending on the efficiency of the compiler
12156and
12157the compiler options used during generation.
12158
12159  Previous Release:
12160    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12161    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12162  Current Release:
12163    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
12164    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
12165
12166
121672) iASL Compiler/Disassembler:
12168
12169Implemented support to allow Type 1 and Type 2 ASL operators to appear at
12170the module level (not within a control method.) These operators will be
12171executed once at the time the table is loaded. This type of code was
12172legal
12173up until the release of ACPI 2.0B (2002) and is now supported by the iASL
12174compiler in order to provide backwards compatibility with earlier BIOS
12175ASL
12176code.
12177
12178The ACPI integer width (specified via the table revision ID or the -r
12179override, 32 or 64 bits) is now used internally during compile-time
12180constant
12181folding to ensure that constants are truncated to 32 bits if necessary.
12182Previously, the revision ID value was only emitted in the AML table
12183header.
12184
12185An error message is now generated for the Mutex and Method operators if
12186the
12187SyncLevel parameter is outside the legal range of 0 through 15.
12188
12189Fixed a problem with the Method operator ParameterTypes list handling
12190(ACPI
121913.0). Previously, more than 2 types or 2 arguments generated a syntax
12192error.
12193The actual underlying implementation of method argument typechecking is
12194still under development, however.
12195
12196----------------------------------------
1219713 May 2005.  Summary of changes for version 20050513:
12198
121991) ACPI CA Core Subsystem:
12200
12201Implemented support for PCI Express root bridges -- added support for
12202device
12203PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
12204
12205The interpreter now automatically truncates incoming 64-bit constants to
1220632
12207bits if currently executing out of a 32-bit ACPI table (Revision < 2).
12208This
12209also affects the iASL compiler constant folding. (Note: as per below, the
12210iASL compiler no longer allows 64-bit constants within 32-bit tables.)
12211
12212Fixed a problem where string and buffer objects with "static" pointers
12213(pointers to initialization data within an ACPI table) were not handled
12214consistently. The internal object copy operation now always copies the
12215data
12216to a newly allocated buffer, regardless of whether the source object is
12217static or not.
12218
12219Fixed a problem with the FromBCD operator where an implicit result
12220conversion was improperly performed while storing the result to the
12221target
12222operand. Since this is an "explicit conversion" operator, the implicit
12223conversion should never be performed on the output.
12224
12225Fixed a problem with the CopyObject operator where a copy to an existing
12226named object did not always completely overwrite the existing object
12227stored
12228at name. Specifically, a buffer-to-buffer copy did not delete the
12229existing
12230buffer.
12231
12232Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
12233and
12234structs for consistency.
12235
12236Code and Data Size: Current and previous core subsystem library sizes are
12237shown below. These are the code and data sizes for the acpica.lib
12238produced
12239by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12240any ACPI driver or OSPM code. The debug version of the code includes the
12241debug output trace mechanism and has a much larger code and data size.
12242Note
12243that these values will vary depending on the efficiency of the compiler
12244and
12245the compiler options used during generation.
12246
12247  Previous Release:
12248    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12249    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12250  Current Release: (Same sizes)
12251    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12252    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12253
12254
122552) iASL Compiler/Disassembler:
12256
12257The compiler now emits a warning if an attempt is made to generate a 64-
12258bit
12259integer constant from within a 32-bit ACPI table (Revision < 2). The
12260integer
12261is truncated to 32 bits.
12262
12263Fixed a problem with large package objects: if the static length of the
12264package is greater than 255, the "variable length package" opcode is
12265emitted. Previously, this caused an error. This requires an update to the
12266ACPI spec, since it currently (incorrectly) states that packages larger
12267than
12268255 elements are not allowed.
12269
12270The disassembler now correctly handles variable length packages and
12271packages
12272larger than 255 elements.
12273
12274----------------------------------------
1227508 April 2005.  Summary of changes for version 20050408:
12276
122771) ACPI CA Core Subsystem:
12278
12279Fixed three cases in the interpreter where an "index" argument to an ASL
12280function was still (internally) 32 bits instead of the required 64 bits.
12281This was the Index argument to the Index, Mid, and Match operators.
12282
12283The "strupr" function is now permanently local (AcpiUtStrupr), since this
12284is
12285not a POSIX-defined function and not present in most kernel-level C
12286libraries. All references to the C library strupr function have been
12287removed
12288from the headers.
12289
12290Completed the deployment of static functions/prototypes. All prototypes
12291with
12292the static attribute have been moved from the headers to the owning C
12293file.
12294
12295Implemented an extract option (-e) for the AcpiBin utility (AML binary
12296utility). This option allows the utility to extract individual ACPI
12297tables
12298from the output of AcpiDmp. It provides the same functionality of the
12299acpixtract.pl perl script without the worry of setting the correct perl
12300options. AcpiBin runs on Windows and has not yet been generated/validated
12301in
12302the Linux/Unix environment (but should be soon).
12303
12304Updated and fixed the table dump option for AcpiBin (-d). This option
12305converts a single ACPI table to a hex/ascii file, similar to the output
12306of
12307AcpiDmp.
12308
12309Code and Data Size: Current and previous core subsystem library sizes are
12310shown below. These are the code and data sizes for the acpica.lib
12311produced
12312by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12313any ACPI driver or OSPM code. The debug version of the code includes the
12314debug output trace mechanism and has a much larger code and data size.
12315Note
12316that these values will vary depending on the efficiency of the compiler
12317and
12318the compiler options used during generation.
12319
12320  Previous Release:
12321    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
12322    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
12323  Current Release:
12324    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
12325    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
12326
12327
123282) iASL Compiler/Disassembler:
12329
12330Disassembler fix: Added a check to ensure that the table length found in
12331the
12332ACPI table header within the input file is not longer than the actual
12333input
12334file size. This indicates some kind of file or table corruption.
12335
12336----------------------------------------
1233729 March 2005.  Summary of changes for version 20050329:
12338
123391) ACPI CA Core Subsystem:
12340
12341An error is now generated if an attempt is made to create a Buffer Field
12342of
12343length zero (A CreateField with a length operand of zero.)
12344
12345The interpreter now issues a warning whenever executable code at the
12346module
12347level is detected during ACPI table load. This will give some idea of the
12348prevalence of this type of code.
12349
12350Implemented support for references to named objects (other than control
12351methods) within package objects.
12352
12353Enhanced package object output for the debug object. Package objects are
12354now
12355completely dumped, showing all elements.
12356
12357Enhanced miscellaneous object output for the debug object. Any object can
12358now be written to the debug object (for example, a device object can be
12359written, and the type of the object will be displayed.)
12360
12361The "static" qualifier has been added to all local functions across both
12362the
12363core subsystem and the iASL compiler.
12364
12365The number of "long" lines (> 80 chars) within the source has been
12366significantly reduced, by about 1/3.
12367
12368Cleaned up all header files to ensure that all CA/iASL functions are
12369prototyped (even static functions) and the formatting is consistent.
12370
12371Two new header files have been added, acopcode.h and acnames.h.
12372
12373Removed several obsolete functions that were no longer used.
12374
12375Code and Data Size: Current and previous core subsystem library sizes are
12376shown below. These are the code and data sizes for the acpica.lib
12377produced
12378by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12379any ACPI driver or OSPM code. The debug version of the code includes the
12380debug output trace mechanism and has a much larger code and data size.
12381Note
12382that these values will vary depending on the efficiency of the compiler
12383and
12384the compiler options used during generation.
12385
12386  Previous Release:
12387    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12388    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
12389  Current Release:
12390    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
12391    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
12392
12393
12394
123952) iASL Compiler/Disassembler:
12396
12397Fixed a problem with the resource descriptor generation/support. For the
12398ResourceSourceIndex and the ResourceSource fields, both must be present,
12399or
12400both must be not present - can't have one without the other.
12401
12402The compiler now returns non-zero from the main procedure if any errors
12403have
12404occurred during the compilation.
12405
12406
12407----------------------------------------
1240809 March 2005.  Summary of changes for version 20050309:
12409
124101) ACPI CA Core Subsystem:
12411
12412The string-to-buffer implicit conversion code has been modified again
12413after
12414a change to the ACPI specification.  In order to match the behavior of
12415the
12416other major ACPI implementation, the target buffer is no longer truncated
12417if
12418the source string is smaller than an existing target buffer. This change
12419requires an update to the ACPI spec, and should eliminate the recent
12420AE_AML_BUFFER_LIMIT issues.
12421
12422The "implicit return" support was rewritten to a new algorithm that
12423solves
12424the general case. Rather than attempt to determine when a method is about
12425to
12426exit, the result of every ASL operator is saved momentarily until the
12427very
12428next ASL operator is executed. Therefore, no matter how the method exits,
12429there will always be a saved implicit return value. This feature is only
12430enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
12431eliminate
12432AE_AML_NO_RETURN_VALUE errors when enabled.
12433
12434Implemented implicit conversion support for the predicate (operand) of
12435the
12436If, Else, and While operators. String and Buffer arguments are
12437automatically
12438converted to Integers.
12439
12440Changed the string-to-integer conversion behavior to match the new ACPI
12441errata: "If no integer object exists, a new integer is created. The ASCII
12442string is interpreted as a hexadecimal constant. Each string character is
12443interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
12444with the first character as the most significant digit, and ending with
12445the
12446first non-hexadecimal character or end-of-string." This means that the
12447first
12448non-hex character terminates the conversion and this is the code that was
12449changed.
12450
12451Fixed a problem where the ObjectType operator would fail (fault) when
12452used
12453on an Index of a Package which pointed to a null package element. The
12454operator now properly returns zero (Uninitialized) in this case.
12455
12456Fixed a problem where the While operator used excessive memory by not
12457properly popping the result stack during execution. There was no memory
12458leak
12459after execution, however. (Code provided by Valery Podrezov.)
12460
12461Fixed a problem where references to control methods within Package
12462objects
12463caused the method to be invoked, instead of producing a reference object
12464pointing to the method.
12465
12466Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
12467to
12468improve performance and reduce code size. (Code provided by Alexey
12469Starikovskiy.)
12470
12471Code and Data Size: Current and previous core subsystem library sizes are
12472shown below. These are the code and data sizes for the acpica.lib
12473produced
12474by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12475any ACPI driver or OSPM code. The debug version of the code includes the
12476debug output trace mechanism and has a much larger code and data size.
12477Note
12478that these values will vary depending on the efficiency of the compiler
12479and
12480the compiler options used during generation.
12481
12482  Previous Release:
12483    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12484    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
12485  Current Release:
12486    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12487    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
12488
12489
124902) iASL Compiler/Disassembler:
12491
12492Fixed a problem with the Return operator with no arguments. Since the AML
12493grammar for the byte encoding requires an operand for the Return opcode,
12494the
12495compiler now emits a Return(Zero) for this case.  An ACPI specification
12496update has been written for this case.
12497
12498For tables other than the DSDT, namepath optimization is automatically
12499disabled. This is because SSDTs can be loaded anywhere in the namespace,
12500the
12501compiler has no knowledge of where, and thus cannot optimize namepaths.
12502
12503Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
12504inadvertently omitted from the ACPI specification, and will require an
12505update to the spec.
12506
12507The source file scan for ASCII characters is now optional (-a). This
12508change
12509was made because some vendors place non-ascii characters within comments.
12510However, the scan is simply a brute-force byte compare to ensure all
12511characters in the file are in the range 0x00 to 0x7F.
12512
12513Fixed a problem with the CondRefOf operator where the compiler was
12514inappropriately checking for the existence of the target. Since the point
12515of
12516the operator is to check for the existence of the target at run-time, the
12517compiler no longer checks for the target existence.
12518
12519Fixed a problem where errors generated from the internal AML interpreter
12520during constant folding were not handled properly, causing a fault.
12521
12522Fixed a problem with overly aggressive range checking for the Stall
12523operator. The valid range (max 255) is now only checked if the operand is
12524of
12525type Integer. All other operand types cannot be statically checked.
12526
12527Fixed a problem where control method references within the RefOf,
12528DeRefOf,
12529and ObjectType operators were not treated properly. They are now treated
12530as
12531actual references, not method invocations.
12532
12533Fixed and enhanced the "list namespace" option (-ln). This option was
12534broken
12535a number of releases ago.
12536
12537Improved error handling for the Field, IndexField, and BankField
12538operators.
12539The compiler now cleanly reports and recovers from errors in the field
12540component (FieldUnit) list.
12541
12542Fixed a disassembler problem where the optional ResourceDescriptor fields
12543TRS and TTP were not always handled correctly.
12544
12545Disassembler - Comments in output now use "//" instead of "/*"
12546
12547----------------------------------------
1254828 February 2005.  Summary of changes for version 20050228:
12549
125501) ACPI CA Core Subsystem:
12551
12552Fixed a problem where the result of an Index() operator (an object
12553reference) must increment the reference count on the target object for
12554the
12555life of the object reference.
12556
12557Implemented AML Interpreter and Debugger support for the new ACPI 3.0
12558Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
12559WordSpace
12560resource descriptors.
12561
12562Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
12563Space Descriptor" string, indicating interpreter support for the
12564descriptors
12565above.
12566
12567Implemented header support for the new ACPI 3.0 FADT flag bits.
12568
12569Implemented header support for the new ACPI 3.0 PCI Express bits for the
12570PM1
12571status/enable registers.
12572
12573Updated header support for the MADT processor local Apic struct and MADT
12574platform interrupt source struct for new ACPI 3.0 fields.
12575
12576Implemented header support for the SRAT and SLIT ACPI tables.
12577
12578Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
12579flag
12580at runtime.
12581
12582Code and Data Size: Current and previous core subsystem library sizes are
12583shown below. These are the code and data sizes for the acpica.lib
12584produced
12585by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12586any ACPI driver or OSPM code. The debug version of the code includes the
12587debug output trace mechanism and has a much larger code and data size.
12588Note
12589that these values will vary depending on the efficiency of the compiler
12590and
12591the compiler options used during generation.
12592
12593  Previous Release:
12594    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
12595    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
12596  Current Release:
12597    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
12598    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
12599
12600
126012) iASL Compiler/Disassembler:
12602
12603Fixed a problem with the internal 64-bit String-to-integer conversion
12604with
12605strings less than two characters long.
12606
12607Fixed a problem with constant folding where the result of the Index()
12608operator can not be considered a constant. This means that Index() cannot
12609be
12610a type3 opcode and this will require an update to the ACPI specification.
12611
12612Disassembler: Implemented support for the TTP, MTP, and TRS resource
12613descriptor fields. These fields were inadvertently ignored and not output
12614in
12615the disassembly of the resource descriptor.
12616
12617
12618 ----------------------------------------
1261911 February 2005.  Summary of changes for version 20050211:
12620
126211) ACPI CA Core Subsystem:
12622
12623Implemented ACPI 3.0 support for implicit conversion within the Match()
12624operator. MatchObjects can now be of type integer, buffer, or string
12625instead
12626of just type integer.  Package elements are implicitly converted to the
12627type
12628of the MatchObject. This change aligns the behavior of Match() with the
12629behavior of the other logical operators (LLess(), etc.) It also requires
12630an
12631errata change to the ACPI specification as this support was intended for
12632ACPI 3.0, but was inadvertently omitted.
12633
12634Fixed a problem with the internal implicit "to buffer" conversion.
12635Strings
12636that are converted to buffers will cause buffer truncation if the string
12637is
12638smaller than the target buffer. Integers that are converted to buffers
12639will
12640not cause buffer truncation, only zero extension (both as per the ACPI
12641spec.) The problem was introduced when code was added to truncate the
12642buffer, but this should not be performed in all cases, only the string
12643case.
12644
12645Fixed a problem with the Buffer and Package operators where the
12646interpreter
12647would get confused if two such operators were used as operands to an ASL
12648operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
12649stack was not being popped after the execution of these operators,
12650resulting
12651in an AE_NO_RETURN_VALUE exception.
12652
12653Fixed a problem with constructs of the form Store(Index(...),...). The
12654reference object returned from Index was inadvertently resolved to an
12655actual
12656value. This problem was introduced in version 20050114 when the behavior
12657of
12658Store() was modified to restrict the object types that can be used as the
12659source operand (to match the ACPI specification.)
12660
12661Reduced excessive stack use within the AcpiGetObjectInfo procedure.
12662
12663Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
12664
12665Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
12666
12667Code and Data Size: Current and previous core subsystem library sizes are
12668shown below. These are the code and data sizes for the acpica.lib
12669produced
12670by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12671any ACPI driver or OSPM code. The debug version of the code includes the
12672debug output trace mechanism and has a much larger code and data size.
12673Note
12674that these values will vary depending on the efficiency of the compiler
12675and
12676the compiler options used during generation.
12677
12678  Previous Release:
12679    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
12680    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
12681  Current Release:
12682    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
12683    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
12684
12685
126862) iASL Compiler/Disassembler:
12687
12688Fixed a code generation problem in the constant folding optimization code
12689where incorrect code was generated if a constant was reduced to a buffer
12690object (i.e., a reduced type 5 opcode.)
12691
12692Fixed a typechecking problem for the ToBuffer operator. Caused by an
12693incorrect return type in the internal opcode information table.
12694
12695----------------------------------------
1269625 January 2005.  Summary of changes for version 20050125:
12697
126981) ACPI CA Core Subsystem:
12699
12700Fixed a recently introduced problem with the Global Lock where the
12701underlying semaphore was not created.  This problem was introduced in
12702version 20050114, and caused an AE_AML_NO_OPERAND exception during an
12703Acquire() operation on _GL.
12704
12705The local object cache is now optional, and is disabled by default. Both
12706AcpiExec and the iASL compiler enable the cache because they run in user
12707mode and this enhances their performance. #define
12708ACPI_ENABLE_OBJECT_CACHE
12709to enable the local cache.
12710
12711Fixed an issue in the internal function AcpiUtEvaluateObject concerning
12712the
12713optional "implicit return" support where an error was returned if no
12714return
12715object was expected, but one was implicitly returned. AE_OK is now
12716returned
12717in this case and the implicitly returned object is deleted.
12718AcpiUtEvaluateObject is only occasionally used, and only to execute
12719reserved
12720methods such as _STA and _INI where the return type is known up front.
12721
12722Fixed a few issues with the internal convert-to-integer code. It now
12723returns
12724an error if an attempt is made to convert a null string, a string of only
12725blanks/tabs, or a zero-length buffer. This affects both implicit
12726conversion
12727and explicit conversion via the ToInteger() operator.
12728
12729The internal debug code in AcpiUtAcquireMutex has been commented out. It
12730is
12731not needed for normal operation and should increase the performance of
12732the
12733entire subsystem. The code remains in case it is needed for debug
12734purposes
12735again.
12736
12737The AcpiExec source and makefile are included in the Unix/Linux package
12738for
12739the first time.
12740
12741Code and Data Size: Current and previous core subsystem library sizes are
12742shown below. These are the code and data sizes for the acpica.lib
12743produced
12744by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12745any ACPI driver or OSPM code. The debug version of the code includes the
12746debug output trace mechanism and has a much larger code and data size.
12747Note
12748that these values will vary depending on the efficiency of the compiler
12749and
12750the compiler options used during generation.
12751
12752  Previous Release:
12753    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
12754    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
12755  Current Release:
12756    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
12757    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
12758
127592) iASL Compiler/Disassembler:
12760
12761Switch/Case support: A warning is now issued if the type of the Switch
12762value
12763cannot be determined at compile time. For example, Switch(Arg0) will
12764generate the warning, and the type is assumed to be an integer. As per
12765the
12766ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
12767the
12768warning.
12769
12770Switch/Case support: Implemented support for buffer and string objects as
12771the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
12772buffers and strings.
12773
12774Switch/Case support: The emitted code for the LEqual() comparisons now
12775uses
12776the switch value as the first operand, not the second. The case value is
12777now
12778the second operand, and this allows the case value to be implicitly
12779converted to the type of the switch value, not the other way around.
12780
12781Switch/Case support: Temporary variables are now emitted immediately
12782within
12783the control method, not at the global level. This means that there are
12784now
1278536 temps available per-method, not 36 temps per-module as was the case
12786with
12787the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
12788
12789----------------------------------------
1279014 January 2005.  Summary of changes for version 20050114:
12791
12792Added 2005 copyright to all module headers.  This affects every module in
12793the core subsystem, iASL compiler, and the utilities.
12794
127951) ACPI CA Core Subsystem:
12796
12797Fixed an issue with the String-to-Buffer conversion code where the string
12798null terminator was not included in the buffer after conversion, but
12799there
12800is existing ASL that assumes the string null terminator is included. This
12801is
12802the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
12803introduced in the previous version when the code was updated to correctly
12804set the converted buffer size as per the ACPI specification. The ACPI
12805spec
12806is ambiguous and will be updated to specify that the null terminator must
12807be
12808included in the converted buffer. This also affects the ToBuffer() ASL
12809operator.
12810
12811Fixed a problem with the Mid() ASL/AML operator where it did not work
12812correctly on Buffer objects. Newly created sub-buffers were not being
12813marked
12814as initialized.
12815
12816
12817Fixed a problem in AcpiTbFindTable where incorrect string compares were
12818performed on the OemId and OemTableId table header fields.  These fields
12819are
12820not null terminated, so strncmp is now used instead of strcmp.
12821
12822Implemented a restriction on the Store() ASL/AML operator to align the
12823behavior with the ACPI specification.  Previously, any object could be
12824used
12825as the source operand.  Now, the only objects that may be used are
12826Integers,
12827Buffers, Strings, Packages, Object References, and DDB Handles.  If
12828necessary, the original behavior can be restored by enabling the
12829EnableInterpreterSlack flag.
12830
12831Enhanced the optional "implicit return" support to allow an implicit
12832return
12833value from methods that are invoked externally via the AcpiEvaluateObject
12834interface.  This enables implicit returns from the _STA and _INI methods,
12835for example.
12836
12837Changed the Revision() ASL/AML operator to return the current version of
12838the
12839AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
12840returned
12841the supported ACPI version (This is the function of the _REV method).
12842
12843Updated the _REV predefined method to return the currently supported
12844version
12845of ACPI, now 3.
12846
12847Implemented batch mode option for the AcpiExec utility (-b).
12848
12849Code and Data Size: Current and previous core subsystem library sizes are
12850shown below. These are the code and data sizes for the acpica.lib
12851produced
12852by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12853any ACPI driver or OSPM code. The debug version of the code includes the
12854debug output trace mechanism and has a much larger code and data size.
12855Note
12856that these values will vary depending on the efficiency of the compiler
12857and
12858the compiler options used during generation.
12859
12860  Previous Release:
12861    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12862    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
12863  Current Release:
12864    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
12865    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
12866
12867----------------------------------------
1286810 December 2004.  Summary of changes for version 20041210:
12869
12870ACPI 3.0 support is nearing completion in both the iASL compiler and the
12871ACPI CA core subsystem.
12872
128731) ACPI CA Core Subsystem:
12874
12875Fixed a problem in the ToDecimalString operator where the resulting
12876string
12877length was incorrectly calculated. The length is now calculated exactly,
12878eliminating incorrect AE_STRING_LIMIT exceptions.
12879
12880Fixed a problem in the ToHexString operator to allow a maximum 200
12881character
12882string to be produced.
12883
12884Fixed a problem in the internal string-to-buffer and buffer-to-buffer
12885copy
12886routine where the length of the resulting buffer was not truncated to the
12887new size (if the target buffer already existed).
12888
12889Code and Data Size: Current and previous core subsystem library sizes are
12890shown below. These are the code and data sizes for the acpica.lib
12891produced
12892by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12893any ACPI driver or OSPM code. The debug version of the code includes the
12894debug output trace mechanism and has a much larger code and data size.
12895Note
12896that these values will vary depending on the efficiency of the compiler
12897and
12898the compiler options used during generation.
12899
12900  Previous Release:
12901    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12902    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
12903  Current Release:
12904    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12905    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
12906
12907
129082) iASL Compiler/Disassembler:
12909
12910Implemented the new ACPI 3.0 resource template macros - DWordSpace,
12911ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
12912Includes support in the disassembler.
12913
12914Implemented support for the new (ACPI 3.0) parameter to the Register
12915macro,
12916AccessSize.
12917
12918Fixed a problem where the _HE resource name for the Interrupt macro was
12919referencing bit 0 instead of bit 1.
12920
12921Implemented check for maximum 255 interrupts in the Interrupt macro.
12922
12923Fixed a problem with the predefined resource descriptor names where
12924incorrect AML code was generated if the offset within the resource buffer
12925was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
12926but did not update the surrounding package lengths.
12927
12928Changes to the Dma macro:  All channels within the channel list must be
12929in
12930the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
12931optional (default is BusMaster).
12932
12933Implemented check for maximum 7 data bytes for the VendorShort macro.
12934
12935The ReadWrite parameter is now optional for the Memory32 and similar
12936macros.
12937
12938----------------------------------------
1293903 December 2004.  Summary of changes for version 20041203:
12940
129411) ACPI CA Core Subsystem:
12942
12943The low-level field insertion/extraction code (exfldio) has been
12944completely
12945rewritten to eliminate unnecessary complexity, bugs, and boundary
12946conditions.
12947
12948Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
12949ToDecimalString
12950operators where the input operand could be inadvertently deleted if no
12951conversion was necessary (e.g., if the input to ToInteger was an Integer
12952object.)
12953
12954Fixed a problem with the ToDecimalString and ToHexString where an
12955incorrect
12956exception code was returned if the resulting string would be > 200 chars.
12957AE_STRING_LIMIT is now returned.
12958
12959Fixed a problem with the Concatenate operator where AE_OK was always
12960returned, even if the operation failed.
12961
12962Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
12963semaphores to be allocated.
12964
12965Code and Data Size: Current and previous core subsystem library sizes are
12966shown below. These are the code and data sizes for the acpica.lib
12967produced
12968by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12969any ACPI driver or OSPM code. The debug version of the code includes the
12970debug output trace mechanism and has a much larger code and data size.
12971Note
12972that these values will vary depending on the efficiency of the compiler
12973and
12974the compiler options used during generation.
12975
12976  Previous Release:
12977    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
12978    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
12979  Current Release:
12980    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
12981    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
12982
12983
129842) iASL Compiler/Disassembler:
12985
12986Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
12987recently introduced in 20041119.
12988
12989Fixed a problem with the ToUUID macro where the upper nybble of each
12990buffer
12991byte was inadvertently set to zero.
12992
12993----------------------------------------
1299419 November 2004.  Summary of changes for version 20041119:
12995
129961) ACPI CA Core Subsystem:
12997
12998Fixed a problem in the internal ConvertToInteger routine where new
12999integers
13000were not truncated to 32 bits for 32-bit ACPI tables. This routine
13001converts
13002buffers and strings to integers.
13003
13004Implemented support to store a value to an Index() on a String object.
13005This
13006is an ACPI 2.0 feature that had not yet been implemented.
13007
13008Implemented new behavior for storing objects to individual package
13009elements
13010(via the Index() operator). The previous behavior was to invoke the
13011implicit
13012conversion rules if an object was already present at the index.  The new
13013behavior is to simply delete any existing object and directly store the
13014new
13015object. Although the ACPI specification seems unclear on this subject,
13016other
13017ACPI implementations behave in this manner.  (This is the root of the
13018AE_BAD_HEX_CONSTANT issue.)
13019
13020Modified the RSDP memory scan mechanism to support the extended checksum
13021for
13022ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
13023RSDP signature is found with a valid checksum.
13024
13025Code and Data Size: Current and previous core subsystem library sizes are
13026shown below. These are the code and data sizes for the acpica.lib
13027produced
13028by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13029any ACPI driver or OSPM code. The debug version of the code includes the
13030debug output trace mechanism and has a much larger code and data size.
13031Note
13032that these values will vary depending on the efficiency of the compiler
13033and
13034the compiler options used during generation.
13035
13036  Previous Release:
13037    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13038    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13039  Current Release:
13040    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13041    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13042
13043
130442) iASL Compiler/Disassembler:
13045
13046Fixed a missing semicolon in the aslcompiler.y file.
13047
13048----------------------------------------
1304905 November 2004.  Summary of changes for version 20041105:
13050
130511) ACPI CA Core Subsystem:
13052
13053Implemented support for FADT revision 2.  This was an interim table
13054(between
13055ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
13056
13057Implemented optional support to allow uninitialized LocalX and ArgX
13058variables in a control method.  The variables are initialized to an
13059Integer
13060object with a value of zero.  This support is enabled by setting the
13061AcpiGbl_EnableInterpreterSlack flag to TRUE.
13062
13063Implemented support for Integer objects for the SizeOf operator.  Either
130644
13065or 8 is returned, depending on the current integer size (32-bit or 64-
13066bit,
13067depending on the parent table revision).
13068
13069Fixed a problem in the implementation of the SizeOf and ObjectType
13070operators
13071where the operand was resolved to a value too early, causing incorrect
13072return values for some objects.
13073
13074Fixed some possible memory leaks during exceptional conditions.
13075
13076Code and Data Size: Current and previous core subsystem library sizes are
13077shown below. These are the code and data sizes for the acpica.lib
13078produced
13079by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13080any ACPI driver or OSPM code. The debug version of the code includes the
13081debug output trace mechanism and has a much larger code and data size.
13082Note
13083that these values will vary depending on the efficiency of the compiler
13084and
13085the compiler options used during generation.
13086
13087  Previous Release:
13088    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13089    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
13090  Current Release:
13091    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
13092    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
13093
13094
130952) iASL Compiler/Disassembler:
13096
13097Implemented support for all ACPI 3.0 reserved names and methods.
13098
13099Implemented all ACPI 3.0 grammar elements in the front-end, including
13100support for semicolons.
13101
13102Implemented the ACPI 3.0 Function() and ToUUID() macros
13103
13104Fixed a problem in the disassembler where a Scope() operator would not be
13105emitted properly if the target of the scope was in another table.
13106
13107----------------------------------------
1310815 October 2004.  Summary of changes for version 20041015:
13109
13110Note:  ACPI CA is currently undergoing an in-depth and complete formal
13111evaluation to test/verify the following areas. Other suggestions are
13112welcome. This will result in an increase in the frequency of releases and
13113the number of bug fixes in the next few months.
13114  - Functional tests for all ASL/AML operators
13115  - All implicit/explicit type conversions
13116  - Bit fields and operation regions
13117  - 64-bit math support and 32-bit-only "truncated" math support
13118  - Exceptional conditions, both compiler and interpreter
13119  - Dynamic object deletion and memory leaks
13120  - ACPI 3.0 support when implemented
13121  - External interfaces to the ACPI subsystem
13122
13123
131241) ACPI CA Core Subsystem:
13125
13126Fixed two alignment issues on 64-bit platforms - within debug statements
13127in
13128AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
13129Address
13130field within the non-aligned ACPI generic address structure.
13131
13132Fixed a problem in the Increment and Decrement operators where incorrect
13133operand resolution could result in the inadvertent modification of the
13134original integer when the integer is passed into another method as an
13135argument and the arg is then incremented/decremented.
13136
13137Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
13138bit
13139BCD number were truncated during conversion.
13140
13141Fixed a problem in the ToDecimal operator where the length of the
13142resulting
13143string could be set incorrectly too long if the input operand was a
13144Buffer
13145object.
13146
13147Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
13148(0)
13149within a buffer would prematurely terminate a compare between buffer
13150objects.
13151
13152Added a check for string overflow (>200 characters as per the ACPI
13153specification) during the Concatenate operator with two string operands.
13154
13155Code and Data Size: Current and previous core subsystem library sizes are
13156shown below. These are the code and data sizes for the acpica.lib
13157produced
13158by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13159any ACPI driver or OSPM code. The debug version of the code includes the
13160debug output trace mechanism and has a much larger code and data size.
13161Note
13162that these values will vary depending on the efficiency of the compiler
13163and
13164the compiler options used during generation.
13165
13166  Previous Release:
13167    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13168    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
13169  Current Release:
13170    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13171    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
13172
13173
13174
131752) iASL Compiler/Disassembler:
13176
13177Allow the use of the ObjectType operator on uninitialized Locals and Args
13178(returns 0 as per the ACPI specification).
13179
13180Fixed a problem where the compiler would fault if there was a syntax
13181error
13182in the FieldName of all of the various CreateXXXField operators.
13183
13184Disallow the use of lower case letters within the EISAID macro, as per
13185the
13186ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
13187Where
13188U is an uppercase letter and N is a hex digit.
13189
13190
13191----------------------------------------
1319206 October 2004.  Summary of changes for version 20041006:
13193
131941) ACPI CA Core Subsystem:
13195
13196Implemented support for the ACPI 3.0 Timer operator. This ASL function
13197implements a 64-bit timer with 100 nanosecond granularity.
13198
13199Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
13200implement the ACPI 3.0 Timer operator.  This allows the host OS to
13201implement
13202the timer with the best clock available. Also, it keeps the core
13203subsystem
13204out of the clock handling business, since the host OS (usually) performs
13205this function.
13206
13207Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
13208functions use a 64-bit address which is part of the packed ACPI Generic
13209Address Structure. Since the structure is non-aligned, the alignment
13210macros
13211are now used to extract the address to a local variable before use.
13212
13213Fixed a problem where the ToInteger operator assumed all input strings
13214were
13215hexadecimal. The operator now handles both decimal strings and hex
13216strings
13217(prefixed with "0x").
13218
13219Fixed a problem where the string length in the string object created as a
13220result of the internal ConvertToString procedure could be incorrect. This
13221potentially affected all implicit conversions and also the
13222ToDecimalString
13223and ToHexString operators.
13224
13225Fixed two problems in the ToString operator. If the length parameter was
13226zero, an incorrect string object was created and the value of the input
13227length parameter was inadvertently changed from zero to Ones.
13228
13229Fixed a problem where the optional ResourceSource string in the
13230ExtendedIRQ
13231resource macro was ignored.
13232
13233Simplified the interfaces to the internal division functions, reducing
13234code
13235size and complexity.
13236
13237Code and Data Size: Current and previous core subsystem library sizes are
13238shown below. These are the code and data sizes for the acpica.lib
13239produced
13240by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13241any ACPI driver or OSPM code. The debug version of the code includes the
13242debug output trace mechanism and has a much larger code and data size.
13243Note
13244that these values will vary depending on the efficiency of the compiler
13245and
13246the compiler options used during generation.
13247
13248  Previous Release:
13249    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
13250    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
13251  Current Release:
13252    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13253    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
13254
13255
132562) iASL Compiler/Disassembler:
13257
13258Implemented support for the ACPI 3.0 Timer operator.
13259
13260Fixed a problem where the Default() operator was inadvertently ignored in
13261a
13262Switch/Case block.  This was a problem in the translation of the Switch
13263statement to If...Else pairs.
13264
13265Added support to allow a standalone Return operator, with no parentheses
13266(or
13267operands).
13268
13269Fixed a problem with code generation for the ElseIf operator where the
13270translated Else...If parse tree was improperly constructed leading to the
13271loss of some code.
13272
13273----------------------------------------
1327422 September 2004.  Summary of changes for version 20040922:
13275
132761) ACPI CA Core Subsystem:
13277
13278Fixed a problem with the implementation of the LNot() operator where
13279"Ones"
13280was not returned for the TRUE case. Changed the code to return Ones
13281instead
13282of (!Arg) which was usually 1. This change affects iASL constant folding
13283for
13284this operator also.
13285
13286Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
13287not
13288initialized properly -- Now zero the entire buffer in this case where the
13289buffer already exists.
13290
13291Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
13292Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
13293related code considerably. This will require changes/updates to all OS
13294interface layers (OSLs.)
13295
13296Implemented a new external interface, AcpiInstallExceptionHandler, to
13297allow
13298a system exception handler to be installed. This handler is invoked upon
13299any
13300run-time exception that occurs during control method execution.
13301
13302Added support for the DSDT in AcpiTbFindTable. This allows the
13303DataTableRegion() operator to access the local copy of the DSDT.
13304
13305Code and Data Size: Current and previous core subsystem library sizes are
13306shown below. These are the code and data sizes for the acpica.lib
13307produced
13308by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13309any ACPI driver or OSPM code. The debug version of the code includes the
13310debug output trace mechanism and has a much larger code and data size.
13311Note
13312that these values will vary depending on the efficiency of the compiler
13313and
13314the compiler options used during generation.
13315
13316  Previous Release:
13317    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
13318    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
13319  Current Release:
13320    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
13321    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
13322
13323
133242) iASL Compiler/Disassembler:
13325
13326Fixed a problem with constant folding and the LNot operator. LNot was
13327returning 1 in the TRUE case, not Ones as per the ACPI specification.
13328This
13329could result in the generation of an incorrect folded/reduced constant.
13330
13331End-Of-File is now allowed within a "//"-style comment.  A parse error no
13332longer occurs if such a comment is at the very end of the input ASL
13333source
13334file.
13335
13336Implemented the "-r" option to override the Revision in the table header.
13337The initial use of this option will be to simplify the evaluation of the
13338AML
13339interpreter by allowing a single ASL source module to be compiled for
13340either
1334132-bit or 64-bit integers.
13342
13343
13344----------------------------------------
1334527 August 2004.  Summary of changes for version 20040827:
13346
133471) ACPI CA Core Subsystem:
13348
13349- Implemented support for implicit object conversion in the non-numeric
13350logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
13351and
13352LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
13353the second operand is implicitly converted on the fly to match the type
13354of
13355the first operand.  For example:
13356
13357    LEqual (Source1, Source2)
13358
13359Source1 and Source2 must each evaluate to an integer, a string, or a
13360buffer.
13361The data type of Source1 dictates the required type of Source2. Source2
13362is
13363implicitly converted if necessary to match the type of Source1.
13364
13365- Updated and corrected the behavior of the string conversion support.
13366The
13367rules concerning conversion of buffers to strings (according to the ACPI
13368specification) are as follows:
13369
13370ToDecimalString - explicit byte-wise conversion of buffer to string of
13371decimal values (0-255) separated by commas. ToHexString - explicit byte-
13372wise
13373conversion of buffer to string of hex values (0-FF) separated by commas.
13374ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
13375byte
13376copy with no transform except NULL terminated. Any other implicit buffer-
13377to-
13378string conversion - byte-wise conversion of buffer to string of hex
13379values
13380(0-FF) separated by spaces.
13381
13382- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
13383
13384- Fixed a problem in AcpiNsGetPathnameLength where the returned length
13385was
13386one byte too short in the case of a node in the root scope.  This could
13387cause a fault during debug output.
13388
13389- Code and Data Size: Current and previous core subsystem library sizes
13390are
13391shown below.  These are the code and data sizes for the acpica.lib
13392produced
13393by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13394any ACPI driver or OSPM code.  The debug version of the code includes the
13395debug output trace mechanism and has a much larger code and data size.
13396Note
13397that these values will vary depending on the efficiency of the compiler
13398and
13399the compiler options used during generation.
13400
13401  Previous Release:
13402    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
13403    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
13404  Current Release:
13405    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
13406    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
13407
13408
134092) iASL Compiler/Disassembler:
13410
13411- Fixed a Linux generation error.
13412
13413
13414----------------------------------------
1341516 August 2004.  Summary of changes for version 20040816:
13416
134171) ACPI CA Core Subsystem:
13418
13419Designed and implemented support within the AML interpreter for the so-
13420called "implicit return".  This support returns the result of the last
13421ASL
13422operation within a control method, in the absence of an explicit Return()
13423operator.  A few machines depend on this behavior, even though it is not
13424explicitly supported by the ASL language.  It is optional support that
13425can
13426be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
13427
13428Removed support for the PCI_Config address space from the internal low
13429level
13430hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
13431support was not used internally, and would not work correctly anyway
13432because
13433the PCI bus number and segment number were not supported.  There are
13434separate interfaces for PCI configuration space access because of the
13435unique
13436interface.
13437
13438Code and Data Size: Current and previous core subsystem library sizes are
13439shown below.  These are the code and data sizes for the acpica.lib
13440produced
13441by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13442any ACPI driver or OSPM code.  The debug version of the code includes the
13443debug output trace mechanism and has a much larger code and data size.
13444Note
13445that these values will vary depending on the efficiency of the compiler
13446and
13447the compiler options used during generation.
13448
13449  Previous Release:
13450    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13451    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
13452  Current Release:
13453    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
13454    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
13455
13456
134572) iASL Compiler/Disassembler:
13458
13459Fixed a problem where constants in ASL expressions at the root level (not
13460within a control method) could be inadvertently truncated during code
13461generation.  This problem was introduced in the 20040715 release.
13462
13463
13464----------------------------------------
1346515 July 2004.  Summary of changes for version 20040715:
13466
134671) ACPI CA Core Subsystem:
13468
13469Restructured the internal HW GPE interfaces to pass/track the current
13470state
13471of interrupts (enabled/disabled) in order to avoid possible deadlock and
13472increase flexibility of the interfaces.
13473
13474Implemented a "lexicographical compare" for String and Buffer objects
13475within
13476the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
13477-
13478as per further clarification to the ACPI specification.  Behavior is
13479similar
13480to C library "strcmp".
13481
13482Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
13483external function.  In the 32-bit non-debug case, the stack use has been
13484reduced from 168 bytes to 32 bytes.
13485
13486Deployed a new run-time configuration flag,
13487AcpiGbl_EnableInterpreterSlack,
13488whose purpose is to allow the AML interpreter to forgive certain bad AML
13489constructs.  Default setting is FALSE.
13490
13491Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
13492IO
13493support code.  If enabled, it allows field access to go beyond the end of
13494a
13495region definition if the field is within the region length rounded up to
13496the
13497next access width boundary (a common coding error.)
13498
13499Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
13500ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
13501these
13502symbols are lowercased by the latest version of the AcpiSrc tool.
13503
13504The prototypes for the PCI interfaces in acpiosxf.h have been updated to
13505rename "Register" to simply "Reg" to prevent certain compilers from
13506complaining.
13507
13508Code and Data Size: Current and previous core subsystem library sizes are
13509shown below.  These are the code and data sizes for the acpica.lib
13510produced
13511by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13512any ACPI driver or OSPM code.  The debug version of the code includes the
13513debug output trace mechanism and has a much larger code and data size.
13514Note
13515that these values will vary depending on the efficiency of the compiler
13516and
13517the compiler options used during generation.
13518
13519  Previous Release:
13520    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13521    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
13522  Current Release:
13523    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
13524    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
13525
13526
135272) iASL Compiler/Disassembler:
13528
13529Implemented full support for Package objects within the Case() operator.
13530Note: The Break() operator is currently not supported within Case blocks
13531(TermLists) as there is some question about backward compatibility with
13532ACPI
135331.0 interpreters.
13534
13535
13536Fixed a problem where complex terms were not supported properly within
13537the
13538Switch() operator.
13539
13540Eliminated extraneous warning for compiler-emitted reserved names of the
13541form "_T_x".  (Used in Switch/Case operators.)
13542
13543Eliminated optimization messages for "_T_x" objects and small constants
13544within the DefinitionBlock operator.
13545
13546
13547----------------------------------------
1354815 June 2004.  Summary of changes for version 20040615:
13549
135501) ACPI CA Core Subsystem:
13551
13552Implemented support for Buffer and String objects (as per ACPI 2.0) for
13553the
13554following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
13555LLessEqual.
13556
13557All directory names in the entire source package are lower case, as they
13558were in earlier releases.
13559
13560Implemented "Disassemble" command in the AML debugger that will
13561disassemble
13562a single control method.
13563
13564Code and Data Size: Current and previous core subsystem library sizes are
13565shown below.  These are the code and data sizes for the acpica.lib
13566produced
13567by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13568any ACPI driver or OSPM code.  The debug version of the code includes the
13569debug output trace mechanism and has a much larger code and data size.
13570Note
13571that these values will vary depending on the efficiency of the compiler
13572and
13573the compiler options used during generation.
13574
13575  Previous Release:
13576    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
13577    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
13578
13579  Current Release:
13580    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
13581    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
13582
13583
135842) iASL Compiler/Disassembler:
13585
13586Implemented support for Buffer and String objects (as per ACPI 2.0) for
13587the
13588following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
13589LLessEqual.
13590
13591All directory names in the entire source package are lower case, as they
13592were in earlier releases.
13593
13594Fixed a fault when using the -g or -d<nofilename> options if the FADT was
13595not found.
13596
13597Fixed an issue with the Windows version of the compiler where later
13598versions
13599of Windows place the FADT in the registry under the name "FADT" and not
13600"FACP" as earlier versions did.  This applies when using the -g or -
13601d<nofilename> options.  The compiler now looks for both strings as
13602necessary.
13603
13604Fixed a problem with compiler namepath optimization where a namepath
13605within
13606the Scope() operator could not be optimized if the namepath was a subpath
13607of
13608the current scope path.
13609
13610----------------------------------------
1361127 May 2004.  Summary of changes for version 20040527:
13612
136131) ACPI CA Core Subsystem:
13614
13615Completed a new design and implementation for EBDA (Extended BIOS Data
13616Area)
13617support in the RSDP scan code.  The original code improperly scanned for
13618the
13619EBDA by simply scanning from memory location 0 to 0x400.  The correct
13620method
13621is to first obtain the EBDA pointer from within the BIOS data area, then
13622scan 1K of memory starting at the EBDA pointer.  There appear to be few
13623if
13624any machines that place the RSDP in the EBDA, however.
13625
13626Integrated a fix for a possible fault during evaluation of BufferField
13627arguments.  Obsolete code that was causing the problem was removed.
13628
13629Found and fixed a problem in the Field Support Code where data could be
13630corrupted on a bit field read that starts on an aligned boundary but does
13631not end on an aligned boundary.  Merged the read/write "datum length"
13632calculation code into a common procedure.
13633
13634Rolled in a couple of changes to the FreeBSD-specific header.
13635
13636
13637Code and Data Size: Current and previous core subsystem library sizes are
13638shown below.  These are the code and data sizes for the acpica.lib
13639produced
13640by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13641any ACPI driver or OSPM code.  The debug version of the code includes the
13642debug output trace mechanism and has a much larger code and data size.
13643Note
13644that these values will vary depending on the efficiency of the compiler
13645and
13646the compiler options used during generation.
13647
13648  Previous Release:
13649    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13650    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
13651  Current Release:
13652    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
13653    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
13654
13655
136562) iASL Compiler/Disassembler:
13657
13658Fixed a generation warning produced by some overly-verbose compilers for
13659a
1366064-bit constant.
13661
13662----------------------------------------
1366314 May 2004.  Summary of changes for version 20040514:
13664
136651) ACPI CA Core Subsystem:
13666
13667Fixed a problem where hardware GPE enable bits sometimes not set properly
13668during and after GPE method execution.  Result of 04/27 changes.
13669
13670Removed extra "clear all GPEs" when sleeping/waking.
13671
13672Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
13673AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
13674to
13675the new AcpiEv* calls as appropriate.
13676
13677ACPI_OS_NAME was removed from the OS-specific headers.  The default name
13678is
13679now "Microsoft Windows NT" for maximum compatibility.  However this can
13680be
13681changed by modifying the acconfig.h file.
13682
13683Allow a single invocation of AcpiInstallNotifyHandler for a handler that
13684traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
13685
13686Run _INI methods on ThermalZone objects.  This is against the ACPI
13687specification, but there is apparently ASL code in the field that has
13688these
13689_INI methods, and apparently "other" AML interpreters execute them.
13690
13691Performed a full 16/32/64 bit lint that resulted in some small changes.
13692
13693Added a sleep simulation command to the AML debugger to test sleep code.
13694
13695Code and Data Size: Current and previous core subsystem library sizes are
13696shown below.  These are the code and data sizes for the acpica.lib
13697produced
13698by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13699any ACPI driver or OSPM code.  The debug version of the code includes the
13700debug output trace mechanism and has a much larger code and data size.
13701Note
13702that these values will vary depending on the efficiency of the compiler
13703and
13704the compiler options used during generation.
13705
13706  Previous Release:
13707    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13708    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
13709  Current Release:
13710    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13711    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
13712
13713----------------------------------------
1371427 April 2004.  Summary of changes for version 20040427:
13715
137161) ACPI CA Core Subsystem:
13717
13718Completed a major overhaul of the GPE handling within ACPI CA.  There are
13719now three types of GPEs:  wake-only, runtime-only, and combination
13720wake/run.
13721The only GPEs allowed to be combination wake/run are for button-style
13722devices such as a control-method power button, control-method sleep
13723button,
13724or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
13725not
13726referenced by any _PRW methods are marked for "runtime" and hardware
13727enabled.  Any GPE that is referenced by a _PRW method is marked for
13728"wake"
13729(and disabled at runtime).  However, at sleep time, only those GPEs that
13730have been specifically enabled for wake via the AcpiEnableGpe interface
13731will
13732actually be hardware enabled.
13733
13734A new external interface has been added, AcpiSetGpeType(), that is meant
13735to
13736be used by device drivers to force a GPE to a particular type.  It will
13737be
13738especially useful for the drivers for the button devices mentioned above.
13739
13740Completed restructuring of the ACPI CA initialization sequence so that
13741default operation region handlers are installed before GPEs are
13742initialized
13743and the _PRW methods are executed.  This will prevent errors when the
13744_PRW
13745methods attempt to access system memory or I/O space.
13746
13747GPE enable/disable no longer reads the GPE enable register.  We now keep
13748the
13749enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
13750thus no longer depend on the hardware to maintain these bits.
13751
13752Always clear the wake status and fixed/GPE status bits before sleep, even
13753for state S5.
13754
13755Improved the AML debugger output for displaying the GPE blocks and their
13756current status.
13757
13758Added new strings for the _OSI method, of the form "Windows 2001 SPx"
13759where
13760x = 0,1,2,3,4.
13761
13762Fixed a problem where the physical address was incorrectly calculated
13763when
13764the Load() operator was used to directly load from an Operation Region
13765(vs.
13766loading from a Field object.)  Also added check for minimum table length
13767for
13768this case.
13769
13770Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
13771mutex release.
13772
13773Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
13774consistency with the other fields returned.
13775
13776Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
13777structure for each GPE in the system, so the size of this structure is
13778important.
13779
13780CPU stack requirement reduction:  Cleaned up the method execution and
13781object
13782evaluation paths so that now a parameter structure is passed, instead of
13783copying the various method parameters over and over again.
13784
13785In evregion.c:  Correctly exit and reenter the interpreter region if and
13786only if dispatching an operation region request to a user-installed
13787handler.
13788Do not exit/reenter when dispatching to a default handler (e.g., default
13789system memory or I/O handlers)
13790
13791
13792Notes for updating drivers for the new GPE support.  The following
13793changes
13794must be made to ACPI-related device drivers that are attached to one or
13795more
13796GPEs: (This information will be added to the ACPI CA Programmer
13797Reference.)
13798
137991) AcpiInstallGpeHandler no longer automatically enables the GPE, you
13800must
13801explicitly call AcpiEnableGpe.
138022) There is a new interface called AcpiSetGpeType. This should be called
13803before enabling the GPE.  Also, this interface will automatically disable
13804the GPE if it is currently enabled.
138053) AcpiEnableGpe no longer supports a GPE type flag.
13806
13807Specific drivers that must be changed:
138081) EC driver:
13809    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
13810AeGpeHandler, NULL);
13811    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
13812    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
13813
138142) Button Drivers (Power, Lid, Sleep):
13815Run _PRW method under parent device
13816If _PRW exists: /* This is a control-method button */
13817    Extract GPE number and possibly GpeDevice
13818    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
13819    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
13820
13821For all other devices that have _PRWs, we automatically set the GPE type
13822to
13823ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
13824This
13825must be done on a selective basis, usually requiring some kind of user
13826app
13827to allow the user to pick the wake devices.
13828
13829
13830Code and Data Size: Current and previous core subsystem library sizes are
13831shown below.  These are the code and data sizes for the acpica.lib
13832produced
13833by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13834any ACPI driver or OSPM code.  The debug version of the code includes the
13835debug output trace mechanism and has a much larger code and data size.
13836Note
13837that these values will vary depending on the efficiency of the compiler
13838and
13839the compiler options used during generation.
13840
13841  Previous Release:
13842    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
13843    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
13844  Current Release:
13845
13846    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
13847    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
13848
13849
13850
13851----------------------------------------
1385202 April 2004.  Summary of changes for version 20040402:
13853
138541) ACPI CA Core Subsystem:
13855
13856Fixed an interpreter problem where an indirect store through an ArgX
13857parameter was incorrectly applying the "implicit conversion rules" during
13858the store.  From the ACPI specification: "If the target is a method local
13859or
13860argument (LocalX or ArgX), no conversion is performed and the result is
13861stored directly to the target".  The new behavior is to disable implicit
13862conversion during ALL stores to an ArgX.
13863
13864Changed the behavior of the _PRW method scan to ignore any and all errors
13865returned by a given _PRW.  This prevents the scan from aborting from the
13866failure of any single _PRW.
13867
13868Moved the runtime configuration parameters from the global init procedure
13869to
13870static variables in acglobal.h.  This will allow the host to override the
13871default values easily.
13872
13873Code and Data Size: Current and previous core subsystem library sizes are
13874shown below.  These are the code and data sizes for the acpica.lib
13875produced
13876by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13877any ACPI driver or OSPM code.  The debug version of the code includes the
13878debug output trace mechanism and has a much larger code and data size.
13879Note
13880that these values will vary depending on the efficiency of the compiler
13881and
13882the compiler options used during generation.
13883
13884  Previous Release:
13885    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
13886    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
13887  Current Release:
13888    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
13889    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
13890
13891
138922) iASL Compiler/Disassembler:
13893
13894iASL now fully disassembles SSDTs.  However, External() statements are
13895not
13896generated automatically for unresolved symbols at this time.  This is a
13897planned feature for future implementation.
13898
13899Fixed a scoping problem in the disassembler that occurs when the type of
13900the
13901target of a Scope() operator is overridden.  This problem caused an
13902incorrectly nested internal namespace to be constructed.
13903
13904Any warnings or errors that are emitted during disassembly are now
13905commented
13906out automatically so that the resulting file can be recompiled without
13907any
13908hand editing.
13909
13910----------------------------------------
1391126 March 2004.  Summary of changes for version 20040326:
13912
139131) ACPI CA Core Subsystem:
13914
13915Implemented support for "wake" GPEs via interaction between GPEs and the
13916_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
13917identified as a WAKE GPE and by default will no longer be enabled at
13918runtime.  Previously, we were blindly enabling all GPEs with a
13919corresponding
13920_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
13921We
13922believe this has been the cause of thousands of "spurious" GPEs on some
13923systems.
13924
13925This new GPE behavior is can be reverted to the original behavior (enable
13926ALL GPEs at runtime) via a runtime flag.
13927
13928Fixed a problem where aliased control methods could not access objects
13929properly.  The proper scope within the namespace was not initialized
13930(transferred to the target of the aliased method) before executing the
13931target method.
13932
13933Fixed a potential race condition on internal object deletion on the
13934return
13935object in AcpiEvaluateObject.
13936
13937Integrated a fix for resource descriptors where both _MEM and _MTP were
13938being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
13939wide, 0x0F instead of 0x03.)
13940
13941Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
13942preventing
13943a
13944fault in some cases.
13945
13946Updated Notify() values for debug statements in evmisc.c
13947
13948Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
13949
13950Code and Data Size: Current and previous core subsystem library sizes are
13951shown below.  These are the code and data sizes for the acpica.lib
13952produced
13953by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13954any ACPI driver or OSPM code.  The debug version of the code includes the
13955debug output trace mechanism and has a much larger code and data size.
13956Note
13957that these values will vary depending on the efficiency of the compiler
13958and
13959the compiler options used during generation.
13960
13961  Previous Release:
13962
13963    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
13964    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
13965  Current Release:
13966    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
13967    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
13968
13969----------------------------------------
1397011 March 2004.  Summary of changes for version 20040311:
13971
139721) ACPI CA Core Subsystem:
13973
13974Fixed a problem where errors occurring during the parse phase of control
13975method execution did not abort cleanly.  For example, objects created and
13976installed in the namespace were not deleted.  This caused all subsequent
13977invocations of the method to return the AE_ALREADY_EXISTS exception.
13978
13979Implemented a mechanism to force a control method to "Serialized"
13980execution
13981if the method attempts to create namespace objects. (The root of the
13982AE_ALREADY_EXISTS problem.)
13983
13984Implemented support for the predefined _OSI "internal" control method.
13985Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
13986and
13987"Windows 2001.1", and can be easily upgraded for new strings as
13988necessary.
13989This feature will allow "other" operating systems to execute the fully
13990tested, "Windows" code path through the ASL code
13991
13992Global Lock Support:  Now allows multiple acquires and releases with any
13993internal thread.  Removed concept of "owning thread" for this special
13994mutex.
13995
13996Fixed two functions that were inappropriately declaring large objects on
13997the
13998CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
13999during
14000method execution considerably.
14001
14002Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
14003S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
14004
14005Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
14006defined on the machine.
14007
14008Implemented two runtime options:  One to force all control method
14009execution
14010to "Serialized" to mimic Windows behavior, another to disable _OSI
14011support
14012if it causes problems on a given machine.
14013
14014Code and Data Size: Current and previous core subsystem library sizes are
14015shown below.  These are the code and data sizes for the acpica.lib
14016produced
14017by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14018any ACPI driver or OSPM code.  The debug version of the code includes the
14019debug output trace mechanism and has a much larger code and data size.
14020Note
14021that these values will vary depending on the efficiency of the compiler
14022and
14023the compiler options used during generation.
14024
14025  Previous Release:
14026    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
14027    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
14028  Current Release:
14029    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
14030    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
14031
140322) iASL Compiler/Disassembler:
14033
14034Fixed an array size problem for FreeBSD that would cause the compiler to
14035fault.
14036
14037----------------------------------------
1403820 February 2004.  Summary of changes for version 20040220:
14039
14040
140411) ACPI CA Core Subsystem:
14042
14043Implemented execution of _SxD methods for Device objects in the
14044GetObjectInfo interface.
14045
14046Fixed calls to _SST method to pass the correct arguments.
14047
14048Added a call to _SST on wake to restore to "working" state.
14049
14050Check for End-Of-Buffer failure case in the WalkResources interface.
14051
14052Integrated fix for 64-bit alignment issue in acglobal.h by moving two
14053structures to the beginning of the file.
14054
14055After wake, clear GPE status register(s) before enabling GPEs.
14056
14057After wake, clear/enable power button.  (Perhaps we should clear/enable
14058all
14059fixed events upon wake.)
14060
14061Fixed a couple of possible memory leaks in the Namespace manager.
14062
14063Integrated latest acnetbsd.h file.
14064
14065----------------------------------------
1406611 February 2004.  Summary of changes for version 20040211:
14067
14068
140691) ACPI CA Core Subsystem:
14070
14071Completed investigation and implementation of the call-by-reference
14072mechanism for control method arguments.
14073
14074Fixed a problem where a store of an object into an indexed package could
14075fail if the store occurs within a different method than the method that
14076created the package.
14077
14078Fixed a problem where the ToDecimal operator could return incorrect
14079results.
14080
14081Fixed a problem where the CopyObject operator could fail on some of the
14082more
14083obscure objects (e.g., Reference objects.)
14084
14085Improved the output of the Debug object to display buffer, package, and
14086index objects.
14087
14088Fixed a problem where constructs of the form "RefOf (ArgX)" did not
14089return
14090the expected result.
14091
14092Added permanent ACPI_REPORT_ERROR macros for all instances of the
14093ACPI_AML_INTERNAL exception.
14094
14095Integrated latest version of acfreebsd.h
14096
14097----------------------------------------
1409816 January 2004.  Summary of changes for version 20040116:
14099
14100The purpose of this release is primarily to update the copyright years in
14101each module, thus causing a huge number of diffs.  There are a few small
14102functional changes, however.
14103
141041) ACPI CA Core Subsystem:
14105
14106Improved error messages when there is a problem finding one or more of
14107the
14108required base ACPI tables
14109
14110Reintroduced the definition of APIC_HEADER in actbl.h
14111
14112Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
14113
14114Removed extraneous reference to NewObj in dsmthdat.c
14115
141162) iASL compiler
14117
14118Fixed a problem introduced in December that disabled the correct
14119disassembly
14120of Resource Templates
14121
14122
14123----------------------------------------
1412403 December 2003.  Summary of changes for version 20031203:
14125
141261) ACPI CA Core Subsystem:
14127
14128Changed the initialization of Operation Regions during subsystem
14129init to perform two entire walks of the ACPI namespace; The first
14130to initialize the regions themselves, the second to execute the
14131_REG methods.  This fixed some interdependencies across _REG
14132methods found on some machines.
14133
14134Fixed a problem where a Store(Local0, Local1) could simply update
14135the object reference count, and not create a new copy of the
14136object if the Local1 is uninitialized.
14137
14138Implemented support for the _SST reserved method during sleep
14139transitions.
14140
14141Implemented support to clear the SLP_TYP and SLP_EN bits when
14142waking up, this is apparently required by some machines.
14143
14144When sleeping, clear the wake status only if SleepState is not S5.
14145
14146Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
14147pointer arithmetic advanced a string pointer too far.
14148
14149Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
14150could be returned if the requested table has not been loaded.
14151
14152Within the support for IRQ resources, restructured the handling of
14153the active and edge/level bits.
14154
14155Fixed a few problems in AcpiPsxExecute() where memory could be
14156leaked under certain error conditions.
14157
14158Improved error messages for the cases where the ACPI mode could
14159not be entered.
14160
14161Code and Data Size: Current and previous core subsystem library
14162sizes are shown below.  These are the code and data sizes for the
14163acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14164these values do not include any ACPI driver or OSPM code.  The
14165debug version of the code includes the debug output trace
14166mechanism and has a much larger code and data size.  Note that
14167these values will vary depending on the efficiency of the compiler
14168and the compiler options used during generation.
14169
14170  Previous Release (20031029):
14171    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
14172    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
14173  Current Release:
14174    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
14175    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
14176
141772) iASL Compiler/Disassembler:
14178
14179Implemented a fix for the iASL disassembler where a bad index was
14180generated.  This was most noticeable on 64-bit platforms
14181
14182
14183----------------------------------------
1418429 October 2003.  Summary of changes for version 20031029:
14185
141861) ACPI CA Core Subsystem:
14187
14188
14189Fixed a problem where a level-triggered GPE with an associated
14190_Lxx control method was incorrectly cleared twice.
14191
14192Fixed a problem with the Field support code where an access can
14193occur beyond the end-of-region if the field is non-aligned but
14194extends to the very end of the parent region (resulted in an
14195AE_AML_REGION_LIMIT exception.)
14196
14197Fixed a problem with ACPI Fixed Events where an RT Clock handler
14198would not get invoked on an RTC event.  The RTC event bitmasks for
14199the PM1 registers were not being initialized properly.
14200
14201Implemented support for executing _STA and _INI methods for
14202Processor objects.  Although this is currently not part of the
14203ACPI specification, there is existing ASL code that depends on the
14204init-time execution of these methods.
14205
14206Implemented and deployed a GetDescriptorName function to decode
14207the various types of internal descriptors.  Guards against null
14208descriptors during debug output also.
14209
14210Implemented and deployed a GetNodeName function to extract the 4-
14211character namespace node name.  This function simplifies the debug
14212and error output, as well as guarding against null pointers during
14213output.
14214
14215Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
14216simplify the debug and error output of 64-bit integers.  This
14217macro replaces the HIDWORD and LODWORD macros for dumping these
14218integers.
14219
14220Updated the implementation of the Stall() operator to only call
14221AcpiOsStall(), and also return an error if the operand is larger
14222than 255.  This preserves the required behavior of not
14223relinquishing the processor, as would happen if AcpiOsSleep() was
14224called for "long stalls".
14225
14226Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
14227initialized are now treated as NOOPs.
14228
14229Cleaned up a handful of warnings during 64-bit generation.
14230
14231Fixed a reported error where and incorrect GPE number was passed
14232to the GPE dispatch handler.  This value is only used for error
14233output, however.  Used this opportunity to clean up and streamline
14234the GPE dispatch code.
14235
14236Code and Data Size: Current and previous core subsystem library
14237sizes are shown below.  These are the code and data sizes for the
14238acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14239these values do not include any ACPI driver or OSPM code.  The
14240
14241debug version of the code includes the debug output trace
14242mechanism and has a much larger code and data size.  Note that
14243these values will vary depending on the efficiency of the compiler
14244and the compiler options used during generation.
14245
14246  Previous Release (20031002):
14247    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
14248    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
14249  Current Release:
14250    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
14251    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
14252
14253
142542) iASL Compiler/Disassembler:
14255
14256Updated the iASL compiler to return an error if the operand to the
14257Stall() operator is larger than 255.
14258
14259
14260----------------------------------------
1426102 October 2003.  Summary of changes for version 20031002:
14262
14263
142641) ACPI CA Core Subsystem:
14265
14266Fixed a problem with Index Fields where the index was not
14267incremented for fields that require multiple writes to the
14268index/data registers (Fields that are wider than the data
14269register.)
14270
14271Fixed a problem with all Field objects where a write could go
14272beyond the end-of-field if the field was larger than the access
14273granularity and therefore required multiple writes to complete the
14274request.  An extra write beyond the end of the field could happen
14275inadvertently.
14276
14277Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
14278would incorrectly be returned if the width of the Data Register
14279was larger than the specified field access width.
14280
14281Completed fixes for LoadTable() and Unload() and verified their
14282operation.  Implemented full support for the "DdbHandle" object
14283throughout the ACPI CA subsystem.
14284
14285Implemented full support for the MADT and ECDT tables in the ACPI
14286CA header files.  Even though these tables are not directly
14287consumed by ACPI CA, the header definitions are useful for ACPI
14288device drivers.
14289
14290Integrated resource descriptor fixes posted to the Linux ACPI
14291list.  This included checks for minimum descriptor length, and
14292support for trailing NULL strings within descriptors that have
14293optional string elements.
14294
14295Code and Data Size: Current and previous core subsystem library
14296sizes are shown below.  These are the code and data sizes for the
14297acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14298these values do not include any ACPI driver or OSPM code.  The
14299debug version of the code includes the debug output trace
14300mechanism and has a much larger code and data size.  Note that
14301these values will vary depending on the efficiency of the compiler
14302and the compiler options used during generation.
14303
14304  Previous Release (20030918):
14305    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
14306    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
14307  Current Release:
14308    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
14309    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
14310
14311
143122) iASL Compiler:
14313
14314Implemented detection of non-ASCII characters within the input
14315source ASL file.  This catches attempts to compile binary (AML)
14316files early in the compile, with an informative error message.
14317
14318Fixed a problem where the disassembler would fault if the output
14319filename could not be generated or if the output file could not be
14320opened.
14321
14322----------------------------------------
1432318 September 2003.  Summary of changes for version 20030918:
14324
14325
143261) ACPI CA Core Subsystem:
14327
14328Found and fixed a longstanding problem with the late execution of
14329the various deferred AML opcodes (such as Operation Regions,
14330Buffer Fields, Buffers, and Packages).  If the name string
14331specified for the name of the new object placed the object in a
14332scope other than the current scope, the initialization/execution
14333of the opcode failed.  The solution to this problem was to
14334implement a mechanism where the late execution of such opcodes
14335does not attempt to lookup/create the name a second time in an
14336incorrect scope.  This fixes the "region size computed
14337incorrectly" problem.
14338
14339Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
14340Global Lock AE_BAD_PARAMETER error.
14341
14342Fixed several 64-bit issues with prototypes, casting and data
14343types.
14344
14345Removed duplicate prototype from acdisasm.h
14346
14347Fixed an issue involving EC Operation Region Detach (Shaohua Li)
14348
14349Code and Data Size: Current and previous core subsystem library
14350sizes are shown below.  These are the code and data sizes for the
14351acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14352these values do not include any ACPI driver or OSPM code.  The
14353debug version of the code includes the debug output trace
14354mechanism and has a much larger code and data size.  Note that
14355these values will vary depending on the efficiency of the compiler
14356and the compiler options used during generation.
14357
14358  Previous Release:
14359
14360    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
14361    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
14362  Current Release:
14363    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
14364    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
14365
14366
143672) Linux:
14368
14369Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
14370correct sleep time in seconds.
14371
14372----------------------------------------
1437314 July 2003.  Summary of changes for version 20030619:
14374
143751) ACPI CA Core Subsystem:
14376
14377Parse SSDTs in order discovered, as opposed to reverse order
14378(Hrvoje Habjanic)
14379
14380Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
14381Klausner,
14382   Nate Lawson)
14383
14384
143852) Linux:
14386
14387Dynamically allocate SDT list (suggested by Andi Kleen)
14388
14389proc function return value cleanups (Andi Kleen)
14390
14391Correctly handle NMI watchdog during long stalls (Andrew Morton)
14392
14393Make it so acpismp=force works (reported by Andrew Morton)
14394
14395
14396----------------------------------------
1439719 June 2003.  Summary of changes for version 20030619:
14398
143991) ACPI CA Core Subsystem:
14400
14401Fix To/FromBCD, eliminating the need for an arch-specific #define.
14402
14403Do not acquire a semaphore in the S5 shutdown path.
14404
14405Fix ex_digits_needed for 0. (Takayoshi Kochi)
14406
14407Fix sleep/stall code reversal. (Andi Kleen)
14408
14409Revert a change having to do with control method calling
14410semantics.
14411
144122) Linux:
14413
14414acpiphp update (Takayoshi Kochi)
14415
14416Export acpi_disabled for sonypi (Stelian Pop)
14417
14418Mention acpismp=force in config help
14419
14420Re-add acpitable.c and acpismp=force. This improves backwards
14421
14422compatibility and also cleans up the code to a significant degree.
14423
14424Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
14425
14426----------------------------------------
1442722 May 2003.  Summary of changes for version 20030522:
14428
144291) ACPI CA Core Subsystem:
14430
14431Found and fixed a reported problem where an AE_NOT_FOUND error
14432occurred occasionally during _BST evaluation.  This turned out to
14433be an Owner ID allocation issue where a called method did not get
14434a new ID assigned to it.  Eventually, (after 64k calls), the Owner
14435ID UINT16 would wraparound so that the ID would be the same as the
14436caller's and the called method would delete the caller's
14437namespace.
14438
14439Implemented extended error reporting for control methods that are
14440aborted due to a run-time exception.  Output includes the exact
14441AML instruction that caused the method abort, a dump of the method
14442locals and arguments at the time of the abort, and a trace of all
14443nested control method calls.
14444
14445Modified the interpreter to allow the creation of buffers of zero
14446length from the AML code. Implemented new code to ensure that no
14447attempt is made to actually allocate a memory buffer (of length
14448zero) - instead, a simple buffer object with a NULL buffer pointer
14449and length zero is created.  A warning is no longer issued when
14450the AML attempts to create a zero-length buffer.
14451
14452Implemented a workaround for the "leading asterisk issue" in
14453_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
14454asterisk is automatically removed if present in any HID, UID, or
14455CID strings.  The iASL compiler will still flag this asterisk as
14456an error, however.
14457
14458Implemented full support for _CID methods that return a package of
14459multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
14460now additionally returns a device _CID list if present.  This
14461required a change to the external interface in order to pass an
14462ACPI_BUFFER object as a parameter since the _CID list is of
14463variable length.
14464
14465Fixed a problem with the new AE_SAME_HANDLER exception where
14466handler initialization code did not know about this exception.
14467
14468Code and Data Size: Current and previous core subsystem library
14469sizes are shown below.  These are the code and data sizes for the
14470acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
14471these values do not include any ACPI driver or OSPM code.  The
14472debug version of the code includes the debug output trace
14473mechanism and has a much larger code and data size.  Note that
14474these values will vary depending on the efficiency of the compiler
14475and the compiler options used during generation.
14476
14477  Previous Release (20030509):
14478    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
14479    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
14480  Current Release:
14481    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
14482    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
14483
14484
144852) Linux:
14486
14487Fixed a bug in which we would reinitialize the ACPI interrupt
14488after it was already working, thus disabling all ACPI and the IRQs
14489for any other device sharing the interrupt. (Thanks to Stian
14490Jordet)
14491
14492Toshiba driver update (John Belmonte)
14493
14494Return only 0 or 1 for our interrupt handler status (Andrew
14495Morton)
14496
14497
144983) iASL Compiler:
14499
14500Fixed a reported problem where multiple (nested) ElseIf()
14501statements were not handled correctly by the compiler, resulting
14502in incorrect warnings and incorrect AML code.  This was a problem
14503in both the ASL parser and the code generator.
14504
14505
145064) Documentation:
14507
14508Added changes to existing interfaces, new exception codes, and new
14509text concerning reference count object management versus garbage
14510collection.
14511
14512----------------------------------------
1451309 May 2003.  Summary of changes for version 20030509.
14514
14515
145161) ACPI CA Core Subsystem:
14517
14518Changed the subsystem initialization sequence to hold off
14519installation of address space handlers until the hardware has been
14520initialized and the system has entered ACPI mode.  This is because
14521the installation of space handlers can cause _REG methods to be
14522run.  Previously, the _REG methods could potentially be run before
14523ACPI mode was enabled.
14524
14525Fixed some memory leak issues related to address space handler and
14526notify handler installation.  There were some problems with the
14527reference count mechanism caused by the fact that the handler
14528objects are shared across several namespace objects.
14529
14530Fixed a reported problem where reference counts within the
14531namespace were not properly updated when named objects created by
14532method execution were deleted.
14533
14534Fixed a reported problem where multiple SSDTs caused a deletion
14535issue during subsystem termination.  Restructured the table data
14536structures to simplify the linked lists and the related code.
14537
14538Fixed a problem where the table ID associated with secondary
14539tables (SSDTs) was not being propagated into the namespace objects
14540created by those tables.  This would only present a problem for
14541tables that are unloaded at run-time, however.
14542
14543Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
14544type as the length parameter (instead of UINT32).
14545
14546Solved a long-standing problem where an ALREADY_EXISTS error
14547appears on various systems.  This problem could happen when there
14548are multiple PCI_Config operation regions under a single PCI root
14549bus.  This doesn't happen very frequently, but there are some
14550systems that do this in the ASL.
14551
14552Fixed a reported problem where the internal DeleteNode function
14553was incorrectly handling the case where a namespace node was the
14554first in the parent's child list, and had additional peers (not
14555the only child, but first in the list of children.)
14556
14557Code and Data Size: Current core subsystem library sizes are shown
14558below.  These are the code and data sizes for the acpica.lib
14559produced by the Microsoft Visual C++ 6.0 compiler, and these
14560values do not include any ACPI driver or OSPM code.  The debug
14561version of the code includes the debug output trace mechanism and
14562has a much larger code and data size.  Note that these values will
14563vary depending on the efficiency of the compiler and the compiler
14564options used during generation.
14565
14566  Previous Release
14567    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
14568    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
14569  Current Release:
14570    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
14571    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
14572
14573
145742) Linux:
14575
14576Allow ":" in OS override string (Ducrot Bruno)
14577
14578Kobject fix (Greg KH)
14579
14580
145813 iASL Compiler/Disassembler:
14582
14583Fixed a problem in the generation of the C source code files (AML
14584is emitted in C source statements for BIOS inclusion) where the
14585Ascii dump that appears within a C comment at the end of each line
14586could cause a compile time error if the AML sequence happens to
14587have an open comment or close comment sequence embedded.
14588
14589
14590----------------------------------------
1459124 April 2003.  Summary of changes for version 20030424.
14592
14593
145941) ACPI CA Core Subsystem:
14595
14596Support for big-endian systems has been implemented.  Most of the
14597support has been invisibly added behind big-endian versions of the
14598ACPI_MOVE_* macros.
14599
14600Fixed a problem in AcpiHwDisableGpeBlock() and
14601AcpiHwClearGpeBlock() where an incorrect offset was passed to the
14602low level hardware write routine.  The offset parameter was
14603actually eliminated from the low level read/write routines because
14604they had become obsolete.
14605
14606Fixed a problem where a handler object was deleted twice during
14607the removal of a fixed event handler.
14608
14609
146102) Linux:
14611
14612A fix for SMP systems with link devices was contributed by
14613
14614Compaq's Dan Zink.
14615
14616(2.5) Return whether we handled the interrupt in our IRQ handler.
14617(Linux ISRs no longer return void, so we can propagate the handler
14618return value from the ACPI CA core back to the OS.)
14619
14620
14621
146223) Documentation:
14623
14624The ACPI CA Programmer Reference has been updated to reflect new
14625interfaces and changes to existing interfaces.
14626
14627----------------------------------------
1462828 March 2003.  Summary of changes for version 20030328.
14629
146301) ACPI CA Core Subsystem:
14631
14632The GPE Block Device support has been completed.  New interfaces
14633are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
14634interfaces (enable, disable, clear, getstatus) have been split
14635into separate interfaces for Fixed Events and General Purpose
14636Events (GPEs) in order to support GPE Block Devices properly.
14637
14638Fixed a problem where the error message "Failed to acquire
14639semaphore" would appear during operations on the embedded
14640controller (EC).
14641
14642Code and Data Size: Current core subsystem library sizes are shown
14643below.  These are the code and data sizes for the acpica.lib
14644produced by the Microsoft Visual C++ 6.0 compiler, and these
14645values do not include any ACPI driver or OSPM code.  The debug
14646version of the code includes the debug output trace mechanism and
14647has a much larger code and data size.  Note that these values will
14648vary depending on the efficiency of the compiler and the compiler
14649options used during generation.
14650
14651  Previous Release
14652    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
14653    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
14654  Current Release:
14655    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
14656    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
14657
14658
14659----------------------------------------
1466028 February 2003.  Summary of changes for version 20030228.
14661
14662
146631) ACPI CA Core Subsystem:
14664
14665The GPE handling and dispatch code has been completely overhauled
14666in preparation for support of GPE Block Devices (ID ACPI0006).
14667This affects internal data structures and code only; there should
14668be no differences visible externally.  One new file has been
14669added, evgpeblk.c
14670
14671The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
14672fields that are used to determine the GPE block lengths.  The
14673REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
14674structures are ignored.  This is per the ACPI specification but it
14675isn't very clear.  The full 256 Block 0/1 GPEs are now supported
14676(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
14677
14678In the SCI interrupt handler, removed the read of the PM1_CONTROL
14679register to look at the SCI_EN bit.  On some machines, this read
14680causes an SMI event and greatly slows down SCI events.  (This may
14681in fact be the cause of slow battery status response on some
14682systems.)
14683
14684Fixed a problem where a store of a NULL string to a package object
14685could cause the premature deletion of the object.  This was seen
14686during execution of the battery _BIF method on some systems,
14687resulting in no battery data being returned.
14688
14689Added AcpiWalkResources interface to simplify parsing of resource
14690lists.
14691
14692Code and Data Size: Current core subsystem library sizes are shown
14693below.  These are the code and data sizes for the acpica.lib
14694produced by the Microsoft Visual C++ 6.0 compiler, and these
14695values do not include any ACPI driver or OSPM code.  The debug
14696version of the code includes the debug output trace mechanism and
14697has a much larger code and data size.  Note that these values will
14698vary depending on the efficiency of the compiler and the compiler
14699options used during generation.
14700
14701  Previous Release
14702    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14703    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14704  Current Release:
14705    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
14706    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
14707
14708
147092) Linux
14710
14711S3 fixes (Ole Rohne)
14712
14713Update ACPI PHP driver with to use new acpi_walk_resource API
14714(Bjorn Helgaas)
14715
14716Add S4BIOS support (Pavel Machek)
14717
14718Map in entire table before performing checksum (John Stultz)
14719
14720Expand the mem= cmdline to allow the specification of reserved and
14721ACPI DATA blocks (Pavel Machek)
14722
14723Never use ACPI on VISWS
14724
14725Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
14726
14727Revert a change that allowed P_BLK lengths to be 4 or 5. This is
14728causing us to think that some systems support C2 when they really
14729don't.
14730
14731Do not count processor objects for non-present CPUs (Thanks to
14732Dominik Brodowski)
14733
14734
147353) iASL Compiler:
14736
14737Fixed a problem where ASL include files could not be found and
14738opened.
14739
14740Added support for the _PDC reserved name.
14741
14742
14743----------------------------------------
1474422 January 2003.  Summary of changes for version 20030122.
14745
14746
147471) ACPI CA Core Subsystem:
14748
14749Added a check for constructs of the form:  Store (Local0, Local0)
14750where Local0 is not initialized.  Apparently, some BIOS
14751programmers believe that this is a NOOP.  Since this store doesn't
14752do anything anyway, the new prototype behavior will ignore this
14753error.  This is a case where we can relax the strict checking in
14754the interpreter in the name of compatibility.
14755
14756
147572) Linux
14758
14759The AcpiSrc Source Conversion Utility has been released with the
14760Linux package for the first time.  This is the utility that is
14761used to convert the ACPI CA base source code to the Linux version.
14762
14763(Both) Handle P_BLK lengths shorter than 6 more gracefully
14764
14765(Both) Move more headers to include/acpi, and delete an unused
14766header.
14767
14768(Both) Move drivers/acpi/include directory to include/acpi
14769
14770(Both) Boot functions don't use cmdline, so don't pass it around
14771
14772(Both) Remove include of unused header (Adrian Bunk)
14773
14774(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
14775the
14776former now also includes the latter, acpiphp.h only needs the one,
14777now.
14778
14779(2.5) Make it possible to select method of bios restoring after S3
14780resume. [=> no more ugly ifdefs] (Pavel Machek)
14781
14782(2.5) Make proc write interfaces work (Pavel Machek)
14783
14784(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
14785
14786(2.5) Break out ACPI Perf code into its own module, under cpufreq
14787(Dominik Brodowski)
14788
14789(2.4) S4BIOS support (Ducrot Bruno)
14790
14791(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
14792Visinoni)
14793
14794
147953) iASL Compiler:
14796
14797Added support to disassemble SSDT and PSDTs.
14798
14799Implemented support to obtain SSDTs from the Windows registry if
14800available.
14801
14802
14803----------------------------------------
1480409 January 2003.  Summary of changes for version 20030109.
14805
148061) ACPI CA Core Subsystem:
14807
14808Changed the behavior of the internal Buffer-to-String conversion
14809function.  The current ACPI specification states that the contents
14810of the buffer are "converted to a string of two-character
14811hexadecimal numbers, each separated by a space".  Unfortunately,
14812this definition is not backwards compatible with existing ACPI 1.0
14813implementations (although the behavior was not defined in the ACPI
148141.0 specification).  The new behavior simply copies data from the
14815buffer to the string until a null character is found or the end of
14816the buffer is reached.  The new String object is always null
14817terminated.  This problem was seen during the generation of _BIF
14818battery data where incorrect strings were returned for battery
14819type, etc.  This will also require an errata to the ACPI
14820specification.
14821
14822Renamed all instances of NATIVE_UINT and NATIVE_INT to
14823ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
14824
14825Copyright in all module headers (both Linux and non-Linux) has be
14826updated to 2003.
14827
14828Code and Data Size: Current core subsystem library sizes are shown
14829below.  These are the code and data sizes for the acpica.lib
14830produced by the Microsoft Visual C++ 6.0 compiler, and these
14831values do not include any ACPI driver or OSPM code.  The debug
14832version of the code includes the debug output trace mechanism and
14833has a much larger code and data size.  Note that these values will
14834vary depending on the efficiency of the compiler and the compiler
14835options used during generation.
14836
14837  Previous Release
14838    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14839    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14840  Current Release:
14841    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14842    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14843
14844
148452) Linux
14846
14847Fixed an oops on module insertion/removal (Matthew Tippett)
14848
14849(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
14850
14851(2.5) Replace pr_debug (Randy Dunlap)
14852
14853(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
14854
14855(Both) Eliminate spawning of thread from timer callback, in favor
14856of schedule_work()
14857
14858(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
14859
14860(Both) Added define for Fixed Function HW region (Matthew Wilcox)
14861
14862(Both) Add missing statics to button.c (Pavel Machek)
14863
14864Several changes have been made to the source code translation
14865utility that generates the Linux Code in order to make the code
14866more "Linux-like":
14867
14868All typedefs on structs and unions have been removed in keeping
14869with the Linux coding style.
14870
14871Removed the non-Linux SourceSafe module revision number from each
14872module header.
14873
14874Completed major overhaul of symbols to be lowercased for linux.
14875Doubled the number of symbols that are lowercased.
14876
14877Fixed a problem where identifiers within procedure headers and
14878within quotes were not fully lower cased (they were left with a
14879starting capital.)
14880
14881Some C macros whose only purpose is to allow the generation of 16-
14882bit code are now completely removed in the Linux code, increasing
14883readability and maintainability.
14884
14885----------------------------------------
14886
1488712 December 2002.  Summary of changes for version 20021212.
14888
14889
148901) ACPI CA Core Subsystem:
14891
14892Fixed a problem where the creation of a zero-length AML Buffer
14893would cause a fault.
14894
14895Fixed a problem where a Buffer object that pointed to a static AML
14896buffer (in an ACPI table) could inadvertently be deleted, causing
14897memory corruption.
14898
14899Fixed a problem where a user buffer (passed in to the external
14900ACPI CA interfaces) could be overwritten if the buffer was too
14901small to complete the operation, causing memory corruption.
14902
14903Fixed a problem in the Buffer-to-String conversion code where a
14904string of length one was always returned, regardless of the size
14905of the input Buffer object.
14906
14907Removed the NATIVE_CHAR data type across the entire source due to
14908lack of need and lack of consistent use.
14909
14910Code and Data Size: Current core subsystem library sizes are shown
14911below.  These are the code and data sizes for the acpica.lib
14912produced by the Microsoft Visual C++ 6.0 compiler, and these
14913values do not include any ACPI driver or OSPM code.  The debug
14914version of the code includes the debug output trace mechanism and
14915has a much larger code and data size.  Note that these values will
14916vary depending on the efficiency of the compiler and the compiler
14917options used during generation.
14918
14919  Previous Release
14920    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
14921    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
14922  Current Release:
14923    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
14924    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
14925
14926
14927----------------------------------------
1492805 December 2002.  Summary of changes for version 20021205.
14929
149301) ACPI CA Core Subsystem:
14931
14932Fixed a problem where a store to a String or Buffer object could
14933cause corruption of the DSDT if the object type being stored was
14934the same as the target object type and the length of the object
14935being stored was equal to or smaller than the original (existing)
14936target object.  This was seen to cause corruption of battery _BIF
14937buffers if the _BIF method modified the buffer on the fly.
14938
14939Fixed a problem where an internal error was generated if a control
14940method invocation was used in an OperationRegion, Buffer, or
14941Package declaration.  This was caused by the deferred parsing of
14942the control method and thus the deferred creation of the internal
14943method object.  The solution to this problem was to create the
14944internal method object at the moment the method is encountered in
14945the first pass - so that subsequent references to the method will
14946able to obtain the required parameter count and thus properly
14947parse the method invocation.  This problem presented itself as an
14948AE_AML_INTERNAL during the pass 1 parse phase during table load.
14949
14950Fixed a problem where the internal String object copy routine did
14951not always allocate sufficient memory for the target String object
14952and caused memory corruption.  This problem was seen to cause
14953"Allocation already present in list!" errors as memory allocation
14954became corrupted.
14955
14956Implemented a new function for the evaluation of namespace objects
14957that allows the specification of the allowable return object
14958types.  This simplifies a lot of code that checks for a return
14959object of one or more specific objects returned from the
14960evaluation (such as _STA, etc.)  This may become and external
14961function if it would be useful to ACPI-related drivers.
14962
14963Completed another round of prefixing #defines with "ACPI_" for
14964clarity.
14965
14966Completed additional code restructuring to allow more modular
14967linking for iASL compiler and AcpiExec.  Several files were split
14968creating new files.  New files:  nsparse.c dsinit.c evgpe.c
14969
14970Implemented an abort mechanism to terminate an executing control
14971method via the AML debugger.  This feature is useful for debugging
14972control methods that depend (wait) for specific hardware
14973responses.
14974
14975Code and Data Size: Current core subsystem library sizes are shown
14976below.  These are the code and data sizes for the acpica.lib
14977produced by the Microsoft Visual C++ 6.0 compiler, and these
14978values do not include any ACPI driver or OSPM code.  The debug
14979version of the code includes the debug output trace mechanism and
14980has a much larger code and data size.  Note that these values will
14981vary depending on the efficiency of the compiler and the compiler
14982options used during generation.
14983
14984  Previous Release
14985    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
14986    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
14987  Current Release:
14988    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
14989    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
14990
14991
149922) iASL Compiler/Disassembler
14993
14994Fixed a compiler code generation problem for "Interrupt" Resource
14995Descriptors.  If specified in the ASL, the optional "Resource
14996Source Index" and "Resource Source" fields were not inserted into
14997the correct location within the AML resource descriptor, creating
14998an invalid descriptor.
14999
15000Fixed a disassembler problem for "Interrupt" resource descriptors.
15001The optional "Resource Source Index" and "Resource Source" fields
15002were ignored.
15003
15004
15005----------------------------------------
1500622 November 2002.  Summary of changes for version 20021122.
15007
15008
150091) ACPI CA Core Subsystem:
15010
15011Fixed a reported problem where an object stored to a Method Local
15012or Arg was not copied to a new object during the store - the
15013object pointer was simply copied to the Local/Arg.  This caused
15014all subsequent operations on the Local/Arg to also affect the
15015original source of the store operation.
15016
15017Fixed a problem where a store operation to a Method Local or Arg
15018was not completed properly if the Local/Arg contained a reference
15019(from RefOf) to a named field.  The general-purpose store-to-
15020namespace-node code is now used so that this case is handled
15021automatically.
15022
15023Fixed a problem where the internal object copy routine would cause
15024a protection fault if the object being copied was a Package and
15025contained either 1) a NULL package element or 2) a nested sub-
15026package.
15027
15028Fixed a problem with the GPE initialization that resulted from an
15029ambiguity in the ACPI specification.  One section of the
15030specification states that both the address and length of the GPE
15031block must be zero if the block is not supported.  Another section
15032implies that only the address need be zero if the block is not
15033supported.  The code has been changed so that both the address and
15034the length must be non-zero to indicate a valid GPE block (i.e.,
15035if either the address or the length is zero, the GPE block is
15036invalid.)
15037
15038Code and Data Size: Current core subsystem library sizes are shown
15039below.  These are the code and data sizes for the acpica.lib
15040produced by the Microsoft Visual C++ 6.0 compiler, and these
15041values do not include any ACPI driver or OSPM code.  The debug
15042version of the code includes the debug output trace mechanism and
15043has a much larger code and data size.  Note that these values will
15044vary depending on the efficiency of the compiler and the compiler
15045options used during generation.
15046
15047  Previous Release
15048    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
15049    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
15050  Current Release:
15051    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15052    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
15053
15054
150552) Linux
15056
15057Cleaned up EC driver. Exported an external EC read/write
15058interface. By going through this, other drivers (most notably
15059sonypi) will be able to serialize access to the EC.
15060
15061
150623) iASL Compiler/Disassembler
15063
15064Implemented support to optionally generate include files for both
15065ASM and C (the -i switch).  This simplifies BIOS development by
15066automatically creating include files that contain external
15067declarations for the symbols that are created within the
15068
15069(optionally generated) ASM and C AML source files.
15070
15071
15072----------------------------------------
1507315 November 2002.  Summary of changes for version 20021115.
15074
150751) ACPI CA Core Subsystem:
15076
15077Fixed a memory leak problem where an error during resolution of
15078
15079method arguments during a method invocation from another method
15080failed to cleanup properly by deleting all successfully resolved
15081argument objects.
15082
15083Fixed a problem where the target of the Index() operator was not
15084correctly constructed if the source object was a package.  This
15085problem has not been detected because the use of a target operand
15086with Index() is very rare.
15087
15088Fixed a problem with the Index() operator where an attempt was
15089made to delete the operand objects twice.
15090
15091Fixed a problem where an attempt was made to delete an operand
15092twice during execution of the CondRefOf() operator if the target
15093did not exist.
15094
15095Implemented the first of perhaps several internal create object
15096functions that create and initialize a specific object type.  This
15097consolidates duplicated code wherever the object is created, thus
15098shrinking the size of the subsystem.
15099
15100Implemented improved debug/error messages for errors that occur
15101during nested method invocations.  All executing method pathnames
15102are displayed (with the error) as the call stack is unwound - thus
15103simplifying debug.
15104
15105Fixed a problem introduced in the 10/02 release that caused
15106premature deletion of a buffer object if a buffer was used as an
15107ASL operand where an integer operand is required (Thus causing an
15108implicit object conversion from Buffer to Integer.)  The change in
15109the 10/02 release was attempting to fix a memory leak (albeit
15110incorrectly.)
15111
15112Code and Data Size: Current core subsystem library sizes are shown
15113below.  These are the code and data sizes for the acpica.lib
15114produced by the Microsoft Visual C++ 6.0 compiler, and these
15115values do not include any ACPI driver or OSPM code.  The debug
15116version of the code includes the debug output trace mechanism and
15117has a much larger code and data size.  Note that these values will
15118vary depending on the efficiency of the compiler and the compiler
15119options used during generation.
15120
15121  Previous Release
15122    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
15123    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
15124  Current Release:
15125    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
15126    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
15127
15128
151292) Linux
15130
15131Changed the implementation of the ACPI semaphores to use down()
15132instead of down_interruptable().  It is important that the
15133execution of ACPI control methods not be interrupted by signals.
15134Methods must run to completion, or the system may be left in an
15135unknown/unstable state.
15136
15137Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
15138(Shawn Starr)
15139
15140
151413) iASL Compiler/Disassembler
15142
15143
15144Changed the default location of output files.  All output files
15145are now placed in the current directory by default instead of in
15146the directory of the source file.  This change may affect some
15147existing makefiles, but it brings the behavior of the compiler in
15148line with other similar tools.  The location of the output files
15149can be overridden with the -p command line switch.
15150
15151
15152----------------------------------------
1515311 November 2002.  Summary of changes for version 20021111.
15154
15155
151560) ACPI Specification 2.0B is released and is now available at:
15157http://www.acpi.info/index.html
15158
15159
151601) ACPI CA Core Subsystem:
15161
15162Implemented support for the ACPI 2.0 SMBus Operation Regions.
15163This includes the early detection and handoff of the request to
15164the SMBus region handler (avoiding all of the complex field
15165support code), and support for the bidirectional return packet
15166from an SMBus write operation.  This paves the way for the
15167development of SMBus drivers in each host operating system.
15168
15169Fixed a problem where the semaphore WAIT_FOREVER constant was
15170defined as 32 bits, but must be 16 bits according to the ACPI
15171specification.  This had the side effect of causing ASL
15172Mutex/Event timeouts even though the ASL code requested a wait
15173forever.  Changed all internal references to the ACPI timeout
15174parameter to 16 bits to prevent future problems.  Changed the name
15175of WAIT_FOREVER to ACPI_WAIT_FOREVER.
15176
15177Code and Data Size: Current core subsystem library sizes are shown
15178below.  These are the code and data sizes for the acpica.lib
15179produced by the Microsoft Visual C++ 6.0 compiler, and these
15180values do not include any ACPI driver or OSPM code.  The debug
15181version of the code includes the debug output trace mechanism and
15182has a much larger code and data size.  Note that these values will
15183vary depending on the efficiency of the compiler and the compiler
15184options used during generation.
15185
15186  Previous Release
15187    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15188    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
15189  Current Release:
15190    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
15191    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
15192
15193
151942) Linux
15195
15196Module loading/unloading fixes (John Cagle)
15197
15198
151993) iASL Compiler/Disassembler
15200
15201Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
15202
15203Implemented support for the disassembly of all SMBus protocol
15204keywords (SMBQuick, SMBWord, etc.)
15205
15206----------------------------------------
1520701 November 2002.  Summary of changes for version 20021101.
15208
15209
152101) ACPI CA Core Subsystem:
15211
15212Fixed a problem where platforms that have a GPE1 block but no GPE0
15213block were not handled correctly.  This resulted in a "GPE
15214overlap" error message.  GPE0 is no longer required.
15215
15216Removed code added in the previous release that inserted nodes
15217into the namespace in alphabetical order.  This caused some side-
15218effects on various machines.  The root cause of the problem is
15219still under investigation since in theory, the internal ordering
15220of the namespace nodes should not matter.
15221
15222
15223Enhanced error reporting for the case where a named object is not
15224found during control method execution.  The full ACPI namepath
15225(name reference) of the object that was not found is displayed in
15226this case.
15227
15228Note: as a result of the overhaul of the namespace object types in
15229the previous release, the namespace nodes for the predefined
15230scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
15231instead of ACPI_TYPE_ANY.  This simplifies the namespace
15232management code but may affect code that walks the namespace tree
15233looking for specific object types.
15234
15235Code and Data Size: Current core subsystem library sizes are shown
15236below.  These are the code and data sizes for the acpica.lib
15237produced by the Microsoft Visual C++ 6.0 compiler, and these
15238values do not include any ACPI driver or OSPM code.  The debug
15239version of the code includes the debug output trace mechanism and
15240has a much larger code and data size.  Note that these values will
15241vary depending on the efficiency of the compiler and the compiler
15242options used during generation.
15243
15244  Previous Release
15245    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
15246    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
15247  Current Release:
15248    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
15249    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
15250
15251
152522) Linux
15253
15254Fixed a problem introduced in the previous release where the
15255Processor and Thermal objects were not recognized and installed in
15256/proc.  This was related to the scope type change described above.
15257
15258
152593) iASL Compiler/Disassembler
15260
15261Implemented the -g option to get all of the required ACPI tables
15262from the registry and save them to files (Windows version of the
15263compiler only.)  The required tables are the FADT, FACS, and DSDT.
15264
15265Added ACPI table checksum validation during table disassembly in
15266order to catch corrupted tables.
15267
15268
15269----------------------------------------
1527022 October 2002.  Summary of changes for version 20021022.
15271
152721) ACPI CA Core Subsystem:
15273
15274Implemented a restriction on the Scope operator that the target
15275must already exist in the namespace at the time the operator is
15276encountered (during table load or method execution).  In other
15277words, forward references are not allowed and Scope() cannot
15278create a new object. This changes the previous behavior where the
15279interpreter would create the name if not found.  This new behavior
15280correctly enables the search-to-root algorithm during namespace
15281lookup of the target name.  Because of this upsearch, this fixes
15282the known Compaq _SB_.OKEC problem and makes both the AML
15283interpreter and iASL compiler compatible with other ACPI
15284implementations.
15285
15286Completed a major overhaul of the internal ACPI object types for
15287the ACPI Namespace and the associated operand objects.  Many of
15288these types had become obsolete with the introduction of the two-
15289pass namespace load.  This cleanup simplifies the code and makes
15290the entire namespace load mechanism much clearer and easier to
15291understand.
15292
15293Improved debug output for tracking scope opening/closing to help
15294diagnose scoping issues.  The old scope name as well as the new
15295scope name are displayed.  Also improved error messages for
15296problems with ASL Mutex objects and error messages for GPE
15297problems.
15298
15299Cleaned up the namespace dump code, removed obsolete code.
15300
15301All string output (for all namespace/object dumps) now uses the
15302common ACPI string output procedure which handles escapes properly
15303and does not emit non-printable characters.
15304
15305Fixed some issues with constants in the 64-bit version of the
15306local C library (utclib.c)
15307
15308
153092) Linux
15310
15311EC Driver:  No longer attempts to acquire the Global Lock at
15312interrupt level.
15313
15314
153153) iASL Compiler/Disassembler
15316
15317Implemented ACPI 2.0B grammar change that disallows all Type 1 and
153182 opcodes outside of a control method.  This means that the
15319"executable" operators (versus the "namespace" operators) cannot
15320be used at the table level; they can only be used within a control
15321method.
15322
15323Implemented the restriction on the Scope() operator where the
15324target must already exist in the namespace at the time the
15325operator is encountered (during ASL compilation). In other words,
15326forward references are not allowed and Scope() cannot create a new
15327object.  This makes the iASL compiler compatible with other ACPI
15328implementations and makes the Scope() implementation adhere to the
15329ACPI specification.
15330
15331Fixed a problem where namepath optimization for the Alias operator
15332was optimizing the wrong path (of the two namepaths.)  This caused
15333a "Missing alias link" error message.
15334
15335Fixed a problem where an "unknown reserved name" warning could be
15336incorrectly generated for names like "_SB" when the trailing
15337underscore is not used in the original ASL.
15338
15339Fixed a problem where the reserved name check did not handle
15340NamePaths with multiple NameSegs correctly.  The first nameseg of
15341the NamePath was examined instead of the last NameSeg.
15342
15343
15344----------------------------------------
15345
1534602 October 2002.  Summary of changes for this release.
15347
15348
153491) ACPI CA Core Subsystem version 20021002:
15350
15351Fixed a problem where a store/copy of a string to an existing
15352string did not always set the string length properly in the String
15353object.
15354
15355Fixed a reported problem with the ToString operator where the
15356behavior was identical to the ToHexString operator instead of just
15357simply converting a raw buffer to a string data type.
15358
15359Fixed a problem where CopyObject and the other "explicit"
15360conversion operators were not updating the internal namespace node
15361type as part of the store operation.
15362
15363Fixed a memory leak during implicit source operand conversion
15364where the original object was not deleted if it was converted to a
15365new object of a different type.
15366
15367Enhanced error messages for all problems associated with namespace
15368lookups.  Common procedure generates and prints the lookup name as
15369well as the formatted status.
15370
15371Completed implementation of a new design for the Alias support
15372within the namespace.  The existing design did not handle the case
15373where a new object was assigned to one of the two names due to the
15374use of an explicit conversion operator, resulting in the two names
15375pointing to two different objects.  The new design simply points
15376the Alias name to the original name node - not to the object.
15377This results in a level of indirection that must be handled in the
15378name resolution mechanism.
15379
15380Code and Data Size: Current core subsystem library sizes are shown
15381below.  These are the code and data sizes for the acpica.lib
15382produced by the Microsoft Visual C++ 6.0 compiler, and these
15383values do not include any ACPI driver or OSPM code.  The debug
15384version of the code includes the debug output trace mechanism and
15385has a larger code and data size.  Note that these values will vary
15386depending on the efficiency of the compiler and the compiler
15387options used during generation.
15388
15389  Previous Release
15390    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
15391    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
15392  Current Release:
15393    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
15394    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
15395
15396
153972) Linux
15398
15399Initialize thermal driver's timer before it is used. (Knut
15400Neumann)
15401
15402Allow handling negative celsius values. (Kochi Takayoshi)
15403
15404Fix thermal management and make trip points. R/W (Pavel Machek)
15405
15406Fix /proc/acpi/sleep. (P. Christeas)
15407
15408IA64 fixes. (David Mosberger)
15409
15410Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
15411
15412Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
15413Brodowski)
15414
15415
154163) iASL Compiler/Disassembler
15417
15418Clarified some warning/error messages.
15419
15420
15421----------------------------------------
1542218 September 2002.  Summary of changes for this release.
15423
15424
154251) ACPI CA Core Subsystem version 20020918:
15426
15427Fixed a reported problem with reference chaining (via the Index()
15428and RefOf() operators) in the ObjectType() and SizeOf() operators.
15429The definition of these operators includes the dereferencing of
15430all chained references to return information on the base object.
15431
15432Fixed a problem with stores to indexed package elements - the
15433existing code would not complete the store if an "implicit
15434conversion" was not performed.  In other words, if the existing
15435object (package element) was to be replaced completely, the code
15436didn't handle this case.
15437
15438Relaxed typechecking on the ASL "Scope" operator to allow the
15439target name to refer to an object of type Integer, String, or
15440Buffer, in addition to the scoping object types (Device,
15441predefined Scopes, Processor, PowerResource, and ThermalZone.)
15442This allows existing AML code that has workarounds for a bug in
15443Windows to function properly.  A warning is issued, however.  This
15444affects both the AML interpreter and the iASL compiler. Below is
15445an example of this type of ASL code:
15446
15447      Name(DEB,0x00)
15448      Scope(DEB)
15449      {
15450
15451Fixed some reported problems with 64-bit integer support in the
15452local implementation of C library functions (clib.c)
15453
15454
154552) Linux
15456
15457Use ACPI fix map region instead of IOAPIC region, since it is
15458undefined in non-SMP.
15459
15460Ensure that the SCI has the proper polarity and trigger, even on
15461systems that do not have an interrupt override entry in the MADT.
15462
154632.5 big driver reorganization (Pat Mochel)
15464
15465Use early table mapping code from acpitable.c (Andi Kleen)
15466
15467New blacklist entries (Andi Kleen)
15468
15469Blacklist improvements. Split blacklist code out into a separate
15470file. Move checking the blacklist to very early. Previously, we
15471would use ACPI tables, and then halfway through init, check the
15472blacklist -- too late. Now, it's early enough to completely fall-
15473back to non-ACPI.
15474
15475
154763) iASL Compiler/Disassembler version 20020918:
15477
15478Fixed a problem where the typechecking code didn't know that an
15479alias could point to a method.  In other words, aliases were not
15480being dereferenced during typechecking.
15481
15482
15483----------------------------------------
1548429 August 2002.  Summary of changes for this release.
15485
154861) ACPI CA Core Subsystem Version 20020829:
15487
15488If the target of a Scope() operator already exists, it must be an
15489object type that actually opens a scope -- such as a Device,
15490Method, Scope, etc.  This is a fatal runtime error.  Similar error
15491check has been added to the iASL compiler also.
15492
15493Tightened up the namespace load to disallow multiple names in the
15494same scope.  This previously was allowed if both objects were of
15495the same type.  (i.e., a lookup was the same as entering a new
15496name).
15497
15498
154992) Linux
15500
15501Ensure that the ACPI interrupt has the proper trigger and
15502polarity.
15503
15504local_irq_disable is extraneous. (Matthew Wilcox)
15505
15506Make "acpi=off" actually do what it says, and not use the ACPI
15507interpreter *or* the tables.
15508
15509Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
15510Takayoshi)
15511
15512
155133) iASL Compiler/Disassembler  Version 20020829:
15514
15515Implemented namepath optimization for name declarations.  For
15516example, a declaration like "Method (\_SB_.ABCD)" would get
15517optimized to "Method (ABCD)" if the declaration is within the
15518\_SB_ scope.  This optimization is in addition to the named
15519reference path optimization first released in the previous
15520version. This would seem to complete all possible optimizations
15521for namepaths within the ASL/AML.
15522
15523If the target of a Scope() operator already exists, it must be an
15524object type that actually opens a scope -- such as a Device,
15525Method, Scope, etc.
15526
15527Implemented a check and warning for unreachable code in the same
15528block below a Return() statement.
15529
15530Fixed a problem where the listing file was not generated if the
15531compiler aborted if the maximum error count was exceeded (200).
15532
15533Fixed a problem where the typechecking of method return values was
15534broken.  This includes the check for a return value when the
15535method is invoked as a TermArg (a return value is expected.)
15536
15537Fixed a reported problem where EOF conditions during a quoted
15538string or comment caused a fault.
15539
15540
15541----------------------------------------
1554215 August 2002.  Summary of changes for this release.
15543
155441) ACPI CA Core Subsystem Version 20020815:
15545
15546Fixed a reported problem where a Store to a method argument that
15547contains a reference did not perform the indirect store correctly.
15548This problem was created during the conversion to the new
15549reference object model - the indirect store to a method argument
15550code was not updated to reflect the new model.
15551
15552Reworked the ACPI mode change code to better conform to ACPI 2.0,
15553handle corner cases, and improve code legibility (Kochi Takayoshi)
15554
15555Fixed a problem with the pathname parsing for the carat (^)
15556prefix.  The heavy use of the carat operator by the new namepath
15557optimization in the iASL compiler uncovered a problem with the AML
15558interpreter handling of this prefix.  In the case where one or
15559more carats precede a single nameseg, the nameseg was treated as
15560standalone and the search rule (to root) was inadvertently
15561applied.  This could cause both the iASL compiler and the
15562interpreter to find the wrong object or to miss the error that
15563should occur if the object does not exist at that exact pathname.
15564
15565Found and fixed the problem where the HP Pavilion DSDT would not
15566load.  This was a relatively minor tweak to the table loading code
15567(a problem caused by the unexpected encounter with a method
15568invocation not within a control method), but it does not solve the
15569overall issue of the execution of AML code at the table level.
15570This investigation is still ongoing.
15571
15572Code and Data Size: Current core subsystem library sizes are shown
15573below.  These are the code and data sizes for the acpica.lib
15574produced by the Microsoft Visual C++ 6.0 compiler, and these
15575values do not include any ACPI driver or OSPM code.  The debug
15576version of the code includes the debug output trace mechanism and
15577has a larger code and data size.  Note that these values will vary
15578depending on the efficiency of the compiler and the compiler
15579options used during generation.
15580
15581  Previous Release
15582    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
15583    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
15584  Current Release:
15585    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
15586    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
15587
15588
155892) Linux
15590
15591Remove redundant slab.h include (Brad Hards)
15592
15593Fix several bugs in thermal.c (Herbert Nachtnebel)
15594
15595Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
15596
15597Change acpi_system_suspend to use updated irq functions (Pavel
15598Machek)
15599
15600Export acpi_get_firmware_table (Matthew Wilcox)
15601
15602Use proper root proc entry for ACPI (Kochi Takayoshi)
15603
15604Fix early-boot table parsing (Bjorn Helgaas)
15605
15606
156073) iASL Compiler/Disassembler
15608
15609Reworked the compiler options to make them more consistent and to
15610use two-letter options where appropriate.  We were running out of
15611sensible letters.   This may break some makefiles, so check the
15612current options list by invoking the compiler with no parameters.
15613
15614Completed the design and implementation of the ASL namepath
15615optimization option for the compiler.  This option optimizes all
15616references to named objects to the shortest possible path.  The
15617first attempt tries to utilize a single nameseg (4 characters) and
15618the "search-to-root" algorithm used by the interpreter.  If that
15619cannot be used (because either the name is not in the search path
15620or there is a conflict with another object with the same name),
15621the pathname is optimized using the carat prefix (usually a
15622shorter string than specifying the entire path from the root.)
15623
15624Implemented support to obtain the DSDT from the Windows registry
15625(when the disassembly option is specified with no input file).
15626Added this code as the implementation for AcpiOsTableOverride in
15627the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
15628utility) to scan memory for the DSDT to the AcpiOsTableOverride
15629function in the DOS OSL to make the disassembler truly OS
15630independent.
15631
15632Implemented a new option to disassemble and compile in one step.
15633When used without an input filename, this option will grab the
15634DSDT from the local machine, disassemble it, and compile it in one
15635step.
15636
15637Added a warning message for invalid escapes (a backslash followed
15638by any character other than the allowable escapes).  This catches
15639the quoted string error "\_SB_" (which should be "\\_SB_" ).
15640
15641Also, there are numerous instances in the ACPI specification where
15642this error occurs.
15643
15644Added a compiler option to disable all optimizations.  This is
15645basically the "compatibility mode" because by using this option,
15646the AML code will come out exactly the same as other ASL
15647compilers.
15648
15649Added error messages for incorrectly ordered dependent resource
15650functions.  This includes: missing EndDependentFn macro at end of
15651dependent resource list, nested dependent function macros (both
15652start and end), and missing StartDependentFn macro.  These are
15653common errors that should be caught at compile time.
15654
15655Implemented _OSI support for the disassembler and compiler.  _OSI
15656must be included in the namespace for proper disassembly (because
15657the disassembler must know the number of arguments.)
15658
15659Added an "optimization" message type that is optional (off by
15660default).  This message is used for all optimizations - including
15661constant folding, integer optimization, and namepath optimization.
15662
15663----------------------------------------
1566425 July 2002.  Summary of changes for this release.
15665
15666
156671) ACPI CA Core Subsystem Version 20020725:
15668
15669The AML Disassembler has been enhanced to produce compilable ASL
15670code and has been integrated into the iASL compiler (see below) as
15671well as the single-step disassembly for the AML debugger and the
15672disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
15673resource templates and macros are fully supported.  The
15674disassembler has been tested on over 30 different AML files,
15675producing identical AML when the resulting disassembled ASL file
15676is recompiled with the same ASL compiler.
15677
15678Modified the Resource Manager to allow zero interrupts and zero
15679dma channels during the GetCurrentResources call.  This was
15680causing problems on some platforms.
15681
15682Added the AcpiOsRedirectOutput interface to the OSL to simplify
15683output redirection for the AcpiOsPrintf and AcpiOsVprintf
15684interfaces.
15685
15686Code and Data Size: Current core subsystem library sizes are shown
15687below.  These are the code and data sizes for the acpica.lib
15688produced by the Microsoft Visual C++ 6.0 compiler, and these
15689values do not include any ACPI driver or OSPM code.  The debug
15690version of the code includes the debug output trace mechanism and
15691has a larger code and data size.  Note that these values will vary
15692depending on the efficiency of the compiler and the compiler
15693options used during generation.
15694
15695  Previous Release
15696    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
15697    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
15698  Current Release:
15699    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
15700    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
15701
15702
157032) Linux
15704
15705Fixed a panic in the EC driver (Dominik Brodowski)
15706
15707Implemented checksum of the R/XSDT itself during Linux table scan
15708(Richard Schaal)
15709
15710
157113) iASL compiler
15712
15713The AML disassembler is integrated into the compiler.  The "-d"
15714option invokes the disassembler  to completely disassemble an
15715input AML file, producing as output a text ASL file with the
15716extension ".dsl" (to avoid name collisions with existing .asl
15717source files.)  A future enhancement will allow the disassembler
15718to obtain the BIOS DSDT from the registry under Windows.
15719
15720Fixed a problem with the VendorShort and VendorLong resource
15721descriptors where an invalid AML sequence was created.
15722
15723Implemented a fix for BufferData term in the ASL parser.  It was
15724inadvertently defined twice, allowing invalid syntax to pass and
15725causing reduction conflicts.
15726
15727Fixed a problem where the Ones opcode could get converted to a
15728value of zero if "Ones" was used where a byte, word or dword value
15729was expected.  The 64-bit value is now truncated to the correct
15730size with the correct value.
15731
15732
15733
15734----------------------------------------
1573502 July 2002.  Summary of changes for this release.
15736
15737
157381) ACPI CA Core Subsystem Version 20020702:
15739
15740The Table Manager code has been restructured to add several new
15741features.  Tables that are not required by the core subsystem
15742(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
15743validated in any way and are returned from AcpiGetFirmwareTable if
15744requested.  The AcpiOsTableOverride interface is now called for
15745each table that is loaded by the subsystem in order to allow the
15746host to override any table it chooses.  Previously, only the DSDT
15747could be overridden.  Added one new files, tbrsdt.c and
15748tbgetall.c.
15749
15750Fixed a problem with the conversion of internal package objects to
15751external objects (when a package is returned from a control
15752method.)  The return buffer length was set to zero instead of the
15753proper length of the package object.
15754
15755Fixed a reported problem with the use of the RefOf and DeRefOf
15756operators when passing reference arguments to control methods.  A
15757new type of Reference object is used internally for references
15758produced by the RefOf operator.
15759
15760Added additional error messages in the Resource Manager to explain
15761AE_BAD_DATA errors when they occur during resource parsing.
15762
15763Split the AcpiEnableSubsystem into two primitives to enable a
15764finer granularity initialization sequence.  These two calls should
15765be called in this order: AcpiEnableSubsystem (flags),
15766AcpiInitializeObjects (flags).  The flags parameter remains the
15767same.
15768
15769
157702) Linux
15771
15772Updated the ACPI utilities module to understand the new style of
15773fully resolved package objects that are now returned from the core
15774subsystem.  This eliminates errors of the form:
15775
15776    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
15777    acpi_utils-0430 [145] acpi_evaluate_reference:
15778        Invalid element in package (not a device reference)
15779
15780The method evaluation utility uses the new buffer allocation
15781scheme instead of calling AcpiEvaluate Object twice.
15782
15783Added support for ECDT. This allows the use of the Embedded
15784
15785Controller before the namespace has been fully initialized, which
15786is necessary for ACPI 2.0 support, and for some laptops to
15787initialize properly. (Laptops using ECDT are still rare, so only
15788limited testing was performed of the added functionality.)
15789
15790Fixed memory leaks in the EC driver.
15791
15792Eliminated a brittle code structure in acpi_bus_init().
15793
15794Eliminated the acpi_evaluate() helper function in utils.c. It is
15795no longer needed since acpi_evaluate_object can optionally
15796allocate memory for the return object.
15797
15798Implemented fix for keyboard hang when getting battery readings on
15799some systems (Stephen White)
15800
15801PCI IRQ routing update (Dominik Brodowski)
15802
15803Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
15804support
15805
15806----------------------------------------
1580711 June 2002.  Summary of changes for this release.
15808
15809
158101) ACPI CA Core Subsystem Version 20020611:
15811
15812Fixed a reported problem where constants such as Zero and One
15813appearing within _PRT packages were not handled correctly within
15814the resource manager code.  Originally reported against the ASL
15815compiler because the code generator now optimizes integers to
15816their minimal AML representation (i.e. AML constants if possible.)
15817The _PRT code now handles all AML constant opcodes correctly
15818(Zero, One, Ones, Revision).
15819
15820Fixed a problem with the Concatenate operator in the AML
15821interpreter where a buffer result object was incorrectly marked as
15822not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
15823
15824All package sub-objects are now fully resolved before they are
15825returned from the external ACPI interfaces.  This means that name
15826strings are resolved to object handles, and constant operators
15827(Zero, One, Ones, Revision) are resolved to Integers.
15828
15829Implemented immediate resolution of the AML Constant opcodes
15830(Zero, One, Ones, Revision) to Integer objects upon detection
15831within the AML stream. This has simplified and reduced the
15832generated code size of the subsystem by eliminating about 10
15833switch statements for these constants (which previously were
15834contained in Reference objects.)  The complicating issues are that
15835the Zero opcode is used as a "placeholder" for unspecified
15836optional target operands and stores to constants are defined to be
15837no-ops.
15838
15839Code and Data Size: Current core subsystem library sizes are shown
15840below. These are the code and data sizes for the acpica.lib
15841produced by the Microsoft Visual C++ 6.0 compiler, and these
15842values do not include any ACPI driver or OSPM code.  The debug
15843version of the code includes the debug output trace mechanism and
15844has a larger code and data size.  Note that these values will vary
15845depending on the efficiency of the compiler and the compiler
15846options used during generation.
15847
15848  Previous Release
15849    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
15850    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
15851  Current Release:
15852    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
15853    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
15854
15855
158562) Linux
15857
15858
15859Added preliminary support for obtaining _TRA data for PCI root
15860bridges (Bjorn Helgaas).
15861
15862
158633) iASL Compiler Version X2046:
15864
15865Fixed a problem where the "_DDN" reserved name was defined to be a
15866control method with one argument.  There are no arguments, and
15867_DDN does not have to be a control method.
15868
15869Fixed a problem with the Linux version of the compiler where the
15870source lines printed with error messages were the wrong lines.
15871This turned out to be the "LF versus CR/LF" difference between
15872Windows and Unix.  This appears to be the longstanding issue
15873concerning listing output and error messages.
15874
15875Fixed a problem with the Linux version of compiler where opcode
15876names within error messages were wrong.  This was caused by a
15877slight difference in the output of the Flex tool on Linux versus
15878Windows.
15879
15880Fixed a problem with the Linux compiler where the hex output files
15881contained some garbage data caused by an internal buffer overrun.
15882
15883
15884----------------------------------------
1588517 May 2002.  Summary of changes for this release.
15886
15887
158881) ACPI CA Core Subsystem Version 20020517:
15889
15890Implemented a workaround to an BIOS bug discovered on the HP
15891OmniBook where the FADT revision number and the table size are
15892inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
15893behavior is to fallback to using only the ACPI 1.0 fields of the
15894FADT if the table is too small to be a ACPI 2.0 table as claimed
15895by the revision number.  Although this is a BIOS bug, this is a
15896case where the workaround is simple enough and with no side
15897effects, so it seemed prudent to add it.  A warning message is
15898issued, however.
15899
15900Implemented minimum size checks for the fixed-length ACPI tables -
15901- the FADT and FACS, as well as consistency checks between the
15902revision number and the table size.
15903
15904Fixed a reported problem in the table override support where the
15905new table pointer was incorrectly treated as a physical address
15906instead of a logical address.
15907
15908Eliminated the use of the AE_AML_ERROR exception and replaced it
15909with more descriptive codes.
15910
15911Fixed a problem where an exception would occur if an ASL Field was
15912defined with no named Field Units underneath it (used by some
15913index fields).
15914
15915Code and Data Size: Current core subsystem library sizes are shown
15916below.  These are the code and data sizes for the acpica.lib
15917produced by the Microsoft Visual C++ 6.0 compiler, and these
15918values do not include any ACPI driver or OSPM code.  The debug
15919version of the code includes the debug output trace mechanism and
15920has a larger code and data size.  Note that these values will vary
15921depending on the efficiency of the compiler and the compiler
15922options used during generation.
15923
15924  Previous Release
15925    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
15926    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
15927  Current Release:
15928    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
15929    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
15930
15931
15932
159332) Linux
15934
15935Much work done on ACPI init (MADT and PCI IRQ routing support).
15936(Paul D. and Dominik Brodowski)
15937
15938Fix PCI IRQ-related panic on boot (Sam Revitch)
15939
15940Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
15941
15942Fix "MHz" typo (Dominik Brodowski)
15943
15944Fix RTC year 2000 issue (Dominik Brodowski)
15945
15946Preclude multiple button proc entries (Eric Brunet)
15947
15948Moved arch-specific code out of include/platform/aclinux.h
15949
159503) iASL Compiler Version X2044:
15951
15952Implemented error checking for the string used in the EISAID macro
15953(Usually used in the definition of the _HID object.)  The code now
15954strictly enforces the PnP format - exactly 7 characters, 3
15955uppercase letters and 4 hex digits.
15956
15957If a raw string is used in the definition of the _HID object
15958(instead of the EISAID macro), the string must contain all
15959alphanumeric characters (e.g., "*PNP0011" is not allowed because
15960of the asterisk.)
15961
15962Implemented checking for invalid use of ACPI reserved names for
15963most of the name creation operators (Name, Device, Event, Mutex,
15964OperationRegion, PowerResource, Processor, and ThermalZone.)
15965Previously, this check was only performed for control methods.
15966
15967Implemented an additional check on the Name operator to emit an
15968error if a reserved name that must be implemented in ASL as a
15969control method is used.  We know that a reserved name must be a
15970method if it is defined with input arguments.
15971
15972The warning emitted when a namespace object reference is not found
15973during the cross reference phase has been changed into an error.
15974The "External" directive should be used for names defined in other
15975modules.
15976
15977
159784) Tools and Utilities
15979
15980The 16-bit tools (adump16 and aexec16) have been regenerated and
15981tested.
15982
15983Fixed a problem with the output of both acpidump and adump16 where
15984the indentation of closing parentheses and brackets was not
15985
15986aligned properly with the parent block.
15987
15988
15989----------------------------------------
1599003 May 2002.  Summary of changes for this release.
15991
15992
159931) ACPI CA Core Subsystem Version 20020503:
15994
15995Added support a new OSL interface that allows the host operating
15996
15997system software to override the DSDT found in the firmware -
15998AcpiOsTableOverride.  With this interface, the OSL can examine the
15999version of the firmware DSDT and replace it with a different one
16000if desired.
16001
16002Added new external interfaces for accessing ACPI registers from
16003device drivers and other system software - AcpiGetRegister and
16004AcpiSetRegister.  This was simply an externalization of the
16005existing AcpiHwBitRegister interfaces.
16006
16007Fixed a regression introduced in the previous build where the
16008ASL/AML CreateField operator always returned an error,
16009"destination must be a NS Node".
16010
16011Extended the maximum time (before failure) to successfully enable
16012ACPI mode to 3 seconds.
16013
16014Code and Data Size: Current core subsystem library sizes are shown
16015below.  These are the code and data sizes for the acpica.lib
16016produced by the Microsoft Visual C++ 6.0 compiler, and these
16017values do not include any ACPI driver or OSPM code.  The debug
16018version of the code includes the debug output trace mechanism and
16019has a larger code and data size.  Note that these values will vary
16020depending on the efficiency of the compiler and the compiler
16021options used during generation.
16022
16023  Previous Release
16024    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
16025    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
16026  Current Release:
16027    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
16028    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
16029
16030
160312) Linux
16032
16033Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
16034free. While 3 out of 4 of our in-house systems work fine, the last
16035one still hangs when testing the LAPIC timer.
16036
16037Renamed many files in 2.5 kernel release to omit "acpi_" from the
16038name.
16039
16040Added warning on boot for Presario 711FR.
16041
16042Sleep improvements (Pavel Machek)
16043
16044ACPI can now be built without CONFIG_PCI enabled.
16045
16046IA64: Fixed memory map functions (JI Lee)
16047
16048
160493) iASL Compiler Version X2043:
16050
16051Added support to allow the compiler to be integrated into the MS
16052VC++ development environment for one-button compilation of single
16053files or entire projects -- with error-to-source-line mapping.
16054
16055Implemented support for compile-time constant folding for the
16056Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
16057specification.  This allows the ASL writer to use expressions
16058instead of Integer/Buffer/String constants in terms that must
16059evaluate to constants at compile time and will also simplify the
16060emitted AML in any such sub-expressions that can be folded
16061(evaluated at compile-time.)  This increases the size of the
16062compiler significantly because a portion of the ACPI CA AML
16063interpreter is included within the compiler in order to pre-
16064evaluate constant expressions.
16065
16066
16067Fixed a problem with the "Unicode" ASL macro that caused the
16068compiler to fault.  (This macro is used in conjunction with the
16069_STR reserved name.)
16070
16071Implemented an AML opcode optimization to use the Zero, One, and
16072Ones opcodes where possible to further reduce the size of integer
16073constants and thus reduce the overall size of the generated AML
16074code.
16075
16076Implemented error checking for new reserved terms for ACPI version
160772.0A.
16078
16079Implemented the -qr option to display the current list of ACPI
16080reserved names known to the compiler.
16081
16082Implemented the -qc option to display the current list of ASL
16083operators that are allowed within constant expressions and can
16084therefore be folded at compile time if the operands are constants.
16085
16086
160874) Documentation
16088
16089Updated the Programmer's Reference for new interfaces, data types,
16090and memory allocation model options.
16091
16092Updated the iASL Compiler User Reference to apply new format and
16093add information about new features and options.
16094
16095----------------------------------------
1609619 April 2002.  Summary of changes for this release.
16097
160981) ACPI CA Core Subsystem Version 20020419:
16099
16100The source code base for the Core Subsystem has been completely
16101cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
16102versions.  The Lint option files used are included in the
16103/acpi/generate/lint directory.
16104
16105Implemented enhanced status/error checking across the entire
16106Hardware manager subsystem.  Any hardware errors (reported from
16107the OSL) are now bubbled up and will abort a running control
16108method.
16109
16110
16111Fixed a problem where the per-ACPI-table integer width (32 or 64)
16112was stored only with control method nodes, causing a fault when
16113non-control method code was executed during table loading.  The
16114solution implemented uses a global variable to indicate table
16115width across the entire ACPI subsystem.  Therefore, ACPI CA does
16116not support mixed integer widths across different ACPI tables
16117(DSDT, SSDT).
16118
16119Fixed a problem where NULL extended fields (X fields) in an ACPI
161202.0 ACPI FADT caused the table load to fail.  Although the
16121existing ACPI specification is a bit fuzzy on this topic, the new
16122behavior is to fall back on a ACPI 1.0 field if the corresponding
16123ACPI 2.0 X field is zero (even though the table revision indicates
16124a full ACPI 2.0 table.)  The ACPI specification will be updated to
16125clarify this issue.
16126
16127Fixed a problem with the SystemMemory operation region handler
16128where memory was always accessed byte-wise even if the AML-
16129specified access width was larger than a byte.  This caused
16130problems on systems with memory-mapped I/O.  Memory is now
16131accessed with the width specified.  On systems that do not support
16132non-aligned transfers, a check is made to guarantee proper address
16133alignment before proceeding in order to avoid an AML-caused
16134alignment fault within the kernel.
16135
16136
16137Fixed a problem with the ExtendedIrq resource where only one byte
16138of the 4-byte Irq field was extracted.
16139
16140Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
16141function was out of date and required a rewrite.
16142
16143Code and Data Size: Current core subsystem library sizes are shown
16144below.  These are the code and data sizes for the acpica.lib
16145produced by the Microsoft Visual C++ 6.0 compiler, and these
16146values do not include any ACPI driver or OSPM code.  The debug
16147version of the code includes the debug output trace mechanism and
16148has a larger code and data size.  Note that these values will vary
16149depending on the efficiency of the compiler and the compiler
16150options used during generation.
16151
16152  Previous Release
16153    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
16154    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
16155  Current Release:
16156    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
16157    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
16158
16159
161602) Linux
16161
16162PCI IRQ routing fixes (Dominik Brodowski)
16163
16164
161653) iASL Compiler Version X2042:
16166
16167Implemented an additional compile-time error check for a field
16168unit whose size + minimum access width would cause a run-time
16169access beyond the end-of-region.  Previously, only the field size
16170itself was checked.
16171
16172The Core subsystem and iASL compiler now share a common parse
16173object in preparation for compile-time evaluation of the type
161743/4/5 ASL operators.
16175
16176
16177----------------------------------------
16178Summary of changes for this release: 03_29_02
16179
161801) ACPI CA Core Subsystem Version 20020329:
16181
16182Implemented support for late evaluation of TermArg operands to
16183Buffer and Package objects.  This allows complex expressions to be
16184used in the declarations of these object types.
16185
16186Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
161871.0, if the field was larger than 32 bits, it was returned as a
16188buffer - otherwise it was returned as an integer.  In ACPI 2.0,
16189the field is returned as a buffer only if the field is larger than
1619064 bits.  The TableRevision is now considered when making this
16191conversion to avoid incompatibility with existing ASL code.
16192
16193Implemented logical addressing for AcpiOsGetRootPointer.  This
16194allows an RSDP with either a logical or physical address.  With
16195this support, the host OS can now override all ACPI tables with
16196one logical RSDP.  Includes implementation of  "typed" pointer
16197support to allow a common data type for both physical and logical
16198pointers internally.  This required a change to the
16199AcpiOsGetRootPointer interface.
16200
16201Implemented the use of ACPI 2.0 Generic Address Structures for all
16202GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
16203mapped I/O for these ACPI features.
16204
16205Initialization now ignores not only non-required tables (All
16206tables other than the FADT, FACS, DSDT, and SSDTs), but also does
16207not validate the table headers of unrecognized tables.
16208
16209Fixed a problem where a notify handler could only be
16210installed/removed on an object of type Device.  All "notify"
16211
16212objects are now supported -- Devices, Processor, Power, and
16213Thermal.
16214
16215Removed most verbosity from the ACPI_DB_INFO debug level.  Only
16216critical information is returned when this debug level is enabled.
16217
16218Code and Data Size: Current core subsystem library sizes are shown
16219below.  These are the code and data sizes for the acpica.lib
16220produced by the Microsoft Visual C++ 6.0 compiler, and these
16221values do not include any ACPI driver or OSPM code.  The debug
16222version of the code includes the debug output trace mechanism and
16223has a larger code and data size.  Note that these values will vary
16224depending on the efficiency of the compiler and the compiler
16225options used during generation.
16226
16227  Previous Release
16228    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
16229    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
16230  Current Release:
16231    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
16232    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
16233
16234
162352) Linux:
16236
16237The processor driver (acpi_processor.c) now fully supports ACPI
162382.0-based processor performance control (e.g. Intel(R)
16239SpeedStep(TM) technology) Note that older laptops that only have
16240the Intel "applet" interface are not supported through this.  The
16241'limit' and 'performance' interface (/proc) are fully functional.
16242[Note that basic policy for controlling performance state
16243transitions will be included in the next version of ospmd.]  The
16244idle handler was modified to more aggressively use C2, and PIIX4
16245errata handling underwent a complete overhaul (big thanks to
16246Dominik Brodowski).
16247
16248Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
16249based devices in the ACPI namespace are now dynamically bound
16250(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
16251This allows, among other things, ACPI to resolve bus numbers for
16252subordinate PCI bridges.
16253
16254Enhanced PCI IRQ routing to get the proper bus number for _PRT
16255entries defined underneath PCI bridges.
16256
16257Added IBM 600E to bad bios list due to invalid _ADR value for
16258PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
16259
16260In the process of adding full MADT support (e.g. IOAPIC) for IA32
16261(acpi.c, mpparse.c) -- stay tuned.
16262
16263Added back visual differentiation between fixed-feature and
16264control-method buttons in dmesg.  Buttons are also subtyped (e.g.
16265button/power/PWRF) to simplify button identification.
16266
16267We no longer use -Wno-unused when compiling debug. Please ignore
16268any "_THIS_MODULE defined but not used" messages.
16269
16270Can now shut down the system using "magic sysrq" key.
16271
16272
162733) iASL Compiler version 2041:
16274
16275Fixed a problem where conversion errors for hex/octal/decimal
16276constants were not reported.
16277
16278Implemented a fix for the General Register template Address field.
16279This field was 8 bits when it should be 64.
16280
16281Fixed a problem where errors/warnings were no longer being emitted
16282within the listing output file.
16283
16284Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
16285exactly 4 characters, alphanumeric only.
16286
16287
16288
16289
16290----------------------------------------
16291Summary of changes for this release: 03_08_02
16292
16293
162941) ACPI CA Core Subsystem Version 20020308:
16295
16296Fixed a problem with AML Fields where the use of the "AccessAny"
16297keyword could cause an interpreter error due to attempting to read
16298or write beyond the end of the parent Operation Region.
16299
16300Fixed a problem in the SystemMemory Operation Region handler where
16301an attempt was made to map memory beyond the end of the region.
16302This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
16303errors on some Linux systems.
16304
16305Fixed a problem where the interpreter/namespace "search to root"
16306algorithm was not functioning for some object types.  Relaxed the
16307internal restriction on the search to allow upsearches for all
16308external object types as well as most internal types.
16309
16310
163112) Linux:
16312
16313We now use safe_halt() macro versus individual calls to sti | hlt.
16314
16315Writing to the processor limit interface should now work. "echo 1"
16316will increase the limit, 2 will decrease, and 0 will reset to the
16317
16318default.
16319
16320
163213) ASL compiler:
16322
16323Fixed segfault on Linux version.
16324
16325
16326----------------------------------------
16327Summary of changes for this release: 02_25_02
16328
163291) ACPI CA Core Subsystem:
16330
16331
16332Fixed a problem where the GPE bit masks were not initialized
16333properly, causing erratic GPE behavior.
16334
16335Implemented limited support for multiple calling conventions.  The
16336code can be generated with either the VPL (variable parameter
16337list, or "C") convention, or the FPL (fixed parameter list, or
16338"Pascal") convention.  The core subsystem is about 3.4% smaller
16339when generated with FPL.
16340
16341
163422) Linux
16343
16344Re-add some /proc/acpi/event functionality that was lost during
16345the rewrite
16346
16347Resolved issue with /proc events for fixed-feature buttons showing
16348up as the system device.
16349
16350Fixed checks on C2/C3 latencies to be inclusive of maximum values.
16351
16352Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
16353
16354Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
16355
16356Fixed limit interface & usage to fix bugs with passive cooling
16357hysterisis.
16358
16359Restructured PRT support.
16360
16361
16362----------------------------------------
16363Summary of changes for this label: 02_14_02
16364
16365
163661) ACPI CA Core Subsystem:
16367
16368Implemented support in AcpiLoadTable to allow loading of FACS and
16369FADT tables.
16370
16371Suport for the now-obsolete interim 0.71 64-bit ACPI tables has
16372been removed.  All 64-bit platforms should be migrated to the ACPI
163732.0 tables.  The actbl71.h header has been removed from the source
16374tree.
16375
16376All C macros defined within the subsystem have been prefixed with
16377"ACPI_" to avoid collision with other system include files.
16378
16379Removed the return value for the two AcpiOsPrint interfaces, since
16380it is never used and causes lint warnings for ignoring the return
16381value.
16382
16383Added error checking to all internal mutex acquire and release
16384calls.  Although a failure from one of these interfaces is
16385probably a fatal system error, these checks will cause the
16386immediate abort of the currently executing method or interface.
16387
16388Fixed a problem where the AcpiSetCurrentResources interface could
16389fault.  This was a side effect of the deployment of the new memory
16390allocation model.
16391
16392Fixed a couple of problems with the Global Lock support introduced
16393in the last major build.  The "common" (1.0/2.0) internal FACS was
16394being overwritten with the FACS signature and clobbering the
16395Global Lock pointer.  Also, the actual firmware FACS was being
16396unmapped after construction of the "common" FACS, preventing
16397access to the actual Global Lock field within it.  The "common"
16398internal FACS is no longer installed as an actual ACPI table; it
16399is used simply as a global.
16400
16401Code and Data Size: Current core subsystem library sizes are shown
16402below.  These are the code and data sizes for the acpica.lib
16403produced by the Microsoft Visual C++ 6.0 compiler, and these
16404values do not include any ACPI driver or OSPM code.  The debug
16405version of the code includes the debug output trace mechanism and
16406has a larger code and data size.  Note that these values will vary
16407depending on the efficiency of the compiler and the compiler
16408options used during generation.
16409
16410  Previous Release (02_07_01)
16411    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
16412    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
16413  Current Release:
16414    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
16415    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
16416
16417
164182) Linux
16419
16420Updated Linux-specific code for core macro and OSL interface
16421changes described above.
16422
16423Improved /proc/acpi/event. It now can be opened only once and has
16424proper poll functionality.
16425
16426Fixed and restructured power management (acpi_bus).
16427
16428Only create /proc "view by type" when devices of that class exist.
16429
16430Fixed "charging/discharging" bug (and others) in acpi_battery.
16431
16432Improved thermal zone code.
16433
16434
164353) ASL Compiler, version X2039:
16436
16437
16438Implemented the new compiler restriction on ASL String hex/octal
16439escapes to non-null, ASCII values.  An error results if an invalid
16440value is used.  (This will require an ACPI 2.0 specification
16441change.)
16442
16443AML object labels that are output to the optional C and ASM source
16444are now prefixed with both the ACPI table signature and table ID
16445to help guarantee uniqueness within a large BIOS project.
16446
16447
16448----------------------------------------
16449Summary of changes for this label: 02_01_02
16450
164511) ACPI CA Core Subsystem:
16452
16453ACPI 2.0 support is complete in the entire Core Subsystem and the
16454ASL compiler. All new ACPI 2.0 operators are implemented and all
16455other changes for ACPI 2.0 support are complete.  With
16456simultaneous code and data optimizations throughout the subsystem,
16457ACPI 2.0 support has been implemented with almost no additional
16458cost in terms of code and data size.
16459
16460Implemented a new mechanism for allocation of return buffers.  If
16461the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
16462be allocated on behalf of the caller.  Consolidated all return
16463buffer validation and allocation to a common procedure.  Return
16464buffers will be allocated via the primary OSL allocation interface
16465since it appears that a separate pool is not needed by most users.
16466If a separate pool is required for these buffers, the caller can
16467still use the original mechanism and pre-allocate the buffer(s).
16468
16469Implemented support for string operands within the DerefOf
16470operator.
16471
16472Restructured the Hardware and Event managers to be table driven,
16473simplifying the source code and reducing the amount of generated
16474code.
16475
16476Split the common read/write low-level ACPI register bitfield
16477procedure into a separate read and write, simplifying the code
16478considerably.
16479
16480Obsoleted the AcpiOsCallocate OSL interface.  This interface was
16481used only a handful of times and didn't have enough critical mass
16482for a separate interface.  Replaced with a common calloc procedure
16483in the core.
16484
16485Fixed a reported problem with the GPE number mapping mechanism
16486that allows GPE1 numbers to be non-contiguous with GPE0.
16487Reorganized the GPE information and shrunk a large array that was
16488originally large enough to hold info for all possible GPEs (256)
16489to simply large enough to hold all GPEs up to the largest GPE
16490number on the machine.
16491
16492Fixed a reported problem with resource structure alignment on 64-
16493bit platforms.
16494
16495Changed the AcpiEnableEvent and AcpiDisableEvent external
16496interfaces to not require any flags for the common case of
16497enabling/disabling a GPE.
16498
16499Implemented support to allow a "Notify" on a Processor object.
16500
16501Most TBDs in comments within the source code have been resolved
16502and eliminated.
16503
16504
16505Fixed a problem in the interpreter where a standalone parent
16506prefix (^) was not handled correctly in the interpreter and
16507debugger.
16508
16509Removed obsolete and unnecessary GPE save/restore code.
16510
16511Implemented Field support in the ASL Load operator.  This allows a
16512table to be loaded from a named field, in addition to loading a
16513table directly from an Operation Region.
16514
16515Implemented timeout and handle support in the external Global Lock
16516interfaces.
16517
16518Fixed a problem in the AcpiDump utility where pathnames were no
16519longer being generated correctly during the dump of named objects.
16520
16521Modified the AML debugger to give a full display of if/while
16522predicates instead of just one AML opcode at a time.  (The
16523predicate can have several nested ASL statements.)  The old method
16524was confusing during single stepping.
16525
16526Code and Data Size: Current core subsystem library sizes are shown
16527below. These are the code and data sizes for the acpica.lib
16528produced by the Microsoft Visual C++ 6.0 compiler, and these
16529values do not include any ACPI driver or OSPM code.  The debug
16530version of the code includes the debug output trace mechanism and
16531has a larger code and data size.  Note that these values will vary
16532depending on the efficiency of the compiler and the compiler
16533options used during generation.
16534
16535  Previous Release (12_18_01)
16536     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
16537     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
16538   Current Release:
16539     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
16540     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
16541
165422) Linux
16543
16544 Implemented fix for PIIX reverse throttling errata (Processor
16545driver)
16546
16547Added new Limit interface (Processor and Thermal drivers)
16548
16549New thermal policy (Thermal driver)
16550
16551Many updates to /proc
16552
16553Battery "low" event support (Battery driver)
16554
16555Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
16556
16557IA32 - IA64 initialization unification, no longer experimental
16558
16559Menuconfig options redesigned
16560
165613) ASL Compiler, version X2037:
16562
16563Implemented several new output features to simplify integration of
16564AML code into  firmware: 1) Output the AML in C source code with
16565labels for each named ASL object.  The    original ASL source code
16566is interleaved as C comments. 2) Output the AML in ASM source code
16567with labels and interleaved ASL    source. 3) Output the AML in
16568raw hex table form, in either C or ASM.
16569
16570Implemented support for optional string parameters to the
16571LoadTable operator.
16572
16573Completed support for embedded escape sequences within string
16574literals.  The compiler now supports all single character escapes
16575as well as the Octal and Hex escapes.  Note: the insertion of a
16576null byte into a string literal (via the hex/octal escape) causes
16577the string to be immediately terminated.  A warning is issued.
16578
16579Fixed a problem where incorrect AML was generated for the case
16580where an ASL namepath consists of a single parent prefix (
16581
16582) with no trailing name segments.
16583
16584The compiler has been successfully generated with a 64-bit C
16585compiler.
16586
16587
16588
16589
16590----------------------------------------
16591Summary of changes for this label: 12_18_01
16592
165931) Linux
16594
16595Enhanced blacklist with reason and severity fields. Any table's
16596signature may now be used to identify a blacklisted system.
16597
16598Call _PIC control method to inform the firmware which interrupt
16599model the OS is using. Turn on any disabled link devices.
16600
16601Cleaned up busmgr /proc error handling (Andreas Dilger)
16602
16603 2) ACPI CA Core Subsystem:
16604
16605Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
16606while loop)
16607
16608Completed implementation of the ACPI 2.0 "Continue",
16609"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
16610operators.  All new ACPI 2.0 operators are now implemented in both
16611the ASL compiler and the AML interpreter.  The only remaining ACPI
166122.0 task is support for the String data type in the DerefOf
16613operator.  Fixed a problem with AcquireMutex where the status code
16614was lost if the caller had to actually wait for the mutex.
16615
16616Increased the maximum ASL Field size from 64K bits to 4G bits.
16617
16618Completed implementation of the external Global Lock interfaces --
16619AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
16620Handler parameters were added.
16621
16622Completed another pass at removing warnings and issues when
16623compiling with 64-bit compilers.  The code now compiles cleanly
16624with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
16625add and subtract (diff) macros have changed considerably.
16626
16627
16628Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1662964-bit platforms, 32-bits on all others.  This type is used
16630wherever memory allocation and/or the C sizeof() operator is used,
16631and affects the OSL memory allocation interfaces AcpiOsAllocate
16632and AcpiOsCallocate.
16633
16634Implemented sticky user breakpoints in the AML debugger.
16635
16636Code and Data Size: Current core subsystem library sizes are shown
16637below. These are the code and data sizes for the acpica.lib
16638produced by the Microsoft Visual C++ 6.0 compiler, and these
16639values do not include any ACPI driver or OSPM code.  The debug
16640version of the code includes the debug output trace mechanism and
16641has a larger code and data size. Note that these values will vary
16642depending on the efficiency of the compiler and the compiler
16643options used during generation.
16644
16645  Previous Release (12_05_01)
16646     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
16647     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
16648   Current Release:
16649     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
16650     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
16651
16652 3) ASL Compiler, version X2034:
16653
16654Now checks for (and generates an error if detected) the use of a
16655Break or Continue statement without an enclosing While statement.
16656
16657
16658Successfully generated the compiler with the Intel 64-bit C
16659compiler.
16660
16661 ----------------------------------------
16662Summary of changes for this label: 12_05_01
16663
16664 1) ACPI CA Core Subsystem:
16665
16666The ACPI 2.0 CopyObject operator is fully implemented.  This
16667operator creates a new copy of an object (and is also used to
16668bypass the "implicit conversion" mechanism of the Store operator.)
16669
16670The ACPI 2.0 semantics for the SizeOf operator are fully
16671implemented.  The change is that performing a SizeOf on a
16672reference object causes an automatic dereference of the object to
16673tha actual value before the size is evaluated. This behavior was
16674undefined in ACPI 1.0.
16675
16676The ACPI 2.0 semantics for the Extended IRQ resource descriptor
16677have been implemented.  The interrupt polarity and mode are now
16678independently set.
16679
16680Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
16681appearing in Package objects were not properly converted to
16682integers when the internal Package was converted to an external
16683object (via the AcpiEvaluateObject interface.)
16684
16685Fixed a problem with the namespace object deletion mechanism for
16686objects created by control methods.  There were two parts to this
16687problem: 1) Objects created during the initialization phase method
16688parse were not being deleted, and 2) The object owner ID mechanism
16689to track objects was broken.
16690
16691Fixed a problem where the use of the ASL Scope operator within a
16692control method would result in an invalid opcode exception.
16693
16694Fixed a problem introduced in the previous label where the buffer
16695length required for the _PRT structure was not being returned
16696correctly.
16697
16698Code and Data Size: Current core subsystem library sizes are shown
16699below. These are the code and data sizes for the acpica.lib
16700produced by the Microsoft Visual C++ 6.0 compiler, and these
16701values do not include any ACPI driver or OSPM code.  The debug
16702version of the code includes the debug output trace mechanism and
16703has a larger code and data size.  Note that these values will vary
16704depending on the efficiency of the compiler and the compiler
16705options used during generation.
16706
16707  Previous Release (11_20_01)
16708     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
16709     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
16710
16711  Current Release:
16712     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
16713     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
16714
16715 2) Linux:
16716
16717Updated all files to apply cleanly against 2.4.16.
16718
16719Added basic PCI Interrupt Routing Table (PRT) support for IA32
16720(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
16721version supports both static and dyanmic PRT entries, but dynamic
16722entries are treated as if they were static (not yet
16723reconfigurable).  Architecture- specific code to use this data is
16724absent on IA32 but should be available shortly.
16725
16726Changed the initialization sequence to start the ACPI interpreter
16727(acpi_init) prior to initialization of the PCI driver (pci_init)
16728in init/main.c.  This ordering is required to support PRT and
16729facilitate other (future) enhancement.  A side effect is that the
16730ACPI bus driver and certain device drivers can no longer be loaded
16731as modules.
16732
16733Modified the 'make menuconfig' options to allow PCI Interrupt
16734Routing support to be included without the ACPI Bus and other
16735device drivers.
16736
16737 3) ASL Compiler, version X2033:
16738
16739Fixed some issues with the use of the new CopyObject and
16740DataTableRegion operators.  Both are fully functional.
16741
16742 ----------------------------------------
16743Summary of changes for this label: 11_20_01
16744
16745 20 November 2001.  Summary of changes for this release.
16746
16747 1) ACPI CA Core Subsystem:
16748
16749Updated Index support to match ACPI 2.0 semantics.  Storing a
16750Integer, String, or Buffer to an Index of a Buffer will store only
16751the least-significant byte of the source to the Indexed buffer
16752byte.  Multiple writes are not performed.
16753
16754Fixed a problem where the access type used in an AccessAs ASL
16755operator was not recorded correctly into the field object.
16756
16757Fixed a problem where ASL Event objects were created in a
16758signalled state. Events are now created in an unsignalled state.
16759
16760The internal object cache is now purged after table loading and
16761initialization to reduce the use of dynamic kernel memory -- on
16762the assumption that object use is greatest during the parse phase
16763of the entire table (versus the run-time use of individual control
16764methods.)
16765
16766ACPI 2.0 variable-length packages are now fully operational.
16767
16768Code and Data Size: Code and Data optimizations have permitted new
16769feature development with an actual reduction in the library size.
16770Current core subsystem library sizes are shown below.  These are
16771the code and data sizes for the acpica.lib produced by the
16772Microsoft Visual C++ 6.0 compiler, and these values do not include
16773any ACPI driver or OSPM code.  The debug version of the code
16774includes the debug output trace mechanism and has a larger code
16775and data size.  Note that these values will vary depending on the
16776efficiency of the compiler and the compiler options used during
16777generation.
16778
16779  Previous Release (11_09_01):
16780     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
16781     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
16782
16783  Current Release:
16784     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
16785     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
16786
16787 2) Linux:
16788
16789Enhanced the ACPI boot-time initialization code to allow the use
16790of Local APIC tables for processor enumeration on IA-32, and to
16791pave the way for a fully MPS-free boot (on SMP systems) in the
16792near future.  This functionality replaces
16793arch/i386/kernel/acpitables.c, which was introduced in an earlier
167942.4.15-preX release.  To enable this feature you must add
16795"acpi_boot=on" to the kernel command line -- see the help entry
16796for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
16797the works...
16798
16799Restructured the configuration options to allow boot-time table
16800parsing support without inclusion of the ACPI Interpreter (and
16801other) code.
16802
16803NOTE: This release does not include fixes for the reported events,
16804power-down, and thermal passive cooling issues (coming soon).
16805
16806 3) ASL Compiler:
16807
16808Added additional typechecking for Fields within restricted access
16809Operation Regions.  All fields within EC and CMOS regions must be
16810declared with ByteAcc. All fields withing SMBus regions must be
16811declared with the BufferAcc access type.
16812
16813Fixed a problem where the listing file output of control methods
16814no longer interleaved the actual AML code with the ASL source
16815code.
16816
16817
16818
16819
16820----------------------------------------
16821Summary of changes for this label: 11_09_01
16822
168231) ACPI CA Core Subsystem:
16824
16825Implemented ACPI 2.0-defined support for writes to fields with a
16826Buffer, String, or Integer source operand that is smaller than the
16827target field. In these cases, the source operand is zero-extended
16828to fill the target field.
16829
16830Fixed a problem where a Field starting bit offset (within the
16831parent operation region) was calculated incorrectly if the
16832
16833alignment of the field differed from the access width.  This
16834affected CreateWordField, CreateDwordField, CreateQwordField, and
16835possibly other fields that use the "AccessAny" keyword.
16836
16837Fixed a problem introduced in the 11_02_01 release where indirect
16838stores through method arguments did not operate correctly.
16839
168402) Linux:
16841
16842Implemented boot-time ACPI table parsing support
16843(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
16844facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
16845legacy BIOS interfaces (e.g. MPS) for the configuration of system
16846processors, memory, and interrupts during setup_arch().  Note that
16847this patch does not include the required architecture-specific
16848changes required to apply this information -- subsequent patches
16849will be posted for both IA32 and IA64 to achieve this.
16850
16851Added low-level sleep support for IA32 platforms, courtesy of Pat
16852Mochel. This allows IA32 systems to transition to/from various
16853sleeping states (e.g. S1, S3), although the lack of a centralized
16854driver model and power-manageable drivers will prevent its
16855(successful) use on most systems.
16856
16857Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
16858submenu, unified IA32 and IA64 options, added new "Boot using ACPI
16859tables" option, etc.
16860
16861Increased the default timeout for the EC driver from 1ms to 10ms
16862(1000 cycles of 10us) to try to address AE_TIME errors during EC
16863transactions.
16864
16865 ----------------------------------------
16866Summary of changes for this label: 11_02_01
16867
168681) ACPI CA Core Subsystem:
16869
16870ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
16871(QWordAcc keyword). All ACPI 2.0 64-bit support is now
16872implemented.
16873
16874OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
16875changes to support ACPI 2.0 Qword field access.  Read/Write
16876PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
16877accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
16878the value parameter for the address space handler interface is now
16879an ACPI_INTEGER.  OSL implementations of these interfaces must now
16880handle the case where the Width parameter is 64.
16881
16882Index Fields: Fixed a problem where unaligned bit assembly and
16883disassembly for IndexFields was not supported correctly.
16884
16885Index and Bank Fields:  Nested Index and Bank Fields are now
16886supported. During field access, a check is performed to ensure
16887that the value written to an Index or Bank register is not out of
16888the range of the register.  The Index (or Bank) register is
16889written before each access to the field data. Future support will
16890include allowing individual IndexFields to be wider than the
16891DataRegister width.
16892
16893Fields: Fixed a problem where the AML interpreter was incorrectly
16894attempting to write beyond the end of a Field/OpRegion.  This was
16895a boundary case that occurred when a DWORD field was written to a
16896BYTE access OpRegion, forcing multiple writes and causing the
16897interpreter to write one datum too many.
16898
16899Fields: Fixed a problem with Field/OpRegion access where the
16900starting bit address of a field was incorrectly calculated if the
16901current access type was wider than a byte (WordAcc, DwordAcc, or
16902QwordAcc).
16903
16904Fields: Fixed a problem where forward references to individual
16905FieldUnits (individual Field names within a Field definition) were
16906not resolved during the AML table load.
16907
16908Fields: Fixed a problem where forward references from a Field
16909definition to the parent Operation Region definition were not
16910resolved during the AML table load.
16911
16912Fields: Duplicate FieldUnit names within a scope are now detected
16913during AML table load.
16914
16915Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
16916returned an incorrect name for the root node.
16917
16918Code and Data Size: Code and Data optimizations have permitted new
16919feature development with an actual reduction in the library size.
16920Current core subsystem library sizes are shown below.  These are
16921the code and data sizes for the acpica.lib produced by the
16922Microsoft Visual C++ 6.0 compiler, and these values do not include
16923any ACPI driver or OSPM code.  The debug version of the code
16924includes the debug output trace mechanism and has a larger code
16925and data size.  Note that these values will vary depending on the
16926efficiency of the compiler and the compiler options used during
16927generation.
16928
16929  Previous Release (10_18_01):
16930     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
16931     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
16932
16933  Current Release:
16934     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
16935     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
16936
16937 2) Linux:
16938
16939Improved /proc processor output (Pavel Machek) Re-added
16940MODULE_LICENSE("GPL") to all modules.
16941
16942 3) ASL Compiler version X2030:
16943
16944Duplicate FieldUnit names within a scope are now detected and
16945flagged as errors.
16946
16947 4) Documentation:
16948
16949Programmer Reference updated to reflect OSL and address space
16950handler interface changes described above.
16951
16952----------------------------------------
16953Summary of changes for this label: 10_18_01
16954
16955ACPI CA Core Subsystem:
16956
16957Fixed a problem with the internal object reference count mechanism
16958that occasionally caused premature object deletion. This resolves
16959all of the outstanding problem reports where an object is deleted
16960in the middle of an interpreter evaluation.  Although this problem
16961only showed up in rather obscure cases, the solution to the
16962problem involved an adjustment of all reference counts involving
16963objects attached to namespace nodes.
16964
16965Fixed a problem with Field support in the interpreter where
16966writing to an aligned field whose length is an exact multiple (2
16967or greater) of the field access granularity would cause an attempt
16968to write beyond the end of the field.
16969
16970The top level AML opcode execution functions within the
16971interpreter have been renamed with a more meaningful and
16972consistent naming convention.  The modules exmonad.c and
16973exdyadic.c were eliminated.  New modules are exoparg1.c,
16974exoparg2.c, exoparg3.c, and exoparg6.c.
16975
16976Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
16977
16978Fixed a problem where the AML debugger was causing some internal
16979objects to not be deleted during subsystem termination.
16980
16981Fixed a problem with the external AcpiEvaluateObject interface
16982where the subsystem would fault if the named object to be
16983evaluated refered to a constant such as Zero, Ones, etc.
16984
16985Fixed a problem with IndexFields and BankFields where the
16986subsystem would fault if the index, data, or bank registers were
16987not defined in the same scope as the field itself.
16988
16989Added printf format string checking for compilers that support
16990this feature.  Corrected more than 50 instances of issues with
16991format specifiers within invocations of ACPI_DEBUG_PRINT
16992throughout the core subsystem code.
16993
16994The ASL "Revision" operator now returns the ACPI support level
16995implemented in the core - the value "2" since the ACPI 2.0 support
16996is more than 50% implemented.
16997
16998Enhanced the output of the AML debugger "dump namespace" command
16999to output in a more human-readable form.
17000
17001Current core subsystem library code sizes are shown below.  These
17002
17003are the code and data sizes for the acpica.lib produced by the
17004Microsoft Visual C++ 6.0 compiler, and these values do not include
17005any ACPI driver or OSPM code.  The debug version of the code
17006includes the full debug trace mechanism -- leading to a much
17007
17008larger code and data size.  Note that these values will vary
17009depending on the efficiency of the compiler and the compiler
17010options used during generation.
17011
17012     Previous Label (09_20_01):
17013     Non-Debug Version:    65K Code,     5K Data,     70K Total
17014     Debug Version:       138K Code,    58K Data,    196K Total
17015
17016     This Label:
17017
17018     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
17019     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
17020
17021Linux:
17022
17023Implemented a "Bad BIOS Blacklist" to track machines that have
17024known ASL/AML problems.
17025
17026Enhanced the /proc interface for the thermal zone driver and added
17027support for _HOT (the critical suspend trip point).  The 'info'
17028file now includes threshold/policy information, and allows setting
17029of _SCP (cooling preference) and _TZP (polling frequency) values
17030to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
17031frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
17032preference to the passive/quiet mode (if supported by the ASL).
17033
17034Implemented a workaround for a gcc bug that resuted in an OOPs
17035when loading the control method battery driver.
17036
17037 ----------------------------------------
17038Summary of changes for this label: 09_20_01
17039
17040 ACPI CA Core Subsystem:
17041
17042The AcpiEnableEvent and AcpiDisableEvent interfaces have been
17043modified to allow individual GPE levels to be flagged as wake-
17044enabled (i.e., these GPEs are to remain enabled when the platform
17045sleeps.)
17046
17047The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
17048support wake-enabled GPEs.  This means that upon entering the
17049sleep state, all GPEs that are not wake-enabled are disabled.
17050When leaving the sleep state, these GPEs are reenabled.
17051
17052A local double-precision divide/modulo module has been added to
17053enhance portability to OS kernels where a 64-bit math library is
17054not available.  The new module is "utmath.c".
17055
17056Several optimizations have been made to reduce the use of CPU
17057stack.  Originally over 2K, the maximum stack usage is now below
170582K at 1860  bytes (1.82k)
17059
17060Fixed a problem with the AcpiGetFirmwareTable interface where the
17061root table pointer was not mapped into a logical address properly.
17062
17063Fixed a problem where a NULL pointer was being dereferenced in the
17064interpreter code for the ASL Notify operator.
17065
17066Fixed a problem where the use of the ASL Revision operator
17067returned an error. This operator now returns the current version
17068of the ACPI CA core subsystem.
17069
17070Fixed a problem where objects passed as control method parameters
17071to AcpiEvaluateObject were always deleted at method termination.
17072However, these objects may end up being stored into the namespace
17073by the called method.  The object reference count mechanism was
17074applied to these objects instead of a force delete.
17075
17076Fixed a problem where static strings or buffers (contained in the
17077AML code) that are declared as package elements within the ASL
17078code could cause a fault because the interpreter would attempt to
17079delete them.  These objects are now marked with the "static
17080object" flag to prevent any attempt to delete them.
17081
17082Implemented an interpreter optimization to use operands directly
17083from the state object instead of extracting the operands to local
17084variables.  This reduces stack use and code size, and improves
17085performance.
17086
17087The module exxface.c was eliminated as it was an unnecessary extra
17088layer of code.
17089
17090Current core subsystem library code sizes are shown below.  These
17091are the code and data sizes for the acpica.lib produced by the
17092Microsoft Visual C++ 6.0 compiler, and these values do not include
17093any ACPI driver or OSPM code.  The debug version of the code
17094includes the full debug trace mechanism -- leading to a much
17095larger code and data size.  Note that these values will vary
17096depending on the efficiency of the compiler and the compiler
17097options used during generation.
17098
17099  Non-Debug Version:  65K Code,   5K Data,   70K Total
17100(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
17101Total  (Previously 195K)
17102
17103Linux:
17104
17105Support for ACPI 2.0 64-bit integers has been added.   All ACPI
17106Integer objects are now 64 bits wide
17107
17108All Acpi data types and structures are now in lower case.  Only
17109Acpi macros are upper case for differentiation.
17110
17111 Documentation:
17112
17113Changes to the external interfaces as described above.
17114
17115 ----------------------------------------
17116Summary of changes for this label: 08_31_01
17117
17118 ACPI CA Core Subsystem:
17119
17120A bug with interpreter implementation of the ASL Divide operator
17121was found and fixed.  The implicit function return value (not the
17122explicit store operands) was returning the remainder instead of
17123the quotient.  This was a longstanding bug and it fixes several
17124known outstanding issues on various platforms.
17125
17126The ACPI_DEBUG_PRINT and function trace entry/exit macros have
17127been further optimized for size.  There are 700 invocations of the
17128DEBUG_PRINT macro alone, so each optimization reduces the size of
17129the debug version of the subsystem significantly.
17130
17131A stack trace mechanism has been implemented.  The maximum stack
17132usage is about 2K on 32-bit platforms.  The debugger command "stat
17133stack" will display the current maximum stack usage.
17134
17135All public symbols and global variables within the subsystem are
17136now prefixed with the string "Acpi".  This keeps all of the
17137symbols grouped together in a kernel map, and avoids conflicts
17138with other kernel subsystems.
17139
17140Most of the internal fixed lookup tables have been moved into the
17141code segment via the const operator.
17142
17143Several enhancements have been made to the interpreter to both
17144reduce the code size and improve performance.
17145
17146Current core subsystem library code sizes are shown below.  These
17147are the code and data sizes for the acpica.lib produced by the
17148Microsoft Visual C++ 6.0 compiler, and these values do not include
17149any ACPI driver or OSPM code.  The debug version of the code
17150includes the full debug trace mechanism which contains over 700
17151invocations of the DEBUG_PRINT macro, 500 function entry macro
17152invocations, and over 900 function exit macro invocations --
17153leading to a much larger code and data size.  Note that these
17154values will vary depending on the efficiency of the compiler and
17155the compiler options used during generation.
17156
17157        Non-Debug Version:  64K Code,   5K Data,   69K Total
17158Debug Version:     137K Code,  58K Data,  195K Total
17159
17160 Linux:
17161
17162Implemented wbinvd() macro, pending a kernel-wide definition.
17163
17164Fixed /proc/acpi/event to handle poll() and short reads.
17165
17166 ASL Compiler, version X2026:
17167
17168Fixed a problem introduced in the previous label where the AML
17169
17170code emitted for package objects produced packages with zero
17171length.
17172
17173 ----------------------------------------
17174Summary of changes for this label: 08_16_01
17175
17176ACPI CA Core Subsystem:
17177
17178The following ACPI 2.0 ASL operators have been implemented in the
17179AML interpreter (These are already supported by the Intel ASL
17180compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
17181ToBuffer.  Support for 64-bit AML constants is implemented in the
17182AML parser, debugger, and disassembler.
17183
17184The internal memory tracking mechanism (leak detection code) has
17185been upgraded to reduce the memory overhead (a separate tracking
17186block is no longer allocated for each memory allocation), and now
17187supports all of the internal object caches.
17188
17189The data structures and code for the internal object caches have
17190been coelesced and optimized so that there is a single cache and
17191memory list data structure and a single group of functions that
17192implement generic cache management.  This has reduced the code
17193size in both the debug and release versions of the subsystem.
17194
17195The DEBUG_PRINT macro(s) have been optimized for size and replaced
17196by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
17197different, because it generates a single call to an internal
17198function.  This results in a savings of about 90 bytes per
17199invocation, resulting in an overall code and data savings of about
1720016% in the debug version of the subsystem.
17201
17202 Linux:
17203
17204Fixed C3 disk corruption problems and re-enabled C3 on supporting
17205machines.
17206
17207Integrated low-level sleep code by Patrick Mochel.
17208
17209Further tweaked source code Linuxization.
17210
17211Other minor fixes.
17212
17213 ASL Compiler:
17214
17215Support for ACPI 2.0 variable length packages is fixed/completed.
17216
17217Fixed a problem where the optional length parameter for the ACPI
172182.0 ToString operator.
17219
17220Fixed multiple extraneous error messages when a syntax error is
17221detected within the declaration line of a control method.
17222
17223 ----------------------------------------
17224Summary of changes for this label: 07_17_01
17225
17226ACPI CA Core Subsystem:
17227
17228Added a new interface named AcpiGetFirmwareTable to obtain any
17229ACPI table via the ACPI signature.  The interface can be called at
17230any time during kernel initialization, even before the kernel
17231virtual memory manager is initialized and paging is enabled.  This
17232allows kernel subsystems to obtain ACPI tables very early, even
17233before the ACPI CA subsystem is initialized.
17234
17235Fixed a problem where Fields defined with the AnyAcc attribute
17236could be resolved to the incorrect address under the following
17237conditions: 1) the field width is larger than 8 bits and 2) the
17238parent operation region is not defined on a DWORD boundary.
17239
17240Fixed a problem where the interpreter is not being locked during
17241namespace initialization (during execution of the _INI control
17242methods), causing an error when an attempt is made to release it
17243later.
17244
17245ACPI 2.0 support in the AML Interpreter has begun and will be
17246ongoing throughout the rest of this year.  In this label, The Mod
17247operator is implemented.
17248
17249Added a new data type to contain full PCI addresses named
17250ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
17251and Function values.
17252
17253 Linux:
17254
17255Enhanced the Linux version of the source code to change most
17256capitalized ACPI type names to lowercase. For example, all
17257instances of ACPI_STATUS are changed to acpi_status.  This will
17258result in a large diff, but the change is strictly cosmetic and
17259aligns the CA code closer to the Linux coding standard.
17260
17261OSL Interfaces:
17262
17263The interfaces to the PCI configuration space have been changed to
17264add the PCI Segment number and to split the single 32-bit combined
17265DeviceFunction field into two 16-bit fields.  This was
17266accomplished by moving the four values that define an address in
17267PCI configuration space (segment, bus, device, and function) to
17268the new ACPI_PCI_ID structure.
17269
17270The changes to the PCI configuration space interfaces led to a
17271reexamination of the complete set of address space access
17272interfaces for PCI, I/O, and Memory.  The previously existing 18
17273interfaces have proven difficult to maintain (any small change
17274must be propagated across at least 6 interfaces) and do not easily
17275allow for future expansion to 64 bits if necessary.  Also, on some
17276systems, it would not be appropriate to demultiplex the access
17277width (8, 16, 32,or 64) before calling the OSL if the
17278corresponding native OS interfaces contain a similar access width
17279parameter.  For these reasons, the 18 address space interfaces
17280have been replaced by these 6 new ones:
17281
17282AcpiOsReadPciConfiguration
17283AcpiOsWritePciConfiguration
17284AcpiOsReadMemory
17285AcpiOsWriteMemory
17286AcpiOsReadPort
17287AcpiOsWritePort
17288
17289Added a new interface named AcpiOsGetRootPointer to allow the OSL
17290to perform the platform and/or OS-specific actions necessary to
17291obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
17292interface will simply call down to the CA core to perform the low-
17293memory search for the table.  On IA-64, the RSDP is obtained from
17294EFI.  Migrating this interface to the OSL allows the CA core to
17295
17296remain OS and platform independent.
17297
17298Added a new interface named AcpiOsSignal to provide a generic
17299"function code and pointer" interface for various miscellaneous
17300signals and notifications that must be made to the host OS.   The
17301first such signals are intended to support the ASL Fatal and
17302Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
17303interface has been obsoleted.
17304
17305The definition of the AcpiFormatException interface has been
17306changed to simplify its use.  The caller no longer must supply a
17307buffer to the call; A pointer to a const string is now returned
17308directly.  This allows the call to be easily used in printf
17309statements, etc. since the caller does not have to manage a local
17310buffer.
17311
17312
17313 ASL Compiler, Version X2025:
17314
17315The ACPI 2.0 Switch/Case/Default operators have been implemented
17316and are fully functional.  They will work with all ACPI 1.0
17317interpreters, since the operators are simply translated to If/Else
17318pairs.
17319
17320The ACPI 2.0 ElseIf operator is implemented and will also work
17321with 1.0 interpreters, for the same reason.
17322
17323Implemented support for ACPI 2.0 variable-length packages.  These
17324packages have a separate opcode, and their size is determined by
17325the interpreter at run-time.
17326
17327Documentation The ACPI CA Programmer Reference has been updated to
17328reflect the new interfaces and changes to existing interfaces.
17329
17330 ------------------------------------------
17331Summary of changes for this label: 06_15_01
17332
17333 ACPI CA Core Subsystem:
17334
17335Fixed a problem where a DWORD-accessed field within a Buffer
17336object would get its byte address inadvertently rounded down to
17337the nearest DWORD.  Buffers are always Byte-accessible.
17338
17339 ASL Compiler, version X2024:
17340
17341Fixed a problem where the Switch() operator would either fault or
17342hang the compiler.  Note however, that the AML code for this ACPI
173432.0 operator is not yet implemented.
17344
17345Compiler uses the new AcpiOsGetTimer interface to obtain compile
17346timings.
17347
17348Implementation of the CreateField operator automatically converts
17349a reference to a named field within a resource descriptor from a
17350byte offset to a bit offset if required.
17351
17352Added some missing named fields from the resource descriptor
17353support. These are the names that are automatically created by the
17354compiler to reference fields within a descriptor.  They are only
17355valid at compile time and are not passed through to the AML
17356interpreter.
17357
17358Resource descriptor named fields are now typed as Integers and
17359subject to compile-time typechecking when used in expressions.
17360
17361 ------------------------------------------
17362Summary of changes for this label: 05_18_01
17363
17364 ACPI CA Core Subsystem:
17365
17366Fixed a couple of problems in the Field support code where bits
17367from adjacent fields could be returned along with the proper field
17368bits. Restructured the field support code to improve performance,
17369readability and maintainability.
17370
17371New DEBUG_PRINTP macro automatically inserts the procedure name
17372into the output, saving hundreds of copies of procedure name
17373strings within the source, shrinking the memory footprint of the
17374debug version of the core subsystem.
17375
17376 Source Code Structure:
17377
17378The source code directory tree was restructured to reflect the
17379current organization of the component architecture.  Some files
17380and directories have been moved and/or renamed.
17381
17382 Linux:
17383
17384Fixed leaking kacpidpc processes.
17385
17386Fixed queueing event data even when /proc/acpi/event is not
17387opened.
17388
17389 ASL Compiler, version X2020:
17390
17391Memory allocation performance enhancement - over 24X compile time
17392improvement on large ASL files.  Parse nodes and namestring
17393buffers are now allocated from a large internal compiler buffer.
17394
17395The temporary .SRC file is deleted unless the "-s" option is
17396specified
17397
17398The "-d" debug output option now sends all output to the .DBG file
17399instead of the console.
17400
17401"External" second parameter is now optional
17402
17403"ElseIf" syntax now properly allows the predicate
17404
17405Last operand to "Load" now recognized as a Target operand
17406
17407Debug object can now be used anywhere as a normal object.
17408
17409ResourceTemplate now returns an object of type BUFFER
17410
17411EISAID now returns an object of type INTEGER
17412
17413"Index" now works with a STRING operand
17414
17415"LoadTable" now accepts optional parameters
17416
17417"ToString" length parameter is now optional
17418
17419"Interrupt (ResourceType," parse error fixed.
17420
17421"Register" with a user-defined region space parse error fixed
17422
17423Escaped backslash at the end of a string ("\\") scan/parse error
17424fixed
17425
17426"Revision" is now an object of type INTEGER.
17427
17428
17429
17430------------------------------------------
17431Summary of changes for this label: 05_02_01
17432
17433Linux:
17434
17435/proc/acpi/event now blocks properly.
17436
17437Removed /proc/sys/acpi. You can still dump your DSDT from
17438/proc/acpi/dsdt.
17439
17440 ACPI CA Core Subsystem:
17441
17442Fixed a problem introduced in the previous label where some of the
17443"small" resource descriptor types were not recognized.
17444
17445Improved error messages for the case where an ASL Field is outside
17446the range of the parent operation region.
17447
17448 ASL Compiler, version X2018:
17449
17450
17451Added error detection for ASL Fields that extend beyond the length
17452of the parent operation region (only if the length of the region
17453is known at compile time.)  This includes fields that have a
17454minimum access width that is smaller than the parent region, and
17455individual field units that are partially or entirely beyond the
17456extent of the parent.
17457
17458
17459
17460------------------------------------------
17461Summary of changes for this label: 04_27_01
17462
17463 ACPI CA Core Subsystem:
17464
17465Fixed a problem where the namespace mutex could be released at the
17466wrong time during execution of AcpiRemoveAddressSpaceHandler.
17467
17468Added optional thread ID output for debug traces, to simplify
17469debugging of multiple threads.  Added context switch notification
17470when the debug code realizes that a different thread is now
17471executing ACPI code.
17472
17473Some additional external data types have been prefixed with the
17474string "ACPI_" for consistency.  This may effect existing code.
17475The data types affected are the external callback typedefs - e.g.,
17476
17477WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
17478
17479 Linux:
17480
17481Fixed an issue with the OSL semaphore implementation where a
17482thread was waking up with an error from receiving a SIGCHLD
17483signal.
17484
17485Linux version of ACPI CA now uses the system C library for string
17486manipulation routines instead of a local implementation.
17487
17488Cleaned up comments and removed TBDs.
17489
17490 ASL Compiler, version X2017:
17491
17492Enhanced error detection and reporting for all file I/O
17493operations.
17494
17495 Documentation:
17496
17497Programmer Reference updated to version 1.06.
17498
17499
17500
17501------------------------------------------
17502Summary of changes for this label: 04_13_01
17503
17504 ACPI CA Core Subsystem:
17505
17506Restructured support for BufferFields and RegionFields.
17507BankFields support is now fully operational.  All known 32-bit
17508limitations on field sizes have been removed.  Both BufferFields
17509and (Operation) RegionFields are now supported by the same field
17510management code.
17511
17512Resource support now supports QWORD address and IO resources. The
1751316/32/64 bit address structures and the Extended IRQ structure
17514have been changed to properly handle Source Resource strings.
17515
17516A ThreadId of -1 is now used to indicate a "mutex not acquired"
17517condition internally and must never be returned by AcpiOsThreadId.
17518This reserved value was changed from 0 since Unix systems allow a
17519thread ID of 0.
17520
17521Linux:
17522
17523Driver code reorganized to enhance portability
17524
17525Added a kernel configuration option to control ACPI_DEBUG
17526
17527Fixed the EC driver to honor _GLK.
17528
17529ASL Compiler, version X2016:
17530
17531Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
17532address space was set to 0, not 0x7f as it should be.
17533
17534 ------------------------------------------
17535Summary of changes for this label: 03_13_01
17536
17537 ACPI CA Core Subsystem:
17538
17539During ACPI initialization, the _SB_._INI method is now run if
17540present.
17541
17542Notify handler fix - notifies are deferred until the parent method
17543completes execution.  This fixes the "mutex already acquired"
17544issue seen occasionally.
17545
17546Part of the "implicit conversion" rules in ACPI 2.0 have been
17547found to cause compatibility problems with existing ASL/AML.  The
17548convert "result-to-target-type" implementation has been removed
17549for stores to method Args and Locals.  Source operand conversion
17550is still fully implemented.  Possible changes to ACPI 2.0
17551specification pending.
17552
17553Fix to AcpiRsCalculatePciRoutingTableLength to return correct
17554length.
17555
17556Fix for compiler warnings for 64-bit compiles.
17557
17558 Linux:
17559
17560/proc output aligned for easier parsing.
17561
17562Release-version compile problem fixed.
17563
17564New kernel configuration options documented in Configure.help.
17565
17566IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
17567context" message.
17568
17569 OSPM:
17570
17571Power resource driver integrated with bus manager.
17572
17573Fixed kernel fault during active cooling for thermal zones.
17574
17575Source Code:
17576
17577The source code tree has been restructured.
17578
17579
17580
17581------------------------------------------
17582Summary of changes for this label: 03_02_01
17583
17584 Linux OS Services Layer (OSL):
17585
17586Major revision of all Linux-specific code.
17587
17588Modularized all ACPI-specific drivers.
17589
17590Added new thermal zone and power resource drivers.
17591
17592Revamped /proc interface (new functionality is under /proc/acpi).
17593
17594New kernel configuration options.
17595
17596 Linux known issues:
17597
17598New kernel configuration options not documented in Configure.help
17599yet.
17600
17601
17602Module dependencies not currently implemented. If used, they
17603should be loaded in this order: busmgr, power, ec, system,
17604processor, battery, ac_adapter, button, thermal.
17605
17606Modules will not load if CONFIG_MODVERSION is set.
17607
17608IBM 600E - entering S5 may reboot instead of shutting down.
17609
17610IBM 600E - Sleep button may generate "Invalid <NULL> context"
17611message.
17612
17613Some systems may fail with "execution mutex already acquired"
17614message.
17615
17616 ACPI CA Core Subsystem:
17617
17618Added a new OSL Interface, AcpiOsGetThreadId.  This was required
17619for the  deadlock detection code. Defined to return a non-zero, 32-
17620bit thread ID for the currently executing thread.  May be a non-
17621zero constant integer on single-thread systems.
17622
17623Implemented deadlock detection for internal subsystem mutexes.  We
17624may add conditional compilation for this code (debug only) later.
17625
17626ASL/AML Mutex object semantics are now fully supported.  This
17627includes multiple acquires/releases by owner and support for the
17628
17629Mutex SyncLevel parameter.
17630
17631A new "Force Release" mechanism automatically frees all ASL
17632Mutexes that have been acquired but not released when a thread
17633exits the interpreter.  This forces conformance to the ACPI spec
17634("All mutexes must be released when an invocation exits") and
17635prevents deadlocked ASL threads.  This mechanism can be expanded
17636(later) to monitor other resource acquisitions if OEM ASL code
17637continues to misbehave (which it will).
17638
17639Several new ACPI exception codes have been added for the Mutex
17640support.
17641
17642Recursive method calls are now allowed and supported (the ACPI
17643spec does in fact allow recursive method calls.)  The number of
17644recursive calls is subject to the restrictions imposed by the
17645SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
17646parameter.
17647
17648Implemented support for the SyncLevel parameter for control
17649methods (ACPI 2.0 feature)
17650
17651Fixed a deadlock problem when multiple threads attempted to use
17652the interpreter.
17653
17654Fixed a problem where the string length of a String package
17655element was not always set in a package returned from
17656AcpiEvaluateObject.
17657
17658Fixed a problem where the length of a String package element was
17659not always included in the length of the overall package returned
17660from AcpiEvaluateObject.
17661
17662Added external interfaces (Acpi*) to the ACPI debug memory
17663manager.  This manager keeps a list of all outstanding
17664allocations, and can therefore detect memory leaks and attempts to
17665free memory blocks more than once. Useful for code such as the
17666power manager, etc.  May not be appropriate for device drivers.
17667Performance with the debug code enabled is slow.
17668
17669The ACPI Global Lock is now an optional hardware element.
17670
17671 ASL Compiler Version X2015:
17672
17673Integrated changes to allow the compiler to be generated on
17674multiple platforms.
17675
17676Linux makefile added to generate the compiler on Linux
17677
17678 Source Code:
17679
17680All platform-specific headers have been moved to their own
17681subdirectory, Include/Platform.
17682
17683New source file added, Interpreter/ammutex.c
17684
17685New header file, Include/acstruct.h
17686
17687 Documentation:
17688
17689The programmer reference has been updated for the following new
17690interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
17691
17692 ------------------------------------------
17693Summary of changes for this label: 02_08_01
17694
17695Core ACPI CA Subsystem: Fixed a problem where an error was
17696incorrectly returned if the return resource buffer was larger than
17697the actual data (in the resource interfaces).
17698
17699References to named objects within packages are resolved to the
17700
17701full pathname string before packages are returned directly (via
17702the AcpiEvaluateObject interface) or indirectly via the resource
17703interfaces.
17704
17705Linux OS Services Layer (OSL):
17706
17707Improved /proc battery interface.
17708
17709
17710Added C-state debugging output and other miscellaneous fixes.
17711
17712ASL Compiler Version X2014:
17713
17714All defined method arguments can now be used as local variables,
17715including the ones that are not actually passed in as parameters.
17716The compiler tracks initialization of the arguments and issues an
17717exception if they are used without prior assignment (just like
17718locals).
17719
17720The -o option now specifies a filename prefix that is used for all
17721output files, including the AML output file.  Otherwise, the
17722default behavior is as follows:  1) the AML goes to the file
17723specified in the DSDT.  2) all other output files use the input
17724source filename as the base.
17725
17726 ------------------------------------------
17727Summary of changes for this label: 01_25_01
17728
17729Core ACPI CA Subsystem: Restructured the implementation of object
17730store support within the  interpreter.  This includes support for
17731the Store operator as well  as any ASL operators that include a
17732target operand.
17733
17734Partially implemented support for Implicit Result-to-Target
17735conversion. This is when a result object is converted on the fly
17736to the type of  an existing target object.  Completion of this
17737support is pending  further analysis of the ACPI specification
17738concerning this matter.
17739
17740CPU-specific code has been removed from the subsystem (hardware
17741directory).
17742
17743New Power Management Timer functions added
17744
17745Linux OS Services Layer (OSL): Moved system state transition code
17746to the core, fixed it, and modified  Linux OSL accordingly.
17747
17748Fixed C2 and C3 latency calculations.
17749
17750
17751We no longer use the compilation date for the version message on
17752initialization, but retrieve the version from AcpiGetSystemInfo().
17753
17754Incorporated for fix Sony VAIO machines.
17755
17756Documentation:  The Programmer Reference has been updated and
17757reformatted.
17758
17759
17760ASL Compiler:  Version X2013: Fixed a problem where the line
17761numbering and error reporting could get out  of sync in the
17762presence of multiple include files.
17763
17764 ------------------------------------------
17765Summary of changes for this label: 01_15_01
17766
17767Core ACPI CA Subsystem:
17768
17769Implemented support for type conversions in the execution of the
17770ASL  Concatenate operator (The second operand is converted to
17771match the type  of the first operand before concatenation.)
17772
17773Support for implicit source operand conversion is partially
17774implemented.   The ASL source operand types Integer, Buffer, and
17775String are freely  interchangeable for most ASL operators and are
17776converted by the interpreter  on the fly as required.  Implicit
17777Target operand conversion (where the  result is converted to the
17778target type before storing) is not yet implemented.
17779
17780Support for 32-bit and 64-bit BCD integers is implemented.
17781
17782Problem fixed where a field read on an aligned field could cause a
17783read  past the end of the field.
17784
17785New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
17786does not return a value, but the caller expects one.  (The ASL
17787compiler flags this as a warning.)
17788
17789ASL Compiler:
17790
17791Version X2011:
177921. Static typechecking of all operands is implemented. This
17793prevents the use of invalid objects (such as using a Package where
17794an Integer is required) at compile time instead of at interpreter
17795run-time.
177962. The ASL source line is printed with ALL errors and warnings.
177973. Bug fix for source EOF without final linefeed.
177984. Debug option is split into a parse trace and a namespace trace.
177995. Namespace output option (-n) includes initial values for
17800integers and strings.
178016. Parse-only option added for quick syntax checking.
178027. Compiler checks for duplicate ACPI name declarations
17803
17804Version X2012:
178051. Relaxed typechecking to allow interchangeability between
17806strings, integers, and buffers.  These types are now converted by
17807the interpreter at runtime.
178082. Compiler reports time taken by each internal subsystem in the
17809debug         output file.
17810
17811
17812 ------------------------------------------
17813Summary of changes for this label: 12_14_00
17814
17815ASL Compiler:
17816
17817This is the first official release of the compiler. Since the
17818compiler requires elements of the Core Subsystem, this label
17819synchronizes everything.
17820
17821------------------------------------------
17822Summary of changes for this label: 12_08_00
17823
17824
17825Fixed a problem where named references within the ASL definition
17826of both OperationRegions and CreateXXXFields did not work
17827properly.  The symptom was an AE_AML_OPERAND_TYPE during
17828initialization of the region/field. This is similar (but not
17829related internally) to the problem that was fixed in the last
17830label.
17831
17832Implemented both 32-bit and 64-bit support for the BCD ASL
17833functions ToBCD and FromBCD.
17834
17835Updated all legal headers to include "2000" in the copyright
17836years.
17837
17838 ------------------------------------------
17839Summary of changes for this label: 12_01_00
17840
17841Fixed a problem where method invocations within the ASL definition
17842of both OperationRegions and CreateXXXFields did not work
17843properly.  The symptom was an AE_AML_OPERAND_TYPE during
17844initialization of the region/field:
17845
17846  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
17847[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
17848(0x3005)
17849
17850Fixed a problem where operators with more than one nested
17851subexpression would fail.  The symptoms were varied, by mostly
17852AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
17853problem that has gone unnoticed until now.
17854
17855  Subtract (Add (1,2), Multiply (3,4))
17856
17857Fixed a problem where AcpiGetHandle didn't quite get fixed in the
17858previous build (The prefix part of a relative path was handled
17859incorrectly).
17860
17861Fixed a problem where Operation Region initialization failed if
17862the operation region name was a "namepath" instead of a simple
17863"nameseg". Symptom was an AE_NO_OPERAND error.
17864
17865Fixed a problem where an assignment to a local variable via the
17866indirect RefOf mechanism only worked for the first such
17867assignment.  Subsequent assignments were ignored.
17868
17869 ------------------------------------------
17870Summary of changes for this label: 11_15_00
17871
17872ACPI 2.0 table support with backwards support for ACPI 1.0 and the
178730.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
17874the AML  interpreter does NOT have support for the new 2.0 ASL
17875grammar terms at this time.
17876
17877All ACPI hardware access is via the GAS structures in the ACPI 2.0
17878FADT.
17879
17880All physical memory addresses across all platforms are now 64 bits
17881wide. Logical address width remains dependent on the platform
17882(i.e., "void *").
17883
17884AcpiOsMapMemory interface changed to a 64-bit physical address.
17885
17886The AML interpreter integer size is now 64 bits, as per the ACPI
178872.0 specification.
17888
17889For backwards compatibility with ACPI 1.0, ACPI tables with a
17890revision number less than 2 use 32-bit integers only.
17891
17892Fixed a problem where the evaluation of OpRegion operands did not
17893always resolve them to numbers properly.
17894
17895------------------------------------------
17896Summary of changes for this label: 10_20_00
17897
17898Fix for CBN_._STA issue.  This fix will allow correct access to
17899CBN_ OpRegions when the _STA returns 0x8.
17900
17901Support to convert ACPI constants (Ones, Zeros, One) to actual
17902values before a package object is returned
17903
17904Fix for method call as predicate to if/while construct causing
17905incorrect if/while behavior
17906
17907Fix for Else block package lengths sometimes calculated wrong (if
17908block > 63 bytes)
17909
17910Fix for Processor object length field, was always zero
17911
17912Table load abort if FACP sanity check fails
17913
17914Fix for problem with Scope(name) if name already exists
17915
17916Warning emitted if a named object referenced cannot be found
17917(resolved) during method execution.
17918
17919
17920
17921
17922
17923------------------------------------------
17924Summary of changes for this label: 9_29_00
17925
17926New table initialization interfaces: AcpiInitializeSubsystem no
17927longer has any parameters AcpiFindRootPointer - Find the RSDP (if
17928necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
17929>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
17930AcpiLoadTables
17931
17932Note: These interface changes require changes to all existing OSDs
17933
17934The PCI_Config default address space handler is always installed
17935at the root namespace object.
17936
17937-------------------------------------------
17938Summary of changes for this label: 09_15_00
17939
17940The new initialization architecture is implemented.  New
17941interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
17942AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
17943
17944(Namespace is automatically loaded when a table is loaded)
17945
17946The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1794752 bytes to 32 bytes.  There is usually one of these for every
17948namespace object, so the memory savings is significant.
17949
17950Implemented just-in-time evaluation of the CreateField operators.
17951
17952Bug fixes for IA-64 support have been integrated.
17953
17954Additional code review comments have been implemented
17955
17956The so-called "third pass parse" has been replaced by a final walk
17957through the namespace to initialize all operation regions (address
17958spaces) and fields that have not yet been initialized during the
17959execution of the various _INI and REG methods.
17960
17961New file - namespace/nsinit.c
17962
17963-------------------------------------------
17964Summary of changes for this label: 09_01_00
17965
17966Namespace manager data structures have been reworked to change the
17967primary  object from a table to a single object.  This has
17968resulted in dynamic memory  savings of 3X within the namespace and
179692X overall in the ACPI CA subsystem.
17970
17971Fixed problem where the call to AcpiEvFindPciRootBuses was
17972inadvertently left  commented out.
17973
17974Reduced the warning count when generating the source with the GCC
17975compiler.
17976
17977Revision numbers added to each module header showing the
17978SourceSafe version of the file.  Please refer to this version
17979number when giving us feedback or comments on individual modules.
17980
17981The main object types within the subsystem have been renamed to
17982clarify their  purpose:
17983
17984ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
17985ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
17986ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
17987
17988NOTE: no changes to the initialization sequence are included in
17989this label.
17990
17991-------------------------------------------
17992Summary of changes for this label: 08_23_00
17993
17994Fixed problem where TerminateControlMethod was being called
17995multiple times per  method
17996
17997Fixed debugger problem where single stepping caused a semaphore to
17998be  oversignalled
17999
18000Improved performance through additional parse object caching -
18001added  ACPI_EXTENDED_OP type
18002
18003-------------------------------------------
18004Summary of changes for this label: 08_10_00
18005
18006Parser/Interpreter integration:  Eliminated the creation of
18007complete parse trees  for ACPI tables and control methods.
18008Instead, parse subtrees are created and  then deleted as soon as
18009they are processed (Either entered into the namespace or  executed
18010by the interpreter).  This reduces the use of dynamic kernel
18011memory  significantly. (about 10X)
18012
18013Exception codes broken into classes and renumbered.  Be sure to
18014recompile all  code that includes acexcep.h.  Hopefully we won't
18015have to renumber the codes  again now that they are split into
18016classes (environment, programmer, AML code,  ACPI table, and
18017internal).
18018
18019Fixed some additional alignment issues in the Resource Manager
18020subcomponent
18021
18022Implemented semaphore tracking in the AcpiExec utility, and fixed
18023several places  where mutexes/semaphores were being unlocked
18024without a corresponding lock  operation.  There are no known
18025semaphore or mutex "leaks" at this time.
18026
18027Fixed the case where an ASL Return operator is used to return an
18028unnamed  package.
18029
18030-------------------------------------------
18031Summary of changes for this label: 07_28_00
18032
18033Fixed a problem with the way addresses were calculated in
18034AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
18035manifested itself when a Field was  created with WordAccess or
18036DwordAccess, but the field unit defined within the  Field was less
18037
18038than a Word or Dword.
18039
18040Fixed a problem in AmlDumpOperands() module's loop to pull
18041operands off of the  operand stack to display information. The
18042problem manifested itself as a TLB  error on 64-bit systems when
18043accessing an operand stack with two or more  operands.
18044
18045Fixed a problem with the PCI configuration space handlers where
18046context was  getting confused between accesses. This required a
18047change to the generic address  space handler and address space
18048setup definitions. Handlers now get both a  global handler context
18049(this is the one passed in by the user when executing
18050AcpiInstallAddressSpaceHandler() and a specific region context
18051that is unique to  each region (For example, the _ADR, _SEG and
18052_BBN values associated with a  specific region). The generic
18053function definitions have changed to the  following:
18054
18055typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
18056UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
18057*HandlerContext, // This used to be void *Context void
18058*RegionContext); // This is an additional parameter
18059
18060typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
18061RegionHandle, UINT32 Function, void *HandlerContext,  void
18062**RegionContext); // This used to be **ReturnContext
18063
18064-------------------------------------------
18065Summary of changes for this label: 07_21_00
18066
18067Major file consolidation and rename.  All files within the
18068interpreter have been  renamed as well as most header files.  This
18069was done to prevent collisions with  existing files in the host
18070OSs -- filenames such as "config.h" and "global.h"  seem to be
18071quite common.  The VC project files have been updated.  All
18072makefiles  will require modification.
18073
18074The parser/interpreter integration continues in Phase 5 with the
18075implementation  of a complete 2-pass parse (the AML is parsed
18076twice) for each table;  This  avoids the construction of a huge
18077parse tree and therefore reduces the amount of  dynamic memory
18078required by the subsystem.  Greater use of the parse object cache
18079means that performance is unaffected.
18080
18081Many comments from the two code reviews have been rolled in.
18082
18083The 64-bit alignment support is complete.
18084
18085-------------------------------------------
18086Summary of changes for this label: 06_30_00
18087
18088With a nod and a tip of the hat to the technology of yesteryear,
18089we've added  support in the source code for 80 column output
18090devices.  The code is now mostly  constrained to 80 columns or
18091less to support environments and editors that 1)  cannot display
18092or print more than 80 characters on a single line, and 2) cannot
18093disable line wrapping.
18094
18095A major restructuring of the namespace data structure has been
18096completed.  The  result is 1) cleaner and more
18097understandable/maintainable code, and 2) a  significant reduction
18098in the dynamic memory requirement for each named ACPI  object
18099(almost half).
18100
18101-------------------------------------------
18102Summary of changes for this label: 06_23_00
18103
18104Linux support has been added.  In order to obtain approval to get
18105the ACPI CA  subsystem into the Linux kernel, we've had to make
18106quite a few changes to the  base subsystem that will affect all
18107users (all the changes are generic and OS- independent).  The
18108effects of these global changes have been somewhat far  reaching.
18109Files have been merged and/or renamed and interfaces have been
18110renamed.   The major changes are described below.
18111
18112Osd* interfaces renamed to AcpiOs* to eliminate namespace
18113pollution/confusion  within our target kernels.  All OSD
18114interfaces must be modified to match the new  naming convention.
18115
18116Files merged across the subsystem.  A number of the smaller source
18117and header  files have been merged to reduce the file count and
18118increase the density of the  existing files.  There are too many
18119to list here.  In general, makefiles that  call out individual
18120files will require rebuilding.
18121
18122Interpreter files renamed.  All interpreter files now have the
18123prefix am*  instead of ie* and is*.
18124
18125Header files renamed:  The acapi.h file is now acpixf.h.  The
18126acpiosd.h file is  now acpiosxf.h.  We are removing references to
18127the acronym "API" since it is  somewhat windowsy. The new name is
18128"external interface" or xface or xf in the  filenames.j
18129
18130
18131All manifest constants have been forced to upper case (some were
18132mixed case.)   Also, the string "ACPI_" has been prepended to many
18133(not all) of the constants,  typedefs, and structs.
18134
18135The globals "DebugLevel" and "DebugLayer" have been renamed
18136"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
18137
18138All other globals within the subsystem are now prefixed with
18139"AcpiGbl_" Internal procedures within the subsystem are now
18140prefixed with "Acpi" (with only  a few exceptions).  The original
18141two-letter abbreviation for the subcomponent  remains after "Acpi"
18142- for example, CmCallocate became AcpiCmCallocate.
18143
18144Added a source code translation/conversion utility.  Used to
18145generate the Linux  source code, it can be modified to generate
18146other types of source as well. Can  also be used to cleanup
18147existing source by removing extraneous spaces and blank  lines.
18148Found in tools/acpisrc/*
18149
18150OsdUnMapMemory was renamed to OsdUnmapMemory and then
18151AcpiOsUnmapMemory.  (UnMap  became Unmap).
18152
18153A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
18154When set to  one, this indicates that the caller wants to use the
18155
18156semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
18157both types.  However, implementers of this  call may want to use
18158different OS primitives depending on the type of semaphore
18159requested.  For example, some operating systems provide separate
18160
18161"mutex" and  "semaphore" interfaces - where the mutex interface is
18162much faster because it  doesn't have all the overhead of a full
18163semaphore implementation.
18164
18165Fixed a deadlock problem where a method that accesses the PCI
18166address space can  block forever if it is the first access to the
18167space.
18168
18169-------------------------------------------
18170Summary of changes for this label: 06_02_00
18171
18172Support for environments that cannot handle unaligned data
18173accesses (e.g.  firmware and OS environments devoid of alignment
18174handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
18175been added (via configurable macros) in  these three areas: -
18176Transfer of data from the raw AML byte stream is done via byte
18177moves instead of    word/dword/qword moves. - External objects are
18178aligned within the user buffer, including package   elements (sub-
18179objects). - Conversion of name strings to UINT32 Acpi Names is now
18180done byte-wise.
18181
18182The Store operator was modified to mimic Microsoft's
18183implementation when storing  to a Buffer Field.
18184
18185Added a check of the BM_STS bit before entering C3.
18186
18187The methods subdirectory has been obsoleted and removed.  A new
18188file, cmeval.c  subsumes the functionality.
18189
18190A 16-bit (DOS) version of AcpiExec has been developed.  The
18191makefile is under  the acpiexec directory.
18192