xref: /dragonfly/sys/contrib/dev/acpica/changes.txt (revision 655933d6)
1----------------------------------------
230 September 2021. Summary of changes for version 20210930:
3
4This release is available at https://acpica.org/downloads
5
61) ACPICA kernel-resident subsystem:
7
8Hardware: Avoid evaluating methods too early during system resume. During
9wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called
10and it tries to get memory from the OS in order to evaluate a control
11method, but if KFENCE is enabled in the Linux kernel, the memory
12allocation attempt causes an IRQ work to be queued and a self-IPI to be
13sent to the CPU running the code which requires the memory controller to
14be ready, so if that happens too early in the wakeup path, it doesn't
15work.
16
17Prevent that from taking place by calling AcpiGetSleepTypeData() for S0
18upfront, when preparing to enter a given sleep state, and saving the data
19obtained by it for later use during system wakeup.
20
21Added a new _OSI string, "Windows 2020". Posted by superm1.
22
232) iASL Compiler/Disassembler and ACPICA tools:
24
25iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS
26objects:
27New/latest rules: Under a Device Object:
28         1) If _PRS is present, must have _CRS and _SRS
29         2) If _SRS is present, must have _PRS (_PRS requires _CRS and
30_SRS)
31         3) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS
32requires _CRS and _SRS)
33         4) If _SRS is present, probably should have a _DIS (Remark only)
34
35iASL table disassembler: Added disassembly support for the NHLT ACPI
36table. Note: support for Vendor-defined microphone arrays and SNR
37extensions are not supported at this time -- mostly due to a lack of
38example tables. Actual compiler support for NHLT is forthcoming.
39
40Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It
41uses the same subtable structure as the existing Generic Initiator
42Affinity type.
43
44Added the flag for online capable in the MADT, introduced in ACPI 6.3.
45Posted by superm1.
46
473) ACPICA documentation: Updated the legal info (that appears at the
48start of the Documents) to clarify distribution rights that are granted.
49
50
51----------------------------------------
5230 July 2021. Summary of changes for version 20210730:
53
54This release is available at https://acpica.org/downloads
55
561) ACPICA kernel-resident subsystem:
57
582) iASL Compiler/Disassembler and ACPICA tools:
59
60iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021).
61  Under the Device Object:
62  1) If _DIS is present, must have a _CRS and _SRS
63  2) If _PRS is present, must have a _CRS, _DIS, and _SRS
64  3) If _SRS is present, must have a _CRS and _DIS
65A warning will be issued for each of these cases.
66Note: For existing ASL/projects, these warnings may be disabled by
67specifying this on the command line:
68"-vw 3141"
69
70iASL Table Disassembler/Table compiler: Fix for WPBT table with no
71command-line arguments. Handle the case where the Command-line
72Arguments table field does not exist (zero).
73
74Headers: Add new DBG2 Serial Port Subtypes
75The Microsoft Debug Port Table 2 (DBG2) specification revision
76September 21, 2020 comprises additional Serial Port Subtypes [1].
77Reflect that in the actbl1.h header file. Submitted by:
78semihalf-wojtas-marcin
79
80iASL: Add full support for the AEST table (data compiler)
81Includes support in the table compiler and the disassembler.
82
83Add PRMT module header to facilitate parsing.
84This structure is used in to parse PRMT in other Operating Systems
85that relies on using subtable headers in order to parse ACPI tables.
86Although the PRMT doesn't have "subtables" it has a list of module
87information structures that act as subtables.
88
89iASL: Table disassembler: Add missing strings to decode subtable types.
90Includes the MADT and CEDT tables.
91
92
93----------------------------------------
9404 June 2021. Summary of changes for version 20210604:
95
961) ACPICA kernel-resident subsystem:
97
98Cleaned up (delete) the context mutex during local address handler object
99deletion.
100
101Fixed a memory leak caused by the _CID repair function.
102
103Added support for PlatformRtMechanism OperationRegion handler. Adds a new
104utility function, AcpiUtConvertUuidToString. Writing a buffer to a
105PlatformRtMechanism fieldunit invokes a bidirectional transaction. The
106input buffer contains 26 bytes containing 9 bytes of status, a command
107byte and a 16-byte UUID. This change will simply pass this incoming
108buffer to a handler registered by the OS.
109
1102) iASL Compiler/Disassembler and ACPICA tools:
111
112Added full support for the PRMT ACPI table (Platform Runtime Mechanism
113Table). Includes support in the iASL compiler, the disassembler, and the
114template generator.
115
116Added full support for the BDAT (BIOS Data ACPI Table) ACPI table.
117
118Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI
119table.
120
121Added full support for the SVKL (Storage Volume Key Location Table) ACPI
122table. Header file support from Kuppuswamy Sathyanarayanan
123<sathyanarayanan.kuppuswamy@linux.intel.com>.
124
125Completed full support for the IVRS (I/O Virtualization Reporting
126Structure) ACPI table. Added compiler support for IVRS, updated
127disassembler support. Adds a new utility, UtIsIdInteger, to determine if
128a HID/CID is an integer or a string.
129
130Headers: Added more structs to the CEDT table: CXL fixed memory window
131structure.
132
133ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure.
134
135----------------------------------------
13631 March 2021. Summary of changes for version 20210331:
137
138This release is available at https://acpica.org/downloads, and includes
139all ACPI 6.4 support
140
1411) ACPICA kernel-resident subsystem:
142ACPI 6.4: iASL: deprecate DDBHandleObj keyword
143Always create namespace nodes using AcpiNsCreateNode(). ACPICA is
144allocating an object using kmalloc(), but then frees it
145using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong.
146Fixed a race condition in generic serial bus operation region handler.
147Fixed by Hans de Goede.
148
1492) iASL Compiler/Disassembler and ACPICA tools:
150
151ACPI 6.4: NFIT: add Location Cookie field
152ACPI 6.4: HMAT: add new fields/flags
153ACPI 6.4: Add new flags in SRAT
154ACPI 6.4: add SDEV secure access components
155ACPI 6.4: add Csi2Bus resource template
156ACPI 6.4: add support for PHAT table
157ACPI 6.4: add support for PMTT table
158Add disassembly support for the IVRS table. Compilation of the table is
159not yet complete.
160Fixed a potential infinite loop due to type mismatch. The for-loop is
161using a UINT8 counter and comparing the upper
162limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In
163the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i
164will wrap around to zero and the loop will never exit. I suspect
165the AslGbl_ExpectedMessagesIndex is never that high, but fixing
166this does future proof the code and cleans up static analysis
167warnings.Colin King.
168iASL/TableCompiler: update it with IORT table E.b revision changes. From
169shamiali2008.
170iASL/TableCompiler: Add compilation support for the VIOT table. Signed-
171off-by: Jean-Philippe Brucker.
172iASL/TableCompiler: Add compilation support for CEDT table. Also, update
173the CEDT template.
174
175----------------------------------------
17605 January 2021. Summary of changes for version 20210105:
177
178This release is available at https://acpica.org/downloads
179
180
1811) ACPICA kernel-resident subsystem:
182
183Updated all copyrights to 2021. This affects all ACPICA source code
184modules.
185
1862) iASL Compiler/Disassembler and ACPICA tools:
187
188ASL test suite (ASLTS): Updated all copyrights to 2021.
189
190Tools and utilities: Updated all signon copyrights to 2021.
191
192iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC,
193MTMR. Al Stone.
194
195
196----------------------------------------
19717 December 2020. Summary of changes for version 20201217:
198
199This release is available at https://acpica.org/downloads
200
201
2021) ACPICA kernel-resident subsystem:
203
204Note: The implementation of ACPI 6.4 is underway, and is expected to be
205mostly finished next month, when ACPI 6.4 is released.
206
207From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added
208several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to
209enable this.
210
211AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0.
212These included a few casts, as well as a null pointer check.
213
214Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on
215implicit fallthrough, as well as __attribute__((__fallthrough__)) and
216comments to explicitly denote that cases of fallthrough were intentional.
217Clang also supports this warning and statement attribute, but not the
218comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature
219of GCC. With assistance from @nickdesaulniers.
220
2212) iASL Compiler/Disassembler and ACPICA tools:
222
223Added improvement to method call analysis by saving the return type and
224relaxing certain cases of type checking.
225
226iASL Table Compiler: Improved info messages. Added a message to the -T
227option for when the default template (DSDT) is used.
228Also added a note for when multiple SSDTs are created with a DSDT that
229the SSDTs are created in the same file as the DSDT.
230
231
232----------------------------------------
233
23413 November 2020. Summary of changes for version 20201113:
235
236This release is available at https://acpica.org/downloads
237
238
2391) ACPICA kernel-resident subsystem:
240
241Interpreter: fixed a memory leak by using use existing buffer in _HID
242repair. There was a memory leak that occurred when a _CID object is
243defined as a package containing string objects. When _CID is checked for
244any possible repairs, it calls a helper function to repair _HID (because
245_CID basically contains multiple _HID entries). The _HID repair function
246assumes that string objects are standalone objects that are not contained
247inside of any packages. The _HID repair function replaced the string
248object with a brand new object and attempted to delete the old object by
249decrementing the reference count of the old object. Strings inside of
250packages have a reference count of 2 so the _HID repair function leaves
251this object in a dangling state and causes a memory leak. Instead of
252allocating a brand new object and removing the old object, use the
253existing object when repairing the _HID object.
254
255Added function trace macros to improve namespace debugging. The namespace
256repair mechanism does not have function tracing macros. Add several trace
257macros to improve debuggability.
258
259Handle "orphan" _REG methods for GPIO OpRegions. Before this change
260AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no
261matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry
262Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs.
263The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific
264UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads
265to potential issues with checks for OpRegion availability, or in other
266words checks if _REG has been called for the OpRegion which the ACPI code
267wants to use. Except for the "orphan" EC handling, ACPICA core does not
268call _REG on an ACPI node which does not define an OpRegion matching the
269type being registered; and the reference design DSDT, from which most
270Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor
271UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins
272were assigned ACPI controlled functions in the reference design. Together
273this leads to the perfect storm, at least on the Cherry Trail based
274Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code
275and has added the Cherry Trail specific UserDefined(0x93) opregion to its
276GPO2 ACPI node to access this pin. But it uses a "has _REG been called"
277availability check for the standard GeneralPurposeIo OpRegion. This
278clearly is a bug in the DSDT, but this does work under Windows. This
279issue leads to the intel vbtn driver reporting the device always being in
280tablet-mode at boot, even if it is in laptop mode. Which in turn causes
281userspace to ignore touchpad events. So in other words, this issue causes
282the touchpad to not work at boot. This change fixes this by extending the
283"orphan" _REG method handling to also apply to GPIO address-space
284handlers.
285
286
2872) iASL Compiler/Disassembler and ACPICA tools:
288
289iASL: Added more info to namespace dump file (-ln option). In a separate
290section of the dump file (after the main namespace dump), emit the full
291pathname for each namespace node, its type, and the ASL filename and line
292number where it is declared.
293
294AcpiHelp: Added an option to display/decode iASL exceptions. Option is: -
295x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value
296is omitted, all iASL exceptions are displayed.
297
298iASL: Use StringLiteral instead of StringData for some ASL macros. The
299use of the stringData rule allows for some "string" oriented opcodes
300(Such as ToString, ToHexString, etc.) None of which make sense with the
301macros in question. This change modifies the StringData part of the rule
302for these macros to a simple string  literal - thus disallowing the use
303of ToString, ToHexString, etc.
304The following ASL operators (macros) are affected:
305EisaId
306Fprintf
307Printf
308ToUuid
309Unicode
310Note: The MS compiler requires the use of string literals for these
311operators also.
312
313iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search
314the list of "known" UUIDs for the input to the ToUUID macro.
315
316Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the
317NFIT table.
318
319
320----------------------------------------
321
32225 September 2020. Summary of changes for version 20200925:
323
324This release is available at https://acpica.org/downloads
325
326
3271) ACPICA kernel-resident subsystem:
328
329Preserve memory opregion mappings. The ACPICA's strategy with respect to
330the handling of memory mappings associated with memory operation regions
331is to avoid mapping the entire region at once which may be problematic at
332least in principle (for example, it may lead to conflicts with
333overlapping mappings having different attributes created by drivers).  It
334may also be wasteful, because memory opregions on some systems take up
335vastchunks of address space while the fields in those regions actually
336accessed by AML are sparsely distributed.
337
338For this reason, a one-page "window" is mapped for a given opregion on
339the first memory access through it and if that "window" does not cover an
340address range accessed through that opregion subsequently, it is unmapped
341and a new "window" is mapped to replace it.  Next, if the new "window" is
342not sufficient to access memory through the opregion in question in the
343future, it will be replaced with yet another "window" and so on.  That
344may lead to a suboptimal sequence of memory mapping and unmapping
345operations, for example if two fields in one opregion separated from each
346other by a sufficiently wide chunk of unused address space are accessed
347in an alternating pattern.
348
349Added support for 64 bit risc-v compilation.  Useful for acpica tools and
350incorporating ACPICA into the Firmware Test Suite. Colin Ian King
351<colin.king@canonical.com>.
352
353Added support for SMBus predefined names (from SMBus Control Method
354Interface Specification, Version 1.0, December 10, 1999. New predefined
355names:
356    _SBA
357    _SBI
358    _SBR
359    _SBT
360    _SBW
361
362AML Disassembler: Added a new command, "All <NameSeg>". This command will
363evaluate all objects in the current namespace whose NameString contains
364the input NameSeg as the last element of the NameString. Useful for
365debugging.
366
367
3682) iASL Compiler/Disassembler and ACPICA tools:
369
370iASL: fixed a crash that occurred when predefined objects return packages
371with lengths that exceed the initializer list.
372
373iASL: added more detail to external resolution error message when
374compiling multiple definition blocks.
375
376iASL: added a remark for an attempt to create a nameseg or namestring
377containing lower-case letters. This should prevent declaring multiple
378namesegs or namestrings in an attempt to refer to different objects (with
379different cases), but actually refer to the same object(s).
380
381iASL: improve alias analysis by saving object type. If the alias is a
382method type, the parameter count is also recorded.
383
384AcpiExec: Increase the default loop timeout value. Was 1 second, is now
38510 seconds. Prevents unnecessary timeouts when executing control methods
386from the command line.
387
388AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal
389list. Includes:
390    Memory Device
391    Generic Buttons Device
392    NVDIMM Root Device
393    Control Method Battery
394    Device Graphs for _DSD method
395    Hierarchical Data Extension
396....ARM CoreSight Graph
397
398----------------------------------------
399
400
40117 July 2020. Summary of changes for version 20200717:
402
403This release is available at https://acpica.org/downloads
404
405
4061) ACPICA kernel-resident subsystem:
407
408Do not increment OperationRegion reference counts for field units. Recent
409server firmware has revealed that this reference count can overflow on
410large servers that declare many field units (thousands) under the same
411OperationRegion. This occurs because each field unit declaration will add
412a reference count to the source OperationRegion. This release solves the
413reference count overflow for OperationRegion objects by preventing
414fieldUnits from incrementing their parent OperationRegion's reference
415count.
416
417Replaced one-element arrays with flexible-arrays, which were introduced
418in C99.
419
420Restored the readme file containing the directions for generation of
421ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is
422located at: generate/msvc2017/readme.txt
423
4242) iASL Compiler/Disassembler and ACPICA tools:
425
426iASL: Fixed a regression found in version 20200214. Prevent iASL from
427emitting an extra byte of garbage data when control methods declared a
428single parameter type without using braces. This extra byte is known to
429cause a blue screen on the Windows AML interpreter.
430
431iASL: Made a change to allow external declarations to specify the type of
432a named object even when some name segments are not defined.
433This change allows the following ASL code to compile (When DEV0 is not
434defined or not defined yet):
435
436    External (\_SB.DEV0.OBJ1, IntObj)
437    External (\_SB.DEV0, DeviceObj)
438
439iASL: Fixed a problem where method names in "Alias ()" statement could be
440misinterpreted. They are now interpreted correctly as method invocations.
441
442iASL: capture a method parameter count (Within the Method info segment,
443as well as the argument node) when using parameter type lists.
444
445----------------------------------------
446
447
44828 May 2020. Summary of changes for version 20200528:
449
450
4511) ACPICA kernel-resident subsystem:
452
453Removed old/obsolete Visual Studio files which were used to build the
454Windows versions of the ACPICA tools. Since we have moved to Visual
455Studio 2017, we are no longer supporting Visual Studio 2006 and 2009
456project files. The new subdirectory and solution file are located at:
457
458    acpica/generate/msvc2017/AcpiComponents.sln
459
460
4612) iASL Compiler/Disassembler and ACPICA tools:
462
463iASL: added support for a new OperationRegion Address Space (subtype):
464PlatformRtMechanism. Support for this new keyword is being released for
465early prototyping. It will appear in the next release of the ACPI
466specification.
467
468iASL: do not optimize the NameString parameter of the CondRefOf operator.
469In the previous iASL compiler release, the NameString parameter of the
470CondRefOf was optimized. There is evidence that some implementations of
471the AML interpreter do not perform the recursive search-to-parent search
472during the execution of the CondRefOf operator. Therefore, the CondRefOf
473operator behaves differently when the NameString parameter is a single
474name segment (a NameSeg) as opposed to a full NamePath (starting at the
475root scope) or a NameString containing parent prefixes.
476
477iASL: Prevent an inadvertent remark message. This change prevents a
478remark if within a control method the following exist:
4791) An Operation Region is defined, and
4802) A Field operator is defined that refers to the region.
481This happens because at the top level, the Field operator does not
482actually create a new named object, it simply references the operation
483region.
484
485Removed support for the acpinames utility. The acpinames was a simple
486utility used to populate and display the ACPI namespace without executing
487any AML code. However, ACPICA now supports executable opcodes outside of
488control methods. This means that executable AML opcodes such as If and
489Store opcodes need to be executed during table load. Therefore, acpinames
490would need to be updated to match the same behavior as the acpiexec
491utility and since acpiexec can already dump the entire namespace (via the
492'namespace' command), we no longer have the need to maintain acpinames.
493
494    In order to dump the contents of the ACPI namespace using acpiexec,
495execute the following command from the command line:
496
497        acpiexec -b "n" [aml files]
498
499----------------------------------------
500
501
50230 April 2020. Summary of changes for version 20200430:
503
5041) ACPICA kernel-resident subsystem:
505
506Cleaned up the coding style of a couple of global variables
507(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers.
508AcpiProtocolLengths was made static, and the definition of
509AcpiGbl_NextCmdNum was moved to acglobal.h.
510
511
5122) iASL Compiler/Disassembler and ACPICA tools:
513
514iASL DataTable Compiler:  Fixed a segfault on errors that aren't directly
515associated with a field.
516
517Disassembler: has been made more resilient so that it will continue to
518parse AML even if the AML generates ACPI namespace errors. This enables
519iASL to disassemble some AML that may have been compiled using older
520versions of iASL that no longer compile with newer versions of iASL.
521
522iASL: Fixed the required parameters for _NIH and _NIG. Previously, there
523was a mixup where _NIG required one parameter and _NIH required zero
524parameters. This change swaps these parameter requirements. Now it is
525required that _NIH must be called with one parameter and _NIG requires
526zero parameters.
527
528iASL: Allow use of undefined externals as long as they are protected by
529an if (CondRefOf (...)) block when compiling multiple definition blocks.
530
531iASL: Fixed the type override behavior of named objects that are declared
532as External. External declarations will no longer override the type of
533the actual definition if it already exists.
534
535AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable
536command line wildcard support on Windows. Note: the AcpiNames utility is
537essentially redundant with the AcpiExec utility (using the "namespace"
538command) and is therefore deprecated. It will be removed in future
539releases of ACPICA.
540
541Disassembler: ignore AE_ALREADY_EXISTS status when parsing create*
542operators. The disassembler is intended to emit existing ASL code as-is.
543Therefore, error messages emitted during disassembly should be ignored or
544handled in a way such that the disassembler can continue to parse the
545AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op
546parsing for create operators in order to complete parsing ASL termlists.
547
548iASL DataTable Compiler: IVRS table: fix potentially uninitialized
549variable warning. Some compilers catch potential uninitialized variables.
550This is done by examining branches of if/else statements. This change
551replaces an "else if" with an "else" to fix the uninitialized variable
552warning.
553
554
555----------------------------------------
55626 March 2020. Summary of changes for version 20200326:
557
558
5591) ACPICA kernel-resident subsystem:
560
561Performed a code clean-up to prevent build errors on early versions of
562GCC-10.
563
564Added the NHLT table signature. iASL data table compiler/disassembler
565support for this table is coming soon.
566
567
5682) iASL Compiler/Disassembler and ACPICA tools:
569
570AcpiExec: Fixed several problems with the namespace initialization file
571(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS
572errors, several seg faults, and enhancements to line parsing within the
573init file. In addition, each object found in the init file and it's new
574value is displayed, as well as any such entries that do not have a
575corresponding name in the namespace. For reference, the syntax for the
576various supported data types are presented below:
577	PCHG 0x777788889999BBBB	// Integer
578	\DEV1.STR1 "XYZ"			// String
579	BUF1 (88 99 AA)			// Buffer
580	PKG1 [0x1111 0x2222]		// Package
581	\BF1 0x7980				// BufferField
582	RCRV 0x0123456789ABCDEF	// Field Unit
583
584iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro
585can be used anywhere in a given ASL file to configure iASL to expect an
586iASL compiler error code on the line where this macro was placed. If the
587error code does not exist, an error is generated. This is intended to be
588used for ACPICA's ASL test suite, but can be used by ASL developers as
589well.
590
591iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD
592IVRS table parsing supported only IVHD type 10h structures. Parsing an
593IVHD type 11h caused the iasl to report unknown subtable type. Add
594necessary structure definition for IVHD type 11h and apply correct
595parsing method based on subtable type. Micha? ?ygowski.
596
597iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name
598According to AMD IOMMU Specification Revision 3.05 the reserved field
599should be IOMMU Feature Reporting. Change the name of the field to the
600correct one. Micha? ?ygowski.
601
602acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch
603based on suggestions by David Seifert and Benjamin Berg.
604
605iASL: table compiler: removed an unused variable (DtCompilerParserResult)
606causing linking errors. Patch based on suggestions by David Seifert and
607Benjamin Berg.
608
609iASL: table compiler: make LexBuffer static to avoid linking errors in
610newer compilers. Patch based on suggestions by David Seifert and Benjamin
611Berg.
612
613iASL: fixed type matching between External and Named objects. External
614object types can only be expressed with ACPI object type values that are
615defined in the ACPI spec. However, iASL uses ACPI object type values that
616are local to ACPICA in addition to the values defined in the ACPI spec.
617This change implements type matching to map some object type values
618specific to ACPICA to ones that are defined in the ACPI spec.
619
620iASL: Dropped the type mismatch compiler error that can arise from
621External declarations to a warning. This warning can occur when there is
622a type difference between the external declaration and the actual object
623declaration (when compiling multiple files/modules simultaneously).
624
625iASL: removed an incorrect error message regarding externals. This change
626removes an incorrect error that is emitted when a duplicate external
627declaration does not contain a type that opens a scope. This is incorrect
628because the duplicate external with conflicting types are already caught
629by iASL and it doesn't make any sense to enforce what this conflicting
630type should be.
631
632AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be
633surrounded by parens. Otherwise, a logical statement that applies a
634logical not operator to this macro could result in a computation that
635applies the operator to the left side of the logical and but not the
636right. Reported-by: John Levon <john.levon@joyent.com>
637
638Fixed a problem with the local version of sprint(): On 32-bit, the
639provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX,
640String + Size will wrap, meaning End < Start, and
641AcpiUtBoundStringOutput() will never output anything as a result. The
642symptom seen of this was acpixtract failing to output anything -- with a
643custom build that included utprint.c. Signed-off-by: John Levon
644<john.levon@joyent.com>
645
646iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the
647ACPI specification.
648
649
650----------------------------------------
65114 February 2020. Summary of changes for version 20200214:
652
653
6541) ACPICA kernel-resident subsystem:
655
656Enable sleep button on ACPI legacy wake:  Hibernation (S4) is triggered
657in a guest when it receives a sleep trigger from the hypervisor. When the
658guest resumes from this power state, it does not see the SleepEnabled
659bit. In other words, the sleepHibernation (S4) is triggered in a guest
660when it receives a sleep trigger from the hypervisor. When the guest
661resumes from this power state, it does not see the SleepEnabled bit. In
662other words, the sleep button is not enabled on waking from an S4 state.
663This causes subsequent invocation of sleep state to fail since the
664guest.button is not enabled on waking from an S4 state. This causes
665subsequent invocation of sleep state to fail in the guest. Fix this
666problem by enabling the sleep button in ACPI legacy wake. From Anchal
667Agarwal <anchalag@amazon.com>.
668
669Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used
670for checking the status bits of all enabled GPEs in one go. It is needed
671to distinguish spurious SCIs from genuine ones when deciding whether or
672not to wake up the system from suspend-to-idle.
673
674Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be
675using HOST in their environment to represent the host name for their
676machines. Avoid this problem by renaming this variable from HOST to
677ACPI_HOST.
678
679MSVC 2017 project files: Enable multiprocessor generation to improve
680build performance.
681
682Added a macro to get the byte width of a Generic Address structure. New
683ACPI_ACCESS_BYTE_WIDTH is in addition to the existing
684ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg.
685
686
6872) iASL Compiler/Disassembler and ACPICA tools:
688
689iASL: Implemented full support for the (optional, rarely used) ReturnType
690and ParameterTypesList for the Method, Function, and External operators.
691For Method declarations, the number of individual ParameterTypes must
692match the declaration of the number of arguments (NumArgs). This also
693Fixes a problem with the External operator where extra/extraneous bytes
694were emitted in the AML code if the optional ReturnType/ParameterTypes
695were specified for a MethodObj declaration.
696New error message:
6971) Method NumArgs count does not match length of ParameterTypes list
698
699iASL: Implemented detection of type mismatches between External
700declarations and named object declarations. Also, detect type mismatches
701between multiple External declarations of the same Name.
702New error messages:
7031) Type mismatch between external declaration and actual object
704declaration detected
7052) Type mismatch between multiple external declarations detected
706
707iASL: Implemented new error messages for External operators that specify
708a ReturnType and/or ParameterTypesList for any object type other than
709control methods (MethodObj).
710New error messages:
7111) Return type is only allowed for Externals declared as MethodObj
7122) Parameter type is only allowed for Externals declared as MethodObj
713
714iASL: Implemented two new remark/warning messages for ASL code that
715creates named objects from within a control method. This is very
716inefficient since the named object must be created and deleted each time
717the method is executed.
718New messages:
7191) Creation of named objects within a method is highly inefficient, use
720globals or method local variables instead (remark)
7212) Static OperationRegion should be declared outside control method
722(warning)
723
724iASL: Improved illegal forward reference detection by adding support to
725detect forward-reference method invocations.
726
727iASL: Detect and issue an error message for NameStrings that contain too
728many individual NameSegs (>255). This is an AML limitation that is
729defined in the ACPI specification.
730New message:
7311) NameString contains too many NameSegs (>255)
732
733acpidump: windows: use GetSystemFirmwareTable API for all tables except
734SSDT. By using this API, acpidump is able to get all tables in the XSDT
735
736iASL: Removed unused parser file and updated msvc2017 project files.
737Removed the obsolete AslCompiler.y from the repository.
738
739iASL: msvc2017: Fixed macros in the file dependency list to prevent
740unnecessary rebuilds. Replace %(Directory) with %(RelativeDir).
741
742Disassembler: Prevent spilling error messages to the output file. All
743errors are directed to the console instead. These error messages
744prevented re-compilation of the resulting disassembled ASL output file
745(.DSL).
746
747
748----------------------------------------
74910 January 2020. Summary of changes for version 20200110:
750
751
7521) ACPICA kernel-resident subsystem:
753
754Updated all copyrights to 2020. This affects all ACPICA source code
755modules.
756
757
7582) iASL Compiler/Disassembler and ACPICA tools:
759
760ASL test suite (ASLTS): Updated all copyrights to 2020.
761
762Tools and utilities: Updated all signon copyrights to 2020.
763
764iASL: fix forward reference analysis for field declarations. Fixes
765forward reference analysis for field declarations by searching the
766parent scope for the named object when the object is not present in
767the current scope.
768
769iASL: Improved the error output for ALREADY_EXISTS errors. Now, the
770full pathname of the name that already exists is printed.
771
772iASL: Enhance duplicate Case() detection for buffers. Add check for
773buffers with no initializer list (these buffers will be filled with
774zeros at runtime.)
775
776
777----------------------------------------
77813 December 2019. Summary of changes for version 20191213:
779
780
7811) ACPICA kernel-resident subsystem:
782
783Return a Buffer object for all fields created via the CreateField
784operator. Previously, an Integer would be returned if the size of
785the field was less than or equal to the current size of an Integer.
786Although this goes against the ACPI specification, it provides
787compatibility with other ACPI implementations. Also updated the
788ASLTS test suite to reflect this new behavior.
789
7902) iASL Compiler/Disassembler and ACPICA tools:
791
792iASL: Implemented detection of (and throw an error for) duplicate
793values for Case statements within a single Switch statement. Duplicate
794Integers, Strings, and Buffers are supported.
795
796iASL: Fix error logging issue during multiple file compilation --
797Switch to the correct input file during error node creation.
798
799iASL: For duplicate named object creation, now emit an error instead
800of a warning - since this will cause a runtime error.
801
802AcpiSrc: Add unix line-ending support for non-Windows builds.
803
804iASL: Add an error condition for an attempt to create a NameString
805with > 255 NameSegs (the max allowable via the AML definition).
806
807
808----------------------------------------
80918 October 2019. Summary of changes for version 20191018:
810
811
8121) ACPICA kernel-resident subsystem:
813
814Debugger: added a new command: ?Fields [address space ID]?. This command
815dumps the contents of all field units that are defined within the
816namespace with a particular address space ID.
817
818Modified the external interface AcpiLoadTable() to return a table index.
819This table index can be used for unloading a table for debugging.
820    ACPI_STATUS
821    AcpiLoadTable (
822        ACPI_TABLE_HEADER       *Table,
823        UINT32                  *TableIndex))
824
825Implemented a new external interface: AcpiUnloadTable() This new function
826takes a table index as an argument and unloads the table. Useful for
827debugging only.
828    ACPI_STATUS
829    AcpiUnloadTable (
830        UINT32                  TableIndex))
831
832Ported the AcpiNames utility to use the new table initialization
833sequence. The utility was broken before this change. Also, it was
834required to include most of the AML interpreter into the utility in order
835to process table initialization (module-level code execution.)
836
837Update for results from running Clang V8.0.1. This fixes all "dead
838assignment" warnings. There are still several "Dereference of NULL
839pointer" warnings, but these have been found to be false positive
840warnings.
841
842
8432) iASL Compiler/Disassembler and ACPICA tools:
844
845iASL: numerous table compiler changes to ensure that the usage of
846yacc/bison syntax is POSIX-compliant.
847
848iASL/disassembler: several simple bug fixes in the data table
849disassembler.
850
851Acpiexec: expanded the initialization file (the -fi option) to initialize
852strings, buffers, packages, and field units.
853
854
855----------------------------------------
85616 August 2019. Summary of changes for version 20190816:
857
858This release is available at https://acpica.org/downloads
859
860
8611) ACPICA kernel-resident subsystem:
862
863Modified the OwnerId mechanism to allow for more Owner Ids. The previous
864limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT
865exceptions on machines with a large number of initialization threads,
866many CPU cores and nested initialization control methods.
867
868Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for
869checking if the given GPE (as represented by a GPE device handle and a
870GPE number) is currently active and dispatching it (if that's the case)
871outside of interrupt context.
872
873Table load: exit the interpreter before initializing objects within the
874new table This prevents re-acquiring the interpreter lock when loading
875tables
876
877Added the "Windows 2019" string to the _OSI support (version 1903). Jung-
878uk Kim
879
880Macros: removed pointer math on a null pointer. Causes warnings on some
881compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR
882instead of using arithmetic.
883
884Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used
885across all "printf-like" internal functions. Also, cleanup all calls to
886such functions (both in 32-bit mode and 64-bit mode) now that they are
887analyzed by the gcc compiler via ACPI_PRINTF_LIKE.
888
889
8902) iASL Compiler/Disassembler and ACPICA tools:
891
892iASL: implemented a new data table compiler flex/bison front-end. This
893change is internal and is not intended to result in changes to the
894compiled code. This new compiler front-end can be invoked using the -tp
895option for now, until the old mechanism is removed.
896
897ASLTS: Implemented a new data table compiler test suite. This test suite
898generates all table templates and compile/disassemble/re-compile/binary-
899compare each file.
900
901iASL: return -1 if AML files were not generated due to compiler errors
902
903iASL: added a warning on use of the now-legacy ASL Processor () keyword.
904
905iASL: added an error on _UID object declaration that returns a String
906within a Processor () declaration. A _UID for a processor must be an
907Integer.
908
909iASL: added a null terminator to name strings that consist only of
910multiple parent prefixes (^)
911
912iASL: added support to compile both ASL and data table files in a single
913command.
914
915Updated the tool generation project files that were recently migrated to
916MSVC 2017 to eliminate all new warnings. The new project files appear in
917the directory \acpica\generate\msvc2017. This change effectively
918deprecates the older project files in \acpica\generate\msvc9.
919
920
921----------------------------------------
92203 July 2019. Summary of changes for version 20190703:
923
924
9251) ACPICA kernel-resident subsystem:
926
927Remove legacy module-level support code. There were still some remnants
928of the legacy module-level code executions. Since we no longer support
929this option, this is essentially dead code and has been removed from the
930ACPICA source.
931
932iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
933scope. If these named objects are declared outside the root scope, they
934will not be invoked by any host Operating System.
935
936Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC
937one) can be enabled in two situations. First, the GPEs with existing _Lxx
938and _Exx methods are enabled implicitly by ACPICA during system
939initialization.  Second, the GPEs without these methods (like GPEs listed
940by _PRW objects for wakeup devices) need to be enabled directly by the
941code that is going to use them (e.g. ACPI power management or device
942drivers).
943
944In the former case, if the status of a given GPE is set to start with,
945its handler method (either _Lxx or _Exx) needs to be invoked to take care
946of the events (possibly) signaled before the GPE was enabled. In the
947latter case, however, the first caller of AcpiEnableGpe() for a given GPE
948should not be expected to care about any events that might be signaled
949through it earlier.  In that case, it is better to clear the status of
950the GPE before enabling it, to prevent stale events from triggering
951unwanted actions (like spurious system resume, for example).
952
953For this reason, modify AcpiEvAddGpeReference() to take an additional
954boolean argument indicating whether or not the GPE status needs to be
955cleared when its reference counter changes from zero to one and make
956AcpiEnableGpe() pass TRUE to it through that new argument.
957
958
9592) iASL Compiler/Disassembler and ACPICA tools:
960
961The tool generation process has been migrated to MSVC 2017, and all
962project files have been upgraded. The new project files appear in the
963directory \acpica\generate\msvc2017. This change effectively deprecates
964the older project files in \acpica\generate\msvc9.
965
966iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
967scope. If these named objects are declared outside the root scope, they
968will not be invoked by any host Operating System
969
970----------------------------------------
97109 May 2019. Summary of changes for version 20190509:
972
973
9741) ACPICA kernel-resident subsystem:
975
976Revert commit  6c43e1a ("ACPICA: Clear status of GPEs before enabling
977them") that causes problems with Thunderbolt controllers to occur if a
978dock device is connected at init time (the xhci_hcd and thunderbolt
979modules crash which prevents peripherals connected through them from
980working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA:
981Dispatch active GPEs at init time") to get undone, so the problem
982addressed by commit ecc1165b8b74 appears again as a result of it.
983
984
9852) iASL Compiler/Disassembler and ACPICA tools:
986
987Reverted iASL: Additional forward reference detection. This change
988reverts forward reference detection for field declarations. The feature
989unintentionally emitted AML bytecode with incorrect package lengths for
990some ASL code related to Fields and OperationRegions. This malformed AML
991can cause systems to crash
992during boot. The malformed AML bytecode is emitted in iASL version
99320190329 and 20190405.
994
995iASL: improve forward reference detection. This change improves forward
996reference detection for named objects inside of scopes. If a parse object
997has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to
998a named object that is declared later in the AML bytecode. This is
999allowed if the reference is inside of a method and the declaration is
1000outside of a method like so:
1001
1002DefinitionBlock(...)
1003{
1004    Method (TEST)
1005    {
1006        Return (NUM0)
1007    }
1008    Name (NUM0,0)
1009}
1010
1011However, if the declaration and reference are both in the same method or
1012outside any methods, this is a forward reference and should be marked as
1013an error because it would result in runtime errors.
1014
1015DefinitionBlock(...)
1016{
1017    Name (BUFF, Buffer (NUM0) {}) // Forward reference
1018    Name (NUM0, 0x0)
1019
1020    Method (TEST)
1021    {
1022        Local0 = NUM1
1023        Name (NUM1, 0x1) // Forward reference
1024        return (Local0)
1025    }
1026}
1027
1028iASL: Implemented additional buffer overflow analysis for BufferField
1029declarations. Check if a buffer index argument to a create buffer field
1030operation is beyond the end of the target buffer.
1031
1032This affects these AML operators:
1033
1034   AML_CREATE_FIELD_OP
1035   AML_CREATE_BIT_FIELD_OP
1036   AML_CREATE_BYTE_FIELD_OP
1037   AML_CREATE_WORD_FIELD_OP
1038   AML_CREATE_DWORD_FIELD_OP
1039   AML_CREATE_QWORD_FIELD_OP
1040
1041 There are three conditions that must be satisfied in order to allow this
1042validation at compile time:
1043
1044   1) The length of the target buffer must be an integer constant
1045   2) The index specified in the create* must be an integer constant
1046   3) For CreateField, the bit length argument must be non-zero.
1047
1048Example:
1049    Name (BUF1, Buffer() {1,2})
1050    CreateField (BUF1, 7, 9, CF03)  // 3: ERR
1051
1052dsdt.asl     14:     CreateField (BUF1, 7, 9, CF03)  // 3: ERR
1053Error    6165 -                           ^ Buffer index beyond end of
1054target buffer
1055
1056
1057----------------------------------------
105805 April 2019. Summary of changes for version 20190405:
1059
1060
10611) ACPICA kernel-resident subsystem:
1062
1063Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop
1064unconditionally clearing ACPI IRQs during suspend/resume") was added
1065earlier to stop clearing of event status bits unconditionally on suspend
1066and resume paths. Though this change fixed an issue on suspend path, it
1067introduced regressions on several resume paths. In the case of S0ix,
1068events are enabled as part of device suspend path. If status bits for the
1069events are set when they are enabled, it could result in premature wake
1070from S0ix. If status is cleared for any event that is being enabled so
1071that any stale events are cleared out. In case of S0ix, events are
1072enabled as part of device suspend path. If status bits for the events are
1073set when they are enabled, it could result in premature wake from S0ix.
1074
1075This change ensures that status is cleared for any event that is being
1076enabled so that any stale events are cleared out.
1077
1078
10792) iASL Compiler/Disassembler and ACPICA tools:
1080
1081iASL: Implemented an enhanced multiple file compilation that combines
1082named objects from all input files to a single namespace. With this
1083feature, any unresolved external declarations as well as duplicate named
1084object declarations can be detected during compilation rather than
1085generating errors much later at runtime. The following commands are
1086examples that utilize this feature:
1087    iasl dsdt.asl ssdt.asl
1088    iasl dsdt.asl ssdt1.asl ssdt2.asl
1089    iasl dsdt.asl ssdt*.asl
1090
1091----------------------------------------
109229 March 2019. Summary of changes for version 20190329:
1093
1094
10951) ACPICA kernel-resident subsystem:
1096
1097Namespace support: Remove the address nodes from global list after method
1098termination. The global address list contains pointers to namespace nodes
1099that represent Operation Regions. This change properly removes Operation
1100Region namespace nodes that are declared dynamically during method
1101execution.
1102
1103Linux: Use a different debug default than ACPICA. There was a divergence
1104between Linux and the ACPICA codebases. In order to resolve this
1105divergence, Linux now declares its own debug default in aclinux.h
1106
1107Renamed some internal macros to improve code understanding and
1108maintenance. The macros below all operate on single 4-character ACPI
1109NameSegs, not generic strings (old -> new):
1110    ACPI_NAME_SIZE    -> ACPI_NAMESEG_SIZE
1111    ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG
1112    ACPI_MOVE_NAME    -> ACPI_COPY_NAMESEG
1113
1114Fix for missing comma in array declaration for the AcpiGbl_GenericNotify
1115table.
1116
1117Test suite: Update makefiles, add PCC operation region support
1118
1119
11202) iASL Compiler/Disassembler and Tools:
1121
1122iASL: Implemented additional illegal forward reference detection. Now
1123detect and emit an error upon detection of a forward reference from a
1124Field to an Operation Region. This will fail at runtime if allowed to
1125pass the compiler.
1126
1127AcpiExec: Add an address list check for dynamic Operation Regions. This
1128feature performs a sanity test for each node the global address list.
1129This is done in order to ensure that all dynamic operation regions are
1130properly removed from the global address list and no dangling pointers
1131are left behind.
1132
1133Disassembler: Improved generation of resource pathnames. This change
1134improves the code that generates resource descriptor and resource tag
1135pathnames. The original code used a bunch of str* C library functions
1136that caused warnings on some compilers.
1137
1138iASL: Removed some uses of strncpy and replaced with memmove. The strncpy
1139function can overwrite buffers if the calling code is not very careful.
1140In the case of generating a module/table header, use of memmove is a
1141better implementation.
1142
1143
11443) Status of new features that have not been completed at this time:
1145
1146iASL: Implementing an enhanced multiple file compilation into a single
1147namespace feature (Status): This feature will be released soon, and
1148allows multiple ASL files to be compiled into the same single namespace.
1149By doing so, any unresolved external declarations as well as duplicate
1150named object declarations can be detected during compilation (rather than
1151later during runtime). The following commands are examples that utilize
1152this feature:
1153    iasl dsdt.asl ssdt.asl
1154    iasl dsdt.asl ssdt1.asl ssdt2.asl
1155    iasl dsdt.asl ssdt*.asl
1156
1157ASL tutorial status: Feedback is being gathered internally and the
1158current plan is to publish this tutorial on the ACPICA website after a
1159final review by a tech writer.
1160
1161----------------------------------------
116215 February 2019. Summary of changes for version 20190215:
1163
1164
11650) Support for ACPI specification version 6.3:
1166
1167Add PCC operation region support for the AML interpreter. This adds PCC
1168operation region support in the AML interpreter and a default handler for
1169acpiexec. The change also renames the PCC region address space keyword to
1170PlatformCommChannel.
1171
1172Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG.
1173These methods provide OSPM with health information and device boot
1174status.
1175
1176PDTT: Add TriggerOrder to the PCC Identifier structure. The field value
1177defines if the trigger needs to be invoked by OSPM before or at the end
1178of kernel crash dump processing/handling operation.
1179
1180SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT
1181is used for describing devices such as heterogeneous processors,
1182accelerators, GPUs, and IO devices with integrated compute or DMA
1183engines.
1184
1185MADT: Add support for statistical profiling in GICC. Statistical
1186profiling extension (SPE) is an architecture-specific feature for ARM.
1187
1188MADT: Add online capable flag. If this bit is set, system hardware
1189supports enabling this processor during OS runtime.
1190
1191New Error Disconnect Recover Notification value. There are a number of
1192scenarios where system Firmware in collaboration with hardware may
1193disconnect one or more devices from the rest of the system for purposes
1194of error containment. Firmware can use this new notification value to
1195alert OSPM of such a removal.
1196
1197PPTT: New additional fields in Processor Structure Flags. These flags
1198provide more information about processor topology.
1199
1200NFIT/Disassembler: Change a field name from "Address Range" to "Region
1201Type".
1202
1203HMAT updates: make several existing fields to be reserved as well as
1204rename subtable 0 to "memory proximity domain attributes".
1205
1206GTDT: Add support for new GTDT Revision 3. This revision adds information
1207for the EL2 timer.
1208
1209iASL: Update the HMAT example template for new fields.
1210
1211iASL: Add support for the new revision of the GTDT (Rev 3).
1212
1213
12141) ACPICA kernel-resident subsystem:
1215
1216AML Parser: fix the main AML parse loop to correctly skip erroneous
1217extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2-
1218byte extended opcodes. If an error occurs during an AML table load, the
1219AML parser will continue loading the table by skipping the offending
1220opcode. This implements a "load table at any cost" philosophy.
1221
1222
12232) iASL Compiler/Disassembler and Tools:
1224
1225iASL: Add checks for illegal object references, such as a reference
1226outside of method to an object within a method. Such an object is only
1227temporary.
1228
1229iASL: Emit error for creation of a zero-length operation region. Such a
1230region is rather pointless. If encountered, a runtime error is also
1231implemented in the interpreter.
1232
1233Debugger: Fix a possible fault with the "test objects" command.
1234
1235iASL: Makefile: support parent directory filenames containing embedded
1236spaces.
1237
1238iASL: Update the TPM2 template to revision 4.
1239
1240iASL: Add the ability to report specific warnings or remarks as errors.
1241
1242Disassembler: Disassemble OEMx tables as actual AML byte code.
1243Previously, these tables were treated as "unknown table".
1244
1245iASL: Add definition and disassembly for TPM2 revision 3.
1246
1247iASL: Add support for TPM2 rev 3 compilation.
1248
1249
1250----------------------------------------
125108 January 2019. Summary of changes for version 20190108:
1252
1253
12541) ACPICA kernel-resident subsystem:
1255
1256Updated all copyrights to 2019. This affects all source code modules.
1257
1258
12592) iASL Compiler/Disassembler and Tools:
1260
1261ASL test suite (ASLTS): Updated all copyrights to 2019.
1262
1263Tools: Updated all signon copyrights to 2019.
1264
1265AcpiExec: Added a new option to dump extra information concerning any
1266memory leaks detected by the internal object/cache tracking mechanism. -
1267va
1268
1269iASL: Updated the table template for the TPM2 table to the newest version
1270of the table (Revision 4)
1271
1272
1273----------------------------------------
127413 December 2018. Summary of changes for version 20181213:
1275
1276
12771) ACPICA Kernel-resident Subsystem:
1278
1279Fixed some buffer length issues with the GenericSerialBus, related to two
1280of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,
1281which are rarely seen in the field. For these, the LEN field of the ASL
1282buffer is now ignored. Hans de Goede
1283
1284Implemented a new object evaluation trace mechanism for control methods
1285and data objects. This includes nested control methods. It is
1286particularly useful for examining the ACPI execution during system
1287initialization since the output is relatively terse. The flag below
1288enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:
1289   #define ACPI_LV_EVALUATION          0x00080000
1290
1291Examples:
1292   Enter evaluation       :  _SB.PCI0._INI (Method)
1293   Exit evaluation        :  _SB.PCI0._INI
1294   Enter evaluation       :  _OSI (Method)
1295   Exit evaluation        :  _OSI
1296   Enter evaluation       :  _SB.PCI0.TEST (Method)
1297   Nested method call     :     _SB.PCI0.NST1
1298   Exit nested method     :     _SB.PCI0.NST1
1299   Exit evaluation        :  _SB.PCI0.TEST
1300
1301Added two recently-defined _OSI strings. See
1302https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-
1303osi.
1304   "Windows 2018"
1305   "Windows 2018.2"
1306
1307Update for buffer-to-string conversions via the ToHexString ASL operator.
1308A "0x" is now prepended to each of the hex values in the output string.
1309This provides compatibility with other ACPI implementations. The ACPI
1310specification is somewhat vague on this issue.
1311   Example output string after conversion:
1312"0x01,0x02,0x03,0x04,0x05,0x06"
1313
1314Return a run-time error for TermArg expressions within individual package
1315elements. Although this is technically supported by the ASL grammar,
1316other ACPI implementations do not support this either. Also, this fixes a
1317fault if this type of construct is ever encountered (it never has been).
1318
1319
13202) iASL Compiler/Disassembler and Tools:
1321
1322iASL: Implemented a new compile option (-ww) that will promote individual
1323warnings and remarks to errors. This is intended to enhance the firmware
1324build process.
1325
1326AcpiExec: Implemented a new command-line option (-eo) to support the new
1327object evaluation trace mechanism described above.
1328
1329Disassembler: Added support to disassemble OEMx tables as AML/ASL tables
1330instead of a "unknown table" message.
1331
1332AcpiHelp: Improved support for the "special" predefined names such as
1333_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be
1334used for "xx" and "x".
1335
1336----------------------------------------
133731 October 2018. Summary of changes for version 20181031:
1338
1339
1340An Operation Region regression was fixed by properly adding address
1341ranges to a global list during initialization. This allows OS to
1342accurately check for overlapping regions between native devices (such as
1343PCI) and Operation regions as well as checking for region conflicts
1344between two Operation Regions.
1345
1346Added support for the 2-byte extended opcodes in the code/feature that
1347attempts to continue parsing during the table load phase. Skip parsing
1348Device declarations (and other extended opcodes) when an error occurs
1349during parsing. Previously, only single-byte opcodes were supported.
1350
1351Cleanup: Simplified the module-level code support by eliminating a
1352useless global variable (AcpiGbl_GroupModuleLeveCode).
1353
1354
13552) iASL Compiler/Disassembler and Tools:
1356
1357iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE
1358could cause a fault in the preprocessor. This was an inadvertent side-
1359effect from moving more allocations/frees to the local cache/memory
1360mechanism.
1361
1362iASL: Enhanced error detection by validating that all NameSeg elements
1363within a NamePatch actually exist. The previous behavior was spotty at
1364best, and such errors could be improperly ignored at compiler time (never
1365at runtime, however. There are two new error messages, as shown in the
1366examples below:
1367
1368dsdt.asl     33:     CreateByteField (TTTT.BXXX, 1, CBF1)
1369Error    6161 -                              ^ One or more objects within
1370the Pathname do not exist (TTTT.BXXX)
1371
1372dsdt.asl     34:     CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)
1373Error    6160 -        One or more prefix Scopes do not exist ^
1374(BBBB.CBF1)
1375
1376iASL: Disassembler/table-compiler: Added support for the static data
1377table TPM2 revision 3 (an older version of TPM2). The support has been
1378added for the compiler and the disassembler.
1379
1380Fixed compilation of DOS format data table file on Unix/Linux systems.
1381iASL now properly detects line continuations (\) for DOS format data
1382table definition language files on when executing on Unix/Linux.
1383
1384----------------------------------------
138503 October 2018. Summary of changes for version 20181003:
1386
1387
13882) iASL Compiler/Disassembler and Tools:
1389
1390Fixed a regression introduced in version 20180927 that could cause the
1391compiler to fault, especially with NamePaths containing one or more
1392carats (^). Such as: ^^_SB_PCI0
1393
1394Added a new remark for the Sleep() operator when the sleep time operand
1395is larger than one second. This is a very long time for the ASL/BIOS code
1396and may not be what was intended by the ASL writer.
1397
1398----------------------------------------
139927 September 2018. Summary of changes for version 20180927:
1400
1401
14021) ACPICA kernel-resident subsystem:
1403
1404Updated the GPE support to clear the status of all ACPI events when
1405entering any/all sleep states in order to avoid premature wakeups. In
1406theory, this may cause some wakeup events to be missed, but the
1407likelihood of this is small. This change restores the original behavior
1408of the ACPICA code in order to fix a regression seen from the previous
1409"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.
1410This regression could cause some systems to incorrectly wake immediately.
1411
1412Updated the execution of the _REG methods during initialization and
1413namespace loading to bring the behavior into closer conformance to the
1414ACPI specification and other ACPI implementations:
1415
1416From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):
1417    "Control methods must assume all operation regions are inaccessible
1418until the _REG(RegionSpace, 1) method is executed"
1419
1420    "The exceptions to this rule are:
14211.  OSPM must guarantee that the following operation regions are always
1422accessible:
1423    SystemIO operation regions.
1424    SystemMemory operation regions when accessing memory returned by the
1425System Address Map reporting interfaces."
1426
1427Since the state of both the SystemIO and SystemMemory address spaces are
1428defined by the specification to never change, this ACPICA change ensures
1429that now _REG is never called on them. This solves some problems seen in
1430the field and provides compatibility with other ACPI implementations. An
1431update to the upcoming new version of the ACPI specification will help
1432clarify this behavior.
1433
1434Updated the implementation of support for the Generic Serial Bus. For the
1435"bidirectional" protocols, the internal implementation now automatically
1436creates a return data buffer of the maximum size (255). This handles the
1437worst-case for data that is returned from the serial bus handler, and
1438fixes some problems seen in the field. This new buffer is directly
1439returned to the ASL. As such, there is no true "bidirectional" buffer,
1440which matches the ACPI specification. This is the reason for the "double
1441store" seen in the example ASL code in the specification, shown below:
1442
1443Word Process Call (AttribProcessCall):
1444    OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)
1445    Field(TOP1, BufferAcc, NoLock, Preserve)
1446    {
1447        FLD1, 8, // Virtual register at command value 1.
1448    }
1449
1450    Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer
1451                             // as BUFF
1452    CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)
1453
1454    Store(0x5416, DATA)               // Save 0x5416 into the data buffer
1455    Store(Store(BUFF, FLD1), BUFF)    // Invoke a write/read Process Call
1456transaction
1457                           // This is the "double store". The write to
1458                           // FLD1 returns a new buffer, which is stored
1459                           // back into BUFF with the second Store.
1460
1461
14622) iASL Compiler/Disassembler and Tools:
1463
1464iASL: Implemented detection of extraneous/redundant uses of the Offset()
1465operator within a Field Unit list. A remark is now issued for these. For
1466example, the first two of the Offset() operators below are extraneous.
1467Because both the compiler and the interpreter track the offsets
1468automatically, these Offsets simply refer to the current offset and are
1469unnecessary. Note, when optimization is enabled, the iASL compiler will
1470in fact remove the redundant Offset operators and will not emit any AML
1471code for them.
1472
1473    OperationRegion (OPR1, SystemMemory, 0x100, 0x100)
1474    Field (OPR1)
1475    {
1476        Offset (0),     // Never needed
1477        FLD1, 32,
1478        Offset (4),     // Redundant, offset is already 4 (bytes)
1479        FLD2, 8,
1480        Offset (64),    // OK use of Offset.
1481        FLD3, 16,
1482    }
1483dsdt.asl     14:         Offset (0),
1484Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1485operator
1486
1487dsdt.asl     16:         Offset (4),
1488Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1489operator
1490
1491----------------------------------------
149210 August 2018. Summary of changes for version 20180810:
1493
1494
14951) ACPICA kernel-resident subsystem:
1496
1497Initial ACPI table loading: Attempt to continue loading ACPI tables
1498regardless of malformed AML. Since migrating table initialization to the
1499new module-level code support, the AML interpreter rejected tables upon
1500any ACPI error encountered during table load. This is a problem because
1501non-serious ACPI errors during table load do not necessarily mean that
1502the entire definition block (DSDT or SSDT) is invalid. This change
1503improves the table loading by ignoring some types of errors that can be
1504generated by incorrect AML. This can range from object type errors, scope
1505errors, and index errors.
1506
1507Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs
1508during suspend/resume. The status of ACPI events is no longer cleared
1509when entering the ACPI S5 system state (power off) which caused some
1510systems to power up immediately after turning off power in certain
1511situations. This was a functional regression. It was fixed by clearing
1512the status of all ACPI events again when entering S5 (for system-wide
1513suspend or hibernation the clearing of the status of all events is not
1514desirable, as it might cause the kernel to miss wakeup events sometimes).
1515Rafael Wysocki.
1516
1517
15182) iASL Compiler/Disassembler and Tools:
1519
1520AcpiExec: Enhanced the -fi option (Namespace initialization file). Field
1521elements listed in the initialization file were previously initialized
1522after the table load and before executing module-level code blocks.
1523Recent changes in the module-level code support means that the table load
1524becomes a large control method execution. If fields are used within
1525module-level code and we are executing with the -fi option, the
1526initialization values were used to initialize the namespace object(s)
1527only after the table was finished loading. This change Provides an early
1528initialization of objects specified in the initialization file so that
1529field unit values are populated during the table load (not after the
1530load).
1531
1532AcpiExec: Fixed a small memory leak regression that could result in
1533warnings during exit of the utility. These warnings were similar to
1534these:
1535    0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]
1536    0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001
1537
1538----------------------------------------
153929 June 2018. Summary of changes for version 20180629:
1540
1541
15421) iASL Compiler/Disassembler and Tools:
1543
1544iASL: Fixed a regression related to the use of the ASL External
1545statement. Error checking for the use of the External() statement has
1546been relaxed. Previously, a restriction on the use of External meant that
1547the referenced named object was required to be defined in a different
1548table (an SSDT). Thus it would be an error to declare an object as an
1549external and then define the same named object in the same table. For
1550example:
1551    DefinitionBlock (...)
1552    {
1553        External (DEV1)
1554        Device (DEV1){...} // This was an error
1555    }
1556However, this behavior has caused regressions in some existing ASL code,
1557because there is code that depends on named objects and externals (with
1558the same name) being declared in the same table. This change will allow
1559the ASL code above to compile without errors or warnings.
1560
1561iASL: Implemented ASL language extensions for four operators to make some
1562of their arguments optional instead of required:
1563    1) Field (RegionName, AccessType, LockRule, UpdateRule)
1564    2) BankField (RegionName, BankName, BankValue,
1565                AccessType, LockRule, UpdateRule)
1566    3) IndexField (IndexName, DataName,
1567                AccessType, LockRule, UpdateRule)
1568For the Field operators above, the AccessType, LockRule, and UpdateRule
1569are now optional arguments. The default values are:
1570        AccessType: AnyAcc
1571        LockRule:   NoLock
1572        UpdateRule: Preserve
1573    4) Mutex (MutexName, SyncLevel)
1574For this operator, the SyncLevel argument is now optional. This argument
1575is rarely used in any meaningful way by ASL code, and thus it makes sense
1576to make it optional. The default value is:
1577        SyncLevel:  0
1578
1579iASL: Attempted use of the ASL Unload() operator now results in the
1580following warning:
1581    "Unload is not supported by all operating systems"
1582This is in fact very true, and the Unload operator may be completely
1583deprecated in the near future.
1584
1585AcpiExec: Fixed a regression for the -fi option (Namespace initialization
1586file. Recent changes in the ACPICA module-level code support altered the
1587table load/initialization sequence . This means that the table load has
1588become a large method execution of the table itself. If Operation Region
1589Fields are used within any module-level code and the -fi option was
1590specified, the initialization values were populated only after the table
1591had completely finished loading (and thus the module-level code had
1592already been executed). This change moves the initialization of objects
1593listed in the initialization file to before the table is executed as a
1594method. Field unit values are now initialized before the table execution
1595is performed.
1596
1597----------------------------------------
159831 May 2018. Summary of changes for version 20180531:
1599
1600
16011) ACPICA kernel-resident Subsystem:
1602
1603Implemented additional support to help ensure that a DSDT or SSDT is
1604fully loaded even if errors are incurred during the load. The majority of
1605the problems that are seen is the failure of individual AML operators
1606that occur during execution of any module-level code (MLC) existing in
1607the table. This support adds a mechanism to abort the current ASL
1608statement (AML opcode), emit an error message, and to simply move on to
1609the next opcode -- instead of aborting the entire table load. This is
1610different than the execution of a control method where the entire method
1611is aborted upon any error. The goal is to perform a very "best effort" to
1612load the ACPI tables. The most common MLC errors that have been seen in
1613the field are direct references to unresolved ASL/AML symbols (referenced
1614directly without the use of the CondRefOf operator to validate the
1615symbol). This new ACPICA behavior is now compatible with other ACPI
1616implementations.
1617
1618Interpreter: The Unload AML operator is no longer supported for the
1619reasons below. An AE_NOT_IMPLEMENTED exception is returned.
16201) A correct implementation on at least some hosts may not be possible.
16212) Other ACPI implementations do not correctly/fully support it.
16223) It requires host device driver support which is not known to exist.
1623    (To properly support namespace unload out from underneath.)
16244) This AML operator has never been seen in the field.
1625
1626Parser: Added a debug option to dump AML parse sub-trees as they are
1627being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is
1628ACPI_DB_PARSE_TREES.
1629
1630Debugger: Reduced the verbosity for errors incurred during table load and
1631module-level code execution.
1632
1633Completed an investigation into adding a namespace node "owner list"
1634instead of the current "owner ID" associated with namespace nodes. This
1635list would link together all nodes that are owned by an individual
1636control method. The purpose would be to enhance control method execution
1637by speeding up cleanup during method exit (all namespace nodes created by
1638a method are deleted upon method termination.) Currently, the entire
1639namespace must be searched for matching owner IDs if (and only if) the
1640method creates named objects outside of the local scope. However, by far
1641the most common case is that methods create objects locally, not outside
1642the method scope. There is already an ACPICA optimization in place that
1643only searches the entire namespace in the rare case of a method creating
1644objects elsewhere in the namespace. Therefore, it is felt that the
1645overhead of adding an additional pointer to each namespace node to
1646implement the owner list makes this feature unnecessary.
1647
1648
16492) iASL Compiler/Disassembler and Tools:
1650
1651iASL, Disassembler, and Template generator: Implemented support for
1652Revision D of the IORT table. Adds a new subtable that is used to specify
1653SMMUv3 PMCGs. rmurphy-arm.
1654
1655Disassembler: Restored correct table header validation for the "special"
1656ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI
1657table header and must be special-cased. This was a regression that has
1658been present for apparently a long time.
1659
1660AcpiExec: Reduced verbosity of the local exception handler implemented
1661within acpiexec. This handler is invoked by ACPICA upon any exceptions
1662generated during control method execution. A new option was added: -vh
1663restores the original verbosity level if desired.
1664
1665AcpiExec: Changed the default base from decimal to hex for the -x option
1666(set debug level). This simplifies the use of this option and matches the
1667behavior of the corresponding iASL -x option.
1668
1669AcpiExec: Restored a force-exit on multiple control-c (sigint)
1670interrupts. This allows program termination even if other issues cause
1671the control-c to fail.
1672
1673ASL test suite (ASLTS): Added tests for the recently implemented package
1674element resolution mechanism that allows forward references to named
1675objects from individual package elements (this mechanism provides
1676compatibility with other ACPI implementations.)
1677
1678
1679----------------------------------------
16808 May 2018. Summary of changes for version 20180508:
1681
1682
16831) ACPICA kernel-resident subsystem:
1684
1685Completed the new (recently deployed) package resolution mechanism for
1686the Load and LoadTable ASL/AML operators. This fixes a regression that
1687was introduced in version 20180209 that could result in an
1688AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table
1689(SSDT) that contains package objects.
1690
1691
16922) iASL Compiler/Disassembler and Tools:
1693
1694AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than
16951 MB. This change allows for table offsets within the acpidump file to be
1696up to 8 characters. These changes are backwards compatible with existing
1697acpidump files.
1698
1699
1700----------------------------------------
170127 April 2018. Summary of changes for version 20180427:
1702
1703
17041) ACPICA kernel-resident subsystem:
1705
1706Debugger: Added support for Package objects in the "Test Objects"
1707command. This command walks the entire namespace and evaluates all named
1708data objects (Integers, Strings, Buffers, and now Packages).
1709
1710Improved error messages for the namespace root node. Originally, the root
1711was referred to by the confusing string "\___". This has been replaced by
1712"Namespace Root" for clarification.
1713
1714Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin
1715Ian King <colin.king@canonical.com>.
1716
1717
17182) iASL Compiler/Disassembler and Tools:
1719
1720iASL: Implemented support to detect and flag illegal forward references.
1721For compatibility with other ACPI implementations, these references are
1722now illegal at the root level of the DSDT or SSDTs. Forward references
1723have always been illegal within control methods. This change should not
1724affect existing ASL/AML code because of the fact that these references
1725have always been illegal in the other ACPI implementation.
1726
1727iASL: Added error messages for the case where a table OEM ID and OEM
1728TABLE ID strings are longer than the ACPI-defined length. Previously,
1729these strings were simply silently truncated.
1730
1731iASL: Enhanced the -tc option (which creates an AML hex file in C,
1732suitable for import into a firmware project):
1733  1) Create a unique name for the table, to simplify use of multiple
1734SSDTs.
1735  2) Add a protection #ifdef in the file, similar to a .h header file.
1736With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd,
1737evan.lloyd@arm.com
1738
1739AcpiExec: Added a new option, -df, to disable the local fault handler.
1740This is useful during debugging, where it may be desired to drop into a
1741debugger on a fault.
1742
1743----------------------------------------
174413 March 2018. Summary of changes for version 20180313:
1745
1746
17471) ACPICA kernel-resident subsystem:
1748
1749Implemented various improvements to the GPE support:
1750
17511) Dispatch all active GPEs at initialization time so that no GPEs are
1752lost.
17532) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled
1754before devices are enumerated.
17553) Don't unconditionally clear ACPI IRQs during suspend/resume, so that
1756IRQs are not lost.
17574) Add parallel GPE handling to eliminate the possibility of dispatching
1758the same GPE twice.
17595) Dispatch any pending GPEs after enabling for the first time.
1760
1761AcpiGetObjectInfo - removed support for the _STA method. This was causing
1762problems on some platforms.
1763
1764Added a new _OSI string, "Windows 2017.2".
1765
1766Cleaned up and simplified the module-level code support. These changes
1767are in preparation for the eventual removal of the legacy MLC support
1768(deferred execution), replaced by the new MLC architecture which executes
1769the MLC as a table is loaded (DSDT/SSDTs).
1770
1771Changed a compile-time option to a runtime option. Changes the option to
1772ignore ACPI table load-time package resolution errors into a runtime
1773option. Used only for platforms that generate many AE_NOT_FOUND errors
1774during boot. AcpiGbl_IgnorePackageResolutionErrors.
1775
1776Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some
1777ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid
1778compilation errors from unused variables (seen with some compilers).
1779
1780
17812) iASL Compiler/Disassembler and Tools:
1782
1783ASLTS: parallelized execution in order to achieve an (approximately) 2X
1784performance increase.
1785
1786ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves
1787error reporting.
1788
1789----------------------------------------
179009 February 2018. Summary of changes for version 20180209:
1791
1792
17931) ACPICA kernel-resident subsystem:
1794
1795Completed the final integration of the recent changes to Package Object
1796handling and the module-level AML code support. This allows forward
1797references from individual package elements when the package object is
1798declared from within module-level code blocks. Provides compatibility
1799with other ACPI implementations.
1800
1801The new architecture for the AML module-level code has been completed and
1802is now the default for the ACPICA code. This new architecture executes
1803the module-level code in-line as the ACPI table is loaded/parsed instead
1804of the previous architecture which deferred this code until after the
1805table was fully loaded. This solves some ASL code ordering issues and
1806provides compatibility with other ACPI implementations. At this time,
1807there is an option to fallback to the earlier architecture, but this
1808support is deprecated and is planned to be completely removed later this
1809year.
1810
1811Added a compile-time option to ignore AE_NOT_FOUND exceptions during
1812resolution of named reference elements within Package objects. Although
1813this is potentially a serious problem, it can generate a lot of
1814noise/errors on platforms whose firmware carries around a bunch of unused
1815Package objects. To disable these errors, define
1816ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All
1817errors are always reported for ACPICA applications such as AcpiExec.
1818
1819Fixed a regression related to the explicit type-conversion AML operators
1820(ToXXXX). The regression was introduced early in 2017 but was not seen
1821until recently because these operators are not fully supported by other
1822ACPI implementations and are thus rarely used by firmware developers. The
1823operators are defined by the ACPI specification to not implement the
1824"implicit result object conversion". The regression incorrectly
1825introduced this object conversion for the following explicit conversion
1826operators:
1827    ToInteger
1828    ToString
1829    ToBuffer
1830    ToDecimalString
1831    ToHexString
1832    ToBCD
1833    FromBCD
1834
1835
18362) iASL Compiler/Disassembler and Tools:
1837
1838iASL: Fixed a problem with the compiler constant folding feature as
1839related to the ToXXXX explicit conversion operators. These operators do
1840not support the "implicit result object conversion" by definition. Thus,
1841ASL expressions that use these operators cannot be folded to a simple
1842Store operator because Store implements the implicit conversion. This
1843change uses the CopyObject operator for the ToXXXX operator folding
1844instead. CopyObject is defined to not implement implicit result
1845conversions and is thus appropriate for folding the ToXXXX operators.
1846
1847iASL: Changed the severity of an error condition to a simple warning for
1848the case where a symbol is declared both locally and as an external
1849symbol. This accommodates existing ASL code.
1850
1851AcpiExec: The -ep option to enable the new architecture for module-level
1852code has been removed. It is replaced by the -dp option which instead has
1853the opposite effect: it disables the new architecture (the default) and
1854enables the legacy architecture. When the legacy code is removed in the
1855future, the -dp option will be removed also.
1856
1857----------------------------------------
185805 January 2018. Summary of changes for version 20180105:
1859
1860
18611) ACPICA kernel-resident subsystem:
1862
1863Updated all copyrights to 2018. This affects all source code modules.
1864
1865Fixed a possible build error caused by an unresolved reference to the
1866AcpiUtSafeStrncpy function.
1867
1868Removed NULL pointer arithmetic in the various pointer manipulation
1869macros. All "(void *) NULL" constructs are converted to "(void *) 0".
1870This eliminates warnings/errors in newer C compilers. Jung-uk Kim.
1871
1872Added support for A32 ABI compilation, which uses the ILP32 model. Anuj
1873Mittal.
1874
1875
18762) iASL Compiler/Disassembler and Tools:
1877
1878ASLTS: Updated all copyrights to 2018.
1879
1880Tools: Updated all signon copyrights to 2018.
1881
1882AcpiXtract: Fixed a regression related to ACPI table signatures where the
1883signature was truncated to 3 characters (instead of 4).
1884
1885AcpiExec: Restore the original terminal mode after the use of the -v and
1886-vd options.
1887
1888ASLTS: Deployed the iASL __METHOD__ macro across the test suite.
1889
1890----------------------------------------
189114 December 2017. Summary of changes for version 20171214:
1892
1893
18941) ACPICA kernel-resident subsystem:
1895
1896Fixed a regression in the external (public) AcpiEvaluateObjectTyped
1897interface where the optional "pathname" argument had inadvertently become
1898a required argument returning an error if omitted (NULL pointer
1899argument).
1900
1901Fixed two possible memory leaks related to the recently developed "late
1902resolution" of reference objects within ASL Package Object definitions.
1903
1904Added two recently defined _OSI strings: "Windows 2016" and "Windows
19052017". Mario Limonciello.
1906
1907Implemented and deployed a safer version of the C library function
1908strncpy:  AcpiUtSafeStrncpy. The intent is to at least prevent the
1909creation of unterminated strings as a possible result of a standard
1910strncpy.
1911
1912Cleaned up and restructured the global variable file (acglobal.h). There
1913are many changes, but no functional changes.
1914
1915
19162) iASL Compiler/Disassembler and Tools:
1917
1918iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the
1919optional OemData field at the end of the table was incorrectly required
1920for proper compilation. It is now correctly an optional field.
1921
1922ASLTS: The entire suite was converted from standard ASL to the ASL+
1923language, using the ASL-to-ASL+ converter which is integrated into the
1924iASL compiler. A binary compare of all output files has verified the
1925correctness of the conversion.
1926
1927iASL: Fixed the source code build for platforms where "char" is unsigned.
1928This affected the iASL lexer only. Jung-uk Kim.
1929
1930----------------------------------------
193110 November 2017. Summary of changes for version 20171110:
1932
1933
19341) ACPICA kernel-resident subsystem:
1935
1936This release implements full support for ACPI 6.2A:
1937    NFIT - Added a new subtable, "Platform Capabilities Structure"
1938No other changes to ACPICA were required, since ACPI 6.2A is primarily an
1939errata release of the specification.
1940
1941Other ACPI table changes:
1942    IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo
1943    PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy
1944Linton
1945
1946Utilities: Modified the string/integer conversion functions to use
1947internal 64-bit divide support instead of a native divide. On 32-bit
1948platforms, a 64-bit divide typically requires a library function which
1949may not be present in the build (kernel or otherwise).
1950
1951Implemented a targeted error message for timeouts returned from the
1952Embedded Controller device driver. This is seen frequently enough to
1953special-case an AE_TIME returned from an EC operation region access:
1954    "Timeout from EC hardware or EC device driver"
1955
1956Changed the "ACPI Exception" message prefix to "ACPI Error" so that all
1957runtime error messages have the identical prefix.
1958
1959
19602) iASL Compiler/Disassembler and Tools:
1961
1962AcpiXtract: Fixed a problem with table header detection within the
1963acpidump file. Processing a table could be ended early if a 0x40 (@)
1964appears in the original binary table, resulting in the @ symbol appearing
1965in the decoded ASCII field at the end of the acpidump text line. The
1966symbol caused acpixtract to incorrectly think it had reached the end of
1967the current table and the beginning of a new table.
1968
1969AcpiXtract: Added an option (-f) to ignore some errors during table
1970extraction. This initial implementation ignores non-ASCII and non-
1971printable characters found in the acpidump text file.
1972
1973TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics
1974for ASLTS. This feature is used to track memory allocations from
1975different memory caches within the ACPICA code. At the end of an ASLTS
1976run, these memory statistics are recorded and stored in a log file.
1977
1978Debugger (user-space version): Implemented a simple "Background" command.
1979Creates a new thread to execute a control method in the background, while
1980control returns to the debugger prompt to allow additional commands.
1981    Syntax: Background <Namepath> [Arguments]
1982
1983----------------------------------------
198429 September 2017. Summary of changes for version 20170929:
1985
1986
19871) ACPICA kernel-resident subsystem:
1988
1989Redesigned and implemented an improved ASL While() loop timeout
1990mechanism. This mechanism is used to prevent infinite loops in the kernel
1991AML interpreter caused by either non-responsive hardware or incorrect AML
1992code. The new implementation uses AcpiOsGetTimer instead of a simple
1993maximum loop count, and is thus more accurate and constant across
1994different machines. The default timeout is currently 30 seconds, but this
1995may be adjusted later.
1996
1997Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to
1998better reflect the new implementation of the loop timeout mechanism.
1999
2000Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support
2001and to fix an off-by-one error. Jung-uk Kim.
2002
2003Fixed an EFI build problem by updating the makefiles to for a new file
2004that was added, utstrsuppt.c
2005
2006
20072) iASL Compiler/Disassembler and Tools:
2008
2009Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This
2010includes support in the table disassembler, compiler, and template
2011generator.
2012
2013iASL: Added an exception for an illegal type of recursive method
2014invocation. If a method creates named objects, the first recursive call
2015will fail at runtime. This change adds an error detection at compile time
2016to catch the problem up front. Note: Marking such a method as
2017"serialized" will not help with this problem, because the same thread can
2018acquire the method mutex more than once. Example compiler and runtime
2019output:
2020
2021    Method (MTH1)
2022    {
2023        Name (INT1, 1)
2024        MTH1 ()
2025    }
2026
2027    dsdt.asl     22: MTH1 ()
2028    Error    6152 -  ^ Illegal recursive call to method
2029                       that creates named objects (MTH1)
2030
2031Previous runtime exception:
2032    ACPI Error: [INT1] Namespace lookup failure,
2033    AE_ALREADY_EXISTS (20170831/dswload2-465)
2034
2035iASL: Updated support for External() opcodes to improve namespace
2036management and error detection. These changes are related to issues seen
2037with multiple-segment namespace pathnames within External declarations,
2038such as below:
2039
2040    External(\_SB.PCI0.GFX0, DeviceObj)
2041    External(\_SB.PCI0.GFX0.ALSI)
2042
2043iASL: Implemented support for multi-line error/warning messages. This
2044enables more detailed and helpful error messages as below, from the
2045initial deployment for the duplicate names error:
2046
2047    DSDT.iiii   1692:       Device(PEG2) {
2048    Error    6074 -                  ^ Name already exists in scope
2049(PEG2)
2050
2051        Original name creation/declaration below:
2052        DSDT.iiii     93:   External(\_SB.PCI0.PEG2, DeviceObj)
2053
2054AcpiXtract: Added additional flexibility to support differing input hex
2055dump formats. Specifically, hex dumps that contain partial disassembly
2056and/or comments within the ACPI table data definition. There exist some
2057dump utilities seen in the field that create this type of hex dump (such
2058as Simics). For example:
2059
2060    DSDT @ 0xdfffd0c0 (10999 bytes)
2061        Signature DSDT
2062        Length 10999
2063        Revision 1
2064        Checksum 0xf3 (Ok)
2065        OEM_ID BXPC
2066        OEM_table_id BXDSDT
2067        OEM_revision 1
2068        Creator_id 1280593481
2069        Creator_revision 537399345
2070      0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00
2071      ...
2072      2af0: 5f 4c 30 46 00 a4 01
2073
2074Test suite: Miscellaneous changes/fixes:
2075    More cleanup and simplification of makefiles
2076    Continue compilation of test cases after a compile failure
2077    Do not perform binary compare unless both files actually exist
2078
2079iASL: Performed some code/module restructuring. Moved all memory
2080allocation functions to new modules. Two new files, aslallocate.c and
2081aslcache.c
2082
2083----------------------------------------
208431 August 2017. Summary of changes for version 20170831:
2085
2086
20871) ACPICA kernel-resident subsystem:
2088
2089Implemented internal support for full 64-bit addresses that appear in all
2090Generic Address Structure (GAS) structures. Previously, only the lower 32
2091bits were used. Affects the use of GAS structures in the FADT and other
2092tables, as well as the GAS structures passed to the AcpiRead and
2093AcpiWrite public external interfaces that are used by drivers. Lv Zheng.
2094
2095Added header support for the PDTT ACPI table (Processor Debug Trigger
2096Table). Full support in the iASL Data Table Compiler and disassembler is
2097forthcoming.
2098
2099
21002) iASL Compiler/Disassembler and Tools:
2101
2102iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor
2103Properties Topology Table) where a flag bit was specified in the wrong
2104bit position ("Line Size Valid", bit 6).
2105
2106iASL: Implemented support for Octal integer constants as defined by the
2107ASL language grammar, per the ACPI specification. Any integer constant
2108that starts with a zero is an octal constant. For example,
2109    Store (037777, Local0) /* Octal constant */
2110    Store (0x3FFF, Local0) /* Hex equivalent */
2111    Store (16383,  Local0) /* Decimal equivalent */
2112
2113iASL: Improved overflow detection for 64-bit string conversions during
2114compilation of integer constants. "Overflow" in this case means a string
2115that represents an integer that is too large to fit into a 64-bit value.
2116Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to
2117the low-order 32 bits with a warning, as previously implemented. Several
2118new exceptions are defined that indicate a 64-bit overflow, as well as
2119the base (radix) that was used during the attempted conversion. Examples:
2120    Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF        // AE_HEX_OVERFLOW
2121    Local0 = 01111222233334444555566667777     // AE_OCTAL_OVERFLOW
2122    Local0 = 11112222333344445555666677778888  // AE_DECIMAL_OVERFLOW
2123
2124iASL: Added a warning for the case where a ResourceTemplate is declared
2125with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In
2126this case, the resulting template is created with a single END_TAG
2127descriptor, which is essentially useless.
2128
2129iASL: Expanded the -vw option (ignore specific warnings/remarks) to
2130include compilation error codes as well.
2131
2132----------------------------------------
213328 July 2017. Summary of changes for version 20170728:
2134
2135
21361) ACPICA kernel-resident subsystem:
2137
2138Fixed a regression seen with small resource descriptors that could cause
2139an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.
2140
2141AML interpreter: Implemented a new feature that allows forward references
2142from individual named references within package objects that are
2143contained within blocks of "module-level code". This provides
2144compatibility with other ACPI implementations and supports existing
2145firmware that depends on this feature. Example:
2146
2147    Name (ABCD, 1)
2148    If (ABCD)                       /* An If() at module-level */
2149    {
2150        Name (PKG1, Package()
2151        {
2152            INT1                    /* Forward reference to object INT1
2153*/
2154        })
2155        Name (INT1, 0x1234)
2156    }
2157
2158AML Interpreter: Fixed a problem with the Alias() operator where aliases
2159to some ASL objects were not handled properly. Objects affected are:
2160Mutex, Event, and OperationRegion.
2161
2162AML Debugger: Enhanced to properly handle AML Alias objects. These
2163objects have one level of indirection which was not fully supported by
2164the debugger.
2165
2166Table Manager: Added support to detect and ignore duplicate SSDTs within
2167the XSDT/RSDT. This error in the XSDT has been seen in the field.
2168
2169EFI and EDK2 support:
2170    Enabled /WX flag for MSVC builds
2171    Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer
2172    Added local support for 64-bit multiply and shift operations
2173    Added support to compile acpidump.efi on Windows
2174    Added OSL function stubs for interfaces not used under EFI
2175
2176Added additional support for the _DMA predefined name. _DMA returns a
2177buffer containing a resource template. This change add support within the
2178resource manager (AcpiWalkResourceBuffer) to walk and parse this list of
2179resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2180
2181
21822) iASL Compiler/Disassembler and Tools:
2183
2184iASL: Fixed a problem where the internal input line buffer(s) could
2185overflow if there are very long lines in the input ASL source code file.
2186Implemented buffer management that automatically increases the size of
2187the buffers as necessary.
2188
2189iASL: Added an option (-vx) to "expect" particular remarks, warnings and
2190errors. If the specified exception is not raised during compilation, the
2191compiler emits an error. This is intended to support the ASL test suite,
2192but may be useful in other contexts.
2193
2194iASL: Implemented a new predefined macro, __METHOD__, which returns a
2195string containing the name of the current control method that is being
2196compiled.
2197
2198iASL: Implemented debugger and table compiler support for the SDEI ACPI
2199table (Software Delegated Exception Interface). James Morse
2200<james.morse@arm.com>
2201
2202Unix/Linux makefiles: Added an option to disable compile optimizations.
2203The disable occurs when the NOOPT flag is set to TRUE.
2204theracermaster@gmail.com
2205
2206Acpidump: Added support for multiple DSDT and FACS tables. This can occur
2207when there are different tables for 32-bit versus 64-bit.
2208
2209Enhanced error reporting for the ASL test suite (ASLTS) by removing
2210unnecessary/verbose text, and emit the actual line number where an error
2211has occurred. These changes are intended to improve the usefulness of the
2212test suite.
2213
2214----------------------------------------
221529 June 2017. Summary of changes for version 20170629:
2216
2217
22181) ACPICA kernel-resident subsystem:
2219
2220Tables: Implemented a deferred ACPI table verification. This is useful
2221for operating systems where the tables cannot be verified in the early
2222initialization stage due to early memory mapping limitations on some
2223architectures. Lv Zheng.
2224
2225Tables: Removed the signature validation for dynamically loaded tables.
2226Provides compatibility with other ACPI implementations. Previously, only
2227SSDT tables were allowed, as per the ACPI specification. Now, any table
2228signature can be used via the Load() operator. Lv Zheng.
2229
2230Tables: Fixed several mutex issues that could cause errors during table
2231acquisition. Lv Zheng.
2232
2233Tables: Fixed a problem where an ACPI warning could be generated if a
2234null pointer was passed to the AcpiPutTable interface. Lv Zheng.
2235
2236Tables: Added a mechanism to handle imbalances for the AcpiGetTable and
2237AcpiPutTable interfaces. This applies to the "late stage" table loading
2238when the use of AcpiPutTable is no longer required (since the system
2239memory manager is fully running and available). Lv Zheng.
2240
2241Fixed/Reverted a regression during processing of resource descriptors
2242that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG
2243exception in this case.
2244
2245Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the
2246I/O Remapping specification. Robin Murphy <robin.murphy@arm.com>
2247
2248Interpreter: Fixed a possible fault if an Alias operator with an invalid
2249or duplicate target is encountered during Alias creation in
2250AcpiExCreateAlias. Alex James <theracermaster@gmail.com>
2251
2252Added an option to use designated initializers for function pointers.
2253Kees Cook <keescook@google.com>
2254
2255
22562) iASL Compiler/Disassembler and Tools:
2257
2258iASL: Allow compilation of External declarations with target pathnames
2259that refer to existing named objects within the table. Erik Schmauss.
2260
2261iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a
2262FieldUnit name also is declared via External in the same table. Erik
2263Schmauss.
2264
2265iASL: Allow existing scope names within pathnames used in External
2266statements. For example:
2267    External (ABCD.EFGH) // ABCD exists, but EFGH is truly external
2268    Device (ABCD)
2269
2270iASL: IORT ACPI table: Implemented changes required to decode the new
2271Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table
2272compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
2273
2274Disassembler: Don't abort disassembly on errors from External()
2275statements. Erik Schmauss.
2276
2277Disassembler: fixed a possible fault when one of the Create*Field
2278operators references a Resource Template. ACPICA Bugzilla 1396.
2279
2280iASL: In the source code, resolved some naming inconsistences across the
2281parsing support. Fixes confusion between "Parse Op" and "Parse Node".
2282Adds a new file, aslparseop.c
2283
2284----------------------------------------
228531 May 2017. Summary of changes for version 20170531:
2286
2287
22880) ACPI 6.2 support:
2289
2290The ACPI specification version 6.2 has been released and is available at
2291http://uefi.org/specifications
2292
2293This version of ACPICA fully supports the ACPI 6.2 specification. Changes
2294are summarized below.
2295
2296New ACPI tables (Table Compiler/Disassembler/Templates):
2297    HMAT (Heterogeneous Memory Attributes Table)
2298    WSMT (Windows SMM Security Mitigation Table)
2299    PPTT (Processor Properties Topology Table)
2300
2301New subtables for existing ACPI tables:
2302    HEST (New subtable, Arch-deferred machine check)
2303    SRAT (New subtable, Arch-specific affinity structure)
2304    PCCT (New subtables, Extended PCC subspaces (types 3 and 4))
2305
2306Simple updates for existing ACPI tables:
2307    BGRT (two new flag bits)
2308    HEST (New bit defined for several subtables, GHES_ASSIST)
2309
2310New Resource Descriptors and Resource macros (Compiler/Disassembler):
2311    PinConfig()
2312    PinFunction()
2313    PinGroup()
2314    PinGroupConfig()
2315    PinGroupFunction()
2316    New type for hardware error notification (section 18.3.2.9)
2317
2318New predefined names/methods (Compiler/Interpreter):
2319    _HMA (Heterogeneous Memory Attributes)
2320    _LSI (Label Storage Information)
2321    _LSR (Label Storage Read)
2322    _LSW (Label Storage Write)
2323
2324ASL grammar/macro changes (Compiler):
2325    For() ASL macro, implemented with the AML while operator
2326    Extensions to Concatenate operator
2327    Support for multiple definition blocks in same ASL file
2328    Clarification for Buffer operator
2329    Allow executable AML code underneath all scopes (Devices, etc.)
2330    Clarification/change for the _OSI return value
2331    ASL grammar update for reference operators
2332    Allow a zero-length string for AML filename in DefinitionBlock
2333
2334Miscellaneous:
2335    New device object notification value
2336    Remove a notify value (0x0C) for graceful shutdown
2337    New UUIDs for processor/cache properties and
2338        physical package property
2339    New _HID, ACPI0014 (Wireless Power Calibration Device)
2340
2341
23421) ACPICA kernel-resident subsystem:
2343
2344Added support to disable ACPI events on hardware-reduced platforms.
2345Eliminates error messages of the form "Could not enable fixed event". Lv
2346Zheng
2347
2348Fixed a problem using Device/Thermal objects with the ObjectType and
2349DerefOf ASL operators. This support had not been fully/properly
2350implemented.
2351
2352Fixed a problem where if a Buffer object containing a resource template
2353was longer than the actual resource template, an error was generated --
2354even though the AML is legal. This case has been seen in the field.
2355
2356Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.
2357The values for DUAL_PIC and MULTIPLE_APIC were reversed.
2358
2359Added header file changes for the TPM2 ACPI table. Update to new version
2360of the TCG specification. Adds a new TPM2 subtable for ARM SMC.
2361
2362Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.
2363These interfaces are intended to be used only in conjunction with the
2364predefined _DLM method (Device Lock Method). "This object appears in a
2365device scope when AML access to the device must be synchronized with the
2366OS environment".
2367
2368Example Code and Data Size: These are the sizes for the OS-independent
2369acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2370debug version of the code includes the debug output trace mechanism and
2371has a much larger code and data size.
2372
2373  Current Release:
2374    Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total
2375    Debug Version:     204.0K Code, 84.3K Data, 288.3K Total
2376  Previous Release:
2377    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2378    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2379
2380
23812) iASL Compiler/Disassembler and Tools:
2382
2383iASL: Fixed a problem where an External() declaration could not refer to
2384a Field Unit. Erik Schmauss.
2385
2386Disassembler: Improved support for the Switch/Case operators. This
2387feature will disassemble AML code back to the original Switch operators
2388when possible, instead of an If..Else sequence. David Box
2389
2390iASL and disassembler: Improved the handling of multiple extraneous
2391parentheses for both ASL input and disassembled ASL output.
2392
2393Improved the behavior of the iASL compiler and disassembler to detect
2394improper use of external declarations
2395
2396Disassembler: Now aborts immediately upon detection of an unknown AML
2397opcode. The AML parser has no real way to recover from this, and can
2398result in the creation of an ill-formed parse tree that causes errors
2399later during the disassembly.
2400
2401All tools: Fixed a problem where the Unix application OSL did not handle
2402control-c correctly. For example, a control-c could incorrectly wake the
2403debugger.
2404
2405AcpiExec: Improved the Control-C handling and added a handler for
2406segmentation faults (SIGSEGV). Supports both Windows and Unix-like
2407environments.
2408
2409Reduced the verbosity of the generic unix makefiles. Previously, each
2410compilation displayed the full set of compiler options. This has been
2411eliminated as the options are easily inspected within the makefiles. Each
2412compilation now results in a single line of output.
2413
2414----------------------------------------
241503 March 2017. Summary of changes for version 20170303:
2416
2417
24180) ACPICA licensing:
2419
2420The licensing information at the start of each source code module has
2421been updated. In addition to the Intel license, the dual GPLv2/BSD
2422license has been added for completeness. Now, a single version of the
2423source code should be suitable for all ACPICA customers. This is the
2424major change for this release since it affects all source code modules.
2425
2426
24271) ACPICA kernel-resident subsystem:
2428
2429Fixed two issues with the common asltypes.h header that could cause
2430problems in some environments: (Kim Jung-uk)
2431    Removed typedef for YY_BUFFER_STATE ?
2432       Fixes an error with earlier versions of Flex.
2433    Removed use of FILE typedef (which is only defined in stdio.h)
2434
2435
24362) iASL Compiler/Disassembler and Tools:
2437
2438Disassembler: fixed a regression introduced in 20170224. A fix for a
2439memory leak related to resource descriptor tags (names) could fault when
2440the disassembler was generated with 64-bit compilers.
2441
2442The ASLTS test suite has been updated to implement a new testing
2443architecture. During generation of the suite from ASL source, both the
2444ASL and ASL+ compilers are now validated, as well as the disassembler
2445itself (Erik Schmauss). The architecture executes as follows:
2446
2447    For every ASL source module:
2448        Compile (legacy ASL compilation)
2449        Disassemble the resulting AML to ASL+ source code
2450        Compile the new ASL+ module
2451        Perform a binary compare on the legacy AML and the new ASL+ AML
2452    The ASLTS suite then executes normally using the AML binaries.
2453
2454----------------------------------------
245524 February 2017. Summary of changes for version 20170224:
2456
2457
24581) ACPICA kernel-resident subsystem:
2459
2460Interpreter: Fixed two issues with the control method return value auto-
2461repair feature, where an attempt to double-delete an internal object
2462could result in an ACPICA warning (for _CID repair and others). No fault
2463occurs, however, because the attempted deletion (actually a release to an
2464internal cache) is detected and ignored via object poisoning.
2465
2466Debugger: Fixed an AML interpreter mutex issue during the single stepping
2467of control methods. If certain debugger commands are executed during
2468stepping, a mutex acquire/release error could occur. Lv Zheng.
2469
2470Fixed some issues generating ACPICA with the Intel C compiler by
2471restoring the original behavior and compiler-specific include file in
2472acenv.h. Lv Zheng.
2473
2474Example Code and Data Size: These are the sizes for the OS-independent
2475acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2476debug version of the code includes the debug output trace mechanism and
2477has a much larger code and data size.
2478
2479  Current Release:
2480    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2481    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2482  Previous Release:
2483    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2484    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2485
2486
24872) iASL Compiler/Disassembler and Tools:
2488
2489iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion
2490tool has been designed, implemented, and included in this release. The
2491key feature of this utility is that the original comments within the
2492input ASL file are preserved during the conversion process, and included
2493within the converted ASL+ file -- thus creating a transparent conversion
2494of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.
2495
2496    Usage: iasl -ca <ASL-filename>  // Output is a .dsl file with
2497converted code
2498
2499iASL/Disassembler: Improved the detection and correct disassembly of
2500Switch/Case operators. This feature detects sequences of if/elseif/else
2501operators that originated from ASL Switch/Case/Default operators and
2502emits the original operators. David Box.
2503
2504iASL: Improved the IORT ACPI table support in the following areas. Lv
2505Zheng:
2506    Clear MappingOffset if the MappingCount is zero.
2507    Fix the disassembly of the SMMU GSU interrupt offset.
2508    Update the template file for the IORT table.
2509
2510Disassembler: Enhanced the detection and disassembly of resource
2511template/descriptor within a Buffer object. An EndTag descriptor is now
2512required to have a zero second byte, since all known ASL compilers emit
2513this. This helps eliminate incorrect decisions when a buffer is
2514disassembled (false positives on resource templates).
2515
2516----------------------------------------
251719 January 2017. Summary of changes for version 20170119:
2518
2519
25201) General ACPICA software:
2521
2522Entire source code base: Added the 2017 copyright to all source code
2523legal/licensing module headers and utility/tool signons. This includes
2524the standard Linux dual-license header. This affects virtually every file
2525in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
2526the ACPICA test suite.
2527
2528
25292) iASL Compiler/Disassembler and Tools:
2530
2531iASL: Removed/fixed an inadvertent remark when a method argument
2532containing a reference is used as a target operand within the method (and
2533never used as a simple argument), as in the example below. Jeffrey Hugo.
2534
2535    dsdt.asl   1507:    Store(0x1, Arg0)
2536    Remark   2146 -                ^ Method Argument is never used (Arg0)
2537
2538All tools: Removed the bit width of the compiler that generated the tool
2539from the common signon for all user space tools. This proved to be
2540confusing and unnecessary. This includes similar removal of HARDWARE_NAME
2541from the generic makefiles (Thomas Petazzoni). Example below.
2542
2543    Old:
2544    ASL+ Optimizing Compiler version 20170119-32
2545    ASL+ Optimizing Compiler version 20170119-64
2546
2547    New:
2548    ASL+ Optimizing Compiler version 20170119
2549
2550----------------------------------------
255122 December 2016. Summary of changes for version 20161222:
2552
2553
25541) ACPICA kernel-resident subsystem:
2555
2556AML Debugger: Implemented a new mechanism to simplify and enhance
2557debugger integration into all environments, including kernel debuggers
2558and user-space utilities, as well as remote debug services. This
2559mechanism essentially consists of new OSL interfaces to support debugger
2560initialization/termination, as well as wait/notify interfaces to perform
2561the debugger handshake with the host. Lv Zheng.
2562
2563    New OSL interfaces:
2564        AcpiOsInitializeDebugger (void)
2565        AcpiOsTerminateDebugger (void)
2566        AcpiOsWaitCommandReady (void)
2567        AcpiOsNotifyCommandComplete (void)
2568
2569    New OS services layer:
2570        osgendbg.c -- Example implementation, and used for AcpiExec
2571
2572Update for Generic Address Space (GAS) support: Although the AccessWidth
2573and/or BitOffset fields of the GAS are not often used, this change now
2574fully supports these fields. This affects the internal support for FADT
2575registers, registers in other ACPI data tables, and the AcpiRead and
2576AcpiWrite public interfaces. Lv Zheng.
2577
2578Sleep support: In order to simplify integration of ACPI sleep for the
2579various host operating systems, a new OSL interface has been introduced.
2580AcpiOsEnterSleep allows the host to perform any required operations
2581before the final write to the sleep control register(s) is performed by
2582ACPICA. Lv Zheng.
2583
2584    New OSL interface:
2585        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
2586
2587    Called from these internal interfaces:
2588        AcpiHwLegacySleep
2589        AcpiHwExtendedSleep
2590
2591EFI support: Added a very small EFI/ACPICA example application. Provides
2592a simple demo for EFI integration, as well as assisting with resolution
2593of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
2594
2595    source/tools/efihello/efihello.c
2596
2597Local C library: Implemented several new functions to enhance ACPICA
2598portability, for environments where these clib functions are not
2599available (such as EFI). Lv Zheng:
2600    putchar
2601    getchar
2602    strpbrk
2603    strtok
2604    memmove
2605
2606Fixed a regression where occasionally a valid resource descriptor was
2607incorrectly detected as invalid at runtime, and a
2608AE_AML_NO_RESOURCE_END_TAG was returned.
2609
2610Fixed a problem with the recently implemented support that enables
2611control method invocations as Target operands to many ASL operators.
2612Warnings of this form: "Needed type [Reference], found [Processor]" were
2613seen at runtime for some method invocations.
2614
2615Example Code and Data Size: These are the sizes for the OS-independent
2616acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2617debug version of the code includes the debug output trace mechanism and
2618has a much larger code and data size.
2619
2620  Current Release:
2621    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
2622    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
2623  Previous Release:
2624    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2625    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2626
2627
26282) iASL Compiler/Disassembler and Tools:
2629
2630Disassembler: Enhanced output by adding the capability to detect and
2631disassemble ASL Switch/Case statements back to the original ASL source
2632code instead of if/else blocks. David Box.
2633
2634AcpiHelp: Split a large file into separate files based upon
2635functionality/purpose. New files are:
2636    ahaml.c
2637    ahasl.c
2638
2639----------------------------------------
264017 November 2016. Summary of changes for version 20161117:
2641
2642
26431) ACPICA kernel-resident subsystem:
2644
2645Table Manager: Fixed a regression introduced in 20160729, "FADT support
2646cleanup". This was an attempt to remove all references in the source to
2647the FADT version 2, which never was a legal version number. It was
2648skipped because it was an early version of 64-bit support that was
2649eventually abandoned for the current 64-bit support.
2650
2651Interpreter: Fixed a problem where runtime implicit conversion was
2652incorrectly disabled for the ASL operators below. This brings the
2653behavior into compliance with the ACPI specification:
2654    FromBCD
2655    ToBCD
2656    ToDecimalString
2657    ToHexString
2658    ToInteger
2659    ToBuffer
2660
2661Table Manager: Added a new public interface, AcpiPutTable, used to
2662release and free an ACPI table returned by AcpiGetTable and related
2663interfaces. Lv Zheng.
2664
2665Example Code and Data Size: These are the sizes for the OS-independent
2666acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2667debug version of the code includes the debug output trace mechanism and
2668has a much larger code and data size.
2669
2670  Current Release:
2671    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2672    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2673  Previous Release:
2674    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2675    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2676
2677
26782) iASL Compiler/Disassembler and Tools:
2679
2680Disassembler: Fixed a regression for disassembly of Resource Template.
2681Detection of templates in the AML stream missed some types of templates.
2682
2683iASL: Fixed a problem where an Access Size error was returned for the PCC
2684address space when the AccessSize of the GAS register is greater than a
2685DWORD. Hoan Tran.
2686
2687iASL: Implemented several grammar changes for the operators below. These
2688changes are slated for the next version of the ACPI specification:
2689    RefOf        - Disallow method invocation as an operand
2690    CondRefOf    - Disallow method invocation as an operand
2691    DerefOf      - Disallow operands that use the result from operators
2692that
2693                   do not return a reference (Changed TermArg to
2694SuperName).
2695
2696iASL: Control method invocations are now allowed for Target operands, as
2697per the ACPI specification. Removed error for using a control method
2698invocation as a Target operand.
2699
2700Disassembler: Improved detection of Resource Templates, Unicode, and
2701Strings within Buffer objects. These subtypes do not contain a specific
2702opcode to indicate the originating ASL code, and they must be detected by
2703other means within the disassembler.
2704
2705iASL: Implemented an optimization improvement for 32-bit ACPI tables
2706(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
2707only after 64-bit to 32-bit truncation. A truncation warning message is
2708still emitted, however.
2709
2710AcpiXtract: Implemented handling for both types of line terminators (LF
2711or CR/LF) so that it can accept AcpiDump output files from any system.
2712Peter Wu.
2713
2714AcpiBin: Added two new options for comparing AML files:
2715    -a: compare and display ALL mismatches
2716    -o: start compare at this offset into the second file
2717
2718----------------------------------------
271930 September 2016. Summary of changes for version 20160930:
2720
2721
27221) ACPICA kernel-resident subsystem:
2723
2724Fixed a regression in the internal AcpiTbFindTable function where a non
2725AE_OK exception could inadvertently be returned even if the function did
2726not fail. This problem affects the following operators:
2727    DataTableRegion
2728    LoadTable
2729
2730Fixed a regression in the LoadTable operator where a load to any
2731namespace location other than the root no longer worked properly.
2732
2733Increased the maximum loop count value that will result in the
2734AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to
2735prevent infinite loops within the AML interpreter and thus the host OS
2736kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to
27371,048,575).
2738
2739Moved the AcpiGbl_MaxLoopIterations configuration variable to the public
2740acpixf.h file. This allows hosts to easily configure the maximum loop
2741count at runtime.
2742
2743Removed an illegal character in the strtoul64.c file. This character
2744caused errors with some C compilers.
2745
2746Example Code and Data Size: These are the sizes for the OS-independent
2747acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2748debug version of the code includes the debug output trace mechanism and
2749has a much larger code and data size.
2750
2751  Current Release:
2752    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2753    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2754  Previous Release:
2755    Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total
2756    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2757
2758
27592) iASL Compiler/Disassembler and Tools:
2760
2761Disassembler: Fixed a problem with the conversion of Else{If{ blocks into
2762the simpler ASL ElseIf keyword. During the conversion, a trailing If
2763block could be lost and missing from the disassembled output.
2764
2765iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,
2766the missing rule caused a parse error when using the Index operator as an
2767operand to ObjectType. This construct now compiles properly. Example:
2768    ObjectType(PKG1[4]).
2769
2770iASL: Correctly handle unresolved symbols in the hardware map file (-lm
2771option). Previously, unresolved symbols could cause a protection fault.
2772Such symbols are now marked as unresolved in the map file.
2773
2774iASL: Implemented support to allow control method invocations as an
2775operand to the ASL DeRefOf operator. Example:
2776    DeRefOf(MTH1(Local0))
2777
2778Disassembler: Improved support for the ToPLD ASL macro. Detection of a
2779possible _PLD buffer now includes examination of both the normal buffer
2780length (16 or 20) as well as the surrounding AML package length.
2781
2782Disassembler: Fixed a problem with the decoding of complex expressions
2783within the Divide operator for ASL+. For the case where both the quotient
2784and remainder targets are specified, the entire statement cannot be
2785disassembled. Previously, the output incorrectly contained a mix of ASL-
2786and ASL+ operators. This mixed statement causes a syntax error when
2787compiled. Example:
2788    Divide (Add (INT1, 6), 128, RSLT, QUOT)  // was incorrectly
2789disassembled to:
2790    Divide (INT1 + 6, 128, RSLT, QUOT)
2791
2792iASL/Tools: Added support to process AML and non-AML ACPI tables
2793consistently. For the disassembler and AcpiExec, allow all types of ACPI
2794tables (AML and data tables). For the iASL -e option, allow only AML
2795tables (DSDT/SSDT).
2796
2797----------------------------------------
279831 August 2016. Summary of changes for version 20160831:
2799
2800
28011) ACPICA kernel-resident subsystem:
2802
2803Improve support for the so-called "module-level code", which is defined
2804to be math, logical and control AML opcodes that appear outside of any
2805control method. This change improves the support by adding more opcodes
2806that can be executed in the manner. Some other issues have been solved,
2807and the ASL grammar changes to support such code under all scope
2808operators (Device, etc.) are complete. Lv Zheng.
2809
2810UEFI support: these OSL functions have been implemented. This is an
2811additional step toward supporting the AcpiExec utility natively (with
2812full hardware access) under UEFI. Marcelo Ferreira.
2813    AcpiOsReadPciConfiguration
2814    AcpiOsWritePciConfiguration
2815
2816Fixed a possible mutex error during control method auto-serialization. Lv
2817Zheng.
2818
2819Updated support for the Generic Address Structure by fully implementing
2820all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv
2821Zheng.
2822
2823Updated the return value for the internal _OSI method. Instead of
28240xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF
2825for 64-bit ACPI tables. This fixes an incompatibility with other ACPI
2826implementations, and will be reflected and clarified in the next version
2827of the ACPI specification.
2828
2829Implemented two new table events that can be passed to an ACPICA table
2830handler. These events are used to indicate a table installation or
2831uninstallation. These events are used in addition to existed table load
2832and unload events. Lv Zheng.
2833
2834Implemented a cleanup for all internal string-to-integer conversions.
2835Consolidate multiple versions of this functionality and limit possible
2836bases to either 10 or 16 to simplify the code. Adds a new file,
2837utstrtoul64.
2838
2839Cleanup the inclusion order of the various compiler-specific headers.
2840This simplifies build configuration management. The compiler-specific
2841headers are now split out from the host-specific headers. Lv Zheng.
2842
2843Example Code and Data Size: These are the sizes for the OS-independent
2844acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2845debug version of the code includes the debug output trace mechanism and
2846has a much larger code and data size.
2847
2848  Current Release:
2849    Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total
2850    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2851
2852
28532) iASL Compiler/Disassembler and Tools:
2854
2855iASL/AcpiExec: Added a command line option to display the build date/time
2856of the tool (-vd). This can be useful to verify that the correct version
2857of the tools are being used.
2858
2859AML Debugger: Implemented a new subcommand ("execute predef") to execute
2860all predefined control methods and names within the current namespace.
2861This can be useful for debugging problems with ACPI tables and the ACPI
2862namespace.
2863
2864----------------------------------------
286529 July 2016. Summary of changes for version 20160729:
2866
2867
28681) ACPICA kernel-resident subsystem:
2869
2870Implemented basic UEFI support for the various ACPICA tools. This
2871includes:
28721) An OSL to implement the various AcpiOs* interfaces on UEFI.
28732) Support to obtain the ACPI tables on UEFI.
28743) Local implementation of required C library functions not available on
2875UEFI.
28764) A front-end (main) function for the tools for UEFI-related
2877initialization.
2878
2879The initial deployment of this support is the AcpiDump utility executing
2880as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").
2881Current environments supported are Linux/Unix. MSVC generation is not
2882supported at this time. See the generate/efi/README file for build
2883instructions. Lv Zheng.
2884
2885Future plans include porting the AcpiExec utility to execute natively on
2886the platform with I/O and memory access. This will allow viewing/dump of
2887the platform namespace and native execution of ACPI control methods that
2888access the actual hardware. To fully implement this support, the OSL
2889functions below must be implemented with UEFI interfaces. Any community
2890help in the implementation of these functions would be appreciated:
2891    AcpiOsReadPort
2892    AcpiOsWritePort
2893    AcpiOsReadMemory
2894    AcpiOsWriteMemory
2895    AcpiOsReadPciConfiguration
2896    AcpiOsWritePciConfiguration
2897
2898Restructured and standardized the C library configuration for ACPICA,
2899resulting in the various configuration options below. This includes a
2900global restructuring of the compiler-dependent and platform-dependent
2901include files. These changes may affect the existing platform-dependent
2902configuration files on some hosts. Lv Zheng.
2903
2904The current C library configuration options appear below. For any issues,
2905it may be helpful to examine the existing compiler-dependent and
2906platform-dependent files as examples. Lv Zheng.
2907
29081) Linux kernel:
2909    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
2910library.
2911    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
29122) Unix/Windows/BSD applications:
2913    ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C
2914library.
2915    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
29163) UEFI applications:
2917    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
2918library.
2919    ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.
29204) UEFI applications (EDK2/StdLib):
2921    ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.
2922    ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.
2923
2924
2925AML interpreter: "module-level code" support. Allows for execution of so-
2926called "executable" AML code (math/logical operations, etc.) outside of
2927control methods not just at the module level (top level) but also within
2928any scope declared outside of a control method - Scope{}, Device{},
2929Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.
2930
2931Simplified the configuration of the "maximum AML loops" global option by
2932adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be
2933modified at runtime.
2934
2935
2936Example Code and Data Size: These are the sizes for the OS-independent
2937acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2938debug version of the code includes the debug output trace mechanism and
2939has a much larger code and data size.
2940
2941  Current Release:
2942    Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total
2943    Debug Version:     199.0K Code, 81.8K Data, 280.8K Total
2944
2945
29462) iASL Compiler/Disassembler and Tools:
2947
2948iASL: Add full support for the RASF ACPI table (RAS Features Table).
2949Includes disassembler, data table compiler, and header support.
2950
2951iASL Expand "module-level code" support. Allows for
2952compilation/disassembly of so-called "executable" AML code (math/logical
2953operations, etc.) outside of control methods not just at the module level
2954(top level) but also within any scope declared outside of a control
2955method - Scope{}, Device{}, Processor{}, PowerResource{}, and
2956ThermalZone{}.
2957
2958AcpiDump: Added support for dumping all SSDTs on newer versions of
2959Windows. These tables are now easily available -- SSDTs are not available
2960through the registry on older versions.
2961
2962----------------------------------------
296327 May 2016. Summary of changes for version 20160527:
2964
2965
29661) ACPICA kernel-resident subsystem:
2967
2968Temporarily reverted the new arbitrary bit length/alignment support in
2969AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
2970a number of regressions with the new code that need to be fully resolved
2971and tested before this support can be finally integrated into ACPICA.
2972Apologies for any inconveniences these issues may have caused.
2973
2974The ACPI message macros are not configurable (ACPI_MSG_ERROR,
2975ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
2976and ACPI_MSG_BIOS_WARNING). Lv Zheng.
2977
2978Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
2979option. Adds a new return macro, return_STR. Junk-uk Kim.
2980
2981Example Code and Data Size: These are the sizes for the OS-independent
2982acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2983debug version of the code includes the debug output trace mechanism and
2984has a much larger code and data size.
2985
2986  Current Release:
2987    Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
2988    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2989  Previous Release:
2990    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2991    Debug Version:     200.9K Code, 82.2K Data, 283.1K Total
2992
2993----------------------------------------
299422 April 2016. Summary of changes for version 20160422:
2995
29961) ACPICA kernel-resident subsystem:
2997
2998Fixed a regression in the GAS (generic address structure) arbitrary bit
2999support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
3000and incorrect return values. Lv Zheng. ACPICA BZ 1270.
3001
3002ACPI 6.0: Added support for new/renamed resource macros. One new argument
3003was added to each of these macros, and the original name has been
3004deprecated. The AML disassembler will always disassemble to the new
3005names. Support for the new macros was added to iASL, disassembler,
3006resource manager, and the acpihelp utility. ACPICA BZ 1274.
3007
3008    I2cSerialBus  -> I2cSerialBusV2
3009    SpiSerialBus  -> SpiSerialBusV2
3010    UartSerialBus -> UartSerialBusV2
3011
3012ACPI 6.0: Added support for a new integer field that was appended to the
3013package object returned by the _BIX method. This adds iASL compile-time
3014and AML runtime error checking. ACPICA BZ 1273.
3015
3016ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
3017Subspace Type2" (Headers, Disassembler, and data table compiler).
3018
3019Example Code and Data Size: These are the sizes for the OS-independent
3020acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3021debug version of the code includes the debug output trace mechanism and
3022has a much larger code and data size.
3023
3024  Current Release:
3025    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
3026    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
3027  Previous Release:
3028    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
3029    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
3030
3031
30322) iASL Compiler/Disassembler and Tools:
3033
3034iASL: Implemented an ASL grammar extension to allow/enable executable
3035"module-level code" to be created and executed under the various
3036operators that create new scopes. This type of AML code is already
3037supported in all known AML interpreters, and the grammar change will
3038appear in the next version of the ACPI specification. Simplifies the
3039conditional runtime creation of named objects under these object types:
3040
3041    Device
3042    PowerResource
3043    Processor
3044    Scope
3045    ThermalZone
3046
3047iASL: Implemented a new ASL extension, a "For" loop macro to add greater
3048ease-of-use to the ASL language. The syntax is similar to the
3049corresponding C operator, and is implemented with the existing AML While
3050opcode -- thus requiring no changes to existing AML interpreters.
3051
3052    For (Initialize, Predicate, Update) {TermList}
3053
3054Grammar:
3055    ForTerm :=
3056        For (
3057            Initializer    // Nothing | TermArg => ComputationalData
3058            Predicate      // Nothing | TermArg => ComputationalData
3059            Update         // Nothing | TermArg => ComputationalData
3060        ) {TermList}
3061
3062
3063iASL: The _HID/_ADR detection and validation has been enhanced to search
3064under conditionals in order to allow these objects to be conditionally
3065created at runtime.
3066
3067iASL: Fixed several issues with the constant folding feature. The
3068improvement allows better detection and resolution of statements that can
3069be folded at compile time. ACPICA BZ 1266.
3070
3071iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
3072conversion to the ASL ElseIf operator where incorrect ASL code could be
3073generated.
3074
3075iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
3076sometimes an extra (and extraneous) set of parentheses were emitted for
3077some combinations of operators. Although this did not cause any problems
3078with recompilation of the disassembled code, it made the code more
3079difficult to read. David Box. ACPICA BZ 1231.
3080
3081iASL: Changed to ignore the unreferenced detection for predefined names
3082of resource descriptor elements, when the resource descriptor is
3083created/defined within a control method.
3084
3085iASL: Disassembler: Fix a possible fault with externally declared Buffer
3086objects.
3087
3088----------------------------------------
308918 March 2016. Summary of changes for version 20160318:
3090
30911) ACPICA kernel-resident subsystem:
3092
3093Added support for arbitrary bit lengths and bit offsets for registers
3094defined by the Generic Address Structure. Previously, only aligned bit
3095lengths of 8/16/32/64 were supported. This was sufficient for many years,
3096but recently some machines have been seen that require arbitrary bit-
3097level support. ACPICA BZ 1240. Lv Zheng.
3098
3099Fixed an issue where the \_SB._INI method sometimes must be evaluated
3100before any _REG methods are evaluated. Lv Zheng.
3101
3102Implemented several changes related to ACPI table support
3103(Headers/Disassembler/TableCompiler):
3104NFIT: For ACPI 6.1, updated to add some additional new fields and
3105constants.
3106FADT: Updated a warning message and set compliance to ACPI 6.1 (Version
31076).
3108DMAR: Added new constants per the 10/2014 DMAR spec.
3109IORT: Added new subtable per the 10/2015 IORT spec.
3110HEST: For ACPI 6.1, added new constants and new subtable.
3111DBG2: Added new constants per the 12/2015 DBG2 spec.
3112FPDT: Fixed several incorrect fields, add the FPDT boot record structure.
3113ACPICA BZ 1249.
3114ERST/EINJ: Updated disassembler with new "Execute Timings" actions.
3115
3116Updated header support for the DMAR table to match the current version of
3117the related spec.
3118
3119Added extensions to the ASL Concatenate operator to allow any ACPI object
3120to be passed as an operand. Any object other than Integer/String/Buffer
3121simply returns a string containing the object type. This extends the
3122usefulness of the Printf macros. Previously, Concatenate would abort the
3123control method if a non-data object was encountered.
3124
3125ACPICA source code: Deployed the C "const" keyword across the source code
3126where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).
3127
3128Example Code and Data Size: These are the sizes for the OS-independent
3129acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3130debug version of the code includes the debug output trace mechanism and
3131has a much larger code and data size.
3132
3133  Current Release:
3134    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
3135    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
3136  Previous Release:
3137    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3138    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3139
3140
31412) iASL Compiler/Disassembler and Tools:
3142
3143iASL/Disassembler: Improved the heuristic used to determine the number of
3144arguments for an externally defined control method (a method in another
3145table). Although this is an improvement, there is no deterministic way to
3146"guess" the number of method arguments. Only the ACPI 6.0 External opcode
3147will completely solve this problem as it is deployed (automatically) in
3148newer BIOS code.
3149
3150iASL/Disassembler: Fixed an ordering issue for emitted External() ASL
3151statements that could cause errors when the disassembled file is
3152compiled. ACPICA BZ 1243. David Box.
3153
3154iASL: Fixed a regression caused by the merger of the two versions of the
3155local strtoul64. Because of a dependency on a global variable, strtoul64
3156could return an error for integers greater than a 32-bit value. ACPICA BZ
31571260.
3158
3159iASL: Fixed a regression where a fault could occur for an ASL Return
3160statement if it invokes a control method that is not resolved. ACPICA BZ
31611264.
3162
3163AcpiXtract: Improved input file validation: detection of binary files and
3164non-acpidump text files.
3165
3166----------------------------------------
316712 February 2016. Summary of changes for version 20160212:
3168
31691) ACPICA kernel-resident subsystem:
3170
3171Implemented full support for the ACPI 6.1 specification (released in
3172January). This version of the specification is available at:
3173http://www.uefi.org/specifications
3174
3175Only a relatively small number of changes were required in ACPICA to
3176support ACPI 6.1, in these areas:
3177- New predefined names
3178- New _HID values
3179- A new subtable for HEST
3180- A few other header changes for new values
3181
3182Ensure \_SB_._INI is executed before any _REG methods are executed. There
3183appears to be existing BIOS code that relies on this behavior. Lv Zheng.
3184
3185Reverted a change made in version 20151218 which enabled method
3186invocations to be targets of various ASL operators (SuperName and Target
3187grammar elements). While the new behavior is supported by the ACPI
3188specification, other AML interpreters do not support this behavior and
3189never will. The ACPI specification will be updated for ACPI 6.2 to remove
3190this support. Therefore, the change was reverted to the original ACPICA
3191behavior.
3192
3193ACPICA now supports the GCC 6 compiler.
3194
3195Current Release: (Note: build changes increased sizes)
3196    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3197    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3198Previous Release:
3199    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3200    Debug Version:     200.4K Code, 81.9K Data, 282.3K Total
3201
3202
32032) iASL Compiler/Disassembler and Tools:
3204
3205Completed full support for the ACPI 6.0 External() AML opcode. The
3206compiler emits an external AML opcode for each ASL External statement.
3207This opcode is used by the disassembler to assist with the disassembly of
3208external control methods by specifying the required number of arguments
3209for the method. AML interpreters do not use this opcode. To ensure that
3210interpreters do not even see the opcode, a block of one or more external
3211opcodes is surrounded by an "If(0)" construct. As this feature becomes
3212commonly deployed in BIOS code, the ability of disassemblers to correctly
3213disassemble AML code will be greatly improved. David Box.
3214
3215iASL: Implemented support for an optional cross-reference output file.
3216The -lx option will create a the cross-reference file with the suffix
3217"xrf". Three different types of cross-reference are created in this file:
3218- List of object references made from within each control method
3219- Invocation (caller) list for each user-defined control method
3220- List of references to each non-method object in the namespace
3221
3222iASL: Method invocations as ASL Target operands are now disallowed and
3223flagged as errors in preparation for ACPI 6.2 (see the description of the
3224problem above).
3225
3226----------------------------------------
32278 January 2016. Summary of changes for version 20160108:
3228
32291) ACPICA kernel-resident subsystem:
3230
3231Updated all ACPICA copyrights and signons to 2016: Added the 2016
3232copyright to all source code module headers and utility/tool signons.
3233This includes the standard Linux dual-license header. This affects
3234virtually every file in the ACPICA core subsystem, iASL compiler, all
3235ACPICA utilities, and the ACPICA test suite.
3236
3237Fixed a regression introduced in version 20151218 concerning the
3238execution of so-called module-level ASL/AML code. Namespace objects
3239created under a module-level If() construct were not properly/fully
3240entered into the namespace and could cause an interpreter fault when
3241accessed.
3242
3243Example Code and Data Size: These are the sizes for the OS-independent
3244acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3245debug version of the code includes the debug output trace mechanism and
3246has a much larger code and data size.
3247
3248Current Release:
3249    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3250    Debug Version:     200.4K Code, 81.9K Data, 282.4K Total
3251  Previous Release:
3252    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3253    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3254
3255
32562) iASL Compiler/Disassembler and Tools:
3257
3258Fixed a problem with the compilation of the GpioIo and GpioInt resource
3259descriptors. The _PIN field name was incorrectly defined to be an array
3260of 32-bit values, but the _PIN values are in fact 16 bits each. This
3261would cause incorrect bit width warnings when using Word (16-bit) fields
3262to access the descriptors.
3263
3264
3265----------------------------------------
326618 December 2015. Summary of changes for version 20151218:
3267
32681) ACPICA kernel-resident subsystem:
3269
3270Implemented per-AML-table execution of "module-level code" as individual
3271ACPI tables are loaded into the namespace during ACPICA initialization.
3272In other words, any module-level code within an AML table is executed
3273immediately after the table is loaded, instead of batched and executed
3274after all of the tables have been loaded. This provides compatibility
3275with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,
3276David Box.
3277
3278To fully support the feature above, the default operation region handlers
3279for the SystemMemory, SystemIO, and PCI_Config address spaces are now
3280installed before any ACPI tables are loaded. This enables module-level
3281code to access these address spaces during the table load and module-
3282level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David
3283Box.
3284
3285Implemented several changes to the internal _REG support in conjunction
3286with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples
3287utilities for the changes above. Although these tools were changed, host
3288operating systems that simply use the default handlers for SystemMemory,
3289SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.
3290
3291For example, in the code below, DEV1 is conditionally added to the
3292namespace by the DSDT via module-level code that accesses an operation
3293region. The SSDT references DEV1 via the Scope operator. DEV1 must be
3294created immediately after the DSDT is loaded in order for the SSDT to
3295successfully reference DEV1. Previously, this code would cause an
3296AE_NOT_EXIST exception during the load of the SSDT. Now, this code is
3297fully supported by ACPICA.
3298
3299    DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)
3300    {
3301        OperationRegion (OPR1, SystemMemory, 0x400, 32)
3302        Field (OPR1, AnyAcc, NoLock, Preserve)
3303        {
3304            FLD1, 1
3305        }
3306        If (FLD1)
3307        {
3308            Device (\DEV1)
3309            {
3310            }
3311        }
3312    }
3313    DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)
3314    {
3315        External (\DEV1, DeviceObj)
3316        Scope (\DEV1)
3317        {
3318        }
3319    }
3320
3321Fixed an AML interpreter problem where control method invocations were
3322not handled correctly when the invocation was itself a SuperName argument
3323to another ASL operator. In these cases, the method was not invoked.
3324ACPICA BZ 1002. Affects the following ASL operators that have a SuperName
3325argument:
3326    Store
3327    Acquire, Wait
3328    CondRefOf, RefOf
3329    Decrement, Increment
3330    Load, Unload
3331    Notify
3332    Signal, Release, Reset
3333    SizeOf
3334
3335Implemented automatic String-to-ObjectReference conversion support for
3336packages returned by predefined names (such as _DEP). A common BIOS error
3337is to add double quotes around an ObjectReference namepath, which turns
3338the reference into an unexpected string object. This support detects the
3339problem and corrects it before the package is returned to the caller that
3340invoked the method. Lv Zheng.
3341
3342Implemented extensions to the Concatenate operator. Concatenate now
3343accepts any type of object, it is not restricted to simply
3344Integer/String/Buffer. For objects other than these 3 basic data types,
3345the argument is treated as a string containing the name of the object
3346type. This expands the utility of Concatenate and the Printf/Fprintf
3347macros. ACPICA BZ 1222.
3348
3349Cleaned up the output of the ASL Debug object. The timer() value is now
3350optional and no longer emitted by default. Also, the basic data types of
3351Integer/String/Buffer are simply emitted as their values, without a data
3352type string -- since the data type is obvious from the output. ACPICA BZ
33531221.
3354
3355Example Code and Data Size: These are the sizes for the OS-independent
3356acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3357debug version of the code includes the debug output trace mechanism and
3358has a much larger code and data size.
3359
3360  Current Release:
3361    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3362    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3363  Previous Release:
3364    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3365    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3366
3367
33682) iASL Compiler/Disassembler and Tools:
3369
3370iASL: Fixed some issues with the ASL Include() operator. This operator
3371was incorrectly defined in the iASL parser rules, causing a new scope to
3372be opened for the code within the include file. This could lead to
3373several issues, including allowing ASL code that is technically illegal
3374and not supported by AML interpreters. Note, this does not affect the
3375related #include preprocessor operator. ACPICA BZ 1212.
3376
3377iASL/Disassembler: Implemented support for the ASL ElseIf operator. This
3378operator is essentially an ASL macro since there is no AML opcode
3379associated with it. The code emitted by the iASL compiler for ElseIf is
3380an Else opcode followed immediately by an If opcode. The disassembler
3381will now emit an ElseIf if it finds an Else immediately followed by an
3382If. This simplifies the decoded ASL, especially for deeply nested
3383If..Else and large Switch constructs. Thus, the disassembled code more
3384closely follows the original source ASL. ACPICA BZ 1211. Example:
3385
3386    Old disassembly:
3387        Else
3388        {
3389            If (Arg0 == 0x02)
3390            {
3391                Local0 = 0x05
3392            }
3393        }
3394
3395    New disassembly:
3396        ElseIf (Arg0 == 0x02)
3397        {
3398            Local0 = 0x05
3399        }
3400
3401AcpiExec: Added support for the new module level code behavior and the
3402early region installation. This required a small change to the
3403initialization, since AcpiExec must install its own operation region
3404handlers.
3405
3406AcpiExec: Added support to make the debug object timer optional. Default
3407is timer disabled. This cleans up the debug object output -- the timer
3408data is rarely used.
3409
3410AcpiExec: Multiple ACPI tables are now loaded in the order that they
3411appear on the command line. This can be important when there are
3412interdependencies/references between the tables.
3413
3414iASL/Templates. Add support to generate template files with multiple
3415SSDTs within a single output file. Also added ommand line support to
3416specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ
34171223, 1225.
3418
3419
3420----------------------------------------
342124 November 2015. Summary of changes for version 20151124:
3422
34231) ACPICA kernel-resident subsystem:
3424
3425Fixed a possible regression for a previous update to FADT handling. The
3426FADT no longer has a fixed table ID, causing some issues with code that
3427was hardwired to a specific ID. Lv Zheng.
3428
3429Fixed a problem where the method auto-serialization could interfere with
3430the current SyncLevel. This change makes the auto-serialization support
3431transparent to the SyncLevel support and management.
3432
3433Removed support for the _SUB predefined name in AcpiGetObjectInfo. This
3434interface is intended for early access to the namespace during the
3435initial namespace device discovery walk. The _SUB method has been seen to
3436access operation regions in some cases, causing errors because the
3437operation regions are not fully initialized.
3438
3439AML Debugger: Fixed some issues with the terminate/quit/exit commands
3440that can cause faults. Lv Zheng.
3441
3442AML Debugger: Add thread ID support so that single-step mode only applies
3443to the AML Debugger thread. This prevents runtime errors within some
3444kernels. Lv Zheng.
3445
3446Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx
3447methods that are invoked by this interface are optional, removed warnings
3448emitted for the case where one or more of these methods do not exist.
3449ACPICA BZ 1208, original change by Prarit Bhargava.
3450
3451Made a major pass through the entire ACPICA source code base to
3452standardize formatting that has diverged a bit over time. There are no
3453functional changes, but this will of course cause quite a few code
3454differences from the previous ACPICA release.
3455
3456Example Code and Data Size: These are the sizes for the OS-independent
3457acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3458debug version of the code includes the debug output trace mechanism and
3459has a much larger code and data size.
3460
3461  Current Release:
3462    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3463    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3464  Previous Release:
3465    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3466    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3467
3468
34692) iASL Compiler/Disassembler and Tools:
3470
3471iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple
3472definition blocks within a single ASL file and the resulting AML file.
3473Support for this type of file was also added to the various tools that
3474use binary AML files: acpiexec, acpixtract, and the AML disassembler. The
3475example code below shows two definition blocks within the same file:
3476
3477    DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",
34780x12345678)
3479    {
3480    }
3481    DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)
3482    {
3483    }
3484
3485iASL: Enhanced typechecking for the Name() operator. All expressions for
3486the value of the named object must be reduced/folded to a single constant
3487at compile time, as per the ACPI specification (the AML definition of
3488Name()).
3489
3490iASL: Fixed some code indentation issues for the -ic and -ia options (C
3491and assembly headers). Now all emitted code correctly begins in column 1.
3492
3493iASL: Added an error message for an attempt to open a Scope() on an
3494object defined in an SSDT. The DSDT is always loaded into the namespace
3495first, so any attempt to open a Scope on an SSDT object will fail at
3496runtime.
3497
3498
3499----------------------------------------
350030 September 2015. Summary of changes for version 20150930:
3501
35021) ACPICA kernel-resident subsystem:
3503
3504Debugger: Implemented several changes and bug fixes to assist support for
3505the in-kernel version of the AML debugger. Lv Zheng.
3506- Fix the "predefined" command for in-kernel debugger.
3507- Do not enter debug command loop for the help and version commands.
3508- Disallow "execute" command during execution/single-step of a method.
3509
3510Interpreter: Updated runtime typechecking for all operators that have
3511target operands. The operand is resolved and validated that it is legal.
3512For example, the target cannot be a non-data object such as a Device,
3513Mutex, ThermalZone, etc., as per the ACPI specification.
3514
3515Debugger: Fixed the double-mutex user I/O handshake to work when local
3516deadlock detection is enabled.
3517
3518Debugger: limited display of method locals and arguments (LocalX and
3519ArgX) to only those that have actually been initialized. This prevents
3520lines of extraneous output.
3521
3522Updated the definition of the NFIT table to correct the bit polarity of
3523one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
3524
3525Example Code and Data Size: These are the sizes for the OS-independent
3526acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3527debug version of the code includes the debug output trace mechanism and
3528has a much larger code and data size.
3529
3530  Current Release:
3531    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3532    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3533  Previous Release:
3534    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3535    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3536
3537
35382) iASL Compiler/Disassembler and Tools:
3539
3540iASL: Improved the compile-time typechecking for operands of many of the
3541ASL operators:
3542
3543-- Added an option to disable compiler operand/operator typechecking (-
3544ot).
3545
3546-- For the following operators, the TermArg operands are now validated
3547when possible to be Integer data objects: BankField, OperationRegion,
3548DataTableRegion, Buffer, and Package.
3549
3550-- Store (Source, Target): Both the source and target operands are
3551resolved and checked that the operands are both legal. For example,
3552neither operand can be a non-data object such as a Device, Mutex,
3553ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
3554operator can be used to store an object to any type of target object.
3555
3556-- Store (Source, Target): If the source is a Package object, the target
3557must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
3558is a Package, the source must also be a Package.
3559
3560-- Store (Source, Target): A warning is issued if the source and target
3561resolve to the identical named object.
3562
3563-- Store (Source, <method invocation>): An error is generated for the
3564target method invocation, as this construct is not supported by the AML
3565interpreter.
3566
3567-- For all ASL math and logic operators, the target operand must be a
3568data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
3569includes the function return value also.
3570
3571-- External declarations are also included in the typechecking where
3572possible. External objects defined using the UnknownObj keyword cannot be
3573typechecked, however.
3574
3575iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
3576operator:
3577- Legacy code: Index(PKG1, 3)
3578- New ASL+ code: PKG1[3]
3579This completes the ACPI 6.0 ASL+ support as it was the only operator not
3580supported.
3581
3582iASL: Fixed the file suffix for the preprocessor output file (.i). Two
3583spaces were inadvertently appended to the filename, causing file access
3584and deletion problems on some systems.
3585
3586ASL Test Suite (ASLTS): Updated the master makefile to generate all
3587possible compiler output files when building the test suite -- thus
3588exercising these features of the compiler. These files are automatically
3589deleted when the test suite exits.
3590
3591
3592----------------------------------------
359318 August 2015. Summary of changes for version 20150818:
3594
35951) ACPICA kernel-resident subsystem:
3596
3597Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
3598Zheng. ACPICA BZ 1186.
3599
3600Completed development to ensure that the ACPICA Disassembler and Debugger
3601are fully standalone components of ACPICA. Removed cross-component
3602dependences. Lv Zheng.
3603
3604The max-number-of-AML-loops is now runtime configurable (previously was
3605compile-time only). This is essentially a loop timeout to force-abort
3606infinite AML loops. ACPCIA BZ 1192.
3607
3608Debugger: Cleanup output to dump ACPI names and namepaths without any
3609trailing underscores. Lv Zheng. ACPICA BZ 1135.
3610
3611Removed unnecessary conditional compilations across the Debugger and
3612Disassembler components where entire modules could be left uncompiled.
3613
3614The aapits test is deprecated and has been removed from the ACPICA git
3615tree. The test has never been completed and has not been maintained, thus
3616becoming rather useless. ACPICA BZ 1015, 794.
3617
3618A batch of small changes to close bugzilla and other reports:
3619- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
3620- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
3621- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
3622- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
3623Moore.
3624- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
3625ACPICA BZ 1184.
3626- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
3627operators.
3628- Debugger: Split debugger initialization/termination interfaces. Lv
3629Zheng.
3630- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
3631identification.
3632- AcpiExec: Add debug message during _REG method phase during table
3633load/init.
3634- AcpiNames: Fix a regression where some output was missing and no longer
3635emitted.
3636- Debugger: General cleanup and simplification. Lv Zheng.
3637- Disassembler: Cleanup use of several global option variables. Lv Zheng.
3638
3639Example Code and Data Size: These are the sizes for the OS-independent
3640acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3641debug version of the code includes the debug output trace mechanism and
3642has a much larger code and data size.
3643
3644  Current Release:
3645    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3646    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3647  Previous Release:
3648    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3649    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3650
3651
36522) iASL Compiler/Disassembler and Tools:
3653
3654AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
3655were not handled properly and caused load errors. Now, properly invoke
3656and use the ACPICA auto-reallocate mechanism for ACPI table data
3657structures. ACPICA BZ 1188
3658
3659AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
3660BZ 1190.
3661
3662AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
3663AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
3664executed during initialization. ACPICA BZ 1187, 1189.
3665
3666iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
3667that corresponds to each disassembled ASL statement, to simplify
3668debugging. ACPICA BZ 1191.
3669
3670Debugger: Add option to the "objects" command to display a summary of the
3671current namespace objects (Object type and count). This is displayed if
3672the command is entered with no arguments.
3673
3674AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
3675
3676
3677----------------------------------------
367817 July 2015. Summary of changes for version 20150717:
3679
36801) ACPICA kernel-resident subsystem:
3681
3682Improved the partitioning between the Debugger and Disassembler
3683components. This allows the Debugger to be used standalone within kernel
3684code without the Disassembler (which is used for single stepping also).
3685This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
3686
3687Debugger: Implemented a new command to trace the execution of control
3688methods (Trace). This is especially useful for the in-kernel version of
3689the debugger when file I/O may not be available for method trace output.
3690See the ACPICA reference for more information. Lv Zheng.
3691
3692Moved all C library prototypes (used for the local versions of these
3693functions when requested) to a new header, acclib.h
3694Cleaned up the use of non-ANSI C library functions. These functions are
3695implemented locally in ACPICA. Moved all such functions to a common
3696source file, utnonansi.c
3697
3698Debugger: Fixed a problem with the "!!" command (get last command
3699executed) where the debugger could enter an infinite loop and eventually
3700crash.
3701
3702Removed the use of local macros that were used for some of the standard C
3703library functions to automatically cast input parameters. This mostly
3704affected the is* functions where the input parameter is defined to be an
3705int. This required a few modifications to the main ACPICA source code to
3706provide casting for these functions and eliminate possible compiler
3707warnings for these parameters.
3708
3709Across the source code, added additional status/error checking to resolve
3710issues discovered by static source code analysis tools such as Coverity.
3711
3712Example Code and Data Size: These are the sizes for the OS-independent
3713acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3714debug version of the code includes the debug output trace mechanism and
3715has a much larger code and data size.
3716
3717  Current Release:
3718    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3719    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3720  Previous Release:
3721    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3722    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3723
3724
37252) iASL Compiler/Disassembler and Tools:
3726
3727iASL: Fixed a regression where the device map file feature no longer
3728worked properly when used in conjunction with the disassembler. It only
3729worked properly with the compiler itself.
3730
3731iASL: Implemented a new warning for method LocalX variables that are set
3732but never used (similar to a C compiler such as gcc). This also applies
3733to ArgX variables that are not defined by the parent method, and are
3734instead (legally) used as local variables.
3735
3736iASL/Preprocessor: Finished the pass-through of line numbers from the
3737preprocessor to the compiler. This ensures that compiler errors/warnings
3738have the correct original line numbers and filenames, regardless of any
3739#include files.
3740
3741iASL/Preprocessor: Fixed a couple of issues with comment handling and the
3742pass-through of comments to the preprocessor output file (which becomes
3743the compiler input file). Also fixed a problem with // comments that
3744appear after a math expression.
3745
3746iASL: Added support for the TCPA server table to the table compiler and
3747template generator. (The client table was already previously supported)
3748
3749iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
3750identify the iASL compiler.
3751
3752Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
3753multiple times. The new names are ACPI_SIGN_NEGATIVE and
3754ACPI_SIGN_POSITIVE.
3755
3756AcpiHelp: Update to expand help messages for the iASL preprocessor
3757directives.
3758
3759
3760----------------------------------------
376119 June 2015. Summary of changes for version 20150619:
3762
3763Two regressions in version 20150616 have been addressed:
3764
3765Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
3766etc.) This update changes ACPICA to only use the standard headers for
3767functions, or the prototypes for the local versions of the C library
3768functions. Across the source code, this required some additional casts
3769for some Clib invocations for portability. Moved all local prototypes to
3770a new file, acclib.h
3771
3772Fixes several problems with recent changes to the handling of the FACS
3773table that could cause some systems not to boot.
3774
3775
3776----------------------------------------
377716 June 2015. Summary of changes for version 20150616:
3778
3779
37801) ACPICA kernel-resident subsystem:
3781
3782Across the entire ACPICA source code base, the various macros for the C
3783library functions (such as ACPI_STRLEN, etc.) have been removed and
3784replaced by the standard C library names (strlen, etc.) The original
3785purpose for these macros is no longer applicable. This simplification
3786reduces the number of macros used in the ACPICA source code
3787significantly, improving readability and maintainability.
3788
3789Implemented support for a new ACPI table, the OSDT. This table, the
3790"override" SDT, can be loaded directly by the host OS at boot time. It
3791enables the replacement of existing namespace objects that were installed
3792via the DSDT and/or SSDTs. The primary purpose for this is to replace
3793buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
3794for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
3795Moore.
3796
3797Added support for systems with (improperly) two FACS tables -- a "32-bit"
3798table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
3799X field). This change will support both automatically. There continues to
3800be systems found with this issue. This support requires a change to the
3801AcpiSetFirmwareWakingVector interface. Also, a public global variable has
3802been added to allow the host to select which FACS is desired
3803(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
3804details Lv Zheng.
3805
3806Added a new feature to allow for systems that do not contain an FACS.
3807Although this is already supported on hardware-reduced platforms, the
3808feature has been extended for all platforms. The reasoning is that we do
3809not want to abort the entire ACPICA initialization just because the
3810system is seriously buggy and has no FACS.
3811
3812Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
3813not correctly transcribed from the ACPI specification in ACPICA version
381420150515.
3815
3816Implemented support for the _CLS object in the AcpiGetObjectInfo external
3817interface.
3818
3819Updated the definitions of the TCPA and TPM2 ACPI tables to the more
3820recent TCG ACPI Specification, December 14, 2014. Table disassembler and
3821compiler also updated. Note: The TCPA "server" table is not supported by
3822the disassembler/table-compiler at this time.
3823
3824ACPI 6.0: Added definitions for the new GIC version field in the MADT.
3825
3826Example Code and Data Size: These are the sizes for the OS-independent
3827acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3828debug version of the code includes the debug output trace mechanism and
3829has a much larger code and data size.
3830
3831  Current Release:
3832    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3833    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3834  Previous Release:
3835    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3836    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3837
3838
38392) iASL Compiler/Disassembler and Tools:
3840
3841Disassembler: Fixed a problem with the new symbolic operator disassembler
3842where incorrect ASL code could be emitted in some cases for the "non-
3843commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
3844ShiftRight. The actual problem cases seem to be rather unusual in common
3845ASL code, however. David Box.
3846
3847Modified the linux version of acpidump to obtain ACPI tables from not
3848just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
3849Zheng.
3850
3851iASL: Fixed a problem where the user preprocessor output file (.i)
3852contained extra data that was not expected. The compiler was using this
3853file as a temporary file and passed through #line directives in order to
3854keep compiler error messages in sync with the input file and line number
3855across multiple include files. The (.i) is no longer a temporary file as
3856the compiler uses a new, different file for the original purpose.
3857
3858iASL: Fixed a problem where comments within the original ASL source code
3859file were not passed through to the preprocessor output file, nor any
3860listing files.
3861
3862iASL: Fixed some issues for the handling of the "#include" preprocessor
3863directive and the similar (but not the same) "Include" ASL operator.
3864
3865iASL: Add support for the new OSDT in both the disassembler and compiler.
3866
3867iASL: Fixed a problem with the constant folding support where a Buffer
3868object could be incorrectly generated (incorrectly formed) during a
3869conversion to a Store() operator.
3870
3871AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
3872description text for the _REV predefined name. _REV now permanently
3873returns 2, as per the ACPI 6.0 specification.
3874
3875Debugger: Enhanced the output of the Debug ASL object for references
3876produced by the Index operator. For Buffers and strings, only output the
3877actual byte pointed to by the index. For packages, only print the single
3878package element decoded by the index. Previously, the entire
3879buffer/string/package was emitted.
3880
3881iASL/Table-compiler: Fixed a regression where the "generic" data types
3882were no longer recognized, causing errors.
3883
3884
3885----------------------------------------
388615 May 2015. Summary of changes for version 20150515:
3887
3888This release implements most of ACPI 6.0 as described below.
3889
38901) ACPICA kernel-resident subsystem:
3891
3892Implemented runtime argument checking and return value checking for all
3893new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
3894_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
3895
3896Example Code and Data Size: These are the sizes for the OS-independent
3897acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3898debug version of the code includes the debug output trace mechanism and
3899has a much larger code and data size.
3900
3901  Current Release:
3902    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3903    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3904  Previous Release:
3905    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
3906    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
3907
3908
39092) iASL Compiler/Disassembler and Tools:
3910
3911iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
3912names (argument count validation and return value typechecking.)
3913
3914iASL disassembler and table compiler: implemented support for all new
3915ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
3916
3917iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
3918tables: FADT, MADT.
3919
3920iASL preprocessor: Added a new directive to enable inclusion of binary
3921blobs into ASL code. The new directive is #includebuffer. It takes a
3922binary file as input and emits a named ascii buffer object into the ASL
3923code.
3924
3925AcpiHelp: Added support for all new ACPI 6.0 predefined names.
3926
3927AcpiHelp: Added a new option, -d, to display all iASL preprocessor
3928directives.
3929
3930AcpiHelp: Added a new option, -t, to display all known/supported ACPI
3931tables.
3932
3933
3934----------------------------------------
393510 April 2015. Summary of changes for version 20150410:
3936
3937Reverted a change introduced in version 20150408 that caused
3938a regression in the disassembler where incorrect operator
3939symbols could be emitted.
3940
3941
3942----------------------------------------
394308 April 2015. Summary of changes for version 20150408:
3944
3945
39461) ACPICA kernel-resident subsystem:
3947
3948Permanently set the return value for the _REV predefined name. It now
3949returns 2 (was 5). This matches other ACPI implementations. _REV will be
3950deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
3951for ACPI 2.0 and later. It should never be used to differentiate or
3952identify operating systems.
3953
3954Added the "Windows 2015" string to the _OSI support. ACPICA will now
3955return TRUE to a query with this string.
3956
3957Fixed several issues with the local version of the printf function.
3958
3959Added the C99 compiler option (-std=c99) to the Unix makefiles.
3960
3961  Current Release:
3962    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
3963    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
3964  Previous Release:
3965    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
3966    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
3967
3968
39692) iASL Compiler/Disassembler and Tools:
3970
3971iASL: Implemented an enhancement to the constant folding feature to
3972transform the parse tree to a simple Store operation whenever possible:
3973    Add (2, 3, X) ==> is converted to: Store (5, X)
3974    X = 2 + 3     ==> is converted to: Store (5, X)
3975
3976Updated support for the SLIC table (Software Licensing Description Table)
3977in both the Data Table compiler and the disassembler. The SLIC table
3978support now conforms to "Microsoft Software Licensing Tables (SLIC and
3979MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
3980following the ACPI header is now defined to be "Proprietary Data", and as
3981such, can only be entered or displayed as a hex data block.
3982
3983Implemented full support for the MSDM table as described in the document
3984above. Note: The format of MSDM is similar to SLIC. Any MSDM data
3985following the ACPI header is defined to be "Proprietary Data", and can
3986only be entered or displayed as a hex data block.
3987
3988Implemented the -Pn option for the iASL Table Compiler (was only
3989implemented for the ASL compiler). This option disables the iASL
3990preprocessor.
3991
3992Disassembler: For disassembly of Data Tables, added a comment field
3993around the Ascii equivalent data that is emitted as part of the "Raw
3994Table Data" block. This prevents the iASL Preprocessor from possible
3995confusion if/when the table is compiled.
3996
3997Disassembler: Added an option (-df) to force the disassembler to assume
3998that the table being disassembled contains valid AML. This feature is
3999useful for disassembling AML files that contain ACPI signatures other
4000than DSDT or SSDT (such as OEMx or other signatures).
4001
4002Changes for the EFI version of the tools:
40031) Fixed a build error/issue
40042) Fixed a cast warning
4005
4006iASL: Fixed a path issue with the __FILE__ operator by making the
4007directory prefix optional within the internal SplitInputFilename
4008function.
4009
4010Debugger: Removed some unused global variables.
4011
4012Tests: Updated the makefile for proper generation of the AAPITS suite.
4013
4014
4015----------------------------------------
401604 February 2015. Summary of changes for version 20150204:
4017
4018ACPICA kernel-resident subsystem:
4019
4020Updated all ACPICA copyrights and signons to 2014. Added the 2014
4021copyright to all module headers and signons, including the standard Linux
4022header. This affects virtually every file in the ACPICA core subsystem,
4023iASL compiler, all ACPICA utilities, and the test suites.
4024
4025Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
4026A raw gpe handling mechanism was created to allow better handling of GPE
4027storms that aren't easily managed by the normal handler. The raw handler
4028allows disabling/renabling of the GPE so that interrupt storms can be
4029avoided in cases where events cannot be timely serviced. In this
4030scenario, handlers should use the AcpiSetGpe() API to disable/enable the
4031GPE. This API will leave the reference counts undisturbed, thereby
4032preventing unintentional clearing of the GPE when the intent in only to
4033temporarily disable it. Raw handlers allow enabling and disabling of a
4034GPE by removing GPE register locking. As such, raw handlers much provide
4035their own locks while using GPE API's to protect access to GPE data
4036structures.
4037Lv Zheng
4038
4039Events: Always modify GPE registers under the GPE lock.
4040Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
4041values. Reported as bug by joe.liu@apple.com.
4042
4043Unix makefiles: Separate option to disable optimizations and
4044_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
4045NOOPT disable option and creates a separate flag (NOFORTIFY) for this
4046purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
4047errors when building ACPICA. This allows disabling the option without
4048also having to disable optimazations.
4049David Box
4050
4051  Current Release:
4052    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
4053    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
4054
4055--
4056--------------------------------------
405707 November 2014. Summary of changes for version 20141107:
4058
4059This release is available at https://acpica.org/downloads
4060
4061This release introduces and implements language extensions to ASL that
4062provide support for symbolic ("C-style") operators and expressions. These
4063language extensions are known collectively as ASL+.
4064
4065
40661) iASL Compiler/Disassembler and Tools:
4067
4068Disassembler: Fixed a problem with disassembly of the UartSerialBus
4069macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
4070Box.
4071
4072Disassembler: Fixed the Unicode macro support to add escape sequences.
4073All non-printable ASCII values are emitted as escape sequences, as well
4074as the standard escapes for quote and backslash. Ensures that the
4075disassembled macro can be correctly recompiled.
4076
4077iASL: Added Printf/Fprintf macros for formatted output. These macros are
4078translated to existing AML Concatenate and Store operations. Printf
4079writes to the ASL Debug object. Fprintf allows the specification of an
4080ASL name as the target. Only a single format specifier is required, %o,
4081since the AML interpreter dynamically converts objects to the required
4082type. David E. Box.
4083
4084    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
4085                 (Concatenate (Concatenate (Concatenate ("", Arg0),
4086                 ": Unexpected value for "), Arg1), ", "), Arg2),
4087                 " at line "), Arg3), Debug)
4088
4089    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
4090                 Arg0, Arg1, Arg2, Arg3)
4091
4092    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
4093                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
4094
4095    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
4096
4097iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
4098ASL parse tree before the AML code is generated. This allows blocks of
4099ASL code to be removed in order to help locate and identify problem
4100devices and/or code. David E. Box.
4101
4102AcpiExec: Added support (-fi) for an optional namespace object
4103initialization file. This file specifies initial values for namespace
4104objects as necessary for debugging and testing different ASL code paths
4105that may be taken as a result of BIOS options.
4106
4107
41082) Overview of symbolic operator support for ASL (ASL+)
4109-------------------------------------------------------
4110
4111As an extension to the ASL language, iASL implements support for symbolic
4112(C-style) operators for math and logical expressions. This can greatly
4113simplify ASL code as well as improve both readability and
4114maintainability. These language extensions can exist concurrently with
4115all legacy ASL code and expressions.
4116
4117The symbolic extensions are 100% compatible with existing AML
4118interpreters, since no new AML opcodes are created. To implement the
4119extensions, the iASL compiler transforms the symbolic expressions into
4120the legacy ASL/AML equivalents at compile time.
4121
4122Full symbolic expressions are supported, along with the standard C
4123precedence and associativity rules.
4124
4125Full disassembler support for the symbolic expressions is provided, and
4126creates an automatic migration path for existing ASL code to ASL+ code
4127via the disassembly process. By default, the disassembler now emits ASL+
4128code with symbolic expressions. An option (-dl) is provided to force the
4129disassembler to emit legacy ASL code if desired.
4130
4131Below is the complete list of the currently supported symbolic operators
4132with examples. See the iASL User Guide for additional information.
4133
4134
4135ASL+ Syntax      Legacy ASL Equivalent
4136-----------      ---------------------
4137
4138    // Math operators
4139
4140Z = X + Y        Add (X, Y, Z)
4141Z = X - Y        Subtract (X, Y, Z)
4142Z = X * Y        Multiply (X, Y, Z)
4143Z = X / Y        Divide (X, Y, , Z)
4144Z = X % Y        Mod (X, Y, Z)
4145Z = X << Y       ShiftLeft (X, Y, Z)
4146Z = X >> Y       ShiftRight (X, Y, Z)
4147Z = X & Y        And (X, Y, Z)
4148Z = X | Y        Or (X, Y, Z)
4149Z = X ^ Y        Xor (X, Y, Z)
4150Z = ~X           Not (X, Z)
4151X++              Increment (X)
4152X--              Decrement (X)
4153
4154    // Logical operators
4155
4156(X == Y)         LEqual (X, Y)
4157(X != Y)         LNotEqual (X, Y)
4158(X < Y)          LLess (X, Y)
4159(X > Y)          LGreater (X, Y)
4160(X <= Y)         LLessEqual (X, Y)
4161(X >= Y)         LGreaterEqual (X, Y)
4162(X && Y)         LAnd (X, Y)
4163(X || Y)         LOr (X, Y)
4164(!X)             LNot (X)
4165
4166    // Assignment and compound assignment operations
4167
4168X = Y           Store (Y, X)
4169X += Y          Add (X, Y, X)
4170X -= Y          Subtract (X, Y, X)
4171X *= Y          Multiply (X, Y, X)
4172X /= Y          Divide (X, Y, , X)
4173X %= Y          Mod (X, Y, X)
4174X <<= Y         ShiftLeft (X, Y, X)
4175X >>= Y         ShiftRight (X, Y, X)
4176X &= Y          And (X, Y, X)
4177X |= Y          Or (X, Y, X)
4178X ^= Y          Xor (X, Y, X)
4179
4180
41813) ASL+ Examples:
4182-----------------
4183
4184Legacy ASL:
4185        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
4186            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
41870x03FB),
4188            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
4189        {
4190            And (MEMB, 0xFFFFFFF0, SRMB)
4191            Store (MEMB, Local2)
4192            Store (PDBM, Local1)
4193            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
4194            Store (SRMB, MEMB)
4195            Or (PDBM, 0x02, PDBM)
4196        }
4197
4198ASL+ version:
4199        If (((R510 & 0x03FB) == 0x02E0) ||
4200            ((R520 & 0x03FB) == 0x02E0) ||
4201            ((R530 & 0x03FB) == 0x02E0) ||
4202            ((R540 & 0x03FB) == 0x02E0))
4203        {
4204            SRMB = (MEMB & 0xFFFFFFF0)
4205            Local2 = MEMB
4206            Local1 = PDBM
4207            PDBM &= 0xFFFFFFFFFFFFFFF9
4208            MEMB = SRMB
4209            PDBM |= 0x02
4210        }
4211
4212Legacy ASL:
4213        Store (0x1234, Local1)
4214        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
4215        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
4216        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
4217        Store (Index (PKG1, 0x03), Local6)
4218        Store (Add (Local3, Local2), Debug)
4219        Add (Local1, 0x0F, Local2)
4220        Add (Local1, Multiply (Local2, Local3), Local2)
4221        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
4222
4223ASL+ version:
4224        Local1 = 0x1234
4225        Local3 = (((Local1 + TEST) + 0x20) * Local2)
4226        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
4227        Local3 = (Local1 + (TEST + (0x20 * Local2)))
4228        Local6 = Index (PKG1, 0x03)
4229        Debug = (Local3 + Local2)
4230        Local2 = (Local1 + 0x0F)
4231        Local2 = (Local1 + (Local2 * Local3))
4232        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
4233
4234
4235----------------------------------------
423626 September 2014. Summary of changes for version 20140926:
4237
42381) ACPICA kernel-resident subsystem:
4239
4240Updated the GPIO operation region handler interface (GeneralPurposeIo).
4241In order to support GPIO Connection objects with multiple pins, along
4242with the related Field objects, the following changes to the interface
4243have been made: The Address is now defined to be the offset in bits of
4244the field unit from the previous invocation of a Connection. It can be
4245viewed as a "Pin Number Index" into the connection resource descriptor.
4246The BitWidth is the exact bit width of the field. It is usually one bit,
4247but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
4248additional information and examples.
4249
4250GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
4251corresponding _Lxx/_Exx methods are disabled (they may have been enabled
4252by the firmware), so that they cannot fire until they are enabled via
4253AcpiUpdateAllGpes. Rafael J. Wysocki.
4254
4255Added a new return flag for the Event/GPE status interfaces --
4256AcpiGetEventStatus and AcpiGetGpeStatus. The new
4257ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
4258GPE currently has a handler associated with it, and can thus actually
4259affect the system. Lv Zheng.
4260
4261Example Code and Data Size: These are the sizes for the OS-independent
4262acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4263debug version of the code includes the debug output trace mechanism and
4264has a much larger code and data size.
4265
4266  Current Release:
4267    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
4268    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
4269  Previous Release:
4270    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4271    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4272
42732) iASL Compiler/Disassembler and Tools:
4274
4275iASL: Fixed a memory allocation/free regression introduced in 20140828
4276that could cause the compiler to crash. This was introduced inadvertently
4277during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
42781113.
4279
4280iASL: Removed two error messages that have been found to create false
4281positives, until they can be fixed and fully validated (ACPICA BZ 1112):
42821) Illegal forward reference within a method
42832) Illegal reference across two methods
4284
4285iASL: Implemented a new option (-lm) to create a hardware mapping file
4286that summarizes all GPIO, I2C, SPI, and UART connections. This option
4287works for both the compiler and disassembler. See the iASL compiler user
4288guide for additional information and examples (section 6.4.6).
4289
4290AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
4291version 2. This corrects the AE_BAD_HEADER exception seen on systems with
4292a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
4293
4294AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
4295unless STDIN is actually a terminal. Assists with batch-mode processing.
4296ACPICA BZ 1114.
4297
4298Disassembler/AcpiHelp: Added another large group of recognized _HID
4299values.
4300
4301
4302----------------------------------------
430328 August 2014. Summary of changes for version 20140828:
4304
43051) ACPICA kernel-resident subsystem:
4306
4307Fixed a problem related to the internal use of the Timer() operator where
4308a 64-bit divide could cause an attempted link to a double-precision math
4309library. This divide is not actually necessary, so the code was
4310restructured to eliminate it. Lv Zheng.
4311
4312ACPI 5.1: Added support for the runtime validation of the _DSD package
4313(similar to the iASL support).
4314
4315ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
4316SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
4317
4318Example Code and Data Size: These are the sizes for the OS-independent
4319acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4320debug version of the code includes the debug output trace mechanism and
4321has a much larger code and data size.
4322
4323  Current Release:
4324    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4325    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4326  Previous Release:
4327    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
4328    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4329
43302) iASL Compiler/Disassembler and Tools:
4331
4332AcpiExec: Fixed a problem on unix systems where the original terminal
4333state was not always properly restored upon exit. Seen when using the -v
4334option. ACPICA BZ 1104.
4335
4336iASL: Fixed a problem with the validation of the ranges/length within the
4337Memory24 resource descriptor. There was a boundary condition when the
4338range was equal to the (length -1) caused by the fact that these values
4339are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
4340
4341Disassembler: Fixed a problem with the GpioInt descriptor interrupt
4342polarity
4343flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
4344is
4345now supported properly.
4346
4347ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
4348in the disassembler, data table compiler, and table template generator.
4349
4350iASL: Added a requirement for Device() objects that one of either a _HID
4351or _ADR must exist within the scope of a Device, as per the ACPI
4352specification. Remove a similar requirement that was incorrectly in place
4353for the _DSD object.
4354
4355iASL: Added error detection for illegal named references within control
4356methods that would cause runtime failures. Now trapped as errors are: 1)
4357References to objects within a non-parent control method. 2) Forward
4358references (within a method) -- for control methods, AML interpreters use
4359a one-pass parse of control methods. ACPICA BZ 1008.
4360
4361iASL: Added error checking for dependencies related to the _PSx power
4362methods. ACPICA BZ 1029.
43631) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
4364_PS3.
43652) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
4366scope.
4367
4368iASL and table compiler: Cleanup miscellaneous memory leaks by fully
4369deploying the existing object and string caches and adding new caches for
4370the table compiler.
4371
4372iASL: Split the huge parser source file into multiple subfiles to improve
4373manageability. Generation now requires the M4 macro preprocessor, which
4374is part of the Bison distribution on both unix and windows platforms.
4375
4376AcpiSrc: Fixed and removed all extraneous warnings generated during
4377entire ACPICA source code scan and/or conversion.
4378
4379
4380----------------------------------------
4381
438224 July 2014. Summary of changes for version 20140724:
4383
4384The ACPI 5.1 specification has been released and is available at:
4385http://uefi.org/specs/access
4386
4387
43880) ACPI 5.1 support in ACPICA:
4389
4390ACPI 5.1 is fully supported in ACPICA as of this release.
4391
4392New predefined names. Support includes iASL and runtime ACPICA
4393validation.
4394    _CCA (Cache Coherency Attribute).
4395    _DSD (Device-Specific Data). David Box.
4396
4397Modifications to existing ACPI tables. Support includes headers, iASL
4398Data Table compiler, disassembler, and the template generator.
4399    FADT - New fields and flags. Graeme Gregory.
4400    GTDT - One new subtable and new fields. Tomasz Nowicki.
4401    MADT - Two new subtables. Tomasz Nowicki.
4402    PCCT - One new subtable.
4403
4404Miscellaneous.
4405    New notification type for System Resource Affinity change events.
4406
4407
44081) ACPICA kernel-resident subsystem:
4409
4410Fixed a regression introduced in 20140627 where a fault can happen during
4411the deletion of Alias AML namespace objects. The problem affected both
4412the core ACPICA and the ACPICA tools including iASL and AcpiExec.
4413
4414Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
4415simple mechanism to enable wake GPEs that have no associated handler or
4416control method. Rafael Wysocki.
4417
4418Updated the AcpiEnableGpe interface to disallow the enable if there is no
4419handler or control method associated with the particular GPE. This will
4420help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
4421
4422Updated GPE handling and dispatch by disabling the GPE before clearing
4423the status bit for edge-triggered GPEs. Lv Zheng.
4424
4425Added Timer() support to the AML Debug object. The current timer value is
4426now displayed with each invocation of (Store to) the debug object to
4427enable simple generation of execution times for AML code (method
4428execution for example.) ACPICA BZ 1093.
4429
4430Example Code and Data Size: These are the sizes for the OS-independent
4431acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4432debug version of the code includes the debug output trace mechanism and
4433has a much larger code and data size.
4434
4435  Current Release:
4436    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
4437    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4438  Previous Release:
4439    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4440    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4441
4442
44432) iASL Compiler/Disassembler and Tools:
4444
4445Fixed an issue with the recently added local printf implementation,
4446concerning width/precision specifiers that could cause incorrect output.
4447Lv Zheng. ACPICA BZ 1094.
4448
4449Disassembler: Added support to detect buffers that contain UUIDs and
4450disassemble them to an invocation of the ToUUID operator. Also emit
4451commented descriptions of known ACPI-related UUIDs.
4452
4453AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
4454-u. Adds three new files.
4455
4456iASL: Update table compiler and disassembler for DMAR table changes that
4457were introduced in September 2013. With assistance by David Woodhouse.
4458
4459----------------------------------------
446027 June 2014. Summary of changes for version 20140627:
4461
44621) ACPICA kernel-resident subsystem:
4463
4464Formatted Output: Implemented local versions of standard formatted output
4465utilities such as printf, etc. Over time, it has been discovered that
4466there are in fact many portability issues with printf, and the addition
4467of this feature will fix/prevent these issues once and for all. Some
4468known issues are summarized below:
4469
44701) Output of 64-bit values is not portable. For example, UINT64 is %ull
4471for the Linux kernel and is %uI64 for some MSVC versions.
44722) Invoking printf consistently in a manner that is portable across both
447332-bit and 64-bit platforms is difficult at best in many situations.
44743) The output format for pointers varies from system to system (leading
4475zeros especially), and leads to inconsistent output from ACPICA across
4476platforms.
44774) Certain platform-specific printf formats may conflict with ACPICA use.
44785) If there is no local C library available, ACPICA now has local support
4479for printf.
4480
4481-- To address these printf issues in a complete manner, ACPICA now
4482directly implements a small subset of printf format specifiers, only
4483those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
4484
4485Implemented support for ACPICA generation within the EFI environment.
4486Initially, the AcpiDump utility is supported in the UEFI shell
4487environment. Lv Zheng.
4488
4489Added a new external interface, AcpiLogError, to improve ACPICA
4490portability. This allows the host to redirect error messages from the
4491ACPICA utilities. Lv Zheng.
4492
4493Added and deployed new OSL file I/O interfaces to improve ACPICA
4494portability:
4495  AcpiOsOpenFile
4496  AcpiOsCloseFile
4497  AcpiOsReadFile
4498  AcpiOsWriteFile
4499  AcpiOsGetFileOffset
4500  AcpiOsSetFileOffset
4501There are C library implementations of these functions in the new file
4502service_layers/oslibcfs.c -- however, the functions can be implemented by
4503the local host in any way necessary. Lv Zheng.
4504
4505Implemented a mechanism to disable/enable ACPI table checksum validation
4506at runtime. This can be useful when loading tables very early during OS
4507initialization when it may not be possible to map the entire table in
4508order to compute the checksum. Lv Zheng.
4509
4510Fixed a buffer allocation issue for the Generic Serial Bus support.
4511Originally, a fixed buffer length was used. This change allows for
4512variable-length buffers based upon the protocol indicated by the field
4513access attributes. Reported by Lan Tianyu. Lv Zheng.
4514
4515Fixed a problem where an object detached from a namespace node was not
4516properly terminated/cleared and could cause a circular list problem if
4517reattached. ACPICA BZ 1063. David Box.
4518
4519Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
4520
4521Fixed a possible memory leak in an error return path within the function
4522AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
4523
4524Example Code and Data Size: These are the sizes for the OS-independent
4525acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4526debug version of the code includes the debug output trace mechanism and
4527has a much larger code and data size.
4528
4529  Current Release:
4530    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4531    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4532  Previous Release:
4533    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4534    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4535
4536
45372) iASL Compiler/Disassembler and Tools:
4538
4539Disassembler: Add dump of ASCII equivalent text within a comment at the
4540end of each line of the output for the Buffer() ASL operator.
4541
4542AcpiDump: Miscellaneous changes:
4543  Fixed repetitive table dump in -n mode.
4544  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
4545the ACPI 2.0 GUID fails.
4546
4547iASL: Fixed a problem where the compiler could fault if incorrectly given
4548an acpidump output file as input. ACPICA BZ 1088. David Box.
4549
4550AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
4551they are invoked without any arguments.
4552
4553Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
45541086. Colin Ian King.
4555
4556Disassembler: Cleaned up a block of code that extracts a parent Op
4557object. Added a comment that explains that the parent is guaranteed to be
4558valid in this case. ACPICA BZ 1069.
4559
4560
4561----------------------------------------
456224 April 2014. Summary of changes for version 20140424:
4563
45641) ACPICA kernel-resident subsystem:
4565
4566Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
4567Some of these tables are known to contain a trailing NULL entry. Lv
4568Zheng.
4569
4570Removed an extraneous error message for the case where there are a large
4571number of system GPEs (> 124). This was the "32-bit FADT register is too
4572long to convert to GAS struct" message, which is irrelevant for GPEs
4573since the GPEx_BLK_LEN fields of the FADT are always used instead of the
4574(limited capacity) GAS bit length. Also, several changes to ensure proper
4575support for GPE numbers > 255, where some "GPE number" fields were 8-bits
4576internally.
4577
4578Implemented and deployed additional configuration support for the public
4579ACPICA external interfaces. Entire classes of interfaces can now be
4580easily modified or configured out, replaced by stubbed inline functions
4581by default. Lv Zheng.
4582
4583Moved all public ACPICA runtime configuration globals to the public
4584ACPICA external interface file for convenience. Also, removed some
4585obsolete/unused globals. See the file acpixf.h. Lv Zheng.
4586
4587Documentation: Added a new section to the ACPICA reference describing the
4588maximum number of GPEs that can be supported by the FADT-defined GPEs in
4589block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
4590reference.
4591
4592Example Code and Data Size: These are the sizes for the OS-independent
4593acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4594debug version of the code includes the debug output trace mechanism and
4595has a much larger code and data size.
4596
4597  Current Release:
4598    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4599    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4600  Previous Release:
4601    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4602    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4603
4604
46052) iASL Compiler/Disassembler and Tools:
4606
4607iASL and disassembler: Add full support for the LPIT table (Low Power
4608Idle Table). Includes support in the disassembler, data table compiler,
4609and template generator.
4610
4611AcpiDump utility:
46121) Add option to force the use of the RSDT (over the XSDT).
46132) Improve validation of the RSDP signature (use 8 chars instead of 4).
4614
4615iASL: Add check for predefined packages that are too large.  For
4616predefined names that contain subpackages, check if each subpackage is
4617too large. (Check for too small already exists.)
4618
4619Debugger: Updated the GPE command (which simulates a GPE by executing the
4620GPE code paths in ACPICA). The GPE device is now optional, and defaults
4621to the GPE 0/1 FADT-defined blocks.
4622
4623Unix application OSL: Update line-editing support. Add additional error
4624checking and take care not to reset terminal attributes on exit if they
4625were never set. This should help guarantee that the terminal is always
4626left in the previous state on program exit.
4627
4628
4629----------------------------------------
463025 March 2014. Summary of changes for version 20140325:
4631
46321) ACPICA kernel-resident subsystem:
4633
4634Updated the auto-serialize feature for control methods. This feature
4635automatically serializes all methods that create named objects in order
4636to prevent runtime errors. The update adds support to ignore the
4637currently executing AML SyncLevel when invoking such a method, in order
4638to prevent disruption of any existing SyncLevel priorities that may exist
4639in the AML code. Although the use of SyncLevels is relatively rare, this
4640change fixes a regression where an AE_AML_MUTEX_ORDER exception can
4641appear on some machines starting with the 20140214 release.
4642
4643Added a new external interface to allow the host to install ACPI tables
4644very early, before the namespace is even created. AcpiInstallTable gives
4645the host additional flexibility for ACPI table management. Tables can be
4646installed directly by the host as if they had originally appeared in the
4647XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
4648(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
4649with additional internal restructuring and cleanup. See the ACPICA
4650Reference for interface details. Lv Zheng.
4651
4652Added validation of the checksum for all incoming dynamically loaded
4653tables (via external interfaces or via AML Load/LoadTable operators). Lv
4654Zheng.
4655
4656Updated the use of the AcpiOsWaitEventsComplete interface during Notify
4657and GPE handler removal. Restructured calls to eliminate possible race
4658conditions. Lv Zheng.
4659
4660Added a warning for the use/execution of the ASL/AML Unload (table)
4661operator. This will help detect and identify machines that use this
4662operator if and when it is ever used. This operator has never been seen
4663in the field and the usage model and possible side-effects of the drastic
4664runtime action of a full table removal are unknown.
4665
4666Reverted the use of #pragma push/pop which was introduced in the 20140214
4667release. It appears that push and pop are not implemented by enough
4668compilers to make the use of this feature feasible for ACPICA at this
4669time. However, these operators may be deployed in a future ACPICA
4670release.
4671
4672Added the missing EXPORT_SYMBOL macros for the install and remove SCI
4673handler interfaces.
4674
4675Source code generation:
46761) Disabled the use of the "strchr" macro for the gcc-specific
4677generation. For some versions of gcc, this macro can periodically expose
4678a compiler bug which in turn causes compile-time error(s).
46792) Added support for PPC64 compilation. Colin Ian King.
4680
4681Example Code and Data Size: These are the sizes for the OS-independent
4682acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4683debug version of the code includes the debug output trace mechanism and
4684has a much larger code and data size.
4685
4686  Current Release:
4687    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4688    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4689  Previous Release:
4690    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4691    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4692
4693
46942) iASL Compiler/Disassembler and Tools:
4695
4696Disassembler: Added several new features to improve the readability of
4697the resulting ASL code. Extra information is emitted within comment
4698fields in the ASL code:
46991) Known _HID/_CID values are decoded to descriptive text.
47002) Standard values for the Notify() operator are decoded to descriptive
4701text.
47023) Target operands are expanded to full pathnames (in a comment) when
4703possible.
4704
4705Disassembler: Miscellaneous updates for extern() handling:
47061) Abort compiler if file specified by -fe option does not exist.
47072) Silence unnecessary warnings about argument count mismatches.
47083) Update warning messages concerning unresolved method externals.
47094) Emit "UnknownObj" keyword for externals whose type cannot be
4710determined.
4711
4712AcpiHelp utility:
47131) Added the -a option to display both the ASL syntax and the AML
4714encoding for an input ASL operator. This effectively displays all known
4715information about an ASL operator with one AcpiHelp invocation.
47162) Added substring match support (similar to a wildcard) for the -i
4717(_HID/PNP IDs) option.
4718
4719iASL/Disassembler: Since this tool does not yet support execution on big-
4720endian machines, added detection of endianness and an error message if
4721execution is attempted on big-endian. Support for big-endian within iASL
4722is a feature that is on the ACPICA to-be-done list.
4723
4724AcpiBin utility:
47251) Remove option to extract binary files from an acpidump; this function
4726is made obsolete by the AcpiXtract utility.
47272) General cleanup of open files and allocated buffers.
4728
4729
4730----------------------------------------
473114 February 2014. Summary of changes for version 20140214:
4732
47331) ACPICA kernel-resident subsystem:
4734
4735Implemented a new mechanism to proactively prevent problems with ill-
4736behaved reentrant control methods that create named ACPI objects. This
4737behavior is illegal as per the ACPI specification, but is nonetheless
4738frequently seen in the field. Previously, this could lead to an
4739AE_ALREADY_EXISTS exception if the method was actually entered by more
4740than one thread. This new mechanism detects such methods at table load
4741time and marks them "serialized" to prevent reentrancy. A new global
4742option, AcpiGbl_AutoSerializeMethods, has been added to disable this
4743feature if desired. This mechanism and global option obsoletes and
4744supersedes the previous AcpiGbl_SerializeAllMethods option.
4745
4746Added the "Windows 2013" string to the _OSI support. ACPICA will now
4747respond TRUE to _OSI queries with this string. It is the stated policy of
4748ACPICA to add new strings to the _OSI support as soon as possible after
4749they are defined. See the full ACPICA _OSI policy which has been added to
4750the utilities/utosi.c file.
4751
4752Hardened/updated the _PRT return value auto-repair code:
47531) Do not abort the repair on a single subpackage failure, continue to
4754check all subpackages.
47552) Add check for the minimum subpackage length (4).
47563) Properly handle extraneous NULL package elements.
4757
4758Added support to avoid the possibility of infinite loops when traversing
4759object linked lists. Never allow an infinite loop, even in the face of
4760corrupted object lists.
4761
4762ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
4763pack(pop) directives to ensure that the ACPICA headers are independent of
4764compiler settings or other host headers.
4765
4766Example Code and Data Size: These are the sizes for the OS-independent
4767acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4768debug version of the code includes the debug output trace mechanism and
4769has a much larger code and data size.
4770
4771  Current Release:
4772    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4773    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4774  Previous Release:
4775    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4776    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4777
4778
47792) iASL Compiler/Disassembler and Tools:
4780
4781iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
4782first reserved field was incorrectly forced to have a value of zero. This
4783change correctly forces the field to have a value of one. ACPICA BZ 1081.
4784
4785Debugger: Added missing support for the "Extra" and "Data" subobjects
4786when displaying object data.
4787
4788Debugger: Added support to display entire object linked lists when
4789displaying object data.
4790
4791iASL: Removed the obsolete -g option to obtain ACPI tables from the
4792Windows registry. This feature has been superseded by the acpidump
4793utility.
4794
4795
4796----------------------------------------
479714 January 2014. Summary of changes for version 20140114:
4798
47991) ACPICA kernel-resident subsystem:
4800
4801Updated all ACPICA copyrights and signons to 2014. Added the 2014
4802copyright to all module headers and signons, including the standard Linux
4803header. This affects virtually every file in the ACPICA core subsystem,
4804iASL compiler, all ACPICA utilities, and the test suites.
4805
4806Improved parameter validation for AcpiInstallGpeBlock. Added the
4807following checks:
48081) The incoming device handle refers to type ACPI_TYPE_DEVICE.
48092) There is not already a GPE block attached to the device.
4810Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
4811device.
4812
4813Correctly support "references" in the ACPI_OBJECT. This change fixes the
4814support to allow references (namespace nodes) to be passed as arguments
4815to control methods via the evaluate object interface. This is probably
4816most useful for testing purposes, however.
4817
4818Improved support for 32/64 bit physical addresses in printf()-like
4819output. This change improves the support for physical addresses in printf
4820debug statements and other output on both 32-bit and 64-bit hosts. It
4821consistently outputs the appropriate number of bytes for each host. The
4822%p specifier is unsatisfactory since it does not emit uniform output on
4823all hosts/clib implementations (on some, leading zeros are not supported,
4824leading to difficult-to-read output).
4825
4826Example Code and Data Size: These are the sizes for the OS-independent
4827acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4828debug version of the code includes the debug output trace mechanism and
4829has a much larger code and data size.
4830
4831  Current Release:
4832    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4833    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4834  Previous Release:
4835    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4836    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4837
4838
48392) iASL Compiler/Disassembler and Tools:
4840
4841iASL: Fix a possible fault when using the Connection() operator. Fixes a
4842problem if the parent Field definition for the Connection operator refers
4843to an operation region that does not exist. ACPICA BZ 1064.
4844
4845AcpiExec: Load of local test tables is now optional. The utility has the
4846capability to load some various tables to test features of ACPICA.
4847However, there are enough of them that the output of the utility became
4848confusing. With this change, only the required local tables are displayed
4849(RSDP, XSDT, etc.) along with the actual tables loaded via the command
4850line specification. This makes the default output simler and easier to
4851understand. The -el command line option restores the original behavior
4852for testing purposes.
4853
4854AcpiExec: Added support for overlapping operation regions. This change
4855expands the simulation of operation regions by supporting regions that
4856overlap within the given address space. Supports SystemMemory and
4857SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
4858
4859AcpiExec: Added region handler support for PCI_Config and EC spaces. This
4860allows AcpiExec to simulate these address spaces, similar to the current
4861support for SystemMemory and SystemIO.
4862
4863Debugger: Added new command to read/write/compare all namespace objects.
4864The command "test objects" will exercise the entire namespace by writing
4865new values to each data object, and ensuring that the write was
4866successful. The original value is then restored and verified.
4867
4868Debugger: Added the "test predefined" command. This change makes this
4869test public and puts it under the new "test" command. The test executes
4870each and every predefined name within the current namespace.
4871
4872
4873----------------------------------------
487418 December 2013. Summary of changes for version 20131218:
4875
4876Global note: The ACPI 5.0A specification was released this month. There
4877are no changes needed for ACPICA since this release of ACPI is an
4878errata/clarification release. The specification is available at
4879acpi.info.
4880
4881
48821) ACPICA kernel-resident subsystem:
4883
4884Added validation of the XSDT root table if it is present. Some older
4885platforms contain an XSDT that is ill-formed or otherwise invalid (such
4886as containing some or all entries that are NULL pointers). This change
4887adds a new function to validate the XSDT before actually using it. If the
4888XSDT is found to be invalid, ACPICA will now automatically fall back to
4889using the RSDT instead. Original implementation by Zhao Yakui. Ported to
4890ACPICA and enhanced by Lv Zheng and Bob Moore.
4891
4892Added a runtime option to ignore the XSDT and force the use of the RSDT.
4893This change adds a runtime option that will force ACPICA to use the RSDT
4894instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
4895requires that an XSDT be used instead of the RSDT, the XSDT has been
4896found to be corrupt or ill-formed on some machines. Lv Zheng.
4897
4898Added a runtime option to favor 32-bit FADT register addresses over the
489964-bit addresses. This change adds an option to favor 32-bit FADT
4900addresses when there is a conflict between the 32-bit and 64-bit versions
4901of the same register. The default behavior is to use the 64-bit version
4902in accordance with the ACPI specification. This can now be overridden via
4903the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
4904
4905During the change above, the internal "Convert FADT" and "Verify FADT"
4906functions have been merged to simplify the code, making it easier to
4907understand and maintain. ACPICA BZ 933.
4908
4909Improve exception reporting and handling for GPE block installation.
4910Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
4911status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
4912
4913Added helper macros to extract bus/segment numbers from the HEST table.
4914This change adds two macros to extract the encoded bus and segment
4915numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
4916Betty Dall <betty.dall@hp.com>
4917
4918Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
4919by ACPICA. It is not a public macro, so it should have no effect on
4920existing OSV code. Lv Zheng.
4921
4922Example Code and Data Size: These are the sizes for the OS-independent
4923acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4924debug version of the code includes the debug output trace mechanism and
4925has a much larger code and data size.
4926
4927  Current Release:
4928    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4929    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4930  Previous Release:
4931    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
4932    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
4933
4934
49352) iASL Compiler/Disassembler and Tools:
4936
4937Disassembler: Improved pathname support for emitted External()
4938statements. This change adds full pathname support for external names
4939that have been resolved internally by the inclusion of additional ACPI
4940tables (via the iASL -e option). Without this change, the disassembler
4941can emit multiple externals for the same object, or it become confused
4942when the Scope() operator is used on an external object. Overall, greatly
4943improves the ability to actually recompile the emitted ASL code when
4944objects a referenced across multiple ACPI tables. Reported by Michael
4945Tsirkin (mst@redhat.com).
4946
4947Tests/ASLTS: Updated functional control suite to execute with no errors.
4948David Box. Fixed several errors related to the testing of the interpreter
4949slack mode. Lv Zheng.
4950
4951iASL: Added support to detect names that are declared within a control
4952method, but are unused (these are temporary names that are only valid
4953during the time the method is executing). A remark is issued for these
4954cases. ACPICA BZ 1022.
4955
4956iASL: Added full support for the DBG2 table. Adds full disassembler,
4957table compiler, and template generator support for the DBG2 table (Debug
4958Port 2 table).
4959
4960iASL: Added full support for the PCCT table, update the table definition.
4961Updates the PCCT table definition in the actbl3.h header and adds table
4962compiler and template generator support.
4963
4964iASL: Added an option to emit only error messages (no warnings/remarks).
4965The -ve option will enable only error messages, warnings and remarks are
4966suppressed. This can simplify debugging when only the errors are
4967important, such as when an ACPI table is disassembled and there are many
4968warnings and remarks -- but only the actual errors are of real interest.
4969
4970Example ACPICA code (source/tools/examples): Updated the example code so
4971that it builds to an actual working program, not just example code. Added
4972ACPI tables and execution of an example control method in the DSDT. Added
4973makefile support for Unix generation.
4974
4975
4976----------------------------------------
497715 November 2013. Summary of changes for version 20131115:
4978
4979This release is available at https://acpica.org/downloads
4980
4981
49821) ACPICA kernel-resident subsystem:
4983
4984Resource Manager: Fixed loop termination for the "get AML length"
4985function. The loop previously had an error termination on a NULL resource
4986pointer, which can never happen since the loop simply increments a valid
4987resource pointer. This fix changes the loop to terminate with an error on
4988an invalid end-of-buffer condition. The problem can be seen as an
4989infinite loop by callers to AcpiSetCurrentResources with an invalid or
4990corrupted resource descriptor, or a resource descriptor that is missing
4991an END_TAG descriptor. Reported by Dan Carpenter
4992<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
4993
4994Table unload and ACPICA termination: Delete all attached data objects
4995during namespace node deletion. This fix updates namespace node deletion
4996to delete the entire list of attached objects (attached via
4997AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
49981024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
4999
5000ACPICA termination: Added support to delete all objects attached to the
5001root namespace node. This fix deletes any and all objects that have been
5002attached to the root node via AcpiAttachData. Previously, none of these
5003objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
5004
5005Debug output: Do not emit the function nesting level for the in-kernel
5006build. The nesting level is really only useful during a single-thread
5007execution. Therefore, only enable this output for the AcpiExec utility.
5008Also, only emit the thread ID when executing under AcpiExec (Context
5009switches are still always detected and a message is emitted). ACPICA BZ
5010972.
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 version of the code includes the debug output trace mechanism and
5015has a much larger code and data size.
5016
5017  Current Release:
5018    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
5019    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
5020  Previous Release:
5021    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
5022    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
5023
5024
50252) iASL Compiler/Disassembler and Tools:
5026
5027AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
5028correct portable POSIX header for terminal control functions.
5029
5030Disassembler: Fixed control method invocation issues related to the use
5031of the CondRefOf() operator. The problem is seen in the disassembly where
5032control method invocations may not be disassembled properly if the
5033control method name has been used previously as an argument to CondRefOf.
5034The solution is to not attempt to emit an external declaration for the
5035CondRefOf target (it is not necessary in the first place). This prevents
5036disassembler object type confusion. ACPICA BZ 988.
5037
5038Unix Makefiles: Added an option to disable compiler optimizations and the
5039_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
5040with optimizations (reportedly, gcc 4.4 for example). This change adds a
5041command line option for make (NOOPT) that disables all compiler
5042optimizations and the _FORTIFY_SOURCE compiler flag. The default
5043optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
50441034. Lv Zheng, Bob Moore.
5045
5046Tests/ASLTS: Added options to specify individual test cases and modes.
5047This allows testers running aslts.sh to optionally specify individual
5048test modes and test cases. Also added an option to disable the forced
5049generation of the ACPICA tools from source if desired. Lv Zheng.
5050
5051----------------------------------------
505227 September 2013. Summary of changes for version 20130927:
5053
5054This release is available at https://acpica.org/downloads
5055
5056
50571) ACPICA kernel-resident subsystem:
5058
5059Fixed a problem with store operations to reference objects. This change
5060fixes a problem where a Store operation to an ArgX object that contained
5061a
5062reference to a field object did not complete the automatic dereference
5063and
5064then write to the actual field object. Instead, the object type of the
5065field object was inadvertently changed to match the type of the source
5066operand. The new behavior will actually write to the field object (buffer
5067field or field unit), thus matching the correct ACPI-defined behavior.
5068
5069Implemented support to allow the host to redefine individual OSL
5070prototypes. This change enables the host to redefine OSL prototypes found
5071in the acpiosxf.h file. This allows the host to implement OSL interfaces
5072with a macro or inlined function. Further, it allows the host to add any
5073additional required modifiers such as __iomem, __init, __exit, etc., as
5074necessary on a per-interface basis. Enables maximum flexibility for the
5075OSL interfaces. Lv Zheng.
5076
5077Hardcoded the access width for the FADT-defined reset register. The ACPI
5078specification requires the reset register width to be 8 bits. ACPICA now
5079hardcodes the width to 8 and ignores the FADT width value. This provides
5080compatibility with other ACPI implementations that have allowed BIOS code
5081with bad register width values to go unnoticed. Matthew Garett, Bob
5082Moore,
5083Lv Zheng.
5084
5085Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
5086used
5087in the OSL header (acpiosxf). The change modifies the position of this
5088macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
5089build issues if the OSL defines the implementation of the interface to be
5090an inline stub function. Lv Zheng.
5091
5092Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
5093initialization interfaces. This change adds a new macro for the main init
5094and terminate external interfaces in order to support hosts that require
5095additional or different processing for these functions. Changed from
5096ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
5097Zheng, Bob Moore.
5098
5099Cleaned up the memory allocation macros for configurability. In the
5100common
5101case, the ACPI_ALLOCATE and related macros now resolve directly to their
5102respective AcpiOs* OSL interfaces. Two options:
51031) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
5104default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
51052) For AcpiExec (and for debugging), the macros can optionally be
5106resolved
5107to the local ACPICA interfaces that track each allocation (local tracking
5108is used to immediately detect memory leaks).
5109Lv Zheng.
5110
5111Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
5112to predefine this macro to either TRUE or FALSE during the system build.
5113
5114Replaced __FUNCTION_ with __func__ in the gcc-specific header.
5115
5116Example Code and Data Size: These are the sizes for the OS-independent
5117acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5118debug version of the code includes the debug output trace mechanism and
5119has a much larger code and data size.
5120
5121  Current Release:
5122    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
5123    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
5124  Previous Release:
5125    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
5126    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5127
5128
51292) iASL Compiler/Disassembler and Tools:
5130
5131iASL: Implemented wildcard support for the -e option. This simplifies use
5132when there are many SSDTs that must be included to resolve external
5133method
5134declarations. ACPICA BZ 1041. Example:
5135    iasl -e ssdt*.dat -d dsdt.dat
5136
5137AcpiExec: Add history/line-editing for Unix/Linux systems. This change
5138adds a portable module that implements full history and limited line
5139editing for Unix and Linux systems. It does not use readline() due to
5140portability issues. Instead it uses the POSIX termio interface to put the
5141terminal in raw input mode so that the various special keys can be
5142trapped
5143(such as up/down-arrow for history support and left/right-arrow for line
5144editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
5145
5146AcpiXtract: Add support to handle (ignore) "empty" lines containing only
5147one or more spaces. This provides compatible with early or different
5148versions of the AcpiDump utility. ACPICA BZ 1044.
5149
5150AcpiDump: Do not ignore tables that contain only an ACPI table header.
5151Apparently, some BIOSs create SSDTs that contain an ACPI table header but
5152no other data. This change adds support to dump these tables. Any tables
5153shorter than the length of an ACPI table header remain in error (an error
5154message is emitted). Reported by Yi Li.
5155
5156Debugger: Echo actual command along with the "unknown command" message.
5157
5158----------------------------------------
515923 August 2013. Summary of changes for version 20130823:
5160
51611) ACPICA kernel-resident subsystem:
5162
5163Implemented support for host-installed System Control Interrupt (SCI)
5164handlers. Certain ACPI functionality requires the host to handle raw
5165SCIs. For example, the "SCI Doorbell" that is defined for memory power
5166state support requires the host device driver to handle SCIs to examine
5167if the doorbell has been activated. Multiple SCI handlers can be
5168installed to allow for future expansion. New external interfaces are
5169AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
5170details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
5171
5172Operation region support: Never locally free the handler "context"
5173pointer. This change removes some dangerous code that attempts to free
5174the handler context pointer in some (rare) circumstances. The owner of
5175the handler owns this pointer and the ACPICA code should never touch it.
5176Although not seen to be an issue in any kernel, it did show up as a
5177problem (fault) under AcpiExec. Also, set the internal storage field for
5178the context pointer to zero when the region is deactivated, simply for
5179sanity. David Box. ACPICA BZ 1039.
5180
5181AcpiRead: On error, do not modify the return value target location. If an
5182error happens in the middle of a split 32/32 64-bit I/O operation, do not
5183modify the target of the return value pointer. Makes the code consistent
5184with the rest of ACPICA. Bjorn Helgaas.
5185
5186Example Code and Data Size: These are the sizes for the OS-independent
5187acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5188debug version of the code includes the debug output trace mechanism and
5189has a much larger code and data size.
5190
5191  Current Release:
5192    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
5193    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5194  Previous Release:
5195    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5196    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
5197
5198
51992) iASL Compiler/Disassembler and Tools:
5200
5201AcpiDump: Implemented several new features and fixed some problems:
52021) Added support to dump the RSDP, RSDT, and XSDT tables.
52032) Added support for multiple table instances (SSDT, UEFI).
52043) Added option to dump "customized" (overridden) tables (-c).
52054) Fixed a problem where some table filenames were improperly
5206constructed.
52075) Improved some error messages, removed some unnecessary messages.
5208
5209iASL: Implemented additional support for disassembly of ACPI tables that
5210contain invocations of external control methods. The -fe<file> option
5211allows the import of a file that specifies the external methods along
5212with the required number of arguments for each -- allowing for the
5213correct disassembly of the table. This is a workaround for a limitation
5214of AML code where the disassembler often cannot determine the number of
5215arguments required for an external control method and generates incorrect
5216ASL code. See the iASL reference for details. ACPICA BZ 1030.
5217
5218Debugger: Implemented a new command (paths) that displays the full
5219pathnames (namepaths) and object types of all objects in the namespace.
5220This is an alternative to the namespace command.
5221
5222Debugger: Implemented a new command (sci) that invokes the SCI dispatch
5223mechanism and any installed handlers.
5224
5225iASL: Fixed a possible segfault for "too many parent prefixes" condition.
5226This can occur if there are too many parent prefixes in a namepath (for
5227example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
5228
5229Application OSLs: Set the return value for the PCI read functions. These
5230functions simply return AE_OK, but should set the return value to zero
5231also. This change implements this. ACPICA BZ 1038.
5232
5233Debugger: Prevent possible command line buffer overflow. Increase the
5234size of a couple of the debugger line buffers, and ensure that overflow
5235cannot happen. ACPICA BZ 1037.
5236
5237iASL: Changed to abort immediately on serious errors during the parsing
5238phase. Due to the nature of ASL, there is no point in attempting to
5239compile these types of errors, and they typically end up causing a
5240cascade of hundreds of errors which obscure the original problem.
5241
5242----------------------------------------
524325 July 2013. Summary of changes for version 20130725:
5244
52451) ACPICA kernel-resident subsystem:
5246
5247Fixed a problem with the DerefOf operator where references to FieldUnits
5248and BufferFields incorrectly returned the parent object, not the actual
5249value of the object. After this change, a dereference of a FieldUnit
5250reference results in a read operation on the field to get the value, and
5251likewise, the appropriate BufferField value is extracted from the target
5252buffer.
5253
5254Fixed a problem where the _WAK method could cause a fault under these
5255circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
5256method returned no value. The problem is rarely seen because most kernels
5257run ACPICA in slack mode.
5258
5259For the DerefOf operator, a fatal error now results if an attempt is made
5260to dereference a reference (created by the Index operator) to a NULL
5261package element. Provides compatibility with other ACPI implementations,
5262and this behavior will be added to a future version of the ACPI
5263specification.
5264
5265The ACPI Power Management Timer (defined in the FADT) is now optional.
5266This provides compatibility with other ACPI implementations and will
5267appear in the next version of the ACPI specification. If there is no PM
5268Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
5269zero in the FADT indicates no PM timer.
5270
5271Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
5272allows the host to globally enable/disable all vendor strings, all
5273feature strings, or both. Intended to be primarily used for debugging
5274purposes only. Lv Zheng.
5275
5276Expose the collected _OSI data to the host via a global variable. This
5277data tracks the highest level vendor ID that has been invoked by the BIOS
5278so that the host (and potentially ACPICA itself) can change behaviors
5279based upon the age of the BIOS.
5280
5281Example Code and Data Size: These are the sizes for the OS-independent
5282acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5283debug version of the code includes the debug output trace mechanism and
5284has a much larger code and data size.
5285
5286  Current Release:
5287    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5288    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5289  Previous Release:
5290    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5291    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5292
5293
52942) iASL Compiler/Disassembler and Tools:
5295
5296iASL: Created the following enhancements for the -so option (create
5297offset table):
52981)Add offsets for the last nameseg in each namepath for every supported
5299object type
53002)Add support for Processor, Device, Thermal Zone, and Scope objects
53013)Add the actual AML opcode for the parent object of every supported
5302object type
53034)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
5304
5305Disassembler: Emit all unresolved external symbols in a single block.
5306These are external references to control methods that could not be
5307resolved, and thus, the disassembler had to make a guess at the number of
5308arguments to parse.
5309
5310iASL: The argument to the -T option (create table template) is now
5311optional. If not specified, the default table is a DSDT, typically the
5312most common case.
5313
5314----------------------------------------
531526 June 2013. Summary of changes for version 20130626:
5316
53171) ACPICA kernel-resident subsystem:
5318
5319Fixed an issue with runtime repair of the _CST object. Null or invalid
5320elements were not always removed properly. Lv Zheng.
5321
5322Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
5323FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
5324the maximum number of GPEs is 1016. Use of multiple GPE block devices
5325makes the system-wide number of GPEs essentially unlimited.
5326
5327Example Code and Data Size: These are the sizes for the OS-independent
5328acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5329debug version of the code includes the debug output trace mechanism and
5330has a much larger code and data size.
5331
5332  Current Release:
5333    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5334    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5335  Previous Release:
5336    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5337    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5338
5339
53402) iASL Compiler/Disassembler and Tools:
5341
5342Portable AcpiDump: Implemented full support for the Linux and FreeBSD
5343hosts. Now supports Linux, FreeBSD, and Windows.
5344
5345Disassembler: Added some missing types for the HEST and EINJ tables: "Set
5346Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
5347
5348iASL/Preprocessor: Implemented full support for nested
5349#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
5350
5351Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
5352max. The original purpose of this constraint was to limit the amount of
5353debug output. However, the string function in question (UtPrintString) is
5354now used for the disassembler also, where 256 bytes is insufficient.
5355Reported by RehabMan@GitHub.
5356
5357iASL/DataTables: Fixed some problems and issues with compilation of DMAR
5358tables. ACPICA BZ 999. Lv Zheng.
5359
5360iASL: Fixed a couple of error exit issues that could result in a "Could
5361not delete <file>" message during ASL compilation.
5362
5363AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
5364the actual signatures for these tables are "FACP" and "APIC",
5365respectively.
5366
5367AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
5368tables are allowed to have multiple instances.
5369
5370----------------------------------------
537117 May 2013. Summary of changes for version 20130517:
5372
53731) ACPICA kernel-resident subsystem:
5374
5375Fixed a regression introduced in version 20130328 for _INI methods. This
5376change fixes a problem introduced in 20130328 where _INI methods are no
5377longer executed properly because of a memory block that was not
5378initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
5379<tomasz.nowicki@linaro.org>.
5380
5381Fixed a possible problem with the new extended sleep registers in the
5382ACPI
53835.0 FADT. Do not use these registers (even if populated) unless the HW-
5384reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
53851020. Lv Zheng.
5386
5387Implemented return value repair code for _CST predefined objects: Sort
5388the
5389list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
5390
5391Implemented a debug-only option to disable loading of SSDTs from the
5392RSDT/XSDT during ACPICA initialization. This can be useful for debugging
5393ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
5394acglobal.h - ACPICA BZ 1005. Lv Zheng.
5395
5396Fixed some issues in the ACPICA initialization and termination code:
5397Tomasz Nowicki <tomasz.nowicki@linaro.org>
53981) Clear events initialized flag upon event component termination. ACPICA
5399BZ 1013.
54002) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
54013) Delete global lock pending lock during termination. ACPICA BZ 1012.
54024) Clear debug buffer global on termination to prevent possible multiple
5403delete. ACPICA BZ 1010.
5404
5405Standardized all switch() blocks across the entire source base. After
5406many
5407years, different formatting for switch() had crept in. This change makes
5408the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
5409
5410Split some files to enhance ACPICA modularity and configurability:
54111) Split buffer dump routines into utilities/utbuffer.c
54122) Split internal error message routines into utilities/uterror.c
54133) Split table print utilities into tables/tbprint.c
54144) Split iASL command-line option processing into asloptions.c
5415
5416Makefile enhancements:
54171) Support for all new files above.
54182) Abort make on errors from any subcomponent. Chao Guan.
54193) Add build support for Apple Mac OS X. Liang Qi.
5420
5421Example Code and Data Size: These are the sizes for the OS-independent
5422acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5423debug version of the code includes the debug output trace mechanism and
5424has a much larger code and data size.
5425
5426  Current Release:
5427    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5428    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5429  Previous Release:
5430    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5431    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5432
5433
54342) iASL Compiler/Disassembler and Tools:
5435
5436New utility: Implemented an easily portable version of the acpidump
5437utility to extract ACPI tables from the system (or a file) in an ASCII
5438hex
5439dump format. The top-level code implements the various command line
5440options, file I/O, and table dump routines. To port to a new host, only
5441three functions need to be implemented to get tables -- since this
5442functionality is OS-dependent. See the tools/acpidump/apmain.c module and
5443the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
54441) The Windows version obtains the ACPI tables from the Registry.
54452) The Linux version is under development.
54463) Other hosts - If an OS-dependent module is submitted, it will be
5447distributed with ACPICA.
5448
5449iASL: Fixed a regression for -D preprocessor option (define symbol). A
5450restructuring/change to the initialization sequence caused this option to
5451no longer work properly.
5452
5453iASL: Implemented a mechanism to disable specific warnings and remarks.
5454Adds a new command line option, "-vw <messageid> as well as "#pragma
5455disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
5456
5457iASL: Fix for too-strict package object validation. The package object
5458validation for return values from the predefined names is a bit too
5459strict, it does not allow names references within the package (which will
5460be resolved at runtime.) These types of references cannot be validated at
5461compile time. This change ignores named references within package objects
5462for names that return or define static packages.
5463
5464Debugger: Fixed the 80-character command line limitation for the History
5465command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
5466
5467iASL: Added control method and package support for the -so option
5468(generates AML offset table for BIOS support.)
5469
5470iASL: issue a remark if a non-serialized method creates named objects. If
5471a thread blocks within the method for any reason, and another thread
5472enters the method, the method will fail because an attempt will be made
5473to
5474create the same (named) object twice. In this case, issue a remark that
5475the method should be marked serialized. NOTE: may become a warning later.
5476ACPICA BZ 909.
5477
5478----------------------------------------
547918 April 2013. Summary of changes for version 20130418:
5480
54811) ACPICA kernel-resident subsystem:
5482
5483Fixed a possible buffer overrun during some rare but specific field unit
5484read operations. This overrun can only happen if the DSDT version is 1 --
5485meaning that all AML integers are 32 bits -- and the field length is
5486between 33 and 55 bits long. During the read, an internal buffer object
5487is
5488created for the field unit because the field is larger than an integer
5489(32
5490bits). However, in this case, the buffer will be incorrectly written
5491beyond the end because the buffer length is less than the internal
5492minimum
5493of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
5494long, but a full 8 bytes will be written.
5495
5496Updated the Embedded Controller "orphan" _REG method support. This refers
5497to _REG methods under the EC device that have no corresponding operation
5498region. This is allowed by the ACPI specification. This update removes a
5499dependency on the existence an ECDT table. It will execute an orphan _REG
5500method as long as the operation region handler for the EC is installed at
5501the EC device node and not the namespace root. Rui Zhang (original
5502update), Bob Moore (update/integrate).
5503
5504Implemented run-time argument typechecking for all predefined ACPI names
5505(_STA, _BIF, etc.) This change performs object typechecking on all
5506incoming arguments for all predefined names executed via
5507AcpiEvaluateObject. This ensures that ACPI-related device drivers are
5508passing correct object types as well as the correct number of arguments
5509(therefore identifying any issues immediately). Also, the ASL/namespace
5510definition of the predefined name is checked against the ACPI
5511specification for the proper argument count. Adds one new file,
5512nsarguments.c
5513
5514Changed an exception code for the ASL UnLoad() operator. Changed the
5515exception code for the case where the input DdbHandle is invalid, from
5516AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
5517
5518Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
5519global makefile. The use of this flag causes compiler errors on earlier
5520versions of GCC, so it has been removed for compatibility.
5521
5522Miscellaneous cleanup:
55231) Removed some unused/obsolete macros
55242) Fixed a possible memory leak in the _OSI support
55253) Removed an unused variable in the predefined name support
55264) Windows OSL: remove obsolete reference to a memory list field
5527
5528Example Code and Data Size: These are the sizes for the OS-independent
5529acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5530debug version of the code includes the debug output trace mechanism and
5531has a much larger code and data size.
5532
5533  Current Release:
5534    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5535    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5536  Previous Release:
5537    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5538    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5539
5540
55412) iASL Compiler/Disassembler and Tools:
5542
5543AcpiExec: Added installation of a handler for the SystemCMOS address
5544space. This prevents control method abort if a method accesses this
5545space.
5546
5547AcpiExec: Added support for multiple EC devices, and now install EC
5548operation region handler(s) at the actual EC device instead of the
5549namespace root. This reflects the typical behavior of host operating
5550systems.
5551
5552AcpiExec: Updated to ensure that all operation region handlers are
5553installed before the _REG methods are executed. This prevents a _REG
5554method from aborting if it accesses an address space has no handler.
5555AcpiExec installs a handler for every possible address space.
5556
5557Debugger: Enhanced the "handlers" command to display non-root handlers.
5558This change enhances the handlers command to display handlers associated
5559with individual devices throughout the namespace, in addition to the
5560currently supported display of handlers associated with the root
5561namespace
5562node.
5563
5564ASL Test Suite: Several test suite errors have been identified and
5565resolved, reducing the total error count during execution. Chao Guan.
5566
5567----------------------------------------
556828 March 2013. Summary of changes for version 20130328:
5569
55701) ACPICA kernel-resident subsystem:
5571
5572Fixed several possible race conditions with the internal object reference
5573counting mechanism. Some of the external ACPICA interfaces update object
5574reference counts without holding the interpreter or namespace lock. This
5575change adds a spinlock to protect reference count updates on the internal
5576ACPICA objects. Reported by and with assistance from Andriy Gapon
5577(avg@FreeBSD.org).
5578
5579FADT support: Removed an extraneous warning for very large GPE register
5580sets. This change removes a size mismatch warning if the legacy length
5581field for a GPE register set is larger than the 64-bit GAS structure can
5582accommodate. GPE register sets can be larger than the 255-bit width
5583limitation of the GAS structure. Linn Crosetto (linn@hp.com).
5584
5585_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
5586return from this interface. Handles a possible timeout case if
5587ACPI_WAIT_FOREVER is modified by the host to be a value less than
5588"forever". Jung-uk Kim.
5589
5590Predefined name support: Add allowed/required argument type information
5591to
5592the master predefined info table. This change adds the infrastructure to
5593enable typechecking on incoming arguments for all predefined
5594methods/objects. It does not actually contain the code that will fully
5595utilize this information, this is still under development. Also condenses
5596some duplicate code for the predefined names into a new module,
5597utilities/utpredef.c
5598
5599Example Code and Data Size: These are the sizes for the OS-independent
5600acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5601debug version of the code includes the debug output trace mechanism and
5602has a much larger code and data size.
5603
5604  Previous Release:
5605    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5606    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5607  Current Release:
5608    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5609    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5610
5611
56122) iASL Compiler/Disassembler and Tools:
5613
5614iASL: Implemented a new option to simplify the development of ACPI-
5615related
5616BIOS code. Adds support for a new "offset table" output file. The -so
5617option will create a C table containing the AML table offsets of various
5618named objects in the namespace so that BIOS code can modify them easily
5619at
5620boot time. This can simplify BIOS runtime code by eliminating expensive
5621searches for "magic values", enhancing boot times and adding greater
5622reliability. With assistance from Lee Hamel.
5623
5624iASL: Allow additional predefined names to return zero-length packages.
5625Now, all predefined names that are defined by the ACPI specification to
5626return a "variable-length package of packages" are allowed to return a
5627zero length top-level package. This allows the BIOS to tell the host that
5628the requested feature is not supported, and supports existing BIOS/ASL
5629code and practices.
5630
5631iASL: Changed the "result not used" warning to an error. This is the case
5632where an ASL operator is effectively a NOOP because the result of the
5633operation is not stored anywhere. For example:
5634    Add (4, Local0)
5635There is no target (missing 3rd argument), nor is the function return
5636value used. This is potentially a very serious problem -- since the code
5637was probably intended to do something, but for whatever reason, the value
5638was not stored. Therefore, this issue has been upgraded from a warning to
5639an error.
5640
5641AcpiHelp: Added allowable/required argument types to the predefined names
5642info display. This feature utilizes the recent update to the predefined
5643names table (above).
5644
5645----------------------------------------
564614 February 2013. Summary of changes for version 20130214:
5647
56481) ACPICA Kernel-resident Subsystem:
5649
5650Fixed a possible regression on some hosts: Reinstated the safe return
5651macros (return_ACPI_STATUS, etc.) that ensure that the argument is
5652evaluated only once. Although these macros are not needed for the ACPICA
5653code itself, they are often used by ACPI-related host device drivers
5654where
5655the safe feature may be necessary.
5656
5657Fixed several issues related to the ACPI 5.0 reduced hardware support
5658(SOC): Now ensure that if the platform declares itself as hardware-
5659reduced
5660via the FADT, the following functions become NOOPs (and always return
5661AE_OK) because ACPI is always enabled by definition on these machines:
5662  AcpiEnable
5663  AcpiDisable
5664  AcpiHwGetMode
5665  AcpiHwSetMode
5666
5667Dynamic Object Repair: Implemented additional runtime repairs for
5668predefined name return values. Both of these repairs can simplify code in
5669the related device drivers that invoke these methods:
56701) For the _STR and _MLS names, automatically repair/convert an ASCII
5671string to a Unicode buffer.
56722) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
5673a
5674lone end tag descriptor in the following cases: A Return(0) was executed,
5675a null buffer was returned, or no object at all was returned (non-slack
5676mode only). Adds a new file, nsconvert.c
5677ACPICA BZ 998. Bob Moore, Lv Zheng.
5678
5679Resource Manager: Added additional code to prevent possible infinite
5680loops
5681while traversing corrupted or ill-formed resource template buffers. Check
5682for zero-length resource descriptors in all code that loops through
5683resource templates (the length field is used to index through the
5684template). This change also hardens the external AcpiWalkResources and
5685AcpiWalkResourceBuffer interfaces.
5686
5687Local Cache Manager: Enhanced the main data structure to eliminate an
5688unnecessary mechanism to access the next object in the list. Actually
5689provides a small performance enhancement for hosts that use the local
5690ACPICA cache manager. Jung-uk Kim.
5691
5692Example Code and Data Size: These are the sizes for the OS-independent
5693acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5694debug version of the code includes the debug output trace mechanism and
5695has a much larger code and data size.
5696
5697  Previous Release:
5698    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5699    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5700  Current Release:
5701    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5702    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5703
5704
57052) iASL Compiler/Disassembler and Tools:
5706
5707iASL/Disassembler: Fixed several issues with the definition of the ACPI
57085.0 RASF table (RAS Feature Table). This change incorporates late changes
5709that were made to the ACPI 5.0 specification.
5710
5711iASL/Disassembler: Added full support for the following new ACPI tables:
5712  1) The MTMR table (MID Timer Table)
5713  2) The VRTC table (Virtual Real Time Clock Table).
5714Includes header file, disassembler, table compiler, and template support
5715for both tables.
5716
5717iASL: Implemented compile-time validation of package objects returned by
5718predefined names. This new feature validates static package objects
5719returned by the various predefined names defined to return packages. Both
5720object types and package lengths are validated, for both parent packages
5721and sub-packages, if any. The code is similar in structure and behavior
5722to
5723the runtime repair mechanism within the AML interpreter and uses the
5724existing predefined name information table. Adds a new file, aslprepkg.c.
5725ACPICA BZ 938.
5726
5727iASL: Implemented auto-detection of binary ACPI tables for disassembly.
5728This feature detects a binary file with a valid ACPI table header and
5729invokes the disassembler automatically. Eliminates the need to
5730specifically invoke the disassembler with the -d option. ACPICA BZ 862.
5731
5732iASL/Disassembler: Added several warnings for the case where there are
5733unresolved control methods during the disassembly. This can potentially
5734cause errors when the output file is compiled, because the disassembler
5735assumes zero method arguments in these cases (it cannot determine the
5736actual number of arguments without resolution/definition of the method).
5737
5738Debugger: Added support to display all resources with a single command.
5739Invocation of the resources command with no arguments will now display
5740all
5741resources within the current namespace.
5742
5743AcpiHelp: Added descriptive text for each ACPICA exception code displayed
5744via the -e option.
5745
5746----------------------------------------
574717 January 2013. Summary of changes for version 20130117:
5748
57491) ACPICA Kernel-resident Subsystem:
5750
5751Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
5752return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
5753objects to return a package containing one integer, most BIOS code
5754returns
5755two integers and the previous code reflects that. However, we also need
5756to
5757support BIOS code that actually implements to the ACPI spec, and this
5758change reflects this.
5759
5760Fixed two issues with the ACPI_DEBUG_PRINT macros:
57611) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
5762C compilers that require this support.
57632) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
5764ACPI_DEBUG is already used by many of the various hosts.
5765
5766Updated all ACPICA copyrights and signons to 2013. Added the 2013
5767copyright to all module headers and signons, including the standard Linux
5768header. This affects virtually every file in the ACPICA core subsystem,
5769iASL compiler, all ACPICA utilities, and the test suites.
5770
5771Example Code and Data Size: These are the sizes for the OS-independent
5772acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5773debug version of the code includes the debug output trace mechanism and
5774has a much larger code and data size.
5775
5776  Previous Release:
5777    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5778    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5779  Current Release:
5780    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5781    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5782
5783
57842) iASL Compiler/Disassembler and Tools:
5785
5786Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
5787prevent a possible fault on some hosts. Some C libraries modify the arg
5788pointer parameter to vfprintf making it difficult to call it twice in the
5789AcpiOsVprintf function. Use a local buffer to workaround this issue. This
5790does not affect the Windows OSL since the Win C library does not modify
5791the arg pointer. Chao Guan, Bob Moore.
5792
5793iASL: Fixed a possible infinite loop when the maximum error count is
5794reached. If an output file other than the .AML file is specified (such as
5795a listing file), and the maximum number of errors is reached, do not
5796attempt to flush data to the output file(s) as the compiler is aborting.
5797This can cause an infinite loop as the max error count code essentially
5798keeps calling itself.
5799
5800iASL/Disassembler: Added an option (-in) to ignore NOOP
5801opcodes/operators.
5802Implemented for both the compiler and the disassembler. Often, the NOOP
5803opcode is used as padding for packages that are changed dynamically by
5804the
5805BIOS. When disassembled and recompiled, these NOOPs will cause syntax
5806errors. This option causes the disassembler to ignore all NOOP opcodes
5807(0xA3), and it also causes the compiler to ignore all ASL source code
5808NOOP
5809statements as well.
5810
5811Debugger: Enhanced the Sleep command to execute all sleep states. This
5812change allows Sleep to be invoked with no arguments and causes the
5813debugger to execute all of the sleep states, 0-5, automatically.
5814
5815----------------------------------------
581620 December 2012. Summary of changes for version 20121220:
5817
58181) ACPICA Kernel-resident Subsystem:
5819
5820Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
5821alternate entry point for AcpiWalkResources and improves the usability of
5822the resource manager by accepting as input a buffer containing the output
5823of either a _CRS, _PRS, or _AEI method. The key functionality is that the
5824input buffer is not deleted by this interface so that it can be used by
5825the host later. See the ACPICA reference for details.
5826
5827Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
5828(DSDT version < 2). The constant will be truncated and this warning
5829reflects that behavior.
5830
5831Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
5832ExtendedInterrupt, and GpioInt descriptors. This change adds support to
5833both get and set the new wake bit in these descriptors, separately from
5834the existing share bit. Reported by Aaron Lu.
5835
5836Interpreter: Fix Store() when an implicit conversion is not possible. For
5837example, in the cases such as a store of a string to an existing package
5838object, implement the store as a CopyObject(). This is a small departure
5839from the ACPI specification which states that the control method should
5840be
5841aborted in this case. However, the ASLTS suite depends on this behavior.
5842
5843Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
5844macros: check if debug output is currently enabled as soon as possible to
5845minimize performance impact if debug is in fact not enabled.
5846
5847Source code restructuring: Cleanup to improve modularity. The following
5848new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
5849psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
5850Associated makefiles and project files have been updated.
5851
5852Changed an exception code for LoadTable operator. For the case where one
5853of the input strings is too long, change the returned exception code from
5854AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
5855
5856Fixed a possible memory leak in dispatcher error path. On error, delete
5857the mutex object created during method mutex creation. Reported by
5858tim.gardner@canonical.com.
5859
5860Example Code and Data Size: These are the sizes for the OS-independent
5861acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5862debug version of the code includes the debug output trace mechanism and
5863has a much larger code and data size.
5864
5865  Previous Release:
5866    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5867    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5868  Current Release:
5869    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5870    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5871
5872
58732) iASL Compiler/Disassembler and Tools:
5874
5875iASL: Disallow a method call as argument to the ObjectType ASL operator.
5876This change tracks an errata to the ACPI 5.0 document. The AML grammar
5877will not allow the interpreter to differentiate between a method and a
5878method invocation when these are used as an argument to the ObjectType
5879operator. The ACPI specification change is to disallow a method
5880invocation
5881(UserTerm) for the ObjectType operator.
5882
5883Finish support for the TPM2 and CSRT tables in the headers, table
5884compiler, and disassembler.
5885
5886Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
5887always expires immediately if the semaphore is not available. The
5888original
5889code was using a relative-time timeout, but sem_timedwait requires the
5890use
5891of an absolute time.
5892
5893iASL: Added a remark if the Timer() operator is used within a 32-bit
5894table. This operator returns a 64-bit time value that will be truncated
5895within a 32-bit table.
5896
5897iASL Source code restructuring: Cleanup to improve modularity. The
5898following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
5899aslmethod.c, and aslfileio.c. Associated makefiles and project files have
5900been updated.
5901
5902
5903----------------------------------------
590414 November 2012. Summary of changes for version 20121114:
5905
59061) ACPICA Kernel-resident Subsystem:
5907
5908Implemented a performance enhancement for ACPI/AML Package objects. This
5909change greatly increases the performance of Package objects within the
5910interpreter. It changes the processing of reference counts for packages
5911by
5912optimizing for the most common case where the package sub-objects are
5913either Integers, Strings, or Buffers. Increases the overall performance
5914of
5915the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
59162X.)
5917Chao Guan. ACPICA BZ 943.
5918
5919Implemented and deployed common macros to extract flag bits from resource
5920descriptors. Improves readability and maintainability of the code. Fixes
5921a
5922problem with the UART serial bus descriptor for the number of data bits
5923flags (was incorrectly 2 bits, should be 3).
5924
5925Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
5926of the macros and changed the SETx macros to the style of (destination,
5927source). Also added ACPI_CASTx companion macros. Lv Zheng.
5928
5929Example Code and Data Size: These are the sizes for the OS-independent
5930acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5931debug version of the code includes the debug output trace mechanism and
5932has a much larger code and data size.
5933
5934  Previous Release:
5935    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
5936    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5937  Current Release:
5938    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5939    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5940
5941
59422) iASL Compiler/Disassembler and Tools:
5943
5944Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
5945adds the ShareAndWake and ExclusiveAndWake flags which were added to the
5946Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
5947
5948Disassembler: Fixed a problem with external declaration generation. Fixes
5949a problem where an incorrect pathname could be generated for an external
5950declaration if the original reference to the object includes leading
5951carats (^). ACPICA BZ 984.
5952
5953Debugger: Completed a major update for the Disassemble<method> command.
5954This command was out-of-date and did not properly disassemble control
5955methods that had any reasonable complexity. This fix brings the command
5956up
5957to the same level as the rest of the disassembler. Adds one new file,
5958dmdeferred.c, which is existing code that is now common with the main
5959disassembler and the debugger disassemble command. ACPICA MZ 978.
5960
5961iASL: Moved the parser entry prototype to avoid a duplicate declaration.
5962Newer versions of Bison emit this prototype, so moved the prototype out
5963of
5964the iASL header to where it is actually used in order to avoid a
5965duplicate
5966declaration.
5967
5968iASL/Tools: Standardized use of the stream I/O functions:
5969  1) Ensure check for I/O error after every fopen/fread/fwrite
5970  2) Ensure proper order of size/count arguments for fread/fwrite
5971  3) Use test of (Actual != Requested) after all fwrite, and most fread
5972  4) Standardize I/O error messages
5973Improves reliability and maintainability of the code. Bob Moore, Lv
5974Zheng.
5975ACPICA BZ 981.
5976
5977Disassembler: Prevent duplicate External() statements. During generation
5978of external statements, detect similar pathnames that are actually
5979duplicates such as these:
5980  External (\ABCD)
5981  External (ABCD)
5982Remove all leading '\' characters from pathnames during the external
5983statement generation so that duplicates will be detected and tossed.
5984ACPICA BZ 985.
5985
5986Tools: Replace low-level I/O with stream I/O functions. Replace
5987open/read/write/close with the stream I/O equivalents
5988fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
5989Moore.
5990
5991AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
5992name header so that AcpiXtract recognizes the output file/table.
5993
5994iASL: Remove obsolete -2 option flag. Originally intended to force the
5995compiler/disassembler into an ACPI 2.0 mode, this was never implemented
5996and the entire concept is now obsolete.
5997
5998----------------------------------------
599918 October 2012. Summary of changes for version 20121018:
6000
6001
60021) ACPICA Kernel-resident Subsystem:
6003
6004Updated support for the ACPI 5.0 MPST table. Fixes some problems
6005introduced by late changes to the table as it was added to the ACPI 5.0
6006specification. Includes header, disassembler, and data table compiler
6007support as well as a new version of the MPST template.
6008
6009AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
60105.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
6011methods: _HID, _CID, and _UID.
6012
6013Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
6014ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
6015name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
6016names for their various drivers. Affects the AcpiGetObjectInfo external
6017interface, and other internal interfaces as well.
6018
6019Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
6020This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
6021on machines that support non-aligned transfers. Optimizes for this case
6022rather than using a strncpy. With assistance from Zheng Lv.
6023
6024Resource Manager: Small fix for buffer size calculation. Fixed a one byte
6025error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
6026
6027Added a new debug print message for AML mutex objects that are force-
6028released. At control method termination, any currently acquired mutex
6029objects are force-released. Adds a new debug-only message for each one
6030that is released.
6031
6032Audited/updated all ACPICA return macros and the function debug depth
6033counter: 1) Ensure that all functions that use the various TRACE macros
6034also use the appropriate ACPICA return macros. 2) Ensure that all normal
6035return statements surround the return expression (value) with parens to
6036ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
6037Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
6038
6039Global source code changes/maintenance: All extra lines at the start and
6040end of each source file have been removed for consistency. Also, within
6041comments, all new sentences start with a single space instead of a double
6042space, again for consistency across the code base.
6043
6044Example Code and Data Size: These are the sizes for the OS-independent
6045acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6046debug version of the code includes the debug output trace mechanism and
6047has a much larger code and data size.
6048
6049  Previous Release:
6050    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
6051    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
6052  Current Release:
6053    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
6054    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
6055
6056
60572) iASL Compiler/Disassembler and Tools:
6058
6059AcpiExec: Improved the algorithm used for memory leak/corruption
6060detection. Added some intelligence to the code that maintains the global
6061list of allocated memory. The list is now ordered by allocated memory
6062address, significantly improving performance. When running AcpiExec on
6063the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
6064on the platform and/or the environment. Note, this performance
6065enhancement affects the AcpiExec utility only, not the kernel-resident
6066ACPICA code.
6067
6068Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
6069the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
6070incorrect table offset reported for invalid opcodes. Report the original
607132-bit value for bad ACPI_NAMEs (as well as the repaired name.)
6072
6073Disassembler: Enhanced the -vt option to emit the binary table data in
6074hex format to assist with debugging.
6075
6076Fixed a potential filename buffer overflow in osunixdir.c. Increased the
6077size of file structure. Colin Ian King.
6078
6079----------------------------------------
608013 September 2012. Summary of changes for version 20120913:
6081
6082
60831) ACPICA Kernel-resident Subsystem:
6084
6085ACPI 5.0: Added two new notify types for the Hardware Error Notification
6086Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
6087and
6088MCE(6).
6089
6090Table Manager: Merged/removed duplicate code in the root table resize
6091functions. One function is external, the other is internal. Lv Zheng,
6092ACPICA
6093BZ 846.
6094
6095Makefiles: Completely removed the obsolete "Linux" makefiles under
6096acpica/generate/linux. These makefiles are obsolete and have been
6097replaced
6098by
6099the generic unix makefiles under acpica/generate/unix.
6100
6101Makefiles: Ensure that binary files always copied properly. Minor rule
6102change
6103to ensure that the final binary output files are always copied up to the
6104appropriate binary directory (bin32 or bin64.)
6105
6106Example Code and Data Size: These are the sizes for the OS-independent
6107acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6108debug
6109version of the code includes the debug output trace mechanism and has a
6110much
6111larger code and data size.
6112
6113  Previous Release:
6114    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6115    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6116  Current Release:
6117    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
6118    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
6119
6120
61212) iASL Compiler/Disassembler and Tools:
6122
6123Disassembler: Fixed a possible fault during the disassembly of resource
6124descriptors when a second parse is required because of the invocation of
6125external control methods within the table. With assistance from
6126adq@lidskialf.net. ACPICA BZ 976.
6127
6128iASL: Fixed a namepath optimization problem. An error can occur if the
6129parse
6130node that contains the namepath to be optimized does not have a parent
6131node
6132that is a named object. This change fixes the problem.
6133
6134iASL: Fixed a regression where the AML file is not deleted on errors. The
6135AML
6136output file should be deleted if there are any errors during the
6137compiler.
6138The
6139only exception is if the -f (force output) option is used. ACPICA BZ 974.
6140
6141iASL: Added a feature to automatically increase internal line buffer
6142sizes.
6143Via realloc(), automatically increase the internal line buffer sizes as
6144necessary to support very long source code lines. The current version of
6145the
6146preprocessor requires a buffer long enough to contain full source code
6147lines.
6148This change increases the line buffer(s) if the input lines go beyond the
6149current buffer size. This eliminates errors that occurred when a source
6150code
6151line was longer than the buffer.
6152
6153iASL: Fixed a problem with constant folding in method declarations. The
6154SyncLevel term is a ByteConstExpr, and incorrect code would be generated
6155if a
6156Type3 opcode was used.
6157
6158Debugger: Improved command help support. For incorrect argument count,
6159display
6160full help for the command. For help command itself, allow an argument to
6161specify a command.
6162
6163Test Suites: Several bug fixes for the ASLTS suite reduces the number of
6164errors during execution of the suite. Guan Chao.
6165
6166----------------------------------------
616716 August 2012. Summary of changes for version 20120816:
6168
6169
61701) ACPICA Kernel-resident Subsystem:
6171
6172Removed all use of the deprecated _GTS and _BFS predefined methods. The
6173_GTS
6174(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
6175deprecated and will probably be removed from the ACPI specification.
6176Windows
6177does not invoke them, and reportedly never will. The final nail in the
6178coffin
6179is that the ACPI specification states that these methods must be run with
6180interrupts off, which is not going to happen in a kernel interpreter.
6181Note:
6182Linux has removed all use of the methods also. It was discovered that
6183invoking these functions caused failures on some machines, probably
6184because
6185they were never tested since Windows does not call them. Affects two
6186external
6187interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
6188ACPICA BZ 969.
6189
6190Implemented support for complex bit-packed buffers returned from the _PLD
6191(Physical Location of Device) predefined method. Adds a new external
6192interface, AcpiDecodePldBuffer that parses the buffer into a more usable
6193C
6194structure. Note: C Bitfields cannot be used for this type of predefined
6195structure since the memory layout of individual bitfields is not defined
6196by
6197the C language. In addition, there are endian concerns where a compiler
6198will
6199change the bitfield ordering based on the machine type. The new ACPICA
6200interface eliminates these issues, and should be called after _PLD is
6201executed. ACPICA BZ 954.
6202
6203Implemented a change to allow a scope change to root (via "Scope (\)")
6204during
6205execution of module-level ASL code (code that is executed at table load
6206time.) Lin Ming.
6207
6208Added the Windows8/Server2012 string for the _OSI method. This change
6209adds
6210a
6211new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
62122012.
6213
6214Added header support for the new ACPI tables DBG2 (Debug Port Table Type
62152)
6216and CSRT (Core System Resource Table).
6217
6218Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
6219names. This simplifies access to the buffers returned by these predefined
6220names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
6221
6222GPE support: Removed an extraneous parameter from the various low-level
6223internal GPE functions. Tang Feng.
6224
6225Removed the linux makefiles from the unix packages. The generate/linux
6226makefiles are obsolete and have been removed from the unix tarball
6227release
6228packages. The replacement makefiles are under generate/unix, and there is
6229a
6230top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
6231
6232Updates for Unix makefiles:
62331) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
62342) Update linker flags (move to end of command line) for AcpiExec
6235utility.
6236Guan Chao.
6237
6238Split ACPICA initialization functions to new file, utxfinit.c. Split from
6239utxface.c to improve modularity and reduce file size.
6240
6241Example Code and Data Size: These are the sizes for the OS-independent
6242acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6243debug version of the code includes the debug output trace mechanism and
6244has a
6245much larger code and data size.
6246
6247  Previous Release:
6248    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6249    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6250  Current Release:
6251    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6252    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6253
6254
62552) iASL Compiler/Disassembler and Tools:
6256
6257iASL: Fixed a problem with constant folding for fixed-length constant
6258expressions. The constant-folding code was not being invoked for constant
6259expressions that allow the use of type 3/4/5 opcodes to generate
6260constants
6261for expressions such as ByteConstExpr, WordConstExpr, etc. This could
6262result
6263in the generation of invalid AML bytecode. ACPICA BZ 970.
6264
6265iASL: Fixed a generation issue on newer versions of Bison. Newer versions
6266apparently automatically emit some of the necessary externals. This
6267change
6268handles these versions in order to eliminate generation warnings.
6269
6270Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
6271
6272Disassembler: Add support to decode _PLD buffers. The decoded buffer
6273appears
6274within comments in the output file.
6275
6276Debugger: Fixed a regression with the "Threads" command where
6277AE_BAD_PARAMETER was always returned.
6278
6279----------------------------------------
628011 July 2012. Summary of changes for version 20120711:
6281
62821) ACPICA Kernel-resident Subsystem:
6283
6284Fixed a possible fault in the return package object repair code. Fixes a
6285problem that can occur when a lone package object is wrapped with an
6286outer
6287package object in order to force conformance to the ACPI specification.
6288Can
6289affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
6290_DLM,
6291_CSD, _PSD, _TSD.
6292
6293Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
6294PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
6295ARB_DIS bit must be implemented in the host-dependent C3 processor power
6296state
6297support. Note, ARB_DIS is obsolete and only applies to older chipsets,
6298both
6299Intel and other vendors. (for Intel: ICH4-M and earlier)
6300
6301This change removes the code to disable/enable bus master arbitration
6302during
6303suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
6304causes
6305resume problems on some machines. The change has been in use for over
6306seven
6307years within Linux.
6308
6309Implemented two new external interfaces to support host-directed dynamic
6310ACPI
6311table load and unload. They are intended to simplify the host
6312implementation
6313of hot-plug support:
6314  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
6315  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
6316table.
6317See the ACPICA reference for additional details. Adds one new file,
6318components/tables/tbxfload.c
6319
6320Implemented and deployed two new interfaces for errors and warnings that
6321are
6322known to be caused by BIOS/firmware issues:
6323  AcpiBiosError: Prints "ACPI Firmware Error" message.
6324  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
6325Deployed these new interfaces in the ACPICA Table Manager code for ACPI
6326table
6327and FADT errors. Additional deployment to be completed as appropriate in
6328the
6329future. The associated conditional macros are ACPI_BIOS_ERROR and
6330ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
6331ACPICA
6332BZ
6333843.
6334
6335Implicit notify support: ensure that no memory allocation occurs within a
6336critical region. This fix moves a memory allocation outside of the time
6337that a
6338spinlock is held. Fixes issues on systems that do not allow this
6339behavior.
6340Jung-uk Kim.
6341
6342Split exception code utilities and tables into a new file,
6343utilities/utexcep.c
6344
6345Example Code and Data Size: These are the sizes for the OS-independent
6346acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6347debug
6348version of the code includes the debug output trace mechanism and has a
6349much
6350larger code and data size.
6351
6352  Previous Release:
6353    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6354    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6355  Current Release:
6356    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6357    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6358
6359
63602) iASL Compiler/Disassembler and Tools:
6361
6362iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
6363of
63640. Jung-uk Kim.
6365
6366Debugger: Enhanced the "tables" command to emit additional information
6367about
6368the current set of ACPI tables, including the owner ID and flags decode.
6369
6370Debugger: Reimplemented the "unload" command to use the new
6371AcpiUnloadParentTable external interface. This command was disable
6372previously
6373due to need for an unload interface.
6374
6375AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
6376option
6377will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
6378
6379----------------------------------------
638020 June 2012. Summary of changes for version 20120620:
6381
6382
63831) ACPICA Kernel-resident Subsystem:
6384
6385Implemented support to expand the "implicit notify" feature to allow
6386multiple
6387devices to be notified by a single GPE. This feature automatically
6388generates a
6389runtime device notification in the absence of a BIOS-provided GPE control
6390method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
6391notify is
6392provided by ACPICA for Windows compatibility, and is a workaround for
6393BIOS
6394AML
6395code errors. See the description of the AcpiSetupGpeForWake interface in
6396the
6397APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
6398
6399Changed some comments and internal function names to simplify and ensure
6400correctness of the Linux code translation. No functional changes.
6401
6402Example Code and Data Size: These are the sizes for the OS-independent
6403acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6404debug
6405version of the code includes the debug output trace mechanism and has a
6406much
6407larger code and data size.
6408
6409  Previous Release:
6410    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6411    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6412  Current Release:
6413    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6414    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6415
6416
64172) iASL Compiler/Disassembler and Tools:
6418
6419Disassembler: Added support to emit short, commented descriptions for the
6420ACPI
6421predefined names in order to improve the readability of the disassembled
6422output. ACPICA BZ 959. Changes include:
6423  1) Emit descriptions for all standard predefined names (_INI, _STA,
6424_PRW,
6425etc.)
6426  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
6427  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
6428etc.)
6429
6430AcpiSrc: Fixed several long-standing Linux code translation issues.
6431Argument
6432descriptions in function headers are now translated properly to lower
6433case
6434and
6435underscores. ACPICA BZ 961. Also fixes translation problems such as
6436these:
6437(old -> new)
6438  i_aSL -> iASL
6439  00-7_f -> 00-7F
6440  16_k -> 16K
6441  local_fADT -> local_FADT
6442  execute_oSI -> execute_OSI
6443
6444iASL: Fixed a problem where null bytes were inadvertently emitted into
6445some
6446listing files.
6447
6448iASL: Added the existing debug options to the standard help screen. There
6449are
6450no longer two different help screens. ACPICA BZ 957.
6451
6452AcpiHelp: Fixed some typos in the various predefined name descriptions.
6453Also
6454expand some of the descriptions where appropriate.
6455
6456iASL: Fixed the -ot option (display compile times/statistics). Was not
6457working
6458properly for standard output; only worked for the debug file case.
6459
6460----------------------------------------
646118 May 2012. Summary of changes for version 20120518:
6462
6463
64641) ACPICA Core Subsystem:
6465
6466Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
6467defined
6468to block until asynchronous events such as notifies and GPEs have
6469completed.
6470Within ACPICA, it is only called before a notify or GPE handler is
6471removed/uninstalled. It also may be useful for the host OS within related
6472drivers such as the Embedded Controller driver. See the ACPICA reference
6473for
6474additional information. ACPICA BZ 868.
6475
6476ACPI Tables: Added a new error message for a possible overflow failure
6477during
6478the conversion of FADT 32-bit legacy register addresses to internal
6479common
648064-
6481bit GAS structure representation. The GAS has a one-byte "bit length"
6482field,
6483thus limiting the register length to 255 bits. ACPICA BZ 953.
6484
6485Example Code and Data Size: These are the sizes for the OS-independent
6486acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6487debug
6488version of the code includes the debug output trace mechanism and has a
6489much
6490larger code and data size.
6491
6492  Previous Release:
6493    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6494    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6495  Current Release:
6496    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6497    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6498
6499
65002) iASL Compiler/Disassembler and Tools:
6501
6502iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
6503macro.
6504This keyword was added late in the ACPI 5.0 release cycle and was not
6505implemented until now.
6506
6507Disassembler: Added support for Operation Region externals. Adds missing
6508support for operation regions that are defined in another table, and
6509referenced locally via a Field or BankField ASL operator. Now generates
6510the
6511correct External statement.
6512
6513Disassembler: Several additional fixes for the External() statement
6514generation
6515related to some ASL operators. Also, order the External() statements
6516alphabetically in the disassembler output. Fixes the External()
6517generation
6518for
6519the Create* field, Alias, and Scope operators:
6520 1) Create* buffer field operators - fix type mismatch warning on
6521disassembly
6522 2) Alias - implement missing External support
6523 3) Scope - fix to make sure all necessary externals are emitted.
6524
6525iASL: Improved pathname support. For include files, merge the prefix
6526pathname
6527with the file pathname and eliminate unnecessary components. Convert
6528backslashes in all pathnames to forward slashes, for readability. Include
6529file
6530pathname changes affect both #include and Include() type operators.
6531
6532iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
6533end
6534of a valid line by inserting a newline and then returning the EOF during
6535the
6536next call to GetNextLine. Prevents the line from being ignored due to EOF
6537condition.
6538
6539iASL: Implemented some changes to enhance the IDE support (-vi option.)
6540Error
6541and Warning messages are now correctly recognized for both the source
6542code
6543browser and the global error and warning counts.
6544
6545----------------------------------------
654620 April 2012. Summary of changes for version 20120420:
6547
6548
65491) ACPICA Core Subsystem:
6550
6551Implemented support for multiple notify handlers. This change adds
6552support
6553to
6554allow multiple system and device notify handlers on Device, Thermal Zone,
6555and
6556Processor objects. This can simplify the host OS notification
6557implementation.
6558Also re-worked and restructured the entire notify support code to
6559simplify
6560handler installation, handler removal, notify event queuing, and notify
6561dispatch to handler(s). Note: there can still only be two global notify
6562handlers - one for system notifies and one for device notifies. There are
6563no
6564changes to the existing handler install/remove interfaces. Lin Ming, Bob
6565Moore, Rafael Wysocki.
6566
6567Fixed a regression in the package repair code where the object reference
6568count was calculated incorrectly. Regression was introduced in the commit
6569"Support to add Package wrappers".
6570
6571Fixed a couple possible memory leaks in the AML parser, in the error
6572recovery
6573path. Jesper Juhl, Lin Ming.
6574
6575Example Code and Data Size: These are the sizes for the OS-independent
6576acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6577debug version of the code includes the debug output trace mechanism and
6578has a
6579much larger code and data size.
6580
6581  Previous Release:
6582    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6583    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6584  Current Release:
6585    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6586    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6587
6588
65892) iASL Compiler/Disassembler and Tools:
6590
6591iASL: Fixed a problem with the resource descriptor support where the
6592length
6593of the StartDependentFn and StartDependentFnNoPrio descriptors were not
6594included in cumulative descriptor offset, resulting in incorrect values
6595for
6596resource tags within resource descriptors appearing after a
6597StartDependent*
6598descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
6599
6600iASL and Preprocessor: Implemented full support for the #line directive
6601to
6602correctly track original source file line numbers through the .i
6603preprocessor
6604output file - for error and warning messages.
6605
6606iASL: Expand the allowable byte constants for address space IDs.
6607Previously,
6608the allowable range was 0x80-0xFF (user-defined spaces), now the range is
66090x0A-0xFF to allow for custom and new IDs without changing the compiler.
6610
6611iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
6612
6613iASL: Add option to completely disable the preprocessor (-Pn).
6614
6615iASL: Now emit all error/warning messages to standard error (stderr) by
6616default (instead of the previous stdout).
6617
6618ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
6619Update
6620for resource descriptor offset fix above. Update/cleanup error output
6621routines. Enable and send iASL errors/warnings to an error logfile
6622(error.txt). Send all other iASL output to a logfile (compiler.txt).
6623Fixed
6624several extraneous "unrecognized operator" messages.
6625
6626----------------------------------------
662720 March 2012. Summary of changes for version 20120320:
6628
6629
66301) ACPICA Core Subsystem:
6631
6632Enhanced the sleep/wake interfaces to optionally execute the _GTS method
6633(Going To Sleep) and the _BFS method (Back From Sleep). Windows
6634apparently
6635does not execute these methods, and therefore these methods are often
6636untested. It has been seen on some systems where the execution of these
6637methods causes errors and also prevents the machine from entering S5. It
6638is
6639therefore suggested that host operating systems do not execute these
6640methods
6641by default. In the future, perhaps these methods can be optionally
6642executed
6643based on the age of the system and/or what is the newest version of
6644Windows
6645that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
6646and
6647AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
6648Ming.
6649
6650Fixed a problem where the length of the local/common FADT was set too
6651early.
6652The local FADT table length cannot be set to the common length until the
6653original length has been examined. There is code that checks the table
6654length
6655and sets various fields appropriately. This can affect older machines
6656with
6657early FADT versions. For example, this can cause inadvertent writes to
6658the
6659CST_CNT register. Julian Anastasov.
6660
6661Fixed a mapping issue related to a physical table override. Use the
6662deferred
6663mapping mechanism for tables loaded via the physical override OSL
6664interface.
6665This allows for early mapping before the virtual memory manager is
6666available.
6667Thomas Renninger, Bob Moore.
6668
6669Enhanced the automatic return-object repair code: Repair a common problem
6670with
6671predefined methods that are defined to return a variable-length Package
6672of
6673sub-objects. If there is only one sub-object, some BIOS ASL code
6674mistakenly
6675simply returns the single object instead of a Package with one sub-
6676object.
6677This new support will repair this error by wrapping a Package object
6678around
6679the original object, creating the correct and expected Package with one
6680sub-
6681object. Names that can be repaired in this manner include: _ALR, _CSD,
6682_HPX,
6683_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
6684939.
6685
6686Changed the exception code returned for invalid ACPI paths passed as
6687parameters to external interfaces such as AcpiEvaluateObject. Was
6688AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
6689
6690Example Code and Data Size: These are the sizes for the OS-independent
6691acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6692debug
6693version of the code includes the debug output trace mechanism and has a
6694much
6695larger code and data size.
6696
6697  Previous Release:
6698    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6699    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6700  Current Release:
6701    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6702    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6703
6704
67052) iASL Compiler/Disassembler and Tools:
6706
6707iASL: Added the infrastructure and initial implementation of a integrated
6708C-
6709like preprocessor. This will simplify BIOS development process by
6710eliminating
6711the need for a separate preprocessing step during builds. On Windows, it
6712also
6713eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
6714features including full #define() macro support are still under
6715development.
6716These preprocessor directives are supported:
6717    #define
6718    #elif
6719    #else
6720    #endif
6721    #error
6722    #if
6723    #ifdef
6724    #ifndef
6725    #include
6726    #pragma message
6727    #undef
6728    #warning
6729In addition, these new command line options are supported:
6730    -D <symbol> Define symbol for preprocessor use
6731    -li         Create preprocessed output file (*.i)
6732    -P          Preprocess only and create preprocessor output file (*.i)
6733
6734Table Compiler: Fixed a problem where the equals operator within an
6735expression
6736did not work properly.
6737
6738Updated iASL to use the current versions of Bison/Flex. Updated the
6739Windows
6740project file to invoke these tools from the standard location. ACPICA BZ
6741904.
6742Versions supported:
6743    Flex for Windows:  V2.5.4
6744    Bison for Windows: V2.4.1
6745
6746----------------------------------------
674715 February 2012. Summary of changes for version 20120215:
6748
6749
67501) ACPICA Core Subsystem:
6751
6752There have been some major changes to the sleep/wake support code, as
6753described below (a - e).
6754
6755a) The AcpiLeaveSleepState has been split into two interfaces, similar to
6756AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
6757AcpiLeaveSleepStatePrep. This allows the host to perform actions between
6758the
6759time the _BFS method is called and the _WAK method is called. NOTE: all
6760hosts
6761must update their wake/resume code or else sleep/wake will not work
6762properly.
6763Rafael Wysocki.
6764
6765b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
6766_WAK
6767method. Some machines require that the GPEs are enabled before the _WAK
6768method
6769is executed. Thomas Renninger.
6770
6771c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
6772bit.
6773Some BIOS code assumes that WAK_STS will be cleared on resume and use it
6774to
6775determine whether the system is rebooting or resuming. Matthew Garrett.
6776
6777d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
6778Sleep) to
6779match the ACPI specification requirement. Rafael Wysocki.
6780
6781e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
6782registers within the V5 FADT. This support adds two new files:
6783hardware/hwesleep.c implements the support for the new registers. Moved
6784all
6785sleep/wake external interfaces to hardware/hwxfsleep.c.
6786
6787
6788Added a new OSL interface for ACPI table overrides,
6789AcpiOsPhysicalTableOverride. This interface allows the host to override a
6790table via a physical address, instead of the logical address required by
6791AcpiOsTableOverride. This simplifies the host implementation. Initial
6792implementation by Thomas Renninger. The ACPICA implementation creates a
6793single
6794shared function for table overrides that attempts both a logical and a
6795physical override.
6796
6797Expanded the OSL memory read/write interfaces to 64-bit data
6798(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
6799transfer support for GAS register structures passed to AcpiRead and
6800AcpiWrite.
6801
6802Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
6803custom
6804build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
6805model.
6806See the ACPICA reference for details. ACPICA BZ 942. This option removes
6807about
680810% of the code and 5% of the static data, and the following hardware
6809ACPI
6810features become unavailable:
6811    PM Event and Control registers
6812    SCI interrupt (and handler)
6813    Fixed Events
6814    General Purpose Events (GPEs)
6815    Global Lock
6816    ACPI PM timer
6817    FACS table (Waking vectors and Global Lock)
6818
6819Updated the unix tarball directory structure to match the ACPICA git
6820source
6821tree. This ensures that the generic unix makefiles work properly (in
6822generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
6823867.
6824
6825Updated the return value of the _REV predefined method to integer value 5
6826to
6827reflect ACPI 5.0 support.
6828
6829Moved the external ACPI PM timer interface prototypes to the public
6830acpixf.h
6831file where they belong.
6832
6833Example Code and Data Size: These are the sizes for the OS-independent
6834acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6835debug
6836version of the code includes the debug output trace mechanism and has a
6837much
6838larger code and data size.
6839
6840  Previous Release:
6841    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6842    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6843  Current Release:
6844    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6845    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6846
6847
68482) iASL Compiler/Disassembler and Tools:
6849
6850Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
6851descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
6852incorrectly displayed.
6853
6854AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
6855specification.
6856
6857----------------------------------------
685811 January 2012. Summary of changes for version 20120111:
6859
6860
68611) ACPICA Core Subsystem:
6862
6863Implemented a new mechanism to allow host device drivers to check for
6864address
6865range conflicts with ACPI Operation Regions. Both SystemMemory and
6866SystemIO
6867address spaces are supported. A new external interface,
6868AcpiCheckAddressRange,
6869allows drivers to check an address range against the ACPI namespace. See
6870the
6871ACPICA reference for additional details. Adds one new file,
6872utilities/utaddress.c. Lin Ming, Bob Moore.
6873
6874Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
6875Control
6876and
6877Status registers, update the ACPI 5.0 flags, and update internal data
6878structures to handle an FADT larger than 256 bytes. The size of the ACPI
68795.0
6880FADT is 268 bytes.
6881
6882Updated all ACPICA copyrights and signons to 2012. Added the 2012
6883copyright to
6884all module headers and signons, including the standard Linux header. This
6885affects virtually every file in the ACPICA core subsystem, iASL compiler,
6886and
6887all ACPICA utilities.
6888
6889Example Code and Data Size: These are the sizes for the OS-independent
6890acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6891debug
6892version of the code includes the debug output trace mechanism and has a
6893much
6894larger code and data size.
6895
6896  Previous Release:
6897    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
6898    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
6899  Current Release:
6900    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6901    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6902
6903
69042) iASL Compiler/Disassembler and Tools:
6905
6906Disassembler: fixed a problem with the automatic resource tag generation
6907support. Fixes a problem where the resource tags are inadvertently not
6908constructed if the table being disassembled contains external references
6909to
6910control methods. Moved the actual construction of the tags to after the
6911final
6912namespace is constructed (after 2nd parse is invoked due to external
6913control
6914method references.) ACPICA BZ 941.
6915
6916Table Compiler: Make all "generic" operators caseless. These are the
6917operators
6918like UINT8, String, etc. Making these caseless improves ease-of-use.
6919ACPICA BZ
6920934.
6921
6922----------------------------------------
692323 November 2011. Summary of changes for version 20111123:
6924
69250) ACPI 5.0 Support:
6926
6927This release contains full support for the ACPI 5.0 specification, as
6928summarized below.
6929
6930Reduced Hardware Support:
6931-------------------------
6932
6933This support allows for ACPI systems without the usual ACPI hardware.
6934This
6935support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
6936will
6937not attempt to initialize or use any of the usual ACPI hardware. Note,
6938when
6939this flag is set, all of the following ACPI hardware is assumed to be not
6940present and is not initialized or accessed:
6941
6942    General Purpose Events (GPEs)
6943    Fixed Events (PM1a/PM1b and PM Control)
6944    Power Management Timer and Console Buttons (power/sleep)
6945    Real-time Clock Alarm
6946    Global Lock
6947    System Control Interrupt (SCI)
6948    The FACS is assumed to be non-existent
6949
6950ACPI Tables:
6951------------
6952
6953All new tables and updates to existing tables are fully supported in the
6954ACPICA headers (for use by device drivers), the disassembler, and the
6955iASL
6956Data Table Compiler. ACPI 5.0 defines these new tables:
6957
6958    BGRT        /* Boot Graphics Resource Table */
6959    DRTM        /* Dynamic Root of Trust for Measurement table */
6960    FPDT        /* Firmware Performance Data Table */
6961    GTDT        /* Generic Timer Description Table */
6962    MPST        /* Memory Power State Table */
6963    PCCT        /* Platform Communications Channel Table */
6964    PMTT        /* Platform Memory Topology Table */
6965    RASF        /* RAS Feature table */
6966
6967Operation Regions/SpaceIDs:
6968---------------------------
6969
6970All new operation regions are fully supported by the iASL compiler, the
6971disassembler, and the ACPICA runtime code (for dispatch to region
6972handlers.)
6973The new operation region Space IDs are:
6974
6975    GeneralPurposeIo
6976    GenericSerialBus
6977
6978Resource Descriptors:
6979---------------------
6980
6981All new ASL resource descriptors are fully supported by the iASL
6982compiler,
6983the
6984ASL/AML disassembler, and the ACPICA runtime Resource Manager code
6985(including
6986all new predefined resource tags). New descriptors are:
6987
6988    FixedDma
6989    GpioIo
6990    GpioInt
6991    I2cSerialBus
6992    SpiSerialBus
6993    UartSerialBus
6994
6995ASL/AML Operators, New and Modified:
6996------------------------------------
6997
6998One new operator is added, the Connection operator, which is used to
6999associate
7000a GeneralPurposeIo or GenericSerialBus resource descriptor with
7001individual
7002field objects within an operation region. Several new protocols are
7003associated
7004with the AccessAs operator. All are fully supported by the iASL compiler,
7005disassembler, and runtime ACPICA AML interpreter:
7006
7007    Connection                      // Declare Field Connection
7008attributes
7009    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
7010    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
7011Protocol
7012    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
7013    RawDataBuffer                       // Data type for Vendor Data
7014fields
7015
7016Predefined ASL/AML Objects:
7017---------------------------
7018
7019All new predefined objects/control-methods are supported by the iASL
7020compiler
7021and the ACPICA runtime validation/repair (arguments and return values.)
7022New
7023predefined names include the following:
7024
7025Standard Predefined Names (Objects or Control Methods):
7026    _AEI, _CLS, _CPC, _CWS, _DEP,
7027    _DLM, _EVT, _GCP, _CRT, _GWS,
7028    _HRV, _PRE, _PSE, _SRT, _SUB.
7029
7030Resource Tags (Names used to access individual fields within resource
7031descriptors):
7032    _DBT, _DPL, _DRS, _END, _FLC,
7033    _IOR, _LIN, _MOD, _PAR, _PHA,
7034    _PIN, _PPI, _POL, _RXL, _SLV,
7035    _SPE, _STB, _TXL, _VEN.
7036
7037ACPICA External Interfaces:
7038---------------------------
7039
7040Several new interfaces have been defined for use by ACPI-related device
7041drivers and other host OS services:
7042
7043AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
7044to
7045acquire and release AML mutexes that are defined in the DSDT/SSDT tables
7046provided by the BIOS. They are intended to be used in conjunction with
7047the
7048ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
7049mutual exclusion with the AML code/interpreter.
7050
7051AcpiGetEventResources: Returns the (formatted) resource descriptors as
7052defined
7053by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
7054provides
7055resource descriptors associated with hardware-reduced platform events,
7056similar
7057to the AcpiGetCurrentResources interface.
7058
7059Operation Region Handlers: For General Purpose IO and Generic Serial Bus
7060operation regions, information about the Connection() object and any
7061optional
7062length information is passed to the region handler within the Context
7063parameter.
7064
7065AcpiBufferToResource: This interface converts a raw AML buffer containing
7066a
7067resource template or resource descriptor to the ACPI_RESOURCE internal
7068format
7069suitable for use by device drivers. Can be used by an operation region
7070handler
7071to convert the Connection() buffer object into a ACPI_RESOURCE.
7072
7073Miscellaneous/Tools/TestSuites:
7074-------------------------------
7075
7076Support for extended _HID names (Four alpha characters instead of three).
7077Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
7078Support for ACPI 5.0 features in the ASLTS test suite.
7079Fully updated documentation (ACPICA and iASL reference documents.)
7080
7081ACPI Table Definition Language:
7082-------------------------------
7083
7084Support for this language was implemented and released as a subsystem of
7085the
7086iASL compiler in 2010. (See the iASL compiler User Guide.)
7087
7088
7089Non-ACPI 5.0 changes for this release:
7090--------------------------------------
7091
70921) ACPICA Core Subsystem:
7093
7094Fix a problem with operation region declarations where a failure can
7095occur
7096if
7097the region name and an argument that evaluates to an object (such as the
7098region address) are in different namespace scopes. Lin Ming, ACPICA BZ
7099937.
7100
7101Do not abort an ACPI table load if an invalid space ID is found within.
7102This
7103will be caught later if the offending method is executed. ACPICA BZ 925.
7104
7105Fixed an issue with the FFixedHW space ID where the ID was not always
7106recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
7107
7108Fixed a problem with the 32-bit generation of the unix-specific OSL
7109(osunixxf.c). Lin Ming, ACPICA BZ 936.
7110
7111Several changes made to enable generation with the GCC 4.6 compiler.
7112ACPICA BZ
7113935.
7114
7115New error messages: Unsupported I/O requests (not 8/16/32 bit), and
7116Index/Bank
7117field registers out-of-range.
7118
71192) iASL Compiler/Disassembler and Tools:
7120
7121iASL: Implemented the __PATH__ operator, which returns the full pathname
7122of
7123the current source file.
7124
7125AcpiHelp: Automatically display expanded keyword information for all ASL
7126operators.
7127
7128Debugger: Add "Template" command to disassemble/dump resource template
7129buffers.
7130
7131Added a new master script to generate and execute the ASLTS test suite.
7132Automatically handles 32- and 64-bit generation. See tests/aslts.sh
7133
7134iASL: Fix problem with listing generation during processing of the
7135Switch()
7136operator where AML listing was disabled until the entire Switch block was
7137completed.
7138
7139iASL: Improve support for semicolon statement terminators. Fix "invalid
7140character" message for some cases when the semicolon is used. Semicolons
7141are
7142now allowed after every <Term> grammar element. ACPICA BZ 927.
7143
7144iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
7145923.
7146
7147Disassembler: Fix problem with disassembly of the DataTableRegion
7148operator
7149where an inadvertent "Unhandled deferred opcode" message could be
7150generated.
7151
71523) Example Code and Data Size
7153
7154These are the sizes for the OS-independent acpica.lib produced by the
7155Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7156includes the debug output trace mechanism and has a much larger code and
7157data
7158size.
7159
7160  Previous Release:
7161    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7162    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7163  Current Release:
7164    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
7165    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
7166
7167----------------------------------------
716822 September 2011. Summary of changes for version 20110922:
7169
71700) ACPI 5.0 News:
7171
7172Support for ACPI 5.0 in ACPICA has been underway for several months and
7173will
7174be released at the same time that ACPI 5.0 is officially released.
7175
7176The ACPI 5.0 specification is on track for release in the next few
7177months.
7178
71791) ACPICA Core Subsystem:
7180
7181Fixed a problem where the maximum sleep time for the Sleep() operator was
7182intended to be limited to two seconds, but was inadvertently limited to
718320
7184seconds instead.
7185
7186Linux and Unix makefiles: Added header file dependencies to ensure
7187correct
7188generation of ACPICA core code and utilities. Also simplified the
7189makefiles
7190considerably through the use of the vpath variable to specify search
7191paths.
7192ACPICA BZ 924.
7193
71942) iASL Compiler/Disassembler and Tools:
7195
7196iASL: Implemented support to check the access length for all fields
7197created to
7198access named Resource Descriptor fields. For example, if a resource field
7199is
7200defined to be two bits, a warning is issued if a CreateXxxxField() is
7201used
7202with an incorrect bit length. This is implemented for all current
7203resource
7204descriptor names. ACPICA BZ 930.
7205
7206Disassembler: Fixed a byte ordering problem with the output of 24-bit and
720756-
7208bit integers.
7209
7210iASL: Fixed a couple of issues associated with variable-length package
7211objects. 1) properly handle constants like One, Ones, Zero -- do not make
7212a
7213VAR_PACKAGE when these are used as a package length. 2) Allow the
7214VAR_PACKAGE
7215opcode (in addition to PACKAGE) when validating object types for
7216predefined
7217names.
7218
7219iASL: Emit statistics for all output files (instead of just the ASL input
7220and
7221AML output). Includes listings, hex files, etc.
7222
7223iASL: Added -G option to the table compiler to allow the compilation of
7224custom
7225ACPI tables. The only part of a table that is required is the standard
722636-
7227byte
7228ACPI header.
7229
7230AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
7231headers),
7232which also adds correct 64-bit support. Also, now all output filenames
7233are
7234completely lower case.
7235
7236AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
7237loading table files. A warning is issued for any such tables. The only
7238exception is an FADT. This also fixes a possible fault when attempting to
7239load
7240non-AML tables. ACPICA BZ 932.
7241
7242AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
7243a
7244missing table terminator could cause a fault when using the -p option.
7245
7246AcpiSrc: Fixed a possible divide-by-zero fault when generating file
7247statistics.
7248
72493) Example Code and Data Size
7250
7251These are the sizes for the OS-independent acpica.lib produced by the
7252Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7253includes the debug output trace mechanism and has a much larger code and
7254data
7255size.
7256
7257  Previous Release (VC 9.0):
7258    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7259    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7260  Current Release (VC 9.0):
7261    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7262    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7263
7264
7265----------------------------------------
726623 June 2011. Summary of changes for version 20110623:
7267
72681) ACPI CA Core Subsystem:
7269
7270Updated the predefined name repair mechanism to not attempt repair of a
7271_TSS
7272return object if a _PSS object is present. We can only sort the _TSS
7273return
7274package if there is no _PSS within the same scope. This is because if
7275_PSS
7276is
7277present, the ACPI specification dictates that the _TSS Power Dissipation
7278field
7279is to be ignored, and therefore some BIOSs leave garbage values in the
7280_TSS
7281Power field(s). In this case, it is best to just return the _TSS package
7282as-
7283is. Reported by, and fixed with assistance from Fenghua Yu.
7284
7285Added an option to globally disable the control method return value
7286validation
7287and repair. This runtime option can be used to disable return value
7288repair
7289if
7290this is causing a problem on a particular machine. Also added an option
7291to
7292AcpiExec (-dr) to set this disable flag.
7293
7294All makefiles and project files: Major changes to improve generation of
7295ACPICA
7296tools. ACPICA BZ 912:
7297    Reduce default optimization levels to improve compatibility
7298    For Linux, add strict-aliasing=0 for gcc 4
7299    Cleanup and simplify use of command line defines
7300    Cleanup multithread library support
7301    Improve usage messages
7302
7303Linux-specific header: update handling of THREAD_ID and pthread. For the
730432-
7305bit case, improve casting to eliminate possible warnings, especially with
7306the
7307acpica tools.
7308
7309Example Code and Data Size: These are the sizes for the OS-independent
7310acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7311debug
7312version of the code includes the debug output trace mechanism and has a
7313much
7314larger code and data size.
7315
7316  Previous Release (VC 9.0):
7317    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7318    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7319  Current Release (VC 9.0):
7320    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7321    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7322
73232) iASL Compiler/Disassembler and Tools:
7324
7325With this release, a new utility named "acpihelp" has been added to the
7326ACPICA
7327package. This utility summarizes the ACPI specification chapters for the
7328ASL
7329and AML languages. It generates under Linux/Unix as well as Windows, and
7330provides the following functionality:
7331    Find/display ASL operator(s) -- with description and syntax.
7332    Find/display ASL keyword(s) -- with exact spelling and descriptions.
7333    Find/display ACPI predefined name(s) -- with description, number
7334        of arguments, and the return value data type.
7335    Find/display AML opcode name(s) -- with opcode, arguments, and
7336grammar.
7337    Decode/display AML opcode -- with opcode name, arguments, and
7338grammar.
7339
7340Service Layers: Make multi-thread support configurable. Conditionally
7341compile
7342the multi-thread support so that threading libraries will not be linked
7343if
7344not
7345necessary. The only tool that requires multi-thread support is AcpiExec.
7346
7347iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
7348of
7349Bison appear to want the interface to yyerror to be a const char * (or at
7350least this is a problem when generating iASL on some systems.) ACPICA BZ
7351923
7352Pierre Lejeune.
7353
7354Tools: Fix for systems where O_BINARY is not defined. Only used for
7355Windows
7356versions of the tools.
7357
7358----------------------------------------
735927 May 2011. Summary of changes for version 20110527:
7360
73611) ACPI CA Core Subsystem:
7362
7363ASL Load() operator: Reinstate most restrictions on the incoming ACPI
7364table
7365signature. Now, only allow SSDT, OEMx, and a null signature. History:
7366    1) Originally, we checked the table signature for "SSDT" or "PSDT".
7367       (PSDT is now obsolete.)
7368    2) We added support for OEMx tables, signature "OEM" plus a fourth
7369       "don't care" character.
7370    3) Valid tables were encountered with a null signature, so we just
7371       gave up on validating the signature, (05/2008).
7372    4) We encountered non-AML tables such as the MADT, which caused
7373       interpreter errors and kernel faults. So now, we once again allow
7374       only SSDT, OEMx, and now, also a null signature. (05/2011).
7375
7376Added the missing _TDL predefined name to the global name list in order
7377to
7378enable validation. Affects both the core ACPICA code and the iASL
7379compiler.
7380
7381Example Code and Data Size: These are the sizes for the OS-independent
7382acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7383debug
7384version of the code includes the debug output trace mechanism and has a
7385much
7386larger code and data size.
7387
7388  Previous Release (VC 9.0):
7389    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7390    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7391  Current Release (VC 9.0):
7392    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7393    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7394
73952) iASL Compiler/Disassembler and Tools:
7396
7397Debugger/AcpiExec: Implemented support for "complex" method arguments on
7398the
7399debugger command line. This adds support beyond simple integers --
7400including
7401Strings, Buffers, and Packages. Includes support for nested packages.
7402Increased the default command line buffer size to accommodate these
7403arguments.
7404See the ACPICA reference for details and syntax. ACPICA BZ 917.
7405
7406Debugger/AcpiExec: Implemented support for "default" method arguments for
7407the
7408Execute/Debug command. Now, the debugger will always invoke a control
7409method
7410with the required number of arguments -- even if the command line
7411specifies
7412none or insufficient arguments. It uses default integer values for any
7413missing
7414arguments. Also fixes a bug where only six method arguments maximum were
7415supported instead of the required seven.
7416
7417Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
7418and
7419also return status in order to prevent buffer overruns. See the ACPICA
7420reference for details and syntax. ACPICA BZ 921
7421
7422iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
7423makefiles to simplify support for the two different but similar parser
7424generators, bison and yacc.
7425
7426Updated the generic unix makefile for gcc 4. The default gcc version is
7427now
7428expected to be 4 or greater, since options specific to gcc 4 are used.
7429
7430----------------------------------------
743113 April 2011. Summary of changes for version 20110413:
7432
74331) ACPI CA Core Subsystem:
7434
7435Implemented support to execute a so-called "orphan" _REG method under the
7436EC
7437device. This change will force the execution of a _REG method underneath
7438the
7439EC
7440device even if there is no corresponding operation region of type
7441EmbeddedControl. Fixes a problem seen on some machines and apparently is
7442compatible with Windows behavior. ACPICA BZ 875.
7443
7444Added more predefined methods that are eligible for automatic NULL
7445package
7446element removal. This change adds another group of predefined names to
7447the
7448list
7449of names that can be repaired by having NULL package elements dynamically
7450removed. This group are those methods that return a single variable-
7451length
7452package containing simple data types such as integers, buffers, strings.
7453This
7454includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
7455_PSL,
7456_Sx,
7457and _TZD. ACPICA BZ 914.
7458
7459Split and segregated all internal global lock functions to a new file,
7460evglock.c.
7461
7462Updated internal address SpaceID for DataTable regions. Moved this
7463internal
7464space
7465id in preparation for ACPI 5.0 changes that will include some new space
7466IDs.
7467This
7468change should not affect user/host code.
7469
7470Example Code and Data Size: These are the sizes for the OS-independent
7471acpica.lib
7472produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7473version of
7474the code includes the debug output trace mechanism and has a much larger
7475code
7476and
7477data size.
7478
7479  Previous Release (VC 9.0):
7480    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7481    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7482  Current Release (VC 9.0):
7483    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7484    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7485
74862) iASL Compiler/Disassembler and Tools:
7487
7488iASL/DTC: Major update for new grammar features. Allow generic data types
7489in
7490custom ACPI tables. Field names are now optional. Any line can be split
7491to
7492multiple lines using the continuation char (\). Large buffers now use
7493line-
7494continuation character(s) and no colon on the continuation lines. See the
7495grammar
7496update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
7497Moore.
7498
7499iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
7500statements.
7501Since the parser stuffs a "zero" as the return value for these statements
7502(due
7503to
7504the underlying AML grammar), they were seen as "return with value" by the
7505iASL
7506semantic checking. They are now seen correctly as "null" return
7507statements.
7508
7509iASL: Check if a_REG declaration has a corresponding Operation Region.
7510Adds a
7511check for each _REG to ensure that there is in fact a corresponding
7512operation
7513region declaration in the same scope. If not, the _REG method is not very
7514useful
7515since it probably won't be executed. ACPICA BZ 915.
7516
7517iASL/DTC: Finish support for expression evaluation. Added a new
7518expression
7519parser
7520that implements c-style operator precedence and parenthesization. ACPICA
7521bugzilla
7522908.
7523
7524Disassembler/DTC: Remove support for () and <> style comments in data
7525tables.
7526Now
7527that DTC has full expression support, we don't want to have comment
7528strings
7529that
7530start with a parentheses or a less-than symbol. Now, only the standard /*
7531and
7532//
7533comments are supported, as well as the bracket [] comments.
7534
7535AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
7536"unusual"
7537headers in the acpidump file. Update the header validation to support
7538these
7539tables. Problem introduced in previous AcpiXtract version in the change
7540to
7541support "wrong checksum" error messages emitted by acpidump utility.
7542
7543iASL: Add a * option to generate all template files (as a synonym for
7544ALL)
7545as
7546in
7547"iasl -T *" or "iasl -T ALL".
7548
7549iASL/DTC: Do not abort compiler on fatal errors. We do not want to
7550completely
7551abort the compiler on "fatal" errors, simply should abort the current
7552compile.
7553This allows multiple compiles with a single (possibly wildcard) compiler
7554invocation.
7555
7556----------------------------------------
755716 March 2011. Summary of changes for version 20110316:
7558
75591) ACPI CA Core Subsystem:
7560
7561Fixed a problem caused by a _PRW method appearing at the namespace root
7562scope
7563during the setup of wake GPEs. A fault could occur if a _PRW directly
7564under
7565the
7566root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
7567
7568Implemented support for "spurious" Global Lock interrupts. On some
7569systems, a
7570global lock interrupt can occur without the pending flag being set. Upon
7571a
7572GL
7573interrupt, we now ensure that a thread is actually waiting for the lock
7574before
7575signaling GL availability. Rafael Wysocki, Bob Moore.
7576
7577Example Code and Data Size: These are the sizes for the OS-independent
7578acpica.lib
7579produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7580version of
7581the code includes the debug output trace mechanism and has a much larger
7582code
7583and
7584data size.
7585
7586  Previous Release (VC 9.0):
7587    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7588    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7589  Current Release (VC 9.0):
7590    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7591    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7592
75932) iASL Compiler/Disassembler and Tools:
7594
7595Implemented full support for the "SLIC" ACPI table. Includes support in
7596the
7597header files, disassembler, table compiler, and template generator. Bob
7598Moore,
7599Lin Ming.
7600
7601AcpiXtract: Correctly handle embedded comments and messages from
7602AcpiDump.
7603Apparently some or all versions of acpidump will occasionally emit a
7604comment
7605like
7606"Wrong checksum", etc., into the dump file. This was causing problems for
7607AcpiXtract. ACPICA BZ 905.
7608
7609iASL: Fix the Linux makefile by removing an inadvertent double file
7610inclusion.
7611ACPICA BZ 913.
7612
7613AcpiExec: Update installation of operation region handlers. Install one
7614handler
7615for a user-defined address space. This is used by the ASL test suite
7616(ASLTS).
7617
7618----------------------------------------
761911 February 2011. Summary of changes for version 20110211:
7620
76211) ACPI CA Core Subsystem:
7622
7623Added a mechanism to defer _REG methods for some early-installed
7624handlers.
7625Most user handlers should be installed before call to
7626AcpiEnableSubsystem.
7627However, Event handlers and region handlers should be installed after
7628AcpiInitializeObjects. Override handlers for the "default" regions should
7629be
7630installed early, however. This change executes all _REG methods for the
7631default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
7632chicken/egg issues between them. ACPICA BZ 848.
7633
7634Implemented an optimization for GPE detection. This optimization will
7635simply
7636ignore GPE registers that contain no enabled GPEs -- there is no need to
7637read the register since this information is available internally. This
7638becomes more important on machines with a large GPE space. ACPICA
7639bugzilla
7640884. Lin Ming. Suggestion from Joe Liu.
7641
7642Removed all use of the highly unreliable FADT revision field. The
7643revision
7644number in the FADT has been found to be completely unreliable and cannot
7645be
7646trusted. Only the actual table length can be used to infer the version.
7647This
7648change updates the ACPICA core and the disassembler so that both no
7649longer
7650even look at the FADT version and instead depend solely upon the FADT
7651length.
7652
7653Fix an unresolved name issue for the no-debug and no-error-message source
7654generation cases. The _AcpiModuleName was left undefined in these cases,
7655but
7656it is actually needed as a parameter to some interfaces. Define
7657_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
7658
7659Split several large files (makefiles and project files updated)
7660  utglobal.c   -> utdecode.c
7661  dbcomds.c    -> dbmethod.c dbnames.c
7662  dsopcode.c   -> dsargs.c dscontrol.c
7663  dsload.c     -> dsload2.c
7664  aslanalyze.c -> aslbtypes.c aslwalks.c
7665
7666Example Code and Data Size: These are the sizes for the OS-independent
7667acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7668debug version of the code includes the debug output trace mechanism and
7669has
7670a much larger code and data size.
7671
7672  Previous Release (VC 9.0):
7673    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7674    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7675  Current Release (VC 9.0):
7676    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7677    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7678
76792) iASL Compiler/Disassembler and Tools:
7680
7681iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
7682These are useful C-style macros with the standard definitions. ACPICA
7683bugzilla 898.
7684
7685iASL/DTC: Added support for integer expressions and labels. Support for
7686full
7687expressions for all integer fields in all ACPI tables. Support for labels
7688in
7689"generic" portions of tables such as UEFI. See the iASL reference manual.
7690
7691Debugger: Added a command to display the status of global handlers. The
7692"handlers" command will display op region, fixed event, and miscellaneous
7693global handlers. installation status -- and for op regions, whether
7694default
7695or user-installed handler will be used.
7696
7697iASL: Warn if reserved method incorrectly returns a value. Many
7698predefined
7699names are defined such that they do not return a value. If implemented as
7700a
7701method, issue a warning if such a name explicitly returns a value. ACPICA
7702Bugzilla 855.
7703
7704iASL: Added detection of GPE method name conflicts. Detects a conflict
7705where
7706there are two GPE methods of the form _Lxy and _Exy in the same scope.
7707(For
7708example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
7709
7710iASL/DTC: Fixed a couple input scanner issues with comments and line
7711numbers. Comment remover could get confused and miss a comment ending.
7712Fixed
7713a problem with line counter maintenance.
7714
7715iASL/DTC: Reduced the severity of some errors from fatal to error. There
7716is
7717no need to abort on simple errors within a field definition.
7718
7719Debugger: Simplified the output of the help command. All help output now
7720in
7721a single screen, instead of help subcommands. ACPICA Bugzilla 897.
7722
7723----------------------------------------
772412 January 2011. Summary of changes for version 20110112:
7725
77261) ACPI CA Core Subsystem:
7727
7728Fixed a race condition between method execution and namespace walks that
7729can
7730possibly cause a fault. The problem was apparently introduced in version
773120100528 as a result of a performance optimization that reduces the
7732number
7733of
7734namespace walks upon method exit by using the delete_namespace_subtree
7735function instead of the delete_namespace_by_owner function used
7736previously.
7737Bug is a missing namespace lock in the delete_namespace_subtree function.
7738dana.myers@oracle.com
7739
7740Fixed several issues and a possible fault with the automatic "serialized"
7741method support. History: This support changes a method to "serialized" on
7742the
7743fly if the method generates an AE_ALREADY_EXISTS error, indicating the
7744possibility that it cannot handle reentrancy. This fix repairs a couple
7745of
7746issues seen in the field, especially on machines with many cores:
7747
7748    1) Delete method children only upon the exit of the last thread,
7749       so as to not delete objects out from under other running threads
7750      (and possibly causing a fault.)
7751    2) Set the "serialized" bit for the method only upon the exit of the
7752       Last thread, so as to not cause deadlock when running threads
7753       attempt to exit.
7754    3) Cleanup the use of the AML "MethodFlags" and internal method flags
7755       so that there is no longer any confusion between the two.
7756
7757    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
7758
7759Debugger: Now lock the namespace for duration of a namespace dump.
7760Prevents
7761issues if the namespace is changing dynamically underneath the debugger.
7762Especially affects temporary namespace nodes, since the debugger displays
7763these also.
7764
7765Updated the ordering of include files. The ACPICA headers should appear
7766before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
7767set
7768any necessary compiler-specific defines, etc. Affects the ACPI-related
7769tools
7770and utilities.
7771
7772Updated all ACPICA copyrights and signons to 2011. Added the 2011
7773copyright
7774to all module headers and signons, including the Linux header. This
7775affects
7776virtually every file in the ACPICA core subsystem, iASL compiler, and all
7777utilities.
7778
7779Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
7780project files for VC++ 6.0 are now obsolete. New project files can be
7781found
7782under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
7783details.
7784
7785Example Code and Data Size: These are the sizes for the OS-independent
7786acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7787debug version of the code includes the debug output trace mechanism and
7788has a
7789much larger code and data size.
7790
7791  Previous Release (VC 6.0):
7792    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7793    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7794  Current Release (VC 9.0):
7795    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7796    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7797
77982) iASL Compiler/Disassembler and Tools:
7799
7800iASL: Added generic data types to the Data Table compiler. Add "generic"
7801data
7802types such as UINT32, String, Unicode, etc., to simplify the generation
7803of
7804platform-defined tables such as UEFI. Lin Ming.
7805
7806iASL: Added listing support for the Data Table Compiler. Adds listing
7807support
7808(-l) to display actual binary output for each line of input code.
7809
7810----------------------------------------
781109 December 2010. Summary of changes for version 20101209:
7812
78131) ACPI CA Core Subsystem:
7814
7815Completed the major overhaul of the GPE support code that was begun in
7816July
78172010. Major features include: removal of _PRW execution in ACPICA (host
7818executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
7819changes to existing interfaces, simplification of GPE handler operation,
7820and
7821a handful of new interfaces:
7822
7823    AcpiUpdateAllGpes
7824    AcpiFinishGpe
7825    AcpiSetupGpeForWake
7826    AcpiSetGpeWakeMask
7827    One new file, evxfgpe.c to consolidate all external GPE interfaces.
7828
7829See the ACPICA Programmer Reference for full details and programming
7830information. See the new section 4.4 "General Purpose Event (GPE)
7831Support"
7832for a full overview, and section 8.7 "ACPI General Purpose Event
7833Management"
7834for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
7835Ming,
7836Bob Moore, Rafael Wysocki.
7837
7838Implemented a new GPE feature for Windows compatibility, the "Implicit
7839Wake
7840GPE Notify". This feature will automatically issue a Notify(2) on a
7841device
7842when a Wake GPE is received if there is no corresponding GPE method or
7843handler. ACPICA BZ 870.
7844
7845Fixed a problem with the Scope() operator during table parse and load
7846phase.
7847During load phase (table load or method execution), the scope operator
7848should
7849not enter the target into the namespace. Instead, it should open a new
7850scope
7851at the target location. Linux BZ 19462, ACPICA BZ 882.
7852
7853Example Code and Data Size: These are the sizes for the OS-independent
7854acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7855debug version of the code includes the debug output trace mechanism and
7856has a
7857much larger code and data size.
7858
7859  Previous Release:
7860    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7861    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7862  Current Release:
7863    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7864    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7865
78662) iASL Compiler/Disassembler and Tools:
7867
7868iASL: Relax the alphanumeric restriction on _CID strings. These strings
7869are
7870"bus-specific" per the ACPI specification, and therefore any characters
7871are
7872acceptable. The only checks that can be performed are for a null string
7873and
7874perhaps for a leading asterisk. ACPICA BZ 886.
7875
7876iASL: Fixed a problem where a syntax error that caused a premature EOF
7877condition on the source file emitted a very confusing error message. The
7878premature EOF is now detected correctly. ACPICA BZ 891.
7879
7880Disassembler: Decode the AccessSize within a Generic Address Structure
7881(byte
7882access, word access, etc.) Note, this field does not allow arbitrary bit
7883access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
7884
7885New: AcpiNames utility - Example namespace dump utility. Shows an example
7886of
7887ACPICA configuration for a minimal namespace dump utility. Uses table and
7888namespace managers, but no AML interpreter. Does not add any
7889functionality
7890over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
7891partition and configure ACPICA. ACPICA BZ 883.
7892
7893AML Debugger: Increased the debugger buffer size for method return
7894objects.
7895Was 4K, increased to 16K. Also enhanced error messages for debugger
7896method
7897execution, including the buffer overflow case.
7898
7899----------------------------------------
790013 October 2010. Summary of changes for version 20101013:
7901
79021) ACPI CA Core Subsystem:
7903
7904Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
7905now
7906clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
7907HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
7908
7909Changed the type of the predefined namespace object _TZ from ThermalZone
7910to
7911Device. This was found to be confusing to the host software that
7912processes
7913the various thermal zones, since _TZ is not really a ThermalZone.
7914However,
7915a
7916Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
7917Zhang.
7918
7919Added Windows Vista SP2 to the list of supported _OSI strings. The actual
7920string is "Windows 2006 SP2".
7921
7922Eliminated duplicate code in AcpiUtExecute* functions. Now that the
7923nsrepair
7924code automatically repairs _HID-related strings, this type of code is no
7925longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
7926878.
7927
7928Example Code and Data Size: These are the sizes for the OS-independent
7929acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7930debug version of the code includes the debug output trace mechanism and
7931has a
7932much larger code and data size.
7933
7934  Previous Release:
7935    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7936    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7937  Current Release:
7938    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7939    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7940
79412) iASL Compiler/Disassembler and Tools:
7942
7943iASL: Implemented additional compile-time validation for _HID strings.
7944The
7945non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
7946length
7947of
7948the string must be exactly seven or eight characters. For both _HID and
7949_CID
7950strings, all characters must be alphanumeric. ACPICA BZ 874.
7951
7952iASL: Allow certain "null" resource descriptors. Some BIOS code creates
7953descriptors that are mostly or all zeros, with the expectation that they
7954will
7955be filled in at runtime. iASL now allows this as long as there is a
7956"resource
7957tag" (name) associated with the descriptor, which gives the ASL a handle
7958needed to modify the descriptor. ACPICA BZ 873.
7959
7960Added single-thread support to the generic Unix application OSL.
7961Primarily
7962for iASL support, this change removes the use of semaphores in the
7963single-
7964threaded ACPICA tools/applications - increasing performance. The
7965_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
7966option. ACPICA BZ 879.
7967
7968AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
7969support
7970for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
7971
7972iASL: Moved all compiler messages to a new file, aslmessages.h.
7973
7974----------------------------------------
797515 September 2010. Summary of changes for version 20100915:
7976
79771) ACPI CA Core Subsystem:
7978
7979Removed the AcpiOsDerivePciId OSL interface. The various host
7980implementations
7981of this function were not OS-dependent and are now obsolete and can be
7982removed from all host OSLs. This function has been replaced by
7983AcpiHwDerivePciId, which is now part of the ACPICA core code.
7984AcpiHwDerivePciId has been implemented without recursion. Adds one new
7985module, hwpci.c. ACPICA BZ 857.
7986
7987Implemented a dynamic repair for _HID and _CID strings. The following
7988problems are now repaired at runtime: 1) Remove a leading asterisk in the
7989string, and 2) the entire string is uppercased. Both repairs are in
7990accordance with the ACPI specification and will simplify host driver
7991code.
7992ACPICA BZ 871.
7993
7994The ACPI_THREAD_ID type is no longer configurable, internally it is now
7995always UINT64. This simplifies the ACPICA code, especially any printf
7996output.
7997UINT64 is the only common data type for all thread_id types across all
7998operating systems. It is now up to the host OSL to cast the native
7999thread_id
8000type to UINT64 before returning the value to ACPICA (via
8001AcpiOsGetThreadId).
8002Lin Ming, Bob Moore.
8003
8004Added the ACPI_INLINE type to enhance the ACPICA configuration. The
8005"inline"
8006keyword is not standard across compilers, and this type allows inline to
8007be
8008configured on a per-compiler basis. Lin Ming.
8009
8010Made the system global AcpiGbl_SystemAwakeAndRunning publicly
8011available.
8012Added an extern for this boolean in acpixf.h. Some hosts utilize this
8013value
8014during suspend/restore operations. ACPICA BZ 869.
8015
8016All code that implements error/warning messages with the "ACPI:" prefix
8017has
8018been moved to a new module, utxferror.c.
8019
8020The UINT64_OVERLAY was moved to utmath.c, which is the only module where
8021it
8022is used. ACPICA BZ 829. Lin Ming, Bob Moore.
8023
8024Example Code and Data Size: These are the sizes for the OS-independent
8025acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8026debug version of the code includes the debug output trace mechanism and
8027has a
8028much larger code and data size.
8029
8030  Previous Release:
8031    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
8032    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
8033  Current Release:
8034    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
8035    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
8036
80372) iASL Compiler/Disassembler and Tools:
8038
8039iASL/Disassembler: Write ACPI errors to stderr instead of the output
8040file.
8041This keeps the output files free of random error messages that may
8042originate
8043from within the namespace/interpreter code. Used this opportunity to
8044merge
8045all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
8046866. Lin Ming, Bob Moore.
8047
8048Tools: update some printfs for ansi warnings on size_t. Handle width
8049change
8050of size_t on 32-bit versus 64-bit generations. Lin Ming.
8051
8052----------------------------------------
805306 August 2010. Summary of changes for version 20100806:
8054
80551) ACPI CA Core Subsystem:
8056
8057Designed and implemented a new host interface to the _OSI support code.
8058This
8059will allow the host to dynamically add or remove multiple _OSI strings,
8060as
8061well as install an optional handler that is called for each _OSI
8062invocation.
8063Also added a new AML debugger command, 'osi' to display and modify the
8064global
8065_OSI string table, and test support in the AcpiExec utility. See the
8066ACPICA
8067reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
8068New Functions:
8069    AcpiInstallInterface - Add an _OSI string.
8070    AcpiRemoveInterface - Delete an _OSI string.
8071    AcpiInstallInterfaceHandler - Install optional _OSI handler.
8072Obsolete Functions:
8073    AcpiOsValidateInterface - no longer used.
8074New Files:
8075    source/components/utilities/utosi.c
8076
8077Re-introduced the support to enable multi-byte transfers for Embedded
8078Controller (EC) operation regions. A reported problem was found to be a
8079bug
8080in the host OS, not in the multi-byte support. Previously, the maximum
8081data
8082size passed to the EC operation region handler was a single byte. There
8083are
8084often EC Fields larger than one byte that need to be transferred, and it
8085is
8086useful for the EC driver to lock these as a single transaction. This
8087change
8088enables single transfers larger than 8 bits. This effectively changes the
8089access to the EC space from ByteAcc to AnyAcc, and will probably require
8090changes to the host OS Embedded Controller driver to enable 16/32/64/256-
8091bit
8092transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
8093
8094Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
8095prototype in acpiosxf.h had the output value pointer as a (void *).
8096It should be a (UINT64 *). This may affect some host OSL code.
8097
8098Fixed a couple problems with the recently modified Linux makefiles for
8099iASL
8100and AcpiExec. These new makefiles place the generated object files in the
8101local directory so that there can be no collisions between the files that
8102are
8103shared between them that are compiled with different options.
8104
8105Example Code and Data Size: These are the sizes for the OS-independent
8106acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8107debug version of the code includes the debug output trace mechanism and
8108has a
8109much larger code and data size.
8110
8111  Previous Release:
8112    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8113    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
8114  Current Release:
8115    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
8116    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
8117
81182) iASL Compiler/Disassembler and Tools:
8119
8120iASL/Disassembler: Added a new option (-da, "disassemble all") to load
8121the
8122namespace from and disassemble an entire group of AML files. Useful for
8123loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
8124and
8125disassembling with one simple command. ACPICA BZ 865. Lin Ming.
8126
8127iASL: Allow multiple invocations of -e option. This change allows
8128multiple
8129uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
8130834.
8131Lin Ming.
8132
8133----------------------------------------
813402 July 2010. Summary of changes for version 20100702:
8135
81361) ACPI CA Core Subsystem:
8137
8138Implemented several updates to the recently added GPE reference count
8139support. The model for "wake" GPEs is changing to give the host OS
8140complete
8141control of these GPEs. Eventually, the ACPICA core will not execute any
8142_PRW
8143methods, since the host already must execute them. Also, additional
8144changes
8145were made to help ensure that the reference counts are kept in proper
8146synchronization with reality. Rafael J. Wysocki.
8147
81481) Ensure that GPEs are not enabled twice during initialization.
81492) Ensure that GPE enable masks stay in sync with the reference count.
81503) Do not inadvertently enable GPEs when writing GPE registers.
81514) Remove the internal wake reference counter and add new AcpiGpeWakeup
8152interface. This interface will set or clear individual GPEs for wakeup.
81535) Remove GpeType argument from AcpiEnable and AcpiDisable. These
8154interfaces
8155are now used for "runtime" GPEs only.
8156
8157Changed the behavior of the GPE install/remove handler interfaces. The
8158GPE
8159is
8160no longer disabled during this process, as it was found to cause problems
8161on
8162some machines. Rafael J. Wysocki.
8163
8164Reverted a change introduced in version 20100528 to enable Embedded
8165Controller multi-byte transfers. This change was found to cause problems
8166with
8167Index Fields and possibly Bank Fields. It will be reintroduced when these
8168problems have been resolved.
8169
8170Fixed a problem with references to Alias objects within Package Objects.
8171A
8172reference to an Alias within the definition of a Package was not always
8173resolved properly. Aliases to objects like Processors, Thermal zones,
8174etc.
8175were resolved to the actual object instead of a reference to the object
8176as
8177it
8178should be. Package objects are only allowed to contain integer, string,
8179buffer, package, and reference objects. Redhat bugzilla 608648.
8180
8181Example Code and Data Size: These are the sizes for the OS-independent
8182acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8183debug version of the code includes the debug output trace mechanism and
8184has a
8185much larger code and data size.
8186
8187  Previous Release:
8188    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8189    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8190  Current Release:
8191    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8192    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
8193
81942) iASL Compiler/Disassembler and Tools:
8195
8196iASL: Implemented a new compiler subsystem to allow definition and
8197compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
8198These
8199are called "ACPI Data Tables", and the new compiler is the "Data Table
8200Compiler". This compiler is intended to simplify the existing error-prone
8201process of creating these tables for the BIOS, as well as allowing the
8202disassembly, modification, recompilation, and override of existing ACPI
8203data
8204tables. See the iASL User Guide for detailed information.
8205
8206iASL: Implemented a new Template Generator option in support of the new
8207Data
8208Table Compiler. This option will create examples of all known ACPI tables
8209that can be used as the basis for table development. See the iASL
8210documentation and the -T option.
8211
8212Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
8213Descriptor Table).
8214
8215Updated the Linux makefiles for iASL and AcpiExec to place the generated
8216object files in the local directory so that there can be no collisions
8217between the shared files between them that are generated with different
8218options.
8219
8220Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
8221Use
8222the #define __APPLE__ to enable this support.
8223
8224----------------------------------------
822528 May 2010. Summary of changes for version 20100528:
8226
8227Note: The ACPI 4.0a specification was released on April 5, 2010 and is
8228available at www.acpi.info. This is primarily an errata release.
8229
82301) ACPI CA Core Subsystem:
8231
8232Undefined ACPI tables: We are looking for the definitions for the
8233following
8234ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
8235
8236Implemented support to enable multi-byte transfers for Embedded
8237Controller
8238(EC) operation regions. Previously, the maximum data size passed to the
8239EC
8240operation region handler was a single byte. There are often EC Fields
8241larger
8242than one byte that need to be transferred, and it is useful for the EC
8243driver
8244to lock these as a single transaction. This change enables single
8245transfers
8246larger than 8 bits. This effectively changes the access to the EC space
8247from
8248ByteAcc to AnyAcc, and will probably require changes to the host OS
8249Embedded
8250Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
8251bit
8252transfers. Alexey Starikovskiy, Lin Ming
8253
8254Implemented a performance enhancement for namespace search and access.
8255This
8256change enhances the performance of namespace searches and walks by adding
8257a
8258backpointer to the parent in each namespace node. On large namespaces,
8259this
8260change can improve overall ACPI performance by up to 9X. Adding a pointer
8261to
8262each namespace node increases the overall size of the internal namespace
8263by
8264about 5%, since each namespace entry usually consists of both a namespace
8265node and an ACPI operand object. However, this is the first growth of the
8266namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
8267
8268Implemented a performance optimization that reduces the number of
8269namespace
8270walks. On control method exit, only walk the namespace if the method is
8271known
8272to have created namespace objects outside of its local scope. Previously,
8273the
8274entire namespace was traversed on each control method exit. This change
8275can
8276improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
8277Moore.
8278
8279Added support to truncate I/O addresses to 16 bits for Windows
8280compatibility.
8281Some ASL code has been seen in the field that inadvertently has bits set
8282above bit 15. This feature is optional and is enabled if the BIOS
8283requests
8284any Windows OSI strings. It can also be enabled by the host OS. Matthew
8285Garrett, Bob Moore.
8286
8287Added support to limit the maximum time for the ASL Sleep() operator. To
8288prevent accidental deep sleeps, limit the maximum time that Sleep() will
8289actually sleep. Configurable, the default maximum is two seconds. ACPICA
8290bugzilla 854.
8291
8292Added run-time validation support for the _WDG and_WED Microsoft
8293predefined
8294methods. These objects are defined by "Windows Instrumentation", and are
8295not
8296part of the ACPI spec. ACPICA BZ 860.
8297
8298Expanded all statistic counters used during namespace and device
8299initialization from 16 to 32 bits in order to support very large
8300namespaces.
8301
8302Replaced all instances of %d in printf format specifiers with %u since
8303nearly
8304all integers in ACPICA are unsigned.
8305
8306Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
8307returned
8308as AE_NO_HANDLER.
8309
8310Example Code and Data Size: These are the sizes for the OS-independent
8311acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8312debug version of the code includes the debug output trace mechanism and
8313has a
8314much larger code and data size.
8315
8316  Previous Release:
8317    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8318    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8319  Current Release:
8320    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8321    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8322
83232) iASL Compiler/Disassembler and Tools:
8324
8325iASL: Added compiler support for the _WDG and_WED Microsoft predefined
8326methods. These objects are defined by "Windows Instrumentation", and are
8327not
8328part of the ACPI spec. ACPICA BZ 860.
8329
8330AcpiExec: added option to disable the memory tracking mechanism. The -dt
8331option will disable the tracking mechanism, which improves performance
8332considerably.
8333
8334AcpiExec: Restructured the command line options into -d (disable) and -e
8335(enable) options.
8336
8337----------------------------------------
833828 April 2010. Summary of changes for version 20100428:
8339
83401) ACPI CA Core Subsystem:
8341
8342Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
8343including FADT-based and GPE Block Devices, execute any _PRW methods in
8344the
8345new table, and process any _Lxx/_Exx GPE methods in the new table. Any
8346runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
8347immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
8348Devices. Provides compatibility with other ACPI implementations. Two new
8349files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
8350Moore.
8351
8352Fixed a regression introduced in version 20100331 within the table
8353manager
8354where initial table loading could fail. This was introduced in the fix
8355for
8356AcpiReallocateRootTable. Also, renamed some of fields in the table
8357manager
8358data structures to clarify their meaning and use.
8359
8360Fixed a possible allocation overrun during internal object copy in
8361AcpiUtCopySimpleObject. The original code did not correctly handle the
8362case
8363where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
8364847.
8365
8366Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
8367possible access beyond end-of-allocation. Also, now fully validate
8368descriptor
8369(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
8370
8371Example Code and Data Size: These are the sizes for the OS-independent
8372acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8373debug version of the code includes the debug output trace mechanism and
8374has a
8375much larger code and data size.
8376
8377  Previous Release:
8378    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8379    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8380  Current Release:
8381    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8382    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8383
83842) iASL Compiler/Disassembler and Tools:
8385
8386iASL: Implemented Min/Max/Len/Gran validation for address resource
8387descriptors. This change implements validation for the address fields
8388that
8389are common to all address-type resource descriptors. These checks are
8390implemented: Checks for valid Min/Max, length within the Min/Max window,
8391valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
8392per
8393table 6-40 in the ACPI 4.0a specification. Also split the large
8394aslrestype1.c
8395and aslrestype2.c files into five new files. ACPICA BZ 840.
8396
8397iASL: Added support for the _Wxx predefined names. This support was
8398missing
8399and these names were not recognized by the compiler as valid predefined
8400names. ACPICA BZ 851.
8401
8402iASL: Added an error for all predefined names that are defined to return
8403no
8404value and thus must be implemented as Control Methods. These include all
8405of
8406the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
8407names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
8408
8409iASL: Implemented the -ts option to emit hex AML data in ASL format, as
8410an
8411ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
8412be
8413dynamically loaded via the Load() operator. Also cleaned up output for
8414the
8415-
8416ta and -tc options. ACPICA BZ 853.
8417
8418Tests: Added a new file with examples of extended iASL error checking.
8419Demonstrates the advanced error checking ability of the iASL compiler.
8420Available at tests/misc/badcode.asl.
8421
8422----------------------------------------
842331 March 2010. Summary of changes for version 20100331:
8424
84251) ACPI CA Core Subsystem:
8426
8427Completed a major update for the GPE support in order to improve support
8428for
8429shared GPEs and to simplify both host OS and ACPICA code. Added a
8430reference
8431count mechanism to support shared GPEs that require multiple device
8432drivers.
8433Several external interfaces have changed. One external interface has been
8434removed. One new external interface was added. Most of the GPE external
8435interfaces now use the GPE spinlock instead of the events mutex (and the
8436Flags parameter for many GPE interfaces has been removed.) See the
8437updated
8438ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
8439Rafael
8440Wysocki. ACPICA BZ 831.
8441
8442Changed:
8443    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
8444Removed:
8445    AcpiSetGpeType
8446New:
8447    AcpiSetGpe
8448
8449Implemented write support for DataTable operation regions. These regions
8450are
8451defined via the DataTableRegion() operator. Previously, only read support
8452was
8453implemented. The ACPI specification allows DataTableRegions to be
8454read/write,
8455however.
8456
8457Implemented a new subsystem option to force a copy of the DSDT to local
8458memory. Optionally copy the entire DSDT to local memory (instead of
8459simply
8460mapping it.) There are some (albeit very rare) BIOSs that corrupt or
8461replace
8462the original DSDT, creating the need for this option. Default is FALSE,
8463do
8464not copy the DSDT.
8465
8466Implemented detection of a corrupted or replaced DSDT. This change adds
8467support to detect a DSDT that has been corrupted and/or replaced from
8468outside
8469the OS (by firmware). This is typically catastrophic for the system, but
8470has
8471been seen on some machines. Once this problem has been detected, the DSDT
8472copy option can be enabled via system configuration. Lin Ming, Bob Moore.
8473
8474Fixed two problems with AcpiReallocateRootTable during the root table
8475copy.
8476When copying the root table to the new allocation, the length used was
8477incorrect. The new size was used instead of the current table size,
8478meaning
8479too much data was copied. Also, the count of available slots for ACPI
8480tables
8481was not set correctly. Alexey Starikovskiy, Bob Moore.
8482
8483Example Code and Data Size: These are the sizes for the OS-independent
8484acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8485debug version of the code includes the debug output trace mechanism and
8486has a
8487much larger code and data size.
8488
8489  Previous Release:
8490    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8491    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8492  Current Release:
8493    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8494    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8495
84962) iASL Compiler/Disassembler and Tools:
8497
8498iASL: Implement limited typechecking for values returned from predefined
8499control methods. The type of any returned static (unnamed) object is now
8500validated. For example, Return(1). ACPICA BZ 786.
8501
8502iASL: Fixed a predefined name object verification regression. Fixes a
8503problem
8504introduced in version 20100304. An error is incorrectly generated if a
8505predefined name is declared as a static named object with a value defined
8506using the keywords "Zero", "One", or "Ones". Lin Ming.
8507
8508iASL: Added Windows 7 support for the -g option (get local ACPI tables)
8509by
8510reducing the requested registry access rights. ACPICA BZ 842.
8511
8512Disassembler: fixed a possible fault when generating External()
8513statements.
8514Introduced in commit ae7d6fd: Properly handle externals with parent-
8515prefix
8516(carat). Fixes a string length allocation calculation. Lin Ming.
8517
8518----------------------------------------
851904 March 2010. Summary of changes for version 20100304:
8520
85211) ACPI CA Core Subsystem:
8522
8523Fixed a possible problem with the AML Mutex handling function
8524AcpiExReleaseMutex where the function could fault under the very rare
8525condition when the interpreter has blocked, the interpreter lock is
8526released,
8527the interpreter is then reentered via the same thread, and attempts to
8528acquire an AML mutex that was previously acquired. FreeBSD report 140979.
8529Lin
8530Ming.
8531
8532Implemented additional configuration support for the AML "Debug Object".
8533Output from the debug object can now be enabled via a global variable,
8534AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
8535debugging.
8536This debug output is now available in the release version of ACPICA
8537instead
8538of just the debug version. Also, the entire debug output module can now
8539be
8540configured out of the ACPICA build if desired. One new file added,
8541executer/exdebug.c. Lin Ming, Bob Moore.
8542
8543Added header support for the ACPI MCHI table (Management Controller Host
8544Interface Table). This table was added in ACPI 4.0, but the defining
8545document
8546has only recently become available.
8547
8548Standardized output of integer values for ACPICA warnings/errors. Always
8549use
85500x prefix for hex output, always use %u for unsigned integer decimal
8551output.
8552Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
8553400
8554invocations.) These invocations were converted from the original
8555ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
8556
8557Example Code and Data Size: These are the sizes for the OS-independent
8558acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8559debug version of the code includes the debug output trace mechanism and
8560has a
8561much larger code and data size.
8562
8563  Previous Release:
8564    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8565    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8566  Current Release:
8567    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8568    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8569
85702) iASL Compiler/Disassembler and Tools:
8571
8572iASL: Implemented typechecking support for static (non-control method)
8573predefined named objects that are declared with the Name() operator. For
8574example, the type of this object is now validated to be of type Integer:
8575Name(_BBN, 1). This change migrates the compiler to using the core
8576predefined
8577name table instead of maintaining a local version. Added a new file,
8578aslpredef.c. ACPICA BZ 832.
8579
8580Disassembler: Added support for the ACPI 4.0 MCHI table.
8581
8582----------------------------------------
858321 January 2010. Summary of changes for version 20100121:
8584
85851) ACPI CA Core Subsystem:
8586
8587Added the 2010 copyright to all module headers and signons. This affects
8588virtually every file in the ACPICA core subsystem, the iASL compiler, the
8589tools/utilities, and the test suites.
8590
8591Implemented a change to the AcpiGetDevices interface to eliminate
8592unnecessary
8593invocations of the _STA method. In the case where a specific _HID is
8594requested, do not run _STA until a _HID match is found. This eliminates
8595potentially dozens of _STA calls during a search for a particular
8596device/HID,
8597which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
8598
8599Implemented an additional repair for predefined method return values.
8600Attempt
8601to repair unexpected NULL elements within returned Package objects.
8602Create
8603an
8604Integer of value zero, a NULL String, or a zero-length Buffer as
8605appropriate.
8606ACPICA BZ 818. Lin Ming, Bob Moore.
8607
8608Removed the obsolete ACPI_INTEGER data type. This type was introduced as
8609the
8610code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
8611(with
861264-bit AML integers). It is now obsolete and this change removes it from
8613the
8614ACPICA code base, replaced by UINT64. The original typedef has been
8615retained
8616for now for compatibility with existing device driver code. ACPICA BZ
8617824.
8618
8619Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
8620in
8621the parse tree object.
8622
8623Added additional warning options for the gcc-4 generation. Updated the
8624source
8625accordingly. This includes some code restructuring to eliminate
8626unreachable
8627code, elimination of some gotos, elimination of unused return values,
8628some
8629additional casting, and removal of redundant declarations.
8630
8631Example Code and Data Size: These are the sizes for the OS-independent
8632acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8633debug version of the code includes the debug output trace mechanism and
8634has a
8635much larger code and data size.
8636
8637  Previous Release:
8638    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8639    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8640  Current Release:
8641    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8642    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8643
86442) iASL Compiler/Disassembler and Tools:
8645
8646No functional changes for this release.
8647
8648----------------------------------------
864914 December 2009. Summary of changes for version 20091214:
8650
86511) ACPI CA Core Subsystem:
8652
8653Enhanced automatic data type conversions for predefined name repairs.
8654This
8655change expands the automatic repairs/conversions for predefined name
8656return
8657values to make Integers, Strings, and Buffers fully interchangeable.
8658Also,
8659a
8660Buffer can be converted to a Package of Integers if necessary. The
8661nsrepair.c
8662module was completely restructured. Lin Ming, Bob Moore.
8663
8664Implemented automatic removal of null package elements during predefined
8665name
8666repairs. This change will automatically remove embedded and trailing NULL
8667package elements from returned package objects that are defined to
8668contain
8669a
8670variable number of sub-packages. The driver is then presented with a
8671package
8672with no null elements to deal with. ACPICA BZ 819.
8673
8674Implemented a repair for the predefined _FDE and _GTM names. The expected
8675return value for both names is a Buffer of 5 DWORDs. This repair fixes
8676two
8677possible problems (both seen in the field), where a package of integers
8678is
8679returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
8680Kim.
8681
8682Implemented additional module-level code support. This change will
8683properly
8684execute module-level code that is not at the root of the namespace (under
8685a
8686Device object, etc.). Now executes the code within the current scope
8687instead
8688of the root. ACPICA BZ 762. Lin Ming.
8689
8690Fixed possible mutex acquisition errors when running _REG methods. Fixes
8691a
8692problem where mutex errors can occur when running a _REG method that is
8693in
8694the same scope as a method-defined operation region or an operation
8695region
8696under a module-level IF block. This type of code is rare, so the problem
8697has
8698not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
8699
8700Fixed a possible memory leak during module-level code execution. An
8701object
8702could be leaked for each block of executed module-level code if the
8703interpreter slack mode is enabled This change deletes any implicitly
8704returned
8705object from the module-level code block. Lin Ming.
8706
8707Removed messages for successful predefined repair(s). The repair
8708mechanism
8709was considered too wordy. Now, messages are only unconditionally emitted
8710if
8711the return object cannot be repaired. Existing messages for successful
8712repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
8713827.
8714
8715Example Code and Data Size: These are the sizes for the OS-independent
8716acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8717debug version of the code includes the debug output trace mechanism and
8718has a
8719much larger code and data size.
8720
8721  Previous Release:
8722    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8723    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8724  Current Release:
8725    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8726    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8727
87282) iASL Compiler/Disassembler and Tools:
8729
8730iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
8731files
8732were no longer automatically removed at the termination of the compile.
8733
8734acpiexec: Implemented the -f option to specify default region fill value.
8735This option specifies the value used to initialize buffers that simulate
8736operation regions. Default value is zero. Useful for debugging problems
8737that
8738depend on a specific initial value for a region or field.
8739
8740----------------------------------------
874112 November 2009. Summary of changes for version 20091112:
8742
87431) ACPI CA Core Subsystem:
8744
8745Implemented a post-order callback to AcpiWalkNamespace. The existing
8746interface only has a pre-order callback. This change adds an additional
8747parameter for a post-order callback which will be more useful for bus
8748scans.
8749ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
8750
8751Modified the behavior of the operation region memory mapping cache for
8752SystemMemory. Ensure that the memory mappings created for operation
8753regions
8754do not cross 4K page boundaries. Crossing a page boundary while mapping
8755regions can cause kernel warnings on some hosts if the pages have
8756different
8757attributes. Such regions are probably BIOS bugs, and this is the
8758workaround.
8759Linux BZ 14445. Lin Ming.
8760
8761Implemented an automatic repair for predefined methods that must return
8762sorted lists. This change will repair (by sorting) packages returned by
8763_ALR,
8764_PSS, and _TSS. Drivers can now assume that the packages are correctly
8765sorted
8766and do not contain NULL package elements. Adds one new file,
8767namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
8768
8769Fixed a possible fault during predefined name validation if a return
8770Package
8771object contains NULL elements. Also adds a warning if a NULL element is
8772followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
8773may
8774include repair or removal of all such NULL elements where possible.
8775
8776Implemented additional module-level executable AML code support. This
8777change
8778will execute module-level code that is not at the root of the namespace
8779(under a Device object, etc.) at table load time. Module-level executable
8780AML
8781code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
8782
8783Implemented a new internal function to create Integer objects. This
8784function
8785simplifies miscellaneous object creation code. ACPICA BZ 823.
8786
8787Reduced the severity of predefined repair messages, Warning to Info.
8788Since
8789the object was successfully repaired, a warning is too severe. Reduced to
8790an
8791info message for now. These messages may eventually be changed to debug-
8792only.
8793ACPICA BZ 812.
8794
8795Example Code and Data Size: These are the sizes for the OS-independent
8796acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8797debug version of the code includes the debug output trace mechanism and
8798has a
8799much larger code and data size.
8800
8801  Previous Release:
8802    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8803    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8804  Current Release:
8805    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8806    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8807
88082) iASL Compiler/Disassembler and Tools:
8809
8810iASL: Implemented Switch() with While(1) so that Break works correctly.
8811This
8812change correctly implements the Switch operator with a surrounding
8813While(1)
8814so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
8815
8816iASL: Added a message if a package initializer list is shorter than
8817package
8818length. Adds a new remark for a Package() declaration if an initializer
8819list
8820exists, but is shorter than the declared length of the package. Although
8821technically legal, this is probably a coding error and it is seen in the
8822field. ACPICA BZ 815. Lin Ming, Bob Moore.
8823
8824iASL: Fixed a problem where the compiler could fault after the maximum
8825number
8826of errors was reached (200).
8827
8828acpixtract: Fixed a possible warning for pointer cast if the compiler
8829warning
8830level set very high.
8831
8832----------------------------------------
883313 October 2009. Summary of changes for version 20091013:
8834
88351) ACPI CA Core Subsystem:
8836
8837Fixed a problem where an Operation Region _REG method could be executed
8838more
8839than once. If a custom address space handler is installed by the host
8840before
8841the "initialize operation regions" phase of the ACPICA initialization,
8842any
8843_REG methods for that address space could be executed twice. This change
8844fixes the problem. ACPICA BZ 427. Lin Ming.
8845
8846Fixed a possible memory leak for the Scope() ASL operator. When the exact
8847invocation of "Scope(\)" is executed (change scope to root), one internal
8848operand object was leaked. Lin Ming.
8849
8850Implemented a run-time repair for the _MAT predefined method. If the _MAT
8851return value is defined as a Field object in the AML, and the field
8852size is less than or equal to the default width of an integer (32 or
885364),_MAT
8854can incorrectly return an Integer instead of a Buffer. ACPICA now
8855automatically repairs this problem. ACPICA BZ 810.
8856
8857Implemented a run-time repair for the _BIF and _BIX predefined methods.
8858The
8859"OEM Information" field is often incorrectly returned as an Integer with
8860value zero if the field is not supported by the platform. This is due to
8861an
8862ambiguity in the ACPI specification. The field should always be a string.
8863ACPICA now automatically repairs this problem by returning a NULL string
8864within the returned Package. ACPICA BZ 807.
8865
8866Example Code and Data Size: These are the sizes for the OS-independent
8867acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8868debug version of the code includes the debug output trace mechanism and
8869has a
8870much larger code and data size.
8871
8872  Previous Release:
8873    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
8874    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
8875  Current Release:
8876    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8877    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8878
88792) iASL Compiler/Disassembler and Tools:
8880
8881Disassembler: Fixed a problem where references to external symbols that
8882contained one or more parent-prefixes (carats) were not handled
8883correctly,
8884possibly causing a fault. ACPICA BZ 806. Lin Ming.
8885
8886Disassembler: Restructured the code so that all functions that handle
8887external symbols are in a single module. One new file is added,
8888common/dmextern.c.
8889
8890AML Debugger: Added a max count argument for the Batch command (which
8891executes multiple predefined methods within the namespace.)
8892
8893iASL: Updated the compiler documentation (User Reference.) Available at
8894http://www.acpica.org/documentation/. ACPICA BZ 750.
8895
8896AcpiXtract: Updated for Lint and other formatting changes. Close all open
8897files.
8898
8899----------------------------------------
890003 September 2009. Summary of changes for version 20090903:
8901
89021) ACPI CA Core Subsystem:
8903
8904For Windows Vista compatibility, added the automatic execution of an _INI
8905method located at the namespace root (\_INI). This method is executed at
8906table load time. This support is in addition to the automatic execution
8907of
8908\_SB._INI. Lin Ming.
8909
8910Fixed a possible memory leak in the interpreter for AML package objects
8911if
8912the package initializer list is longer than the defined size of the
8913package.
8914This apparently can only happen if the BIOS changes the package size on
8915the
8916fly (seen in a _PSS object), as ASL compilers do not allow this. The
8917interpreter will truncate the package to the defined size (and issue an
8918error
8919message), but previously could leave the extra objects undeleted if they
8920were
8921pre-created during the argument processing (such is the case if the
8922package
8923consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
8924
8925Fixed a problem seen when a Buffer or String is stored to itself via ASL.
8926This has been reported in the field. Previously, ACPICA would zero out
8927the
8928buffer/string. Now, the operation is treated as a noop. Provides Windows
8929compatibility. ACPICA BZ 803. Lin Ming.
8930
8931Removed an extraneous error message for ASL constructs of the form
8932Store(LocalX,LocalX) when LocalX is uninitialized. These curious
8933statements
8934are seen in many BIOSs and are once again treated as NOOPs and no error
8935is
8936emitted when they are encountered. ACPICA BZ 785.
8937
8938Fixed an extraneous warning message if a _DSM reserved method returns a
8939Package object. _DSM can return any type of object, so validation on the
8940return type cannot be performed. ACPICA BZ 802.
8941
8942Example Code and Data Size: These are the sizes for the OS-independent
8943acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8944debug version of the code includes the debug output trace mechanism and
8945has a
8946much larger code and data size.
8947
8948  Previous Release:
8949    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
8950    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
8951  Current Release:
8952    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
8953    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
8954
89552) iASL Compiler/Disassembler and Tools:
8956
8957iASL: Fixed a problem with the use of the Alias operator and Resource
8958Templates. The correct alias is now constructed and no error is emitted.
8959ACPICA BZ 738.
8960
8961iASL: Implemented the -I option to specify additional search directories
8962for
8963include files. Allows multiple additional search paths for include files.
8964Directories are searched in the order specified on the command line
8965(after
8966the local directory is searched.) ACPICA BZ 800.
8967
8968iASL: Fixed a problem where the full pathname for include files was not
8969emitted for warnings/errors. This caused the IDE support to not work
8970properly. ACPICA BZ 765.
8971
8972iASL: Implemented the -@ option to specify a Windows-style response file
8973containing additional command line options. ACPICA BZ 801.
8974
8975AcpiExec: Added support to load multiple AML files simultaneously (such
8976as
8977a
8978DSDT and multiple SSDTs). Also added support for wildcards within the AML
8979pathname. These features allow all machine tables to be easily loaded and
8980debugged together. ACPICA BZ 804.
8981
8982Disassembler: Added missing support for disassembly of HEST table Error
8983Bank
8984subtables.
8985
8986----------------------------------------
898730 July 2009. Summary of changes for version 20090730:
8988
8989The ACPI 4.0 implementation for ACPICA is complete with this release.
8990
89911) ACPI CA Core Subsystem:
8992
8993ACPI 4.0: Added header file support for all new and changed ACPI tables.
8994Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
8995new
8996for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
8997BERT,
8998EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
8999There
9000have been some ACPI 4.0 changes to other existing tables. Split the large
9001actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
9002
9003ACPI 4.0: Implemented predefined name validation for all new names. There
9004are
900531 new names in ACPI 4.0. The predefined validation module was split into
9006two
9007files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
9008
9009Implemented support for so-called "module-level executable code". This is
9010executable AML code that exists outside of any control method and is
9011intended
9012to be executed at table load time. Although illegal since ACPI 2.0, this
9013type
9014of code still exists and is apparently still being created. Blocks of
9015this
9016code are now detected and executed as intended. Currently, the code
9017blocks
9018must exist under either an If, Else, or While construct; these are the
9019typical cases seen in the field. ACPICA BZ 762. Lin Ming.
9020
9021Implemented an automatic dynamic repair for predefined names that return
9022nested Package objects. This applies to predefined names that are defined
9023to
9024return a variable-length Package of sub-packages. If the number of sub-
9025packages is one, BIOS code is occasionally seen that creates a simple
9026single
9027package with no sub-packages. This code attempts to fix the problem by
9028wrapping a new package object around the existing package. These methods
9029can
9030be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
9031BZ
9032790.
9033
9034Fixed a regression introduced in 20090625 for the AcpiGetDevices
9035interface.
9036The _HID/_CID matching was broken and no longer matched IDs correctly.
9037ACPICA
9038BZ 793.
9039
9040Fixed a problem with AcpiReset where the reset would silently fail if the
9041register was one of the protected I/O ports. AcpiReset now bypasses the
9042port
9043validation mechanism. This may eventually be driven into the
9044AcpiRead/Write
9045interfaces.
9046
9047Fixed a regression related to the recent update of the AcpiRead/Write
9048interfaces. A sleep/suspend could fail if the optional PM2 Control
9049register
9050does not exist during an attempt to write the Bus Master Arbitration bit.
9051(However, some hosts already delete the code that writes this bit, and
9052the
9053code may in fact be obsolete at this date.) ACPICA BZ 799.
9054
9055Fixed a problem where AcpiTerminate could fault if inadvertently called
9056twice
9057in succession. ACPICA BZ 795.
9058
9059Example Code and Data Size: These are the sizes for the OS-independent
9060acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9061debug version of the code includes the debug output trace mechanism and
9062has a
9063much larger code and data size.
9064
9065  Previous Release:
9066    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
9067    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
9068  Current Release:
9069    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
9070    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
9071
90722) iASL Compiler/Disassembler and Tools:
9073
9074ACPI 4.0: Implemented disassembler support for all new ACPI tables and
9075changes to existing tables. ACPICA BZ 775.
9076
9077----------------------------------------
907825 June 2009. Summary of changes for version 20090625:
9079
9080The ACPI 4.0 Specification was released on June 16 and is available at
9081www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
9082continue for the next few releases.
9083
90841) ACPI CA Core Subsystem:
9085
9086ACPI 4.0: Implemented interpreter support for the IPMI operation region
9087address space. Includes support for bi-directional data buffers and an
9088IPMI
9089address space handler (to be installed by an IPMI device driver.) ACPICA
9090BZ
9091773. Lin Ming.
9092
9093ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
9094Includes
9095support in both the header files and the disassembler.
9096
9097Completed a major update for the AcpiGetObjectInfo external interface.
9098Changes include:
9099 - Support for variable, unlimited length HID, UID, and CID strings.
9100 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
9101etc.)
9102 - Call the _SxW power methods on behalf of a device object.
9103 - Determine if a device is a PCI root bridge.
9104 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
9105These changes will require an update to all callers of this interface.
9106See
9107the updated ACPICA Programmer Reference for details. One new source file
9108has
9109been added - utilities/utids.c. ACPICA BZ 368, 780.
9110
9111Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
9112transfers. The Value parameter has been extended from 32 bits to 64 bits
9113in
9114order to support new ACPI 4.0 tables. These changes will require an
9115update
9116to
9117all callers of these interfaces. See the ACPICA Programmer Reference for
9118details. ACPICA BZ 768.
9119
9120Fixed several problems with AcpiAttachData. The handler was not invoked
9121when
9122the host node was deleted. The data sub-object was not automatically
9123deleted
9124when the host node was deleted. The interface to the handler had an
9125unused
9126parameter, this was removed. ACPICA BZ 778.
9127
9128Enhanced the function that dumps ACPI table headers. All non-printable
9129characters in the string fields are now replaced with '?' (Signature,
9130OemId,
9131OemTableId, and CompilerId.) ACPI tables with non-printable characters in
9132these fields are occasionally seen in the field. ACPICA BZ 788.
9133
9134Fixed a problem with predefined method repair code where the code that
9135attempts to repair/convert an object of incorrect type is only executed
9136on
9137the first time the predefined method is called. The mechanism that
9138disables
9139warnings on subsequent calls was interfering with the repair mechanism.
9140ACPICA BZ 781.
9141
9142Fixed a possible memory leak in the predefined validation/repair code
9143when
9144a
9145buffer is automatically converted to an expected string object.
9146
9147Removed obsolete 16-bit files from the distribution and from the current
9148git
9149tree head. ACPICA BZ 776.
9150
9151Example Code and Data Size: These are the sizes for the OS-independent
9152acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9153debug version of the code includes the debug output trace mechanism and
9154has a
9155much larger code and data size.
9156
9157  Previous Release:
9158    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9159    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9160  Current Release:
9161    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
9162    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
9163
91642) iASL Compiler/Disassembler and Tools:
9165
9166ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
9167operation region keyword. ACPICA BZ 771, 772. Lin Ming.
9168
9169ACPI 4.0: iASL - implemented compile-time validation support for all new
9170predefined names and control methods (31 total). ACPICA BZ 769.
9171
9172----------------------------------------
917321 May 2009. Summary of changes for version 20090521:
9174
91751) ACPI CA Core Subsystem:
9176
9177Disabled the preservation of the SCI enable bit in the PM1 control
9178register.
9179The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
9180to
9181be
9182a "preserved" bit - "OSPM always preserves this bit position", section
91834.7.3.2.1. However, some machines fail if this bit is in fact preserved
9184because the bit needs to be explicitly set by the OS as a workaround. No
9185machines fail if the bit is not preserved. Therefore, ACPICA no longer
9186attempts to preserve this bit.
9187
9188Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
9189incorrectly formed _PRT package could cause a fault. Added validation to
9190ensure that each package element is actually a sub-package.
9191
9192Implemented a new interface to install or override a single control
9193method,
9194AcpiInstallMethod. This interface is useful when debugging in order to
9195repair
9196an existing method or to install a missing method without having to
9197override
9198the entire ACPI table. See the ACPICA Programmer Reference for use and
9199examples. Lin Ming, Bob Moore.
9200
9201Fixed several reference count issues with the DdbHandle object that is
9202created from a Load or LoadTable operator. Prevent premature deletion of
9203the
9204object. Also, mark the object as invalid once the table has been
9205unloaded.
9206This is needed because the handle itself may not be deleted after the
9207table
9208unload, depending on whether it has been stored in a named object by the
9209caller. Lin Ming.
9210
9211Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
9212mutexes of the same sync level are acquired but then not released in
9213strict
9214opposite order, the internally maintained Current Sync Level becomes
9215confused
9216and can cause subsequent execution errors. ACPICA BZ 471.
9217
9218Changed the allowable release order for ASL mutex objects. The ACPI 4.0
9219specification has been changed to make the SyncLevel for mutex objects
9220more
9221useful. When releasing a mutex, the SyncLevel of the mutex must now be
9222the
9223same as the current sync level. This makes more sense than the previous
9224rule
9225(SyncLevel less than or equal). This change updates the code to match the
9226specification.
9227
9228Fixed a problem with the local version of the AcpiOsPurgeCache function.
9229The
9230(local) cache must be locked during all cache object deletions. Andrew
9231Baumann.
9232
9233Updated the Load operator to use operation region interfaces. This
9234replaces
9235direct memory mapping with region access calls. Now, all region accesses
9236go
9237through the installed region handler as they should.
9238
9239Simplified and optimized the NsGetNextNode function. Reduced parameter
9240count
9241and reduced code for this frequently used function.
9242
9243Example Code and Data Size: These are the sizes for the OS-independent
9244acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9245debug version of the code includes the debug output trace mechanism and
9246has a
9247much larger code and data size.
9248
9249  Previous Release:
9250    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9251    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9252  Current Release:
9253    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9254    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9255
92562) iASL Compiler/Disassembler and Tools:
9257
9258Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
9259problems
9260with sub-table disassembly and handling invalid sub-tables. Attempt
9261recovery
9262after an invalid sub-table ID.
9263
9264----------------------------------------
926522 April 2009. Summary of changes for version 20090422:
9266
92671) ACPI CA Core Subsystem:
9268
9269Fixed a compatibility issue with the recently released I/O port
9270protection
9271mechanism. For windows compatibility, 1) On a port protection violation,
9272simply ignore the request and do not return an exception (allow the
9273control
9274method to continue execution.) 2) If only part of the request overlaps a
9275protected port, read/write the individual ports that are not protected.
9276Linux
9277BZ 13036. Lin Ming
9278
9279Enhanced the execution of the ASL/AML BreakPoint operator so that it
9280actually
9281breaks into the AML debugger if the debugger is present. This matches the
9282ACPI-defined behavior.
9283
9284Fixed several possible warnings related to the use of the configurable
9285ACPI_THREAD_ID. This type can now be configured as either an integer or a
9286pointer with no warnings. Also fixes several warnings in printf-like
9287statements for the 64-bit build when the type is configured as a pointer.
9288ACPICA BZ 766, 767.
9289
9290Fixed a number of possible warnings when compiling with gcc 4+ (depending
9291on
9292warning options.) Examples include printf formats, aliasing, unused
9293globals,
9294missing prototypes, missing switch default statements, use of non-ANSI
9295library functions, use of non-ANSI constructs. See generate/unix/Makefile
9296for
9297a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
9298
9299Example Code and Data Size: These are the sizes for the OS-independent
9300acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9301debug version of the code includes the debug output trace mechanism and
9302has a
9303much larger code and data size.
9304
9305  Previous Release:
9306    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9307    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9308  Current Release:
9309    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9310    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9311
93122) iASL Compiler/Disassembler and Tools:
9313
9314iASL: Fixed a generation warning from Bison 2.3 and fixed several
9315warnings
9316on
9317the 64-bit build.
9318
9319iASL: Fixed a problem where the Unix/Linux versions of the compiler could
9320not
9321correctly digest Windows/DOS formatted files (with CR/LF).
9322
9323iASL: Added a new option for "quiet mode" (-va) that produces only the
9324compilation summary, not individual errors and warnings. Useful for large
9325batch compilations.
9326
9327AcpiExec: Implemented a new option (-z) to enable a forced
9328semaphore/mutex
9329timeout that can be used to detect hang conditions during execution of
9330AML
9331code (includes both internal semaphores and AML-defined mutexes and
9332events.)
9333
9334Added new makefiles for the generation of acpica in a generic unix-like
9335environment. These makefiles are intended to generate the acpica tools
9336and
9337utilities from the original acpica git source tree structure.
9338
9339Test Suites: Updated and cleaned up the documentation files. Updated the
9340copyrights to 2009, affecting all source files. Use the new version of
9341iASL
9342with quiet mode. Increased the number of available semaphores in the
9343Windows
9344OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
9345added
9346an alternate implementation of the semaphore timeout to allow aslts to
9347execute fully on Cygwin.
9348
9349----------------------------------------
935020 March 2009. Summary of changes for version 20090320:
9351
93521) ACPI CA Core Subsystem:
9353
9354Fixed a possible race condition between AcpiWalkNamespace and dynamic
9355table
9356unloads. Added a reader/writer locking mechanism to allow multiple
9357concurrent
9358namespace walks (readers), but block a dynamic table unload until it can
9359gain
9360exclusive write access to the namespace. This fixes a problem where a
9361table
9362unload could (possibly catastrophically) delete the portion of the
9363namespace
9364that is currently being examined by a walk. Adds a new file, utlock.c,
9365that
9366implements the reader/writer lock mechanism. ACPICA BZ 749.
9367
9368Fixed a regression introduced in version 20090220 where a change to the
9369FADT
9370handling could cause the ACPICA subsystem to access non-existent I/O
9371ports.
9372
9373Modified the handling of FADT register and table (FACS/DSDT) addresses.
9374The
9375FADT can contain both 32-bit and 64-bit versions of these addresses.
9376Previously, the 64-bit versions were favored, meaning that if both 32 and
937764
9378versions were valid, but not equal, the 64-bit version was used. This was
9379found to cause some machines to fail. Now, in this case, the 32-bit
9380version
9381is used instead. This now matches the Windows behavior.
9382
9383Implemented a new mechanism to protect certain I/O ports. Provides
9384Microsoft
9385compatibility and protects the standard PC I/O ports from access via AML
9386code. Adds a new file, hwvalid.c
9387
9388Fixed a possible extraneous warning message from the FADT support. The
9389message warns of a 32/64 length mismatch between the legacy and GAS
9390definitions for a register.
9391
9392Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
9393is
9394made obsolete by the port protection mechanism above. It was previously
9395used
9396to validate the entire address range of an operation region, which could
9397be
9398incorrect if the range included illegal ports, but fields within the
9399operation region did not actually access those ports. Validation is now
9400performed on a per-field basis instead of the entire region.
9401
9402Modified the handling of the PM1 Status Register ignored bit (bit 11.)
9403Ignored bits must be "preserved" according to the ACPI spec. Usually,
9404this
9405means a read/modify/write when writing to the register. However, for
9406status
9407registers, writing a one means clear the event. Writing a zero means
9408preserve
9409the event (do not clear.) This behavior is clarified in the ACPI 4.0
9410spec,
9411and the ACPICA code now simply always writes a zero to the ignored bit.
9412
9413Modified the handling of ignored bits for the PM1 A/B Control Registers.
9414As
9415per the ACPI specification, for the control registers, preserve
9416(read/modify/write) all bits that are defined as either reserved or
9417ignored.
9418
9419Updated the handling of write-only bits in the PM1 A/B Control Registers.
9420When reading the register, zero the write-only bits as per the ACPI spec.
9421ACPICA BZ 443. Lin Ming.
9422
9423Removed "Linux" from the list of supported _OSI strings. Linux no longer
9424wants to reply true to this request. The Windows strings are the only
9425paths
9426through the AML that are tested and known to work properly.
9427
9428  Previous Release:
9429    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9430    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9431  Current Release:
9432    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9433    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9434
94352) iASL Compiler/Disassembler and Tools:
9436
9437Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
9438and
9439aetables.c
9440
9441----------------------------------------
944220 February 2009. Summary of changes for version 20090220:
9443
94441) ACPI CA Core Subsystem:
9445
9446Optimized the ACPI register locking. Removed locking for reads from the
9447ACPI
9448bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
9449is
9450not required when reading the single-bit registers. The
9451AcpiGetRegisterUnlocked function is no longer needed and has been
9452removed.
9453This will improve performance for reads on these registers. ACPICA BZ
9454760.
9455
9456Fixed the parameter validation for AcpiRead/Write. Now return
9457AE_BAD_PARAMETER if the input register pointer is null, and
9458AE_BAD_ADDRESS
9459if
9460the register has an address of zero. Previously, these cases simply
9461returned
9462AE_OK. For optional registers such as PM1B status/enable/control, the
9463caller
9464should check for a valid register address before calling. ACPICA BZ 748.
9465
9466Renamed the external ACPI bit register access functions. Renamed
9467AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
9468functions. The new names are AcpiReadBitRegister and
9469AcpiWriteBitRegister.
9470Also, restructured the code for these functions by simplifying the code
9471path
9472and condensing duplicate code to reduce code size.
9473
9474Added new functions to transparently handle the possibly split PM1 A/B
9475registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
9476functions
9477now handle the split registers for PM1 Status, Enable, and Control.
9478ACPICA
9479BZ
9480746.
9481
9482Added a function to handle the PM1 control registers,
9483AcpiHwWritePm1Control.
9484This function writes both of the PM1 control registers (A/B). These
9485registers
9486are different than the PM1 A/B status and enable registers in that
9487different
9488values can be written to the A/B registers. Most notably, the SLP_TYP
9489bits
9490can be different, as per the values returned from the _Sx predefined
9491methods.
9492
9493Removed an extra register write within AcpiHwClearAcpiStatus. This
9494function
9495was writing an optional PM1B status register twice. The existing call to
9496the
9497low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
9498A/B
9499register. ACPICA BZ 751.
9500
9501Split out the PM1 Status registers from the FADT. Added new globals for
9502these
9503registers (A/B), similar to the way the PM1 Enable registers are handled.
9504Instead of overloading the FADT Event Register blocks. This makes the
9505code
9506clearer and less prone to error.
9507
9508Fixed the warning message for when the platform contains too many ACPI
9509tables
9510for the default size of the global root table data structure. The
9511calculation
9512for the truncation value was incorrect.
9513
9514Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
9515obsolete macro, since it is now a simple reference to ->common.type.
9516There
9517were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
9518
9519Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
9520TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
9521simply SLEEP_TYPE. ACPICA BZ 754.
9522
9523Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
9524function is only needed on 64-bit host operating systems and is thus not
9525included for 32-bit hosts.
9526
9527Debug output: print the input and result for invocations of the _OSI
9528reserved
9529control method via the ACPI_LV_INFO debug level. Also, reduced some of
9530the
9531verbosity of this debug level. Len Brown.
9532
9533Example Code and Data Size: These are the sizes for the OS-independent
9534acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9535debug version of the code includes the debug output trace mechanism and
9536has a
9537much larger code and data size.
9538
9539  Previous Release:
9540    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9541    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9542  Current Release:
9543    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9544    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9545
95462) iASL Compiler/Disassembler and Tools:
9547
9548Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
9549various legal performance profiles.
9550
9551----------------------------------------
955223 January 2009. Summary of changes for version 20090123:
9553
95541) ACPI CA Core Subsystem:
9555
9556Added the 2009 copyright to all module headers and signons. This affects
9557virtually every file in the ACPICA core subsystem, the iASL compiler, and
9558the tools/utilities.
9559
9560Implemented a change to allow the host to override any ACPI table,
9561including
9562dynamically loaded tables. Previously, only the DSDT could be replaced by
9563the
9564host. With this change, the AcpiOsTableOverride interface is called for
9565each
9566table found in the RSDT/XSDT during ACPICA initialization, and also
9567whenever
9568a table is dynamically loaded via the AML Load operator.
9569
9570Updated FADT flag definitions, especially the Boot Architecture flags.
9571
9572Debugger: For the Find command, automatically pad the input ACPI name
9573with
9574underscores if the name is shorter than 4 characters. This enables a
9575match
9576with the actual namespace entry which is itself padded with underscores.
9577
9578Example Code and Data Size: These are the sizes for the OS-independent
9579acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9580debug version of the code includes the debug output trace mechanism and
9581has a
9582much larger code and data size.
9583
9584  Previous Release:
9585    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9586    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9587  Current Release:
9588    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9589    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9590
95912) iASL Compiler/Disassembler and Tools:
9592
9593Fix build error under Bison-2.4.
9594
9595Disassembler: Enhanced FADT support. Added decoding of the Boot
9596Architecture
9597flags. Now decode all flags, regardless of the FADT version. Flag output
9598includes the FADT version which first defined each flag.
9599
9600The iASL -g option now dumps the RSDT to a file (in addition to the FADT
9601and
9602DSDT). Windows only.
9603
9604----------------------------------------
960504 December 2008. Summary of changes for version 20081204:
9606
96071) ACPI CA Core Subsystem:
9608
9609The ACPICA Programmer Reference has been completely updated and revamped
9610for
9611this release. This includes updates to the external interfaces, OSL
9612interfaces, the overview sections, and the debugger reference.
9613
9614Several new ACPICA interfaces have been implemented and documented in the
9615programmer reference:
9616AcpiReset - Writes the reset value to the FADT-defined reset register.
9617AcpiDisableAllGpes - Disable all available GPEs.
9618AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
9619AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
9620AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
9621AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
9622AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
9623
9624Most of the public ACPI hardware-related interfaces have been moved to a
9625new
9626file, components/hardware/hwxface.c
9627
9628Enhanced the FADT parsing and low-level ACPI register access: The ACPI
9629register lengths within the FADT are now used, and the low level ACPI
9630register access no longer hardcodes the ACPI register lengths. Given that
9631there may be some risk in actually trusting the FADT register lengths, a
9632run-
9633time option was added to fall back to the default hardcoded lengths if
9634the
9635FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
9636option is set to true for now, and a warning is issued if a suspicious
9637FADT
9638register length is overridden with the default value.
9639
9640Fixed a reference count issue in NsRepairObject. This problem was
9641introduced
9642in version 20081031 as part of a fix to repair Buffer objects within
9643Packages. Lin Ming.
9644
9645Added semaphore support to the Linux/Unix application OS-services layer
9646(OSL). ACPICA BZ 448. Lin Ming.
9647
9648Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
9649will
9650be implemented in the OSL, or will binary semaphores be used instead.
9651
9652Example Code and Data Size: These are the sizes for the OS-independent
9653acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9654debug version of the code includes the debug output trace mechanism and
9655has a
9656much larger code and data size.
9657
9658  Previous Release:
9659    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9660    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9661  Current Release:
9662    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9663    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9664
96652) iASL Compiler/Disassembler and Tools:
9666
9667iASL: Completed the '-e' option to include additional ACPI tables in
9668order
9669to
9670aid with disassembly and External statement generation. ACPICA BZ 742.
9671Lin
9672Ming.
9673
9674iASL: Removed the "named object in while loop" error. The compiler cannot
9675determine how many times a loop will execute. ACPICA BZ 730.
9676
9677Disassembler: Implemented support for FADT revision 2 (MS extension).
9678ACPICA
9679BZ 743.
9680
9681Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
9682MCFG).
9683
9684----------------------------------------
968531 October 2008. Summary of changes for version 20081031:
9686
96871) ACPI CA Core Subsystem:
9688
9689Restructured the ACPICA header files into public/private. acpi.h now
9690includes
9691only the "public" acpica headers. All other acpica headers are "private"
9692and
9693should not be included by acpica users. One new file, accommon.h is used
9694to
9695include the commonly used private headers for acpica code generation.
9696Future
9697plans include moving all private headers to a new subdirectory.
9698
9699Implemented an automatic Buffer->String return value conversion for
9700predefined ACPI methods. For these methods (such as _BIF), added
9701automatic
9702conversion for return objects that are required to be a String, but a
9703Buffer
9704was found instead. This can happen when reading string battery data from
9705an
9706operation region, because it used to be difficult to convert the data
9707from
9708buffer to string from within the ASL. Ensures that the host OS is
9709provided
9710with a valid null-terminated string. Linux BZ 11822.
9711
9712Updated the FACS waking vector interfaces. Split
9713AcpiSetFirmwareWakingVector
9714into two: one for the 32-bit vector, another for the 64-bit vector. This
9715is
9716required because the host OS must setup the wake much differently for
9717each
9718vector (real vs. protected mode, etc.) and the interface itself should
9719not
9720be
9721deciding which vector to use. Also, eliminated the
9722GetFirmwareWakingVector
9723interface, as it served no purpose (only the firmware reads the vector,
9724OS
9725only writes the vector.) ACPICA BZ 731.
9726
9727Implemented a mechanism to escape infinite AML While() loops. Added a
9728loop
9729counter to force exit from AML While loops if the count becomes too
9730large.
9731This can occur in poorly written AML when the hardware does not respond
9732within a while loop and the loop does not implement a timeout. The
9733maximum
9734loop count is configurable. A new exception code is returned when a loop
9735is
9736broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
9737
9738Optimized the execution of AML While loops. Previously, a control state
9739object was allocated and freed for each execution of the loop. The
9740optimization is to simply reuse the control state for each iteration.
9741This
9742speeds up the raw loop execution time by about 5%.
9743
9744Enhanced the implicit return mechanism. For Windows compatibility, return
9745an
9746implicit integer of value zero for methods that contain no executable
9747code.
9748Such methods are seen in the field as stubs (presumably), and can cause
9749drivers to fail if they expect a return value. Lin Ming.
9750
9751Allow multiple backslashes as root prefixes in namepaths. In a fully
9752qualified namepath, allow multiple backslash prefixes. This can happen
9753(and
9754is seen in the field) because of the use of a double-backslash in strings
9755(since backslash is the escape character) causing confusion. ACPICA BZ
9756739
9757Lin Ming.
9758
9759Emit a warning if two different FACS or DSDT tables are discovered in the
9760FADT. Checks if there are two valid but different addresses for the FACS
9761and
9762DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
9763
9764Consolidated the method argument count validation code. Merged the code
9765that
9766validates control method argument counts into the predefined validation
9767module. Eliminates possible multiple warnings for incorrect argument
9768counts.
9769
9770Implemented ACPICA example code. Includes code for ACPICA initialization,
9771handler installation, and calling a control method. Available at
9772source/tools/examples.
9773
9774Added a global pointer for FACS table to simplify internal FACS access.
9775Use
9776the global pointer instead of using AcpiGetTableByIndex for each FACS
9777access.
9778This simplifies the code for the Global Lock and the Firmware Waking
9779Vector(s).
9780
9781Example Code and Data Size: These are the sizes for the OS-independent
9782acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9783debug version of the code includes the debug output trace mechanism and
9784has a
9785much larger code and data size.
9786
9787  Previous Release:
9788    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9789    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9790  Current Release:
9791    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9792    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9793
97942) iASL Compiler/Disassembler and Tools:
9795
9796iASL: Improved disassembly of external method calls. Added the -e option
9797to
9798allow the inclusion of additional ACPI tables to help with the
9799disassembly
9800of
9801method invocations and the generation of external declarations during the
9802disassembly. Certain external method invocations cannot be disassembled
9803properly without the actual declaration of the method. Use the -e option
9804to
9805include the table where the external method(s) are actually declared.
9806Most
9807useful for disassembling SSDTs that make method calls back to the master
9808DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
9809-d
9810-e dsdt.aml ssdt1.aml
9811
9812iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
9813problem where the use of an alias within a namepath would result in a not
9814found error or cause the compiler to fault. Also now allows forward
9815references from the Alias operator itself. ACPICA BZ 738.
9816
9817----------------------------------------
981826 September 2008. Summary of changes for version 20080926:
9819
98201) ACPI CA Core Subsystem:
9821
9822Designed and implemented a mechanism to validate predefined ACPI methods
9823and
9824objects. This code validates the predefined ACPI objects (objects whose
9825names
9826start with underscore) that appear in the namespace, at the time they are
9827evaluated. The argument count and the type of the returned object are
9828validated against the ACPI specification. The purpose of this validation
9829is
9830to detect problems with the BIOS-implemented predefined ACPI objects
9831before
9832the results are returned to the ACPI-related drivers. Future enhancements
9833may
9834include actual repair of incorrect return objects where possible. Two new
9835files are nspredef.c and acpredef.h.
9836
9837Fixed a fault in the AML parser if a memory allocation fails during the
9838Op
9839completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
9840
9841Fixed an issue with implicit return compatibility. This change improves
9842the
9843implicit return mechanism to be more compatible with the MS interpreter.
9844Lin
9845Ming, ACPICA BZ 349.
9846
9847Implemented support for zero-length buffer-to-string conversions. Allow
9848zero
9849length strings during interpreter buffer-to-string conversions. For
9850example,
9851during the ToDecimalString and ToHexString operators, as well as implicit
9852conversions. Fiodor Suietov, ACPICA BZ 585.
9853
9854Fixed two possible memory leaks in the error exit paths of
9855AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
9856are
9857similar in that they use a stack of state objects in order to eliminate
9858recursion. The stack must be fully unwound and deallocated if an error
9859occurs. Lin Ming. ACPICA BZ 383.
9860
9861Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
9862global
9863ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
9864Moore ACPICA BZ 442.
9865
9866Removed the obsolete version number in module headers. Removed the
9867"$Revision" number that appeared in each module header. This version
9868number
9869was useful under SourceSafe and CVS, but has no meaning under git. It is
9870not
9871only incorrect, it could also be misleading.
9872
9873Example Code and Data Size: These are the sizes for the OS-independent
9874acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9875debug version of the code includes the debug output trace mechanism and
9876has a
9877much larger code and data size.
9878
9879  Previous Release:
9880    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9881    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
9882  Current Release:
9883    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9884    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9885
9886----------------------------------------
988729 August 2008. Summary of changes for version 20080829:
9888
98891) ACPI CA Core Subsystem:
9890
9891Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
9892Reference. Changes include the elimination of cheating on the Object
9893field
9894for the DdbHandle subtype, addition of a reference class field to
9895differentiate the various reference types (instead of an AML opcode), and
9896the
9897cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
9898
9899Reduce an error to a warning for an incorrect method argument count.
9900Previously aborted with an error if too few arguments were passed to a
9901control method via the external ACPICA interface. Now issue a warning
9902instead
9903and continue. Handles the case where the method inadvertently declares
9904too
9905many arguments, but does not actually use the extra ones. Applies mainly
9906to
9907the predefined methods. Lin Ming. Linux BZ 11032.
9908
9909Disallow the evaluation of named object types with no intrinsic value.
9910Return
9911AE_TYPE for objects that have no value and therefore evaluation is
9912undefined:
9913Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
9914of
9915these types were allowed, but an exception would be generated at some
9916point
9917during the evaluation. Now, the error is generated up front.
9918
9919Fixed a possible memory leak in the AcpiNsGetExternalPathname function
9920(nsnames.c). Fixes a leak in the error exit path.
9921
9922Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
9923debug
9924levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
9925ACPI_EXCEPTION
9926interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
9927ACPI_LV_EVENTS.
9928
9929Removed obsolete and/or unused exception codes from the acexcep.h header.
9930There is the possibility that certain device drivers may be affected if
9931they
9932use any of these exceptions.
9933
9934The ACPICA documentation has been added to the public git source tree,
9935under
9936acpica/documents. Included are the ACPICA programmer reference, the iASL
9937compiler reference, and the changes.txt release logfile.
9938
9939Example Code and Data Size: These are the sizes for the OS-independent
9940acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9941debug version of the code includes the debug output trace mechanism and
9942has a
9943much larger code and data size.
9944
9945  Previous Release:
9946    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9947    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
9948  Current Release:
9949    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9950    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
9951
99522) iASL Compiler/Disassembler and Tools:
9953
9954Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
9955defines _SCP with 3 arguments. Previous versions defined it with only 1
9956argument. iASL now allows both definitions.
9957
9958iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
9959zero-
9960length subtables when disassembling ACPI tables. Also fixed a couple of
9961errors where a full 16-bit table type field was not extracted from the
9962input
9963properly.
9964
9965acpisrc: Improve comment counting mechanism for generating source code
9966statistics. Count first and last lines of multi-line comments as
9967whitespace,
9968not comment lines. Handle Linux legal header in addition to standard
9969acpica
9970header.
9971
9972----------------------------------------
9973
997429 July 2008. Summary of changes for version 20080729:
9975
99761) ACPI CA Core Subsystem:
9977
9978Fix a possible deadlock in the GPE dispatch. Remove call to
9979AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
9980attempt
9981to acquire the GPE lock but can deadlock since the GPE lock is already
9982held
9983at dispatch time. This code was introduced in version 20060831 as a
9984response
9985to Linux BZ 6881 and has since been removed from Linux.
9986
9987Add a function to dereference returned reference objects. Examines the
9988return
9989object from a call to AcpiEvaluateObject. Any Index or RefOf references
9990are
9991automatically dereferenced in an attempt to return something useful
9992(these
9993reference types cannot be converted into an external ACPI_OBJECT.)
9994Provides
9995MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
9996
9997x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
9998subtables for the MADT and one new subtable for the SRAT. Includes
9999disassembler and AcpiSrc support. Data from the Intel 64 Architecture
10000x2APIC
10001Specification, June 2008.
10002
10003Additional error checking for pathname utilities. Add error check after
10004all
10005calls to AcpiNsGetPathnameLength. Add status return from
10006AcpiNsBuildExternalPath and check after all calls. Add parameter
10007validation
10008to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
10009
10010Return status from the global init function AcpiUtGlobalInitialize. This
10011is
10012used by both the kernel subsystem and the utilities such as iASL
10013compiler.
10014The function could possibly fail when the caches are initialized. Yang
10015Yi.
10016
10017Add a function to decode reference object types to strings. Created for
10018improved error messages.
10019
10020Improve object conversion error messages. Better error messages during
10021object
10022conversion from internal to the external ACPI_OBJECT. Used for external
10023calls
10024to AcpiEvaluateObject.
10025
10026Example Code and Data Size: These are the sizes for the OS-independent
10027acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10028debug version of the code includes the debug output trace mechanism and
10029has a
10030much larger code and data size.
10031
10032  Previous Release:
10033    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
10034    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
10035  Current Release:
10036    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
10037    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
10038
100392) iASL Compiler/Disassembler and Tools:
10040
10041Debugger: fix a possible hang when evaluating non-methods. Fixes a
10042problem
10043introduced in version 20080701. If the object being evaluated (via
10044execute
10045command) is not a method, the debugger can hang while trying to obtain
10046non-
10047existent parameters.
10048
10049iASL: relax error for using reserved "_T_x" identifiers. These names can
10050appear in a disassembled ASL file if they were emitted by the original
10051compiler. Instead of issuing an error or warning and forcing the user to
10052manually change these names, issue a remark instead.
10053
10054iASL: error if named object created in while loop. Emit an error if any
10055named
10056object is created within a While loop. If allowed, this code will
10057generate
10058a
10059run-time error on the second iteration of the loop when an attempt is
10060made
10061to
10062create the same named object twice. ACPICA bugzilla 730.
10063
10064iASL: Support absolute pathnames for include files. Add support for
10065absolute
10066pathnames within the Include operator. previously, only relative
10067pathnames
10068were supported.
10069
10070iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
10071Descriptor.
10072The ACPI spec requires one interrupt minimum. BZ 423
10073
10074iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
10075Handles the case for the Interrupt Resource Descriptor where
10076the ResourceSource argument is omitted but ResourceSourceIndex
10077is present. Now leave room for the Index. BZ 426
10078
10079iASL: Prevent error message if CondRefOf target does not exist. Fixes
10080cases
10081where an error message is emitted if the target does not exist. BZ 516
10082
10083iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
10084(get ACPI tables on Windows). This was apparently broken in version
1008520070919.
10086
10087AcpiXtract: Handle EOF while extracting data. Correctly handle the case
10088where
10089the EOF happens immediately after the last table in the input file. Print
10090completion message. Previously, no message was displayed in this case.
10091
10092----------------------------------------
1009301 July 2008. Summary of changes for version 20080701:
10094
100950) Git source tree / acpica.org
10096
10097Fixed a problem where a git-clone from http would not transfer the entire
10098source tree.
10099
101001) ACPI CA Core Subsystem:
10101
10102Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
10103enable bit. Now performs a read-change-write of the enable register
10104instead
10105of simply writing out the cached enable mask. This will prevent
10106inadvertent
10107enabling of GPEs if a rogue GPE is received during initialization (before
10108GPE
10109handlers are installed.)
10110
10111Implemented a copy for dynamically loaded tables. Previously, dynamically
10112loaded tables were simply mapped - but on some machines this memory is
10113corrupted after suspend. Now copy the table to a local buffer. For the
10114OpRegion case, added checksum verify. Use the table length from the table
10115header, not the region length. For the Buffer case, use the table length
10116also. Dennis Noordsij, Bob Moore. BZ 10734
10117
10118Fixed a problem where the same ACPI table could not be dynamically loaded
10119and
10120unloaded more than once. Without this change, a table cannot be loaded
10121again
10122once it has been loaded/unloaded one time. The current mechanism does not
10123unregister a table upon an unload. During a load, if the same table is
10124found,
10125this no longer returns an exception. BZ 722
10126
10127Fixed a problem where the wrong descriptor length was calculated for the
10128EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
10129EndTag
10130are calculated as 12 bytes long, but the actual length in the internal
10131descriptor is 16 because of the round-up to 8 on the 64-bit build.
10132Reported
10133by Linn Crosetto. BZ 728
10134
10135Fixed a possible memory leak in the Unload operator. The DdbHandle
10136returned
10137by Load() did not have its reference count decremented during unload,
10138leading
10139to a memory leak. Lin Ming. BZ 727
10140
10141Fixed a possible memory leak when deleting thermal/processor objects. Any
10142associated notify handlers (and objects) were not being deleted. Fiodor
10143Suietov. BZ 506
10144
10145Fixed the ordering of the ASCII names in the global mutex table to match
10146the
10147actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
10148only.
10149Vegard Nossum. BZ 726
10150
10151Enhanced the AcpiGetObjectInfo interface to return the number of required
10152arguments if the object is a control method. Added this call to the
10153debugger
10154so the proper number of default arguments are passed to a method. This
10155prevents a warning when executing methods from AcpiExec.
10156
10157Added a check for an invalid handle in AcpiGetObjectInfo. Return
10158AE_BAD_PARAMETER if input handle is invalid. BZ 474
10159
10160Fixed an extraneous warning from exconfig.c on the 64-bit build.
10161
10162Example Code and Data Size: These are the sizes for the OS-independent
10163acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10164debug version of the code includes the debug output trace mechanism and
10165has a
10166much larger code and data size.
10167
10168  Previous Release:
10169    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10170    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10171  Current Release:
10172    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
10173    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
10174
101752) iASL Compiler/Disassembler and Tools:
10176
10177iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
10178resource descriptor names.
10179
10180iASL: Detect invalid ASCII characters in input (windows version). Removed
10181the
10182"-CF" flag from the flex compile, enables correct detection of non-ASCII
10183characters in the input. BZ 441
10184
10185iASL: Eliminate warning when result of LoadTable is not used. Eliminate
10186the
10187"result of operation not used" warning when the DDB handle returned from
10188LoadTable is not used. The warning is not needed. BZ 590
10189
10190AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
10191method
10192to
10193pass address of table to the AML. Added option to disable OpRegion
10194simulation
10195to allow creation of an OpRegion with a real address that was passed to
10196_CFG.
10197All of this allows testing of the Load and Unload operators from
10198AcpiExec.
10199
10200Debugger: update tables command for unloaded tables. Handle unloaded
10201tables
10202and use the standard table header output routine.
10203
10204----------------------------------------
1020509 June 2008. Summary of changes for version 20080609:
10206
102071) ACPI CA Core Subsystem:
10208
10209Implemented a workaround for reversed _PRT entries. A significant number
10210of
10211BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
10212change dynamically detects and repairs this problem. Provides
10213compatibility
10214with MS ACPI. BZ 6859
10215
10216Simplified the internal ACPI hardware interfaces to eliminate the locking
10217flag parameter from Register Read/Write. Added a new external interface,
10218AcpiGetRegisterUnlocked.
10219
10220Fixed a problem where the invocation of a GPE control method could hang.
10221This
10222was a regression introduced in 20080514. The new method argument count
10223validation mechanism can enter an infinite loop when a GPE method is
10224dispatched. Problem fixed by removing the obsolete code that passed GPE
10225block
10226information to the notify handler via the control method parameter
10227pointer.
10228
10229Fixed a problem where the _SST execution status was incorrectly returned
10230to
10231the caller of AcpiEnterSleepStatePrep. This was a regression introduced
10232in
1023320080514. _SST is optional and a NOT_FOUND exception should never be
10234returned. BZ 716
10235
10236Fixed a problem where a deleted object could be accessed from within the
10237AML
10238parser. This was a regression introduced in version 20080123 as a fix for
10239the
10240Unload operator. Lin Ming. BZ 10669
10241
10242Cleaned up the debug operand dump mechanism. Eliminated unnecessary
10243operands
10244and eliminated the use of a negative index in a loop. Operands are now
10245displayed in the correct order, not backwards. This also fixes a
10246regression
10247introduced in 20080514 on 64-bit systems where the elimination of
10248ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
10249715
10250
10251Fixed a possible memory leak in EvPciConfigRegionSetup where the error
10252exit
10253path did not delete a locally allocated structure.
10254
10255Updated definitions for the DMAR and SRAT tables to synchronize with the
10256current specifications. Includes disassembler support.
10257
10258Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
10259loop termination value was used. Loop terminated on iteration early,
10260missing
10261one mutex. Linn Crosetto
10262
10263Example Code and Data Size: These are the sizes for the OS-independent
10264acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10265debug version of the code includes the debug output trace mechanism and
10266has a
10267much larger code and data size.
10268
10269  Previous Release:
10270    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10271    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10272  Current Release:
10273    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10274    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10275
102762) iASL Compiler/Disassembler and Tools:
10277
10278Disassembler: Implemented support for EisaId() within _CID objects. Now
10279disassemble integer _CID objects back to EisaId invocations, including
10280multiple integers within _CID packages. Includes single-step support for
10281debugger also.
10282
10283Disassembler: Added support for DMAR and SRAT table definition changes.
10284
10285----------------------------------------
1028614 May 2008. Summary of changes for version 20080514:
10287
102881) ACPI CA Core Subsystem:
10289
10290Fixed a problem where GPEs were enabled too early during the ACPICA
10291initialization. This could lead to "handler not installed" errors on some
10292machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
10293This
10294ensures that all operation regions and devices throughout the namespace
10295have
10296been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
10297
10298Implemented a change to the enter sleep code. Moved execution of the _GTS
10299method to just before setting sleep enable bit. The execution was moved
10300from
10301AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
10302immediately before the SLP_EN bit is set, as per the ACPI specification.
10303Luming Yu, BZ 1653.
10304
10305Implemented a fix to disable unknown GPEs (2nd version). Now always
10306disable
10307the GPE, even if ACPICA thinks that that it is already disabled. It is
10308possible that the AML or some other code has enabled the GPE unbeknownst
10309to
10310the ACPICA code.
10311
10312Fixed a problem with the Field operator where zero-length fields would
10313return
10314an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
10315ASL
10316field declarations in Field(), BankField(), and IndexField(). BZ 10606.
10317
10318Implemented a fix for the Load operator, now load the table at the
10319namespace
10320root. This reverts a change introduced in version 20071019. The table is
10321now
10322loaded at the namespace root even though this goes against the ACPI
10323specification. This provides compatibility with other ACPI
10324implementations.
10325The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
10326Ming.
10327
10328Fixed a problem where ACPICA would not Load() tables with unusual
10329signatures.
10330Now ignore ACPI table signature for Load() operator. Only "SSDT" is
10331acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
10332Therefore, signature validation is worthless. Apparently MS ACPI accepts
10333such
10334signatures, ACPICA must be compatible. BZ 10454.
10335
10336Fixed a possible negative array index in AcpiUtValidateException. Added
10337NULL
10338fields to the exception string arrays to eliminate a -1 subtraction on
10339the
10340SubStatus field.
10341
10342Updated the debug tracking macros to reduce overall code and data size.
10343Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
10344instead of pointers to static strings. Jan Beulich and Bob Moore.
10345
10346Implemented argument count checking in control method invocation via
10347AcpiEvaluateObject. Now emit an error if too few arguments, warning if
10348too
10349many. This applies only to extern programmatic control method execution,
10350not
10351method-to-method calls within the AML. Lin Ming.
10352
10353Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
10354no
10355longer needed, especially with the removal of 16-bit support. It was
10356replaced
10357mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
10358bit
10359on
1036032/64-bit platforms is required.
10361
10362Added the C const qualifier for appropriate string constants -- mostly
10363MODULE_NAME and printf format strings. Jan Beulich.
10364
10365Example Code and Data Size: These are the sizes for the OS-independent
10366acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10367debug version of the code includes the debug output trace mechanism and
10368has a
10369much larger code and data size.
10370
10371  Previous Release:
10372    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10373    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10374  Current Release:
10375    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10376    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10377
103782) iASL Compiler/Disassembler and Tools:
10379
10380Implemented ACPI table revision ID validation in the disassembler. Zero
10381is
10382always invalid. For DSDTs, the ID controls the interpreter integer width.
103831
10384means 32-bit and this is unusual. 2 or greater is 64-bit.
10385
10386----------------------------------------
1038721 March 2008. Summary of changes for version 20080321:
10388
103891) ACPI CA Core Subsystem:
10390
10391Implemented an additional change to the GPE support in order to suppress
10392spurious or stray GPEs. The AcpiEvDisableGpe function will now
10393permanently
10394disable incoming GPEs that are neither enabled nor disabled -- meaning
10395that
10396the GPE is unknown to the system. This should prevent future interrupt
10397floods
10398from that GPE. BZ 6217 (Zhang Rui)
10399
10400Fixed a problem where NULL package elements were not returned to the
10401AcpiEvaluateObject interface correctly. The element was simply ignored
10402instead of returning a NULL ACPI_OBJECT package element, potentially
10403causing
10404a buffer overflow and/or confusing the caller who expected a fixed number
10405of
10406elements. BZ 10132 (Lin Ming, Bob Moore)
10407
10408Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
10409Dword,
10410Qword), Field, BankField, and IndexField operators when invoked from
10411inside
10412an executing control method. In this case, these operators created
10413namespace
10414nodes that were incorrectly left marked as permanent nodes instead of
10415temporary nodes. This could cause a problem if there is race condition
10416between an exiting control method and a running namespace walk. (Reported
10417by
10418Linn Crosetto)
10419
10420Fixed a problem where the CreateField and CreateXXXField operators would
10421incorrectly allow duplicate names (the name of the field) with no
10422exception
10423generated.
10424
10425Implemented several changes for Notify handling. Added support for new
10426Notify
10427values (ACPI 2.0+) and improved the Notify debug output. Notify on
10428PowerResource objects is no longer allowed, as per the ACPI
10429specification.
10430(Bob Moore, Zhang Rui)
10431
10432All Reference Objects returned via the AcpiEvaluateObject interface are
10433now
10434marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
10435for
10436NULL objects - either NULL package elements or unresolved named
10437references.
10438
10439Fixed a problem where an extraneous debug message was produced for
10440package
10441objects (when debugging enabled). The message "Package List length larger
10442than NumElements count" is now produced in the correct case, and is now
10443an
10444error message rather than a debug message. Added a debug message for the
10445opposite case, where NumElements is larger than the Package List (the
10446package
10447will be padded out with NULL elements as per the ACPI spec.)
10448
10449Implemented several improvements for the output of the ASL "Debug" object
10450to
10451clarify and keep all data for a given object on one output line.
10452
10453Fixed two size calculation issues with the variable-length Start
10454Dependent
10455resource descriptor.
10456
10457Example Code and Data Size: These are the sizes for the OS-independent
10458acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10459debug version of the code includes the debug output trace mechanism and
10460has
10461a much larger code and data size.
10462
10463  Previous Release:
10464    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10465    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10466  Current Release:
10467    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10468    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10469
104702) iASL Compiler/Disassembler and Tools:
10471
10472Fixed a problem with the use of the Switch operator where execution of
10473the
10474containing method by multiple concurrent threads could cause an
10475AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
10476actual Switch opcode, it must be simulated with local named temporary
10477variables and if/else pairs. The solution chosen was to mark any method
10478that
10479uses Switch as Serialized, thus preventing multiple thread entries. BZ
10480469.
10481
10482----------------------------------------
1048313 February 2008. Summary of changes for version 20080213:
10484
104851) ACPI CA Core Subsystem:
10486
10487Implemented another MS compatibility design change for GPE/Notify
10488handling.
10489GPEs are now cleared/enabled asynchronously to allow all pending notifies
10490to
10491complete first. It is expected that the OSL will queue the enable request
10492behind all pending notify requests (may require changes to the local host
10493OSL
10494in AcpiOsExecute). Alexey Starikovskiy.
10495
10496Fixed a problem where buffer and package objects passed as arguments to a
10497control method via the external AcpiEvaluateObject interface could cause
10498an
10499AE_AML_INTERNAL exception depending on the order and type of operators
10500executed by the target control method.
10501
10502Fixed a problem where resource descriptor size optimization could cause a
10503problem when a _CRS resource template is passed to a _SRS method. The
10504_SRS
10505resource template must use the same descriptors (with the same size) as
10506returned from _CRS. This change affects the following resource
10507descriptors:
10508IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
105099487)
10510
10511Fixed a problem where a CopyObject to RegionField, BankField, and
10512IndexField
10513objects did not perform an implicit conversion as it should. These types
10514must
10515retain their initial type permanently as per the ACPI specification.
10516However,
10517a CopyObject to all other object types should not perform an implicit
10518conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
10519
10520Fixed a problem with the AcpiGetDevices interface where the mechanism to
10521match device CIDs did not examine the entire list of available CIDs, but
10522instead aborted on the first non-matching CID. Andrew Patterson.
10523
10524Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
10525was
10526inadvertently changed to return a 16-bit value instead of a 32-bit value,
10527truncating the upper dword of a 64-bit value. This macro is only used to
10528display debug output, so no incorrect calculations were made. Also,
10529reimplemented the macro so that a 64-bit shift is not performed by
10530inefficient compilers.
10531
10532Added missing va_end statements that should correspond with each va_start
10533statement.
10534
10535Example Code and Data Size: These are the sizes for the OS-independent
10536acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10537debug version of the code includes the debug output trace mechanism and
10538has
10539a much larger code and data size.
10540
10541  Previous Release:
10542    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10543    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10544  Current Release:
10545    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10546    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10547
105482) iASL Compiler/Disassembler and Tools:
10549
10550Implemented full disassembler support for the following new ACPI tables:
10551BERT, EINJ, and ERST. Implemented partial disassembler support for the
10552complicated HEST table. These tables support the Windows Hardware Error
10553Architecture (WHEA).
10554
10555----------------------------------------
1055623 January 2008. Summary of changes for version 20080123:
10557
105581) ACPI CA Core Subsystem:
10559
10560Added the 2008 copyright to all module headers and signons. This affects
10561virtually every file in the ACPICA core subsystem, the iASL compiler, and
10562the tools/utilities.
10563
10564Fixed a problem with the SizeOf operator when used with Package and
10565Buffer
10566objects. These objects have deferred execution for some arguments, and
10567the
10568execution is now completed before the SizeOf is executed. This problem
10569caused
10570unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
10571BZ
105729558
10573
10574Implemented an enhancement to the interpreter "slack mode". In the
10575absence
10576of
10577an explicit return or an implicitly returned object from the last
10578executed
10579opcode, a control method will now implicitly return an integer of value 0
10580for
10581Microsoft compatibility. (Lin Ming) BZ 392
10582
10583Fixed a problem with the Load operator where an exception was not
10584returned
10585in
10586the case where the table is already loaded. (Lin Ming) BZ 463
10587
10588Implemented support for the use of DDBHandles as an Indexed Reference, as
10589per
10590the ACPI spec. (Lin Ming) BZ 486
10591
10592Implemented support for UserTerm (Method invocation) for the Unload
10593operator
10594as per the ACPI spec. (Lin Ming) BZ 580
10595
10596Fixed a problem with the LoadTable operator where the OemId and
10597OemTableId
10598input strings could cause unexpected failures if they were shorter than
10599the
10600maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
10601
10602Implemented support for UserTerm (Method invocation) for the Unload
10603operator
10604as per the ACPI spec. (Lin Ming) BZ 580
10605
10606Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
10607HEST,
10608IBFT, UEFI, WDAT. Disassembler support is forthcoming.
10609
10610Example Code and Data Size: These are the sizes for the OS-independent
10611acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10612debug version of the code includes the debug output trace mechanism and
10613has
10614a much larger code and data size.
10615
10616  Previous Release:
10617    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10618    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10619  Current Release:
10620    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10621    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10622
106232) iASL Compiler/Disassembler and Tools:
10624
10625Implemented support in the disassembler for checksum validation on
10626incoming
10627binary DSDTs and SSDTs. If incorrect, a message is displayed within the
10628table
10629header dump at the start of the disassembly.
10630
10631Implemented additional debugging information in the namespace listing
10632file
10633created during compilation. In addition to the namespace hierarchy, the
10634full
10635pathname to each namespace object is displayed.
10636
10637Fixed a problem with the disassembler where invalid ACPI tables could
10638cause
10639faults or infinite loops.
10640
10641Fixed an unexpected parse error when using the optional "parameter types"
10642list in a control method declaration. (Lin Ming) BZ 397
10643
10644Fixed a problem where two External declarations with the same name did
10645not
10646cause an error (Lin Ming) BZ 509
10647
10648Implemented support for full TermArgs (adding Argx, Localx and method
10649invocation) for the ParameterData parameter to the LoadTable operator.
10650(Lin
10651Ming) BZ 583,587
10652
10653----------------------------------------
1065419 December 2007. Summary of changes for version 20071219:
10655
106561) ACPI CA Core Subsystem:
10657
10658Implemented full support for deferred execution for the TermArg string
10659arguments for DataTableRegion. This enables forward references and full
10660operand resolution for the three string arguments. Similar to
10661OperationRegion
10662deferred argument execution.) Lin Ming. BZ 430
10663
10664Implemented full argument resolution support for the BankValue argument
10665to
10666BankField. Previously, only constants were supported, now any TermArg may
10667be
10668used. Lin Ming BZ 387, 393
10669
10670Fixed a problem with AcpiGetDevices where the search of a branch of the
10671device tree could be terminated prematurely. In accordance with the ACPI
10672specification, the search down the current branch is terminated if a
10673device
10674is both not present and not functional (instead of just not present.)
10675Yakui
10676Zhao.
10677
10678Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
10679if
10680the underlying AML code changed the GPE enable registers. Now, any
10681unknown
10682incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
10683disabled
10684instead of simply ignored. Rui Zhang.
10685
10686Fixed a problem with Index Fields where the Index register was
10687incorrectly
10688limited to a maximum of 32 bits. Now any size may be used.
10689
10690Fixed a couple memory leaks associated with "implicit return" objects
10691when
10692the AML Interpreter slack mode is enabled. Lin Ming BZ 349
10693
10694Example Code and Data Size: These are the sizes for the OS-independent
10695acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10696debug version of the code includes the debug output trace mechanism and
10697has
10698a much larger code and data size.
10699
10700  Previous Release:
10701    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10702    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10703  Current Release:
10704    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10705    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10706
10707----------------------------------------
1070814 November 2007. Summary of changes for version 20071114:
10709
107101) ACPI CA Core Subsystem:
10711
10712Implemented event counters for each of the Fixed Events, the ACPI SCI
10713(interrupt) itself, and control methods executed. Named
10714AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
10715These
10716should be useful for debugging and statistics.
10717
10718Implemented a new external interface, AcpiGetStatistics, to retrieve the
10719contents of the various event counters. Returns the current values for
10720AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
10721AcpiMethodCount. The interface can be expanded in the future if new
10722counters
10723are added. Device drivers should use this interface rather than access
10724the
10725counters directly.
10726
10727Fixed a problem with the FromBCD and ToBCD operators. With some
10728compilers,
10729the ShortDivide function worked incorrectly, causing problems with the
10730BCD
10731functions with large input values. A truncation from 64-bit to 32-bit
10732inadvertently occurred. Internal BZ 435. Lin Ming
10733
10734Fixed a problem with Index references passed as method arguments.
10735References
10736passed as arguments to control methods were dereferenced immediately
10737(before
10738control was passed to the called method). The references are now
10739correctly
10740passed directly to the called method. BZ 5389. Lin Ming
10741
10742Fixed a problem with CopyObject used in conjunction with the Index
10743operator.
10744The reference was incorrectly dereferenced before the copy. The reference
10745is
10746now correctly copied. BZ 5391. Lin Ming
10747
10748Fixed a problem with Control Method references within Package objects.
10749These
10750references are now correctly generated. This completes the package
10751construction overhaul that began in version 20071019.
10752
10753Example Code and Data Size: These are the sizes for the OS-independent
10754acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10755debug version of the code includes the debug output trace mechanism and
10756has
10757a much larger code and data size.
10758
10759  Previous Release:
10760    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10761    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10762  Current Release:
10763    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10764    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10765
10766
107672) iASL Compiler/Disassembler and Tools:
10768
10769The AcpiExec utility now installs handlers for all of the predefined
10770Operation Region types. New types supported are: PCI_Config, CMOS, and
10771PCIBARTarget.
10772
10773Fixed a problem with the 64-bit version of AcpiExec where the extended
10774(64-
10775bit) address fields for the DSDT and FACS within the FADT were not being
10776used, causing truncation of the upper 32-bits of these addresses. Lin
10777Ming
10778and Bob Moore
10779
10780----------------------------------------
1078119 October 2007. Summary of changes for version 20071019:
10782
107831) ACPI CA Core Subsystem:
10784
10785Fixed a problem with the Alias operator when the target of the alias is a
10786named ASL operator that opens a new scope -- Scope, Device,
10787PowerResource,
10788Processor, and ThermalZone. In these cases, any children of the original
10789operator could not be accessed via the alias, potentially causing
10790unexpected
10791AE_NOT_FOUND exceptions. (BZ 9067)
10792
10793Fixed a problem with the Package operator where all named references were
10794created as object references and left otherwise unresolved. According to
10795the
10796ACPI specification, a Package can only contain Data Objects or references
10797to
10798control methods. The implication is that named references to Data Objects
10799(Integer, Buffer, String, Package, BufferField, Field) should be resolved
10800immediately upon package creation. This is the approach taken with this
10801change. References to all other named objects (Methods, Devices, Scopes,
10802etc.) are all now properly created as reference objects. (BZ 5328)
10803
10804Reverted a change to Notify handling that was introduced in version
1080520070508. This version changed the Notify handling from asynchronous to
10806fully synchronous (Device driver Notify handling with respect to the
10807Notify
10808ASL operator). It was found that this change caused more problems than it
10809solved and was removed by most users.
10810
10811Fixed a problem with the Increment and Decrement operators where the type
10812of
10813the target object could be unexpectedly and incorrectly changed. (BZ 353)
10814Lin Ming.
10815
10816Fixed a problem with the Load and LoadTable operators where the table
10817location within the namespace was ignored. Instead, the table was always
10818loaded into the root or current scope. Lin Ming.
10819
10820Fixed a problem with the Load operator when loading a table from a buffer
10821object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
10822
10823Fixed a problem with the Debug object where a store of a DdbHandle
10824reference
10825object to the Debug object could cause a fault.
10826
10827Added a table checksum verification for the Load operator, in the case
10828where
10829the load is from a buffer. (BZ 578).
10830
10831Implemented additional parameter validation for the LoadTable operator.
10832The
10833length of the input strings SignatureString, OemIdString, and OemTableId
10834are
10835now checked for maximum lengths. (BZ 582) Lin Ming.
10836
10837Example Code and Data Size: These are the sizes for the OS-independent
10838acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10839debug version of the code includes the debug output trace mechanism and
10840has
10841a much larger code and data size.
10842
10843  Previous Release:
10844    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10845    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10846  Current Release:
10847    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10848    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10849
10850
108512) iASL Compiler/Disassembler:
10852
10853Fixed a problem where if a single file was specified and the file did not
10854exist, no error message was emitted. (Introduced with wildcard support in
10855version 20070917.)
10856
10857----------------------------------------
1085819 September 2007. Summary of changes for version 20070919:
10859
108601) ACPI CA Core Subsystem:
10861
10862Designed and implemented new external interfaces to install and remove
10863handlers for ACPI table-related events. Current events that are defined
10864are
10865LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
10866they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
10867AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
10868
10869Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
10870(acpi_serialized option on Linux) could cause some systems to hang during
10871initialization. (Bob Moore) BZ 8171
10872
10873Fixed a problem where objects of certain types (Device, ThermalZone,
10874Processor, PowerResource) can be not found if they are declared and
10875referenced from within the same control method (Lin Ming) BZ 341
10876
10877Example Code and Data Size: These are the sizes for the OS-independent
10878acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10879debug version of the code includes the debug output trace mechanism and
10880has
10881a much larger code and data size.
10882
10883  Previous Release:
10884    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
10885    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
10886  Current Release:
10887    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10888    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10889
10890
108912) iASL Compiler/Disassembler:
10892
10893Implemented support to allow multiple files to be compiled/disassembled
10894in
10895a
10896single invocation. This includes command line wildcard support for both
10897the
10898Windows and Unix versions of the compiler. This feature simplifies the
10899disassembly and compilation of multiple ACPI tables in a single
10900directory.
10901
10902----------------------------------------
1090308 May 2007. Summary of changes for version 20070508:
10904
109051) ACPI CA Core Subsystem:
10906
10907Implemented a Microsoft compatibility design change for the handling of
10908the
10909Notify AML operator. Previously, notify handlers were dispatched and
10910executed completely asynchronously in a deferred thread. The new design
10911still executes the notify handlers in a different thread, but the
10912original
10913thread that executed the Notify() now waits at a synchronization point
10914for
10915the notify handler to complete. Some machines depend on a synchronous
10916Notify
10917operator in order to operate correctly.
10918
10919Implemented support to allow Package objects to be passed as method
10920arguments to the external AcpiEvaluateObject interface. Previously, this
10921would return the AE_NOT_IMPLEMENTED exception. This feature had not been
10922implemented since there were no reserved control methods that required it
10923until recently.
10924
10925Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
10926that
10927contained invalid non-zero values in reserved fields could cause later
10928failures because these fields have meaning in later revisions of the
10929FADT.
10930For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
10931fields
10932are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
10933
10934Fixed a problem where the Global Lock handle was not properly updated if
10935a
10936thread that acquired the Global Lock via executing AML code then
10937attempted
10938to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
10939Joe
10940Liu.
10941
10942Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
10943could be corrupted if the interrupt being removed was at the head of the
10944list. Reported by Linn Crosetto.
10945
10946Example Code and Data Size: These are the sizes for the OS-independent
10947acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10948debug version of the code includes the debug output trace mechanism and
10949has
10950a much larger code and data size.
10951
10952  Previous Release:
10953    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10954    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
10955  Current Release:
10956    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
10957    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
10958
10959----------------------------------------
1096020 March 2007. Summary of changes for version 20070320:
10961
109621) ACPI CA Core Subsystem:
10963
10964Implemented a change to the order of interpretation and evaluation of AML
10965operand objects within the AML interpreter. The interpreter now evaluates
10966operands in the order that they appear in the AML stream (and the
10967corresponding ASL code), instead of in the reverse order (after the
10968entire
10969operand list has been parsed). The previous behavior caused several
10970subtle
10971incompatibilities with the Microsoft AML interpreter as well as being
10972somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
10973
10974Implemented a change to the ACPI Global Lock support. All interfaces to
10975the
10976global lock now allow the same thread to acquire the lock multiple times.
10977This affects the AcpiAcquireGlobalLock external interface to the global
10978lock
10979as well as the internal use of the global lock to support AML fields -- a
10980control method that is holding the global lock can now simultaneously
10981access
10982AML fields that require global lock protection. Previously, in both
10983cases,
10984this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
10985to
10986AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
10987Controller. There is no change to the behavior of the AML Acquire
10988operator,
10989as this can already be used to acquire a mutex multiple times by the same
10990thread. BZ 8066. With assistance from Alexey Starikovskiy.
10991
10992Fixed a problem where invalid objects could be referenced in the AML
10993Interpreter after error conditions. During operand evaluation, ensure
10994that
10995the internal "Return Object" field is cleared on error and only valid
10996pointers are stored there. Caused occasional access to deleted objects
10997that
10998resulted in "large reference count" warning messages. Valery Podrezov.
10999
11000Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
11001on
11002deeply nested control method invocations. BZ 7873, local BZ 487. Valery
11003Podrezov.
11004
11005Fixed an internal problem with the handling of result objects on the
11006interpreter result stack. BZ 7872. Valery Podrezov.
11007
11008Removed obsolete code that handled the case where AML_NAME_OP is the
11009target
11010of a reference (Reference.Opcode). This code was no longer necessary. BZ
110117874. Valery Podrezov.
11012
11013Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
11014was
11015a
11016remnant from the previously discontinued 16-bit support.
11017
11018Example Code and Data Size: These are the sizes for the OS-independent
11019acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11020debug version of the code includes the debug output trace mechanism and
11021has
11022a much larger code and data size.
11023
11024  Previous Release:
11025    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11026    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11027  Current Release:
11028    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11029    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
11030
11031----------------------------------------
1103226 January 2007. Summary of changes for version 20070126:
11033
110341) ACPI CA Core Subsystem:
11035
11036Added the 2007 copyright to all module headers and signons. This affects
11037virtually every file in the ACPICA core subsystem, the iASL compiler, and
11038the utilities.
11039
11040Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
11041during a table load. A bad pointer was passed in the case where the DSDT
11042is
11043overridden, causing a fault in this case.
11044
11045Example Code and Data Size: These are the sizes for the OS-independent
11046acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11047debug version of the code includes the debug output trace mechanism and
11048has
11049a much larger code and data size.
11050
11051  Previous Release:
11052    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11053    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11054  Current Release:
11055    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11056    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11057
11058----------------------------------------
1105915 December 2006. Summary of changes for version 20061215:
11060
110611) ACPI CA Core Subsystem:
11062
11063Support for 16-bit ACPICA has been completely removed since it is no
11064longer
11065necessary and it clutters the code. All 16-bit macros, types, and
11066conditional compiles have been removed, cleaning up and simplifying the
11067code
11068across the entire subsystem. DOS support is no longer needed since the
11069bootable Linux firmware kit is now available.
11070
11071The handler for the Global Lock is now removed during AcpiTerminate to
11072enable a clean subsystem restart, via the implementation of the
11073AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
11074HP)
11075
11076Implemented enhancements to the multithreading support within the
11077debugger
11078to enable improved multithreading debugging and evaluation of the
11079subsystem.
11080(Valery Podrezov)
11081
11082Debugger: Enhanced the Statistics/Memory command to emit the total
11083(maximum)
11084memory used during the execution, as well as the maximum memory consumed
11085by
11086each of the various object types. (Valery Podrezov)
11087
11088Example Code and Data Size: These are the sizes for the OS-independent
11089acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11090debug version of the code includes the debug output trace mechanism and
11091has
11092a much larger code and data size.
11093
11094  Previous Release:
11095    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
11096    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
11097  Current Release:
11098    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11099    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11100
11101
111022) iASL Compiler/Disassembler and Tools:
11103
11104AcpiExec: Implemented a new option (-m) to display full memory use
11105statistics upon subsystem/program termination. (Valery Podrezov)
11106
11107----------------------------------------
1110809 November 2006. Summary of changes for version 20061109:
11109
111101) ACPI CA Core Subsystem:
11111
11112Optimized the Load ASL operator in the case where the source operand is
11113an
11114operation region. Simply map the operation region memory, instead of
11115performing a bytewise read. (Region must be of type SystemMemory, see
11116below.)
11117
11118Fixed the Load ASL operator for the case where the source operand is a
11119region field. A buffer object is also allowed as the source operand. BZ
11120480
11121
11122Fixed a problem where the Load ASL operator allowed the source operand to
11123be
11124an operation region of any type. It is now restricted to regions of type
11125SystemMemory, as per the ACPI specification. BZ 481
11126
11127Additional cleanup and optimizations for the new Table Manager code.
11128
11129AcpiEnable will now fail if all of the required ACPI tables are not
11130loaded
11131(FADT, FACS, DSDT). BZ 477
11132
11133Added #pragma pack(8/4) to acobject.h to ensure that the structures in
11134this
11135header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
11136manually optimized to be aligned and will not work if it is byte-packed.
11137
11138Example Code and Data Size: These are the sizes for the OS-independent
11139acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11140debug version of the code includes the debug output trace mechanism and
11141has
11142a much larger code and data size.
11143
11144  Previous Release:
11145    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
11146    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11147  Current Release:
11148    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
11149    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
11150
11151
111522) iASL Compiler/Disassembler and Tools:
11153
11154Fixed a problem where the presence of the _OSI predefined control method
11155within complex expressions could cause an internal compiler error.
11156
11157AcpiExec: Implemented full region support for multiple address spaces.
11158SpaceId is now part of the REGION object. BZ 429
11159
11160----------------------------------------
1116111 October 2006. Summary of changes for version 20061011:
11162
111631) ACPI CA Core Subsystem:
11164
11165Completed an AML interpreter performance enhancement for control method
11166execution. Previously a 2-pass parse/execution, control methods are now
11167completely parsed and executed in a single pass. This improves overall
11168interpreter performance by ~25%, reduces code size, and reduces CPU stack
11169use. (Valery Podrezov + interpreter changes in version 20051202 that
11170eliminated namespace loading during the pass one parse.)
11171
11172Implemented _CID support for PCI Root Bridge detection. If the _HID does
11173not
11174match the predefined PCI Root Bridge IDs, the _CID list (if present) is
11175now
11176obtained and also checked for an ID match.
11177
11178Implemented additional support for the PCI _ADR execution: upsearch until
11179a
11180device scope is found before executing _ADR. This allows PCI_Config
11181operation regions to be declared locally within control methods
11182underneath
11183PCI device objects.
11184
11185Fixed a problem with a possible race condition between threads executing
11186AcpiWalkNamespace and the AML interpreter. This condition was removed by
11187modifying AcpiWalkNamespace to (by default) ignore all temporary
11188namespace
11189entries created during any concurrent control method execution. An
11190additional namespace race condition is known to exist between
11191AcpiWalkNamespace and the Load/Unload ASL operators and is still under
11192investigation.
11193
11194Restructured the AML ParseLoop function, breaking it into several
11195subfunctions in order to reduce CPU stack use and improve
11196maintainability.
11197(Mikhail Kouzmich)
11198
11199AcpiGetHandle: Fix for parameter validation to detect invalid
11200combinations
11201of prefix handle and pathname. BZ 478
11202
11203Example Code and Data Size: These are the sizes for the OS-independent
11204acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11205debug version of the code includes the debug output trace mechanism and
11206has
11207a much larger code and data size.
11208
11209  Previous Release:
11210    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11211    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11212  Current Release:
11213    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
11214    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11215
112162) iASL Compiler/Disassembler and Tools:
11217
11218Ported the -g option (get local ACPI tables) to the new ACPICA Table
11219Manager
11220to restore original behavior.
11221
11222----------------------------------------
1122327 September 2006. Summary of changes for version 20060927:
11224
112251) ACPI CA Core Subsystem:
11226
11227Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
11228These functions now use a spinlock for mutual exclusion and the interrupt
11229level indication flag is not needed.
11230
11231Fixed a problem with the Global Lock where the lock could appear to be
11232obtained before it is actually obtained. The global lock semaphore was
11233inadvertently created with one unit instead of zero units. (BZ 464)
11234Fiodor
11235Suietov.
11236
11237Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
11238during
11239a read from a buffer or region field. (BZ 458) Fiodor Suietov.
11240
11241Example Code and Data Size: These are the sizes for the OS-independent
11242acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11243debug version of the code includes the debug output trace mechanism and
11244has
11245a much larger code and data size.
11246
11247  Previous Release:
11248    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11249    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11250  Current Release:
11251    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11252    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11253
11254
112552) iASL Compiler/Disassembler and Tools:
11256
11257Fixed a compilation problem with the pre-defined Resource Descriptor
11258field
11259names where an "object does not exist" error could be incorrectly
11260generated
11261if the parent ResourceTemplate pathname places the template within a
11262different namespace scope than the current scope. (BZ 7212)
11263
11264Fixed a problem where the compiler could hang after syntax errors
11265detected
11266in an ElseIf construct. (BZ 453)
11267
11268Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
11269operator. An incorrect output filename was produced when this parameter
11270was
11271a null string (""). Now, the original input filename is used as the AML
11272output filename, with an ".aml" extension.
11273
11274Implemented a generic batch command mode for the AcpiExec utility
11275(execute
11276any AML debugger command) (Valery Podrezov).
11277
11278----------------------------------------
1127912 September 2006. Summary of changes for version 20060912:
11280
112811) ACPI CA Core Subsystem:
11282
11283Enhanced the implementation of the "serialized mode" of the interpreter
11284(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
11285specified, instead of creating a serialization semaphore per control
11286method,
11287the interpreter lock is simply no longer released before a blocking
11288operation during control method execution. This effectively makes the AML
11289Interpreter single-threaded. The overhead of a semaphore per-method is
11290eliminated.
11291
11292Fixed a regression where an error was no longer emitted if a control
11293method
11294attempts to create 2 objects of the same name. This once again returns
11295AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
11296that
11297will dynamically serialize the control method to possible prevent future
11298errors. (BZ 440)
11299
11300Integrated a fix for a problem with PCI Express HID detection in the PCI
11301Config Space setup procedure. (BZ 7145)
11302
11303Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
11304AcpiHwInitialize function - the FADT registers are now validated when the
11305table is loaded.
11306
11307Added two new warnings during FADT verification - 1) if the FADT is
11308larger
11309than the largest known FADT version, and 2) if there is a mismatch
11310between
11311a
1131232-bit block address and the 64-bit X counterpart (when both are non-
11313zero.)
11314
11315Example Code and Data Size: These are the sizes for the OS-independent
11316acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11317debug version of the code includes the debug output trace mechanism and
11318has
11319a much larger code and data size.
11320
11321  Previous Release:
11322    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11323    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11324  Current Release:
11325    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11326    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11327
11328
113292) iASL Compiler/Disassembler and Tools:
11330
11331Fixed a problem with the implementation of the Switch() operator where
11332the
11333temporary variable was declared too close to the actual Switch, instead
11334of
11335at method level. This could cause a problem if the Switch() operator is
11336within a while loop, causing an error on the second iteration. (BZ 460)
11337
11338Disassembler - fix for error emitted for unknown type for target of scope
11339operator. Now, ignore it and continue.
11340
11341Disassembly of an FADT now verifies the input FADT and reports any errors
11342found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
11343
11344Disassembly of raw data buffers with byte initialization data now
11345prefixes
11346each output line with the current buffer offset.
11347
11348Disassembly of ASF! table now includes all variable-length data fields at
11349the end of some of the subtables.
11350
11351The disassembler now emits a comment if a buffer appears to be a
11352ResourceTemplate, but cannot be disassembled as such because the EndTag
11353does
11354not appear at the very end of the buffer.
11355
11356AcpiExec - Added the "-t" command line option to enable the serialized
11357mode
11358of the AML interpreter.
11359
11360----------------------------------------
1136131 August 2006. Summary of changes for version 20060831:
11362
113631) ACPI CA Core Subsystem:
11364
11365Miscellaneous fixes for the Table Manager:
11366- Correctly initialize internal common FADT for all 64-bit "X" fields
11367- Fixed a couple table mapping issues during table load
11368- Fixed a couple alignment issues for IA64
11369- Initialize input array to zero in AcpiInitializeTables
11370- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
11371AcpiGetTableByIndex
11372
11373Change for GPE support: when a "wake" GPE is received, all wake GPEs are
11374now
11375immediately disabled to prevent the waking GPE from firing again and to
11376prevent other wake GPEs from interrupting the wake process.
11377
11378Added the AcpiGpeCount global that tracks the number of processed GPEs,
11379to
11380be used for debugging systems with a large number of ACPI interrupts.
11381
11382Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
11383both the ACPICA headers and the disassembler.
11384
11385Example Code and Data Size: These are the sizes for the OS-independent
11386acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11387debug version of the code includes the debug output trace mechanism and
11388has
11389a much larger code and data size.
11390
11391  Previous Release:
11392    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11393    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11394  Current Release:
11395    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11396    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11397
11398
113992) iASL Compiler/Disassembler and Tools:
11400
11401Disassembler support for the DMAR ACPI table.
11402
11403----------------------------------------
1140423 August 2006. Summary of changes for version 20060823:
11405
114061) ACPI CA Core Subsystem:
11407
11408The Table Manager component has been completely redesigned and
11409reimplemented. The new design is much simpler, and reduces the overall
11410code
11411and data size of the kernel-resident ACPICA by approximately 5%. Also, it
11412is
11413now possible to obtain the ACPI tables very early during kernel
11414initialization, even before dynamic memory management is initialized.
11415(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
11416
11417Obsolete ACPICA interfaces:
11418
11419- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
11420init
11421time).
11422- AcpiLoadTable: Not needed.
11423- AcpiUnloadTable: Not needed.
11424
11425New ACPICA interfaces:
11426
11427- AcpiInitializeTables: Must be called before the table manager can be
11428used.
11429- AcpiReallocateRootTable: Used to transfer the root table to dynamically
11430allocated memory after it becomes available.
11431- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
11432tables
11433in the RSDT/XSDT.
11434
11435Other ACPICA changes:
11436
11437- AcpiGetTableHeader returns the actual mapped table header, not a copy.
11438Use
11439AcpiOsUnmapMemory to free this mapping.
11440- AcpiGetTable returns the actual mapped table. The mapping is managed
11441internally and must not be deleted by the caller. Use of this interface
11442causes no additional dynamic memory allocation.
11443- AcpiFindRootPointer: Support for physical addressing has been
11444eliminated,
11445it appeared to be unused.
11446- The interface to AcpiOsMapMemory has changed to be consistent with the
11447other allocation interfaces.
11448- The interface to AcpiOsGetRootPointer has changed to eliminate
11449unnecessary
11450parameters.
11451- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
1145264-
11453bit platforms. Was previously 64 bits on all platforms.
11454- The interface to the ACPI Global Lock acquire/release macros have
11455changed
11456slightly since ACPICA no longer keeps a local copy of the FACS with a
11457constructed pointer to the actual global lock.
11458
11459Porting to the new table manager:
11460
11461- AcpiInitializeTables: Must be called once, and can be called anytime
11462during the OS initialization process. It allows the host to specify an
11463area
11464of memory to be used to store the internal version of the RSDT/XSDT (root
11465table). This allows the host to access ACPI tables before memory
11466management
11467is initialized and running.
11468- AcpiReallocateRootTable: Can be called after memory management is
11469running
11470to copy the root table to a dynamically allocated array, freeing up the
11471scratch memory specified in the call to AcpiInitializeTables.
11472- AcpiSubsystemInitialize: This existing interface is independent of the
11473Table Manager, and does not have to be called before the Table Manager
11474can
11475be used, it only must be called before the rest of ACPICA can be used.
11476- ACPI Tables: Some changes have been made to the names and structure of
11477the
11478actbl.h and actbl1.h header files and may require changes to existing
11479code.
11480For example, bitfields have been completely removed because of their lack
11481of
11482portability across C compilers.
11483- Update interfaces to the Global Lock acquire/release macros if local
11484versions are used. (see acwin.h)
11485
11486Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
11487
11488New files: tbfind.c
11489
11490Example Code and Data Size: These are the sizes for the OS-independent
11491acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11492debug version of the code includes the debug output trace mechanism and
11493has
11494a much larger code and data size.
11495
11496  Previous Release:
11497    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11498    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11499  Current Release:
11500    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11501    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11502
11503
115042) iASL Compiler/Disassembler and Tools:
11505
11506No changes for this release.
11507
11508----------------------------------------
1150921 July 2006. Summary of changes for version 20060721:
11510
115111) ACPI CA Core Subsystem:
11512
11513The full source code for the ASL test suite used to validate the iASL
11514compiler and the ACPICA core subsystem is being released with the ACPICA
11515source for the first time. The source is contained in a separate package
11516and
11517consists of over 1100 files that exercise all ASL/AML operators. The
11518package
11519should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
11520Fiodor
11521Suietov)
11522
11523Completed a new design and implementation for support of the ACPI Global
11524Lock. On the OS side, the global lock is now treated as a standard AML
11525mutex. Previously, multiple OS threads could "acquire" the global lock
11526simultaneously. However, this could cause the BIOS to be starved out of
11527the
11528lock - especially in cases such as the Embedded Controller driver where
11529there is a tight coupling between the OS and the BIOS.
11530
11531Implemented an optimization for the ACPI Global Lock interrupt mechanism.
11532The Global Lock interrupt handler no longer queues the execution of a
11533separate thread to signal the global lock semaphore. Instead, the
11534semaphore
11535is signaled directly from the interrupt handler.
11536
11537Implemented support within the AML interpreter for package objects that
11538contain a larger AML length (package list length) than the package
11539element
11540count. In this case, the length of the package is truncated to match the
11541package element count. Some BIOS code apparently modifies the package
11542length
11543on the fly, and this change supports this behavior. Provides
11544compatibility
11545with the MS AML interpreter. (With assistance from Fiodor Suietov)
11546
11547Implemented a temporary fix for the BankValue parameter of a Bank Field
11548to
11549support all constant values, now including the Zero and One opcodes.
11550Evaluation of this parameter must eventually be converted to a full
11551TermArg
11552evaluation. A not-implemented error is now returned (temporarily) for
11553non-
11554constant values for this parameter.
11555
11556Fixed problem reports (Fiodor Suietov) integrated:
11557- Fix for premature object deletion after CopyObject on Operation Region
11558(BZ
11559350)
11560
11561Example Code and Data Size: These are the sizes for the OS-independent
11562acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11563debug version of the code includes the debug output trace mechanism and
11564has
11565a much larger code and data size.
11566
11567  Previous Release:
11568    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
11569    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
11570  Current Release:
11571    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11572    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11573
11574
115752) iASL Compiler/Disassembler and Tools:
11576
11577No changes for this release.
11578
11579----------------------------------------
1158007 July 2006. Summary of changes for version 20060707:
11581
115821) ACPI CA Core Subsystem:
11583
11584Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
11585that do not allow the initialization of address pointers within packed
11586structures - even though the hardware itself may support misaligned
11587transfers. Some of the debug data structures are packed by default to
11588minimize size.
11589
11590Added an error message for the case where AcpiOsGetThreadId() returns
11591zero.
11592A non-zero value is required by the core ACPICA code to ensure the proper
11593operation of AML mutexes and recursive control methods.
11594
11595The DSDT is now the only ACPI table that determines whether the AML
11596interpreter is in 32-bit or 64-bit mode. Not really a functional change,
11597but
11598the hooks for per-table 32/64 switching have been removed from the code.
11599A
11600clarification to the ACPI specification is forthcoming in ACPI 3.0B.
11601
11602Fixed a possible leak of an OwnerID in the error path of
11603AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
11604deletion to a single place in AcpiTbUninstallTable to correct possible
11605leaks
11606when using the AcpiTbDeleteTablesByType interface (with assistance from
11607Lance Ortiz.)
11608
11609Fixed a problem with Serialized control methods where the semaphore
11610associated with the method could be over-signaled after multiple method
11611invocations.
11612
11613Fixed two issues with the locking of the internal namespace data
11614structure.
11615Both the Unload() operator and AcpiUnloadTable interface now lock the
11616namespace during the namespace deletion associated with the table unload
11617(with assistance from Linn Crosetto.)
11618
11619Fixed problem reports (Valery Podrezov) integrated:
11620- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
11621
11622Fixed problem reports (Fiodor Suietov) integrated:
11623- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
11624- On Address Space handler deletion, needless deactivation call (BZ 374)
11625- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
11626375)
11627- Possible memory leak, Notify sub-objects of Processor, Power,
11628ThermalZone
11629(BZ 376)
11630- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
11631- Minimum Length of RSDT should be validated (BZ 379)
11632- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
11633Handler (BZ (380)
11634- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
11635loaded
11636(BZ 381)
11637
11638Example Code and Data Size: These are the sizes for the OS-independent
11639acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11640debug version of the code includes the debug output trace mechanism and
11641has
11642a much larger code and data size.
11643
11644  Previous Release:
11645    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11646    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11647  Current Release:
11648    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11649    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11650
11651
116522) iASL Compiler/Disassembler and Tools:
11653
11654Fixed problem reports:
11655Compiler segfault when ASL contains a long (>1024) String declaration (BZ
11656436)
11657
11658----------------------------------------
1165923 June 2006. Summary of changes for version 20060623:
11660
116611) ACPI CA Core Subsystem:
11662
11663Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
11664allows the type to be customized to the host OS for improved efficiency
11665(since a spinlock is usually a very small object.)
11666
11667Implemented support for "ignored" bits in the ACPI registers. According
11668to
11669the ACPI specification, these bits should be preserved when writing the
11670registers via a read/modify/write cycle. There are 3 bits preserved in
11671this
11672manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
11673
11674Implemented the initial deployment of new OSL mutex interfaces. Since
11675some
11676host operating systems have separate mutex and semaphore objects, this
11677feature was requested. The base code now uses mutexes (and the new mutex
11678interfaces) wherever a binary semaphore was used previously. However, for
11679the current release, the mutex interfaces are defined as macros to map
11680them
11681to the existing semaphore interfaces. Therefore, no OSL changes are
11682required
11683at this time. (See acpiosxf.h)
11684
11685Fixed several problems with the support for the control method SyncLevel
11686parameter. The SyncLevel now works according to the ACPI specification
11687and
11688in concert with the Mutex SyncLevel parameter, since the current
11689SyncLevel
11690is a property of the executing thread. Mutual exclusion for control
11691methods
11692is now implemented with a mutex instead of a semaphore.
11693
11694Fixed three instances of the use of the C shift operator in the bitfield
11695support code (exfldio.c) to avoid the use of a shift value larger than
11696the
11697target data width. The behavior of C compilers is undefined in this case
11698and
11699can cause unpredictable results, and therefore the case must be detected
11700and
11701avoided. (Fiodor Suietov)
11702
11703Added an info message whenever an SSDT or OEM table is loaded dynamically
11704via the Load() or LoadTable() ASL operators. This should improve
11705debugging
11706capability since it will show exactly what tables have been loaded
11707(beyond
11708the tables present in the RSDT/XSDT.)
11709
11710Example Code and Data Size: These are the sizes for the OS-independent
11711acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11712debug version of the code includes the debug output trace mechanism and
11713has
11714a much larger code and data size.
11715
11716  Previous Release:
11717    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11718    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11719  Current Release:
11720    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11721    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11722
11723
117242) iASL Compiler/Disassembler and Tools:
11725
11726No changes for this release.
11727
11728----------------------------------------
1172908 June 2006. Summary of changes for version 20060608:
11730
117311) ACPI CA Core Subsystem:
11732
11733Converted the locking mutex used for the ACPI hardware to a spinlock.
11734This
11735change should eliminate all problems caused by attempting to acquire a
11736semaphore at interrupt level, and it means that all ACPICA external
11737interfaces that directly access the ACPI hardware can be safely called
11738from
11739interrupt level. OSL code that implements the semaphore interfaces should
11740be
11741able to eliminate any workarounds for being called at interrupt level.
11742
11743Fixed a regression introduced in 20060526 where the ACPI device
11744initialization could be prematurely aborted with an AE_NOT_FOUND if a
11745device
11746did not have an optional _INI method.
11747
11748Fixed an IndexField issue where a write to the Data Register should be
11749limited in size to the AccessSize (width) of the IndexField itself. (BZ
11750433,
11751Fiodor Suietov)
11752
11753Fixed problem reports (Valery Podrezov) integrated:
11754- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
11755
11756Fixed problem reports (Fiodor Suietov) integrated:
11757- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
11758
11759Removed four global mutexes that were obsolete and were no longer being
11760used.
11761
11762Example Code and Data Size: These are the sizes for the OS-independent
11763acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11764debug version of the code includes the debug output trace mechanism and
11765has
11766a much larger code and data size.
11767
11768  Previous Release:
11769    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11770    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11771  Current Release:
11772    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11773    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11774
11775
117762) iASL Compiler/Disassembler and Tools:
11777
11778Fixed a fault when using -g option (get tables from registry) on Windows
11779machines.
11780
11781Fixed problem reports integrated:
11782- Generate error if CreateField NumBits parameter is zero. (BZ 405)
11783- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
11784Suietov)
11785- Global table revision override (-r) is ignored (BZ 413)
11786
11787----------------------------------------
1178826 May 2006. Summary of changes for version 20060526:
11789
117901) ACPI CA Core Subsystem:
11791
11792Restructured, flattened, and simplified the internal interfaces for
11793namespace object evaluation - resulting in smaller code, less CPU stack
11794use,
11795and fewer interfaces. (With assistance from Mikhail Kouzmich)
11796
11797Fixed a problem with the CopyObject operator where the first parameter
11798was
11799not typed correctly for the parser, interpreter, compiler, and
11800disassembler.
11801Caused various errors and unexpected behavior.
11802
11803Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
11804produced incorrect results with some C compilers. Since the behavior of C
11805compilers when the shift value is larger than the datatype width is
11806apparently not well defined, the interpreter now detects this condition
11807and
11808simply returns zero as expected in all such cases. (BZ 395)
11809
11810Fixed problem reports (Valery Podrezov) integrated:
11811- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
11812- Allow interpreter to handle nested method declarations (BZ 5361)
11813
11814Fixed problem reports (Fiodor Suietov) integrated:
11815- AcpiTerminate doesn't free debug memory allocation list objects (BZ
11816355)
11817- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
11818356)
11819- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
11820- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
11821- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
11822- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
11823- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
11824- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
11825- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
11826365)
11827- Status of the Global Initialization Handler call not used (BZ 366)
11828- Incorrect object parameter to Global Initialization Handler (BZ 367)
11829
11830Example Code and Data Size: These are the sizes for the OS-independent
11831acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11832debug version of the code includes the debug output trace mechanism and
11833has
11834a much larger code and data size.
11835
11836  Previous Release:
11837    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11838    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11839  Current Release:
11840    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11841    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11842
11843
118442) iASL Compiler/Disassembler and Tools:
11845
11846Modified the parser to allow the names IO, DMA, and IRQ to be used as
11847namespace identifiers with no collision with existing resource descriptor
11848macro names. This provides compatibility with other ASL compilers and is
11849most useful for disassembly/recompilation of existing tables without
11850parse
11851errors. (With assistance from Thomas Renninger)
11852
11853Disassembler: fixed an incorrect disassembly problem with the
11854DataTableRegion and CopyObject operators. Fixed a possible fault during
11855disassembly of some Alias operators.
11856
11857----------------------------------------
1185812 May 2006. Summary of changes for version 20060512:
11859
118601) ACPI CA Core Subsystem:
11861
11862Replaced the AcpiOsQueueForExecution interface with a new interface named
11863AcpiOsExecute. The major difference is that the new interface does not
11864have
11865a Priority parameter, this appeared to be useless and has been replaced
11866by
11867a
11868Type parameter. The Type tells the host what type of execution is being
11869requested, such as global lock handler, notify handler, GPE handler, etc.
11870This allows the host to queue and execute the request as appropriate for
11871the
11872request type, possibly using different work queues and different
11873priorities
11874for the various request types. This enables fixes for multithreading
11875deadlock problems such as BZ #5534, and will require changes to all
11876existing
11877OS interface layers. (Alexey Starikovskiy and Bob Moore)
11878
11879Fixed a possible memory leak associated with the support for the so-
11880called
11881"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
11882Suietov)
11883
11884Fixed a problem with the Load() operator where a table load from an
11885operation region could overwrite an internal table buffer by up to 7
11886bytes
11887and cause alignment faults on IPF systems. (With assistance from Luming
11888Yu)
11889
11890Example Code and Data Size: These are the sizes for the OS-independent
11891acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11892debug version of the code includes the debug output trace mechanism and
11893has
11894a much larger code and data size.
11895
11896  Previous Release:
11897    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
11898    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
11899  Current Release:
11900    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11901    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11902
11903
11904
119052) iASL Compiler/Disassembler and Tools:
11906
11907Disassembler: Implemented support to cross reference the internal
11908namespace
11909and automatically generate ASL External() statements for symbols not
11910defined
11911within the current table being disassembled. This will simplify the
11912disassembly and recompilation of interdependent tables such as SSDTs
11913since
11914these statements will no longer have to be added manually.
11915
11916Disassembler: Implemented experimental support to automatically detect
11917invocations of external control methods and generate appropriate
11918External()
11919statements. This is problematic because the AML cannot be correctly
11920parsed
11921until the number of arguments for each control method is known.
11922Currently,
11923standalone method invocations and invocations as the source operand of a
11924Store() statement are supported.
11925
11926Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
11927LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
11928LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
11929more readable and likely closer to the original ASL source.
11930
11931----------------------------------------
1193221 April 2006. Summary of changes for version 20060421:
11933
119341) ACPI CA Core Subsystem:
11935
11936Removed a device initialization optimization introduced in 20051216 where
11937the _STA method was not run unless an _INI was also present for the same
11938device. This optimization could cause problems because it could allow
11939_INI
11940methods to be run within a not-present device subtree. (If a not-present
11941device had no _INI, _STA would not be run, the not-present status would
11942not
11943be discovered, and the children of the device would be incorrectly
11944traversed.)
11945
11946Implemented a new _STA optimization where namespace subtrees that do not
11947contain _INI are identified and ignored during device initialization.
11948Selectively running _STA can significantly improve boot time on large
11949machines (with assistance from Len Brown.)
11950
11951Implemented support for the device initialization case where the returned
11952_STA flags indicate a device not-present but functioning. In this case,
11953_INI
11954is not run, but the device children are examined for presence, as per the
11955ACPI specification.
11956
11957Implemented an additional change to the IndexField support in order to
11958conform to MS behavior. The value written to the Index Register is not
11959simply a byte offset, it is a byte offset in units of the access width of
11960the parent Index Field. (Fiodor Suietov)
11961
11962Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
11963interface is called during the creation of all AML operation regions, and
11964allows the host OS to exert control over what addresses it will allow the
11965AML code to access. Operation Regions whose addresses are disallowed will
11966cause a runtime exception when they are actually accessed (will not
11967affect
11968or abort table loading.) See oswinxf or osunixxf for an example
11969implementation.
11970
11971Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
11972interface allows the host OS to match the various "optional"
11973interface/behavior strings for the _OSI predefined control method as
11974appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
11975for an example implementation.
11976
11977Restructured and corrected various problems in the exception handling
11978code
11979paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
11980(with assistance from Takayoshi Kochi.)
11981
11982Modified the Linux source converter to ignore quoted string literals
11983while
11984converting identifiers from mixed to lower case. This will correct
11985problems
11986with the disassembler and other areas where such strings must not be
11987modified.
11988
11989The ACPI_FUNCTION_* macros no longer require quotes around the function
11990name. This allows the Linux source converter to convert the names, now
11991that
11992the converter ignores quoted strings.
11993
11994Example Code and Data Size: These are the sizes for the OS-independent
11995acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11996debug version of the code includes the debug output trace mechanism and
11997has
11998a much larger code and data size.
11999
12000  Previous Release:
12001
12002    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
12003    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
12004  Current Release:
12005    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
12006    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
12007
12008
120092) iASL Compiler/Disassembler and Tools:
12010
12011Implemented 3 new warnings for iASL, and implemented multiple warning
12012levels
12013(w2 flag).
12014
120151) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
12016not
12017WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
12018check for the possible timeout, a warning is issued.
12019
120202) Useless operators: If an ASL operator does not specify an optional
12021target
12022operand and it also does not use the function return value from the
12023operator, a warning is issued since the operator effectively does
12024nothing.
12025
120263) Unreferenced objects: If a namespace object is created, but never
12027referenced, a warning is issued. This is a warning level 2 since there
12028are
12029cases where this is ok, such as when a secondary table is loaded that
12030uses
12031the unreferenced objects. Even so, care is taken to only flag objects
12032that
12033don't look like they will ever be used. For example, the reserved methods
12034(starting with an underscore) are usually not referenced because it is
12035expected that the OS will invoke them.
12036
12037----------------------------------------
1203831 March 2006. Summary of changes for version 20060331:
12039
120401) ACPI CA Core Subsystem:
12041
12042Implemented header file support for the following additional ACPI tables:
12043ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
12044support,
12045all current and known ACPI tables are now defined in the ACPICA headers
12046and
12047are available for use by device drivers and other software.
12048
12049Implemented support to allow tables that contain ACPI names with invalid
12050characters to be loaded. Previously, this would cause the table load to
12051fail, but since there are several known cases of such tables on existing
12052machines, this change was made to enable ACPI support for them. Also,
12053this
12054matches the behavior of the Microsoft ACPI implementation.
12055
12056Fixed a couple regressions introduced during the memory optimization in
12057the
1205820060317 release. The namespace node definition required additional
12059reorganization and an internal datatype that had been changed to 8-bit
12060was
12061restored to 32-bit. (Valery Podrezov)
12062
12063Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
12064could be passed through to AcpiOsReleaseObject which is unexpected. Such
12065null pointers are now trapped and ignored, matching the behavior of the
12066previous implementation before the deployment of AcpiOsReleaseObject.
12067(Valery Podrezov, Fiodor Suietov)
12068
12069Fixed a memory mapping leak during the deletion of a SystemMemory
12070operation
12071region where a cached memory mapping was not deleted. This became a
12072noticeable problem for operation regions that are defined within
12073frequently
12074used control methods. (Dana Meyers)
12075
12076Reorganized the ACPI table header files into two main files: one for the
12077ACPI tables consumed by the ACPICA core, and another for the
12078miscellaneous
12079ACPI tables that are consumed by the drivers and other software. The
12080various
12081FADT definitions were merged into one common section and three different
12082tables (ACPI 1.0, 1.0+, and 2.0)
12083
12084Example Code and Data Size: These are the sizes for the OS-independent
12085acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
12086debug version of the code includes the debug output trace mechanism and
12087has
12088a much larger code and data size.
12089
12090  Previous Release:
12091    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
12092    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
12093  Current Release:
12094    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
12095    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
12096
12097
120982) iASL Compiler/Disassembler and Tools:
12099
12100Disassembler: Implemented support to decode and format all non-AML ACPI
12101tables (tables other than DSDTs and SSDTs.) This includes the new tables
12102added to the ACPICA headers, therefore all current and known ACPI tables
12103are
12104supported.
12105
12106Disassembler: The change to allow ACPI names with invalid characters also
12107enables the disassembly of such tables. Invalid characters within names
12108are
12109changed to '*' to make the name printable; the iASL compiler will still
12110generate an error for such names, however, since this is an invalid ACPI
12111character.
12112
12113Implemented an option for AcpiXtract (-a) to extract all tables found in
12114the
12115input file. The default invocation extracts only the DSDTs and SSDTs.
12116
12117Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
12118makefile for the AcpiXtract utility.
12119
12120----------------------------------------
1212117 March 2006. Summary of changes for version 20060317:
12122
121231) ACPI CA Core Subsystem:
12124
12125Implemented the use of a cache object for all internal namespace nodes.
12126Since there are about 1000 static nodes in a typical system, this will
12127decrease memory use for cache implementations that minimize per-
12128allocation
12129overhead (such as a slab allocator.)
12130
12131Removed the reference count mechanism for internal namespace nodes, since
12132it
12133was deemed unnecessary. This reduces the size of each namespace node by
12134about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
12135case,
12136and 32 bytes for the 64-bit case.
12137
12138Optimized several internal data structures to reduce object size on 64-
12139bit
12140platforms by packing data within the 64-bit alignment. This includes the
12141frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
12142instances corresponding to the namespace objects.
12143
12144Added two new strings for the predefined _OSI method: "Windows 2001.1
12145SP1"
12146and "Windows 2006".
12147
12148Split the allocation tracking mechanism out to a separate file, from
12149utalloc.c to uttrack.c. This mechanism appears to be only useful for
12150application-level code. Kernels may wish to not include uttrack.c in
12151distributions.
12152
12153Removed all remnants of the obsolete ACPI_REPORT_* macros and the
12154associated
12155code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
12156macros.)
12157
12158Code and Data Size: These are the sizes for the acpica.lib produced by
12159the
12160Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12161ACPI
12162driver or OSPM code. The debug version of the code includes the debug
12163output
12164trace mechanism and has a much larger code and data size. Note that these
12165values will vary depending on the efficiency of the compiler and the
12166compiler options used during generation.
12167
12168  Previous Release:
12169    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12170    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12171  Current Release:
12172    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
12173    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
12174
12175
121762) iASL Compiler/Disassembler and Tools:
12177
12178Implemented an ANSI C version of the acpixtract utility. This version
12179will
12180automatically extract the DSDT and all SSDTs from the input acpidump text
12181file and dump the binary output to separate files. It can also display a
12182summary of the input file including the headers for each table found and
12183will extract any single ACPI table, with any signature. (See
12184source/tools/acpixtract)
12185
12186----------------------------------------
1218710 March 2006. Summary of changes for version 20060310:
12188
121891) ACPI CA Core Subsystem:
12190
12191Tagged all external interfaces to the subsystem with the new
12192ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
12193assist
12194kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
12195macro. The default definition is NULL.
12196
12197Added the ACPI_THREAD_ID type for the return value from
12198AcpiOsGetThreadId.
12199This allows the host to define this as necessary to simplify kernel
12200integration. The default definition is ACPI_NATIVE_UINT.
12201
12202Fixed two interpreter problems related to error processing, the deletion
12203of
12204objects, and placing invalid pointers onto the internal operator result
12205stack. BZ 6028, 6151 (Valery Podrezov)
12206
12207Increased the reference count threshold where a warning is emitted for
12208large
12209reference counts in order to eliminate unnecessary warnings on systems
12210with
12211large namespaces (especially 64-bit.) Increased the value from 0x400 to
122120x800.
12213
12214Due to universal disagreement as to the meaning of the 'c' in the
12215calloc()
12216function, the ACPI_MEM_CALLOCATE macro has been renamed to
12217ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
12218ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
12219ACPI_FREE.
12220
12221Code and Data Size: These are the sizes for the acpica.lib produced by
12222the
12223Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12224ACPI
12225driver or OSPM code. The debug version of the code includes the debug
12226output
12227trace mechanism and has a much larger code and data size. Note that these
12228values will vary depending on the efficiency of the compiler and the
12229compiler options used during generation.
12230
12231  Previous Release:
12232    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12233    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12234  Current Release:
12235    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12236    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12237
12238
122392) iASL Compiler/Disassembler:
12240
12241Disassembler: implemented support for symbolic resource descriptor
12242references. If a CreateXxxxField operator references a fixed offset
12243within
12244a
12245resource descriptor, a name is assigned to the descriptor and the offset
12246is
12247translated to the appropriate resource tag and pathname. The addition of
12248this support brings the disassembled code very close to the original ASL
12249source code and helps eliminate run-time errors when the disassembled
12250code
12251is modified (and recompiled) in such a way as to invalidate the original
12252fixed offsets.
12253
12254Implemented support for a Descriptor Name as the last parameter to the
12255ASL
12256Register() macro. This parameter was inadvertently left out of the ACPI
12257specification, and will be added for ACPI 3.0b.
12258
12259Fixed a problem where the use of the "_OSI" string (versus the full path
12260"\_OSI") caused an internal compiler error. ("No back ptr to op")
12261
12262Fixed a problem with the error message that occurs when an invalid string
12263is
12264used for a _HID object (such as one with an embedded asterisk:
12265"*PNP010A".)
12266The correct message is now displayed.
12267
12268----------------------------------------
1226917 February 2006. Summary of changes for version 20060217:
12270
122711) ACPI CA Core Subsystem:
12272
12273Implemented a change to the IndexField support to match the behavior of
12274the
12275Microsoft AML interpreter. The value written to the Index register is now
12276a
12277byte offset, no longer an index based upon the width of the Data
12278register.
12279This should fix IndexField problems seen on some machines where the Data
12280register is not exactly one byte wide. The ACPI specification will be
12281clarified on this point.
12282
12283Fixed a problem where several resource descriptor types could overrun the
12284internal descriptor buffer due to size miscalculation: VendorShort,
12285VendorLong, and Interrupt. This was noticed on IA64 machines, but could
12286affect all platforms.
12287
12288Fixed a problem where individual resource descriptors were misaligned
12289within
12290the internal buffer, causing alignment faults on IA64 platforms.
12291
12292Code and Data Size: These are the sizes for the acpica.lib produced by
12293the
12294Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12295ACPI
12296driver or OSPM code. The debug version of the code includes the debug
12297output
12298trace mechanism and has a much larger code and data size. Note that these
12299values will vary depending on the efficiency of the compiler and the
12300compiler options used during generation.
12301
12302  Previous Release:
12303    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12304    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12305  Current Release:
12306    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12307    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12308
12309
123102) iASL Compiler/Disassembler:
12311
12312Implemented support for new reserved names: _WDG and _WED are Microsoft
12313extensions for Windows Instrumentation Management, _TDL is a new ACPI-
12314defined method (Throttling Depth Limit.)
12315
12316Fixed a problem where a zero-length VendorShort or VendorLong resource
12317descriptor was incorrectly emitted as a descriptor of length one.
12318
12319----------------------------------------
1232010 February 2006. Summary of changes for version 20060210:
12321
123221) ACPI CA Core Subsystem:
12323
12324Removed a couple of extraneous ACPI_ERROR messages that appeared during
12325normal execution. These became apparent after the conversion from
12326ACPI_DEBUG_PRINT.
12327
12328Fixed a problem where the CreateField operator could hang if the BitIndex
12329or
12330NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
12331
12332Fixed a problem where a DeRefOf operation on a buffer object incorrectly
12333failed with an exception. This also fixes a couple of related RefOf and
12334DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
12335
12336Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
12337of
12338AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
12339BZ
123405480)
12341
12342Implemented a memory cleanup at the end of the execution of each
12343iteration
12344of an AML While() loop, preventing the accumulation of outstanding
12345objects.
12346(Valery Podrezov, BZ 5427)
12347
12348Eliminated a chunk of duplicate code in the object resolution code.
12349(Valery
12350Podrezov, BZ 5336)
12351
12352Fixed several warnings during the 64-bit code generation.
12353
12354The AcpiSrc source code conversion tool now inserts one line of
12355whitespace
12356after an if() statement that is followed immediately by a comment,
12357improving
12358readability of the Linux code.
12359
12360Code and Data Size: The current and previous library sizes for the core
12361subsystem are shown below. These are the code and data sizes for the
12362acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12363These
12364values do not include any ACPI driver or OSPM code. The debug version of
12365the
12366code includes the debug output trace mechanism and has a much larger code
12367and data size. Note that these values will vary depending on the
12368efficiency
12369of the compiler and the compiler options used during generation.
12370
12371  Previous Release:
12372    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12373    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12374  Current Release:
12375    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12376    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12377
12378
123792) iASL Compiler/Disassembler:
12380
12381Fixed a problem with the disassembly of a BankField operator with a
12382complex
12383expression for the BankValue parameter.
12384
12385----------------------------------------
1238627 January 2006. Summary of changes for version 20060127:
12387
123881) ACPI CA Core Subsystem:
12389
12390Implemented support in the Resource Manager to allow unresolved
12391namestring
12392references within resource package objects for the _PRT method. This
12393support
12394is in addition to the previously implemented unresolved reference support
12395within the AML parser. If the interpreter slack mode is enabled, these
12396unresolved references will be passed through to the caller as a NULL
12397package
12398entry.
12399
12400Implemented and deployed new macros and functions for error and warning
12401messages across the subsystem. These macros are simpler and generate less
12402code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
12403ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
12404macros remain defined to allow ACPI drivers time to migrate to the new
12405macros.
12406
12407Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
12408the
12409Acquire/Release Lock OSL interfaces.
12410
12411Fixed a problem where Alias ASL operators are sometimes not correctly
12412resolved, in both the interpreter and the iASL compiler.
12413
12414Fixed several problems with the implementation of the
12415ConcatenateResTemplate
12416ASL operator. As per the ACPI specification, zero length buffers are now
12417treated as a single EndTag. One-length buffers always cause a fatal
12418exception. Non-zero length buffers that do not end with a full 2-byte
12419EndTag
12420cause a fatal exception.
12421
12422Fixed a possible structure overwrite in the AcpiGetObjectInfo external
12423interface. (With assistance from Thomas Renninger)
12424
12425Code and Data Size: The current and previous library sizes for the core
12426subsystem are shown below. These are the code and data sizes for the
12427acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12428These
12429values do not include any ACPI driver or OSPM code. The debug version of
12430the
12431code includes the debug output trace mechanism and has a much larger code
12432and data size. Note that these values will vary depending on the
12433efficiency
12434of the compiler and the compiler options used during generation.
12435
12436  Previous Release:
12437    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12438    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12439  Current Release:
12440    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12441    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12442
12443
124442) iASL Compiler/Disassembler:
12445
12446Fixed an internal error that was generated for any forward references to
12447ASL
12448Alias objects.
12449
12450----------------------------------------
1245113 January 2006. Summary of changes for version 20060113:
12452
124531) ACPI CA Core Subsystem:
12454
12455Added 2006 copyright to all module headers and signons. This affects
12456virtually every file in the ACPICA core subsystem, iASL compiler, and the
12457utilities.
12458
12459Enhanced the ACPICA error reporting in order to simplify user migration
12460to
12461the non-debug version of ACPICA. Replaced all instances of the
12462ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
12463debug
12464levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
12465respectively. This preserves all error and warning messages in the non-
12466debug
12467version of the ACPICA code (this has been referred to as the "debug lite"
12468option.) Over 200 cases were converted to create a total of over 380
12469error/warning messages across the ACPICA code. This increases the code
12470and
12471data size of the default non-debug version of the code somewhat (about
1247213K),
12473but all error/warning reporting may be disabled if desired (and code
12474eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
12475configuration option. The size of the debug version of ACPICA remains
12476about
12477the same.
12478
12479Fixed a memory leak within the AML Debugger "Set" command. One object was
12480not properly deleted for every successful invocation of the command.
12481
12482Code and Data Size: The current and previous library sizes for the core
12483subsystem are shown below. These are the code and data sizes for the
12484acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12485These
12486values do not include any ACPI driver or OSPM code. The debug version of
12487the
12488code includes the debug output trace mechanism and has a much larger code
12489and data size. Note that these values will vary depending on the
12490efficiency
12491of the compiler and the compiler options used during generation.
12492
12493  Previous Release:
12494    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12495    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12496  Current Release:
12497    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12498    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12499
12500
125012) iASL Compiler/Disassembler:
12502
12503The compiler now officially supports the ACPI 3.0a specification that was
12504released on December 30, 2005. (Specification is available at
12505www.acpi.info)
12506
12507----------------------------------------
1250816 December 2005. Summary of changes for version 20051216:
12509
125101) ACPI CA Core Subsystem:
12511
12512Implemented optional support to allow unresolved names within ASL Package
12513objects. A null object is inserted in the package when a named reference
12514cannot be located in the current namespace. Enabled via the interpreter
12515slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
12516machines
12517that contain such code.
12518
12519Implemented an optimization to the initialization sequence that can
12520improve
12521boot time. During ACPI device initialization, the _STA method is now run
12522if
12523and only if the _INI method exists. The _STA method is used to determine
12524if
12525the device is present; An _INI can only be run if _STA returns present,
12526but
12527it is a waste of time to run the _STA method if the _INI does not exist.
12528(Prototype and assistance from Dong Wei)
12529
12530Implemented use of the C99 uintptr_t for the pointer casting macros if it
12531is
12532available in the current compiler. Otherwise, the default (void *) cast
12533is
12534used as before.
12535
12536Fixed some possible memory leaks found within the execution path of the
12537Break, Continue, If, and CreateField operators. (Valery Podrezov)
12538
12539Fixed a problem introduced in the 20051202 release where an exception is
12540generated during method execution if a control method attempts to declare
12541another method.
12542
12543Moved resource descriptor string constants that are used by both the AML
12544disassembler and AML debugger to the common utilities directory so that
12545these components are independent.
12546
12547Implemented support in the AcpiExec utility (-e switch) to globally
12548ignore
12549exceptions during control method execution (method is not aborted.)
12550
12551Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
12552generation.
12553
12554Code and Data Size: The current and previous library sizes for the core
12555subsystem are shown below. These are the code and data sizes for the
12556acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12557These
12558values do not include any ACPI driver or OSPM code. The debug version of
12559the
12560code includes the debug output trace mechanism and has a much larger code
12561and data size. Note that these values will vary depending on the
12562efficiency
12563of the compiler and the compiler options used during generation.
12564
12565  Previous Release:
12566    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12567    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12568  Current Release:
12569    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12570    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12571
12572
125732) iASL Compiler/Disassembler:
12574
12575Fixed a problem where a CPU stack overflow fault could occur if a
12576recursive
12577method call was made from within a Return statement.
12578
12579----------------------------------------
1258002 December 2005. Summary of changes for version 20051202:
12581
125821) ACPI CA Core Subsystem:
12583
12584Modified the parsing of control methods to no longer create namespace
12585objects during the first pass of the parse. Objects are now created only
12586during the execute phase, at the moment the namespace creation operator
12587is
12588encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
12589This
12590should eliminate ALREADY_EXISTS exceptions seen on some machines where
12591reentrant control methods are protected by an AML mutex. The mutex will
12592now
12593correctly block multiple threads from attempting to create the same
12594object
12595more than once.
12596
12597Increased the number of available Owner Ids for namespace object tracking
12598from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
12599on
12600some machines with a large number of ACPI tables (either static or
12601dynamic).
12602
12603Fixed a problem with the AcpiExec utility where a fault could occur when
12604the
12605-b switch (batch mode) is used.
12606
12607Enhanced the namespace dump routine to output the owner ID for each
12608namespace object.
12609
12610Code and Data Size: The current and previous library sizes for the core
12611subsystem are shown below. These are the code and data sizes for the
12612acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12613These
12614values do not include any ACPI driver or OSPM code. The debug version of
12615the
12616code includes the debug output trace mechanism and has a much larger code
12617and data size. Note that these values will vary depending on the
12618efficiency
12619of the compiler and the compiler options used during generation.
12620
12621  Previous Release:
12622    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12623    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12624  Current Release:
12625    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12626    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12627
12628
126292) iASL Compiler/Disassembler:
12630
12631Fixed a parse error during compilation of certain Switch/Case constructs.
12632To
12633simplify the parse, the grammar now allows for multiple Default
12634statements
12635and this error is now detected and flagged during the analysis phase.
12636
12637Disassembler: The disassembly now includes the contents of the original
12638table header within a comment at the start of the file. This includes the
12639name and version of the original ASL compiler.
12640
12641----------------------------------------
1264217 November 2005. Summary of changes for version 20051117:
12643
126441) ACPI CA Core Subsystem:
12645
12646Fixed a problem in the AML parser where the method thread count could be
12647decremented below zero if any errors occurred during the method parse
12648phase.
12649This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
12650machines.
12651This also fixed a related regression with the mechanism that detects and
12652corrects methods that cannot properly handle reentrancy (related to the
12653deployment of the new OwnerId mechanism.)
12654
12655Eliminated the pre-parsing of control methods (to detect errors) during
12656table load. Related to the problem above, this was causing unwind issues
12657if
12658any errors occurred during the parse, and it seemed to be overkill. A
12659table
12660load should not be aborted if there are problems with any single control
12661method, thus rendering this feature rather pointless.
12662
12663Fixed a problem with the new table-driven resource manager where an
12664internal
12665buffer overflow could occur for small resource templates.
12666
12667Implemented a new external interface, AcpiGetVendorResource. This
12668interface
12669will find and return a vendor-defined resource descriptor within a _CRS
12670or
12671_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
12672Helgaas.
12673
12674Removed the length limit (200) on string objects as per the upcoming ACPI
126753.0A specification. This affects the following areas of the interpreter:
126761)
12677any implicit conversion of a Buffer to a String, 2) a String object
12678result
12679of the ASL Concatenate operator, 3) the String object result of the ASL
12680ToString operator.
12681
12682Fixed a problem in the Windows OS interface layer (OSL) where a
12683WAIT_FOREVER
12684on a semaphore object would incorrectly timeout. This allows the
12685multithreading features of the AcpiExec utility to work properly under
12686Windows.
12687
12688Updated the Linux makefiles for the iASL compiler and AcpiExec to include
12689the recently added file named "utresrc.c".
12690
12691Code and Data Size: The current and previous library sizes for the core
12692subsystem are shown below. These are the code and data sizes for the
12693acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12694These
12695values do not include any ACPI driver or OSPM code. The debug version of
12696the
12697code includes the debug output trace mechanism and has a much larger code
12698and data size. Note that these values will vary depending on the
12699efficiency
12700of the compiler and the compiler options used during generation.
12701
12702  Previous Release:
12703    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12704    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12705  Current Release:
12706    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12707    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12708
12709
127102) iASL Compiler/Disassembler:
12711
12712Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
12713specification. For the iASL compiler, this means that string literals
12714within
12715the source ASL can be of any length.
12716
12717Enhanced the listing output to dump the AML code for resource descriptors
12718immediately after the ASL code for each descriptor, instead of in a block
12719at
12720the end of the entire resource template.
12721
12722Enhanced the compiler debug output to dump the entire original parse tree
12723constructed during the parse phase, before any transforms are applied to
12724the
12725tree. The transformed tree is dumped also.
12726
12727----------------------------------------
1272802 November 2005. Summary of changes for version 20051102:
12729
127301) ACPI CA Core Subsystem:
12731
12732Modified the subsystem initialization sequence to improve GPE support.
12733The
12734GPE initialization has been split into two parts in order to defer
12735execution
12736of the _PRW methods (Power Resources for Wake) until after the hardware
12737is
12738fully initialized and the SCI handler is installed. This allows the _PRW
12739methods to access fields protected by the Global Lock. This will fix
12740systems
12741where a NO_GLOBAL_LOCK exception has been seen during initialization.
12742
12743Converted the ACPI internal object disassemble and display code within
12744the
12745AML debugger to fully table-driven operation, reducing code size and
12746increasing maintainability.
12747
12748Fixed a regression with the ConcatenateResTemplate() ASL operator
12749introduced
12750in the 20051021 release.
12751
12752Implemented support for "local" internal ACPI object types within the
12753debugger "Object" command and the AcpiWalkNamespace external interfaces.
12754These local types include RegionFields, BankFields, IndexFields, Alias,
12755and
12756reference objects.
12757
12758Moved common AML resource handling code into a new file, "utresrc.c".
12759This
12760code is shared by both the Resource Manager and the AML Debugger.
12761
12762Code and Data Size: The current and previous library sizes for the core
12763subsystem are shown below. These are the code and data sizes for the
12764acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12765These
12766values do not include any ACPI driver or OSPM code. The debug version of
12767the
12768code includes the debug output trace mechanism and has a much larger code
12769and data size. Note that these values will vary depending on the
12770efficiency
12771of the compiler and the compiler options used during generation.
12772
12773  Previous Release:
12774    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12775    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12776  Current Release:
12777    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12778    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12779
12780
127812) iASL Compiler/Disassembler:
12782
12783Fixed a problem with very large initializer lists (more than 4000
12784elements)
12785for both Buffer and Package objects where the parse stack could overflow.
12786
12787Enhanced the pre-compile source code scan for non-ASCII characters to
12788ignore
12789characters within comment fields. The scan is now always performed and is
12790no
12791longer optional, detecting invalid characters within a source file
12792immediately rather than during the parse phase or later.
12793
12794Enhanced the ASL grammar definition to force early reductions on all
12795list-
12796style grammar elements so that the overall parse stack usage is greatly
12797reduced. This should improve performance and reduce the possibility of
12798parse
12799stack overflow.
12800
12801Eliminated all reduce/reduce conflicts in the iASL parser generation.
12802Also,
12803with the addition of a %expected statement, the compiler generates from
12804source with no warnings.
12805
12806Fixed a possible segment fault in the disassembler if the input filename
12807does not contain a "dot" extension (Thomas Renninger).
12808
12809----------------------------------------
1281021 October 2005. Summary of changes for version 20051021:
12811
128121) ACPI CA Core Subsystem:
12813
12814Implemented support for the EM64T and other x86-64 processors. This
12815essentially entails recognizing that these processors support non-aligned
12816memory transfers. Previously, all 64-bit processors were assumed to lack
12817hardware support for non-aligned transfers.
12818
12819Completed conversion of the Resource Manager to nearly full table-driven
12820operation. Specifically, the resource conversion code (convert AML to
12821internal format and the reverse) and the debug code to dump internal
12822resource descriptors are fully table-driven, reducing code and data size
12823and
12824improving maintainability.
12825
12826The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
12827word
12828on 64-bit processors instead of a fixed 32-bit word. (With assistance
12829from
12830Alexey Starikovskiy)
12831
12832Implemented support within the resource conversion code for the Type-
12833Specific byte within the various ACPI 3.0 *WordSpace macros.
12834
12835Fixed some issues within the resource conversion code for the type-
12836specific
12837flags for both Memory and I/O address resource descriptors. For Memory,
12838implemented support for the MTP and TTP flags. For I/O, split the TRS and
12839TTP flags into two separate fields.
12840
12841Code and Data Size: The current and previous library sizes for the core
12842subsystem are shown below. These are the code and data sizes for the
12843acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12844These
12845values do not include any ACPI driver or OSPM code. The debug version of
12846the
12847code includes the debug output trace mechanism and has a much larger code
12848and data size. Note that these values will vary depending on the
12849efficiency
12850of the compiler and the compiler options used during generation.
12851
12852  Previous Release:
12853    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12854    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12855  Current Release:
12856    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12857    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12858
12859
12860
128612) iASL Compiler/Disassembler:
12862
12863Relaxed a compiler restriction that disallowed a ResourceIndex byte if
12864the
12865corresponding ResourceSource string was not also present in a resource
12866descriptor declaration. This restriction caused problems with existing
12867AML/ASL code that includes the Index byte without the string. When such
12868AML
12869was disassembled, it could not be compiled without modification. Further,
12870the modified code created a resource template with a different size than
12871the
12872original, breaking code that used fixed offsets into the resource
12873template
12874buffer.
12875
12876Removed a recent feature of the disassembler to ignore a lone
12877ResourceIndex
12878byte. This byte is now emitted if present so that the exact AML can be
12879reproduced when the disassembled code is recompiled.
12880
12881Improved comments and text alignment for the resource descriptor code
12882emitted by the disassembler.
12883
12884Implemented disassembler support for the ACPI 3.0 AccessSize field within
12885a
12886Register() resource descriptor.
12887
12888----------------------------------------
1288930 September 2005. Summary of changes for version 20050930:
12890
128911) ACPI CA Core Subsystem:
12892
12893Completed a major overhaul of the Resource Manager code - specifically,
12894optimizations in the area of the AML/internal resource conversion code.
12895The
12896code has been optimized to simplify and eliminate duplicated code, CPU
12897stack
12898use has been decreased by optimizing function parameters and local
12899variables, and naming conventions across the manager have been
12900standardized
12901for clarity and ease of maintenance (this includes function, parameter,
12902variable, and struct/typedef names.) The update may force changes in some
12903driver code, depending on how resources are handled by the host OS.
12904
12905All Resource Manager dispatch and information tables have been moved to a
12906single location for clarity and ease of maintenance. One new file was
12907created, named "rsinfo.c".
12908
12909The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
12910guarantee that the argument is not evaluated twice, making them less
12911prone
12912to macro side-effects. However, since there exists the possibility of
12913additional stack use if a particular compiler cannot optimize them (such
12914as
12915in the debug generation case), the original macros are optionally
12916available.
12917Note that some invocations of the return_VALUE macro may now cause size
12918mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
12919to
12920eliminate these. (From Randy Dunlap)
12921
12922Implemented a new mechanism to enable debug tracing for individual
12923control
12924methods. A new external interface, AcpiDebugTrace, is provided to enable
12925this mechanism. The intent is to allow the host OS to easily enable and
12926disable tracing for problematic control methods. This interface can be
12927easily exposed to a user or debugger interface if desired. See the file
12928psxface.c for details.
12929
12930AcpiUtCallocate will now return a valid pointer if a length of zero is
12931specified - a length of one is used and a warning is issued. This matches
12932the behavior of AcpiUtAllocate.
12933
12934Code and Data Size: The current and previous library sizes for the core
12935subsystem are shown below. These are the code and data sizes for the
12936acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12937These
12938values do not include any ACPI driver or OSPM code. The debug version of
12939the
12940code includes the debug output trace mechanism and has a much larger code
12941and data size. Note that these values will vary depending on the
12942efficiency
12943of the compiler and the compiler options used during generation.
12944
12945  Previous Release:
12946    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
12947    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
12948  Current Release:
12949    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12950    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12951
12952
129532) iASL Compiler/Disassembler:
12954
12955A remark is issued if the effective compile-time length of a package or
12956buffer is zero. Previously, this was a warning.
12957
12958----------------------------------------
1295916 September 2005. Summary of changes for version 20050916:
12960
129611) ACPI CA Core Subsystem:
12962
12963Fixed a problem within the Resource Manager where support for the Generic
12964Register descriptor was not fully implemented. This descriptor is now
12965fully
12966recognized, parsed, disassembled, and displayed.
12967
12968Completely restructured the Resource Manager code to utilize table-driven
12969dispatch and lookup, eliminating many of the large switch() statements.
12970This
12971reduces overall subsystem code size and code complexity. Affects the
12972resource parsing and construction, disassembly, and debug dump output.
12973
12974Cleaned up and restructured the debug dump output for all resource
12975descriptors. Improved readability of the output and reduced code size.
12976
12977Fixed a problem where changes to internal data structures caused the
12978optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
12979
12980Code and Data Size: The current and previous library sizes for the core
12981subsystem are shown below. These are the code and data sizes for the
12982acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12983These
12984values do not include any ACPI driver or OSPM code. The debug version of
12985the
12986code includes the debug output trace mechanism and has a much larger code
12987and data size. Note that these values will vary depending on the
12988efficiency
12989of the compiler and the compiler options used during generation.
12990
12991  Previous Release:
12992    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
12993    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
12994  Current Release:
12995    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
12996    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
12997
12998
129992) iASL Compiler/Disassembler:
13000
13001Updated the disassembler to automatically insert an EndDependentFn()
13002macro
13003into the ASL stream if this macro is missing in the original AML code,
13004simplifying compilation of the resulting ASL module.
13005
13006Fixed a problem in the disassembler where a disassembled ResourceSource
13007string (within a large resource descriptor) was not surrounded by quotes
13008and
13009not followed by a comma, causing errors when the resulting ASL module was
13010compiled. Also, escape sequences within a ResourceSource string are now
13011handled correctly (especially "\\")
13012
13013----------------------------------------
1301402 September 2005. Summary of changes for version 20050902:
13015
130161) ACPI CA Core Subsystem:
13017
13018Fixed a problem with the internal Owner ID allocation and deallocation
13019mechanisms for control method execution and recursive method invocation.
13020This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
13021messages seen on some systems. Recursive method invocation depth is
13022currently limited to 255. (Alexey Starikovskiy)
13023
13024Completely eliminated all vestiges of support for the "module-level
13025executable code" until this support is fully implemented and debugged.
13026This
13027should eliminate the NO_RETURN_VALUE exceptions seen during table load on
13028some systems that invoke this support.
13029
13030Fixed a problem within the resource manager code where the transaction
13031flags
13032for a 64-bit address descriptor were handled incorrectly in the type-
13033specific flag byte.
13034
13035Consolidated duplicate code within the address descriptor resource
13036manager
13037code, reducing overall subsystem code size.
13038
13039Fixed a fault when using the AML debugger "disassemble" command to
13040disassemble individual control methods.
13041
13042Removed references to the "release_current" directory within the Unix
13043release package.
13044
13045Code and Data Size: The current and previous core subsystem library sizes
13046are shown below. These are the code and data sizes for the acpica.lib
13047produced by the Microsoft Visual C++ 6.0 compiler. These values do not
13048include any ACPI driver or OSPM code. The debug version of the code
13049includes
13050the debug output trace mechanism and has a much larger code and data
13051size.
13052Note that these values will vary depending on the efficiency of the
13053compiler
13054and the compiler options used during generation.
13055
13056  Previous Release:
13057    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13058    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
13059  Current Release:
13060    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
13061    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
13062
13063
130642) iASL Compiler/Disassembler:
13065
13066Implemented an error check for illegal duplicate values in the interrupt
13067and
13068dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
13069Interrupt().
13070
13071Implemented error checking for the Irq() and IrqNoFlags() macros to
13072detect
13073too many values in the interrupt list (16 max) and invalid values in the
13074list (range 0 - 15)
13075
13076The maximum length string literal within an ASL file is now restricted to
13077200 characters as per the ACPI specification.
13078
13079Fixed a fault when using the -ln option (generate namespace listing).
13080
13081Implemented an error check to determine if a DescriptorName within a
13082resource descriptor has already been used within the current scope.
13083
13084----------------------------------------
1308515 August 2005.  Summary of changes for version 20050815:
13086
130871) ACPI CA Core Subsystem:
13088
13089Implemented a full bytewise compare to determine if a table load request
13090is
13091attempting to load a duplicate table. The compare is performed if the
13092table
13093signatures and table lengths match. This will allow different tables with
13094the same OEM Table ID and revision to be loaded - probably against the
13095ACPI
13096specification, but discovered in the field nonetheless.
13097
13098Added the changes.txt logfile to each of the zipped release packages.
13099
13100Code and Data Size: Current and previous core subsystem library sizes are
13101shown below. These are the code and data sizes for the acpica.lib
13102produced
13103by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13104any ACPI driver or OSPM code. The debug version of the code includes the
13105debug output trace mechanism and has a much larger code and data size.
13106Note
13107that these values will vary depending on the efficiency of the compiler
13108and
13109the compiler options used during generation.
13110
13111  Previous Release:
13112    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13113    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
13114  Current Release:
13115    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13116    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
13117
13118
131192) iASL Compiler/Disassembler:
13120
13121Fixed a problem where incorrect AML code could be generated for Package
13122objects if optimization is disabled (via the -oa switch).
13123
13124Fixed a problem with where incorrect AML code is generated for variable-
13125length packages when the package length is not specified and the number
13126of
13127initializer values is greater than 255.
13128
13129
13130----------------------------------------
1313129 July 2005.  Summary of changes for version 20050729:
13132
131331) ACPI CA Core Subsystem:
13134
13135Implemented support to ignore an attempt to install/load a particular
13136ACPI
13137table more than once. Apparently there exists BIOS code that repeatedly
13138attempts to load the same SSDT upon certain events. With assistance from
13139Venkatesh Pallipadi.
13140
13141Restructured the main interface to the AML parser in order to correctly
13142handle all exceptional conditions. This will prevent leakage of the
13143OwnerId
13144resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
13145some
13146machines. With assistance from Alexey Starikovskiy.
13147
13148Support for "module level code" has been disabled in this version due to
13149a
13150number of issues that have appeared on various machines. The support can
13151be
13152enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
13153compilation. When the issues are fully resolved, the code will be enabled
13154by
13155default again.
13156
13157Modified the internal functions for debug print support to define the
13158FunctionName parameter as a (const char *) for compatibility with
13159compiler
13160built-in macros such as __FUNCTION__, etc.
13161
13162Linted the entire ACPICA source tree for both 32-bit and 64-bit.
13163
13164Implemented support to display an object count summary for the AML
13165Debugger
13166commands Object and Methods.
13167
13168Code and Data Size: Current and previous core subsystem library sizes are
13169shown below. These are the code and data sizes for the acpica.lib
13170produced
13171by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13172any ACPI driver or OSPM code. The debug version of the code includes the
13173debug output trace mechanism and has a much larger code and data size.
13174Note
13175that these values will vary depending on the efficiency of the compiler
13176and
13177the compiler options used during generation.
13178
13179  Previous Release:
13180    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13181    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13182  Current Release:
13183    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13184    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
13185
13186
131872) iASL Compiler/Disassembler:
13188
13189Fixed a regression that appeared in the 20050708 version of the compiler
13190where an error message was inadvertently emitted for invocations of the
13191_OSI
13192reserved control method.
13193
13194----------------------------------------
1319508 July 2005.  Summary of changes for version 20050708:
13196
131971) ACPI CA Core Subsystem:
13198
13199The use of the CPU stack in the debug version of the subsystem has been
13200considerably reduced. Previously, a debug structure was declared in every
13201function that used the debug macros. This structure has been removed in
13202favor of declaring the individual elements as parameters to the debug
13203functions. This reduces the cumulative stack use during nested execution
13204of
13205ACPI function calls at the cost of a small increase in the code size of
13206the
13207debug version of the subsystem. With assistance from Alexey Starikovskiy
13208and
13209Len Brown.
13210
13211Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
13212headers to define a macro that will return the current function name at
13213runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
13214by
13215the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
13216compiler-dependent header, the function name is saved on the CPU stack
13217(one
13218pointer per function.) This mechanism is used because apparently there
13219exists no standard ANSI-C defined macro that that returns the function
13220name.
13221
13222Redesigned and reimplemented the "Owner ID" mechanism used to track
13223namespace objects created/deleted by ACPI tables and control method
13224execution. A bitmap is now used to allocate and free the IDs, thus
13225solving
13226the wraparound problem present in the previous implementation. The size
13227of
13228the namespace node descriptor was reduced by 2 bytes as a result (Alexey
13229Starikovskiy).
13230
13231Removed the UINT32_BIT and UINT16_BIT types that were used for the
13232bitfield
13233flag definitions within the headers for the predefined ACPI tables. These
13234have been replaced by UINT8_BIT in order to increase the code portability
13235of
13236the subsystem. If the use of UINT8 remains a problem, we may be forced to
13237eliminate bitfields entirely because of a lack of portability.
13238
13239Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
13240This
13241is a frequently used function and this improvement increases the
13242performance
13243of the entire subsystem (Alexey Starikovskiy).
13244
13245Fixed several possible memory leaks and the inverse - premature object
13246deletion (Alexey Starikovskiy).
13247
13248Code and Data Size: Current and previous core subsystem library sizes are
13249shown below. These are the code and data sizes for the acpica.lib
13250produced
13251by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13252any ACPI driver or OSPM code. The debug version of the code includes the
13253debug output trace mechanism and has a much larger code and data size.
13254Note
13255that these values will vary depending on the efficiency of the compiler
13256and
13257the compiler options used during generation.
13258
13259  Previous Release:
13260    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13261    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13262  Current Release:
13263    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13264    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13265
13266----------------------------------------
1326724 June 2005.  Summary of changes for version 20050624:
13268
132691) ACPI CA Core Subsystem:
13270
13271Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
13272the host-defined cache object. This allows the OSL implementation to
13273define
13274and type this object in any manner desired, simplifying the OSL
13275implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
13276Linux, and should be defined in the OS-specific header file for other
13277operating systems as required.
13278
13279Changed the interface to AcpiOsAcquireObject to directly return the
13280requested object as the function return (instead of ACPI_STATUS.) This
13281change was made for performance reasons, since this is the purpose of the
13282interface in the first place. AcpiOsAcquireObject is now similar to the
13283AcpiOsAllocate interface.
13284
13285Implemented a new AML debugger command named Businfo. This command
13286displays
13287information about all devices that have an associate _PRT object. The
13288_ADR,
13289_HID, _UID, and _CID are displayed for these devices.
13290
13291Modified the initialization sequence in AcpiInitializeSubsystem to call
13292the
13293OSL interface AcpiOslInitialize first, before any local initialization.
13294This
13295change was required because the global initialization now calls OSL
13296interfaces.
13297
13298Enhanced the Dump command to display the entire contents of Package
13299objects
13300(including all sub-objects and their values.)
13301
13302Restructured the code base to split some files because of size and/or
13303because the code logically belonged in a separate file. New files are
13304listed
13305below. All makefiles and project files included in the ACPI CA release
13306have
13307been updated.
13308    utilities/utcache.c           /* Local cache interfaces */
13309    utilities/utmutex.c           /* Local mutex support */
13310    utilities/utstate.c           /* State object support */
13311    interpreter/parser/psloop.c   /* Main AML parse loop */
13312
13313Code and Data Size: Current and previous core subsystem library sizes are
13314shown below. These are the code and data sizes for the acpica.lib
13315produced
13316by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13317any ACPI driver or OSPM code. The debug version of the code includes the
13318debug output trace mechanism and has a much larger code and data size.
13319Note
13320that these values will vary depending on the efficiency of the compiler
13321and
13322the compiler options used during generation.
13323
13324  Previous Release:
13325    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13326    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13327  Current Release:
13328    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13329    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13330
13331
133322) iASL Compiler/Disassembler:
13333
13334Fixed a regression introduced in version 20050513 where the use of a
13335Package
13336object within a Case() statement caused a compile time exception. The
13337original behavior has been restored (a Match() operator is emitted.)
13338
13339----------------------------------------
1334017 June 2005.  Summary of changes for version 20050617:
13341
133421) ACPI CA Core Subsystem:
13343
13344Moved the object cache operations into the OS interface layer (OSL) to
13345allow
13346the host OS to handle these operations if desired (for example, the Linux
13347OSL will invoke the slab allocator). This support is optional; the
13348compile
13349time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
13350cache
13351code in the ACPI CA core. The new OSL interfaces are shown below. See
13352utalloc.c for an example implementation, and acpiosxf.h for the exact
13353interface definitions. With assistance from Alexey Starikovskiy.
13354    AcpiOsCreateCache
13355    AcpiOsDeleteCache
13356    AcpiOsPurgeCache
13357    AcpiOsAcquireObject
13358    AcpiOsReleaseObject
13359
13360Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
13361return
13362and restore a flags parameter. This fits better with many OS lock models.
13363Note: the current execution state (interrupt handler or not) is no longer
13364passed to these interfaces. If necessary, the OSL must determine this
13365state
13366by itself, a simple and fast operation. With assistance from Alexey
13367Starikovskiy.
13368
13369Fixed a problem in the ACPI table handling where a valid XSDT was assumed
13370present if the revision of the RSDP was 2 or greater. According to the
13371ACPI
13372specification, the XSDT is optional in all cases, and the table manager
13373therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
13374Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
13375contain
13376only the RSDT.
13377
13378Fixed an interpreter problem with the Mid() operator in the case of an
13379input
13380string where the resulting output string is of zero length. It now
13381correctly
13382returns a valid, null terminated string object instead of a string object
13383with a null pointer.
13384
13385Fixed a problem with the control method argument handling to allow a
13386store
13387to an Arg object that already contains an object of type Device. The
13388Device
13389object is now correctly overwritten. Previously, an error was returned.
13390
13391
13392Enhanced the debugger Find command to emit object values in addition to
13393the
13394found object pathnames. The output format is the same as the dump
13395namespace
13396command.
13397
13398Enhanced the debugger Set command. It now has the ability to set the
13399value
13400of any Named integer object in the namespace (Previously, only method
13401locals
13402and args could be set.)
13403
13404Code and Data Size: Current and previous core subsystem library sizes are
13405shown below. These are the code and data sizes for the acpica.lib
13406produced
13407by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13408any ACPI driver or OSPM code. The debug version of the code includes the
13409debug output trace mechanism and has a much larger code and data size.
13410Note
13411that these values will vary depending on the efficiency of the compiler
13412and
13413the compiler options used during generation.
13414
13415  Previous Release:
13416    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13417    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13418  Current Release:
13419    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13420    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13421
13422
134232) iASL Compiler/Disassembler:
13424
13425Fixed a regression in the disassembler where if/else/while constructs
13426were
13427output incorrectly. This problem was introduced in the previous release
13428(20050526). This problem also affected the single-step disassembly in the
13429debugger.
13430
13431Fixed a problem where compiling the reserved _OSI method would randomly
13432(but
13433rarely) produce compile errors.
13434
13435Enhanced the disassembler to emit compilable code in the face of
13436incorrect
13437AML resource descriptors. If the optional ResourceSourceIndex is present,
13438but the ResourceSource is not, do not emit the ResourceSourceIndex in the
13439disassembly. Otherwise, the resulting code cannot be compiled without
13440errors.
13441
13442----------------------------------------
1344326 May 2005.  Summary of changes for version 20050526:
13444
134451) ACPI CA Core Subsystem:
13446
13447Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
13448the module level (not within a control method.) These opcodes are
13449executed
13450exactly once at the time the table is loaded. This type of code was legal
13451up
13452until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
13453in
13454order to provide backwards compatibility with earlier BIOS
13455implementations.
13456This eliminates the "Encountered executable code at module level" warning
13457that was previously generated upon detection of such code.
13458
13459Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
13460inadvertently be generated during the lookup of namespace objects in the
13461second pass parse of ACPI tables and control methods. It appears that
13462this
13463problem could occur during the resolution of forward references to
13464namespace
13465objects.
13466
13467Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
13468corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
13469allows the deadlock detection debug code to be compiled out in the normal
13470case, improving mutex performance (and overall subsystem performance)
13471considerably.
13472
13473Implemented a handful of miscellaneous fixes for possible memory leaks on
13474error conditions and error handling control paths. These fixes were
13475suggested by FreeBSD and the Coverity Prevent source code analysis tool.
13476
13477Added a check for a null RSDT pointer in AcpiGetFirmwareTable
13478(tbxfroot.c)
13479to prevent a fault in this error case.
13480
13481Code and Data Size: Current and previous core subsystem library sizes are
13482shown below. These are the code and data sizes for the acpica.lib
13483produced
13484by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13485any ACPI driver or OSPM code. The debug version of the code includes the
13486debug output trace mechanism and has a much larger code and data size.
13487Note
13488that these values will vary depending on the efficiency of the compiler
13489and
13490the compiler options used during generation.
13491
13492  Previous Release:
13493    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13494    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13495  Current Release:
13496    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13497    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13498
13499
135002) iASL Compiler/Disassembler:
13501
13502Implemented support to allow Type 1 and Type 2 ASL operators to appear at
13503the module level (not within a control method.) These operators will be
13504executed once at the time the table is loaded. This type of code was
13505legal
13506up until the release of ACPI 2.0B (2002) and is now supported by the iASL
13507compiler in order to provide backwards compatibility with earlier BIOS
13508ASL
13509code.
13510
13511The ACPI integer width (specified via the table revision ID or the -r
13512override, 32 or 64 bits) is now used internally during compile-time
13513constant
13514folding to ensure that constants are truncated to 32 bits if necessary.
13515Previously, the revision ID value was only emitted in the AML table
13516header.
13517
13518An error message is now generated for the Mutex and Method operators if
13519the
13520SyncLevel parameter is outside the legal range of 0 through 15.
13521
13522Fixed a problem with the Method operator ParameterTypes list handling
13523(ACPI
135243.0). Previously, more than 2 types or 2 arguments generated a syntax
13525error.
13526The actual underlying implementation of method argument typechecking is
13527still under development, however.
13528
13529----------------------------------------
1353013 May 2005.  Summary of changes for version 20050513:
13531
135321) ACPI CA Core Subsystem:
13533
13534Implemented support for PCI Express root bridges -- added support for
13535device
13536PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
13537
13538The interpreter now automatically truncates incoming 64-bit constants to
1353932
13540bits if currently executing out of a 32-bit ACPI table (Revision < 2).
13541This
13542also affects the iASL compiler constant folding. (Note: as per below, the
13543iASL compiler no longer allows 64-bit constants within 32-bit tables.)
13544
13545Fixed a problem where string and buffer objects with "static" pointers
13546(pointers to initialization data within an ACPI table) were not handled
13547consistently. The internal object copy operation now always copies the
13548data
13549to a newly allocated buffer, regardless of whether the source object is
13550static or not.
13551
13552Fixed a problem with the FromBCD operator where an implicit result
13553conversion was improperly performed while storing the result to the
13554target
13555operand. Since this is an "explicit conversion" operator, the implicit
13556conversion should never be performed on the output.
13557
13558Fixed a problem with the CopyObject operator where a copy to an existing
13559named object did not always completely overwrite the existing object
13560stored
13561at name. Specifically, a buffer-to-buffer copy did not delete the
13562existing
13563buffer.
13564
13565Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
13566and
13567structs for consistency.
13568
13569Code and Data Size: Current and previous core subsystem library sizes are
13570shown below. These are the code and data sizes for the acpica.lib
13571produced
13572by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13573any ACPI driver or OSPM code. The debug version of the code includes the
13574debug output trace mechanism and has a much larger code and data size.
13575Note
13576that these values will vary depending on the efficiency of the compiler
13577and
13578the compiler options used during generation.
13579
13580  Previous Release:
13581    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13582    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13583  Current Release: (Same sizes)
13584    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13585    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13586
13587
135882) iASL Compiler/Disassembler:
13589
13590The compiler now emits a warning if an attempt is made to generate a 64-
13591bit
13592integer constant from within a 32-bit ACPI table (Revision < 2). The
13593integer
13594is truncated to 32 bits.
13595
13596Fixed a problem with large package objects: if the static length of the
13597package is greater than 255, the "variable length package" opcode is
13598emitted. Previously, this caused an error. This requires an update to the
13599ACPI spec, since it currently (incorrectly) states that packages larger
13600than
13601255 elements are not allowed.
13602
13603The disassembler now correctly handles variable length packages and
13604packages
13605larger than 255 elements.
13606
13607----------------------------------------
1360808 April 2005.  Summary of changes for version 20050408:
13609
136101) ACPI CA Core Subsystem:
13611
13612Fixed three cases in the interpreter where an "index" argument to an ASL
13613function was still (internally) 32 bits instead of the required 64 bits.
13614This was the Index argument to the Index, Mid, and Match operators.
13615
13616The "strupr" function is now permanently local (AcpiUtStrupr), since this
13617is
13618not a POSIX-defined function and not present in most kernel-level C
13619libraries. All references to the C library strupr function have been
13620removed
13621from the headers.
13622
13623Completed the deployment of static functions/prototypes. All prototypes
13624with
13625the static attribute have been moved from the headers to the owning C
13626file.
13627
13628Implemented an extract option (-e) for the AcpiBin utility (AML binary
13629utility). This option allows the utility to extract individual ACPI
13630tables
13631from the output of AcpiDmp. It provides the same functionality of the
13632acpixtract.pl perl script without the worry of setting the correct perl
13633options. AcpiBin runs on Windows and has not yet been generated/validated
13634in
13635the Linux/Unix environment (but should be soon).
13636
13637Updated and fixed the table dump option for AcpiBin (-d). This option
13638converts a single ACPI table to a hex/ascii file, similar to the output
13639of
13640AcpiDmp.
13641
13642Code and Data Size: Current and previous core subsystem library sizes are
13643shown below. These are the code and data sizes for the acpica.lib
13644produced
13645by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13646any ACPI driver or OSPM code. The debug version of the code includes the
13647debug output trace mechanism and has a much larger code and data size.
13648Note
13649that these values will vary depending on the efficiency of the compiler
13650and
13651the compiler options used during generation.
13652
13653  Previous Release:
13654    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13655    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13656  Current Release:
13657    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13658    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13659
13660
136612) iASL Compiler/Disassembler:
13662
13663Disassembler fix: Added a check to ensure that the table length found in
13664the
13665ACPI table header within the input file is not longer than the actual
13666input
13667file size. This indicates some kind of file or table corruption.
13668
13669----------------------------------------
1367029 March 2005.  Summary of changes for version 20050329:
13671
136721) ACPI CA Core Subsystem:
13673
13674An error is now generated if an attempt is made to create a Buffer Field
13675of
13676length zero (A CreateField with a length operand of zero.)
13677
13678The interpreter now issues a warning whenever executable code at the
13679module
13680level is detected during ACPI table load. This will give some idea of the
13681prevalence of this type of code.
13682
13683Implemented support for references to named objects (other than control
13684methods) within package objects.
13685
13686Enhanced package object output for the debug object. Package objects are
13687now
13688completely dumped, showing all elements.
13689
13690Enhanced miscellaneous object output for the debug object. Any object can
13691now be written to the debug object (for example, a device object can be
13692written, and the type of the object will be displayed.)
13693
13694The "static" qualifier has been added to all local functions across both
13695the
13696core subsystem and the iASL compiler.
13697
13698The number of "long" lines (> 80 chars) within the source has been
13699significantly reduced, by about 1/3.
13700
13701Cleaned up all header files to ensure that all CA/iASL functions are
13702prototyped (even static functions) and the formatting is consistent.
13703
13704Two new header files have been added, acopcode.h and acnames.h.
13705
13706Removed several obsolete functions that were no longer used.
13707
13708Code and Data Size: Current and previous core subsystem library sizes are
13709shown below. These are the code and data sizes for the acpica.lib
13710produced
13711by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13712any ACPI driver or OSPM code. The debug version of the code includes the
13713debug output trace mechanism and has a much larger code and data size.
13714Note
13715that these values will vary depending on the efficiency of the compiler
13716and
13717the compiler options used during generation.
13718
13719  Previous Release:
13720    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13721    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13722  Current Release:
13723    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13724    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13725
13726
13727
137282) iASL Compiler/Disassembler:
13729
13730Fixed a problem with the resource descriptor generation/support. For the
13731ResourceSourceIndex and the ResourceSource fields, both must be present,
13732or
13733both must be not present - can't have one without the other.
13734
13735The compiler now returns non-zero from the main procedure if any errors
13736have
13737occurred during the compilation.
13738
13739
13740----------------------------------------
1374109 March 2005.  Summary of changes for version 20050309:
13742
137431) ACPI CA Core Subsystem:
13744
13745The string-to-buffer implicit conversion code has been modified again
13746after
13747a change to the ACPI specification.  In order to match the behavior of
13748the
13749other major ACPI implementation, the target buffer is no longer truncated
13750if
13751the source string is smaller than an existing target buffer. This change
13752requires an update to the ACPI spec, and should eliminate the recent
13753AE_AML_BUFFER_LIMIT issues.
13754
13755The "implicit return" support was rewritten to a new algorithm that
13756solves
13757the general case. Rather than attempt to determine when a method is about
13758to
13759exit, the result of every ASL operator is saved momentarily until the
13760very
13761next ASL operator is executed. Therefore, no matter how the method exits,
13762there will always be a saved implicit return value. This feature is only
13763enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
13764eliminate
13765AE_AML_NO_RETURN_VALUE errors when enabled.
13766
13767Implemented implicit conversion support for the predicate (operand) of
13768the
13769If, Else, and While operators. String and Buffer arguments are
13770automatically
13771converted to Integers.
13772
13773Changed the string-to-integer conversion behavior to match the new ACPI
13774errata: "If no integer object exists, a new integer is created. The ASCII
13775string is interpreted as a hexadecimal constant. Each string character is
13776interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
13777with the first character as the most significant digit, and ending with
13778the
13779first non-hexadecimal character or end-of-string." This means that the
13780first
13781non-hex character terminates the conversion and this is the code that was
13782changed.
13783
13784Fixed a problem where the ObjectType operator would fail (fault) when
13785used
13786on an Index of a Package which pointed to a null package element. The
13787operator now properly returns zero (Uninitialized) in this case.
13788
13789Fixed a problem where the While operator used excessive memory by not
13790properly popping the result stack during execution. There was no memory
13791leak
13792after execution, however. (Code provided by Valery Podrezov.)
13793
13794Fixed a problem where references to control methods within Package
13795objects
13796caused the method to be invoked, instead of producing a reference object
13797pointing to the method.
13798
13799Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
13800to
13801improve performance and reduce code size. (Code provided by Alexey
13802Starikovskiy.)
13803
13804Code and Data Size: Current and previous core subsystem library sizes are
13805shown below. These are the code and data sizes for the acpica.lib
13806produced
13807by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13808any ACPI driver or OSPM code. The debug version of the code includes the
13809debug output trace mechanism and has a much larger code and data size.
13810Note
13811that these values will vary depending on the efficiency of the compiler
13812and
13813the compiler options used during generation.
13814
13815  Previous Release:
13816    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13817    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13818  Current Release:
13819    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13820    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13821
13822
138232) iASL Compiler/Disassembler:
13824
13825Fixed a problem with the Return operator with no arguments. Since the AML
13826grammar for the byte encoding requires an operand for the Return opcode,
13827the
13828compiler now emits a Return(Zero) for this case.  An ACPI specification
13829update has been written for this case.
13830
13831For tables other than the DSDT, namepath optimization is automatically
13832disabled. This is because SSDTs can be loaded anywhere in the namespace,
13833the
13834compiler has no knowledge of where, and thus cannot optimize namepaths.
13835
13836Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
13837inadvertently omitted from the ACPI specification, and will require an
13838update to the spec.
13839
13840The source file scan for ASCII characters is now optional (-a). This
13841change
13842was made because some vendors place non-ascii characters within comments.
13843However, the scan is simply a brute-force byte compare to ensure all
13844characters in the file are in the range 0x00 to 0x7F.
13845
13846Fixed a problem with the CondRefOf operator where the compiler was
13847inappropriately checking for the existence of the target. Since the point
13848of
13849the operator is to check for the existence of the target at run-time, the
13850compiler no longer checks for the target existence.
13851
13852Fixed a problem where errors generated from the internal AML interpreter
13853during constant folding were not handled properly, causing a fault.
13854
13855Fixed a problem with overly aggressive range checking for the Stall
13856operator. The valid range (max 255) is now only checked if the operand is
13857of
13858type Integer. All other operand types cannot be statically checked.
13859
13860Fixed a problem where control method references within the RefOf,
13861DeRefOf,
13862and ObjectType operators were not treated properly. They are now treated
13863as
13864actual references, not method invocations.
13865
13866Fixed and enhanced the "list namespace" option (-ln). This option was
13867broken
13868a number of releases ago.
13869
13870Improved error handling for the Field, IndexField, and BankField
13871operators.
13872The compiler now cleanly reports and recovers from errors in the field
13873component (FieldUnit) list.
13874
13875Fixed a disassembler problem where the optional ResourceDescriptor fields
13876TRS and TTP were not always handled correctly.
13877
13878Disassembler - Comments in output now use "//" instead of "/*"
13879
13880----------------------------------------
1388128 February 2005.  Summary of changes for version 20050228:
13882
138831) ACPI CA Core Subsystem:
13884
13885Fixed a problem where the result of an Index() operator (an object
13886reference) must increment the reference count on the target object for
13887the
13888life of the object reference.
13889
13890Implemented AML Interpreter and Debugger support for the new ACPI 3.0
13891Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
13892WordSpace
13893resource descriptors.
13894
13895Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
13896Space Descriptor" string, indicating interpreter support for the
13897descriptors
13898above.
13899
13900Implemented header support for the new ACPI 3.0 FADT flag bits.
13901
13902Implemented header support for the new ACPI 3.0 PCI Express bits for the
13903PM1
13904status/enable registers.
13905
13906Updated header support for the MADT processor local Apic struct and MADT
13907platform interrupt source struct for new ACPI 3.0 fields.
13908
13909Implemented header support for the SRAT and SLIT ACPI tables.
13910
13911Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
13912flag
13913at runtime.
13914
13915Code and Data Size: Current and previous core subsystem library sizes are
13916shown below. These are the code and data sizes for the acpica.lib
13917produced
13918by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13919any ACPI driver or OSPM code. The debug version of the code includes the
13920debug output trace mechanism and has a much larger code and data size.
13921Note
13922that these values will vary depending on the efficiency of the compiler
13923and
13924the compiler options used during generation.
13925
13926  Previous Release:
13927    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
13928    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
13929  Current Release:
13930    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13931    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13932
13933
139342) iASL Compiler/Disassembler:
13935
13936Fixed a problem with the internal 64-bit String-to-integer conversion
13937with
13938strings less than two characters long.
13939
13940Fixed a problem with constant folding where the result of the Index()
13941operator can not be considered a constant. This means that Index() cannot
13942be
13943a type3 opcode and this will require an update to the ACPI specification.
13944
13945Disassembler: Implemented support for the TTP, MTP, and TRS resource
13946descriptor fields. These fields were inadvertently ignored and not output
13947in
13948the disassembly of the resource descriptor.
13949
13950
13951 ----------------------------------------
1395211 February 2005.  Summary of changes for version 20050211:
13953
139541) ACPI CA Core Subsystem:
13955
13956Implemented ACPI 3.0 support for implicit conversion within the Match()
13957operator. MatchObjects can now be of type integer, buffer, or string
13958instead
13959of just type integer.  Package elements are implicitly converted to the
13960type
13961of the MatchObject. This change aligns the behavior of Match() with the
13962behavior of the other logical operators (LLess(), etc.) It also requires
13963an
13964errata change to the ACPI specification as this support was intended for
13965ACPI 3.0, but was inadvertently omitted.
13966
13967Fixed a problem with the internal implicit "to buffer" conversion.
13968Strings
13969that are converted to buffers will cause buffer truncation if the string
13970is
13971smaller than the target buffer. Integers that are converted to buffers
13972will
13973not cause buffer truncation, only zero extension (both as per the ACPI
13974spec.) The problem was introduced when code was added to truncate the
13975buffer, but this should not be performed in all cases, only the string
13976case.
13977
13978Fixed a problem with the Buffer and Package operators where the
13979interpreter
13980would get confused if two such operators were used as operands to an ASL
13981operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
13982stack was not being popped after the execution of these operators,
13983resulting
13984in an AE_NO_RETURN_VALUE exception.
13985
13986Fixed a problem with constructs of the form Store(Index(...),...). The
13987reference object returned from Index was inadvertently resolved to an
13988actual
13989value. This problem was introduced in version 20050114 when the behavior
13990of
13991Store() was modified to restrict the object types that can be used as the
13992source operand (to match the ACPI specification.)
13993
13994Reduced excessive stack use within the AcpiGetObjectInfo procedure.
13995
13996Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
13997
13998Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
13999
14000Code and Data Size: Current and previous core subsystem library sizes are
14001shown below. These are the code and data sizes for the acpica.lib
14002produced
14003by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14004any ACPI driver or OSPM code. The debug version of the code includes the
14005debug output trace mechanism and has a much larger code and data size.
14006Note
14007that these values will vary depending on the efficiency of the compiler
14008and
14009the compiler options used during generation.
14010
14011  Previous Release:
14012    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
14013    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
14014  Current Release:
14015    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
14016    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
14017
14018
140192) iASL Compiler/Disassembler:
14020
14021Fixed a code generation problem in the constant folding optimization code
14022where incorrect code was generated if a constant was reduced to a buffer
14023object (i.e., a reduced type 5 opcode.)
14024
14025Fixed a typechecking problem for the ToBuffer operator. Caused by an
14026incorrect return type in the internal opcode information table.
14027
14028----------------------------------------
1402925 January 2005.  Summary of changes for version 20050125:
14030
140311) ACPI CA Core Subsystem:
14032
14033Fixed a recently introduced problem with the Global Lock where the
14034underlying semaphore was not created.  This problem was introduced in
14035version 20050114, and caused an AE_AML_NO_OPERAND exception during an
14036Acquire() operation on _GL.
14037
14038The local object cache is now optional, and is disabled by default. Both
14039AcpiExec and the iASL compiler enable the cache because they run in user
14040mode and this enhances their performance. #define
14041ACPI_ENABLE_OBJECT_CACHE
14042to enable the local cache.
14043
14044Fixed an issue in the internal function AcpiUtEvaluateObject concerning
14045the
14046optional "implicit return" support where an error was returned if no
14047return
14048object was expected, but one was implicitly returned. AE_OK is now
14049returned
14050in this case and the implicitly returned object is deleted.
14051AcpiUtEvaluateObject is only occasionally used, and only to execute
14052reserved
14053methods such as _STA and _INI where the return type is known up front.
14054
14055Fixed a few issues with the internal convert-to-integer code. It now
14056returns
14057an error if an attempt is made to convert a null string, a string of only
14058blanks/tabs, or a zero-length buffer. This affects both implicit
14059conversion
14060and explicit conversion via the ToInteger() operator.
14061
14062The internal debug code in AcpiUtAcquireMutex has been commented out. It
14063is
14064not needed for normal operation and should increase the performance of
14065the
14066entire subsystem. The code remains in case it is needed for debug
14067purposes
14068again.
14069
14070The AcpiExec source and makefile are included in the Unix/Linux package
14071for
14072the first time.
14073
14074Code and Data Size: Current and previous core subsystem library sizes are
14075shown below. These are the code and data sizes for the acpica.lib
14076produced
14077by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14078any ACPI driver or OSPM code. The debug version of the code includes the
14079debug output trace mechanism and has a much larger code and data size.
14080Note
14081that these values will vary depending on the efficiency of the compiler
14082and
14083the compiler options used during generation.
14084
14085  Previous Release:
14086    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
14087    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
14088  Current Release:
14089    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
14090    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
14091
140922) iASL Compiler/Disassembler:
14093
14094Switch/Case support: A warning is now issued if the type of the Switch
14095value
14096cannot be determined at compile time. For example, Switch(Arg0) will
14097generate the warning, and the type is assumed to be an integer. As per
14098the
14099ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
14100the
14101warning.
14102
14103Switch/Case support: Implemented support for buffer and string objects as
14104the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
14105buffers and strings.
14106
14107Switch/Case support: The emitted code for the LEqual() comparisons now
14108uses
14109the switch value as the first operand, not the second. The case value is
14110now
14111the second operand, and this allows the case value to be implicitly
14112converted to the type of the switch value, not the other way around.
14113
14114Switch/Case support: Temporary variables are now emitted immediately
14115within
14116the control method, not at the global level. This means that there are
14117now
1411836 temps available per-method, not 36 temps per-module as was the case
14119with
14120the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
14121
14122----------------------------------------
1412314 January 2005.  Summary of changes for version 20050114:
14124
14125Added 2005 copyright to all module headers.  This affects every module in
14126the core subsystem, iASL compiler, and the utilities.
14127
141281) ACPI CA Core Subsystem:
14129
14130Fixed an issue with the String-to-Buffer conversion code where the string
14131null terminator was not included in the buffer after conversion, but
14132there
14133is existing ASL that assumes the string null terminator is included. This
14134is
14135the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
14136introduced in the previous version when the code was updated to correctly
14137set the converted buffer size as per the ACPI specification. The ACPI
14138spec
14139is ambiguous and will be updated to specify that the null terminator must
14140be
14141included in the converted buffer. This also affects the ToBuffer() ASL
14142operator.
14143
14144Fixed a problem with the Mid() ASL/AML operator where it did not work
14145correctly on Buffer objects. Newly created sub-buffers were not being
14146marked
14147as initialized.
14148
14149
14150Fixed a problem in AcpiTbFindTable where incorrect string compares were
14151performed on the OemId and OemTableId table header fields.  These fields
14152are
14153not null terminated, so strncmp is now used instead of strcmp.
14154
14155Implemented a restriction on the Store() ASL/AML operator to align the
14156behavior with the ACPI specification.  Previously, any object could be
14157used
14158as the source operand.  Now, the only objects that may be used are
14159Integers,
14160Buffers, Strings, Packages, Object References, and DDB Handles.  If
14161necessary, the original behavior can be restored by enabling the
14162EnableInterpreterSlack flag.
14163
14164Enhanced the optional "implicit return" support to allow an implicit
14165return
14166value from methods that are invoked externally via the AcpiEvaluateObject
14167interface.  This enables implicit returns from the _STA and _INI methods,
14168for example.
14169
14170Changed the Revision() ASL/AML operator to return the current version of
14171the
14172AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
14173returned
14174the supported ACPI version (This is the function of the _REV method).
14175
14176Updated the _REV predefined method to return the currently supported
14177version
14178of ACPI, now 3.
14179
14180Implemented batch mode option for the AcpiExec utility (-b).
14181
14182Code and Data Size: Current and previous core subsystem library sizes are
14183shown below. These are the code and data sizes for the acpica.lib
14184produced
14185by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14186any ACPI driver or OSPM code. The debug version of the code includes the
14187debug output trace mechanism and has a much larger code and data size.
14188Note
14189that these values will vary depending on the efficiency of the compiler
14190and
14191the compiler options used during generation.
14192
14193  Previous Release:
14194    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14195    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14196  Current Release:
14197    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
14198    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
14199
14200----------------------------------------
1420110 December 2004.  Summary of changes for version 20041210:
14202
14203ACPI 3.0 support is nearing completion in both the iASL compiler and the
14204ACPI CA core subsystem.
14205
142061) ACPI CA Core Subsystem:
14207
14208Fixed a problem in the ToDecimalString operator where the resulting
14209string
14210length was incorrectly calculated. The length is now calculated exactly,
14211eliminating incorrect AE_STRING_LIMIT exceptions.
14212
14213Fixed a problem in the ToHexString operator to allow a maximum 200
14214character
14215string to be produced.
14216
14217Fixed a problem in the internal string-to-buffer and buffer-to-buffer
14218copy
14219routine where the length of the resulting buffer was not truncated to the
14220new size (if the target buffer already existed).
14221
14222Code and Data Size: Current and previous core subsystem library sizes are
14223shown below. These are the code and data sizes for the acpica.lib
14224produced
14225by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14226any ACPI driver or OSPM code. The debug version of the code includes the
14227debug output trace mechanism and has a much larger code and data size.
14228Note
14229that these values will vary depending on the efficiency of the compiler
14230and
14231the compiler options used during generation.
14232
14233  Previous Release:
14234    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14235    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14236  Current Release:
14237    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14238    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14239
14240
142412) iASL Compiler/Disassembler:
14242
14243Implemented the new ACPI 3.0 resource template macros - DWordSpace,
14244ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
14245Includes support in the disassembler.
14246
14247Implemented support for the new (ACPI 3.0) parameter to the Register
14248macro,
14249AccessSize.
14250
14251Fixed a problem where the _HE resource name for the Interrupt macro was
14252referencing bit 0 instead of bit 1.
14253
14254Implemented check for maximum 255 interrupts in the Interrupt macro.
14255
14256Fixed a problem with the predefined resource descriptor names where
14257incorrect AML code was generated if the offset within the resource buffer
14258was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
14259but did not update the surrounding package lengths.
14260
14261Changes to the Dma macro:  All channels within the channel list must be
14262in
14263the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
14264optional (default is BusMaster).
14265
14266Implemented check for maximum 7 data bytes for the VendorShort macro.
14267
14268The ReadWrite parameter is now optional for the Memory32 and similar
14269macros.
14270
14271----------------------------------------
1427203 December 2004.  Summary of changes for version 20041203:
14273
142741) ACPI CA Core Subsystem:
14275
14276The low-level field insertion/extraction code (exfldio) has been
14277completely
14278rewritten to eliminate unnecessary complexity, bugs, and boundary
14279conditions.
14280
14281Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
14282ToDecimalString
14283operators where the input operand could be inadvertently deleted if no
14284conversion was necessary (e.g., if the input to ToInteger was an Integer
14285object.)
14286
14287Fixed a problem with the ToDecimalString and ToHexString where an
14288incorrect
14289exception code was returned if the resulting string would be > 200 chars.
14290AE_STRING_LIMIT is now returned.
14291
14292Fixed a problem with the Concatenate operator where AE_OK was always
14293returned, even if the operation failed.
14294
14295Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
14296semaphores to be allocated.
14297
14298Code and Data Size: Current and previous core subsystem library sizes are
14299shown below. These are the code and data sizes for the acpica.lib
14300produced
14301by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14302any ACPI driver or OSPM code. The debug version of the code includes the
14303debug output trace mechanism and has a much larger code and data size.
14304Note
14305that these values will vary depending on the efficiency of the compiler
14306and
14307the compiler options used during generation.
14308
14309  Previous Release:
14310    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14311    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14312  Current Release:
14313    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14314    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14315
14316
143172) iASL Compiler/Disassembler:
14318
14319Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
14320recently introduced in 20041119.
14321
14322Fixed a problem with the ToUUID macro where the upper nybble of each
14323buffer
14324byte was inadvertently set to zero.
14325
14326----------------------------------------
1432719 November 2004.  Summary of changes for version 20041119:
14328
143291) ACPI CA Core Subsystem:
14330
14331Fixed a problem in the internal ConvertToInteger routine where new
14332integers
14333were not truncated to 32 bits for 32-bit ACPI tables. This routine
14334converts
14335buffers and strings to integers.
14336
14337Implemented support to store a value to an Index() on a String object.
14338This
14339is an ACPI 2.0 feature that had not yet been implemented.
14340
14341Implemented new behavior for storing objects to individual package
14342elements
14343(via the Index() operator). The previous behavior was to invoke the
14344implicit
14345conversion rules if an object was already present at the index.  The new
14346behavior is to simply delete any existing object and directly store the
14347new
14348object. Although the ACPI specification seems unclear on this subject,
14349other
14350ACPI implementations behave in this manner.  (This is the root of the
14351AE_BAD_HEX_CONSTANT issue.)
14352
14353Modified the RSDP memory scan mechanism to support the extended checksum
14354for
14355ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
14356RSDP signature is found with a valid checksum.
14357
14358Code and Data Size: Current and previous core subsystem library sizes are
14359shown below. These are the code and data sizes for the acpica.lib
14360produced
14361by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14362any ACPI driver or OSPM code. The debug version of the code includes the
14363debug output trace mechanism and has a much larger code and data size.
14364Note
14365that these values will vary depending on the efficiency of the compiler
14366and
14367the compiler options used during generation.
14368
14369  Previous Release:
14370    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14371    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14372  Current Release:
14373    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14374    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14375
14376
143772) iASL Compiler/Disassembler:
14378
14379Fixed a missing semicolon in the aslcompiler.y file.
14380
14381----------------------------------------
1438205 November 2004.  Summary of changes for version 20041105:
14383
143841) ACPI CA Core Subsystem:
14385
14386Implemented support for FADT revision 2.  This was an interim table
14387(between
14388ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
14389
14390Implemented optional support to allow uninitialized LocalX and ArgX
14391variables in a control method.  The variables are initialized to an
14392Integer
14393object with a value of zero.  This support is enabled by setting the
14394AcpiGbl_EnableInterpreterSlack flag to TRUE.
14395
14396Implemented support for Integer objects for the SizeOf operator.  Either
143974
14398or 8 is returned, depending on the current integer size (32-bit or 64-
14399bit,
14400depending on the parent table revision).
14401
14402Fixed a problem in the implementation of the SizeOf and ObjectType
14403operators
14404where the operand was resolved to a value too early, causing incorrect
14405return values for some objects.
14406
14407Fixed some possible memory leaks during exceptional conditions.
14408
14409Code and Data Size: Current and previous core subsystem library sizes are
14410shown below. These are the code and data sizes for the acpica.lib
14411produced
14412by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14413any ACPI driver or OSPM code. The debug version of the code includes the
14414debug output trace mechanism and has a much larger code and data size.
14415Note
14416that these values will vary depending on the efficiency of the compiler
14417and
14418the compiler options used during generation.
14419
14420  Previous Release:
14421    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14422    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14423  Current Release:
14424    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14425    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14426
14427
144282) iASL Compiler/Disassembler:
14429
14430Implemented support for all ACPI 3.0 reserved names and methods.
14431
14432Implemented all ACPI 3.0 grammar elements in the front-end, including
14433support for semicolons.
14434
14435Implemented the ACPI 3.0 Function() and ToUUID() macros
14436
14437Fixed a problem in the disassembler where a Scope() operator would not be
14438emitted properly if the target of the scope was in another table.
14439
14440----------------------------------------
1444115 October 2004.  Summary of changes for version 20041015:
14442
14443Note:  ACPI CA is currently undergoing an in-depth and complete formal
14444evaluation to test/verify the following areas. Other suggestions are
14445welcome. This will result in an increase in the frequency of releases and
14446the number of bug fixes in the next few months.
14447  - Functional tests for all ASL/AML operators
14448  - All implicit/explicit type conversions
14449  - Bit fields and operation regions
14450  - 64-bit math support and 32-bit-only "truncated" math support
14451  - Exceptional conditions, both compiler and interpreter
14452  - Dynamic object deletion and memory leaks
14453  - ACPI 3.0 support when implemented
14454  - External interfaces to the ACPI subsystem
14455
14456
144571) ACPI CA Core Subsystem:
14458
14459Fixed two alignment issues on 64-bit platforms - within debug statements
14460in
14461AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
14462Address
14463field within the non-aligned ACPI generic address structure.
14464
14465Fixed a problem in the Increment and Decrement operators where incorrect
14466operand resolution could result in the inadvertent modification of the
14467original integer when the integer is passed into another method as an
14468argument and the arg is then incremented/decremented.
14469
14470Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
14471bit
14472BCD number were truncated during conversion.
14473
14474Fixed a problem in the ToDecimal operator where the length of the
14475resulting
14476string could be set incorrectly too long if the input operand was a
14477Buffer
14478object.
14479
14480Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
14481(0)
14482within a buffer would prematurely terminate a compare between buffer
14483objects.
14484
14485Added a check for string overflow (>200 characters as per the ACPI
14486specification) during the Concatenate operator with two string operands.
14487
14488Code and Data Size: Current and previous core subsystem library sizes are
14489shown below. These are the code and data sizes for the acpica.lib
14490produced
14491by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14492any ACPI driver or OSPM code. The debug version of the code includes the
14493debug output trace mechanism and has a much larger code and data size.
14494Note
14495that these values will vary depending on the efficiency of the compiler
14496and
14497the compiler options used during generation.
14498
14499  Previous Release:
14500    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14501    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14502  Current Release:
14503    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14504    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14505
14506
14507
145082) iASL Compiler/Disassembler:
14509
14510Allow the use of the ObjectType operator on uninitialized Locals and Args
14511(returns 0 as per the ACPI specification).
14512
14513Fixed a problem where the compiler would fault if there was a syntax
14514error
14515in the FieldName of all of the various CreateXXXField operators.
14516
14517Disallow the use of lower case letters within the EISAID macro, as per
14518the
14519ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
14520Where
14521U is an uppercase letter and N is a hex digit.
14522
14523
14524----------------------------------------
1452506 October 2004.  Summary of changes for version 20041006:
14526
145271) ACPI CA Core Subsystem:
14528
14529Implemented support for the ACPI 3.0 Timer operator. This ASL function
14530implements a 64-bit timer with 100 nanosecond granularity.
14531
14532Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
14533implement the ACPI 3.0 Timer operator.  This allows the host OS to
14534implement
14535the timer with the best clock available. Also, it keeps the core
14536subsystem
14537out of the clock handling business, since the host OS (usually) performs
14538this function.
14539
14540Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
14541functions use a 64-bit address which is part of the packed ACPI Generic
14542Address Structure. Since the structure is non-aligned, the alignment
14543macros
14544are now used to extract the address to a local variable before use.
14545
14546Fixed a problem where the ToInteger operator assumed all input strings
14547were
14548hexadecimal. The operator now handles both decimal strings and hex
14549strings
14550(prefixed with "0x").
14551
14552Fixed a problem where the string length in the string object created as a
14553result of the internal ConvertToString procedure could be incorrect. This
14554potentially affected all implicit conversions and also the
14555ToDecimalString
14556and ToHexString operators.
14557
14558Fixed two problems in the ToString operator. If the length parameter was
14559zero, an incorrect string object was created and the value of the input
14560length parameter was inadvertently changed from zero to Ones.
14561
14562Fixed a problem where the optional ResourceSource string in the
14563ExtendedIRQ
14564resource macro was ignored.
14565
14566Simplified the interfaces to the internal division functions, reducing
14567code
14568size and complexity.
14569
14570Code and Data Size: Current and previous core subsystem library sizes are
14571shown below. These are the code and data sizes for the acpica.lib
14572produced
14573by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14574any ACPI driver or OSPM code. The debug version of the code includes the
14575debug output trace mechanism and has a much larger code and data size.
14576Note
14577that these values will vary depending on the efficiency of the compiler
14578and
14579the compiler options used during generation.
14580
14581  Previous Release:
14582    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14583    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14584  Current Release:
14585    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14586    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14587
14588
145892) iASL Compiler/Disassembler:
14590
14591Implemented support for the ACPI 3.0 Timer operator.
14592
14593Fixed a problem where the Default() operator was inadvertently ignored in
14594a
14595Switch/Case block.  This was a problem in the translation of the Switch
14596statement to If...Else pairs.
14597
14598Added support to allow a standalone Return operator, with no parentheses
14599(or
14600operands).
14601
14602Fixed a problem with code generation for the ElseIf operator where the
14603translated Else...If parse tree was improperly constructed leading to the
14604loss of some code.
14605
14606----------------------------------------
1460722 September 2004.  Summary of changes for version 20040922:
14608
146091) ACPI CA Core Subsystem:
14610
14611Fixed a problem with the implementation of the LNot() operator where
14612"Ones"
14613was not returned for the TRUE case. Changed the code to return Ones
14614instead
14615of (!Arg) which was usually 1. This change affects iASL constant folding
14616for
14617this operator also.
14618
14619Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
14620not
14621initialized properly -- Now zero the entire buffer in this case where the
14622buffer already exists.
14623
14624Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
14625Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
14626related code considerably. This will require changes/updates to all OS
14627interface layers (OSLs.)
14628
14629Implemented a new external interface, AcpiInstallExceptionHandler, to
14630allow
14631a system exception handler to be installed. This handler is invoked upon
14632any
14633run-time exception that occurs during control method execution.
14634
14635Added support for the DSDT in AcpiTbFindTable. This allows the
14636DataTableRegion() operator to access the local copy of the DSDT.
14637
14638Code and Data Size: Current and previous core subsystem library sizes are
14639shown below. These are the code and data sizes for the acpica.lib
14640produced
14641by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14642any ACPI driver or OSPM code. The debug version of the code includes the
14643debug output trace mechanism and has a much larger code and data size.
14644Note
14645that these values will vary depending on the efficiency of the compiler
14646and
14647the compiler options used during generation.
14648
14649  Previous Release:
14650    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14651    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14652  Current Release:
14653    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14654    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14655
14656
146572) iASL Compiler/Disassembler:
14658
14659Fixed a problem with constant folding and the LNot operator. LNot was
14660returning 1 in the TRUE case, not Ones as per the ACPI specification.
14661This
14662could result in the generation of an incorrect folded/reduced constant.
14663
14664End-Of-File is now allowed within a "//"-style comment.  A parse error no
14665longer occurs if such a comment is at the very end of the input ASL
14666source
14667file.
14668
14669Implemented the "-r" option to override the Revision in the table header.
14670The initial use of this option will be to simplify the evaluation of the
14671AML
14672interpreter by allowing a single ASL source module to be compiled for
14673either
1467432-bit or 64-bit integers.
14675
14676
14677----------------------------------------
1467827 August 2004.  Summary of changes for version 20040827:
14679
146801) ACPI CA Core Subsystem:
14681
14682- Implemented support for implicit object conversion in the non-numeric
14683logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
14684and
14685LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
14686the second operand is implicitly converted on the fly to match the type
14687of
14688the first operand.  For example:
14689
14690    LEqual (Source1, Source2)
14691
14692Source1 and Source2 must each evaluate to an integer, a string, or a
14693buffer.
14694The data type of Source1 dictates the required type of Source2. Source2
14695is
14696implicitly converted if necessary to match the type of Source1.
14697
14698- Updated and corrected the behavior of the string conversion support.
14699The
14700rules concerning conversion of buffers to strings (according to the ACPI
14701specification) are as follows:
14702
14703ToDecimalString - explicit byte-wise conversion of buffer to string of
14704decimal values (0-255) separated by commas. ToHexString - explicit byte-
14705wise
14706conversion of buffer to string of hex values (0-FF) separated by commas.
14707ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
14708byte
14709copy with no transform except NULL terminated. Any other implicit buffer-
14710to-
14711string conversion - byte-wise conversion of buffer to string of hex
14712values
14713(0-FF) separated by spaces.
14714
14715- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
14716
14717- Fixed a problem in AcpiNsGetPathnameLength where the returned length
14718was
14719one byte too short in the case of a node in the root scope.  This could
14720cause a fault during debug output.
14721
14722- Code and Data Size: Current and previous core subsystem library sizes
14723are
14724shown below.  These are the code and data sizes for the acpica.lib
14725produced
14726by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14727any ACPI driver or OSPM code.  The debug version of the code includes the
14728debug output trace mechanism and has a much larger code and data size.
14729Note
14730that these values will vary depending on the efficiency of the compiler
14731and
14732the compiler options used during generation.
14733
14734  Previous Release:
14735    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14736    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14737  Current Release:
14738    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14739    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14740
14741
147422) iASL Compiler/Disassembler:
14743
14744- Fixed a Linux generation error.
14745
14746
14747----------------------------------------
1474816 August 2004.  Summary of changes for version 20040816:
14749
147501) ACPI CA Core Subsystem:
14751
14752Designed and implemented support within the AML interpreter for the so-
14753called "implicit return".  This support returns the result of the last
14754ASL
14755operation within a control method, in the absence of an explicit Return()
14756operator.  A few machines depend on this behavior, even though it is not
14757explicitly supported by the ASL language.  It is optional support that
14758can
14759be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
14760
14761Removed support for the PCI_Config address space from the internal low
14762level
14763hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
14764support was not used internally, and would not work correctly anyway
14765because
14766the PCI bus number and segment number were not supported.  There are
14767separate interfaces for PCI configuration space access because of the
14768unique
14769interface.
14770
14771Code and Data Size: Current and previous core subsystem library sizes are
14772shown below.  These are the code and data sizes for the acpica.lib
14773produced
14774by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14775any ACPI driver or OSPM code.  The debug version of the code includes the
14776debug output trace mechanism and has a much larger code and data size.
14777Note
14778that these values will vary depending on the efficiency of the compiler
14779and
14780the compiler options used during generation.
14781
14782  Previous Release:
14783    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14784    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14785  Current Release:
14786    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14787    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14788
14789
147902) iASL Compiler/Disassembler:
14791
14792Fixed a problem where constants in ASL expressions at the root level (not
14793within a control method) could be inadvertently truncated during code
14794generation.  This problem was introduced in the 20040715 release.
14795
14796
14797----------------------------------------
1479815 July 2004.  Summary of changes for version 20040715:
14799
148001) ACPI CA Core Subsystem:
14801
14802Restructured the internal HW GPE interfaces to pass/track the current
14803state
14804of interrupts (enabled/disabled) in order to avoid possible deadlock and
14805increase flexibility of the interfaces.
14806
14807Implemented a "lexicographical compare" for String and Buffer objects
14808within
14809the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
14810-
14811as per further clarification to the ACPI specification.  Behavior is
14812similar
14813to C library "strcmp".
14814
14815Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
14816external function.  In the 32-bit non-debug case, the stack use has been
14817reduced from 168 bytes to 32 bytes.
14818
14819Deployed a new run-time configuration flag,
14820AcpiGbl_EnableInterpreterSlack,
14821whose purpose is to allow the AML interpreter to forgive certain bad AML
14822constructs.  Default setting is FALSE.
14823
14824Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
14825IO
14826support code.  If enabled, it allows field access to go beyond the end of
14827a
14828region definition if the field is within the region length rounded up to
14829the
14830next access width boundary (a common coding error.)
14831
14832Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
14833ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
14834these
14835symbols are lowercase by the latest version of the AcpiSrc tool.
14836
14837The prototypes for the PCI interfaces in acpiosxf.h have been updated to
14838rename "Register" to simply "Reg" to prevent certain compilers from
14839complaining.
14840
14841Code and Data Size: Current and previous core subsystem library sizes are
14842shown below.  These are the code and data sizes for the acpica.lib
14843produced
14844by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14845any ACPI driver or OSPM code.  The debug version of the code includes the
14846debug output trace mechanism and has a much larger code and data size.
14847Note
14848that these values will vary depending on the efficiency of the compiler
14849and
14850the compiler options used during generation.
14851
14852  Previous Release:
14853    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14854    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14855  Current Release:
14856    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14857    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14858
14859
148602) iASL Compiler/Disassembler:
14861
14862Implemented full support for Package objects within the Case() operator.
14863Note: The Break() operator is currently not supported within Case blocks
14864(TermLists) as there is some question about backward compatibility with
14865ACPI
148661.0 interpreters.
14867
14868
14869Fixed a problem where complex terms were not supported properly within
14870the
14871Switch() operator.
14872
14873Eliminated extraneous warning for compiler-emitted reserved names of the
14874form "_T_x".  (Used in Switch/Case operators.)
14875
14876Eliminated optimization messages for "_T_x" objects and small constants
14877within the DefinitionBlock operator.
14878
14879
14880----------------------------------------
1488115 June 2004.  Summary of changes for version 20040615:
14882
148831) ACPI CA Core Subsystem:
14884
14885Implemented support for Buffer and String objects (as per ACPI 2.0) for
14886the
14887following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
14888LLessEqual.
14889
14890All directory names in the entire source package are lower case, as they
14891were in earlier releases.
14892
14893Implemented "Disassemble" command in the AML debugger that will
14894disassemble
14895a single control method.
14896
14897Code and Data Size: Current and previous core subsystem library sizes are
14898shown below.  These are the code and data sizes for the acpica.lib
14899produced
14900by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14901any ACPI driver or OSPM code.  The debug version of the code includes the
14902debug output trace mechanism and has a much larger code and data size.
14903Note
14904that these values will vary depending on the efficiency of the compiler
14905and
14906the compiler options used during generation.
14907
14908  Previous Release:
14909    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
14910    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
14911
14912  Current Release:
14913    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14914    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14915
14916
149172) iASL Compiler/Disassembler:
14918
14919Implemented support for Buffer and String objects (as per ACPI 2.0) for
14920the
14921following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
14922LLessEqual.
14923
14924All directory names in the entire source package are lower case, as they
14925were in earlier releases.
14926
14927Fixed a fault when using the -g or -d<nofilename> options if the FADT was
14928not found.
14929
14930Fixed an issue with the Windows version of the compiler where later
14931versions
14932of Windows place the FADT in the registry under the name "FADT" and not
14933"FACP" as earlier versions did.  This applies when using the -g or -
14934d<nofilename> options.  The compiler now looks for both strings as
14935necessary.
14936
14937Fixed a problem with compiler namepath optimization where a namepath
14938within
14939the Scope() operator could not be optimized if the namepath was a subpath
14940of
14941the current scope path.
14942
14943----------------------------------------
1494427 May 2004.  Summary of changes for version 20040527:
14945
149461) ACPI CA Core Subsystem:
14947
14948Completed a new design and implementation for EBDA (Extended BIOS Data
14949Area)
14950support in the RSDP scan code.  The original code improperly scanned for
14951the
14952EBDA by simply scanning from memory location 0 to 0x400.  The correct
14953method
14954is to first obtain the EBDA pointer from within the BIOS data area, then
14955scan 1K of memory starting at the EBDA pointer.  There appear to be few
14956if
14957any machines that place the RSDP in the EBDA, however.
14958
14959Integrated a fix for a possible fault during evaluation of BufferField
14960arguments.  Obsolete code that was causing the problem was removed.
14961
14962Found and fixed a problem in the Field Support Code where data could be
14963corrupted on a bit field read that starts on an aligned boundary but does
14964not end on an aligned boundary.  Merged the read/write "datum length"
14965calculation code into a common procedure.
14966
14967Rolled in a couple of changes to the FreeBSD-specific header.
14968
14969
14970Code and Data Size: Current and previous core subsystem library sizes are
14971shown below.  These are the code and data sizes for the acpica.lib
14972produced
14973by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14974any ACPI driver or OSPM code.  The debug version of the code includes the
14975debug output trace mechanism and has a much larger code and data size.
14976Note
14977that these values will vary depending on the efficiency of the compiler
14978and
14979the compiler options used during generation.
14980
14981  Previous Release:
14982    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14983    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
14984  Current Release:
14985    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
14986    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
14987
14988
149892) iASL Compiler/Disassembler:
14990
14991Fixed a generation warning produced by some overly-verbose compilers for
14992a
1499364-bit constant.
14994
14995----------------------------------------
1499614 May 2004.  Summary of changes for version 20040514:
14997
149981) ACPI CA Core Subsystem:
14999
15000Fixed a problem where hardware GPE enable bits sometimes not set properly
15001during and after GPE method execution.  Result of 04/27 changes.
15002
15003Removed extra "clear all GPEs" when sleeping/waking.
15004
15005Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
15006AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
15007to
15008the new AcpiEv* calls as appropriate.
15009
15010ACPI_OS_NAME was removed from the OS-specific headers.  The default name
15011is
15012now "Microsoft Windows NT" for maximum compatibility.  However this can
15013be
15014changed by modifying the acconfig.h file.
15015
15016Allow a single invocation of AcpiInstallNotifyHandler for a handler that
15017traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
15018
15019Run _INI methods on ThermalZone objects.  This is against the ACPI
15020specification, but there is apparently ASL code in the field that has
15021these
15022_INI methods, and apparently "other" AML interpreters execute them.
15023
15024Performed a full 16/32/64 bit lint that resulted in some small changes.
15025
15026Added a sleep simulation command to the AML debugger to test sleep code.
15027
15028Code and Data Size: Current and previous core subsystem library sizes are
15029shown below.  These are the code and data sizes for the acpica.lib
15030produced
15031by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15032any ACPI driver or OSPM code.  The debug version of the code includes the
15033debug output trace mechanism and has a much larger code and data size.
15034Note
15035that these values will vary depending on the efficiency of the compiler
15036and
15037the compiler options used during generation.
15038
15039  Previous Release:
15040    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15041    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
15042  Current Release:
15043    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15044    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
15045
15046----------------------------------------
1504727 April 2004.  Summary of changes for version 20040427:
15048
150491) ACPI CA Core Subsystem:
15050
15051Completed a major overhaul of the GPE handling within ACPI CA.  There are
15052now three types of GPEs:  wake-only, runtime-only, and combination
15053wake/run.
15054The only GPEs allowed to be combination wake/run are for button-style
15055devices such as a control-method power button, control-method sleep
15056button,
15057or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
15058not
15059referenced by any _PRW methods are marked for "runtime" and hardware
15060enabled.  Any GPE that is referenced by a _PRW method is marked for
15061"wake"
15062(and disabled at runtime).  However, at sleep time, only those GPEs that
15063have been specifically enabled for wake via the AcpiEnableGpe interface
15064will
15065actually be hardware enabled.
15066
15067A new external interface has been added, AcpiSetGpeType(), that is meant
15068to
15069be used by device drivers to force a GPE to a particular type.  It will
15070be
15071especially useful for the drivers for the button devices mentioned above.
15072
15073Completed restructuring of the ACPI CA initialization sequence so that
15074default operation region handlers are installed before GPEs are
15075initialized
15076and the _PRW methods are executed.  This will prevent errors when the
15077_PRW
15078methods attempt to access system memory or I/O space.
15079
15080GPE enable/disable no longer reads the GPE enable register.  We now keep
15081the
15082enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
15083thus no longer depend on the hardware to maintain these bits.
15084
15085Always clear the wake status and fixed/GPE status bits before sleep, even
15086for state S5.
15087
15088Improved the AML debugger output for displaying the GPE blocks and their
15089current status.
15090
15091Added new strings for the _OSI method, of the form "Windows 2001 SPx"
15092where
15093x = 0,1,2,3,4.
15094
15095Fixed a problem where the physical address was incorrectly calculated
15096when
15097the Load() operator was used to directly load from an Operation Region
15098(vs.
15099loading from a Field object.)  Also added check for minimum table length
15100for
15101this case.
15102
15103Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
15104mutex release.
15105
15106Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
15107consistency with the other fields returned.
15108
15109Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
15110structure for each GPE in the system, so the size of this structure is
15111important.
15112
15113CPU stack requirement reduction:  Cleaned up the method execution and
15114object
15115evaluation paths so that now a parameter structure is passed, instead of
15116copying the various method parameters over and over again.
15117
15118In evregion.c:  Correctly exit and reenter the interpreter region if and
15119only if dispatching an operation region request to a user-installed
15120handler.
15121Do not exit/reenter when dispatching to a default handler (e.g., default
15122system memory or I/O handlers)
15123
15124
15125Notes for updating drivers for the new GPE support.  The following
15126changes
15127must be made to ACPI-related device drivers that are attached to one or
15128more
15129GPEs: (This information will be added to the ACPI CA Programmer
15130Reference.)
15131
151321) AcpiInstallGpeHandler no longer automatically enables the GPE, you
15133must
15134explicitly call AcpiEnableGpe.
151352) There is a new interface called AcpiSetGpeType. This should be called
15136before enabling the GPE.  Also, this interface will automatically disable
15137the GPE if it is currently enabled.
151383) AcpiEnableGpe no longer supports a GPE type flag.
15139
15140Specific drivers that must be changed:
151411) EC driver:
15142    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
15143AeGpeHandler, NULL);
15144    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
15145    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
15146
151472) Button Drivers (Power, Lid, Sleep):
15148Run _PRW method under parent device
15149If _PRW exists: /* This is a control-method button */
15150    Extract GPE number and possibly GpeDevice
15151    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
15152    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
15153
15154For all other devices that have _PRWs, we automatically set the GPE type
15155to
15156ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
15157This
15158must be done on a selective basis, usually requiring some kind of user
15159app
15160to allow the user to pick the wake devices.
15161
15162
15163Code and Data Size: Current and previous core subsystem library sizes are
15164shown below.  These are the code and data sizes for the acpica.lib
15165produced
15166by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15167any ACPI driver or OSPM code.  The debug version of the code includes the
15168debug output trace mechanism and has a much larger code and data size.
15169Note
15170that these values will vary depending on the efficiency of the compiler
15171and
15172the compiler options used during generation.
15173
15174  Previous Release:
15175    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15176    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15177  Current Release:
15178
15179    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15180    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
15181
15182
15183
15184----------------------------------------
1518502 April 2004.  Summary of changes for version 20040402:
15186
151871) ACPI CA Core Subsystem:
15188
15189Fixed an interpreter problem where an indirect store through an ArgX
15190parameter was incorrectly applying the "implicit conversion rules" during
15191the store.  From the ACPI specification: "If the target is a method local
15192or
15193argument (LocalX or ArgX), no conversion is performed and the result is
15194stored directly to the target".  The new behavior is to disable implicit
15195conversion during ALL stores to an ArgX.
15196
15197Changed the behavior of the _PRW method scan to ignore any and all errors
15198returned by a given _PRW.  This prevents the scan from aborting from the
15199failure of any single _PRW.
15200
15201Moved the runtime configuration parameters from the global init procedure
15202to
15203static variables in acglobal.h.  This will allow the host to override the
15204default values easily.
15205
15206Code and Data Size: Current and previous core subsystem library sizes are
15207shown below.  These are the code and data sizes for the acpica.lib
15208produced
15209by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15210any ACPI driver or OSPM code.  The debug version of the code includes the
15211debug output trace mechanism and has a much larger code and data size.
15212Note
15213that these values will vary depending on the efficiency of the compiler
15214and
15215the compiler options used during generation.
15216
15217  Previous Release:
15218    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15219    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15220  Current Release:
15221    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15222    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15223
15224
152252) iASL Compiler/Disassembler:
15226
15227iASL now fully disassembles SSDTs.  However, External() statements are
15228not
15229generated automatically for unresolved symbols at this time.  This is a
15230planned feature for future implementation.
15231
15232Fixed a scoping problem in the disassembler that occurs when the type of
15233the
15234target of a Scope() operator is overridden.  This problem caused an
15235incorrectly nested internal namespace to be constructed.
15236
15237Any warnings or errors that are emitted during disassembly are now
15238commented
15239out automatically so that the resulting file can be recompiled without
15240any
15241hand editing.
15242
15243----------------------------------------
1524426 March 2004.  Summary of changes for version 20040326:
15245
152461) ACPI CA Core Subsystem:
15247
15248Implemented support for "wake" GPEs via interaction between GPEs and the
15249_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
15250identified as a WAKE GPE and by default will no longer be enabled at
15251runtime.  Previously, we were blindly enabling all GPEs with a
15252corresponding
15253_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
15254We
15255believe this has been the cause of thousands of "spurious" GPEs on some
15256systems.
15257
15258This new GPE behavior is can be reverted to the original behavior (enable
15259ALL GPEs at runtime) via a runtime flag.
15260
15261Fixed a problem where aliased control methods could not access objects
15262properly.  The proper scope within the namespace was not initialized
15263(transferred to the target of the aliased method) before executing the
15264target method.
15265
15266Fixed a potential race condition on internal object deletion on the
15267return
15268object in AcpiEvaluateObject.
15269
15270Integrated a fix for resource descriptors where both _MEM and _MTP were
15271being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
15272wide, 0x0F instead of 0x03.)
15273
15274Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
15275preventing
15276a
15277fault in some cases.
15278
15279Updated Notify() values for debug statements in evmisc.c
15280
15281Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
15282
15283Code and Data Size: Current and previous core subsystem library sizes are
15284shown below.  These are the code and data sizes for the acpica.lib
15285produced
15286by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15287any ACPI driver or OSPM code.  The debug version of the code includes the
15288debug output trace mechanism and has a much larger code and data size.
15289Note
15290that these values will vary depending on the efficiency of the compiler
15291and
15292the compiler options used during generation.
15293
15294  Previous Release:
15295
15296    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15297    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15298  Current Release:
15299    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15300    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15301
15302----------------------------------------
1530311 March 2004.  Summary of changes for version 20040311:
15304
153051) ACPI CA Core Subsystem:
15306
15307Fixed a problem where errors occurring during the parse phase of control
15308method execution did not abort cleanly.  For example, objects created and
15309installed in the namespace were not deleted.  This caused all subsequent
15310invocations of the method to return the AE_ALREADY_EXISTS exception.
15311
15312Implemented a mechanism to force a control method to "Serialized"
15313execution
15314if the method attempts to create namespace objects. (The root of the
15315AE_ALREADY_EXISTS problem.)
15316
15317Implemented support for the predefined _OSI "internal" control method.
15318Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
15319and
15320"Windows 2001.1", and can be easily upgraded for new strings as
15321necessary.
15322This feature will allow "other" operating systems to execute the fully
15323tested, "Windows" code path through the ASL code
15324
15325Global Lock Support:  Now allows multiple acquires and releases with any
15326internal thread.  Removed concept of "owning thread" for this special
15327mutex.
15328
15329Fixed two functions that were inappropriately declaring large objects on
15330the
15331CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
15332during
15333method execution considerably.
15334
15335Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
15336S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
15337
15338Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
15339defined on the machine.
15340
15341Implemented two runtime options:  One to force all control method
15342execution
15343to "Serialized" to mimic Windows behavior, another to disable _OSI
15344support
15345if it causes problems on a given machine.
15346
15347Code and Data Size: Current and previous core subsystem library sizes are
15348shown below.  These are the code and data sizes for the acpica.lib
15349produced
15350by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15351any ACPI driver or OSPM code.  The debug version of the code includes the
15352debug output trace mechanism and has a much larger code and data size.
15353Note
15354that these values will vary depending on the efficiency of the compiler
15355and
15356the compiler options used during generation.
15357
15358  Previous Release:
15359    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15360    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15361  Current Release:
15362    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15363    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15364
153652) iASL Compiler/Disassembler:
15366
15367Fixed an array size problem for FreeBSD that would cause the compiler to
15368fault.
15369
15370----------------------------------------
1537120 February 2004.  Summary of changes for version 20040220:
15372
15373
153741) ACPI CA Core Subsystem:
15375
15376Implemented execution of _SxD methods for Device objects in the
15377GetObjectInfo interface.
15378
15379Fixed calls to _SST method to pass the correct arguments.
15380
15381Added a call to _SST on wake to restore to "working" state.
15382
15383Check for End-Of-Buffer failure case in the WalkResources interface.
15384
15385Integrated fix for 64-bit alignment issue in acglobal.h by moving two
15386structures to the beginning of the file.
15387
15388After wake, clear GPE status register(s) before enabling GPEs.
15389
15390After wake, clear/enable power button.  (Perhaps we should clear/enable
15391all
15392fixed events upon wake.)
15393
15394Fixed a couple of possible memory leaks in the Namespace manager.
15395
15396Integrated latest acnetbsd.h file.
15397
15398----------------------------------------
1539911 February 2004.  Summary of changes for version 20040211:
15400
15401
154021) ACPI CA Core Subsystem:
15403
15404Completed investigation and implementation of the call-by-reference
15405mechanism for control method arguments.
15406
15407Fixed a problem where a store of an object into an indexed package could
15408fail if the store occurs within a different method than the method that
15409created the package.
15410
15411Fixed a problem where the ToDecimal operator could return incorrect
15412results.
15413
15414Fixed a problem where the CopyObject operator could fail on some of the
15415more
15416obscure objects (e.g., Reference objects.)
15417
15418Improved the output of the Debug object to display buffer, package, and
15419index objects.
15420
15421Fixed a problem where constructs of the form "RefOf (ArgX)" did not
15422return
15423the expected result.
15424
15425Added permanent ACPI_REPORT_ERROR macros for all instances of the
15426ACPI_AML_INTERNAL exception.
15427
15428Integrated latest version of acfreebsd.h
15429
15430----------------------------------------
1543116 January 2004.  Summary of changes for version 20040116:
15432
15433The purpose of this release is primarily to update the copyright years in
15434each module, thus causing a huge number of diffs.  There are a few small
15435functional changes, however.
15436
154371) ACPI CA Core Subsystem:
15438
15439Improved error messages when there is a problem finding one or more of
15440the
15441required base ACPI tables
15442
15443Reintroduced the definition of APIC_HEADER in actbl.h
15444
15445Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
15446
15447Removed extraneous reference to NewObj in dsmthdat.c
15448
154492) iASL compiler
15450
15451Fixed a problem introduced in December that disabled the correct
15452disassembly
15453of Resource Templates
15454
15455
15456----------------------------------------
1545703 December 2003.  Summary of changes for version 20031203:
15458
154591) ACPI CA Core Subsystem:
15460
15461Changed the initialization of Operation Regions during subsystem
15462init to perform two entire walks of the ACPI namespace; The first
15463to initialize the regions themselves, the second to execute the
15464_REG methods.  This fixed some interdependencies across _REG
15465methods found on some machines.
15466
15467Fixed a problem where a Store(Local0, Local1) could simply update
15468the object reference count, and not create a new copy of the
15469object if the Local1 is uninitialized.
15470
15471Implemented support for the _SST reserved method during sleep
15472transitions.
15473
15474Implemented support to clear the SLP_TYP and SLP_EN bits when
15475waking up, this is apparently required by some machines.
15476
15477When sleeping, clear the wake status only if SleepState is not S5.
15478
15479Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
15480pointer arithmetic advanced a string pointer too far.
15481
15482Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
15483could be returned if the requested table has not been loaded.
15484
15485Within the support for IRQ resources, restructured the handling of
15486the active and edge/level bits.
15487
15488Fixed a few problems in AcpiPsxExecute() where memory could be
15489leaked under certain error conditions.
15490
15491Improved error messages for the cases where the ACPI mode could
15492not be entered.
15493
15494Code and Data Size: Current and previous core subsystem library
15495sizes are shown below.  These are the code and data sizes for the
15496acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15497these values do not include any ACPI driver or OSPM code.  The
15498debug version of the code includes the debug output trace
15499mechanism and has a much larger code and data size.  Note that
15500these values will vary depending on the efficiency of the compiler
15501and the compiler options used during generation.
15502
15503  Previous Release (20031029):
15504    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15505    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15506  Current Release:
15507    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15508    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15509
155102) iASL Compiler/Disassembler:
15511
15512Implemented a fix for the iASL disassembler where a bad index was
15513generated.  This was most noticeable on 64-bit platforms
15514
15515
15516----------------------------------------
1551729 October 2003.  Summary of changes for version 20031029:
15518
155191) ACPI CA Core Subsystem:
15520
15521
15522Fixed a problem where a level-triggered GPE with an associated
15523_Lxx control method was incorrectly cleared twice.
15524
15525Fixed a problem with the Field support code where an access can
15526occur beyond the end-of-region if the field is non-aligned but
15527extends to the very end of the parent region (resulted in an
15528AE_AML_REGION_LIMIT exception.)
15529
15530Fixed a problem with ACPI Fixed Events where an RT Clock handler
15531would not get invoked on an RTC event.  The RTC event bitmasks for
15532the PM1 registers were not being initialized properly.
15533
15534Implemented support for executing _STA and _INI methods for
15535Processor objects.  Although this is currently not part of the
15536ACPI specification, there is existing ASL code that depends on the
15537init-time execution of these methods.
15538
15539Implemented and deployed a GetDescriptorName function to decode
15540the various types of internal descriptors.  Guards against null
15541descriptors during debug output also.
15542
15543Implemented and deployed a GetNodeName function to extract the 4-
15544character namespace node name.  This function simplifies the debug
15545and error output, as well as guarding against null pointers during
15546output.
15547
15548Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
15549simplify the debug and error output of 64-bit integers.  This
15550macro replaces the HIDWORD and LODWORD macros for dumping these
15551integers.
15552
15553Updated the implementation of the Stall() operator to only call
15554AcpiOsStall(), and also return an error if the operand is larger
15555than 255.  This preserves the required behavior of not
15556relinquishing the processor, as would happen if AcpiOsSleep() was
15557called for "long stalls".
15558
15559Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
15560initialized are now treated as NOOPs.
15561
15562Cleaned up a handful of warnings during 64-bit generation.
15563
15564Fixed a reported error where and incorrect GPE number was passed
15565to the GPE dispatch handler.  This value is only used for error
15566output, however.  Used this opportunity to clean up and streamline
15567the GPE dispatch code.
15568
15569Code and Data Size: Current and previous core subsystem library
15570sizes are shown below.  These are the code and data sizes for the
15571acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15572these values do not include any ACPI driver or OSPM code.  The
15573
15574debug version of the code includes the debug output trace
15575mechanism and has a much larger code and data size.  Note that
15576these values will vary depending on the efficiency of the compiler
15577and the compiler options used during generation.
15578
15579  Previous Release (20031002):
15580    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15581    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15582  Current Release:
15583    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15584    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15585
15586
155872) iASL Compiler/Disassembler:
15588
15589Updated the iASL compiler to return an error if the operand to the
15590Stall() operator is larger than 255.
15591
15592
15593----------------------------------------
1559402 October 2003.  Summary of changes for version 20031002:
15595
15596
155971) ACPI CA Core Subsystem:
15598
15599Fixed a problem with Index Fields where the index was not
15600incremented for fields that require multiple writes to the
15601index/data registers (Fields that are wider than the data
15602register.)
15603
15604Fixed a problem with all Field objects where a write could go
15605beyond the end-of-field if the field was larger than the access
15606granularity and therefore required multiple writes to complete the
15607request.  An extra write beyond the end of the field could happen
15608inadvertently.
15609
15610Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
15611would incorrectly be returned if the width of the Data Register
15612was larger than the specified field access width.
15613
15614Completed fixes for LoadTable() and Unload() and verified their
15615operation.  Implemented full support for the "DdbHandle" object
15616throughout the ACPI CA subsystem.
15617
15618Implemented full support for the MADT and ECDT tables in the ACPI
15619CA header files.  Even though these tables are not directly
15620consumed by ACPI CA, the header definitions are useful for ACPI
15621device drivers.
15622
15623Integrated resource descriptor fixes posted to the Linux ACPI
15624list.  This included checks for minimum descriptor length, and
15625support for trailing NULL strings within descriptors that have
15626optional string elements.
15627
15628Code and Data Size: Current and previous core subsystem library
15629sizes are shown below.  These are the code and data sizes for the
15630acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15631these values do not include any ACPI driver or OSPM code.  The
15632debug version of the code includes the debug output trace
15633mechanism and has a much larger code and data size.  Note that
15634these values will vary depending on the efficiency of the compiler
15635and the compiler options used during generation.
15636
15637  Previous Release (20030918):
15638    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15639    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15640  Current Release:
15641    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15642    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15643
15644
156452) iASL Compiler:
15646
15647Implemented detection of non-ASCII characters within the input
15648source ASL file.  This catches attempts to compile binary (AML)
15649files early in the compile, with an informative error message.
15650
15651Fixed a problem where the disassembler would fault if the output
15652filename could not be generated or if the output file could not be
15653opened.
15654
15655----------------------------------------
1565618 September 2003.  Summary of changes for version 20030918:
15657
15658
156591) ACPI CA Core Subsystem:
15660
15661Found and fixed a longstanding problem with the late execution of
15662the various deferred AML opcodes (such as Operation Regions,
15663Buffer Fields, Buffers, and Packages).  If the name string
15664specified for the name of the new object placed the object in a
15665scope other than the current scope, the initialization/execution
15666of the opcode failed.  The solution to this problem was to
15667implement a mechanism where the late execution of such opcodes
15668does not attempt to lookup/create the name a second time in an
15669incorrect scope.  This fixes the "region size computed
15670incorrectly" problem.
15671
15672Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
15673Global Lock AE_BAD_PARAMETER error.
15674
15675Fixed several 64-bit issues with prototypes, casting and data
15676types.
15677
15678Removed duplicate prototype from acdisasm.h
15679
15680Fixed an issue involving EC Operation Region Detach (Shaohua Li)
15681
15682Code and Data Size: Current and previous core subsystem library
15683sizes are shown below.  These are the code and data sizes for the
15684acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15685these values do not include any ACPI driver or OSPM code.  The
15686debug version of the code includes the debug output trace
15687mechanism and has a much larger code and data size.  Note that
15688these values will vary depending on the efficiency of the compiler
15689and the compiler options used during generation.
15690
15691  Previous Release:
15692
15693    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15694    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15695  Current Release:
15696    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15697    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15698
15699
157002) Linux:
15701
15702Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
15703correct sleep time in seconds.
15704
15705----------------------------------------
1570614 July 2003.  Summary of changes for version 20030619:
15707
157081) ACPI CA Core Subsystem:
15709
15710Parse SSDTs in order discovered, as opposed to reverse order
15711(Hrvoje Habjanic)
15712
15713Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
15714Klausner,
15715   Nate Lawson)
15716
15717
157182) Linux:
15719
15720Dynamically allocate SDT list (suggested by Andi Kleen)
15721
15722proc function return value cleanups (Andi Kleen)
15723
15724Correctly handle NMI watchdog during long stalls (Andrew Morton)
15725
15726Make it so acpismp=force works (reported by Andrew Morton)
15727
15728
15729----------------------------------------
1573019 June 2003.  Summary of changes for version 20030619:
15731
157321) ACPI CA Core Subsystem:
15733
15734Fix To/FromBCD, eliminating the need for an arch-specific #define.
15735
15736Do not acquire a semaphore in the S5 shutdown path.
15737
15738Fix ex_digits_needed for 0. (Takayoshi Kochi)
15739
15740Fix sleep/stall code reversal. (Andi Kleen)
15741
15742Revert a change having to do with control method calling
15743semantics.
15744
157452) Linux:
15746
15747acpiphp update (Takayoshi Kochi)
15748
15749Export acpi_disabled for sonypi (Stelian Pop)
15750
15751Mention acpismp=force in config help
15752
15753Re-add acpitable.c and acpismp=force. This improves backwards
15754
15755compatibility and also cleans up the code to a significant degree.
15756
15757Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
15758
15759----------------------------------------
1576022 May 2003.  Summary of changes for version 20030522:
15761
157621) ACPI CA Core Subsystem:
15763
15764Found and fixed a reported problem where an AE_NOT_FOUND error
15765occurred occasionally during _BST evaluation.  This turned out to
15766be an Owner ID allocation issue where a called method did not get
15767a new ID assigned to it.  Eventually, (after 64k calls), the Owner
15768ID UINT16 would wraparound so that the ID would be the same as the
15769caller's and the called method would delete the caller's
15770namespace.
15771
15772Implemented extended error reporting for control methods that are
15773aborted due to a run-time exception.  Output includes the exact
15774AML instruction that caused the method abort, a dump of the method
15775locals and arguments at the time of the abort, and a trace of all
15776nested control method calls.
15777
15778Modified the interpreter to allow the creation of buffers of zero
15779length from the AML code. Implemented new code to ensure that no
15780attempt is made to actually allocate a memory buffer (of length
15781zero) - instead, a simple buffer object with a NULL buffer pointer
15782and length zero is created.  A warning is no longer issued when
15783the AML attempts to create a zero-length buffer.
15784
15785Implemented a workaround for the "leading asterisk issue" in
15786_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
15787asterisk is automatically removed if present in any HID, UID, or
15788CID strings.  The iASL compiler will still flag this asterisk as
15789an error, however.
15790
15791Implemented full support for _CID methods that return a package of
15792multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
15793now additionally returns a device _CID list if present.  This
15794required a change to the external interface in order to pass an
15795ACPI_BUFFER object as a parameter since the _CID list is of
15796variable length.
15797
15798Fixed a problem with the new AE_SAME_HANDLER exception where
15799handler initialization code did not know about this exception.
15800
15801Code and Data Size: Current and previous core subsystem library
15802sizes are shown below.  These are the code and data sizes for the
15803acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15804these values do not include any ACPI driver or OSPM code.  The
15805debug version of the code includes the debug output trace
15806mechanism and has a much larger code and data size.  Note that
15807these values will vary depending on the efficiency of the compiler
15808and the compiler options used during generation.
15809
15810  Previous Release (20030509):
15811    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15812    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15813  Current Release:
15814    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15815    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15816
15817
158182) Linux:
15819
15820Fixed a bug in which we would reinitialize the ACPI interrupt
15821after it was already working, thus disabling all ACPI and the IRQs
15822for any other device sharing the interrupt. (Thanks to Stian
15823Jordet)
15824
15825Toshiba driver update (John Belmonte)
15826
15827Return only 0 or 1 for our interrupt handler status (Andrew
15828Morton)
15829
15830
158313) iASL Compiler:
15832
15833Fixed a reported problem where multiple (nested) ElseIf()
15834statements were not handled correctly by the compiler, resulting
15835in incorrect warnings and incorrect AML code.  This was a problem
15836in both the ASL parser and the code generator.
15837
15838
158394) Documentation:
15840
15841Added changes to existing interfaces, new exception codes, and new
15842text concerning reference count object management versus garbage
15843collection.
15844
15845----------------------------------------
1584609 May 2003.  Summary of changes for version 20030509.
15847
15848
158491) ACPI CA Core Subsystem:
15850
15851Changed the subsystem initialization sequence to hold off
15852installation of address space handlers until the hardware has been
15853initialized and the system has entered ACPI mode.  This is because
15854the installation of space handlers can cause _REG methods to be
15855run.  Previously, the _REG methods could potentially be run before
15856ACPI mode was enabled.
15857
15858Fixed some memory leak issues related to address space handler and
15859notify handler installation.  There were some problems with the
15860reference count mechanism caused by the fact that the handler
15861objects are shared across several namespace objects.
15862
15863Fixed a reported problem where reference counts within the
15864namespace were not properly updated when named objects created by
15865method execution were deleted.
15866
15867Fixed a reported problem where multiple SSDTs caused a deletion
15868issue during subsystem termination.  Restructured the table data
15869structures to simplify the linked lists and the related code.
15870
15871Fixed a problem where the table ID associated with secondary
15872tables (SSDTs) was not being propagated into the namespace objects
15873created by those tables.  This would only present a problem for
15874tables that are unloaded at run-time, however.
15875
15876Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
15877type as the length parameter (instead of UINT32).
15878
15879Solved a long-standing problem where an ALREADY_EXISTS error
15880appears on various systems.  This problem could happen when there
15881are multiple PCI_Config operation regions under a single PCI root
15882bus.  This doesn't happen very frequently, but there are some
15883systems that do this in the ASL.
15884
15885Fixed a reported problem where the internal DeleteNode function
15886was incorrectly handling the case where a namespace node was the
15887first in the parent's child list, and had additional peers (not
15888the only child, but first in the list of children.)
15889
15890Code and Data Size: Current core subsystem library sizes are shown
15891below.  These are the code and data sizes for the acpica.lib
15892produced by the Microsoft Visual C++ 6.0 compiler, and these
15893values do not include any ACPI driver or OSPM code.  The debug
15894version of the code includes the debug output trace mechanism and
15895has a much larger code and data size.  Note that these values will
15896vary depending on the efficiency of the compiler and the compiler
15897options used during generation.
15898
15899  Previous Release
15900    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
15901    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
15902  Current Release:
15903    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15904    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15905
15906
159072) Linux:
15908
15909Allow ":" in OS override string (Ducrot Bruno)
15910
15911Kobject fix (Greg KH)
15912
15913
159143 iASL Compiler/Disassembler:
15915
15916Fixed a problem in the generation of the C source code files (AML
15917is emitted in C source statements for BIOS inclusion) where the
15918Ascii dump that appears within a C comment at the end of each line
15919could cause a compile time error if the AML sequence happens to
15920have an open comment or close comment sequence embedded.
15921
15922
15923----------------------------------------
1592424 April 2003.  Summary of changes for version 20030424.
15925
15926
159271) ACPI CA Core Subsystem:
15928
15929Support for big-endian systems has been implemented.  Most of the
15930support has been invisibly added behind big-endian versions of the
15931ACPI_MOVE_* macros.
15932
15933Fixed a problem in AcpiHwDisableGpeBlock() and
15934AcpiHwClearGpeBlock() where an incorrect offset was passed to the
15935low level hardware write routine.  The offset parameter was
15936actually eliminated from the low level read/write routines because
15937they had become obsolete.
15938
15939Fixed a problem where a handler object was deleted twice during
15940the removal of a fixed event handler.
15941
15942
159432) Linux:
15944
15945A fix for SMP systems with link devices was contributed by
15946
15947Compaq's Dan Zink.
15948
15949(2.5) Return whether we handled the interrupt in our IRQ handler.
15950(Linux ISRs no longer return void, so we can propagate the handler
15951return value from the ACPI CA core back to the OS.)
15952
15953
15954
159553) Documentation:
15956
15957The ACPI CA Programmer Reference has been updated to reflect new
15958interfaces and changes to existing interfaces.
15959
15960----------------------------------------
1596128 March 2003.  Summary of changes for version 20030328.
15962
159631) ACPI CA Core Subsystem:
15964
15965The GPE Block Device support has been completed.  New interfaces
15966are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
15967interfaces (enable, disable, clear, getstatus) have been split
15968into separate interfaces for Fixed Events and General Purpose
15969Events (GPEs) in order to support GPE Block Devices properly.
15970
15971Fixed a problem where the error message "Failed to acquire
15972semaphore" would appear during operations on the embedded
15973controller (EC).
15974
15975Code and Data Size: Current core subsystem library sizes are shown
15976below.  These are the code and data sizes for the acpica.lib
15977produced by the Microsoft Visual C++ 6.0 compiler, and these
15978values do not include any ACPI driver or OSPM code.  The debug
15979version of the code includes the debug output trace mechanism and
15980has a much larger code and data size.  Note that these values will
15981vary depending on the efficiency of the compiler and the compiler
15982options used during generation.
15983
15984  Previous Release
15985    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
15986    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
15987  Current Release:
15988    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
15989    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
15990
15991
15992----------------------------------------
1599328 February 2003.  Summary of changes for version 20030228.
15994
15995
159961) ACPI CA Core Subsystem:
15997
15998The GPE handling and dispatch code has been completely overhauled
15999in preparation for support of GPE Block Devices (ID ACPI0006).
16000This affects internal data structures and code only; there should
16001be no differences visible externally.  One new file has been
16002added, evgpeblk.c
16003
16004The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
16005fields that are used to determine the GPE block lengths.  The
16006REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
16007structures are ignored.  This is per the ACPI specification but it
16008isn't very clear.  The full 256 Block 0/1 GPEs are now supported
16009(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
16010
16011In the SCI interrupt handler, removed the read of the PM1_CONTROL
16012register to look at the SCI_EN bit.  On some machines, this read
16013causes an SMI event and greatly slows down SCI events.  (This may
16014in fact be the cause of slow battery status response on some
16015systems.)
16016
16017Fixed a problem where a store of a NULL string to a package object
16018could cause the premature deletion of the object.  This was seen
16019during execution of the battery _BIF method on some systems,
16020resulting in no battery data being returned.
16021
16022Added AcpiWalkResources interface to simplify parsing of resource
16023lists.
16024
16025Code and Data Size: Current core subsystem library sizes are shown
16026below.  These are the code and data sizes for the acpica.lib
16027produced by the Microsoft Visual C++ 6.0 compiler, and these
16028values do not include any ACPI driver or OSPM code.  The debug
16029version of the code includes the debug output trace mechanism and
16030has a much larger code and data size.  Note that these values will
16031vary depending on the efficiency of the compiler and the compiler
16032options used during generation.
16033
16034  Previous Release
16035    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16036    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16037  Current Release:
16038    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
16039    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
16040
16041
160422) Linux
16043
16044S3 fixes (Ole Rohne)
16045
16046Update ACPI PHP driver with to use new acpi_walk_resource API
16047(Bjorn Helgaas)
16048
16049Add S4BIOS support (Pavel Machek)
16050
16051Map in entire table before performing checksum (John Stultz)
16052
16053Expand the mem= cmdline to allow the specification of reserved and
16054ACPI DATA blocks (Pavel Machek)
16055
16056Never use ACPI on VISWS
16057
16058Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
16059
16060Revert a change that allowed P_BLK lengths to be 4 or 5. This is
16061causing us to think that some systems support C2 when they really
16062don't.
16063
16064Do not count processor objects for non-present CPUs (Thanks to
16065Dominik Brodowski)
16066
16067
160683) iASL Compiler:
16069
16070Fixed a problem where ASL include files could not be found and
16071opened.
16072
16073Added support for the _PDC reserved name.
16074
16075
16076----------------------------------------
1607722 January 2003.  Summary of changes for version 20030122.
16078
16079
160801) ACPI CA Core Subsystem:
16081
16082Added a check for constructs of the form:  Store (Local0, Local0)
16083where Local0 is not initialized.  Apparently, some BIOS
16084programmers believe that this is a NOOP.  Since this store doesn't
16085do anything anyway, the new prototype behavior will ignore this
16086error.  This is a case where we can relax the strict checking in
16087the interpreter in the name of compatibility.
16088
16089
160902) Linux
16091
16092The AcpiSrc Source Conversion Utility has been released with the
16093Linux package for the first time.  This is the utility that is
16094used to convert the ACPI CA base source code to the Linux version.
16095
16096(Both) Handle P_BLK lengths shorter than 6 more gracefully
16097
16098(Both) Move more headers to include/acpi, and delete an unused
16099header.
16100
16101(Both) Move drivers/acpi/include directory to include/acpi
16102
16103(Both) Boot functions don't use cmdline, so don't pass it around
16104
16105(Both) Remove include of unused header (Adrian Bunk)
16106
16107(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
16108the
16109former now also includes the latter, acpiphp.h only needs the one,
16110now.
16111
16112(2.5) Make it possible to select method of bios restoring after S3
16113resume. [=> no more ugly ifdefs] (Pavel Machek)
16114
16115(2.5) Make proc write interfaces work (Pavel Machek)
16116
16117(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
16118
16119(2.5) Break out ACPI Perf code into its own module, under cpufreq
16120(Dominik Brodowski)
16121
16122(2.4) S4BIOS support (Ducrot Bruno)
16123
16124(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
16125Visinoni)
16126
16127
161283) iASL Compiler:
16129
16130Added support to disassemble SSDT and PSDTs.
16131
16132Implemented support to obtain SSDTs from the Windows registry if
16133available.
16134
16135
16136----------------------------------------
1613709 January 2003.  Summary of changes for version 20030109.
16138
161391) ACPI CA Core Subsystem:
16140
16141Changed the behavior of the internal Buffer-to-String conversion
16142function.  The current ACPI specification states that the contents
16143of the buffer are "converted to a string of two-character
16144hexadecimal numbers, each separated by a space".  Unfortunately,
16145this definition is not backwards compatible with existing ACPI 1.0
16146implementations (although the behavior was not defined in the ACPI
161471.0 specification).  The new behavior simply copies data from the
16148buffer to the string until a null character is found or the end of
16149the buffer is reached.  The new String object is always null
16150terminated.  This problem was seen during the generation of _BIF
16151battery data where incorrect strings were returned for battery
16152type, etc.  This will also require an errata to the ACPI
16153specification.
16154
16155Renamed all instances of NATIVE_UINT and NATIVE_INT to
16156ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
16157
16158Copyright in all module headers (both Linux and non-Linux) has be
16159updated to 2003.
16160
16161Code and Data Size: Current core subsystem library sizes are shown
16162below.  These are the code and data sizes for the acpica.lib
16163produced by the Microsoft Visual C++ 6.0 compiler, and these
16164values do not include any ACPI driver or OSPM code.  The debug
16165version of the code includes the debug output trace mechanism and
16166has a much larger code and data size.  Note that these values will
16167vary depending on the efficiency of the compiler and the compiler
16168options used during generation.
16169
16170  Previous Release
16171    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16172    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16173  Current Release:
16174    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16175    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16176
16177
161782) Linux
16179
16180Fixed an oops on module insertion/removal (Matthew Tippett)
16181
16182(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
16183
16184(2.5) Replace pr_debug (Randy Dunlap)
16185
16186(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
16187
16188(Both) Eliminate spawning of thread from timer callback, in favor
16189of schedule_work()
16190
16191(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
16192
16193(Both) Added define for Fixed Function HW region (Matthew Wilcox)
16194
16195(Both) Add missing statics to button.c (Pavel Machek)
16196
16197Several changes have been made to the source code translation
16198utility that generates the Linux Code in order to make the code
16199more "Linux-like":
16200
16201All typedefs on structs and unions have been removed in keeping
16202with the Linux coding style.
16203
16204Removed the non-Linux SourceSafe module revision number from each
16205module header.
16206
16207Completed major overhaul of symbols to be lowercase for linux.
16208Doubled the number of symbols that are lowercase.
16209
16210Fixed a problem where identifiers within procedure headers and
16211within quotes were not fully lower cased (they were left with a
16212starting capital.)
16213
16214Some C macros whose only purpose is to allow the generation of 16-
16215bit code are now completely removed in the Linux code, increasing
16216readability and maintainability.
16217
16218----------------------------------------
16219
1622012 December 2002.  Summary of changes for version 20021212.
16221
16222
162231) ACPI CA Core Subsystem:
16224
16225Fixed a problem where the creation of a zero-length AML Buffer
16226would cause a fault.
16227
16228Fixed a problem where a Buffer object that pointed to a static AML
16229buffer (in an ACPI table) could inadvertently be deleted, causing
16230memory corruption.
16231
16232Fixed a problem where a user buffer (passed in to the external
16233ACPI CA interfaces) could be overwritten if the buffer was too
16234small to complete the operation, causing memory corruption.
16235
16236Fixed a problem in the Buffer-to-String conversion code where a
16237string of length one was always returned, regardless of the size
16238of the input Buffer object.
16239
16240Removed the NATIVE_CHAR data type across the entire source due to
16241lack of need and lack of consistent use.
16242
16243Code and Data Size: Current core subsystem library sizes are shown
16244below.  These are the code and data sizes for the acpica.lib
16245produced by the Microsoft Visual C++ 6.0 compiler, and these
16246values do not include any ACPI driver or OSPM code.  The debug
16247version of the code includes the debug output trace mechanism and
16248has a much larger code and data size.  Note that these values will
16249vary depending on the efficiency of the compiler and the compiler
16250options used during generation.
16251
16252  Previous Release
16253    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16254    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16255  Current Release:
16256    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16257    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16258
16259
16260----------------------------------------
1626105 December 2002.  Summary of changes for version 20021205.
16262
162631) ACPI CA Core Subsystem:
16264
16265Fixed a problem where a store to a String or Buffer object could
16266cause corruption of the DSDT if the object type being stored was
16267the same as the target object type and the length of the object
16268being stored was equal to or smaller than the original (existing)
16269target object.  This was seen to cause corruption of battery _BIF
16270buffers if the _BIF method modified the buffer on the fly.
16271
16272Fixed a problem where an internal error was generated if a control
16273method invocation was used in an OperationRegion, Buffer, or
16274Package declaration.  This was caused by the deferred parsing of
16275the control method and thus the deferred creation of the internal
16276method object.  The solution to this problem was to create the
16277internal method object at the moment the method is encountered in
16278the first pass - so that subsequent references to the method will
16279able to obtain the required parameter count and thus properly
16280parse the method invocation.  This problem presented itself as an
16281AE_AML_INTERNAL during the pass 1 parse phase during table load.
16282
16283Fixed a problem where the internal String object copy routine did
16284not always allocate sufficient memory for the target String object
16285and caused memory corruption.  This problem was seen to cause
16286"Allocation already present in list!" errors as memory allocation
16287became corrupted.
16288
16289Implemented a new function for the evaluation of namespace objects
16290that allows the specification of the allowable return object
16291types.  This simplifies a lot of code that checks for a return
16292object of one or more specific objects returned from the
16293evaluation (such as _STA, etc.)  This may become and external
16294function if it would be useful to ACPI-related drivers.
16295
16296Completed another round of prefixing #defines with "ACPI_" for
16297clarity.
16298
16299Completed additional code restructuring to allow more modular
16300linking for iASL compiler and AcpiExec.  Several files were split
16301creating new files.  New files:  nsparse.c dsinit.c evgpe.c
16302
16303Implemented an abort mechanism to terminate an executing control
16304method via the AML debugger.  This feature is useful for debugging
16305control methods that depend (wait) for specific hardware
16306responses.
16307
16308Code and Data Size: Current core subsystem library sizes are shown
16309below.  These are the code and data sizes for the acpica.lib
16310produced by the Microsoft Visual C++ 6.0 compiler, and these
16311values do not include any ACPI driver or OSPM code.  The debug
16312version of the code includes the debug output trace mechanism and
16313has a much larger code and data size.  Note that these values will
16314vary depending on the efficiency of the compiler and the compiler
16315options used during generation.
16316
16317  Previous Release
16318    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16319    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16320  Current Release:
16321    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16322    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16323
16324
163252) iASL Compiler/Disassembler
16326
16327Fixed a compiler code generation problem for "Interrupt" Resource
16328Descriptors.  If specified in the ASL, the optional "Resource
16329Source Index" and "Resource Source" fields were not inserted into
16330the correct location within the AML resource descriptor, creating
16331an invalid descriptor.
16332
16333Fixed a disassembler problem for "Interrupt" resource descriptors.
16334The optional "Resource Source Index" and "Resource Source" fields
16335were ignored.
16336
16337
16338----------------------------------------
1633922 November 2002.  Summary of changes for version 20021122.
16340
16341
163421) ACPI CA Core Subsystem:
16343
16344Fixed a reported problem where an object stored to a Method Local
16345or Arg was not copied to a new object during the store - the
16346object pointer was simply copied to the Local/Arg.  This caused
16347all subsequent operations on the Local/Arg to also affect the
16348original source of the store operation.
16349
16350Fixed a problem where a store operation to a Method Local or Arg
16351was not completed properly if the Local/Arg contained a reference
16352(from RefOf) to a named field.  The general-purpose store-to-
16353namespace-node code is now used so that this case is handled
16354automatically.
16355
16356Fixed a problem where the internal object copy routine would cause
16357a protection fault if the object being copied was a Package and
16358contained either 1) a NULL package element or 2) a nested sub-
16359package.
16360
16361Fixed a problem with the GPE initialization that resulted from an
16362ambiguity in the ACPI specification.  One section of the
16363specification states that both the address and length of the GPE
16364block must be zero if the block is not supported.  Another section
16365implies that only the address need be zero if the block is not
16366supported.  The code has been changed so that both the address and
16367the length must be non-zero to indicate a valid GPE block (i.e.,
16368if either the address or the length is zero, the GPE block is
16369invalid.)
16370
16371Code and Data Size: Current core subsystem library sizes are shown
16372below.  These are the code and data sizes for the acpica.lib
16373produced by the Microsoft Visual C++ 6.0 compiler, and these
16374values do not include any ACPI driver or OSPM code.  The debug
16375version of the code includes the debug output trace mechanism and
16376has a much larger code and data size.  Note that these values will
16377vary depending on the efficiency of the compiler and the compiler
16378options used during generation.
16379
16380  Previous Release
16381    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16382    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16383  Current Release:
16384    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16385    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16386
16387
163882) Linux
16389
16390Cleaned up EC driver. Exported an external EC read/write
16391interface. By going through this, other drivers (most notably
16392sonypi) will be able to serialize access to the EC.
16393
16394
163953) iASL Compiler/Disassembler
16396
16397Implemented support to optionally generate include files for both
16398ASM and C (the -i switch).  This simplifies BIOS development by
16399automatically creating include files that contain external
16400declarations for the symbols that are created within the
16401
16402(optionally generated) ASM and C AML source files.
16403
16404
16405----------------------------------------
1640615 November 2002.  Summary of changes for version 20021115.
16407
164081) ACPI CA Core Subsystem:
16409
16410Fixed a memory leak problem where an error during resolution of
16411
16412method arguments during a method invocation from another method
16413failed to cleanup properly by deleting all successfully resolved
16414argument objects.
16415
16416Fixed a problem where the target of the Index() operator was not
16417correctly constructed if the source object was a package.  This
16418problem has not been detected because the use of a target operand
16419with Index() is very rare.
16420
16421Fixed a problem with the Index() operator where an attempt was
16422made to delete the operand objects twice.
16423
16424Fixed a problem where an attempt was made to delete an operand
16425twice during execution of the CondRefOf() operator if the target
16426did not exist.
16427
16428Implemented the first of perhaps several internal create object
16429functions that create and initialize a specific object type.  This
16430consolidates duplicated code wherever the object is created, thus
16431shrinking the size of the subsystem.
16432
16433Implemented improved debug/error messages for errors that occur
16434during nested method invocations.  All executing method pathnames
16435are displayed (with the error) as the call stack is unwound - thus
16436simplifying debug.
16437
16438Fixed a problem introduced in the 10/02 release that caused
16439premature deletion of a buffer object if a buffer was used as an
16440ASL operand where an integer operand is required (Thus causing an
16441implicit object conversion from Buffer to Integer.)  The change in
16442the 10/02 release was attempting to fix a memory leak (albeit
16443incorrectly.)
16444
16445Code and Data Size: Current core subsystem library sizes are shown
16446below.  These are the code and data sizes for the acpica.lib
16447produced by the Microsoft Visual C++ 6.0 compiler, and these
16448values do not include any ACPI driver or OSPM code.  The debug
16449version of the code includes the debug output trace mechanism and
16450has a much larger code and data size.  Note that these values will
16451vary depending on the efficiency of the compiler and the compiler
16452options used during generation.
16453
16454  Previous Release
16455    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16456    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16457  Current Release:
16458    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16459    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16460
16461
164622) Linux
16463
16464Changed the implementation of the ACPI semaphores to use down()
16465instead of down_interruptable().  It is important that the
16466execution of ACPI control methods not be interrupted by signals.
16467Methods must run to completion, or the system may be left in an
16468unknown/unstable state.
16469
16470Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
16471(Shawn Starr)
16472
16473
164743) iASL Compiler/Disassembler
16475
16476
16477Changed the default location of output files.  All output files
16478are now placed in the current directory by default instead of in
16479the directory of the source file.  This change may affect some
16480existing makefiles, but it brings the behavior of the compiler in
16481line with other similar tools.  The location of the output files
16482can be overridden with the -p command line switch.
16483
16484
16485----------------------------------------
1648611 November 2002.  Summary of changes for version 20021111.
16487
16488
164890) ACPI Specification 2.0B is released and is now available at:
16490http://www.acpi.info/index.html
16491
16492
164931) ACPI CA Core Subsystem:
16494
16495Implemented support for the ACPI 2.0 SMBus Operation Regions.
16496This includes the early detection and handoff of the request to
16497the SMBus region handler (avoiding all of the complex field
16498support code), and support for the bidirectional return packet
16499from an SMBus write operation.  This paves the way for the
16500development of SMBus drivers in each host operating system.
16501
16502Fixed a problem where the semaphore WAIT_FOREVER constant was
16503defined as 32 bits, but must be 16 bits according to the ACPI
16504specification.  This had the side effect of causing ASL
16505Mutex/Event timeouts even though the ASL code requested a wait
16506forever.  Changed all internal references to the ACPI timeout
16507parameter to 16 bits to prevent future problems.  Changed the name
16508of WAIT_FOREVER to ACPI_WAIT_FOREVER.
16509
16510Code and Data Size: Current core subsystem library sizes are shown
16511below.  These are the code and data sizes for the acpica.lib
16512produced by the Microsoft Visual C++ 6.0 compiler, and these
16513values do not include any ACPI driver or OSPM code.  The debug
16514version of the code includes the debug output trace mechanism and
16515has a much larger code and data size.  Note that these values will
16516vary depending on the efficiency of the compiler and the compiler
16517options used during generation.
16518
16519  Previous Release
16520    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16521    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16522  Current Release:
16523    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16524    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16525
16526
165272) Linux
16528
16529Module loading/unloading fixes (John Cagle)
16530
16531
165323) iASL Compiler/Disassembler
16533
16534Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
16535
16536Implemented support for the disassembly of all SMBus protocol
16537keywords (SMBQuick, SMBWord, etc.)
16538
16539----------------------------------------
1654001 November 2002.  Summary of changes for version 20021101.
16541
16542
165431) ACPI CA Core Subsystem:
16544
16545Fixed a problem where platforms that have a GPE1 block but no GPE0
16546block were not handled correctly.  This resulted in a "GPE
16547overlap" error message.  GPE0 is no longer required.
16548
16549Removed code added in the previous release that inserted nodes
16550into the namespace in alphabetical order.  This caused some side-
16551effects on various machines.  The root cause of the problem is
16552still under investigation since in theory, the internal ordering
16553of the namespace nodes should not matter.
16554
16555
16556Enhanced error reporting for the case where a named object is not
16557found during control method execution.  The full ACPI namepath
16558(name reference) of the object that was not found is displayed in
16559this case.
16560
16561Note: as a result of the overhaul of the namespace object types in
16562the previous release, the namespace nodes for the predefined
16563scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
16564instead of ACPI_TYPE_ANY.  This simplifies the namespace
16565management code but may affect code that walks the namespace tree
16566looking for specific object types.
16567
16568Code and Data Size: Current core subsystem library sizes are shown
16569below.  These are the code and data sizes for the acpica.lib
16570produced by the Microsoft Visual C++ 6.0 compiler, and these
16571values do not include any ACPI driver or OSPM code.  The debug
16572version of the code includes the debug output trace mechanism and
16573has a much larger code and data size.  Note that these values will
16574vary depending on the efficiency of the compiler and the compiler
16575options used during generation.
16576
16577  Previous Release
16578    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16579    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16580  Current Release:
16581    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16582    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16583
16584
165852) Linux
16586
16587Fixed a problem introduced in the previous release where the
16588Processor and Thermal objects were not recognized and installed in
16589/proc.  This was related to the scope type change described above.
16590
16591
165923) iASL Compiler/Disassembler
16593
16594Implemented the -g option to get all of the required ACPI tables
16595from the registry and save them to files (Windows version of the
16596compiler only.)  The required tables are the FADT, FACS, and DSDT.
16597
16598Added ACPI table checksum validation during table disassembly in
16599order to catch corrupted tables.
16600
16601
16602----------------------------------------
1660322 October 2002.  Summary of changes for version 20021022.
16604
166051) ACPI CA Core Subsystem:
16606
16607Implemented a restriction on the Scope operator that the target
16608must already exist in the namespace at the time the operator is
16609encountered (during table load or method execution).  In other
16610words, forward references are not allowed and Scope() cannot
16611create a new object. This changes the previous behavior where the
16612interpreter would create the name if not found.  This new behavior
16613correctly enables the search-to-root algorithm during namespace
16614lookup of the target name.  Because of this upsearch, this fixes
16615the known Compaq _SB_.OKEC problem and makes both the AML
16616interpreter and iASL compiler compatible with other ACPI
16617implementations.
16618
16619Completed a major overhaul of the internal ACPI object types for
16620the ACPI Namespace and the associated operand objects.  Many of
16621these types had become obsolete with the introduction of the two-
16622pass namespace load.  This cleanup simplifies the code and makes
16623the entire namespace load mechanism much clearer and easier to
16624understand.
16625
16626Improved debug output for tracking scope opening/closing to help
16627diagnose scoping issues.  The old scope name as well as the new
16628scope name are displayed.  Also improved error messages for
16629problems with ASL Mutex objects and error messages for GPE
16630problems.
16631
16632Cleaned up the namespace dump code, removed obsolete code.
16633
16634All string output (for all namespace/object dumps) now uses the
16635common ACPI string output procedure which handles escapes properly
16636and does not emit non-printable characters.
16637
16638Fixed some issues with constants in the 64-bit version of the
16639local C library (utclib.c)
16640
16641
166422) Linux
16643
16644EC Driver:  No longer attempts to acquire the Global Lock at
16645interrupt level.
16646
16647
166483) iASL Compiler/Disassembler
16649
16650Implemented ACPI 2.0B grammar change that disallows all Type 1 and
166512 opcodes outside of a control method.  This means that the
16652"executable" operators (versus the "namespace" operators) cannot
16653be used at the table level; they can only be used within a control
16654method.
16655
16656Implemented the restriction on the Scope() operator where the
16657target must already exist in the namespace at the time the
16658operator is encountered (during ASL compilation). In other words,
16659forward references are not allowed and Scope() cannot create a new
16660object.  This makes the iASL compiler compatible with other ACPI
16661implementations and makes the Scope() implementation adhere to the
16662ACPI specification.
16663
16664Fixed a problem where namepath optimization for the Alias operator
16665was optimizing the wrong path (of the two namepaths.)  This caused
16666a "Missing alias link" error message.
16667
16668Fixed a problem where an "unknown reserved name" warning could be
16669incorrectly generated for names like "_SB" when the trailing
16670underscore is not used in the original ASL.
16671
16672Fixed a problem where the reserved name check did not handle
16673NamePaths with multiple NameSegs correctly.  The first nameseg of
16674the NamePath was examined instead of the last NameSeg.
16675
16676
16677----------------------------------------
16678
1667902 October 2002.  Summary of changes for this release.
16680
16681
166821) ACPI CA Core Subsystem version 20021002:
16683
16684Fixed a problem where a store/copy of a string to an existing
16685string did not always set the string length properly in the String
16686object.
16687
16688Fixed a reported problem with the ToString operator where the
16689behavior was identical to the ToHexString operator instead of just
16690simply converting a raw buffer to a string data type.
16691
16692Fixed a problem where CopyObject and the other "explicit"
16693conversion operators were not updating the internal namespace node
16694type as part of the store operation.
16695
16696Fixed a memory leak during implicit source operand conversion
16697where the original object was not deleted if it was converted to a
16698new object of a different type.
16699
16700Enhanced error messages for all problems associated with namespace
16701lookups.  Common procedure generates and prints the lookup name as
16702well as the formatted status.
16703
16704Completed implementation of a new design for the Alias support
16705within the namespace.  The existing design did not handle the case
16706where a new object was assigned to one of the two names due to the
16707use of an explicit conversion operator, resulting in the two names
16708pointing to two different objects.  The new design simply points
16709the Alias name to the original name node - not to the object.
16710This results in a level of indirection that must be handled in the
16711name resolution mechanism.
16712
16713Code and Data Size: Current core subsystem library sizes are shown
16714below.  These are the code and data sizes for the acpica.lib
16715produced by the Microsoft Visual C++ 6.0 compiler, and these
16716values do not include any ACPI driver or OSPM code.  The debug
16717version of the code includes the debug output trace mechanism and
16718has a larger code and data size.  Note that these values will vary
16719depending on the efficiency of the compiler and the compiler
16720options used during generation.
16721
16722  Previous Release
16723    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16724    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16725  Current Release:
16726    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16727    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16728
16729
167302) Linux
16731
16732Initialize thermal driver's timer before it is used. (Knut
16733Neumann)
16734
16735Allow handling negative celsius values. (Kochi Takayoshi)
16736
16737Fix thermal management and make trip points. R/W (Pavel Machek)
16738
16739Fix /proc/acpi/sleep. (P. Christeas)
16740
16741IA64 fixes. (David Mosberger)
16742
16743Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
16744
16745Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
16746Brodowski)
16747
16748
167493) iASL Compiler/Disassembler
16750
16751Clarified some warning/error messages.
16752
16753
16754----------------------------------------
1675518 September 2002.  Summary of changes for this release.
16756
16757
167581) ACPI CA Core Subsystem version 20020918:
16759
16760Fixed a reported problem with reference chaining (via the Index()
16761and RefOf() operators) in the ObjectType() and SizeOf() operators.
16762The definition of these operators includes the dereferencing of
16763all chained references to return information on the base object.
16764
16765Fixed a problem with stores to indexed package elements - the
16766existing code would not complete the store if an "implicit
16767conversion" was not performed.  In other words, if the existing
16768object (package element) was to be replaced completely, the code
16769didn't handle this case.
16770
16771Relaxed typechecking on the ASL "Scope" operator to allow the
16772target name to refer to an object of type Integer, String, or
16773Buffer, in addition to the scoping object types (Device,
16774predefined Scopes, Processor, PowerResource, and ThermalZone.)
16775This allows existing AML code that has workarounds for a bug in
16776Windows to function properly.  A warning is issued, however.  This
16777affects both the AML interpreter and the iASL compiler. Below is
16778an example of this type of ASL code:
16779
16780      Name(DEB,0x00)
16781      Scope(DEB)
16782      {
16783
16784Fixed some reported problems with 64-bit integer support in the
16785local implementation of C library functions (clib.c)
16786
16787
167882) Linux
16789
16790Use ACPI fix map region instead of IOAPIC region, since it is
16791undefined in non-SMP.
16792
16793Ensure that the SCI has the proper polarity and trigger, even on
16794systems that do not have an interrupt override entry in the MADT.
16795
167962.5 big driver reorganization (Pat Mochel)
16797
16798Use early table mapping code from acpitable.c (Andi Kleen)
16799
16800New blacklist entries (Andi Kleen)
16801
16802Blacklist improvements. Split blacklist code out into a separate
16803file. Move checking the blacklist to very early. Previously, we
16804would use ACPI tables, and then halfway through init, check the
16805blacklist -- too late. Now, it's early enough to completely fall-
16806back to non-ACPI.
16807
16808
168093) iASL Compiler/Disassembler version 20020918:
16810
16811Fixed a problem where the typechecking code didn't know that an
16812alias could point to a method.  In other words, aliases were not
16813being dereferenced during typechecking.
16814
16815
16816----------------------------------------
1681729 August 2002.  Summary of changes for this release.
16818
168191) ACPI CA Core Subsystem Version 20020829:
16820
16821If the target of a Scope() operator already exists, it must be an
16822object type that actually opens a scope -- such as a Device,
16823Method, Scope, etc.  This is a fatal runtime error.  Similar error
16824check has been added to the iASL compiler also.
16825
16826Tightened up the namespace load to disallow multiple names in the
16827same scope.  This previously was allowed if both objects were of
16828the same type.  (i.e., a lookup was the same as entering a new
16829name).
16830
16831
168322) Linux
16833
16834Ensure that the ACPI interrupt has the proper trigger and
16835polarity.
16836
16837local_irq_disable is extraneous. (Matthew Wilcox)
16838
16839Make "acpi=off" actually do what it says, and not use the ACPI
16840interpreter *or* the tables.
16841
16842Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
16843Takayoshi)
16844
16845
168463) iASL Compiler/Disassembler  Version 20020829:
16847
16848Implemented namepath optimization for name declarations.  For
16849example, a declaration like "Method (\_SB_.ABCD)" would get
16850optimized to "Method (ABCD)" if the declaration is within the
16851\_SB_ scope.  This optimization is in addition to the named
16852reference path optimization first released in the previous
16853version. This would seem to complete all possible optimizations
16854for namepaths within the ASL/AML.
16855
16856If the target of a Scope() operator already exists, it must be an
16857object type that actually opens a scope -- such as a Device,
16858Method, Scope, etc.
16859
16860Implemented a check and warning for unreachable code in the same
16861block below a Return() statement.
16862
16863Fixed a problem where the listing file was not generated if the
16864compiler aborted if the maximum error count was exceeded (200).
16865
16866Fixed a problem where the typechecking of method return values was
16867broken.  This includes the check for a return value when the
16868method is invoked as a TermArg (a return value is expected.)
16869
16870Fixed a reported problem where EOF conditions during a quoted
16871string or comment caused a fault.
16872
16873
16874----------------------------------------
1687515 August 2002.  Summary of changes for this release.
16876
168771) ACPI CA Core Subsystem Version 20020815:
16878
16879Fixed a reported problem where a Store to a method argument that
16880contains a reference did not perform the indirect store correctly.
16881This problem was created during the conversion to the new
16882reference object model - the indirect store to a method argument
16883code was not updated to reflect the new model.
16884
16885Reworked the ACPI mode change code to better conform to ACPI 2.0,
16886handle corner cases, and improve code legibility (Kochi Takayoshi)
16887
16888Fixed a problem with the pathname parsing for the carat (^)
16889prefix.  The heavy use of the carat operator by the new namepath
16890optimization in the iASL compiler uncovered a problem with the AML
16891interpreter handling of this prefix.  In the case where one or
16892more carats precede a single nameseg, the nameseg was treated as
16893standalone and the search rule (to root) was inadvertently
16894applied.  This could cause both the iASL compiler and the
16895interpreter to find the wrong object or to miss the error that
16896should occur if the object does not exist at that exact pathname.
16897
16898Found and fixed the problem where the HP Pavilion DSDT would not
16899load.  This was a relatively minor tweak to the table loading code
16900(a problem caused by the unexpected encounter with a method
16901invocation not within a control method), but it does not solve the
16902overall issue of the execution of AML code at the table level.
16903This investigation is still ongoing.
16904
16905Code and Data Size: Current core subsystem library sizes are shown
16906below.  These are the code and data sizes for the acpica.lib
16907produced by the Microsoft Visual C++ 6.0 compiler, and these
16908values do not include any ACPI driver or OSPM code.  The debug
16909version of the code includes the debug output trace mechanism and
16910has a larger code and data size.  Note that these values will vary
16911depending on the efficiency of the compiler and the compiler
16912options used during generation.
16913
16914  Previous Release
16915    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
16916    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
16917  Current Release:
16918    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16919    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16920
16921
169222) Linux
16923
16924Remove redundant slab.h include (Brad Hards)
16925
16926Fix several bugs in thermal.c (Herbert Nachtnebel)
16927
16928Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
16929
16930Change acpi_system_suspend to use updated irq functions (Pavel
16931Machek)
16932
16933Export acpi_get_firmware_table (Matthew Wilcox)
16934
16935Use proper root proc entry for ACPI (Kochi Takayoshi)
16936
16937Fix early-boot table parsing (Bjorn Helgaas)
16938
16939
169403) iASL Compiler/Disassembler
16941
16942Reworked the compiler options to make them more consistent and to
16943use two-letter options where appropriate.  We were running out of
16944sensible letters.   This may break some makefiles, so check the
16945current options list by invoking the compiler with no parameters.
16946
16947Completed the design and implementation of the ASL namepath
16948optimization option for the compiler.  This option optimizes all
16949references to named objects to the shortest possible path.  The
16950first attempt tries to utilize a single nameseg (4 characters) and
16951the "search-to-root" algorithm used by the interpreter.  If that
16952cannot be used (because either the name is not in the search path
16953or there is a conflict with another object with the same name),
16954the pathname is optimized using the carat prefix (usually a
16955shorter string than specifying the entire path from the root.)
16956
16957Implemented support to obtain the DSDT from the Windows registry
16958(when the disassembly option is specified with no input file).
16959Added this code as the implementation for AcpiOsTableOverride in
16960the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
16961utility) to scan memory for the DSDT to the AcpiOsTableOverride
16962function in the DOS OSL to make the disassembler truly OS
16963independent.
16964
16965Implemented a new option to disassemble and compile in one step.
16966When used without an input filename, this option will grab the
16967DSDT from the local machine, disassemble it, and compile it in one
16968step.
16969
16970Added a warning message for invalid escapes (a backslash followed
16971by any character other than the allowable escapes).  This catches
16972the quoted string error "\_SB_" (which should be "\\_SB_" ).
16973
16974Also, there are numerous instances in the ACPI specification where
16975this error occurs.
16976
16977Added a compiler option to disable all optimizations.  This is
16978basically the "compatibility mode" because by using this option,
16979the AML code will come out exactly the same as other ASL
16980compilers.
16981
16982Added error messages for incorrectly ordered dependent resource
16983functions.  This includes: missing EndDependentFn macro at end of
16984dependent resource list, nested dependent function macros (both
16985start and end), and missing StartDependentFn macro.  These are
16986common errors that should be caught at compile time.
16987
16988Implemented _OSI support for the disassembler and compiler.  _OSI
16989must be included in the namespace for proper disassembly (because
16990the disassembler must know the number of arguments.)
16991
16992Added an "optimization" message type that is optional (off by
16993default).  This message is used for all optimizations - including
16994constant folding, integer optimization, and namepath optimization.
16995
16996----------------------------------------
1699725 July 2002.  Summary of changes for this release.
16998
16999
170001) ACPI CA Core Subsystem Version 20020725:
17001
17002The AML Disassembler has been enhanced to produce compilable ASL
17003code and has been integrated into the iASL compiler (see below) as
17004well as the single-step disassembly for the AML debugger and the
17005disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
17006resource templates and macros are fully supported.  The
17007disassembler has been tested on over 30 different AML files,
17008producing identical AML when the resulting disassembled ASL file
17009is recompiled with the same ASL compiler.
17010
17011Modified the Resource Manager to allow zero interrupts and zero
17012dma channels during the GetCurrentResources call.  This was
17013causing problems on some platforms.
17014
17015Added the AcpiOsRedirectOutput interface to the OSL to simplify
17016output redirection for the AcpiOsPrintf and AcpiOsVprintf
17017interfaces.
17018
17019Code and Data Size: Current core subsystem library sizes are shown
17020below.  These are the code and data sizes for the acpica.lib
17021produced by the Microsoft Visual C++ 6.0 compiler, and these
17022values do not include any ACPI driver or OSPM code.  The debug
17023version of the code includes the debug output trace mechanism and
17024has a larger code and data size.  Note that these values will vary
17025depending on the efficiency of the compiler and the compiler
17026options used during generation.
17027
17028  Previous Release
17029    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
17030    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
17031  Current Release:
17032    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
17033    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
17034
17035
170362) Linux
17037
17038Fixed a panic in the EC driver (Dominik Brodowski)
17039
17040Implemented checksum of the R/XSDT itself during Linux table scan
17041(Richard Schaal)
17042
17043
170443) iASL compiler
17045
17046The AML disassembler is integrated into the compiler.  The "-d"
17047option invokes the disassembler  to completely disassemble an
17048input AML file, producing as output a text ASL file with the
17049extension ".dsl" (to avoid name collisions with existing .asl
17050source files.)  A future enhancement will allow the disassembler
17051to obtain the BIOS DSDT from the registry under Windows.
17052
17053Fixed a problem with the VendorShort and VendorLong resource
17054descriptors where an invalid AML sequence was created.
17055
17056Implemented a fix for BufferData term in the ASL parser.  It was
17057inadvertently defined twice, allowing invalid syntax to pass and
17058causing reduction conflicts.
17059
17060Fixed a problem where the Ones opcode could get converted to a
17061value of zero if "Ones" was used where a byte, word or dword value
17062was expected.  The 64-bit value is now truncated to the correct
17063size with the correct value.
17064
17065
17066
17067----------------------------------------
1706802 July 2002.  Summary of changes for this release.
17069
17070
170711) ACPI CA Core Subsystem Version 20020702:
17072
17073The Table Manager code has been restructured to add several new
17074features.  Tables that are not required by the core subsystem
17075(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
17076validated in any way and are returned from AcpiGetFirmwareTable if
17077requested.  The AcpiOsTableOverride interface is now called for
17078each table that is loaded by the subsystem in order to allow the
17079host to override any table it chooses.  Previously, only the DSDT
17080could be overridden.  Added one new files, tbrsdt.c and
17081tbgetall.c.
17082
17083Fixed a problem with the conversion of internal package objects to
17084external objects (when a package is returned from a control
17085method.)  The return buffer length was set to zero instead of the
17086proper length of the package object.
17087
17088Fixed a reported problem with the use of the RefOf and DeRefOf
17089operators when passing reference arguments to control methods.  A
17090new type of Reference object is used internally for references
17091produced by the RefOf operator.
17092
17093Added additional error messages in the Resource Manager to explain
17094AE_BAD_DATA errors when they occur during resource parsing.
17095
17096Split the AcpiEnableSubsystem into two primitives to enable a
17097finer granularity initialization sequence.  These two calls should
17098be called in this order: AcpiEnableSubsystem (flags),
17099AcpiInitializeObjects (flags).  The flags parameter remains the
17100same.
17101
17102
171032) Linux
17104
17105Updated the ACPI utilities module to understand the new style of
17106fully resolved package objects that are now returned from the core
17107subsystem.  This eliminates errors of the form:
17108
17109    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
17110    acpi_utils-0430 [145] acpi_evaluate_reference:
17111        Invalid element in package (not a device reference)
17112
17113The method evaluation utility uses the new buffer allocation
17114scheme instead of calling AcpiEvaluate Object twice.
17115
17116Added support for ECDT. This allows the use of the Embedded
17117
17118Controller before the namespace has been fully initialized, which
17119is necessary for ACPI 2.0 support, and for some laptops to
17120initialize properly. (Laptops using ECDT are still rare, so only
17121limited testing was performed of the added functionality.)
17122
17123Fixed memory leaks in the EC driver.
17124
17125Eliminated a brittle code structure in acpi_bus_init().
17126
17127Eliminated the acpi_evaluate() helper function in utils.c. It is
17128no longer needed since acpi_evaluate_object can optionally
17129allocate memory for the return object.
17130
17131Implemented fix for keyboard hang when getting battery readings on
17132some systems (Stephen White)
17133
17134PCI IRQ routing update (Dominik Brodowski)
17135
17136Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
17137support
17138
17139----------------------------------------
1714011 June 2002.  Summary of changes for this release.
17141
17142
171431) ACPI CA Core Subsystem Version 20020611:
17144
17145Fixed a reported problem where constants such as Zero and One
17146appearing within _PRT packages were not handled correctly within
17147the resource manager code.  Originally reported against the ASL
17148compiler because the code generator now optimizes integers to
17149their minimal AML representation (i.e. AML constants if possible.)
17150The _PRT code now handles all AML constant opcodes correctly
17151(Zero, One, Ones, Revision).
17152
17153Fixed a problem with the Concatenate operator in the AML
17154interpreter where a buffer result object was incorrectly marked as
17155not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
17156
17157All package sub-objects are now fully resolved before they are
17158returned from the external ACPI interfaces.  This means that name
17159strings are resolved to object handles, and constant operators
17160(Zero, One, Ones, Revision) are resolved to Integers.
17161
17162Implemented immediate resolution of the AML Constant opcodes
17163(Zero, One, Ones, Revision) to Integer objects upon detection
17164within the AML stream. This has simplified and reduced the
17165generated code size of the subsystem by eliminating about 10
17166switch statements for these constants (which previously were
17167contained in Reference objects.)  The complicating issues are that
17168the Zero opcode is used as a "placeholder" for unspecified
17169optional target operands and stores to constants are defined to be
17170no-ops.
17171
17172Code and Data Size: Current core subsystem library sizes are shown
17173below. These are the code and data sizes for the acpica.lib
17174produced by the Microsoft Visual C++ 6.0 compiler, and these
17175values do not include any ACPI driver or OSPM code.  The debug
17176version of the code includes the debug output trace mechanism and
17177has a larger code and data size.  Note that these values will vary
17178depending on the efficiency of the compiler and the compiler
17179options used during generation.
17180
17181  Previous Release
17182    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17183    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17184  Current Release:
17185    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
17186    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
17187
17188
171892) Linux
17190
17191
17192Added preliminary support for obtaining _TRA data for PCI root
17193bridges (Bjorn Helgaas).
17194
17195
171963) iASL Compiler Version X2046:
17197
17198Fixed a problem where the "_DDN" reserved name was defined to be a
17199control method with one argument.  There are no arguments, and
17200_DDN does not have to be a control method.
17201
17202Fixed a problem with the Linux version of the compiler where the
17203source lines printed with error messages were the wrong lines.
17204This turned out to be the "LF versus CR/LF" difference between
17205Windows and Unix.  This appears to be the longstanding issue
17206concerning listing output and error messages.
17207
17208Fixed a problem with the Linux version of compiler where opcode
17209names within error messages were wrong.  This was caused by a
17210slight difference in the output of the Flex tool on Linux versus
17211Windows.
17212
17213Fixed a problem with the Linux compiler where the hex output files
17214contained some garbage data caused by an internal buffer overrun.
17215
17216
17217----------------------------------------
1721817 May 2002.  Summary of changes for this release.
17219
17220
172211) ACPI CA Core Subsystem Version 20020517:
17222
17223Implemented a workaround to an BIOS bug discovered on the HP
17224OmniBook where the FADT revision number and the table size are
17225inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
17226behavior is to fallback to using only the ACPI 1.0 fields of the
17227FADT if the table is too small to be a ACPI 2.0 table as claimed
17228by the revision number.  Although this is a BIOS bug, this is a
17229case where the workaround is simple enough and with no side
17230effects, so it seemed prudent to add it.  A warning message is
17231issued, however.
17232
17233Implemented minimum size checks for the fixed-length ACPI tables -
17234- the FADT and FACS, as well as consistency checks between the
17235revision number and the table size.
17236
17237Fixed a reported problem in the table override support where the
17238new table pointer was incorrectly treated as a physical address
17239instead of a logical address.
17240
17241Eliminated the use of the AE_AML_ERROR exception and replaced it
17242with more descriptive codes.
17243
17244Fixed a problem where an exception would occur if an ASL Field was
17245defined with no named Field Units underneath it (used by some
17246index fields).
17247
17248Code and Data Size: Current core subsystem library sizes are shown
17249below.  These are the code and data sizes for the acpica.lib
17250produced by the Microsoft Visual C++ 6.0 compiler, and these
17251values do not include any ACPI driver or OSPM code.  The debug
17252version of the code includes the debug output trace mechanism and
17253has a larger code and data size.  Note that these values will vary
17254depending on the efficiency of the compiler and the compiler
17255options used during generation.
17256
17257  Previous Release
17258    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17259    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17260  Current Release:
17261    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17262    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17263
17264
17265
172662) Linux
17267
17268Much work done on ACPI init (MADT and PCI IRQ routing support).
17269(Paul D. and Dominik Brodowski)
17270
17271Fix PCI IRQ-related panic on boot (Sam Revitch)
17272
17273Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
17274
17275Fix "MHz" typo (Dominik Brodowski)
17276
17277Fix RTC year 2000 issue (Dominik Brodowski)
17278
17279Preclude multiple button proc entries (Eric Brunet)
17280
17281Moved arch-specific code out of include/platform/aclinux.h
17282
172833) iASL Compiler Version X2044:
17284
17285Implemented error checking for the string used in the EISAID macro
17286(Usually used in the definition of the _HID object.)  The code now
17287strictly enforces the PnP format - exactly 7 characters, 3
17288uppercase letters and 4 hex digits.
17289
17290If a raw string is used in the definition of the _HID object
17291(instead of the EISAID macro), the string must contain all
17292alphanumeric characters (e.g., "*PNP0011" is not allowed because
17293of the asterisk.)
17294
17295Implemented checking for invalid use of ACPI reserved names for
17296most of the name creation operators (Name, Device, Event, Mutex,
17297OperationRegion, PowerResource, Processor, and ThermalZone.)
17298Previously, this check was only performed for control methods.
17299
17300Implemented an additional check on the Name operator to emit an
17301error if a reserved name that must be implemented in ASL as a
17302control method is used.  We know that a reserved name must be a
17303method if it is defined with input arguments.
17304
17305The warning emitted when a namespace object reference is not found
17306during the cross reference phase has been changed into an error.
17307The "External" directive should be used for names defined in other
17308modules.
17309
17310
173114) Tools and Utilities
17312
17313The 16-bit tools (adump16 and aexec16) have been regenerated and
17314tested.
17315
17316Fixed a problem with the output of both acpidump and adump16 where
17317the indentation of closing parentheses and brackets was not
17318
17319aligned properly with the parent block.
17320
17321
17322----------------------------------------
1732303 May 2002.  Summary of changes for this release.
17324
17325
173261) ACPI CA Core Subsystem Version 20020503:
17327
17328Added support a new OSL interface that allows the host operating
17329
17330system software to override the DSDT found in the firmware -
17331AcpiOsTableOverride.  With this interface, the OSL can examine the
17332version of the firmware DSDT and replace it with a different one
17333if desired.
17334
17335Added new external interfaces for accessing ACPI registers from
17336device drivers and other system software - AcpiGetRegister and
17337AcpiSetRegister.  This was simply an externalization of the
17338existing AcpiHwBitRegister interfaces.
17339
17340Fixed a regression introduced in the previous build where the
17341ASL/AML CreateField operator always returned an error,
17342"destination must be a NS Node".
17343
17344Extended the maximum time (before failure) to successfully enable
17345ACPI mode to 3 seconds.
17346
17347Code and Data Size: Current core subsystem library sizes are shown
17348below.  These are the code and data sizes for the acpica.lib
17349produced by the Microsoft Visual C++ 6.0 compiler, and these
17350values do not include any ACPI driver or OSPM code.  The debug
17351version of the code includes the debug output trace mechanism and
17352has a larger code and data size.  Note that these values will vary
17353depending on the efficiency of the compiler and the compiler
17354options used during generation.
17355
17356  Previous Release
17357    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17358    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17359  Current Release:
17360    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17361    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17362
17363
173642) Linux
17365
17366Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
17367free. While 3 out of 4 of our in-house systems work fine, the last
17368one still hangs when testing the LAPIC timer.
17369
17370Renamed many files in 2.5 kernel release to omit "acpi_" from the
17371name.
17372
17373Added warning on boot for Presario 711FR.
17374
17375Sleep improvements (Pavel Machek)
17376
17377ACPI can now be built without CONFIG_PCI enabled.
17378
17379IA64: Fixed memory map functions (JI Lee)
17380
17381
173823) iASL Compiler Version X2043:
17383
17384Added support to allow the compiler to be integrated into the MS
17385VC++ development environment for one-button compilation of single
17386files or entire projects -- with error-to-source-line mapping.
17387
17388Implemented support for compile-time constant folding for the
17389Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
17390specification.  This allows the ASL writer to use expressions
17391instead of Integer/Buffer/String constants in terms that must
17392evaluate to constants at compile time and will also simplify the
17393emitted AML in any such sub-expressions that can be folded
17394(evaluated at compile-time.)  This increases the size of the
17395compiler significantly because a portion of the ACPI CA AML
17396interpreter is included within the compiler in order to pre-
17397evaluate constant expressions.
17398
17399
17400Fixed a problem with the "Unicode" ASL macro that caused the
17401compiler to fault.  (This macro is used in conjunction with the
17402_STR reserved name.)
17403
17404Implemented an AML opcode optimization to use the Zero, One, and
17405Ones opcodes where possible to further reduce the size of integer
17406constants and thus reduce the overall size of the generated AML
17407code.
17408
17409Implemented error checking for new reserved terms for ACPI version
174102.0A.
17411
17412Implemented the -qr option to display the current list of ACPI
17413reserved names known to the compiler.
17414
17415Implemented the -qc option to display the current list of ASL
17416operators that are allowed within constant expressions and can
17417therefore be folded at compile time if the operands are constants.
17418
17419
174204) Documentation
17421
17422Updated the Programmer's Reference for new interfaces, data types,
17423and memory allocation model options.
17424
17425Updated the iASL Compiler User Reference to apply new format and
17426add information about new features and options.
17427
17428----------------------------------------
1742919 April 2002.  Summary of changes for this release.
17430
174311) ACPI CA Core Subsystem Version 20020419:
17432
17433The source code base for the Core Subsystem has been completely
17434cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
17435versions.  The Lint option files used are included in the
17436/acpi/generate/lint directory.
17437
17438Implemented enhanced status/error checking across the entire
17439Hardware manager subsystem.  Any hardware errors (reported from
17440the OSL) are now bubbled up and will abort a running control
17441method.
17442
17443
17444Fixed a problem where the per-ACPI-table integer width (32 or 64)
17445was stored only with control method nodes, causing a fault when
17446non-control method code was executed during table loading.  The
17447solution implemented uses a global variable to indicate table
17448width across the entire ACPI subsystem.  Therefore, ACPI CA does
17449not support mixed integer widths across different ACPI tables
17450(DSDT, SSDT).
17451
17452Fixed a problem where NULL extended fields (X fields) in an ACPI
174532.0 ACPI FADT caused the table load to fail.  Although the
17454existing ACPI specification is a bit fuzzy on this topic, the new
17455behavior is to fall back on a ACPI 1.0 field if the corresponding
17456ACPI 2.0 X field is zero (even though the table revision indicates
17457a full ACPI 2.0 table.)  The ACPI specification will be updated to
17458clarify this issue.
17459
17460Fixed a problem with the SystemMemory operation region handler
17461where memory was always accessed byte-wise even if the AML-
17462specified access width was larger than a byte.  This caused
17463problems on systems with memory-mapped I/O.  Memory is now
17464accessed with the width specified.  On systems that do not support
17465non-aligned transfers, a check is made to guarantee proper address
17466alignment before proceeding in order to avoid an AML-caused
17467alignment fault within the kernel.
17468
17469
17470Fixed a problem with the ExtendedIrq resource where only one byte
17471of the 4-byte Irq field was extracted.
17472
17473Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
17474function was out of date and required a rewrite.
17475
17476Code and Data Size: Current core subsystem library sizes are shown
17477below.  These are the code and data sizes for the acpica.lib
17478produced by the Microsoft Visual C++ 6.0 compiler, and these
17479values do not include any ACPI driver or OSPM code.  The debug
17480version of the code includes the debug output trace mechanism and
17481has a larger code and data size.  Note that these values will vary
17482depending on the efficiency of the compiler and the compiler
17483options used during generation.
17484
17485  Previous Release
17486    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17487    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17488  Current Release:
17489    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17490    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17491
17492
174932) Linux
17494
17495PCI IRQ routing fixes (Dominik Brodowski)
17496
17497
174983) iASL Compiler Version X2042:
17499
17500Implemented an additional compile-time error check for a field
17501unit whose size + minimum access width would cause a run-time
17502access beyond the end-of-region.  Previously, only the field size
17503itself was checked.
17504
17505The Core subsystem and iASL compiler now share a common parse
17506object in preparation for compile-time evaluation of the type
175073/4/5 ASL operators.
17508
17509
17510----------------------------------------
17511Summary of changes for this release: 03_29_02
17512
175131) ACPI CA Core Subsystem Version 20020329:
17514
17515Implemented support for late evaluation of TermArg operands to
17516Buffer and Package objects.  This allows complex expressions to be
17517used in the declarations of these object types.
17518
17519Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
175201.0, if the field was larger than 32 bits, it was returned as a
17521buffer - otherwise it was returned as an integer.  In ACPI 2.0,
17522the field is returned as a buffer only if the field is larger than
1752364 bits.  The TableRevision is now considered when making this
17524conversion to avoid incompatibility with existing ASL code.
17525
17526Implemented logical addressing for AcpiOsGetRootPointer.  This
17527allows an RSDP with either a logical or physical address.  With
17528this support, the host OS can now override all ACPI tables with
17529one logical RSDP.  Includes implementation of  "typed" pointer
17530support to allow a common data type for both physical and logical
17531pointers internally.  This required a change to the
17532AcpiOsGetRootPointer interface.
17533
17534Implemented the use of ACPI 2.0 Generic Address Structures for all
17535GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
17536mapped I/O for these ACPI features.
17537
17538Initialization now ignores not only non-required tables (All
17539tables other than the FADT, FACS, DSDT, and SSDTs), but also does
17540not validate the table headers of unrecognized tables.
17541
17542Fixed a problem where a notify handler could only be
17543installed/removed on an object of type Device.  All "notify"
17544
17545objects are now supported -- Devices, Processor, Power, and
17546Thermal.
17547
17548Removed most verbosity from the ACPI_DB_INFO debug level.  Only
17549critical information is returned when this debug level is enabled.
17550
17551Code and Data Size: Current core subsystem library sizes are shown
17552below.  These are the code and data sizes for the acpica.lib
17553produced by the Microsoft Visual C++ 6.0 compiler, and these
17554values do not include any ACPI driver or OSPM code.  The debug
17555version of the code includes the debug output trace mechanism and
17556has a larger code and data size.  Note that these values will vary
17557depending on the efficiency of the compiler and the compiler
17558options used during generation.
17559
17560  Previous Release
17561    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17562    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17563  Current Release:
17564    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17565    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17566
17567
175682) Linux:
17569
17570The processor driver (acpi_processor.c) now fully supports ACPI
175712.0-based processor performance control (e.g. Intel(R)
17572SpeedStep(TM) technology) Note that older laptops that only have
17573the Intel "applet" interface are not supported through this.  The
17574'limit' and 'performance' interface (/proc) are fully functional.
17575[Note that basic policy for controlling performance state
17576transitions will be included in the next version of ospmd.]  The
17577idle handler was modified to more aggressively use C2, and PIIX4
17578errata handling underwent a complete overhaul (big thanks to
17579Dominik Brodowski).
17580
17581Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
17582based devices in the ACPI namespace are now dynamically bound
17583(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
17584This allows, among other things, ACPI to resolve bus numbers for
17585subordinate PCI bridges.
17586
17587Enhanced PCI IRQ routing to get the proper bus number for _PRT
17588entries defined underneath PCI bridges.
17589
17590Added IBM 600E to bad bios list due to invalid _ADR value for
17591PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
17592
17593In the process of adding full MADT support (e.g. IOAPIC) for IA32
17594(acpi.c, mpparse.c) -- stay tuned.
17595
17596Added back visual differentiation between fixed-feature and
17597control-method buttons in dmesg.  Buttons are also subtyped (e.g.
17598button/power/PWRF) to simplify button identification.
17599
17600We no longer use -Wno-unused when compiling debug. Please ignore
17601any "_THIS_MODULE defined but not used" messages.
17602
17603Can now shut down the system using "magic sysrq" key.
17604
17605
176063) iASL Compiler version 2041:
17607
17608Fixed a problem where conversion errors for hex/octal/decimal
17609constants were not reported.
17610
17611Implemented a fix for the General Register template Address field.
17612This field was 8 bits when it should be 64.
17613
17614Fixed a problem where errors/warnings were no longer being emitted
17615within the listing output file.
17616
17617Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
17618exactly 4 characters, alphanumeric only.
17619
17620
17621
17622
17623----------------------------------------
17624Summary of changes for this release: 03_08_02
17625
17626
176271) ACPI CA Core Subsystem Version 20020308:
17628
17629Fixed a problem with AML Fields where the use of the "AccessAny"
17630keyword could cause an interpreter error due to attempting to read
17631or write beyond the end of the parent Operation Region.
17632
17633Fixed a problem in the SystemMemory Operation Region handler where
17634an attempt was made to map memory beyond the end of the region.
17635This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
17636errors on some Linux systems.
17637
17638Fixed a problem where the interpreter/namespace "search to root"
17639algorithm was not functioning for some object types.  Relaxed the
17640internal restriction on the search to allow upsearches for all
17641external object types as well as most internal types.
17642
17643
176442) Linux:
17645
17646We now use safe_halt() macro versus individual calls to sti | hlt.
17647
17648Writing to the processor limit interface should now work. "echo 1"
17649will increase the limit, 2 will decrease, and 0 will reset to the
17650
17651default.
17652
17653
176543) ASL compiler:
17655
17656Fixed segfault on Linux version.
17657
17658
17659----------------------------------------
17660Summary of changes for this release: 02_25_02
17661
176621) ACPI CA Core Subsystem:
17663
17664
17665Fixed a problem where the GPE bit masks were not initialized
17666properly, causing erratic GPE behavior.
17667
17668Implemented limited support for multiple calling conventions.  The
17669code can be generated with either the VPL (variable parameter
17670list, or "C") convention, or the FPL (fixed parameter list, or
17671"Pascal") convention.  The core subsystem is about 3.4% smaller
17672when generated with FPL.
17673
17674
176752) Linux
17676
17677Re-add some /proc/acpi/event functionality that was lost during
17678the rewrite
17679
17680Resolved issue with /proc events for fixed-feature buttons showing
17681up as the system device.
17682
17683Fixed checks on C2/C3 latencies to be inclusive of maximum values.
17684
17685Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
17686
17687Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
17688
17689Fixed limit interface & usage to fix bugs with passive cooling
17690hysterisis.
17691
17692Restructured PRT support.
17693
17694
17695----------------------------------------
17696Summary of changes for this label: 02_14_02
17697
17698
176991) ACPI CA Core Subsystem:
17700
17701Implemented support in AcpiLoadTable to allow loading of FACS and
17702FADT tables.
17703
17704Support for the now-obsolete interim 0.71 64-bit ACPI tables has
17705been removed.  All 64-bit platforms should be migrated to the ACPI
177062.0 tables.  The actbl71.h header has been removed from the source
17707tree.
17708
17709All C macros defined within the subsystem have been prefixed with
17710"ACPI_" to avoid collision with other system include files.
17711
17712Removed the return value for the two AcpiOsPrint interfaces, since
17713it is never used and causes lint warnings for ignoring the return
17714value.
17715
17716Added error checking to all internal mutex acquire and release
17717calls.  Although a failure from one of these interfaces is
17718probably a fatal system error, these checks will cause the
17719immediate abort of the currently executing method or interface.
17720
17721Fixed a problem where the AcpiSetCurrentResources interface could
17722fault.  This was a side effect of the deployment of the new memory
17723allocation model.
17724
17725Fixed a couple of problems with the Global Lock support introduced
17726in the last major build.  The "common" (1.0/2.0) internal FACS was
17727being overwritten with the FACS signature and clobbering the
17728Global Lock pointer.  Also, the actual firmware FACS was being
17729unmapped after construction of the "common" FACS, preventing
17730access to the actual Global Lock field within it.  The "common"
17731internal FACS is no longer installed as an actual ACPI table; it
17732is used simply as a global.
17733
17734Code and Data Size: Current core subsystem library sizes are shown
17735below.  These are the code and data sizes for the acpica.lib
17736produced by the Microsoft Visual C++ 6.0 compiler, and these
17737values do not include any ACPI driver or OSPM code.  The debug
17738version of the code includes the debug output trace mechanism and
17739has a larger code and data size.  Note that these values will vary
17740depending on the efficiency of the compiler and the compiler
17741options used during generation.
17742
17743  Previous Release (02_07_01)
17744    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17745    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17746  Current Release:
17747    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17748    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17749
17750
177512) Linux
17752
17753Updated Linux-specific code for core macro and OSL interface
17754changes described above.
17755
17756Improved /proc/acpi/event. It now can be opened only once and has
17757proper poll functionality.
17758
17759Fixed and restructured power management (acpi_bus).
17760
17761Only create /proc "view by type" when devices of that class exist.
17762
17763Fixed "charging/discharging" bug (and others) in acpi_battery.
17764
17765Improved thermal zone code.
17766
17767
177683) ASL Compiler, version X2039:
17769
17770
17771Implemented the new compiler restriction on ASL String hex/octal
17772escapes to non-null, ASCII values.  An error results if an invalid
17773value is used.  (This will require an ACPI 2.0 specification
17774change.)
17775
17776AML object labels that are output to the optional C and ASM source
17777are now prefixed with both the ACPI table signature and table ID
17778to help guarantee uniqueness within a large BIOS project.
17779
17780
17781----------------------------------------
17782Summary of changes for this label: 02_01_02
17783
177841) ACPI CA Core Subsystem:
17785
17786ACPI 2.0 support is complete in the entire Core Subsystem and the
17787ASL compiler. All new ACPI 2.0 operators are implemented and all
17788other changes for ACPI 2.0 support are complete.  With
17789simultaneous code and data optimizations throughout the subsystem,
17790ACPI 2.0 support has been implemented with almost no additional
17791cost in terms of code and data size.
17792
17793Implemented a new mechanism for allocation of return buffers.  If
17794the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
17795be allocated on behalf of the caller.  Consolidated all return
17796buffer validation and allocation to a common procedure.  Return
17797buffers will be allocated via the primary OSL allocation interface
17798since it appears that a separate pool is not needed by most users.
17799If a separate pool is required for these buffers, the caller can
17800still use the original mechanism and pre-allocate the buffer(s).
17801
17802Implemented support for string operands within the DerefOf
17803operator.
17804
17805Restructured the Hardware and Event managers to be table driven,
17806simplifying the source code and reducing the amount of generated
17807code.
17808
17809Split the common read/write low-level ACPI register bitfield
17810procedure into a separate read and write, simplifying the code
17811considerably.
17812
17813Obsoleted the AcpiOsCallocate OSL interface.  This interface was
17814used only a handful of times and didn't have enough critical mass
17815for a separate interface.  Replaced with a common calloc procedure
17816in the core.
17817
17818Fixed a reported problem with the GPE number mapping mechanism
17819that allows GPE1 numbers to be non-contiguous with GPE0.
17820Reorganized the GPE information and shrunk a large array that was
17821originally large enough to hold info for all possible GPEs (256)
17822to simply large enough to hold all GPEs up to the largest GPE
17823number on the machine.
17824
17825Fixed a reported problem with resource structure alignment on 64-
17826bit platforms.
17827
17828Changed the AcpiEnableEvent and AcpiDisableEvent external
17829interfaces to not require any flags for the common case of
17830enabling/disabling a GPE.
17831
17832Implemented support to allow a "Notify" on a Processor object.
17833
17834Most TBDs in comments within the source code have been resolved
17835and eliminated.
17836
17837
17838Fixed a problem in the interpreter where a standalone parent
17839prefix (^) was not handled correctly in the interpreter and
17840debugger.
17841
17842Removed obsolete and unnecessary GPE save/restore code.
17843
17844Implemented Field support in the ASL Load operator.  This allows a
17845table to be loaded from a named field, in addition to loading a
17846table directly from an Operation Region.
17847
17848Implemented timeout and handle support in the external Global Lock
17849interfaces.
17850
17851Fixed a problem in the AcpiDump utility where pathnames were no
17852longer being generated correctly during the dump of named objects.
17853
17854Modified the AML debugger to give a full display of if/while
17855predicates instead of just one AML opcode at a time.  (The
17856predicate can have several nested ASL statements.)  The old method
17857was confusing during single stepping.
17858
17859Code and Data Size: Current core subsystem library sizes are shown
17860below. These are the code and data sizes for the acpica.lib
17861produced by the Microsoft Visual C++ 6.0 compiler, and these
17862values do not include any ACPI driver or OSPM code.  The debug
17863version of the code includes the debug output trace mechanism and
17864has a larger code and data size.  Note that these values will vary
17865depending on the efficiency of the compiler and the compiler
17866options used during generation.
17867
17868  Previous Release (12_18_01)
17869     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17870     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17871   Current Release:
17872     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17873     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17874
178752) Linux
17876
17877 Implemented fix for PIIX reverse throttling errata (Processor
17878driver)
17879
17880Added new Limit interface (Processor and Thermal drivers)
17881
17882New thermal policy (Thermal driver)
17883
17884Many updates to /proc
17885
17886Battery "low" event support (Battery driver)
17887
17888Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
17889
17890IA32 - IA64 initialization unification, no longer experimental
17891
17892Menuconfig options redesigned
17893
178943) ASL Compiler, version X2037:
17895
17896Implemented several new output features to simplify integration of
17897AML code into  firmware: 1) Output the AML in C source code with
17898labels for each named ASL object.  The    original ASL source code
17899is interleaved as C comments. 2) Output the AML in ASM source code
17900with labels and interleaved ASL    source. 3) Output the AML in
17901raw hex table form, in either C or ASM.
17902
17903Implemented support for optional string parameters to the
17904LoadTable operator.
17905
17906Completed support for embedded escape sequences within string
17907literals.  The compiler now supports all single character escapes
17908as well as the Octal and Hex escapes.  Note: the insertion of a
17909null byte into a string literal (via the hex/octal escape) causes
17910the string to be immediately terminated.  A warning is issued.
17911
17912Fixed a problem where incorrect AML was generated for the case
17913where an ASL namepath consists of a single parent prefix (
17914
17915) with no trailing name segments.
17916
17917The compiler has been successfully generated with a 64-bit C
17918compiler.
17919
17920
17921
17922
17923----------------------------------------
17924Summary of changes for this label: 12_18_01
17925
179261) Linux
17927
17928Enhanced blacklist with reason and severity fields. Any table's
17929signature may now be used to identify a blacklisted system.
17930
17931Call _PIC control method to inform the firmware which interrupt
17932model the OS is using. Turn on any disabled link devices.
17933
17934Cleaned up busmgr /proc error handling (Andreas Dilger)
17935
17936 2) ACPI CA Core Subsystem:
17937
17938Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
17939while loop)
17940
17941Completed implementation of the ACPI 2.0 "Continue",
17942"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
17943operators.  All new ACPI 2.0 operators are now implemented in both
17944the ASL compiler and the AML interpreter.  The only remaining ACPI
179452.0 task is support for the String data type in the DerefOf
17946operator.  Fixed a problem with AcquireMutex where the status code
17947was lost if the caller had to actually wait for the mutex.
17948
17949Increased the maximum ASL Field size from 64K bits to 4G bits.
17950
17951Completed implementation of the external Global Lock interfaces --
17952AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
17953Handler parameters were added.
17954
17955Completed another pass at removing warnings and issues when
17956compiling with 64-bit compilers.  The code now compiles cleanly
17957with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
17958add and subtract (diff) macros have changed considerably.
17959
17960
17961Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1796264-bit platforms, 32-bits on all others.  This type is used
17963wherever memory allocation and/or the C sizeof() operator is used,
17964and affects the OSL memory allocation interfaces AcpiOsAllocate
17965and AcpiOsCallocate.
17966
17967Implemented sticky user breakpoints in the AML debugger.
17968
17969Code and Data Size: Current core subsystem library sizes are shown
17970below. These are the code and data sizes for the acpica.lib
17971produced by the Microsoft Visual C++ 6.0 compiler, and these
17972values do not include any ACPI driver or OSPM code.  The debug
17973version of the code includes the debug output trace mechanism and
17974has a larger code and data size. Note that these values will vary
17975depending on the efficiency of the compiler and the compiler
17976options used during generation.
17977
17978  Previous Release (12_05_01)
17979     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
17980     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
17981   Current Release:
17982     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17983     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17984
17985 3) ASL Compiler, version X2034:
17986
17987Now checks for (and generates an error if detected) the use of a
17988Break or Continue statement without an enclosing While statement.
17989
17990
17991Successfully generated the compiler with the Intel 64-bit C
17992compiler.
17993
17994 ----------------------------------------
17995Summary of changes for this label: 12_05_01
17996
17997 1) ACPI CA Core Subsystem:
17998
17999The ACPI 2.0 CopyObject operator is fully implemented.  This
18000operator creates a new copy of an object (and is also used to
18001bypass the "implicit conversion" mechanism of the Store operator.)
18002
18003The ACPI 2.0 semantics for the SizeOf operator are fully
18004implemented.  The change is that performing a SizeOf on a
18005reference object causes an automatic dereference of the object to
18006the actual value before the size is evaluated. This behavior was
18007undefined in ACPI 1.0.
18008
18009The ACPI 2.0 semantics for the Extended IRQ resource descriptor
18010have been implemented.  The interrupt polarity and mode are now
18011independently set.
18012
18013Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
18014appearing in Package objects were not properly converted to
18015integers when the internal Package was converted to an external
18016object (via the AcpiEvaluateObject interface.)
18017
18018Fixed a problem with the namespace object deletion mechanism for
18019objects created by control methods.  There were two parts to this
18020problem: 1) Objects created during the initialization phase method
18021parse were not being deleted, and 2) The object owner ID mechanism
18022to track objects was broken.
18023
18024Fixed a problem where the use of the ASL Scope operator within a
18025control method would result in an invalid opcode exception.
18026
18027Fixed a problem introduced in the previous label where the buffer
18028length required for the _PRT structure was not being returned
18029correctly.
18030
18031Code and Data Size: Current core subsystem library sizes are shown
18032below. These are the code and data sizes for the acpica.lib
18033produced by the Microsoft Visual C++ 6.0 compiler, and these
18034values do not include any ACPI driver or OSPM code.  The debug
18035version of the code includes the debug output trace mechanism and
18036has a larger code and data size.  Note that these values will vary
18037depending on the efficiency of the compiler and the compiler
18038options used during generation.
18039
18040  Previous Release (11_20_01)
18041     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
18042     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
18043
18044  Current Release:
18045     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
18046     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
18047
18048 2) Linux:
18049
18050Updated all files to apply cleanly against 2.4.16.
18051
18052Added basic PCI Interrupt Routing Table (PRT) support for IA32
18053(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
18054version supports both static and dynamic PRT entries, but dynamic
18055entries are treated as if they were static (not yet
18056reconfigurable).  Architecture- specific code to use this data is
18057absent on IA32 but should be available shortly.
18058
18059Changed the initialization sequence to start the ACPI interpreter
18060(acpi_init) prior to initialization of the PCI driver (pci_init)
18061in init/main.c.  This ordering is required to support PRT and
18062facilitate other (future) enhancement.  A side effect is that the
18063ACPI bus driver and certain device drivers can no longer be loaded
18064as modules.
18065
18066Modified the 'make menuconfig' options to allow PCI Interrupt
18067Routing support to be included without the ACPI Bus and other
18068device drivers.
18069
18070 3) ASL Compiler, version X2033:
18071
18072Fixed some issues with the use of the new CopyObject and
18073DataTableRegion operators.  Both are fully functional.
18074
18075 ----------------------------------------
18076Summary of changes for this label: 11_20_01
18077
18078 20 November 2001.  Summary of changes for this release.
18079
18080 1) ACPI CA Core Subsystem:
18081
18082Updated Index support to match ACPI 2.0 semantics.  Storing a
18083Integer, String, or Buffer to an Index of a Buffer will store only
18084the least-significant byte of the source to the Indexed buffer
18085byte.  Multiple writes are not performed.
18086
18087Fixed a problem where the access type used in an AccessAs ASL
18088operator was not recorded correctly into the field object.
18089
18090Fixed a problem where ASL Event objects were created in a
18091signalled state. Events are now created in an unsignalled state.
18092
18093The internal object cache is now purged after table loading and
18094initialization to reduce the use of dynamic kernel memory -- on
18095the assumption that object use is greatest during the parse phase
18096of the entire table (versus the run-time use of individual control
18097methods.)
18098
18099ACPI 2.0 variable-length packages are now fully operational.
18100
18101Code and Data Size: Code and Data optimizations have permitted new
18102feature development with an actual reduction in the library size.
18103Current core subsystem library sizes are shown below.  These are
18104the code and data sizes for the acpica.lib produced by the
18105Microsoft Visual C++ 6.0 compiler, and these values do not include
18106any ACPI driver or OSPM code.  The debug version of the code
18107includes the debug output trace mechanism and has a larger code
18108and data size.  Note that these values will vary depending on the
18109efficiency of the compiler and the compiler options used during
18110generation.
18111
18112  Previous Release (11_09_01):
18113     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18114     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18115
18116  Current Release:
18117     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
18118     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
18119
18120 2) Linux:
18121
18122Enhanced the ACPI boot-time initialization code to allow the use
18123of Local APIC tables for processor enumeration on IA-32, and to
18124pave the way for a fully MPS-free boot (on SMP systems) in the
18125near future.  This functionality replaces
18126arch/i386/kernel/acpitables.c, which was introduced in an earlier
181272.4.15-preX release.  To enable this feature you must add
18128"acpi_boot=on" to the kernel command line -- see the help entry
18129for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
18130the works...
18131
18132Restructured the configuration options to allow boot-time table
18133parsing support without inclusion of the ACPI Interpreter (and
18134other) code.
18135
18136NOTE: This release does not include fixes for the reported events,
18137power-down, and thermal passive cooling issues (coming soon).
18138
18139 3) ASL Compiler:
18140
18141Added additional typechecking for Fields within restricted access
18142Operation Regions.  All fields within EC and CMOS regions must be
18143declared with ByteAcc. All fields within SMBus regions must be
18144declared with the BufferAcc access type.
18145
18146Fixed a problem where the listing file output of control methods
18147no longer interleaved the actual AML code with the ASL source
18148code.
18149
18150
18151
18152
18153----------------------------------------
18154Summary of changes for this label: 11_09_01
18155
181561) ACPI CA Core Subsystem:
18157
18158Implemented ACPI 2.0-defined support for writes to fields with a
18159Buffer, String, or Integer source operand that is smaller than the
18160target field. In these cases, the source operand is zero-extended
18161to fill the target field.
18162
18163Fixed a problem where a Field starting bit offset (within the
18164parent operation region) was calculated incorrectly if the
18165
18166alignment of the field differed from the access width.  This
18167affected CreateWordField, CreateDwordField, CreateQwordField, and
18168possibly other fields that use the "AccessAny" keyword.
18169
18170Fixed a problem introduced in the 11_02_01 release where indirect
18171stores through method arguments did not operate correctly.
18172
181732) Linux:
18174
18175Implemented boot-time ACPI table parsing support
18176(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
18177facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
18178legacy BIOS interfaces (e.g. MPS) for the configuration of system
18179processors, memory, and interrupts during setup_arch().  Note that
18180this patch does not include the required architecture-specific
18181changes required to apply this information -- subsequent patches
18182will be posted for both IA32 and IA64 to achieve this.
18183
18184Added low-level sleep support for IA32 platforms, courtesy of Pat
18185Mochel. This allows IA32 systems to transition to/from various
18186sleeping states (e.g. S1, S3), although the lack of a centralized
18187driver model and power-manageable drivers will prevent its
18188(successful) use on most systems.
18189
18190Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
18191submenu, unified IA32 and IA64 options, added new "Boot using ACPI
18192tables" option, etc.
18193
18194Increased the default timeout for the EC driver from 1ms to 10ms
18195(1000 cycles of 10us) to try to address AE_TIME errors during EC
18196transactions.
18197
18198 ----------------------------------------
18199Summary of changes for this label: 11_02_01
18200
182011) ACPI CA Core Subsystem:
18202
18203ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
18204(QWordAcc keyword). All ACPI 2.0 64-bit support is now
18205implemented.
18206
18207OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
18208changes to support ACPI 2.0 Qword field access.  Read/Write
18209PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
18210accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
18211the value parameter for the address space handler interface is now
18212an ACPI_INTEGER.  OSL implementations of these interfaces must now
18213handle the case where the Width parameter is 64.
18214
18215Index Fields: Fixed a problem where unaligned bit assembly and
18216disassembly for IndexFields was not supported correctly.
18217
18218Index and Bank Fields:  Nested Index and Bank Fields are now
18219supported. During field access, a check is performed to ensure
18220that the value written to an Index or Bank register is not out of
18221the range of the register.  The Index (or Bank) register is
18222written before each access to the field data. Future support will
18223include allowing individual IndexFields to be wider than the
18224DataRegister width.
18225
18226Fields: Fixed a problem where the AML interpreter was incorrectly
18227attempting to write beyond the end of a Field/OpRegion.  This was
18228a boundary case that occurred when a DWORD field was written to a
18229BYTE access OpRegion, forcing multiple writes and causing the
18230interpreter to write one datum too many.
18231
18232Fields: Fixed a problem with Field/OpRegion access where the
18233starting bit address of a field was incorrectly calculated if the
18234current access type was wider than a byte (WordAcc, DwordAcc, or
18235QwordAcc).
18236
18237Fields: Fixed a problem where forward references to individual
18238FieldUnits (individual Field names within a Field definition) were
18239not resolved during the AML table load.
18240
18241Fields: Fixed a problem where forward references from a Field
18242definition to the parent Operation Region definition were not
18243resolved during the AML table load.
18244
18245Fields: Duplicate FieldUnit names within a scope are now detected
18246during AML table load.
18247
18248Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
18249returned an incorrect name for the root node.
18250
18251Code and Data Size: Code and Data optimizations have permitted new
18252feature development with an actual reduction in the library size.
18253Current core subsystem library sizes are shown below.  These are
18254the code and data sizes for the acpica.lib produced by the
18255Microsoft Visual C++ 6.0 compiler, and these values do not include
18256any ACPI driver or OSPM code.  The debug version of the code
18257includes the debug output trace mechanism and has a larger code
18258and data size.  Note that these values will vary depending on the
18259efficiency of the compiler and the compiler options used during
18260generation.
18261
18262  Previous Release (10_18_01):
18263     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18264     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18265
18266  Current Release:
18267     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18268     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18269
18270 2) Linux:
18271
18272Improved /proc processor output (Pavel Machek) Re-added
18273MODULE_LICENSE("GPL") to all modules.
18274
18275 3) ASL Compiler version X2030:
18276
18277Duplicate FieldUnit names within a scope are now detected and
18278flagged as errors.
18279
18280 4) Documentation:
18281
18282Programmer Reference updated to reflect OSL and address space
18283handler interface changes described above.
18284
18285----------------------------------------
18286Summary of changes for this label: 10_18_01
18287
18288ACPI CA Core Subsystem:
18289
18290Fixed a problem with the internal object reference count mechanism
18291that occasionally caused premature object deletion. This resolves
18292all of the outstanding problem reports where an object is deleted
18293in the middle of an interpreter evaluation.  Although this problem
18294only showed up in rather obscure cases, the solution to the
18295problem involved an adjustment of all reference counts involving
18296objects attached to namespace nodes.
18297
18298Fixed a problem with Field support in the interpreter where
18299writing to an aligned field whose length is an exact multiple (2
18300or greater) of the field access granularity would cause an attempt
18301to write beyond the end of the field.
18302
18303The top level AML opcode execution functions within the
18304interpreter have been renamed with a more meaningful and
18305consistent naming convention.  The modules exmonad.c and
18306exdyadic.c were eliminated.  New modules are exoparg1.c,
18307exoparg2.c, exoparg3.c, and exoparg6.c.
18308
18309Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
18310
18311Fixed a problem where the AML debugger was causing some internal
18312objects to not be deleted during subsystem termination.
18313
18314Fixed a problem with the external AcpiEvaluateObject interface
18315where the subsystem would fault if the named object to be
18316evaluated referred to a constant such as Zero, Ones, etc.
18317
18318Fixed a problem with IndexFields and BankFields where the
18319subsystem would fault if the index, data, or bank registers were
18320not defined in the same scope as the field itself.
18321
18322Added printf format string checking for compilers that support
18323this feature.  Corrected more than 50 instances of issues with
18324format specifiers within invocations of ACPI_DEBUG_PRINT
18325throughout the core subsystem code.
18326
18327The ASL "Revision" operator now returns the ACPI support level
18328implemented in the core - the value "2" since the ACPI 2.0 support
18329is more than 50% implemented.
18330
18331Enhanced the output of the AML debugger "dump namespace" command
18332to output in a more human-readable form.
18333
18334Current core subsystem library code sizes are shown below.  These
18335
18336are the code and data sizes for the acpica.lib produced by the
18337Microsoft Visual C++ 6.0 compiler, and these values do not include
18338any ACPI driver or OSPM code.  The debug version of the code
18339includes the full debug trace mechanism -- leading to a much
18340
18341larger code and data size.  Note that these values will vary
18342depending on the efficiency of the compiler and the compiler
18343options used during generation.
18344
18345     Previous Label (09_20_01):
18346     Non-Debug Version:    65K Code,     5K Data,     70K Total
18347     Debug Version:       138K Code,    58K Data,    196K Total
18348
18349     This Label:
18350
18351     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18352     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18353
18354Linux:
18355
18356Implemented a "Bad BIOS Blacklist" to track machines that have
18357known ASL/AML problems.
18358
18359Enhanced the /proc interface for the thermal zone driver and added
18360support for _HOT (the critical suspend trip point).  The 'info'
18361file now includes threshold/policy information, and allows setting
18362of _SCP (cooling preference) and _TZP (polling frequency) values
18363to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
18364frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
18365preference to the passive/quiet mode (if supported by the ASL).
18366
18367Implemented a workaround for a gcc bug that resuted in an OOPs
18368when loading the control method battery driver.
18369
18370 ----------------------------------------
18371Summary of changes for this label: 09_20_01
18372
18373 ACPI CA Core Subsystem:
18374
18375The AcpiEnableEvent and AcpiDisableEvent interfaces have been
18376modified to allow individual GPE levels to be flagged as wake-
18377enabled (i.e., these GPEs are to remain enabled when the platform
18378sleeps.)
18379
18380The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
18381support wake-enabled GPEs.  This means that upon entering the
18382sleep state, all GPEs that are not wake-enabled are disabled.
18383When leaving the sleep state, these GPEs are re-enabled.
18384
18385A local double-precision divide/modulo module has been added to
18386enhance portability to OS kernels where a 64-bit math library is
18387not available.  The new module is "utmath.c".
18388
18389Several optimizations have been made to reduce the use of CPU
18390stack.  Originally over 2K, the maximum stack usage is now below
183912K at 1860  bytes (1.82k)
18392
18393Fixed a problem with the AcpiGetFirmwareTable interface where the
18394root table pointer was not mapped into a logical address properly.
18395
18396Fixed a problem where a NULL pointer was being dereferenced in the
18397interpreter code for the ASL Notify operator.
18398
18399Fixed a problem where the use of the ASL Revision operator
18400returned an error. This operator now returns the current version
18401of the ACPI CA core subsystem.
18402
18403Fixed a problem where objects passed as control method parameters
18404to AcpiEvaluateObject were always deleted at method termination.
18405However, these objects may end up being stored into the namespace
18406by the called method.  The object reference count mechanism was
18407applied to these objects instead of a force delete.
18408
18409Fixed a problem where static strings or buffers (contained in the
18410AML code) that are declared as package elements within the ASL
18411code could cause a fault because the interpreter would attempt to
18412delete them.  These objects are now marked with the "static
18413object" flag to prevent any attempt to delete them.
18414
18415Implemented an interpreter optimization to use operands directly
18416from the state object instead of extracting the operands to local
18417variables.  This reduces stack use and code size, and improves
18418performance.
18419
18420The module exxface.c was eliminated as it was an unnecessary extra
18421layer of code.
18422
18423Current core subsystem library code sizes are shown below.  These
18424are the code and data sizes for the acpica.lib produced by the
18425Microsoft Visual C++ 6.0 compiler, and these values do not include
18426any ACPI driver or OSPM code.  The debug version of the code
18427includes the full debug trace mechanism -- leading to a much
18428larger code and data size.  Note that these values will vary
18429depending on the efficiency of the compiler and the compiler
18430options used during generation.
18431
18432  Non-Debug Version:  65K Code,   5K Data,   70K Total
18433(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
18434Total  (Previously 195K)
18435
18436Linux:
18437
18438Support for ACPI 2.0 64-bit integers has been added.   All ACPI
18439Integer objects are now 64 bits wide
18440
18441All Acpi data types and structures are now in lower case.  Only
18442Acpi macros are upper case for differentiation.
18443
18444 Documentation:
18445
18446Changes to the external interfaces as described above.
18447
18448 ----------------------------------------
18449Summary of changes for this label: 08_31_01
18450
18451 ACPI CA Core Subsystem:
18452
18453A bug with interpreter implementation of the ASL Divide operator
18454was found and fixed.  The implicit function return value (not the
18455explicit store operands) was returning the remainder instead of
18456the quotient.  This was a longstanding bug and it fixes several
18457known outstanding issues on various platforms.
18458
18459The ACPI_DEBUG_PRINT and function trace entry/exit macros have
18460been further optimized for size.  There are 700 invocations of the
18461DEBUG_PRINT macro alone, so each optimization reduces the size of
18462the debug version of the subsystem significantly.
18463
18464A stack trace mechanism has been implemented.  The maximum stack
18465usage is about 2K on 32-bit platforms.  The debugger command "stat
18466stack" will display the current maximum stack usage.
18467
18468All public symbols and global variables within the subsystem are
18469now prefixed with the string "Acpi".  This keeps all of the
18470symbols grouped together in a kernel map, and avoids conflicts
18471with other kernel subsystems.
18472
18473Most of the internal fixed lookup tables have been moved into the
18474code segment via the const operator.
18475
18476Several enhancements have been made to the interpreter to both
18477reduce the code size and improve performance.
18478
18479Current core subsystem library code sizes are shown below.  These
18480are the code and data sizes for the acpica.lib produced by the
18481Microsoft Visual C++ 6.0 compiler, and these values do not include
18482any ACPI driver or OSPM code.  The debug version of the code
18483includes the full debug trace mechanism which contains over 700
18484invocations of the DEBUG_PRINT macro, 500 function entry macro
18485invocations, and over 900 function exit macro invocations --
18486leading to a much larger code and data size.  Note that these
18487values will vary depending on the efficiency of the compiler and
18488the compiler options used during generation.
18489
18490        Non-Debug Version:  64K Code,   5K Data,   69K Total
18491Debug Version:     137K Code,  58K Data,  195K Total
18492
18493 Linux:
18494
18495Implemented wbinvd() macro, pending a kernel-wide definition.
18496
18497Fixed /proc/acpi/event to handle poll() and short reads.
18498
18499 ASL Compiler, version X2026:
18500
18501Fixed a problem introduced in the previous label where the AML
18502
18503code emitted for package objects produced packages with zero
18504length.
18505
18506 ----------------------------------------
18507Summary of changes for this label: 08_16_01
18508
18509ACPI CA Core Subsystem:
18510
18511The following ACPI 2.0 ASL operators have been implemented in the
18512AML interpreter (These are already supported by the Intel ASL
18513compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
18514ToBuffer.  Support for 64-bit AML constants is implemented in the
18515AML parser, debugger, and disassembler.
18516
18517The internal memory tracking mechanism (leak detection code) has
18518been upgraded to reduce the memory overhead (a separate tracking
18519block is no longer allocated for each memory allocation), and now
18520supports all of the internal object caches.
18521
18522The data structures and code for the internal object caches have
18523been coelesced and optimized so that there is a single cache and
18524memory list data structure and a single group of functions that
18525implement generic cache management.  This has reduced the code
18526size in both the debug and release versions of the subsystem.
18527
18528The DEBUG_PRINT macro(s) have been optimized for size and replaced
18529by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
18530different, because it generates a single call to an internal
18531function.  This results in a savings of about 90 bytes per
18532invocation, resulting in an overall code and data savings of about
1853316% in the debug version of the subsystem.
18534
18535 Linux:
18536
18537Fixed C3 disk corruption problems and re-enabled C3 on supporting
18538machines.
18539
18540Integrated low-level sleep code by Patrick Mochel.
18541
18542Further tweaked source code Linuxization.
18543
18544Other minor fixes.
18545
18546 ASL Compiler:
18547
18548Support for ACPI 2.0 variable length packages is fixed/completed.
18549
18550Fixed a problem where the optional length parameter for the ACPI
185512.0 ToString operator.
18552
18553Fixed multiple extraneous error messages when a syntax error is
18554detected within the declaration line of a control method.
18555
18556 ----------------------------------------
18557Summary of changes for this label: 07_17_01
18558
18559ACPI CA Core Subsystem:
18560
18561Added a new interface named AcpiGetFirmwareTable to obtain any
18562ACPI table via the ACPI signature.  The interface can be called at
18563any time during kernel initialization, even before the kernel
18564virtual memory manager is initialized and paging is enabled.  This
18565allows kernel subsystems to obtain ACPI tables very early, even
18566before the ACPI CA subsystem is initialized.
18567
18568Fixed a problem where Fields defined with the AnyAcc attribute
18569could be resolved to the incorrect address under the following
18570conditions: 1) the field width is larger than 8 bits and 2) the
18571parent operation region is not defined on a DWORD boundary.
18572
18573Fixed a problem where the interpreter is not being locked during
18574namespace initialization (during execution of the _INI control
18575methods), causing an error when an attempt is made to release it
18576later.
18577
18578ACPI 2.0 support in the AML Interpreter has begun and will be
18579ongoing throughout the rest of this year.  In this label, The Mod
18580operator is implemented.
18581
18582Added a new data type to contain full PCI addresses named
18583ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
18584and Function values.
18585
18586 Linux:
18587
18588Enhanced the Linux version of the source code to change most
18589capitalized ACPI type names to lowercase. For example, all
18590instances of ACPI_STATUS are changed to acpi_status.  This will
18591result in a large diff, but the change is strictly cosmetic and
18592aligns the CA code closer to the Linux coding standard.
18593
18594OSL Interfaces:
18595
18596The interfaces to the PCI configuration space have been changed to
18597add the PCI Segment number and to split the single 32-bit combined
18598DeviceFunction field into two 16-bit fields.  This was
18599accomplished by moving the four values that define an address in
18600PCI configuration space (segment, bus, device, and function) to
18601the new ACPI_PCI_ID structure.
18602
18603The changes to the PCI configuration space interfaces led to a
18604reexamination of the complete set of address space access
18605interfaces for PCI, I/O, and Memory.  The previously existing 18
18606interfaces have proven difficult to maintain (any small change
18607must be propagated across at least 6 interfaces) and do not easily
18608allow for future expansion to 64 bits if necessary.  Also, on some
18609systems, it would not be appropriate to demultiplex the access
18610width (8, 16, 32,or 64) before calling the OSL if the
18611corresponding native OS interfaces contain a similar access width
18612parameter.  For these reasons, the 18 address space interfaces
18613have been replaced by these 6 new ones:
18614
18615AcpiOsReadPciConfiguration
18616AcpiOsWritePciConfiguration
18617AcpiOsReadMemory
18618AcpiOsWriteMemory
18619AcpiOsReadPort
18620AcpiOsWritePort
18621
18622Added a new interface named AcpiOsGetRootPointer to allow the OSL
18623to perform the platform and/or OS-specific actions necessary to
18624obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
18625interface will simply call down to the CA core to perform the low-
18626memory search for the table.  On IA-64, the RSDP is obtained from
18627EFI.  Migrating this interface to the OSL allows the CA core to
18628
18629remain OS and platform independent.
18630
18631Added a new interface named AcpiOsSignal to provide a generic
18632"function code and pointer" interface for various miscellaneous
18633signals and notifications that must be made to the host OS.   The
18634first such signals are intended to support the ASL Fatal and
18635Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
18636interface has been obsoleted.
18637
18638The definition of the AcpiFormatException interface has been
18639changed to simplify its use.  The caller no longer must supply a
18640buffer to the call; A pointer to a const string is now returned
18641directly.  This allows the call to be easily used in printf
18642statements, etc. since the caller does not have to manage a local
18643buffer.
18644
18645
18646 ASL Compiler, Version X2025:
18647
18648The ACPI 2.0 Switch/Case/Default operators have been implemented
18649and are fully functional.  They will work with all ACPI 1.0
18650interpreters, since the operators are simply translated to If/Else
18651pairs.
18652
18653The ACPI 2.0 ElseIf operator is implemented and will also work
18654with 1.0 interpreters, for the same reason.
18655
18656Implemented support for ACPI 2.0 variable-length packages.  These
18657packages have a separate opcode, and their size is determined by
18658the interpreter at run-time.
18659
18660Documentation The ACPI CA Programmer Reference has been updated to
18661reflect the new interfaces and changes to existing interfaces.
18662
18663 ------------------------------------------
18664Summary of changes for this label: 06_15_01
18665
18666 ACPI CA Core Subsystem:
18667
18668Fixed a problem where a DWORD-accessed field within a Buffer
18669object would get its byte address inadvertently rounded down to
18670the nearest DWORD.  Buffers are always Byte-accessible.
18671
18672 ASL Compiler, version X2024:
18673
18674Fixed a problem where the Switch() operator would either fault or
18675hang the compiler.  Note however, that the AML code for this ACPI
186762.0 operator is not yet implemented.
18677
18678Compiler uses the new AcpiOsGetTimer interface to obtain compile
18679timings.
18680
18681Implementation of the CreateField operator automatically converts
18682a reference to a named field within a resource descriptor from a
18683byte offset to a bit offset if required.
18684
18685Added some missing named fields from the resource descriptor
18686support. These are the names that are automatically created by the
18687compiler to reference fields within a descriptor.  They are only
18688valid at compile time and are not passed through to the AML
18689interpreter.
18690
18691Resource descriptor named fields are now typed as Integers and
18692subject to compile-time typechecking when used in expressions.
18693
18694 ------------------------------------------
18695Summary of changes for this label: 05_18_01
18696
18697 ACPI CA Core Subsystem:
18698
18699Fixed a couple of problems in the Field support code where bits
18700from adjacent fields could be returned along with the proper field
18701bits. Restructured the field support code to improve performance,
18702readability and maintainability.
18703
18704New DEBUG_PRINTP macro automatically inserts the procedure name
18705into the output, saving hundreds of copies of procedure name
18706strings within the source, shrinking the memory footprint of the
18707debug version of the core subsystem.
18708
18709 Source Code Structure:
18710
18711The source code directory tree was restructured to reflect the
18712current organization of the component architecture.  Some files
18713and directories have been moved and/or renamed.
18714
18715 Linux:
18716
18717Fixed leaking kacpidpc processes.
18718
18719Fixed queueing event data even when /proc/acpi/event is not
18720opened.
18721
18722 ASL Compiler, version X2020:
18723
18724Memory allocation performance enhancement - over 24X compile time
18725improvement on large ASL files.  Parse nodes and namestring
18726buffers are now allocated from a large internal compiler buffer.
18727
18728The temporary .SRC file is deleted unless the "-s" option is
18729specified
18730
18731The "-d" debug output option now sends all output to the .DBG file
18732instead of the console.
18733
18734"External" second parameter is now optional
18735
18736"ElseIf" syntax now properly allows the predicate
18737
18738Last operand to "Load" now recognized as a Target operand
18739
18740Debug object can now be used anywhere as a normal object.
18741
18742ResourceTemplate now returns an object of type BUFFER
18743
18744EISAID now returns an object of type INTEGER
18745
18746"Index" now works with a STRING operand
18747
18748"LoadTable" now accepts optional parameters
18749
18750"ToString" length parameter is now optional
18751
18752"Interrupt (ResourceType," parse error fixed.
18753
18754"Register" with a user-defined region space parse error fixed
18755
18756Escaped backslash at the end of a string ("\\") scan/parse error
18757fixed
18758
18759"Revision" is now an object of type INTEGER.
18760
18761
18762
18763------------------------------------------
18764Summary of changes for this label: 05_02_01
18765
18766Linux:
18767
18768/proc/acpi/event now blocks properly.
18769
18770Removed /proc/sys/acpi. You can still dump your DSDT from
18771/proc/acpi/dsdt.
18772
18773 ACPI CA Core Subsystem:
18774
18775Fixed a problem introduced in the previous label where some of the
18776"small" resource descriptor types were not recognized.
18777
18778Improved error messages for the case where an ASL Field is outside
18779the range of the parent operation region.
18780
18781 ASL Compiler, version X2018:
18782
18783
18784Added error detection for ASL Fields that extend beyond the length
18785of the parent operation region (only if the length of the region
18786is known at compile time.)  This includes fields that have a
18787minimum access width that is smaller than the parent region, and
18788individual field units that are partially or entirely beyond the
18789extent of the parent.
18790
18791
18792
18793------------------------------------------
18794Summary of changes for this label: 04_27_01
18795
18796 ACPI CA Core Subsystem:
18797
18798Fixed a problem where the namespace mutex could be released at the
18799wrong time during execution of AcpiRemoveAddressSpaceHandler.
18800
18801Added optional thread ID output for debug traces, to simplify
18802debugging of multiple threads.  Added context switch notification
18803when the debug code realizes that a different thread is now
18804executing ACPI code.
18805
18806Some additional external data types have been prefixed with the
18807string "ACPI_" for consistency.  This may effect existing code.
18808The data types affected are the external callback typedefs - e.g.,
18809
18810WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
18811
18812 Linux:
18813
18814Fixed an issue with the OSL semaphore implementation where a
18815thread was waking up with an error from receiving a SIGCHLD
18816signal.
18817
18818Linux version of ACPI CA now uses the system C library for string
18819manipulation routines instead of a local implementation.
18820
18821Cleaned up comments and removed TBDs.
18822
18823 ASL Compiler, version X2017:
18824
18825Enhanced error detection and reporting for all file I/O
18826operations.
18827
18828 Documentation:
18829
18830Programmer Reference updated to version 1.06.
18831
18832
18833
18834------------------------------------------
18835Summary of changes for this label: 04_13_01
18836
18837 ACPI CA Core Subsystem:
18838
18839Restructured support for BufferFields and RegionFields.
18840BankFields support is now fully operational.  All known 32-bit
18841limitations on field sizes have been removed.  Both BufferFields
18842and (Operation) RegionFields are now supported by the same field
18843management code.
18844
18845Resource support now supports QWORD address and IO resources. The
1884616/32/64 bit address structures and the Extended IRQ structure
18847have been changed to properly handle Source Resource strings.
18848
18849A ThreadId of -1 is now used to indicate a "mutex not acquired"
18850condition internally and must never be returned by AcpiOsThreadId.
18851This reserved value was changed from 0 since Unix systems allow a
18852thread ID of 0.
18853
18854Linux:
18855
18856Driver code reorganized to enhance portability
18857
18858Added a kernel configuration option to control ACPI_DEBUG
18859
18860Fixed the EC driver to honor _GLK.
18861
18862ASL Compiler, version X2016:
18863
18864Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
18865address space was set to 0, not 0x7f as it should be.
18866
18867 ------------------------------------------
18868Summary of changes for this label: 03_13_01
18869
18870 ACPI CA Core Subsystem:
18871
18872During ACPI initialization, the _SB_._INI method is now run if
18873present.
18874
18875Notify handler fix - notifies are deferred until the parent method
18876completes execution.  This fixes the "mutex already acquired"
18877issue seen occasionally.
18878
18879Part of the "implicit conversion" rules in ACPI 2.0 have been
18880found to cause compatibility problems with existing ASL/AML.  The
18881convert "result-to-target-type" implementation has been removed
18882for stores to method Args and Locals.  Source operand conversion
18883is still fully implemented.  Possible changes to ACPI 2.0
18884specification pending.
18885
18886Fix to AcpiRsCalculatePciRoutingTableLength to return correct
18887length.
18888
18889Fix for compiler warnings for 64-bit compiles.
18890
18891 Linux:
18892
18893/proc output aligned for easier parsing.
18894
18895Release-version compile problem fixed.
18896
18897New kernel configuration options documented in Configure.help.
18898
18899IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
18900context" message.
18901
18902 OSPM:
18903
18904Power resource driver integrated with bus manager.
18905
18906Fixed kernel fault during active cooling for thermal zones.
18907
18908Source Code:
18909
18910The source code tree has been restructured.
18911
18912
18913
18914------------------------------------------
18915Summary of changes for this label: 03_02_01
18916
18917 Linux OS Services Layer (OSL):
18918
18919Major revision of all Linux-specific code.
18920
18921Modularized all ACPI-specific drivers.
18922
18923Added new thermal zone and power resource drivers.
18924
18925Revamped /proc interface (new functionality is under /proc/acpi).
18926
18927New kernel configuration options.
18928
18929 Linux known issues:
18930
18931New kernel configuration options not documented in Configure.help
18932yet.
18933
18934
18935Module dependencies not currently implemented. If used, they
18936should be loaded in this order: busmgr, power, ec, system,
18937processor, battery, ac_adapter, button, thermal.
18938
18939Modules will not load if CONFIG_MODVERSION is set.
18940
18941IBM 600E - entering S5 may reboot instead of shutting down.
18942
18943IBM 600E - Sleep button may generate "Invalid <NULL> context"
18944message.
18945
18946Some systems may fail with "execution mutex already acquired"
18947message.
18948
18949 ACPI CA Core Subsystem:
18950
18951Added a new OSL Interface, AcpiOsGetThreadId.  This was required
18952for the  deadlock detection code. Defined to return a non-zero, 32-
18953bit thread ID for the currently executing thread.  May be a non-
18954zero constant integer on single-thread systems.
18955
18956Implemented deadlock detection for internal subsystem mutexes.  We
18957may add conditional compilation for this code (debug only) later.
18958
18959ASL/AML Mutex object semantics are now fully supported.  This
18960includes multiple acquires/releases by owner and support for the
18961
18962Mutex SyncLevel parameter.
18963
18964A new "Force Release" mechanism automatically frees all ASL
18965Mutexes that have been acquired but not released when a thread
18966exits the interpreter.  This forces conformance to the ACPI spec
18967("All mutexes must be released when an invocation exits") and
18968prevents deadlocked ASL threads.  This mechanism can be expanded
18969(later) to monitor other resource acquisitions if OEM ASL code
18970continues to misbehave (which it will).
18971
18972Several new ACPI exception codes have been added for the Mutex
18973support.
18974
18975Recursive method calls are now allowed and supported (the ACPI
18976spec does in fact allow recursive method calls.)  The number of
18977recursive calls is subject to the restrictions imposed by the
18978SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
18979parameter.
18980
18981Implemented support for the SyncLevel parameter for control
18982methods (ACPI 2.0 feature)
18983
18984Fixed a deadlock problem when multiple threads attempted to use
18985the interpreter.
18986
18987Fixed a problem where the string length of a String package
18988element was not always set in a package returned from
18989AcpiEvaluateObject.
18990
18991Fixed a problem where the length of a String package element was
18992not always included in the length of the overall package returned
18993from AcpiEvaluateObject.
18994
18995Added external interfaces (Acpi*) to the ACPI debug memory
18996manager.  This manager keeps a list of all outstanding
18997allocations, and can therefore detect memory leaks and attempts to
18998free memory blocks more than once. Useful for code such as the
18999power manager, etc.  May not be appropriate for device drivers.
19000Performance with the debug code enabled is slow.
19001
19002The ACPI Global Lock is now an optional hardware element.
19003
19004 ASL Compiler Version X2015:
19005
19006Integrated changes to allow the compiler to be generated on
19007multiple platforms.
19008
19009Linux makefile added to generate the compiler on Linux
19010
19011 Source Code:
19012
19013All platform-specific headers have been moved to their own
19014subdirectory, Include/Platform.
19015
19016New source file added, Interpreter/ammutex.c
19017
19018New header file, Include/acstruct.h
19019
19020 Documentation:
19021
19022The programmer reference has been updated for the following new
19023interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
19024
19025 ------------------------------------------
19026Summary of changes for this label: 02_08_01
19027
19028Core ACPI CA Subsystem: Fixed a problem where an error was
19029incorrectly returned if the return resource buffer was larger than
19030the actual data (in the resource interfaces).
19031
19032References to named objects within packages are resolved to the
19033
19034full pathname string before packages are returned directly (via
19035the AcpiEvaluateObject interface) or indirectly via the resource
19036interfaces.
19037
19038Linux OS Services Layer (OSL):
19039
19040Improved /proc battery interface.
19041
19042
19043Added C-state debugging output and other miscellaneous fixes.
19044
19045ASL Compiler Version X2014:
19046
19047All defined method arguments can now be used as local variables,
19048including the ones that are not actually passed in as parameters.
19049The compiler tracks initialization of the arguments and issues an
19050exception if they are used without prior assignment (just like
19051locals).
19052
19053The -o option now specifies a filename prefix that is used for all
19054output files, including the AML output file.  Otherwise, the
19055default behavior is as follows:  1) the AML goes to the file
19056specified in the DSDT.  2) all other output files use the input
19057source filename as the base.
19058
19059 ------------------------------------------
19060Summary of changes for this label: 01_25_01
19061
19062Core ACPI CA Subsystem: Restructured the implementation of object
19063store support within the  interpreter.  This includes support for
19064the Store operator as well  as any ASL operators that include a
19065target operand.
19066
19067Partially implemented support for Implicit Result-to-Target
19068conversion. This is when a result object is converted on the fly
19069to the type of  an existing target object.  Completion of this
19070support is pending  further analysis of the ACPI specification
19071concerning this matter.
19072
19073CPU-specific code has been removed from the subsystem (hardware
19074directory).
19075
19076New Power Management Timer functions added
19077
19078Linux OS Services Layer (OSL): Moved system state transition code
19079to the core, fixed it, and modified  Linux OSL accordingly.
19080
19081Fixed C2 and C3 latency calculations.
19082
19083
19084We no longer use the compilation date for the version message on
19085initialization, but retrieve the version from AcpiGetSystemInfo().
19086
19087Incorporated for fix Sony VAIO machines.
19088
19089Documentation:  The Programmer Reference has been updated and
19090reformatted.
19091
19092
19093ASL Compiler:  Version X2013: Fixed a problem where the line
19094numbering and error reporting could get out  of sync in the
19095presence of multiple include files.
19096
19097 ------------------------------------------
19098Summary of changes for this label: 01_15_01
19099
19100Core ACPI CA Subsystem:
19101
19102Implemented support for type conversions in the execution of the
19103ASL  Concatenate operator (The second operand is converted to
19104match the type  of the first operand before concatenation.)
19105
19106Support for implicit source operand conversion is partially
19107implemented.   The ASL source operand types Integer, Buffer, and
19108String are freely  interchangeable for most ASL operators and are
19109converted by the interpreter  on the fly as required.  Implicit
19110Target operand conversion (where the  result is converted to the
19111target type before storing) is not yet implemented.
19112
19113Support for 32-bit and 64-bit BCD integers is implemented.
19114
19115Problem fixed where a field read on an aligned field could cause a
19116read  past the end of the field.
19117
19118New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
19119does not return a value, but the caller expects one.  (The ASL
19120compiler flags this as a warning.)
19121
19122ASL Compiler:
19123
19124Version X2011:
191251. Static typechecking of all operands is implemented. This
19126prevents the use of invalid objects (such as using a Package where
19127an Integer is required) at compile time instead of at interpreter
19128run-time.
191292. The ASL source line is printed with ALL errors and warnings.
191303. Bug fix for source EOF without final linefeed.
191314. Debug option is split into a parse trace and a namespace trace.
191325. Namespace output option (-n) includes initial values for
19133integers and strings.
191346. Parse-only option added for quick syntax checking.
191357. Compiler checks for duplicate ACPI name declarations
19136
19137Version X2012:
191381. Relaxed typechecking to allow interchangeability between
19139strings, integers, and buffers.  These types are now converted by
19140the interpreter at runtime.
191412. Compiler reports time taken by each internal subsystem in the
19142debug         output file.
19143
19144
19145 ------------------------------------------
19146Summary of changes for this label: 12_14_00
19147
19148ASL Compiler:
19149
19150This is the first official release of the compiler. Since the
19151compiler requires elements of the Core Subsystem, this label
19152synchronizes everything.
19153
19154------------------------------------------
19155Summary of changes for this label: 12_08_00
19156
19157
19158Fixed a problem where named references within the ASL definition
19159of both OperationRegions and CreateXXXFields did not work
19160properly.  The symptom was an AE_AML_OPERAND_TYPE during
19161initialization of the region/field. This is similar (but not
19162related internally) to the problem that was fixed in the last
19163label.
19164
19165Implemented both 32-bit and 64-bit support for the BCD ASL
19166functions ToBCD and FromBCD.
19167
19168Updated all legal headers to include "2000" in the copyright
19169years.
19170
19171 ------------------------------------------
19172Summary of changes for this label: 12_01_00
19173
19174Fixed a problem where method invocations within the ASL definition
19175of both OperationRegions and CreateXXXFields did not work
19176properly.  The symptom was an AE_AML_OPERAND_TYPE during
19177initialization of the region/field:
19178
19179  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
19180[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
19181(0x3005)
19182
19183Fixed a problem where operators with more than one nested
19184subexpression would fail.  The symptoms were varied, by mostly
19185AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
19186problem that has gone unnoticed until now.
19187
19188  Subtract (Add (1,2), Multiply (3,4))
19189
19190Fixed a problem where AcpiGetHandle didn't quite get fixed in the
19191previous build (The prefix part of a relative path was handled
19192incorrectly).
19193
19194Fixed a problem where Operation Region initialization failed if
19195the operation region name was a "namepath" instead of a simple
19196"nameseg". Symptom was an AE_NO_OPERAND error.
19197
19198Fixed a problem where an assignment to a local variable via the
19199indirect RefOf mechanism only worked for the first such
19200assignment.  Subsequent assignments were ignored.
19201
19202 ------------------------------------------
19203Summary of changes for this label: 11_15_00
19204
19205ACPI 2.0 table support with backwards support for ACPI 1.0 and the
192060.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
19207the AML  interpreter does NOT have support for the new 2.0 ASL
19208grammar terms at this time.
19209
19210All ACPI hardware access is via the GAS structures in the ACPI 2.0
19211FADT.
19212
19213All physical memory addresses across all platforms are now 64 bits
19214wide. Logical address width remains dependent on the platform
19215(i.e., "void *").
19216
19217AcpiOsMapMemory interface changed to a 64-bit physical address.
19218
19219The AML interpreter integer size is now 64 bits, as per the ACPI
192202.0 specification.
19221
19222For backwards compatibility with ACPI 1.0, ACPI tables with a
19223revision number less than 2 use 32-bit integers only.
19224
19225Fixed a problem where the evaluation of OpRegion operands did not
19226always resolve them to numbers properly.
19227
19228------------------------------------------
19229Summary of changes for this label: 10_20_00
19230
19231Fix for CBN_._STA issue.  This fix will allow correct access to
19232CBN_ OpRegions when the _STA returns 0x8.
19233
19234Support to convert ACPI constants (Ones, Zeros, One) to actual
19235values before a package object is returned
19236
19237Fix for method call as predicate to if/while construct causing
19238incorrect if/while behavior
19239
19240Fix for Else block package lengths sometimes calculated wrong (if
19241block > 63 bytes)
19242
19243Fix for Processor object length field, was always zero
19244
19245Table load abort if FACP sanity check fails
19246
19247Fix for problem with Scope(name) if name already exists
19248
19249Warning emitted if a named object referenced cannot be found
19250(resolved) during method execution.
19251
19252
19253
19254
19255
19256------------------------------------------
19257Summary of changes for this label: 9_29_00
19258
19259New table initialization interfaces: AcpiInitializeSubsystem no
19260longer has any parameters AcpiFindRootPointer - Find the RSDP (if
19261necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
19262>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
19263AcpiLoadTables
19264
19265Note: These interface changes require changes to all existing OSDs
19266
19267The PCI_Config default address space handler is always installed
19268at the root namespace object.
19269
19270-------------------------------------------
19271Summary of changes for this label: 09_15_00
19272
19273The new initialization architecture is implemented.  New
19274interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
19275AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
19276
19277(Namespace is automatically loaded when a table is loaded)
19278
19279The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1928052 bytes to 32 bytes.  There is usually one of these for every
19281namespace object, so the memory savings is significant.
19282
19283Implemented just-in-time evaluation of the CreateField operators.
19284
19285Bug fixes for IA-64 support have been integrated.
19286
19287Additional code review comments have been implemented
19288
19289The so-called "third pass parse" has been replaced by a final walk
19290through the namespace to initialize all operation regions (address
19291spaces) and fields that have not yet been initialized during the
19292execution of the various _INI and REG methods.
19293
19294New file - namespace/nsinit.c
19295
19296-------------------------------------------
19297Summary of changes for this label: 09_01_00
19298
19299Namespace manager data structures have been reworked to change the
19300primary  object from a table to a single object.  This has
19301resulted in dynamic memory  savings of 3X within the namespace and
193022X overall in the ACPI CA subsystem.
19303
19304Fixed problem where the call to AcpiEvFindPciRootBuses was
19305inadvertently left  commented out.
19306
19307Reduced the warning count when generating the source with the GCC
19308compiler.
19309
19310Revision numbers added to each module header showing the
19311SourceSafe version of the file.  Please refer to this version
19312number when giving us feedback or comments on individual modules.
19313
19314The main object types within the subsystem have been renamed to
19315clarify their  purpose:
19316
19317ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
19318ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
19319ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
19320
19321NOTE: no changes to the initialization sequence are included in
19322this label.
19323
19324-------------------------------------------
19325Summary of changes for this label: 08_23_00
19326
19327Fixed problem where TerminateControlMethod was being called
19328multiple times per  method
19329
19330Fixed debugger problem where single stepping caused a semaphore to
19331be  oversignalled
19332
19333Improved performance through additional parse object caching -
19334added  ACPI_EXTENDED_OP type
19335
19336-------------------------------------------
19337Summary of changes for this label: 08_10_00
19338
19339Parser/Interpreter integration:  Eliminated the creation of
19340complete parse trees  for ACPI tables and control methods.
19341Instead, parse subtrees are created and  then deleted as soon as
19342they are processed (Either entered into the namespace or  executed
19343by the interpreter).  This reduces the use of dynamic kernel
19344memory  significantly. (about 10X)
19345
19346Exception codes broken into classes and renumbered.  Be sure to
19347recompile all  code that includes acexcep.h.  Hopefully we won't
19348have to renumber the codes  again now that they are split into
19349classes (environment, programmer, AML code,  ACPI table, and
19350internal).
19351
19352Fixed some additional alignment issues in the Resource Manager
19353subcomponent
19354
19355Implemented semaphore tracking in the AcpiExec utility, and fixed
19356several places  where mutexes/semaphores were being unlocked
19357without a corresponding lock  operation.  There are no known
19358semaphore or mutex "leaks" at this time.
19359
19360Fixed the case where an ASL Return operator is used to return an
19361unnamed  package.
19362
19363-------------------------------------------
19364Summary of changes for this label: 07_28_00
19365
19366Fixed a problem with the way addresses were calculated in
19367AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
19368manifested itself when a Field was  created with WordAccess or
19369DwordAccess, but the field unit defined within the  Field was less
19370
19371than a Word or Dword.
19372
19373Fixed a problem in AmlDumpOperands() module's loop to pull
19374operands off of the  operand stack to display information. The
19375problem manifested itself as a TLB  error on 64-bit systems when
19376accessing an operand stack with two or more  operands.
19377
19378Fixed a problem with the PCI configuration space handlers where
19379context was  getting confused between accesses. This required a
19380change to the generic address  space handler and address space
19381setup definitions. Handlers now get both a  global handler context
19382(this is the one passed in by the user when executing
19383AcpiInstallAddressSpaceHandler() and a specific region context
19384that is unique to  each region (For example, the _ADR, _SEG and
19385_BBN values associated with a  specific region). The generic
19386function definitions have changed to the  following:
19387
19388typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
19389UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
19390*HandlerContext, // This used to be void *Context void
19391*RegionContext); // This is an additional parameter
19392
19393typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
19394RegionHandle, UINT32 Function, void *HandlerContext,  void
19395**RegionContext); // This used to be **ReturnContext
19396
19397-------------------------------------------
19398Summary of changes for this label: 07_21_00
19399
19400Major file consolidation and rename.  All files within the
19401interpreter have been  renamed as well as most header files.  This
19402was done to prevent collisions with  existing files in the host
19403OSs -- filenames such as "config.h" and "global.h"  seem to be
19404quite common.  The VC project files have been updated.  All
19405makefiles  will require modification.
19406
19407The parser/interpreter integration continues in Phase 5 with the
19408implementation  of a complete 2-pass parse (the AML is parsed
19409twice) for each table;  This  avoids the construction of a huge
19410parse tree and therefore reduces the amount of  dynamic memory
19411required by the subsystem.  Greater use of the parse object cache
19412means that performance is unaffected.
19413
19414Many comments from the two code reviews have been rolled in.
19415
19416The 64-bit alignment support is complete.
19417
19418-------------------------------------------
19419Summary of changes for this label: 06_30_00
19420
19421With a nod and a tip of the hat to the technology of yesteryear,
19422we've added  support in the source code for 80 column output
19423devices.  The code is now mostly  constrained to 80 columns or
19424less to support environments and editors that 1)  cannot display
19425or print more than 80 characters on a single line, and 2) cannot
19426disable line wrapping.
19427
19428A major restructuring of the namespace data structure has been
19429completed.  The  result is 1) cleaner and more
19430understandable/maintainable code, and 2) a  significant reduction
19431in the dynamic memory requirement for each named ACPI  object
19432(almost half).
19433
19434-------------------------------------------
19435Summary of changes for this label: 06_23_00
19436
19437Linux support has been added.  In order to obtain approval to get
19438the ACPI CA  subsystem into the Linux kernel, we've had to make
19439quite a few changes to the  base subsystem that will affect all
19440users (all the changes are generic and OS- independent).  The
19441effects of these global changes have been somewhat far  reaching.
19442Files have been merged and/or renamed and interfaces have been
19443renamed.   The major changes are described below.
19444
19445Osd* interfaces renamed to AcpiOs* to eliminate namespace
19446pollution/confusion  within our target kernels.  All OSD
19447interfaces must be modified to match the new  naming convention.
19448
19449Files merged across the subsystem.  A number of the smaller source
19450and header  files have been merged to reduce the file count and
19451increase the density of the  existing files.  There are too many
19452to list here.  In general, makefiles that  call out individual
19453files will require rebuilding.
19454
19455Interpreter files renamed.  All interpreter files now have the
19456prefix am*  instead of ie* and is*.
19457
19458Header files renamed:  The acapi.h file is now acpixf.h.  The
19459acpiosd.h file is  now acpiosxf.h.  We are removing references to
19460the acronym "API" since it is  somewhat windowsy. The new name is
19461"external interface" or xface or xf in the  filenames.j
19462
19463
19464All manifest constants have been forced to upper case (some were
19465mixed case.)   Also, the string "ACPI_" has been prepended to many
19466(not all) of the constants,  typedefs, and structs.
19467
19468The globals "DebugLevel" and "DebugLayer" have been renamed
19469"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
19470
19471All other globals within the subsystem are now prefixed with
19472"AcpiGbl_" Internal procedures within the subsystem are now
19473prefixed with "Acpi" (with only  a few exceptions).  The original
19474two-letter abbreviation for the subcomponent  remains after "Acpi"
19475- for example, CmCallocate became AcpiCmCallocate.
19476
19477Added a source code translation/conversion utility.  Used to
19478generate the Linux  source code, it can be modified to generate
19479other types of source as well. Can  also be used to cleanup
19480existing source by removing extraneous spaces and blank  lines.
19481Found in tools/acpisrc/*
19482
19483OsdUnMapMemory was renamed to OsdUnmapMemory and then
19484AcpiOsUnmapMemory.  (UnMap  became Unmap).
19485
19486A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
19487When set to  one, this indicates that the caller wants to use the
19488
19489semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
19490both types.  However, implementers of this  call may want to use
19491different OS primitives depending on the type of semaphore
19492requested.  For example, some operating systems provide separate
19493
19494"mutex" and  "semaphore" interfaces - where the mutex interface is
19495much faster because it  doesn't have all the overhead of a full
19496semaphore implementation.
19497
19498Fixed a deadlock problem where a method that accesses the PCI
19499address space can  block forever if it is the first access to the
19500space.
19501
19502-------------------------------------------
19503Summary of changes for this label: 06_02_00
19504
19505Support for environments that cannot handle unaligned data
19506accesses (e.g.  firmware and OS environments devoid of alignment
19507handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
19508been added (via configurable macros) in  these three areas: -
19509Transfer of data from the raw AML byte stream is done via byte
19510moves instead of    word/dword/qword moves. - External objects are
19511aligned within the user buffer, including package   elements (sub-
19512objects). - Conversion of name strings to UINT32 Acpi Names is now
19513done byte-wise.
19514
19515The Store operator was modified to mimic Microsoft's
19516implementation when storing  to a Buffer Field.
19517
19518Added a check of the BM_STS bit before entering C3.
19519
19520The methods subdirectory has been obsoleted and removed.  A new
19521file, cmeval.c  subsumes the functionality.
19522
19523A 16-bit (DOS) version of AcpiExec has been developed.  The
19524makefile is under  the acpiexec directory.
19525