xref: /freebsd/sys/contrib/dev/acpica/changes.txt (revision 61e21613)
1----------------------------------------
231 March 2022. Summary of changes for version 20220331:
3
40) Global changes:
5
6Update all copyright notices to the year 2022. This effects all source
7modules, as well as utility signons.
8
9
101) ACPICA kernel-resident subsystem:
11
12For the ASL Sleep() operator, issue a warning if the sleep value is
13greater than 10 Milliseconds. Quick boottime is important, so warn about
14sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350
15ms, so excessive delays should be called out. 10 ms is chosen randomly,
16but three of such delays would already make up ten percent of the
17boottime.
18
19Namespace: Avoid attempting to walk the Namespace if the Namespace does
20not exist.
21
22AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the
23LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a
24pass/fail integer. Now load returns a pass/fail integer, as well as
25storing the return value in an optional 2nd argument.
26
27Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid
28"performing pointer subtraction with a null pointer has undefined
29behavior" compiler warnings, use uintptr_t and offsetof() that are always
30available during Linux kernel builds to define ACPI_UINTPTR_T and the
31ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code
32in the Linux kernel.
33
34Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted
35by superm1.
36
37executer/exsystem: Inform users about ACPI spec violation for the Stall()
38operator. Values greater than 100 microseconds violate the ACPI
39specification, so warn users about it. From the ACPI Specification
40version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*:
41> The implementation of Stall is OS-specific, but must not relinquish
42> control of the processor. Because of this, delays longer than 100
43> microseconds must use Sleep instead of Stall.
44
45
462) iASL Compiler/Disassembler and ACPICA tools:
47
48Data Table Compiler/Disassembler: Add support for the APMT table - ARM
49Performance Monitoring Unit table. Submitted by @bwicaksononv.
50
51Data Table Compiler/Disassembler: For MADT, add support for the OEM-
52defined subtables (Types 0x80-0x7F).
53
54Data Table Compiler: Fixed a problem with support for the SDEV table,
55where a subtable Length was not computed correctly.
56
57Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT
58Acpi table support.
59
60Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and
61add template. Submitted by MasterDrogo.
62
63Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz:
64iASL/NHLT: Rename linux specific structures to DeviceInfo to improve
65readability of the code.
66iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint.
67Undocumented bytes at the end of Endpoint Descriptor can be present
68independently of Linux-specific structures. Their size can also vary.
69iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4
70bytes of size and then an amount of bytes specified by size. All of the
71terminators that I've seen had a size equal to 4, but theoretically it
72can vary.
73
74iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C).
75
76iASL: Remove a remark due to excessive output. Removed a remark for
77duplicate Offset() operators, due to a user complaint.
78
79----------------------------------------
8017 December 2021. Summary of changes for version 20211217:
81
821) ACPICA kernel-resident subsystem:
83
84Hardware: Do not flush CPU cache when entering S4 and S5. According to
85ACPI 6.4, Section 16.2, the CPU cache flushing is required on entering to
86S1, S2, and S3, but the ACPICA code flushes the CPU cache regardless of
87the sleep state. Blind cache flush on entering S5 causes problems for
88TDX.
89
90Avoid subobject buffer overflow when validating RSDP signature. Since the
91Signature member is accessed through an ACPI_TABLE_HEADER, the pointer to
92it is only to a 4-char array, and so trying to read past the 4th
93character, as will be done when it is an RSDP, reads beyond the bounds of
94the accessed member. Contributed by jrtc27.
95
96Add support for PCC Opregion special context data. PCC Opregion added in
97ACPIC 6.3 requires special context data similar to GPIO and Generic
98Serial Bus as it needs to know the internal PCC buffer and its length as
99well as the PCC channel index when the opregion handler is being executed
100by the OSPM. Adds support for the special context data needed by PCC
101Opregion. Submitted by Sudeep Holla <sudeep.holla@arm.com>
102
1032) iASL Compiler/Disassembler and ACPICA tools:
104
105iASL: Completed compiler support for the NHLT ACPI table.
106
107iASL/NHLT table: Fixed a reported problem where a fault would occur
108during disassembly of a "Linux-Specific" section if the "Specific Data"
109part was not present.
110
111iASL: Added full support (compiler and disassembler) for the AGDI ACPI
112table. Contributed by: Ilkka Koskinen <ilkka@os.amperecomputing.com>.
113
114iASL: Added full support for the TDEL ACPI table.
115
116iASL table compiler: FADT support updates:
1171) Allow the 32-bit DSDT address to be zero.
1182) Issue error if both the 32-bit and 64-bit DSDT addresses are zero.
119
120iASL: Fix unaligned accesses to local cache allocations. Contributed by
121jrtc27.
122
123iASL: Open binary input files in binary mode, not text mode Affects
124binary input AML files, as well as binary data table files, for
125disassembly.
126
127----------------------------------------
12830 September 2021. Summary of changes for version 20210930:
129
130This release is available at https://acpica.org/downloads
131
1321) ACPICA kernel-resident subsystem:
133
134Hardware: Avoid evaluating methods too early during system resume. During
135wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called
136and it tries to get memory from the OS in order to evaluate a control
137method, but if KFENCE is enabled in the Linux kernel, the memory
138allocation attempt causes an IRQ work to be queued and a self-IPI to be
139sent to the CPU running the code which requires the memory controller to
140be ready, so if that happens too early in the wakeup path, it doesn't
141work.
142
143Prevent that from taking place by calling AcpiGetSleepTypeData() for S0
144upfront, when preparing to enter a given sleep state, and saving the data
145obtained by it for later use during system wakeup.
146
147Added a new _OSI string, "Windows 2020". Posted by superm1.
148
1492) iASL Compiler/Disassembler and ACPICA tools:
150
151iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS
152objects:
153New/latest rules: Under a Device Object:
154         1) If _PRS is present, must have _CRS and _SRS
155         2) If _SRS is present, must have _PRS (_PRS requires _CRS and
156_SRS)
157         3) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS
158requires _CRS and _SRS)
159         4) If _SRS is present, probably should have a _DIS (Remark only)
160
161iASL table disassembler: Added disassembly support for the NHLT ACPI
162table. Note: support for Vendor-defined microphone arrays and SNR
163extensions are not supported at this time -- mostly due to a lack of
164example tables. Actual compiler support for NHLT is forthcoming.
165
166Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It
167uses the same subtable structure as the existing Generic Initiator
168Affinity type.
169
170Added the flag for online capable in the MADT, introduced in ACPI 6.3.
171Posted by superm1.
172
1733) ACPICA documentation: Updated the legal info (that appears at the
174start of the Documents) to clarify distribution rights that are granted.
175
176
177----------------------------------------
17830 July 2021. Summary of changes for version 20210730:
179
180This release is available at https://acpica.org/downloads
181
1821) ACPICA kernel-resident subsystem:
183
1842) iASL Compiler/Disassembler and ACPICA tools:
185
186iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021).
187  Under the Device Object:
188  1) If _DIS is present, must have a _CRS and _SRS
189  2) If _PRS is present, must have a _CRS, _DIS, and _SRS
190  3) If _SRS is present, must have a _CRS and _DIS
191A warning will be issued for each of these cases.
192Note: For existing ASL/projects, these warnings may be disabled by
193specifying this on the command line:
194"-vw 3141"
195
196iASL Table Disassembler/Table compiler: Fix for WPBT table with no
197command-line arguments. Handle the case where the Command-line
198Arguments table field does not exist (zero).
199
200Headers: Add new DBG2 Serial Port Subtypes
201The Microsoft Debug Port Table 2 (DBG2) specification revision
202September 21, 2020 comprises additional Serial Port Subtypes [1].
203Reflect that in the actbl1.h header file. Submitted by:
204semihalf-wojtas-marcin
205
206iASL: Add full support for the AEST table (data compiler)
207Includes support in the table compiler and the disassembler.
208
209Add PRMT module header to facilitate parsing.
210This structure is used in to parse PRMT in other Operating Systems
211that relies on using subtable headers in order to parse ACPI tables.
212Although the PRMT doesn't have "subtables" it has a list of module
213information structures that act as subtables.
214
215iASL: Table disassembler: Add missing strings to decode subtable types.
216Includes the MADT and CEDT tables.
217
218
219----------------------------------------
22004 June 2021. Summary of changes for version 20210604:
221
2221) ACPICA kernel-resident subsystem:
223
224Cleaned up (delete) the context mutex during local address handler object
225deletion.
226
227Fixed a memory leak caused by the _CID repair function.
228
229Added support for PlatformRtMechanism OperationRegion handler. Adds a new
230utility function, AcpiUtConvertUuidToString. Writing a buffer to a
231PlatformRtMechanism fieldunit invokes a bidirectional transaction. The
232input buffer contains 26 bytes containing 9 bytes of status, a command
233byte and a 16-byte UUID. This change will simply pass this incoming
234buffer to a handler registered by the OS.
235
2362) iASL Compiler/Disassembler and ACPICA tools:
237
238Added full support for the PRMT ACPI table (Platform Runtime Mechanism
239Table). Includes support in the iASL compiler, the disassembler, and the
240template generator.
241
242Added full support for the BDAT (BIOS Data ACPI Table) ACPI table.
243
244Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI
245table.
246
247Added full support for the SVKL (Storage Volume Key Location Table) ACPI
248table. Header file support from Kuppuswamy Sathyanarayanan
249<sathyanarayanan.kuppuswamy@linux.intel.com>.
250
251Completed full support for the IVRS (I/O Virtualization Reporting
252Structure) ACPI table. Added compiler support for IVRS, updated
253disassembler support. Adds a new utility, UtIsIdInteger, to determine if
254a HID/CID is an integer or a string.
255
256Headers: Added more structs to the CEDT table: CXL fixed memory window
257structure.
258
259ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure.
260
261----------------------------------------
26231 March 2021. Summary of changes for version 20210331:
263
264This release is available at https://acpica.org/downloads, and includes
265all ACPI 6.4 support
266
2671) ACPICA kernel-resident subsystem:
268ACPI 6.4: iASL: deprecate DDBHandleObj keyword
269Always create namespace nodes using AcpiNsCreateNode(). ACPICA is
270allocating an object using kmalloc(), but then frees it
271using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong.
272Fixed a race condition in generic serial bus operation region handler.
273Fixed by Hans de Goede.
274
2752) iASL Compiler/Disassembler and ACPICA tools:
276
277ACPI 6.4: NFIT: add Location Cookie field
278ACPI 6.4: HMAT: add new fields/flags
279ACPI 6.4: Add new flags in SRAT
280ACPI 6.4: add SDEV secure access components
281ACPI 6.4: add Csi2Bus resource template
282ACPI 6.4: add support for PHAT table
283ACPI 6.4: add support for PMTT table
284Add disassembly support for the IVRS table. Compilation of the table is
285not yet complete.
286Fixed a potential infinite loop due to type mismatch. The for-loop is
287using a UINT8 counter and comparing the upper
288limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In
289the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i
290will wrap around to zero and the loop will never exit. I suspect
291the AslGbl_ExpectedMessagesIndex is never that high, but fixing
292this does future proof the code and cleans up static analysis
293warnings.Colin King.
294iASL/TableCompiler: update it with IORT table E.b revision changes. From
295shamiali2008.
296iASL/TableCompiler: Add compilation support for the VIOT table. Signed-
297off-by: Jean-Philippe Brucker.
298iASL/TableCompiler: Add compilation support for CEDT table. Also, update
299the CEDT template.
300
301----------------------------------------
30205 January 2021. Summary of changes for version 20210105:
303
304This release is available at https://acpica.org/downloads
305
306
3071) ACPICA kernel-resident subsystem:
308
309Updated all copyrights to 2021. This affects all ACPICA source code
310modules.
311
3122) iASL Compiler/Disassembler and ACPICA tools:
313
314ASL test suite (ASLTS): Updated all copyrights to 2021.
315
316Tools and utilities: Updated all signon copyrights to 2021.
317
318iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC,
319MTMR. Al Stone.
320
321
322----------------------------------------
32317 December 2020. Summary of changes for version 20201217:
324
325This release is available at https://acpica.org/downloads
326
327
3281) ACPICA kernel-resident subsystem:
329
330Note: The implementation of ACPI 6.4 is underway, and is expected to be
331mostly finished next month, when ACPI 6.4 is released.
332
333From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added
334several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to
335enable this.
336
337AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0.
338These included a few casts, as well as a null pointer check.
339
340Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on
341implicit fallthrough, as well as __attribute__((__fallthrough__)) and
342comments to explicitly denote that cases of fallthrough were intentional.
343Clang also supports this warning and statement attribute, but not the
344comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature
345of GCC. With assistance from @nickdesaulniers.
346
3472) iASL Compiler/Disassembler and ACPICA tools:
348
349Added improvement to method call analysis by saving the return type and
350relaxing certain cases of type checking.
351
352iASL Table Compiler: Improved info messages. Added a message to the -T
353option for when the default template (DSDT) is used.
354Also added a note for when multiple SSDTs are created with a DSDT that
355the SSDTs are created in the same file as the DSDT.
356
357
358----------------------------------------
359
36013 November 2020. Summary of changes for version 20201113:
361
362This release is available at https://acpica.org/downloads
363
364
3651) ACPICA kernel-resident subsystem:
366
367Interpreter: fixed a memory leak by using use existing buffer in _HID
368repair. There was a memory leak that occurred when a _CID object is
369defined as a package containing string objects. When _CID is checked for
370any possible repairs, it calls a helper function to repair _HID (because
371_CID basically contains multiple _HID entries). The _HID repair function
372assumes that string objects are standalone objects that are not contained
373inside of any packages. The _HID repair function replaced the string
374object with a brand new object and attempted to delete the old object by
375decrementing the reference count of the old object. Strings inside of
376packages have a reference count of 2 so the _HID repair function leaves
377this object in a dangling state and causes a memory leak. Instead of
378allocating a brand new object and removing the old object, use the
379existing object when repairing the _HID object.
380
381Added function trace macros to improve namespace debugging. The namespace
382repair mechanism does not have function tracing macros. Add several trace
383macros to improve debuggability.
384
385Handle "orphan" _REG methods for GPIO OpRegions. Before this change
386AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no
387matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry
388Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs.
389The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific
390UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads
391to potential issues with checks for OpRegion availability, or in other
392words checks if _REG has been called for the OpRegion which the ACPI code
393wants to use. Except for the "orphan" EC handling, ACPICA core does not
394call _REG on an ACPI node which does not define an OpRegion matching the
395type being registered; and the reference design DSDT, from which most
396Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor
397UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins
398were assigned ACPI controlled functions in the reference design. Together
399this leads to the perfect storm, at least on the Cherry Trail based
400Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code
401and has added the Cherry Trail specific UserDefined(0x93) opregion to its
402GPO2 ACPI node to access this pin. But it uses a "has _REG been called"
403availability check for the standard GeneralPurposeIo OpRegion. This
404clearly is a bug in the DSDT, but this does work under Windows. This
405issue leads to the intel vbtn driver reporting the device always being in
406tablet-mode at boot, even if it is in laptop mode. Which in turn causes
407userspace to ignore touchpad events. So in other words, this issue causes
408the touchpad to not work at boot. This change fixes this by extending the
409"orphan" _REG method handling to also apply to GPIO address-space
410handlers.
411
412
4132) iASL Compiler/Disassembler and ACPICA tools:
414
415iASL: Added more info to namespace dump file (-ln option). In a separate
416section of the dump file (after the main namespace dump), emit the full
417pathname for each namespace node, its type, and the ASL filename and line
418number where it is declared.
419
420AcpiHelp: Added an option to display/decode iASL exceptions. Option is: -
421x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value
422is omitted, all iASL exceptions are displayed.
423
424iASL: Use StringLiteral instead of StringData for some ASL macros. The
425use of the stringData rule allows for some "string" oriented opcodes
426(Such as ToString, ToHexString, etc.) None of which make sense with the
427macros in question. This change modifies the StringData part of the rule
428for these macros to a simple string  literal - thus disallowing the use
429of ToString, ToHexString, etc.
430The following ASL operators (macros) are affected:
431EisaId
432Fprintf
433Printf
434ToUuid
435Unicode
436Note: The MS compiler requires the use of string literals for these
437operators also.
438
439iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search
440the list of "known" UUIDs for the input to the ToUUID macro.
441
442Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the
443NFIT table.
444
445
446----------------------------------------
447
44825 September 2020. Summary of changes for version 20200925:
449
450This release is available at https://acpica.org/downloads
451
452
4531) ACPICA kernel-resident subsystem:
454
455Preserve memory opregion mappings. The ACPICA's strategy with respect to
456the handling of memory mappings associated with memory operation regions
457is to avoid mapping the entire region at once which may be problematic at
458least in principle (for example, it may lead to conflicts with
459overlapping mappings having different attributes created by drivers).  It
460may also be wasteful, because memory opregions on some systems take up
461vastchunks of address space while the fields in those regions actually
462accessed by AML are sparsely distributed.
463
464For this reason, a one-page "window" is mapped for a given opregion on
465the first memory access through it and if that "window" does not cover an
466address range accessed through that opregion subsequently, it is unmapped
467and a new "window" is mapped to replace it.  Next, if the new "window" is
468not sufficient to access memory through the opregion in question in the
469future, it will be replaced with yet another "window" and so on.  That
470may lead to a suboptimal sequence of memory mapping and unmapping
471operations, for example if two fields in one opregion separated from each
472other by a sufficiently wide chunk of unused address space are accessed
473in an alternating pattern.
474
475Added support for 64 bit risc-v compilation.  Useful for acpica tools and
476incorporating ACPICA into the Firmware Test Suite. Colin Ian King
477<colin.king@canonical.com>.
478
479Added support for SMBus predefined names (from SMBus Control Method
480Interface Specification, Version 1.0, December 10, 1999. New predefined
481names:
482    _SBA
483    _SBI
484    _SBR
485    _SBT
486    _SBW
487
488AML Disassembler: Added a new command, "All <NameSeg>". This command will
489evaluate all objects in the current namespace whose NameString contains
490the input NameSeg as the last element of the NameString. Useful for
491debugging.
492
493
4942) iASL Compiler/Disassembler and ACPICA tools:
495
496iASL: fixed a crash that occurred when predefined objects return packages
497with lengths that exceed the initializer list.
498
499iASL: added more detail to external resolution error message when
500compiling multiple definition blocks.
501
502iASL: added a remark for an attempt to create a nameseg or namestring
503containing lower-case letters. This should prevent declaring multiple
504namesegs or namestrings in an attempt to refer to different objects (with
505different cases), but actually refer to the same object(s).
506
507iASL: improve alias analysis by saving object type. If the alias is a
508method type, the parameter count is also recorded.
509
510AcpiExec: Increase the default loop timeout value. Was 1 second, is now
51110 seconds. Prevents unnecessary timeouts when executing control methods
512from the command line.
513
514AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal
515list. Includes:
516    Memory Device
517    Generic Buttons Device
518    NVDIMM Root Device
519    Control Method Battery
520    Device Graphs for _DSD method
521    Hierarchical Data Extension
522....ARM CoreSight Graph
523
524----------------------------------------
525
526
52717 July 2020. Summary of changes for version 20200717:
528
529This release is available at https://acpica.org/downloads
530
531
5321) ACPICA kernel-resident subsystem:
533
534Do not increment OperationRegion reference counts for field units. Recent
535server firmware has revealed that this reference count can overflow on
536large servers that declare many field units (thousands) under the same
537OperationRegion. This occurs because each field unit declaration will add
538a reference count to the source OperationRegion. This release solves the
539reference count overflow for OperationRegion objects by preventing
540fieldUnits from incrementing their parent OperationRegion's reference
541count.
542
543Replaced one-element arrays with flexible-arrays, which were introduced
544in C99.
545
546Restored the readme file containing the directions for generation of
547ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is
548located at: generate/msvc2017/readme.txt
549
5502) iASL Compiler/Disassembler and ACPICA tools:
551
552iASL: Fixed a regression found in version 20200214. Prevent iASL from
553emitting an extra byte of garbage data when control methods declared a
554single parameter type without using braces. This extra byte is known to
555cause a blue screen on the Windows AML interpreter.
556
557iASL: Made a change to allow external declarations to specify the type of
558a named object even when some name segments are not defined.
559This change allows the following ASL code to compile (When DEV0 is not
560defined or not defined yet):
561
562    External (\_SB.DEV0.OBJ1, IntObj)
563    External (\_SB.DEV0, DeviceObj)
564
565iASL: Fixed a problem where method names in "Alias ()" statement could be
566misinterpreted. They are now interpreted correctly as method invocations.
567
568iASL: capture a method parameter count (Within the Method info segment,
569as well as the argument node) when using parameter type lists.
570
571----------------------------------------
572
573
57428 May 2020. Summary of changes for version 20200528:
575
576
5771) ACPICA kernel-resident subsystem:
578
579Removed old/obsolete Visual Studio files which were used to build the
580Windows versions of the ACPICA tools. Since we have moved to Visual
581Studio 2017, we are no longer supporting Visual Studio 2006 and 2009
582project files. The new subdirectory and solution file are located at:
583
584    acpica/generate/msvc2017/AcpiComponents.sln
585
586
5872) iASL Compiler/Disassembler and ACPICA tools:
588
589iASL: added support for a new OperationRegion Address Space (subtype):
590PlatformRtMechanism. Support for this new keyword is being released for
591early prototyping. It will appear in the next release of the ACPI
592specification.
593
594iASL: do not optimize the NameString parameter of the CondRefOf operator.
595In the previous iASL compiler release, the NameString parameter of the
596CondRefOf was optimized. There is evidence that some implementations of
597the AML interpreter do not perform the recursive search-to-parent search
598during the execution of the CondRefOf operator. Therefore, the CondRefOf
599operator behaves differently when the NameString parameter is a single
600name segment (a NameSeg) as opposed to a full NamePath (starting at the
601root scope) or a NameString containing parent prefixes.
602
603iASL: Prevent an inadvertent remark message. This change prevents a
604remark if within a control method the following exist:
6051) An Operation Region is defined, and
6062) A Field operator is defined that refers to the region.
607This happens because at the top level, the Field operator does not
608actually create a new named object, it simply references the operation
609region.
610
611Removed support for the acpinames utility. The acpinames was a simple
612utility used to populate and display the ACPI namespace without executing
613any AML code. However, ACPICA now supports executable opcodes outside of
614control methods. This means that executable AML opcodes such as If and
615Store opcodes need to be executed during table load. Therefore, acpinames
616would need to be updated to match the same behavior as the acpiexec
617utility and since acpiexec can already dump the entire namespace (via the
618'namespace' command), we no longer have the need to maintain acpinames.
619
620    In order to dump the contents of the ACPI namespace using acpiexec,
621execute the following command from the command line:
622
623        acpiexec -b "n" [aml files]
624
625----------------------------------------
626
627
62830 April 2020. Summary of changes for version 20200430:
629
6301) ACPICA kernel-resident subsystem:
631
632Cleaned up the coding style of a couple of global variables
633(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers.
634AcpiProtocolLengths was made static, and the definition of
635AcpiGbl_NextCmdNum was moved to acglobal.h.
636
637
6382) iASL Compiler/Disassembler and ACPICA tools:
639
640iASL DataTable Compiler:  Fixed a segfault on errors that aren't directly
641associated with a field.
642
643Disassembler: has been made more resilient so that it will continue to
644parse AML even if the AML generates ACPI namespace errors. This enables
645iASL to disassemble some AML that may have been compiled using older
646versions of iASL that no longer compile with newer versions of iASL.
647
648iASL: Fixed the required parameters for _NIH and _NIG. Previously, there
649was a mixup where _NIG required one parameter and _NIH required zero
650parameters. This change swaps these parameter requirements. Now it is
651required that _NIH must be called with one parameter and _NIG requires
652zero parameters.
653
654iASL: Allow use of undefined externals as long as they are protected by
655an if (CondRefOf (...)) block when compiling multiple definition blocks.
656
657iASL: Fixed the type override behavior of named objects that are declared
658as External. External declarations will no longer override the type of
659the actual definition if it already exists.
660
661AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable
662command line wildcard support on Windows. Note: the AcpiNames utility is
663essentially redundant with the AcpiExec utility (using the "namespace"
664command) and is therefore deprecated. It will be removed in future
665releases of ACPICA.
666
667Disassembler: ignore AE_ALREADY_EXISTS status when parsing create*
668operators. The disassembler is intended to emit existing ASL code as-is.
669Therefore, error messages emitted during disassembly should be ignored or
670handled in a way such that the disassembler can continue to parse the
671AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op
672parsing for create operators in order to complete parsing ASL termlists.
673
674iASL DataTable Compiler: IVRS table: fix potentially uninitialized
675variable warning. Some compilers catch potential uninitialized variables.
676This is done by examining branches of if/else statements. This change
677replaces an "else if" with an "else" to fix the uninitialized variable
678warning.
679
680
681----------------------------------------
68226 March 2020. Summary of changes for version 20200326:
683
684
6851) ACPICA kernel-resident subsystem:
686
687Performed a code clean-up to prevent build errors on early versions of
688GCC-10.
689
690Added the NHLT table signature. iASL data table compiler/disassembler
691support for this table is coming soon.
692
693
6942) iASL Compiler/Disassembler and ACPICA tools:
695
696AcpiExec: Fixed several problems with the namespace initialization file
697(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS
698errors, several seg faults, and enhancements to line parsing within the
699init file. In addition, each object found in the init file and it's new
700value is displayed, as well as any such entries that do not have a
701corresponding name in the namespace. For reference, the syntax for the
702various supported data types are presented below:
703	PCHG 0x777788889999BBBB	// Integer
704	\DEV1.STR1 "XYZ"			// String
705	BUF1 (88 99 AA)			// Buffer
706	PKG1 [0x1111 0x2222]		// Package
707	\BF1 0x7980				// BufferField
708	RCRV 0x0123456789ABCDEF	// Field Unit
709
710iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro
711can be used anywhere in a given ASL file to configure iASL to expect an
712iASL compiler error code on the line where this macro was placed. If the
713error code does not exist, an error is generated. This is intended to be
714used for ACPICA's ASL test suite, but can be used by ASL developers as
715well.
716
717iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD
718IVRS table parsing supported only IVHD type 10h structures. Parsing an
719IVHD type 11h caused the iasl to report unknown subtable type. Add
720necessary structure definition for IVHD type 11h and apply correct
721parsing method based on subtable type. Micha? ?ygowski.
722
723iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name
724According to AMD IOMMU Specification Revision 3.05 the reserved field
725should be IOMMU Feature Reporting. Change the name of the field to the
726correct one. Micha? ?ygowski.
727
728acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch
729based on suggestions by David Seifert and Benjamin Berg.
730
731iASL: table compiler: removed an unused variable (DtCompilerParserResult)
732causing linking errors. Patch based on suggestions by David Seifert and
733Benjamin Berg.
734
735iASL: table compiler: make LexBuffer static to avoid linking errors in
736newer compilers. Patch based on suggestions by David Seifert and Benjamin
737Berg.
738
739iASL: fixed type matching between External and Named objects. External
740object types can only be expressed with ACPI object type values that are
741defined in the ACPI spec. However, iASL uses ACPI object type values that
742are local to ACPICA in addition to the values defined in the ACPI spec.
743This change implements type matching to map some object type values
744specific to ACPICA to ones that are defined in the ACPI spec.
745
746iASL: Dropped the type mismatch compiler error that can arise from
747External declarations to a warning. This warning can occur when there is
748a type difference between the external declaration and the actual object
749declaration (when compiling multiple files/modules simultaneously).
750
751iASL: removed an incorrect error message regarding externals. This change
752removes an incorrect error that is emitted when a duplicate external
753declaration does not contain a type that opens a scope. This is incorrect
754because the duplicate external with conflicting types are already caught
755by iASL and it doesn't make any sense to enforce what this conflicting
756type should be.
757
758AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be
759surrounded by parens. Otherwise, a logical statement that applies a
760logical not operator to this macro could result in a computation that
761applies the operator to the left side of the logical and but not the
762right. Reported-by: John Levon <john.levon@joyent.com>
763
764Fixed a problem with the local version of sprint(): On 32-bit, the
765provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX,
766String + Size will wrap, meaning End < Start, and
767AcpiUtBoundStringOutput() will never output anything as a result. The
768symptom seen of this was acpixtract failing to output anything -- with a
769custom build that included utprint.c. Signed-off-by: John Levon
770<john.levon@joyent.com>
771
772iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the
773ACPI specification.
774
775
776----------------------------------------
77714 February 2020. Summary of changes for version 20200214:
778
779
7801) ACPICA kernel-resident subsystem:
781
782Enable sleep button on ACPI legacy wake:  Hibernation (S4) is triggered
783in a guest when it receives a sleep trigger from the hypervisor. When the
784guest resumes from this power state, it does not see the SleepEnabled
785bit. In other words, the sleepHibernation (S4) is triggered in a guest
786when it receives a sleep trigger from the hypervisor. When the guest
787resumes from this power state, it does not see the SleepEnabled bit. In
788other words, the sleep button is not enabled on waking from an S4 state.
789This causes subsequent invocation of sleep state to fail since the
790guest.button is not enabled on waking from an S4 state. This causes
791subsequent invocation of sleep state to fail in the guest. Fix this
792problem by enabling the sleep button in ACPI legacy wake. From Anchal
793Agarwal <anchalag@amazon.com>.
794
795Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used
796for checking the status bits of all enabled GPEs in one go. It is needed
797to distinguish spurious SCIs from genuine ones when deciding whether or
798not to wake up the system from suspend-to-idle.
799
800Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be
801using HOST in their environment to represent the host name for their
802machines. Avoid this problem by renaming this variable from HOST to
803ACPI_HOST.
804
805MSVC 2017 project files: Enable multiprocessor generation to improve
806build performance.
807
808Added a macro to get the byte width of a Generic Address structure. New
809ACPI_ACCESS_BYTE_WIDTH is in addition to the existing
810ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg.
811
812
8132) iASL Compiler/Disassembler and ACPICA tools:
814
815iASL: Implemented full support for the (optional, rarely used) ReturnType
816and ParameterTypesList for the Method, Function, and External operators.
817For Method declarations, the number of individual ParameterTypes must
818match the declaration of the number of arguments (NumArgs). This also
819Fixes a problem with the External operator where extra/extraneous bytes
820were emitted in the AML code if the optional ReturnType/ParameterTypes
821were specified for a MethodObj declaration.
822New error message:
8231) Method NumArgs count does not match length of ParameterTypes list
824
825iASL: Implemented detection of type mismatches between External
826declarations and named object declarations. Also, detect type mismatches
827between multiple External declarations of the same Name.
828New error messages:
8291) Type mismatch between external declaration and actual object
830declaration detected
8312) Type mismatch between multiple external declarations detected
832
833iASL: Implemented new error messages for External operators that specify
834a ReturnType and/or ParameterTypesList for any object type other than
835control methods (MethodObj).
836New error messages:
8371) Return type is only allowed for Externals declared as MethodObj
8382) Parameter type is only allowed for Externals declared as MethodObj
839
840iASL: Implemented two new remark/warning messages for ASL code that
841creates named objects from within a control method. This is very
842inefficient since the named object must be created and deleted each time
843the method is executed.
844New messages:
8451) Creation of named objects within a method is highly inefficient, use
846globals or method local variables instead (remark)
8472) Static OperationRegion should be declared outside control method
848(warning)
849
850iASL: Improved illegal forward reference detection by adding support to
851detect forward-reference method invocations.
852
853iASL: Detect and issue an error message for NameStrings that contain too
854many individual NameSegs (>255). This is an AML limitation that is
855defined in the ACPI specification.
856New message:
8571) NameString contains too many NameSegs (>255)
858
859acpidump: windows: use GetSystemFirmwareTable API for all tables except
860SSDT. By using this API, acpidump is able to get all tables in the XSDT
861
862iASL: Removed unused parser file and updated msvc2017 project files.
863Removed the obsolete AslCompiler.y from the repository.
864
865iASL: msvc2017: Fixed macros in the file dependency list to prevent
866unnecessary rebuilds. Replace %(Directory) with %(RelativeDir).
867
868Disassembler: Prevent spilling error messages to the output file. All
869errors are directed to the console instead. These error messages
870prevented re-compilation of the resulting disassembled ASL output file
871(.DSL).
872
873
874----------------------------------------
87510 January 2020. Summary of changes for version 20200110:
876
877
8781) ACPICA kernel-resident subsystem:
879
880Updated all copyrights to 2020. This affects all ACPICA source code
881modules.
882
883
8842) iASL Compiler/Disassembler and ACPICA tools:
885
886ASL test suite (ASLTS): Updated all copyrights to 2020.
887
888Tools and utilities: Updated all signon copyrights to 2020.
889
890iASL: fix forward reference analysis for field declarations. Fixes
891forward reference analysis for field declarations by searching the
892parent scope for the named object when the object is not present in
893the current scope.
894
895iASL: Improved the error output for ALREADY_EXISTS errors. Now, the
896full pathname of the name that already exists is printed.
897
898iASL: Enhance duplicate Case() detection for buffers. Add check for
899buffers with no initializer list (these buffers will be filled with
900zeros at runtime.)
901
902
903----------------------------------------
90413 December 2019. Summary of changes for version 20191213:
905
906
9071) ACPICA kernel-resident subsystem:
908
909Return a Buffer object for all fields created via the CreateField
910operator. Previously, an Integer would be returned if the size of
911the field was less than or equal to the current size of an Integer.
912Although this goes against the ACPI specification, it provides
913compatibility with other ACPI implementations. Also updated the
914ASLTS test suite to reflect this new behavior.
915
9162) iASL Compiler/Disassembler and ACPICA tools:
917
918iASL: Implemented detection of (and throw an error for) duplicate
919values for Case statements within a single Switch statement. Duplicate
920Integers, Strings, and Buffers are supported.
921
922iASL: Fix error logging issue during multiple file compilation --
923Switch to the correct input file during error node creation.
924
925iASL: For duplicate named object creation, now emit an error instead
926of a warning - since this will cause a runtime error.
927
928AcpiSrc: Add unix line-ending support for non-Windows builds.
929
930iASL: Add an error condition for an attempt to create a NameString
931with > 255 NameSegs (the max allowable via the AML definition).
932
933
934----------------------------------------
93518 October 2019. Summary of changes for version 20191018:
936
937
9381) ACPICA kernel-resident subsystem:
939
940Debugger: added a new command: ?Fields [address space ID]?. This command
941dumps the contents of all field units that are defined within the
942namespace with a particular address space ID.
943
944Modified the external interface AcpiLoadTable() to return a table index.
945This table index can be used for unloading a table for debugging.
946    ACPI_STATUS
947    AcpiLoadTable (
948        ACPI_TABLE_HEADER       *Table,
949        UINT32                  *TableIndex))
950
951Implemented a new external interface: AcpiUnloadTable() This new function
952takes a table index as an argument and unloads the table. Useful for
953debugging only.
954    ACPI_STATUS
955    AcpiUnloadTable (
956        UINT32                  TableIndex))
957
958Ported the AcpiNames utility to use the new table initialization
959sequence. The utility was broken before this change. Also, it was
960required to include most of the AML interpreter into the utility in order
961to process table initialization (module-level code execution.)
962
963Update for results from running Clang V8.0.1. This fixes all "dead
964assignment" warnings. There are still several "Dereference of NULL
965pointer" warnings, but these have been found to be false positive
966warnings.
967
968
9692) iASL Compiler/Disassembler and ACPICA tools:
970
971iASL: numerous table compiler changes to ensure that the usage of
972yacc/bison syntax is POSIX-compliant.
973
974iASL/disassembler: several simple bug fixes in the data table
975disassembler.
976
977Acpiexec: expanded the initialization file (the -fi option) to initialize
978strings, buffers, packages, and field units.
979
980
981----------------------------------------
98216 August 2019. Summary of changes for version 20190816:
983
984This release is available at https://acpica.org/downloads
985
986
9871) ACPICA kernel-resident subsystem:
988
989Modified the OwnerId mechanism to allow for more Owner Ids. The previous
990limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT
991exceptions on machines with a large number of initialization threads,
992many CPU cores and nested initialization control methods.
993
994Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for
995checking if the given GPE (as represented by a GPE device handle and a
996GPE number) is currently active and dispatching it (if that's the case)
997outside of interrupt context.
998
999Table load: exit the interpreter before initializing objects within the
1000new table This prevents re-acquiring the interpreter lock when loading
1001tables
1002
1003Added the "Windows 2019" string to the _OSI support (version 1903). Jung-
1004uk Kim
1005
1006Macros: removed pointer math on a null pointer. Causes warnings on some
1007compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR
1008instead of using arithmetic.
1009
1010Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used
1011across all "printf-like" internal functions. Also, cleanup all calls to
1012such functions (both in 32-bit mode and 64-bit mode) now that they are
1013analyzed by the gcc compiler via ACPI_PRINTF_LIKE.
1014
1015
10162) iASL Compiler/Disassembler and ACPICA tools:
1017
1018iASL: implemented a new data table compiler flex/bison front-end. This
1019change is internal and is not intended to result in changes to the
1020compiled code. This new compiler front-end can be invoked using the -tp
1021option for now, until the old mechanism is removed.
1022
1023ASLTS: Implemented a new data table compiler test suite. This test suite
1024generates all table templates and compile/disassemble/re-compile/binary-
1025compare each file.
1026
1027iASL: return -1 if AML files were not generated due to compiler errors
1028
1029iASL: added a warning on use of the now-legacy ASL Processor () keyword.
1030
1031iASL: added an error on _UID object declaration that returns a String
1032within a Processor () declaration. A _UID for a processor must be an
1033Integer.
1034
1035iASL: added a null terminator to name strings that consist only of
1036multiple parent prefixes (^)
1037
1038iASL: added support to compile both ASL and data table files in a single
1039command.
1040
1041Updated the tool generation project files that were recently migrated to
1042MSVC 2017 to eliminate all new warnings. The new project files appear in
1043the directory \acpica\generate\msvc2017. This change effectively
1044deprecates the older project files in \acpica\generate\msvc9.
1045
1046
1047----------------------------------------
104803 July 2019. Summary of changes for version 20190703:
1049
1050
10511) ACPICA kernel-resident subsystem:
1052
1053Remove legacy module-level support code. There were still some remnants
1054of the legacy module-level code executions. Since we no longer support
1055this option, this is essentially dead code and has been removed from the
1056ACPICA source.
1057
1058iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
1059scope. If these named objects are declared outside the root scope, they
1060will not be invoked by any host Operating System.
1061
1062Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC
1063one) can be enabled in two situations. First, the GPEs with existing _Lxx
1064and _Exx methods are enabled implicitly by ACPICA during system
1065initialization.  Second, the GPEs without these methods (like GPEs listed
1066by _PRW objects for wakeup devices) need to be enabled directly by the
1067code that is going to use them (e.g. ACPI power management or device
1068drivers).
1069
1070In the former case, if the status of a given GPE is set to start with,
1071its handler method (either _Lxx or _Exx) needs to be invoked to take care
1072of the events (possibly) signaled before the GPE was enabled. In the
1073latter case, however, the first caller of AcpiEnableGpe() for a given GPE
1074should not be expected to care about any events that might be signaled
1075through it earlier.  In that case, it is better to clear the status of
1076the GPE before enabling it, to prevent stale events from triggering
1077unwanted actions (like spurious system resume, for example).
1078
1079For this reason, modify AcpiEvAddGpeReference() to take an additional
1080boolean argument indicating whether or not the GPE status needs to be
1081cleared when its reference counter changes from zero to one and make
1082AcpiEnableGpe() pass TRUE to it through that new argument.
1083
1084
10852) iASL Compiler/Disassembler and ACPICA tools:
1086
1087The tool generation process has been migrated to MSVC 2017, and all
1088project files have been upgraded. The new project files appear in the
1089directory \acpica\generate\msvc2017. This change effectively deprecates
1090the older project files in \acpica\generate\msvc9.
1091
1092iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
1093scope. If these named objects are declared outside the root scope, they
1094will not be invoked by any host Operating System
1095
1096----------------------------------------
109709 May 2019. Summary of changes for version 20190509:
1098
1099
11001) ACPICA kernel-resident subsystem:
1101
1102Revert commit  6c43e1a ("ACPICA: Clear status of GPEs before enabling
1103them") that causes problems with Thunderbolt controllers to occur if a
1104dock device is connected at init time (the xhci_hcd and thunderbolt
1105modules crash which prevents peripherals connected through them from
1106working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA:
1107Dispatch active GPEs at init time") to get undone, so the problem
1108addressed by commit ecc1165b8b74 appears again as a result of it.
1109
1110
11112) iASL Compiler/Disassembler and ACPICA tools:
1112
1113Reverted iASL: Additional forward reference detection. This change
1114reverts forward reference detection for field declarations. The feature
1115unintentionally emitted AML bytecode with incorrect package lengths for
1116some ASL code related to Fields and OperationRegions. This malformed AML
1117can cause systems to crash
1118during boot. The malformed AML bytecode is emitted in iASL version
111920190329 and 20190405.
1120
1121iASL: improve forward reference detection. This change improves forward
1122reference detection for named objects inside of scopes. If a parse object
1123has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to
1124a named object that is declared later in the AML bytecode. This is
1125allowed if the reference is inside of a method and the declaration is
1126outside of a method like so:
1127
1128DefinitionBlock(...)
1129{
1130    Method (TEST)
1131    {
1132        Return (NUM0)
1133    }
1134    Name (NUM0,0)
1135}
1136
1137However, if the declaration and reference are both in the same method or
1138outside any methods, this is a forward reference and should be marked as
1139an error because it would result in runtime errors.
1140
1141DefinitionBlock(...)
1142{
1143    Name (BUFF, Buffer (NUM0) {}) // Forward reference
1144    Name (NUM0, 0x0)
1145
1146    Method (TEST)
1147    {
1148        Local0 = NUM1
1149        Name (NUM1, 0x1) // Forward reference
1150        return (Local0)
1151    }
1152}
1153
1154iASL: Implemented additional buffer overflow analysis for BufferField
1155declarations. Check if a buffer index argument to a create buffer field
1156operation is beyond the end of the target buffer.
1157
1158This affects these AML operators:
1159
1160   AML_CREATE_FIELD_OP
1161   AML_CREATE_BIT_FIELD_OP
1162   AML_CREATE_BYTE_FIELD_OP
1163   AML_CREATE_WORD_FIELD_OP
1164   AML_CREATE_DWORD_FIELD_OP
1165   AML_CREATE_QWORD_FIELD_OP
1166
1167 There are three conditions that must be satisfied in order to allow this
1168validation at compile time:
1169
1170   1) The length of the target buffer must be an integer constant
1171   2) The index specified in the create* must be an integer constant
1172   3) For CreateField, the bit length argument must be non-zero.
1173
1174Example:
1175    Name (BUF1, Buffer() {1,2})
1176    CreateField (BUF1, 7, 9, CF03)  // 3: ERR
1177
1178dsdt.asl     14:     CreateField (BUF1, 7, 9, CF03)  // 3: ERR
1179Error    6165 -                           ^ Buffer index beyond end of
1180target buffer
1181
1182
1183----------------------------------------
118405 April 2019. Summary of changes for version 20190405:
1185
1186
11871) ACPICA kernel-resident subsystem:
1188
1189Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop
1190unconditionally clearing ACPI IRQs during suspend/resume") was added
1191earlier to stop clearing of event status bits unconditionally on suspend
1192and resume paths. Though this change fixed an issue on suspend path, it
1193introduced regressions on several resume paths. In the case of S0ix,
1194events are enabled as part of device suspend path. If status bits for the
1195events are set when they are enabled, it could result in premature wake
1196from S0ix. If status is cleared for any event that is being enabled so
1197that any stale events are cleared out. In case of S0ix, events are
1198enabled as part of device suspend path. If status bits for the events are
1199set when they are enabled, it could result in premature wake from S0ix.
1200
1201This change ensures that status is cleared for any event that is being
1202enabled so that any stale events are cleared out.
1203
1204
12052) iASL Compiler/Disassembler and ACPICA tools:
1206
1207iASL: Implemented an enhanced multiple file compilation that combines
1208named objects from all input files to a single namespace. With this
1209feature, any unresolved external declarations as well as duplicate named
1210object declarations can be detected during compilation rather than
1211generating errors much later at runtime. The following commands are
1212examples that utilize this feature:
1213    iasl dsdt.asl ssdt.asl
1214    iasl dsdt.asl ssdt1.asl ssdt2.asl
1215    iasl dsdt.asl ssdt*.asl
1216
1217----------------------------------------
121829 March 2019. Summary of changes for version 20190329:
1219
1220
12211) ACPICA kernel-resident subsystem:
1222
1223Namespace support: Remove the address nodes from global list after method
1224termination. The global address list contains pointers to namespace nodes
1225that represent Operation Regions. This change properly removes Operation
1226Region namespace nodes that are declared dynamically during method
1227execution.
1228
1229Linux: Use a different debug default than ACPICA. There was a divergence
1230between Linux and the ACPICA codebases. In order to resolve this
1231divergence, Linux now declares its own debug default in aclinux.h
1232
1233Renamed some internal macros to improve code understanding and
1234maintenance. The macros below all operate on single 4-character ACPI
1235NameSegs, not generic strings (old -> new):
1236    ACPI_NAME_SIZE    -> ACPI_NAMESEG_SIZE
1237    ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG
1238    ACPI_MOVE_NAME    -> ACPI_COPY_NAMESEG
1239
1240Fix for missing comma in array declaration for the AcpiGbl_GenericNotify
1241table.
1242
1243Test suite: Update makefiles, add PCC operation region support
1244
1245
12462) iASL Compiler/Disassembler and Tools:
1247
1248iASL: Implemented additional illegal forward reference detection. Now
1249detect and emit an error upon detection of a forward reference from a
1250Field to an Operation Region. This will fail at runtime if allowed to
1251pass the compiler.
1252
1253AcpiExec: Add an address list check for dynamic Operation Regions. This
1254feature performs a sanity test for each node the global address list.
1255This is done in order to ensure that all dynamic operation regions are
1256properly removed from the global address list and no dangling pointers
1257are left behind.
1258
1259Disassembler: Improved generation of resource pathnames. This change
1260improves the code that generates resource descriptor and resource tag
1261pathnames. The original code used a bunch of str* C library functions
1262that caused warnings on some compilers.
1263
1264iASL: Removed some uses of strncpy and replaced with memmove. The strncpy
1265function can overwrite buffers if the calling code is not very careful.
1266In the case of generating a module/table header, use of memmove is a
1267better implementation.
1268
1269
12703) Status of new features that have not been completed at this time:
1271
1272iASL: Implementing an enhanced multiple file compilation into a single
1273namespace feature (Status): This feature will be released soon, and
1274allows multiple ASL files to be compiled into the same single namespace.
1275By doing so, any unresolved external declarations as well as duplicate
1276named object declarations can be detected during compilation (rather than
1277later during runtime). The following commands are examples that utilize
1278this feature:
1279    iasl dsdt.asl ssdt.asl
1280    iasl dsdt.asl ssdt1.asl ssdt2.asl
1281    iasl dsdt.asl ssdt*.asl
1282
1283ASL tutorial status: Feedback is being gathered internally and the
1284current plan is to publish this tutorial on the ACPICA website after a
1285final review by a tech writer.
1286
1287----------------------------------------
128815 February 2019. Summary of changes for version 20190215:
1289
1290
12910) Support for ACPI specification version 6.3:
1292
1293Add PCC operation region support for the AML interpreter. This adds PCC
1294operation region support in the AML interpreter and a default handler for
1295acpiexec. The change also renames the PCC region address space keyword to
1296PlatformCommChannel.
1297
1298Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG.
1299These methods provide OSPM with health information and device boot
1300status.
1301
1302PDTT: Add TriggerOrder to the PCC Identifier structure. The field value
1303defines if the trigger needs to be invoked by OSPM before or at the end
1304of kernel crash dump processing/handling operation.
1305
1306SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT
1307is used for describing devices such as heterogeneous processors,
1308accelerators, GPUs, and IO devices with integrated compute or DMA
1309engines.
1310
1311MADT: Add support for statistical profiling in GICC. Statistical
1312profiling extension (SPE) is an architecture-specific feature for ARM.
1313
1314MADT: Add online capable flag. If this bit is set, system hardware
1315supports enabling this processor during OS runtime.
1316
1317New Error Disconnect Recover Notification value. There are a number of
1318scenarios where system Firmware in collaboration with hardware may
1319disconnect one or more devices from the rest of the system for purposes
1320of error containment. Firmware can use this new notification value to
1321alert OSPM of such a removal.
1322
1323PPTT: New additional fields in Processor Structure Flags. These flags
1324provide more information about processor topology.
1325
1326NFIT/Disassembler: Change a field name from "Address Range" to "Region
1327Type".
1328
1329HMAT updates: make several existing fields to be reserved as well as
1330rename subtable 0 to "memory proximity domain attributes".
1331
1332GTDT: Add support for new GTDT Revision 3. This revision adds information
1333for the EL2 timer.
1334
1335iASL: Update the HMAT example template for new fields.
1336
1337iASL: Add support for the new revision of the GTDT (Rev 3).
1338
1339
13401) ACPICA kernel-resident subsystem:
1341
1342AML Parser: fix the main AML parse loop to correctly skip erroneous
1343extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2-
1344byte extended opcodes. If an error occurs during an AML table load, the
1345AML parser will continue loading the table by skipping the offending
1346opcode. This implements a "load table at any cost" philosophy.
1347
1348
13492) iASL Compiler/Disassembler and Tools:
1350
1351iASL: Add checks for illegal object references, such as a reference
1352outside of method to an object within a method. Such an object is only
1353temporary.
1354
1355iASL: Emit error for creation of a zero-length operation region. Such a
1356region is rather pointless. If encountered, a runtime error is also
1357implemented in the interpreter.
1358
1359Debugger: Fix a possible fault with the "test objects" command.
1360
1361iASL: Makefile: support parent directory filenames containing embedded
1362spaces.
1363
1364iASL: Update the TPM2 template to revision 4.
1365
1366iASL: Add the ability to report specific warnings or remarks as errors.
1367
1368Disassembler: Disassemble OEMx tables as actual AML byte code.
1369Previously, these tables were treated as "unknown table".
1370
1371iASL: Add definition and disassembly for TPM2 revision 3.
1372
1373iASL: Add support for TPM2 rev 3 compilation.
1374
1375
1376----------------------------------------
137708 January 2019. Summary of changes for version 20190108:
1378
1379
13801) ACPICA kernel-resident subsystem:
1381
1382Updated all copyrights to 2019. This affects all source code modules.
1383
1384
13852) iASL Compiler/Disassembler and Tools:
1386
1387ASL test suite (ASLTS): Updated all copyrights to 2019.
1388
1389Tools: Updated all signon copyrights to 2019.
1390
1391AcpiExec: Added a new option to dump extra information concerning any
1392memory leaks detected by the internal object/cache tracking mechanism. -
1393va
1394
1395iASL: Updated the table template for the TPM2 table to the newest version
1396of the table (Revision 4)
1397
1398
1399----------------------------------------
140013 December 2018. Summary of changes for version 20181213:
1401
1402
14031) ACPICA Kernel-resident Subsystem:
1404
1405Fixed some buffer length issues with the GenericSerialBus, related to two
1406of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,
1407which are rarely seen in the field. For these, the LEN field of the ASL
1408buffer is now ignored. Hans de Goede
1409
1410Implemented a new object evaluation trace mechanism for control methods
1411and data objects. This includes nested control methods. It is
1412particularly useful for examining the ACPI execution during system
1413initialization since the output is relatively terse. The flag below
1414enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:
1415   #define ACPI_LV_EVALUATION          0x00080000
1416
1417Examples:
1418   Enter evaluation       :  _SB.PCI0._INI (Method)
1419   Exit evaluation        :  _SB.PCI0._INI
1420   Enter evaluation       :  _OSI (Method)
1421   Exit evaluation        :  _OSI
1422   Enter evaluation       :  _SB.PCI0.TEST (Method)
1423   Nested method call     :     _SB.PCI0.NST1
1424   Exit nested method     :     _SB.PCI0.NST1
1425   Exit evaluation        :  _SB.PCI0.TEST
1426
1427Added two recently-defined _OSI strings. See
1428https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-
1429osi.
1430   "Windows 2018"
1431   "Windows 2018.2"
1432
1433Update for buffer-to-string conversions via the ToHexString ASL operator.
1434A "0x" is now prepended to each of the hex values in the output string.
1435This provides compatibility with other ACPI implementations. The ACPI
1436specification is somewhat vague on this issue.
1437   Example output string after conversion:
1438"0x01,0x02,0x03,0x04,0x05,0x06"
1439
1440Return a run-time error for TermArg expressions within individual package
1441elements. Although this is technically supported by the ASL grammar,
1442other ACPI implementations do not support this either. Also, this fixes a
1443fault if this type of construct is ever encountered (it never has been).
1444
1445
14462) iASL Compiler/Disassembler and Tools:
1447
1448iASL: Implemented a new compile option (-ww) that will promote individual
1449warnings and remarks to errors. This is intended to enhance the firmware
1450build process.
1451
1452AcpiExec: Implemented a new command-line option (-eo) to support the new
1453object evaluation trace mechanism described above.
1454
1455Disassembler: Added support to disassemble OEMx tables as AML/ASL tables
1456instead of a "unknown table" message.
1457
1458AcpiHelp: Improved support for the "special" predefined names such as
1459_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be
1460used for "xx" and "x".
1461
1462----------------------------------------
146331 October 2018. Summary of changes for version 20181031:
1464
1465
1466An Operation Region regression was fixed by properly adding address
1467ranges to a global list during initialization. This allows OS to
1468accurately check for overlapping regions between native devices (such as
1469PCI) and Operation regions as well as checking for region conflicts
1470between two Operation Regions.
1471
1472Added support for the 2-byte extended opcodes in the code/feature that
1473attempts to continue parsing during the table load phase. Skip parsing
1474Device declarations (and other extended opcodes) when an error occurs
1475during parsing. Previously, only single-byte opcodes were supported.
1476
1477Cleanup: Simplified the module-level code support by eliminating a
1478useless global variable (AcpiGbl_GroupModuleLeveCode).
1479
1480
14812) iASL Compiler/Disassembler and Tools:
1482
1483iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE
1484could cause a fault in the preprocessor. This was an inadvertent side-
1485effect from moving more allocations/frees to the local cache/memory
1486mechanism.
1487
1488iASL: Enhanced error detection by validating that all NameSeg elements
1489within a NamePatch actually exist. The previous behavior was spotty at
1490best, and such errors could be improperly ignored at compiler time (never
1491at runtime, however. There are two new error messages, as shown in the
1492examples below:
1493
1494dsdt.asl     33:     CreateByteField (TTTT.BXXX, 1, CBF1)
1495Error    6161 -                              ^ One or more objects within
1496the Pathname do not exist (TTTT.BXXX)
1497
1498dsdt.asl     34:     CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)
1499Error    6160 -        One or more prefix Scopes do not exist ^
1500(BBBB.CBF1)
1501
1502iASL: Disassembler/table-compiler: Added support for the static data
1503table TPM2 revision 3 (an older version of TPM2). The support has been
1504added for the compiler and the disassembler.
1505
1506Fixed compilation of DOS format data table file on Unix/Linux systems.
1507iASL now properly detects line continuations (\) for DOS format data
1508table definition language files on when executing on Unix/Linux.
1509
1510----------------------------------------
151103 October 2018. Summary of changes for version 20181003:
1512
1513
15142) iASL Compiler/Disassembler and Tools:
1515
1516Fixed a regression introduced in version 20180927 that could cause the
1517compiler to fault, especially with NamePaths containing one or more
1518carats (^). Such as: ^^_SB_PCI0
1519
1520Added a new remark for the Sleep() operator when the sleep time operand
1521is larger than one second. This is a very long time for the ASL/BIOS code
1522and may not be what was intended by the ASL writer.
1523
1524----------------------------------------
152527 September 2018. Summary of changes for version 20180927:
1526
1527
15281) ACPICA kernel-resident subsystem:
1529
1530Updated the GPE support to clear the status of all ACPI events when
1531entering any/all sleep states in order to avoid premature wakeups. In
1532theory, this may cause some wakeup events to be missed, but the
1533likelihood of this is small. This change restores the original behavior
1534of the ACPICA code in order to fix a regression seen from the previous
1535"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.
1536This regression could cause some systems to incorrectly wake immediately.
1537
1538Updated the execution of the _REG methods during initialization and
1539namespace loading to bring the behavior into closer conformance to the
1540ACPI specification and other ACPI implementations:
1541
1542From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):
1543    "Control methods must assume all operation regions are inaccessible
1544until the _REG(RegionSpace, 1) method is executed"
1545
1546    "The exceptions to this rule are:
15471.  OSPM must guarantee that the following operation regions are always
1548accessible:
1549    SystemIO operation regions.
1550    SystemMemory operation regions when accessing memory returned by the
1551System Address Map reporting interfaces."
1552
1553Since the state of both the SystemIO and SystemMemory address spaces are
1554defined by the specification to never change, this ACPICA change ensures
1555that now _REG is never called on them. This solves some problems seen in
1556the field and provides compatibility with other ACPI implementations. An
1557update to the upcoming new version of the ACPI specification will help
1558clarify this behavior.
1559
1560Updated the implementation of support for the Generic Serial Bus. For the
1561"bidirectional" protocols, the internal implementation now automatically
1562creates a return data buffer of the maximum size (255). This handles the
1563worst-case for data that is returned from the serial bus handler, and
1564fixes some problems seen in the field. This new buffer is directly
1565returned to the ASL. As such, there is no true "bidirectional" buffer,
1566which matches the ACPI specification. This is the reason for the "double
1567store" seen in the example ASL code in the specification, shown below:
1568
1569Word Process Call (AttribProcessCall):
1570    OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)
1571    Field(TOP1, BufferAcc, NoLock, Preserve)
1572    {
1573        FLD1, 8, // Virtual register at command value 1.
1574    }
1575
1576    Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer
1577                             // as BUFF
1578    CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)
1579
1580    Store(0x5416, DATA)               // Save 0x5416 into the data buffer
1581    Store(Store(BUFF, FLD1), BUFF)    // Invoke a write/read Process Call
1582transaction
1583                           // This is the "double store". The write to
1584                           // FLD1 returns a new buffer, which is stored
1585                           // back into BUFF with the second Store.
1586
1587
15882) iASL Compiler/Disassembler and Tools:
1589
1590iASL: Implemented detection of extraneous/redundant uses of the Offset()
1591operator within a Field Unit list. A remark is now issued for these. For
1592example, the first two of the Offset() operators below are extraneous.
1593Because both the compiler and the interpreter track the offsets
1594automatically, these Offsets simply refer to the current offset and are
1595unnecessary. Note, when optimization is enabled, the iASL compiler will
1596in fact remove the redundant Offset operators and will not emit any AML
1597code for them.
1598
1599    OperationRegion (OPR1, SystemMemory, 0x100, 0x100)
1600    Field (OPR1)
1601    {
1602        Offset (0),     // Never needed
1603        FLD1, 32,
1604        Offset (4),     // Redundant, offset is already 4 (bytes)
1605        FLD2, 8,
1606        Offset (64),    // OK use of Offset.
1607        FLD3, 16,
1608    }
1609dsdt.asl     14:         Offset (0),
1610Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1611operator
1612
1613dsdt.asl     16:         Offset (4),
1614Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1615operator
1616
1617----------------------------------------
161810 August 2018. Summary of changes for version 20180810:
1619
1620
16211) ACPICA kernel-resident subsystem:
1622
1623Initial ACPI table loading: Attempt to continue loading ACPI tables
1624regardless of malformed AML. Since migrating table initialization to the
1625new module-level code support, the AML interpreter rejected tables upon
1626any ACPI error encountered during table load. This is a problem because
1627non-serious ACPI errors during table load do not necessarily mean that
1628the entire definition block (DSDT or SSDT) is invalid. This change
1629improves the table loading by ignoring some types of errors that can be
1630generated by incorrect AML. This can range from object type errors, scope
1631errors, and index errors.
1632
1633Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs
1634during suspend/resume. The status of ACPI events is no longer cleared
1635when entering the ACPI S5 system state (power off) which caused some
1636systems to power up immediately after turning off power in certain
1637situations. This was a functional regression. It was fixed by clearing
1638the status of all ACPI events again when entering S5 (for system-wide
1639suspend or hibernation the clearing of the status of all events is not
1640desirable, as it might cause the kernel to miss wakeup events sometimes).
1641Rafael Wysocki.
1642
1643
16442) iASL Compiler/Disassembler and Tools:
1645
1646AcpiExec: Enhanced the -fi option (Namespace initialization file). Field
1647elements listed in the initialization file were previously initialized
1648after the table load and before executing module-level code blocks.
1649Recent changes in the module-level code support means that the table load
1650becomes a large control method execution. If fields are used within
1651module-level code and we are executing with the -fi option, the
1652initialization values were used to initialize the namespace object(s)
1653only after the table was finished loading. This change Provides an early
1654initialization of objects specified in the initialization file so that
1655field unit values are populated during the table load (not after the
1656load).
1657
1658AcpiExec: Fixed a small memory leak regression that could result in
1659warnings during exit of the utility. These warnings were similar to
1660these:
1661    0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]
1662    0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001
1663
1664----------------------------------------
166529 June 2018. Summary of changes for version 20180629:
1666
1667
16681) iASL Compiler/Disassembler and Tools:
1669
1670iASL: Fixed a regression related to the use of the ASL External
1671statement. Error checking for the use of the External() statement has
1672been relaxed. Previously, a restriction on the use of External meant that
1673the referenced named object was required to be defined in a different
1674table (an SSDT). Thus it would be an error to declare an object as an
1675external and then define the same named object in the same table. For
1676example:
1677    DefinitionBlock (...)
1678    {
1679        External (DEV1)
1680        Device (DEV1){...} // This was an error
1681    }
1682However, this behavior has caused regressions in some existing ASL code,
1683because there is code that depends on named objects and externals (with
1684the same name) being declared in the same table. This change will allow
1685the ASL code above to compile without errors or warnings.
1686
1687iASL: Implemented ASL language extensions for four operators to make some
1688of their arguments optional instead of required:
1689    1) Field (RegionName, AccessType, LockRule, UpdateRule)
1690    2) BankField (RegionName, BankName, BankValue,
1691                AccessType, LockRule, UpdateRule)
1692    3) IndexField (IndexName, DataName,
1693                AccessType, LockRule, UpdateRule)
1694For the Field operators above, the AccessType, LockRule, and UpdateRule
1695are now optional arguments. The default values are:
1696        AccessType: AnyAcc
1697        LockRule:   NoLock
1698        UpdateRule: Preserve
1699    4) Mutex (MutexName, SyncLevel)
1700For this operator, the SyncLevel argument is now optional. This argument
1701is rarely used in any meaningful way by ASL code, and thus it makes sense
1702to make it optional. The default value is:
1703        SyncLevel:  0
1704
1705iASL: Attempted use of the ASL Unload() operator now results in the
1706following warning:
1707    "Unload is not supported by all operating systems"
1708This is in fact very true, and the Unload operator may be completely
1709deprecated in the near future.
1710
1711AcpiExec: Fixed a regression for the -fi option (Namespace initialization
1712file. Recent changes in the ACPICA module-level code support altered the
1713table load/initialization sequence . This means that the table load has
1714become a large method execution of the table itself. If Operation Region
1715Fields are used within any module-level code and the -fi option was
1716specified, the initialization values were populated only after the table
1717had completely finished loading (and thus the module-level code had
1718already been executed). This change moves the initialization of objects
1719listed in the initialization file to before the table is executed as a
1720method. Field unit values are now initialized before the table execution
1721is performed.
1722
1723----------------------------------------
172431 May 2018. Summary of changes for version 20180531:
1725
1726
17271) ACPICA kernel-resident Subsystem:
1728
1729Implemented additional support to help ensure that a DSDT or SSDT is
1730fully loaded even if errors are incurred during the load. The majority of
1731the problems that are seen is the failure of individual AML operators
1732that occur during execution of any module-level code (MLC) existing in
1733the table. This support adds a mechanism to abort the current ASL
1734statement (AML opcode), emit an error message, and to simply move on to
1735the next opcode -- instead of aborting the entire table load. This is
1736different than the execution of a control method where the entire method
1737is aborted upon any error. The goal is to perform a very "best effort" to
1738load the ACPI tables. The most common MLC errors that have been seen in
1739the field are direct references to unresolved ASL/AML symbols (referenced
1740directly without the use of the CondRefOf operator to validate the
1741symbol). This new ACPICA behavior is now compatible with other ACPI
1742implementations.
1743
1744Interpreter: The Unload AML operator is no longer supported for the
1745reasons below. An AE_NOT_IMPLEMENTED exception is returned.
17461) A correct implementation on at least some hosts may not be possible.
17472) Other ACPI implementations do not correctly/fully support it.
17483) It requires host device driver support which is not known to exist.
1749    (To properly support namespace unload out from underneath.)
17504) This AML operator has never been seen in the field.
1751
1752Parser: Added a debug option to dump AML parse sub-trees as they are
1753being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is
1754ACPI_DB_PARSE_TREES.
1755
1756Debugger: Reduced the verbosity for errors incurred during table load and
1757module-level code execution.
1758
1759Completed an investigation into adding a namespace node "owner list"
1760instead of the current "owner ID" associated with namespace nodes. This
1761list would link together all nodes that are owned by an individual
1762control method. The purpose would be to enhance control method execution
1763by speeding up cleanup during method exit (all namespace nodes created by
1764a method are deleted upon method termination.) Currently, the entire
1765namespace must be searched for matching owner IDs if (and only if) the
1766method creates named objects outside of the local scope. However, by far
1767the most common case is that methods create objects locally, not outside
1768the method scope. There is already an ACPICA optimization in place that
1769only searches the entire namespace in the rare case of a method creating
1770objects elsewhere in the namespace. Therefore, it is felt that the
1771overhead of adding an additional pointer to each namespace node to
1772implement the owner list makes this feature unnecessary.
1773
1774
17752) iASL Compiler/Disassembler and Tools:
1776
1777iASL, Disassembler, and Template generator: Implemented support for
1778Revision D of the IORT table. Adds a new subtable that is used to specify
1779SMMUv3 PMCGs. rmurphy-arm.
1780
1781Disassembler: Restored correct table header validation for the "special"
1782ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI
1783table header and must be special-cased. This was a regression that has
1784been present for apparently a long time.
1785
1786AcpiExec: Reduced verbosity of the local exception handler implemented
1787within acpiexec. This handler is invoked by ACPICA upon any exceptions
1788generated during control method execution. A new option was added: -vh
1789restores the original verbosity level if desired.
1790
1791AcpiExec: Changed the default base from decimal to hex for the -x option
1792(set debug level). This simplifies the use of this option and matches the
1793behavior of the corresponding iASL -x option.
1794
1795AcpiExec: Restored a force-exit on multiple control-c (sigint)
1796interrupts. This allows program termination even if other issues cause
1797the control-c to fail.
1798
1799ASL test suite (ASLTS): Added tests for the recently implemented package
1800element resolution mechanism that allows forward references to named
1801objects from individual package elements (this mechanism provides
1802compatibility with other ACPI implementations.)
1803
1804
1805----------------------------------------
18068 May 2018. Summary of changes for version 20180508:
1807
1808
18091) ACPICA kernel-resident subsystem:
1810
1811Completed the new (recently deployed) package resolution mechanism for
1812the Load and LoadTable ASL/AML operators. This fixes a regression that
1813was introduced in version 20180209 that could result in an
1814AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table
1815(SSDT) that contains package objects.
1816
1817
18182) iASL Compiler/Disassembler and Tools:
1819
1820AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than
18211 MB. This change allows for table offsets within the acpidump file to be
1822up to 8 characters. These changes are backwards compatible with existing
1823acpidump files.
1824
1825
1826----------------------------------------
182727 April 2018. Summary of changes for version 20180427:
1828
1829
18301) ACPICA kernel-resident subsystem:
1831
1832Debugger: Added support for Package objects in the "Test Objects"
1833command. This command walks the entire namespace and evaluates all named
1834data objects (Integers, Strings, Buffers, and now Packages).
1835
1836Improved error messages for the namespace root node. Originally, the root
1837was referred to by the confusing string "\___". This has been replaced by
1838"Namespace Root" for clarification.
1839
1840Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin
1841Ian King <colin.king@canonical.com>.
1842
1843
18442) iASL Compiler/Disassembler and Tools:
1845
1846iASL: Implemented support to detect and flag illegal forward references.
1847For compatibility with other ACPI implementations, these references are
1848now illegal at the root level of the DSDT or SSDTs. Forward references
1849have always been illegal within control methods. This change should not
1850affect existing ASL/AML code because of the fact that these references
1851have always been illegal in the other ACPI implementation.
1852
1853iASL: Added error messages for the case where a table OEM ID and OEM
1854TABLE ID strings are longer than the ACPI-defined length. Previously,
1855these strings were simply silently truncated.
1856
1857iASL: Enhanced the -tc option (which creates an AML hex file in C,
1858suitable for import into a firmware project):
1859  1) Create a unique name for the table, to simplify use of multiple
1860SSDTs.
1861  2) Add a protection #ifdef in the file, similar to a .h header file.
1862With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd,
1863evan.lloyd@arm.com
1864
1865AcpiExec: Added a new option, -df, to disable the local fault handler.
1866This is useful during debugging, where it may be desired to drop into a
1867debugger on a fault.
1868
1869----------------------------------------
187013 March 2018. Summary of changes for version 20180313:
1871
1872
18731) ACPICA kernel-resident subsystem:
1874
1875Implemented various improvements to the GPE support:
1876
18771) Dispatch all active GPEs at initialization time so that no GPEs are
1878lost.
18792) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled
1880before devices are enumerated.
18813) Don't unconditionally clear ACPI IRQs during suspend/resume, so that
1882IRQs are not lost.
18834) Add parallel GPE handling to eliminate the possibility of dispatching
1884the same GPE twice.
18855) Dispatch any pending GPEs after enabling for the first time.
1886
1887AcpiGetObjectInfo - removed support for the _STA method. This was causing
1888problems on some platforms.
1889
1890Added a new _OSI string, "Windows 2017.2".
1891
1892Cleaned up and simplified the module-level code support. These changes
1893are in preparation for the eventual removal of the legacy MLC support
1894(deferred execution), replaced by the new MLC architecture which executes
1895the MLC as a table is loaded (DSDT/SSDTs).
1896
1897Changed a compile-time option to a runtime option. Changes the option to
1898ignore ACPI table load-time package resolution errors into a runtime
1899option. Used only for platforms that generate many AE_NOT_FOUND errors
1900during boot. AcpiGbl_IgnorePackageResolutionErrors.
1901
1902Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some
1903ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid
1904compilation errors from unused variables (seen with some compilers).
1905
1906
19072) iASL Compiler/Disassembler and Tools:
1908
1909ASLTS: parallelized execution in order to achieve an (approximately) 2X
1910performance increase.
1911
1912ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves
1913error reporting.
1914
1915----------------------------------------
191609 February 2018. Summary of changes for version 20180209:
1917
1918
19191) ACPICA kernel-resident subsystem:
1920
1921Completed the final integration of the recent changes to Package Object
1922handling and the module-level AML code support. This allows forward
1923references from individual package elements when the package object is
1924declared from within module-level code blocks. Provides compatibility
1925with other ACPI implementations.
1926
1927The new architecture for the AML module-level code has been completed and
1928is now the default for the ACPICA code. This new architecture executes
1929the module-level code in-line as the ACPI table is loaded/parsed instead
1930of the previous architecture which deferred this code until after the
1931table was fully loaded. This solves some ASL code ordering issues and
1932provides compatibility with other ACPI implementations. At this time,
1933there is an option to fallback to the earlier architecture, but this
1934support is deprecated and is planned to be completely removed later this
1935year.
1936
1937Added a compile-time option to ignore AE_NOT_FOUND exceptions during
1938resolution of named reference elements within Package objects. Although
1939this is potentially a serious problem, it can generate a lot of
1940noise/errors on platforms whose firmware carries around a bunch of unused
1941Package objects. To disable these errors, define
1942ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All
1943errors are always reported for ACPICA applications such as AcpiExec.
1944
1945Fixed a regression related to the explicit type-conversion AML operators
1946(ToXXXX). The regression was introduced early in 2017 but was not seen
1947until recently because these operators are not fully supported by other
1948ACPI implementations and are thus rarely used by firmware developers. The
1949operators are defined by the ACPI specification to not implement the
1950"implicit result object conversion". The regression incorrectly
1951introduced this object conversion for the following explicit conversion
1952operators:
1953    ToInteger
1954    ToString
1955    ToBuffer
1956    ToDecimalString
1957    ToHexString
1958    ToBCD
1959    FromBCD
1960
1961
19622) iASL Compiler/Disassembler and Tools:
1963
1964iASL: Fixed a problem with the compiler constant folding feature as
1965related to the ToXXXX explicit conversion operators. These operators do
1966not support the "implicit result object conversion" by definition. Thus,
1967ASL expressions that use these operators cannot be folded to a simple
1968Store operator because Store implements the implicit conversion. This
1969change uses the CopyObject operator for the ToXXXX operator folding
1970instead. CopyObject is defined to not implement implicit result
1971conversions and is thus appropriate for folding the ToXXXX operators.
1972
1973iASL: Changed the severity of an error condition to a simple warning for
1974the case where a symbol is declared both locally and as an external
1975symbol. This accommodates existing ASL code.
1976
1977AcpiExec: The -ep option to enable the new architecture for module-level
1978code has been removed. It is replaced by the -dp option which instead has
1979the opposite effect: it disables the new architecture (the default) and
1980enables the legacy architecture. When the legacy code is removed in the
1981future, the -dp option will be removed also.
1982
1983----------------------------------------
198405 January 2018. Summary of changes for version 20180105:
1985
1986
19871) ACPICA kernel-resident subsystem:
1988
1989Updated all copyrights to 2018. This affects all source code modules.
1990
1991Fixed a possible build error caused by an unresolved reference to the
1992AcpiUtSafeStrncpy function.
1993
1994Removed NULL pointer arithmetic in the various pointer manipulation
1995macros. All "(void *) NULL" constructs are converted to "(void *) 0".
1996This eliminates warnings/errors in newer C compilers. Jung-uk Kim.
1997
1998Added support for A32 ABI compilation, which uses the ILP32 model. Anuj
1999Mittal.
2000
2001
20022) iASL Compiler/Disassembler and Tools:
2003
2004ASLTS: Updated all copyrights to 2018.
2005
2006Tools: Updated all signon copyrights to 2018.
2007
2008AcpiXtract: Fixed a regression related to ACPI table signatures where the
2009signature was truncated to 3 characters (instead of 4).
2010
2011AcpiExec: Restore the original terminal mode after the use of the -v and
2012-vd options.
2013
2014ASLTS: Deployed the iASL __METHOD__ macro across the test suite.
2015
2016----------------------------------------
201714 December 2017. Summary of changes for version 20171214:
2018
2019
20201) ACPICA kernel-resident subsystem:
2021
2022Fixed a regression in the external (public) AcpiEvaluateObjectTyped
2023interface where the optional "pathname" argument had inadvertently become
2024a required argument returning an error if omitted (NULL pointer
2025argument).
2026
2027Fixed two possible memory leaks related to the recently developed "late
2028resolution" of reference objects within ASL Package Object definitions.
2029
2030Added two recently defined _OSI strings: "Windows 2016" and "Windows
20312017". Mario Limonciello.
2032
2033Implemented and deployed a safer version of the C library function
2034strncpy:  AcpiUtSafeStrncpy. The intent is to at least prevent the
2035creation of unterminated strings as a possible result of a standard
2036strncpy.
2037
2038Cleaned up and restructured the global variable file (acglobal.h). There
2039are many changes, but no functional changes.
2040
2041
20422) iASL Compiler/Disassembler and Tools:
2043
2044iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the
2045optional OemData field at the end of the table was incorrectly required
2046for proper compilation. It is now correctly an optional field.
2047
2048ASLTS: The entire suite was converted from standard ASL to the ASL+
2049language, using the ASL-to-ASL+ converter which is integrated into the
2050iASL compiler. A binary compare of all output files has verified the
2051correctness of the conversion.
2052
2053iASL: Fixed the source code build for platforms where "char" is unsigned.
2054This affected the iASL lexer only. Jung-uk Kim.
2055
2056----------------------------------------
205710 November 2017. Summary of changes for version 20171110:
2058
2059
20601) ACPICA kernel-resident subsystem:
2061
2062This release implements full support for ACPI 6.2A:
2063    NFIT - Added a new subtable, "Platform Capabilities Structure"
2064No other changes to ACPICA were required, since ACPI 6.2A is primarily an
2065errata release of the specification.
2066
2067Other ACPI table changes:
2068    IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo
2069    PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy
2070Linton
2071
2072Utilities: Modified the string/integer conversion functions to use
2073internal 64-bit divide support instead of a native divide. On 32-bit
2074platforms, a 64-bit divide typically requires a library function which
2075may not be present in the build (kernel or otherwise).
2076
2077Implemented a targeted error message for timeouts returned from the
2078Embedded Controller device driver. This is seen frequently enough to
2079special-case an AE_TIME returned from an EC operation region access:
2080    "Timeout from EC hardware or EC device driver"
2081
2082Changed the "ACPI Exception" message prefix to "ACPI Error" so that all
2083runtime error messages have the identical prefix.
2084
2085
20862) iASL Compiler/Disassembler and Tools:
2087
2088AcpiXtract: Fixed a problem with table header detection within the
2089acpidump file. Processing a table could be ended early if a 0x40 (@)
2090appears in the original binary table, resulting in the @ symbol appearing
2091in the decoded ASCII field at the end of the acpidump text line. The
2092symbol caused acpixtract to incorrectly think it had reached the end of
2093the current table and the beginning of a new table.
2094
2095AcpiXtract: Added an option (-f) to ignore some errors during table
2096extraction. This initial implementation ignores non-ASCII and non-
2097printable characters found in the acpidump text file.
2098
2099TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics
2100for ASLTS. This feature is used to track memory allocations from
2101different memory caches within the ACPICA code. At the end of an ASLTS
2102run, these memory statistics are recorded and stored in a log file.
2103
2104Debugger (user-space version): Implemented a simple "Background" command.
2105Creates a new thread to execute a control method in the background, while
2106control returns to the debugger prompt to allow additional commands.
2107    Syntax: Background <Namepath> [Arguments]
2108
2109----------------------------------------
211029 September 2017. Summary of changes for version 20170929:
2111
2112
21131) ACPICA kernel-resident subsystem:
2114
2115Redesigned and implemented an improved ASL While() loop timeout
2116mechanism. This mechanism is used to prevent infinite loops in the kernel
2117AML interpreter caused by either non-responsive hardware or incorrect AML
2118code. The new implementation uses AcpiOsGetTimer instead of a simple
2119maximum loop count, and is thus more accurate and constant across
2120different machines. The default timeout is currently 30 seconds, but this
2121may be adjusted later.
2122
2123Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to
2124better reflect the new implementation of the loop timeout mechanism.
2125
2126Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support
2127and to fix an off-by-one error. Jung-uk Kim.
2128
2129Fixed an EFI build problem by updating the makefiles to for a new file
2130that was added, utstrsuppt.c
2131
2132
21332) iASL Compiler/Disassembler and Tools:
2134
2135Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This
2136includes support in the table disassembler, compiler, and template
2137generator.
2138
2139iASL: Added an exception for an illegal type of recursive method
2140invocation. If a method creates named objects, the first recursive call
2141will fail at runtime. This change adds an error detection at compile time
2142to catch the problem up front. Note: Marking such a method as
2143"serialized" will not help with this problem, because the same thread can
2144acquire the method mutex more than once. Example compiler and runtime
2145output:
2146
2147    Method (MTH1)
2148    {
2149        Name (INT1, 1)
2150        MTH1 ()
2151    }
2152
2153    dsdt.asl     22: MTH1 ()
2154    Error    6152 -  ^ Illegal recursive call to method
2155                       that creates named objects (MTH1)
2156
2157Previous runtime exception:
2158    ACPI Error: [INT1] Namespace lookup failure,
2159    AE_ALREADY_EXISTS (20170831/dswload2-465)
2160
2161iASL: Updated support for External() opcodes to improve namespace
2162management and error detection. These changes are related to issues seen
2163with multiple-segment namespace pathnames within External declarations,
2164such as below:
2165
2166    External(\_SB.PCI0.GFX0, DeviceObj)
2167    External(\_SB.PCI0.GFX0.ALSI)
2168
2169iASL: Implemented support for multi-line error/warning messages. This
2170enables more detailed and helpful error messages as below, from the
2171initial deployment for the duplicate names error:
2172
2173    DSDT.iiii   1692:       Device(PEG2) {
2174    Error    6074 -                  ^ Name already exists in scope
2175(PEG2)
2176
2177        Original name creation/declaration below:
2178        DSDT.iiii     93:   External(\_SB.PCI0.PEG2, DeviceObj)
2179
2180AcpiXtract: Added additional flexibility to support differing input hex
2181dump formats. Specifically, hex dumps that contain partial disassembly
2182and/or comments within the ACPI table data definition. There exist some
2183dump utilities seen in the field that create this type of hex dump (such
2184as Simics). For example:
2185
2186    DSDT @ 0xdfffd0c0 (10999 bytes)
2187        Signature DSDT
2188        Length 10999
2189        Revision 1
2190        Checksum 0xf3 (Ok)
2191        OEM_ID BXPC
2192        OEM_table_id BXDSDT
2193        OEM_revision 1
2194        Creator_id 1280593481
2195        Creator_revision 537399345
2196      0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00
2197      ...
2198      2af0: 5f 4c 30 46 00 a4 01
2199
2200Test suite: Miscellaneous changes/fixes:
2201    More cleanup and simplification of makefiles
2202    Continue compilation of test cases after a compile failure
2203    Do not perform binary compare unless both files actually exist
2204
2205iASL: Performed some code/module restructuring. Moved all memory
2206allocation functions to new modules. Two new files, aslallocate.c and
2207aslcache.c
2208
2209----------------------------------------
221031 August 2017. Summary of changes for version 20170831:
2211
2212
22131) ACPICA kernel-resident subsystem:
2214
2215Implemented internal support for full 64-bit addresses that appear in all
2216Generic Address Structure (GAS) structures. Previously, only the lower 32
2217bits were used. Affects the use of GAS structures in the FADT and other
2218tables, as well as the GAS structures passed to the AcpiRead and
2219AcpiWrite public external interfaces that are used by drivers. Lv Zheng.
2220
2221Added header support for the PDTT ACPI table (Processor Debug Trigger
2222Table). Full support in the iASL Data Table Compiler and disassembler is
2223forthcoming.
2224
2225
22262) iASL Compiler/Disassembler and Tools:
2227
2228iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor
2229Properties Topology Table) where a flag bit was specified in the wrong
2230bit position ("Line Size Valid", bit 6).
2231
2232iASL: Implemented support for Octal integer constants as defined by the
2233ASL language grammar, per the ACPI specification. Any integer constant
2234that starts with a zero is an octal constant. For example,
2235    Store (037777, Local0) /* Octal constant */
2236    Store (0x3FFF, Local0) /* Hex equivalent */
2237    Store (16383,  Local0) /* Decimal equivalent */
2238
2239iASL: Improved overflow detection for 64-bit string conversions during
2240compilation of integer constants. "Overflow" in this case means a string
2241that represents an integer that is too large to fit into a 64-bit value.
2242Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to
2243the low-order 32 bits with a warning, as previously implemented. Several
2244new exceptions are defined that indicate a 64-bit overflow, as well as
2245the base (radix) that was used during the attempted conversion. Examples:
2246    Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF        // AE_HEX_OVERFLOW
2247    Local0 = 01111222233334444555566667777     // AE_OCTAL_OVERFLOW
2248    Local0 = 11112222333344445555666677778888  // AE_DECIMAL_OVERFLOW
2249
2250iASL: Added a warning for the case where a ResourceTemplate is declared
2251with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In
2252this case, the resulting template is created with a single END_TAG
2253descriptor, which is essentially useless.
2254
2255iASL: Expanded the -vw option (ignore specific warnings/remarks) to
2256include compilation error codes as well.
2257
2258----------------------------------------
225928 July 2017. Summary of changes for version 20170728:
2260
2261
22621) ACPICA kernel-resident subsystem:
2263
2264Fixed a regression seen with small resource descriptors that could cause
2265an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.
2266
2267AML interpreter: Implemented a new feature that allows forward references
2268from individual named references within package objects that are
2269contained within blocks of "module-level code". This provides
2270compatibility with other ACPI implementations and supports existing
2271firmware that depends on this feature. Example:
2272
2273    Name (ABCD, 1)
2274    If (ABCD)                       /* An If() at module-level */
2275    {
2276        Name (PKG1, Package()
2277        {
2278            INT1                    /* Forward reference to object INT1
2279*/
2280        })
2281        Name (INT1, 0x1234)
2282    }
2283
2284AML Interpreter: Fixed a problem with the Alias() operator where aliases
2285to some ASL objects were not handled properly. Objects affected are:
2286Mutex, Event, and OperationRegion.
2287
2288AML Debugger: Enhanced to properly handle AML Alias objects. These
2289objects have one level of indirection which was not fully supported by
2290the debugger.
2291
2292Table Manager: Added support to detect and ignore duplicate SSDTs within
2293the XSDT/RSDT. This error in the XSDT has been seen in the field.
2294
2295EFI and EDK2 support:
2296    Enabled /WX flag for MSVC builds
2297    Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer
2298    Added local support for 64-bit multiply and shift operations
2299    Added support to compile acpidump.efi on Windows
2300    Added OSL function stubs for interfaces not used under EFI
2301
2302Added additional support for the _DMA predefined name. _DMA returns a
2303buffer containing a resource template. This change add support within the
2304resource manager (AcpiWalkResourceBuffer) to walk and parse this list of
2305resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2306
2307
23082) iASL Compiler/Disassembler and Tools:
2309
2310iASL: Fixed a problem where the internal input line buffer(s) could
2311overflow if there are very long lines in the input ASL source code file.
2312Implemented buffer management that automatically increases the size of
2313the buffers as necessary.
2314
2315iASL: Added an option (-vx) to "expect" particular remarks, warnings and
2316errors. If the specified exception is not raised during compilation, the
2317compiler emits an error. This is intended to support the ASL test suite,
2318but may be useful in other contexts.
2319
2320iASL: Implemented a new predefined macro, __METHOD__, which returns a
2321string containing the name of the current control method that is being
2322compiled.
2323
2324iASL: Implemented debugger and table compiler support for the SDEI ACPI
2325table (Software Delegated Exception Interface). James Morse
2326<james.morse@arm.com>
2327
2328Unix/Linux makefiles: Added an option to disable compile optimizations.
2329The disable occurs when the NOOPT flag is set to TRUE.
2330theracermaster@gmail.com
2331
2332Acpidump: Added support for multiple DSDT and FACS tables. This can occur
2333when there are different tables for 32-bit versus 64-bit.
2334
2335Enhanced error reporting for the ASL test suite (ASLTS) by removing
2336unnecessary/verbose text, and emit the actual line number where an error
2337has occurred. These changes are intended to improve the usefulness of the
2338test suite.
2339
2340----------------------------------------
234129 June 2017. Summary of changes for version 20170629:
2342
2343
23441) ACPICA kernel-resident subsystem:
2345
2346Tables: Implemented a deferred ACPI table verification. This is useful
2347for operating systems where the tables cannot be verified in the early
2348initialization stage due to early memory mapping limitations on some
2349architectures. Lv Zheng.
2350
2351Tables: Removed the signature validation for dynamically loaded tables.
2352Provides compatibility with other ACPI implementations. Previously, only
2353SSDT tables were allowed, as per the ACPI specification. Now, any table
2354signature can be used via the Load() operator. Lv Zheng.
2355
2356Tables: Fixed several mutex issues that could cause errors during table
2357acquisition. Lv Zheng.
2358
2359Tables: Fixed a problem where an ACPI warning could be generated if a
2360null pointer was passed to the AcpiPutTable interface. Lv Zheng.
2361
2362Tables: Added a mechanism to handle imbalances for the AcpiGetTable and
2363AcpiPutTable interfaces. This applies to the "late stage" table loading
2364when the use of AcpiPutTable is no longer required (since the system
2365memory manager is fully running and available). Lv Zheng.
2366
2367Fixed/Reverted a regression during processing of resource descriptors
2368that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG
2369exception in this case.
2370
2371Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the
2372I/O Remapping specification. Robin Murphy <robin.murphy@arm.com>
2373
2374Interpreter: Fixed a possible fault if an Alias operator with an invalid
2375or duplicate target is encountered during Alias creation in
2376AcpiExCreateAlias. Alex James <theracermaster@gmail.com>
2377
2378Added an option to use designated initializers for function pointers.
2379Kees Cook <keescook@google.com>
2380
2381
23822) iASL Compiler/Disassembler and Tools:
2383
2384iASL: Allow compilation of External declarations with target pathnames
2385that refer to existing named objects within the table. Erik Schmauss.
2386
2387iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a
2388FieldUnit name also is declared via External in the same table. Erik
2389Schmauss.
2390
2391iASL: Allow existing scope names within pathnames used in External
2392statements. For example:
2393    External (ABCD.EFGH) // ABCD exists, but EFGH is truly external
2394    Device (ABCD)
2395
2396iASL: IORT ACPI table: Implemented changes required to decode the new
2397Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table
2398compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
2399
2400Disassembler: Don't abort disassembly on errors from External()
2401statements. Erik Schmauss.
2402
2403Disassembler: fixed a possible fault when one of the Create*Field
2404operators references a Resource Template. ACPICA Bugzilla 1396.
2405
2406iASL: In the source code, resolved some naming inconsistences across the
2407parsing support. Fixes confusion between "Parse Op" and "Parse Node".
2408Adds a new file, aslparseop.c
2409
2410----------------------------------------
241131 May 2017. Summary of changes for version 20170531:
2412
2413
24140) ACPI 6.2 support:
2415
2416The ACPI specification version 6.2 has been released and is available at
2417http://uefi.org/specifications
2418
2419This version of ACPICA fully supports the ACPI 6.2 specification. Changes
2420are summarized below.
2421
2422New ACPI tables (Table Compiler/Disassembler/Templates):
2423    HMAT (Heterogeneous Memory Attributes Table)
2424    WSMT (Windows SMM Security Mitigation Table)
2425    PPTT (Processor Properties Topology Table)
2426
2427New subtables for existing ACPI tables:
2428    HEST (New subtable, Arch-deferred machine check)
2429    SRAT (New subtable, Arch-specific affinity structure)
2430    PCCT (New subtables, Extended PCC subspaces (types 3 and 4))
2431
2432Simple updates for existing ACPI tables:
2433    BGRT (two new flag bits)
2434    HEST (New bit defined for several subtables, GHES_ASSIST)
2435
2436New Resource Descriptors and Resource macros (Compiler/Disassembler):
2437    PinConfig()
2438    PinFunction()
2439    PinGroup()
2440    PinGroupConfig()
2441    PinGroupFunction()
2442    New type for hardware error notification (section 18.3.2.9)
2443
2444New predefined names/methods (Compiler/Interpreter):
2445    _HMA (Heterogeneous Memory Attributes)
2446    _LSI (Label Storage Information)
2447    _LSR (Label Storage Read)
2448    _LSW (Label Storage Write)
2449
2450ASL grammar/macro changes (Compiler):
2451    For() ASL macro, implemented with the AML while operator
2452    Extensions to Concatenate operator
2453    Support for multiple definition blocks in same ASL file
2454    Clarification for Buffer operator
2455    Allow executable AML code underneath all scopes (Devices, etc.)
2456    Clarification/change for the _OSI return value
2457    ASL grammar update for reference operators
2458    Allow a zero-length string for AML filename in DefinitionBlock
2459
2460Miscellaneous:
2461    New device object notification value
2462    Remove a notify value (0x0C) for graceful shutdown
2463    New UUIDs for processor/cache properties and
2464        physical package property
2465    New _HID, ACPI0014 (Wireless Power Calibration Device)
2466
2467
24681) ACPICA kernel-resident subsystem:
2469
2470Added support to disable ACPI events on hardware-reduced platforms.
2471Eliminates error messages of the form "Could not enable fixed event". Lv
2472Zheng
2473
2474Fixed a problem using Device/Thermal objects with the ObjectType and
2475DerefOf ASL operators. This support had not been fully/properly
2476implemented.
2477
2478Fixed a problem where if a Buffer object containing a resource template
2479was longer than the actual resource template, an error was generated --
2480even though the AML is legal. This case has been seen in the field.
2481
2482Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.
2483The values for DUAL_PIC and MULTIPLE_APIC were reversed.
2484
2485Added header file changes for the TPM2 ACPI table. Update to new version
2486of the TCG specification. Adds a new TPM2 subtable for ARM SMC.
2487
2488Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.
2489These interfaces are intended to be used only in conjunction with the
2490predefined _DLM method (Device Lock Method). "This object appears in a
2491device scope when AML access to the device must be synchronized with the
2492OS environment".
2493
2494Example Code and Data Size: These are the sizes for the OS-independent
2495acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2496debug version of the code includes the debug output trace mechanism and
2497has a much larger code and data size.
2498
2499  Current Release:
2500    Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total
2501    Debug Version:     204.0K Code, 84.3K Data, 288.3K Total
2502  Previous Release:
2503    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2504    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2505
2506
25072) iASL Compiler/Disassembler and Tools:
2508
2509iASL: Fixed a problem where an External() declaration could not refer to
2510a Field Unit. Erik Schmauss.
2511
2512Disassembler: Improved support for the Switch/Case operators. This
2513feature will disassemble AML code back to the original Switch operators
2514when possible, instead of an If..Else sequence. David Box
2515
2516iASL and disassembler: Improved the handling of multiple extraneous
2517parentheses for both ASL input and disassembled ASL output.
2518
2519Improved the behavior of the iASL compiler and disassembler to detect
2520improper use of external declarations
2521
2522Disassembler: Now aborts immediately upon detection of an unknown AML
2523opcode. The AML parser has no real way to recover from this, and can
2524result in the creation of an ill-formed parse tree that causes errors
2525later during the disassembly.
2526
2527All tools: Fixed a problem where the Unix application OSL did not handle
2528control-c correctly. For example, a control-c could incorrectly wake the
2529debugger.
2530
2531AcpiExec: Improved the Control-C handling and added a handler for
2532segmentation faults (SIGSEGV). Supports both Windows and Unix-like
2533environments.
2534
2535Reduced the verbosity of the generic unix makefiles. Previously, each
2536compilation displayed the full set of compiler options. This has been
2537eliminated as the options are easily inspected within the makefiles. Each
2538compilation now results in a single line of output.
2539
2540----------------------------------------
254103 March 2017. Summary of changes for version 20170303:
2542
2543
25440) ACPICA licensing:
2545
2546The licensing information at the start of each source code module has
2547been updated. In addition to the Intel license, the dual GPLv2/BSD
2548license has been added for completeness. Now, a single version of the
2549source code should be suitable for all ACPICA customers. This is the
2550major change for this release since it affects all source code modules.
2551
2552
25531) ACPICA kernel-resident subsystem:
2554
2555Fixed two issues with the common asltypes.h header that could cause
2556problems in some environments: (Kim Jung-uk)
2557    Removed typedef for YY_BUFFER_STATE ?
2558       Fixes an error with earlier versions of Flex.
2559    Removed use of FILE typedef (which is only defined in stdio.h)
2560
2561
25622) iASL Compiler/Disassembler and Tools:
2563
2564Disassembler: fixed a regression introduced in 20170224. A fix for a
2565memory leak related to resource descriptor tags (names) could fault when
2566the disassembler was generated with 64-bit compilers.
2567
2568The ASLTS test suite has been updated to implement a new testing
2569architecture. During generation of the suite from ASL source, both the
2570ASL and ASL+ compilers are now validated, as well as the disassembler
2571itself (Erik Schmauss). The architecture executes as follows:
2572
2573    For every ASL source module:
2574        Compile (legacy ASL compilation)
2575        Disassemble the resulting AML to ASL+ source code
2576        Compile the new ASL+ module
2577        Perform a binary compare on the legacy AML and the new ASL+ AML
2578    The ASLTS suite then executes normally using the AML binaries.
2579
2580----------------------------------------
258124 February 2017. Summary of changes for version 20170224:
2582
2583
25841) ACPICA kernel-resident subsystem:
2585
2586Interpreter: Fixed two issues with the control method return value auto-
2587repair feature, where an attempt to double-delete an internal object
2588could result in an ACPICA warning (for _CID repair and others). No fault
2589occurs, however, because the attempted deletion (actually a release to an
2590internal cache) is detected and ignored via object poisoning.
2591
2592Debugger: Fixed an AML interpreter mutex issue during the single stepping
2593of control methods. If certain debugger commands are executed during
2594stepping, a mutex acquire/release error could occur. Lv Zheng.
2595
2596Fixed some issues generating ACPICA with the Intel C compiler by
2597restoring the original behavior and compiler-specific include file in
2598acenv.h. Lv Zheng.
2599
2600Example Code and Data Size: These are the sizes for the OS-independent
2601acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2602debug version of the code includes the debug output trace mechanism and
2603has a much larger code and data size.
2604
2605  Current Release:
2606    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2607    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2608  Previous Release:
2609    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2610    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2611
2612
26132) iASL Compiler/Disassembler and Tools:
2614
2615iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion
2616tool has been designed, implemented, and included in this release. The
2617key feature of this utility is that the original comments within the
2618input ASL file are preserved during the conversion process, and included
2619within the converted ASL+ file -- thus creating a transparent conversion
2620of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.
2621
2622    Usage: iasl -ca <ASL-filename>  // Output is a .dsl file with
2623converted code
2624
2625iASL/Disassembler: Improved the detection and correct disassembly of
2626Switch/Case operators. This feature detects sequences of if/elseif/else
2627operators that originated from ASL Switch/Case/Default operators and
2628emits the original operators. David Box.
2629
2630iASL: Improved the IORT ACPI table support in the following areas. Lv
2631Zheng:
2632    Clear MappingOffset if the MappingCount is zero.
2633    Fix the disassembly of the SMMU GSU interrupt offset.
2634    Update the template file for the IORT table.
2635
2636Disassembler: Enhanced the detection and disassembly of resource
2637template/descriptor within a Buffer object. An EndTag descriptor is now
2638required to have a zero second byte, since all known ASL compilers emit
2639this. This helps eliminate incorrect decisions when a buffer is
2640disassembled (false positives on resource templates).
2641
2642----------------------------------------
264319 January 2017. Summary of changes for version 20170119:
2644
2645
26461) General ACPICA software:
2647
2648Entire source code base: Added the 2017 copyright to all source code
2649legal/licensing module headers and utility/tool signons. This includes
2650the standard Linux dual-license header. This affects virtually every file
2651in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
2652the ACPICA test suite.
2653
2654
26552) iASL Compiler/Disassembler and Tools:
2656
2657iASL: Removed/fixed an inadvertent remark when a method argument
2658containing a reference is used as a target operand within the method (and
2659never used as a simple argument), as in the example below. Jeffrey Hugo.
2660
2661    dsdt.asl   1507:    Store(0x1, Arg0)
2662    Remark   2146 -                ^ Method Argument is never used (Arg0)
2663
2664All tools: Removed the bit width of the compiler that generated the tool
2665from the common signon for all user space tools. This proved to be
2666confusing and unnecessary. This includes similar removal of HARDWARE_NAME
2667from the generic makefiles (Thomas Petazzoni). Example below.
2668
2669    Old:
2670    ASL+ Optimizing Compiler version 20170119-32
2671    ASL+ Optimizing Compiler version 20170119-64
2672
2673    New:
2674    ASL+ Optimizing Compiler version 20170119
2675
2676----------------------------------------
267722 December 2016. Summary of changes for version 20161222:
2678
2679
26801) ACPICA kernel-resident subsystem:
2681
2682AML Debugger: Implemented a new mechanism to simplify and enhance
2683debugger integration into all environments, including kernel debuggers
2684and user-space utilities, as well as remote debug services. This
2685mechanism essentially consists of new OSL interfaces to support debugger
2686initialization/termination, as well as wait/notify interfaces to perform
2687the debugger handshake with the host. Lv Zheng.
2688
2689    New OSL interfaces:
2690        AcpiOsInitializeDebugger (void)
2691        AcpiOsTerminateDebugger (void)
2692        AcpiOsWaitCommandReady (void)
2693        AcpiOsNotifyCommandComplete (void)
2694
2695    New OS services layer:
2696        osgendbg.c -- Example implementation, and used for AcpiExec
2697
2698Update for Generic Address Space (GAS) support: Although the AccessWidth
2699and/or BitOffset fields of the GAS are not often used, this change now
2700fully supports these fields. This affects the internal support for FADT
2701registers, registers in other ACPI data tables, and the AcpiRead and
2702AcpiWrite public interfaces. Lv Zheng.
2703
2704Sleep support: In order to simplify integration of ACPI sleep for the
2705various host operating systems, a new OSL interface has been introduced.
2706AcpiOsEnterSleep allows the host to perform any required operations
2707before the final write to the sleep control register(s) is performed by
2708ACPICA. Lv Zheng.
2709
2710    New OSL interface:
2711        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
2712
2713    Called from these internal interfaces:
2714        AcpiHwLegacySleep
2715        AcpiHwExtendedSleep
2716
2717EFI support: Added a very small EFI/ACPICA example application. Provides
2718a simple demo for EFI integration, as well as assisting with resolution
2719of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
2720
2721    source/tools/efihello/efihello.c
2722
2723Local C library: Implemented several new functions to enhance ACPICA
2724portability, for environments where these clib functions are not
2725available (such as EFI). Lv Zheng:
2726    putchar
2727    getchar
2728    strpbrk
2729    strtok
2730    memmove
2731
2732Fixed a regression where occasionally a valid resource descriptor was
2733incorrectly detected as invalid at runtime, and a
2734AE_AML_NO_RESOURCE_END_TAG was returned.
2735
2736Fixed a problem with the recently implemented support that enables
2737control method invocations as Target operands to many ASL operators.
2738Warnings of this form: "Needed type [Reference], found [Processor]" were
2739seen at runtime for some method invocations.
2740
2741Example Code and Data Size: These are the sizes for the OS-independent
2742acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2743debug version of the code includes the debug output trace mechanism and
2744has a much larger code and data size.
2745
2746  Current Release:
2747    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
2748    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
2749  Previous Release:
2750    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2751    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2752
2753
27542) iASL Compiler/Disassembler and Tools:
2755
2756Disassembler: Enhanced output by adding the capability to detect and
2757disassemble ASL Switch/Case statements back to the original ASL source
2758code instead of if/else blocks. David Box.
2759
2760AcpiHelp: Split a large file into separate files based upon
2761functionality/purpose. New files are:
2762    ahaml.c
2763    ahasl.c
2764
2765----------------------------------------
276617 November 2016. Summary of changes for version 20161117:
2767
2768
27691) ACPICA kernel-resident subsystem:
2770
2771Table Manager: Fixed a regression introduced in 20160729, "FADT support
2772cleanup". This was an attempt to remove all references in the source to
2773the FADT version 2, which never was a legal version number. It was
2774skipped because it was an early version of 64-bit support that was
2775eventually abandoned for the current 64-bit support.
2776
2777Interpreter: Fixed a problem where runtime implicit conversion was
2778incorrectly disabled for the ASL operators below. This brings the
2779behavior into compliance with the ACPI specification:
2780    FromBCD
2781    ToBCD
2782    ToDecimalString
2783    ToHexString
2784    ToInteger
2785    ToBuffer
2786
2787Table Manager: Added a new public interface, AcpiPutTable, used to
2788release and free an ACPI table returned by AcpiGetTable and related
2789interfaces. Lv Zheng.
2790
2791Example Code and Data Size: These are the sizes for the OS-independent
2792acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2793debug version of the code includes the debug output trace mechanism and
2794has a much larger code and data size.
2795
2796  Current Release:
2797    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2798    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2799  Previous Release:
2800    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2801    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2802
2803
28042) iASL Compiler/Disassembler and Tools:
2805
2806Disassembler: Fixed a regression for disassembly of Resource Template.
2807Detection of templates in the AML stream missed some types of templates.
2808
2809iASL: Fixed a problem where an Access Size error was returned for the PCC
2810address space when the AccessSize of the GAS register is greater than a
2811DWORD. Hoan Tran.
2812
2813iASL: Implemented several grammar changes for the operators below. These
2814changes are slated for the next version of the ACPI specification:
2815    RefOf        - Disallow method invocation as an operand
2816    CondRefOf    - Disallow method invocation as an operand
2817    DerefOf      - Disallow operands that use the result from operators
2818that
2819                   do not return a reference (Changed TermArg to
2820SuperName).
2821
2822iASL: Control method invocations are now allowed for Target operands, as
2823per the ACPI specification. Removed error for using a control method
2824invocation as a Target operand.
2825
2826Disassembler: Improved detection of Resource Templates, Unicode, and
2827Strings within Buffer objects. These subtypes do not contain a specific
2828opcode to indicate the originating ASL code, and they must be detected by
2829other means within the disassembler.
2830
2831iASL: Implemented an optimization improvement for 32-bit ACPI tables
2832(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
2833only after 64-bit to 32-bit truncation. A truncation warning message is
2834still emitted, however.
2835
2836AcpiXtract: Implemented handling for both types of line terminators (LF
2837or CR/LF) so that it can accept AcpiDump output files from any system.
2838Peter Wu.
2839
2840AcpiBin: Added two new options for comparing AML files:
2841    -a: compare and display ALL mismatches
2842    -o: start compare at this offset into the second file
2843
2844----------------------------------------
284530 September 2016. Summary of changes for version 20160930:
2846
2847
28481) ACPICA kernel-resident subsystem:
2849
2850Fixed a regression in the internal AcpiTbFindTable function where a non
2851AE_OK exception could inadvertently be returned even if the function did
2852not fail. This problem affects the following operators:
2853    DataTableRegion
2854    LoadTable
2855
2856Fixed a regression in the LoadTable operator where a load to any
2857namespace location other than the root no longer worked properly.
2858
2859Increased the maximum loop count value that will result in the
2860AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to
2861prevent infinite loops within the AML interpreter and thus the host OS
2862kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to
28631,048,575).
2864
2865Moved the AcpiGbl_MaxLoopIterations configuration variable to the public
2866acpixf.h file. This allows hosts to easily configure the maximum loop
2867count at runtime.
2868
2869Removed an illegal character in the strtoul64.c file. This character
2870caused errors with some C compilers.
2871
2872Example Code and Data Size: These are the sizes for the OS-independent
2873acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2874debug version of the code includes the debug output trace mechanism and
2875has a much larger code and data size.
2876
2877  Current Release:
2878    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2879    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2880  Previous Release:
2881    Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total
2882    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2883
2884
28852) iASL Compiler/Disassembler and Tools:
2886
2887Disassembler: Fixed a problem with the conversion of Else{If{ blocks into
2888the simpler ASL ElseIf keyword. During the conversion, a trailing If
2889block could be lost and missing from the disassembled output.
2890
2891iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,
2892the missing rule caused a parse error when using the Index operator as an
2893operand to ObjectType. This construct now compiles properly. Example:
2894    ObjectType(PKG1[4]).
2895
2896iASL: Correctly handle unresolved symbols in the hardware map file (-lm
2897option). Previously, unresolved symbols could cause a protection fault.
2898Such symbols are now marked as unresolved in the map file.
2899
2900iASL: Implemented support to allow control method invocations as an
2901operand to the ASL DeRefOf operator. Example:
2902    DeRefOf(MTH1(Local0))
2903
2904Disassembler: Improved support for the ToPLD ASL macro. Detection of a
2905possible _PLD buffer now includes examination of both the normal buffer
2906length (16 or 20) as well as the surrounding AML package length.
2907
2908Disassembler: Fixed a problem with the decoding of complex expressions
2909within the Divide operator for ASL+. For the case where both the quotient
2910and remainder targets are specified, the entire statement cannot be
2911disassembled. Previously, the output incorrectly contained a mix of ASL-
2912and ASL+ operators. This mixed statement causes a syntax error when
2913compiled. Example:
2914    Divide (Add (INT1, 6), 128, RSLT, QUOT)  // was incorrectly
2915disassembled to:
2916    Divide (INT1 + 6, 128, RSLT, QUOT)
2917
2918iASL/Tools: Added support to process AML and non-AML ACPI tables
2919consistently. For the disassembler and AcpiExec, allow all types of ACPI
2920tables (AML and data tables). For the iASL -e option, allow only AML
2921tables (DSDT/SSDT).
2922
2923----------------------------------------
292431 August 2016. Summary of changes for version 20160831:
2925
2926
29271) ACPICA kernel-resident subsystem:
2928
2929Improve support for the so-called "module-level code", which is defined
2930to be math, logical and control AML opcodes that appear outside of any
2931control method. This change improves the support by adding more opcodes
2932that can be executed in the manner. Some other issues have been solved,
2933and the ASL grammar changes to support such code under all scope
2934operators (Device, etc.) are complete. Lv Zheng.
2935
2936UEFI support: these OSL functions have been implemented. This is an
2937additional step toward supporting the AcpiExec utility natively (with
2938full hardware access) under UEFI. Marcelo Ferreira.
2939    AcpiOsReadPciConfiguration
2940    AcpiOsWritePciConfiguration
2941
2942Fixed a possible mutex error during control method auto-serialization. Lv
2943Zheng.
2944
2945Updated support for the Generic Address Structure by fully implementing
2946all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv
2947Zheng.
2948
2949Updated the return value for the internal _OSI method. Instead of
29500xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF
2951for 64-bit ACPI tables. This fixes an incompatibility with other ACPI
2952implementations, and will be reflected and clarified in the next version
2953of the ACPI specification.
2954
2955Implemented two new table events that can be passed to an ACPICA table
2956handler. These events are used to indicate a table installation or
2957uninstallation. These events are used in addition to existed table load
2958and unload events. Lv Zheng.
2959
2960Implemented a cleanup for all internal string-to-integer conversions.
2961Consolidate multiple versions of this functionality and limit possible
2962bases to either 10 or 16 to simplify the code. Adds a new file,
2963utstrtoul64.
2964
2965Cleanup the inclusion order of the various compiler-specific headers.
2966This simplifies build configuration management. The compiler-specific
2967headers are now split out from the host-specific headers. Lv Zheng.
2968
2969Example Code and Data Size: These are the sizes for the OS-independent
2970acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2971debug version of the code includes the debug output trace mechanism and
2972has a much larger code and data size.
2973
2974  Current Release:
2975    Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total
2976    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2977
2978
29792) iASL Compiler/Disassembler and Tools:
2980
2981iASL/AcpiExec: Added a command line option to display the build date/time
2982of the tool (-vd). This can be useful to verify that the correct version
2983of the tools are being used.
2984
2985AML Debugger: Implemented a new subcommand ("execute predef") to execute
2986all predefined control methods and names within the current namespace.
2987This can be useful for debugging problems with ACPI tables and the ACPI
2988namespace.
2989
2990----------------------------------------
299129 July 2016. Summary of changes for version 20160729:
2992
2993
29941) ACPICA kernel-resident subsystem:
2995
2996Implemented basic UEFI support for the various ACPICA tools. This
2997includes:
29981) An OSL to implement the various AcpiOs* interfaces on UEFI.
29992) Support to obtain the ACPI tables on UEFI.
30003) Local implementation of required C library functions not available on
3001UEFI.
30024) A front-end (main) function for the tools for UEFI-related
3003initialization.
3004
3005The initial deployment of this support is the AcpiDump utility executing
3006as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").
3007Current environments supported are Linux/Unix. MSVC generation is not
3008supported at this time. See the generate/efi/README file for build
3009instructions. Lv Zheng.
3010
3011Future plans include porting the AcpiExec utility to execute natively on
3012the platform with I/O and memory access. This will allow viewing/dump of
3013the platform namespace and native execution of ACPI control methods that
3014access the actual hardware. To fully implement this support, the OSL
3015functions below must be implemented with UEFI interfaces. Any community
3016help in the implementation of these functions would be appreciated:
3017    AcpiOsReadPort
3018    AcpiOsWritePort
3019    AcpiOsReadMemory
3020    AcpiOsWriteMemory
3021    AcpiOsReadPciConfiguration
3022    AcpiOsWritePciConfiguration
3023
3024Restructured and standardized the C library configuration for ACPICA,
3025resulting in the various configuration options below. This includes a
3026global restructuring of the compiler-dependent and platform-dependent
3027include files. These changes may affect the existing platform-dependent
3028configuration files on some hosts. Lv Zheng.
3029
3030The current C library configuration options appear below. For any issues,
3031it may be helpful to examine the existing compiler-dependent and
3032platform-dependent files as examples. Lv Zheng.
3033
30341) Linux kernel:
3035    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
3036library.
3037    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
30382) Unix/Windows/BSD applications:
3039    ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C
3040library.
3041    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
30423) UEFI applications:
3043    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
3044library.
3045    ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.
30464) UEFI applications (EDK2/StdLib):
3047    ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.
3048    ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.
3049
3050
3051AML interpreter: "module-level code" support. Allows for execution of so-
3052called "executable" AML code (math/logical operations, etc.) outside of
3053control methods not just at the module level (top level) but also within
3054any scope declared outside of a control method - Scope{}, Device{},
3055Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.
3056
3057Simplified the configuration of the "maximum AML loops" global option by
3058adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be
3059modified at runtime.
3060
3061
3062Example Code and Data Size: These are the sizes for the OS-independent
3063acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3064debug version of the code includes the debug output trace mechanism and
3065has a much larger code and data size.
3066
3067  Current Release:
3068    Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total
3069    Debug Version:     199.0K Code, 81.8K Data, 280.8K Total
3070
3071
30722) iASL Compiler/Disassembler and Tools:
3073
3074iASL: Add full support for the RASF ACPI table (RAS Features Table).
3075Includes disassembler, data table compiler, and header support.
3076
3077iASL Expand "module-level code" support. Allows for
3078compilation/disassembly of so-called "executable" AML code (math/logical
3079operations, etc.) outside of control methods not just at the module level
3080(top level) but also within any scope declared outside of a control
3081method - Scope{}, Device{}, Processor{}, PowerResource{}, and
3082ThermalZone{}.
3083
3084AcpiDump: Added support for dumping all SSDTs on newer versions of
3085Windows. These tables are now easily available -- SSDTs are not available
3086through the registry on older versions.
3087
3088----------------------------------------
308927 May 2016. Summary of changes for version 20160527:
3090
3091
30921) ACPICA kernel-resident subsystem:
3093
3094Temporarily reverted the new arbitrary bit length/alignment support in
3095AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
3096a number of regressions with the new code that need to be fully resolved
3097and tested before this support can be finally integrated into ACPICA.
3098Apologies for any inconveniences these issues may have caused.
3099
3100The ACPI message macros are not configurable (ACPI_MSG_ERROR,
3101ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
3102and ACPI_MSG_BIOS_WARNING). Lv Zheng.
3103
3104Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
3105option. Adds a new return macro, return_STR. Junk-uk Kim.
3106
3107Example Code and Data Size: These are the sizes for the OS-independent
3108acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3109debug version of the code includes the debug output trace mechanism and
3110has a much larger code and data size.
3111
3112  Current Release:
3113    Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
3114    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
3115  Previous Release:
3116    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
3117    Debug Version:     200.9K Code, 82.2K Data, 283.1K Total
3118
3119----------------------------------------
312022 April 2016. Summary of changes for version 20160422:
3121
31221) ACPICA kernel-resident subsystem:
3123
3124Fixed a regression in the GAS (generic address structure) arbitrary bit
3125support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
3126and incorrect return values. Lv Zheng. ACPICA BZ 1270.
3127
3128ACPI 6.0: Added support for new/renamed resource macros. One new argument
3129was added to each of these macros, and the original name has been
3130deprecated. The AML disassembler will always disassemble to the new
3131names. Support for the new macros was added to iASL, disassembler,
3132resource manager, and the acpihelp utility. ACPICA BZ 1274.
3133
3134    I2cSerialBus  -> I2cSerialBusV2
3135    SpiSerialBus  -> SpiSerialBusV2
3136    UartSerialBus -> UartSerialBusV2
3137
3138ACPI 6.0: Added support for a new integer field that was appended to the
3139package object returned by the _BIX method. This adds iASL compile-time
3140and AML runtime error checking. ACPICA BZ 1273.
3141
3142ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
3143Subspace Type2" (Headers, Disassembler, and data table compiler).
3144
3145Example Code and Data Size: These are the sizes for the OS-independent
3146acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3147debug version of the code includes the debug output trace mechanism and
3148has a much larger code and data size.
3149
3150  Current Release:
3151    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
3152    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
3153  Previous Release:
3154    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
3155    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
3156
3157
31582) iASL Compiler/Disassembler and Tools:
3159
3160iASL: Implemented an ASL grammar extension to allow/enable executable
3161"module-level code" to be created and executed under the various
3162operators that create new scopes. This type of AML code is already
3163supported in all known AML interpreters, and the grammar change will
3164appear in the next version of the ACPI specification. Simplifies the
3165conditional runtime creation of named objects under these object types:
3166
3167    Device
3168    PowerResource
3169    Processor
3170    Scope
3171    ThermalZone
3172
3173iASL: Implemented a new ASL extension, a "For" loop macro to add greater
3174ease-of-use to the ASL language. The syntax is similar to the
3175corresponding C operator, and is implemented with the existing AML While
3176opcode -- thus requiring no changes to existing AML interpreters.
3177
3178    For (Initialize, Predicate, Update) {TermList}
3179
3180Grammar:
3181    ForTerm :=
3182        For (
3183            Initializer    // Nothing | TermArg => ComputationalData
3184            Predicate      // Nothing | TermArg => ComputationalData
3185            Update         // Nothing | TermArg => ComputationalData
3186        ) {TermList}
3187
3188
3189iASL: The _HID/_ADR detection and validation has been enhanced to search
3190under conditionals in order to allow these objects to be conditionally
3191created at runtime.
3192
3193iASL: Fixed several issues with the constant folding feature. The
3194improvement allows better detection and resolution of statements that can
3195be folded at compile time. ACPICA BZ 1266.
3196
3197iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
3198conversion to the ASL ElseIf operator where incorrect ASL code could be
3199generated.
3200
3201iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
3202sometimes an extra (and extraneous) set of parentheses were emitted for
3203some combinations of operators. Although this did not cause any problems
3204with recompilation of the disassembled code, it made the code more
3205difficult to read. David Box. ACPICA BZ 1231.
3206
3207iASL: Changed to ignore the unreferenced detection for predefined names
3208of resource descriptor elements, when the resource descriptor is
3209created/defined within a control method.
3210
3211iASL: Disassembler: Fix a possible fault with externally declared Buffer
3212objects.
3213
3214----------------------------------------
321518 March 2016. Summary of changes for version 20160318:
3216
32171) ACPICA kernel-resident subsystem:
3218
3219Added support for arbitrary bit lengths and bit offsets for registers
3220defined by the Generic Address Structure. Previously, only aligned bit
3221lengths of 8/16/32/64 were supported. This was sufficient for many years,
3222but recently some machines have been seen that require arbitrary bit-
3223level support. ACPICA BZ 1240. Lv Zheng.
3224
3225Fixed an issue where the \_SB._INI method sometimes must be evaluated
3226before any _REG methods are evaluated. Lv Zheng.
3227
3228Implemented several changes related to ACPI table support
3229(Headers/Disassembler/TableCompiler):
3230NFIT: For ACPI 6.1, updated to add some additional new fields and
3231constants.
3232FADT: Updated a warning message and set compliance to ACPI 6.1 (Version
32336).
3234DMAR: Added new constants per the 10/2014 DMAR spec.
3235IORT: Added new subtable per the 10/2015 IORT spec.
3236HEST: For ACPI 6.1, added new constants and new subtable.
3237DBG2: Added new constants per the 12/2015 DBG2 spec.
3238FPDT: Fixed several incorrect fields, add the FPDT boot record structure.
3239ACPICA BZ 1249.
3240ERST/EINJ: Updated disassembler with new "Execute Timings" actions.
3241
3242Updated header support for the DMAR table to match the current version of
3243the related spec.
3244
3245Added extensions to the ASL Concatenate operator to allow any ACPI object
3246to be passed as an operand. Any object other than Integer/String/Buffer
3247simply returns a string containing the object type. This extends the
3248usefulness of the Printf macros. Previously, Concatenate would abort the
3249control method if a non-data object was encountered.
3250
3251ACPICA source code: Deployed the C "const" keyword across the source code
3252where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).
3253
3254Example Code and Data Size: These are the sizes for the OS-independent
3255acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3256debug version of the code includes the debug output trace mechanism and
3257has a much larger code and data size.
3258
3259  Current Release:
3260    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
3261    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
3262  Previous Release:
3263    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3264    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3265
3266
32672) iASL Compiler/Disassembler and Tools:
3268
3269iASL/Disassembler: Improved the heuristic used to determine the number of
3270arguments for an externally defined control method (a method in another
3271table). Although this is an improvement, there is no deterministic way to
3272"guess" the number of method arguments. Only the ACPI 6.0 External opcode
3273will completely solve this problem as it is deployed (automatically) in
3274newer BIOS code.
3275
3276iASL/Disassembler: Fixed an ordering issue for emitted External() ASL
3277statements that could cause errors when the disassembled file is
3278compiled. ACPICA BZ 1243. David Box.
3279
3280iASL: Fixed a regression caused by the merger of the two versions of the
3281local strtoul64. Because of a dependency on a global variable, strtoul64
3282could return an error for integers greater than a 32-bit value. ACPICA BZ
32831260.
3284
3285iASL: Fixed a regression where a fault could occur for an ASL Return
3286statement if it invokes a control method that is not resolved. ACPICA BZ
32871264.
3288
3289AcpiXtract: Improved input file validation: detection of binary files and
3290non-acpidump text files.
3291
3292----------------------------------------
329312 February 2016. Summary of changes for version 20160212:
3294
32951) ACPICA kernel-resident subsystem:
3296
3297Implemented full support for the ACPI 6.1 specification (released in
3298January). This version of the specification is available at:
3299http://www.uefi.org/specifications
3300
3301Only a relatively small number of changes were required in ACPICA to
3302support ACPI 6.1, in these areas:
3303- New predefined names
3304- New _HID values
3305- A new subtable for HEST
3306- A few other header changes for new values
3307
3308Ensure \_SB_._INI is executed before any _REG methods are executed. There
3309appears to be existing BIOS code that relies on this behavior. Lv Zheng.
3310
3311Reverted a change made in version 20151218 which enabled method
3312invocations to be targets of various ASL operators (SuperName and Target
3313grammar elements). While the new behavior is supported by the ACPI
3314specification, other AML interpreters do not support this behavior and
3315never will. The ACPI specification will be updated for ACPI 6.2 to remove
3316this support. Therefore, the change was reverted to the original ACPICA
3317behavior.
3318
3319ACPICA now supports the GCC 6 compiler.
3320
3321Current Release: (Note: build changes increased sizes)
3322    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3323    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3324Previous Release:
3325    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3326    Debug Version:     200.4K Code, 81.9K Data, 282.3K Total
3327
3328
33292) iASL Compiler/Disassembler and Tools:
3330
3331Completed full support for the ACPI 6.0 External() AML opcode. The
3332compiler emits an external AML opcode for each ASL External statement.
3333This opcode is used by the disassembler to assist with the disassembly of
3334external control methods by specifying the required number of arguments
3335for the method. AML interpreters do not use this opcode. To ensure that
3336interpreters do not even see the opcode, a block of one or more external
3337opcodes is surrounded by an "If(0)" construct. As this feature becomes
3338commonly deployed in BIOS code, the ability of disassemblers to correctly
3339disassemble AML code will be greatly improved. David Box.
3340
3341iASL: Implemented support for an optional cross-reference output file.
3342The -lx option will create a the cross-reference file with the suffix
3343"xrf". Three different types of cross-reference are created in this file:
3344- List of object references made from within each control method
3345- Invocation (caller) list for each user-defined control method
3346- List of references to each non-method object in the namespace
3347
3348iASL: Method invocations as ASL Target operands are now disallowed and
3349flagged as errors in preparation for ACPI 6.2 (see the description of the
3350problem above).
3351
3352----------------------------------------
33538 January 2016. Summary of changes for version 20160108:
3354
33551) ACPICA kernel-resident subsystem:
3356
3357Updated all ACPICA copyrights and signons to 2016: Added the 2016
3358copyright to all source code module headers and utility/tool signons.
3359This includes the standard Linux dual-license header. This affects
3360virtually every file in the ACPICA core subsystem, iASL compiler, all
3361ACPICA utilities, and the ACPICA test suite.
3362
3363Fixed a regression introduced in version 20151218 concerning the
3364execution of so-called module-level ASL/AML code. Namespace objects
3365created under a module-level If() construct were not properly/fully
3366entered into the namespace and could cause an interpreter fault when
3367accessed.
3368
3369Example Code and Data Size: These are the sizes for the OS-independent
3370acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3371debug version of the code includes the debug output trace mechanism and
3372has a much larger code and data size.
3373
3374Current Release:
3375    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3376    Debug Version:     200.4K Code, 81.9K Data, 282.4K Total
3377  Previous Release:
3378    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3379    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3380
3381
33822) iASL Compiler/Disassembler and Tools:
3383
3384Fixed a problem with the compilation of the GpioIo and GpioInt resource
3385descriptors. The _PIN field name was incorrectly defined to be an array
3386of 32-bit values, but the _PIN values are in fact 16 bits each. This
3387would cause incorrect bit width warnings when using Word (16-bit) fields
3388to access the descriptors.
3389
3390
3391----------------------------------------
339218 December 2015. Summary of changes for version 20151218:
3393
33941) ACPICA kernel-resident subsystem:
3395
3396Implemented per-AML-table execution of "module-level code" as individual
3397ACPI tables are loaded into the namespace during ACPICA initialization.
3398In other words, any module-level code within an AML table is executed
3399immediately after the table is loaded, instead of batched and executed
3400after all of the tables have been loaded. This provides compatibility
3401with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,
3402David Box.
3403
3404To fully support the feature above, the default operation region handlers
3405for the SystemMemory, SystemIO, and PCI_Config address spaces are now
3406installed before any ACPI tables are loaded. This enables module-level
3407code to access these address spaces during the table load and module-
3408level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David
3409Box.
3410
3411Implemented several changes to the internal _REG support in conjunction
3412with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples
3413utilities for the changes above. Although these tools were changed, host
3414operating systems that simply use the default handlers for SystemMemory,
3415SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.
3416
3417For example, in the code below, DEV1 is conditionally added to the
3418namespace by the DSDT via module-level code that accesses an operation
3419region. The SSDT references DEV1 via the Scope operator. DEV1 must be
3420created immediately after the DSDT is loaded in order for the SSDT to
3421successfully reference DEV1. Previously, this code would cause an
3422AE_NOT_EXIST exception during the load of the SSDT. Now, this code is
3423fully supported by ACPICA.
3424
3425    DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)
3426    {
3427        OperationRegion (OPR1, SystemMemory, 0x400, 32)
3428        Field (OPR1, AnyAcc, NoLock, Preserve)
3429        {
3430            FLD1, 1
3431        }
3432        If (FLD1)
3433        {
3434            Device (\DEV1)
3435            {
3436            }
3437        }
3438    }
3439    DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)
3440    {
3441        External (\DEV1, DeviceObj)
3442        Scope (\DEV1)
3443        {
3444        }
3445    }
3446
3447Fixed an AML interpreter problem where control method invocations were
3448not handled correctly when the invocation was itself a SuperName argument
3449to another ASL operator. In these cases, the method was not invoked.
3450ACPICA BZ 1002. Affects the following ASL operators that have a SuperName
3451argument:
3452    Store
3453    Acquire, Wait
3454    CondRefOf, RefOf
3455    Decrement, Increment
3456    Load, Unload
3457    Notify
3458    Signal, Release, Reset
3459    SizeOf
3460
3461Implemented automatic String-to-ObjectReference conversion support for
3462packages returned by predefined names (such as _DEP). A common BIOS error
3463is to add double quotes around an ObjectReference namepath, which turns
3464the reference into an unexpected string object. This support detects the
3465problem and corrects it before the package is returned to the caller that
3466invoked the method. Lv Zheng.
3467
3468Implemented extensions to the Concatenate operator. Concatenate now
3469accepts any type of object, it is not restricted to simply
3470Integer/String/Buffer. For objects other than these 3 basic data types,
3471the argument is treated as a string containing the name of the object
3472type. This expands the utility of Concatenate and the Printf/Fprintf
3473macros. ACPICA BZ 1222.
3474
3475Cleaned up the output of the ASL Debug object. The timer() value is now
3476optional and no longer emitted by default. Also, the basic data types of
3477Integer/String/Buffer are simply emitted as their values, without a data
3478type string -- since the data type is obvious from the output. ACPICA BZ
34791221.
3480
3481Example Code and Data Size: These are the sizes for the OS-independent
3482acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3483debug version of the code includes the debug output trace mechanism and
3484has a much larger code and data size.
3485
3486  Current Release:
3487    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3488    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3489  Previous Release:
3490    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3491    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3492
3493
34942) iASL Compiler/Disassembler and Tools:
3495
3496iASL: Fixed some issues with the ASL Include() operator. This operator
3497was incorrectly defined in the iASL parser rules, causing a new scope to
3498be opened for the code within the include file. This could lead to
3499several issues, including allowing ASL code that is technically illegal
3500and not supported by AML interpreters. Note, this does not affect the
3501related #include preprocessor operator. ACPICA BZ 1212.
3502
3503iASL/Disassembler: Implemented support for the ASL ElseIf operator. This
3504operator is essentially an ASL macro since there is no AML opcode
3505associated with it. The code emitted by the iASL compiler for ElseIf is
3506an Else opcode followed immediately by an If opcode. The disassembler
3507will now emit an ElseIf if it finds an Else immediately followed by an
3508If. This simplifies the decoded ASL, especially for deeply nested
3509If..Else and large Switch constructs. Thus, the disassembled code more
3510closely follows the original source ASL. ACPICA BZ 1211. Example:
3511
3512    Old disassembly:
3513        Else
3514        {
3515            If (Arg0 == 0x02)
3516            {
3517                Local0 = 0x05
3518            }
3519        }
3520
3521    New disassembly:
3522        ElseIf (Arg0 == 0x02)
3523        {
3524            Local0 = 0x05
3525        }
3526
3527AcpiExec: Added support for the new module level code behavior and the
3528early region installation. This required a small change to the
3529initialization, since AcpiExec must install its own operation region
3530handlers.
3531
3532AcpiExec: Added support to make the debug object timer optional. Default
3533is timer disabled. This cleans up the debug object output -- the timer
3534data is rarely used.
3535
3536AcpiExec: Multiple ACPI tables are now loaded in the order that they
3537appear on the command line. This can be important when there are
3538interdependencies/references between the tables.
3539
3540iASL/Templates. Add support to generate template files with multiple
3541SSDTs within a single output file. Also added ommand line support to
3542specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ
35431223, 1225.
3544
3545
3546----------------------------------------
354724 November 2015. Summary of changes for version 20151124:
3548
35491) ACPICA kernel-resident subsystem:
3550
3551Fixed a possible regression for a previous update to FADT handling. The
3552FADT no longer has a fixed table ID, causing some issues with code that
3553was hardwired to a specific ID. Lv Zheng.
3554
3555Fixed a problem where the method auto-serialization could interfere with
3556the current SyncLevel. This change makes the auto-serialization support
3557transparent to the SyncLevel support and management.
3558
3559Removed support for the _SUB predefined name in AcpiGetObjectInfo. This
3560interface is intended for early access to the namespace during the
3561initial namespace device discovery walk. The _SUB method has been seen to
3562access operation regions in some cases, causing errors because the
3563operation regions are not fully initialized.
3564
3565AML Debugger: Fixed some issues with the terminate/quit/exit commands
3566that can cause faults. Lv Zheng.
3567
3568AML Debugger: Add thread ID support so that single-step mode only applies
3569to the AML Debugger thread. This prevents runtime errors within some
3570kernels. Lv Zheng.
3571
3572Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx
3573methods that are invoked by this interface are optional, removed warnings
3574emitted for the case where one or more of these methods do not exist.
3575ACPICA BZ 1208, original change by Prarit Bhargava.
3576
3577Made a major pass through the entire ACPICA source code base to
3578standardize formatting that has diverged a bit over time. There are no
3579functional changes, but this will of course cause quite a few code
3580differences from the previous ACPICA release.
3581
3582Example Code and Data Size: These are the sizes for the OS-independent
3583acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3584debug version of the code includes the debug output trace mechanism and
3585has a much larger code and data size.
3586
3587  Current Release:
3588    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3589    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3590  Previous Release:
3591    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3592    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3593
3594
35952) iASL Compiler/Disassembler and Tools:
3596
3597iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple
3598definition blocks within a single ASL file and the resulting AML file.
3599Support for this type of file was also added to the various tools that
3600use binary AML files: acpiexec, acpixtract, and the AML disassembler. The
3601example code below shows two definition blocks within the same file:
3602
3603    DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",
36040x12345678)
3605    {
3606    }
3607    DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)
3608    {
3609    }
3610
3611iASL: Enhanced typechecking for the Name() operator. All expressions for
3612the value of the named object must be reduced/folded to a single constant
3613at compile time, as per the ACPI specification (the AML definition of
3614Name()).
3615
3616iASL: Fixed some code indentation issues for the -ic and -ia options (C
3617and assembly headers). Now all emitted code correctly begins in column 1.
3618
3619iASL: Added an error message for an attempt to open a Scope() on an
3620object defined in an SSDT. The DSDT is always loaded into the namespace
3621first, so any attempt to open a Scope on an SSDT object will fail at
3622runtime.
3623
3624
3625----------------------------------------
362630 September 2015. Summary of changes for version 20150930:
3627
36281) ACPICA kernel-resident subsystem:
3629
3630Debugger: Implemented several changes and bug fixes to assist support for
3631the in-kernel version of the AML debugger. Lv Zheng.
3632- Fix the "predefined" command for in-kernel debugger.
3633- Do not enter debug command loop for the help and version commands.
3634- Disallow "execute" command during execution/single-step of a method.
3635
3636Interpreter: Updated runtime typechecking for all operators that have
3637target operands. The operand is resolved and validated that it is legal.
3638For example, the target cannot be a non-data object such as a Device,
3639Mutex, ThermalZone, etc., as per the ACPI specification.
3640
3641Debugger: Fixed the double-mutex user I/O handshake to work when local
3642deadlock detection is enabled.
3643
3644Debugger: limited display of method locals and arguments (LocalX and
3645ArgX) to only those that have actually been initialized. This prevents
3646lines of extraneous output.
3647
3648Updated the definition of the NFIT table to correct the bit polarity of
3649one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
3650
3651Example Code and Data Size: These are the sizes for the OS-independent
3652acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3653debug version of the code includes the debug output trace mechanism and
3654has a much larger code and data size.
3655
3656  Current Release:
3657    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3658    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3659  Previous Release:
3660    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3661    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3662
3663
36642) iASL Compiler/Disassembler and Tools:
3665
3666iASL: Improved the compile-time typechecking for operands of many of the
3667ASL operators:
3668
3669-- Added an option to disable compiler operand/operator typechecking (-
3670ot).
3671
3672-- For the following operators, the TermArg operands are now validated
3673when possible to be Integer data objects: BankField, OperationRegion,
3674DataTableRegion, Buffer, and Package.
3675
3676-- Store (Source, Target): Both the source and target operands are
3677resolved and checked that the operands are both legal. For example,
3678neither operand can be a non-data object such as a Device, Mutex,
3679ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
3680operator can be used to store an object to any type of target object.
3681
3682-- Store (Source, Target): If the source is a Package object, the target
3683must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
3684is a Package, the source must also be a Package.
3685
3686-- Store (Source, Target): A warning is issued if the source and target
3687resolve to the identical named object.
3688
3689-- Store (Source, <method invocation>): An error is generated for the
3690target method invocation, as this construct is not supported by the AML
3691interpreter.
3692
3693-- For all ASL math and logic operators, the target operand must be a
3694data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
3695includes the function return value also.
3696
3697-- External declarations are also included in the typechecking where
3698possible. External objects defined using the UnknownObj keyword cannot be
3699typechecked, however.
3700
3701iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
3702operator:
3703- Legacy code: Index(PKG1, 3)
3704- New ASL+ code: PKG1[3]
3705This completes the ACPI 6.0 ASL+ support as it was the only operator not
3706supported.
3707
3708iASL: Fixed the file suffix for the preprocessor output file (.i). Two
3709spaces were inadvertently appended to the filename, causing file access
3710and deletion problems on some systems.
3711
3712ASL Test Suite (ASLTS): Updated the master makefile to generate all
3713possible compiler output files when building the test suite -- thus
3714exercising these features of the compiler. These files are automatically
3715deleted when the test suite exits.
3716
3717
3718----------------------------------------
371918 August 2015. Summary of changes for version 20150818:
3720
37211) ACPICA kernel-resident subsystem:
3722
3723Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
3724Zheng. ACPICA BZ 1186.
3725
3726Completed development to ensure that the ACPICA Disassembler and Debugger
3727are fully standalone components of ACPICA. Removed cross-component
3728dependences. Lv Zheng.
3729
3730The max-number-of-AML-loops is now runtime configurable (previously was
3731compile-time only). This is essentially a loop timeout to force-abort
3732infinite AML loops. ACPCIA BZ 1192.
3733
3734Debugger: Cleanup output to dump ACPI names and namepaths without any
3735trailing underscores. Lv Zheng. ACPICA BZ 1135.
3736
3737Removed unnecessary conditional compilations across the Debugger and
3738Disassembler components where entire modules could be left uncompiled.
3739
3740The aapits test is deprecated and has been removed from the ACPICA git
3741tree. The test has never been completed and has not been maintained, thus
3742becoming rather useless. ACPICA BZ 1015, 794.
3743
3744A batch of small changes to close bugzilla and other reports:
3745- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
3746- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
3747- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
3748- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
3749Moore.
3750- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
3751ACPICA BZ 1184.
3752- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
3753operators.
3754- Debugger: Split debugger initialization/termination interfaces. Lv
3755Zheng.
3756- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
3757identification.
3758- AcpiExec: Add debug message during _REG method phase during table
3759load/init.
3760- AcpiNames: Fix a regression where some output was missing and no longer
3761emitted.
3762- Debugger: General cleanup and simplification. Lv Zheng.
3763- Disassembler: Cleanup use of several global option variables. Lv Zheng.
3764
3765Example Code and Data Size: These are the sizes for the OS-independent
3766acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3767debug version of the code includes the debug output trace mechanism and
3768has a much larger code and data size.
3769
3770  Current Release:
3771    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3772    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3773  Previous Release:
3774    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3775    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3776
3777
37782) iASL Compiler/Disassembler and Tools:
3779
3780AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
3781were not handled properly and caused load errors. Now, properly invoke
3782and use the ACPICA auto-reallocate mechanism for ACPI table data
3783structures. ACPICA BZ 1188
3784
3785AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
3786BZ 1190.
3787
3788AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
3789AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
3790executed during initialization. ACPICA BZ 1187, 1189.
3791
3792iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
3793that corresponds to each disassembled ASL statement, to simplify
3794debugging. ACPICA BZ 1191.
3795
3796Debugger: Add option to the "objects" command to display a summary of the
3797current namespace objects (Object type and count). This is displayed if
3798the command is entered with no arguments.
3799
3800AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
3801
3802
3803----------------------------------------
380417 July 2015. Summary of changes for version 20150717:
3805
38061) ACPICA kernel-resident subsystem:
3807
3808Improved the partitioning between the Debugger and Disassembler
3809components. This allows the Debugger to be used standalone within kernel
3810code without the Disassembler (which is used for single stepping also).
3811This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
3812
3813Debugger: Implemented a new command to trace the execution of control
3814methods (Trace). This is especially useful for the in-kernel version of
3815the debugger when file I/O may not be available for method trace output.
3816See the ACPICA reference for more information. Lv Zheng.
3817
3818Moved all C library prototypes (used for the local versions of these
3819functions when requested) to a new header, acclib.h
3820Cleaned up the use of non-ANSI C library functions. These functions are
3821implemented locally in ACPICA. Moved all such functions to a common
3822source file, utnonansi.c
3823
3824Debugger: Fixed a problem with the "!!" command (get last command
3825executed) where the debugger could enter an infinite loop and eventually
3826crash.
3827
3828Removed the use of local macros that were used for some of the standard C
3829library functions to automatically cast input parameters. This mostly
3830affected the is* functions where the input parameter is defined to be an
3831int. This required a few modifications to the main ACPICA source code to
3832provide casting for these functions and eliminate possible compiler
3833warnings for these parameters.
3834
3835Across the source code, added additional status/error checking to resolve
3836issues discovered by static source code analysis tools such as Coverity.
3837
3838Example Code and Data Size: These are the sizes for the OS-independent
3839acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3840debug version of the code includes the debug output trace mechanism and
3841has a much larger code and data size.
3842
3843  Current Release:
3844    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3845    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3846  Previous Release:
3847    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3848    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3849
3850
38512) iASL Compiler/Disassembler and Tools:
3852
3853iASL: Fixed a regression where the device map file feature no longer
3854worked properly when used in conjunction with the disassembler. It only
3855worked properly with the compiler itself.
3856
3857iASL: Implemented a new warning for method LocalX variables that are set
3858but never used (similar to a C compiler such as gcc). This also applies
3859to ArgX variables that are not defined by the parent method, and are
3860instead (legally) used as local variables.
3861
3862iASL/Preprocessor: Finished the pass-through of line numbers from the
3863preprocessor to the compiler. This ensures that compiler errors/warnings
3864have the correct original line numbers and filenames, regardless of any
3865#include files.
3866
3867iASL/Preprocessor: Fixed a couple of issues with comment handling and the
3868pass-through of comments to the preprocessor output file (which becomes
3869the compiler input file). Also fixed a problem with // comments that
3870appear after a math expression.
3871
3872iASL: Added support for the TCPA server table to the table compiler and
3873template generator. (The client table was already previously supported)
3874
3875iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
3876identify the iASL compiler.
3877
3878Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
3879multiple times. The new names are ACPI_SIGN_NEGATIVE and
3880ACPI_SIGN_POSITIVE.
3881
3882AcpiHelp: Update to expand help messages for the iASL preprocessor
3883directives.
3884
3885
3886----------------------------------------
388719 June 2015. Summary of changes for version 20150619:
3888
3889Two regressions in version 20150616 have been addressed:
3890
3891Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
3892etc.) This update changes ACPICA to only use the standard headers for
3893functions, or the prototypes for the local versions of the C library
3894functions. Across the source code, this required some additional casts
3895for some Clib invocations for portability. Moved all local prototypes to
3896a new file, acclib.h
3897
3898Fixes several problems with recent changes to the handling of the FACS
3899table that could cause some systems not to boot.
3900
3901
3902----------------------------------------
390316 June 2015. Summary of changes for version 20150616:
3904
3905
39061) ACPICA kernel-resident subsystem:
3907
3908Across the entire ACPICA source code base, the various macros for the C
3909library functions (such as ACPI_STRLEN, etc.) have been removed and
3910replaced by the standard C library names (strlen, etc.) The original
3911purpose for these macros is no longer applicable. This simplification
3912reduces the number of macros used in the ACPICA source code
3913significantly, improving readability and maintainability.
3914
3915Implemented support for a new ACPI table, the OSDT. This table, the
3916"override" SDT, can be loaded directly by the host OS at boot time. It
3917enables the replacement of existing namespace objects that were installed
3918via the DSDT and/or SSDTs. The primary purpose for this is to replace
3919buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
3920for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
3921Moore.
3922
3923Added support for systems with (improperly) two FACS tables -- a "32-bit"
3924table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
3925X field). This change will support both automatically. There continues to
3926be systems found with this issue. This support requires a change to the
3927AcpiSetFirmwareWakingVector interface. Also, a public global variable has
3928been added to allow the host to select which FACS is desired
3929(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
3930details Lv Zheng.
3931
3932Added a new feature to allow for systems that do not contain an FACS.
3933Although this is already supported on hardware-reduced platforms, the
3934feature has been extended for all platforms. The reasoning is that we do
3935not want to abort the entire ACPICA initialization just because the
3936system is seriously buggy and has no FACS.
3937
3938Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
3939not correctly transcribed from the ACPI specification in ACPICA version
394020150515.
3941
3942Implemented support for the _CLS object in the AcpiGetObjectInfo external
3943interface.
3944
3945Updated the definitions of the TCPA and TPM2 ACPI tables to the more
3946recent TCG ACPI Specification, December 14, 2014. Table disassembler and
3947compiler also updated. Note: The TCPA "server" table is not supported by
3948the disassembler/table-compiler at this time.
3949
3950ACPI 6.0: Added definitions for the new GIC version field in the MADT.
3951
3952Example Code and Data Size: These are the sizes for the OS-independent
3953acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3954debug version of the code includes the debug output trace mechanism and
3955has a much larger code and data size.
3956
3957  Current Release:
3958    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3959    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3960  Previous Release:
3961    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3962    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3963
3964
39652) iASL Compiler/Disassembler and Tools:
3966
3967Disassembler: Fixed a problem with the new symbolic operator disassembler
3968where incorrect ASL code could be emitted in some cases for the "non-
3969commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
3970ShiftRight. The actual problem cases seem to be rather unusual in common
3971ASL code, however. David Box.
3972
3973Modified the linux version of acpidump to obtain ACPI tables from not
3974just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
3975Zheng.
3976
3977iASL: Fixed a problem where the user preprocessor output file (.i)
3978contained extra data that was not expected. The compiler was using this
3979file as a temporary file and passed through #line directives in order to
3980keep compiler error messages in sync with the input file and line number
3981across multiple include files. The (.i) is no longer a temporary file as
3982the compiler uses a new, different file for the original purpose.
3983
3984iASL: Fixed a problem where comments within the original ASL source code
3985file were not passed through to the preprocessor output file, nor any
3986listing files.
3987
3988iASL: Fixed some issues for the handling of the "#include" preprocessor
3989directive and the similar (but not the same) "Include" ASL operator.
3990
3991iASL: Add support for the new OSDT in both the disassembler and compiler.
3992
3993iASL: Fixed a problem with the constant folding support where a Buffer
3994object could be incorrectly generated (incorrectly formed) during a
3995conversion to a Store() operator.
3996
3997AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
3998description text for the _REV predefined name. _REV now permanently
3999returns 2, as per the ACPI 6.0 specification.
4000
4001Debugger: Enhanced the output of the Debug ASL object for references
4002produced by the Index operator. For Buffers and strings, only output the
4003actual byte pointed to by the index. For packages, only print the single
4004package element decoded by the index. Previously, the entire
4005buffer/string/package was emitted.
4006
4007iASL/Table-compiler: Fixed a regression where the "generic" data types
4008were no longer recognized, causing errors.
4009
4010
4011----------------------------------------
401215 May 2015. Summary of changes for version 20150515:
4013
4014This release implements most of ACPI 6.0 as described below.
4015
40161) ACPICA kernel-resident subsystem:
4017
4018Implemented runtime argument checking and return value checking for all
4019new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
4020_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
4021
4022Example Code and Data Size: These are the sizes for the OS-independent
4023acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4024debug version of the code includes the debug output trace mechanism and
4025has a much larger code and data size.
4026
4027  Current Release:
4028    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
4029    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
4030  Previous Release:
4031    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
4032    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
4033
4034
40352) iASL Compiler/Disassembler and Tools:
4036
4037iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
4038names (argument count validation and return value typechecking.)
4039
4040iASL disassembler and table compiler: implemented support for all new
4041ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
4042
4043iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
4044tables: FADT, MADT.
4045
4046iASL preprocessor: Added a new directive to enable inclusion of binary
4047blobs into ASL code. The new directive is #includebuffer. It takes a
4048binary file as input and emits a named ascii buffer object into the ASL
4049code.
4050
4051AcpiHelp: Added support for all new ACPI 6.0 predefined names.
4052
4053AcpiHelp: Added a new option, -d, to display all iASL preprocessor
4054directives.
4055
4056AcpiHelp: Added a new option, -t, to display all known/supported ACPI
4057tables.
4058
4059
4060----------------------------------------
406110 April 2015. Summary of changes for version 20150410:
4062
4063Reverted a change introduced in version 20150408 that caused
4064a regression in the disassembler where incorrect operator
4065symbols could be emitted.
4066
4067
4068----------------------------------------
406908 April 2015. Summary of changes for version 20150408:
4070
4071
40721) ACPICA kernel-resident subsystem:
4073
4074Permanently set the return value for the _REV predefined name. It now
4075returns 2 (was 5). This matches other ACPI implementations. _REV will be
4076deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
4077for ACPI 2.0 and later. It should never be used to differentiate or
4078identify operating systems.
4079
4080Added the "Windows 2015" string to the _OSI support. ACPICA will now
4081return TRUE to a query with this string.
4082
4083Fixed several issues with the local version of the printf function.
4084
4085Added the C99 compiler option (-std=c99) to the Unix makefiles.
4086
4087  Current Release:
4088    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
4089    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
4090  Previous Release:
4091    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4092    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4093
4094
40952) iASL Compiler/Disassembler and Tools:
4096
4097iASL: Implemented an enhancement to the constant folding feature to
4098transform the parse tree to a simple Store operation whenever possible:
4099    Add (2, 3, X) ==> is converted to: Store (5, X)
4100    X = 2 + 3     ==> is converted to: Store (5, X)
4101
4102Updated support for the SLIC table (Software Licensing Description Table)
4103in both the Data Table compiler and the disassembler. The SLIC table
4104support now conforms to "Microsoft Software Licensing Tables (SLIC and
4105MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
4106following the ACPI header is now defined to be "Proprietary Data", and as
4107such, can only be entered or displayed as a hex data block.
4108
4109Implemented full support for the MSDM table as described in the document
4110above. Note: The format of MSDM is similar to SLIC. Any MSDM data
4111following the ACPI header is defined to be "Proprietary Data", and can
4112only be entered or displayed as a hex data block.
4113
4114Implemented the -Pn option for the iASL Table Compiler (was only
4115implemented for the ASL compiler). This option disables the iASL
4116preprocessor.
4117
4118Disassembler: For disassembly of Data Tables, added a comment field
4119around the Ascii equivalent data that is emitted as part of the "Raw
4120Table Data" block. This prevents the iASL Preprocessor from possible
4121confusion if/when the table is compiled.
4122
4123Disassembler: Added an option (-df) to force the disassembler to assume
4124that the table being disassembled contains valid AML. This feature is
4125useful for disassembling AML files that contain ACPI signatures other
4126than DSDT or SSDT (such as OEMx or other signatures).
4127
4128Changes for the EFI version of the tools:
41291) Fixed a build error/issue
41302) Fixed a cast warning
4131
4132iASL: Fixed a path issue with the __FILE__ operator by making the
4133directory prefix optional within the internal SplitInputFilename
4134function.
4135
4136Debugger: Removed some unused global variables.
4137
4138Tests: Updated the makefile for proper generation of the AAPITS suite.
4139
4140
4141----------------------------------------
414204 February 2015. Summary of changes for version 20150204:
4143
4144ACPICA kernel-resident subsystem:
4145
4146Updated all ACPICA copyrights and signons to 2014. Added the 2014
4147copyright to all module headers and signons, including the standard Linux
4148header. This affects virtually every file in the ACPICA core subsystem,
4149iASL compiler, all ACPICA utilities, and the test suites.
4150
4151Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
4152A raw gpe handling mechanism was created to allow better handling of GPE
4153storms that aren't easily managed by the normal handler. The raw handler
4154allows disabling/renabling of the GPE so that interrupt storms can be
4155avoided in cases where events cannot be timely serviced. In this
4156scenario, handlers should use the AcpiSetGpe() API to disable/enable the
4157GPE. This API will leave the reference counts undisturbed, thereby
4158preventing unintentional clearing of the GPE when the intent in only to
4159temporarily disable it. Raw handlers allow enabling and disabling of a
4160GPE by removing GPE register locking. As such, raw handlers much provide
4161their own locks while using GPE API's to protect access to GPE data
4162structures.
4163Lv Zheng
4164
4165Events: Always modify GPE registers under the GPE lock.
4166Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
4167values. Reported as bug by joe.liu@apple.com.
4168
4169Unix makefiles: Separate option to disable optimizations and
4170_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
4171NOOPT disable option and creates a separate flag (NOFORTIFY) for this
4172purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
4173errors when building ACPICA. This allows disabling the option without
4174also having to disable optimazations.
4175David Box
4176
4177  Current Release:
4178    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
4179    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
4180
4181--
4182--------------------------------------
418307 November 2014. Summary of changes for version 20141107:
4184
4185This release is available at https://acpica.org/downloads
4186
4187This release introduces and implements language extensions to ASL that
4188provide support for symbolic ("C-style") operators and expressions. These
4189language extensions are known collectively as ASL+.
4190
4191
41921) iASL Compiler/Disassembler and Tools:
4193
4194Disassembler: Fixed a problem with disassembly of the UartSerialBus
4195macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
4196Box.
4197
4198Disassembler: Fixed the Unicode macro support to add escape sequences.
4199All non-printable ASCII values are emitted as escape sequences, as well
4200as the standard escapes for quote and backslash. Ensures that the
4201disassembled macro can be correctly recompiled.
4202
4203iASL: Added Printf/Fprintf macros for formatted output. These macros are
4204translated to existing AML Concatenate and Store operations. Printf
4205writes to the ASL Debug object. Fprintf allows the specification of an
4206ASL name as the target. Only a single format specifier is required, %o,
4207since the AML interpreter dynamically converts objects to the required
4208type. David E. Box.
4209
4210    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
4211                 (Concatenate (Concatenate (Concatenate ("", Arg0),
4212                 ": Unexpected value for "), Arg1), ", "), Arg2),
4213                 " at line "), Arg3), Debug)
4214
4215    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
4216                 Arg0, Arg1, Arg2, Arg3)
4217
4218    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
4219                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
4220
4221    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
4222
4223iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
4224ASL parse tree before the AML code is generated. This allows blocks of
4225ASL code to be removed in order to help locate and identify problem
4226devices and/or code. David E. Box.
4227
4228AcpiExec: Added support (-fi) for an optional namespace object
4229initialization file. This file specifies initial values for namespace
4230objects as necessary for debugging and testing different ASL code paths
4231that may be taken as a result of BIOS options.
4232
4233
42342) Overview of symbolic operator support for ASL (ASL+)
4235-------------------------------------------------------
4236
4237As an extension to the ASL language, iASL implements support for symbolic
4238(C-style) operators for math and logical expressions. This can greatly
4239simplify ASL code as well as improve both readability and
4240maintainability. These language extensions can exist concurrently with
4241all legacy ASL code and expressions.
4242
4243The symbolic extensions are 100% compatible with existing AML
4244interpreters, since no new AML opcodes are created. To implement the
4245extensions, the iASL compiler transforms the symbolic expressions into
4246the legacy ASL/AML equivalents at compile time.
4247
4248Full symbolic expressions are supported, along with the standard C
4249precedence and associativity rules.
4250
4251Full disassembler support for the symbolic expressions is provided, and
4252creates an automatic migration path for existing ASL code to ASL+ code
4253via the disassembly process. By default, the disassembler now emits ASL+
4254code with symbolic expressions. An option (-dl) is provided to force the
4255disassembler to emit legacy ASL code if desired.
4256
4257Below is the complete list of the currently supported symbolic operators
4258with examples. See the iASL User Guide for additional information.
4259
4260
4261ASL+ Syntax      Legacy ASL Equivalent
4262-----------      ---------------------
4263
4264    // Math operators
4265
4266Z = X + Y        Add (X, Y, Z)
4267Z = X - Y        Subtract (X, Y, Z)
4268Z = X * Y        Multiply (X, Y, Z)
4269Z = X / Y        Divide (X, Y, , Z)
4270Z = X % Y        Mod (X, Y, Z)
4271Z = X << Y       ShiftLeft (X, Y, Z)
4272Z = X >> Y       ShiftRight (X, Y, Z)
4273Z = X & Y        And (X, Y, Z)
4274Z = X | Y        Or (X, Y, Z)
4275Z = X ^ Y        Xor (X, Y, Z)
4276Z = ~X           Not (X, Z)
4277X++              Increment (X)
4278X--              Decrement (X)
4279
4280    // Logical operators
4281
4282(X == Y)         LEqual (X, Y)
4283(X != Y)         LNotEqual (X, Y)
4284(X < Y)          LLess (X, Y)
4285(X > Y)          LGreater (X, Y)
4286(X <= Y)         LLessEqual (X, Y)
4287(X >= Y)         LGreaterEqual (X, Y)
4288(X && Y)         LAnd (X, Y)
4289(X || Y)         LOr (X, Y)
4290(!X)             LNot (X)
4291
4292    // Assignment and compound assignment operations
4293
4294X = Y           Store (Y, X)
4295X += Y          Add (X, Y, X)
4296X -= Y          Subtract (X, Y, X)
4297X *= Y          Multiply (X, Y, X)
4298X /= Y          Divide (X, Y, , X)
4299X %= Y          Mod (X, Y, X)
4300X <<= Y         ShiftLeft (X, Y, X)
4301X >>= Y         ShiftRight (X, Y, X)
4302X &= Y          And (X, Y, X)
4303X |= Y          Or (X, Y, X)
4304X ^= Y          Xor (X, Y, X)
4305
4306
43073) ASL+ Examples:
4308-----------------
4309
4310Legacy ASL:
4311        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
4312            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
43130x03FB),
4314            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
4315        {
4316            And (MEMB, 0xFFFFFFF0, SRMB)
4317            Store (MEMB, Local2)
4318            Store (PDBM, Local1)
4319            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
4320            Store (SRMB, MEMB)
4321            Or (PDBM, 0x02, PDBM)
4322        }
4323
4324ASL+ version:
4325        If (((R510 & 0x03FB) == 0x02E0) ||
4326            ((R520 & 0x03FB) == 0x02E0) ||
4327            ((R530 & 0x03FB) == 0x02E0) ||
4328            ((R540 & 0x03FB) == 0x02E0))
4329        {
4330            SRMB = (MEMB & 0xFFFFFFF0)
4331            Local2 = MEMB
4332            Local1 = PDBM
4333            PDBM &= 0xFFFFFFFFFFFFFFF9
4334            MEMB = SRMB
4335            PDBM |= 0x02
4336        }
4337
4338Legacy ASL:
4339        Store (0x1234, Local1)
4340        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
4341        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
4342        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
4343        Store (Index (PKG1, 0x03), Local6)
4344        Store (Add (Local3, Local2), Debug)
4345        Add (Local1, 0x0F, Local2)
4346        Add (Local1, Multiply (Local2, Local3), Local2)
4347        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
4348
4349ASL+ version:
4350        Local1 = 0x1234
4351        Local3 = (((Local1 + TEST) + 0x20) * Local2)
4352        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
4353        Local3 = (Local1 + (TEST + (0x20 * Local2)))
4354        Local6 = Index (PKG1, 0x03)
4355        Debug = (Local3 + Local2)
4356        Local2 = (Local1 + 0x0F)
4357        Local2 = (Local1 + (Local2 * Local3))
4358        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
4359
4360
4361----------------------------------------
436226 September 2014. Summary of changes for version 20140926:
4363
43641) ACPICA kernel-resident subsystem:
4365
4366Updated the GPIO operation region handler interface (GeneralPurposeIo).
4367In order to support GPIO Connection objects with multiple pins, along
4368with the related Field objects, the following changes to the interface
4369have been made: The Address is now defined to be the offset in bits of
4370the field unit from the previous invocation of a Connection. It can be
4371viewed as a "Pin Number Index" into the connection resource descriptor.
4372The BitWidth is the exact bit width of the field. It is usually one bit,
4373but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
4374additional information and examples.
4375
4376GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
4377corresponding _Lxx/_Exx methods are disabled (they may have been enabled
4378by the firmware), so that they cannot fire until they are enabled via
4379AcpiUpdateAllGpes. Rafael J. Wysocki.
4380
4381Added a new return flag for the Event/GPE status interfaces --
4382AcpiGetEventStatus and AcpiGetGpeStatus. The new
4383ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
4384GPE currently has a handler associated with it, and can thus actually
4385affect the system. Lv Zheng.
4386
4387Example Code and Data Size: These are the sizes for the OS-independent
4388acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4389debug version of the code includes the debug output trace mechanism and
4390has a much larger code and data size.
4391
4392  Current Release:
4393    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
4394    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
4395  Previous Release:
4396    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4397    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4398
43992) iASL Compiler/Disassembler and Tools:
4400
4401iASL: Fixed a memory allocation/free regression introduced in 20140828
4402that could cause the compiler to crash. This was introduced inadvertently
4403during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
44041113.
4405
4406iASL: Removed two error messages that have been found to create false
4407positives, until they can be fixed and fully validated (ACPICA BZ 1112):
44081) Illegal forward reference within a method
44092) Illegal reference across two methods
4410
4411iASL: Implemented a new option (-lm) to create a hardware mapping file
4412that summarizes all GPIO, I2C, SPI, and UART connections. This option
4413works for both the compiler and disassembler. See the iASL compiler user
4414guide for additional information and examples (section 6.4.6).
4415
4416AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
4417version 2. This corrects the AE_BAD_HEADER exception seen on systems with
4418a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
4419
4420AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
4421unless STDIN is actually a terminal. Assists with batch-mode processing.
4422ACPICA BZ 1114.
4423
4424Disassembler/AcpiHelp: Added another large group of recognized _HID
4425values.
4426
4427
4428----------------------------------------
442928 August 2014. Summary of changes for version 20140828:
4430
44311) ACPICA kernel-resident subsystem:
4432
4433Fixed a problem related to the internal use of the Timer() operator where
4434a 64-bit divide could cause an attempted link to a double-precision math
4435library. This divide is not actually necessary, so the code was
4436restructured to eliminate it. Lv Zheng.
4437
4438ACPI 5.1: Added support for the runtime validation of the _DSD package
4439(similar to the iASL support).
4440
4441ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
4442SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
4443
4444Example Code and Data Size: These are the sizes for the OS-independent
4445acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4446debug version of the code includes the debug output trace mechanism and
4447has a much larger code and data size.
4448
4449  Current Release:
4450    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4451    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4452  Previous Release:
4453    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
4454    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4455
44562) iASL Compiler/Disassembler and Tools:
4457
4458AcpiExec: Fixed a problem on unix systems where the original terminal
4459state was not always properly restored upon exit. Seen when using the -v
4460option. ACPICA BZ 1104.
4461
4462iASL: Fixed a problem with the validation of the ranges/length within the
4463Memory24 resource descriptor. There was a boundary condition when the
4464range was equal to the (length -1) caused by the fact that these values
4465are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
4466
4467Disassembler: Fixed a problem with the GpioInt descriptor interrupt
4468polarity
4469flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
4470is
4471now supported properly.
4472
4473ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
4474in the disassembler, data table compiler, and table template generator.
4475
4476iASL: Added a requirement for Device() objects that one of either a _HID
4477or _ADR must exist within the scope of a Device, as per the ACPI
4478specification. Remove a similar requirement that was incorrectly in place
4479for the _DSD object.
4480
4481iASL: Added error detection for illegal named references within control
4482methods that would cause runtime failures. Now trapped as errors are: 1)
4483References to objects within a non-parent control method. 2) Forward
4484references (within a method) -- for control methods, AML interpreters use
4485a one-pass parse of control methods. ACPICA BZ 1008.
4486
4487iASL: Added error checking for dependencies related to the _PSx power
4488methods. ACPICA BZ 1029.
44891) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
4490_PS3.
44912) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
4492scope.
4493
4494iASL and table compiler: Cleanup miscellaneous memory leaks by fully
4495deploying the existing object and string caches and adding new caches for
4496the table compiler.
4497
4498iASL: Split the huge parser source file into multiple subfiles to improve
4499manageability. Generation now requires the M4 macro preprocessor, which
4500is part of the Bison distribution on both unix and windows platforms.
4501
4502AcpiSrc: Fixed and removed all extraneous warnings generated during
4503entire ACPICA source code scan and/or conversion.
4504
4505
4506----------------------------------------
4507
450824 July 2014. Summary of changes for version 20140724:
4509
4510The ACPI 5.1 specification has been released and is available at:
4511http://uefi.org/specs/access
4512
4513
45140) ACPI 5.1 support in ACPICA:
4515
4516ACPI 5.1 is fully supported in ACPICA as of this release.
4517
4518New predefined names. Support includes iASL and runtime ACPICA
4519validation.
4520    _CCA (Cache Coherency Attribute).
4521    _DSD (Device-Specific Data). David Box.
4522
4523Modifications to existing ACPI tables. Support includes headers, iASL
4524Data Table compiler, disassembler, and the template generator.
4525    FADT - New fields and flags. Graeme Gregory.
4526    GTDT - One new subtable and new fields. Tomasz Nowicki.
4527    MADT - Two new subtables. Tomasz Nowicki.
4528    PCCT - One new subtable.
4529
4530Miscellaneous.
4531    New notification type for System Resource Affinity change events.
4532
4533
45341) ACPICA kernel-resident subsystem:
4535
4536Fixed a regression introduced in 20140627 where a fault can happen during
4537the deletion of Alias AML namespace objects. The problem affected both
4538the core ACPICA and the ACPICA tools including iASL and AcpiExec.
4539
4540Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
4541simple mechanism to enable wake GPEs that have no associated handler or
4542control method. Rafael Wysocki.
4543
4544Updated the AcpiEnableGpe interface to disallow the enable if there is no
4545handler or control method associated with the particular GPE. This will
4546help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
4547
4548Updated GPE handling and dispatch by disabling the GPE before clearing
4549the status bit for edge-triggered GPEs. Lv Zheng.
4550
4551Added Timer() support to the AML Debug object. The current timer value is
4552now displayed with each invocation of (Store to) the debug object to
4553enable simple generation of execution times for AML code (method
4554execution for example.) ACPICA BZ 1093.
4555
4556Example Code and Data Size: These are the sizes for the OS-independent
4557acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4558debug version of the code includes the debug output trace mechanism and
4559has a much larger code and data size.
4560
4561  Current Release:
4562    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
4563    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4564  Previous Release:
4565    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4566    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4567
4568
45692) iASL Compiler/Disassembler and Tools:
4570
4571Fixed an issue with the recently added local printf implementation,
4572concerning width/precision specifiers that could cause incorrect output.
4573Lv Zheng. ACPICA BZ 1094.
4574
4575Disassembler: Added support to detect buffers that contain UUIDs and
4576disassemble them to an invocation of the ToUUID operator. Also emit
4577commented descriptions of known ACPI-related UUIDs.
4578
4579AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
4580-u. Adds three new files.
4581
4582iASL: Update table compiler and disassembler for DMAR table changes that
4583were introduced in September 2013. With assistance by David Woodhouse.
4584
4585----------------------------------------
458627 June 2014. Summary of changes for version 20140627:
4587
45881) ACPICA kernel-resident subsystem:
4589
4590Formatted Output: Implemented local versions of standard formatted output
4591utilities such as printf, etc. Over time, it has been discovered that
4592there are in fact many portability issues with printf, and the addition
4593of this feature will fix/prevent these issues once and for all. Some
4594known issues are summarized below:
4595
45961) Output of 64-bit values is not portable. For example, UINT64 is %ull
4597for the Linux kernel and is %uI64 for some MSVC versions.
45982) Invoking printf consistently in a manner that is portable across both
459932-bit and 64-bit platforms is difficult at best in many situations.
46003) The output format for pointers varies from system to system (leading
4601zeros especially), and leads to inconsistent output from ACPICA across
4602platforms.
46034) Certain platform-specific printf formats may conflict with ACPICA use.
46045) If there is no local C library available, ACPICA now has local support
4605for printf.
4606
4607-- To address these printf issues in a complete manner, ACPICA now
4608directly implements a small subset of printf format specifiers, only
4609those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
4610
4611Implemented support for ACPICA generation within the EFI environment.
4612Initially, the AcpiDump utility is supported in the UEFI shell
4613environment. Lv Zheng.
4614
4615Added a new external interface, AcpiLogError, to improve ACPICA
4616portability. This allows the host to redirect error messages from the
4617ACPICA utilities. Lv Zheng.
4618
4619Added and deployed new OSL file I/O interfaces to improve ACPICA
4620portability:
4621  AcpiOsOpenFile
4622  AcpiOsCloseFile
4623  AcpiOsReadFile
4624  AcpiOsWriteFile
4625  AcpiOsGetFileOffset
4626  AcpiOsSetFileOffset
4627There are C library implementations of these functions in the new file
4628service_layers/oslibcfs.c -- however, the functions can be implemented by
4629the local host in any way necessary. Lv Zheng.
4630
4631Implemented a mechanism to disable/enable ACPI table checksum validation
4632at runtime. This can be useful when loading tables very early during OS
4633initialization when it may not be possible to map the entire table in
4634order to compute the checksum. Lv Zheng.
4635
4636Fixed a buffer allocation issue for the Generic Serial Bus support.
4637Originally, a fixed buffer length was used. This change allows for
4638variable-length buffers based upon the protocol indicated by the field
4639access attributes. Reported by Lan Tianyu. Lv Zheng.
4640
4641Fixed a problem where an object detached from a namespace node was not
4642properly terminated/cleared and could cause a circular list problem if
4643reattached. ACPICA BZ 1063. David Box.
4644
4645Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
4646
4647Fixed a possible memory leak in an error return path within the function
4648AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
4649
4650Example Code and Data Size: These are the sizes for the OS-independent
4651acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4652debug version of the code includes the debug output trace mechanism and
4653has a much larger code and data size.
4654
4655  Current Release:
4656    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4657    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4658  Previous Release:
4659    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4660    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4661
4662
46632) iASL Compiler/Disassembler and Tools:
4664
4665Disassembler: Add dump of ASCII equivalent text within a comment at the
4666end of each line of the output for the Buffer() ASL operator.
4667
4668AcpiDump: Miscellaneous changes:
4669  Fixed repetitive table dump in -n mode.
4670  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
4671the ACPI 2.0 GUID fails.
4672
4673iASL: Fixed a problem where the compiler could fault if incorrectly given
4674an acpidump output file as input. ACPICA BZ 1088. David Box.
4675
4676AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
4677they are invoked without any arguments.
4678
4679Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
46801086. Colin Ian King.
4681
4682Disassembler: Cleaned up a block of code that extracts a parent Op
4683object. Added a comment that explains that the parent is guaranteed to be
4684valid in this case. ACPICA BZ 1069.
4685
4686
4687----------------------------------------
468824 April 2014. Summary of changes for version 20140424:
4689
46901) ACPICA kernel-resident subsystem:
4691
4692Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
4693Some of these tables are known to contain a trailing NULL entry. Lv
4694Zheng.
4695
4696Removed an extraneous error message for the case where there are a large
4697number of system GPEs (> 124). This was the "32-bit FADT register is too
4698long to convert to GAS struct" message, which is irrelevant for GPEs
4699since the GPEx_BLK_LEN fields of the FADT are always used instead of the
4700(limited capacity) GAS bit length. Also, several changes to ensure proper
4701support for GPE numbers > 255, where some "GPE number" fields were 8-bits
4702internally.
4703
4704Implemented and deployed additional configuration support for the public
4705ACPICA external interfaces. Entire classes of interfaces can now be
4706easily modified or configured out, replaced by stubbed inline functions
4707by default. Lv Zheng.
4708
4709Moved all public ACPICA runtime configuration globals to the public
4710ACPICA external interface file for convenience. Also, removed some
4711obsolete/unused globals. See the file acpixf.h. Lv Zheng.
4712
4713Documentation: Added a new section to the ACPICA reference describing the
4714maximum number of GPEs that can be supported by the FADT-defined GPEs in
4715block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
4716reference.
4717
4718Example Code and Data Size: These are the sizes for the OS-independent
4719acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4720debug version of the code includes the debug output trace mechanism and
4721has a much larger code and data size.
4722
4723  Current Release:
4724    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4725    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4726  Previous Release:
4727    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4728    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4729
4730
47312) iASL Compiler/Disassembler and Tools:
4732
4733iASL and disassembler: Add full support for the LPIT table (Low Power
4734Idle Table). Includes support in the disassembler, data table compiler,
4735and template generator.
4736
4737AcpiDump utility:
47381) Add option to force the use of the RSDT (over the XSDT).
47392) Improve validation of the RSDP signature (use 8 chars instead of 4).
4740
4741iASL: Add check for predefined packages that are too large.  For
4742predefined names that contain subpackages, check if each subpackage is
4743too large. (Check for too small already exists.)
4744
4745Debugger: Updated the GPE command (which simulates a GPE by executing the
4746GPE code paths in ACPICA). The GPE device is now optional, and defaults
4747to the GPE 0/1 FADT-defined blocks.
4748
4749Unix application OSL: Update line-editing support. Add additional error
4750checking and take care not to reset terminal attributes on exit if they
4751were never set. This should help guarantee that the terminal is always
4752left in the previous state on program exit.
4753
4754
4755----------------------------------------
475625 March 2014. Summary of changes for version 20140325:
4757
47581) ACPICA kernel-resident subsystem:
4759
4760Updated the auto-serialize feature for control methods. This feature
4761automatically serializes all methods that create named objects in order
4762to prevent runtime errors. The update adds support to ignore the
4763currently executing AML SyncLevel when invoking such a method, in order
4764to prevent disruption of any existing SyncLevel priorities that may exist
4765in the AML code. Although the use of SyncLevels is relatively rare, this
4766change fixes a regression where an AE_AML_MUTEX_ORDER exception can
4767appear on some machines starting with the 20140214 release.
4768
4769Added a new external interface to allow the host to install ACPI tables
4770very early, before the namespace is even created. AcpiInstallTable gives
4771the host additional flexibility for ACPI table management. Tables can be
4772installed directly by the host as if they had originally appeared in the
4773XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
4774(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
4775with additional internal restructuring and cleanup. See the ACPICA
4776Reference for interface details. Lv Zheng.
4777
4778Added validation of the checksum for all incoming dynamically loaded
4779tables (via external interfaces or via AML Load/LoadTable operators). Lv
4780Zheng.
4781
4782Updated the use of the AcpiOsWaitEventsComplete interface during Notify
4783and GPE handler removal. Restructured calls to eliminate possible race
4784conditions. Lv Zheng.
4785
4786Added a warning for the use/execution of the ASL/AML Unload (table)
4787operator. This will help detect and identify machines that use this
4788operator if and when it is ever used. This operator has never been seen
4789in the field and the usage model and possible side-effects of the drastic
4790runtime action of a full table removal are unknown.
4791
4792Reverted the use of #pragma push/pop which was introduced in the 20140214
4793release. It appears that push and pop are not implemented by enough
4794compilers to make the use of this feature feasible for ACPICA at this
4795time. However, these operators may be deployed in a future ACPICA
4796release.
4797
4798Added the missing EXPORT_SYMBOL macros for the install and remove SCI
4799handler interfaces.
4800
4801Source code generation:
48021) Disabled the use of the "strchr" macro for the gcc-specific
4803generation. For some versions of gcc, this macro can periodically expose
4804a compiler bug which in turn causes compile-time error(s).
48052) Added support for PPC64 compilation. Colin Ian King.
4806
4807Example Code and Data Size: These are the sizes for the OS-independent
4808acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4809debug version of the code includes the debug output trace mechanism and
4810has a much larger code and data size.
4811
4812  Current Release:
4813    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4814    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4815  Previous Release:
4816    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4817    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4818
4819
48202) iASL Compiler/Disassembler and Tools:
4821
4822Disassembler: Added several new features to improve the readability of
4823the resulting ASL code. Extra information is emitted within comment
4824fields in the ASL code:
48251) Known _HID/_CID values are decoded to descriptive text.
48262) Standard values for the Notify() operator are decoded to descriptive
4827text.
48283) Target operands are expanded to full pathnames (in a comment) when
4829possible.
4830
4831Disassembler: Miscellaneous updates for extern() handling:
48321) Abort compiler if file specified by -fe option does not exist.
48332) Silence unnecessary warnings about argument count mismatches.
48343) Update warning messages concerning unresolved method externals.
48354) Emit "UnknownObj" keyword for externals whose type cannot be
4836determined.
4837
4838AcpiHelp utility:
48391) Added the -a option to display both the ASL syntax and the AML
4840encoding for an input ASL operator. This effectively displays all known
4841information about an ASL operator with one AcpiHelp invocation.
48422) Added substring match support (similar to a wildcard) for the -i
4843(_HID/PNP IDs) option.
4844
4845iASL/Disassembler: Since this tool does not yet support execution on big-
4846endian machines, added detection of endianness and an error message if
4847execution is attempted on big-endian. Support for big-endian within iASL
4848is a feature that is on the ACPICA to-be-done list.
4849
4850AcpiBin utility:
48511) Remove option to extract binary files from an acpidump; this function
4852is made obsolete by the AcpiXtract utility.
48532) General cleanup of open files and allocated buffers.
4854
4855
4856----------------------------------------
485714 February 2014. Summary of changes for version 20140214:
4858
48591) ACPICA kernel-resident subsystem:
4860
4861Implemented a new mechanism to proactively prevent problems with ill-
4862behaved reentrant control methods that create named ACPI objects. This
4863behavior is illegal as per the ACPI specification, but is nonetheless
4864frequently seen in the field. Previously, this could lead to an
4865AE_ALREADY_EXISTS exception if the method was actually entered by more
4866than one thread. This new mechanism detects such methods at table load
4867time and marks them "serialized" to prevent reentrancy. A new global
4868option, AcpiGbl_AutoSerializeMethods, has been added to disable this
4869feature if desired. This mechanism and global option obsoletes and
4870supersedes the previous AcpiGbl_SerializeAllMethods option.
4871
4872Added the "Windows 2013" string to the _OSI support. ACPICA will now
4873respond TRUE to _OSI queries with this string. It is the stated policy of
4874ACPICA to add new strings to the _OSI support as soon as possible after
4875they are defined. See the full ACPICA _OSI policy which has been added to
4876the utilities/utosi.c file.
4877
4878Hardened/updated the _PRT return value auto-repair code:
48791) Do not abort the repair on a single subpackage failure, continue to
4880check all subpackages.
48812) Add check for the minimum subpackage length (4).
48823) Properly handle extraneous NULL package elements.
4883
4884Added support to avoid the possibility of infinite loops when traversing
4885object linked lists. Never allow an infinite loop, even in the face of
4886corrupted object lists.
4887
4888ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
4889pack(pop) directives to ensure that the ACPICA headers are independent of
4890compiler settings or other host headers.
4891
4892Example Code and Data Size: These are the sizes for the OS-independent
4893acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4894debug version of the code includes the debug output trace mechanism and
4895has a much larger code and data size.
4896
4897  Current Release:
4898    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4899    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4900  Previous Release:
4901    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4902    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4903
4904
49052) iASL Compiler/Disassembler and Tools:
4906
4907iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
4908first reserved field was incorrectly forced to have a value of zero. This
4909change correctly forces the field to have a value of one. ACPICA BZ 1081.
4910
4911Debugger: Added missing support for the "Extra" and "Data" subobjects
4912when displaying object data.
4913
4914Debugger: Added support to display entire object linked lists when
4915displaying object data.
4916
4917iASL: Removed the obsolete -g option to obtain ACPI tables from the
4918Windows registry. This feature has been superseded by the acpidump
4919utility.
4920
4921
4922----------------------------------------
492314 January 2014. Summary of changes for version 20140114:
4924
49251) ACPICA kernel-resident subsystem:
4926
4927Updated all ACPICA copyrights and signons to 2014. Added the 2014
4928copyright to all module headers and signons, including the standard Linux
4929header. This affects virtually every file in the ACPICA core subsystem,
4930iASL compiler, all ACPICA utilities, and the test suites.
4931
4932Improved parameter validation for AcpiInstallGpeBlock. Added the
4933following checks:
49341) The incoming device handle refers to type ACPI_TYPE_DEVICE.
49352) There is not already a GPE block attached to the device.
4936Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
4937device.
4938
4939Correctly support "references" in the ACPI_OBJECT. This change fixes the
4940support to allow references (namespace nodes) to be passed as arguments
4941to control methods via the evaluate object interface. This is probably
4942most useful for testing purposes, however.
4943
4944Improved support for 32/64 bit physical addresses in printf()-like
4945output. This change improves the support for physical addresses in printf
4946debug statements and other output on both 32-bit and 64-bit hosts. It
4947consistently outputs the appropriate number of bytes for each host. The
4948%p specifier is unsatisfactory since it does not emit uniform output on
4949all hosts/clib implementations (on some, leading zeros are not supported,
4950leading to difficult-to-read output).
4951
4952Example Code and Data Size: These are the sizes for the OS-independent
4953acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4954debug version of the code includes the debug output trace mechanism and
4955has a much larger code and data size.
4956
4957  Current Release:
4958    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4959    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4960  Previous Release:
4961    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4962    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4963
4964
49652) iASL Compiler/Disassembler and Tools:
4966
4967iASL: Fix a possible fault when using the Connection() operator. Fixes a
4968problem if the parent Field definition for the Connection operator refers
4969to an operation region that does not exist. ACPICA BZ 1064.
4970
4971AcpiExec: Load of local test tables is now optional. The utility has the
4972capability to load some various tables to test features of ACPICA.
4973However, there are enough of them that the output of the utility became
4974confusing. With this change, only the required local tables are displayed
4975(RSDP, XSDT, etc.) along with the actual tables loaded via the command
4976line specification. This makes the default output simler and easier to
4977understand. The -el command line option restores the original behavior
4978for testing purposes.
4979
4980AcpiExec: Added support for overlapping operation regions. This change
4981expands the simulation of operation regions by supporting regions that
4982overlap within the given address space. Supports SystemMemory and
4983SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
4984
4985AcpiExec: Added region handler support for PCI_Config and EC spaces. This
4986allows AcpiExec to simulate these address spaces, similar to the current
4987support for SystemMemory and SystemIO.
4988
4989Debugger: Added new command to read/write/compare all namespace objects.
4990The command "test objects" will exercise the entire namespace by writing
4991new values to each data object, and ensuring that the write was
4992successful. The original value is then restored and verified.
4993
4994Debugger: Added the "test predefined" command. This change makes this
4995test public and puts it under the new "test" command. The test executes
4996each and every predefined name within the current namespace.
4997
4998
4999----------------------------------------
500018 December 2013. Summary of changes for version 20131218:
5001
5002Global note: The ACPI 5.0A specification was released this month. There
5003are no changes needed for ACPICA since this release of ACPI is an
5004errata/clarification release. The specification is available at
5005acpi.info.
5006
5007
50081) ACPICA kernel-resident subsystem:
5009
5010Added validation of the XSDT root table if it is present. Some older
5011platforms contain an XSDT that is ill-formed or otherwise invalid (such
5012as containing some or all entries that are NULL pointers). This change
5013adds a new function to validate the XSDT before actually using it. If the
5014XSDT is found to be invalid, ACPICA will now automatically fall back to
5015using the RSDT instead. Original implementation by Zhao Yakui. Ported to
5016ACPICA and enhanced by Lv Zheng and Bob Moore.
5017
5018Added a runtime option to ignore the XSDT and force the use of the RSDT.
5019This change adds a runtime option that will force ACPICA to use the RSDT
5020instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
5021requires that an XSDT be used instead of the RSDT, the XSDT has been
5022found to be corrupt or ill-formed on some machines. Lv Zheng.
5023
5024Added a runtime option to favor 32-bit FADT register addresses over the
502564-bit addresses. This change adds an option to favor 32-bit FADT
5026addresses when there is a conflict between the 32-bit and 64-bit versions
5027of the same register. The default behavior is to use the 64-bit version
5028in accordance with the ACPI specification. This can now be overridden via
5029the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
5030
5031During the change above, the internal "Convert FADT" and "Verify FADT"
5032functions have been merged to simplify the code, making it easier to
5033understand and maintain. ACPICA BZ 933.
5034
5035Improve exception reporting and handling for GPE block installation.
5036Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
5037status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
5038
5039Added helper macros to extract bus/segment numbers from the HEST table.
5040This change adds two macros to extract the encoded bus and segment
5041numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
5042Betty Dall <betty.dall@hp.com>
5043
5044Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
5045by ACPICA. It is not a public macro, so it should have no effect on
5046existing OSV code. Lv Zheng.
5047
5048Example Code and Data Size: These are the sizes for the OS-independent
5049acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5050debug version of the code includes the debug output trace mechanism and
5051has a much larger code and data size.
5052
5053  Current Release:
5054    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
5055    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
5056  Previous Release:
5057    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
5058    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
5059
5060
50612) iASL Compiler/Disassembler and Tools:
5062
5063Disassembler: Improved pathname support for emitted External()
5064statements. This change adds full pathname support for external names
5065that have been resolved internally by the inclusion of additional ACPI
5066tables (via the iASL -e option). Without this change, the disassembler
5067can emit multiple externals for the same object, or it become confused
5068when the Scope() operator is used on an external object. Overall, greatly
5069improves the ability to actually recompile the emitted ASL code when
5070objects a referenced across multiple ACPI tables. Reported by Michael
5071Tsirkin (mst@redhat.com).
5072
5073Tests/ASLTS: Updated functional control suite to execute with no errors.
5074David Box. Fixed several errors related to the testing of the interpreter
5075slack mode. Lv Zheng.
5076
5077iASL: Added support to detect names that are declared within a control
5078method, but are unused (these are temporary names that are only valid
5079during the time the method is executing). A remark is issued for these
5080cases. ACPICA BZ 1022.
5081
5082iASL: Added full support for the DBG2 table. Adds full disassembler,
5083table compiler, and template generator support for the DBG2 table (Debug
5084Port 2 table).
5085
5086iASL: Added full support for the PCCT table, update the table definition.
5087Updates the PCCT table definition in the actbl3.h header and adds table
5088compiler and template generator support.
5089
5090iASL: Added an option to emit only error messages (no warnings/remarks).
5091The -ve option will enable only error messages, warnings and remarks are
5092suppressed. This can simplify debugging when only the errors are
5093important, such as when an ACPI table is disassembled and there are many
5094warnings and remarks -- but only the actual errors are of real interest.
5095
5096Example ACPICA code (source/tools/examples): Updated the example code so
5097that it builds to an actual working program, not just example code. Added
5098ACPI tables and execution of an example control method in the DSDT. Added
5099makefile support for Unix generation.
5100
5101
5102----------------------------------------
510315 November 2013. Summary of changes for version 20131115:
5104
5105This release is available at https://acpica.org/downloads
5106
5107
51081) ACPICA kernel-resident subsystem:
5109
5110Resource Manager: Fixed loop termination for the "get AML length"
5111function. The loop previously had an error termination on a NULL resource
5112pointer, which can never happen since the loop simply increments a valid
5113resource pointer. This fix changes the loop to terminate with an error on
5114an invalid end-of-buffer condition. The problem can be seen as an
5115infinite loop by callers to AcpiSetCurrentResources with an invalid or
5116corrupted resource descriptor, or a resource descriptor that is missing
5117an END_TAG descriptor. Reported by Dan Carpenter
5118<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
5119
5120Table unload and ACPICA termination: Delete all attached data objects
5121during namespace node deletion. This fix updates namespace node deletion
5122to delete the entire list of attached objects (attached via
5123AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
51241024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
5125
5126ACPICA termination: Added support to delete all objects attached to the
5127root namespace node. This fix deletes any and all objects that have been
5128attached to the root node via AcpiAttachData. Previously, none of these
5129objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
5130
5131Debug output: Do not emit the function nesting level for the in-kernel
5132build. The nesting level is really only useful during a single-thread
5133execution. Therefore, only enable this output for the AcpiExec utility.
5134Also, only emit the thread ID when executing under AcpiExec (Context
5135switches are still always detected and a message is emitted). ACPICA BZ
5136972.
5137
5138Example Code and Data Size: These are the sizes for the OS-independent
5139acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5140debug version of the code includes the debug output trace mechanism and
5141has a much larger code and data size.
5142
5143  Current Release:
5144    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
5145    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
5146  Previous Release:
5147    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
5148    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
5149
5150
51512) iASL Compiler/Disassembler and Tools:
5152
5153AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
5154correct portable POSIX header for terminal control functions.
5155
5156Disassembler: Fixed control method invocation issues related to the use
5157of the CondRefOf() operator. The problem is seen in the disassembly where
5158control method invocations may not be disassembled properly if the
5159control method name has been used previously as an argument to CondRefOf.
5160The solution is to not attempt to emit an external declaration for the
5161CondRefOf target (it is not necessary in the first place). This prevents
5162disassembler object type confusion. ACPICA BZ 988.
5163
5164Unix Makefiles: Added an option to disable compiler optimizations and the
5165_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
5166with optimizations (reportedly, gcc 4.4 for example). This change adds a
5167command line option for make (NOOPT) that disables all compiler
5168optimizations and the _FORTIFY_SOURCE compiler flag. The default
5169optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
51701034. Lv Zheng, Bob Moore.
5171
5172Tests/ASLTS: Added options to specify individual test cases and modes.
5173This allows testers running aslts.sh to optionally specify individual
5174test modes and test cases. Also added an option to disable the forced
5175generation of the ACPICA tools from source if desired. Lv Zheng.
5176
5177----------------------------------------
517827 September 2013. Summary of changes for version 20130927:
5179
5180This release is available at https://acpica.org/downloads
5181
5182
51831) ACPICA kernel-resident subsystem:
5184
5185Fixed a problem with store operations to reference objects. This change
5186fixes a problem where a Store operation to an ArgX object that contained
5187a
5188reference to a field object did not complete the automatic dereference
5189and
5190then write to the actual field object. Instead, the object type of the
5191field object was inadvertently changed to match the type of the source
5192operand. The new behavior will actually write to the field object (buffer
5193field or field unit), thus matching the correct ACPI-defined behavior.
5194
5195Implemented support to allow the host to redefine individual OSL
5196prototypes. This change enables the host to redefine OSL prototypes found
5197in the acpiosxf.h file. This allows the host to implement OSL interfaces
5198with a macro or inlined function. Further, it allows the host to add any
5199additional required modifiers such as __iomem, __init, __exit, etc., as
5200necessary on a per-interface basis. Enables maximum flexibility for the
5201OSL interfaces. Lv Zheng.
5202
5203Hardcoded the access width for the FADT-defined reset register. The ACPI
5204specification requires the reset register width to be 8 bits. ACPICA now
5205hardcodes the width to 8 and ignores the FADT width value. This provides
5206compatibility with other ACPI implementations that have allowed BIOS code
5207with bad register width values to go unnoticed. Matthew Garett, Bob
5208Moore,
5209Lv Zheng.
5210
5211Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
5212used
5213in the OSL header (acpiosxf). The change modifies the position of this
5214macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
5215build issues if the OSL defines the implementation of the interface to be
5216an inline stub function. Lv Zheng.
5217
5218Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
5219initialization interfaces. This change adds a new macro for the main init
5220and terminate external interfaces in order to support hosts that require
5221additional or different processing for these functions. Changed from
5222ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
5223Zheng, Bob Moore.
5224
5225Cleaned up the memory allocation macros for configurability. In the
5226common
5227case, the ACPI_ALLOCATE and related macros now resolve directly to their
5228respective AcpiOs* OSL interfaces. Two options:
52291) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
5230default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
52312) For AcpiExec (and for debugging), the macros can optionally be
5232resolved
5233to the local ACPICA interfaces that track each allocation (local tracking
5234is used to immediately detect memory leaks).
5235Lv Zheng.
5236
5237Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
5238to predefine this macro to either TRUE or FALSE during the system build.
5239
5240Replaced __FUNCTION_ with __func__ in the gcc-specific header.
5241
5242Example Code and Data Size: These are the sizes for the OS-independent
5243acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5244debug version of the code includes the debug output trace mechanism and
5245has a much larger code and data size.
5246
5247  Current Release:
5248    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
5249    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
5250  Previous Release:
5251    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
5252    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5253
5254
52552) iASL Compiler/Disassembler and Tools:
5256
5257iASL: Implemented wildcard support for the -e option. This simplifies use
5258when there are many SSDTs that must be included to resolve external
5259method
5260declarations. ACPICA BZ 1041. Example:
5261    iasl -e ssdt*.dat -d dsdt.dat
5262
5263AcpiExec: Add history/line-editing for Unix/Linux systems. This change
5264adds a portable module that implements full history and limited line
5265editing for Unix and Linux systems. It does not use readline() due to
5266portability issues. Instead it uses the POSIX termio interface to put the
5267terminal in raw input mode so that the various special keys can be
5268trapped
5269(such as up/down-arrow for history support and left/right-arrow for line
5270editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
5271
5272AcpiXtract: Add support to handle (ignore) "empty" lines containing only
5273one or more spaces. This provides compatible with early or different
5274versions of the AcpiDump utility. ACPICA BZ 1044.
5275
5276AcpiDump: Do not ignore tables that contain only an ACPI table header.
5277Apparently, some BIOSs create SSDTs that contain an ACPI table header but
5278no other data. This change adds support to dump these tables. Any tables
5279shorter than the length of an ACPI table header remain in error (an error
5280message is emitted). Reported by Yi Li.
5281
5282Debugger: Echo actual command along with the "unknown command" message.
5283
5284----------------------------------------
528523 August 2013. Summary of changes for version 20130823:
5286
52871) ACPICA kernel-resident subsystem:
5288
5289Implemented support for host-installed System Control Interrupt (SCI)
5290handlers. Certain ACPI functionality requires the host to handle raw
5291SCIs. For example, the "SCI Doorbell" that is defined for memory power
5292state support requires the host device driver to handle SCIs to examine
5293if the doorbell has been activated. Multiple SCI handlers can be
5294installed to allow for future expansion. New external interfaces are
5295AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
5296details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
5297
5298Operation region support: Never locally free the handler "context"
5299pointer. This change removes some dangerous code that attempts to free
5300the handler context pointer in some (rare) circumstances. The owner of
5301the handler owns this pointer and the ACPICA code should never touch it.
5302Although not seen to be an issue in any kernel, it did show up as a
5303problem (fault) under AcpiExec. Also, set the internal storage field for
5304the context pointer to zero when the region is deactivated, simply for
5305sanity. David Box. ACPICA BZ 1039.
5306
5307AcpiRead: On error, do not modify the return value target location. If an
5308error happens in the middle of a split 32/32 64-bit I/O operation, do not
5309modify the target of the return value pointer. Makes the code consistent
5310with the rest of ACPICA. Bjorn Helgaas.
5311
5312Example Code and Data Size: These are the sizes for the OS-independent
5313acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5314debug version of the code includes the debug output trace mechanism and
5315has a much larger code and data size.
5316
5317  Current Release:
5318    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
5319    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5320  Previous Release:
5321    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5322    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
5323
5324
53252) iASL Compiler/Disassembler and Tools:
5326
5327AcpiDump: Implemented several new features and fixed some problems:
53281) Added support to dump the RSDP, RSDT, and XSDT tables.
53292) Added support for multiple table instances (SSDT, UEFI).
53303) Added option to dump "customized" (overridden) tables (-c).
53314) Fixed a problem where some table filenames were improperly
5332constructed.
53335) Improved some error messages, removed some unnecessary messages.
5334
5335iASL: Implemented additional support for disassembly of ACPI tables that
5336contain invocations of external control methods. The -fe<file> option
5337allows the import of a file that specifies the external methods along
5338with the required number of arguments for each -- allowing for the
5339correct disassembly of the table. This is a workaround for a limitation
5340of AML code where the disassembler often cannot determine the number of
5341arguments required for an external control method and generates incorrect
5342ASL code. See the iASL reference for details. ACPICA BZ 1030.
5343
5344Debugger: Implemented a new command (paths) that displays the full
5345pathnames (namepaths) and object types of all objects in the namespace.
5346This is an alternative to the namespace command.
5347
5348Debugger: Implemented a new command (sci) that invokes the SCI dispatch
5349mechanism and any installed handlers.
5350
5351iASL: Fixed a possible segfault for "too many parent prefixes" condition.
5352This can occur if there are too many parent prefixes in a namepath (for
5353example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
5354
5355Application OSLs: Set the return value for the PCI read functions. These
5356functions simply return AE_OK, but should set the return value to zero
5357also. This change implements this. ACPICA BZ 1038.
5358
5359Debugger: Prevent possible command line buffer overflow. Increase the
5360size of a couple of the debugger line buffers, and ensure that overflow
5361cannot happen. ACPICA BZ 1037.
5362
5363iASL: Changed to abort immediately on serious errors during the parsing
5364phase. Due to the nature of ASL, there is no point in attempting to
5365compile these types of errors, and they typically end up causing a
5366cascade of hundreds of errors which obscure the original problem.
5367
5368----------------------------------------
536925 July 2013. Summary of changes for version 20130725:
5370
53711) ACPICA kernel-resident subsystem:
5372
5373Fixed a problem with the DerefOf operator where references to FieldUnits
5374and BufferFields incorrectly returned the parent object, not the actual
5375value of the object. After this change, a dereference of a FieldUnit
5376reference results in a read operation on the field to get the value, and
5377likewise, the appropriate BufferField value is extracted from the target
5378buffer.
5379
5380Fixed a problem where the _WAK method could cause a fault under these
5381circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
5382method returned no value. The problem is rarely seen because most kernels
5383run ACPICA in slack mode.
5384
5385For the DerefOf operator, a fatal error now results if an attempt is made
5386to dereference a reference (created by the Index operator) to a NULL
5387package element. Provides compatibility with other ACPI implementations,
5388and this behavior will be added to a future version of the ACPI
5389specification.
5390
5391The ACPI Power Management Timer (defined in the FADT) is now optional.
5392This provides compatibility with other ACPI implementations and will
5393appear in the next version of the ACPI specification. If there is no PM
5394Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
5395zero in the FADT indicates no PM timer.
5396
5397Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
5398allows the host to globally enable/disable all vendor strings, all
5399feature strings, or both. Intended to be primarily used for debugging
5400purposes only. Lv Zheng.
5401
5402Expose the collected _OSI data to the host via a global variable. This
5403data tracks the highest level vendor ID that has been invoked by the BIOS
5404so that the host (and potentially ACPICA itself) can change behaviors
5405based upon the age of the BIOS.
5406
5407Example Code and Data Size: These are the sizes for the OS-independent
5408acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5409debug version of the code includes the debug output trace mechanism and
5410has a much larger code and data size.
5411
5412  Current Release:
5413    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5414    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5415  Previous Release:
5416    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5417    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5418
5419
54202) iASL Compiler/Disassembler and Tools:
5421
5422iASL: Created the following enhancements for the -so option (create
5423offset table):
54241)Add offsets for the last nameseg in each namepath for every supported
5425object type
54262)Add support for Processor, Device, Thermal Zone, and Scope objects
54273)Add the actual AML opcode for the parent object of every supported
5428object type
54294)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
5430
5431Disassembler: Emit all unresolved external symbols in a single block.
5432These are external references to control methods that could not be
5433resolved, and thus, the disassembler had to make a guess at the number of
5434arguments to parse.
5435
5436iASL: The argument to the -T option (create table template) is now
5437optional. If not specified, the default table is a DSDT, typically the
5438most common case.
5439
5440----------------------------------------
544126 June 2013. Summary of changes for version 20130626:
5442
54431) ACPICA kernel-resident subsystem:
5444
5445Fixed an issue with runtime repair of the _CST object. Null or invalid
5446elements were not always removed properly. Lv Zheng.
5447
5448Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
5449FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
5450the maximum number of GPEs is 1016. Use of multiple GPE block devices
5451makes the system-wide number of GPEs essentially unlimited.
5452
5453Example Code and Data Size: These are the sizes for the OS-independent
5454acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5455debug version of the code includes the debug output trace mechanism and
5456has a much larger code and data size.
5457
5458  Current Release:
5459    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5460    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5461  Previous Release:
5462    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5463    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5464
5465
54662) iASL Compiler/Disassembler and Tools:
5467
5468Portable AcpiDump: Implemented full support for the Linux and FreeBSD
5469hosts. Now supports Linux, FreeBSD, and Windows.
5470
5471Disassembler: Added some missing types for the HEST and EINJ tables: "Set
5472Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
5473
5474iASL/Preprocessor: Implemented full support for nested
5475#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
5476
5477Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
5478max. The original purpose of this constraint was to limit the amount of
5479debug output. However, the string function in question (UtPrintString) is
5480now used for the disassembler also, where 256 bytes is insufficient.
5481Reported by RehabMan@GitHub.
5482
5483iASL/DataTables: Fixed some problems and issues with compilation of DMAR
5484tables. ACPICA BZ 999. Lv Zheng.
5485
5486iASL: Fixed a couple of error exit issues that could result in a "Could
5487not delete <file>" message during ASL compilation.
5488
5489AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
5490the actual signatures for these tables are "FACP" and "APIC",
5491respectively.
5492
5493AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
5494tables are allowed to have multiple instances.
5495
5496----------------------------------------
549717 May 2013. Summary of changes for version 20130517:
5498
54991) ACPICA kernel-resident subsystem:
5500
5501Fixed a regression introduced in version 20130328 for _INI methods. This
5502change fixes a problem introduced in 20130328 where _INI methods are no
5503longer executed properly because of a memory block that was not
5504initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
5505<tomasz.nowicki@linaro.org>.
5506
5507Fixed a possible problem with the new extended sleep registers in the
5508ACPI
55095.0 FADT. Do not use these registers (even if populated) unless the HW-
5510reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
55111020. Lv Zheng.
5512
5513Implemented return value repair code for _CST predefined objects: Sort
5514the
5515list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
5516
5517Implemented a debug-only option to disable loading of SSDTs from the
5518RSDT/XSDT during ACPICA initialization. This can be useful for debugging
5519ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
5520acglobal.h - ACPICA BZ 1005. Lv Zheng.
5521
5522Fixed some issues in the ACPICA initialization and termination code:
5523Tomasz Nowicki <tomasz.nowicki@linaro.org>
55241) Clear events initialized flag upon event component termination. ACPICA
5525BZ 1013.
55262) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
55273) Delete global lock pending lock during termination. ACPICA BZ 1012.
55284) Clear debug buffer global on termination to prevent possible multiple
5529delete. ACPICA BZ 1010.
5530
5531Standardized all switch() blocks across the entire source base. After
5532many
5533years, different formatting for switch() had crept in. This change makes
5534the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
5535
5536Split some files to enhance ACPICA modularity and configurability:
55371) Split buffer dump routines into utilities/utbuffer.c
55382) Split internal error message routines into utilities/uterror.c
55393) Split table print utilities into tables/tbprint.c
55404) Split iASL command-line option processing into asloptions.c
5541
5542Makefile enhancements:
55431) Support for all new files above.
55442) Abort make on errors from any subcomponent. Chao Guan.
55453) Add build support for Apple Mac OS X. Liang Qi.
5546
5547Example Code and Data Size: These are the sizes for the OS-independent
5548acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5549debug version of the code includes the debug output trace mechanism and
5550has a much larger code and data size.
5551
5552  Current Release:
5553    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5554    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5555  Previous Release:
5556    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5557    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5558
5559
55602) iASL Compiler/Disassembler and Tools:
5561
5562New utility: Implemented an easily portable version of the acpidump
5563utility to extract ACPI tables from the system (or a file) in an ASCII
5564hex
5565dump format. The top-level code implements the various command line
5566options, file I/O, and table dump routines. To port to a new host, only
5567three functions need to be implemented to get tables -- since this
5568functionality is OS-dependent. See the tools/acpidump/apmain.c module and
5569the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
55701) The Windows version obtains the ACPI tables from the Registry.
55712) The Linux version is under development.
55723) Other hosts - If an OS-dependent module is submitted, it will be
5573distributed with ACPICA.
5574
5575iASL: Fixed a regression for -D preprocessor option (define symbol). A
5576restructuring/change to the initialization sequence caused this option to
5577no longer work properly.
5578
5579iASL: Implemented a mechanism to disable specific warnings and remarks.
5580Adds a new command line option, "-vw <messageid> as well as "#pragma
5581disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
5582
5583iASL: Fix for too-strict package object validation. The package object
5584validation for return values from the predefined names is a bit too
5585strict, it does not allow names references within the package (which will
5586be resolved at runtime.) These types of references cannot be validated at
5587compile time. This change ignores named references within package objects
5588for names that return or define static packages.
5589
5590Debugger: Fixed the 80-character command line limitation for the History
5591command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
5592
5593iASL: Added control method and package support for the -so option
5594(generates AML offset table for BIOS support.)
5595
5596iASL: issue a remark if a non-serialized method creates named objects. If
5597a thread blocks within the method for any reason, and another thread
5598enters the method, the method will fail because an attempt will be made
5599to
5600create the same (named) object twice. In this case, issue a remark that
5601the method should be marked serialized. NOTE: may become a warning later.
5602ACPICA BZ 909.
5603
5604----------------------------------------
560518 April 2013. Summary of changes for version 20130418:
5606
56071) ACPICA kernel-resident subsystem:
5608
5609Fixed a possible buffer overrun during some rare but specific field unit
5610read operations. This overrun can only happen if the DSDT version is 1 --
5611meaning that all AML integers are 32 bits -- and the field length is
5612between 33 and 55 bits long. During the read, an internal buffer object
5613is
5614created for the field unit because the field is larger than an integer
5615(32
5616bits). However, in this case, the buffer will be incorrectly written
5617beyond the end because the buffer length is less than the internal
5618minimum
5619of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
5620long, but a full 8 bytes will be written.
5621
5622Updated the Embedded Controller "orphan" _REG method support. This refers
5623to _REG methods under the EC device that have no corresponding operation
5624region. This is allowed by the ACPI specification. This update removes a
5625dependency on the existence an ECDT table. It will execute an orphan _REG
5626method as long as the operation region handler for the EC is installed at
5627the EC device node and not the namespace root. Rui Zhang (original
5628update), Bob Moore (update/integrate).
5629
5630Implemented run-time argument typechecking for all predefined ACPI names
5631(_STA, _BIF, etc.) This change performs object typechecking on all
5632incoming arguments for all predefined names executed via
5633AcpiEvaluateObject. This ensures that ACPI-related device drivers are
5634passing correct object types as well as the correct number of arguments
5635(therefore identifying any issues immediately). Also, the ASL/namespace
5636definition of the predefined name is checked against the ACPI
5637specification for the proper argument count. Adds one new file,
5638nsarguments.c
5639
5640Changed an exception code for the ASL UnLoad() operator. Changed the
5641exception code for the case where the input DdbHandle is invalid, from
5642AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
5643
5644Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
5645global makefile. The use of this flag causes compiler errors on earlier
5646versions of GCC, so it has been removed for compatibility.
5647
5648Miscellaneous cleanup:
56491) Removed some unused/obsolete macros
56502) Fixed a possible memory leak in the _OSI support
56513) Removed an unused variable in the predefined name support
56524) Windows OSL: remove obsolete reference to a memory list field
5653
5654Example Code and Data Size: These are the sizes for the OS-independent
5655acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5656debug version of the code includes the debug output trace mechanism and
5657has a much larger code and data size.
5658
5659  Current Release:
5660    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5661    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5662  Previous Release:
5663    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5664    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5665
5666
56672) iASL Compiler/Disassembler and Tools:
5668
5669AcpiExec: Added installation of a handler for the SystemCMOS address
5670space. This prevents control method abort if a method accesses this
5671space.
5672
5673AcpiExec: Added support for multiple EC devices, and now install EC
5674operation region handler(s) at the actual EC device instead of the
5675namespace root. This reflects the typical behavior of host operating
5676systems.
5677
5678AcpiExec: Updated to ensure that all operation region handlers are
5679installed before the _REG methods are executed. This prevents a _REG
5680method from aborting if it accesses an address space has no handler.
5681AcpiExec installs a handler for every possible address space.
5682
5683Debugger: Enhanced the "handlers" command to display non-root handlers.
5684This change enhances the handlers command to display handlers associated
5685with individual devices throughout the namespace, in addition to the
5686currently supported display of handlers associated with the root
5687namespace
5688node.
5689
5690ASL Test Suite: Several test suite errors have been identified and
5691resolved, reducing the total error count during execution. Chao Guan.
5692
5693----------------------------------------
569428 March 2013. Summary of changes for version 20130328:
5695
56961) ACPICA kernel-resident subsystem:
5697
5698Fixed several possible race conditions with the internal object reference
5699counting mechanism. Some of the external ACPICA interfaces update object
5700reference counts without holding the interpreter or namespace lock. This
5701change adds a spinlock to protect reference count updates on the internal
5702ACPICA objects. Reported by and with assistance from Andriy Gapon
5703(avg@FreeBSD.org).
5704
5705FADT support: Removed an extraneous warning for very large GPE register
5706sets. This change removes a size mismatch warning if the legacy length
5707field for a GPE register set is larger than the 64-bit GAS structure can
5708accommodate. GPE register sets can be larger than the 255-bit width
5709limitation of the GAS structure. Linn Crosetto (linn@hp.com).
5710
5711_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
5712return from this interface. Handles a possible timeout case if
5713ACPI_WAIT_FOREVER is modified by the host to be a value less than
5714"forever". Jung-uk Kim.
5715
5716Predefined name support: Add allowed/required argument type information
5717to
5718the master predefined info table. This change adds the infrastructure to
5719enable typechecking on incoming arguments for all predefined
5720methods/objects. It does not actually contain the code that will fully
5721utilize this information, this is still under development. Also condenses
5722some duplicate code for the predefined names into a new module,
5723utilities/utpredef.c
5724
5725Example Code and Data Size: These are the sizes for the OS-independent
5726acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5727debug version of the code includes the debug output trace mechanism and
5728has a much larger code and data size.
5729
5730  Previous Release:
5731    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5732    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5733  Current Release:
5734    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5735    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5736
5737
57382) iASL Compiler/Disassembler and Tools:
5739
5740iASL: Implemented a new option to simplify the development of ACPI-
5741related
5742BIOS code. Adds support for a new "offset table" output file. The -so
5743option will create a C table containing the AML table offsets of various
5744named objects in the namespace so that BIOS code can modify them easily
5745at
5746boot time. This can simplify BIOS runtime code by eliminating expensive
5747searches for "magic values", enhancing boot times and adding greater
5748reliability. With assistance from Lee Hamel.
5749
5750iASL: Allow additional predefined names to return zero-length packages.
5751Now, all predefined names that are defined by the ACPI specification to
5752return a "variable-length package of packages" are allowed to return a
5753zero length top-level package. This allows the BIOS to tell the host that
5754the requested feature is not supported, and supports existing BIOS/ASL
5755code and practices.
5756
5757iASL: Changed the "result not used" warning to an error. This is the case
5758where an ASL operator is effectively a NOOP because the result of the
5759operation is not stored anywhere. For example:
5760    Add (4, Local0)
5761There is no target (missing 3rd argument), nor is the function return
5762value used. This is potentially a very serious problem -- since the code
5763was probably intended to do something, but for whatever reason, the value
5764was not stored. Therefore, this issue has been upgraded from a warning to
5765an error.
5766
5767AcpiHelp: Added allowable/required argument types to the predefined names
5768info display. This feature utilizes the recent update to the predefined
5769names table (above).
5770
5771----------------------------------------
577214 February 2013. Summary of changes for version 20130214:
5773
57741) ACPICA Kernel-resident Subsystem:
5775
5776Fixed a possible regression on some hosts: Reinstated the safe return
5777macros (return_ACPI_STATUS, etc.) that ensure that the argument is
5778evaluated only once. Although these macros are not needed for the ACPICA
5779code itself, they are often used by ACPI-related host device drivers
5780where
5781the safe feature may be necessary.
5782
5783Fixed several issues related to the ACPI 5.0 reduced hardware support
5784(SOC): Now ensure that if the platform declares itself as hardware-
5785reduced
5786via the FADT, the following functions become NOOPs (and always return
5787AE_OK) because ACPI is always enabled by definition on these machines:
5788  AcpiEnable
5789  AcpiDisable
5790  AcpiHwGetMode
5791  AcpiHwSetMode
5792
5793Dynamic Object Repair: Implemented additional runtime repairs for
5794predefined name return values. Both of these repairs can simplify code in
5795the related device drivers that invoke these methods:
57961) For the _STR and _MLS names, automatically repair/convert an ASCII
5797string to a Unicode buffer.
57982) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
5799a
5800lone end tag descriptor in the following cases: A Return(0) was executed,
5801a null buffer was returned, or no object at all was returned (non-slack
5802mode only). Adds a new file, nsconvert.c
5803ACPICA BZ 998. Bob Moore, Lv Zheng.
5804
5805Resource Manager: Added additional code to prevent possible infinite
5806loops
5807while traversing corrupted or ill-formed resource template buffers. Check
5808for zero-length resource descriptors in all code that loops through
5809resource templates (the length field is used to index through the
5810template). This change also hardens the external AcpiWalkResources and
5811AcpiWalkResourceBuffer interfaces.
5812
5813Local Cache Manager: Enhanced the main data structure to eliminate an
5814unnecessary mechanism to access the next object in the list. Actually
5815provides a small performance enhancement for hosts that use the local
5816ACPICA cache manager. Jung-uk Kim.
5817
5818Example Code and Data Size: These are the sizes for the OS-independent
5819acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5820debug version of the code includes the debug output trace mechanism and
5821has a much larger code and data size.
5822
5823  Previous Release:
5824    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5825    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5826  Current Release:
5827    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5828    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5829
5830
58312) iASL Compiler/Disassembler and Tools:
5832
5833iASL/Disassembler: Fixed several issues with the definition of the ACPI
58345.0 RASF table (RAS Feature Table). This change incorporates late changes
5835that were made to the ACPI 5.0 specification.
5836
5837iASL/Disassembler: Added full support for the following new ACPI tables:
5838  1) The MTMR table (MID Timer Table)
5839  2) The VRTC table (Virtual Real Time Clock Table).
5840Includes header file, disassembler, table compiler, and template support
5841for both tables.
5842
5843iASL: Implemented compile-time validation of package objects returned by
5844predefined names. This new feature validates static package objects
5845returned by the various predefined names defined to return packages. Both
5846object types and package lengths are validated, for both parent packages
5847and sub-packages, if any. The code is similar in structure and behavior
5848to
5849the runtime repair mechanism within the AML interpreter and uses the
5850existing predefined name information table. Adds a new file, aslprepkg.c.
5851ACPICA BZ 938.
5852
5853iASL: Implemented auto-detection of binary ACPI tables for disassembly.
5854This feature detects a binary file with a valid ACPI table header and
5855invokes the disassembler automatically. Eliminates the need to
5856specifically invoke the disassembler with the -d option. ACPICA BZ 862.
5857
5858iASL/Disassembler: Added several warnings for the case where there are
5859unresolved control methods during the disassembly. This can potentially
5860cause errors when the output file is compiled, because the disassembler
5861assumes zero method arguments in these cases (it cannot determine the
5862actual number of arguments without resolution/definition of the method).
5863
5864Debugger: Added support to display all resources with a single command.
5865Invocation of the resources command with no arguments will now display
5866all
5867resources within the current namespace.
5868
5869AcpiHelp: Added descriptive text for each ACPICA exception code displayed
5870via the -e option.
5871
5872----------------------------------------
587317 January 2013. Summary of changes for version 20130117:
5874
58751) ACPICA Kernel-resident Subsystem:
5876
5877Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
5878return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
5879objects to return a package containing one integer, most BIOS code
5880returns
5881two integers and the previous code reflects that. However, we also need
5882to
5883support BIOS code that actually implements to the ACPI spec, and this
5884change reflects this.
5885
5886Fixed two issues with the ACPI_DEBUG_PRINT macros:
58871) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
5888C compilers that require this support.
58892) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
5890ACPI_DEBUG is already used by many of the various hosts.
5891
5892Updated all ACPICA copyrights and signons to 2013. Added the 2013
5893copyright to all module headers and signons, including the standard Linux
5894header. This affects virtually every file in the ACPICA core subsystem,
5895iASL compiler, all ACPICA utilities, and the test suites.
5896
5897Example Code and Data Size: These are the sizes for the OS-independent
5898acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5899debug version of the code includes the debug output trace mechanism and
5900has a much larger code and data size.
5901
5902  Previous Release:
5903    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5904    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5905  Current Release:
5906    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5907    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5908
5909
59102) iASL Compiler/Disassembler and Tools:
5911
5912Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
5913prevent a possible fault on some hosts. Some C libraries modify the arg
5914pointer parameter to vfprintf making it difficult to call it twice in the
5915AcpiOsVprintf function. Use a local buffer to workaround this issue. This
5916does not affect the Windows OSL since the Win C library does not modify
5917the arg pointer. Chao Guan, Bob Moore.
5918
5919iASL: Fixed a possible infinite loop when the maximum error count is
5920reached. If an output file other than the .AML file is specified (such as
5921a listing file), and the maximum number of errors is reached, do not
5922attempt to flush data to the output file(s) as the compiler is aborting.
5923This can cause an infinite loop as the max error count code essentially
5924keeps calling itself.
5925
5926iASL/Disassembler: Added an option (-in) to ignore NOOP
5927opcodes/operators.
5928Implemented for both the compiler and the disassembler. Often, the NOOP
5929opcode is used as padding for packages that are changed dynamically by
5930the
5931BIOS. When disassembled and recompiled, these NOOPs will cause syntax
5932errors. This option causes the disassembler to ignore all NOOP opcodes
5933(0xA3), and it also causes the compiler to ignore all ASL source code
5934NOOP
5935statements as well.
5936
5937Debugger: Enhanced the Sleep command to execute all sleep states. This
5938change allows Sleep to be invoked with no arguments and causes the
5939debugger to execute all of the sleep states, 0-5, automatically.
5940
5941----------------------------------------
594220 December 2012. Summary of changes for version 20121220:
5943
59441) ACPICA Kernel-resident Subsystem:
5945
5946Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
5947alternate entry point for AcpiWalkResources and improves the usability of
5948the resource manager by accepting as input a buffer containing the output
5949of either a _CRS, _PRS, or _AEI method. The key functionality is that the
5950input buffer is not deleted by this interface so that it can be used by
5951the host later. See the ACPICA reference for details.
5952
5953Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
5954(DSDT version < 2). The constant will be truncated and this warning
5955reflects that behavior.
5956
5957Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
5958ExtendedInterrupt, and GpioInt descriptors. This change adds support to
5959both get and set the new wake bit in these descriptors, separately from
5960the existing share bit. Reported by Aaron Lu.
5961
5962Interpreter: Fix Store() when an implicit conversion is not possible. For
5963example, in the cases such as a store of a string to an existing package
5964object, implement the store as a CopyObject(). This is a small departure
5965from the ACPI specification which states that the control method should
5966be
5967aborted in this case. However, the ASLTS suite depends on this behavior.
5968
5969Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
5970macros: check if debug output is currently enabled as soon as possible to
5971minimize performance impact if debug is in fact not enabled.
5972
5973Source code restructuring: Cleanup to improve modularity. The following
5974new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
5975psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
5976Associated makefiles and project files have been updated.
5977
5978Changed an exception code for LoadTable operator. For the case where one
5979of the input strings is too long, change the returned exception code from
5980AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
5981
5982Fixed a possible memory leak in dispatcher error path. On error, delete
5983the mutex object created during method mutex creation. Reported by
5984tim.gardner@canonical.com.
5985
5986Example Code and Data Size: These are the sizes for the OS-independent
5987acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5988debug version of the code includes the debug output trace mechanism and
5989has a much larger code and data size.
5990
5991  Previous Release:
5992    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5993    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5994  Current Release:
5995    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5996    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5997
5998
59992) iASL Compiler/Disassembler and Tools:
6000
6001iASL: Disallow a method call as argument to the ObjectType ASL operator.
6002This change tracks an errata to the ACPI 5.0 document. The AML grammar
6003will not allow the interpreter to differentiate between a method and a
6004method invocation when these are used as an argument to the ObjectType
6005operator. The ACPI specification change is to disallow a method
6006invocation
6007(UserTerm) for the ObjectType operator.
6008
6009Finish support for the TPM2 and CSRT tables in the headers, table
6010compiler, and disassembler.
6011
6012Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
6013always expires immediately if the semaphore is not available. The
6014original
6015code was using a relative-time timeout, but sem_timedwait requires the
6016use
6017of an absolute time.
6018
6019iASL: Added a remark if the Timer() operator is used within a 32-bit
6020table. This operator returns a 64-bit time value that will be truncated
6021within a 32-bit table.
6022
6023iASL Source code restructuring: Cleanup to improve modularity. The
6024following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
6025aslmethod.c, and aslfileio.c. Associated makefiles and project files have
6026been updated.
6027
6028
6029----------------------------------------
603014 November 2012. Summary of changes for version 20121114:
6031
60321) ACPICA Kernel-resident Subsystem:
6033
6034Implemented a performance enhancement for ACPI/AML Package objects. This
6035change greatly increases the performance of Package objects within the
6036interpreter. It changes the processing of reference counts for packages
6037by
6038optimizing for the most common case where the package sub-objects are
6039either Integers, Strings, or Buffers. Increases the overall performance
6040of
6041the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
60422X.)
6043Chao Guan. ACPICA BZ 943.
6044
6045Implemented and deployed common macros to extract flag bits from resource
6046descriptors. Improves readability and maintainability of the code. Fixes
6047a
6048problem with the UART serial bus descriptor for the number of data bits
6049flags (was incorrectly 2 bits, should be 3).
6050
6051Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
6052of the macros and changed the SETx macros to the style of (destination,
6053source). Also added ACPI_CASTx companion macros. Lv Zheng.
6054
6055Example Code and Data Size: These are the sizes for the OS-independent
6056acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6057debug version of the code includes the debug output trace mechanism and
6058has a much larger code and data size.
6059
6060  Previous Release:
6061    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
6062    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
6063  Current Release:
6064    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
6065    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
6066
6067
60682) iASL Compiler/Disassembler and Tools:
6069
6070Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
6071adds the ShareAndWake and ExclusiveAndWake flags which were added to the
6072Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
6073
6074Disassembler: Fixed a problem with external declaration generation. Fixes
6075a problem where an incorrect pathname could be generated for an external
6076declaration if the original reference to the object includes leading
6077carats (^). ACPICA BZ 984.
6078
6079Debugger: Completed a major update for the Disassemble<method> command.
6080This command was out-of-date and did not properly disassemble control
6081methods that had any reasonable complexity. This fix brings the command
6082up
6083to the same level as the rest of the disassembler. Adds one new file,
6084dmdeferred.c, which is existing code that is now common with the main
6085disassembler and the debugger disassemble command. ACPICA MZ 978.
6086
6087iASL: Moved the parser entry prototype to avoid a duplicate declaration.
6088Newer versions of Bison emit this prototype, so moved the prototype out
6089of
6090the iASL header to where it is actually used in order to avoid a
6091duplicate
6092declaration.
6093
6094iASL/Tools: Standardized use of the stream I/O functions:
6095  1) Ensure check for I/O error after every fopen/fread/fwrite
6096  2) Ensure proper order of size/count arguments for fread/fwrite
6097  3) Use test of (Actual != Requested) after all fwrite, and most fread
6098  4) Standardize I/O error messages
6099Improves reliability and maintainability of the code. Bob Moore, Lv
6100Zheng.
6101ACPICA BZ 981.
6102
6103Disassembler: Prevent duplicate External() statements. During generation
6104of external statements, detect similar pathnames that are actually
6105duplicates such as these:
6106  External (\ABCD)
6107  External (ABCD)
6108Remove all leading '\' characters from pathnames during the external
6109statement generation so that duplicates will be detected and tossed.
6110ACPICA BZ 985.
6111
6112Tools: Replace low-level I/O with stream I/O functions. Replace
6113open/read/write/close with the stream I/O equivalents
6114fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
6115Moore.
6116
6117AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
6118name header so that AcpiXtract recognizes the output file/table.
6119
6120iASL: Remove obsolete -2 option flag. Originally intended to force the
6121compiler/disassembler into an ACPI 2.0 mode, this was never implemented
6122and the entire concept is now obsolete.
6123
6124----------------------------------------
612518 October 2012. Summary of changes for version 20121018:
6126
6127
61281) ACPICA Kernel-resident Subsystem:
6129
6130Updated support for the ACPI 5.0 MPST table. Fixes some problems
6131introduced by late changes to the table as it was added to the ACPI 5.0
6132specification. Includes header, disassembler, and data table compiler
6133support as well as a new version of the MPST template.
6134
6135AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
61365.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
6137methods: _HID, _CID, and _UID.
6138
6139Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
6140ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
6141name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
6142names for their various drivers. Affects the AcpiGetObjectInfo external
6143interface, and other internal interfaces as well.
6144
6145Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
6146This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
6147on machines that support non-aligned transfers. Optimizes for this case
6148rather than using a strncpy. With assistance from Zheng Lv.
6149
6150Resource Manager: Small fix for buffer size calculation. Fixed a one byte
6151error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
6152
6153Added a new debug print message for AML mutex objects that are force-
6154released. At control method termination, any currently acquired mutex
6155objects are force-released. Adds a new debug-only message for each one
6156that is released.
6157
6158Audited/updated all ACPICA return macros and the function debug depth
6159counter: 1) Ensure that all functions that use the various TRACE macros
6160also use the appropriate ACPICA return macros. 2) Ensure that all normal
6161return statements surround the return expression (value) with parens to
6162ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
6163Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
6164
6165Global source code changes/maintenance: All extra lines at the start and
6166end of each source file have been removed for consistency. Also, within
6167comments, all new sentences start with a single space instead of a double
6168space, again for consistency across the code base.
6169
6170Example Code and Data Size: These are the sizes for the OS-independent
6171acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6172debug version of the code includes the debug output trace mechanism and
6173has a much larger code and data size.
6174
6175  Previous Release:
6176    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
6177    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
6178  Current Release:
6179    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
6180    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
6181
6182
61832) iASL Compiler/Disassembler and Tools:
6184
6185AcpiExec: Improved the algorithm used for memory leak/corruption
6186detection. Added some intelligence to the code that maintains the global
6187list of allocated memory. The list is now ordered by allocated memory
6188address, significantly improving performance. When running AcpiExec on
6189the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
6190on the platform and/or the environment. Note, this performance
6191enhancement affects the AcpiExec utility only, not the kernel-resident
6192ACPICA code.
6193
6194Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
6195the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
6196incorrect table offset reported for invalid opcodes. Report the original
619732-bit value for bad ACPI_NAMEs (as well as the repaired name.)
6198
6199Disassembler: Enhanced the -vt option to emit the binary table data in
6200hex format to assist with debugging.
6201
6202Fixed a potential filename buffer overflow in osunixdir.c. Increased the
6203size of file structure. Colin Ian King.
6204
6205----------------------------------------
620613 September 2012. Summary of changes for version 20120913:
6207
6208
62091) ACPICA Kernel-resident Subsystem:
6210
6211ACPI 5.0: Added two new notify types for the Hardware Error Notification
6212Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
6213and
6214MCE(6).
6215
6216Table Manager: Merged/removed duplicate code in the root table resize
6217functions. One function is external, the other is internal. Lv Zheng,
6218ACPICA
6219BZ 846.
6220
6221Makefiles: Completely removed the obsolete "Linux" makefiles under
6222acpica/generate/linux. These makefiles are obsolete and have been
6223replaced
6224by
6225the generic unix makefiles under acpica/generate/unix.
6226
6227Makefiles: Ensure that binary files always copied properly. Minor rule
6228change
6229to ensure that the final binary output files are always copied up to the
6230appropriate binary directory (bin32 or bin64.)
6231
6232Example Code and Data Size: These are the sizes for the OS-independent
6233acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6234debug
6235version of the code includes the debug output trace mechanism and has a
6236much
6237larger code and data size.
6238
6239  Previous Release:
6240    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6241    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6242  Current Release:
6243    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
6244    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
6245
6246
62472) iASL Compiler/Disassembler and Tools:
6248
6249Disassembler: Fixed a possible fault during the disassembly of resource
6250descriptors when a second parse is required because of the invocation of
6251external control methods within the table. With assistance from
6252adq@lidskialf.net. ACPICA BZ 976.
6253
6254iASL: Fixed a namepath optimization problem. An error can occur if the
6255parse
6256node that contains the namepath to be optimized does not have a parent
6257node
6258that is a named object. This change fixes the problem.
6259
6260iASL: Fixed a regression where the AML file is not deleted on errors. The
6261AML
6262output file should be deleted if there are any errors during the
6263compiler.
6264The
6265only exception is if the -f (force output) option is used. ACPICA BZ 974.
6266
6267iASL: Added a feature to automatically increase internal line buffer
6268sizes.
6269Via realloc(), automatically increase the internal line buffer sizes as
6270necessary to support very long source code lines. The current version of
6271the
6272preprocessor requires a buffer long enough to contain full source code
6273lines.
6274This change increases the line buffer(s) if the input lines go beyond the
6275current buffer size. This eliminates errors that occurred when a source
6276code
6277line was longer than the buffer.
6278
6279iASL: Fixed a problem with constant folding in method declarations. The
6280SyncLevel term is a ByteConstExpr, and incorrect code would be generated
6281if a
6282Type3 opcode was used.
6283
6284Debugger: Improved command help support. For incorrect argument count,
6285display
6286full help for the command. For help command itself, allow an argument to
6287specify a command.
6288
6289Test Suites: Several bug fixes for the ASLTS suite reduces the number of
6290errors during execution of the suite. Guan Chao.
6291
6292----------------------------------------
629316 August 2012. Summary of changes for version 20120816:
6294
6295
62961) ACPICA Kernel-resident Subsystem:
6297
6298Removed all use of the deprecated _GTS and _BFS predefined methods. The
6299_GTS
6300(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
6301deprecated and will probably be removed from the ACPI specification.
6302Windows
6303does not invoke them, and reportedly never will. The final nail in the
6304coffin
6305is that the ACPI specification states that these methods must be run with
6306interrupts off, which is not going to happen in a kernel interpreter.
6307Note:
6308Linux has removed all use of the methods also. It was discovered that
6309invoking these functions caused failures on some machines, probably
6310because
6311they were never tested since Windows does not call them. Affects two
6312external
6313interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
6314ACPICA BZ 969.
6315
6316Implemented support for complex bit-packed buffers returned from the _PLD
6317(Physical Location of Device) predefined method. Adds a new external
6318interface, AcpiDecodePldBuffer that parses the buffer into a more usable
6319C
6320structure. Note: C Bitfields cannot be used for this type of predefined
6321structure since the memory layout of individual bitfields is not defined
6322by
6323the C language. In addition, there are endian concerns where a compiler
6324will
6325change the bitfield ordering based on the machine type. The new ACPICA
6326interface eliminates these issues, and should be called after _PLD is
6327executed. ACPICA BZ 954.
6328
6329Implemented a change to allow a scope change to root (via "Scope (\)")
6330during
6331execution of module-level ASL code (code that is executed at table load
6332time.) Lin Ming.
6333
6334Added the Windows8/Server2012 string for the _OSI method. This change
6335adds
6336a
6337new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
63382012.
6339
6340Added header support for the new ACPI tables DBG2 (Debug Port Table Type
63412)
6342and CSRT (Core System Resource Table).
6343
6344Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
6345names. This simplifies access to the buffers returned by these predefined
6346names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
6347
6348GPE support: Removed an extraneous parameter from the various low-level
6349internal GPE functions. Tang Feng.
6350
6351Removed the linux makefiles from the unix packages. The generate/linux
6352makefiles are obsolete and have been removed from the unix tarball
6353release
6354packages. The replacement makefiles are under generate/unix, and there is
6355a
6356top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
6357
6358Updates for Unix makefiles:
63591) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
63602) Update linker flags (move to end of command line) for AcpiExec
6361utility.
6362Guan Chao.
6363
6364Split ACPICA initialization functions to new file, utxfinit.c. Split from
6365utxface.c to improve modularity and reduce file size.
6366
6367Example Code and Data Size: These are the sizes for the OS-independent
6368acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6369debug version of the code includes the debug output trace mechanism and
6370has a
6371much larger code and data size.
6372
6373  Previous Release:
6374    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6375    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6376  Current Release:
6377    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6378    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6379
6380
63812) iASL Compiler/Disassembler and Tools:
6382
6383iASL: Fixed a problem with constant folding for fixed-length constant
6384expressions. The constant-folding code was not being invoked for constant
6385expressions that allow the use of type 3/4/5 opcodes to generate
6386constants
6387for expressions such as ByteConstExpr, WordConstExpr, etc. This could
6388result
6389in the generation of invalid AML bytecode. ACPICA BZ 970.
6390
6391iASL: Fixed a generation issue on newer versions of Bison. Newer versions
6392apparently automatically emit some of the necessary externals. This
6393change
6394handles these versions in order to eliminate generation warnings.
6395
6396Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
6397
6398Disassembler: Add support to decode _PLD buffers. The decoded buffer
6399appears
6400within comments in the output file.
6401
6402Debugger: Fixed a regression with the "Threads" command where
6403AE_BAD_PARAMETER was always returned.
6404
6405----------------------------------------
640611 July 2012. Summary of changes for version 20120711:
6407
64081) ACPICA Kernel-resident Subsystem:
6409
6410Fixed a possible fault in the return package object repair code. Fixes a
6411problem that can occur when a lone package object is wrapped with an
6412outer
6413package object in order to force conformance to the ACPI specification.
6414Can
6415affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
6416_DLM,
6417_CSD, _PSD, _TSD.
6418
6419Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
6420PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
6421ARB_DIS bit must be implemented in the host-dependent C3 processor power
6422state
6423support. Note, ARB_DIS is obsolete and only applies to older chipsets,
6424both
6425Intel and other vendors. (for Intel: ICH4-M and earlier)
6426
6427This change removes the code to disable/enable bus master arbitration
6428during
6429suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
6430causes
6431resume problems on some machines. The change has been in use for over
6432seven
6433years within Linux.
6434
6435Implemented two new external interfaces to support host-directed dynamic
6436ACPI
6437table load and unload. They are intended to simplify the host
6438implementation
6439of hot-plug support:
6440  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
6441  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
6442table.
6443See the ACPICA reference for additional details. Adds one new file,
6444components/tables/tbxfload.c
6445
6446Implemented and deployed two new interfaces for errors and warnings that
6447are
6448known to be caused by BIOS/firmware issues:
6449  AcpiBiosError: Prints "ACPI Firmware Error" message.
6450  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
6451Deployed these new interfaces in the ACPICA Table Manager code for ACPI
6452table
6453and FADT errors. Additional deployment to be completed as appropriate in
6454the
6455future. The associated conditional macros are ACPI_BIOS_ERROR and
6456ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
6457ACPICA
6458BZ
6459843.
6460
6461Implicit notify support: ensure that no memory allocation occurs within a
6462critical region. This fix moves a memory allocation outside of the time
6463that a
6464spinlock is held. Fixes issues on systems that do not allow this
6465behavior.
6466Jung-uk Kim.
6467
6468Split exception code utilities and tables into a new file,
6469utilities/utexcep.c
6470
6471Example Code and Data Size: These are the sizes for the OS-independent
6472acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6473debug
6474version of the code includes the debug output trace mechanism and has a
6475much
6476larger code and data size.
6477
6478  Previous Release:
6479    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6480    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6481  Current Release:
6482    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6483    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6484
6485
64862) iASL Compiler/Disassembler and Tools:
6487
6488iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
6489of
64900. Jung-uk Kim.
6491
6492Debugger: Enhanced the "tables" command to emit additional information
6493about
6494the current set of ACPI tables, including the owner ID and flags decode.
6495
6496Debugger: Reimplemented the "unload" command to use the new
6497AcpiUnloadParentTable external interface. This command was disable
6498previously
6499due to need for an unload interface.
6500
6501AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
6502option
6503will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
6504
6505----------------------------------------
650620 June 2012. Summary of changes for version 20120620:
6507
6508
65091) ACPICA Kernel-resident Subsystem:
6510
6511Implemented support to expand the "implicit notify" feature to allow
6512multiple
6513devices to be notified by a single GPE. This feature automatically
6514generates a
6515runtime device notification in the absence of a BIOS-provided GPE control
6516method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
6517notify is
6518provided by ACPICA for Windows compatibility, and is a workaround for
6519BIOS
6520AML
6521code errors. See the description of the AcpiSetupGpeForWake interface in
6522the
6523APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
6524
6525Changed some comments and internal function names to simplify and ensure
6526correctness of the Linux code translation. No functional changes.
6527
6528Example Code and Data Size: These are the sizes for the OS-independent
6529acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6530debug
6531version of the code includes the debug output trace mechanism and has a
6532much
6533larger code and data size.
6534
6535  Previous Release:
6536    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6537    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6538  Current Release:
6539    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6540    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6541
6542
65432) iASL Compiler/Disassembler and Tools:
6544
6545Disassembler: Added support to emit short, commented descriptions for the
6546ACPI
6547predefined names in order to improve the readability of the disassembled
6548output. ACPICA BZ 959. Changes include:
6549  1) Emit descriptions for all standard predefined names (_INI, _STA,
6550_PRW,
6551etc.)
6552  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
6553  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
6554etc.)
6555
6556AcpiSrc: Fixed several long-standing Linux code translation issues.
6557Argument
6558descriptions in function headers are now translated properly to lower
6559case
6560and
6561underscores. ACPICA BZ 961. Also fixes translation problems such as
6562these:
6563(old -> new)
6564  i_aSL -> iASL
6565  00-7_f -> 00-7F
6566  16_k -> 16K
6567  local_fADT -> local_FADT
6568  execute_oSI -> execute_OSI
6569
6570iASL: Fixed a problem where null bytes were inadvertently emitted into
6571some
6572listing files.
6573
6574iASL: Added the existing debug options to the standard help screen. There
6575are
6576no longer two different help screens. ACPICA BZ 957.
6577
6578AcpiHelp: Fixed some typos in the various predefined name descriptions.
6579Also
6580expand some of the descriptions where appropriate.
6581
6582iASL: Fixed the -ot option (display compile times/statistics). Was not
6583working
6584properly for standard output; only worked for the debug file case.
6585
6586----------------------------------------
658718 May 2012. Summary of changes for version 20120518:
6588
6589
65901) ACPICA Core Subsystem:
6591
6592Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
6593defined
6594to block until asynchronous events such as notifies and GPEs have
6595completed.
6596Within ACPICA, it is only called before a notify or GPE handler is
6597removed/uninstalled. It also may be useful for the host OS within related
6598drivers such as the Embedded Controller driver. See the ACPICA reference
6599for
6600additional information. ACPICA BZ 868.
6601
6602ACPI Tables: Added a new error message for a possible overflow failure
6603during
6604the conversion of FADT 32-bit legacy register addresses to internal
6605common
660664-
6607bit GAS structure representation. The GAS has a one-byte "bit length"
6608field,
6609thus limiting the register length to 255 bits. ACPICA BZ 953.
6610
6611Example Code and Data Size: These are the sizes for the OS-independent
6612acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6613debug
6614version of the code includes the debug output trace mechanism and has a
6615much
6616larger code and data size.
6617
6618  Previous Release:
6619    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6620    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6621  Current Release:
6622    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6623    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6624
6625
66262) iASL Compiler/Disassembler and Tools:
6627
6628iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
6629macro.
6630This keyword was added late in the ACPI 5.0 release cycle and was not
6631implemented until now.
6632
6633Disassembler: Added support for Operation Region externals. Adds missing
6634support for operation regions that are defined in another table, and
6635referenced locally via a Field or BankField ASL operator. Now generates
6636the
6637correct External statement.
6638
6639Disassembler: Several additional fixes for the External() statement
6640generation
6641related to some ASL operators. Also, order the External() statements
6642alphabetically in the disassembler output. Fixes the External()
6643generation
6644for
6645the Create* field, Alias, and Scope operators:
6646 1) Create* buffer field operators - fix type mismatch warning on
6647disassembly
6648 2) Alias - implement missing External support
6649 3) Scope - fix to make sure all necessary externals are emitted.
6650
6651iASL: Improved pathname support. For include files, merge the prefix
6652pathname
6653with the file pathname and eliminate unnecessary components. Convert
6654backslashes in all pathnames to forward slashes, for readability. Include
6655file
6656pathname changes affect both #include and Include() type operators.
6657
6658iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
6659end
6660of a valid line by inserting a newline and then returning the EOF during
6661the
6662next call to GetNextLine. Prevents the line from being ignored due to EOF
6663condition.
6664
6665iASL: Implemented some changes to enhance the IDE support (-vi option.)
6666Error
6667and Warning messages are now correctly recognized for both the source
6668code
6669browser and the global error and warning counts.
6670
6671----------------------------------------
667220 April 2012. Summary of changes for version 20120420:
6673
6674
66751) ACPICA Core Subsystem:
6676
6677Implemented support for multiple notify handlers. This change adds
6678support
6679to
6680allow multiple system and device notify handlers on Device, Thermal Zone,
6681and
6682Processor objects. This can simplify the host OS notification
6683implementation.
6684Also re-worked and restructured the entire notify support code to
6685simplify
6686handler installation, handler removal, notify event queuing, and notify
6687dispatch to handler(s). Note: there can still only be two global notify
6688handlers - one for system notifies and one for device notifies. There are
6689no
6690changes to the existing handler install/remove interfaces. Lin Ming, Bob
6691Moore, Rafael Wysocki.
6692
6693Fixed a regression in the package repair code where the object reference
6694count was calculated incorrectly. Regression was introduced in the commit
6695"Support to add Package wrappers".
6696
6697Fixed a couple possible memory leaks in the AML parser, in the error
6698recovery
6699path. Jesper Juhl, Lin Ming.
6700
6701Example Code and Data Size: These are the sizes for the OS-independent
6702acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6703debug version of the code includes the debug output trace mechanism and
6704has a
6705much larger code and data size.
6706
6707  Previous Release:
6708    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6709    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6710  Current Release:
6711    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6712    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6713
6714
67152) iASL Compiler/Disassembler and Tools:
6716
6717iASL: Fixed a problem with the resource descriptor support where the
6718length
6719of the StartDependentFn and StartDependentFnNoPrio descriptors were not
6720included in cumulative descriptor offset, resulting in incorrect values
6721for
6722resource tags within resource descriptors appearing after a
6723StartDependent*
6724descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
6725
6726iASL and Preprocessor: Implemented full support for the #line directive
6727to
6728correctly track original source file line numbers through the .i
6729preprocessor
6730output file - for error and warning messages.
6731
6732iASL: Expand the allowable byte constants for address space IDs.
6733Previously,
6734the allowable range was 0x80-0xFF (user-defined spaces), now the range is
67350x0A-0xFF to allow for custom and new IDs without changing the compiler.
6736
6737iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
6738
6739iASL: Add option to completely disable the preprocessor (-Pn).
6740
6741iASL: Now emit all error/warning messages to standard error (stderr) by
6742default (instead of the previous stdout).
6743
6744ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
6745Update
6746for resource descriptor offset fix above. Update/cleanup error output
6747routines. Enable and send iASL errors/warnings to an error logfile
6748(error.txt). Send all other iASL output to a logfile (compiler.txt).
6749Fixed
6750several extraneous "unrecognized operator" messages.
6751
6752----------------------------------------
675320 March 2012. Summary of changes for version 20120320:
6754
6755
67561) ACPICA Core Subsystem:
6757
6758Enhanced the sleep/wake interfaces to optionally execute the _GTS method
6759(Going To Sleep) and the _BFS method (Back From Sleep). Windows
6760apparently
6761does not execute these methods, and therefore these methods are often
6762untested. It has been seen on some systems where the execution of these
6763methods causes errors and also prevents the machine from entering S5. It
6764is
6765therefore suggested that host operating systems do not execute these
6766methods
6767by default. In the future, perhaps these methods can be optionally
6768executed
6769based on the age of the system and/or what is the newest version of
6770Windows
6771that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
6772and
6773AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
6774Ming.
6775
6776Fixed a problem where the length of the local/common FADT was set too
6777early.
6778The local FADT table length cannot be set to the common length until the
6779original length has been examined. There is code that checks the table
6780length
6781and sets various fields appropriately. This can affect older machines
6782with
6783early FADT versions. For example, this can cause inadvertent writes to
6784the
6785CST_CNT register. Julian Anastasov.
6786
6787Fixed a mapping issue related to a physical table override. Use the
6788deferred
6789mapping mechanism for tables loaded via the physical override OSL
6790interface.
6791This allows for early mapping before the virtual memory manager is
6792available.
6793Thomas Renninger, Bob Moore.
6794
6795Enhanced the automatic return-object repair code: Repair a common problem
6796with
6797predefined methods that are defined to return a variable-length Package
6798of
6799sub-objects. If there is only one sub-object, some BIOS ASL code
6800mistakenly
6801simply returns the single object instead of a Package with one sub-
6802object.
6803This new support will repair this error by wrapping a Package object
6804around
6805the original object, creating the correct and expected Package with one
6806sub-
6807object. Names that can be repaired in this manner include: _ALR, _CSD,
6808_HPX,
6809_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
6810939.
6811
6812Changed the exception code returned for invalid ACPI paths passed as
6813parameters to external interfaces such as AcpiEvaluateObject. Was
6814AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
6815
6816Example Code and Data Size: These are the sizes for the OS-independent
6817acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6818debug
6819version of the code includes the debug output trace mechanism and has a
6820much
6821larger code and data size.
6822
6823  Previous Release:
6824    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6825    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6826  Current Release:
6827    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6828    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6829
6830
68312) iASL Compiler/Disassembler and Tools:
6832
6833iASL: Added the infrastructure and initial implementation of a integrated
6834C-
6835like preprocessor. This will simplify BIOS development process by
6836eliminating
6837the need for a separate preprocessing step during builds. On Windows, it
6838also
6839eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
6840features including full #define() macro support are still under
6841development.
6842These preprocessor directives are supported:
6843    #define
6844    #elif
6845    #else
6846    #endif
6847    #error
6848    #if
6849    #ifdef
6850    #ifndef
6851    #include
6852    #pragma message
6853    #undef
6854    #warning
6855In addition, these new command line options are supported:
6856    -D <symbol> Define symbol for preprocessor use
6857    -li         Create preprocessed output file (*.i)
6858    -P          Preprocess only and create preprocessor output file (*.i)
6859
6860Table Compiler: Fixed a problem where the equals operator within an
6861expression
6862did not work properly.
6863
6864Updated iASL to use the current versions of Bison/Flex. Updated the
6865Windows
6866project file to invoke these tools from the standard location. ACPICA BZ
6867904.
6868Versions supported:
6869    Flex for Windows:  V2.5.4
6870    Bison for Windows: V2.4.1
6871
6872----------------------------------------
687315 February 2012. Summary of changes for version 20120215:
6874
6875
68761) ACPICA Core Subsystem:
6877
6878There have been some major changes to the sleep/wake support code, as
6879described below (a - e).
6880
6881a) The AcpiLeaveSleepState has been split into two interfaces, similar to
6882AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
6883AcpiLeaveSleepStatePrep. This allows the host to perform actions between
6884the
6885time the _BFS method is called and the _WAK method is called. NOTE: all
6886hosts
6887must update their wake/resume code or else sleep/wake will not work
6888properly.
6889Rafael Wysocki.
6890
6891b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
6892_WAK
6893method. Some machines require that the GPEs are enabled before the _WAK
6894method
6895is executed. Thomas Renninger.
6896
6897c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
6898bit.
6899Some BIOS code assumes that WAK_STS will be cleared on resume and use it
6900to
6901determine whether the system is rebooting or resuming. Matthew Garrett.
6902
6903d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
6904Sleep) to
6905match the ACPI specification requirement. Rafael Wysocki.
6906
6907e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
6908registers within the V5 FADT. This support adds two new files:
6909hardware/hwesleep.c implements the support for the new registers. Moved
6910all
6911sleep/wake external interfaces to hardware/hwxfsleep.c.
6912
6913
6914Added a new OSL interface for ACPI table overrides,
6915AcpiOsPhysicalTableOverride. This interface allows the host to override a
6916table via a physical address, instead of the logical address required by
6917AcpiOsTableOverride. This simplifies the host implementation. Initial
6918implementation by Thomas Renninger. The ACPICA implementation creates a
6919single
6920shared function for table overrides that attempts both a logical and a
6921physical override.
6922
6923Expanded the OSL memory read/write interfaces to 64-bit data
6924(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
6925transfer support for GAS register structures passed to AcpiRead and
6926AcpiWrite.
6927
6928Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
6929custom
6930build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
6931model.
6932See the ACPICA reference for details. ACPICA BZ 942. This option removes
6933about
693410% of the code and 5% of the static data, and the following hardware
6935ACPI
6936features become unavailable:
6937    PM Event and Control registers
6938    SCI interrupt (and handler)
6939    Fixed Events
6940    General Purpose Events (GPEs)
6941    Global Lock
6942    ACPI PM timer
6943    FACS table (Waking vectors and Global Lock)
6944
6945Updated the unix tarball directory structure to match the ACPICA git
6946source
6947tree. This ensures that the generic unix makefiles work properly (in
6948generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
6949867.
6950
6951Updated the return value of the _REV predefined method to integer value 5
6952to
6953reflect ACPI 5.0 support.
6954
6955Moved the external ACPI PM timer interface prototypes to the public
6956acpixf.h
6957file where they belong.
6958
6959Example Code and Data Size: These are the sizes for the OS-independent
6960acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6961debug
6962version of the code includes the debug output trace mechanism and has a
6963much
6964larger code and data size.
6965
6966  Previous Release:
6967    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6968    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6969  Current Release:
6970    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6971    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6972
6973
69742) iASL Compiler/Disassembler and Tools:
6975
6976Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
6977descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
6978incorrectly displayed.
6979
6980AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
6981specification.
6982
6983----------------------------------------
698411 January 2012. Summary of changes for version 20120111:
6985
6986
69871) ACPICA Core Subsystem:
6988
6989Implemented a new mechanism to allow host device drivers to check for
6990address
6991range conflicts with ACPI Operation Regions. Both SystemMemory and
6992SystemIO
6993address spaces are supported. A new external interface,
6994AcpiCheckAddressRange,
6995allows drivers to check an address range against the ACPI namespace. See
6996the
6997ACPICA reference for additional details. Adds one new file,
6998utilities/utaddress.c. Lin Ming, Bob Moore.
6999
7000Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
7001Control
7002and
7003Status registers, update the ACPI 5.0 flags, and update internal data
7004structures to handle an FADT larger than 256 bytes. The size of the ACPI
70055.0
7006FADT is 268 bytes.
7007
7008Updated all ACPICA copyrights and signons to 2012. Added the 2012
7009copyright to
7010all module headers and signons, including the standard Linux header. This
7011affects virtually every file in the ACPICA core subsystem, iASL compiler,
7012and
7013all ACPICA utilities.
7014
7015Example Code and Data Size: These are the sizes for the OS-independent
7016acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7017debug
7018version of the code includes the debug output trace mechanism and has a
7019much
7020larger code and data size.
7021
7022  Previous Release:
7023    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
7024    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
7025  Current Release:
7026    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
7027    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
7028
7029
70302) iASL Compiler/Disassembler and Tools:
7031
7032Disassembler: fixed a problem with the automatic resource tag generation
7033support. Fixes a problem where the resource tags are inadvertently not
7034constructed if the table being disassembled contains external references
7035to
7036control methods. Moved the actual construction of the tags to after the
7037final
7038namespace is constructed (after 2nd parse is invoked due to external
7039control
7040method references.) ACPICA BZ 941.
7041
7042Table Compiler: Make all "generic" operators caseless. These are the
7043operators
7044like UINT8, String, etc. Making these caseless improves ease-of-use.
7045ACPICA BZ
7046934.
7047
7048----------------------------------------
704923 November 2011. Summary of changes for version 20111123:
7050
70510) ACPI 5.0 Support:
7052
7053This release contains full support for the ACPI 5.0 specification, as
7054summarized below.
7055
7056Reduced Hardware Support:
7057-------------------------
7058
7059This support allows for ACPI systems without the usual ACPI hardware.
7060This
7061support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
7062will
7063not attempt to initialize or use any of the usual ACPI hardware. Note,
7064when
7065this flag is set, all of the following ACPI hardware is assumed to be not
7066present and is not initialized or accessed:
7067
7068    General Purpose Events (GPEs)
7069    Fixed Events (PM1a/PM1b and PM Control)
7070    Power Management Timer and Console Buttons (power/sleep)
7071    Real-time Clock Alarm
7072    Global Lock
7073    System Control Interrupt (SCI)
7074    The FACS is assumed to be non-existent
7075
7076ACPI Tables:
7077------------
7078
7079All new tables and updates to existing tables are fully supported in the
7080ACPICA headers (for use by device drivers), the disassembler, and the
7081iASL
7082Data Table Compiler. ACPI 5.0 defines these new tables:
7083
7084    BGRT        /* Boot Graphics Resource Table */
7085    DRTM        /* Dynamic Root of Trust for Measurement table */
7086    FPDT        /* Firmware Performance Data Table */
7087    GTDT        /* Generic Timer Description Table */
7088    MPST        /* Memory Power State Table */
7089    PCCT        /* Platform Communications Channel Table */
7090    PMTT        /* Platform Memory Topology Table */
7091    RASF        /* RAS Feature table */
7092
7093Operation Regions/SpaceIDs:
7094---------------------------
7095
7096All new operation regions are fully supported by the iASL compiler, the
7097disassembler, and the ACPICA runtime code (for dispatch to region
7098handlers.)
7099The new operation region Space IDs are:
7100
7101    GeneralPurposeIo
7102    GenericSerialBus
7103
7104Resource Descriptors:
7105---------------------
7106
7107All new ASL resource descriptors are fully supported by the iASL
7108compiler,
7109the
7110ASL/AML disassembler, and the ACPICA runtime Resource Manager code
7111(including
7112all new predefined resource tags). New descriptors are:
7113
7114    FixedDma
7115    GpioIo
7116    GpioInt
7117    I2cSerialBus
7118    SpiSerialBus
7119    UartSerialBus
7120
7121ASL/AML Operators, New and Modified:
7122------------------------------------
7123
7124One new operator is added, the Connection operator, which is used to
7125associate
7126a GeneralPurposeIo or GenericSerialBus resource descriptor with
7127individual
7128field objects within an operation region. Several new protocols are
7129associated
7130with the AccessAs operator. All are fully supported by the iASL compiler,
7131disassembler, and runtime ACPICA AML interpreter:
7132
7133    Connection                      // Declare Field Connection
7134attributes
7135    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
7136    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
7137Protocol
7138    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
7139    RawDataBuffer                       // Data type for Vendor Data
7140fields
7141
7142Predefined ASL/AML Objects:
7143---------------------------
7144
7145All new predefined objects/control-methods are supported by the iASL
7146compiler
7147and the ACPICA runtime validation/repair (arguments and return values.)
7148New
7149predefined names include the following:
7150
7151Standard Predefined Names (Objects or Control Methods):
7152    _AEI, _CLS, _CPC, _CWS, _DEP,
7153    _DLM, _EVT, _GCP, _CRT, _GWS,
7154    _HRV, _PRE, _PSE, _SRT, _SUB.
7155
7156Resource Tags (Names used to access individual fields within resource
7157descriptors):
7158    _DBT, _DPL, _DRS, _END, _FLC,
7159    _IOR, _LIN, _MOD, _PAR, _PHA,
7160    _PIN, _PPI, _POL, _RXL, _SLV,
7161    _SPE, _STB, _TXL, _VEN.
7162
7163ACPICA External Interfaces:
7164---------------------------
7165
7166Several new interfaces have been defined for use by ACPI-related device
7167drivers and other host OS services:
7168
7169AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
7170to
7171acquire and release AML mutexes that are defined in the DSDT/SSDT tables
7172provided by the BIOS. They are intended to be used in conjunction with
7173the
7174ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
7175mutual exclusion with the AML code/interpreter.
7176
7177AcpiGetEventResources: Returns the (formatted) resource descriptors as
7178defined
7179by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
7180provides
7181resource descriptors associated with hardware-reduced platform events,
7182similar
7183to the AcpiGetCurrentResources interface.
7184
7185Operation Region Handlers: For General Purpose IO and Generic Serial Bus
7186operation regions, information about the Connection() object and any
7187optional
7188length information is passed to the region handler within the Context
7189parameter.
7190
7191AcpiBufferToResource: This interface converts a raw AML buffer containing
7192a
7193resource template or resource descriptor to the ACPI_RESOURCE internal
7194format
7195suitable for use by device drivers. Can be used by an operation region
7196handler
7197to convert the Connection() buffer object into a ACPI_RESOURCE.
7198
7199Miscellaneous/Tools/TestSuites:
7200-------------------------------
7201
7202Support for extended _HID names (Four alpha characters instead of three).
7203Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
7204Support for ACPI 5.0 features in the ASLTS test suite.
7205Fully updated documentation (ACPICA and iASL reference documents.)
7206
7207ACPI Table Definition Language:
7208-------------------------------
7209
7210Support for this language was implemented and released as a subsystem of
7211the
7212iASL compiler in 2010. (See the iASL compiler User Guide.)
7213
7214
7215Non-ACPI 5.0 changes for this release:
7216--------------------------------------
7217
72181) ACPICA Core Subsystem:
7219
7220Fix a problem with operation region declarations where a failure can
7221occur
7222if
7223the region name and an argument that evaluates to an object (such as the
7224region address) are in different namespace scopes. Lin Ming, ACPICA BZ
7225937.
7226
7227Do not abort an ACPI table load if an invalid space ID is found within.
7228This
7229will be caught later if the offending method is executed. ACPICA BZ 925.
7230
7231Fixed an issue with the FFixedHW space ID where the ID was not always
7232recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
7233
7234Fixed a problem with the 32-bit generation of the unix-specific OSL
7235(osunixxf.c). Lin Ming, ACPICA BZ 936.
7236
7237Several changes made to enable generation with the GCC 4.6 compiler.
7238ACPICA BZ
7239935.
7240
7241New error messages: Unsupported I/O requests (not 8/16/32 bit), and
7242Index/Bank
7243field registers out-of-range.
7244
72452) iASL Compiler/Disassembler and Tools:
7246
7247iASL: Implemented the __PATH__ operator, which returns the full pathname
7248of
7249the current source file.
7250
7251AcpiHelp: Automatically display expanded keyword information for all ASL
7252operators.
7253
7254Debugger: Add "Template" command to disassemble/dump resource template
7255buffers.
7256
7257Added a new master script to generate and execute the ASLTS test suite.
7258Automatically handles 32- and 64-bit generation. See tests/aslts.sh
7259
7260iASL: Fix problem with listing generation during processing of the
7261Switch()
7262operator where AML listing was disabled until the entire Switch block was
7263completed.
7264
7265iASL: Improve support for semicolon statement terminators. Fix "invalid
7266character" message for some cases when the semicolon is used. Semicolons
7267are
7268now allowed after every <Term> grammar element. ACPICA BZ 927.
7269
7270iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
7271923.
7272
7273Disassembler: Fix problem with disassembly of the DataTableRegion
7274operator
7275where an inadvertent "Unhandled deferred opcode" message could be
7276generated.
7277
72783) Example Code and Data Size
7279
7280These are the sizes for the OS-independent acpica.lib produced by the
7281Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7282includes the debug output trace mechanism and has a much larger code and
7283data
7284size.
7285
7286  Previous Release:
7287    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7288    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7289  Current Release:
7290    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
7291    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
7292
7293----------------------------------------
729422 September 2011. Summary of changes for version 20110922:
7295
72960) ACPI 5.0 News:
7297
7298Support for ACPI 5.0 in ACPICA has been underway for several months and
7299will
7300be released at the same time that ACPI 5.0 is officially released.
7301
7302The ACPI 5.0 specification is on track for release in the next few
7303months.
7304
73051) ACPICA Core Subsystem:
7306
7307Fixed a problem where the maximum sleep time for the Sleep() operator was
7308intended to be limited to two seconds, but was inadvertently limited to
730920
7310seconds instead.
7311
7312Linux and Unix makefiles: Added header file dependencies to ensure
7313correct
7314generation of ACPICA core code and utilities. Also simplified the
7315makefiles
7316considerably through the use of the vpath variable to specify search
7317paths.
7318ACPICA BZ 924.
7319
73202) iASL Compiler/Disassembler and Tools:
7321
7322iASL: Implemented support to check the access length for all fields
7323created to
7324access named Resource Descriptor fields. For example, if a resource field
7325is
7326defined to be two bits, a warning is issued if a CreateXxxxField() is
7327used
7328with an incorrect bit length. This is implemented for all current
7329resource
7330descriptor names. ACPICA BZ 930.
7331
7332Disassembler: Fixed a byte ordering problem with the output of 24-bit and
733356-
7334bit integers.
7335
7336iASL: Fixed a couple of issues associated with variable-length package
7337objects. 1) properly handle constants like One, Ones, Zero -- do not make
7338a
7339VAR_PACKAGE when these are used as a package length. 2) Allow the
7340VAR_PACKAGE
7341opcode (in addition to PACKAGE) when validating object types for
7342predefined
7343names.
7344
7345iASL: Emit statistics for all output files (instead of just the ASL input
7346and
7347AML output). Includes listings, hex files, etc.
7348
7349iASL: Added -G option to the table compiler to allow the compilation of
7350custom
7351ACPI tables. The only part of a table that is required is the standard
735236-
7353byte
7354ACPI header.
7355
7356AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
7357headers),
7358which also adds correct 64-bit support. Also, now all output filenames
7359are
7360completely lower case.
7361
7362AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
7363loading table files. A warning is issued for any such tables. The only
7364exception is an FADT. This also fixes a possible fault when attempting to
7365load
7366non-AML tables. ACPICA BZ 932.
7367
7368AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
7369a
7370missing table terminator could cause a fault when using the -p option.
7371
7372AcpiSrc: Fixed a possible divide-by-zero fault when generating file
7373statistics.
7374
73753) Example Code and Data Size
7376
7377These are the sizes for the OS-independent acpica.lib produced by the
7378Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7379includes the debug output trace mechanism and has a much larger code and
7380data
7381size.
7382
7383  Previous Release (VC 9.0):
7384    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7385    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7386  Current Release (VC 9.0):
7387    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7388    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7389
7390
7391----------------------------------------
739223 June 2011. Summary of changes for version 20110623:
7393
73941) ACPI CA Core Subsystem:
7395
7396Updated the predefined name repair mechanism to not attempt repair of a
7397_TSS
7398return object if a _PSS object is present. We can only sort the _TSS
7399return
7400package if there is no _PSS within the same scope. This is because if
7401_PSS
7402is
7403present, the ACPI specification dictates that the _TSS Power Dissipation
7404field
7405is to be ignored, and therefore some BIOSs leave garbage values in the
7406_TSS
7407Power field(s). In this case, it is best to just return the _TSS package
7408as-
7409is. Reported by, and fixed with assistance from Fenghua Yu.
7410
7411Added an option to globally disable the control method return value
7412validation
7413and repair. This runtime option can be used to disable return value
7414repair
7415if
7416this is causing a problem on a particular machine. Also added an option
7417to
7418AcpiExec (-dr) to set this disable flag.
7419
7420All makefiles and project files: Major changes to improve generation of
7421ACPICA
7422tools. ACPICA BZ 912:
7423    Reduce default optimization levels to improve compatibility
7424    For Linux, add strict-aliasing=0 for gcc 4
7425    Cleanup and simplify use of command line defines
7426    Cleanup multithread library support
7427    Improve usage messages
7428
7429Linux-specific header: update handling of THREAD_ID and pthread. For the
743032-
7431bit case, improve casting to eliminate possible warnings, especially with
7432the
7433acpica tools.
7434
7435Example Code and Data Size: These are the sizes for the OS-independent
7436acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7437debug
7438version of the code includes the debug output trace mechanism and has a
7439much
7440larger code and data size.
7441
7442  Previous Release (VC 9.0):
7443    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7444    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7445  Current Release (VC 9.0):
7446    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7447    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7448
74492) iASL Compiler/Disassembler and Tools:
7450
7451With this release, a new utility named "acpihelp" has been added to the
7452ACPICA
7453package. This utility summarizes the ACPI specification chapters for the
7454ASL
7455and AML languages. It generates under Linux/Unix as well as Windows, and
7456provides the following functionality:
7457    Find/display ASL operator(s) -- with description and syntax.
7458    Find/display ASL keyword(s) -- with exact spelling and descriptions.
7459    Find/display ACPI predefined name(s) -- with description, number
7460        of arguments, and the return value data type.
7461    Find/display AML opcode name(s) -- with opcode, arguments, and
7462grammar.
7463    Decode/display AML opcode -- with opcode name, arguments, and
7464grammar.
7465
7466Service Layers: Make multi-thread support configurable. Conditionally
7467compile
7468the multi-thread support so that threading libraries will not be linked
7469if
7470not
7471necessary. The only tool that requires multi-thread support is AcpiExec.
7472
7473iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
7474of
7475Bison appear to want the interface to yyerror to be a const char * (or at
7476least this is a problem when generating iASL on some systems.) ACPICA BZ
7477923
7478Pierre Lejeune.
7479
7480Tools: Fix for systems where O_BINARY is not defined. Only used for
7481Windows
7482versions of the tools.
7483
7484----------------------------------------
748527 May 2011. Summary of changes for version 20110527:
7486
74871) ACPI CA Core Subsystem:
7488
7489ASL Load() operator: Reinstate most restrictions on the incoming ACPI
7490table
7491signature. Now, only allow SSDT, OEMx, and a null signature. History:
7492    1) Originally, we checked the table signature for "SSDT" or "PSDT".
7493       (PSDT is now obsolete.)
7494    2) We added support for OEMx tables, signature "OEM" plus a fourth
7495       "don't care" character.
7496    3) Valid tables were encountered with a null signature, so we just
7497       gave up on validating the signature, (05/2008).
7498    4) We encountered non-AML tables such as the MADT, which caused
7499       interpreter errors and kernel faults. So now, we once again allow
7500       only SSDT, OEMx, and now, also a null signature. (05/2011).
7501
7502Added the missing _TDL predefined name to the global name list in order
7503to
7504enable validation. Affects both the core ACPICA code and the iASL
7505compiler.
7506
7507Example Code and Data Size: These are the sizes for the OS-independent
7508acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7509debug
7510version of the code includes the debug output trace mechanism and has a
7511much
7512larger code and data size.
7513
7514  Previous Release (VC 9.0):
7515    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7516    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7517  Current Release (VC 9.0):
7518    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7519    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7520
75212) iASL Compiler/Disassembler and Tools:
7522
7523Debugger/AcpiExec: Implemented support for "complex" method arguments on
7524the
7525debugger command line. This adds support beyond simple integers --
7526including
7527Strings, Buffers, and Packages. Includes support for nested packages.
7528Increased the default command line buffer size to accommodate these
7529arguments.
7530See the ACPICA reference for details and syntax. ACPICA BZ 917.
7531
7532Debugger/AcpiExec: Implemented support for "default" method arguments for
7533the
7534Execute/Debug command. Now, the debugger will always invoke a control
7535method
7536with the required number of arguments -- even if the command line
7537specifies
7538none or insufficient arguments. It uses default integer values for any
7539missing
7540arguments. Also fixes a bug where only six method arguments maximum were
7541supported instead of the required seven.
7542
7543Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
7544and
7545also return status in order to prevent buffer overruns. See the ACPICA
7546reference for details and syntax. ACPICA BZ 921
7547
7548iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
7549makefiles to simplify support for the two different but similar parser
7550generators, bison and yacc.
7551
7552Updated the generic unix makefile for gcc 4. The default gcc version is
7553now
7554expected to be 4 or greater, since options specific to gcc 4 are used.
7555
7556----------------------------------------
755713 April 2011. Summary of changes for version 20110413:
7558
75591) ACPI CA Core Subsystem:
7560
7561Implemented support to execute a so-called "orphan" _REG method under the
7562EC
7563device. This change will force the execution of a _REG method underneath
7564the
7565EC
7566device even if there is no corresponding operation region of type
7567EmbeddedControl. Fixes a problem seen on some machines and apparently is
7568compatible with Windows behavior. ACPICA BZ 875.
7569
7570Added more predefined methods that are eligible for automatic NULL
7571package
7572element removal. This change adds another group of predefined names to
7573the
7574list
7575of names that can be repaired by having NULL package elements dynamically
7576removed. This group are those methods that return a single variable-
7577length
7578package containing simple data types such as integers, buffers, strings.
7579This
7580includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
7581_PSL,
7582_Sx,
7583and _TZD. ACPICA BZ 914.
7584
7585Split and segregated all internal global lock functions to a new file,
7586evglock.c.
7587
7588Updated internal address SpaceID for DataTable regions. Moved this
7589internal
7590space
7591id in preparation for ACPI 5.0 changes that will include some new space
7592IDs.
7593This
7594change should not affect user/host code.
7595
7596Example Code and Data Size: These are the sizes for the OS-independent
7597acpica.lib
7598produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7599version of
7600the code includes the debug output trace mechanism and has a much larger
7601code
7602and
7603data size.
7604
7605  Previous Release (VC 9.0):
7606    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7607    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7608  Current Release (VC 9.0):
7609    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7610    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7611
76122) iASL Compiler/Disassembler and Tools:
7613
7614iASL/DTC: Major update for new grammar features. Allow generic data types
7615in
7616custom ACPI tables. Field names are now optional. Any line can be split
7617to
7618multiple lines using the continuation char (\). Large buffers now use
7619line-
7620continuation character(s) and no colon on the continuation lines. See the
7621grammar
7622update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
7623Moore.
7624
7625iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
7626statements.
7627Since the parser stuffs a "zero" as the return value for these statements
7628(due
7629to
7630the underlying AML grammar), they were seen as "return with value" by the
7631iASL
7632semantic checking. They are now seen correctly as "null" return
7633statements.
7634
7635iASL: Check if a_REG declaration has a corresponding Operation Region.
7636Adds a
7637check for each _REG to ensure that there is in fact a corresponding
7638operation
7639region declaration in the same scope. If not, the _REG method is not very
7640useful
7641since it probably won't be executed. ACPICA BZ 915.
7642
7643iASL/DTC: Finish support for expression evaluation. Added a new
7644expression
7645parser
7646that implements c-style operator precedence and parenthesization. ACPICA
7647bugzilla
7648908.
7649
7650Disassembler/DTC: Remove support for () and <> style comments in data
7651tables.
7652Now
7653that DTC has full expression support, we don't want to have comment
7654strings
7655that
7656start with a parentheses or a less-than symbol. Now, only the standard /*
7657and
7658//
7659comments are supported, as well as the bracket [] comments.
7660
7661AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
7662"unusual"
7663headers in the acpidump file. Update the header validation to support
7664these
7665tables. Problem introduced in previous AcpiXtract version in the change
7666to
7667support "wrong checksum" error messages emitted by acpidump utility.
7668
7669iASL: Add a * option to generate all template files (as a synonym for
7670ALL)
7671as
7672in
7673"iasl -T *" or "iasl -T ALL".
7674
7675iASL/DTC: Do not abort compiler on fatal errors. We do not want to
7676completely
7677abort the compiler on "fatal" errors, simply should abort the current
7678compile.
7679This allows multiple compiles with a single (possibly wildcard) compiler
7680invocation.
7681
7682----------------------------------------
768316 March 2011. Summary of changes for version 20110316:
7684
76851) ACPI CA Core Subsystem:
7686
7687Fixed a problem caused by a _PRW method appearing at the namespace root
7688scope
7689during the setup of wake GPEs. A fault could occur if a _PRW directly
7690under
7691the
7692root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
7693
7694Implemented support for "spurious" Global Lock interrupts. On some
7695systems, a
7696global lock interrupt can occur without the pending flag being set. Upon
7697a
7698GL
7699interrupt, we now ensure that a thread is actually waiting for the lock
7700before
7701signaling GL availability. Rafael Wysocki, Bob Moore.
7702
7703Example Code and Data Size: These are the sizes for the OS-independent
7704acpica.lib
7705produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7706version of
7707the code includes the debug output trace mechanism and has a much larger
7708code
7709and
7710data size.
7711
7712  Previous Release (VC 9.0):
7713    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7714    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7715  Current Release (VC 9.0):
7716    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7717    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7718
77192) iASL Compiler/Disassembler and Tools:
7720
7721Implemented full support for the "SLIC" ACPI table. Includes support in
7722the
7723header files, disassembler, table compiler, and template generator. Bob
7724Moore,
7725Lin Ming.
7726
7727AcpiXtract: Correctly handle embedded comments and messages from
7728AcpiDump.
7729Apparently some or all versions of acpidump will occasionally emit a
7730comment
7731like
7732"Wrong checksum", etc., into the dump file. This was causing problems for
7733AcpiXtract. ACPICA BZ 905.
7734
7735iASL: Fix the Linux makefile by removing an inadvertent double file
7736inclusion.
7737ACPICA BZ 913.
7738
7739AcpiExec: Update installation of operation region handlers. Install one
7740handler
7741for a user-defined address space. This is used by the ASL test suite
7742(ASLTS).
7743
7744----------------------------------------
774511 February 2011. Summary of changes for version 20110211:
7746
77471) ACPI CA Core Subsystem:
7748
7749Added a mechanism to defer _REG methods for some early-installed
7750handlers.
7751Most user handlers should be installed before call to
7752AcpiEnableSubsystem.
7753However, Event handlers and region handlers should be installed after
7754AcpiInitializeObjects. Override handlers for the "default" regions should
7755be
7756installed early, however. This change executes all _REG methods for the
7757default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
7758chicken/egg issues between them. ACPICA BZ 848.
7759
7760Implemented an optimization for GPE detection. This optimization will
7761simply
7762ignore GPE registers that contain no enabled GPEs -- there is no need to
7763read the register since this information is available internally. This
7764becomes more important on machines with a large GPE space. ACPICA
7765bugzilla
7766884. Lin Ming. Suggestion from Joe Liu.
7767
7768Removed all use of the highly unreliable FADT revision field. The
7769revision
7770number in the FADT has been found to be completely unreliable and cannot
7771be
7772trusted. Only the actual table length can be used to infer the version.
7773This
7774change updates the ACPICA core and the disassembler so that both no
7775longer
7776even look at the FADT version and instead depend solely upon the FADT
7777length.
7778
7779Fix an unresolved name issue for the no-debug and no-error-message source
7780generation cases. The _AcpiModuleName was left undefined in these cases,
7781but
7782it is actually needed as a parameter to some interfaces. Define
7783_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
7784
7785Split several large files (makefiles and project files updated)
7786  utglobal.c   -> utdecode.c
7787  dbcomds.c    -> dbmethod.c dbnames.c
7788  dsopcode.c   -> dsargs.c dscontrol.c
7789  dsload.c     -> dsload2.c
7790  aslanalyze.c -> aslbtypes.c aslwalks.c
7791
7792Example Code and Data Size: These are the sizes for the OS-independent
7793acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7794debug version of the code includes the debug output trace mechanism and
7795has
7796a much larger code and data size.
7797
7798  Previous Release (VC 9.0):
7799    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7800    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7801  Current Release (VC 9.0):
7802    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7803    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7804
78052) iASL Compiler/Disassembler and Tools:
7806
7807iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
7808These are useful C-style macros with the standard definitions. ACPICA
7809bugzilla 898.
7810
7811iASL/DTC: Added support for integer expressions and labels. Support for
7812full
7813expressions for all integer fields in all ACPI tables. Support for labels
7814in
7815"generic" portions of tables such as UEFI. See the iASL reference manual.
7816
7817Debugger: Added a command to display the status of global handlers. The
7818"handlers" command will display op region, fixed event, and miscellaneous
7819global handlers. installation status -- and for op regions, whether
7820default
7821or user-installed handler will be used.
7822
7823iASL: Warn if reserved method incorrectly returns a value. Many
7824predefined
7825names are defined such that they do not return a value. If implemented as
7826a
7827method, issue a warning if such a name explicitly returns a value. ACPICA
7828Bugzilla 855.
7829
7830iASL: Added detection of GPE method name conflicts. Detects a conflict
7831where
7832there are two GPE methods of the form _Lxy and _Exy in the same scope.
7833(For
7834example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
7835
7836iASL/DTC: Fixed a couple input scanner issues with comments and line
7837numbers. Comment remover could get confused and miss a comment ending.
7838Fixed
7839a problem with line counter maintenance.
7840
7841iASL/DTC: Reduced the severity of some errors from fatal to error. There
7842is
7843no need to abort on simple errors within a field definition.
7844
7845Debugger: Simplified the output of the help command. All help output now
7846in
7847a single screen, instead of help subcommands. ACPICA Bugzilla 897.
7848
7849----------------------------------------
785012 January 2011. Summary of changes for version 20110112:
7851
78521) ACPI CA Core Subsystem:
7853
7854Fixed a race condition between method execution and namespace walks that
7855can
7856possibly cause a fault. The problem was apparently introduced in version
785720100528 as a result of a performance optimization that reduces the
7858number
7859of
7860namespace walks upon method exit by using the delete_namespace_subtree
7861function instead of the delete_namespace_by_owner function used
7862previously.
7863Bug is a missing namespace lock in the delete_namespace_subtree function.
7864dana.myers@oracle.com
7865
7866Fixed several issues and a possible fault with the automatic "serialized"
7867method support. History: This support changes a method to "serialized" on
7868the
7869fly if the method generates an AE_ALREADY_EXISTS error, indicating the
7870possibility that it cannot handle reentrancy. This fix repairs a couple
7871of
7872issues seen in the field, especially on machines with many cores:
7873
7874    1) Delete method children only upon the exit of the last thread,
7875       so as to not delete objects out from under other running threads
7876      (and possibly causing a fault.)
7877    2) Set the "serialized" bit for the method only upon the exit of the
7878       Last thread, so as to not cause deadlock when running threads
7879       attempt to exit.
7880    3) Cleanup the use of the AML "MethodFlags" and internal method flags
7881       so that there is no longer any confusion between the two.
7882
7883    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
7884
7885Debugger: Now lock the namespace for duration of a namespace dump.
7886Prevents
7887issues if the namespace is changing dynamically underneath the debugger.
7888Especially affects temporary namespace nodes, since the debugger displays
7889these also.
7890
7891Updated the ordering of include files. The ACPICA headers should appear
7892before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
7893set
7894any necessary compiler-specific defines, etc. Affects the ACPI-related
7895tools
7896and utilities.
7897
7898Updated all ACPICA copyrights and signons to 2011. Added the 2011
7899copyright
7900to all module headers and signons, including the Linux header. This
7901affects
7902virtually every file in the ACPICA core subsystem, iASL compiler, and all
7903utilities.
7904
7905Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
7906project files for VC++ 6.0 are now obsolete. New project files can be
7907found
7908under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
7909details.
7910
7911Example Code and Data Size: These are the sizes for the OS-independent
7912acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7913debug version of the code includes the debug output trace mechanism and
7914has a
7915much larger code and data size.
7916
7917  Previous Release (VC 6.0):
7918    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7919    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7920  Current Release (VC 9.0):
7921    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7922    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7923
79242) iASL Compiler/Disassembler and Tools:
7925
7926iASL: Added generic data types to the Data Table compiler. Add "generic"
7927data
7928types such as UINT32, String, Unicode, etc., to simplify the generation
7929of
7930platform-defined tables such as UEFI. Lin Ming.
7931
7932iASL: Added listing support for the Data Table Compiler. Adds listing
7933support
7934(-l) to display actual binary output for each line of input code.
7935
7936----------------------------------------
793709 December 2010. Summary of changes for version 20101209:
7938
79391) ACPI CA Core Subsystem:
7940
7941Completed the major overhaul of the GPE support code that was begun in
7942July
79432010. Major features include: removal of _PRW execution in ACPICA (host
7944executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
7945changes to existing interfaces, simplification of GPE handler operation,
7946and
7947a handful of new interfaces:
7948
7949    AcpiUpdateAllGpes
7950    AcpiFinishGpe
7951    AcpiSetupGpeForWake
7952    AcpiSetGpeWakeMask
7953    One new file, evxfgpe.c to consolidate all external GPE interfaces.
7954
7955See the ACPICA Programmer Reference for full details and programming
7956information. See the new section 4.4 "General Purpose Event (GPE)
7957Support"
7958for a full overview, and section 8.7 "ACPI General Purpose Event
7959Management"
7960for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
7961Ming,
7962Bob Moore, Rafael Wysocki.
7963
7964Implemented a new GPE feature for Windows compatibility, the "Implicit
7965Wake
7966GPE Notify". This feature will automatically issue a Notify(2) on a
7967device
7968when a Wake GPE is received if there is no corresponding GPE method or
7969handler. ACPICA BZ 870.
7970
7971Fixed a problem with the Scope() operator during table parse and load
7972phase.
7973During load phase (table load or method execution), the scope operator
7974should
7975not enter the target into the namespace. Instead, it should open a new
7976scope
7977at the target location. Linux BZ 19462, ACPICA BZ 882.
7978
7979Example Code and Data Size: These are the sizes for the OS-independent
7980acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7981debug version of the code includes the debug output trace mechanism and
7982has a
7983much larger code and data size.
7984
7985  Previous Release:
7986    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7987    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7988  Current Release:
7989    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7990    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7991
79922) iASL Compiler/Disassembler and Tools:
7993
7994iASL: Relax the alphanumeric restriction on _CID strings. These strings
7995are
7996"bus-specific" per the ACPI specification, and therefore any characters
7997are
7998acceptable. The only checks that can be performed are for a null string
7999and
8000perhaps for a leading asterisk. ACPICA BZ 886.
8001
8002iASL: Fixed a problem where a syntax error that caused a premature EOF
8003condition on the source file emitted a very confusing error message. The
8004premature EOF is now detected correctly. ACPICA BZ 891.
8005
8006Disassembler: Decode the AccessSize within a Generic Address Structure
8007(byte
8008access, word access, etc.) Note, this field does not allow arbitrary bit
8009access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
8010
8011New: AcpiNames utility - Example namespace dump utility. Shows an example
8012of
8013ACPICA configuration for a minimal namespace dump utility. Uses table and
8014namespace managers, but no AML interpreter. Does not add any
8015functionality
8016over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
8017partition and configure ACPICA. ACPICA BZ 883.
8018
8019AML Debugger: Increased the debugger buffer size for method return
8020objects.
8021Was 4K, increased to 16K. Also enhanced error messages for debugger
8022method
8023execution, including the buffer overflow case.
8024
8025----------------------------------------
802613 October 2010. Summary of changes for version 20101013:
8027
80281) ACPI CA Core Subsystem:
8029
8030Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
8031now
8032clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
8033HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
8034
8035Changed the type of the predefined namespace object _TZ from ThermalZone
8036to
8037Device. This was found to be confusing to the host software that
8038processes
8039the various thermal zones, since _TZ is not really a ThermalZone.
8040However,
8041a
8042Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
8043Zhang.
8044
8045Added Windows Vista SP2 to the list of supported _OSI strings. The actual
8046string is "Windows 2006 SP2".
8047
8048Eliminated duplicate code in AcpiUtExecute* functions. Now that the
8049nsrepair
8050code automatically repairs _HID-related strings, this type of code is no
8051longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
8052878.
8053
8054Example Code and Data Size: These are the sizes for the OS-independent
8055acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8056debug version of the code includes the debug output trace mechanism and
8057has a
8058much larger code and data size.
8059
8060  Previous Release:
8061    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
8062    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
8063  Current Release:
8064    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
8065    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
8066
80672) iASL Compiler/Disassembler and Tools:
8068
8069iASL: Implemented additional compile-time validation for _HID strings.
8070The
8071non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
8072length
8073of
8074the string must be exactly seven or eight characters. For both _HID and
8075_CID
8076strings, all characters must be alphanumeric. ACPICA BZ 874.
8077
8078iASL: Allow certain "null" resource descriptors. Some BIOS code creates
8079descriptors that are mostly or all zeros, with the expectation that they
8080will
8081be filled in at runtime. iASL now allows this as long as there is a
8082"resource
8083tag" (name) associated with the descriptor, which gives the ASL a handle
8084needed to modify the descriptor. ACPICA BZ 873.
8085
8086Added single-thread support to the generic Unix application OSL.
8087Primarily
8088for iASL support, this change removes the use of semaphores in the
8089single-
8090threaded ACPICA tools/applications - increasing performance. The
8091_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
8092option. ACPICA BZ 879.
8093
8094AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
8095support
8096for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
8097
8098iASL: Moved all compiler messages to a new file, aslmessages.h.
8099
8100----------------------------------------
810115 September 2010. Summary of changes for version 20100915:
8102
81031) ACPI CA Core Subsystem:
8104
8105Removed the AcpiOsDerivePciId OSL interface. The various host
8106implementations
8107of this function were not OS-dependent and are now obsolete and can be
8108removed from all host OSLs. This function has been replaced by
8109AcpiHwDerivePciId, which is now part of the ACPICA core code.
8110AcpiHwDerivePciId has been implemented without recursion. Adds one new
8111module, hwpci.c. ACPICA BZ 857.
8112
8113Implemented a dynamic repair for _HID and _CID strings. The following
8114problems are now repaired at runtime: 1) Remove a leading asterisk in the
8115string, and 2) the entire string is uppercased. Both repairs are in
8116accordance with the ACPI specification and will simplify host driver
8117code.
8118ACPICA BZ 871.
8119
8120The ACPI_THREAD_ID type is no longer configurable, internally it is now
8121always UINT64. This simplifies the ACPICA code, especially any printf
8122output.
8123UINT64 is the only common data type for all thread_id types across all
8124operating systems. It is now up to the host OSL to cast the native
8125thread_id
8126type to UINT64 before returning the value to ACPICA (via
8127AcpiOsGetThreadId).
8128Lin Ming, Bob Moore.
8129
8130Added the ACPI_INLINE type to enhance the ACPICA configuration. The
8131"inline"
8132keyword is not standard across compilers, and this type allows inline to
8133be
8134configured on a per-compiler basis. Lin Ming.
8135
8136Made the system global AcpiGbl_SystemAwakeAndRunning publicly
8137available.
8138Added an extern for this boolean in acpixf.h. Some hosts utilize this
8139value
8140during suspend/restore operations. ACPICA BZ 869.
8141
8142All code that implements error/warning messages with the "ACPI:" prefix
8143has
8144been moved to a new module, utxferror.c.
8145
8146The UINT64_OVERLAY was moved to utmath.c, which is the only module where
8147it
8148is used. ACPICA BZ 829. Lin Ming, Bob Moore.
8149
8150Example Code and Data Size: These are the sizes for the OS-independent
8151acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8152debug version of the code includes the debug output trace mechanism and
8153has a
8154much larger code and data size.
8155
8156  Previous Release:
8157    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
8158    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
8159  Current Release:
8160    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
8161    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
8162
81632) iASL Compiler/Disassembler and Tools:
8164
8165iASL/Disassembler: Write ACPI errors to stderr instead of the output
8166file.
8167This keeps the output files free of random error messages that may
8168originate
8169from within the namespace/interpreter code. Used this opportunity to
8170merge
8171all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
8172866. Lin Ming, Bob Moore.
8173
8174Tools: update some printfs for ansi warnings on size_t. Handle width
8175change
8176of size_t on 32-bit versus 64-bit generations. Lin Ming.
8177
8178----------------------------------------
817906 August 2010. Summary of changes for version 20100806:
8180
81811) ACPI CA Core Subsystem:
8182
8183Designed and implemented a new host interface to the _OSI support code.
8184This
8185will allow the host to dynamically add or remove multiple _OSI strings,
8186as
8187well as install an optional handler that is called for each _OSI
8188invocation.
8189Also added a new AML debugger command, 'osi' to display and modify the
8190global
8191_OSI string table, and test support in the AcpiExec utility. See the
8192ACPICA
8193reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
8194New Functions:
8195    AcpiInstallInterface - Add an _OSI string.
8196    AcpiRemoveInterface - Delete an _OSI string.
8197    AcpiInstallInterfaceHandler - Install optional _OSI handler.
8198Obsolete Functions:
8199    AcpiOsValidateInterface - no longer used.
8200New Files:
8201    source/components/utilities/utosi.c
8202
8203Re-introduced the support to enable multi-byte transfers for Embedded
8204Controller (EC) operation regions. A reported problem was found to be a
8205bug
8206in the host OS, not in the multi-byte support. Previously, the maximum
8207data
8208size passed to the EC operation region handler was a single byte. There
8209are
8210often EC Fields larger than one byte that need to be transferred, and it
8211is
8212useful for the EC driver to lock these as a single transaction. This
8213change
8214enables single transfers larger than 8 bits. This effectively changes the
8215access to the EC space from ByteAcc to AnyAcc, and will probably require
8216changes to the host OS Embedded Controller driver to enable 16/32/64/256-
8217bit
8218transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
8219
8220Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
8221prototype in acpiosxf.h had the output value pointer as a (void *).
8222It should be a (UINT64 *). This may affect some host OSL code.
8223
8224Fixed a couple problems with the recently modified Linux makefiles for
8225iASL
8226and AcpiExec. These new makefiles place the generated object files in the
8227local directory so that there can be no collisions between the files that
8228are
8229shared between them that are compiled with different options.
8230
8231Example Code and Data Size: These are the sizes for the OS-independent
8232acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8233debug version of the code includes the debug output trace mechanism and
8234has a
8235much larger code and data size.
8236
8237  Previous Release:
8238    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8239    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
8240  Current Release:
8241    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
8242    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
8243
82442) iASL Compiler/Disassembler and Tools:
8245
8246iASL/Disassembler: Added a new option (-da, "disassemble all") to load
8247the
8248namespace from and disassemble an entire group of AML files. Useful for
8249loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
8250and
8251disassembling with one simple command. ACPICA BZ 865. Lin Ming.
8252
8253iASL: Allow multiple invocations of -e option. This change allows
8254multiple
8255uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
8256834.
8257Lin Ming.
8258
8259----------------------------------------
826002 July 2010. Summary of changes for version 20100702:
8261
82621) ACPI CA Core Subsystem:
8263
8264Implemented several updates to the recently added GPE reference count
8265support. The model for "wake" GPEs is changing to give the host OS
8266complete
8267control of these GPEs. Eventually, the ACPICA core will not execute any
8268_PRW
8269methods, since the host already must execute them. Also, additional
8270changes
8271were made to help ensure that the reference counts are kept in proper
8272synchronization with reality. Rafael J. Wysocki.
8273
82741) Ensure that GPEs are not enabled twice during initialization.
82752) Ensure that GPE enable masks stay in sync with the reference count.
82763) Do not inadvertently enable GPEs when writing GPE registers.
82774) Remove the internal wake reference counter and add new AcpiGpeWakeup
8278interface. This interface will set or clear individual GPEs for wakeup.
82795) Remove GpeType argument from AcpiEnable and AcpiDisable. These
8280interfaces
8281are now used for "runtime" GPEs only.
8282
8283Changed the behavior of the GPE install/remove handler interfaces. The
8284GPE
8285is
8286no longer disabled during this process, as it was found to cause problems
8287on
8288some machines. Rafael J. Wysocki.
8289
8290Reverted a change introduced in version 20100528 to enable Embedded
8291Controller multi-byte transfers. This change was found to cause problems
8292with
8293Index Fields and possibly Bank Fields. It will be reintroduced when these
8294problems have been resolved.
8295
8296Fixed a problem with references to Alias objects within Package Objects.
8297A
8298reference to an Alias within the definition of a Package was not always
8299resolved properly. Aliases to objects like Processors, Thermal zones,
8300etc.
8301were resolved to the actual object instead of a reference to the object
8302as
8303it
8304should be. Package objects are only allowed to contain integer, string,
8305buffer, package, and reference objects. Redhat bugzilla 608648.
8306
8307Example Code and Data Size: These are the sizes for the OS-independent
8308acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8309debug version of the code includes the debug output trace mechanism and
8310has a
8311much larger code and data size.
8312
8313  Previous Release:
8314    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8315    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8316  Current Release:
8317    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8318    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
8319
83202) iASL Compiler/Disassembler and Tools:
8321
8322iASL: Implemented a new compiler subsystem to allow definition and
8323compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
8324These
8325are called "ACPI Data Tables", and the new compiler is the "Data Table
8326Compiler". This compiler is intended to simplify the existing error-prone
8327process of creating these tables for the BIOS, as well as allowing the
8328disassembly, modification, recompilation, and override of existing ACPI
8329data
8330tables. See the iASL User Guide for detailed information.
8331
8332iASL: Implemented a new Template Generator option in support of the new
8333Data
8334Table Compiler. This option will create examples of all known ACPI tables
8335that can be used as the basis for table development. See the iASL
8336documentation and the -T option.
8337
8338Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
8339Descriptor Table).
8340
8341Updated the Linux makefiles for iASL and AcpiExec to place the generated
8342object files in the local directory so that there can be no collisions
8343between the shared files between them that are generated with different
8344options.
8345
8346Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
8347Use
8348the #define __APPLE__ to enable this support.
8349
8350----------------------------------------
835128 May 2010. Summary of changes for version 20100528:
8352
8353Note: The ACPI 4.0a specification was released on April 5, 2010 and is
8354available at www.acpi.info. This is primarily an errata release.
8355
83561) ACPI CA Core Subsystem:
8357
8358Undefined ACPI tables: We are looking for the definitions for the
8359following
8360ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
8361
8362Implemented support to enable multi-byte transfers for Embedded
8363Controller
8364(EC) operation regions. Previously, the maximum data size passed to the
8365EC
8366operation region handler was a single byte. There are often EC Fields
8367larger
8368than one byte that need to be transferred, and it is useful for the EC
8369driver
8370to lock these as a single transaction. This change enables single
8371transfers
8372larger than 8 bits. This effectively changes the access to the EC space
8373from
8374ByteAcc to AnyAcc, and will probably require changes to the host OS
8375Embedded
8376Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
8377bit
8378transfers. Alexey Starikovskiy, Lin Ming
8379
8380Implemented a performance enhancement for namespace search and access.
8381This
8382change enhances the performance of namespace searches and walks by adding
8383a
8384backpointer to the parent in each namespace node. On large namespaces,
8385this
8386change can improve overall ACPI performance by up to 9X. Adding a pointer
8387to
8388each namespace node increases the overall size of the internal namespace
8389by
8390about 5%, since each namespace entry usually consists of both a namespace
8391node and an ACPI operand object. However, this is the first growth of the
8392namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
8393
8394Implemented a performance optimization that reduces the number of
8395namespace
8396walks. On control method exit, only walk the namespace if the method is
8397known
8398to have created namespace objects outside of its local scope. Previously,
8399the
8400entire namespace was traversed on each control method exit. This change
8401can
8402improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
8403Moore.
8404
8405Added support to truncate I/O addresses to 16 bits for Windows
8406compatibility.
8407Some ASL code has been seen in the field that inadvertently has bits set
8408above bit 15. This feature is optional and is enabled if the BIOS
8409requests
8410any Windows OSI strings. It can also be enabled by the host OS. Matthew
8411Garrett, Bob Moore.
8412
8413Added support to limit the maximum time for the ASL Sleep() operator. To
8414prevent accidental deep sleeps, limit the maximum time that Sleep() will
8415actually sleep. Configurable, the default maximum is two seconds. ACPICA
8416bugzilla 854.
8417
8418Added run-time validation support for the _WDG and_WED Microsoft
8419predefined
8420methods. These objects are defined by "Windows Instrumentation", and are
8421not
8422part of the ACPI spec. ACPICA BZ 860.
8423
8424Expanded all statistic counters used during namespace and device
8425initialization from 16 to 32 bits in order to support very large
8426namespaces.
8427
8428Replaced all instances of %d in printf format specifiers with %u since
8429nearly
8430all integers in ACPICA are unsigned.
8431
8432Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
8433returned
8434as AE_NO_HANDLER.
8435
8436Example Code and Data Size: These are the sizes for the OS-independent
8437acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8438debug version of the code includes the debug output trace mechanism and
8439has a
8440much larger code and data size.
8441
8442  Previous Release:
8443    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8444    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8445  Current Release:
8446    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8447    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8448
84492) iASL Compiler/Disassembler and Tools:
8450
8451iASL: Added compiler support for the _WDG and_WED Microsoft predefined
8452methods. These objects are defined by "Windows Instrumentation", and are
8453not
8454part of the ACPI spec. ACPICA BZ 860.
8455
8456AcpiExec: added option to disable the memory tracking mechanism. The -dt
8457option will disable the tracking mechanism, which improves performance
8458considerably.
8459
8460AcpiExec: Restructured the command line options into -d (disable) and -e
8461(enable) options.
8462
8463----------------------------------------
846428 April 2010. Summary of changes for version 20100428:
8465
84661) ACPI CA Core Subsystem:
8467
8468Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
8469including FADT-based and GPE Block Devices, execute any _PRW methods in
8470the
8471new table, and process any _Lxx/_Exx GPE methods in the new table. Any
8472runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
8473immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
8474Devices. Provides compatibility with other ACPI implementations. Two new
8475files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
8476Moore.
8477
8478Fixed a regression introduced in version 20100331 within the table
8479manager
8480where initial table loading could fail. This was introduced in the fix
8481for
8482AcpiReallocateRootTable. Also, renamed some of fields in the table
8483manager
8484data structures to clarify their meaning and use.
8485
8486Fixed a possible allocation overrun during internal object copy in
8487AcpiUtCopySimpleObject. The original code did not correctly handle the
8488case
8489where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
8490847.
8491
8492Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
8493possible access beyond end-of-allocation. Also, now fully validate
8494descriptor
8495(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
8496
8497Example Code and Data Size: These are the sizes for the OS-independent
8498acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8499debug version of the code includes the debug output trace mechanism and
8500has a
8501much larger code and data size.
8502
8503  Previous Release:
8504    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8505    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8506  Current Release:
8507    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8508    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8509
85102) iASL Compiler/Disassembler and Tools:
8511
8512iASL: Implemented Min/Max/Len/Gran validation for address resource
8513descriptors. This change implements validation for the address fields
8514that
8515are common to all address-type resource descriptors. These checks are
8516implemented: Checks for valid Min/Max, length within the Min/Max window,
8517valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
8518per
8519table 6-40 in the ACPI 4.0a specification. Also split the large
8520aslrestype1.c
8521and aslrestype2.c files into five new files. ACPICA BZ 840.
8522
8523iASL: Added support for the _Wxx predefined names. This support was
8524missing
8525and these names were not recognized by the compiler as valid predefined
8526names. ACPICA BZ 851.
8527
8528iASL: Added an error for all predefined names that are defined to return
8529no
8530value and thus must be implemented as Control Methods. These include all
8531of
8532the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
8533names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
8534
8535iASL: Implemented the -ts option to emit hex AML data in ASL format, as
8536an
8537ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
8538be
8539dynamically loaded via the Load() operator. Also cleaned up output for
8540the
8541-
8542ta and -tc options. ACPICA BZ 853.
8543
8544Tests: Added a new file with examples of extended iASL error checking.
8545Demonstrates the advanced error checking ability of the iASL compiler.
8546Available at tests/misc/badcode.asl.
8547
8548----------------------------------------
854931 March 2010. Summary of changes for version 20100331:
8550
85511) ACPI CA Core Subsystem:
8552
8553Completed a major update for the GPE support in order to improve support
8554for
8555shared GPEs and to simplify both host OS and ACPICA code. Added a
8556reference
8557count mechanism to support shared GPEs that require multiple device
8558drivers.
8559Several external interfaces have changed. One external interface has been
8560removed. One new external interface was added. Most of the GPE external
8561interfaces now use the GPE spinlock instead of the events mutex (and the
8562Flags parameter for many GPE interfaces has been removed.) See the
8563updated
8564ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
8565Rafael
8566Wysocki. ACPICA BZ 831.
8567
8568Changed:
8569    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
8570Removed:
8571    AcpiSetGpeType
8572New:
8573    AcpiSetGpe
8574
8575Implemented write support for DataTable operation regions. These regions
8576are
8577defined via the DataTableRegion() operator. Previously, only read support
8578was
8579implemented. The ACPI specification allows DataTableRegions to be
8580read/write,
8581however.
8582
8583Implemented a new subsystem option to force a copy of the DSDT to local
8584memory. Optionally copy the entire DSDT to local memory (instead of
8585simply
8586mapping it.) There are some (albeit very rare) BIOSs that corrupt or
8587replace
8588the original DSDT, creating the need for this option. Default is FALSE,
8589do
8590not copy the DSDT.
8591
8592Implemented detection of a corrupted or replaced DSDT. This change adds
8593support to detect a DSDT that has been corrupted and/or replaced from
8594outside
8595the OS (by firmware). This is typically catastrophic for the system, but
8596has
8597been seen on some machines. Once this problem has been detected, the DSDT
8598copy option can be enabled via system configuration. Lin Ming, Bob Moore.
8599
8600Fixed two problems with AcpiReallocateRootTable during the root table
8601copy.
8602When copying the root table to the new allocation, the length used was
8603incorrect. The new size was used instead of the current table size,
8604meaning
8605too much data was copied. Also, the count of available slots for ACPI
8606tables
8607was not set correctly. Alexey Starikovskiy, Bob Moore.
8608
8609Example Code and Data Size: These are the sizes for the OS-independent
8610acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8611debug version of the code includes the debug output trace mechanism and
8612has a
8613much larger code and data size.
8614
8615  Previous Release:
8616    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8617    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8618  Current Release:
8619    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8620    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8621
86222) iASL Compiler/Disassembler and Tools:
8623
8624iASL: Implement limited typechecking for values returned from predefined
8625control methods. The type of any returned static (unnamed) object is now
8626validated. For example, Return(1). ACPICA BZ 786.
8627
8628iASL: Fixed a predefined name object verification regression. Fixes a
8629problem
8630introduced in version 20100304. An error is incorrectly generated if a
8631predefined name is declared as a static named object with a value defined
8632using the keywords "Zero", "One", or "Ones". Lin Ming.
8633
8634iASL: Added Windows 7 support for the -g option (get local ACPI tables)
8635by
8636reducing the requested registry access rights. ACPICA BZ 842.
8637
8638Disassembler: fixed a possible fault when generating External()
8639statements.
8640Introduced in commit ae7d6fd: Properly handle externals with parent-
8641prefix
8642(carat). Fixes a string length allocation calculation. Lin Ming.
8643
8644----------------------------------------
864504 March 2010. Summary of changes for version 20100304:
8646
86471) ACPI CA Core Subsystem:
8648
8649Fixed a possible problem with the AML Mutex handling function
8650AcpiExReleaseMutex where the function could fault under the very rare
8651condition when the interpreter has blocked, the interpreter lock is
8652released,
8653the interpreter is then reentered via the same thread, and attempts to
8654acquire an AML mutex that was previously acquired. FreeBSD report 140979.
8655Lin
8656Ming.
8657
8658Implemented additional configuration support for the AML "Debug Object".
8659Output from the debug object can now be enabled via a global variable,
8660AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
8661debugging.
8662This debug output is now available in the release version of ACPICA
8663instead
8664of just the debug version. Also, the entire debug output module can now
8665be
8666configured out of the ACPICA build if desired. One new file added,
8667executer/exdebug.c. Lin Ming, Bob Moore.
8668
8669Added header support for the ACPI MCHI table (Management Controller Host
8670Interface Table). This table was added in ACPI 4.0, but the defining
8671document
8672has only recently become available.
8673
8674Standardized output of integer values for ACPICA warnings/errors. Always
8675use
86760x prefix for hex output, always use %u for unsigned integer decimal
8677output.
8678Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
8679400
8680invocations.) These invocations were converted from the original
8681ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
8682
8683Example Code and Data Size: These are the sizes for the OS-independent
8684acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8685debug version of the code includes the debug output trace mechanism and
8686has a
8687much larger code and data size.
8688
8689  Previous Release:
8690    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8691    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8692  Current Release:
8693    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8694    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8695
86962) iASL Compiler/Disassembler and Tools:
8697
8698iASL: Implemented typechecking support for static (non-control method)
8699predefined named objects that are declared with the Name() operator. For
8700example, the type of this object is now validated to be of type Integer:
8701Name(_BBN, 1). This change migrates the compiler to using the core
8702predefined
8703name table instead of maintaining a local version. Added a new file,
8704aslpredef.c. ACPICA BZ 832.
8705
8706Disassembler: Added support for the ACPI 4.0 MCHI table.
8707
8708----------------------------------------
870921 January 2010. Summary of changes for version 20100121:
8710
87111) ACPI CA Core Subsystem:
8712
8713Added the 2010 copyright to all module headers and signons. This affects
8714virtually every file in the ACPICA core subsystem, the iASL compiler, the
8715tools/utilities, and the test suites.
8716
8717Implemented a change to the AcpiGetDevices interface to eliminate
8718unnecessary
8719invocations of the _STA method. In the case where a specific _HID is
8720requested, do not run _STA until a _HID match is found. This eliminates
8721potentially dozens of _STA calls during a search for a particular
8722device/HID,
8723which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
8724
8725Implemented an additional repair for predefined method return values.
8726Attempt
8727to repair unexpected NULL elements within returned Package objects.
8728Create
8729an
8730Integer of value zero, a NULL String, or a zero-length Buffer as
8731appropriate.
8732ACPICA BZ 818. Lin Ming, Bob Moore.
8733
8734Removed the obsolete ACPI_INTEGER data type. This type was introduced as
8735the
8736code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
8737(with
873864-bit AML integers). It is now obsolete and this change removes it from
8739the
8740ACPICA code base, replaced by UINT64. The original typedef has been
8741retained
8742for now for compatibility with existing device driver code. ACPICA BZ
8743824.
8744
8745Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
8746in
8747the parse tree object.
8748
8749Added additional warning options for the gcc-4 generation. Updated the
8750source
8751accordingly. This includes some code restructuring to eliminate
8752unreachable
8753code, elimination of some gotos, elimination of unused return values,
8754some
8755additional casting, and removal of redundant declarations.
8756
8757Example Code and Data Size: These are the sizes for the OS-independent
8758acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8759debug version of the code includes the debug output trace mechanism and
8760has a
8761much larger code and data size.
8762
8763  Previous Release:
8764    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8765    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8766  Current Release:
8767    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8768    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8769
87702) iASL Compiler/Disassembler and Tools:
8771
8772No functional changes for this release.
8773
8774----------------------------------------
877514 December 2009. Summary of changes for version 20091214:
8776
87771) ACPI CA Core Subsystem:
8778
8779Enhanced automatic data type conversions for predefined name repairs.
8780This
8781change expands the automatic repairs/conversions for predefined name
8782return
8783values to make Integers, Strings, and Buffers fully interchangeable.
8784Also,
8785a
8786Buffer can be converted to a Package of Integers if necessary. The
8787nsrepair.c
8788module was completely restructured. Lin Ming, Bob Moore.
8789
8790Implemented automatic removal of null package elements during predefined
8791name
8792repairs. This change will automatically remove embedded and trailing NULL
8793package elements from returned package objects that are defined to
8794contain
8795a
8796variable number of sub-packages. The driver is then presented with a
8797package
8798with no null elements to deal with. ACPICA BZ 819.
8799
8800Implemented a repair for the predefined _FDE and _GTM names. The expected
8801return value for both names is a Buffer of 5 DWORDs. This repair fixes
8802two
8803possible problems (both seen in the field), where a package of integers
8804is
8805returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
8806Kim.
8807
8808Implemented additional module-level code support. This change will
8809properly
8810execute module-level code that is not at the root of the namespace (under
8811a
8812Device object, etc.). Now executes the code within the current scope
8813instead
8814of the root. ACPICA BZ 762. Lin Ming.
8815
8816Fixed possible mutex acquisition errors when running _REG methods. Fixes
8817a
8818problem where mutex errors can occur when running a _REG method that is
8819in
8820the same scope as a method-defined operation region or an operation
8821region
8822under a module-level IF block. This type of code is rare, so the problem
8823has
8824not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
8825
8826Fixed a possible memory leak during module-level code execution. An
8827object
8828could be leaked for each block of executed module-level code if the
8829interpreter slack mode is enabled This change deletes any implicitly
8830returned
8831object from the module-level code block. Lin Ming.
8832
8833Removed messages for successful predefined repair(s). The repair
8834mechanism
8835was considered too wordy. Now, messages are only unconditionally emitted
8836if
8837the return object cannot be repaired. Existing messages for successful
8838repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
8839827.
8840
8841Example Code and Data Size: These are the sizes for the OS-independent
8842acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8843debug version of the code includes the debug output trace mechanism and
8844has a
8845much larger code and data size.
8846
8847  Previous Release:
8848    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8849    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8850  Current Release:
8851    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8852    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8853
88542) iASL Compiler/Disassembler and Tools:
8855
8856iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
8857files
8858were no longer automatically removed at the termination of the compile.
8859
8860acpiexec: Implemented the -f option to specify default region fill value.
8861This option specifies the value used to initialize buffers that simulate
8862operation regions. Default value is zero. Useful for debugging problems
8863that
8864depend on a specific initial value for a region or field.
8865
8866----------------------------------------
886712 November 2009. Summary of changes for version 20091112:
8868
88691) ACPI CA Core Subsystem:
8870
8871Implemented a post-order callback to AcpiWalkNamespace. The existing
8872interface only has a pre-order callback. This change adds an additional
8873parameter for a post-order callback which will be more useful for bus
8874scans.
8875ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
8876
8877Modified the behavior of the operation region memory mapping cache for
8878SystemMemory. Ensure that the memory mappings created for operation
8879regions
8880do not cross 4K page boundaries. Crossing a page boundary while mapping
8881regions can cause kernel warnings on some hosts if the pages have
8882different
8883attributes. Such regions are probably BIOS bugs, and this is the
8884workaround.
8885Linux BZ 14445. Lin Ming.
8886
8887Implemented an automatic repair for predefined methods that must return
8888sorted lists. This change will repair (by sorting) packages returned by
8889_ALR,
8890_PSS, and _TSS. Drivers can now assume that the packages are correctly
8891sorted
8892and do not contain NULL package elements. Adds one new file,
8893namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
8894
8895Fixed a possible fault during predefined name validation if a return
8896Package
8897object contains NULL elements. Also adds a warning if a NULL element is
8898followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
8899may
8900include repair or removal of all such NULL elements where possible.
8901
8902Implemented additional module-level executable AML code support. This
8903change
8904will execute module-level code that is not at the root of the namespace
8905(under a Device object, etc.) at table load time. Module-level executable
8906AML
8907code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
8908
8909Implemented a new internal function to create Integer objects. This
8910function
8911simplifies miscellaneous object creation code. ACPICA BZ 823.
8912
8913Reduced the severity of predefined repair messages, Warning to Info.
8914Since
8915the object was successfully repaired, a warning is too severe. Reduced to
8916an
8917info message for now. These messages may eventually be changed to debug-
8918only.
8919ACPICA BZ 812.
8920
8921Example Code and Data Size: These are the sizes for the OS-independent
8922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8923debug version of the code includes the debug output trace mechanism and
8924has a
8925much larger code and data size.
8926
8927  Previous Release:
8928    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8929    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8930  Current Release:
8931    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8932    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8933
89342) iASL Compiler/Disassembler and Tools:
8935
8936iASL: Implemented Switch() with While(1) so that Break works correctly.
8937This
8938change correctly implements the Switch operator with a surrounding
8939While(1)
8940so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
8941
8942iASL: Added a message if a package initializer list is shorter than
8943package
8944length. Adds a new remark for a Package() declaration if an initializer
8945list
8946exists, but is shorter than the declared length of the package. Although
8947technically legal, this is probably a coding error and it is seen in the
8948field. ACPICA BZ 815. Lin Ming, Bob Moore.
8949
8950iASL: Fixed a problem where the compiler could fault after the maximum
8951number
8952of errors was reached (200).
8953
8954acpixtract: Fixed a possible warning for pointer cast if the compiler
8955warning
8956level set very high.
8957
8958----------------------------------------
895913 October 2009. Summary of changes for version 20091013:
8960
89611) ACPI CA Core Subsystem:
8962
8963Fixed a problem where an Operation Region _REG method could be executed
8964more
8965than once. If a custom address space handler is installed by the host
8966before
8967the "initialize operation regions" phase of the ACPICA initialization,
8968any
8969_REG methods for that address space could be executed twice. This change
8970fixes the problem. ACPICA BZ 427. Lin Ming.
8971
8972Fixed a possible memory leak for the Scope() ASL operator. When the exact
8973invocation of "Scope(\)" is executed (change scope to root), one internal
8974operand object was leaked. Lin Ming.
8975
8976Implemented a run-time repair for the _MAT predefined method. If the _MAT
8977return value is defined as a Field object in the AML, and the field
8978size is less than or equal to the default width of an integer (32 or
897964),_MAT
8980can incorrectly return an Integer instead of a Buffer. ACPICA now
8981automatically repairs this problem. ACPICA BZ 810.
8982
8983Implemented a run-time repair for the _BIF and _BIX predefined methods.
8984The
8985"OEM Information" field is often incorrectly returned as an Integer with
8986value zero if the field is not supported by the platform. This is due to
8987an
8988ambiguity in the ACPI specification. The field should always be a string.
8989ACPICA now automatically repairs this problem by returning a NULL string
8990within the returned Package. ACPICA BZ 807.
8991
8992Example Code and Data Size: These are the sizes for the OS-independent
8993acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8994debug version of the code includes the debug output trace mechanism and
8995has a
8996much larger code and data size.
8997
8998  Previous Release:
8999    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
9000    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
9001  Current Release:
9002    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
9003    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
9004
90052) iASL Compiler/Disassembler and Tools:
9006
9007Disassembler: Fixed a problem where references to external symbols that
9008contained one or more parent-prefixes (carats) were not handled
9009correctly,
9010possibly causing a fault. ACPICA BZ 806. Lin Ming.
9011
9012Disassembler: Restructured the code so that all functions that handle
9013external symbols are in a single module. One new file is added,
9014common/dmextern.c.
9015
9016AML Debugger: Added a max count argument for the Batch command (which
9017executes multiple predefined methods within the namespace.)
9018
9019iASL: Updated the compiler documentation (User Reference.) Available at
9020http://www.acpica.org/documentation/. ACPICA BZ 750.
9021
9022AcpiXtract: Updated for Lint and other formatting changes. Close all open
9023files.
9024
9025----------------------------------------
902603 September 2009. Summary of changes for version 20090903:
9027
90281) ACPI CA Core Subsystem:
9029
9030For Windows Vista compatibility, added the automatic execution of an _INI
9031method located at the namespace root (\_INI). This method is executed at
9032table load time. This support is in addition to the automatic execution
9033of
9034\_SB._INI. Lin Ming.
9035
9036Fixed a possible memory leak in the interpreter for AML package objects
9037if
9038the package initializer list is longer than the defined size of the
9039package.
9040This apparently can only happen if the BIOS changes the package size on
9041the
9042fly (seen in a _PSS object), as ASL compilers do not allow this. The
9043interpreter will truncate the package to the defined size (and issue an
9044error
9045message), but previously could leave the extra objects undeleted if they
9046were
9047pre-created during the argument processing (such is the case if the
9048package
9049consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
9050
9051Fixed a problem seen when a Buffer or String is stored to itself via ASL.
9052This has been reported in the field. Previously, ACPICA would zero out
9053the
9054buffer/string. Now, the operation is treated as a noop. Provides Windows
9055compatibility. ACPICA BZ 803. Lin Ming.
9056
9057Removed an extraneous error message for ASL constructs of the form
9058Store(LocalX,LocalX) when LocalX is uninitialized. These curious
9059statements
9060are seen in many BIOSs and are once again treated as NOOPs and no error
9061is
9062emitted when they are encountered. ACPICA BZ 785.
9063
9064Fixed an extraneous warning message if a _DSM reserved method returns a
9065Package object. _DSM can return any type of object, so validation on the
9066return type cannot be performed. ACPICA BZ 802.
9067
9068Example Code and Data Size: These are the sizes for the OS-independent
9069acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9070debug version of the code includes the debug output trace mechanism and
9071has a
9072much larger code and data size.
9073
9074  Previous Release:
9075    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
9076    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
9077  Current Release:
9078    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
9079    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
9080
90812) iASL Compiler/Disassembler and Tools:
9082
9083iASL: Fixed a problem with the use of the Alias operator and Resource
9084Templates. The correct alias is now constructed and no error is emitted.
9085ACPICA BZ 738.
9086
9087iASL: Implemented the -I option to specify additional search directories
9088for
9089include files. Allows multiple additional search paths for include files.
9090Directories are searched in the order specified on the command line
9091(after
9092the local directory is searched.) ACPICA BZ 800.
9093
9094iASL: Fixed a problem where the full pathname for include files was not
9095emitted for warnings/errors. This caused the IDE support to not work
9096properly. ACPICA BZ 765.
9097
9098iASL: Implemented the -@ option to specify a Windows-style response file
9099containing additional command line options. ACPICA BZ 801.
9100
9101AcpiExec: Added support to load multiple AML files simultaneously (such
9102as
9103a
9104DSDT and multiple SSDTs). Also added support for wildcards within the AML
9105pathname. These features allow all machine tables to be easily loaded and
9106debugged together. ACPICA BZ 804.
9107
9108Disassembler: Added missing support for disassembly of HEST table Error
9109Bank
9110subtables.
9111
9112----------------------------------------
911330 July 2009. Summary of changes for version 20090730:
9114
9115The ACPI 4.0 implementation for ACPICA is complete with this release.
9116
91171) ACPI CA Core Subsystem:
9118
9119ACPI 4.0: Added header file support for all new and changed ACPI tables.
9120Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
9121new
9122for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
9123BERT,
9124EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
9125There
9126have been some ACPI 4.0 changes to other existing tables. Split the large
9127actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
9128
9129ACPI 4.0: Implemented predefined name validation for all new names. There
9130are
913131 new names in ACPI 4.0. The predefined validation module was split into
9132two
9133files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
9134
9135Implemented support for so-called "module-level executable code". This is
9136executable AML code that exists outside of any control method and is
9137intended
9138to be executed at table load time. Although illegal since ACPI 2.0, this
9139type
9140of code still exists and is apparently still being created. Blocks of
9141this
9142code are now detected and executed as intended. Currently, the code
9143blocks
9144must exist under either an If, Else, or While construct; these are the
9145typical cases seen in the field. ACPICA BZ 762. Lin Ming.
9146
9147Implemented an automatic dynamic repair for predefined names that return
9148nested Package objects. This applies to predefined names that are defined
9149to
9150return a variable-length Package of sub-packages. If the number of sub-
9151packages is one, BIOS code is occasionally seen that creates a simple
9152single
9153package with no sub-packages. This code attempts to fix the problem by
9154wrapping a new package object around the existing package. These methods
9155can
9156be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
9157BZ
9158790.
9159
9160Fixed a regression introduced in 20090625 for the AcpiGetDevices
9161interface.
9162The _HID/_CID matching was broken and no longer matched IDs correctly.
9163ACPICA
9164BZ 793.
9165
9166Fixed a problem with AcpiReset where the reset would silently fail if the
9167register was one of the protected I/O ports. AcpiReset now bypasses the
9168port
9169validation mechanism. This may eventually be driven into the
9170AcpiRead/Write
9171interfaces.
9172
9173Fixed a regression related to the recent update of the AcpiRead/Write
9174interfaces. A sleep/suspend could fail if the optional PM2 Control
9175register
9176does not exist during an attempt to write the Bus Master Arbitration bit.
9177(However, some hosts already delete the code that writes this bit, and
9178the
9179code may in fact be obsolete at this date.) ACPICA BZ 799.
9180
9181Fixed a problem where AcpiTerminate could fault if inadvertently called
9182twice
9183in succession. ACPICA BZ 795.
9184
9185Example Code and Data Size: These are the sizes for the OS-independent
9186acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9187debug version of the code includes the debug output trace mechanism and
9188has a
9189much larger code and data size.
9190
9191  Previous Release:
9192    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
9193    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
9194  Current Release:
9195    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
9196    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
9197
91982) iASL Compiler/Disassembler and Tools:
9199
9200ACPI 4.0: Implemented disassembler support for all new ACPI tables and
9201changes to existing tables. ACPICA BZ 775.
9202
9203----------------------------------------
920425 June 2009. Summary of changes for version 20090625:
9205
9206The ACPI 4.0 Specification was released on June 16 and is available at
9207www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
9208continue for the next few releases.
9209
92101) ACPI CA Core Subsystem:
9211
9212ACPI 4.0: Implemented interpreter support for the IPMI operation region
9213address space. Includes support for bi-directional data buffers and an
9214IPMI
9215address space handler (to be installed by an IPMI device driver.) ACPICA
9216BZ
9217773. Lin Ming.
9218
9219ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
9220Includes
9221support in both the header files and the disassembler.
9222
9223Completed a major update for the AcpiGetObjectInfo external interface.
9224Changes include:
9225 - Support for variable, unlimited length HID, UID, and CID strings.
9226 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
9227etc.)
9228 - Call the _SxW power methods on behalf of a device object.
9229 - Determine if a device is a PCI root bridge.
9230 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
9231These changes will require an update to all callers of this interface.
9232See
9233the updated ACPICA Programmer Reference for details. One new source file
9234has
9235been added - utilities/utids.c. ACPICA BZ 368, 780.
9236
9237Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
9238transfers. The Value parameter has been extended from 32 bits to 64 bits
9239in
9240order to support new ACPI 4.0 tables. These changes will require an
9241update
9242to
9243all callers of these interfaces. See the ACPICA Programmer Reference for
9244details. ACPICA BZ 768.
9245
9246Fixed several problems with AcpiAttachData. The handler was not invoked
9247when
9248the host node was deleted. The data sub-object was not automatically
9249deleted
9250when the host node was deleted. The interface to the handler had an
9251unused
9252parameter, this was removed. ACPICA BZ 778.
9253
9254Enhanced the function that dumps ACPI table headers. All non-printable
9255characters in the string fields are now replaced with '?' (Signature,
9256OemId,
9257OemTableId, and CompilerId.) ACPI tables with non-printable characters in
9258these fields are occasionally seen in the field. ACPICA BZ 788.
9259
9260Fixed a problem with predefined method repair code where the code that
9261attempts to repair/convert an object of incorrect type is only executed
9262on
9263the first time the predefined method is called. The mechanism that
9264disables
9265warnings on subsequent calls was interfering with the repair mechanism.
9266ACPICA BZ 781.
9267
9268Fixed a possible memory leak in the predefined validation/repair code
9269when
9270a
9271buffer is automatically converted to an expected string object.
9272
9273Removed obsolete 16-bit files from the distribution and from the current
9274git
9275tree head. ACPICA BZ 776.
9276
9277Example Code and Data Size: These are the sizes for the OS-independent
9278acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9279debug version of the code includes the debug output trace mechanism and
9280has a
9281much larger code and data size.
9282
9283  Previous Release:
9284    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9285    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9286  Current Release:
9287    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
9288    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
9289
92902) iASL Compiler/Disassembler and Tools:
9291
9292ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
9293operation region keyword. ACPICA BZ 771, 772. Lin Ming.
9294
9295ACPI 4.0: iASL - implemented compile-time validation support for all new
9296predefined names and control methods (31 total). ACPICA BZ 769.
9297
9298----------------------------------------
929921 May 2009. Summary of changes for version 20090521:
9300
93011) ACPI CA Core Subsystem:
9302
9303Disabled the preservation of the SCI enable bit in the PM1 control
9304register.
9305The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
9306to
9307be
9308a "preserved" bit - "OSPM always preserves this bit position", section
93094.7.3.2.1. However, some machines fail if this bit is in fact preserved
9310because the bit needs to be explicitly set by the OS as a workaround. No
9311machines fail if the bit is not preserved. Therefore, ACPICA no longer
9312attempts to preserve this bit.
9313
9314Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
9315incorrectly formed _PRT package could cause a fault. Added validation to
9316ensure that each package element is actually a sub-package.
9317
9318Implemented a new interface to install or override a single control
9319method,
9320AcpiInstallMethod. This interface is useful when debugging in order to
9321repair
9322an existing method or to install a missing method without having to
9323override
9324the entire ACPI table. See the ACPICA Programmer Reference for use and
9325examples. Lin Ming, Bob Moore.
9326
9327Fixed several reference count issues with the DdbHandle object that is
9328created from a Load or LoadTable operator. Prevent premature deletion of
9329the
9330object. Also, mark the object as invalid once the table has been
9331unloaded.
9332This is needed because the handle itself may not be deleted after the
9333table
9334unload, depending on whether it has been stored in a named object by the
9335caller. Lin Ming.
9336
9337Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
9338mutexes of the same sync level are acquired but then not released in
9339strict
9340opposite order, the internally maintained Current Sync Level becomes
9341confused
9342and can cause subsequent execution errors. ACPICA BZ 471.
9343
9344Changed the allowable release order for ASL mutex objects. The ACPI 4.0
9345specification has been changed to make the SyncLevel for mutex objects
9346more
9347useful. When releasing a mutex, the SyncLevel of the mutex must now be
9348the
9349same as the current sync level. This makes more sense than the previous
9350rule
9351(SyncLevel less than or equal). This change updates the code to match the
9352specification.
9353
9354Fixed a problem with the local version of the AcpiOsPurgeCache function.
9355The
9356(local) cache must be locked during all cache object deletions. Andrew
9357Baumann.
9358
9359Updated the Load operator to use operation region interfaces. This
9360replaces
9361direct memory mapping with region access calls. Now, all region accesses
9362go
9363through the installed region handler as they should.
9364
9365Simplified and optimized the NsGetNextNode function. Reduced parameter
9366count
9367and reduced code for this frequently used function.
9368
9369Example Code and Data Size: These are the sizes for the OS-independent
9370acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9371debug version of the code includes the debug output trace mechanism and
9372has a
9373much larger code and data size.
9374
9375  Previous Release:
9376    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9377    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9378  Current Release:
9379    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9380    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9381
93822) iASL Compiler/Disassembler and Tools:
9383
9384Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
9385problems
9386with sub-table disassembly and handling invalid sub-tables. Attempt
9387recovery
9388after an invalid sub-table ID.
9389
9390----------------------------------------
939122 April 2009. Summary of changes for version 20090422:
9392
93931) ACPI CA Core Subsystem:
9394
9395Fixed a compatibility issue with the recently released I/O port
9396protection
9397mechanism. For windows compatibility, 1) On a port protection violation,
9398simply ignore the request and do not return an exception (allow the
9399control
9400method to continue execution.) 2) If only part of the request overlaps a
9401protected port, read/write the individual ports that are not protected.
9402Linux
9403BZ 13036. Lin Ming
9404
9405Enhanced the execution of the ASL/AML BreakPoint operator so that it
9406actually
9407breaks into the AML debugger if the debugger is present. This matches the
9408ACPI-defined behavior.
9409
9410Fixed several possible warnings related to the use of the configurable
9411ACPI_THREAD_ID. This type can now be configured as either an integer or a
9412pointer with no warnings. Also fixes several warnings in printf-like
9413statements for the 64-bit build when the type is configured as a pointer.
9414ACPICA BZ 766, 767.
9415
9416Fixed a number of possible warnings when compiling with gcc 4+ (depending
9417on
9418warning options.) Examples include printf formats, aliasing, unused
9419globals,
9420missing prototypes, missing switch default statements, use of non-ANSI
9421library functions, use of non-ANSI constructs. See generate/unix/Makefile
9422for
9423a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
9424
9425Example Code and Data Size: These are the sizes for the OS-independent
9426acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9427debug version of the code includes the debug output trace mechanism and
9428has a
9429much larger code and data size.
9430
9431  Previous 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  Current Release:
9435    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9436    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9437
94382) iASL Compiler/Disassembler and Tools:
9439
9440iASL: Fixed a generation warning from Bison 2.3 and fixed several
9441warnings
9442on
9443the 64-bit build.
9444
9445iASL: Fixed a problem where the Unix/Linux versions of the compiler could
9446not
9447correctly digest Windows/DOS formatted files (with CR/LF).
9448
9449iASL: Added a new option for "quiet mode" (-va) that produces only the
9450compilation summary, not individual errors and warnings. Useful for large
9451batch compilations.
9452
9453AcpiExec: Implemented a new option (-z) to enable a forced
9454semaphore/mutex
9455timeout that can be used to detect hang conditions during execution of
9456AML
9457code (includes both internal semaphores and AML-defined mutexes and
9458events.)
9459
9460Added new makefiles for the generation of acpica in a generic unix-like
9461environment. These makefiles are intended to generate the acpica tools
9462and
9463utilities from the original acpica git source tree structure.
9464
9465Test Suites: Updated and cleaned up the documentation files. Updated the
9466copyrights to 2009, affecting all source files. Use the new version of
9467iASL
9468with quiet mode. Increased the number of available semaphores in the
9469Windows
9470OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
9471added
9472an alternate implementation of the semaphore timeout to allow aslts to
9473execute fully on Cygwin.
9474
9475----------------------------------------
947620 March 2009. Summary of changes for version 20090320:
9477
94781) ACPI CA Core Subsystem:
9479
9480Fixed a possible race condition between AcpiWalkNamespace and dynamic
9481table
9482unloads. Added a reader/writer locking mechanism to allow multiple
9483concurrent
9484namespace walks (readers), but block a dynamic table unload until it can
9485gain
9486exclusive write access to the namespace. This fixes a problem where a
9487table
9488unload could (possibly catastrophically) delete the portion of the
9489namespace
9490that is currently being examined by a walk. Adds a new file, utlock.c,
9491that
9492implements the reader/writer lock mechanism. ACPICA BZ 749.
9493
9494Fixed a regression introduced in version 20090220 where a change to the
9495FADT
9496handling could cause the ACPICA subsystem to access non-existent I/O
9497ports.
9498
9499Modified the handling of FADT register and table (FACS/DSDT) addresses.
9500The
9501FADT can contain both 32-bit and 64-bit versions of these addresses.
9502Previously, the 64-bit versions were favored, meaning that if both 32 and
950364
9504versions were valid, but not equal, the 64-bit version was used. This was
9505found to cause some machines to fail. Now, in this case, the 32-bit
9506version
9507is used instead. This now matches the Windows behavior.
9508
9509Implemented a new mechanism to protect certain I/O ports. Provides
9510Microsoft
9511compatibility and protects the standard PC I/O ports from access via AML
9512code. Adds a new file, hwvalid.c
9513
9514Fixed a possible extraneous warning message from the FADT support. The
9515message warns of a 32/64 length mismatch between the legacy and GAS
9516definitions for a register.
9517
9518Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
9519is
9520made obsolete by the port protection mechanism above. It was previously
9521used
9522to validate the entire address range of an operation region, which could
9523be
9524incorrect if the range included illegal ports, but fields within the
9525operation region did not actually access those ports. Validation is now
9526performed on a per-field basis instead of the entire region.
9527
9528Modified the handling of the PM1 Status Register ignored bit (bit 11.)
9529Ignored bits must be "preserved" according to the ACPI spec. Usually,
9530this
9531means a read/modify/write when writing to the register. However, for
9532status
9533registers, writing a one means clear the event. Writing a zero means
9534preserve
9535the event (do not clear.) This behavior is clarified in the ACPI 4.0
9536spec,
9537and the ACPICA code now simply always writes a zero to the ignored bit.
9538
9539Modified the handling of ignored bits for the PM1 A/B Control Registers.
9540As
9541per the ACPI specification, for the control registers, preserve
9542(read/modify/write) all bits that are defined as either reserved or
9543ignored.
9544
9545Updated the handling of write-only bits in the PM1 A/B Control Registers.
9546When reading the register, zero the write-only bits as per the ACPI spec.
9547ACPICA BZ 443. Lin Ming.
9548
9549Removed "Linux" from the list of supported _OSI strings. Linux no longer
9550wants to reply true to this request. The Windows strings are the only
9551paths
9552through the AML that are tested and known to work properly.
9553
9554  Previous Release:
9555    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9556    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9557  Current Release:
9558    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9559    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9560
95612) iASL Compiler/Disassembler and Tools:
9562
9563Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
9564and
9565aetables.c
9566
9567----------------------------------------
956820 February 2009. Summary of changes for version 20090220:
9569
95701) ACPI CA Core Subsystem:
9571
9572Optimized the ACPI register locking. Removed locking for reads from the
9573ACPI
9574bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
9575is
9576not required when reading the single-bit registers. The
9577AcpiGetRegisterUnlocked function is no longer needed and has been
9578removed.
9579This will improve performance for reads on these registers. ACPICA BZ
9580760.
9581
9582Fixed the parameter validation for AcpiRead/Write. Now return
9583AE_BAD_PARAMETER if the input register pointer is null, and
9584AE_BAD_ADDRESS
9585if
9586the register has an address of zero. Previously, these cases simply
9587returned
9588AE_OK. For optional registers such as PM1B status/enable/control, the
9589caller
9590should check for a valid register address before calling. ACPICA BZ 748.
9591
9592Renamed the external ACPI bit register access functions. Renamed
9593AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
9594functions. The new names are AcpiReadBitRegister and
9595AcpiWriteBitRegister.
9596Also, restructured the code for these functions by simplifying the code
9597path
9598and condensing duplicate code to reduce code size.
9599
9600Added new functions to transparently handle the possibly split PM1 A/B
9601registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
9602functions
9603now handle the split registers for PM1 Status, Enable, and Control.
9604ACPICA
9605BZ
9606746.
9607
9608Added a function to handle the PM1 control registers,
9609AcpiHwWritePm1Control.
9610This function writes both of the PM1 control registers (A/B). These
9611registers
9612are different than the PM1 A/B status and enable registers in that
9613different
9614values can be written to the A/B registers. Most notably, the SLP_TYP
9615bits
9616can be different, as per the values returned from the _Sx predefined
9617methods.
9618
9619Removed an extra register write within AcpiHwClearAcpiStatus. This
9620function
9621was writing an optional PM1B status register twice. The existing call to
9622the
9623low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
9624A/B
9625register. ACPICA BZ 751.
9626
9627Split out the PM1 Status registers from the FADT. Added new globals for
9628these
9629registers (A/B), similar to the way the PM1 Enable registers are handled.
9630Instead of overloading the FADT Event Register blocks. This makes the
9631code
9632clearer and less prone to error.
9633
9634Fixed the warning message for when the platform contains too many ACPI
9635tables
9636for the default size of the global root table data structure. The
9637calculation
9638for the truncation value was incorrect.
9639
9640Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
9641obsolete macro, since it is now a simple reference to ->common.type.
9642There
9643were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
9644
9645Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
9646TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
9647simply SLEEP_TYPE. ACPICA BZ 754.
9648
9649Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
9650function is only needed on 64-bit host operating systems and is thus not
9651included for 32-bit hosts.
9652
9653Debug output: print the input and result for invocations of the _OSI
9654reserved
9655control method via the ACPI_LV_INFO debug level. Also, reduced some of
9656the
9657verbosity of this debug level. Len Brown.
9658
9659Example Code and Data Size: These are the sizes for the OS-independent
9660acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9661debug version of the code includes the debug output trace mechanism and
9662has a
9663much larger code and data size.
9664
9665  Previous Release:
9666    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9667    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9668  Current Release:
9669    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9670    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9671
96722) iASL Compiler/Disassembler and Tools:
9673
9674Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
9675various legal performance profiles.
9676
9677----------------------------------------
967823 January 2009. Summary of changes for version 20090123:
9679
96801) ACPI CA Core Subsystem:
9681
9682Added the 2009 copyright to all module headers and signons. This affects
9683virtually every file in the ACPICA core subsystem, the iASL compiler, and
9684the tools/utilities.
9685
9686Implemented a change to allow the host to override any ACPI table,
9687including
9688dynamically loaded tables. Previously, only the DSDT could be replaced by
9689the
9690host. With this change, the AcpiOsTableOverride interface is called for
9691each
9692table found in the RSDT/XSDT during ACPICA initialization, and also
9693whenever
9694a table is dynamically loaded via the AML Load operator.
9695
9696Updated FADT flag definitions, especially the Boot Architecture flags.
9697
9698Debugger: For the Find command, automatically pad the input ACPI name
9699with
9700underscores if the name is shorter than 4 characters. This enables a
9701match
9702with the actual namespace entry which is itself padded with underscores.
9703
9704Example Code and Data Size: These are the sizes for the OS-independent
9705acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9706debug version of the code includes the debug output trace mechanism and
9707has a
9708much larger code and data size.
9709
9710  Previous Release:
9711    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9712    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9713  Current Release:
9714    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9715    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9716
97172) iASL Compiler/Disassembler and Tools:
9718
9719Fix build error under Bison-2.4.
9720
9721Disassembler: Enhanced FADT support. Added decoding of the Boot
9722Architecture
9723flags. Now decode all flags, regardless of the FADT version. Flag output
9724includes the FADT version which first defined each flag.
9725
9726The iASL -g option now dumps the RSDT to a file (in addition to the FADT
9727and
9728DSDT). Windows only.
9729
9730----------------------------------------
973104 December 2008. Summary of changes for version 20081204:
9732
97331) ACPI CA Core Subsystem:
9734
9735The ACPICA Programmer Reference has been completely updated and revamped
9736for
9737this release. This includes updates to the external interfaces, OSL
9738interfaces, the overview sections, and the debugger reference.
9739
9740Several new ACPICA interfaces have been implemented and documented in the
9741programmer reference:
9742AcpiReset - Writes the reset value to the FADT-defined reset register.
9743AcpiDisableAllGpes - Disable all available GPEs.
9744AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
9745AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
9746AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
9747AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
9748AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
9749
9750Most of the public ACPI hardware-related interfaces have been moved to a
9751new
9752file, components/hardware/hwxface.c
9753
9754Enhanced the FADT parsing and low-level ACPI register access: The ACPI
9755register lengths within the FADT are now used, and the low level ACPI
9756register access no longer hardcodes the ACPI register lengths. Given that
9757there may be some risk in actually trusting the FADT register lengths, a
9758run-
9759time option was added to fall back to the default hardcoded lengths if
9760the
9761FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
9762option is set to true for now, and a warning is issued if a suspicious
9763FADT
9764register length is overridden with the default value.
9765
9766Fixed a reference count issue in NsRepairObject. This problem was
9767introduced
9768in version 20081031 as part of a fix to repair Buffer objects within
9769Packages. Lin Ming.
9770
9771Added semaphore support to the Linux/Unix application OS-services layer
9772(OSL). ACPICA BZ 448. Lin Ming.
9773
9774Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
9775will
9776be implemented in the OSL, or will binary semaphores be used instead.
9777
9778Example Code and Data Size: These are the sizes for the OS-independent
9779acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9780debug version of the code includes the debug output trace mechanism and
9781has a
9782much larger code and data size.
9783
9784  Previous Release:
9785    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9786    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9787  Current Release:
9788    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9789    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9790
97912) iASL Compiler/Disassembler and Tools:
9792
9793iASL: Completed the '-e' option to include additional ACPI tables in
9794order
9795to
9796aid with disassembly and External statement generation. ACPICA BZ 742.
9797Lin
9798Ming.
9799
9800iASL: Removed the "named object in while loop" error. The compiler cannot
9801determine how many times a loop will execute. ACPICA BZ 730.
9802
9803Disassembler: Implemented support for FADT revision 2 (MS extension).
9804ACPICA
9805BZ 743.
9806
9807Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
9808MCFG).
9809
9810----------------------------------------
981131 October 2008. Summary of changes for version 20081031:
9812
98131) ACPI CA Core Subsystem:
9814
9815Restructured the ACPICA header files into public/private. acpi.h now
9816includes
9817only the "public" acpica headers. All other acpica headers are "private"
9818and
9819should not be included by acpica users. One new file, accommon.h is used
9820to
9821include the commonly used private headers for acpica code generation.
9822Future
9823plans include moving all private headers to a new subdirectory.
9824
9825Implemented an automatic Buffer->String return value conversion for
9826predefined ACPI methods. For these methods (such as _BIF), added
9827automatic
9828conversion for return objects that are required to be a String, but a
9829Buffer
9830was found instead. This can happen when reading string battery data from
9831an
9832operation region, because it used to be difficult to convert the data
9833from
9834buffer to string from within the ASL. Ensures that the host OS is
9835provided
9836with a valid null-terminated string. Linux BZ 11822.
9837
9838Updated the FACS waking vector interfaces. Split
9839AcpiSetFirmwareWakingVector
9840into two: one for the 32-bit vector, another for the 64-bit vector. This
9841is
9842required because the host OS must setup the wake much differently for
9843each
9844vector (real vs. protected mode, etc.) and the interface itself should
9845not
9846be
9847deciding which vector to use. Also, eliminated the
9848GetFirmwareWakingVector
9849interface, as it served no purpose (only the firmware reads the vector,
9850OS
9851only writes the vector.) ACPICA BZ 731.
9852
9853Implemented a mechanism to escape infinite AML While() loops. Added a
9854loop
9855counter to force exit from AML While loops if the count becomes too
9856large.
9857This can occur in poorly written AML when the hardware does not respond
9858within a while loop and the loop does not implement a timeout. The
9859maximum
9860loop count is configurable. A new exception code is returned when a loop
9861is
9862broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
9863
9864Optimized the execution of AML While loops. Previously, a control state
9865object was allocated and freed for each execution of the loop. The
9866optimization is to simply reuse the control state for each iteration.
9867This
9868speeds up the raw loop execution time by about 5%.
9869
9870Enhanced the implicit return mechanism. For Windows compatibility, return
9871an
9872implicit integer of value zero for methods that contain no executable
9873code.
9874Such methods are seen in the field as stubs (presumably), and can cause
9875drivers to fail if they expect a return value. Lin Ming.
9876
9877Allow multiple backslashes as root prefixes in namepaths. In a fully
9878qualified namepath, allow multiple backslash prefixes. This can happen
9879(and
9880is seen in the field) because of the use of a double-backslash in strings
9881(since backslash is the escape character) causing confusion. ACPICA BZ
9882739
9883Lin Ming.
9884
9885Emit a warning if two different FACS or DSDT tables are discovered in the
9886FADT. Checks if there are two valid but different addresses for the FACS
9887and
9888DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
9889
9890Consolidated the method argument count validation code. Merged the code
9891that
9892validates control method argument counts into the predefined validation
9893module. Eliminates possible multiple warnings for incorrect argument
9894counts.
9895
9896Implemented ACPICA example code. Includes code for ACPICA initialization,
9897handler installation, and calling a control method. Available at
9898source/tools/examples.
9899
9900Added a global pointer for FACS table to simplify internal FACS access.
9901Use
9902the global pointer instead of using AcpiGetTableByIndex for each FACS
9903access.
9904This simplifies the code for the Global Lock and the Firmware Waking
9905Vector(s).
9906
9907Example Code and Data Size: These are the sizes for the OS-independent
9908acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9909debug version of the code includes the debug output trace mechanism and
9910has a
9911much larger code and data size.
9912
9913  Previous Release:
9914    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9915    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9916  Current Release:
9917    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9918    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9919
99202) iASL Compiler/Disassembler and Tools:
9921
9922iASL: Improved disassembly of external method calls. Added the -e option
9923to
9924allow the inclusion of additional ACPI tables to help with the
9925disassembly
9926of
9927method invocations and the generation of external declarations during the
9928disassembly. Certain external method invocations cannot be disassembled
9929properly without the actual declaration of the method. Use the -e option
9930to
9931include the table where the external method(s) are actually declared.
9932Most
9933useful for disassembling SSDTs that make method calls back to the master
9934DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
9935-d
9936-e dsdt.aml ssdt1.aml
9937
9938iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
9939problem where the use of an alias within a namepath would result in a not
9940found error or cause the compiler to fault. Also now allows forward
9941references from the Alias operator itself. ACPICA BZ 738.
9942
9943----------------------------------------
994426 September 2008. Summary of changes for version 20080926:
9945
99461) ACPI CA Core Subsystem:
9947
9948Designed and implemented a mechanism to validate predefined ACPI methods
9949and
9950objects. This code validates the predefined ACPI objects (objects whose
9951names
9952start with underscore) that appear in the namespace, at the time they are
9953evaluated. The argument count and the type of the returned object are
9954validated against the ACPI specification. The purpose of this validation
9955is
9956to detect problems with the BIOS-implemented predefined ACPI objects
9957before
9958the results are returned to the ACPI-related drivers. Future enhancements
9959may
9960include actual repair of incorrect return objects where possible. Two new
9961files are nspredef.c and acpredef.h.
9962
9963Fixed a fault in the AML parser if a memory allocation fails during the
9964Op
9965completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
9966
9967Fixed an issue with implicit return compatibility. This change improves
9968the
9969implicit return mechanism to be more compatible with the MS interpreter.
9970Lin
9971Ming, ACPICA BZ 349.
9972
9973Implemented support for zero-length buffer-to-string conversions. Allow
9974zero
9975length strings during interpreter buffer-to-string conversions. For
9976example,
9977during the ToDecimalString and ToHexString operators, as well as implicit
9978conversions. Fiodor Suietov, ACPICA BZ 585.
9979
9980Fixed two possible memory leaks in the error exit paths of
9981AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
9982are
9983similar in that they use a stack of state objects in order to eliminate
9984recursion. The stack must be fully unwound and deallocated if an error
9985occurs. Lin Ming. ACPICA BZ 383.
9986
9987Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
9988global
9989ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
9990Moore ACPICA BZ 442.
9991
9992Removed the obsolete version number in module headers. Removed the
9993"$Revision" number that appeared in each module header. This version
9994number
9995was useful under SourceSafe and CVS, but has no meaning under git. It is
9996not
9997only incorrect, it could also be misleading.
9998
9999Example Code and Data Size: These are the sizes for the OS-independent
10000acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10001debug version of the code includes the debug output trace mechanism and
10002has a
10003much larger code and data size.
10004
10005  Previous Release:
10006    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
10007    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
10008  Current Release:
10009    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
10010    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
10011
10012----------------------------------------
1001329 August 2008. Summary of changes for version 20080829:
10014
100151) ACPI CA Core Subsystem:
10016
10017Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
10018Reference. Changes include the elimination of cheating on the Object
10019field
10020for the DdbHandle subtype, addition of a reference class field to
10021differentiate the various reference types (instead of an AML opcode), and
10022the
10023cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
10024
10025Reduce an error to a warning for an incorrect method argument count.
10026Previously aborted with an error if too few arguments were passed to a
10027control method via the external ACPICA interface. Now issue a warning
10028instead
10029and continue. Handles the case where the method inadvertently declares
10030too
10031many arguments, but does not actually use the extra ones. Applies mainly
10032to
10033the predefined methods. Lin Ming. Linux BZ 11032.
10034
10035Disallow the evaluation of named object types with no intrinsic value.
10036Return
10037AE_TYPE for objects that have no value and therefore evaluation is
10038undefined:
10039Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
10040of
10041these types were allowed, but an exception would be generated at some
10042point
10043during the evaluation. Now, the error is generated up front.
10044
10045Fixed a possible memory leak in the AcpiNsGetExternalPathname function
10046(nsnames.c). Fixes a leak in the error exit path.
10047
10048Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
10049debug
10050levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
10051ACPI_EXCEPTION
10052interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
10053ACPI_LV_EVENTS.
10054
10055Removed obsolete and/or unused exception codes from the acexcep.h header.
10056There is the possibility that certain device drivers may be affected if
10057they
10058use any of these exceptions.
10059
10060The ACPICA documentation has been added to the public git source tree,
10061under
10062acpica/documents. Included are the ACPICA programmer reference, the iASL
10063compiler reference, and the changes.txt release logfile.
10064
10065Example Code and Data Size: These are the sizes for the OS-independent
10066acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10067debug version of the code includes the debug output trace mechanism and
10068has a
10069much larger code and data size.
10070
10071  Previous Release:
10072    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
10073    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
10074  Current Release:
10075    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
10076    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
10077
100782) iASL Compiler/Disassembler and Tools:
10079
10080Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
10081defines _SCP with 3 arguments. Previous versions defined it with only 1
10082argument. iASL now allows both definitions.
10083
10084iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
10085zero-
10086length subtables when disassembling ACPI tables. Also fixed a couple of
10087errors where a full 16-bit table type field was not extracted from the
10088input
10089properly.
10090
10091acpisrc: Improve comment counting mechanism for generating source code
10092statistics. Count first and last lines of multi-line comments as
10093whitespace,
10094not comment lines. Handle Linux legal header in addition to standard
10095acpica
10096header.
10097
10098----------------------------------------
10099
1010029 July 2008. Summary of changes for version 20080729:
10101
101021) ACPI CA Core Subsystem:
10103
10104Fix a possible deadlock in the GPE dispatch. Remove call to
10105AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
10106attempt
10107to acquire the GPE lock but can deadlock since the GPE lock is already
10108held
10109at dispatch time. This code was introduced in version 20060831 as a
10110response
10111to Linux BZ 6881 and has since been removed from Linux.
10112
10113Add a function to dereference returned reference objects. Examines the
10114return
10115object from a call to AcpiEvaluateObject. Any Index or RefOf references
10116are
10117automatically dereferenced in an attempt to return something useful
10118(these
10119reference types cannot be converted into an external ACPI_OBJECT.)
10120Provides
10121MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
10122
10123x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
10124subtables for the MADT and one new subtable for the SRAT. Includes
10125disassembler and AcpiSrc support. Data from the Intel 64 Architecture
10126x2APIC
10127Specification, June 2008.
10128
10129Additional error checking for pathname utilities. Add error check after
10130all
10131calls to AcpiNsGetPathnameLength. Add status return from
10132AcpiNsBuildExternalPath and check after all calls. Add parameter
10133validation
10134to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
10135
10136Return status from the global init function AcpiUtGlobalInitialize. This
10137is
10138used by both the kernel subsystem and the utilities such as iASL
10139compiler.
10140The function could possibly fail when the caches are initialized. Yang
10141Yi.
10142
10143Add a function to decode reference object types to strings. Created for
10144improved error messages.
10145
10146Improve object conversion error messages. Better error messages during
10147object
10148conversion from internal to the external ACPI_OBJECT. Used for external
10149calls
10150to AcpiEvaluateObject.
10151
10152Example Code and Data Size: These are the sizes for the OS-independent
10153acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10154debug version of the code includes the debug output trace mechanism and
10155has a
10156much larger code and data size.
10157
10158  Previous Release:
10159    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
10160    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
10161  Current Release:
10162    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
10163    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
10164
101652) iASL Compiler/Disassembler and Tools:
10166
10167Debugger: fix a possible hang when evaluating non-methods. Fixes a
10168problem
10169introduced in version 20080701. If the object being evaluated (via
10170execute
10171command) is not a method, the debugger can hang while trying to obtain
10172non-
10173existent parameters.
10174
10175iASL: relax error for using reserved "_T_x" identifiers. These names can
10176appear in a disassembled ASL file if they were emitted by the original
10177compiler. Instead of issuing an error or warning and forcing the user to
10178manually change these names, issue a remark instead.
10179
10180iASL: error if named object created in while loop. Emit an error if any
10181named
10182object is created within a While loop. If allowed, this code will
10183generate
10184a
10185run-time error on the second iteration of the loop when an attempt is
10186made
10187to
10188create the same named object twice. ACPICA bugzilla 730.
10189
10190iASL: Support absolute pathnames for include files. Add support for
10191absolute
10192pathnames within the Include operator. previously, only relative
10193pathnames
10194were supported.
10195
10196iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
10197Descriptor.
10198The ACPI spec requires one interrupt minimum. BZ 423
10199
10200iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
10201Handles the case for the Interrupt Resource Descriptor where
10202the ResourceSource argument is omitted but ResourceSourceIndex
10203is present. Now leave room for the Index. BZ 426
10204
10205iASL: Prevent error message if CondRefOf target does not exist. Fixes
10206cases
10207where an error message is emitted if the target does not exist. BZ 516
10208
10209iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
10210(get ACPI tables on Windows). This was apparently broken in version
1021120070919.
10212
10213AcpiXtract: Handle EOF while extracting data. Correctly handle the case
10214where
10215the EOF happens immediately after the last table in the input file. Print
10216completion message. Previously, no message was displayed in this case.
10217
10218----------------------------------------
1021901 July 2008. Summary of changes for version 20080701:
10220
102210) Git source tree / acpica.org
10222
10223Fixed a problem where a git-clone from http would not transfer the entire
10224source tree.
10225
102261) ACPI CA Core Subsystem:
10227
10228Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
10229enable bit. Now performs a read-change-write of the enable register
10230instead
10231of simply writing out the cached enable mask. This will prevent
10232inadvertent
10233enabling of GPEs if a rogue GPE is received during initialization (before
10234GPE
10235handlers are installed.)
10236
10237Implemented a copy for dynamically loaded tables. Previously, dynamically
10238loaded tables were simply mapped - but on some machines this memory is
10239corrupted after suspend. Now copy the table to a local buffer. For the
10240OpRegion case, added checksum verify. Use the table length from the table
10241header, not the region length. For the Buffer case, use the table length
10242also. Dennis Noordsij, Bob Moore. BZ 10734
10243
10244Fixed a problem where the same ACPI table could not be dynamically loaded
10245and
10246unloaded more than once. Without this change, a table cannot be loaded
10247again
10248once it has been loaded/unloaded one time. The current mechanism does not
10249unregister a table upon an unload. During a load, if the same table is
10250found,
10251this no longer returns an exception. BZ 722
10252
10253Fixed a problem where the wrong descriptor length was calculated for the
10254EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
10255EndTag
10256are calculated as 12 bytes long, but the actual length in the internal
10257descriptor is 16 because of the round-up to 8 on the 64-bit build.
10258Reported
10259by Linn Crosetto. BZ 728
10260
10261Fixed a possible memory leak in the Unload operator. The DdbHandle
10262returned
10263by Load() did not have its reference count decremented during unload,
10264leading
10265to a memory leak. Lin Ming. BZ 727
10266
10267Fixed a possible memory leak when deleting thermal/processor objects. Any
10268associated notify handlers (and objects) were not being deleted. Fiodor
10269Suietov. BZ 506
10270
10271Fixed the ordering of the ASCII names in the global mutex table to match
10272the
10273actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
10274only.
10275Vegard Nossum. BZ 726
10276
10277Enhanced the AcpiGetObjectInfo interface to return the number of required
10278arguments if the object is a control method. Added this call to the
10279debugger
10280so the proper number of default arguments are passed to a method. This
10281prevents a warning when executing methods from AcpiExec.
10282
10283Added a check for an invalid handle in AcpiGetObjectInfo. Return
10284AE_BAD_PARAMETER if input handle is invalid. BZ 474
10285
10286Fixed an extraneous warning from exconfig.c on the 64-bit build.
10287
10288Example Code and Data Size: These are the sizes for the OS-independent
10289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10290debug version of the code includes the debug output trace mechanism and
10291has a
10292much larger code and data size.
10293
10294  Previous Release:
10295    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10296    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10297  Current Release:
10298    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
10299    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
10300
103012) iASL Compiler/Disassembler and Tools:
10302
10303iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
10304resource descriptor names.
10305
10306iASL: Detect invalid ASCII characters in input (windows version). Removed
10307the
10308"-CF" flag from the flex compile, enables correct detection of non-ASCII
10309characters in the input. BZ 441
10310
10311iASL: Eliminate warning when result of LoadTable is not used. Eliminate
10312the
10313"result of operation not used" warning when the DDB handle returned from
10314LoadTable is not used. The warning is not needed. BZ 590
10315
10316AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
10317method
10318to
10319pass address of table to the AML. Added option to disable OpRegion
10320simulation
10321to allow creation of an OpRegion with a real address that was passed to
10322_CFG.
10323All of this allows testing of the Load and Unload operators from
10324AcpiExec.
10325
10326Debugger: update tables command for unloaded tables. Handle unloaded
10327tables
10328and use the standard table header output routine.
10329
10330----------------------------------------
1033109 June 2008. Summary of changes for version 20080609:
10332
103331) ACPI CA Core Subsystem:
10334
10335Implemented a workaround for reversed _PRT entries. A significant number
10336of
10337BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
10338change dynamically detects and repairs this problem. Provides
10339compatibility
10340with MS ACPI. BZ 6859
10341
10342Simplified the internal ACPI hardware interfaces to eliminate the locking
10343flag parameter from Register Read/Write. Added a new external interface,
10344AcpiGetRegisterUnlocked.
10345
10346Fixed a problem where the invocation of a GPE control method could hang.
10347This
10348was a regression introduced in 20080514. The new method argument count
10349validation mechanism can enter an infinite loop when a GPE method is
10350dispatched. Problem fixed by removing the obsolete code that passed GPE
10351block
10352information to the notify handler via the control method parameter
10353pointer.
10354
10355Fixed a problem where the _SST execution status was incorrectly returned
10356to
10357the caller of AcpiEnterSleepStatePrep. This was a regression introduced
10358in
1035920080514. _SST is optional and a NOT_FOUND exception should never be
10360returned. BZ 716
10361
10362Fixed a problem where a deleted object could be accessed from within the
10363AML
10364parser. This was a regression introduced in version 20080123 as a fix for
10365the
10366Unload operator. Lin Ming. BZ 10669
10367
10368Cleaned up the debug operand dump mechanism. Eliminated unnecessary
10369operands
10370and eliminated the use of a negative index in a loop. Operands are now
10371displayed in the correct order, not backwards. This also fixes a
10372regression
10373introduced in 20080514 on 64-bit systems where the elimination of
10374ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
10375715
10376
10377Fixed a possible memory leak in EvPciConfigRegionSetup where the error
10378exit
10379path did not delete a locally allocated structure.
10380
10381Updated definitions for the DMAR and SRAT tables to synchronize with the
10382current specifications. Includes disassembler support.
10383
10384Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
10385loop termination value was used. Loop terminated on iteration early,
10386missing
10387one mutex. Linn Crosetto
10388
10389Example Code and Data Size: These are the sizes for the OS-independent
10390acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10391debug version of the code includes the debug output trace mechanism and
10392has a
10393much larger code and data size.
10394
10395  Previous Release:
10396    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10397    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10398  Current Release:
10399    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10400    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10401
104022) iASL Compiler/Disassembler and Tools:
10403
10404Disassembler: Implemented support for EisaId() within _CID objects. Now
10405disassemble integer _CID objects back to EisaId invocations, including
10406multiple integers within _CID packages. Includes single-step support for
10407debugger also.
10408
10409Disassembler: Added support for DMAR and SRAT table definition changes.
10410
10411----------------------------------------
1041214 May 2008. Summary of changes for version 20080514:
10413
104141) ACPI CA Core Subsystem:
10415
10416Fixed a problem where GPEs were enabled too early during the ACPICA
10417initialization. This could lead to "handler not installed" errors on some
10418machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
10419This
10420ensures that all operation regions and devices throughout the namespace
10421have
10422been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
10423
10424Implemented a change to the enter sleep code. Moved execution of the _GTS
10425method to just before setting sleep enable bit. The execution was moved
10426from
10427AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
10428immediately before the SLP_EN bit is set, as per the ACPI specification.
10429Luming Yu, BZ 1653.
10430
10431Implemented a fix to disable unknown GPEs (2nd version). Now always
10432disable
10433the GPE, even if ACPICA thinks that that it is already disabled. It is
10434possible that the AML or some other code has enabled the GPE unbeknownst
10435to
10436the ACPICA code.
10437
10438Fixed a problem with the Field operator where zero-length fields would
10439return
10440an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
10441ASL
10442field declarations in Field(), BankField(), and IndexField(). BZ 10606.
10443
10444Implemented a fix for the Load operator, now load the table at the
10445namespace
10446root. This reverts a change introduced in version 20071019. The table is
10447now
10448loaded at the namespace root even though this goes against the ACPI
10449specification. This provides compatibility with other ACPI
10450implementations.
10451The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
10452Ming.
10453
10454Fixed a problem where ACPICA would not Load() tables with unusual
10455signatures.
10456Now ignore ACPI table signature for Load() operator. Only "SSDT" is
10457acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
10458Therefore, signature validation is worthless. Apparently MS ACPI accepts
10459such
10460signatures, ACPICA must be compatible. BZ 10454.
10461
10462Fixed a possible negative array index in AcpiUtValidateException. Added
10463NULL
10464fields to the exception string arrays to eliminate a -1 subtraction on
10465the
10466SubStatus field.
10467
10468Updated the debug tracking macros to reduce overall code and data size.
10469Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
10470instead of pointers to static strings. Jan Beulich and Bob Moore.
10471
10472Implemented argument count checking in control method invocation via
10473AcpiEvaluateObject. Now emit an error if too few arguments, warning if
10474too
10475many. This applies only to extern programmatic control method execution,
10476not
10477method-to-method calls within the AML. Lin Ming.
10478
10479Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
10480no
10481longer needed, especially with the removal of 16-bit support. It was
10482replaced
10483mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
10484bit
10485on
1048632/64-bit platforms is required.
10487
10488Added the C const qualifier for appropriate string constants -- mostly
10489MODULE_NAME and printf format strings. Jan Beulich.
10490
10491Example Code and Data Size: These are the sizes for the OS-independent
10492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10493debug version of the code includes the debug output trace mechanism and
10494has a
10495much larger code and data size.
10496
10497  Previous Release:
10498    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10499    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10500  Current Release:
10501    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10502    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10503
105042) iASL Compiler/Disassembler and Tools:
10505
10506Implemented ACPI table revision ID validation in the disassembler. Zero
10507is
10508always invalid. For DSDTs, the ID controls the interpreter integer width.
105091
10510means 32-bit and this is unusual. 2 or greater is 64-bit.
10511
10512----------------------------------------
1051321 March 2008. Summary of changes for version 20080321:
10514
105151) ACPI CA Core Subsystem:
10516
10517Implemented an additional change to the GPE support in order to suppress
10518spurious or stray GPEs. The AcpiEvDisableGpe function will now
10519permanently
10520disable incoming GPEs that are neither enabled nor disabled -- meaning
10521that
10522the GPE is unknown to the system. This should prevent future interrupt
10523floods
10524from that GPE. BZ 6217 (Zhang Rui)
10525
10526Fixed a problem where NULL package elements were not returned to the
10527AcpiEvaluateObject interface correctly. The element was simply ignored
10528instead of returning a NULL ACPI_OBJECT package element, potentially
10529causing
10530a buffer overflow and/or confusing the caller who expected a fixed number
10531of
10532elements. BZ 10132 (Lin Ming, Bob Moore)
10533
10534Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
10535Dword,
10536Qword), Field, BankField, and IndexField operators when invoked from
10537inside
10538an executing control method. In this case, these operators created
10539namespace
10540nodes that were incorrectly left marked as permanent nodes instead of
10541temporary nodes. This could cause a problem if there is race condition
10542between an exiting control method and a running namespace walk. (Reported
10543by
10544Linn Crosetto)
10545
10546Fixed a problem where the CreateField and CreateXXXField operators would
10547incorrectly allow duplicate names (the name of the field) with no
10548exception
10549generated.
10550
10551Implemented several changes for Notify handling. Added support for new
10552Notify
10553values (ACPI 2.0+) and improved the Notify debug output. Notify on
10554PowerResource objects is no longer allowed, as per the ACPI
10555specification.
10556(Bob Moore, Zhang Rui)
10557
10558All Reference Objects returned via the AcpiEvaluateObject interface are
10559now
10560marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
10561for
10562NULL objects - either NULL package elements or unresolved named
10563references.
10564
10565Fixed a problem where an extraneous debug message was produced for
10566package
10567objects (when debugging enabled). The message "Package List length larger
10568than NumElements count" is now produced in the correct case, and is now
10569an
10570error message rather than a debug message. Added a debug message for the
10571opposite case, where NumElements is larger than the Package List (the
10572package
10573will be padded out with NULL elements as per the ACPI spec.)
10574
10575Implemented several improvements for the output of the ASL "Debug" object
10576to
10577clarify and keep all data for a given object on one output line.
10578
10579Fixed two size calculation issues with the variable-length Start
10580Dependent
10581resource descriptor.
10582
10583Example Code and Data Size: These are the sizes for the OS-independent
10584acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10585debug version of the code includes the debug output trace mechanism and
10586has
10587a much larger code and data size.
10588
10589  Previous Release:
10590    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10591    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10592  Current Release:
10593    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10594    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10595
105962) iASL Compiler/Disassembler and Tools:
10597
10598Fixed a problem with the use of the Switch operator where execution of
10599the
10600containing method by multiple concurrent threads could cause an
10601AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
10602actual Switch opcode, it must be simulated with local named temporary
10603variables and if/else pairs. The solution chosen was to mark any method
10604that
10605uses Switch as Serialized, thus preventing multiple thread entries. BZ
10606469.
10607
10608----------------------------------------
1060913 February 2008. Summary of changes for version 20080213:
10610
106111) ACPI CA Core Subsystem:
10612
10613Implemented another MS compatibility design change for GPE/Notify
10614handling.
10615GPEs are now cleared/enabled asynchronously to allow all pending notifies
10616to
10617complete first. It is expected that the OSL will queue the enable request
10618behind all pending notify requests (may require changes to the local host
10619OSL
10620in AcpiOsExecute). Alexey Starikovskiy.
10621
10622Fixed a problem where buffer and package objects passed as arguments to a
10623control method via the external AcpiEvaluateObject interface could cause
10624an
10625AE_AML_INTERNAL exception depending on the order and type of operators
10626executed by the target control method.
10627
10628Fixed a problem where resource descriptor size optimization could cause a
10629problem when a _CRS resource template is passed to a _SRS method. The
10630_SRS
10631resource template must use the same descriptors (with the same size) as
10632returned from _CRS. This change affects the following resource
10633descriptors:
10634IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
106359487)
10636
10637Fixed a problem where a CopyObject to RegionField, BankField, and
10638IndexField
10639objects did not perform an implicit conversion as it should. These types
10640must
10641retain their initial type permanently as per the ACPI specification.
10642However,
10643a CopyObject to all other object types should not perform an implicit
10644conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
10645
10646Fixed a problem with the AcpiGetDevices interface where the mechanism to
10647match device CIDs did not examine the entire list of available CIDs, but
10648instead aborted on the first non-matching CID. Andrew Patterson.
10649
10650Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
10651was
10652inadvertently changed to return a 16-bit value instead of a 32-bit value,
10653truncating the upper dword of a 64-bit value. This macro is only used to
10654display debug output, so no incorrect calculations were made. Also,
10655reimplemented the macro so that a 64-bit shift is not performed by
10656inefficient compilers.
10657
10658Added missing va_end statements that should correspond with each va_start
10659statement.
10660
10661Example Code and Data Size: These are the sizes for the OS-independent
10662acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10663debug version of the code includes the debug output trace mechanism and
10664has
10665a much larger code and data size.
10666
10667  Previous Release:
10668    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10669    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10670  Current Release:
10671    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10672    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10673
106742) iASL Compiler/Disassembler and Tools:
10675
10676Implemented full disassembler support for the following new ACPI tables:
10677BERT, EINJ, and ERST. Implemented partial disassembler support for the
10678complicated HEST table. These tables support the Windows Hardware Error
10679Architecture (WHEA).
10680
10681----------------------------------------
1068223 January 2008. Summary of changes for version 20080123:
10683
106841) ACPI CA Core Subsystem:
10685
10686Added the 2008 copyright to all module headers and signons. This affects
10687virtually every file in the ACPICA core subsystem, the iASL compiler, and
10688the tools/utilities.
10689
10690Fixed a problem with the SizeOf operator when used with Package and
10691Buffer
10692objects. These objects have deferred execution for some arguments, and
10693the
10694execution is now completed before the SizeOf is executed. This problem
10695caused
10696unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
10697BZ
106989558
10699
10700Implemented an enhancement to the interpreter "slack mode". In the
10701absence
10702of
10703an explicit return or an implicitly returned object from the last
10704executed
10705opcode, a control method will now implicitly return an integer of value 0
10706for
10707Microsoft compatibility. (Lin Ming) BZ 392
10708
10709Fixed a problem with the Load operator where an exception was not
10710returned
10711in
10712the case where the table is already loaded. (Lin Ming) BZ 463
10713
10714Implemented support for the use of DDBHandles as an Indexed Reference, as
10715per
10716the ACPI spec. (Lin Ming) BZ 486
10717
10718Implemented support for UserTerm (Method invocation) for the Unload
10719operator
10720as per the ACPI spec. (Lin Ming) BZ 580
10721
10722Fixed a problem with the LoadTable operator where the OemId and
10723OemTableId
10724input strings could cause unexpected failures if they were shorter than
10725the
10726maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
10727
10728Implemented support for UserTerm (Method invocation) for the Unload
10729operator
10730as per the ACPI spec. (Lin Ming) BZ 580
10731
10732Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
10733HEST,
10734IBFT, UEFI, WDAT. Disassembler support is forthcoming.
10735
10736Example Code and Data Size: These are the sizes for the OS-independent
10737acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10738debug version of the code includes the debug output trace mechanism and
10739has
10740a much larger code and data size.
10741
10742  Previous Release:
10743    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10744    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10745  Current Release:
10746    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10747    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10748
107492) iASL Compiler/Disassembler and Tools:
10750
10751Implemented support in the disassembler for checksum validation on
10752incoming
10753binary DSDTs and SSDTs. If incorrect, a message is displayed within the
10754table
10755header dump at the start of the disassembly.
10756
10757Implemented additional debugging information in the namespace listing
10758file
10759created during compilation. In addition to the namespace hierarchy, the
10760full
10761pathname to each namespace object is displayed.
10762
10763Fixed a problem with the disassembler where invalid ACPI tables could
10764cause
10765faults or infinite loops.
10766
10767Fixed an unexpected parse error when using the optional "parameter types"
10768list in a control method declaration. (Lin Ming) BZ 397
10769
10770Fixed a problem where two External declarations with the same name did
10771not
10772cause an error (Lin Ming) BZ 509
10773
10774Implemented support for full TermArgs (adding Argx, Localx and method
10775invocation) for the ParameterData parameter to the LoadTable operator.
10776(Lin
10777Ming) BZ 583,587
10778
10779----------------------------------------
1078019 December 2007. Summary of changes for version 20071219:
10781
107821) ACPI CA Core Subsystem:
10783
10784Implemented full support for deferred execution for the TermArg string
10785arguments for DataTableRegion. This enables forward references and full
10786operand resolution for the three string arguments. Similar to
10787OperationRegion
10788deferred argument execution.) Lin Ming. BZ 430
10789
10790Implemented full argument resolution support for the BankValue argument
10791to
10792BankField. Previously, only constants were supported, now any TermArg may
10793be
10794used. Lin Ming BZ 387, 393
10795
10796Fixed a problem with AcpiGetDevices where the search of a branch of the
10797device tree could be terminated prematurely. In accordance with the ACPI
10798specification, the search down the current branch is terminated if a
10799device
10800is both not present and not functional (instead of just not present.)
10801Yakui
10802Zhao.
10803
10804Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
10805if
10806the underlying AML code changed the GPE enable registers. Now, any
10807unknown
10808incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
10809disabled
10810instead of simply ignored. Rui Zhang.
10811
10812Fixed a problem with Index Fields where the Index register was
10813incorrectly
10814limited to a maximum of 32 bits. Now any size may be used.
10815
10816Fixed a couple memory leaks associated with "implicit return" objects
10817when
10818the AML Interpreter slack mode is enabled. Lin Ming BZ 349
10819
10820Example Code and Data Size: These are the sizes for the OS-independent
10821acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10822debug version of the code includes the debug output trace mechanism and
10823has
10824a much larger code and data size.
10825
10826  Previous Release:
10827    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10828    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10829  Current Release:
10830    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10831    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10832
10833----------------------------------------
1083414 November 2007. Summary of changes for version 20071114:
10835
108361) ACPI CA Core Subsystem:
10837
10838Implemented event counters for each of the Fixed Events, the ACPI SCI
10839(interrupt) itself, and control methods executed. Named
10840AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
10841These
10842should be useful for debugging and statistics.
10843
10844Implemented a new external interface, AcpiGetStatistics, to retrieve the
10845contents of the various event counters. Returns the current values for
10846AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
10847AcpiMethodCount. The interface can be expanded in the future if new
10848counters
10849are added. Device drivers should use this interface rather than access
10850the
10851counters directly.
10852
10853Fixed a problem with the FromBCD and ToBCD operators. With some
10854compilers,
10855the ShortDivide function worked incorrectly, causing problems with the
10856BCD
10857functions with large input values. A truncation from 64-bit to 32-bit
10858inadvertently occurred. Internal BZ 435. Lin Ming
10859
10860Fixed a problem with Index references passed as method arguments.
10861References
10862passed as arguments to control methods were dereferenced immediately
10863(before
10864control was passed to the called method). The references are now
10865correctly
10866passed directly to the called method. BZ 5389. Lin Ming
10867
10868Fixed a problem with CopyObject used in conjunction with the Index
10869operator.
10870The reference was incorrectly dereferenced before the copy. The reference
10871is
10872now correctly copied. BZ 5391. Lin Ming
10873
10874Fixed a problem with Control Method references within Package objects.
10875These
10876references are now correctly generated. This completes the package
10877construction overhaul that began in version 20071019.
10878
10879Example Code and Data Size: These are the sizes for the OS-independent
10880acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10881debug version of the code includes the debug output trace mechanism and
10882has
10883a much larger code and data size.
10884
10885  Previous Release:
10886    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10887    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10888  Current Release:
10889    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10890    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10891
10892
108932) iASL Compiler/Disassembler and Tools:
10894
10895The AcpiExec utility now installs handlers for all of the predefined
10896Operation Region types. New types supported are: PCI_Config, CMOS, and
10897PCIBARTarget.
10898
10899Fixed a problem with the 64-bit version of AcpiExec where the extended
10900(64-
10901bit) address fields for the DSDT and FACS within the FADT were not being
10902used, causing truncation of the upper 32-bits of these addresses. Lin
10903Ming
10904and Bob Moore
10905
10906----------------------------------------
1090719 October 2007. Summary of changes for version 20071019:
10908
109091) ACPI CA Core Subsystem:
10910
10911Fixed a problem with the Alias operator when the target of the alias is a
10912named ASL operator that opens a new scope -- Scope, Device,
10913PowerResource,
10914Processor, and ThermalZone. In these cases, any children of the original
10915operator could not be accessed via the alias, potentially causing
10916unexpected
10917AE_NOT_FOUND exceptions. (BZ 9067)
10918
10919Fixed a problem with the Package operator where all named references were
10920created as object references and left otherwise unresolved. According to
10921the
10922ACPI specification, a Package can only contain Data Objects or references
10923to
10924control methods. The implication is that named references to Data Objects
10925(Integer, Buffer, String, Package, BufferField, Field) should be resolved
10926immediately upon package creation. This is the approach taken with this
10927change. References to all other named objects (Methods, Devices, Scopes,
10928etc.) are all now properly created as reference objects. (BZ 5328)
10929
10930Reverted a change to Notify handling that was introduced in version
1093120070508. This version changed the Notify handling from asynchronous to
10932fully synchronous (Device driver Notify handling with respect to the
10933Notify
10934ASL operator). It was found that this change caused more problems than it
10935solved and was removed by most users.
10936
10937Fixed a problem with the Increment and Decrement operators where the type
10938of
10939the target object could be unexpectedly and incorrectly changed. (BZ 353)
10940Lin Ming.
10941
10942Fixed a problem with the Load and LoadTable operators where the table
10943location within the namespace was ignored. Instead, the table was always
10944loaded into the root or current scope. Lin Ming.
10945
10946Fixed a problem with the Load operator when loading a table from a buffer
10947object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
10948
10949Fixed a problem with the Debug object where a store of a DdbHandle
10950reference
10951object to the Debug object could cause a fault.
10952
10953Added a table checksum verification for the Load operator, in the case
10954where
10955the load is from a buffer. (BZ 578).
10956
10957Implemented additional parameter validation for the LoadTable operator.
10958The
10959length of the input strings SignatureString, OemIdString, and OemTableId
10960are
10961now checked for maximum lengths. (BZ 582) Lin Ming.
10962
10963Example Code and Data Size: These are the sizes for the OS-independent
10964acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10965debug version of the code includes the debug output trace mechanism and
10966has
10967a much larger code and data size.
10968
10969  Previous Release:
10970    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10971    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10972  Current Release:
10973    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10974    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10975
10976
109772) iASL Compiler/Disassembler:
10978
10979Fixed a problem where if a single file was specified and the file did not
10980exist, no error message was emitted. (Introduced with wildcard support in
10981version 20070917.)
10982
10983----------------------------------------
1098419 September 2007. Summary of changes for version 20070919:
10985
109861) ACPI CA Core Subsystem:
10987
10988Designed and implemented new external interfaces to install and remove
10989handlers for ACPI table-related events. Current events that are defined
10990are
10991LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
10992they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
10993AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
10994
10995Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
10996(acpi_serialized option on Linux) could cause some systems to hang during
10997initialization. (Bob Moore) BZ 8171
10998
10999Fixed a problem where objects of certain types (Device, ThermalZone,
11000Processor, PowerResource) can be not found if they are declared and
11001referenced from within the same control method (Lin Ming) BZ 341
11002
11003Example Code and Data Size: These are the sizes for the OS-independent
11004acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11005debug version of the code includes the debug output trace mechanism and
11006has
11007a much larger code and data size.
11008
11009  Previous Release:
11010    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
11011    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
11012  Current Release:
11013    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
11014    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
11015
11016
110172) iASL Compiler/Disassembler:
11018
11019Implemented support to allow multiple files to be compiled/disassembled
11020in
11021a
11022single invocation. This includes command line wildcard support for both
11023the
11024Windows and Unix versions of the compiler. This feature simplifies the
11025disassembly and compilation of multiple ACPI tables in a single
11026directory.
11027
11028----------------------------------------
1102908 May 2007. Summary of changes for version 20070508:
11030
110311) ACPI CA Core Subsystem:
11032
11033Implemented a Microsoft compatibility design change for the handling of
11034the
11035Notify AML operator. Previously, notify handlers were dispatched and
11036executed completely asynchronously in a deferred thread. The new design
11037still executes the notify handlers in a different thread, but the
11038original
11039thread that executed the Notify() now waits at a synchronization point
11040for
11041the notify handler to complete. Some machines depend on a synchronous
11042Notify
11043operator in order to operate correctly.
11044
11045Implemented support to allow Package objects to be passed as method
11046arguments to the external AcpiEvaluateObject interface. Previously, this
11047would return the AE_NOT_IMPLEMENTED exception. This feature had not been
11048implemented since there were no reserved control methods that required it
11049until recently.
11050
11051Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
11052that
11053contained invalid non-zero values in reserved fields could cause later
11054failures because these fields have meaning in later revisions of the
11055FADT.
11056For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
11057fields
11058are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
11059
11060Fixed a problem where the Global Lock handle was not properly updated if
11061a
11062thread that acquired the Global Lock via executing AML code then
11063attempted
11064to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
11065Joe
11066Liu.
11067
11068Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
11069could be corrupted if the interrupt being removed was at the head of the
11070list. Reported by Linn Crosetto.
11071
11072Example Code and Data Size: These are the sizes for the OS-independent
11073acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11074debug version of the code includes the debug output trace mechanism and
11075has
11076a much larger code and data size.
11077
11078  Previous Release:
11079    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11080    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
11081  Current Release:
11082    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
11083    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
11084
11085----------------------------------------
1108620 March 2007. Summary of changes for version 20070320:
11087
110881) ACPI CA Core Subsystem:
11089
11090Implemented a change to the order of interpretation and evaluation of AML
11091operand objects within the AML interpreter. The interpreter now evaluates
11092operands in the order that they appear in the AML stream (and the
11093corresponding ASL code), instead of in the reverse order (after the
11094entire
11095operand list has been parsed). The previous behavior caused several
11096subtle
11097incompatibilities with the Microsoft AML interpreter as well as being
11098somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
11099
11100Implemented a change to the ACPI Global Lock support. All interfaces to
11101the
11102global lock now allow the same thread to acquire the lock multiple times.
11103This affects the AcpiAcquireGlobalLock external interface to the global
11104lock
11105as well as the internal use of the global lock to support AML fields -- a
11106control method that is holding the global lock can now simultaneously
11107access
11108AML fields that require global lock protection. Previously, in both
11109cases,
11110this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
11111to
11112AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
11113Controller. There is no change to the behavior of the AML Acquire
11114operator,
11115as this can already be used to acquire a mutex multiple times by the same
11116thread. BZ 8066. With assistance from Alexey Starikovskiy.
11117
11118Fixed a problem where invalid objects could be referenced in the AML
11119Interpreter after error conditions. During operand evaluation, ensure
11120that
11121the internal "Return Object" field is cleared on error and only valid
11122pointers are stored there. Caused occasional access to deleted objects
11123that
11124resulted in "large reference count" warning messages. Valery Podrezov.
11125
11126Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
11127on
11128deeply nested control method invocations. BZ 7873, local BZ 487. Valery
11129Podrezov.
11130
11131Fixed an internal problem with the handling of result objects on the
11132interpreter result stack. BZ 7872. Valery Podrezov.
11133
11134Removed obsolete code that handled the case where AML_NAME_OP is the
11135target
11136of a reference (Reference.Opcode). This code was no longer necessary. BZ
111377874. Valery Podrezov.
11138
11139Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
11140was
11141a
11142remnant from the previously discontinued 16-bit support.
11143
11144Example Code and Data Size: These are the sizes for the OS-independent
11145acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11146debug version of the code includes the debug output trace mechanism and
11147has
11148a much larger code and data size.
11149
11150  Previous Release:
11151    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11152    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11153  Current Release:
11154    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11155    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
11156
11157----------------------------------------
1115826 January 2007. Summary of changes for version 20070126:
11159
111601) ACPI CA Core Subsystem:
11161
11162Added the 2007 copyright to all module headers and signons. This affects
11163virtually every file in the ACPICA core subsystem, the iASL compiler, and
11164the utilities.
11165
11166Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
11167during a table load. A bad pointer was passed in the case where the DSDT
11168is
11169overridden, causing a fault in this case.
11170
11171Example Code and Data Size: These are the sizes for the OS-independent
11172acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11173debug version of the code includes the debug output trace mechanism and
11174has
11175a much larger code and data size.
11176
11177  Previous Release:
11178    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11179    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11180  Current Release:
11181    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11182    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11183
11184----------------------------------------
1118515 December 2006. Summary of changes for version 20061215:
11186
111871) ACPI CA Core Subsystem:
11188
11189Support for 16-bit ACPICA has been completely removed since it is no
11190longer
11191necessary and it clutters the code. All 16-bit macros, types, and
11192conditional compiles have been removed, cleaning up and simplifying the
11193code
11194across the entire subsystem. DOS support is no longer needed since the
11195bootable Linux firmware kit is now available.
11196
11197The handler for the Global Lock is now removed during AcpiTerminate to
11198enable a clean subsystem restart, via the implementation of the
11199AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
11200HP)
11201
11202Implemented enhancements to the multithreading support within the
11203debugger
11204to enable improved multithreading debugging and evaluation of the
11205subsystem.
11206(Valery Podrezov)
11207
11208Debugger: Enhanced the Statistics/Memory command to emit the total
11209(maximum)
11210memory used during the execution, as well as the maximum memory consumed
11211by
11212each of the various object types. (Valery Podrezov)
11213
11214Example Code and Data Size: These are the sizes for the OS-independent
11215acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11216debug version of the code includes the debug output trace mechanism and
11217has
11218a much larger code and data size.
11219
11220  Previous Release:
11221    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
11222    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
11223  Current Release:
11224    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11225    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11226
11227
112282) iASL Compiler/Disassembler and Tools:
11229
11230AcpiExec: Implemented a new option (-m) to display full memory use
11231statistics upon subsystem/program termination. (Valery Podrezov)
11232
11233----------------------------------------
1123409 November 2006. Summary of changes for version 20061109:
11235
112361) ACPI CA Core Subsystem:
11237
11238Optimized the Load ASL operator in the case where the source operand is
11239an
11240operation region. Simply map the operation region memory, instead of
11241performing a bytewise read. (Region must be of type SystemMemory, see
11242below.)
11243
11244Fixed the Load ASL operator for the case where the source operand is a
11245region field. A buffer object is also allowed as the source operand. BZ
11246480
11247
11248Fixed a problem where the Load ASL operator allowed the source operand to
11249be
11250an operation region of any type. It is now restricted to regions of type
11251SystemMemory, as per the ACPI specification. BZ 481
11252
11253Additional cleanup and optimizations for the new Table Manager code.
11254
11255AcpiEnable will now fail if all of the required ACPI tables are not
11256loaded
11257(FADT, FACS, DSDT). BZ 477
11258
11259Added #pragma pack(8/4) to acobject.h to ensure that the structures in
11260this
11261header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
11262manually optimized to be aligned and will not work if it is byte-packed.
11263
11264Example Code and Data Size: These are the sizes for the OS-independent
11265acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11266debug version of the code includes the debug output trace mechanism and
11267has
11268a much larger code and data size.
11269
11270  Previous Release:
11271    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
11272    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11273  Current Release:
11274    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
11275    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
11276
11277
112782) iASL Compiler/Disassembler and Tools:
11279
11280Fixed a problem where the presence of the _OSI predefined control method
11281within complex expressions could cause an internal compiler error.
11282
11283AcpiExec: Implemented full region support for multiple address spaces.
11284SpaceId is now part of the REGION object. BZ 429
11285
11286----------------------------------------
1128711 October 2006. Summary of changes for version 20061011:
11288
112891) ACPI CA Core Subsystem:
11290
11291Completed an AML interpreter performance enhancement for control method
11292execution. Previously a 2-pass parse/execution, control methods are now
11293completely parsed and executed in a single pass. This improves overall
11294interpreter performance by ~25%, reduces code size, and reduces CPU stack
11295use. (Valery Podrezov + interpreter changes in version 20051202 that
11296eliminated namespace loading during the pass one parse.)
11297
11298Implemented _CID support for PCI Root Bridge detection. If the _HID does
11299not
11300match the predefined PCI Root Bridge IDs, the _CID list (if present) is
11301now
11302obtained and also checked for an ID match.
11303
11304Implemented additional support for the PCI _ADR execution: upsearch until
11305a
11306device scope is found before executing _ADR. This allows PCI_Config
11307operation regions to be declared locally within control methods
11308underneath
11309PCI device objects.
11310
11311Fixed a problem with a possible race condition between threads executing
11312AcpiWalkNamespace and the AML interpreter. This condition was removed by
11313modifying AcpiWalkNamespace to (by default) ignore all temporary
11314namespace
11315entries created during any concurrent control method execution. An
11316additional namespace race condition is known to exist between
11317AcpiWalkNamespace and the Load/Unload ASL operators and is still under
11318investigation.
11319
11320Restructured the AML ParseLoop function, breaking it into several
11321subfunctions in order to reduce CPU stack use and improve
11322maintainability.
11323(Mikhail Kouzmich)
11324
11325AcpiGetHandle: Fix for parameter validation to detect invalid
11326combinations
11327of prefix handle and pathname. BZ 478
11328
11329Example Code and Data Size: These are the sizes for the OS-independent
11330acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11331debug version of the code includes the debug output trace mechanism and
11332has
11333a much larger code and data size.
11334
11335  Previous Release:
11336    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11337    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11338  Current Release:
11339    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
11340    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11341
113422) iASL Compiler/Disassembler and Tools:
11343
11344Ported the -g option (get local ACPI tables) to the new ACPICA Table
11345Manager
11346to restore original behavior.
11347
11348----------------------------------------
1134927 September 2006. Summary of changes for version 20060927:
11350
113511) ACPI CA Core Subsystem:
11352
11353Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
11354These functions now use a spinlock for mutual exclusion and the interrupt
11355level indication flag is not needed.
11356
11357Fixed a problem with the Global Lock where the lock could appear to be
11358obtained before it is actually obtained. The global lock semaphore was
11359inadvertently created with one unit instead of zero units. (BZ 464)
11360Fiodor
11361Suietov.
11362
11363Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
11364during
11365a read from a buffer or region field. (BZ 458) Fiodor Suietov.
11366
11367Example Code and Data Size: These are the sizes for the OS-independent
11368acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11369debug version of the code includes the debug output trace mechanism and
11370has
11371a much larger code and data size.
11372
11373  Previous Release:
11374    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11375    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11376  Current Release:
11377    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11378    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11379
11380
113812) iASL Compiler/Disassembler and Tools:
11382
11383Fixed a compilation problem with the pre-defined Resource Descriptor
11384field
11385names where an "object does not exist" error could be incorrectly
11386generated
11387if the parent ResourceTemplate pathname places the template within a
11388different namespace scope than the current scope. (BZ 7212)
11389
11390Fixed a problem where the compiler could hang after syntax errors
11391detected
11392in an ElseIf construct. (BZ 453)
11393
11394Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
11395operator. An incorrect output filename was produced when this parameter
11396was
11397a null string (""). Now, the original input filename is used as the AML
11398output filename, with an ".aml" extension.
11399
11400Implemented a generic batch command mode for the AcpiExec utility
11401(execute
11402any AML debugger command) (Valery Podrezov).
11403
11404----------------------------------------
1140512 September 2006. Summary of changes for version 20060912:
11406
114071) ACPI CA Core Subsystem:
11408
11409Enhanced the implementation of the "serialized mode" of the interpreter
11410(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
11411specified, instead of creating a serialization semaphore per control
11412method,
11413the interpreter lock is simply no longer released before a blocking
11414operation during control method execution. This effectively makes the AML
11415Interpreter single-threaded. The overhead of a semaphore per-method is
11416eliminated.
11417
11418Fixed a regression where an error was no longer emitted if a control
11419method
11420attempts to create 2 objects of the same name. This once again returns
11421AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
11422that
11423will dynamically serialize the control method to possible prevent future
11424errors. (BZ 440)
11425
11426Integrated a fix for a problem with PCI Express HID detection in the PCI
11427Config Space setup procedure. (BZ 7145)
11428
11429Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
11430AcpiHwInitialize function - the FADT registers are now validated when the
11431table is loaded.
11432
11433Added two new warnings during FADT verification - 1) if the FADT is
11434larger
11435than the largest known FADT version, and 2) if there is a mismatch
11436between
11437a
1143832-bit block address and the 64-bit X counterpart (when both are non-
11439zero.)
11440
11441Example Code and Data Size: These are the sizes for the OS-independent
11442acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11443debug version of the code includes the debug output trace mechanism and
11444has
11445a much larger code and data size.
11446
11447  Previous Release:
11448    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11449    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11450  Current Release:
11451    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11452    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11453
11454
114552) iASL Compiler/Disassembler and Tools:
11456
11457Fixed a problem with the implementation of the Switch() operator where
11458the
11459temporary variable was declared too close to the actual Switch, instead
11460of
11461at method level. This could cause a problem if the Switch() operator is
11462within a while loop, causing an error on the second iteration. (BZ 460)
11463
11464Disassembler - fix for error emitted for unknown type for target of scope
11465operator. Now, ignore it and continue.
11466
11467Disassembly of an FADT now verifies the input FADT and reports any errors
11468found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
11469
11470Disassembly of raw data buffers with byte initialization data now
11471prefixes
11472each output line with the current buffer offset.
11473
11474Disassembly of ASF! table now includes all variable-length data fields at
11475the end of some of the subtables.
11476
11477The disassembler now emits a comment if a buffer appears to be a
11478ResourceTemplate, but cannot be disassembled as such because the EndTag
11479does
11480not appear at the very end of the buffer.
11481
11482AcpiExec - Added the "-t" command line option to enable the serialized
11483mode
11484of the AML interpreter.
11485
11486----------------------------------------
1148731 August 2006. Summary of changes for version 20060831:
11488
114891) ACPI CA Core Subsystem:
11490
11491Miscellaneous fixes for the Table Manager:
11492- Correctly initialize internal common FADT for all 64-bit "X" fields
11493- Fixed a couple table mapping issues during table load
11494- Fixed a couple alignment issues for IA64
11495- Initialize input array to zero in AcpiInitializeTables
11496- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
11497AcpiGetTableByIndex
11498
11499Change for GPE support: when a "wake" GPE is received, all wake GPEs are
11500now
11501immediately disabled to prevent the waking GPE from firing again and to
11502prevent other wake GPEs from interrupting the wake process.
11503
11504Added the AcpiGpeCount global that tracks the number of processed GPEs,
11505to
11506be used for debugging systems with a large number of ACPI interrupts.
11507
11508Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
11509both the ACPICA headers and the disassembler.
11510
11511Example Code and Data Size: These are the sizes for the OS-independent
11512acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11513debug version of the code includes the debug output trace mechanism and
11514has
11515a much larger code and data size.
11516
11517  Previous Release:
11518    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11519    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11520  Current Release:
11521    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11522    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11523
11524
115252) iASL Compiler/Disassembler and Tools:
11526
11527Disassembler support for the DMAR ACPI table.
11528
11529----------------------------------------
1153023 August 2006. Summary of changes for version 20060823:
11531
115321) ACPI CA Core Subsystem:
11533
11534The Table Manager component has been completely redesigned and
11535reimplemented. The new design is much simpler, and reduces the overall
11536code
11537and data size of the kernel-resident ACPICA by approximately 5%. Also, it
11538is
11539now possible to obtain the ACPI tables very early during kernel
11540initialization, even before dynamic memory management is initialized.
11541(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
11542
11543Obsolete ACPICA interfaces:
11544
11545- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
11546init
11547time).
11548- AcpiLoadTable: Not needed.
11549- AcpiUnloadTable: Not needed.
11550
11551New ACPICA interfaces:
11552
11553- AcpiInitializeTables: Must be called before the table manager can be
11554used.
11555- AcpiReallocateRootTable: Used to transfer the root table to dynamically
11556allocated memory after it becomes available.
11557- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
11558tables
11559in the RSDT/XSDT.
11560
11561Other ACPICA changes:
11562
11563- AcpiGetTableHeader returns the actual mapped table header, not a copy.
11564Use
11565AcpiOsUnmapMemory to free this mapping.
11566- AcpiGetTable returns the actual mapped table. The mapping is managed
11567internally and must not be deleted by the caller. Use of this interface
11568causes no additional dynamic memory allocation.
11569- AcpiFindRootPointer: Support for physical addressing has been
11570eliminated,
11571it appeared to be unused.
11572- The interface to AcpiOsMapMemory has changed to be consistent with the
11573other allocation interfaces.
11574- The interface to AcpiOsGetRootPointer has changed to eliminate
11575unnecessary
11576parameters.
11577- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
1157864-
11579bit platforms. Was previously 64 bits on all platforms.
11580- The interface to the ACPI Global Lock acquire/release macros have
11581changed
11582slightly since ACPICA no longer keeps a local copy of the FACS with a
11583constructed pointer to the actual global lock.
11584
11585Porting to the new table manager:
11586
11587- AcpiInitializeTables: Must be called once, and can be called anytime
11588during the OS initialization process. It allows the host to specify an
11589area
11590of memory to be used to store the internal version of the RSDT/XSDT (root
11591table). This allows the host to access ACPI tables before memory
11592management
11593is initialized and running.
11594- AcpiReallocateRootTable: Can be called after memory management is
11595running
11596to copy the root table to a dynamically allocated array, freeing up the
11597scratch memory specified in the call to AcpiInitializeTables.
11598- AcpiSubsystemInitialize: This existing interface is independent of the
11599Table Manager, and does not have to be called before the Table Manager
11600can
11601be used, it only must be called before the rest of ACPICA can be used.
11602- ACPI Tables: Some changes have been made to the names and structure of
11603the
11604actbl.h and actbl1.h header files and may require changes to existing
11605code.
11606For example, bitfields have been completely removed because of their lack
11607of
11608portability across C compilers.
11609- Update interfaces to the Global Lock acquire/release macros if local
11610versions are used. (see acwin.h)
11611
11612Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
11613
11614New files: tbfind.c
11615
11616Example Code and Data Size: These are the sizes for the OS-independent
11617acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11618debug version of the code includes the debug output trace mechanism and
11619has
11620a much larger code and data size.
11621
11622  Previous Release:
11623    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11624    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11625  Current Release:
11626    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11627    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11628
11629
116302) iASL Compiler/Disassembler and Tools:
11631
11632No changes for this release.
11633
11634----------------------------------------
1163521 July 2006. Summary of changes for version 20060721:
11636
116371) ACPI CA Core Subsystem:
11638
11639The full source code for the ASL test suite used to validate the iASL
11640compiler and the ACPICA core subsystem is being released with the ACPICA
11641source for the first time. The source is contained in a separate package
11642and
11643consists of over 1100 files that exercise all ASL/AML operators. The
11644package
11645should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
11646Fiodor
11647Suietov)
11648
11649Completed a new design and implementation for support of the ACPI Global
11650Lock. On the OS side, the global lock is now treated as a standard AML
11651mutex. Previously, multiple OS threads could "acquire" the global lock
11652simultaneously. However, this could cause the BIOS to be starved out of
11653the
11654lock - especially in cases such as the Embedded Controller driver where
11655there is a tight coupling between the OS and the BIOS.
11656
11657Implemented an optimization for the ACPI Global Lock interrupt mechanism.
11658The Global Lock interrupt handler no longer queues the execution of a
11659separate thread to signal the global lock semaphore. Instead, the
11660semaphore
11661is signaled directly from the interrupt handler.
11662
11663Implemented support within the AML interpreter for package objects that
11664contain a larger AML length (package list length) than the package
11665element
11666count. In this case, the length of the package is truncated to match the
11667package element count. Some BIOS code apparently modifies the package
11668length
11669on the fly, and this change supports this behavior. Provides
11670compatibility
11671with the MS AML interpreter. (With assistance from Fiodor Suietov)
11672
11673Implemented a temporary fix for the BankValue parameter of a Bank Field
11674to
11675support all constant values, now including the Zero and One opcodes.
11676Evaluation of this parameter must eventually be converted to a full
11677TermArg
11678evaluation. A not-implemented error is now returned (temporarily) for
11679non-
11680constant values for this parameter.
11681
11682Fixed problem reports (Fiodor Suietov) integrated:
11683- Fix for premature object deletion after CopyObject on Operation Region
11684(BZ
11685350)
11686
11687Example Code and Data Size: These are the sizes for the OS-independent
11688acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11689debug version of the code includes the debug output trace mechanism and
11690has
11691a much larger code and data size.
11692
11693  Previous Release:
11694    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
11695    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
11696  Current Release:
11697    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11698    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11699
11700
117012) iASL Compiler/Disassembler and Tools:
11702
11703No changes for this release.
11704
11705----------------------------------------
1170607 July 2006. Summary of changes for version 20060707:
11707
117081) ACPI CA Core Subsystem:
11709
11710Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
11711that do not allow the initialization of address pointers within packed
11712structures - even though the hardware itself may support misaligned
11713transfers. Some of the debug data structures are packed by default to
11714minimize size.
11715
11716Added an error message for the case where AcpiOsGetThreadId() returns
11717zero.
11718A non-zero value is required by the core ACPICA code to ensure the proper
11719operation of AML mutexes and recursive control methods.
11720
11721The DSDT is now the only ACPI table that determines whether the AML
11722interpreter is in 32-bit or 64-bit mode. Not really a functional change,
11723but
11724the hooks for per-table 32/64 switching have been removed from the code.
11725A
11726clarification to the ACPI specification is forthcoming in ACPI 3.0B.
11727
11728Fixed a possible leak of an OwnerID in the error path of
11729AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
11730deletion to a single place in AcpiTbUninstallTable to correct possible
11731leaks
11732when using the AcpiTbDeleteTablesByType interface (with assistance from
11733Lance Ortiz.)
11734
11735Fixed a problem with Serialized control methods where the semaphore
11736associated with the method could be over-signaled after multiple method
11737invocations.
11738
11739Fixed two issues with the locking of the internal namespace data
11740structure.
11741Both the Unload() operator and AcpiUnloadTable interface now lock the
11742namespace during the namespace deletion associated with the table unload
11743(with assistance from Linn Crosetto.)
11744
11745Fixed problem reports (Valery Podrezov) integrated:
11746- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
11747
11748Fixed problem reports (Fiodor Suietov) integrated:
11749- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
11750- On Address Space handler deletion, needless deactivation call (BZ 374)
11751- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
11752375)
11753- Possible memory leak, Notify sub-objects of Processor, Power,
11754ThermalZone
11755(BZ 376)
11756- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
11757- Minimum Length of RSDT should be validated (BZ 379)
11758- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
11759Handler (BZ (380)
11760- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
11761loaded
11762(BZ 381)
11763
11764Example Code and Data Size: These are the sizes for the OS-independent
11765acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11766debug version of the code includes the debug output trace mechanism and
11767has
11768a much larger code and data size.
11769
11770  Previous Release:
11771    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11772    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11773  Current Release:
11774    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11775    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11776
11777
117782) iASL Compiler/Disassembler and Tools:
11779
11780Fixed problem reports:
11781Compiler segfault when ASL contains a long (>1024) String declaration (BZ
11782436)
11783
11784----------------------------------------
1178523 June 2006. Summary of changes for version 20060623:
11786
117871) ACPI CA Core Subsystem:
11788
11789Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
11790allows the type to be customized to the host OS for improved efficiency
11791(since a spinlock is usually a very small object.)
11792
11793Implemented support for "ignored" bits in the ACPI registers. According
11794to
11795the ACPI specification, these bits should be preserved when writing the
11796registers via a read/modify/write cycle. There are 3 bits preserved in
11797this
11798manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
11799
11800Implemented the initial deployment of new OSL mutex interfaces. Since
11801some
11802host operating systems have separate mutex and semaphore objects, this
11803feature was requested. The base code now uses mutexes (and the new mutex
11804interfaces) wherever a binary semaphore was used previously. However, for
11805the current release, the mutex interfaces are defined as macros to map
11806them
11807to the existing semaphore interfaces. Therefore, no OSL changes are
11808required
11809at this time. (See acpiosxf.h)
11810
11811Fixed several problems with the support for the control method SyncLevel
11812parameter. The SyncLevel now works according to the ACPI specification
11813and
11814in concert with the Mutex SyncLevel parameter, since the current
11815SyncLevel
11816is a property of the executing thread. Mutual exclusion for control
11817methods
11818is now implemented with a mutex instead of a semaphore.
11819
11820Fixed three instances of the use of the C shift operator in the bitfield
11821support code (exfldio.c) to avoid the use of a shift value larger than
11822the
11823target data width. The behavior of C compilers is undefined in this case
11824and
11825can cause unpredictable results, and therefore the case must be detected
11826and
11827avoided. (Fiodor Suietov)
11828
11829Added an info message whenever an SSDT or OEM table is loaded dynamically
11830via the Load() or LoadTable() ASL operators. This should improve
11831debugging
11832capability since it will show exactly what tables have been loaded
11833(beyond
11834the tables present in the RSDT/XSDT.)
11835
11836Example Code and Data Size: These are the sizes for the OS-independent
11837acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11838debug version of the code includes the debug output trace mechanism and
11839has
11840a much larger code and data size.
11841
11842  Previous Release:
11843    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11844    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11845  Current Release:
11846    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11847    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11848
11849
118502) iASL Compiler/Disassembler and Tools:
11851
11852No changes for this release.
11853
11854----------------------------------------
1185508 June 2006. Summary of changes for version 20060608:
11856
118571) ACPI CA Core Subsystem:
11858
11859Converted the locking mutex used for the ACPI hardware to a spinlock.
11860This
11861change should eliminate all problems caused by attempting to acquire a
11862semaphore at interrupt level, and it means that all ACPICA external
11863interfaces that directly access the ACPI hardware can be safely called
11864from
11865interrupt level. OSL code that implements the semaphore interfaces should
11866be
11867able to eliminate any workarounds for being called at interrupt level.
11868
11869Fixed a regression introduced in 20060526 where the ACPI device
11870initialization could be prematurely aborted with an AE_NOT_FOUND if a
11871device
11872did not have an optional _INI method.
11873
11874Fixed an IndexField issue where a write to the Data Register should be
11875limited in size to the AccessSize (width) of the IndexField itself. (BZ
11876433,
11877Fiodor Suietov)
11878
11879Fixed problem reports (Valery Podrezov) integrated:
11880- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
11881
11882Fixed problem reports (Fiodor Suietov) integrated:
11883- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
11884
11885Removed four global mutexes that were obsolete and were no longer being
11886used.
11887
11888Example Code and Data Size: These are the sizes for the OS-independent
11889acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11890debug version of the code includes the debug output trace mechanism and
11891has
11892a much larger code and data size.
11893
11894  Previous Release:
11895    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11896    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11897  Current Release:
11898    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11899    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11900
11901
119022) iASL Compiler/Disassembler and Tools:
11903
11904Fixed a fault when using -g option (get tables from registry) on Windows
11905machines.
11906
11907Fixed problem reports integrated:
11908- Generate error if CreateField NumBits parameter is zero. (BZ 405)
11909- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
11910Suietov)
11911- Global table revision override (-r) is ignored (BZ 413)
11912
11913----------------------------------------
1191426 May 2006. Summary of changes for version 20060526:
11915
119161) ACPI CA Core Subsystem:
11917
11918Restructured, flattened, and simplified the internal interfaces for
11919namespace object evaluation - resulting in smaller code, less CPU stack
11920use,
11921and fewer interfaces. (With assistance from Mikhail Kouzmich)
11922
11923Fixed a problem with the CopyObject operator where the first parameter
11924was
11925not typed correctly for the parser, interpreter, compiler, and
11926disassembler.
11927Caused various errors and unexpected behavior.
11928
11929Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
11930produced incorrect results with some C compilers. Since the behavior of C
11931compilers when the shift value is larger than the datatype width is
11932apparently not well defined, the interpreter now detects this condition
11933and
11934simply returns zero as expected in all such cases. (BZ 395)
11935
11936Fixed problem reports (Valery Podrezov) integrated:
11937- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
11938- Allow interpreter to handle nested method declarations (BZ 5361)
11939
11940Fixed problem reports (Fiodor Suietov) integrated:
11941- AcpiTerminate doesn't free debug memory allocation list objects (BZ
11942355)
11943- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
11944356)
11945- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
11946- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
11947- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
11948- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
11949- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
11950- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
11951- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
11952365)
11953- Status of the Global Initialization Handler call not used (BZ 366)
11954- Incorrect object parameter to Global Initialization Handler (BZ 367)
11955
11956Example Code and Data Size: These are the sizes for the OS-independent
11957acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11958debug version of the code includes the debug output trace mechanism and
11959has
11960a much larger code and data size.
11961
11962  Previous Release:
11963    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11964    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11965  Current Release:
11966    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11967    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11968
11969
119702) iASL Compiler/Disassembler and Tools:
11971
11972Modified the parser to allow the names IO, DMA, and IRQ to be used as
11973namespace identifiers with no collision with existing resource descriptor
11974macro names. This provides compatibility with other ASL compilers and is
11975most useful for disassembly/recompilation of existing tables without
11976parse
11977errors. (With assistance from Thomas Renninger)
11978
11979Disassembler: fixed an incorrect disassembly problem with the
11980DataTableRegion and CopyObject operators. Fixed a possible fault during
11981disassembly of some Alias operators.
11982
11983----------------------------------------
1198412 May 2006. Summary of changes for version 20060512:
11985
119861) ACPI CA Core Subsystem:
11987
11988Replaced the AcpiOsQueueForExecution interface with a new interface named
11989AcpiOsExecute. The major difference is that the new interface does not
11990have
11991a Priority parameter, this appeared to be useless and has been replaced
11992by
11993a
11994Type parameter. The Type tells the host what type of execution is being
11995requested, such as global lock handler, notify handler, GPE handler, etc.
11996This allows the host to queue and execute the request as appropriate for
11997the
11998request type, possibly using different work queues and different
11999priorities
12000for the various request types. This enables fixes for multithreading
12001deadlock problems such as BZ #5534, and will require changes to all
12002existing
12003OS interface layers. (Alexey Starikovskiy and Bob Moore)
12004
12005Fixed a possible memory leak associated with the support for the so-
12006called
12007"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
12008Suietov)
12009
12010Fixed a problem with the Load() operator where a table load from an
12011operation region could overwrite an internal table buffer by up to 7
12012bytes
12013and cause alignment faults on IPF systems. (With assistance from Luming
12014Yu)
12015
12016Example Code and Data Size: These are the sizes for the OS-independent
12017acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
12018debug version of the code includes the debug output trace mechanism and
12019has
12020a much larger code and data size.
12021
12022  Previous Release:
12023    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
12024    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
12025  Current Release:
12026    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
12027    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
12028
12029
12030
120312) iASL Compiler/Disassembler and Tools:
12032
12033Disassembler: Implemented support to cross reference the internal
12034namespace
12035and automatically generate ASL External() statements for symbols not
12036defined
12037within the current table being disassembled. This will simplify the
12038disassembly and recompilation of interdependent tables such as SSDTs
12039since
12040these statements will no longer have to be added manually.
12041
12042Disassembler: Implemented experimental support to automatically detect
12043invocations of external control methods and generate appropriate
12044External()
12045statements. This is problematic because the AML cannot be correctly
12046parsed
12047until the number of arguments for each control method is known.
12048Currently,
12049standalone method invocations and invocations as the source operand of a
12050Store() statement are supported.
12051
12052Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
12053LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
12054LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
12055more readable and likely closer to the original ASL source.
12056
12057----------------------------------------
1205821 April 2006. Summary of changes for version 20060421:
12059
120601) ACPI CA Core Subsystem:
12061
12062Removed a device initialization optimization introduced in 20051216 where
12063the _STA method was not run unless an _INI was also present for the same
12064device. This optimization could cause problems because it could allow
12065_INI
12066methods to be run within a not-present device subtree. (If a not-present
12067device had no _INI, _STA would not be run, the not-present status would
12068not
12069be discovered, and the children of the device would be incorrectly
12070traversed.)
12071
12072Implemented a new _STA optimization where namespace subtrees that do not
12073contain _INI are identified and ignored during device initialization.
12074Selectively running _STA can significantly improve boot time on large
12075machines (with assistance from Len Brown.)
12076
12077Implemented support for the device initialization case where the returned
12078_STA flags indicate a device not-present but functioning. In this case,
12079_INI
12080is not run, but the device children are examined for presence, as per the
12081ACPI specification.
12082
12083Implemented an additional change to the IndexField support in order to
12084conform to MS behavior. The value written to the Index Register is not
12085simply a byte offset, it is a byte offset in units of the access width of
12086the parent Index Field. (Fiodor Suietov)
12087
12088Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
12089interface is called during the creation of all AML operation regions, and
12090allows the host OS to exert control over what addresses it will allow the
12091AML code to access. Operation Regions whose addresses are disallowed will
12092cause a runtime exception when they are actually accessed (will not
12093affect
12094or abort table loading.) See oswinxf or osunixxf for an example
12095implementation.
12096
12097Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
12098interface allows the host OS to match the various "optional"
12099interface/behavior strings for the _OSI predefined control method as
12100appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
12101for an example implementation.
12102
12103Restructured and corrected various problems in the exception handling
12104code
12105paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
12106(with assistance from Takayoshi Kochi.)
12107
12108Modified the Linux source converter to ignore quoted string literals
12109while
12110converting identifiers from mixed to lower case. This will correct
12111problems
12112with the disassembler and other areas where such strings must not be
12113modified.
12114
12115The ACPI_FUNCTION_* macros no longer require quotes around the function
12116name. This allows the Linux source converter to convert the names, now
12117that
12118the converter ignores quoted strings.
12119
12120Example Code and Data Size: These are the sizes for the OS-independent
12121acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
12122debug version of the code includes the debug output trace mechanism and
12123has
12124a much larger code and data size.
12125
12126  Previous Release:
12127
12128    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
12129    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
12130  Current Release:
12131    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
12132    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
12133
12134
121352) iASL Compiler/Disassembler and Tools:
12136
12137Implemented 3 new warnings for iASL, and implemented multiple warning
12138levels
12139(w2 flag).
12140
121411) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
12142not
12143WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
12144check for the possible timeout, a warning is issued.
12145
121462) Useless operators: If an ASL operator does not specify an optional
12147target
12148operand and it also does not use the function return value from the
12149operator, a warning is issued since the operator effectively does
12150nothing.
12151
121523) Unreferenced objects: If a namespace object is created, but never
12153referenced, a warning is issued. This is a warning level 2 since there
12154are
12155cases where this is ok, such as when a secondary table is loaded that
12156uses
12157the unreferenced objects. Even so, care is taken to only flag objects
12158that
12159don't look like they will ever be used. For example, the reserved methods
12160(starting with an underscore) are usually not referenced because it is
12161expected that the OS will invoke them.
12162
12163----------------------------------------
1216431 March 2006. Summary of changes for version 20060331:
12165
121661) ACPI CA Core Subsystem:
12167
12168Implemented header file support for the following additional ACPI tables:
12169ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
12170support,
12171all current and known ACPI tables are now defined in the ACPICA headers
12172and
12173are available for use by device drivers and other software.
12174
12175Implemented support to allow tables that contain ACPI names with invalid
12176characters to be loaded. Previously, this would cause the table load to
12177fail, but since there are several known cases of such tables on existing
12178machines, this change was made to enable ACPI support for them. Also,
12179this
12180matches the behavior of the Microsoft ACPI implementation.
12181
12182Fixed a couple regressions introduced during the memory optimization in
12183the
1218420060317 release. The namespace node definition required additional
12185reorganization and an internal datatype that had been changed to 8-bit
12186was
12187restored to 32-bit. (Valery Podrezov)
12188
12189Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
12190could be passed through to AcpiOsReleaseObject which is unexpected. Such
12191null pointers are now trapped and ignored, matching the behavior of the
12192previous implementation before the deployment of AcpiOsReleaseObject.
12193(Valery Podrezov, Fiodor Suietov)
12194
12195Fixed a memory mapping leak during the deletion of a SystemMemory
12196operation
12197region where a cached memory mapping was not deleted. This became a
12198noticeable problem for operation regions that are defined within
12199frequently
12200used control methods. (Dana Meyers)
12201
12202Reorganized the ACPI table header files into two main files: one for the
12203ACPI tables consumed by the ACPICA core, and another for the
12204miscellaneous
12205ACPI tables that are consumed by the drivers and other software. The
12206various
12207FADT definitions were merged into one common section and three different
12208tables (ACPI 1.0, 1.0+, and 2.0)
12209
12210Example Code and Data Size: These are the sizes for the OS-independent
12211acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
12212debug version of the code includes the debug output trace mechanism and
12213has
12214a much larger code and data size.
12215
12216  Previous Release:
12217    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
12218    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
12219  Current Release:
12220    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
12221    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
12222
12223
122242) iASL Compiler/Disassembler and Tools:
12225
12226Disassembler: Implemented support to decode and format all non-AML ACPI
12227tables (tables other than DSDTs and SSDTs.) This includes the new tables
12228added to the ACPICA headers, therefore all current and known ACPI tables
12229are
12230supported.
12231
12232Disassembler: The change to allow ACPI names with invalid characters also
12233enables the disassembly of such tables. Invalid characters within names
12234are
12235changed to '*' to make the name printable; the iASL compiler will still
12236generate an error for such names, however, since this is an invalid ACPI
12237character.
12238
12239Implemented an option for AcpiXtract (-a) to extract all tables found in
12240the
12241input file. The default invocation extracts only the DSDTs and SSDTs.
12242
12243Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
12244makefile for the AcpiXtract utility.
12245
12246----------------------------------------
1224717 March 2006. Summary of changes for version 20060317:
12248
122491) ACPI CA Core Subsystem:
12250
12251Implemented the use of a cache object for all internal namespace nodes.
12252Since there are about 1000 static nodes in a typical system, this will
12253decrease memory use for cache implementations that minimize per-
12254allocation
12255overhead (such as a slab allocator.)
12256
12257Removed the reference count mechanism for internal namespace nodes, since
12258it
12259was deemed unnecessary. This reduces the size of each namespace node by
12260about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
12261case,
12262and 32 bytes for the 64-bit case.
12263
12264Optimized several internal data structures to reduce object size on 64-
12265bit
12266platforms by packing data within the 64-bit alignment. This includes the
12267frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
12268instances corresponding to the namespace objects.
12269
12270Added two new strings for the predefined _OSI method: "Windows 2001.1
12271SP1"
12272and "Windows 2006".
12273
12274Split the allocation tracking mechanism out to a separate file, from
12275utalloc.c to uttrack.c. This mechanism appears to be only useful for
12276application-level code. Kernels may wish to not include uttrack.c in
12277distributions.
12278
12279Removed all remnants of the obsolete ACPI_REPORT_* macros and the
12280associated
12281code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
12282macros.)
12283
12284Code and Data Size: These are the sizes for the acpica.lib produced by
12285the
12286Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12287ACPI
12288driver or OSPM code. The debug version of the code includes the debug
12289output
12290trace mechanism and has a much larger code and data size. Note that these
12291values will vary depending on the efficiency of the compiler and the
12292compiler options used during generation.
12293
12294  Previous Release:
12295    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12296    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12297  Current Release:
12298    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
12299    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
12300
12301
123022) iASL Compiler/Disassembler and Tools:
12303
12304Implemented an ANSI C version of the acpixtract utility. This version
12305will
12306automatically extract the DSDT and all SSDTs from the input acpidump text
12307file and dump the binary output to separate files. It can also display a
12308summary of the input file including the headers for each table found and
12309will extract any single ACPI table, with any signature. (See
12310source/tools/acpixtract)
12311
12312----------------------------------------
1231310 March 2006. Summary of changes for version 20060310:
12314
123151) ACPI CA Core Subsystem:
12316
12317Tagged all external interfaces to the subsystem with the new
12318ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
12319assist
12320kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
12321macro. The default definition is NULL.
12322
12323Added the ACPI_THREAD_ID type for the return value from
12324AcpiOsGetThreadId.
12325This allows the host to define this as necessary to simplify kernel
12326integration. The default definition is ACPI_NATIVE_UINT.
12327
12328Fixed two interpreter problems related to error processing, the deletion
12329of
12330objects, and placing invalid pointers onto the internal operator result
12331stack. BZ 6028, 6151 (Valery Podrezov)
12332
12333Increased the reference count threshold where a warning is emitted for
12334large
12335reference counts in order to eliminate unnecessary warnings on systems
12336with
12337large namespaces (especially 64-bit.) Increased the value from 0x400 to
123380x800.
12339
12340Due to universal disagreement as to the meaning of the 'c' in the
12341calloc()
12342function, the ACPI_MEM_CALLOCATE macro has been renamed to
12343ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
12344ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
12345ACPI_FREE.
12346
12347Code and Data Size: These are the sizes for the acpica.lib produced by
12348the
12349Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12350ACPI
12351driver or OSPM code. The debug version of the code includes the debug
12352output
12353trace mechanism and has a much larger code and data size. Note that these
12354values will vary depending on the efficiency of the compiler and the
12355compiler options used during generation.
12356
12357  Previous Release:
12358    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12359    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12360  Current Release:
12361    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12362    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12363
12364
123652) iASL Compiler/Disassembler:
12366
12367Disassembler: implemented support for symbolic resource descriptor
12368references. If a CreateXxxxField operator references a fixed offset
12369within
12370a
12371resource descriptor, a name is assigned to the descriptor and the offset
12372is
12373translated to the appropriate resource tag and pathname. The addition of
12374this support brings the disassembled code very close to the original ASL
12375source code and helps eliminate run-time errors when the disassembled
12376code
12377is modified (and recompiled) in such a way as to invalidate the original
12378fixed offsets.
12379
12380Implemented support for a Descriptor Name as the last parameter to the
12381ASL
12382Register() macro. This parameter was inadvertently left out of the ACPI
12383specification, and will be added for ACPI 3.0b.
12384
12385Fixed a problem where the use of the "_OSI" string (versus the full path
12386"\_OSI") caused an internal compiler error. ("No back ptr to op")
12387
12388Fixed a problem with the error message that occurs when an invalid string
12389is
12390used for a _HID object (such as one with an embedded asterisk:
12391"*PNP010A".)
12392The correct message is now displayed.
12393
12394----------------------------------------
1239517 February 2006. Summary of changes for version 20060217:
12396
123971) ACPI CA Core Subsystem:
12398
12399Implemented a change to the IndexField support to match the behavior of
12400the
12401Microsoft AML interpreter. The value written to the Index register is now
12402a
12403byte offset, no longer an index based upon the width of the Data
12404register.
12405This should fix IndexField problems seen on some machines where the Data
12406register is not exactly one byte wide. The ACPI specification will be
12407clarified on this point.
12408
12409Fixed a problem where several resource descriptor types could overrun the
12410internal descriptor buffer due to size miscalculation: VendorShort,
12411VendorLong, and Interrupt. This was noticed on IA64 machines, but could
12412affect all platforms.
12413
12414Fixed a problem where individual resource descriptors were misaligned
12415within
12416the internal buffer, causing alignment faults on IA64 platforms.
12417
12418Code and Data Size: These are the sizes for the acpica.lib produced by
12419the
12420Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12421ACPI
12422driver or OSPM code. The debug version of the code includes the debug
12423output
12424trace mechanism and has a much larger code and data size. Note that these
12425values will vary depending on the efficiency of the compiler and the
12426compiler options used during generation.
12427
12428  Previous Release:
12429    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12430    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12431  Current Release:
12432    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12433    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12434
12435
124362) iASL Compiler/Disassembler:
12437
12438Implemented support for new reserved names: _WDG and _WED are Microsoft
12439extensions for Windows Instrumentation Management, _TDL is a new ACPI-
12440defined method (Throttling Depth Limit.)
12441
12442Fixed a problem where a zero-length VendorShort or VendorLong resource
12443descriptor was incorrectly emitted as a descriptor of length one.
12444
12445----------------------------------------
1244610 February 2006. Summary of changes for version 20060210:
12447
124481) ACPI CA Core Subsystem:
12449
12450Removed a couple of extraneous ACPI_ERROR messages that appeared during
12451normal execution. These became apparent after the conversion from
12452ACPI_DEBUG_PRINT.
12453
12454Fixed a problem where the CreateField operator could hang if the BitIndex
12455or
12456NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
12457
12458Fixed a problem where a DeRefOf operation on a buffer object incorrectly
12459failed with an exception. This also fixes a couple of related RefOf and
12460DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
12461
12462Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
12463of
12464AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
12465BZ
124665480)
12467
12468Implemented a memory cleanup at the end of the execution of each
12469iteration
12470of an AML While() loop, preventing the accumulation of outstanding
12471objects.
12472(Valery Podrezov, BZ 5427)
12473
12474Eliminated a chunk of duplicate code in the object resolution code.
12475(Valery
12476Podrezov, BZ 5336)
12477
12478Fixed several warnings during the 64-bit code generation.
12479
12480The AcpiSrc source code conversion tool now inserts one line of
12481whitespace
12482after an if() statement that is followed immediately by a comment,
12483improving
12484readability of the Linux code.
12485
12486Code and Data Size: The current and previous library sizes for the core
12487subsystem are shown below. These are the code and data sizes for the
12488acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12489These
12490values do not include any ACPI driver or OSPM code. The debug version of
12491the
12492code includes the debug output trace mechanism and has a much larger code
12493and data size. Note that these values will vary depending on the
12494efficiency
12495of the compiler and the compiler options used during generation.
12496
12497  Previous Release:
12498    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12499    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12500  Current Release:
12501    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12502    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12503
12504
125052) iASL Compiler/Disassembler:
12506
12507Fixed a problem with the disassembly of a BankField operator with a
12508complex
12509expression for the BankValue parameter.
12510
12511----------------------------------------
1251227 January 2006. Summary of changes for version 20060127:
12513
125141) ACPI CA Core Subsystem:
12515
12516Implemented support in the Resource Manager to allow unresolved
12517namestring
12518references within resource package objects for the _PRT method. This
12519support
12520is in addition to the previously implemented unresolved reference support
12521within the AML parser. If the interpreter slack mode is enabled, these
12522unresolved references will be passed through to the caller as a NULL
12523package
12524entry.
12525
12526Implemented and deployed new macros and functions for error and warning
12527messages across the subsystem. These macros are simpler and generate less
12528code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
12529ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
12530macros remain defined to allow ACPI drivers time to migrate to the new
12531macros.
12532
12533Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
12534the
12535Acquire/Release Lock OSL interfaces.
12536
12537Fixed a problem where Alias ASL operators are sometimes not correctly
12538resolved, in both the interpreter and the iASL compiler.
12539
12540Fixed several problems with the implementation of the
12541ConcatenateResTemplate
12542ASL operator. As per the ACPI specification, zero length buffers are now
12543treated as a single EndTag. One-length buffers always cause a fatal
12544exception. Non-zero length buffers that do not end with a full 2-byte
12545EndTag
12546cause a fatal exception.
12547
12548Fixed a possible structure overwrite in the AcpiGetObjectInfo external
12549interface. (With assistance from Thomas Renninger)
12550
12551Code and Data Size: The current and previous library sizes for the core
12552subsystem are shown below. These are the code and data sizes for the
12553acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12554These
12555values do not include any ACPI driver or OSPM code. The debug version of
12556the
12557code includes the debug output trace mechanism and has a much larger code
12558and data size. Note that these values will vary depending on the
12559efficiency
12560of the compiler and the compiler options used during generation.
12561
12562  Previous Release:
12563    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12564    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12565  Current Release:
12566    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12567    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12568
12569
125702) iASL Compiler/Disassembler:
12571
12572Fixed an internal error that was generated for any forward references to
12573ASL
12574Alias objects.
12575
12576----------------------------------------
1257713 January 2006. Summary of changes for version 20060113:
12578
125791) ACPI CA Core Subsystem:
12580
12581Added 2006 copyright to all module headers and signons. This affects
12582virtually every file in the ACPICA core subsystem, iASL compiler, and the
12583utilities.
12584
12585Enhanced the ACPICA error reporting in order to simplify user migration
12586to
12587the non-debug version of ACPICA. Replaced all instances of the
12588ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
12589debug
12590levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
12591respectively. This preserves all error and warning messages in the non-
12592debug
12593version of the ACPICA code (this has been referred to as the "debug lite"
12594option.) Over 200 cases were converted to create a total of over 380
12595error/warning messages across the ACPICA code. This increases the code
12596and
12597data size of the default non-debug version of the code somewhat (about
1259813K),
12599but all error/warning reporting may be disabled if desired (and code
12600eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
12601configuration option. The size of the debug version of ACPICA remains
12602about
12603the same.
12604
12605Fixed a memory leak within the AML Debugger "Set" command. One object was
12606not properly deleted for every successful invocation of the command.
12607
12608Code and Data Size: The current and previous library sizes for the core
12609subsystem are shown below. These are the code and data sizes for the
12610acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12611These
12612values do not include any ACPI driver or OSPM code. The debug version of
12613the
12614code includes the debug output trace mechanism and has a much larger code
12615and data size. Note that these values will vary depending on the
12616efficiency
12617of the compiler and the compiler options used during generation.
12618
12619  Previous Release:
12620    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12621    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12622  Current Release:
12623    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12624    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12625
12626
126272) iASL Compiler/Disassembler:
12628
12629The compiler now officially supports the ACPI 3.0a specification that was
12630released on December 30, 2005. (Specification is available at
12631www.acpi.info)
12632
12633----------------------------------------
1263416 December 2005. Summary of changes for version 20051216:
12635
126361) ACPI CA Core Subsystem:
12637
12638Implemented optional support to allow unresolved names within ASL Package
12639objects. A null object is inserted in the package when a named reference
12640cannot be located in the current namespace. Enabled via the interpreter
12641slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
12642machines
12643that contain such code.
12644
12645Implemented an optimization to the initialization sequence that can
12646improve
12647boot time. During ACPI device initialization, the _STA method is now run
12648if
12649and only if the _INI method exists. The _STA method is used to determine
12650if
12651the device is present; An _INI can only be run if _STA returns present,
12652but
12653it is a waste of time to run the _STA method if the _INI does not exist.
12654(Prototype and assistance from Dong Wei)
12655
12656Implemented use of the C99 uintptr_t for the pointer casting macros if it
12657is
12658available in the current compiler. Otherwise, the default (void *) cast
12659is
12660used as before.
12661
12662Fixed some possible memory leaks found within the execution path of the
12663Break, Continue, If, and CreateField operators. (Valery Podrezov)
12664
12665Fixed a problem introduced in the 20051202 release where an exception is
12666generated during method execution if a control method attempts to declare
12667another method.
12668
12669Moved resource descriptor string constants that are used by both the AML
12670disassembler and AML debugger to the common utilities directory so that
12671these components are independent.
12672
12673Implemented support in the AcpiExec utility (-e switch) to globally
12674ignore
12675exceptions during control method execution (method is not aborted.)
12676
12677Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
12678generation.
12679
12680Code and Data Size: The current and previous library sizes for the core
12681subsystem are shown below. These are the code and data sizes for the
12682acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12683These
12684values do not include any ACPI driver or OSPM code. The debug version of
12685the
12686code includes the debug output trace mechanism and has a much larger code
12687and data size. Note that these values will vary depending on the
12688efficiency
12689of the compiler and the compiler options used during generation.
12690
12691  Previous Release:
12692    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12693    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12694  Current Release:
12695    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12696    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12697
12698
126992) iASL Compiler/Disassembler:
12700
12701Fixed a problem where a CPU stack overflow fault could occur if a
12702recursive
12703method call was made from within a Return statement.
12704
12705----------------------------------------
1270602 December 2005. Summary of changes for version 20051202:
12707
127081) ACPI CA Core Subsystem:
12709
12710Modified the parsing of control methods to no longer create namespace
12711objects during the first pass of the parse. Objects are now created only
12712during the execute phase, at the moment the namespace creation operator
12713is
12714encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
12715This
12716should eliminate ALREADY_EXISTS exceptions seen on some machines where
12717reentrant control methods are protected by an AML mutex. The mutex will
12718now
12719correctly block multiple threads from attempting to create the same
12720object
12721more than once.
12722
12723Increased the number of available Owner Ids for namespace object tracking
12724from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
12725on
12726some machines with a large number of ACPI tables (either static or
12727dynamic).
12728
12729Fixed a problem with the AcpiExec utility where a fault could occur when
12730the
12731-b switch (batch mode) is used.
12732
12733Enhanced the namespace dump routine to output the owner ID for each
12734namespace object.
12735
12736Code and Data Size: The current and previous library sizes for the core
12737subsystem are shown below. These are the code and data sizes for the
12738acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12739These
12740values do not include any ACPI driver or OSPM code. The debug version of
12741the
12742code includes the debug output trace mechanism and has a much larger code
12743and data size. Note that these values will vary depending on the
12744efficiency
12745of the compiler and the compiler options used during generation.
12746
12747  Previous Release:
12748    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12749    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12750  Current Release:
12751    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12752    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12753
12754
127552) iASL Compiler/Disassembler:
12756
12757Fixed a parse error during compilation of certain Switch/Case constructs.
12758To
12759simplify the parse, the grammar now allows for multiple Default
12760statements
12761and this error is now detected and flagged during the analysis phase.
12762
12763Disassembler: The disassembly now includes the contents of the original
12764table header within a comment at the start of the file. This includes the
12765name and version of the original ASL compiler.
12766
12767----------------------------------------
1276817 November 2005. Summary of changes for version 20051117:
12769
127701) ACPI CA Core Subsystem:
12771
12772Fixed a problem in the AML parser where the method thread count could be
12773decremented below zero if any errors occurred during the method parse
12774phase.
12775This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
12776machines.
12777This also fixed a related regression with the mechanism that detects and
12778corrects methods that cannot properly handle reentrancy (related to the
12779deployment of the new OwnerId mechanism.)
12780
12781Eliminated the pre-parsing of control methods (to detect errors) during
12782table load. Related to the problem above, this was causing unwind issues
12783if
12784any errors occurred during the parse, and it seemed to be overkill. A
12785table
12786load should not be aborted if there are problems with any single control
12787method, thus rendering this feature rather pointless.
12788
12789Fixed a problem with the new table-driven resource manager where an
12790internal
12791buffer overflow could occur for small resource templates.
12792
12793Implemented a new external interface, AcpiGetVendorResource. This
12794interface
12795will find and return a vendor-defined resource descriptor within a _CRS
12796or
12797_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
12798Helgaas.
12799
12800Removed the length limit (200) on string objects as per the upcoming ACPI
128013.0A specification. This affects the following areas of the interpreter:
128021)
12803any implicit conversion of a Buffer to a String, 2) a String object
12804result
12805of the ASL Concatenate operator, 3) the String object result of the ASL
12806ToString operator.
12807
12808Fixed a problem in the Windows OS interface layer (OSL) where a
12809WAIT_FOREVER
12810on a semaphore object would incorrectly timeout. This allows the
12811multithreading features of the AcpiExec utility to work properly under
12812Windows.
12813
12814Updated the Linux makefiles for the iASL compiler and AcpiExec to include
12815the recently added file named "utresrc.c".
12816
12817Code and Data Size: The current and previous library sizes for the core
12818subsystem are shown below. These are the code and data sizes for the
12819acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12820These
12821values do not include any ACPI driver or OSPM code. The debug version of
12822the
12823code includes the debug output trace mechanism and has a much larger code
12824and data size. Note that these values will vary depending on the
12825efficiency
12826of the compiler and the compiler options used during generation.
12827
12828  Previous Release:
12829    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12830    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12831  Current Release:
12832    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12833    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12834
12835
128362) iASL Compiler/Disassembler:
12837
12838Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
12839specification. For the iASL compiler, this means that string literals
12840within
12841the source ASL can be of any length.
12842
12843Enhanced the listing output to dump the AML code for resource descriptors
12844immediately after the ASL code for each descriptor, instead of in a block
12845at
12846the end of the entire resource template.
12847
12848Enhanced the compiler debug output to dump the entire original parse tree
12849constructed during the parse phase, before any transforms are applied to
12850the
12851tree. The transformed tree is dumped also.
12852
12853----------------------------------------
1285402 November 2005. Summary of changes for version 20051102:
12855
128561) ACPI CA Core Subsystem:
12857
12858Modified the subsystem initialization sequence to improve GPE support.
12859The
12860GPE initialization has been split into two parts in order to defer
12861execution
12862of the _PRW methods (Power Resources for Wake) until after the hardware
12863is
12864fully initialized and the SCI handler is installed. This allows the _PRW
12865methods to access fields protected by the Global Lock. This will fix
12866systems
12867where a NO_GLOBAL_LOCK exception has been seen during initialization.
12868
12869Converted the ACPI internal object disassemble and display code within
12870the
12871AML debugger to fully table-driven operation, reducing code size and
12872increasing maintainability.
12873
12874Fixed a regression with the ConcatenateResTemplate() ASL operator
12875introduced
12876in the 20051021 release.
12877
12878Implemented support for "local" internal ACPI object types within the
12879debugger "Object" command and the AcpiWalkNamespace external interfaces.
12880These local types include RegionFields, BankFields, IndexFields, Alias,
12881and
12882reference objects.
12883
12884Moved common AML resource handling code into a new file, "utresrc.c".
12885This
12886code is shared by both the Resource Manager and the AML Debugger.
12887
12888Code and Data Size: The current and previous library sizes for the core
12889subsystem are shown below. These are the code and data sizes for the
12890acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12891These
12892values do not include any ACPI driver or OSPM code. The debug version of
12893the
12894code includes the debug output trace mechanism and has a much larger code
12895and data size. Note that these values will vary depending on the
12896efficiency
12897of the compiler and the compiler options used during generation.
12898
12899  Previous Release:
12900    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12901    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12902  Current Release:
12903    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12904    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12905
12906
129072) iASL Compiler/Disassembler:
12908
12909Fixed a problem with very large initializer lists (more than 4000
12910elements)
12911for both Buffer and Package objects where the parse stack could overflow.
12912
12913Enhanced the pre-compile source code scan for non-ASCII characters to
12914ignore
12915characters within comment fields. The scan is now always performed and is
12916no
12917longer optional, detecting invalid characters within a source file
12918immediately rather than during the parse phase or later.
12919
12920Enhanced the ASL grammar definition to force early reductions on all
12921list-
12922style grammar elements so that the overall parse stack usage is greatly
12923reduced. This should improve performance and reduce the possibility of
12924parse
12925stack overflow.
12926
12927Eliminated all reduce/reduce conflicts in the iASL parser generation.
12928Also,
12929with the addition of a %expected statement, the compiler generates from
12930source with no warnings.
12931
12932Fixed a possible segment fault in the disassembler if the input filename
12933does not contain a "dot" extension (Thomas Renninger).
12934
12935----------------------------------------
1293621 October 2005. Summary of changes for version 20051021:
12937
129381) ACPI CA Core Subsystem:
12939
12940Implemented support for the EM64T and other x86-64 processors. This
12941essentially entails recognizing that these processors support non-aligned
12942memory transfers. Previously, all 64-bit processors were assumed to lack
12943hardware support for non-aligned transfers.
12944
12945Completed conversion of the Resource Manager to nearly full table-driven
12946operation. Specifically, the resource conversion code (convert AML to
12947internal format and the reverse) and the debug code to dump internal
12948resource descriptors are fully table-driven, reducing code and data size
12949and
12950improving maintainability.
12951
12952The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
12953word
12954on 64-bit processors instead of a fixed 32-bit word. (With assistance
12955from
12956Alexey Starikovskiy)
12957
12958Implemented support within the resource conversion code for the Type-
12959Specific byte within the various ACPI 3.0 *WordSpace macros.
12960
12961Fixed some issues within the resource conversion code for the type-
12962specific
12963flags for both Memory and I/O address resource descriptors. For Memory,
12964implemented support for the MTP and TTP flags. For I/O, split the TRS and
12965TTP flags into two separate fields.
12966
12967Code and Data Size: The current and previous library sizes for the core
12968subsystem are shown below. These are the code and data sizes for the
12969acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12970These
12971values do not include any ACPI driver or OSPM code. The debug version of
12972the
12973code includes the debug output trace mechanism and has a much larger code
12974and data size. Note that these values will vary depending on the
12975efficiency
12976of the compiler and the compiler options used during generation.
12977
12978  Previous Release:
12979    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12980    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12981  Current Release:
12982    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12983    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12984
12985
12986
129872) iASL Compiler/Disassembler:
12988
12989Relaxed a compiler restriction that disallowed a ResourceIndex byte if
12990the
12991corresponding ResourceSource string was not also present in a resource
12992descriptor declaration. This restriction caused problems with existing
12993AML/ASL code that includes the Index byte without the string. When such
12994AML
12995was disassembled, it could not be compiled without modification. Further,
12996the modified code created a resource template with a different size than
12997the
12998original, breaking code that used fixed offsets into the resource
12999template
13000buffer.
13001
13002Removed a recent feature of the disassembler to ignore a lone
13003ResourceIndex
13004byte. This byte is now emitted if present so that the exact AML can be
13005reproduced when the disassembled code is recompiled.
13006
13007Improved comments and text alignment for the resource descriptor code
13008emitted by the disassembler.
13009
13010Implemented disassembler support for the ACPI 3.0 AccessSize field within
13011a
13012Register() resource descriptor.
13013
13014----------------------------------------
1301530 September 2005. Summary of changes for version 20050930:
13016
130171) ACPI CA Core Subsystem:
13018
13019Completed a major overhaul of the Resource Manager code - specifically,
13020optimizations in the area of the AML/internal resource conversion code.
13021The
13022code has been optimized to simplify and eliminate duplicated code, CPU
13023stack
13024use has been decreased by optimizing function parameters and local
13025variables, and naming conventions across the manager have been
13026standardized
13027for clarity and ease of maintenance (this includes function, parameter,
13028variable, and struct/typedef names.) The update may force changes in some
13029driver code, depending on how resources are handled by the host OS.
13030
13031All Resource Manager dispatch and information tables have been moved to a
13032single location for clarity and ease of maintenance. One new file was
13033created, named "rsinfo.c".
13034
13035The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
13036guarantee that the argument is not evaluated twice, making them less
13037prone
13038to macro side-effects. However, since there exists the possibility of
13039additional stack use if a particular compiler cannot optimize them (such
13040as
13041in the debug generation case), the original macros are optionally
13042available.
13043Note that some invocations of the return_VALUE macro may now cause size
13044mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
13045to
13046eliminate these. (From Randy Dunlap)
13047
13048Implemented a new mechanism to enable debug tracing for individual
13049control
13050methods. A new external interface, AcpiDebugTrace, is provided to enable
13051this mechanism. The intent is to allow the host OS to easily enable and
13052disable tracing for problematic control methods. This interface can be
13053easily exposed to a user or debugger interface if desired. See the file
13054psxface.c for details.
13055
13056AcpiUtCallocate will now return a valid pointer if a length of zero is
13057specified - a length of one is used and a warning is issued. This matches
13058the behavior of AcpiUtAllocate.
13059
13060Code and Data Size: The current and previous library sizes for the core
13061subsystem are shown below. These are the code and data sizes for the
13062acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
13063These
13064values do not include any ACPI driver or OSPM code. The debug version of
13065the
13066code includes the debug output trace mechanism and has a much larger code
13067and data size. Note that these values will vary depending on the
13068efficiency
13069of the compiler and the compiler options used during generation.
13070
13071  Previous Release:
13072    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
13073    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
13074  Current Release:
13075    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
13076    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
13077
13078
130792) iASL Compiler/Disassembler:
13080
13081A remark is issued if the effective compile-time length of a package or
13082buffer is zero. Previously, this was a warning.
13083
13084----------------------------------------
1308516 September 2005. Summary of changes for version 20050916:
13086
130871) ACPI CA Core Subsystem:
13088
13089Fixed a problem within the Resource Manager where support for the Generic
13090Register descriptor was not fully implemented. This descriptor is now
13091fully
13092recognized, parsed, disassembled, and displayed.
13093
13094Completely restructured the Resource Manager code to utilize table-driven
13095dispatch and lookup, eliminating many of the large switch() statements.
13096This
13097reduces overall subsystem code size and code complexity. Affects the
13098resource parsing and construction, disassembly, and debug dump output.
13099
13100Cleaned up and restructured the debug dump output for all resource
13101descriptors. Improved readability of the output and reduced code size.
13102
13103Fixed a problem where changes to internal data structures caused the
13104optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
13105
13106Code and Data Size: The current and previous library sizes for the core
13107subsystem are shown below. These are the code and data sizes for the
13108acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
13109These
13110values do not include any ACPI driver or OSPM code. The debug version of
13111the
13112code includes the debug output trace mechanism and has a much larger code
13113and data size. Note that these values will vary depending on the
13114efficiency
13115of the compiler and the compiler options used during generation.
13116
13117  Previous Release:
13118    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
13119    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
13120  Current Release:
13121    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
13122    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
13123
13124
131252) iASL Compiler/Disassembler:
13126
13127Updated the disassembler to automatically insert an EndDependentFn()
13128macro
13129into the ASL stream if this macro is missing in the original AML code,
13130simplifying compilation of the resulting ASL module.
13131
13132Fixed a problem in the disassembler where a disassembled ResourceSource
13133string (within a large resource descriptor) was not surrounded by quotes
13134and
13135not followed by a comma, causing errors when the resulting ASL module was
13136compiled. Also, escape sequences within a ResourceSource string are now
13137handled correctly (especially "\\")
13138
13139----------------------------------------
1314002 September 2005. Summary of changes for version 20050902:
13141
131421) ACPI CA Core Subsystem:
13143
13144Fixed a problem with the internal Owner ID allocation and deallocation
13145mechanisms for control method execution and recursive method invocation.
13146This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
13147messages seen on some systems. Recursive method invocation depth is
13148currently limited to 255. (Alexey Starikovskiy)
13149
13150Completely eliminated all vestiges of support for the "module-level
13151executable code" until this support is fully implemented and debugged.
13152This
13153should eliminate the NO_RETURN_VALUE exceptions seen during table load on
13154some systems that invoke this support.
13155
13156Fixed a problem within the resource manager code where the transaction
13157flags
13158for a 64-bit address descriptor were handled incorrectly in the type-
13159specific flag byte.
13160
13161Consolidated duplicate code within the address descriptor resource
13162manager
13163code, reducing overall subsystem code size.
13164
13165Fixed a fault when using the AML debugger "disassemble" command to
13166disassemble individual control methods.
13167
13168Removed references to the "release_current" directory within the Unix
13169release package.
13170
13171Code and Data Size: The current and previous core subsystem library sizes
13172are shown below. These are the code and data sizes for the acpica.lib
13173produced by the Microsoft Visual C++ 6.0 compiler. These values do not
13174include any ACPI driver or OSPM code. The debug version of the code
13175includes
13176the debug output trace mechanism and has a much larger code and data
13177size.
13178Note that these values will vary depending on the efficiency of the
13179compiler
13180and the compiler options used during generation.
13181
13182  Previous Release:
13183    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13184    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
13185  Current Release:
13186    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
13187    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
13188
13189
131902) iASL Compiler/Disassembler:
13191
13192Implemented an error check for illegal duplicate values in the interrupt
13193and
13194dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
13195Interrupt().
13196
13197Implemented error checking for the Irq() and IrqNoFlags() macros to
13198detect
13199too many values in the interrupt list (16 max) and invalid values in the
13200list (range 0 - 15)
13201
13202The maximum length string literal within an ASL file is now restricted to
13203200 characters as per the ACPI specification.
13204
13205Fixed a fault when using the -ln option (generate namespace listing).
13206
13207Implemented an error check to determine if a DescriptorName within a
13208resource descriptor has already been used within the current scope.
13209
13210----------------------------------------
1321115 August 2005.  Summary of changes for version 20050815:
13212
132131) ACPI CA Core Subsystem:
13214
13215Implemented a full bytewise compare to determine if a table load request
13216is
13217attempting to load a duplicate table. The compare is performed if the
13218table
13219signatures and table lengths match. This will allow different tables with
13220the same OEM Table ID and revision to be loaded - probably against the
13221ACPI
13222specification, but discovered in the field nonetheless.
13223
13224Added the changes.txt logfile to each of the zipped release packages.
13225
13226Code and Data Size: Current and previous core subsystem library sizes are
13227shown below. These are the code and data sizes for the acpica.lib
13228produced
13229by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13230any ACPI driver or OSPM code. The debug version of the code includes the
13231debug output trace mechanism and has a much larger code and data size.
13232Note
13233that these values will vary depending on the efficiency of the compiler
13234and
13235the compiler options used during generation.
13236
13237  Previous Release:
13238    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13239    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
13240  Current Release:
13241    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13242    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
13243
13244
132452) iASL Compiler/Disassembler:
13246
13247Fixed a problem where incorrect AML code could be generated for Package
13248objects if optimization is disabled (via the -oa switch).
13249
13250Fixed a problem with where incorrect AML code is generated for variable-
13251length packages when the package length is not specified and the number
13252of
13253initializer values is greater than 255.
13254
13255
13256----------------------------------------
1325729 July 2005.  Summary of changes for version 20050729:
13258
132591) ACPI CA Core Subsystem:
13260
13261Implemented support to ignore an attempt to install/load a particular
13262ACPI
13263table more than once. Apparently there exists BIOS code that repeatedly
13264attempts to load the same SSDT upon certain events. With assistance from
13265Venkatesh Pallipadi.
13266
13267Restructured the main interface to the AML parser in order to correctly
13268handle all exceptional conditions. This will prevent leakage of the
13269OwnerId
13270resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
13271some
13272machines. With assistance from Alexey Starikovskiy.
13273
13274Support for "module level code" has been disabled in this version due to
13275a
13276number of issues that have appeared on various machines. The support can
13277be
13278enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
13279compilation. When the issues are fully resolved, the code will be enabled
13280by
13281default again.
13282
13283Modified the internal functions for debug print support to define the
13284FunctionName parameter as a (const char *) for compatibility with
13285compiler
13286built-in macros such as __FUNCTION__, etc.
13287
13288Linted the entire ACPICA source tree for both 32-bit and 64-bit.
13289
13290Implemented support to display an object count summary for the AML
13291Debugger
13292commands Object and Methods.
13293
13294Code and Data Size: Current and previous core subsystem library sizes are
13295shown below. These are the code and data sizes for the acpica.lib
13296produced
13297by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13298any ACPI driver or OSPM code. The debug version of the code includes the
13299debug output trace mechanism and has a much larger code and data size.
13300Note
13301that these values will vary depending on the efficiency of the compiler
13302and
13303the compiler options used during generation.
13304
13305  Previous Release:
13306    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13307    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13308  Current Release:
13309    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13310    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
13311
13312
133132) iASL Compiler/Disassembler:
13314
13315Fixed a regression that appeared in the 20050708 version of the compiler
13316where an error message was inadvertently emitted for invocations of the
13317_OSI
13318reserved control method.
13319
13320----------------------------------------
1332108 July 2005.  Summary of changes for version 20050708:
13322
133231) ACPI CA Core Subsystem:
13324
13325The use of the CPU stack in the debug version of the subsystem has been
13326considerably reduced. Previously, a debug structure was declared in every
13327function that used the debug macros. This structure has been removed in
13328favor of declaring the individual elements as parameters to the debug
13329functions. This reduces the cumulative stack use during nested execution
13330of
13331ACPI function calls at the cost of a small increase in the code size of
13332the
13333debug version of the subsystem. With assistance from Alexey Starikovskiy
13334and
13335Len Brown.
13336
13337Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
13338headers to define a macro that will return the current function name at
13339runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
13340by
13341the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
13342compiler-dependent header, the function name is saved on the CPU stack
13343(one
13344pointer per function.) This mechanism is used because apparently there
13345exists no standard ANSI-C defined macro that that returns the function
13346name.
13347
13348Redesigned and reimplemented the "Owner ID" mechanism used to track
13349namespace objects created/deleted by ACPI tables and control method
13350execution. A bitmap is now used to allocate and free the IDs, thus
13351solving
13352the wraparound problem present in the previous implementation. The size
13353of
13354the namespace node descriptor was reduced by 2 bytes as a result (Alexey
13355Starikovskiy).
13356
13357Removed the UINT32_BIT and UINT16_BIT types that were used for the
13358bitfield
13359flag definitions within the headers for the predefined ACPI tables. These
13360have been replaced by UINT8_BIT in order to increase the code portability
13361of
13362the subsystem. If the use of UINT8 remains a problem, we may be forced to
13363eliminate bitfields entirely because of a lack of portability.
13364
13365Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
13366This
13367is a frequently used function and this improvement increases the
13368performance
13369of the entire subsystem (Alexey Starikovskiy).
13370
13371Fixed several possible memory leaks and the inverse - premature object
13372deletion (Alexey Starikovskiy).
13373
13374Code and Data Size: Current and previous core subsystem library sizes are
13375shown below. These are the code and data sizes for the acpica.lib
13376produced
13377by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13378any ACPI driver or OSPM code. The debug version of the code includes the
13379debug output trace mechanism and has a much larger code and data size.
13380Note
13381that these values will vary depending on the efficiency of the compiler
13382and
13383the compiler options used during generation.
13384
13385  Previous Release:
13386    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13387    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13388  Current Release:
13389    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13390    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13391
13392----------------------------------------
1339324 June 2005.  Summary of changes for version 20050624:
13394
133951) ACPI CA Core Subsystem:
13396
13397Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
13398the host-defined cache object. This allows the OSL implementation to
13399define
13400and type this object in any manner desired, simplifying the OSL
13401implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
13402Linux, and should be defined in the OS-specific header file for other
13403operating systems as required.
13404
13405Changed the interface to AcpiOsAcquireObject to directly return the
13406requested object as the function return (instead of ACPI_STATUS.) This
13407change was made for performance reasons, since this is the purpose of the
13408interface in the first place. AcpiOsAcquireObject is now similar to the
13409AcpiOsAllocate interface.
13410
13411Implemented a new AML debugger command named Businfo. This command
13412displays
13413information about all devices that have an associate _PRT object. The
13414_ADR,
13415_HID, _UID, and _CID are displayed for these devices.
13416
13417Modified the initialization sequence in AcpiInitializeSubsystem to call
13418the
13419OSL interface AcpiOslInitialize first, before any local initialization.
13420This
13421change was required because the global initialization now calls OSL
13422interfaces.
13423
13424Enhanced the Dump command to display the entire contents of Package
13425objects
13426(including all sub-objects and their values.)
13427
13428Restructured the code base to split some files because of size and/or
13429because the code logically belonged in a separate file. New files are
13430listed
13431below. All makefiles and project files included in the ACPI CA release
13432have
13433been updated.
13434    utilities/utcache.c           /* Local cache interfaces */
13435    utilities/utmutex.c           /* Local mutex support */
13436    utilities/utstate.c           /* State object support */
13437    interpreter/parser/psloop.c   /* Main AML parse loop */
13438
13439Code and Data Size: Current and previous core subsystem library sizes are
13440shown below. These are the code and data sizes for the acpica.lib
13441produced
13442by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13443any ACPI driver or OSPM code. The debug version of the code includes the
13444debug output trace mechanism and has a much larger code and data size.
13445Note
13446that these values will vary depending on the efficiency of the compiler
13447and
13448the compiler options used during generation.
13449
13450  Previous Release:
13451    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13452    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13453  Current Release:
13454    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13455    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13456
13457
134582) iASL Compiler/Disassembler:
13459
13460Fixed a regression introduced in version 20050513 where the use of a
13461Package
13462object within a Case() statement caused a compile time exception. The
13463original behavior has been restored (a Match() operator is emitted.)
13464
13465----------------------------------------
1346617 June 2005.  Summary of changes for version 20050617:
13467
134681) ACPI CA Core Subsystem:
13469
13470Moved the object cache operations into the OS interface layer (OSL) to
13471allow
13472the host OS to handle these operations if desired (for example, the Linux
13473OSL will invoke the slab allocator). This support is optional; the
13474compile
13475time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
13476cache
13477code in the ACPI CA core. The new OSL interfaces are shown below. See
13478utalloc.c for an example implementation, and acpiosxf.h for the exact
13479interface definitions. With assistance from Alexey Starikovskiy.
13480    AcpiOsCreateCache
13481    AcpiOsDeleteCache
13482    AcpiOsPurgeCache
13483    AcpiOsAcquireObject
13484    AcpiOsReleaseObject
13485
13486Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
13487return
13488and restore a flags parameter. This fits better with many OS lock models.
13489Note: the current execution state (interrupt handler or not) is no longer
13490passed to these interfaces. If necessary, the OSL must determine this
13491state
13492by itself, a simple and fast operation. With assistance from Alexey
13493Starikovskiy.
13494
13495Fixed a problem in the ACPI table handling where a valid XSDT was assumed
13496present if the revision of the RSDP was 2 or greater. According to the
13497ACPI
13498specification, the XSDT is optional in all cases, and the table manager
13499therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
13500Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
13501contain
13502only the RSDT.
13503
13504Fixed an interpreter problem with the Mid() operator in the case of an
13505input
13506string where the resulting output string is of zero length. It now
13507correctly
13508returns a valid, null terminated string object instead of a string object
13509with a null pointer.
13510
13511Fixed a problem with the control method argument handling to allow a
13512store
13513to an Arg object that already contains an object of type Device. The
13514Device
13515object is now correctly overwritten. Previously, an error was returned.
13516
13517
13518Enhanced the debugger Find command to emit object values in addition to
13519the
13520found object pathnames. The output format is the same as the dump
13521namespace
13522command.
13523
13524Enhanced the debugger Set command. It now has the ability to set the
13525value
13526of any Named integer object in the namespace (Previously, only method
13527locals
13528and args could be set.)
13529
13530Code and Data Size: Current and previous core subsystem library sizes are
13531shown below. These are the code and data sizes for the acpica.lib
13532produced
13533by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13534any ACPI driver or OSPM code. The debug version of the code includes the
13535debug output trace mechanism and has a much larger code and data size.
13536Note
13537that these values will vary depending on the efficiency of the compiler
13538and
13539the compiler options used during generation.
13540
13541  Previous Release:
13542    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13543    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13544  Current Release:
13545    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13546    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13547
13548
135492) iASL Compiler/Disassembler:
13550
13551Fixed a regression in the disassembler where if/else/while constructs
13552were
13553output incorrectly. This problem was introduced in the previous release
13554(20050526). This problem also affected the single-step disassembly in the
13555debugger.
13556
13557Fixed a problem where compiling the reserved _OSI method would randomly
13558(but
13559rarely) produce compile errors.
13560
13561Enhanced the disassembler to emit compilable code in the face of
13562incorrect
13563AML resource descriptors. If the optional ResourceSourceIndex is present,
13564but the ResourceSource is not, do not emit the ResourceSourceIndex in the
13565disassembly. Otherwise, the resulting code cannot be compiled without
13566errors.
13567
13568----------------------------------------
1356926 May 2005.  Summary of changes for version 20050526:
13570
135711) ACPI CA Core Subsystem:
13572
13573Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
13574the module level (not within a control method.) These opcodes are
13575executed
13576exactly once at the time the table is loaded. This type of code was legal
13577up
13578until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
13579in
13580order to provide backwards compatibility with earlier BIOS
13581implementations.
13582This eliminates the "Encountered executable code at module level" warning
13583that was previously generated upon detection of such code.
13584
13585Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
13586inadvertently be generated during the lookup of namespace objects in the
13587second pass parse of ACPI tables and control methods. It appears that
13588this
13589problem could occur during the resolution of forward references to
13590namespace
13591objects.
13592
13593Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
13594corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
13595allows the deadlock detection debug code to be compiled out in the normal
13596case, improving mutex performance (and overall subsystem performance)
13597considerably.
13598
13599Implemented a handful of miscellaneous fixes for possible memory leaks on
13600error conditions and error handling control paths. These fixes were
13601suggested by FreeBSD and the Coverity Prevent source code analysis tool.
13602
13603Added a check for a null RSDT pointer in AcpiGetFirmwareTable
13604(tbxfroot.c)
13605to prevent a fault in this error case.
13606
13607Code and Data Size: Current and previous core subsystem library sizes are
13608shown below. These are the code and data sizes for the acpica.lib
13609produced
13610by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13611any ACPI driver or OSPM code. The debug version of the code includes the
13612debug output trace mechanism and has a much larger code and data size.
13613Note
13614that these values will vary depending on the efficiency of the compiler
13615and
13616the compiler options used during generation.
13617
13618  Previous Release:
13619    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13620    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13621  Current Release:
13622    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13623    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13624
13625
136262) iASL Compiler/Disassembler:
13627
13628Implemented support to allow Type 1 and Type 2 ASL operators to appear at
13629the module level (not within a control method.) These operators will be
13630executed once at the time the table is loaded. This type of code was
13631legal
13632up until the release of ACPI 2.0B (2002) and is now supported by the iASL
13633compiler in order to provide backwards compatibility with earlier BIOS
13634ASL
13635code.
13636
13637The ACPI integer width (specified via the table revision ID or the -r
13638override, 32 or 64 bits) is now used internally during compile-time
13639constant
13640folding to ensure that constants are truncated to 32 bits if necessary.
13641Previously, the revision ID value was only emitted in the AML table
13642header.
13643
13644An error message is now generated for the Mutex and Method operators if
13645the
13646SyncLevel parameter is outside the legal range of 0 through 15.
13647
13648Fixed a problem with the Method operator ParameterTypes list handling
13649(ACPI
136503.0). Previously, more than 2 types or 2 arguments generated a syntax
13651error.
13652The actual underlying implementation of method argument typechecking is
13653still under development, however.
13654
13655----------------------------------------
1365613 May 2005.  Summary of changes for version 20050513:
13657
136581) ACPI CA Core Subsystem:
13659
13660Implemented support for PCI Express root bridges -- added support for
13661device
13662PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
13663
13664The interpreter now automatically truncates incoming 64-bit constants to
1366532
13666bits if currently executing out of a 32-bit ACPI table (Revision < 2).
13667This
13668also affects the iASL compiler constant folding. (Note: as per below, the
13669iASL compiler no longer allows 64-bit constants within 32-bit tables.)
13670
13671Fixed a problem where string and buffer objects with "static" pointers
13672(pointers to initialization data within an ACPI table) were not handled
13673consistently. The internal object copy operation now always copies the
13674data
13675to a newly allocated buffer, regardless of whether the source object is
13676static or not.
13677
13678Fixed a problem with the FromBCD operator where an implicit result
13679conversion was improperly performed while storing the result to the
13680target
13681operand. Since this is an "explicit conversion" operator, the implicit
13682conversion should never be performed on the output.
13683
13684Fixed a problem with the CopyObject operator where a copy to an existing
13685named object did not always completely overwrite the existing object
13686stored
13687at name. Specifically, a buffer-to-buffer copy did not delete the
13688existing
13689buffer.
13690
13691Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
13692and
13693structs for consistency.
13694
13695Code and Data Size: Current and previous core subsystem library sizes are
13696shown below. These are the code and data sizes for the acpica.lib
13697produced
13698by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13699any ACPI driver or OSPM code. The debug version of the code includes the
13700debug output trace mechanism and has a much larger code and data size.
13701Note
13702that these values will vary depending on the efficiency of the compiler
13703and
13704the compiler options used during generation.
13705
13706  Previous Release:
13707    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13708    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13709  Current Release: (Same sizes)
13710    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13711    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13712
13713
137142) iASL Compiler/Disassembler:
13715
13716The compiler now emits a warning if an attempt is made to generate a 64-
13717bit
13718integer constant from within a 32-bit ACPI table (Revision < 2). The
13719integer
13720is truncated to 32 bits.
13721
13722Fixed a problem with large package objects: if the static length of the
13723package is greater than 255, the "variable length package" opcode is
13724emitted. Previously, this caused an error. This requires an update to the
13725ACPI spec, since it currently (incorrectly) states that packages larger
13726than
13727255 elements are not allowed.
13728
13729The disassembler now correctly handles variable length packages and
13730packages
13731larger than 255 elements.
13732
13733----------------------------------------
1373408 April 2005.  Summary of changes for version 20050408:
13735
137361) ACPI CA Core Subsystem:
13737
13738Fixed three cases in the interpreter where an "index" argument to an ASL
13739function was still (internally) 32 bits instead of the required 64 bits.
13740This was the Index argument to the Index, Mid, and Match operators.
13741
13742The "strupr" function is now permanently local (AcpiUtStrupr), since this
13743is
13744not a POSIX-defined function and not present in most kernel-level C
13745libraries. All references to the C library strupr function have been
13746removed
13747from the headers.
13748
13749Completed the deployment of static functions/prototypes. All prototypes
13750with
13751the static attribute have been moved from the headers to the owning C
13752file.
13753
13754Implemented an extract option (-e) for the AcpiBin utility (AML binary
13755utility). This option allows the utility to extract individual ACPI
13756tables
13757from the output of AcpiDmp. It provides the same functionality of the
13758acpixtract.pl perl script without the worry of setting the correct perl
13759options. AcpiBin runs on Windows and has not yet been generated/validated
13760in
13761the Linux/Unix environment (but should be soon).
13762
13763Updated and fixed the table dump option for AcpiBin (-d). This option
13764converts a single ACPI table to a hex/ascii file, similar to the output
13765of
13766AcpiDmp.
13767
13768Code and Data Size: Current and previous core subsystem library sizes are
13769shown below. These are the code and data sizes for the acpica.lib
13770produced
13771by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13772any ACPI driver or OSPM code. The debug version of the code includes the
13773debug output trace mechanism and has a much larger code and data size.
13774Note
13775that these values will vary depending on the efficiency of the compiler
13776and
13777the compiler options used during generation.
13778
13779  Previous Release:
13780    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13781    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13782  Current Release:
13783    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13784    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13785
13786
137872) iASL Compiler/Disassembler:
13788
13789Disassembler fix: Added a check to ensure that the table length found in
13790the
13791ACPI table header within the input file is not longer than the actual
13792input
13793file size. This indicates some kind of file or table corruption.
13794
13795----------------------------------------
1379629 March 2005.  Summary of changes for version 20050329:
13797
137981) ACPI CA Core Subsystem:
13799
13800An error is now generated if an attempt is made to create a Buffer Field
13801of
13802length zero (A CreateField with a length operand of zero.)
13803
13804The interpreter now issues a warning whenever executable code at the
13805module
13806level is detected during ACPI table load. This will give some idea of the
13807prevalence of this type of code.
13808
13809Implemented support for references to named objects (other than control
13810methods) within package objects.
13811
13812Enhanced package object output for the debug object. Package objects are
13813now
13814completely dumped, showing all elements.
13815
13816Enhanced miscellaneous object output for the debug object. Any object can
13817now be written to the debug object (for example, a device object can be
13818written, and the type of the object will be displayed.)
13819
13820The "static" qualifier has been added to all local functions across both
13821the
13822core subsystem and the iASL compiler.
13823
13824The number of "long" lines (> 80 chars) within the source has been
13825significantly reduced, by about 1/3.
13826
13827Cleaned up all header files to ensure that all CA/iASL functions are
13828prototyped (even static functions) and the formatting is consistent.
13829
13830Two new header files have been added, acopcode.h and acnames.h.
13831
13832Removed several obsolete functions that were no longer used.
13833
13834Code and Data Size: Current and previous core subsystem library sizes are
13835shown below. These are the code and data sizes for the acpica.lib
13836produced
13837by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13838any ACPI driver or OSPM code. The debug version of the code includes the
13839debug output trace mechanism and has a much larger code and data size.
13840Note
13841that these values will vary depending on the efficiency of the compiler
13842and
13843the compiler options used during generation.
13844
13845  Previous Release:
13846    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13847    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13848  Current Release:
13849    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13850    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13851
13852
13853
138542) iASL Compiler/Disassembler:
13855
13856Fixed a problem with the resource descriptor generation/support. For the
13857ResourceSourceIndex and the ResourceSource fields, both must be present,
13858or
13859both must be not present - can't have one without the other.
13860
13861The compiler now returns non-zero from the main procedure if any errors
13862have
13863occurred during the compilation.
13864
13865
13866----------------------------------------
1386709 March 2005.  Summary of changes for version 20050309:
13868
138691) ACPI CA Core Subsystem:
13870
13871The string-to-buffer implicit conversion code has been modified again
13872after
13873a change to the ACPI specification.  In order to match the behavior of
13874the
13875other major ACPI implementation, the target buffer is no longer truncated
13876if
13877the source string is smaller than an existing target buffer. This change
13878requires an update to the ACPI spec, and should eliminate the recent
13879AE_AML_BUFFER_LIMIT issues.
13880
13881The "implicit return" support was rewritten to a new algorithm that
13882solves
13883the general case. Rather than attempt to determine when a method is about
13884to
13885exit, the result of every ASL operator is saved momentarily until the
13886very
13887next ASL operator is executed. Therefore, no matter how the method exits,
13888there will always be a saved implicit return value. This feature is only
13889enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
13890eliminate
13891AE_AML_NO_RETURN_VALUE errors when enabled.
13892
13893Implemented implicit conversion support for the predicate (operand) of
13894the
13895If, Else, and While operators. String and Buffer arguments are
13896automatically
13897converted to Integers.
13898
13899Changed the string-to-integer conversion behavior to match the new ACPI
13900errata: "If no integer object exists, a new integer is created. The ASCII
13901string is interpreted as a hexadecimal constant. Each string character is
13902interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
13903with the first character as the most significant digit, and ending with
13904the
13905first non-hexadecimal character or end-of-string." This means that the
13906first
13907non-hex character terminates the conversion and this is the code that was
13908changed.
13909
13910Fixed a problem where the ObjectType operator would fail (fault) when
13911used
13912on an Index of a Package which pointed to a null package element. The
13913operator now properly returns zero (Uninitialized) in this case.
13914
13915Fixed a problem where the While operator used excessive memory by not
13916properly popping the result stack during execution. There was no memory
13917leak
13918after execution, however. (Code provided by Valery Podrezov.)
13919
13920Fixed a problem where references to control methods within Package
13921objects
13922caused the method to be invoked, instead of producing a reference object
13923pointing to the method.
13924
13925Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
13926to
13927improve performance and reduce code size. (Code provided by Alexey
13928Starikovskiy.)
13929
13930Code and Data Size: Current and previous core subsystem library sizes are
13931shown below. These are the code and data sizes for the acpica.lib
13932produced
13933by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13934any ACPI driver or OSPM code. The debug version of the code includes the
13935debug output trace mechanism and has a much larger code and data size.
13936Note
13937that these values will vary depending on the efficiency of the compiler
13938and
13939the compiler options used during generation.
13940
13941  Previous Release:
13942    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13943    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13944  Current Release:
13945    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13946    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13947
13948
139492) iASL Compiler/Disassembler:
13950
13951Fixed a problem with the Return operator with no arguments. Since the AML
13952grammar for the byte encoding requires an operand for the Return opcode,
13953the
13954compiler now emits a Return(Zero) for this case.  An ACPI specification
13955update has been written for this case.
13956
13957For tables other than the DSDT, namepath optimization is automatically
13958disabled. This is because SSDTs can be loaded anywhere in the namespace,
13959the
13960compiler has no knowledge of where, and thus cannot optimize namepaths.
13961
13962Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
13963inadvertently omitted from the ACPI specification, and will require an
13964update to the spec.
13965
13966The source file scan for ASCII characters is now optional (-a). This
13967change
13968was made because some vendors place non-ascii characters within comments.
13969However, the scan is simply a brute-force byte compare to ensure all
13970characters in the file are in the range 0x00 to 0x7F.
13971
13972Fixed a problem with the CondRefOf operator where the compiler was
13973inappropriately checking for the existence of the target. Since the point
13974of
13975the operator is to check for the existence of the target at run-time, the
13976compiler no longer checks for the target existence.
13977
13978Fixed a problem where errors generated from the internal AML interpreter
13979during constant folding were not handled properly, causing a fault.
13980
13981Fixed a problem with overly aggressive range checking for the Stall
13982operator. The valid range (max 255) is now only checked if the operand is
13983of
13984type Integer. All other operand types cannot be statically checked.
13985
13986Fixed a problem where control method references within the RefOf,
13987DeRefOf,
13988and ObjectType operators were not treated properly. They are now treated
13989as
13990actual references, not method invocations.
13991
13992Fixed and enhanced the "list namespace" option (-ln). This option was
13993broken
13994a number of releases ago.
13995
13996Improved error handling for the Field, IndexField, and BankField
13997operators.
13998The compiler now cleanly reports and recovers from errors in the field
13999component (FieldUnit) list.
14000
14001Fixed a disassembler problem where the optional ResourceDescriptor fields
14002TRS and TTP were not always handled correctly.
14003
14004Disassembler - Comments in output now use "//" instead of "/*"
14005
14006----------------------------------------
1400728 February 2005.  Summary of changes for version 20050228:
14008
140091) ACPI CA Core Subsystem:
14010
14011Fixed a problem where the result of an Index() operator (an object
14012reference) must increment the reference count on the target object for
14013the
14014life of the object reference.
14015
14016Implemented AML Interpreter and Debugger support for the new ACPI 3.0
14017Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
14018WordSpace
14019resource descriptors.
14020
14021Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
14022Space Descriptor" string, indicating interpreter support for the
14023descriptors
14024above.
14025
14026Implemented header support for the new ACPI 3.0 FADT flag bits.
14027
14028Implemented header support for the new ACPI 3.0 PCI Express bits for the
14029PM1
14030status/enable registers.
14031
14032Updated header support for the MADT processor local Apic struct and MADT
14033platform interrupt source struct for new ACPI 3.0 fields.
14034
14035Implemented header support for the SRAT and SLIT ACPI tables.
14036
14037Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
14038flag
14039at runtime.
14040
14041Code and Data Size: Current and previous core subsystem library sizes are
14042shown below. These are the code and data sizes for the acpica.lib
14043produced
14044by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14045any ACPI driver or OSPM code. The debug version of the code includes the
14046debug output trace mechanism and has a much larger code and data size.
14047Note
14048that these values will vary depending on the efficiency of the compiler
14049and
14050the compiler options used during generation.
14051
14052  Previous Release:
14053    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
14054    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
14055  Current Release:
14056    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
14057    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
14058
14059
140602) iASL Compiler/Disassembler:
14061
14062Fixed a problem with the internal 64-bit String-to-integer conversion
14063with
14064strings less than two characters long.
14065
14066Fixed a problem with constant folding where the result of the Index()
14067operator can not be considered a constant. This means that Index() cannot
14068be
14069a type3 opcode and this will require an update to the ACPI specification.
14070
14071Disassembler: Implemented support for the TTP, MTP, and TRS resource
14072descriptor fields. These fields were inadvertently ignored and not output
14073in
14074the disassembly of the resource descriptor.
14075
14076
14077 ----------------------------------------
1407811 February 2005.  Summary of changes for version 20050211:
14079
140801) ACPI CA Core Subsystem:
14081
14082Implemented ACPI 3.0 support for implicit conversion within the Match()
14083operator. MatchObjects can now be of type integer, buffer, or string
14084instead
14085of just type integer.  Package elements are implicitly converted to the
14086type
14087of the MatchObject. This change aligns the behavior of Match() with the
14088behavior of the other logical operators (LLess(), etc.) It also requires
14089an
14090errata change to the ACPI specification as this support was intended for
14091ACPI 3.0, but was inadvertently omitted.
14092
14093Fixed a problem with the internal implicit "to buffer" conversion.
14094Strings
14095that are converted to buffers will cause buffer truncation if the string
14096is
14097smaller than the target buffer. Integers that are converted to buffers
14098will
14099not cause buffer truncation, only zero extension (both as per the ACPI
14100spec.) The problem was introduced when code was added to truncate the
14101buffer, but this should not be performed in all cases, only the string
14102case.
14103
14104Fixed a problem with the Buffer and Package operators where the
14105interpreter
14106would get confused if two such operators were used as operands to an ASL
14107operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
14108stack was not being popped after the execution of these operators,
14109resulting
14110in an AE_NO_RETURN_VALUE exception.
14111
14112Fixed a problem with constructs of the form Store(Index(...),...). The
14113reference object returned from Index was inadvertently resolved to an
14114actual
14115value. This problem was introduced in version 20050114 when the behavior
14116of
14117Store() was modified to restrict the object types that can be used as the
14118source operand (to match the ACPI specification.)
14119
14120Reduced excessive stack use within the AcpiGetObjectInfo procedure.
14121
14122Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
14123
14124Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
14125
14126Code and Data Size: Current and previous core subsystem library sizes are
14127shown below. These are the code and data sizes for the acpica.lib
14128produced
14129by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14130any ACPI driver or OSPM code. The debug version of the code includes the
14131debug output trace mechanism and has a much larger code and data size.
14132Note
14133that these values will vary depending on the efficiency of the compiler
14134and
14135the compiler options used during generation.
14136
14137  Previous Release:
14138    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
14139    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
14140  Current Release:
14141    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
14142    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
14143
14144
141452) iASL Compiler/Disassembler:
14146
14147Fixed a code generation problem in the constant folding optimization code
14148where incorrect code was generated if a constant was reduced to a buffer
14149object (i.e., a reduced type 5 opcode.)
14150
14151Fixed a typechecking problem for the ToBuffer operator. Caused by an
14152incorrect return type in the internal opcode information table.
14153
14154----------------------------------------
1415525 January 2005.  Summary of changes for version 20050125:
14156
141571) ACPI CA Core Subsystem:
14158
14159Fixed a recently introduced problem with the Global Lock where the
14160underlying semaphore was not created.  This problem was introduced in
14161version 20050114, and caused an AE_AML_NO_OPERAND exception during an
14162Acquire() operation on _GL.
14163
14164The local object cache is now optional, and is disabled by default. Both
14165AcpiExec and the iASL compiler enable the cache because they run in user
14166mode and this enhances their performance. #define
14167ACPI_ENABLE_OBJECT_CACHE
14168to enable the local cache.
14169
14170Fixed an issue in the internal function AcpiUtEvaluateObject concerning
14171the
14172optional "implicit return" support where an error was returned if no
14173return
14174object was expected, but one was implicitly returned. AE_OK is now
14175returned
14176in this case and the implicitly returned object is deleted.
14177AcpiUtEvaluateObject is only occasionally used, and only to execute
14178reserved
14179methods such as _STA and _INI where the return type is known up front.
14180
14181Fixed a few issues with the internal convert-to-integer code. It now
14182returns
14183an error if an attempt is made to convert a null string, a string of only
14184blanks/tabs, or a zero-length buffer. This affects both implicit
14185conversion
14186and explicit conversion via the ToInteger() operator.
14187
14188The internal debug code in AcpiUtAcquireMutex has been commented out. It
14189is
14190not needed for normal operation and should increase the performance of
14191the
14192entire subsystem. The code remains in case it is needed for debug
14193purposes
14194again.
14195
14196The AcpiExec source and makefile are included in the Unix/Linux package
14197for
14198the first time.
14199
14200Code and Data Size: Current and previous core subsystem library sizes are
14201shown below. These are the code and data sizes for the acpica.lib
14202produced
14203by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14204any ACPI driver or OSPM code. The debug version of the code includes the
14205debug output trace mechanism and has a much larger code and data size.
14206Note
14207that these values will vary depending on the efficiency of the compiler
14208and
14209the compiler options used during generation.
14210
14211  Previous Release:
14212    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
14213    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
14214  Current Release:
14215    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
14216    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
14217
142182) iASL Compiler/Disassembler:
14219
14220Switch/Case support: A warning is now issued if the type of the Switch
14221value
14222cannot be determined at compile time. For example, Switch(Arg0) will
14223generate the warning, and the type is assumed to be an integer. As per
14224the
14225ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
14226the
14227warning.
14228
14229Switch/Case support: Implemented support for buffer and string objects as
14230the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
14231buffers and strings.
14232
14233Switch/Case support: The emitted code for the LEqual() comparisons now
14234uses
14235the switch value as the first operand, not the second. The case value is
14236now
14237the second operand, and this allows the case value to be implicitly
14238converted to the type of the switch value, not the other way around.
14239
14240Switch/Case support: Temporary variables are now emitted immediately
14241within
14242the control method, not at the global level. This means that there are
14243now
1424436 temps available per-method, not 36 temps per-module as was the case
14245with
14246the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
14247
14248----------------------------------------
1424914 January 2005.  Summary of changes for version 20050114:
14250
14251Added 2005 copyright to all module headers.  This affects every module in
14252the core subsystem, iASL compiler, and the utilities.
14253
142541) ACPI CA Core Subsystem:
14255
14256Fixed an issue with the String-to-Buffer conversion code where the string
14257null terminator was not included in the buffer after conversion, but
14258there
14259is existing ASL that assumes the string null terminator is included. This
14260is
14261the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
14262introduced in the previous version when the code was updated to correctly
14263set the converted buffer size as per the ACPI specification. The ACPI
14264spec
14265is ambiguous and will be updated to specify that the null terminator must
14266be
14267included in the converted buffer. This also affects the ToBuffer() ASL
14268operator.
14269
14270Fixed a problem with the Mid() ASL/AML operator where it did not work
14271correctly on Buffer objects. Newly created sub-buffers were not being
14272marked
14273as initialized.
14274
14275
14276Fixed a problem in AcpiTbFindTable where incorrect string compares were
14277performed on the OemId and OemTableId table header fields.  These fields
14278are
14279not null terminated, so strncmp is now used instead of strcmp.
14280
14281Implemented a restriction on the Store() ASL/AML operator to align the
14282behavior with the ACPI specification.  Previously, any object could be
14283used
14284as the source operand.  Now, the only objects that may be used are
14285Integers,
14286Buffers, Strings, Packages, Object References, and DDB Handles.  If
14287necessary, the original behavior can be restored by enabling the
14288EnableInterpreterSlack flag.
14289
14290Enhanced the optional "implicit return" support to allow an implicit
14291return
14292value from methods that are invoked externally via the AcpiEvaluateObject
14293interface.  This enables implicit returns from the _STA and _INI methods,
14294for example.
14295
14296Changed the Revision() ASL/AML operator to return the current version of
14297the
14298AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
14299returned
14300the supported ACPI version (This is the function of the _REV method).
14301
14302Updated the _REV predefined method to return the currently supported
14303version
14304of ACPI, now 3.
14305
14306Implemented batch mode option for the AcpiExec utility (-b).
14307
14308Code and Data Size: Current and previous core subsystem library sizes are
14309shown below. These are the code and data sizes for the acpica.lib
14310produced
14311by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14312any ACPI driver or OSPM code. The debug version of the code includes the
14313debug output trace mechanism and has a much larger code and data size.
14314Note
14315that these values will vary depending on the efficiency of the compiler
14316and
14317the compiler options used during generation.
14318
14319  Previous Release:
14320    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14321    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14322  Current Release:
14323    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
14324    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
14325
14326----------------------------------------
1432710 December 2004.  Summary of changes for version 20041210:
14328
14329ACPI 3.0 support is nearing completion in both the iASL compiler and the
14330ACPI CA core subsystem.
14331
143321) ACPI CA Core Subsystem:
14333
14334Fixed a problem in the ToDecimalString operator where the resulting
14335string
14336length was incorrectly calculated. The length is now calculated exactly,
14337eliminating incorrect AE_STRING_LIMIT exceptions.
14338
14339Fixed a problem in the ToHexString operator to allow a maximum 200
14340character
14341string to be produced.
14342
14343Fixed a problem in the internal string-to-buffer and buffer-to-buffer
14344copy
14345routine where the length of the resulting buffer was not truncated to the
14346new size (if the target buffer already existed).
14347
14348Code and Data Size: Current and previous core subsystem library sizes are
14349shown below. These are the code and data sizes for the acpica.lib
14350produced
14351by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14352any ACPI driver or OSPM code. The debug version of the code includes the
14353debug output trace mechanism and has a much larger code and data size.
14354Note
14355that these values will vary depending on the efficiency of the compiler
14356and
14357the compiler options used during generation.
14358
14359  Previous Release:
14360    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14361    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14362  Current Release:
14363    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14364    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14365
14366
143672) iASL Compiler/Disassembler:
14368
14369Implemented the new ACPI 3.0 resource template macros - DWordSpace,
14370ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
14371Includes support in the disassembler.
14372
14373Implemented support for the new (ACPI 3.0) parameter to the Register
14374macro,
14375AccessSize.
14376
14377Fixed a problem where the _HE resource name for the Interrupt macro was
14378referencing bit 0 instead of bit 1.
14379
14380Implemented check for maximum 255 interrupts in the Interrupt macro.
14381
14382Fixed a problem with the predefined resource descriptor names where
14383incorrect AML code was generated if the offset within the resource buffer
14384was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
14385but did not update the surrounding package lengths.
14386
14387Changes to the Dma macro:  All channels within the channel list must be
14388in
14389the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
14390optional (default is BusMaster).
14391
14392Implemented check for maximum 7 data bytes for the VendorShort macro.
14393
14394The ReadWrite parameter is now optional for the Memory32 and similar
14395macros.
14396
14397----------------------------------------
1439803 December 2004.  Summary of changes for version 20041203:
14399
144001) ACPI CA Core Subsystem:
14401
14402The low-level field insertion/extraction code (exfldio) has been
14403completely
14404rewritten to eliminate unnecessary complexity, bugs, and boundary
14405conditions.
14406
14407Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
14408ToDecimalString
14409operators where the input operand could be inadvertently deleted if no
14410conversion was necessary (e.g., if the input to ToInteger was an Integer
14411object.)
14412
14413Fixed a problem with the ToDecimalString and ToHexString where an
14414incorrect
14415exception code was returned if the resulting string would be > 200 chars.
14416AE_STRING_LIMIT is now returned.
14417
14418Fixed a problem with the Concatenate operator where AE_OK was always
14419returned, even if the operation failed.
14420
14421Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
14422semaphores to be allocated.
14423
14424Code and Data Size: Current and previous core subsystem library sizes are
14425shown below. These are the code and data sizes for the acpica.lib
14426produced
14427by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14428any ACPI driver or OSPM code. The debug version of the code includes the
14429debug output trace mechanism and has a much larger code and data size.
14430Note
14431that these values will vary depending on the efficiency of the compiler
14432and
14433the compiler options used during generation.
14434
14435  Previous Release:
14436    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14437    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14438  Current Release:
14439    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14440    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14441
14442
144432) iASL Compiler/Disassembler:
14444
14445Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
14446recently introduced in 20041119.
14447
14448Fixed a problem with the ToUUID macro where the upper nybble of each
14449buffer
14450byte was inadvertently set to zero.
14451
14452----------------------------------------
1445319 November 2004.  Summary of changes for version 20041119:
14454
144551) ACPI CA Core Subsystem:
14456
14457Fixed a problem in the internal ConvertToInteger routine where new
14458integers
14459were not truncated to 32 bits for 32-bit ACPI tables. This routine
14460converts
14461buffers and strings to integers.
14462
14463Implemented support to store a value to an Index() on a String object.
14464This
14465is an ACPI 2.0 feature that had not yet been implemented.
14466
14467Implemented new behavior for storing objects to individual package
14468elements
14469(via the Index() operator). The previous behavior was to invoke the
14470implicit
14471conversion rules if an object was already present at the index.  The new
14472behavior is to simply delete any existing object and directly store the
14473new
14474object. Although the ACPI specification seems unclear on this subject,
14475other
14476ACPI implementations behave in this manner.  (This is the root of the
14477AE_BAD_HEX_CONSTANT issue.)
14478
14479Modified the RSDP memory scan mechanism to support the extended checksum
14480for
14481ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
14482RSDP signature is found with a valid checksum.
14483
14484Code and Data Size: Current and previous core subsystem library sizes are
14485shown below. These are the code and data sizes for the acpica.lib
14486produced
14487by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14488any ACPI driver or OSPM code. The debug version of the code includes the
14489debug output trace mechanism and has a much larger code and data size.
14490Note
14491that these values will vary depending on the efficiency of the compiler
14492and
14493the compiler options used during generation.
14494
14495  Previous Release:
14496    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14497    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14498  Current Release:
14499    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14500    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14501
14502
145032) iASL Compiler/Disassembler:
14504
14505Fixed a missing semicolon in the aslcompiler.y file.
14506
14507----------------------------------------
1450805 November 2004.  Summary of changes for version 20041105:
14509
145101) ACPI CA Core Subsystem:
14511
14512Implemented support for FADT revision 2.  This was an interim table
14513(between
14514ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
14515
14516Implemented optional support to allow uninitialized LocalX and ArgX
14517variables in a control method.  The variables are initialized to an
14518Integer
14519object with a value of zero.  This support is enabled by setting the
14520AcpiGbl_EnableInterpreterSlack flag to TRUE.
14521
14522Implemented support for Integer objects for the SizeOf operator.  Either
145234
14524or 8 is returned, depending on the current integer size (32-bit or 64-
14525bit,
14526depending on the parent table revision).
14527
14528Fixed a problem in the implementation of the SizeOf and ObjectType
14529operators
14530where the operand was resolved to a value too early, causing incorrect
14531return values for some objects.
14532
14533Fixed some possible memory leaks during exceptional conditions.
14534
14535Code and Data Size: Current and previous core subsystem library sizes are
14536shown below. These are the code and data sizes for the acpica.lib
14537produced
14538by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14539any ACPI driver or OSPM code. The debug version of the code includes the
14540debug output trace mechanism and has a much larger code and data size.
14541Note
14542that these values will vary depending on the efficiency of the compiler
14543and
14544the compiler options used during generation.
14545
14546  Previous Release:
14547    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14548    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14549  Current Release:
14550    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14551    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14552
14553
145542) iASL Compiler/Disassembler:
14555
14556Implemented support for all ACPI 3.0 reserved names and methods.
14557
14558Implemented all ACPI 3.0 grammar elements in the front-end, including
14559support for semicolons.
14560
14561Implemented the ACPI 3.0 Function() and ToUUID() macros
14562
14563Fixed a problem in the disassembler where a Scope() operator would not be
14564emitted properly if the target of the scope was in another table.
14565
14566----------------------------------------
1456715 October 2004.  Summary of changes for version 20041015:
14568
14569Note:  ACPI CA is currently undergoing an in-depth and complete formal
14570evaluation to test/verify the following areas. Other suggestions are
14571welcome. This will result in an increase in the frequency of releases and
14572the number of bug fixes in the next few months.
14573  - Functional tests for all ASL/AML operators
14574  - All implicit/explicit type conversions
14575  - Bit fields and operation regions
14576  - 64-bit math support and 32-bit-only "truncated" math support
14577  - Exceptional conditions, both compiler and interpreter
14578  - Dynamic object deletion and memory leaks
14579  - ACPI 3.0 support when implemented
14580  - External interfaces to the ACPI subsystem
14581
14582
145831) ACPI CA Core Subsystem:
14584
14585Fixed two alignment issues on 64-bit platforms - within debug statements
14586in
14587AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
14588Address
14589field within the non-aligned ACPI generic address structure.
14590
14591Fixed a problem in the Increment and Decrement operators where incorrect
14592operand resolution could result in the inadvertent modification of the
14593original integer when the integer is passed into another method as an
14594argument and the arg is then incremented/decremented.
14595
14596Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
14597bit
14598BCD number were truncated during conversion.
14599
14600Fixed a problem in the ToDecimal operator where the length of the
14601resulting
14602string could be set incorrectly too long if the input operand was a
14603Buffer
14604object.
14605
14606Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
14607(0)
14608within a buffer would prematurely terminate a compare between buffer
14609objects.
14610
14611Added a check for string overflow (>200 characters as per the ACPI
14612specification) during the Concatenate operator with two string operands.
14613
14614Code and Data Size: Current and previous core subsystem library sizes are
14615shown below. These are the code and data sizes for the acpica.lib
14616produced
14617by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14618any ACPI driver or OSPM code. The debug version of the code includes the
14619debug output trace mechanism and has a much larger code and data size.
14620Note
14621that these values will vary depending on the efficiency of the compiler
14622and
14623the compiler options used during generation.
14624
14625  Previous Release:
14626    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14627    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14628  Current Release:
14629    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14630    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14631
14632
14633
146342) iASL Compiler/Disassembler:
14635
14636Allow the use of the ObjectType operator on uninitialized Locals and Args
14637(returns 0 as per the ACPI specification).
14638
14639Fixed a problem where the compiler would fault if there was a syntax
14640error
14641in the FieldName of all of the various CreateXXXField operators.
14642
14643Disallow the use of lower case letters within the EISAID macro, as per
14644the
14645ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
14646Where
14647U is an uppercase letter and N is a hex digit.
14648
14649
14650----------------------------------------
1465106 October 2004.  Summary of changes for version 20041006:
14652
146531) ACPI CA Core Subsystem:
14654
14655Implemented support for the ACPI 3.0 Timer operator. This ASL function
14656implements a 64-bit timer with 100 nanosecond granularity.
14657
14658Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
14659implement the ACPI 3.0 Timer operator.  This allows the host OS to
14660implement
14661the timer with the best clock available. Also, it keeps the core
14662subsystem
14663out of the clock handling business, since the host OS (usually) performs
14664this function.
14665
14666Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
14667functions use a 64-bit address which is part of the packed ACPI Generic
14668Address Structure. Since the structure is non-aligned, the alignment
14669macros
14670are now used to extract the address to a local variable before use.
14671
14672Fixed a problem where the ToInteger operator assumed all input strings
14673were
14674hexadecimal. The operator now handles both decimal strings and hex
14675strings
14676(prefixed with "0x").
14677
14678Fixed a problem where the string length in the string object created as a
14679result of the internal ConvertToString procedure could be incorrect. This
14680potentially affected all implicit conversions and also the
14681ToDecimalString
14682and ToHexString operators.
14683
14684Fixed two problems in the ToString operator. If the length parameter was
14685zero, an incorrect string object was created and the value of the input
14686length parameter was inadvertently changed from zero to Ones.
14687
14688Fixed a problem where the optional ResourceSource string in the
14689ExtendedIRQ
14690resource macro was ignored.
14691
14692Simplified the interfaces to the internal division functions, reducing
14693code
14694size and complexity.
14695
14696Code and Data Size: Current and previous core subsystem library sizes are
14697shown below. These are the code and data sizes for the acpica.lib
14698produced
14699by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14700any ACPI driver or OSPM code. The debug version of the code includes the
14701debug output trace mechanism and has a much larger code and data size.
14702Note
14703that these values will vary depending on the efficiency of the compiler
14704and
14705the compiler options used during generation.
14706
14707  Previous Release:
14708    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14709    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14710  Current Release:
14711    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14712    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14713
14714
147152) iASL Compiler/Disassembler:
14716
14717Implemented support for the ACPI 3.0 Timer operator.
14718
14719Fixed a problem where the Default() operator was inadvertently ignored in
14720a
14721Switch/Case block.  This was a problem in the translation of the Switch
14722statement to If...Else pairs.
14723
14724Added support to allow a standalone Return operator, with no parentheses
14725(or
14726operands).
14727
14728Fixed a problem with code generation for the ElseIf operator where the
14729translated Else...If parse tree was improperly constructed leading to the
14730loss of some code.
14731
14732----------------------------------------
1473322 September 2004.  Summary of changes for version 20040922:
14734
147351) ACPI CA Core Subsystem:
14736
14737Fixed a problem with the implementation of the LNot() operator where
14738"Ones"
14739was not returned for the TRUE case. Changed the code to return Ones
14740instead
14741of (!Arg) which was usually 1. This change affects iASL constant folding
14742for
14743this operator also.
14744
14745Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
14746not
14747initialized properly -- Now zero the entire buffer in this case where the
14748buffer already exists.
14749
14750Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
14751Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
14752related code considerably. This will require changes/updates to all OS
14753interface layers (OSLs.)
14754
14755Implemented a new external interface, AcpiInstallExceptionHandler, to
14756allow
14757a system exception handler to be installed. This handler is invoked upon
14758any
14759run-time exception that occurs during control method execution.
14760
14761Added support for the DSDT in AcpiTbFindTable. This allows the
14762DataTableRegion() operator to access the local copy of the DSDT.
14763
14764Code and Data Size: Current and previous core subsystem library sizes are
14765shown below. These are the code and data sizes for the acpica.lib
14766produced
14767by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14768any ACPI driver or OSPM code. The debug version of the code includes the
14769debug output trace mechanism and has a much larger code and data size.
14770Note
14771that these values will vary depending on the efficiency of the compiler
14772and
14773the compiler options used during generation.
14774
14775  Previous Release:
14776    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14777    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14778  Current Release:
14779    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14780    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14781
14782
147832) iASL Compiler/Disassembler:
14784
14785Fixed a problem with constant folding and the LNot operator. LNot was
14786returning 1 in the TRUE case, not Ones as per the ACPI specification.
14787This
14788could result in the generation of an incorrect folded/reduced constant.
14789
14790End-Of-File is now allowed within a "//"-style comment.  A parse error no
14791longer occurs if such a comment is at the very end of the input ASL
14792source
14793file.
14794
14795Implemented the "-r" option to override the Revision in the table header.
14796The initial use of this option will be to simplify the evaluation of the
14797AML
14798interpreter by allowing a single ASL source module to be compiled for
14799either
1480032-bit or 64-bit integers.
14801
14802
14803----------------------------------------
1480427 August 2004.  Summary of changes for version 20040827:
14805
148061) ACPI CA Core Subsystem:
14807
14808- Implemented support for implicit object conversion in the non-numeric
14809logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
14810and
14811LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
14812the second operand is implicitly converted on the fly to match the type
14813of
14814the first operand.  For example:
14815
14816    LEqual (Source1, Source2)
14817
14818Source1 and Source2 must each evaluate to an integer, a string, or a
14819buffer.
14820The data type of Source1 dictates the required type of Source2. Source2
14821is
14822implicitly converted if necessary to match the type of Source1.
14823
14824- Updated and corrected the behavior of the string conversion support.
14825The
14826rules concerning conversion of buffers to strings (according to the ACPI
14827specification) are as follows:
14828
14829ToDecimalString - explicit byte-wise conversion of buffer to string of
14830decimal values (0-255) separated by commas. ToHexString - explicit byte-
14831wise
14832conversion of buffer to string of hex values (0-FF) separated by commas.
14833ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
14834byte
14835copy with no transform except NULL terminated. Any other implicit buffer-
14836to-
14837string conversion - byte-wise conversion of buffer to string of hex
14838values
14839(0-FF) separated by spaces.
14840
14841- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
14842
14843- Fixed a problem in AcpiNsGetPathnameLength where the returned length
14844was
14845one byte too short in the case of a node in the root scope.  This could
14846cause a fault during debug output.
14847
14848- Code and Data Size: Current and previous core subsystem library sizes
14849are
14850shown below.  These are the code and data sizes for the acpica.lib
14851produced
14852by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14853any ACPI driver or OSPM code.  The debug version of the code includes the
14854debug output trace mechanism and has a much larger code and data size.
14855Note
14856that these values will vary depending on the efficiency of the compiler
14857and
14858the compiler options used during generation.
14859
14860  Previous Release:
14861    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14862    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14863  Current Release:
14864    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14865    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14866
14867
148682) iASL Compiler/Disassembler:
14869
14870- Fixed a Linux generation error.
14871
14872
14873----------------------------------------
1487416 August 2004.  Summary of changes for version 20040816:
14875
148761) ACPI CA Core Subsystem:
14877
14878Designed and implemented support within the AML interpreter for the so-
14879called "implicit return".  This support returns the result of the last
14880ASL
14881operation within a control method, in the absence of an explicit Return()
14882operator.  A few machines depend on this behavior, even though it is not
14883explicitly supported by the ASL language.  It is optional support that
14884can
14885be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
14886
14887Removed support for the PCI_Config address space from the internal low
14888level
14889hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
14890support was not used internally, and would not work correctly anyway
14891because
14892the PCI bus number and segment number were not supported.  There are
14893separate interfaces for PCI configuration space access because of the
14894unique
14895interface.
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:  78.0K Code,  11.5K Data,   89.5K Total
14910    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14911  Current Release:
14912    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14913    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14914
14915
149162) iASL Compiler/Disassembler:
14917
14918Fixed a problem where constants in ASL expressions at the root level (not
14919within a control method) could be inadvertently truncated during code
14920generation.  This problem was introduced in the 20040715 release.
14921
14922
14923----------------------------------------
1492415 July 2004.  Summary of changes for version 20040715:
14925
149261) ACPI CA Core Subsystem:
14927
14928Restructured the internal HW GPE interfaces to pass/track the current
14929state
14930of interrupts (enabled/disabled) in order to avoid possible deadlock and
14931increase flexibility of the interfaces.
14932
14933Implemented a "lexicographical compare" for String and Buffer objects
14934within
14935the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
14936-
14937as per further clarification to the ACPI specification.  Behavior is
14938similar
14939to C library "strcmp".
14940
14941Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
14942external function.  In the 32-bit non-debug case, the stack use has been
14943reduced from 168 bytes to 32 bytes.
14944
14945Deployed a new run-time configuration flag,
14946AcpiGbl_EnableInterpreterSlack,
14947whose purpose is to allow the AML interpreter to forgive certain bad AML
14948constructs.  Default setting is FALSE.
14949
14950Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
14951IO
14952support code.  If enabled, it allows field access to go beyond the end of
14953a
14954region definition if the field is within the region length rounded up to
14955the
14956next access width boundary (a common coding error.)
14957
14958Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
14959ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
14960these
14961symbols are lowercase by the latest version of the AcpiSrc tool.
14962
14963The prototypes for the PCI interfaces in acpiosxf.h have been updated to
14964rename "Register" to simply "Reg" to prevent certain compilers from
14965complaining.
14966
14967Code and Data Size: Current and previous core subsystem library sizes are
14968shown below.  These are the code and data sizes for the acpica.lib
14969produced
14970by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14971any ACPI driver or OSPM code.  The debug version of the code includes the
14972debug output trace mechanism and has a much larger code and data size.
14973Note
14974that these values will vary depending on the efficiency of the compiler
14975and
14976the compiler options used during generation.
14977
14978  Previous Release:
14979    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14980    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14981  Current Release:
14982    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14983    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14984
14985
149862) iASL Compiler/Disassembler:
14987
14988Implemented full support for Package objects within the Case() operator.
14989Note: The Break() operator is currently not supported within Case blocks
14990(TermLists) as there is some question about backward compatibility with
14991ACPI
149921.0 interpreters.
14993
14994
14995Fixed a problem where complex terms were not supported properly within
14996the
14997Switch() operator.
14998
14999Eliminated extraneous warning for compiler-emitted reserved names of the
15000form "_T_x".  (Used in Switch/Case operators.)
15001
15002Eliminated optimization messages for "_T_x" objects and small constants
15003within the DefinitionBlock operator.
15004
15005
15006----------------------------------------
1500715 June 2004.  Summary of changes for version 20040615:
15008
150091) ACPI CA Core Subsystem:
15010
15011Implemented support for Buffer and String objects (as per ACPI 2.0) for
15012the
15013following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
15014LLessEqual.
15015
15016All directory names in the entire source package are lower case, as they
15017were in earlier releases.
15018
15019Implemented "Disassemble" command in the AML debugger that will
15020disassemble
15021a single control method.
15022
15023Code and Data Size: Current and previous core subsystem library sizes are
15024shown below.  These are the code and data sizes for the acpica.lib
15025produced
15026by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15027any ACPI driver or OSPM code.  The debug version of the code includes the
15028debug output trace mechanism and has a much larger code and data size.
15029Note
15030that these values will vary depending on the efficiency of the compiler
15031and
15032the compiler options used during generation.
15033
15034  Previous Release:
15035    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
15036    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
15037
15038  Current Release:
15039    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
15040    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
15041
15042
150432) iASL Compiler/Disassembler:
15044
15045Implemented support for Buffer and String objects (as per ACPI 2.0) for
15046the
15047following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
15048LLessEqual.
15049
15050All directory names in the entire source package are lower case, as they
15051were in earlier releases.
15052
15053Fixed a fault when using the -g or -d<nofilename> options if the FADT was
15054not found.
15055
15056Fixed an issue with the Windows version of the compiler where later
15057versions
15058of Windows place the FADT in the registry under the name "FADT" and not
15059"FACP" as earlier versions did.  This applies when using the -g or -
15060d<nofilename> options.  The compiler now looks for both strings as
15061necessary.
15062
15063Fixed a problem with compiler namepath optimization where a namepath
15064within
15065the Scope() operator could not be optimized if the namepath was a subpath
15066of
15067the current scope path.
15068
15069----------------------------------------
1507027 May 2004.  Summary of changes for version 20040527:
15071
150721) ACPI CA Core Subsystem:
15073
15074Completed a new design and implementation for EBDA (Extended BIOS Data
15075Area)
15076support in the RSDP scan code.  The original code improperly scanned for
15077the
15078EBDA by simply scanning from memory location 0 to 0x400.  The correct
15079method
15080is to first obtain the EBDA pointer from within the BIOS data area, then
15081scan 1K of memory starting at the EBDA pointer.  There appear to be few
15082if
15083any machines that place the RSDP in the EBDA, however.
15084
15085Integrated a fix for a possible fault during evaluation of BufferField
15086arguments.  Obsolete code that was causing the problem was removed.
15087
15088Found and fixed a problem in the Field Support Code where data could be
15089corrupted on a bit field read that starts on an aligned boundary but does
15090not end on an aligned boundary.  Merged the read/write "datum length"
15091calculation code into a common procedure.
15092
15093Rolled in a couple of changes to the FreeBSD-specific header.
15094
15095
15096Code and Data Size: Current and previous core subsystem library sizes are
15097shown below.  These are the code and data sizes for the acpica.lib
15098produced
15099by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15100any ACPI driver or OSPM code.  The debug version of the code includes the
15101debug output trace mechanism and has a much larger code and data size.
15102Note
15103that these values will vary depending on the efficiency of the compiler
15104and
15105the compiler options used during generation.
15106
15107  Previous Release:
15108    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15109    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
15110  Current Release:
15111    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
15112    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
15113
15114
151152) iASL Compiler/Disassembler:
15116
15117Fixed a generation warning produced by some overly-verbose compilers for
15118a
1511964-bit constant.
15120
15121----------------------------------------
1512214 May 2004.  Summary of changes for version 20040514:
15123
151241) ACPI CA Core Subsystem:
15125
15126Fixed a problem where hardware GPE enable bits sometimes not set properly
15127during and after GPE method execution.  Result of 04/27 changes.
15128
15129Removed extra "clear all GPEs" when sleeping/waking.
15130
15131Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
15132AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
15133to
15134the new AcpiEv* calls as appropriate.
15135
15136ACPI_OS_NAME was removed from the OS-specific headers.  The default name
15137is
15138now "Microsoft Windows NT" for maximum compatibility.  However this can
15139be
15140changed by modifying the acconfig.h file.
15141
15142Allow a single invocation of AcpiInstallNotifyHandler for a handler that
15143traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
15144
15145Run _INI methods on ThermalZone objects.  This is against the ACPI
15146specification, but there is apparently ASL code in the field that has
15147these
15148_INI methods, and apparently "other" AML interpreters execute them.
15149
15150Performed a full 16/32/64 bit lint that resulted in some small changes.
15151
15152Added a sleep simulation command to the AML debugger to test sleep code.
15153
15154Code and Data Size: Current and previous core subsystem library sizes are
15155shown below.  These are the code and data sizes for the acpica.lib
15156produced
15157by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15158any ACPI driver or OSPM code.  The debug version of the code includes the
15159debug output trace mechanism and has a much larger code and data size.
15160Note
15161that these values will vary depending on the efficiency of the compiler
15162and
15163the compiler options used during generation.
15164
15165  Previous Release:
15166    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15167    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
15168  Current Release:
15169    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15170    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
15171
15172----------------------------------------
1517327 April 2004.  Summary of changes for version 20040427:
15174
151751) ACPI CA Core Subsystem:
15176
15177Completed a major overhaul of the GPE handling within ACPI CA.  There are
15178now three types of GPEs:  wake-only, runtime-only, and combination
15179wake/run.
15180The only GPEs allowed to be combination wake/run are for button-style
15181devices such as a control-method power button, control-method sleep
15182button,
15183or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
15184not
15185referenced by any _PRW methods are marked for "runtime" and hardware
15186enabled.  Any GPE that is referenced by a _PRW method is marked for
15187"wake"
15188(and disabled at runtime).  However, at sleep time, only those GPEs that
15189have been specifically enabled for wake via the AcpiEnableGpe interface
15190will
15191actually be hardware enabled.
15192
15193A new external interface has been added, AcpiSetGpeType(), that is meant
15194to
15195be used by device drivers to force a GPE to a particular type.  It will
15196be
15197especially useful for the drivers for the button devices mentioned above.
15198
15199Completed restructuring of the ACPI CA initialization sequence so that
15200default operation region handlers are installed before GPEs are
15201initialized
15202and the _PRW methods are executed.  This will prevent errors when the
15203_PRW
15204methods attempt to access system memory or I/O space.
15205
15206GPE enable/disable no longer reads the GPE enable register.  We now keep
15207the
15208enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
15209thus no longer depend on the hardware to maintain these bits.
15210
15211Always clear the wake status and fixed/GPE status bits before sleep, even
15212for state S5.
15213
15214Improved the AML debugger output for displaying the GPE blocks and their
15215current status.
15216
15217Added new strings for the _OSI method, of the form "Windows 2001 SPx"
15218where
15219x = 0,1,2,3,4.
15220
15221Fixed a problem where the physical address was incorrectly calculated
15222when
15223the Load() operator was used to directly load from an Operation Region
15224(vs.
15225loading from a Field object.)  Also added check for minimum table length
15226for
15227this case.
15228
15229Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
15230mutex release.
15231
15232Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
15233consistency with the other fields returned.
15234
15235Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
15236structure for each GPE in the system, so the size of this structure is
15237important.
15238
15239CPU stack requirement reduction:  Cleaned up the method execution and
15240object
15241evaluation paths so that now a parameter structure is passed, instead of
15242copying the various method parameters over and over again.
15243
15244In evregion.c:  Correctly exit and reenter the interpreter region if and
15245only if dispatching an operation region request to a user-installed
15246handler.
15247Do not exit/reenter when dispatching to a default handler (e.g., default
15248system memory or I/O handlers)
15249
15250
15251Notes for updating drivers for the new GPE support.  The following
15252changes
15253must be made to ACPI-related device drivers that are attached to one or
15254more
15255GPEs: (This information will be added to the ACPI CA Programmer
15256Reference.)
15257
152581) AcpiInstallGpeHandler no longer automatically enables the GPE, you
15259must
15260explicitly call AcpiEnableGpe.
152612) There is a new interface called AcpiSetGpeType. This should be called
15262before enabling the GPE.  Also, this interface will automatically disable
15263the GPE if it is currently enabled.
152643) AcpiEnableGpe no longer supports a GPE type flag.
15265
15266Specific drivers that must be changed:
152671) EC driver:
15268    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
15269AeGpeHandler, NULL);
15270    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
15271    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
15272
152732) Button Drivers (Power, Lid, Sleep):
15274Run _PRW method under parent device
15275If _PRW exists: /* This is a control-method button */
15276    Extract GPE number and possibly GpeDevice
15277    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
15278    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
15279
15280For all other devices that have _PRWs, we automatically set the GPE type
15281to
15282ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
15283This
15284must be done on a selective basis, usually requiring some kind of user
15285app
15286to allow the user to pick the wake devices.
15287
15288
15289Code and Data Size: Current and previous core subsystem library sizes are
15290shown below.  These are the code and data sizes for the acpica.lib
15291produced
15292by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15293any ACPI driver or OSPM code.  The debug version of the code includes the
15294debug output trace mechanism and has a much larger code and data size.
15295Note
15296that these values will vary depending on the efficiency of the compiler
15297and
15298the compiler options used during generation.
15299
15300  Previous Release:
15301    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15302    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15303  Current Release:
15304
15305    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15306    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
15307
15308
15309
15310----------------------------------------
1531102 April 2004.  Summary of changes for version 20040402:
15312
153131) ACPI CA Core Subsystem:
15314
15315Fixed an interpreter problem where an indirect store through an ArgX
15316parameter was incorrectly applying the "implicit conversion rules" during
15317the store.  From the ACPI specification: "If the target is a method local
15318or
15319argument (LocalX or ArgX), no conversion is performed and the result is
15320stored directly to the target".  The new behavior is to disable implicit
15321conversion during ALL stores to an ArgX.
15322
15323Changed the behavior of the _PRW method scan to ignore any and all errors
15324returned by a given _PRW.  This prevents the scan from aborting from the
15325failure of any single _PRW.
15326
15327Moved the runtime configuration parameters from the global init procedure
15328to
15329static variables in acglobal.h.  This will allow the host to override the
15330default values easily.
15331
15332Code and Data Size: Current and previous core subsystem library sizes are
15333shown below.  These are the code and data sizes for the acpica.lib
15334produced
15335by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15336any ACPI driver or OSPM code.  The debug version of the code includes the
15337debug output trace mechanism and has a much larger code and data size.
15338Note
15339that these values will vary depending on the efficiency of the compiler
15340and
15341the compiler options used during generation.
15342
15343  Previous Release:
15344    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15345    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15346  Current Release:
15347    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15348    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15349
15350
153512) iASL Compiler/Disassembler:
15352
15353iASL now fully disassembles SSDTs.  However, External() statements are
15354not
15355generated automatically for unresolved symbols at this time.  This is a
15356planned feature for future implementation.
15357
15358Fixed a scoping problem in the disassembler that occurs when the type of
15359the
15360target of a Scope() operator is overridden.  This problem caused an
15361incorrectly nested internal namespace to be constructed.
15362
15363Any warnings or errors that are emitted during disassembly are now
15364commented
15365out automatically so that the resulting file can be recompiled without
15366any
15367hand editing.
15368
15369----------------------------------------
1537026 March 2004.  Summary of changes for version 20040326:
15371
153721) ACPI CA Core Subsystem:
15373
15374Implemented support for "wake" GPEs via interaction between GPEs and the
15375_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
15376identified as a WAKE GPE and by default will no longer be enabled at
15377runtime.  Previously, we were blindly enabling all GPEs with a
15378corresponding
15379_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
15380We
15381believe this has been the cause of thousands of "spurious" GPEs on some
15382systems.
15383
15384This new GPE behavior is can be reverted to the original behavior (enable
15385ALL GPEs at runtime) via a runtime flag.
15386
15387Fixed a problem where aliased control methods could not access objects
15388properly.  The proper scope within the namespace was not initialized
15389(transferred to the target of the aliased method) before executing the
15390target method.
15391
15392Fixed a potential race condition on internal object deletion on the
15393return
15394object in AcpiEvaluateObject.
15395
15396Integrated a fix for resource descriptors where both _MEM and _MTP were
15397being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
15398wide, 0x0F instead of 0x03.)
15399
15400Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
15401preventing
15402a
15403fault in some cases.
15404
15405Updated Notify() values for debug statements in evmisc.c
15406
15407Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
15408
15409Code and Data Size: Current and previous core subsystem library sizes are
15410shown below.  These are the code and data sizes for the acpica.lib
15411produced
15412by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15413any ACPI driver or OSPM code.  The debug version of the code includes the
15414debug output trace mechanism and has a much larger code and data size.
15415Note
15416that these values will vary depending on the efficiency of the compiler
15417and
15418the compiler options used during generation.
15419
15420  Previous Release:
15421
15422    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15423    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15424  Current Release:
15425    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15426    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15427
15428----------------------------------------
1542911 March 2004.  Summary of changes for version 20040311:
15430
154311) ACPI CA Core Subsystem:
15432
15433Fixed a problem where errors occurring during the parse phase of control
15434method execution did not abort cleanly.  For example, objects created and
15435installed in the namespace were not deleted.  This caused all subsequent
15436invocations of the method to return the AE_ALREADY_EXISTS exception.
15437
15438Implemented a mechanism to force a control method to "Serialized"
15439execution
15440if the method attempts to create namespace objects. (The root of the
15441AE_ALREADY_EXISTS problem.)
15442
15443Implemented support for the predefined _OSI "internal" control method.
15444Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
15445and
15446"Windows 2001.1", and can be easily upgraded for new strings as
15447necessary.
15448This feature will allow "other" operating systems to execute the fully
15449tested, "Windows" code path through the ASL code
15450
15451Global Lock Support:  Now allows multiple acquires and releases with any
15452internal thread.  Removed concept of "owning thread" for this special
15453mutex.
15454
15455Fixed two functions that were inappropriately declaring large objects on
15456the
15457CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
15458during
15459method execution considerably.
15460
15461Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
15462S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
15463
15464Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
15465defined on the machine.
15466
15467Implemented two runtime options:  One to force all control method
15468execution
15469to "Serialized" to mimic Windows behavior, another to disable _OSI
15470support
15471if it causes problems on a given machine.
15472
15473Code and Data Size: Current and previous core subsystem library sizes are
15474shown below.  These are the code and data sizes for the acpica.lib
15475produced
15476by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15477any ACPI driver or OSPM code.  The debug version of the code includes the
15478debug output trace mechanism and has a much larger code and data size.
15479Note
15480that these values will vary depending on the efficiency of the compiler
15481and
15482the compiler options used during generation.
15483
15484  Previous Release:
15485    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15486    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15487  Current Release:
15488    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15489    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15490
154912) iASL Compiler/Disassembler:
15492
15493Fixed an array size problem for FreeBSD that would cause the compiler to
15494fault.
15495
15496----------------------------------------
1549720 February 2004.  Summary of changes for version 20040220:
15498
15499
155001) ACPI CA Core Subsystem:
15501
15502Implemented execution of _SxD methods for Device objects in the
15503GetObjectInfo interface.
15504
15505Fixed calls to _SST method to pass the correct arguments.
15506
15507Added a call to _SST on wake to restore to "working" state.
15508
15509Check for End-Of-Buffer failure case in the WalkResources interface.
15510
15511Integrated fix for 64-bit alignment issue in acglobal.h by moving two
15512structures to the beginning of the file.
15513
15514After wake, clear GPE status register(s) before enabling GPEs.
15515
15516After wake, clear/enable power button.  (Perhaps we should clear/enable
15517all
15518fixed events upon wake.)
15519
15520Fixed a couple of possible memory leaks in the Namespace manager.
15521
15522Integrated latest acnetbsd.h file.
15523
15524----------------------------------------
1552511 February 2004.  Summary of changes for version 20040211:
15526
15527
155281) ACPI CA Core Subsystem:
15529
15530Completed investigation and implementation of the call-by-reference
15531mechanism for control method arguments.
15532
15533Fixed a problem where a store of an object into an indexed package could
15534fail if the store occurs within a different method than the method that
15535created the package.
15536
15537Fixed a problem where the ToDecimal operator could return incorrect
15538results.
15539
15540Fixed a problem where the CopyObject operator could fail on some of the
15541more
15542obscure objects (e.g., Reference objects.)
15543
15544Improved the output of the Debug object to display buffer, package, and
15545index objects.
15546
15547Fixed a problem where constructs of the form "RefOf (ArgX)" did not
15548return
15549the expected result.
15550
15551Added permanent ACPI_REPORT_ERROR macros for all instances of the
15552ACPI_AML_INTERNAL exception.
15553
15554Integrated latest version of acfreebsd.h
15555
15556----------------------------------------
1555716 January 2004.  Summary of changes for version 20040116:
15558
15559The purpose of this release is primarily to update the copyright years in
15560each module, thus causing a huge number of diffs.  There are a few small
15561functional changes, however.
15562
155631) ACPI CA Core Subsystem:
15564
15565Improved error messages when there is a problem finding one or more of
15566the
15567required base ACPI tables
15568
15569Reintroduced the definition of APIC_HEADER in actbl.h
15570
15571Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
15572
15573Removed extraneous reference to NewObj in dsmthdat.c
15574
155752) iASL compiler
15576
15577Fixed a problem introduced in December that disabled the correct
15578disassembly
15579of Resource Templates
15580
15581
15582----------------------------------------
1558303 December 2003.  Summary of changes for version 20031203:
15584
155851) ACPI CA Core Subsystem:
15586
15587Changed the initialization of Operation Regions during subsystem
15588init to perform two entire walks of the ACPI namespace; The first
15589to initialize the regions themselves, the second to execute the
15590_REG methods.  This fixed some interdependencies across _REG
15591methods found on some machines.
15592
15593Fixed a problem where a Store(Local0, Local1) could simply update
15594the object reference count, and not create a new copy of the
15595object if the Local1 is uninitialized.
15596
15597Implemented support for the _SST reserved method during sleep
15598transitions.
15599
15600Implemented support to clear the SLP_TYP and SLP_EN bits when
15601waking up, this is apparently required by some machines.
15602
15603When sleeping, clear the wake status only if SleepState is not S5.
15604
15605Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
15606pointer arithmetic advanced a string pointer too far.
15607
15608Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
15609could be returned if the requested table has not been loaded.
15610
15611Within the support for IRQ resources, restructured the handling of
15612the active and edge/level bits.
15613
15614Fixed a few problems in AcpiPsxExecute() where memory could be
15615leaked under certain error conditions.
15616
15617Improved error messages for the cases where the ACPI mode could
15618not be entered.
15619
15620Code and Data Size: Current and previous core subsystem library
15621sizes are shown below.  These are the code and data sizes for the
15622acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15623these values do not include any ACPI driver or OSPM code.  The
15624debug version of the code includes the debug output trace
15625mechanism and has a much larger code and data size.  Note that
15626these values will vary depending on the efficiency of the compiler
15627and the compiler options used during generation.
15628
15629  Previous Release (20031029):
15630    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15631    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15632  Current Release:
15633    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15634    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15635
156362) iASL Compiler/Disassembler:
15637
15638Implemented a fix for the iASL disassembler where a bad index was
15639generated.  This was most noticeable on 64-bit platforms
15640
15641
15642----------------------------------------
1564329 October 2003.  Summary of changes for version 20031029:
15644
156451) ACPI CA Core Subsystem:
15646
15647
15648Fixed a problem where a level-triggered GPE with an associated
15649_Lxx control method was incorrectly cleared twice.
15650
15651Fixed a problem with the Field support code where an access can
15652occur beyond the end-of-region if the field is non-aligned but
15653extends to the very end of the parent region (resulted in an
15654AE_AML_REGION_LIMIT exception.)
15655
15656Fixed a problem with ACPI Fixed Events where an RT Clock handler
15657would not get invoked on an RTC event.  The RTC event bitmasks for
15658the PM1 registers were not being initialized properly.
15659
15660Implemented support for executing _STA and _INI methods for
15661Processor objects.  Although this is currently not part of the
15662ACPI specification, there is existing ASL code that depends on the
15663init-time execution of these methods.
15664
15665Implemented and deployed a GetDescriptorName function to decode
15666the various types of internal descriptors.  Guards against null
15667descriptors during debug output also.
15668
15669Implemented and deployed a GetNodeName function to extract the 4-
15670character namespace node name.  This function simplifies the debug
15671and error output, as well as guarding against null pointers during
15672output.
15673
15674Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
15675simplify the debug and error output of 64-bit integers.  This
15676macro replaces the HIDWORD and LODWORD macros for dumping these
15677integers.
15678
15679Updated the implementation of the Stall() operator to only call
15680AcpiOsStall(), and also return an error if the operand is larger
15681than 255.  This preserves the required behavior of not
15682relinquishing the processor, as would happen if AcpiOsSleep() was
15683called for "long stalls".
15684
15685Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
15686initialized are now treated as NOOPs.
15687
15688Cleaned up a handful of warnings during 64-bit generation.
15689
15690Fixed a reported error where and incorrect GPE number was passed
15691to the GPE dispatch handler.  This value is only used for error
15692output, however.  Used this opportunity to clean up and streamline
15693the GPE dispatch code.
15694
15695Code and Data Size: Current and previous core subsystem library
15696sizes are shown below.  These are the code and data sizes for the
15697acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15698these values do not include any ACPI driver or OSPM code.  The
15699
15700debug version of the code includes the debug output trace
15701mechanism and has a much larger code and data size.  Note that
15702these values will vary depending on the efficiency of the compiler
15703and the compiler options used during generation.
15704
15705  Previous Release (20031002):
15706    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15707    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15708  Current Release:
15709    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15710    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15711
15712
157132) iASL Compiler/Disassembler:
15714
15715Updated the iASL compiler to return an error if the operand to the
15716Stall() operator is larger than 255.
15717
15718
15719----------------------------------------
1572002 October 2003.  Summary of changes for version 20031002:
15721
15722
157231) ACPI CA Core Subsystem:
15724
15725Fixed a problem with Index Fields where the index was not
15726incremented for fields that require multiple writes to the
15727index/data registers (Fields that are wider than the data
15728register.)
15729
15730Fixed a problem with all Field objects where a write could go
15731beyond the end-of-field if the field was larger than the access
15732granularity and therefore required multiple writes to complete the
15733request.  An extra write beyond the end of the field could happen
15734inadvertently.
15735
15736Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
15737would incorrectly be returned if the width of the Data Register
15738was larger than the specified field access width.
15739
15740Completed fixes for LoadTable() and Unload() and verified their
15741operation.  Implemented full support for the "DdbHandle" object
15742throughout the ACPI CA subsystem.
15743
15744Implemented full support for the MADT and ECDT tables in the ACPI
15745CA header files.  Even though these tables are not directly
15746consumed by ACPI CA, the header definitions are useful for ACPI
15747device drivers.
15748
15749Integrated resource descriptor fixes posted to the Linux ACPI
15750list.  This included checks for minimum descriptor length, and
15751support for trailing NULL strings within descriptors that have
15752optional string elements.
15753
15754Code and Data Size: Current and previous core subsystem library
15755sizes are shown below.  These are the code and data sizes for the
15756acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15757these values do not include any ACPI driver or OSPM code.  The
15758debug version of the code includes the debug output trace
15759mechanism and has a much larger code and data size.  Note that
15760these values will vary depending on the efficiency of the compiler
15761and the compiler options used during generation.
15762
15763  Previous Release (20030918):
15764    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15765    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15766  Current Release:
15767    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15768    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15769
15770
157712) iASL Compiler:
15772
15773Implemented detection of non-ASCII characters within the input
15774source ASL file.  This catches attempts to compile binary (AML)
15775files early in the compile, with an informative error message.
15776
15777Fixed a problem where the disassembler would fault if the output
15778filename could not be generated or if the output file could not be
15779opened.
15780
15781----------------------------------------
1578218 September 2003.  Summary of changes for version 20030918:
15783
15784
157851) ACPI CA Core Subsystem:
15786
15787Found and fixed a longstanding problem with the late execution of
15788the various deferred AML opcodes (such as Operation Regions,
15789Buffer Fields, Buffers, and Packages).  If the name string
15790specified for the name of the new object placed the object in a
15791scope other than the current scope, the initialization/execution
15792of the opcode failed.  The solution to this problem was to
15793implement a mechanism where the late execution of such opcodes
15794does not attempt to lookup/create the name a second time in an
15795incorrect scope.  This fixes the "region size computed
15796incorrectly" problem.
15797
15798Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
15799Global Lock AE_BAD_PARAMETER error.
15800
15801Fixed several 64-bit issues with prototypes, casting and data
15802types.
15803
15804Removed duplicate prototype from acdisasm.h
15805
15806Fixed an issue involving EC Operation Region Detach (Shaohua Li)
15807
15808Code and Data Size: Current and previous core subsystem library
15809sizes are shown below.  These are the code and data sizes for the
15810acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15811these values do not include any ACPI driver or OSPM code.  The
15812debug version of the code includes the debug output trace
15813mechanism and has a much larger code and data size.  Note that
15814these values will vary depending on the efficiency of the compiler
15815and the compiler options used during generation.
15816
15817  Previous Release:
15818
15819    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15820    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15821  Current Release:
15822    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15823    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15824
15825
158262) Linux:
15827
15828Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
15829correct sleep time in seconds.
15830
15831----------------------------------------
1583214 July 2003.  Summary of changes for version 20030619:
15833
158341) ACPI CA Core Subsystem:
15835
15836Parse SSDTs in order discovered, as opposed to reverse order
15837(Hrvoje Habjanic)
15838
15839Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
15840Klausner,
15841   Nate Lawson)
15842
15843
158442) Linux:
15845
15846Dynamically allocate SDT list (suggested by Andi Kleen)
15847
15848proc function return value cleanups (Andi Kleen)
15849
15850Correctly handle NMI watchdog during long stalls (Andrew Morton)
15851
15852Make it so acpismp=force works (reported by Andrew Morton)
15853
15854
15855----------------------------------------
1585619 June 2003.  Summary of changes for version 20030619:
15857
158581) ACPI CA Core Subsystem:
15859
15860Fix To/FromBCD, eliminating the need for an arch-specific #define.
15861
15862Do not acquire a semaphore in the S5 shutdown path.
15863
15864Fix ex_digits_needed for 0. (Takayoshi Kochi)
15865
15866Fix sleep/stall code reversal. (Andi Kleen)
15867
15868Revert a change having to do with control method calling
15869semantics.
15870
158712) Linux:
15872
15873acpiphp update (Takayoshi Kochi)
15874
15875Export acpi_disabled for sonypi (Stelian Pop)
15876
15877Mention acpismp=force in config help
15878
15879Re-add acpitable.c and acpismp=force. This improves backwards
15880
15881compatibility and also cleans up the code to a significant degree.
15882
15883Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
15884
15885----------------------------------------
1588622 May 2003.  Summary of changes for version 20030522:
15887
158881) ACPI CA Core Subsystem:
15889
15890Found and fixed a reported problem where an AE_NOT_FOUND error
15891occurred occasionally during _BST evaluation.  This turned out to
15892be an Owner ID allocation issue where a called method did not get
15893a new ID assigned to it.  Eventually, (after 64k calls), the Owner
15894ID UINT16 would wraparound so that the ID would be the same as the
15895caller's and the called method would delete the caller's
15896namespace.
15897
15898Implemented extended error reporting for control methods that are
15899aborted due to a run-time exception.  Output includes the exact
15900AML instruction that caused the method abort, a dump of the method
15901locals and arguments at the time of the abort, and a trace of all
15902nested control method calls.
15903
15904Modified the interpreter to allow the creation of buffers of zero
15905length from the AML code. Implemented new code to ensure that no
15906attempt is made to actually allocate a memory buffer (of length
15907zero) - instead, a simple buffer object with a NULL buffer pointer
15908and length zero is created.  A warning is no longer issued when
15909the AML attempts to create a zero-length buffer.
15910
15911Implemented a workaround for the "leading asterisk issue" in
15912_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
15913asterisk is automatically removed if present in any HID, UID, or
15914CID strings.  The iASL compiler will still flag this asterisk as
15915an error, however.
15916
15917Implemented full support for _CID methods that return a package of
15918multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
15919now additionally returns a device _CID list if present.  This
15920required a change to the external interface in order to pass an
15921ACPI_BUFFER object as a parameter since the _CID list is of
15922variable length.
15923
15924Fixed a problem with the new AE_SAME_HANDLER exception where
15925handler initialization code did not know about this exception.
15926
15927Code and Data Size: Current and previous core subsystem library
15928sizes are shown below.  These are the code and data sizes for the
15929acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15930these values do not include any ACPI driver or OSPM code.  The
15931debug version of the code includes the debug output trace
15932mechanism and has a much larger code and data size.  Note that
15933these values will vary depending on the efficiency of the compiler
15934and the compiler options used during generation.
15935
15936  Previous Release (20030509):
15937    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15938    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15939  Current Release:
15940    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15941    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15942
15943
159442) Linux:
15945
15946Fixed a bug in which we would reinitialize the ACPI interrupt
15947after it was already working, thus disabling all ACPI and the IRQs
15948for any other device sharing the interrupt. (Thanks to Stian
15949Jordet)
15950
15951Toshiba driver update (John Belmonte)
15952
15953Return only 0 or 1 for our interrupt handler status (Andrew
15954Morton)
15955
15956
159573) iASL Compiler:
15958
15959Fixed a reported problem where multiple (nested) ElseIf()
15960statements were not handled correctly by the compiler, resulting
15961in incorrect warnings and incorrect AML code.  This was a problem
15962in both the ASL parser and the code generator.
15963
15964
159654) Documentation:
15966
15967Added changes to existing interfaces, new exception codes, and new
15968text concerning reference count object management versus garbage
15969collection.
15970
15971----------------------------------------
1597209 May 2003.  Summary of changes for version 20030509.
15973
15974
159751) ACPI CA Core Subsystem:
15976
15977Changed the subsystem initialization sequence to hold off
15978installation of address space handlers until the hardware has been
15979initialized and the system has entered ACPI mode.  This is because
15980the installation of space handlers can cause _REG methods to be
15981run.  Previously, the _REG methods could potentially be run before
15982ACPI mode was enabled.
15983
15984Fixed some memory leak issues related to address space handler and
15985notify handler installation.  There were some problems with the
15986reference count mechanism caused by the fact that the handler
15987objects are shared across several namespace objects.
15988
15989Fixed a reported problem where reference counts within the
15990namespace were not properly updated when named objects created by
15991method execution were deleted.
15992
15993Fixed a reported problem where multiple SSDTs caused a deletion
15994issue during subsystem termination.  Restructured the table data
15995structures to simplify the linked lists and the related code.
15996
15997Fixed a problem where the table ID associated with secondary
15998tables (SSDTs) was not being propagated into the namespace objects
15999created by those tables.  This would only present a problem for
16000tables that are unloaded at run-time, however.
16001
16002Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
16003type as the length parameter (instead of UINT32).
16004
16005Solved a long-standing problem where an ALREADY_EXISTS error
16006appears on various systems.  This problem could happen when there
16007are multiple PCI_Config operation regions under a single PCI root
16008bus.  This doesn't happen very frequently, but there are some
16009systems that do this in the ASL.
16010
16011Fixed a reported problem where the internal DeleteNode function
16012was incorrectly handling the case where a namespace node was the
16013first in the parent's child list, and had additional peers (not
16014the only child, but first in the list of children.)
16015
16016Code and Data Size: Current core subsystem library sizes are shown
16017below.  These are the code and data sizes for the acpica.lib
16018produced by the Microsoft Visual C++ 6.0 compiler, and these
16019values do not include any ACPI driver or OSPM code.  The debug
16020version of the code includes the debug output trace mechanism and
16021has a much larger code and data size.  Note that these values will
16022vary depending on the efficiency of the compiler and the compiler
16023options used during generation.
16024
16025  Previous Release
16026    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
16027    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
16028  Current Release:
16029    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
16030    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
16031
16032
160332) Linux:
16034
16035Allow ":" in OS override string (Ducrot Bruno)
16036
16037Kobject fix (Greg KH)
16038
16039
160403 iASL Compiler/Disassembler:
16041
16042Fixed a problem in the generation of the C source code files (AML
16043is emitted in C source statements for BIOS inclusion) where the
16044Ascii dump that appears within a C comment at the end of each line
16045could cause a compile time error if the AML sequence happens to
16046have an open comment or close comment sequence embedded.
16047
16048
16049----------------------------------------
1605024 April 2003.  Summary of changes for version 20030424.
16051
16052
160531) ACPI CA Core Subsystem:
16054
16055Support for big-endian systems has been implemented.  Most of the
16056support has been invisibly added behind big-endian versions of the
16057ACPI_MOVE_* macros.
16058
16059Fixed a problem in AcpiHwDisableGpeBlock() and
16060AcpiHwClearGpeBlock() where an incorrect offset was passed to the
16061low level hardware write routine.  The offset parameter was
16062actually eliminated from the low level read/write routines because
16063they had become obsolete.
16064
16065Fixed a problem where a handler object was deleted twice during
16066the removal of a fixed event handler.
16067
16068
160692) Linux:
16070
16071A fix for SMP systems with link devices was contributed by
16072
16073Compaq's Dan Zink.
16074
16075(2.5) Return whether we handled the interrupt in our IRQ handler.
16076(Linux ISRs no longer return void, so we can propagate the handler
16077return value from the ACPI CA core back to the OS.)
16078
16079
16080
160813) Documentation:
16082
16083The ACPI CA Programmer Reference has been updated to reflect new
16084interfaces and changes to existing interfaces.
16085
16086----------------------------------------
1608728 March 2003.  Summary of changes for version 20030328.
16088
160891) ACPI CA Core Subsystem:
16090
16091The GPE Block Device support has been completed.  New interfaces
16092are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
16093interfaces (enable, disable, clear, getstatus) have been split
16094into separate interfaces for Fixed Events and General Purpose
16095Events (GPEs) in order to support GPE Block Devices properly.
16096
16097Fixed a problem where the error message "Failed to acquire
16098semaphore" would appear during operations on the embedded
16099controller (EC).
16100
16101Code and Data Size: Current core subsystem library sizes are shown
16102below.  These are the code and data sizes for the acpica.lib
16103produced by the Microsoft Visual C++ 6.0 compiler, and these
16104values do not include any ACPI driver or OSPM code.  The debug
16105version of the code includes the debug output trace mechanism and
16106has a much larger code and data size.  Note that these values will
16107vary depending on the efficiency of the compiler and the compiler
16108options used during generation.
16109
16110  Previous Release
16111    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
16112    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
16113  Current Release:
16114    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
16115    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
16116
16117
16118----------------------------------------
1611928 February 2003.  Summary of changes for version 20030228.
16120
16121
161221) ACPI CA Core Subsystem:
16123
16124The GPE handling and dispatch code has been completely overhauled
16125in preparation for support of GPE Block Devices (ID ACPI0006).
16126This affects internal data structures and code only; there should
16127be no differences visible externally.  One new file has been
16128added, evgpeblk.c
16129
16130The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
16131fields that are used to determine the GPE block lengths.  The
16132REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
16133structures are ignored.  This is per the ACPI specification but it
16134isn't very clear.  The full 256 Block 0/1 GPEs are now supported
16135(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
16136
16137In the SCI interrupt handler, removed the read of the PM1_CONTROL
16138register to look at the SCI_EN bit.  On some machines, this read
16139causes an SMI event and greatly slows down SCI events.  (This may
16140in fact be the cause of slow battery status response on some
16141systems.)
16142
16143Fixed a problem where a store of a NULL string to a package object
16144could cause the premature deletion of the object.  This was seen
16145during execution of the battery _BIF method on some systems,
16146resulting in no battery data being returned.
16147
16148Added AcpiWalkResources interface to simplify parsing of resource
16149lists.
16150
16151Code and Data Size: Current core subsystem library sizes are shown
16152below.  These are the code and data sizes for the acpica.lib
16153produced by the Microsoft Visual C++ 6.0 compiler, and these
16154values do not include any ACPI driver or OSPM code.  The debug
16155version of the code includes the debug output trace mechanism and
16156has a much larger code and data size.  Note that these values will
16157vary depending on the efficiency of the compiler and the compiler
16158options used during generation.
16159
16160  Previous Release
16161    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16162    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16163  Current Release:
16164    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
16165    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
16166
16167
161682) Linux
16169
16170S3 fixes (Ole Rohne)
16171
16172Update ACPI PHP driver with to use new acpi_walk_resource API
16173(Bjorn Helgaas)
16174
16175Add S4BIOS support (Pavel Machek)
16176
16177Map in entire table before performing checksum (John Stultz)
16178
16179Expand the mem= cmdline to allow the specification of reserved and
16180ACPI DATA blocks (Pavel Machek)
16181
16182Never use ACPI on VISWS
16183
16184Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
16185
16186Revert a change that allowed P_BLK lengths to be 4 or 5. This is
16187causing us to think that some systems support C2 when they really
16188don't.
16189
16190Do not count processor objects for non-present CPUs (Thanks to
16191Dominik Brodowski)
16192
16193
161943) iASL Compiler:
16195
16196Fixed a problem where ASL include files could not be found and
16197opened.
16198
16199Added support for the _PDC reserved name.
16200
16201
16202----------------------------------------
1620322 January 2003.  Summary of changes for version 20030122.
16204
16205
162061) ACPI CA Core Subsystem:
16207
16208Added a check for constructs of the form:  Store (Local0, Local0)
16209where Local0 is not initialized.  Apparently, some BIOS
16210programmers believe that this is a NOOP.  Since this store doesn't
16211do anything anyway, the new prototype behavior will ignore this
16212error.  This is a case where we can relax the strict checking in
16213the interpreter in the name of compatibility.
16214
16215
162162) Linux
16217
16218The AcpiSrc Source Conversion Utility has been released with the
16219Linux package for the first time.  This is the utility that is
16220used to convert the ACPI CA base source code to the Linux version.
16221
16222(Both) Handle P_BLK lengths shorter than 6 more gracefully
16223
16224(Both) Move more headers to include/acpi, and delete an unused
16225header.
16226
16227(Both) Move drivers/acpi/include directory to include/acpi
16228
16229(Both) Boot functions don't use cmdline, so don't pass it around
16230
16231(Both) Remove include of unused header (Adrian Bunk)
16232
16233(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
16234the
16235former now also includes the latter, acpiphp.h only needs the one,
16236now.
16237
16238(2.5) Make it possible to select method of bios restoring after S3
16239resume. [=> no more ugly ifdefs] (Pavel Machek)
16240
16241(2.5) Make proc write interfaces work (Pavel Machek)
16242
16243(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
16244
16245(2.5) Break out ACPI Perf code into its own module, under cpufreq
16246(Dominik Brodowski)
16247
16248(2.4) S4BIOS support (Ducrot Bruno)
16249
16250(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
16251Visinoni)
16252
16253
162543) iASL Compiler:
16255
16256Added support to disassemble SSDT and PSDTs.
16257
16258Implemented support to obtain SSDTs from the Windows registry if
16259available.
16260
16261
16262----------------------------------------
1626309 January 2003.  Summary of changes for version 20030109.
16264
162651) ACPI CA Core Subsystem:
16266
16267Changed the behavior of the internal Buffer-to-String conversion
16268function.  The current ACPI specification states that the contents
16269of the buffer are "converted to a string of two-character
16270hexadecimal numbers, each separated by a space".  Unfortunately,
16271this definition is not backwards compatible with existing ACPI 1.0
16272implementations (although the behavior was not defined in the ACPI
162731.0 specification).  The new behavior simply copies data from the
16274buffer to the string until a null character is found or the end of
16275the buffer is reached.  The new String object is always null
16276terminated.  This problem was seen during the generation of _BIF
16277battery data where incorrect strings were returned for battery
16278type, etc.  This will also require an errata to the ACPI
16279specification.
16280
16281Renamed all instances of NATIVE_UINT and NATIVE_INT to
16282ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
16283
16284Copyright in all module headers (both Linux and non-Linux) has be
16285updated to 2003.
16286
16287Code and Data Size: Current core subsystem library sizes are shown
16288below.  These are the code and data sizes for the acpica.lib
16289produced by the Microsoft Visual C++ 6.0 compiler, and these
16290values do not include any ACPI driver or OSPM code.  The debug
16291version of the code includes the debug output trace mechanism and
16292has a much larger code and data size.  Note that these values will
16293vary depending on the efficiency of the compiler and the compiler
16294options used during generation.
16295
16296  Previous Release
16297    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16298    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16299  Current Release:
16300    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16301    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16302
16303
163042) Linux
16305
16306Fixed an oops on module insertion/removal (Matthew Tippett)
16307
16308(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
16309
16310(2.5) Replace pr_debug (Randy Dunlap)
16311
16312(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
16313
16314(Both) Eliminate spawning of thread from timer callback, in favor
16315of schedule_work()
16316
16317(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
16318
16319(Both) Added define for Fixed Function HW region (Matthew Wilcox)
16320
16321(Both) Add missing statics to button.c (Pavel Machek)
16322
16323Several changes have been made to the source code translation
16324utility that generates the Linux Code in order to make the code
16325more "Linux-like":
16326
16327All typedefs on structs and unions have been removed in keeping
16328with the Linux coding style.
16329
16330Removed the non-Linux SourceSafe module revision number from each
16331module header.
16332
16333Completed major overhaul of symbols to be lowercase for linux.
16334Doubled the number of symbols that are lowercase.
16335
16336Fixed a problem where identifiers within procedure headers and
16337within quotes were not fully lower cased (they were left with a
16338starting capital.)
16339
16340Some C macros whose only purpose is to allow the generation of 16-
16341bit code are now completely removed in the Linux code, increasing
16342readability and maintainability.
16343
16344----------------------------------------
16345
1634612 December 2002.  Summary of changes for version 20021212.
16347
16348
163491) ACPI CA Core Subsystem:
16350
16351Fixed a problem where the creation of a zero-length AML Buffer
16352would cause a fault.
16353
16354Fixed a problem where a Buffer object that pointed to a static AML
16355buffer (in an ACPI table) could inadvertently be deleted, causing
16356memory corruption.
16357
16358Fixed a problem where a user buffer (passed in to the external
16359ACPI CA interfaces) could be overwritten if the buffer was too
16360small to complete the operation, causing memory corruption.
16361
16362Fixed a problem in the Buffer-to-String conversion code where a
16363string of length one was always returned, regardless of the size
16364of the input Buffer object.
16365
16366Removed the NATIVE_CHAR data type across the entire source due to
16367lack of need and lack of consistent use.
16368
16369Code and Data Size: Current core subsystem library sizes are shown
16370below.  These are the code and data sizes for the acpica.lib
16371produced by the Microsoft Visual C++ 6.0 compiler, and these
16372values do not include any ACPI driver or OSPM code.  The debug
16373version of the code includes the debug output trace mechanism and
16374has a much larger code and data size.  Note that these values will
16375vary depending on the efficiency of the compiler and the compiler
16376options used during generation.
16377
16378  Previous Release
16379    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16380    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16381  Current Release:
16382    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16383    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16384
16385
16386----------------------------------------
1638705 December 2002.  Summary of changes for version 20021205.
16388
163891) ACPI CA Core Subsystem:
16390
16391Fixed a problem where a store to a String or Buffer object could
16392cause corruption of the DSDT if the object type being stored was
16393the same as the target object type and the length of the object
16394being stored was equal to or smaller than the original (existing)
16395target object.  This was seen to cause corruption of battery _BIF
16396buffers if the _BIF method modified the buffer on the fly.
16397
16398Fixed a problem where an internal error was generated if a control
16399method invocation was used in an OperationRegion, Buffer, or
16400Package declaration.  This was caused by the deferred parsing of
16401the control method and thus the deferred creation of the internal
16402method object.  The solution to this problem was to create the
16403internal method object at the moment the method is encountered in
16404the first pass - so that subsequent references to the method will
16405able to obtain the required parameter count and thus properly
16406parse the method invocation.  This problem presented itself as an
16407AE_AML_INTERNAL during the pass 1 parse phase during table load.
16408
16409Fixed a problem where the internal String object copy routine did
16410not always allocate sufficient memory for the target String object
16411and caused memory corruption.  This problem was seen to cause
16412"Allocation already present in list!" errors as memory allocation
16413became corrupted.
16414
16415Implemented a new function for the evaluation of namespace objects
16416that allows the specification of the allowable return object
16417types.  This simplifies a lot of code that checks for a return
16418object of one or more specific objects returned from the
16419evaluation (such as _STA, etc.)  This may become and external
16420function if it would be useful to ACPI-related drivers.
16421
16422Completed another round of prefixing #defines with "ACPI_" for
16423clarity.
16424
16425Completed additional code restructuring to allow more modular
16426linking for iASL compiler and AcpiExec.  Several files were split
16427creating new files.  New files:  nsparse.c dsinit.c evgpe.c
16428
16429Implemented an abort mechanism to terminate an executing control
16430method via the AML debugger.  This feature is useful for debugging
16431control methods that depend (wait) for specific hardware
16432responses.
16433
16434Code and Data Size: Current core subsystem library sizes are shown
16435below.  These are the code and data sizes for the acpica.lib
16436produced by the Microsoft Visual C++ 6.0 compiler, and these
16437values do not include any ACPI driver or OSPM code.  The debug
16438version of the code includes the debug output trace mechanism and
16439has a much larger code and data size.  Note that these values will
16440vary depending on the efficiency of the compiler and the compiler
16441options used during generation.
16442
16443  Previous Release
16444    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16445    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16446  Current Release:
16447    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16448    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16449
16450
164512) iASL Compiler/Disassembler
16452
16453Fixed a compiler code generation problem for "Interrupt" Resource
16454Descriptors.  If specified in the ASL, the optional "Resource
16455Source Index" and "Resource Source" fields were not inserted into
16456the correct location within the AML resource descriptor, creating
16457an invalid descriptor.
16458
16459Fixed a disassembler problem for "Interrupt" resource descriptors.
16460The optional "Resource Source Index" and "Resource Source" fields
16461were ignored.
16462
16463
16464----------------------------------------
1646522 November 2002.  Summary of changes for version 20021122.
16466
16467
164681) ACPI CA Core Subsystem:
16469
16470Fixed a reported problem where an object stored to a Method Local
16471or Arg was not copied to a new object during the store - the
16472object pointer was simply copied to the Local/Arg.  This caused
16473all subsequent operations on the Local/Arg to also affect the
16474original source of the store operation.
16475
16476Fixed a problem where a store operation to a Method Local or Arg
16477was not completed properly if the Local/Arg contained a reference
16478(from RefOf) to a named field.  The general-purpose store-to-
16479namespace-node code is now used so that this case is handled
16480automatically.
16481
16482Fixed a problem where the internal object copy routine would cause
16483a protection fault if the object being copied was a Package and
16484contained either 1) a NULL package element or 2) a nested sub-
16485package.
16486
16487Fixed a problem with the GPE initialization that resulted from an
16488ambiguity in the ACPI specification.  One section of the
16489specification states that both the address and length of the GPE
16490block must be zero if the block is not supported.  Another section
16491implies that only the address need be zero if the block is not
16492supported.  The code has been changed so that both the address and
16493the length must be non-zero to indicate a valid GPE block (i.e.,
16494if either the address or the length is zero, the GPE block is
16495invalid.)
16496
16497Code and Data Size: Current core subsystem library sizes are shown
16498below.  These are the code and data sizes for the acpica.lib
16499produced by the Microsoft Visual C++ 6.0 compiler, and these
16500values do not include any ACPI driver or OSPM code.  The debug
16501version of the code includes the debug output trace mechanism and
16502has a much larger code and data size.  Note that these values will
16503vary depending on the efficiency of the compiler and the compiler
16504options used during generation.
16505
16506  Previous Release
16507    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16508    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16509  Current Release:
16510    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16511    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16512
16513
165142) Linux
16515
16516Cleaned up EC driver. Exported an external EC read/write
16517interface. By going through this, other drivers (most notably
16518sonypi) will be able to serialize access to the EC.
16519
16520
165213) iASL Compiler/Disassembler
16522
16523Implemented support to optionally generate include files for both
16524ASM and C (the -i switch).  This simplifies BIOS development by
16525automatically creating include files that contain external
16526declarations for the symbols that are created within the
16527
16528(optionally generated) ASM and C AML source files.
16529
16530
16531----------------------------------------
1653215 November 2002.  Summary of changes for version 20021115.
16533
165341) ACPI CA Core Subsystem:
16535
16536Fixed a memory leak problem where an error during resolution of
16537
16538method arguments during a method invocation from another method
16539failed to cleanup properly by deleting all successfully resolved
16540argument objects.
16541
16542Fixed a problem where the target of the Index() operator was not
16543correctly constructed if the source object was a package.  This
16544problem has not been detected because the use of a target operand
16545with Index() is very rare.
16546
16547Fixed a problem with the Index() operator where an attempt was
16548made to delete the operand objects twice.
16549
16550Fixed a problem where an attempt was made to delete an operand
16551twice during execution of the CondRefOf() operator if the target
16552did not exist.
16553
16554Implemented the first of perhaps several internal create object
16555functions that create and initialize a specific object type.  This
16556consolidates duplicated code wherever the object is created, thus
16557shrinking the size of the subsystem.
16558
16559Implemented improved debug/error messages for errors that occur
16560during nested method invocations.  All executing method pathnames
16561are displayed (with the error) as the call stack is unwound - thus
16562simplifying debug.
16563
16564Fixed a problem introduced in the 10/02 release that caused
16565premature deletion of a buffer object if a buffer was used as an
16566ASL operand where an integer operand is required (Thus causing an
16567implicit object conversion from Buffer to Integer.)  The change in
16568the 10/02 release was attempting to fix a memory leak (albeit
16569incorrectly.)
16570
16571Code and Data Size: Current core subsystem library sizes are shown
16572below.  These are the code and data sizes for the acpica.lib
16573produced by the Microsoft Visual C++ 6.0 compiler, and these
16574values do not include any ACPI driver or OSPM code.  The debug
16575version of the code includes the debug output trace mechanism and
16576has a much larger code and data size.  Note that these values will
16577vary depending on the efficiency of the compiler and the compiler
16578options used during generation.
16579
16580  Previous Release
16581    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16582    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16583  Current Release:
16584    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16585    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16586
16587
165882) Linux
16589
16590Changed the implementation of the ACPI semaphores to use down()
16591instead of down_interruptable().  It is important that the
16592execution of ACPI control methods not be interrupted by signals.
16593Methods must run to completion, or the system may be left in an
16594unknown/unstable state.
16595
16596Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
16597(Shawn Starr)
16598
16599
166003) iASL Compiler/Disassembler
16601
16602
16603Changed the default location of output files.  All output files
16604are now placed in the current directory by default instead of in
16605the directory of the source file.  This change may affect some
16606existing makefiles, but it brings the behavior of the compiler in
16607line with other similar tools.  The location of the output files
16608can be overridden with the -p command line switch.
16609
16610
16611----------------------------------------
1661211 November 2002.  Summary of changes for version 20021111.
16613
16614
166150) ACPI Specification 2.0B is released and is now available at:
16616http://www.acpi.info/index.html
16617
16618
166191) ACPI CA Core Subsystem:
16620
16621Implemented support for the ACPI 2.0 SMBus Operation Regions.
16622This includes the early detection and handoff of the request to
16623the SMBus region handler (avoiding all of the complex field
16624support code), and support for the bidirectional return packet
16625from an SMBus write operation.  This paves the way for the
16626development of SMBus drivers in each host operating system.
16627
16628Fixed a problem where the semaphore WAIT_FOREVER constant was
16629defined as 32 bits, but must be 16 bits according to the ACPI
16630specification.  This had the side effect of causing ASL
16631Mutex/Event timeouts even though the ASL code requested a wait
16632forever.  Changed all internal references to the ACPI timeout
16633parameter to 16 bits to prevent future problems.  Changed the name
16634of WAIT_FOREVER to ACPI_WAIT_FOREVER.
16635
16636Code and Data Size: Current core subsystem library sizes are shown
16637below.  These are the code and data sizes for the acpica.lib
16638produced by the Microsoft Visual C++ 6.0 compiler, and these
16639values do not include any ACPI driver or OSPM code.  The debug
16640version of the code includes the debug output trace mechanism and
16641has a much larger code and data size.  Note that these values will
16642vary depending on the efficiency of the compiler and the compiler
16643options used during generation.
16644
16645  Previous Release
16646    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16647    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16648  Current Release:
16649    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16650    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16651
16652
166532) Linux
16654
16655Module loading/unloading fixes (John Cagle)
16656
16657
166583) iASL Compiler/Disassembler
16659
16660Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
16661
16662Implemented support for the disassembly of all SMBus protocol
16663keywords (SMBQuick, SMBWord, etc.)
16664
16665----------------------------------------
1666601 November 2002.  Summary of changes for version 20021101.
16667
16668
166691) ACPI CA Core Subsystem:
16670
16671Fixed a problem where platforms that have a GPE1 block but no GPE0
16672block were not handled correctly.  This resulted in a "GPE
16673overlap" error message.  GPE0 is no longer required.
16674
16675Removed code added in the previous release that inserted nodes
16676into the namespace in alphabetical order.  This caused some side-
16677effects on various machines.  The root cause of the problem is
16678still under investigation since in theory, the internal ordering
16679of the namespace nodes should not matter.
16680
16681
16682Enhanced error reporting for the case where a named object is not
16683found during control method execution.  The full ACPI namepath
16684(name reference) of the object that was not found is displayed in
16685this case.
16686
16687Note: as a result of the overhaul of the namespace object types in
16688the previous release, the namespace nodes for the predefined
16689scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
16690instead of ACPI_TYPE_ANY.  This simplifies the namespace
16691management code but may affect code that walks the namespace tree
16692looking for specific object types.
16693
16694Code and Data Size: Current core subsystem library sizes are shown
16695below.  These are the code and data sizes for the acpica.lib
16696produced by the Microsoft Visual C++ 6.0 compiler, and these
16697values do not include any ACPI driver or OSPM code.  The debug
16698version of the code includes the debug output trace mechanism and
16699has a much larger code and data size.  Note that these values will
16700vary depending on the efficiency of the compiler and the compiler
16701options used during generation.
16702
16703  Previous Release
16704    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16705    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16706  Current Release:
16707    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16708    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16709
16710
167112) Linux
16712
16713Fixed a problem introduced in the previous release where the
16714Processor and Thermal objects were not recognized and installed in
16715/proc.  This was related to the scope type change described above.
16716
16717
167183) iASL Compiler/Disassembler
16719
16720Implemented the -g option to get all of the required ACPI tables
16721from the registry and save them to files (Windows version of the
16722compiler only.)  The required tables are the FADT, FACS, and DSDT.
16723
16724Added ACPI table checksum validation during table disassembly in
16725order to catch corrupted tables.
16726
16727
16728----------------------------------------
1672922 October 2002.  Summary of changes for version 20021022.
16730
167311) ACPI CA Core Subsystem:
16732
16733Implemented a restriction on the Scope operator that the target
16734must already exist in the namespace at the time the operator is
16735encountered (during table load or method execution).  In other
16736words, forward references are not allowed and Scope() cannot
16737create a new object. This changes the previous behavior where the
16738interpreter would create the name if not found.  This new behavior
16739correctly enables the search-to-root algorithm during namespace
16740lookup of the target name.  Because of this upsearch, this fixes
16741the known Compaq _SB_.OKEC problem and makes both the AML
16742interpreter and iASL compiler compatible with other ACPI
16743implementations.
16744
16745Completed a major overhaul of the internal ACPI object types for
16746the ACPI Namespace and the associated operand objects.  Many of
16747these types had become obsolete with the introduction of the two-
16748pass namespace load.  This cleanup simplifies the code and makes
16749the entire namespace load mechanism much clearer and easier to
16750understand.
16751
16752Improved debug output for tracking scope opening/closing to help
16753diagnose scoping issues.  The old scope name as well as the new
16754scope name are displayed.  Also improved error messages for
16755problems with ASL Mutex objects and error messages for GPE
16756problems.
16757
16758Cleaned up the namespace dump code, removed obsolete code.
16759
16760All string output (for all namespace/object dumps) now uses the
16761common ACPI string output procedure which handles escapes properly
16762and does not emit non-printable characters.
16763
16764Fixed some issues with constants in the 64-bit version of the
16765local C library (utclib.c)
16766
16767
167682) Linux
16769
16770EC Driver:  No longer attempts to acquire the Global Lock at
16771interrupt level.
16772
16773
167743) iASL Compiler/Disassembler
16775
16776Implemented ACPI 2.0B grammar change that disallows all Type 1 and
167772 opcodes outside of a control method.  This means that the
16778"executable" operators (versus the "namespace" operators) cannot
16779be used at the table level; they can only be used within a control
16780method.
16781
16782Implemented the restriction on the Scope() operator where the
16783target must already exist in the namespace at the time the
16784operator is encountered (during ASL compilation). In other words,
16785forward references are not allowed and Scope() cannot create a new
16786object.  This makes the iASL compiler compatible with other ACPI
16787implementations and makes the Scope() implementation adhere to the
16788ACPI specification.
16789
16790Fixed a problem where namepath optimization for the Alias operator
16791was optimizing the wrong path (of the two namepaths.)  This caused
16792a "Missing alias link" error message.
16793
16794Fixed a problem where an "unknown reserved name" warning could be
16795incorrectly generated for names like "_SB" when the trailing
16796underscore is not used in the original ASL.
16797
16798Fixed a problem where the reserved name check did not handle
16799NamePaths with multiple NameSegs correctly.  The first nameseg of
16800the NamePath was examined instead of the last NameSeg.
16801
16802
16803----------------------------------------
16804
1680502 October 2002.  Summary of changes for this release.
16806
16807
168081) ACPI CA Core Subsystem version 20021002:
16809
16810Fixed a problem where a store/copy of a string to an existing
16811string did not always set the string length properly in the String
16812object.
16813
16814Fixed a reported problem with the ToString operator where the
16815behavior was identical to the ToHexString operator instead of just
16816simply converting a raw buffer to a string data type.
16817
16818Fixed a problem where CopyObject and the other "explicit"
16819conversion operators were not updating the internal namespace node
16820type as part of the store operation.
16821
16822Fixed a memory leak during implicit source operand conversion
16823where the original object was not deleted if it was converted to a
16824new object of a different type.
16825
16826Enhanced error messages for all problems associated with namespace
16827lookups.  Common procedure generates and prints the lookup name as
16828well as the formatted status.
16829
16830Completed implementation of a new design for the Alias support
16831within the namespace.  The existing design did not handle the case
16832where a new object was assigned to one of the two names due to the
16833use of an explicit conversion operator, resulting in the two names
16834pointing to two different objects.  The new design simply points
16835the Alias name to the original name node - not to the object.
16836This results in a level of indirection that must be handled in the
16837name resolution mechanism.
16838
16839Code and Data Size: Current core subsystem library sizes are shown
16840below.  These are the code and data sizes for the acpica.lib
16841produced by the Microsoft Visual C++ 6.0 compiler, and these
16842values do not include any ACPI driver or OSPM code.  The debug
16843version of the code includes the debug output trace mechanism and
16844has a larger code and data size.  Note that these values will vary
16845depending on the efficiency of the compiler and the compiler
16846options used during generation.
16847
16848  Previous Release
16849    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16850    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16851  Current Release:
16852    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16853    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16854
16855
168562) Linux
16857
16858Initialize thermal driver's timer before it is used. (Knut
16859Neumann)
16860
16861Allow handling negative celsius values. (Kochi Takayoshi)
16862
16863Fix thermal management and make trip points. R/W (Pavel Machek)
16864
16865Fix /proc/acpi/sleep. (P. Christeas)
16866
16867IA64 fixes. (David Mosberger)
16868
16869Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
16870
16871Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
16872Brodowski)
16873
16874
168753) iASL Compiler/Disassembler
16876
16877Clarified some warning/error messages.
16878
16879
16880----------------------------------------
1688118 September 2002.  Summary of changes for this release.
16882
16883
168841) ACPI CA Core Subsystem version 20020918:
16885
16886Fixed a reported problem with reference chaining (via the Index()
16887and RefOf() operators) in the ObjectType() and SizeOf() operators.
16888The definition of these operators includes the dereferencing of
16889all chained references to return information on the base object.
16890
16891Fixed a problem with stores to indexed package elements - the
16892existing code would not complete the store if an "implicit
16893conversion" was not performed.  In other words, if the existing
16894object (package element) was to be replaced completely, the code
16895didn't handle this case.
16896
16897Relaxed typechecking on the ASL "Scope" operator to allow the
16898target name to refer to an object of type Integer, String, or
16899Buffer, in addition to the scoping object types (Device,
16900predefined Scopes, Processor, PowerResource, and ThermalZone.)
16901This allows existing AML code that has workarounds for a bug in
16902Windows to function properly.  A warning is issued, however.  This
16903affects both the AML interpreter and the iASL compiler. Below is
16904an example of this type of ASL code:
16905
16906      Name(DEB,0x00)
16907      Scope(DEB)
16908      {
16909
16910Fixed some reported problems with 64-bit integer support in the
16911local implementation of C library functions (clib.c)
16912
16913
169142) Linux
16915
16916Use ACPI fix map region instead of IOAPIC region, since it is
16917undefined in non-SMP.
16918
16919Ensure that the SCI has the proper polarity and trigger, even on
16920systems that do not have an interrupt override entry in the MADT.
16921
169222.5 big driver reorganization (Pat Mochel)
16923
16924Use early table mapping code from acpitable.c (Andi Kleen)
16925
16926New blacklist entries (Andi Kleen)
16927
16928Blacklist improvements. Split blacklist code out into a separate
16929file. Move checking the blacklist to very early. Previously, we
16930would use ACPI tables, and then halfway through init, check the
16931blacklist -- too late. Now, it's early enough to completely fall-
16932back to non-ACPI.
16933
16934
169353) iASL Compiler/Disassembler version 20020918:
16936
16937Fixed a problem where the typechecking code didn't know that an
16938alias could point to a method.  In other words, aliases were not
16939being dereferenced during typechecking.
16940
16941
16942----------------------------------------
1694329 August 2002.  Summary of changes for this release.
16944
169451) ACPI CA Core Subsystem Version 20020829:
16946
16947If the target of a Scope() operator already exists, it must be an
16948object type that actually opens a scope -- such as a Device,
16949Method, Scope, etc.  This is a fatal runtime error.  Similar error
16950check has been added to the iASL compiler also.
16951
16952Tightened up the namespace load to disallow multiple names in the
16953same scope.  This previously was allowed if both objects were of
16954the same type.  (i.e., a lookup was the same as entering a new
16955name).
16956
16957
169582) Linux
16959
16960Ensure that the ACPI interrupt has the proper trigger and
16961polarity.
16962
16963local_irq_disable is extraneous. (Matthew Wilcox)
16964
16965Make "acpi=off" actually do what it says, and not use the ACPI
16966interpreter *or* the tables.
16967
16968Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
16969Takayoshi)
16970
16971
169723) iASL Compiler/Disassembler  Version 20020829:
16973
16974Implemented namepath optimization for name declarations.  For
16975example, a declaration like "Method (\_SB_.ABCD)" would get
16976optimized to "Method (ABCD)" if the declaration is within the
16977\_SB_ scope.  This optimization is in addition to the named
16978reference path optimization first released in the previous
16979version. This would seem to complete all possible optimizations
16980for namepaths within the ASL/AML.
16981
16982If the target of a Scope() operator already exists, it must be an
16983object type that actually opens a scope -- such as a Device,
16984Method, Scope, etc.
16985
16986Implemented a check and warning for unreachable code in the same
16987block below a Return() statement.
16988
16989Fixed a problem where the listing file was not generated if the
16990compiler aborted if the maximum error count was exceeded (200).
16991
16992Fixed a problem where the typechecking of method return values was
16993broken.  This includes the check for a return value when the
16994method is invoked as a TermArg (a return value is expected.)
16995
16996Fixed a reported problem where EOF conditions during a quoted
16997string or comment caused a fault.
16998
16999
17000----------------------------------------
1700115 August 2002.  Summary of changes for this release.
17002
170031) ACPI CA Core Subsystem Version 20020815:
17004
17005Fixed a reported problem where a Store to a method argument that
17006contains a reference did not perform the indirect store correctly.
17007This problem was created during the conversion to the new
17008reference object model - the indirect store to a method argument
17009code was not updated to reflect the new model.
17010
17011Reworked the ACPI mode change code to better conform to ACPI 2.0,
17012handle corner cases, and improve code legibility (Kochi Takayoshi)
17013
17014Fixed a problem with the pathname parsing for the carat (^)
17015prefix.  The heavy use of the carat operator by the new namepath
17016optimization in the iASL compiler uncovered a problem with the AML
17017interpreter handling of this prefix.  In the case where one or
17018more carats precede a single nameseg, the nameseg was treated as
17019standalone and the search rule (to root) was inadvertently
17020applied.  This could cause both the iASL compiler and the
17021interpreter to find the wrong object or to miss the error that
17022should occur if the object does not exist at that exact pathname.
17023
17024Found and fixed the problem where the HP Pavilion DSDT would not
17025load.  This was a relatively minor tweak to the table loading code
17026(a problem caused by the unexpected encounter with a method
17027invocation not within a control method), but it does not solve the
17028overall issue of the execution of AML code at the table level.
17029This investigation is still ongoing.
17030
17031Code and Data Size: Current core subsystem library sizes are shown
17032below.  These are the code and data sizes for the acpica.lib
17033produced by the Microsoft Visual C++ 6.0 compiler, and these
17034values do not include any ACPI driver or OSPM code.  The debug
17035version of the code includes the debug output trace mechanism and
17036has a larger code and data size.  Note that these values will vary
17037depending on the efficiency of the compiler and the compiler
17038options used during generation.
17039
17040  Previous Release
17041    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
17042    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
17043  Current Release:
17044    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
17045    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
17046
17047
170482) Linux
17049
17050Remove redundant slab.h include (Brad Hards)
17051
17052Fix several bugs in thermal.c (Herbert Nachtnebel)
17053
17054Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
17055
17056Change acpi_system_suspend to use updated irq functions (Pavel
17057Machek)
17058
17059Export acpi_get_firmware_table (Matthew Wilcox)
17060
17061Use proper root proc entry for ACPI (Kochi Takayoshi)
17062
17063Fix early-boot table parsing (Bjorn Helgaas)
17064
17065
170663) iASL Compiler/Disassembler
17067
17068Reworked the compiler options to make them more consistent and to
17069use two-letter options where appropriate.  We were running out of
17070sensible letters.   This may break some makefiles, so check the
17071current options list by invoking the compiler with no parameters.
17072
17073Completed the design and implementation of the ASL namepath
17074optimization option for the compiler.  This option optimizes all
17075references to named objects to the shortest possible path.  The
17076first attempt tries to utilize a single nameseg (4 characters) and
17077the "search-to-root" algorithm used by the interpreter.  If that
17078cannot be used (because either the name is not in the search path
17079or there is a conflict with another object with the same name),
17080the pathname is optimized using the carat prefix (usually a
17081shorter string than specifying the entire path from the root.)
17082
17083Implemented support to obtain the DSDT from the Windows registry
17084(when the disassembly option is specified with no input file).
17085Added this code as the implementation for AcpiOsTableOverride in
17086the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
17087utility) to scan memory for the DSDT to the AcpiOsTableOverride
17088function in the DOS OSL to make the disassembler truly OS
17089independent.
17090
17091Implemented a new option to disassemble and compile in one step.
17092When used without an input filename, this option will grab the
17093DSDT from the local machine, disassemble it, and compile it in one
17094step.
17095
17096Added a warning message for invalid escapes (a backslash followed
17097by any character other than the allowable escapes).  This catches
17098the quoted string error "\_SB_" (which should be "\\_SB_" ).
17099
17100Also, there are numerous instances in the ACPI specification where
17101this error occurs.
17102
17103Added a compiler option to disable all optimizations.  This is
17104basically the "compatibility mode" because by using this option,
17105the AML code will come out exactly the same as other ASL
17106compilers.
17107
17108Added error messages for incorrectly ordered dependent resource
17109functions.  This includes: missing EndDependentFn macro at end of
17110dependent resource list, nested dependent function macros (both
17111start and end), and missing StartDependentFn macro.  These are
17112common errors that should be caught at compile time.
17113
17114Implemented _OSI support for the disassembler and compiler.  _OSI
17115must be included in the namespace for proper disassembly (because
17116the disassembler must know the number of arguments.)
17117
17118Added an "optimization" message type that is optional (off by
17119default).  This message is used for all optimizations - including
17120constant folding, integer optimization, and namepath optimization.
17121
17122----------------------------------------
1712325 July 2002.  Summary of changes for this release.
17124
17125
171261) ACPI CA Core Subsystem Version 20020725:
17127
17128The AML Disassembler has been enhanced to produce compilable ASL
17129code and has been integrated into the iASL compiler (see below) as
17130well as the single-step disassembly for the AML debugger and the
17131disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
17132resource templates and macros are fully supported.  The
17133disassembler has been tested on over 30 different AML files,
17134producing identical AML when the resulting disassembled ASL file
17135is recompiled with the same ASL compiler.
17136
17137Modified the Resource Manager to allow zero interrupts and zero
17138dma channels during the GetCurrentResources call.  This was
17139causing problems on some platforms.
17140
17141Added the AcpiOsRedirectOutput interface to the OSL to simplify
17142output redirection for the AcpiOsPrintf and AcpiOsVprintf
17143interfaces.
17144
17145Code and Data Size: Current core subsystem library sizes are shown
17146below.  These are the code and data sizes for the acpica.lib
17147produced by the Microsoft Visual C++ 6.0 compiler, and these
17148values do not include any ACPI driver or OSPM code.  The debug
17149version of the code includes the debug output trace mechanism and
17150has a larger code and data size.  Note that these values will vary
17151depending on the efficiency of the compiler and the compiler
17152options used during generation.
17153
17154  Previous Release
17155    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
17156    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
17157  Current Release:
17158    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
17159    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
17160
17161
171622) Linux
17163
17164Fixed a panic in the EC driver (Dominik Brodowski)
17165
17166Implemented checksum of the R/XSDT itself during Linux table scan
17167(Richard Schaal)
17168
17169
171703) iASL compiler
17171
17172The AML disassembler is integrated into the compiler.  The "-d"
17173option invokes the disassembler  to completely disassemble an
17174input AML file, producing as output a text ASL file with the
17175extension ".dsl" (to avoid name collisions with existing .asl
17176source files.)  A future enhancement will allow the disassembler
17177to obtain the BIOS DSDT from the registry under Windows.
17178
17179Fixed a problem with the VendorShort and VendorLong resource
17180descriptors where an invalid AML sequence was created.
17181
17182Implemented a fix for BufferData term in the ASL parser.  It was
17183inadvertently defined twice, allowing invalid syntax to pass and
17184causing reduction conflicts.
17185
17186Fixed a problem where the Ones opcode could get converted to a
17187value of zero if "Ones" was used where a byte, word or dword value
17188was expected.  The 64-bit value is now truncated to the correct
17189size with the correct value.
17190
17191
17192
17193----------------------------------------
1719402 July 2002.  Summary of changes for this release.
17195
17196
171971) ACPI CA Core Subsystem Version 20020702:
17198
17199The Table Manager code has been restructured to add several new
17200features.  Tables that are not required by the core subsystem
17201(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
17202validated in any way and are returned from AcpiGetFirmwareTable if
17203requested.  The AcpiOsTableOverride interface is now called for
17204each table that is loaded by the subsystem in order to allow the
17205host to override any table it chooses.  Previously, only the DSDT
17206could be overridden.  Added one new files, tbrsdt.c and
17207tbgetall.c.
17208
17209Fixed a problem with the conversion of internal package objects to
17210external objects (when a package is returned from a control
17211method.)  The return buffer length was set to zero instead of the
17212proper length of the package object.
17213
17214Fixed a reported problem with the use of the RefOf and DeRefOf
17215operators when passing reference arguments to control methods.  A
17216new type of Reference object is used internally for references
17217produced by the RefOf operator.
17218
17219Added additional error messages in the Resource Manager to explain
17220AE_BAD_DATA errors when they occur during resource parsing.
17221
17222Split the AcpiEnableSubsystem into two primitives to enable a
17223finer granularity initialization sequence.  These two calls should
17224be called in this order: AcpiEnableSubsystem (flags),
17225AcpiInitializeObjects (flags).  The flags parameter remains the
17226same.
17227
17228
172292) Linux
17230
17231Updated the ACPI utilities module to understand the new style of
17232fully resolved package objects that are now returned from the core
17233subsystem.  This eliminates errors of the form:
17234
17235    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
17236    acpi_utils-0430 [145] acpi_evaluate_reference:
17237        Invalid element in package (not a device reference)
17238
17239The method evaluation utility uses the new buffer allocation
17240scheme instead of calling AcpiEvaluate Object twice.
17241
17242Added support for ECDT. This allows the use of the Embedded
17243
17244Controller before the namespace has been fully initialized, which
17245is necessary for ACPI 2.0 support, and for some laptops to
17246initialize properly. (Laptops using ECDT are still rare, so only
17247limited testing was performed of the added functionality.)
17248
17249Fixed memory leaks in the EC driver.
17250
17251Eliminated a brittle code structure in acpi_bus_init().
17252
17253Eliminated the acpi_evaluate() helper function in utils.c. It is
17254no longer needed since acpi_evaluate_object can optionally
17255allocate memory for the return object.
17256
17257Implemented fix for keyboard hang when getting battery readings on
17258some systems (Stephen White)
17259
17260PCI IRQ routing update (Dominik Brodowski)
17261
17262Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
17263support
17264
17265----------------------------------------
1726611 June 2002.  Summary of changes for this release.
17267
17268
172691) ACPI CA Core Subsystem Version 20020611:
17270
17271Fixed a reported problem where constants such as Zero and One
17272appearing within _PRT packages were not handled correctly within
17273the resource manager code.  Originally reported against the ASL
17274compiler because the code generator now optimizes integers to
17275their minimal AML representation (i.e. AML constants if possible.)
17276The _PRT code now handles all AML constant opcodes correctly
17277(Zero, One, Ones, Revision).
17278
17279Fixed a problem with the Concatenate operator in the AML
17280interpreter where a buffer result object was incorrectly marked as
17281not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
17282
17283All package sub-objects are now fully resolved before they are
17284returned from the external ACPI interfaces.  This means that name
17285strings are resolved to object handles, and constant operators
17286(Zero, One, Ones, Revision) are resolved to Integers.
17287
17288Implemented immediate resolution of the AML Constant opcodes
17289(Zero, One, Ones, Revision) to Integer objects upon detection
17290within the AML stream. This has simplified and reduced the
17291generated code size of the subsystem by eliminating about 10
17292switch statements for these constants (which previously were
17293contained in Reference objects.)  The complicating issues are that
17294the Zero opcode is used as a "placeholder" for unspecified
17295optional target operands and stores to constants are defined to be
17296no-ops.
17297
17298Code and Data Size: Current core subsystem library sizes are shown
17299below. These are the code and data sizes for the acpica.lib
17300produced by the Microsoft Visual C++ 6.0 compiler, and these
17301values do not include any ACPI driver or OSPM code.  The debug
17302version of the code includes the debug output trace mechanism and
17303has a larger code and data size.  Note that these values will vary
17304depending on the efficiency of the compiler and the compiler
17305options used during generation.
17306
17307  Previous Release
17308    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17309    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17310  Current Release:
17311    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
17312    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
17313
17314
173152) Linux
17316
17317
17318Added preliminary support for obtaining _TRA data for PCI root
17319bridges (Bjorn Helgaas).
17320
17321
173223) iASL Compiler Version X2046:
17323
17324Fixed a problem where the "_DDN" reserved name was defined to be a
17325control method with one argument.  There are no arguments, and
17326_DDN does not have to be a control method.
17327
17328Fixed a problem with the Linux version of the compiler where the
17329source lines printed with error messages were the wrong lines.
17330This turned out to be the "LF versus CR/LF" difference between
17331Windows and Unix.  This appears to be the longstanding issue
17332concerning listing output and error messages.
17333
17334Fixed a problem with the Linux version of compiler where opcode
17335names within error messages were wrong.  This was caused by a
17336slight difference in the output of the Flex tool on Linux versus
17337Windows.
17338
17339Fixed a problem with the Linux compiler where the hex output files
17340contained some garbage data caused by an internal buffer overrun.
17341
17342
17343----------------------------------------
1734417 May 2002.  Summary of changes for this release.
17345
17346
173471) ACPI CA Core Subsystem Version 20020517:
17348
17349Implemented a workaround to an BIOS bug discovered on the HP
17350OmniBook where the FADT revision number and the table size are
17351inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
17352behavior is to fallback to using only the ACPI 1.0 fields of the
17353FADT if the table is too small to be a ACPI 2.0 table as claimed
17354by the revision number.  Although this is a BIOS bug, this is a
17355case where the workaround is simple enough and with no side
17356effects, so it seemed prudent to add it.  A warning message is
17357issued, however.
17358
17359Implemented minimum size checks for the fixed-length ACPI tables -
17360- the FADT and FACS, as well as consistency checks between the
17361revision number and the table size.
17362
17363Fixed a reported problem in the table override support where the
17364new table pointer was incorrectly treated as a physical address
17365instead of a logical address.
17366
17367Eliminated the use of the AE_AML_ERROR exception and replaced it
17368with more descriptive codes.
17369
17370Fixed a problem where an exception would occur if an ASL Field was
17371defined with no named Field Units underneath it (used by some
17372index fields).
17373
17374Code and Data Size: Current core subsystem library sizes are shown
17375below.  These are the code and data sizes for the acpica.lib
17376produced by the Microsoft Visual C++ 6.0 compiler, and these
17377values do not include any ACPI driver or OSPM code.  The debug
17378version of the code includes the debug output trace mechanism and
17379has a larger code and data size.  Note that these values will vary
17380depending on the efficiency of the compiler and the compiler
17381options used during generation.
17382
17383  Previous Release
17384    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17385    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17386  Current Release:
17387    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17388    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17389
17390
17391
173922) Linux
17393
17394Much work done on ACPI init (MADT and PCI IRQ routing support).
17395(Paul D. and Dominik Brodowski)
17396
17397Fix PCI IRQ-related panic on boot (Sam Revitch)
17398
17399Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
17400
17401Fix "MHz" typo (Dominik Brodowski)
17402
17403Fix RTC year 2000 issue (Dominik Brodowski)
17404
17405Preclude multiple button proc entries (Eric Brunet)
17406
17407Moved arch-specific code out of include/platform/aclinux.h
17408
174093) iASL Compiler Version X2044:
17410
17411Implemented error checking for the string used in the EISAID macro
17412(Usually used in the definition of the _HID object.)  The code now
17413strictly enforces the PnP format - exactly 7 characters, 3
17414uppercase letters and 4 hex digits.
17415
17416If a raw string is used in the definition of the _HID object
17417(instead of the EISAID macro), the string must contain all
17418alphanumeric characters (e.g., "*PNP0011" is not allowed because
17419of the asterisk.)
17420
17421Implemented checking for invalid use of ACPI reserved names for
17422most of the name creation operators (Name, Device, Event, Mutex,
17423OperationRegion, PowerResource, Processor, and ThermalZone.)
17424Previously, this check was only performed for control methods.
17425
17426Implemented an additional check on the Name operator to emit an
17427error if a reserved name that must be implemented in ASL as a
17428control method is used.  We know that a reserved name must be a
17429method if it is defined with input arguments.
17430
17431The warning emitted when a namespace object reference is not found
17432during the cross reference phase has been changed into an error.
17433The "External" directive should be used for names defined in other
17434modules.
17435
17436
174374) Tools and Utilities
17438
17439The 16-bit tools (adump16 and aexec16) have been regenerated and
17440tested.
17441
17442Fixed a problem with the output of both acpidump and adump16 where
17443the indentation of closing parentheses and brackets was not
17444
17445aligned properly with the parent block.
17446
17447
17448----------------------------------------
1744903 May 2002.  Summary of changes for this release.
17450
17451
174521) ACPI CA Core Subsystem Version 20020503:
17453
17454Added support a new OSL interface that allows the host operating
17455
17456system software to override the DSDT found in the firmware -
17457AcpiOsTableOverride.  With this interface, the OSL can examine the
17458version of the firmware DSDT and replace it with a different one
17459if desired.
17460
17461Added new external interfaces for accessing ACPI registers from
17462device drivers and other system software - AcpiGetRegister and
17463AcpiSetRegister.  This was simply an externalization of the
17464existing AcpiHwBitRegister interfaces.
17465
17466Fixed a regression introduced in the previous build where the
17467ASL/AML CreateField operator always returned an error,
17468"destination must be a NS Node".
17469
17470Extended the maximum time (before failure) to successfully enable
17471ACPI mode to 3 seconds.
17472
17473Code and Data Size: Current core subsystem library sizes are shown
17474below.  These are the code and data sizes for the acpica.lib
17475produced by the Microsoft Visual C++ 6.0 compiler, and these
17476values do not include any ACPI driver or OSPM code.  The debug
17477version of the code includes the debug output trace mechanism and
17478has a larger code and data size.  Note that these values will vary
17479depending on the efficiency of the compiler and the compiler
17480options used during generation.
17481
17482  Previous Release
17483    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17484    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17485  Current Release:
17486    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17487    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17488
17489
174902) Linux
17491
17492Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
17493free. While 3 out of 4 of our in-house systems work fine, the last
17494one still hangs when testing the LAPIC timer.
17495
17496Renamed many files in 2.5 kernel release to omit "acpi_" from the
17497name.
17498
17499Added warning on boot for Presario 711FR.
17500
17501Sleep improvements (Pavel Machek)
17502
17503ACPI can now be built without CONFIG_PCI enabled.
17504
17505IA64: Fixed memory map functions (JI Lee)
17506
17507
175083) iASL Compiler Version X2043:
17509
17510Added support to allow the compiler to be integrated into the MS
17511VC++ development environment for one-button compilation of single
17512files or entire projects -- with error-to-source-line mapping.
17513
17514Implemented support for compile-time constant folding for the
17515Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
17516specification.  This allows the ASL writer to use expressions
17517instead of Integer/Buffer/String constants in terms that must
17518evaluate to constants at compile time and will also simplify the
17519emitted AML in any such sub-expressions that can be folded
17520(evaluated at compile-time.)  This increases the size of the
17521compiler significantly because a portion of the ACPI CA AML
17522interpreter is included within the compiler in order to pre-
17523evaluate constant expressions.
17524
17525
17526Fixed a problem with the "Unicode" ASL macro that caused the
17527compiler to fault.  (This macro is used in conjunction with the
17528_STR reserved name.)
17529
17530Implemented an AML opcode optimization to use the Zero, One, and
17531Ones opcodes where possible to further reduce the size of integer
17532constants and thus reduce the overall size of the generated AML
17533code.
17534
17535Implemented error checking for new reserved terms for ACPI version
175362.0A.
17537
17538Implemented the -qr option to display the current list of ACPI
17539reserved names known to the compiler.
17540
17541Implemented the -qc option to display the current list of ASL
17542operators that are allowed within constant expressions and can
17543therefore be folded at compile time if the operands are constants.
17544
17545
175464) Documentation
17547
17548Updated the Programmer's Reference for new interfaces, data types,
17549and memory allocation model options.
17550
17551Updated the iASL Compiler User Reference to apply new format and
17552add information about new features and options.
17553
17554----------------------------------------
1755519 April 2002.  Summary of changes for this release.
17556
175571) ACPI CA Core Subsystem Version 20020419:
17558
17559The source code base for the Core Subsystem has been completely
17560cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
17561versions.  The Lint option files used are included in the
17562/acpi/generate/lint directory.
17563
17564Implemented enhanced status/error checking across the entire
17565Hardware manager subsystem.  Any hardware errors (reported from
17566the OSL) are now bubbled up and will abort a running control
17567method.
17568
17569
17570Fixed a problem where the per-ACPI-table integer width (32 or 64)
17571was stored only with control method nodes, causing a fault when
17572non-control method code was executed during table loading.  The
17573solution implemented uses a global variable to indicate table
17574width across the entire ACPI subsystem.  Therefore, ACPI CA does
17575not support mixed integer widths across different ACPI tables
17576(DSDT, SSDT).
17577
17578Fixed a problem where NULL extended fields (X fields) in an ACPI
175792.0 ACPI FADT caused the table load to fail.  Although the
17580existing ACPI specification is a bit fuzzy on this topic, the new
17581behavior is to fall back on a ACPI 1.0 field if the corresponding
17582ACPI 2.0 X field is zero (even though the table revision indicates
17583a full ACPI 2.0 table.)  The ACPI specification will be updated to
17584clarify this issue.
17585
17586Fixed a problem with the SystemMemory operation region handler
17587where memory was always accessed byte-wise even if the AML-
17588specified access width was larger than a byte.  This caused
17589problems on systems with memory-mapped I/O.  Memory is now
17590accessed with the width specified.  On systems that do not support
17591non-aligned transfers, a check is made to guarantee proper address
17592alignment before proceeding in order to avoid an AML-caused
17593alignment fault within the kernel.
17594
17595
17596Fixed a problem with the ExtendedIrq resource where only one byte
17597of the 4-byte Irq field was extracted.
17598
17599Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
17600function was out of date and required a rewrite.
17601
17602Code and Data Size: Current core subsystem library sizes are shown
17603below.  These are the code and data sizes for the acpica.lib
17604produced by the Microsoft Visual C++ 6.0 compiler, and these
17605values do not include any ACPI driver or OSPM code.  The debug
17606version of the code includes the debug output trace mechanism and
17607has a larger code and data size.  Note that these values will vary
17608depending on the efficiency of the compiler and the compiler
17609options used during generation.
17610
17611  Previous Release
17612    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17613    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17614  Current Release:
17615    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17616    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17617
17618
176192) Linux
17620
17621PCI IRQ routing fixes (Dominik Brodowski)
17622
17623
176243) iASL Compiler Version X2042:
17625
17626Implemented an additional compile-time error check for a field
17627unit whose size + minimum access width would cause a run-time
17628access beyond the end-of-region.  Previously, only the field size
17629itself was checked.
17630
17631The Core subsystem and iASL compiler now share a common parse
17632object in preparation for compile-time evaluation of the type
176333/4/5 ASL operators.
17634
17635
17636----------------------------------------
17637Summary of changes for this release: 03_29_02
17638
176391) ACPI CA Core Subsystem Version 20020329:
17640
17641Implemented support for late evaluation of TermArg operands to
17642Buffer and Package objects.  This allows complex expressions to be
17643used in the declarations of these object types.
17644
17645Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
176461.0, if the field was larger than 32 bits, it was returned as a
17647buffer - otherwise it was returned as an integer.  In ACPI 2.0,
17648the field is returned as a buffer only if the field is larger than
1764964 bits.  The TableRevision is now considered when making this
17650conversion to avoid incompatibility with existing ASL code.
17651
17652Implemented logical addressing for AcpiOsGetRootPointer.  This
17653allows an RSDP with either a logical or physical address.  With
17654this support, the host OS can now override all ACPI tables with
17655one logical RSDP.  Includes implementation of  "typed" pointer
17656support to allow a common data type for both physical and logical
17657pointers internally.  This required a change to the
17658AcpiOsGetRootPointer interface.
17659
17660Implemented the use of ACPI 2.0 Generic Address Structures for all
17661GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
17662mapped I/O for these ACPI features.
17663
17664Initialization now ignores not only non-required tables (All
17665tables other than the FADT, FACS, DSDT, and SSDTs), but also does
17666not validate the table headers of unrecognized tables.
17667
17668Fixed a problem where a notify handler could only be
17669installed/removed on an object of type Device.  All "notify"
17670
17671objects are now supported -- Devices, Processor, Power, and
17672Thermal.
17673
17674Removed most verbosity from the ACPI_DB_INFO debug level.  Only
17675critical information is returned when this debug level is enabled.
17676
17677Code and Data Size: Current core subsystem library sizes are shown
17678below.  These are the code and data sizes for the acpica.lib
17679produced by the Microsoft Visual C++ 6.0 compiler, and these
17680values do not include any ACPI driver or OSPM code.  The debug
17681version of the code includes the debug output trace mechanism and
17682has a larger code and data size.  Note that these values will vary
17683depending on the efficiency of the compiler and the compiler
17684options used during generation.
17685
17686  Previous Release
17687    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17688    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17689  Current Release:
17690    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17691    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17692
17693
176942) Linux:
17695
17696The processor driver (acpi_processor.c) now fully supports ACPI
176972.0-based processor performance control (e.g. Intel(R)
17698SpeedStep(TM) technology) Note that older laptops that only have
17699the Intel "applet" interface are not supported through this.  The
17700'limit' and 'performance' interface (/proc) are fully functional.
17701[Note that basic policy for controlling performance state
17702transitions will be included in the next version of ospmd.]  The
17703idle handler was modified to more aggressively use C2, and PIIX4
17704errata handling underwent a complete overhaul (big thanks to
17705Dominik Brodowski).
17706
17707Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
17708based devices in the ACPI namespace are now dynamically bound
17709(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
17710This allows, among other things, ACPI to resolve bus numbers for
17711subordinate PCI bridges.
17712
17713Enhanced PCI IRQ routing to get the proper bus number for _PRT
17714entries defined underneath PCI bridges.
17715
17716Added IBM 600E to bad bios list due to invalid _ADR value for
17717PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
17718
17719In the process of adding full MADT support (e.g. IOAPIC) for IA32
17720(acpi.c, mpparse.c) -- stay tuned.
17721
17722Added back visual differentiation between fixed-feature and
17723control-method buttons in dmesg.  Buttons are also subtyped (e.g.
17724button/power/PWRF) to simplify button identification.
17725
17726We no longer use -Wno-unused when compiling debug. Please ignore
17727any "_THIS_MODULE defined but not used" messages.
17728
17729Can now shut down the system using "magic sysrq" key.
17730
17731
177323) iASL Compiler version 2041:
17733
17734Fixed a problem where conversion errors for hex/octal/decimal
17735constants were not reported.
17736
17737Implemented a fix for the General Register template Address field.
17738This field was 8 bits when it should be 64.
17739
17740Fixed a problem where errors/warnings were no longer being emitted
17741within the listing output file.
17742
17743Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
17744exactly 4 characters, alphanumeric only.
17745
17746
17747
17748
17749----------------------------------------
17750Summary of changes for this release: 03_08_02
17751
17752
177531) ACPI CA Core Subsystem Version 20020308:
17754
17755Fixed a problem with AML Fields where the use of the "AccessAny"
17756keyword could cause an interpreter error due to attempting to read
17757or write beyond the end of the parent Operation Region.
17758
17759Fixed a problem in the SystemMemory Operation Region handler where
17760an attempt was made to map memory beyond the end of the region.
17761This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
17762errors on some Linux systems.
17763
17764Fixed a problem where the interpreter/namespace "search to root"
17765algorithm was not functioning for some object types.  Relaxed the
17766internal restriction on the search to allow upsearches for all
17767external object types as well as most internal types.
17768
17769
177702) Linux:
17771
17772We now use safe_halt() macro versus individual calls to sti | hlt.
17773
17774Writing to the processor limit interface should now work. "echo 1"
17775will increase the limit, 2 will decrease, and 0 will reset to the
17776
17777default.
17778
17779
177803) ASL compiler:
17781
17782Fixed segfault on Linux version.
17783
17784
17785----------------------------------------
17786Summary of changes for this release: 02_25_02
17787
177881) ACPI CA Core Subsystem:
17789
17790
17791Fixed a problem where the GPE bit masks were not initialized
17792properly, causing erratic GPE behavior.
17793
17794Implemented limited support for multiple calling conventions.  The
17795code can be generated with either the VPL (variable parameter
17796list, or "C") convention, or the FPL (fixed parameter list, or
17797"Pascal") convention.  The core subsystem is about 3.4% smaller
17798when generated with FPL.
17799
17800
178012) Linux
17802
17803Re-add some /proc/acpi/event functionality that was lost during
17804the rewrite
17805
17806Resolved issue with /proc events for fixed-feature buttons showing
17807up as the system device.
17808
17809Fixed checks on C2/C3 latencies to be inclusive of maximum values.
17810
17811Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
17812
17813Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
17814
17815Fixed limit interface & usage to fix bugs with passive cooling
17816hysterisis.
17817
17818Restructured PRT support.
17819
17820
17821----------------------------------------
17822Summary of changes for this label: 02_14_02
17823
17824
178251) ACPI CA Core Subsystem:
17826
17827Implemented support in AcpiLoadTable to allow loading of FACS and
17828FADT tables.
17829
17830Support for the now-obsolete interim 0.71 64-bit ACPI tables has
17831been removed.  All 64-bit platforms should be migrated to the ACPI
178322.0 tables.  The actbl71.h header has been removed from the source
17833tree.
17834
17835All C macros defined within the subsystem have been prefixed with
17836"ACPI_" to avoid collision with other system include files.
17837
17838Removed the return value for the two AcpiOsPrint interfaces, since
17839it is never used and causes lint warnings for ignoring the return
17840value.
17841
17842Added error checking to all internal mutex acquire and release
17843calls.  Although a failure from one of these interfaces is
17844probably a fatal system error, these checks will cause the
17845immediate abort of the currently executing method or interface.
17846
17847Fixed a problem where the AcpiSetCurrentResources interface could
17848fault.  This was a side effect of the deployment of the new memory
17849allocation model.
17850
17851Fixed a couple of problems with the Global Lock support introduced
17852in the last major build.  The "common" (1.0/2.0) internal FACS was
17853being overwritten with the FACS signature and clobbering the
17854Global Lock pointer.  Also, the actual firmware FACS was being
17855unmapped after construction of the "common" FACS, preventing
17856access to the actual Global Lock field within it.  The "common"
17857internal FACS is no longer installed as an actual ACPI table; it
17858is used simply as a global.
17859
17860Code and Data Size: Current core subsystem library sizes are shown
17861below.  These are the code and data sizes for the acpica.lib
17862produced by the Microsoft Visual C++ 6.0 compiler, and these
17863values do not include any ACPI driver or OSPM code.  The debug
17864version of the code includes the debug output trace mechanism and
17865has a larger code and data size.  Note that these values will vary
17866depending on the efficiency of the compiler and the compiler
17867options used during generation.
17868
17869  Previous Release (02_07_01)
17870    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17871    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17872  Current Release:
17873    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17874    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17875
17876
178772) Linux
17878
17879Updated Linux-specific code for core macro and OSL interface
17880changes described above.
17881
17882Improved /proc/acpi/event. It now can be opened only once and has
17883proper poll functionality.
17884
17885Fixed and restructured power management (acpi_bus).
17886
17887Only create /proc "view by type" when devices of that class exist.
17888
17889Fixed "charging/discharging" bug (and others) in acpi_battery.
17890
17891Improved thermal zone code.
17892
17893
178943) ASL Compiler, version X2039:
17895
17896
17897Implemented the new compiler restriction on ASL String hex/octal
17898escapes to non-null, ASCII values.  An error results if an invalid
17899value is used.  (This will require an ACPI 2.0 specification
17900change.)
17901
17902AML object labels that are output to the optional C and ASM source
17903are now prefixed with both the ACPI table signature and table ID
17904to help guarantee uniqueness within a large BIOS project.
17905
17906
17907----------------------------------------
17908Summary of changes for this label: 02_01_02
17909
179101) ACPI CA Core Subsystem:
17911
17912ACPI 2.0 support is complete in the entire Core Subsystem and the
17913ASL compiler. All new ACPI 2.0 operators are implemented and all
17914other changes for ACPI 2.0 support are complete.  With
17915simultaneous code and data optimizations throughout the subsystem,
17916ACPI 2.0 support has been implemented with almost no additional
17917cost in terms of code and data size.
17918
17919Implemented a new mechanism for allocation of return buffers.  If
17920the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
17921be allocated on behalf of the caller.  Consolidated all return
17922buffer validation and allocation to a common procedure.  Return
17923buffers will be allocated via the primary OSL allocation interface
17924since it appears that a separate pool is not needed by most users.
17925If a separate pool is required for these buffers, the caller can
17926still use the original mechanism and pre-allocate the buffer(s).
17927
17928Implemented support for string operands within the DerefOf
17929operator.
17930
17931Restructured the Hardware and Event managers to be table driven,
17932simplifying the source code and reducing the amount of generated
17933code.
17934
17935Split the common read/write low-level ACPI register bitfield
17936procedure into a separate read and write, simplifying the code
17937considerably.
17938
17939Obsoleted the AcpiOsCallocate OSL interface.  This interface was
17940used only a handful of times and didn't have enough critical mass
17941for a separate interface.  Replaced with a common calloc procedure
17942in the core.
17943
17944Fixed a reported problem with the GPE number mapping mechanism
17945that allows GPE1 numbers to be non-contiguous with GPE0.
17946Reorganized the GPE information and shrunk a large array that was
17947originally large enough to hold info for all possible GPEs (256)
17948to simply large enough to hold all GPEs up to the largest GPE
17949number on the machine.
17950
17951Fixed a reported problem with resource structure alignment on 64-
17952bit platforms.
17953
17954Changed the AcpiEnableEvent and AcpiDisableEvent external
17955interfaces to not require any flags for the common case of
17956enabling/disabling a GPE.
17957
17958Implemented support to allow a "Notify" on a Processor object.
17959
17960Most TBDs in comments within the source code have been resolved
17961and eliminated.
17962
17963
17964Fixed a problem in the interpreter where a standalone parent
17965prefix (^) was not handled correctly in the interpreter and
17966debugger.
17967
17968Removed obsolete and unnecessary GPE save/restore code.
17969
17970Implemented Field support in the ASL Load operator.  This allows a
17971table to be loaded from a named field, in addition to loading a
17972table directly from an Operation Region.
17973
17974Implemented timeout and handle support in the external Global Lock
17975interfaces.
17976
17977Fixed a problem in the AcpiDump utility where pathnames were no
17978longer being generated correctly during the dump of named objects.
17979
17980Modified the AML debugger to give a full display of if/while
17981predicates instead of just one AML opcode at a time.  (The
17982predicate can have several nested ASL statements.)  The old method
17983was confusing during single stepping.
17984
17985Code and Data Size: Current core subsystem library sizes are shown
17986below. These are the code and data sizes for the acpica.lib
17987produced by the Microsoft Visual C++ 6.0 compiler, and these
17988values do not include any ACPI driver or OSPM code.  The debug
17989version of the code includes the debug output trace mechanism and
17990has a larger code and data size.  Note that these values will vary
17991depending on the efficiency of the compiler and the compiler
17992options used during generation.
17993
17994  Previous Release (12_18_01)
17995     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17996     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17997   Current Release:
17998     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17999     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
18000
180012) Linux
18002
18003 Implemented fix for PIIX reverse throttling errata (Processor
18004driver)
18005
18006Added new Limit interface (Processor and Thermal drivers)
18007
18008New thermal policy (Thermal driver)
18009
18010Many updates to /proc
18011
18012Battery "low" event support (Battery driver)
18013
18014Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
18015
18016IA32 - IA64 initialization unification, no longer experimental
18017
18018Menuconfig options redesigned
18019
180203) ASL Compiler, version X2037:
18021
18022Implemented several new output features to simplify integration of
18023AML code into  firmware: 1) Output the AML in C source code with
18024labels for each named ASL object.  The    original ASL source code
18025is interleaved as C comments. 2) Output the AML in ASM source code
18026with labels and interleaved ASL    source. 3) Output the AML in
18027raw hex table form, in either C or ASM.
18028
18029Implemented support for optional string parameters to the
18030LoadTable operator.
18031
18032Completed support for embedded escape sequences within string
18033literals.  The compiler now supports all single character escapes
18034as well as the Octal and Hex escapes.  Note: the insertion of a
18035null byte into a string literal (via the hex/octal escape) causes
18036the string to be immediately terminated.  A warning is issued.
18037
18038Fixed a problem where incorrect AML was generated for the case
18039where an ASL namepath consists of a single parent prefix (
18040
18041) with no trailing name segments.
18042
18043The compiler has been successfully generated with a 64-bit C
18044compiler.
18045
18046
18047
18048
18049----------------------------------------
18050Summary of changes for this label: 12_18_01
18051
180521) Linux
18053
18054Enhanced blacklist with reason and severity fields. Any table's
18055signature may now be used to identify a blacklisted system.
18056
18057Call _PIC control method to inform the firmware which interrupt
18058model the OS is using. Turn on any disabled link devices.
18059
18060Cleaned up busmgr /proc error handling (Andreas Dilger)
18061
18062 2) ACPI CA Core Subsystem:
18063
18064Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
18065while loop)
18066
18067Completed implementation of the ACPI 2.0 "Continue",
18068"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
18069operators.  All new ACPI 2.0 operators are now implemented in both
18070the ASL compiler and the AML interpreter.  The only remaining ACPI
180712.0 task is support for the String data type in the DerefOf
18072operator.  Fixed a problem with AcquireMutex where the status code
18073was lost if the caller had to actually wait for the mutex.
18074
18075Increased the maximum ASL Field size from 64K bits to 4G bits.
18076
18077Completed implementation of the external Global Lock interfaces --
18078AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
18079Handler parameters were added.
18080
18081Completed another pass at removing warnings and issues when
18082compiling with 64-bit compilers.  The code now compiles cleanly
18083with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
18084add and subtract (diff) macros have changed considerably.
18085
18086
18087Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1808864-bit platforms, 32-bits on all others.  This type is used
18089wherever memory allocation and/or the C sizeof() operator is used,
18090and affects the OSL memory allocation interfaces AcpiOsAllocate
18091and AcpiOsCallocate.
18092
18093Implemented sticky user breakpoints in the AML debugger.
18094
18095Code and Data Size: Current core subsystem library sizes are shown
18096below. These are the code and data sizes for the acpica.lib
18097produced by the Microsoft Visual C++ 6.0 compiler, and these
18098values do not include any ACPI driver or OSPM code.  The debug
18099version of the code includes the debug output trace mechanism and
18100has a larger code and data size. Note that these values will vary
18101depending on the efficiency of the compiler and the compiler
18102options used during generation.
18103
18104  Previous Release (12_05_01)
18105     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
18106     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
18107   Current Release:
18108     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
18109     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
18110
18111 3) ASL Compiler, version X2034:
18112
18113Now checks for (and generates an error if detected) the use of a
18114Break or Continue statement without an enclosing While statement.
18115
18116
18117Successfully generated the compiler with the Intel 64-bit C
18118compiler.
18119
18120 ----------------------------------------
18121Summary of changes for this label: 12_05_01
18122
18123 1) ACPI CA Core Subsystem:
18124
18125The ACPI 2.0 CopyObject operator is fully implemented.  This
18126operator creates a new copy of an object (and is also used to
18127bypass the "implicit conversion" mechanism of the Store operator.)
18128
18129The ACPI 2.0 semantics for the SizeOf operator are fully
18130implemented.  The change is that performing a SizeOf on a
18131reference object causes an automatic dereference of the object to
18132the actual value before the size is evaluated. This behavior was
18133undefined in ACPI 1.0.
18134
18135The ACPI 2.0 semantics for the Extended IRQ resource descriptor
18136have been implemented.  The interrupt polarity and mode are now
18137independently set.
18138
18139Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
18140appearing in Package objects were not properly converted to
18141integers when the internal Package was converted to an external
18142object (via the AcpiEvaluateObject interface.)
18143
18144Fixed a problem with the namespace object deletion mechanism for
18145objects created by control methods.  There were two parts to this
18146problem: 1) Objects created during the initialization phase method
18147parse were not being deleted, and 2) The object owner ID mechanism
18148to track objects was broken.
18149
18150Fixed a problem where the use of the ASL Scope operator within a
18151control method would result in an invalid opcode exception.
18152
18153Fixed a problem introduced in the previous label where the buffer
18154length required for the _PRT structure was not being returned
18155correctly.
18156
18157Code and Data Size: Current core subsystem library sizes are shown
18158below. These are the code and data sizes for the acpica.lib
18159produced by the Microsoft Visual C++ 6.0 compiler, and these
18160values do not include any ACPI driver or OSPM code.  The debug
18161version of the code includes the debug output trace mechanism and
18162has a larger code and data size.  Note that these values will vary
18163depending on the efficiency of the compiler and the compiler
18164options used during generation.
18165
18166  Previous Release (11_20_01)
18167     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
18168     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
18169
18170  Current Release:
18171     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
18172     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
18173
18174 2) Linux:
18175
18176Updated all files to apply cleanly against 2.4.16.
18177
18178Added basic PCI Interrupt Routing Table (PRT) support for IA32
18179(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
18180version supports both static and dynamic PRT entries, but dynamic
18181entries are treated as if they were static (not yet
18182reconfigurable).  Architecture- specific code to use this data is
18183absent on IA32 but should be available shortly.
18184
18185Changed the initialization sequence to start the ACPI interpreter
18186(acpi_init) prior to initialization of the PCI driver (pci_init)
18187in init/main.c.  This ordering is required to support PRT and
18188facilitate other (future) enhancement.  A side effect is that the
18189ACPI bus driver and certain device drivers can no longer be loaded
18190as modules.
18191
18192Modified the 'make menuconfig' options to allow PCI Interrupt
18193Routing support to be included without the ACPI Bus and other
18194device drivers.
18195
18196 3) ASL Compiler, version X2033:
18197
18198Fixed some issues with the use of the new CopyObject and
18199DataTableRegion operators.  Both are fully functional.
18200
18201 ----------------------------------------
18202Summary of changes for this label: 11_20_01
18203
18204 20 November 2001.  Summary of changes for this release.
18205
18206 1) ACPI CA Core Subsystem:
18207
18208Updated Index support to match ACPI 2.0 semantics.  Storing a
18209Integer, String, or Buffer to an Index of a Buffer will store only
18210the least-significant byte of the source to the Indexed buffer
18211byte.  Multiple writes are not performed.
18212
18213Fixed a problem where the access type used in an AccessAs ASL
18214operator was not recorded correctly into the field object.
18215
18216Fixed a problem where ASL Event objects were created in a
18217signalled state. Events are now created in an unsignalled state.
18218
18219The internal object cache is now purged after table loading and
18220initialization to reduce the use of dynamic kernel memory -- on
18221the assumption that object use is greatest during the parse phase
18222of the entire table (versus the run-time use of individual control
18223methods.)
18224
18225ACPI 2.0 variable-length packages are now fully operational.
18226
18227Code and Data Size: Code and Data optimizations have permitted new
18228feature development with an actual reduction in the library size.
18229Current core subsystem library sizes are shown below.  These are
18230the code and data sizes for the acpica.lib produced by the
18231Microsoft Visual C++ 6.0 compiler, and these values do not include
18232any ACPI driver or OSPM code.  The debug version of the code
18233includes the debug output trace mechanism and has a larger code
18234and data size.  Note that these values will vary depending on the
18235efficiency of the compiler and the compiler options used during
18236generation.
18237
18238  Previous Release (11_09_01):
18239     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18240     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18241
18242  Current Release:
18243     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
18244     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
18245
18246 2) Linux:
18247
18248Enhanced the ACPI boot-time initialization code to allow the use
18249of Local APIC tables for processor enumeration on IA-32, and to
18250pave the way for a fully MPS-free boot (on SMP systems) in the
18251near future.  This functionality replaces
18252arch/i386/kernel/acpitables.c, which was introduced in an earlier
182532.4.15-preX release.  To enable this feature you must add
18254"acpi_boot=on" to the kernel command line -- see the help entry
18255for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
18256the works...
18257
18258Restructured the configuration options to allow boot-time table
18259parsing support without inclusion of the ACPI Interpreter (and
18260other) code.
18261
18262NOTE: This release does not include fixes for the reported events,
18263power-down, and thermal passive cooling issues (coming soon).
18264
18265 3) ASL Compiler:
18266
18267Added additional typechecking for Fields within restricted access
18268Operation Regions.  All fields within EC and CMOS regions must be
18269declared with ByteAcc. All fields within SMBus regions must be
18270declared with the BufferAcc access type.
18271
18272Fixed a problem where the listing file output of control methods
18273no longer interleaved the actual AML code with the ASL source
18274code.
18275
18276
18277
18278
18279----------------------------------------
18280Summary of changes for this label: 11_09_01
18281
182821) ACPI CA Core Subsystem:
18283
18284Implemented ACPI 2.0-defined support for writes to fields with a
18285Buffer, String, or Integer source operand that is smaller than the
18286target field. In these cases, the source operand is zero-extended
18287to fill the target field.
18288
18289Fixed a problem where a Field starting bit offset (within the
18290parent operation region) was calculated incorrectly if the
18291
18292alignment of the field differed from the access width.  This
18293affected CreateWordField, CreateDwordField, CreateQwordField, and
18294possibly other fields that use the "AccessAny" keyword.
18295
18296Fixed a problem introduced in the 11_02_01 release where indirect
18297stores through method arguments did not operate correctly.
18298
182992) Linux:
18300
18301Implemented boot-time ACPI table parsing support
18302(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
18303facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
18304legacy BIOS interfaces (e.g. MPS) for the configuration of system
18305processors, memory, and interrupts during setup_arch().  Note that
18306this patch does not include the required architecture-specific
18307changes required to apply this information -- subsequent patches
18308will be posted for both IA32 and IA64 to achieve this.
18309
18310Added low-level sleep support for IA32 platforms, courtesy of Pat
18311Mochel. This allows IA32 systems to transition to/from various
18312sleeping states (e.g. S1, S3), although the lack of a centralized
18313driver model and power-manageable drivers will prevent its
18314(successful) use on most systems.
18315
18316Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
18317submenu, unified IA32 and IA64 options, added new "Boot using ACPI
18318tables" option, etc.
18319
18320Increased the default timeout for the EC driver from 1ms to 10ms
18321(1000 cycles of 10us) to try to address AE_TIME errors during EC
18322transactions.
18323
18324 ----------------------------------------
18325Summary of changes for this label: 11_02_01
18326
183271) ACPI CA Core Subsystem:
18328
18329ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
18330(QWordAcc keyword). All ACPI 2.0 64-bit support is now
18331implemented.
18332
18333OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
18334changes to support ACPI 2.0 Qword field access.  Read/Write
18335PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
18336accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
18337the value parameter for the address space handler interface is now
18338an ACPI_INTEGER.  OSL implementations of these interfaces must now
18339handle the case where the Width parameter is 64.
18340
18341Index Fields: Fixed a problem where unaligned bit assembly and
18342disassembly for IndexFields was not supported correctly.
18343
18344Index and Bank Fields:  Nested Index and Bank Fields are now
18345supported. During field access, a check is performed to ensure
18346that the value written to an Index or Bank register is not out of
18347the range of the register.  The Index (or Bank) register is
18348written before each access to the field data. Future support will
18349include allowing individual IndexFields to be wider than the
18350DataRegister width.
18351
18352Fields: Fixed a problem where the AML interpreter was incorrectly
18353attempting to write beyond the end of a Field/OpRegion.  This was
18354a boundary case that occurred when a DWORD field was written to a
18355BYTE access OpRegion, forcing multiple writes and causing the
18356interpreter to write one datum too many.
18357
18358Fields: Fixed a problem with Field/OpRegion access where the
18359starting bit address of a field was incorrectly calculated if the
18360current access type was wider than a byte (WordAcc, DwordAcc, or
18361QwordAcc).
18362
18363Fields: Fixed a problem where forward references to individual
18364FieldUnits (individual Field names within a Field definition) were
18365not resolved during the AML table load.
18366
18367Fields: Fixed a problem where forward references from a Field
18368definition to the parent Operation Region definition were not
18369resolved during the AML table load.
18370
18371Fields: Duplicate FieldUnit names within a scope are now detected
18372during AML table load.
18373
18374Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
18375returned an incorrect name for the root node.
18376
18377Code and Data Size: Code and Data optimizations have permitted new
18378feature development with an actual reduction in the library size.
18379Current core subsystem library sizes are shown below.  These are
18380the code and data sizes for the acpica.lib produced by the
18381Microsoft Visual C++ 6.0 compiler, and these values do not include
18382any ACPI driver or OSPM code.  The debug version of the code
18383includes the debug output trace mechanism and has a larger code
18384and data size.  Note that these values will vary depending on the
18385efficiency of the compiler and the compiler options used during
18386generation.
18387
18388  Previous Release (10_18_01):
18389     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18390     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18391
18392  Current Release:
18393     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18394     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18395
18396 2) Linux:
18397
18398Improved /proc processor output (Pavel Machek) Re-added
18399MODULE_LICENSE("GPL") to all modules.
18400
18401 3) ASL Compiler version X2030:
18402
18403Duplicate FieldUnit names within a scope are now detected and
18404flagged as errors.
18405
18406 4) Documentation:
18407
18408Programmer Reference updated to reflect OSL and address space
18409handler interface changes described above.
18410
18411----------------------------------------
18412Summary of changes for this label: 10_18_01
18413
18414ACPI CA Core Subsystem:
18415
18416Fixed a problem with the internal object reference count mechanism
18417that occasionally caused premature object deletion. This resolves
18418all of the outstanding problem reports where an object is deleted
18419in the middle of an interpreter evaluation.  Although this problem
18420only showed up in rather obscure cases, the solution to the
18421problem involved an adjustment of all reference counts involving
18422objects attached to namespace nodes.
18423
18424Fixed a problem with Field support in the interpreter where
18425writing to an aligned field whose length is an exact multiple (2
18426or greater) of the field access granularity would cause an attempt
18427to write beyond the end of the field.
18428
18429The top level AML opcode execution functions within the
18430interpreter have been renamed with a more meaningful and
18431consistent naming convention.  The modules exmonad.c and
18432exdyadic.c were eliminated.  New modules are exoparg1.c,
18433exoparg2.c, exoparg3.c, and exoparg6.c.
18434
18435Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
18436
18437Fixed a problem where the AML debugger was causing some internal
18438objects to not be deleted during subsystem termination.
18439
18440Fixed a problem with the external AcpiEvaluateObject interface
18441where the subsystem would fault if the named object to be
18442evaluated referred to a constant such as Zero, Ones, etc.
18443
18444Fixed a problem with IndexFields and BankFields where the
18445subsystem would fault if the index, data, or bank registers were
18446not defined in the same scope as the field itself.
18447
18448Added printf format string checking for compilers that support
18449this feature.  Corrected more than 50 instances of issues with
18450format specifiers within invocations of ACPI_DEBUG_PRINT
18451throughout the core subsystem code.
18452
18453The ASL "Revision" operator now returns the ACPI support level
18454implemented in the core - the value "2" since the ACPI 2.0 support
18455is more than 50% implemented.
18456
18457Enhanced the output of the AML debugger "dump namespace" command
18458to output in a more human-readable form.
18459
18460Current core subsystem library code sizes are shown below.  These
18461
18462are the code and data sizes for the acpica.lib produced by the
18463Microsoft Visual C++ 6.0 compiler, and these values do not include
18464any ACPI driver or OSPM code.  The debug version of the code
18465includes the full debug trace mechanism -- leading to a much
18466
18467larger code and data size.  Note that these values will vary
18468depending on the efficiency of the compiler and the compiler
18469options used during generation.
18470
18471     Previous Label (09_20_01):
18472     Non-Debug Version:    65K Code,     5K Data,     70K Total
18473     Debug Version:       138K Code,    58K Data,    196K Total
18474
18475     This Label:
18476
18477     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18478     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18479
18480Linux:
18481
18482Implemented a "Bad BIOS Blacklist" to track machines that have
18483known ASL/AML problems.
18484
18485Enhanced the /proc interface for the thermal zone driver and added
18486support for _HOT (the critical suspend trip point).  The 'info'
18487file now includes threshold/policy information, and allows setting
18488of _SCP (cooling preference) and _TZP (polling frequency) values
18489to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
18490frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
18491preference to the passive/quiet mode (if supported by the ASL).
18492
18493Implemented a workaround for a gcc bug that resuted in an OOPs
18494when loading the control method battery driver.
18495
18496 ----------------------------------------
18497Summary of changes for this label: 09_20_01
18498
18499 ACPI CA Core Subsystem:
18500
18501The AcpiEnableEvent and AcpiDisableEvent interfaces have been
18502modified to allow individual GPE levels to be flagged as wake-
18503enabled (i.e., these GPEs are to remain enabled when the platform
18504sleeps.)
18505
18506The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
18507support wake-enabled GPEs.  This means that upon entering the
18508sleep state, all GPEs that are not wake-enabled are disabled.
18509When leaving the sleep state, these GPEs are re-enabled.
18510
18511A local double-precision divide/modulo module has been added to
18512enhance portability to OS kernels where a 64-bit math library is
18513not available.  The new module is "utmath.c".
18514
18515Several optimizations have been made to reduce the use of CPU
18516stack.  Originally over 2K, the maximum stack usage is now below
185172K at 1860  bytes (1.82k)
18518
18519Fixed a problem with the AcpiGetFirmwareTable interface where the
18520root table pointer was not mapped into a logical address properly.
18521
18522Fixed a problem where a NULL pointer was being dereferenced in the
18523interpreter code for the ASL Notify operator.
18524
18525Fixed a problem where the use of the ASL Revision operator
18526returned an error. This operator now returns the current version
18527of the ACPI CA core subsystem.
18528
18529Fixed a problem where objects passed as control method parameters
18530to AcpiEvaluateObject were always deleted at method termination.
18531However, these objects may end up being stored into the namespace
18532by the called method.  The object reference count mechanism was
18533applied to these objects instead of a force delete.
18534
18535Fixed a problem where static strings or buffers (contained in the
18536AML code) that are declared as package elements within the ASL
18537code could cause a fault because the interpreter would attempt to
18538delete them.  These objects are now marked with the "static
18539object" flag to prevent any attempt to delete them.
18540
18541Implemented an interpreter optimization to use operands directly
18542from the state object instead of extracting the operands to local
18543variables.  This reduces stack use and code size, and improves
18544performance.
18545
18546The module exxface.c was eliminated as it was an unnecessary extra
18547layer of code.
18548
18549Current core subsystem library code sizes are shown below.  These
18550are the code and data sizes for the acpica.lib produced by the
18551Microsoft Visual C++ 6.0 compiler, and these values do not include
18552any ACPI driver or OSPM code.  The debug version of the code
18553includes the full debug trace mechanism -- leading to a much
18554larger code and data size.  Note that these values will vary
18555depending on the efficiency of the compiler and the compiler
18556options used during generation.
18557
18558  Non-Debug Version:  65K Code,   5K Data,   70K Total
18559(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
18560Total  (Previously 195K)
18561
18562Linux:
18563
18564Support for ACPI 2.0 64-bit integers has been added.   All ACPI
18565Integer objects are now 64 bits wide
18566
18567All Acpi data types and structures are now in lower case.  Only
18568Acpi macros are upper case for differentiation.
18569
18570 Documentation:
18571
18572Changes to the external interfaces as described above.
18573
18574 ----------------------------------------
18575Summary of changes for this label: 08_31_01
18576
18577 ACPI CA Core Subsystem:
18578
18579A bug with interpreter implementation of the ASL Divide operator
18580was found and fixed.  The implicit function return value (not the
18581explicit store operands) was returning the remainder instead of
18582the quotient.  This was a longstanding bug and it fixes several
18583known outstanding issues on various platforms.
18584
18585The ACPI_DEBUG_PRINT and function trace entry/exit macros have
18586been further optimized for size.  There are 700 invocations of the
18587DEBUG_PRINT macro alone, so each optimization reduces the size of
18588the debug version of the subsystem significantly.
18589
18590A stack trace mechanism has been implemented.  The maximum stack
18591usage is about 2K on 32-bit platforms.  The debugger command "stat
18592stack" will display the current maximum stack usage.
18593
18594All public symbols and global variables within the subsystem are
18595now prefixed with the string "Acpi".  This keeps all of the
18596symbols grouped together in a kernel map, and avoids conflicts
18597with other kernel subsystems.
18598
18599Most of the internal fixed lookup tables have been moved into the
18600code segment via the const operator.
18601
18602Several enhancements have been made to the interpreter to both
18603reduce the code size and improve performance.
18604
18605Current core subsystem library code sizes are shown below.  These
18606are the code and data sizes for the acpica.lib produced by the
18607Microsoft Visual C++ 6.0 compiler, and these values do not include
18608any ACPI driver or OSPM code.  The debug version of the code
18609includes the full debug trace mechanism which contains over 700
18610invocations of the DEBUG_PRINT macro, 500 function entry macro
18611invocations, and over 900 function exit macro invocations --
18612leading to a much larger code and data size.  Note that these
18613values will vary depending on the efficiency of the compiler and
18614the compiler options used during generation.
18615
18616        Non-Debug Version:  64K Code,   5K Data,   69K Total
18617Debug Version:     137K Code,  58K Data,  195K Total
18618
18619 Linux:
18620
18621Implemented wbinvd() macro, pending a kernel-wide definition.
18622
18623Fixed /proc/acpi/event to handle poll() and short reads.
18624
18625 ASL Compiler, version X2026:
18626
18627Fixed a problem introduced in the previous label where the AML
18628
18629code emitted for package objects produced packages with zero
18630length.
18631
18632 ----------------------------------------
18633Summary of changes for this label: 08_16_01
18634
18635ACPI CA Core Subsystem:
18636
18637The following ACPI 2.0 ASL operators have been implemented in the
18638AML interpreter (These are already supported by the Intel ASL
18639compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
18640ToBuffer.  Support for 64-bit AML constants is implemented in the
18641AML parser, debugger, and disassembler.
18642
18643The internal memory tracking mechanism (leak detection code) has
18644been upgraded to reduce the memory overhead (a separate tracking
18645block is no longer allocated for each memory allocation), and now
18646supports all of the internal object caches.
18647
18648The data structures and code for the internal object caches have
18649been coelesced and optimized so that there is a single cache and
18650memory list data structure and a single group of functions that
18651implement generic cache management.  This has reduced the code
18652size in both the debug and release versions of the subsystem.
18653
18654The DEBUG_PRINT macro(s) have been optimized for size and replaced
18655by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
18656different, because it generates a single call to an internal
18657function.  This results in a savings of about 90 bytes per
18658invocation, resulting in an overall code and data savings of about
1865916% in the debug version of the subsystem.
18660
18661 Linux:
18662
18663Fixed C3 disk corruption problems and re-enabled C3 on supporting
18664machines.
18665
18666Integrated low-level sleep code by Patrick Mochel.
18667
18668Further tweaked source code Linuxization.
18669
18670Other minor fixes.
18671
18672 ASL Compiler:
18673
18674Support for ACPI 2.0 variable length packages is fixed/completed.
18675
18676Fixed a problem where the optional length parameter for the ACPI
186772.0 ToString operator.
18678
18679Fixed multiple extraneous error messages when a syntax error is
18680detected within the declaration line of a control method.
18681
18682 ----------------------------------------
18683Summary of changes for this label: 07_17_01
18684
18685ACPI CA Core Subsystem:
18686
18687Added a new interface named AcpiGetFirmwareTable to obtain any
18688ACPI table via the ACPI signature.  The interface can be called at
18689any time during kernel initialization, even before the kernel
18690virtual memory manager is initialized and paging is enabled.  This
18691allows kernel subsystems to obtain ACPI tables very early, even
18692before the ACPI CA subsystem is initialized.
18693
18694Fixed a problem where Fields defined with the AnyAcc attribute
18695could be resolved to the incorrect address under the following
18696conditions: 1) the field width is larger than 8 bits and 2) the
18697parent operation region is not defined on a DWORD boundary.
18698
18699Fixed a problem where the interpreter is not being locked during
18700namespace initialization (during execution of the _INI control
18701methods), causing an error when an attempt is made to release it
18702later.
18703
18704ACPI 2.0 support in the AML Interpreter has begun and will be
18705ongoing throughout the rest of this year.  In this label, The Mod
18706operator is implemented.
18707
18708Added a new data type to contain full PCI addresses named
18709ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
18710and Function values.
18711
18712 Linux:
18713
18714Enhanced the Linux version of the source code to change most
18715capitalized ACPI type names to lowercase. For example, all
18716instances of ACPI_STATUS are changed to acpi_status.  This will
18717result in a large diff, but the change is strictly cosmetic and
18718aligns the CA code closer to the Linux coding standard.
18719
18720OSL Interfaces:
18721
18722The interfaces to the PCI configuration space have been changed to
18723add the PCI Segment number and to split the single 32-bit combined
18724DeviceFunction field into two 16-bit fields.  This was
18725accomplished by moving the four values that define an address in
18726PCI configuration space (segment, bus, device, and function) to
18727the new ACPI_PCI_ID structure.
18728
18729The changes to the PCI configuration space interfaces led to a
18730reexamination of the complete set of address space access
18731interfaces for PCI, I/O, and Memory.  The previously existing 18
18732interfaces have proven difficult to maintain (any small change
18733must be propagated across at least 6 interfaces) and do not easily
18734allow for future expansion to 64 bits if necessary.  Also, on some
18735systems, it would not be appropriate to demultiplex the access
18736width (8, 16, 32,or 64) before calling the OSL if the
18737corresponding native OS interfaces contain a similar access width
18738parameter.  For these reasons, the 18 address space interfaces
18739have been replaced by these 6 new ones:
18740
18741AcpiOsReadPciConfiguration
18742AcpiOsWritePciConfiguration
18743AcpiOsReadMemory
18744AcpiOsWriteMemory
18745AcpiOsReadPort
18746AcpiOsWritePort
18747
18748Added a new interface named AcpiOsGetRootPointer to allow the OSL
18749to perform the platform and/or OS-specific actions necessary to
18750obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
18751interface will simply call down to the CA core to perform the low-
18752memory search for the table.  On IA-64, the RSDP is obtained from
18753EFI.  Migrating this interface to the OSL allows the CA core to
18754
18755remain OS and platform independent.
18756
18757Added a new interface named AcpiOsSignal to provide a generic
18758"function code and pointer" interface for various miscellaneous
18759signals and notifications that must be made to the host OS.   The
18760first such signals are intended to support the ASL Fatal and
18761Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
18762interface has been obsoleted.
18763
18764The definition of the AcpiFormatException interface has been
18765changed to simplify its use.  The caller no longer must supply a
18766buffer to the call; A pointer to a const string is now returned
18767directly.  This allows the call to be easily used in printf
18768statements, etc. since the caller does not have to manage a local
18769buffer.
18770
18771
18772 ASL Compiler, Version X2025:
18773
18774The ACPI 2.0 Switch/Case/Default operators have been implemented
18775and are fully functional.  They will work with all ACPI 1.0
18776interpreters, since the operators are simply translated to If/Else
18777pairs.
18778
18779The ACPI 2.0 ElseIf operator is implemented and will also work
18780with 1.0 interpreters, for the same reason.
18781
18782Implemented support for ACPI 2.0 variable-length packages.  These
18783packages have a separate opcode, and their size is determined by
18784the interpreter at run-time.
18785
18786Documentation The ACPI CA Programmer Reference has been updated to
18787reflect the new interfaces and changes to existing interfaces.
18788
18789 ------------------------------------------
18790Summary of changes for this label: 06_15_01
18791
18792 ACPI CA Core Subsystem:
18793
18794Fixed a problem where a DWORD-accessed field within a Buffer
18795object would get its byte address inadvertently rounded down to
18796the nearest DWORD.  Buffers are always Byte-accessible.
18797
18798 ASL Compiler, version X2024:
18799
18800Fixed a problem where the Switch() operator would either fault or
18801hang the compiler.  Note however, that the AML code for this ACPI
188022.0 operator is not yet implemented.
18803
18804Compiler uses the new AcpiOsGetTimer interface to obtain compile
18805timings.
18806
18807Implementation of the CreateField operator automatically converts
18808a reference to a named field within a resource descriptor from a
18809byte offset to a bit offset if required.
18810
18811Added some missing named fields from the resource descriptor
18812support. These are the names that are automatically created by the
18813compiler to reference fields within a descriptor.  They are only
18814valid at compile time and are not passed through to the AML
18815interpreter.
18816
18817Resource descriptor named fields are now typed as Integers and
18818subject to compile-time typechecking when used in expressions.
18819
18820 ------------------------------------------
18821Summary of changes for this label: 05_18_01
18822
18823 ACPI CA Core Subsystem:
18824
18825Fixed a couple of problems in the Field support code where bits
18826from adjacent fields could be returned along with the proper field
18827bits. Restructured the field support code to improve performance,
18828readability and maintainability.
18829
18830New DEBUG_PRINTP macro automatically inserts the procedure name
18831into the output, saving hundreds of copies of procedure name
18832strings within the source, shrinking the memory footprint of the
18833debug version of the core subsystem.
18834
18835 Source Code Structure:
18836
18837The source code directory tree was restructured to reflect the
18838current organization of the component architecture.  Some files
18839and directories have been moved and/or renamed.
18840
18841 Linux:
18842
18843Fixed leaking kacpidpc processes.
18844
18845Fixed queueing event data even when /proc/acpi/event is not
18846opened.
18847
18848 ASL Compiler, version X2020:
18849
18850Memory allocation performance enhancement - over 24X compile time
18851improvement on large ASL files.  Parse nodes and namestring
18852buffers are now allocated from a large internal compiler buffer.
18853
18854The temporary .SRC file is deleted unless the "-s" option is
18855specified
18856
18857The "-d" debug output option now sends all output to the .DBG file
18858instead of the console.
18859
18860"External" second parameter is now optional
18861
18862"ElseIf" syntax now properly allows the predicate
18863
18864Last operand to "Load" now recognized as a Target operand
18865
18866Debug object can now be used anywhere as a normal object.
18867
18868ResourceTemplate now returns an object of type BUFFER
18869
18870EISAID now returns an object of type INTEGER
18871
18872"Index" now works with a STRING operand
18873
18874"LoadTable" now accepts optional parameters
18875
18876"ToString" length parameter is now optional
18877
18878"Interrupt (ResourceType," parse error fixed.
18879
18880"Register" with a user-defined region space parse error fixed
18881
18882Escaped backslash at the end of a string ("\\") scan/parse error
18883fixed
18884
18885"Revision" is now an object of type INTEGER.
18886
18887
18888
18889------------------------------------------
18890Summary of changes for this label: 05_02_01
18891
18892Linux:
18893
18894/proc/acpi/event now blocks properly.
18895
18896Removed /proc/sys/acpi. You can still dump your DSDT from
18897/proc/acpi/dsdt.
18898
18899 ACPI CA Core Subsystem:
18900
18901Fixed a problem introduced in the previous label where some of the
18902"small" resource descriptor types were not recognized.
18903
18904Improved error messages for the case where an ASL Field is outside
18905the range of the parent operation region.
18906
18907 ASL Compiler, version X2018:
18908
18909
18910Added error detection for ASL Fields that extend beyond the length
18911of the parent operation region (only if the length of the region
18912is known at compile time.)  This includes fields that have a
18913minimum access width that is smaller than the parent region, and
18914individual field units that are partially or entirely beyond the
18915extent of the parent.
18916
18917
18918
18919------------------------------------------
18920Summary of changes for this label: 04_27_01
18921
18922 ACPI CA Core Subsystem:
18923
18924Fixed a problem where the namespace mutex could be released at the
18925wrong time during execution of AcpiRemoveAddressSpaceHandler.
18926
18927Added optional thread ID output for debug traces, to simplify
18928debugging of multiple threads.  Added context switch notification
18929when the debug code realizes that a different thread is now
18930executing ACPI code.
18931
18932Some additional external data types have been prefixed with the
18933string "ACPI_" for consistency.  This may effect existing code.
18934The data types affected are the external callback typedefs - e.g.,
18935
18936WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
18937
18938 Linux:
18939
18940Fixed an issue with the OSL semaphore implementation where a
18941thread was waking up with an error from receiving a SIGCHLD
18942signal.
18943
18944Linux version of ACPI CA now uses the system C library for string
18945manipulation routines instead of a local implementation.
18946
18947Cleaned up comments and removed TBDs.
18948
18949 ASL Compiler, version X2017:
18950
18951Enhanced error detection and reporting for all file I/O
18952operations.
18953
18954 Documentation:
18955
18956Programmer Reference updated to version 1.06.
18957
18958
18959
18960------------------------------------------
18961Summary of changes for this label: 04_13_01
18962
18963 ACPI CA Core Subsystem:
18964
18965Restructured support for BufferFields and RegionFields.
18966BankFields support is now fully operational.  All known 32-bit
18967limitations on field sizes have been removed.  Both BufferFields
18968and (Operation) RegionFields are now supported by the same field
18969management code.
18970
18971Resource support now supports QWORD address and IO resources. The
1897216/32/64 bit address structures and the Extended IRQ structure
18973have been changed to properly handle Source Resource strings.
18974
18975A ThreadId of -1 is now used to indicate a "mutex not acquired"
18976condition internally and must never be returned by AcpiOsThreadId.
18977This reserved value was changed from 0 since Unix systems allow a
18978thread ID of 0.
18979
18980Linux:
18981
18982Driver code reorganized to enhance portability
18983
18984Added a kernel configuration option to control ACPI_DEBUG
18985
18986Fixed the EC driver to honor _GLK.
18987
18988ASL Compiler, version X2016:
18989
18990Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
18991address space was set to 0, not 0x7f as it should be.
18992
18993 ------------------------------------------
18994Summary of changes for this label: 03_13_01
18995
18996 ACPI CA Core Subsystem:
18997
18998During ACPI initialization, the _SB_._INI method is now run if
18999present.
19000
19001Notify handler fix - notifies are deferred until the parent method
19002completes execution.  This fixes the "mutex already acquired"
19003issue seen occasionally.
19004
19005Part of the "implicit conversion" rules in ACPI 2.0 have been
19006found to cause compatibility problems with existing ASL/AML.  The
19007convert "result-to-target-type" implementation has been removed
19008for stores to method Args and Locals.  Source operand conversion
19009is still fully implemented.  Possible changes to ACPI 2.0
19010specification pending.
19011
19012Fix to AcpiRsCalculatePciRoutingTableLength to return correct
19013length.
19014
19015Fix for compiler warnings for 64-bit compiles.
19016
19017 Linux:
19018
19019/proc output aligned for easier parsing.
19020
19021Release-version compile problem fixed.
19022
19023New kernel configuration options documented in Configure.help.
19024
19025IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
19026context" message.
19027
19028 OSPM:
19029
19030Power resource driver integrated with bus manager.
19031
19032Fixed kernel fault during active cooling for thermal zones.
19033
19034Source Code:
19035
19036The source code tree has been restructured.
19037
19038
19039
19040------------------------------------------
19041Summary of changes for this label: 03_02_01
19042
19043 Linux OS Services Layer (OSL):
19044
19045Major revision of all Linux-specific code.
19046
19047Modularized all ACPI-specific drivers.
19048
19049Added new thermal zone and power resource drivers.
19050
19051Revamped /proc interface (new functionality is under /proc/acpi).
19052
19053New kernel configuration options.
19054
19055 Linux known issues:
19056
19057New kernel configuration options not documented in Configure.help
19058yet.
19059
19060
19061Module dependencies not currently implemented. If used, they
19062should be loaded in this order: busmgr, power, ec, system,
19063processor, battery, ac_adapter, button, thermal.
19064
19065Modules will not load if CONFIG_MODVERSION is set.
19066
19067IBM 600E - entering S5 may reboot instead of shutting down.
19068
19069IBM 600E - Sleep button may generate "Invalid <NULL> context"
19070message.
19071
19072Some systems may fail with "execution mutex already acquired"
19073message.
19074
19075 ACPI CA Core Subsystem:
19076
19077Added a new OSL Interface, AcpiOsGetThreadId.  This was required
19078for the  deadlock detection code. Defined to return a non-zero, 32-
19079bit thread ID for the currently executing thread.  May be a non-
19080zero constant integer on single-thread systems.
19081
19082Implemented deadlock detection for internal subsystem mutexes.  We
19083may add conditional compilation for this code (debug only) later.
19084
19085ASL/AML Mutex object semantics are now fully supported.  This
19086includes multiple acquires/releases by owner and support for the
19087
19088Mutex SyncLevel parameter.
19089
19090A new "Force Release" mechanism automatically frees all ASL
19091Mutexes that have been acquired but not released when a thread
19092exits the interpreter.  This forces conformance to the ACPI spec
19093("All mutexes must be released when an invocation exits") and
19094prevents deadlocked ASL threads.  This mechanism can be expanded
19095(later) to monitor other resource acquisitions if OEM ASL code
19096continues to misbehave (which it will).
19097
19098Several new ACPI exception codes have been added for the Mutex
19099support.
19100
19101Recursive method calls are now allowed and supported (the ACPI
19102spec does in fact allow recursive method calls.)  The number of
19103recursive calls is subject to the restrictions imposed by the
19104SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
19105parameter.
19106
19107Implemented support for the SyncLevel parameter for control
19108methods (ACPI 2.0 feature)
19109
19110Fixed a deadlock problem when multiple threads attempted to use
19111the interpreter.
19112
19113Fixed a problem where the string length of a String package
19114element was not always set in a package returned from
19115AcpiEvaluateObject.
19116
19117Fixed a problem where the length of a String package element was
19118not always included in the length of the overall package returned
19119from AcpiEvaluateObject.
19120
19121Added external interfaces (Acpi*) to the ACPI debug memory
19122manager.  This manager keeps a list of all outstanding
19123allocations, and can therefore detect memory leaks and attempts to
19124free memory blocks more than once. Useful for code such as the
19125power manager, etc.  May not be appropriate for device drivers.
19126Performance with the debug code enabled is slow.
19127
19128The ACPI Global Lock is now an optional hardware element.
19129
19130 ASL Compiler Version X2015:
19131
19132Integrated changes to allow the compiler to be generated on
19133multiple platforms.
19134
19135Linux makefile added to generate the compiler on Linux
19136
19137 Source Code:
19138
19139All platform-specific headers have been moved to their own
19140subdirectory, Include/Platform.
19141
19142New source file added, Interpreter/ammutex.c
19143
19144New header file, Include/acstruct.h
19145
19146 Documentation:
19147
19148The programmer reference has been updated for the following new
19149interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
19150
19151 ------------------------------------------
19152Summary of changes for this label: 02_08_01
19153
19154Core ACPI CA Subsystem: Fixed a problem where an error was
19155incorrectly returned if the return resource buffer was larger than
19156the actual data (in the resource interfaces).
19157
19158References to named objects within packages are resolved to the
19159
19160full pathname string before packages are returned directly (via
19161the AcpiEvaluateObject interface) or indirectly via the resource
19162interfaces.
19163
19164Linux OS Services Layer (OSL):
19165
19166Improved /proc battery interface.
19167
19168
19169Added C-state debugging output and other miscellaneous fixes.
19170
19171ASL Compiler Version X2014:
19172
19173All defined method arguments can now be used as local variables,
19174including the ones that are not actually passed in as parameters.
19175The compiler tracks initialization of the arguments and issues an
19176exception if they are used without prior assignment (just like
19177locals).
19178
19179The -o option now specifies a filename prefix that is used for all
19180output files, including the AML output file.  Otherwise, the
19181default behavior is as follows:  1) the AML goes to the file
19182specified in the DSDT.  2) all other output files use the input
19183source filename as the base.
19184
19185 ------------------------------------------
19186Summary of changes for this label: 01_25_01
19187
19188Core ACPI CA Subsystem: Restructured the implementation of object
19189store support within the  interpreter.  This includes support for
19190the Store operator as well  as any ASL operators that include a
19191target operand.
19192
19193Partially implemented support for Implicit Result-to-Target
19194conversion. This is when a result object is converted on the fly
19195to the type of  an existing target object.  Completion of this
19196support is pending  further analysis of the ACPI specification
19197concerning this matter.
19198
19199CPU-specific code has been removed from the subsystem (hardware
19200directory).
19201
19202New Power Management Timer functions added
19203
19204Linux OS Services Layer (OSL): Moved system state transition code
19205to the core, fixed it, and modified  Linux OSL accordingly.
19206
19207Fixed C2 and C3 latency calculations.
19208
19209
19210We no longer use the compilation date for the version message on
19211initialization, but retrieve the version from AcpiGetSystemInfo().
19212
19213Incorporated for fix Sony VAIO machines.
19214
19215Documentation:  The Programmer Reference has been updated and
19216reformatted.
19217
19218
19219ASL Compiler:  Version X2013: Fixed a problem where the line
19220numbering and error reporting could get out  of sync in the
19221presence of multiple include files.
19222
19223 ------------------------------------------
19224Summary of changes for this label: 01_15_01
19225
19226Core ACPI CA Subsystem:
19227
19228Implemented support for type conversions in the execution of the
19229ASL  Concatenate operator (The second operand is converted to
19230match the type  of the first operand before concatenation.)
19231
19232Support for implicit source operand conversion is partially
19233implemented.   The ASL source operand types Integer, Buffer, and
19234String are freely  interchangeable for most ASL operators and are
19235converted by the interpreter  on the fly as required.  Implicit
19236Target operand conversion (where the  result is converted to the
19237target type before storing) is not yet implemented.
19238
19239Support for 32-bit and 64-bit BCD integers is implemented.
19240
19241Problem fixed where a field read on an aligned field could cause a
19242read  past the end of the field.
19243
19244New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
19245does not return a value, but the caller expects one.  (The ASL
19246compiler flags this as a warning.)
19247
19248ASL Compiler:
19249
19250Version X2011:
192511. Static typechecking of all operands is implemented. This
19252prevents the use of invalid objects (such as using a Package where
19253an Integer is required) at compile time instead of at interpreter
19254run-time.
192552. The ASL source line is printed with ALL errors and warnings.
192563. Bug fix for source EOF without final linefeed.
192574. Debug option is split into a parse trace and a namespace trace.
192585. Namespace output option (-n) includes initial values for
19259integers and strings.
192606. Parse-only option added for quick syntax checking.
192617. Compiler checks for duplicate ACPI name declarations
19262
19263Version X2012:
192641. Relaxed typechecking to allow interchangeability between
19265strings, integers, and buffers.  These types are now converted by
19266the interpreter at runtime.
192672. Compiler reports time taken by each internal subsystem in the
19268debug         output file.
19269
19270
19271 ------------------------------------------
19272Summary of changes for this label: 12_14_00
19273
19274ASL Compiler:
19275
19276This is the first official release of the compiler. Since the
19277compiler requires elements of the Core Subsystem, this label
19278synchronizes everything.
19279
19280------------------------------------------
19281Summary of changes for this label: 12_08_00
19282
19283
19284Fixed a problem where named references within the ASL definition
19285of both OperationRegions and CreateXXXFields did not work
19286properly.  The symptom was an AE_AML_OPERAND_TYPE during
19287initialization of the region/field. This is similar (but not
19288related internally) to the problem that was fixed in the last
19289label.
19290
19291Implemented both 32-bit and 64-bit support for the BCD ASL
19292functions ToBCD and FromBCD.
19293
19294Updated all legal headers to include "2000" in the copyright
19295years.
19296
19297 ------------------------------------------
19298Summary of changes for this label: 12_01_00
19299
19300Fixed a problem where method invocations within the ASL definition
19301of both OperationRegions and CreateXXXFields did not work
19302properly.  The symptom was an AE_AML_OPERAND_TYPE during
19303initialization of the region/field:
19304
19305  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
19306[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
19307(0x3005)
19308
19309Fixed a problem where operators with more than one nested
19310subexpression would fail.  The symptoms were varied, by mostly
19311AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
19312problem that has gone unnoticed until now.
19313
19314  Subtract (Add (1,2), Multiply (3,4))
19315
19316Fixed a problem where AcpiGetHandle didn't quite get fixed in the
19317previous build (The prefix part of a relative path was handled
19318incorrectly).
19319
19320Fixed a problem where Operation Region initialization failed if
19321the operation region name was a "namepath" instead of a simple
19322"nameseg". Symptom was an AE_NO_OPERAND error.
19323
19324Fixed a problem where an assignment to a local variable via the
19325indirect RefOf mechanism only worked for the first such
19326assignment.  Subsequent assignments were ignored.
19327
19328 ------------------------------------------
19329Summary of changes for this label: 11_15_00
19330
19331ACPI 2.0 table support with backwards support for ACPI 1.0 and the
193320.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
19333the AML  interpreter does NOT have support for the new 2.0 ASL
19334grammar terms at this time.
19335
19336All ACPI hardware access is via the GAS structures in the ACPI 2.0
19337FADT.
19338
19339All physical memory addresses across all platforms are now 64 bits
19340wide. Logical address width remains dependent on the platform
19341(i.e., "void *").
19342
19343AcpiOsMapMemory interface changed to a 64-bit physical address.
19344
19345The AML interpreter integer size is now 64 bits, as per the ACPI
193462.0 specification.
19347
19348For backwards compatibility with ACPI 1.0, ACPI tables with a
19349revision number less than 2 use 32-bit integers only.
19350
19351Fixed a problem where the evaluation of OpRegion operands did not
19352always resolve them to numbers properly.
19353
19354------------------------------------------
19355Summary of changes for this label: 10_20_00
19356
19357Fix for CBN_._STA issue.  This fix will allow correct access to
19358CBN_ OpRegions when the _STA returns 0x8.
19359
19360Support to convert ACPI constants (Ones, Zeros, One) to actual
19361values before a package object is returned
19362
19363Fix for method call as predicate to if/while construct causing
19364incorrect if/while behavior
19365
19366Fix for Else block package lengths sometimes calculated wrong (if
19367block > 63 bytes)
19368
19369Fix for Processor object length field, was always zero
19370
19371Table load abort if FACP sanity check fails
19372
19373Fix for problem with Scope(name) if name already exists
19374
19375Warning emitted if a named object referenced cannot be found
19376(resolved) during method execution.
19377
19378
19379
19380
19381
19382------------------------------------------
19383Summary of changes for this label: 9_29_00
19384
19385New table initialization interfaces: AcpiInitializeSubsystem no
19386longer has any parameters AcpiFindRootPointer - Find the RSDP (if
19387necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
19388>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
19389AcpiLoadTables
19390
19391Note: These interface changes require changes to all existing OSDs
19392
19393The PCI_Config default address space handler is always installed
19394at the root namespace object.
19395
19396-------------------------------------------
19397Summary of changes for this label: 09_15_00
19398
19399The new initialization architecture is implemented.  New
19400interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
19401AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
19402
19403(Namespace is automatically loaded when a table is loaded)
19404
19405The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1940652 bytes to 32 bytes.  There is usually one of these for every
19407namespace object, so the memory savings is significant.
19408
19409Implemented just-in-time evaluation of the CreateField operators.
19410
19411Bug fixes for IA-64 support have been integrated.
19412
19413Additional code review comments have been implemented
19414
19415The so-called "third pass parse" has been replaced by a final walk
19416through the namespace to initialize all operation regions (address
19417spaces) and fields that have not yet been initialized during the
19418execution of the various _INI and REG methods.
19419
19420New file - namespace/nsinit.c
19421
19422-------------------------------------------
19423Summary of changes for this label: 09_01_00
19424
19425Namespace manager data structures have been reworked to change the
19426primary  object from a table to a single object.  This has
19427resulted in dynamic memory  savings of 3X within the namespace and
194282X overall in the ACPI CA subsystem.
19429
19430Fixed problem where the call to AcpiEvFindPciRootBuses was
19431inadvertently left  commented out.
19432
19433Reduced the warning count when generating the source with the GCC
19434compiler.
19435
19436Revision numbers added to each module header showing the
19437SourceSafe version of the file.  Please refer to this version
19438number when giving us feedback or comments on individual modules.
19439
19440The main object types within the subsystem have been renamed to
19441clarify their  purpose:
19442
19443ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
19444ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
19445ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
19446
19447NOTE: no changes to the initialization sequence are included in
19448this label.
19449
19450-------------------------------------------
19451Summary of changes for this label: 08_23_00
19452
19453Fixed problem where TerminateControlMethod was being called
19454multiple times per  method
19455
19456Fixed debugger problem where single stepping caused a semaphore to
19457be  oversignalled
19458
19459Improved performance through additional parse object caching -
19460added  ACPI_EXTENDED_OP type
19461
19462-------------------------------------------
19463Summary of changes for this label: 08_10_00
19464
19465Parser/Interpreter integration:  Eliminated the creation of
19466complete parse trees  for ACPI tables and control methods.
19467Instead, parse subtrees are created and  then deleted as soon as
19468they are processed (Either entered into the namespace or  executed
19469by the interpreter).  This reduces the use of dynamic kernel
19470memory  significantly. (about 10X)
19471
19472Exception codes broken into classes and renumbered.  Be sure to
19473recompile all  code that includes acexcep.h.  Hopefully we won't
19474have to renumber the codes  again now that they are split into
19475classes (environment, programmer, AML code,  ACPI table, and
19476internal).
19477
19478Fixed some additional alignment issues in the Resource Manager
19479subcomponent
19480
19481Implemented semaphore tracking in the AcpiExec utility, and fixed
19482several places  where mutexes/semaphores were being unlocked
19483without a corresponding lock  operation.  There are no known
19484semaphore or mutex "leaks" at this time.
19485
19486Fixed the case where an ASL Return operator is used to return an
19487unnamed  package.
19488
19489-------------------------------------------
19490Summary of changes for this label: 07_28_00
19491
19492Fixed a problem with the way addresses were calculated in
19493AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
19494manifested itself when a Field was  created with WordAccess or
19495DwordAccess, but the field unit defined within the  Field was less
19496
19497than a Word or Dword.
19498
19499Fixed a problem in AmlDumpOperands() module's loop to pull
19500operands off of the  operand stack to display information. The
19501problem manifested itself as a TLB  error on 64-bit systems when
19502accessing an operand stack with two or more  operands.
19503
19504Fixed a problem with the PCI configuration space handlers where
19505context was  getting confused between accesses. This required a
19506change to the generic address  space handler and address space
19507setup definitions. Handlers now get both a  global handler context
19508(this is the one passed in by the user when executing
19509AcpiInstallAddressSpaceHandler() and a specific region context
19510that is unique to  each region (For example, the _ADR, _SEG and
19511_BBN values associated with a  specific region). The generic
19512function definitions have changed to the  following:
19513
19514typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
19515UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
19516*HandlerContext, // This used to be void *Context void
19517*RegionContext); // This is an additional parameter
19518
19519typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
19520RegionHandle, UINT32 Function, void *HandlerContext,  void
19521**RegionContext); // This used to be **ReturnContext
19522
19523-------------------------------------------
19524Summary of changes for this label: 07_21_00
19525
19526Major file consolidation and rename.  All files within the
19527interpreter have been  renamed as well as most header files.  This
19528was done to prevent collisions with  existing files in the host
19529OSs -- filenames such as "config.h" and "global.h"  seem to be
19530quite common.  The VC project files have been updated.  All
19531makefiles  will require modification.
19532
19533The parser/interpreter integration continues in Phase 5 with the
19534implementation  of a complete 2-pass parse (the AML is parsed
19535twice) for each table;  This  avoids the construction of a huge
19536parse tree and therefore reduces the amount of  dynamic memory
19537required by the subsystem.  Greater use of the parse object cache
19538means that performance is unaffected.
19539
19540Many comments from the two code reviews have been rolled in.
19541
19542The 64-bit alignment support is complete.
19543
19544-------------------------------------------
19545Summary of changes for this label: 06_30_00
19546
19547With a nod and a tip of the hat to the technology of yesteryear,
19548we've added  support in the source code for 80 column output
19549devices.  The code is now mostly  constrained to 80 columns or
19550less to support environments and editors that 1)  cannot display
19551or print more than 80 characters on a single line, and 2) cannot
19552disable line wrapping.
19553
19554A major restructuring of the namespace data structure has been
19555completed.  The  result is 1) cleaner and more
19556understandable/maintainable code, and 2) a  significant reduction
19557in the dynamic memory requirement for each named ACPI  object
19558(almost half).
19559
19560-------------------------------------------
19561Summary of changes for this label: 06_23_00
19562
19563Linux support has been added.  In order to obtain approval to get
19564the ACPI CA  subsystem into the Linux kernel, we've had to make
19565quite a few changes to the  base subsystem that will affect all
19566users (all the changes are generic and OS- independent).  The
19567effects of these global changes have been somewhat far  reaching.
19568Files have been merged and/or renamed and interfaces have been
19569renamed.   The major changes are described below.
19570
19571Osd* interfaces renamed to AcpiOs* to eliminate namespace
19572pollution/confusion  within our target kernels.  All OSD
19573interfaces must be modified to match the new  naming convention.
19574
19575Files merged across the subsystem.  A number of the smaller source
19576and header  files have been merged to reduce the file count and
19577increase the density of the  existing files.  There are too many
19578to list here.  In general, makefiles that  call out individual
19579files will require rebuilding.
19580
19581Interpreter files renamed.  All interpreter files now have the
19582prefix am*  instead of ie* and is*.
19583
19584Header files renamed:  The acapi.h file is now acpixf.h.  The
19585acpiosd.h file is  now acpiosxf.h.  We are removing references to
19586the acronym "API" since it is  somewhat windowsy. The new name is
19587"external interface" or xface or xf in the  filenames.j
19588
19589
19590All manifest constants have been forced to upper case (some were
19591mixed case.)   Also, the string "ACPI_" has been prepended to many
19592(not all) of the constants,  typedefs, and structs.
19593
19594The globals "DebugLevel" and "DebugLayer" have been renamed
19595"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
19596
19597All other globals within the subsystem are now prefixed with
19598"AcpiGbl_" Internal procedures within the subsystem are now
19599prefixed with "Acpi" (with only  a few exceptions).  The original
19600two-letter abbreviation for the subcomponent  remains after "Acpi"
19601- for example, CmCallocate became AcpiCmCallocate.
19602
19603Added a source code translation/conversion utility.  Used to
19604generate the Linux  source code, it can be modified to generate
19605other types of source as well. Can  also be used to cleanup
19606existing source by removing extraneous spaces and blank  lines.
19607Found in tools/acpisrc/*
19608
19609OsdUnMapMemory was renamed to OsdUnmapMemory and then
19610AcpiOsUnmapMemory.  (UnMap  became Unmap).
19611
19612A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
19613When set to  one, this indicates that the caller wants to use the
19614
19615semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
19616both types.  However, implementers of this  call may want to use
19617different OS primitives depending on the type of semaphore
19618requested.  For example, some operating systems provide separate
19619
19620"mutex" and  "semaphore" interfaces - where the mutex interface is
19621much faster because it  doesn't have all the overhead of a full
19622semaphore implementation.
19623
19624Fixed a deadlock problem where a method that accesses the PCI
19625address space can  block forever if it is the first access to the
19626space.
19627
19628-------------------------------------------
19629Summary of changes for this label: 06_02_00
19630
19631Support for environments that cannot handle unaligned data
19632accesses (e.g.  firmware and OS environments devoid of alignment
19633handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
19634been added (via configurable macros) in  these three areas: -
19635Transfer of data from the raw AML byte stream is done via byte
19636moves instead of    word/dword/qword moves. - External objects are
19637aligned within the user buffer, including package   elements (sub-
19638objects). - Conversion of name strings to UINT32 Acpi Names is now
19639done byte-wise.
19640
19641The Store operator was modified to mimic Microsoft's
19642implementation when storing  to a Buffer Field.
19643
19644Added a check of the BM_STS bit before entering C3.
19645
19646The methods subdirectory has been obsoleted and removed.  A new
19647file, cmeval.c  subsumes the functionality.
19648
19649A 16-bit (DOS) version of AcpiExec has been developed.  The
19650makefile is under  the acpiexec directory.
19651