xref: /freebsd/sys/contrib/dev/acpica/changes.txt (revision 385fb5d933b55dbfe6f0eaf4d937ee89026c9ef5)
1----------------------------------------
217 December 2020. Summary of changes for version 20201217:
3
4This release is available at https://acpica.org/downloads
5
6
71) ACPICA kernel-resident subsystem:
8
9Note: The implementation of ACPI 6.4 is underway, and is expected to be
10mostly finished next month, when ACPI 6.4 is released.
11
12From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added
13several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to
14enable this.
15
16AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0.
17These included a few casts, as well as a null pointer check.
18
19Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on
20implicit fallthrough, as well as __attribute__((__fallthrough__)) and
21comments to explicitly denote that cases of fallthrough were intentional.
22Clang also supports this warning and statement attribute, but not the
23comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature
24of GCC. With assistance from @nickdesaulniers.
25
262) iASL Compiler/Disassembler and ACPICA tools:
27
28Added improvement to method call analysis by saving the return type and
29relaxing certain cases of type checking.
30
31iASL Table Compiler: Improved info messages. Added a message to the -T
32option for when the default template (DSDT) is used.
33Also added a note for when multiple SSDTs are created with a DSDT that
34the SSDTs are created in the same file as the DSDT.
35
36
37----------------------------------------
38
3913 November 2020. Summary of changes for version 20201113:
40
41This release is available at https://acpica.org/downloads
42
43
441) ACPICA kernel-resident subsystem:
45
46Interpreter: fixed a memory leak by using use existing buffer in _HID
47repair. There was a memory leak that occurred when a _CID object is
48defined as a package containing string objects. When _CID is checked for
49any possible repairs, it calls a helper function to repair _HID (because
50_CID basically contains multiple _HID entries). The _HID repair function
51assumes that string objects are standalone objects that are not contained
52inside of any packages. The _HID repair function replaced the string
53object with a brand new object and attempted to delete the old object by
54decrementing the reference count of the old object. Strings inside of
55packages have a reference count of 2 so the _HID repair function leaves
56this object in a dangling state and causes a memory leak. Instead of
57allocating a brand new object and removing the old object, use the
58existing object when repairing the _HID object.
59
60Added function trace macros to improve namespace debugging. The namespace
61repair mechanism does not have function tracing macros. Add several trace
62macros to improve debuggability.
63
64Handle "orphan" _REG methods for GPIO OpRegions. Before this change
65AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no
66matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry
67Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs.
68The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific
69UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads
70to potential issues with checks for OpRegion availability, or in other
71words checks if _REG has been called for the OpRegion which the ACPI code
72wants to use. Except for the "orphan" EC handling, ACPICA core does not
73call _REG on an ACPI node which does not define an OpRegion matching the
74type being registered; and the reference design DSDT, from which most
75Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor
76UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins
77were assigned ACPI controlled functions in the reference design. Together
78this leads to the perfect storm, at least on the Cherry Trail based
79Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code
80and has added the Cherry Trail specific UserDefined(0x93) opregion to its
81GPO2 ACPI node to access this pin. But it uses a "has _REG been called"
82availability check for the standard GeneralPurposeIo OpRegion. This
83clearly is a bug in the DSDT, but this does work under Windows. This
84issue leads to the intel vbtn driver reporting the device always being in
85tablet-mode at boot, even if it is in laptop mode. Which in turn causes
86userspace to ignore touchpad events. So in other words, this issue causes
87the touchpad to not work at boot. This change fixes this by extending the
88"orphan" _REG method handling to also apply to GPIO address-space
89handlers.
90
91
922) iASL Compiler/Disassembler and ACPICA tools:
93
94iASL: Added more info to namespace dump file (-ln option). In a separate
95section of the dump file (after the main namespace dump), emit the full
96pathname for each namespace node, its type, and the ASL filename and line
97number where it is declared.
98
99AcpiHelp: Added an option to display/decode iASL exceptions. Option is: -
100x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value
101is omitted, all iASL exceptions are displayed.
102
103iASL: Use StringLiteral instead of StringData for some ASL macros. The
104use of the stringData rule allows for some "string" oriented opcodes
105(Such as ToString, ToHexString, etc.) None of which make sense with the
106macros in question. This change modifies the StringData part of the rule
107for these macros to a simple string  literal - thus disallowing the use
108of ToString, ToHexString, etc.
109The following ASL operators (macros) are affected:
110EisaId
111Fprintf
112Printf
113ToUuid
114Unicode
115Note: The MS compiler requires the use of string literals for these
116operators also.
117
118iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search
119the list of "known" UUIDs for the input to the ToUUID macro.
120
121Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the
122NFIT table.
123
124
125----------------------------------------
126
12725 September 2020. Summary of changes for version 20200925:
128
129This release is available at https://acpica.org/downloads
130
131
1321) ACPICA kernel-resident subsystem:
133
134Preserve memory opregion mappings. The ACPICA's strategy with respect to
135the handling of memory mappings associated with memory operation regions
136is to avoid mapping the entire region at once which may be problematic at
137least in principle (for example, it may lead to conflicts with
138overlapping mappings having different attributes created by drivers).  It
139may also be wasteful, because memory opregions on some systems take up
140vastchunks of address space while the fields in those regions actually
141accessed by AML are sparsely distributed.
142
143For this reason, a one-page "window" is mapped for a given opregion on
144the first memory access through it and if that "window" does not cover an
145address range accessed through that opregion subsequently, it is unmapped
146and a new "window" is mapped to replace it.  Next, if the new "window" is
147not sufficient to access memory through the opregion in question in the
148future, it will be replaced with yet another "window" and so on.  That
149may lead to a suboptimal sequence of memory mapping and unmapping
150operations, for example if two fields in one opregion separated from each
151other by a sufficiently wide chunk of unused address space are accessed
152in an alternating pattern.
153
154Added support for 64 bit risc-v compilation.  Useful for acpica tools and
155incorporating ACPICA into the Firmware Test Suite. Colin Ian King
156<colin.king@canonical.com>.
157
158Added support for SMBus predefined names (from SMBus Control Method
159Interface Specification, Version 1.0, December 10, 1999. New predefined
160names:
161    _SBA
162    _SBI
163    _SBR
164    _SBT
165    _SBW
166
167AML Disassembler: Added a new command, "All <NameSeg>". This command will
168evaluate all objects in the current namespace whose NameString contains
169the input NameSeg as the last element of the NameString. Useful for
170debugging.
171
172
1732) iASL Compiler/Disassembler and ACPICA tools:
174
175iASL: fixed a crash that occurred when predefined objects return packages
176with lengths that exceed the initializer list.
177
178iASL: added more detail to external resolution error message when
179compiling multiple definition blocks.
180
181iASL: added a remark for an attempt to create a nameseg or namestring
182containing lower-case letters. This should prevent declaring multiple
183namesegs or namestrings in an attempt to refer to different objects (with
184different cases), but actually refer to the same object(s).
185
186iASL: improve alias analysis by saving object type. If the alias is a
187method type, the parameter count is also recorded.
188
189AcpiExec: Increase the default loop timeout value. Was 1 second, is now
19010 seconds. Prevents unnecessary timeouts when executing control methods
191from the command line.
192
193AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal
194list. Includes:
195    Memory Device
196    Generic Buttons Device
197    NVDIMM Root Device
198    Control Method Battery
199    Device Graphs for _DSD method
200    Hierarchical Data Extension
201....ARM CoreSight Graph
202
203----------------------------------------
204
205
20617 July 2020. Summary of changes for version 20200717:
207
208This release is available at https://acpica.org/downloads
209
210
2111) ACPICA kernel-resident subsystem:
212
213Do not increment OperationRegion reference counts for field units. Recent
214server firmware has revealed that this reference count can overflow on
215large servers that declare many field units (thousands) under the same
216OperationRegion. This occurs because each field unit declaration will add
217a reference count to the source OperationRegion. This release solves the
218reference count overflow for OperationRegion objects by preventing
219fieldUnits from incrementing their parent OperationRegion's reference
220count.
221
222Replaced one-element arrays with flexible-arrays, which were introduced
223in C99.
224
225Restored the readme file containing the directions for generation of
226ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is
227located at: generate/msvc2017/readme.txt
228
2292) iASL Compiler/Disassembler and ACPICA tools:
230
231iASL: Fixed a regression found in version 20200214. Prevent iASL from
232emitting an extra byte of garbage data when control methods declared a
233single parameter type without using braces. This extra byte is known to
234cause a blue screen on the Windows AML interpreter.
235
236iASL: Made a change to allow external declarations to specify the type of
237a named object even when some name segments are not defined.
238This change allows the following ASL code to compile (When DEV0 is not
239defined or not defined yet):
240
241    External (\_SB.DEV0.OBJ1, IntObj)
242    External (\_SB.DEV0, DeviceObj)
243
244iASL: Fixed a problem where method names in "Alias ()" statement could be
245misinterpreted. They are now interpreted correctly as method invocations.
246
247iASL: capture a method parameter count (Within the Method info segment,
248as well as the argument node) when using parameter type lists.
249
250----------------------------------------
251
252
25328 May 2020. Summary of changes for version 20200528:
254
255
2561) ACPICA kernel-resident subsystem:
257
258Removed old/obsolete Visual Studio files which were used to build the
259Windows versions of the ACPICA tools. Since we have moved to Visual
260Studio 2017, we are no longer supporting Visual Studio 2006 and 2009
261project files. The new subdirectory and solution file are located at:
262
263    acpica/generate/msvc2017/AcpiComponents.sln
264
265
2662) iASL Compiler/Disassembler and ACPICA tools:
267
268iASL: added support for a new OperationRegion Address Space (subtype):
269PlatformRtMechanism. Support for this new keyword is being released for
270early prototyping. It will appear in the next release of the ACPI
271specification.
272
273iASL: do not optimize the NameString parameter of the CondRefOf operator.
274In the previous iASL compiler release, the NameString parameter of the
275CondRefOf was optimized. There is evidence that some implementations of
276the AML interpreter do not perform the recursive search-to-parent search
277during the execution of the CondRefOf operator. Therefore, the CondRefOf
278operator behaves differently when the NameString parameter is a single
279name segment (a NameSeg) as opposed to a full NamePath (starting at the
280root scope) or a NameString containing parent prefixes.
281
282iASL: Prevent an inadvertent remark message. This change prevents a
283remark if within a control method the following exist:
2841) An Operation Region is defined, and
2852) A Field operator is defined that refers to the region.
286This happens because at the top level, the Field operator does not
287actually create a new named object, it simply references the operation
288region.
289
290Removed support for the acpinames utility. The acpinames was a simple
291utility used to populate and display the ACPI namespace without executing
292any AML code. However, ACPICA now supports executable opcodes outside of
293control methods. This means that executable AML opcodes such as If and
294Store opcodes need to be executed during table load. Therefore, acpinames
295would need to be updated to match the same behavior as the acpiexec
296utility and since acpiexec can already dump the entire namespace (via the
297'namespace' command), we no longer have the need to maintain acpinames.
298
299    In order to dump the contents of the ACPI namespace using acpiexec,
300execute the following command from the command line:
301
302        acpiexec -b "n" [aml files]
303
304----------------------------------------
305
306
30730 April 2020. Summary of changes for version 20200430:
308
3091) ACPICA kernel-resident subsystem:
310
311Cleaned up the coding style of a couple of global variables
312(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers.
313AcpiProtocolLengths was made static, and the definition of
314AcpiGbl_NextCmdNum was moved to acglobal.h.
315
316
3172) iASL Compiler/Disassembler and ACPICA tools:
318
319iASL DataTable Compiler:  Fixed a segfault on errors that aren't directly
320associated with a field.
321
322Disassembler: has been made more resilient so that it will continue to
323parse AML even if the AML generates ACPI namespace errors. This enables
324iASL to disassemble some AML that may have been compiled using older
325versions of iASL that no longer compile with newer versions of iASL.
326
327iASL: Fixed the required parameters for _NIH and _NIG. Previously, there
328was a mixup where _NIG required one parameter and _NIH required zero
329parameters. This change swaps these parameter requirements. Now it is
330required that _NIH must be called with one parameter and _NIG requires
331zero parameters.
332
333iASL: Allow use of undefined externals as long as they are protected by
334an if (CondRefOf (...)) block when compiling multiple definition blocks.
335
336iASL: Fixed the type override behavior of named objects that are declared
337as External. External declarations will no longer override the type of
338the actual definition if it already exists.
339
340AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable
341command line wildcard support on Windows. Note: the AcpiNames utility is
342essentially redundant with the AcpiExec utility (using the "namespace"
343command) and is therefore deprecated. It will be removed in future
344releases of ACPICA.
345
346Disassembler: ignore AE_ALREADY_EXISTS status when parsing create*
347operators. The disassembler is intended to emit existing ASL code as-is.
348Therefore, error messages emitted during disassembly should be ignored or
349handled in a way such that the disassembler can continue to parse the
350AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op
351parsing for create operators in order to complete parsing ASL termlists.
352
353iASL DataTable Compiler: IVRS table: fix potentially uninitialized
354variable warning. Some compilers catch potential uninitialized variables.
355This is done by examining branches of if/else statements. This change
356replaces an "else if" with an "else" to fix the uninitialized variable
357warning.
358
359
360----------------------------------------
36126 March 2020. Summary of changes for version 20200326:
362
363
3641) ACPICA kernel-resident subsystem:
365
366Performed a code clean-up to prevent build errors on early versions of
367GCC-10.
368
369Added the NHLT table signature. iASL data table compiler/disassembler
370support for this table is coming soon.
371
372
3732) iASL Compiler/Disassembler and ACPICA tools:
374
375AcpiExec: Fixed several problems with the namespace initialization file
376(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS
377errors, several seg faults, and enhancements to line parsing within the
378init file. In addition, each object found in the init file and it's new
379value is displayed, as well as any such entries that do not have a
380corresponding name in the namespace. For reference, the syntax for the
381various supported data types are presented below:
382	PCHG 0x777788889999BBBB	// Integer
383	\DEV1.STR1 "XYZ"			// String
384	BUF1 (88 99 AA)			// Buffer
385	PKG1 [0x1111 0x2222]		// Package
386	\BF1 0x7980				// BufferField
387	RCRV 0x0123456789ABCDEF	// Field Unit
388
389iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro
390can be used anywhere in a given ASL file to configure iASL to expect an
391iASL compiler error code on the line where this macro was placed. If the
392error code does not exist, an error is generated. This is intended to be
393used for ACPICA's ASL test suite, but can be used by ASL developers as
394well.
395
396iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD
397IVRS table parsing supported only IVHD type 10h structures. Parsing an
398IVHD type 11h caused the iasl to report unknown subtable type. Add
399necessary structure definition for IVHD type 11h and apply correct
400parsing method based on subtable type. Micha? ?ygowski.
401
402iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name
403According to AMD IOMMU Specification Revision 3.05 the reserved field
404should be IOMMU Feature Reporting. Change the name of the field to the
405correct one. Micha? ?ygowski.
406
407acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch
408based on suggestions by David Seifert and Benjamin Berg.
409
410iASL: table compiler: removed an unused variable (DtCompilerParserResult)
411causing linking errors. Patch based on suggestions by David Seifert and
412Benjamin Berg.
413
414iASL: table compiler: make LexBuffer static to avoid linking errors in
415newer compilers. Patch based on suggestions by David Seifert and Benjamin
416Berg.
417
418iASL: fixed type matching between External and Named objects. External
419object types can only be expressed with ACPI object type values that are
420defined in the ACPI spec. However, iASL uses ACPI object type values that
421are local to ACPICA in addition to the values defined in the ACPI spec.
422This change implements type matching to map some object type values
423specific to ACPICA to ones that are defined in the ACPI spec.
424
425iASL: Dropped the type mismatch compiler error that can arise from
426External declarations to a warning. This warning can occur when there is
427a type difference between the external declaration and the actual object
428declaration (when compiling multiple files/modules simultaneously).
429
430iASL: removed an incorrect error message regarding externals. This change
431removes an incorrect error that is emitted when a duplicate external
432declaration does not contain a type that opens a scope. This is incorrect
433because the duplicate external with conflicting types are already caught
434by iASL and it doesn't make any sense to enforce what this conflicting
435type should be.
436
437AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be
438surrounded by parens. Otherwise, a logical statement that applies a
439logical not operator to this macro could result in a computation that
440applies the operator to the left side of the logical and but not the
441right. Reported-by: John Levon <john.levon@joyent.com>
442
443Fixed a problem with the local version of sprint(): On 32-bit, the
444provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX,
445String + Size will wrap, meaning End < Start, and
446AcpiUtBoundStringOutput() will never output anything as a result. The
447symptom seen of this was acpixtract failing to output anything -- with a
448custom build that included utprint.c. Signed-off-by: John Levon
449<john.levon@joyent.com>
450
451iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the
452ACPI specification.
453
454
455----------------------------------------
45614 February 2020. Summary of changes for version 20200214:
457
458
4591) ACPICA kernel-resident subsystem:
460
461Enable sleep button on ACPI legacy wake:  Hibernation (S4) is triggered
462in a guest when it receives a sleep trigger from the hypervisor. When the
463guest resumes from this power state, it does not see the SleepEnabled
464bit. In other words, the sleepHibernation (S4) is triggered in a guest
465when it receives a sleep trigger from the hypervisor. When the guest
466resumes from this power state, it does not see the SleepEnabled bit. In
467other words, the sleep button is not enabled on waking from an S4 state.
468This causes subsequent invocation of sleep state to fail since the
469guest.button is not enabled on waking from an S4 state. This causes
470subsequent invocation of sleep state to fail in the guest. Fix this
471problem by enabling the sleep button in ACPI legacy wake. From Anchal
472Agarwal <anchalag@amazon.com>.
473
474Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used
475for checking the status bits of all enabled GPEs in one go. It is needed
476to distinguish spurious SCIs from genuine ones when deciding whether or
477not to wake up the system from suspend-to-idle.
478
479Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be
480using HOST in their environment to represent the host name for their
481machines. Avoid this problem by renaming this variable from HOST to
482ACPI_HOST.
483
484MSVC 2017 project files: Enable multiprocessor generation to improve
485build performance.
486
487Added a macro to get the byte width of a Generic Address structure. New
488ACPI_ACCESS_BYTE_WIDTH is in addition to the existing
489ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg.
490
491
4922) iASL Compiler/Disassembler and ACPICA tools:
493
494iASL: Implemented full support for the (optional, rarely used) ReturnType
495and ParameterTypesList for the Method, Function, and External operators.
496For Method declarations, the number of individual ParameterTypes must
497match the declaration of the number of arguments (NumArgs). This also
498Fixes a problem with the External operator where extra/extraneous bytes
499were emitted in the AML code if the optional ReturnType/ParameterTypes
500were specified for a MethodObj declaration.
501New error message:
5021) Method NumArgs count does not match length of ParameterTypes list
503
504iASL: Implemented detection of type mismatches between External
505declarations and named object declarations. Also, detect type mismatches
506between multiple External declarations of the same Name.
507New error messages:
5081) Type mismatch between external declaration and actual object
509declaration detected
5102) Type mismatch between multiple external declarations detected
511
512iASL: Implemented new error messages for External operators that specify
513a ReturnType and/or ParameterTypesList for any object type other than
514control methods (MethodObj).
515New error messages:
5161) Return type is only allowed for Externals declared as MethodObj
5172) Parameter type is only allowed for Externals declared as MethodObj
518
519iASL: Implemented two new remark/warning messages for ASL code that
520creates named objects from within a control method. This is very
521inefficient since the named object must be created and deleted each time
522the method is executed.
523New messages:
5241) Creation of named objects within a method is highly inefficient, use
525globals or method local variables instead (remark)
5262) Static OperationRegion should be declared outside control method
527(warning)
528
529iASL: Improved illegal forward reference detection by adding support to
530detect forward-reference method invocations.
531
532iASL: Detect and issue an error message for NameStrings that contain too
533many individual NameSegs (>255). This is an AML limitation that is
534defined in the ACPI specification.
535New message:
5361) NameString contains too many NameSegs (>255)
537
538acpidump: windows: use GetSystemFirmwareTable API for all tables except
539SSDT. By using this API, acpidump is able to get all tables in the XSDT
540
541iASL: Removed unused parser file and updated msvc2017 project files.
542Removed the obsolete AslCompiler.y from the repository.
543
544iASL: msvc2017: Fixed macros in the file dependency list to prevent
545unnecessary rebuilds. Replace %(Directory) with %(RelativeDir).
546
547Disassembler: Prevent spilling error messages to the output file. All
548errors are directed to the console instead. These error messages
549prevented re-compilation of the resulting disassembled ASL output file
550(.DSL).
551
552
553----------------------------------------
55410 January 2020. Summary of changes for version 20200110:
555
556
5571) ACPICA kernel-resident subsystem:
558
559Updated all copyrights to 2020. This affects all ACPICA source code
560modules.
561
562
5632) iASL Compiler/Disassembler and ACPICA tools:
564
565ASL test suite (ASLTS): Updated all copyrights to 2020.
566
567Tools and utilities: Updated all signon copyrights to 2020.
568
569iASL: fix forward reference analysis for field declarations. Fixes
570forward reference analysis for field declarations by searching the
571parent scope for the named object when the object is not present in
572the current scope.
573
574iASL: Improved the error output for ALREADY_EXISTS errors. Now, the
575full pathname of the name that already exists is printed.
576
577iASL: Enhance duplicate Case() detection for buffers. Add check for
578buffers with no initializer list (these buffers will be filled with
579zeros at runtime.)
580
581
582----------------------------------------
58313 December 2019. Summary of changes for version 20191213:
584
585
5861) ACPICA kernel-resident subsystem:
587
588Return a Buffer object for all fields created via the CreateField
589operator. Previously, an Integer would be returned if the size of
590the field was less than or equal to the current size of an Integer.
591Although this goes against the ACPI specification, it provides
592compatibility with other ACPI implementations. Also updated the
593ASLTS test suite to reflect this new behavior.
594
5952) iASL Compiler/Disassembler and ACPICA tools:
596
597iASL: Implemented detection of (and throw an error for) duplicate
598values for Case statements within a single Switch statement. Duplicate
599Integers, Strings, and Buffers are supported.
600
601iASL: Fix error logging issue during multiple file compilation --
602Switch to the correct input file during error node creation.
603
604iASL: For duplicate named object creation, now emit an error instead
605of a warning - since this will cause a runtime error.
606
607AcpiSrc: Add unix line-ending support for non-Windows builds.
608
609iASL: Add an error condition for an attempt to create a NameString
610with > 255 NameSegs (the max allowable via the AML definition).
611
612
613----------------------------------------
61418 October 2019. Summary of changes for version 20191018:
615
616
6171) ACPICA kernel-resident subsystem:
618
619Debugger: added a new command: ?Fields [address space ID]?. This command
620dumps the contents of all field units that are defined within the
621namespace with a particular address space ID.
622
623Modified the external interface AcpiLoadTable() to return a table index.
624This table index can be used for unloading a table for debugging.
625    ACPI_STATUS
626    AcpiLoadTable (
627        ACPI_TABLE_HEADER       *Table,
628        UINT32                  *TableIndex))
629
630Implemented a new external interface: AcpiUnloadTable() This new function
631takes a table index as an argument and unloads the table. Useful for
632debugging only.
633    ACPI_STATUS
634    AcpiUnloadTable (
635        UINT32                  TableIndex))
636
637Ported the AcpiNames utility to use the new table initialization
638sequence. The utility was broken before this change. Also, it was
639required to include most of the AML interpreter into the utility in order
640to process table initialization (module-level code execution.)
641
642Update for results from running Clang V8.0.1. This fixes all "dead
643assignment" warnings. There are still several "Dereference of NULL
644pointer" warnings, but these have been found to be false positive
645warnings.
646
647
6482) iASL Compiler/Disassembler and ACPICA tools:
649
650iASL: numerous table compiler changes to ensure that the usage of
651yacc/bison syntax is POSIX-compliant.
652
653iASL/disassembler: several simple bug fixes in the data table
654disassembler.
655
656Acpiexec: expanded the initialization file (the -fi option) to initialize
657strings, buffers, packages, and field units.
658
659
660----------------------------------------
66116 August 2019. Summary of changes for version 20190816:
662
663This release is available at https://acpica.org/downloads
664
665
6661) ACPICA kernel-resident subsystem:
667
668Modified the OwnerId mechanism to allow for more Owner Ids. The previous
669limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT
670exceptions on machines with a large number of initialization threads,
671many CPU cores and nested initialization control methods.
672
673Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for
674checking if the given GPE (as represented by a GPE device handle and a
675GPE number) is currently active and dispatching it (if that's the case)
676outside of interrupt context.
677
678Table load: exit the interpreter before initializing objects within the
679new table This prevents re-acquiring the interpreter lock when loading
680tables
681
682Added the "Windows 2019" string to the _OSI support (version 1903). Jung-
683uk Kim
684
685Macros: removed pointer math on a null pointer. Causes warnings on some
686compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR
687instead of using arithmetic.
688
689Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used
690across all "printf-like" internal functions. Also, cleanup all calls to
691such functions (both in 32-bit mode and 64-bit mode) now that they are
692analyzed by the gcc compiler via ACPI_PRINTF_LIKE.
693
694
6952) iASL Compiler/Disassembler and ACPICA tools:
696
697iASL: implemented a new data table compiler flex/bison front-end. This
698change is internal and is not intended to result in changes to the
699compiled code. This new compiler front-end can be invoked using the -tp
700option for now, until the old mechanism is removed.
701
702ASLTS: Implemented a new data table compiler test suite. This test suite
703generates all table templates and compile/disassemble/re-compile/binary-
704compare each file.
705
706iASL: return -1 if AML files were not generated due to compiler errors
707
708iASL: added a warning on use of the now-legacy ASL Processor () keyword.
709
710iASL: added an error on _UID object declaration that returns a String
711within a Processor () declaration. A _UID for a processor must be an
712Integer.
713
714iASL: added a null terminator to name strings that consist only of
715multiple parent prefixes (^)
716
717iASL: added support to compile both ASL and data table files in a single
718command.
719
720Updated the tool generation project files that were recently migrated to
721MSVC 2017 to eliminate all new warnings. The new project files appear in
722the directory \acpica\generate\msvc2017. This change effectively
723deprecates the older project files in \acpica\generate\msvc9.
724
725
726----------------------------------------
72703 July 2019. Summary of changes for version 20190703:
728
729
7301) ACPICA kernel-resident subsystem:
731
732Remove legacy module-level support code. There were still some remnants
733of the legacy module-level code executions. Since we no longer support
734this option, this is essentially dead code and has been removed from the
735ACPICA source.
736
737iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
738scope. If these named objects are declared outside the root scope, they
739will not be invoked by any host Operating System.
740
741Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC
742one) can be enabled in two situations. First, the GPEs with existing _Lxx
743and _Exx methods are enabled implicitly by ACPICA during system
744initialization.  Second, the GPEs without these methods (like GPEs listed
745by _PRW objects for wakeup devices) need to be enabled directly by the
746code that is going to use them (e.g. ACPI power management or device
747drivers).
748
749In the former case, if the status of a given GPE is set to start with,
750its handler method (either _Lxx or _Exx) needs to be invoked to take care
751of the events (possibly) signaled before the GPE was enabled. In the
752latter case, however, the first caller of AcpiEnableGpe() for a given GPE
753should not be expected to care about any events that might be signaled
754through it earlier.  In that case, it is better to clear the status of
755the GPE before enabling it, to prevent stale events from triggering
756unwanted actions (like spurious system resume, for example).
757
758For this reason, modify AcpiEvAddGpeReference() to take an additional
759boolean argument indicating whether or not the GPE status needs to be
760cleared when its reference counter changes from zero to one and make
761AcpiEnableGpe() pass TRUE to it through that new argument.
762
763
7642) iASL Compiler/Disassembler and ACPICA tools:
765
766The tool generation process has been migrated to MSVC 2017, and all
767project files have been upgraded. The new project files appear in the
768directory \acpica\generate\msvc2017. This change effectively deprecates
769the older project files in \acpica\generate\msvc9.
770
771iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
772scope. If these named objects are declared outside the root scope, they
773will not be invoked by any host Operating System
774
775----------------------------------------
77609 May 2019. Summary of changes for version 20190509:
777
778
7791) ACPICA kernel-resident subsystem:
780
781Revert commit  6c43e1a ("ACPICA: Clear status of GPEs before enabling
782them") that causes problems with Thunderbolt controllers to occur if a
783dock device is connected at init time (the xhci_hcd and thunderbolt
784modules crash which prevents peripherals connected through them from
785working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA:
786Dispatch active GPEs at init time") to get undone, so the problem
787addressed by commit ecc1165b8b74 appears again as a result of it.
788
789
7902) iASL Compiler/Disassembler and ACPICA tools:
791
792Reverted iASL: Additional forward reference detection. This change
793reverts forward reference detection for field declarations. The feature
794unintentionally emitted AML bytecode with incorrect package lengths for
795some ASL code related to Fields and OperationRegions. This malformed AML
796can cause systems to crash
797during boot. The malformed AML bytecode is emitted in iASL version
79820190329 and 20190405.
799
800iASL: improve forward reference detection. This change improves forward
801reference detection for named objects inside of scopes. If a parse object
802has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to
803a named object that is declared later in the AML bytecode. This is
804allowed if the reference is inside of a method and the declaration is
805outside of a method like so:
806
807DefinitionBlock(...)
808{
809    Method (TEST)
810    {
811        Return (NUM0)
812    }
813    Name (NUM0,0)
814}
815
816However, if the declaration and reference are both in the same method or
817outside any methods, this is a forward reference and should be marked as
818an error because it would result in runtime errors.
819
820DefinitionBlock(...)
821{
822    Name (BUFF, Buffer (NUM0) {}) // Forward reference
823    Name (NUM0, 0x0)
824
825    Method (TEST)
826    {
827        Local0 = NUM1
828        Name (NUM1, 0x1) // Forward reference
829        return (Local0)
830    }
831}
832
833iASL: Implemented additional buffer overflow analysis for BufferField
834declarations. Check if a buffer index argument to a create buffer field
835operation is beyond the end of the target buffer.
836
837This affects these AML operators:
838
839   AML_CREATE_FIELD_OP
840   AML_CREATE_BIT_FIELD_OP
841   AML_CREATE_BYTE_FIELD_OP
842   AML_CREATE_WORD_FIELD_OP
843   AML_CREATE_DWORD_FIELD_OP
844   AML_CREATE_QWORD_FIELD_OP
845
846 There are three conditions that must be satisfied in order to allow this
847validation at compile time:
848
849   1) The length of the target buffer must be an integer constant
850   2) The index specified in the create* must be an integer constant
851   3) For CreateField, the bit length argument must be non-zero.
852
853Example:
854    Name (BUF1, Buffer() {1,2})
855    CreateField (BUF1, 7, 9, CF03)  // 3: ERR
856
857dsdt.asl     14:     CreateField (BUF1, 7, 9, CF03)  // 3: ERR
858Error    6165 -                           ^ Buffer index beyond end of
859target buffer
860
861
862----------------------------------------
86305 April 2019. Summary of changes for version 20190405:
864
865
8661) ACPICA kernel-resident subsystem:
867
868Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop
869unconditionally clearing ACPI IRQs during suspend/resume") was added
870earlier to stop clearing of event status bits unconditionally on suspend
871and resume paths. Though this change fixed an issue on suspend path, it
872introduced regressions on several resume paths. In the case of S0ix,
873events are enabled as part of device suspend path. If status bits for the
874events are set when they are enabled, it could result in premature wake
875from S0ix. If status is cleared for any event that is being enabled so
876that any stale events are cleared out. In case of S0ix, events are
877enabled as part of device suspend path. If status bits for the events are
878set when they are enabled, it could result in premature wake from S0ix.
879
880This change ensures that status is cleared for any event that is being
881enabled so that any stale events are cleared out.
882
883
8842) iASL Compiler/Disassembler and ACPICA tools:
885
886iASL: Implemented an enhanced multiple file compilation that combines
887named objects from all input files to a single namespace. With this
888feature, any unresolved external declarations as well as duplicate named
889object declarations can be detected during compilation rather than
890generating errors much later at runtime. The following commands are
891examples that utilize this feature:
892    iasl dsdt.asl ssdt.asl
893    iasl dsdt.asl ssdt1.asl ssdt2.asl
894    iasl dsdt.asl ssdt*.asl
895
896----------------------------------------
89729 March 2019. Summary of changes for version 20190329:
898
899
9001) ACPICA kernel-resident subsystem:
901
902Namespace support: Remove the address nodes from global list after method
903termination. The global address list contains pointers to namespace nodes
904that represent Operation Regions. This change properly removes Operation
905Region namespace nodes that are declared dynamically during method
906execution.
907
908Linux: Use a different debug default than ACPICA. There was a divergence
909between Linux and the ACPICA codebases. In order to resolve this
910divergence, Linux now declares its own debug default in aclinux.h
911
912Renamed some internal macros to improve code understanding and
913maintenance. The macros below all operate on single 4-character ACPI
914NameSegs, not generic strings (old -> new):
915    ACPI_NAME_SIZE    -> ACPI_NAMESEG_SIZE
916    ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG
917    ACPI_MOVE_NAME    -> ACPI_COPY_NAMESEG
918
919Fix for missing comma in array declaration for the AcpiGbl_GenericNotify
920table.
921
922Test suite: Update makefiles, add PCC operation region support
923
924
9252) iASL Compiler/Disassembler and Tools:
926
927iASL: Implemented additional illegal forward reference detection. Now
928detect and emit an error upon detection of a forward reference from a
929Field to an Operation Region. This will fail at runtime if allowed to
930pass the compiler.
931
932AcpiExec: Add an address list check for dynamic Operation Regions. This
933feature performs a sanity test for each node the global address list.
934This is done in order to ensure that all dynamic operation regions are
935properly removed from the global address list and no dangling pointers
936are left behind.
937
938Disassembler: Improved generation of resource pathnames. This change
939improves the code that generates resource descriptor and resource tag
940pathnames. The original code used a bunch of str* C library functions
941that caused warnings on some compilers.
942
943iASL: Removed some uses of strncpy and replaced with memmove. The strncpy
944function can overwrite buffers if the calling code is not very careful.
945In the case of generating a module/table header, use of memmove is a
946better implementation.
947
948
9493) Status of new features that have not been completed at this time:
950
951iASL: Implementing an enhanced multiple file compilation into a single
952namespace feature (Status): This feature will be released soon, and
953allows multiple ASL files to be compiled into the same single namespace.
954By doing so, any unresolved external declarations as well as duplicate
955named object declarations can be detected during compilation (rather than
956later during runtime). The following commands are examples that utilize
957this feature:
958    iasl dsdt.asl ssdt.asl
959    iasl dsdt.asl ssdt1.asl ssdt2.asl
960    iasl dsdt.asl ssdt*.asl
961
962ASL tutorial status: Feedback is being gathered internally and the
963current plan is to publish this tutorial on the ACPICA website after a
964final review by a tech writer.
965
966----------------------------------------
96715 February 2019. Summary of changes for version 20190215:
968
969
9700) Support for ACPI specification version 6.3:
971
972Add PCC operation region support for the AML interpreter. This adds PCC
973operation region support in the AML interpreter and a default handler for
974acpiexec. The change also renames the PCC region address space keyword to
975PlatformCommChannel.
976
977Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG.
978These methods provide OSPM with health information and device boot
979status.
980
981PDTT: Add TriggerOrder to the PCC Identifier structure. The field value
982defines if the trigger needs to be invoked by OSPM before or at the end
983of kernel crash dump processing/handling operation.
984
985SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT
986is used for describing devices such as heterogeneous processors,
987accelerators, GPUs, and IO devices with integrated compute or DMA
988engines.
989
990MADT: Add support for statistical profiling in GICC. Statistical
991profiling extension (SPE) is an architecture-specific feature for ARM.
992
993MADT: Add online capable flag. If this bit is set, system hardware
994supports enabling this processor during OS runtime.
995
996New Error Disconnect Recover Notification value. There are a number of
997scenarios where system Firmware in collaboration with hardware may
998disconnect one or more devices from the rest of the system for purposes
999of error containment. Firmware can use this new notification value to
1000alert OSPM of such a removal.
1001
1002PPTT: New additional fields in Processor Structure Flags. These flags
1003provide more information about processor topology.
1004
1005NFIT/Disassembler: Change a field name from "Address Range" to "Region
1006Type".
1007
1008HMAT updates: make several existing fields to be reserved as well as
1009rename subtable 0 to "memory proximity domain attributes".
1010
1011GTDT: Add support for new GTDT Revision 3. This revision adds information
1012for the EL2 timer.
1013
1014iASL: Update the HMAT example template for new fields.
1015
1016iASL: Add support for the new revision of the GTDT (Rev 3).
1017
1018
10191) ACPICA kernel-resident subsystem:
1020
1021AML Parser: fix the main AML parse loop to correctly skip erroneous
1022extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2-
1023byte extended opcodes. If an error occurs during an AML table load, the
1024AML parser will continue loading the table by skipping the offending
1025opcode. This implements a "load table at any cost" philosophy.
1026
1027
10282) iASL Compiler/Disassembler and Tools:
1029
1030iASL: Add checks for illegal object references, such as a reference
1031outside of method to an object within a method. Such an object is only
1032temporary.
1033
1034iASL: Emit error for creation of a zero-length operation region. Such a
1035region is rather pointless. If encountered, a runtime error is also
1036implemented in the interpreter.
1037
1038Debugger: Fix a possible fault with the "test objects" command.
1039
1040iASL: Makefile: support parent directory filenames containing embedded
1041spaces.
1042
1043iASL: Update the TPM2 template to revision 4.
1044
1045iASL: Add the ability to report specific warnings or remarks as errors.
1046
1047Disassembler: Disassemble OEMx tables as actual AML byte code.
1048Previously, these tables were treated as "unknown table".
1049
1050iASL: Add definition and disassembly for TPM2 revision 3.
1051
1052iASL: Add support for TPM2 rev 3 compilation.
1053
1054
1055----------------------------------------
105608 January 2019. Summary of changes for version 20190108:
1057
1058
10591) ACPICA kernel-resident subsystem:
1060
1061Updated all copyrights to 2019. This affects all source code modules.
1062
1063
10642) iASL Compiler/Disassembler and Tools:
1065
1066ASL test suite (ASLTS): Updated all copyrights to 2019.
1067
1068Tools: Updated all signon copyrights to 2019.
1069
1070AcpiExec: Added a new option to dump extra information concerning any
1071memory leaks detected by the internal object/cache tracking mechanism. -
1072va
1073
1074iASL: Updated the table template for the TPM2 table to the newest version
1075of the table (Revision 4)
1076
1077
1078----------------------------------------
107913 December 2018. Summary of changes for version 20181213:
1080
1081
10821) ACPICA Kernel-resident Subsystem:
1083
1084Fixed some buffer length issues with the GenericSerialBus, related to two
1085of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,
1086which are rarely seen in the field. For these, the LEN field of the ASL
1087buffer is now ignored. Hans de Goede
1088
1089Implemented a new object evaluation trace mechanism for control methods
1090and data objects. This includes nested control methods. It is
1091particularly useful for examining the ACPI execution during system
1092initialization since the output is relatively terse. The flag below
1093enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:
1094   #define ACPI_LV_EVALUATION          0x00080000
1095
1096Examples:
1097   Enter evaluation       :  _SB.PCI0._INI (Method)
1098   Exit evaluation        :  _SB.PCI0._INI
1099   Enter evaluation       :  _OSI (Method)
1100   Exit evaluation        :  _OSI
1101   Enter evaluation       :  _SB.PCI0.TEST (Method)
1102   Nested method call     :     _SB.PCI0.NST1
1103   Exit nested method     :     _SB.PCI0.NST1
1104   Exit evaluation        :  _SB.PCI0.TEST
1105
1106Added two recently-defined _OSI strings. See
1107https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-
1108osi.
1109   "Windows 2018"
1110   "Windows 2018.2"
1111
1112Update for buffer-to-string conversions via the ToHexString ASL operator.
1113A "0x" is now prepended to each of the hex values in the output string.
1114This provides compatibility with other ACPI implementations. The ACPI
1115specification is somewhat vague on this issue.
1116   Example output string after conversion:
1117"0x01,0x02,0x03,0x04,0x05,0x06"
1118
1119Return a run-time error for TermArg expressions within individual package
1120elements. Although this is technically supported by the ASL grammar,
1121other ACPI implementations do not support this either. Also, this fixes a
1122fault if this type of construct is ever encountered (it never has been).
1123
1124
11252) iASL Compiler/Disassembler and Tools:
1126
1127iASL: Implemented a new compile option (-ww) that will promote individual
1128warnings and remarks to errors. This is intended to enhance the firmware
1129build process.
1130
1131AcpiExec: Implemented a new command-line option (-eo) to support the new
1132object evaluation trace mechanism described above.
1133
1134Disassembler: Added support to disassemble OEMx tables as AML/ASL tables
1135instead of a "unknown table" message.
1136
1137AcpiHelp: Improved support for the "special" predefined names such as
1138_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be
1139used for "xx" and "x".
1140
1141----------------------------------------
114231 October 2018. Summary of changes for version 20181031:
1143
1144
1145An Operation Region regression was fixed by properly adding address
1146ranges to a global list during initialization. This allows OS to
1147accurately check for overlapping regions between native devices (such as
1148PCI) and Operation regions as well as checking for region conflicts
1149between two Operation Regions.
1150
1151Added support for the 2-byte extended opcodes in the code/feature that
1152attempts to continue parsing during the table load phase. Skip parsing
1153Device declarations (and other extended opcodes) when an error occurs
1154during parsing. Previously, only single-byte opcodes were supported.
1155
1156Cleanup: Simplified the module-level code support by eliminating a
1157useless global variable (AcpiGbl_GroupModuleLeveCode).
1158
1159
11602) iASL Compiler/Disassembler and Tools:
1161
1162iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE
1163could cause a fault in the preprocessor. This was an inadvertent side-
1164effect from moving more allocations/frees to the local cache/memory
1165mechanism.
1166
1167iASL: Enhanced error detection by validating that all NameSeg elements
1168within a NamePatch actually exist. The previous behavior was spotty at
1169best, and such errors could be improperly ignored at compiler time (never
1170at runtime, however. There are two new error messages, as shown in the
1171examples below:
1172
1173dsdt.asl     33:     CreateByteField (TTTT.BXXX, 1, CBF1)
1174Error    6161 -                              ^ One or more objects within
1175the Pathname do not exist (TTTT.BXXX)
1176
1177dsdt.asl     34:     CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)
1178Error    6160 -        One or more prefix Scopes do not exist ^
1179(BBBB.CBF1)
1180
1181iASL: Disassembler/table-compiler: Added support for the static data
1182table TPM2 revision 3 (an older version of TPM2). The support has been
1183added for the compiler and the disassembler.
1184
1185Fixed compilation of DOS format data table file on Unix/Linux systems.
1186iASL now properly detects line continuations (\) for DOS format data
1187table definition language files on when executing on Unix/Linux.
1188
1189----------------------------------------
119003 October 2018. Summary of changes for version 20181003:
1191
1192
11932) iASL Compiler/Disassembler and Tools:
1194
1195Fixed a regression introduced in version 20180927 that could cause the
1196compiler to fault, especially with NamePaths containing one or more
1197carats (^). Such as: ^^_SB_PCI0
1198
1199Added a new remark for the Sleep() operator when the sleep time operand
1200is larger than one second. This is a very long time for the ASL/BIOS code
1201and may not be what was intended by the ASL writer.
1202
1203----------------------------------------
120427 September 2018. Summary of changes for version 20180927:
1205
1206
12071) ACPICA kernel-resident subsystem:
1208
1209Updated the GPE support to clear the status of all ACPI events when
1210entering any/all sleep states in order to avoid premature wakeups. In
1211theory, this may cause some wakeup events to be missed, but the
1212likelihood of this is small. This change restores the original behavior
1213of the ACPICA code in order to fix a regression seen from the previous
1214"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.
1215This regression could cause some systems to incorrectly wake immediately.
1216
1217Updated the execution of the _REG methods during initialization and
1218namespace loading to bring the behavior into closer conformance to the
1219ACPI specification and other ACPI implementations:
1220
1221From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):
1222    "Control methods must assume all operation regions are inaccessible
1223until the _REG(RegionSpace, 1) method is executed"
1224
1225    "The exceptions to this rule are:
12261.  OSPM must guarantee that the following operation regions are always
1227accessible:
1228    SystemIO operation regions.
1229    SystemMemory operation regions when accessing memory returned by the
1230System Address Map reporting interfaces."
1231
1232Since the state of both the SystemIO and SystemMemory address spaces are
1233defined by the specification to never change, this ACPICA change ensures
1234that now _REG is never called on them. This solves some problems seen in
1235the field and provides compatibility with other ACPI implementations. An
1236update to the upcoming new version of the ACPI specification will help
1237clarify this behavior.
1238
1239Updated the implementation of support for the Generic Serial Bus. For the
1240"bidirectional" protocols, the internal implementation now automatically
1241creates a return data buffer of the maximum size (255). This handles the
1242worst-case for data that is returned from the serial bus handler, and
1243fixes some problems seen in the field. This new buffer is directly
1244returned to the ASL. As such, there is no true "bidirectional" buffer,
1245which matches the ACPI specification. This is the reason for the "double
1246store" seen in the example ASL code in the specification, shown below:
1247
1248Word Process Call (AttribProcessCall):
1249    OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)
1250    Field(TOP1, BufferAcc, NoLock, Preserve)
1251    {
1252        FLD1, 8, // Virtual register at command value 1.
1253    }
1254
1255    Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer
1256                             // as BUFF
1257    CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)
1258
1259    Store(0x5416, DATA)               // Save 0x5416 into the data buffer
1260    Store(Store(BUFF, FLD1), BUFF)    // Invoke a write/read Process Call
1261transaction
1262                           // This is the "double store". The write to
1263                           // FLD1 returns a new buffer, which is stored
1264                           // back into BUFF with the second Store.
1265
1266
12672) iASL Compiler/Disassembler and Tools:
1268
1269iASL: Implemented detection of extraneous/redundant uses of the Offset()
1270operator within a Field Unit list. A remark is now issued for these. For
1271example, the first two of the Offset() operators below are extraneous.
1272Because both the compiler and the interpreter track the offsets
1273automatically, these Offsets simply refer to the current offset and are
1274unnecessary. Note, when optimization is enabled, the iASL compiler will
1275in fact remove the redundant Offset operators and will not emit any AML
1276code for them.
1277
1278    OperationRegion (OPR1, SystemMemory, 0x100, 0x100)
1279    Field (OPR1)
1280    {
1281        Offset (0),     // Never needed
1282        FLD1, 32,
1283        Offset (4),     // Redundant, offset is already 4 (bytes)
1284        FLD2, 8,
1285        Offset (64),    // OK use of Offset.
1286        FLD3, 16,
1287    }
1288dsdt.asl     14:         Offset (0),
1289Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1290operator
1291
1292dsdt.asl     16:         Offset (4),
1293Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1294operator
1295
1296----------------------------------------
129710 August 2018. Summary of changes for version 20180810:
1298
1299
13001) ACPICA kernel-resident subsystem:
1301
1302Initial ACPI table loading: Attempt to continue loading ACPI tables
1303regardless of malformed AML. Since migrating table initialization to the
1304new module-level code support, the AML interpreter rejected tables upon
1305any ACPI error encountered during table load. This is a problem because
1306non-serious ACPI errors during table load do not necessarily mean that
1307the entire definition block (DSDT or SSDT) is invalid. This change
1308improves the table loading by ignoring some types of errors that can be
1309generated by incorrect AML. This can range from object type errors, scope
1310errors, and index errors.
1311
1312Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs
1313during suspend/resume. The status of ACPI events is no longer cleared
1314when entering the ACPI S5 system state (power off) which caused some
1315systems to power up immediately after turning off power in certain
1316situations. This was a functional regression. It was fixed by clearing
1317the status of all ACPI events again when entering S5 (for system-wide
1318suspend or hibernation the clearing of the status of all events is not
1319desirable, as it might cause the kernel to miss wakeup events sometimes).
1320Rafael Wysocki.
1321
1322
13232) iASL Compiler/Disassembler and Tools:
1324
1325AcpiExec: Enhanced the -fi option (Namespace initialization file). Field
1326elements listed in the initialization file were previously initialized
1327after the table load and before executing module-level code blocks.
1328Recent changes in the module-level code support means that the table load
1329becomes a large control method execution. If fields are used within
1330module-level code and we are executing with the -fi option, the
1331initialization values were used to initialize the namespace object(s)
1332only after the table was finished loading. This change Provides an early
1333initialization of objects specified in the initialization file so that
1334field unit values are populated during the table load (not after the
1335load).
1336
1337AcpiExec: Fixed a small memory leak regression that could result in
1338warnings during exit of the utility. These warnings were similar to
1339these:
1340    0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]
1341    0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001
1342
1343----------------------------------------
134429 June 2018. Summary of changes for version 20180629:
1345
1346
13471) iASL Compiler/Disassembler and Tools:
1348
1349iASL: Fixed a regression related to the use of the ASL External
1350statement. Error checking for the use of the External() statement has
1351been relaxed. Previously, a restriction on the use of External meant that
1352the referenced named object was required to be defined in a different
1353table (an SSDT). Thus it would be an error to declare an object as an
1354external and then define the same named object in the same table. For
1355example:
1356    DefinitionBlock (...)
1357    {
1358        External (DEV1)
1359        Device (DEV1){...} // This was an error
1360    }
1361However, this behavior has caused regressions in some existing ASL code,
1362because there is code that depends on named objects and externals (with
1363the same name) being declared in the same table. This change will allow
1364the ASL code above to compile without errors or warnings.
1365
1366iASL: Implemented ASL language extensions for four operators to make some
1367of their arguments optional instead of required:
1368    1) Field (RegionName, AccessType, LockRule, UpdateRule)
1369    2) BankField (RegionName, BankName, BankValue,
1370                AccessType, LockRule, UpdateRule)
1371    3) IndexField (IndexName, DataName,
1372                AccessType, LockRule, UpdateRule)
1373For the Field operators above, the AccessType, LockRule, and UpdateRule
1374are now optional arguments. The default values are:
1375        AccessType: AnyAcc
1376        LockRule:   NoLock
1377        UpdateRule: Preserve
1378    4) Mutex (MutexName, SyncLevel)
1379For this operator, the SyncLevel argument is now optional. This argument
1380is rarely used in any meaningful way by ASL code, and thus it makes sense
1381to make it optional. The default value is:
1382        SyncLevel:  0
1383
1384iASL: Attempted use of the ASL Unload() operator now results in the
1385following warning:
1386    "Unload is not supported by all operating systems"
1387This is in fact very true, and the Unload operator may be completely
1388deprecated in the near future.
1389
1390AcpiExec: Fixed a regression for the -fi option (Namespace initialization
1391file. Recent changes in the ACPICA module-level code support altered the
1392table load/initialization sequence . This means that the table load has
1393become a large method execution of the table itself. If Operation Region
1394Fields are used within any module-level code and the -fi option was
1395specified, the initialization values were populated only after the table
1396had completely finished loading (and thus the module-level code had
1397already been executed). This change moves the initialization of objects
1398listed in the initialization file to before the table is executed as a
1399method. Field unit values are now initialized before the table execution
1400is performed.
1401
1402----------------------------------------
140331 May 2018. Summary of changes for version 20180531:
1404
1405
14061) ACPICA kernel-resident Subsystem:
1407
1408Implemented additional support to help ensure that a DSDT or SSDT is
1409fully loaded even if errors are incurred during the load. The majority of
1410the problems that are seen is the failure of individual AML operators
1411that occur during execution of any module-level code (MLC) existing in
1412the table. This support adds a mechanism to abort the current ASL
1413statement (AML opcode), emit an error message, and to simply move on to
1414the next opcode -- instead of aborting the entire table load. This is
1415different than the execution of a control method where the entire method
1416is aborted upon any error. The goal is to perform a very "best effort" to
1417load the ACPI tables. The most common MLC errors that have been seen in
1418the field are direct references to unresolved ASL/AML symbols (referenced
1419directly without the use of the CondRefOf operator to validate the
1420symbol). This new ACPICA behavior is now compatible with other ACPI
1421implementations.
1422
1423Interpreter: The Unload AML operator is no longer supported for the
1424reasons below. An AE_NOT_IMPLEMENTED exception is returned.
14251) A correct implementation on at least some hosts may not be possible.
14262) Other ACPI implementations do not correctly/fully support it.
14273) It requires host device driver support which is not known to exist.
1428    (To properly support namespace unload out from underneath.)
14294) This AML operator has never been seen in the field.
1430
1431Parser: Added a debug option to dump AML parse sub-trees as they are
1432being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is
1433ACPI_DB_PARSE_TREES.
1434
1435Debugger: Reduced the verbosity for errors incurred during table load and
1436module-level code execution.
1437
1438Completed an investigation into adding a namespace node "owner list"
1439instead of the current "owner ID" associated with namespace nodes. This
1440list would link together all nodes that are owned by an individual
1441control method. The purpose would be to enhance control method execution
1442by speeding up cleanup during method exit (all namespace nodes created by
1443a method are deleted upon method termination.) Currently, the entire
1444namespace must be searched for matching owner IDs if (and only if) the
1445method creates named objects outside of the local scope. However, by far
1446the most common case is that methods create objects locally, not outside
1447the method scope. There is already an ACPICA optimization in place that
1448only searches the entire namespace in the rare case of a method creating
1449objects elsewhere in the namespace. Therefore, it is felt that the
1450overhead of adding an additional pointer to each namespace node to
1451implement the owner list makes this feature unnecessary.
1452
1453
14542) iASL Compiler/Disassembler and Tools:
1455
1456iASL, Disassembler, and Template generator: Implemented support for
1457Revision D of the IORT table. Adds a new subtable that is used to specify
1458SMMUv3 PMCGs. rmurphy-arm.
1459
1460Disassembler: Restored correct table header validation for the "special"
1461ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI
1462table header and must be special-cased. This was a regression that has
1463been present for apparently a long time.
1464
1465AcpiExec: Reduced verbosity of the local exception handler implemented
1466within acpiexec. This handler is invoked by ACPICA upon any exceptions
1467generated during control method execution. A new option was added: -vh
1468restores the original verbosity level if desired.
1469
1470AcpiExec: Changed the default base from decimal to hex for the -x option
1471(set debug level). This simplifies the use of this option and matches the
1472behavior of the corresponding iASL -x option.
1473
1474AcpiExec: Restored a force-exit on multiple control-c (sigint)
1475interrupts. This allows program termination even if other issues cause
1476the control-c to fail.
1477
1478ASL test suite (ASLTS): Added tests for the recently implemented package
1479element resolution mechanism that allows forward references to named
1480objects from individual package elements (this mechanism provides
1481compatibility with other ACPI implementations.)
1482
1483
1484----------------------------------------
14858 May 2018. Summary of changes for version 20180508:
1486
1487
14881) ACPICA kernel-resident subsystem:
1489
1490Completed the new (recently deployed) package resolution mechanism for
1491the Load and LoadTable ASL/AML operators. This fixes a regression that
1492was introduced in version 20180209 that could result in an
1493AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table
1494(SSDT) that contains package objects.
1495
1496
14972) iASL Compiler/Disassembler and Tools:
1498
1499AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than
15001 MB. This change allows for table offsets within the acpidump file to be
1501up to 8 characters. These changes are backwards compatible with existing
1502acpidump files.
1503
1504
1505----------------------------------------
150627 April 2018. Summary of changes for version 20180427:
1507
1508
15091) ACPICA kernel-resident subsystem:
1510
1511Debugger: Added support for Package objects in the "Test Objects"
1512command. This command walks the entire namespace and evaluates all named
1513data objects (Integers, Strings, Buffers, and now Packages).
1514
1515Improved error messages for the namespace root node. Originally, the root
1516was referred to by the confusing string "\___". This has been replaced by
1517"Namespace Root" for clarification.
1518
1519Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin
1520Ian King <colin.king@canonical.com>.
1521
1522
15232) iASL Compiler/Disassembler and Tools:
1524
1525iASL: Implemented support to detect and flag illegal forward references.
1526For compatibility with other ACPI implementations, these references are
1527now illegal at the root level of the DSDT or SSDTs. Forward references
1528have always been illegal within control methods. This change should not
1529affect existing ASL/AML code because of the fact that these references
1530have always been illegal in the other ACPI implementation.
1531
1532iASL: Added error messages for the case where a table OEM ID and OEM
1533TABLE ID strings are longer than the ACPI-defined length. Previously,
1534these strings were simply silently truncated.
1535
1536iASL: Enhanced the -tc option (which creates an AML hex file in C,
1537suitable for import into a firmware project):
1538  1) Create a unique name for the table, to simplify use of multiple
1539SSDTs.
1540  2) Add a protection #ifdef in the file, similar to a .h header file.
1541With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd,
1542evan.lloyd@arm.com
1543
1544AcpiExec: Added a new option, -df, to disable the local fault handler.
1545This is useful during debugging, where it may be desired to drop into a
1546debugger on a fault.
1547
1548----------------------------------------
154913 March 2018. Summary of changes for version 20180313:
1550
1551
15521) ACPICA kernel-resident subsystem:
1553
1554Implemented various improvements to the GPE support:
1555
15561) Dispatch all active GPEs at initialization time so that no GPEs are
1557lost.
15582) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled
1559before devices are enumerated.
15603) Don't unconditionally clear ACPI IRQs during suspend/resume, so that
1561IRQs are not lost.
15624) Add parallel GPE handling to eliminate the possibility of dispatching
1563the same GPE twice.
15645) Dispatch any pending GPEs after enabling for the first time.
1565
1566AcpiGetObjectInfo - removed support for the _STA method. This was causing
1567problems on some platforms.
1568
1569Added a new _OSI string, "Windows 2017.2".
1570
1571Cleaned up and simplified the module-level code support. These changes
1572are in preparation for the eventual removal of the legacy MLC support
1573(deferred execution), replaced by the new MLC architecture which executes
1574the MLC as a table is loaded (DSDT/SSDTs).
1575
1576Changed a compile-time option to a runtime option. Changes the option to
1577ignore ACPI table load-time package resolution errors into a runtime
1578option. Used only for platforms that generate many AE_NOT_FOUND errors
1579during boot. AcpiGbl_IgnorePackageResolutionErrors.
1580
1581Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some
1582ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid
1583compilation errors from unused variables (seen with some compilers).
1584
1585
15862) iASL Compiler/Disassembler and Tools:
1587
1588ASLTS: parallelized execution in order to achieve an (approximately) 2X
1589performance increase.
1590
1591ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves
1592error reporting.
1593
1594----------------------------------------
159509 February 2018. Summary of changes for version 20180209:
1596
1597
15981) ACPICA kernel-resident subsystem:
1599
1600Completed the final integration of the recent changes to Package Object
1601handling and the module-level AML code support. This allows forward
1602references from individual package elements when the package object is
1603declared from within module-level code blocks. Provides compatibility
1604with other ACPI implementations.
1605
1606The new architecture for the AML module-level code has been completed and
1607is now the default for the ACPICA code. This new architecture executes
1608the module-level code in-line as the ACPI table is loaded/parsed instead
1609of the previous architecture which deferred this code until after the
1610table was fully loaded. This solves some ASL code ordering issues and
1611provides compatibility with other ACPI implementations. At this time,
1612there is an option to fallback to the earlier architecture, but this
1613support is deprecated and is planned to be completely removed later this
1614year.
1615
1616Added a compile-time option to ignore AE_NOT_FOUND exceptions during
1617resolution of named reference elements within Package objects. Although
1618this is potentially a serious problem, it can generate a lot of
1619noise/errors on platforms whose firmware carries around a bunch of unused
1620Package objects. To disable these errors, define
1621ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All
1622errors are always reported for ACPICA applications such as AcpiExec.
1623
1624Fixed a regression related to the explicit type-conversion AML operators
1625(ToXXXX). The regression was introduced early in 2017 but was not seen
1626until recently because these operators are not fully supported by other
1627ACPI implementations and are thus rarely used by firmware developers. The
1628operators are defined by the ACPI specification to not implement the
1629"implicit result object conversion". The regression incorrectly
1630introduced this object conversion for the following explicit conversion
1631operators:
1632    ToInteger
1633    ToString
1634    ToBuffer
1635    ToDecimalString
1636    ToHexString
1637    ToBCD
1638    FromBCD
1639
1640
16412) iASL Compiler/Disassembler and Tools:
1642
1643iASL: Fixed a problem with the compiler constant folding feature as
1644related to the ToXXXX explicit conversion operators. These operators do
1645not support the "implicit result object conversion" by definition. Thus,
1646ASL expressions that use these operators cannot be folded to a simple
1647Store operator because Store implements the implicit conversion. This
1648change uses the CopyObject operator for the ToXXXX operator folding
1649instead. CopyObject is defined to not implement implicit result
1650conversions and is thus appropriate for folding the ToXXXX operators.
1651
1652iASL: Changed the severity of an error condition to a simple warning for
1653the case where a symbol is declared both locally and as an external
1654symbol. This accommodates existing ASL code.
1655
1656AcpiExec: The -ep option to enable the new architecture for module-level
1657code has been removed. It is replaced by the -dp option which instead has
1658the opposite effect: it disables the new architecture (the default) and
1659enables the legacy architecture. When the legacy code is removed in the
1660future, the -dp option will be removed also.
1661
1662----------------------------------------
166305 January 2018. Summary of changes for version 20180105:
1664
1665
16661) ACPICA kernel-resident subsystem:
1667
1668Updated all copyrights to 2018. This affects all source code modules.
1669
1670Fixed a possible build error caused by an unresolved reference to the
1671AcpiUtSafeStrncpy function.
1672
1673Removed NULL pointer arithmetic in the various pointer manipulation
1674macros. All "(void *) NULL" constructs are converted to "(void *) 0".
1675This eliminates warnings/errors in newer C compilers. Jung-uk Kim.
1676
1677Added support for A32 ABI compilation, which uses the ILP32 model. Anuj
1678Mittal.
1679
1680
16812) iASL Compiler/Disassembler and Tools:
1682
1683ASLTS: Updated all copyrights to 2018.
1684
1685Tools: Updated all signon copyrights to 2018.
1686
1687AcpiXtract: Fixed a regression related to ACPI table signatures where the
1688signature was truncated to 3 characters (instead of 4).
1689
1690AcpiExec: Restore the original terminal mode after the use of the -v and
1691-vd options.
1692
1693ASLTS: Deployed the iASL __METHOD__ macro across the test suite.
1694
1695----------------------------------------
169614 December 2017. Summary of changes for version 20171214:
1697
1698
16991) ACPICA kernel-resident subsystem:
1700
1701Fixed a regression in the external (public) AcpiEvaluateObjectTyped
1702interface where the optional "pathname" argument had inadvertently become
1703a required argument returning an error if omitted (NULL pointer
1704argument).
1705
1706Fixed two possible memory leaks related to the recently developed "late
1707resolution" of reference objects within ASL Package Object definitions.
1708
1709Added two recently defined _OSI strings: "Windows 2016" and "Windows
17102017". Mario Limonciello.
1711
1712Implemented and deployed a safer version of the C library function
1713strncpy:  AcpiUtSafeStrncpy. The intent is to at least prevent the
1714creation of unterminated strings as a possible result of a standard
1715strncpy.
1716
1717Cleaned up and restructured the global variable file (acglobal.h). There
1718are many changes, but no functional changes.
1719
1720
17212) iASL Compiler/Disassembler and Tools:
1722
1723iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the
1724optional OemData field at the end of the table was incorrectly required
1725for proper compilation. It is now correctly an optional field.
1726
1727ASLTS: The entire suite was converted from standard ASL to the ASL+
1728language, using the ASL-to-ASL+ converter which is integrated into the
1729iASL compiler. A binary compare of all output files has verified the
1730correctness of the conversion.
1731
1732iASL: Fixed the source code build for platforms where "char" is unsigned.
1733This affected the iASL lexer only. Jung-uk Kim.
1734
1735----------------------------------------
173610 November 2017. Summary of changes for version 20171110:
1737
1738
17391) ACPICA kernel-resident subsystem:
1740
1741This release implements full support for ACPI 6.2A:
1742    NFIT - Added a new subtable, "Platform Capabilities Structure"
1743No other changes to ACPICA were required, since ACPI 6.2A is primarily an
1744errata release of the specification.
1745
1746Other ACPI table changes:
1747    IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo
1748    PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy
1749Linton
1750
1751Utilities: Modified the string/integer conversion functions to use
1752internal 64-bit divide support instead of a native divide. On 32-bit
1753platforms, a 64-bit divide typically requires a library function which
1754may not be present in the build (kernel or otherwise).
1755
1756Implemented a targeted error message for timeouts returned from the
1757Embedded Controller device driver. This is seen frequently enough to
1758special-case an AE_TIME returned from an EC operation region access:
1759    "Timeout from EC hardware or EC device driver"
1760
1761Changed the "ACPI Exception" message prefix to "ACPI Error" so that all
1762runtime error messages have the identical prefix.
1763
1764
17652) iASL Compiler/Disassembler and Tools:
1766
1767AcpiXtract: Fixed a problem with table header detection within the
1768acpidump file. Processing a table could be ended early if a 0x40 (@)
1769appears in the original binary table, resulting in the @ symbol appearing
1770in the decoded ASCII field at the end of the acpidump text line. The
1771symbol caused acpixtract to incorrectly think it had reached the end of
1772the current table and the beginning of a new table.
1773
1774AcpiXtract: Added an option (-f) to ignore some errors during table
1775extraction. This initial implementation ignores non-ASCII and non-
1776printable characters found in the acpidump text file.
1777
1778TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics
1779for ASLTS. This feature is used to track memory allocations from
1780different memory caches within the ACPICA code. At the end of an ASLTS
1781run, these memory statistics are recorded and stored in a log file.
1782
1783Debugger (user-space version): Implemented a simple "Background" command.
1784Creates a new thread to execute a control method in the background, while
1785control returns to the debugger prompt to allow additional commands.
1786    Syntax: Background <Namepath> [Arguments]
1787
1788----------------------------------------
178929 September 2017. Summary of changes for version 20170929:
1790
1791
17921) ACPICA kernel-resident subsystem:
1793
1794Redesigned and implemented an improved ASL While() loop timeout
1795mechanism. This mechanism is used to prevent infinite loops in the kernel
1796AML interpreter caused by either non-responsive hardware or incorrect AML
1797code. The new implementation uses AcpiOsGetTimer instead of a simple
1798maximum loop count, and is thus more accurate and constant across
1799different machines. The default timeout is currently 30 seconds, but this
1800may be adjusted later.
1801
1802Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to
1803better reflect the new implementation of the loop timeout mechanism.
1804
1805Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support
1806and to fix an off-by-one error. Jung-uk Kim.
1807
1808Fixed an EFI build problem by updating the makefiles to for a new file
1809that was added, utstrsuppt.c
1810
1811
18122) iASL Compiler/Disassembler and Tools:
1813
1814Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This
1815includes support in the table disassembler, compiler, and template
1816generator.
1817
1818iASL: Added an exception for an illegal type of recursive method
1819invocation. If a method creates named objects, the first recursive call
1820will fail at runtime. This change adds an error detection at compile time
1821to catch the problem up front. Note: Marking such a method as
1822"serialized" will not help with this problem, because the same thread can
1823acquire the method mutex more than once. Example compiler and runtime
1824output:
1825
1826    Method (MTH1)
1827    {
1828        Name (INT1, 1)
1829        MTH1 ()
1830    }
1831
1832    dsdt.asl     22: MTH1 ()
1833    Error    6152 -  ^ Illegal recursive call to method
1834                       that creates named objects (MTH1)
1835
1836Previous runtime exception:
1837    ACPI Error: [INT1] Namespace lookup failure,
1838    AE_ALREADY_EXISTS (20170831/dswload2-465)
1839
1840iASL: Updated support for External() opcodes to improve namespace
1841management and error detection. These changes are related to issues seen
1842with multiple-segment namespace pathnames within External declarations,
1843such as below:
1844
1845    External(\_SB.PCI0.GFX0, DeviceObj)
1846    External(\_SB.PCI0.GFX0.ALSI)
1847
1848iASL: Implemented support for multi-line error/warning messages. This
1849enables more detailed and helpful error messages as below, from the
1850initial deployment for the duplicate names error:
1851
1852    DSDT.iiii   1692:       Device(PEG2) {
1853    Error    6074 -                  ^ Name already exists in scope
1854(PEG2)
1855
1856        Original name creation/declaration below:
1857        DSDT.iiii     93:   External(\_SB.PCI0.PEG2, DeviceObj)
1858
1859AcpiXtract: Added additional flexibility to support differing input hex
1860dump formats. Specifically, hex dumps that contain partial disassembly
1861and/or comments within the ACPI table data definition. There exist some
1862dump utilities seen in the field that create this type of hex dump (such
1863as Simics). For example:
1864
1865    DSDT @ 0xdfffd0c0 (10999 bytes)
1866        Signature DSDT
1867        Length 10999
1868        Revision 1
1869        Checksum 0xf3 (Ok)
1870        OEM_ID BXPC
1871        OEM_table_id BXDSDT
1872        OEM_revision 1
1873        Creator_id 1280593481
1874        Creator_revision 537399345
1875      0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00
1876      ...
1877      2af0: 5f 4c 30 46 00 a4 01
1878
1879Test suite: Miscellaneous changes/fixes:
1880    More cleanup and simplification of makefiles
1881    Continue compilation of test cases after a compile failure
1882    Do not perform binary compare unless both files actually exist
1883
1884iASL: Performed some code/module restructuring. Moved all memory
1885allocation functions to new modules. Two new files, aslallocate.c and
1886aslcache.c
1887
1888----------------------------------------
188931 August 2017. Summary of changes for version 20170831:
1890
1891
18921) ACPICA kernel-resident subsystem:
1893
1894Implemented internal support for full 64-bit addresses that appear in all
1895Generic Address Structure (GAS) structures. Previously, only the lower 32
1896bits were used. Affects the use of GAS structures in the FADT and other
1897tables, as well as the GAS structures passed to the AcpiRead and
1898AcpiWrite public external interfaces that are used by drivers. Lv Zheng.
1899
1900Added header support for the PDTT ACPI table (Processor Debug Trigger
1901Table). Full support in the iASL Data Table Compiler and disassembler is
1902forthcoming.
1903
1904
19052) iASL Compiler/Disassembler and Tools:
1906
1907iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor
1908Properties Topology Table) where a flag bit was specified in the wrong
1909bit position ("Line Size Valid", bit 6).
1910
1911iASL: Implemented support for Octal integer constants as defined by the
1912ASL language grammar, per the ACPI specification. Any integer constant
1913that starts with a zero is an octal constant. For example,
1914    Store (037777, Local0) /* Octal constant */
1915    Store (0x3FFF, Local0) /* Hex equivalent */
1916    Store (16383,  Local0) /* Decimal equivalent */
1917
1918iASL: Improved overflow detection for 64-bit string conversions during
1919compilation of integer constants. "Overflow" in this case means a string
1920that represents an integer that is too large to fit into a 64-bit value.
1921Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to
1922the low-order 32 bits with a warning, as previously implemented. Several
1923new exceptions are defined that indicate a 64-bit overflow, as well as
1924the base (radix) that was used during the attempted conversion. Examples:
1925    Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF        // AE_HEX_OVERFLOW
1926    Local0 = 01111222233334444555566667777     // AE_OCTAL_OVERFLOW
1927    Local0 = 11112222333344445555666677778888  // AE_DECIMAL_OVERFLOW
1928
1929iASL: Added a warning for the case where a ResourceTemplate is declared
1930with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In
1931this case, the resulting template is created with a single END_TAG
1932descriptor, which is essentially useless.
1933
1934iASL: Expanded the -vw option (ignore specific warnings/remarks) to
1935include compilation error codes as well.
1936
1937----------------------------------------
193828 July 2017. Summary of changes for version 20170728:
1939
1940
19411) ACPICA kernel-resident subsystem:
1942
1943Fixed a regression seen with small resource descriptors that could cause
1944an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.
1945
1946AML interpreter: Implemented a new feature that allows forward references
1947from individual named references within package objects that are
1948contained within blocks of "module-level code". This provides
1949compatibility with other ACPI implementations and supports existing
1950firmware that depends on this feature. Example:
1951
1952    Name (ABCD, 1)
1953    If (ABCD)                       /* An If() at module-level */
1954    {
1955        Name (PKG1, Package()
1956        {
1957            INT1                    /* Forward reference to object INT1
1958*/
1959        })
1960        Name (INT1, 0x1234)
1961    }
1962
1963AML Interpreter: Fixed a problem with the Alias() operator where aliases
1964to some ASL objects were not handled properly. Objects affected are:
1965Mutex, Event, and OperationRegion.
1966
1967AML Debugger: Enhanced to properly handle AML Alias objects. These
1968objects have one level of indirection which was not fully supported by
1969the debugger.
1970
1971Table Manager: Added support to detect and ignore duplicate SSDTs within
1972the XSDT/RSDT. This error in the XSDT has been seen in the field.
1973
1974EFI and EDK2 support:
1975    Enabled /WX flag for MSVC builds
1976    Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer
1977    Added local support for 64-bit multiply and shift operations
1978    Added support to compile acpidump.efi on Windows
1979    Added OSL function stubs for interfaces not used under EFI
1980
1981Added additional support for the _DMA predefined name. _DMA returns a
1982buffer containing a resource template. This change add support within the
1983resource manager (AcpiWalkResourceBuffer) to walk and parse this list of
1984resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
1985
1986
19872) iASL Compiler/Disassembler and Tools:
1988
1989iASL: Fixed a problem where the internal input line buffer(s) could
1990overflow if there are very long lines in the input ASL source code file.
1991Implemented buffer management that automatically increases the size of
1992the buffers as necessary.
1993
1994iASL: Added an option (-vx) to "expect" particular remarks, warnings and
1995errors. If the specified exception is not raised during compilation, the
1996compiler emits an error. This is intended to support the ASL test suite,
1997but may be useful in other contexts.
1998
1999iASL: Implemented a new predefined macro, __METHOD__, which returns a
2000string containing the name of the current control method that is being
2001compiled.
2002
2003iASL: Implemented debugger and table compiler support for the SDEI ACPI
2004table (Software Delegated Exception Interface). James Morse
2005<james.morse@arm.com>
2006
2007Unix/Linux makefiles: Added an option to disable compile optimizations.
2008The disable occurs when the NOOPT flag is set to TRUE.
2009theracermaster@gmail.com
2010
2011Acpidump: Added support for multiple DSDT and FACS tables. This can occur
2012when there are different tables for 32-bit versus 64-bit.
2013
2014Enhanced error reporting for the ASL test suite (ASLTS) by removing
2015unnecessary/verbose text, and emit the actual line number where an error
2016has occurred. These changes are intended to improve the usefulness of the
2017test suite.
2018
2019----------------------------------------
202029 June 2017. Summary of changes for version 20170629:
2021
2022
20231) ACPICA kernel-resident subsystem:
2024
2025Tables: Implemented a deferred ACPI table verification. This is useful
2026for operating systems where the tables cannot be verified in the early
2027initialization stage due to early memory mapping limitations on some
2028architectures. Lv Zheng.
2029
2030Tables: Removed the signature validation for dynamically loaded tables.
2031Provides compatibility with other ACPI implementations. Previously, only
2032SSDT tables were allowed, as per the ACPI specification. Now, any table
2033signature can be used via the Load() operator. Lv Zheng.
2034
2035Tables: Fixed several mutex issues that could cause errors during table
2036acquisition. Lv Zheng.
2037
2038Tables: Fixed a problem where an ACPI warning could be generated if a
2039null pointer was passed to the AcpiPutTable interface. Lv Zheng.
2040
2041Tables: Added a mechanism to handle imbalances for the AcpiGetTable and
2042AcpiPutTable interfaces. This applies to the "late stage" table loading
2043when the use of AcpiPutTable is no longer required (since the system
2044memory manager is fully running and available). Lv Zheng.
2045
2046Fixed/Reverted a regression during processing of resource descriptors
2047that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG
2048exception in this case.
2049
2050Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the
2051I/O Remapping specification. Robin Murphy <robin.murphy@arm.com>
2052
2053Interpreter: Fixed a possible fault if an Alias operator with an invalid
2054or duplicate target is encountered during Alias creation in
2055AcpiExCreateAlias. Alex James <theracermaster@gmail.com>
2056
2057Added an option to use designated initializers for function pointers.
2058Kees Cook <keescook@google.com>
2059
2060
20612) iASL Compiler/Disassembler and Tools:
2062
2063iASL: Allow compilation of External declarations with target pathnames
2064that refer to existing named objects within the table. Erik Schmauss.
2065
2066iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a
2067FieldUnit name also is declared via External in the same table. Erik
2068Schmauss.
2069
2070iASL: Allow existing scope names within pathnames used in External
2071statements. For example:
2072    External (ABCD.EFGH) // ABCD exists, but EFGH is truly external
2073    Device (ABCD)
2074
2075iASL: IORT ACPI table: Implemented changes required to decode the new
2076Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table
2077compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
2078
2079Disassembler: Don't abort disassembly on errors from External()
2080statements. Erik Schmauss.
2081
2082Disassembler: fixed a possible fault when one of the Create*Field
2083operators references a Resource Template. ACPICA Bugzilla 1396.
2084
2085iASL: In the source code, resolved some naming inconsistences across the
2086parsing support. Fixes confusion between "Parse Op" and "Parse Node".
2087Adds a new file, aslparseop.c
2088
2089----------------------------------------
209031 May 2017. Summary of changes for version 20170531:
2091
2092
20930) ACPI 6.2 support:
2094
2095The ACPI specification version 6.2 has been released and is available at
2096http://uefi.org/specifications
2097
2098This version of ACPICA fully supports the ACPI 6.2 specification. Changes
2099are summarized below.
2100
2101New ACPI tables (Table Compiler/Disassembler/Templates):
2102    HMAT (Heterogeneous Memory Attributes Table)
2103    WSMT (Windows SMM Security Mitigation Table)
2104    PPTT (Processor Properties Topology Table)
2105
2106New subtables for existing ACPI tables:
2107    HEST (New subtable, Arch-deferred machine check)
2108    SRAT (New subtable, Arch-specific affinity structure)
2109    PCCT (New subtables, Extended PCC subspaces (types 3 and 4))
2110
2111Simple updates for existing ACPI tables:
2112    BGRT (two new flag bits)
2113    HEST (New bit defined for several subtables, GHES_ASSIST)
2114
2115New Resource Descriptors and Resource macros (Compiler/Disassembler):
2116    PinConfig()
2117    PinFunction()
2118    PinGroup()
2119    PinGroupConfig()
2120    PinGroupFunction()
2121    New type for hardware error notification (section 18.3.2.9)
2122
2123New predefined names/methods (Compiler/Interpreter):
2124    _HMA (Heterogeneous Memory Attributes)
2125    _LSI (Label Storage Information)
2126    _LSR (Label Storage Read)
2127    _LSW (Label Storage Write)
2128
2129ASL grammar/macro changes (Compiler):
2130    For() ASL macro, implemented with the AML while operator
2131    Extensions to Concatenate operator
2132    Support for multiple definition blocks in same ASL file
2133    Clarification for Buffer operator
2134    Allow executable AML code underneath all scopes (Devices, etc.)
2135    Clarification/change for the _OSI return value
2136    ASL grammar update for reference operators
2137    Allow a zero-length string for AML filename in DefinitionBlock
2138
2139Miscellaneous:
2140    New device object notification value
2141    Remove a notify value (0x0C) for graceful shutdown
2142    New UUIDs for processor/cache properties and
2143        physical package property
2144    New _HID, ACPI0014 (Wireless Power Calibration Device)
2145
2146
21471) ACPICA kernel-resident subsystem:
2148
2149Added support to disable ACPI events on hardware-reduced platforms.
2150Eliminates error messages of the form "Could not enable fixed event". Lv
2151Zheng
2152
2153Fixed a problem using Device/Thermal objects with the ObjectType and
2154DerefOf ASL operators. This support had not been fully/properly
2155implemented.
2156
2157Fixed a problem where if a Buffer object containing a resource template
2158was longer than the actual resource template, an error was generated --
2159even though the AML is legal. This case has been seen in the field.
2160
2161Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.
2162The values for DUAL_PIC and MULTIPLE_APIC were reversed.
2163
2164Added header file changes for the TPM2 ACPI table. Update to new version
2165of the TCG specification. Adds a new TPM2 subtable for ARM SMC.
2166
2167Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.
2168These interfaces are intended to be used only in conjunction with the
2169predefined _DLM method (Device Lock Method). "This object appears in a
2170device scope when AML access to the device must be synchronized with the
2171OS environment".
2172
2173Example Code and Data Size: These are the sizes for the OS-independent
2174acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2175debug version of the code includes the debug output trace mechanism and
2176has a much larger code and data size.
2177
2178  Current Release:
2179    Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total
2180    Debug Version:     204.0K Code, 84.3K Data, 288.3K Total
2181  Previous Release:
2182    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2183    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2184
2185
21862) iASL Compiler/Disassembler and Tools:
2187
2188iASL: Fixed a problem where an External() declaration could not refer to
2189a Field Unit. Erik Schmauss.
2190
2191Disassembler: Improved support for the Switch/Case operators. This
2192feature will disassemble AML code back to the original Switch operators
2193when possible, instead of an If..Else sequence. David Box
2194
2195iASL and disassembler: Improved the handling of multiple extraneous
2196parentheses for both ASL input and disassembled ASL output.
2197
2198Improved the behavior of the iASL compiler and disassembler to detect
2199improper use of external declarations
2200
2201Disassembler: Now aborts immediately upon detection of an unknown AML
2202opcode. The AML parser has no real way to recover from this, and can
2203result in the creation of an ill-formed parse tree that causes errors
2204later during the disassembly.
2205
2206All tools: Fixed a problem where the Unix application OSL did not handle
2207control-c correctly. For example, a control-c could incorrectly wake the
2208debugger.
2209
2210AcpiExec: Improved the Control-C handling and added a handler for
2211segmentation faults (SIGSEGV). Supports both Windows and Unix-like
2212environments.
2213
2214Reduced the verbosity of the generic unix makefiles. Previously, each
2215compilation displayed the full set of compiler options. This has been
2216eliminated as the options are easily inspected within the makefiles. Each
2217compilation now results in a single line of output.
2218
2219----------------------------------------
222003 March 2017. Summary of changes for version 20170303:
2221
2222
22230) ACPICA licensing:
2224
2225The licensing information at the start of each source code module has
2226been updated. In addition to the Intel license, the dual GPLv2/BSD
2227license has been added for completeness. Now, a single version of the
2228source code should be suitable for all ACPICA customers. This is the
2229major change for this release since it affects all source code modules.
2230
2231
22321) ACPICA kernel-resident subsystem:
2233
2234Fixed two issues with the common asltypes.h header that could cause
2235problems in some environments: (Kim Jung-uk)
2236    Removed typedef for YY_BUFFER_STATE ?
2237       Fixes an error with earlier versions of Flex.
2238    Removed use of FILE typedef (which is only defined in stdio.h)
2239
2240
22412) iASL Compiler/Disassembler and Tools:
2242
2243Disassembler: fixed a regression introduced in 20170224. A fix for a
2244memory leak related to resource descriptor tags (names) could fault when
2245the disassembler was generated with 64-bit compilers.
2246
2247The ASLTS test suite has been updated to implement a new testing
2248architecture. During generation of the suite from ASL source, both the
2249ASL and ASL+ compilers are now validated, as well as the disassembler
2250itself (Erik Schmauss). The architecture executes as follows:
2251
2252    For every ASL source module:
2253        Compile (legacy ASL compilation)
2254        Disassemble the resulting AML to ASL+ source code
2255        Compile the new ASL+ module
2256        Perform a binary compare on the legacy AML and the new ASL+ AML
2257    The ASLTS suite then executes normally using the AML binaries.
2258
2259----------------------------------------
226024 February 2017. Summary of changes for version 20170224:
2261
2262
22631) ACPICA kernel-resident subsystem:
2264
2265Interpreter: Fixed two issues with the control method return value auto-
2266repair feature, where an attempt to double-delete an internal object
2267could result in an ACPICA warning (for _CID repair and others). No fault
2268occurs, however, because the attempted deletion (actually a release to an
2269internal cache) is detected and ignored via object poisoning.
2270
2271Debugger: Fixed an AML interpreter mutex issue during the single stepping
2272of control methods. If certain debugger commands are executed during
2273stepping, a mutex acquire/release error could occur. Lv Zheng.
2274
2275Fixed some issues generating ACPICA with the Intel C compiler by
2276restoring the original behavior and compiler-specific include file in
2277acenv.h. Lv Zheng.
2278
2279Example Code and Data Size: These are the sizes for the OS-independent
2280acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2281debug version of the code includes the debug output trace mechanism and
2282has a much larger code and data size.
2283
2284  Current Release:
2285    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2286    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2287  Previous Release:
2288    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2289    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2290
2291
22922) iASL Compiler/Disassembler and Tools:
2293
2294iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion
2295tool has been designed, implemented, and included in this release. The
2296key feature of this utility is that the original comments within the
2297input ASL file are preserved during the conversion process, and included
2298within the converted ASL+ file -- thus creating a transparent conversion
2299of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.
2300
2301    Usage: iasl -ca <ASL-filename>  // Output is a .dsl file with
2302converted code
2303
2304iASL/Disassembler: Improved the detection and correct disassembly of
2305Switch/Case operators. This feature detects sequences of if/elseif/else
2306operators that originated from ASL Switch/Case/Default operators and
2307emits the original operators. David Box.
2308
2309iASL: Improved the IORT ACPI table support in the following areas. Lv
2310Zheng:
2311    Clear MappingOffset if the MappingCount is zero.
2312    Fix the disassembly of the SMMU GSU interrupt offset.
2313    Update the template file for the IORT table.
2314
2315Disassembler: Enhanced the detection and disassembly of resource
2316template/descriptor within a Buffer object. An EndTag descriptor is now
2317required to have a zero second byte, since all known ASL compilers emit
2318this. This helps eliminate incorrect decisions when a buffer is
2319disassembled (false positives on resource templates).
2320
2321----------------------------------------
232219 January 2017. Summary of changes for version 20170119:
2323
2324
23251) General ACPICA software:
2326
2327Entire source code base: Added the 2017 copyright to all source code
2328legal/licensing module headers and utility/tool signons. This includes
2329the standard Linux dual-license header. This affects virtually every file
2330in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
2331the ACPICA test suite.
2332
2333
23342) iASL Compiler/Disassembler and Tools:
2335
2336iASL: Removed/fixed an inadvertent remark when a method argument
2337containing a reference is used as a target operand within the method (and
2338never used as a simple argument), as in the example below. Jeffrey Hugo.
2339
2340    dsdt.asl   1507:    Store(0x1, Arg0)
2341    Remark   2146 -                ^ Method Argument is never used (Arg0)
2342
2343All tools: Removed the bit width of the compiler that generated the tool
2344from the common signon for all user space tools. This proved to be
2345confusing and unnecessary. This includes similar removal of HARDWARE_NAME
2346from the generic makefiles (Thomas Petazzoni). Example below.
2347
2348    Old:
2349    ASL+ Optimizing Compiler version 20170119-32
2350    ASL+ Optimizing Compiler version 20170119-64
2351
2352    New:
2353    ASL+ Optimizing Compiler version 20170119
2354
2355----------------------------------------
235622 December 2016. Summary of changes for version 20161222:
2357
2358
23591) ACPICA kernel-resident subsystem:
2360
2361AML Debugger: Implemented a new mechanism to simplify and enhance
2362debugger integration into all environments, including kernel debuggers
2363and user-space utilities, as well as remote debug services. This
2364mechanism essentially consists of new OSL interfaces to support debugger
2365initialization/termination, as well as wait/notify interfaces to perform
2366the debugger handshake with the host. Lv Zheng.
2367
2368    New OSL interfaces:
2369        AcpiOsInitializeDebugger (void)
2370        AcpiOsTerminateDebugger (void)
2371        AcpiOsWaitCommandReady (void)
2372        AcpiOsNotifyCommandComplete (void)
2373
2374    New OS services layer:
2375        osgendbg.c -- Example implementation, and used for AcpiExec
2376
2377Update for Generic Address Space (GAS) support: Although the AccessWidth
2378and/or BitOffset fields of the GAS are not often used, this change now
2379fully supports these fields. This affects the internal support for FADT
2380registers, registers in other ACPI data tables, and the AcpiRead and
2381AcpiWrite public interfaces. Lv Zheng.
2382
2383Sleep support: In order to simplify integration of ACPI sleep for the
2384various host operating systems, a new OSL interface has been introduced.
2385AcpiOsEnterSleep allows the host to perform any required operations
2386before the final write to the sleep control register(s) is performed by
2387ACPICA. Lv Zheng.
2388
2389    New OSL interface:
2390        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
2391
2392    Called from these internal interfaces:
2393        AcpiHwLegacySleep
2394        AcpiHwExtendedSleep
2395
2396EFI support: Added a very small EFI/ACPICA example application. Provides
2397a simple demo for EFI integration, as well as assisting with resolution
2398of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
2399
2400    source/tools/efihello/efihello.c
2401
2402Local C library: Implemented several new functions to enhance ACPICA
2403portability, for environments where these clib functions are not
2404available (such as EFI). Lv Zheng:
2405    putchar
2406    getchar
2407    strpbrk
2408    strtok
2409    memmove
2410
2411Fixed a regression where occasionally a valid resource descriptor was
2412incorrectly detected as invalid at runtime, and a
2413AE_AML_NO_RESOURCE_END_TAG was returned.
2414
2415Fixed a problem with the recently implemented support that enables
2416control method invocations as Target operands to many ASL operators.
2417Warnings of this form: "Needed type [Reference], found [Processor]" were
2418seen at runtime for some method invocations.
2419
2420Example Code and Data Size: These are the sizes for the OS-independent
2421acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2422debug version of the code includes the debug output trace mechanism and
2423has a much larger code and data size.
2424
2425  Current Release:
2426    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
2427    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
2428  Previous Release:
2429    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2430    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2431
2432
24332) iASL Compiler/Disassembler and Tools:
2434
2435Disassembler: Enhanced output by adding the capability to detect and
2436disassemble ASL Switch/Case statements back to the original ASL source
2437code instead of if/else blocks. David Box.
2438
2439AcpiHelp: Split a large file into separate files based upon
2440functionality/purpose. New files are:
2441    ahaml.c
2442    ahasl.c
2443
2444----------------------------------------
244517 November 2016. Summary of changes for version 20161117:
2446
2447
24481) ACPICA kernel-resident subsystem:
2449
2450Table Manager: Fixed a regression introduced in 20160729, "FADT support
2451cleanup". This was an attempt to remove all references in the source to
2452the FADT version 2, which never was a legal version number. It was
2453skipped because it was an early version of 64-bit support that was
2454eventually abandoned for the current 64-bit support.
2455
2456Interpreter: Fixed a problem where runtime implicit conversion was
2457incorrectly disabled for the ASL operators below. This brings the
2458behavior into compliance with the ACPI specification:
2459    FromBCD
2460    ToBCD
2461    ToDecimalString
2462    ToHexString
2463    ToInteger
2464    ToBuffer
2465
2466Table Manager: Added a new public interface, AcpiPutTable, used to
2467release and free an ACPI table returned by AcpiGetTable and related
2468interfaces. Lv Zheng.
2469
2470Example Code and Data Size: These are the sizes for the OS-independent
2471acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2472debug version of the code includes the debug output trace mechanism and
2473has a much larger code and data size.
2474
2475  Current Release:
2476    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2477    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2478  Previous Release:
2479    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2480    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2481
2482
24832) iASL Compiler/Disassembler and Tools:
2484
2485Disassembler: Fixed a regression for disassembly of Resource Template.
2486Detection of templates in the AML stream missed some types of templates.
2487
2488iASL: Fixed a problem where an Access Size error was returned for the PCC
2489address space when the AccessSize of the GAS register is greater than a
2490DWORD. Hoan Tran.
2491
2492iASL: Implemented several grammar changes for the operators below. These
2493changes are slated for the next version of the ACPI specification:
2494    RefOf        - Disallow method invocation as an operand
2495    CondRefOf    - Disallow method invocation as an operand
2496    DerefOf      - Disallow operands that use the result from operators
2497that
2498                   do not return a reference (Changed TermArg to
2499SuperName).
2500
2501iASL: Control method invocations are now allowed for Target operands, as
2502per the ACPI specification. Removed error for using a control method
2503invocation as a Target operand.
2504
2505Disassembler: Improved detection of Resource Templates, Unicode, and
2506Strings within Buffer objects. These subtypes do not contain a specific
2507opcode to indicate the originating ASL code, and they must be detected by
2508other means within the disassembler.
2509
2510iASL: Implemented an optimization improvement for 32-bit ACPI tables
2511(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
2512only after 64-bit to 32-bit truncation. A truncation warning message is
2513still emitted, however.
2514
2515AcpiXtract: Implemented handling for both types of line terminators (LF
2516or CR/LF) so that it can accept AcpiDump output files from any system.
2517Peter Wu.
2518
2519AcpiBin: Added two new options for comparing AML files:
2520    -a: compare and display ALL mismatches
2521    -o: start compare at this offset into the second file
2522
2523----------------------------------------
252430 September 2016. Summary of changes for version 20160930:
2525
2526
25271) ACPICA kernel-resident subsystem:
2528
2529Fixed a regression in the internal AcpiTbFindTable function where a non
2530AE_OK exception could inadvertently be returned even if the function did
2531not fail. This problem affects the following operators:
2532    DataTableRegion
2533    LoadTable
2534
2535Fixed a regression in the LoadTable operator where a load to any
2536namespace location other than the root no longer worked properly.
2537
2538Increased the maximum loop count value that will result in the
2539AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to
2540prevent infinite loops within the AML interpreter and thus the host OS
2541kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to
25421,048,575).
2543
2544Moved the AcpiGbl_MaxLoopIterations configuration variable to the public
2545acpixf.h file. This allows hosts to easily configure the maximum loop
2546count at runtime.
2547
2548Removed an illegal character in the strtoul64.c file. This character
2549caused errors with some C compilers.
2550
2551Example Code and Data Size: These are the sizes for the OS-independent
2552acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2553debug version of the code includes the debug output trace mechanism and
2554has a much larger code and data size.
2555
2556  Current Release:
2557    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2558    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2559  Previous Release:
2560    Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total
2561    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2562
2563
25642) iASL Compiler/Disassembler and Tools:
2565
2566Disassembler: Fixed a problem with the conversion of Else{If{ blocks into
2567the simpler ASL ElseIf keyword. During the conversion, a trailing If
2568block could be lost and missing from the disassembled output.
2569
2570iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,
2571the missing rule caused a parse error when using the Index operator as an
2572operand to ObjectType. This construct now compiles properly. Example:
2573    ObjectType(PKG1[4]).
2574
2575iASL: Correctly handle unresolved symbols in the hardware map file (-lm
2576option). Previously, unresolved symbols could cause a protection fault.
2577Such symbols are now marked as unresolved in the map file.
2578
2579iASL: Implemented support to allow control method invocations as an
2580operand to the ASL DeRefOf operator. Example:
2581    DeRefOf(MTH1(Local0))
2582
2583Disassembler: Improved support for the ToPLD ASL macro. Detection of a
2584possible _PLD buffer now includes examination of both the normal buffer
2585length (16 or 20) as well as the surrounding AML package length.
2586
2587Disassembler: Fixed a problem with the decoding of complex expressions
2588within the Divide operator for ASL+. For the case where both the quotient
2589and remainder targets are specified, the entire statement cannot be
2590disassembled. Previously, the output incorrectly contained a mix of ASL-
2591and ASL+ operators. This mixed statement causes a syntax error when
2592compiled. Example:
2593    Divide (Add (INT1, 6), 128, RSLT, QUOT)  // was incorrectly
2594disassembled to:
2595    Divide (INT1 + 6, 128, RSLT, QUOT)
2596
2597iASL/Tools: Added support to process AML and non-AML ACPI tables
2598consistently. For the disassembler and AcpiExec, allow all types of ACPI
2599tables (AML and data tables). For the iASL -e option, allow only AML
2600tables (DSDT/SSDT).
2601
2602----------------------------------------
260331 August 2016. Summary of changes for version 20160831:
2604
2605
26061) ACPICA kernel-resident subsystem:
2607
2608Improve support for the so-called "module-level code", which is defined
2609to be math, logical and control AML opcodes that appear outside of any
2610control method. This change improves the support by adding more opcodes
2611that can be executed in the manner. Some other issues have been solved,
2612and the ASL grammar changes to support such code under all scope
2613operators (Device, etc.) are complete. Lv Zheng.
2614
2615UEFI support: these OSL functions have been implemented. This is an
2616additional step toward supporting the AcpiExec utility natively (with
2617full hardware access) under UEFI. Marcelo Ferreira.
2618    AcpiOsReadPciConfiguration
2619    AcpiOsWritePciConfiguration
2620
2621Fixed a possible mutex error during control method auto-serialization. Lv
2622Zheng.
2623
2624Updated support for the Generic Address Structure by fully implementing
2625all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv
2626Zheng.
2627
2628Updated the return value for the internal _OSI method. Instead of
26290xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF
2630for 64-bit ACPI tables. This fixes an incompatibility with other ACPI
2631implementations, and will be reflected and clarified in the next version
2632of the ACPI specification.
2633
2634Implemented two new table events that can be passed to an ACPICA table
2635handler. These events are used to indicate a table installation or
2636uninstallation. These events are used in addition to existed table load
2637and unload events. Lv Zheng.
2638
2639Implemented a cleanup for all internal string-to-integer conversions.
2640Consolidate multiple versions of this functionality and limit possible
2641bases to either 10 or 16 to simplify the code. Adds a new file,
2642utstrtoul64.
2643
2644Cleanup the inclusion order of the various compiler-specific headers.
2645This simplifies build configuration management. The compiler-specific
2646headers are now split out from the host-specific headers. Lv Zheng.
2647
2648Example Code and Data Size: These are the sizes for the OS-independent
2649acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2650debug version of the code includes the debug output trace mechanism and
2651has a much larger code and data size.
2652
2653  Current Release:
2654    Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total
2655    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2656
2657
26582) iASL Compiler/Disassembler and Tools:
2659
2660iASL/AcpiExec: Added a command line option to display the build date/time
2661of the tool (-vd). This can be useful to verify that the correct version
2662of the tools are being used.
2663
2664AML Debugger: Implemented a new subcommand ("execute predef") to execute
2665all predefined control methods and names within the current namespace.
2666This can be useful for debugging problems with ACPI tables and the ACPI
2667namespace.
2668
2669----------------------------------------
267029 July 2016. Summary of changes for version 20160729:
2671
2672
26731) ACPICA kernel-resident subsystem:
2674
2675Implemented basic UEFI support for the various ACPICA tools. This
2676includes:
26771) An OSL to implement the various AcpiOs* interfaces on UEFI.
26782) Support to obtain the ACPI tables on UEFI.
26793) Local implementation of required C library functions not available on
2680UEFI.
26814) A front-end (main) function for the tools for UEFI-related
2682initialization.
2683
2684The initial deployment of this support is the AcpiDump utility executing
2685as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").
2686Current environments supported are Linux/Unix. MSVC generation is not
2687supported at this time. See the generate/efi/README file for build
2688instructions. Lv Zheng.
2689
2690Future plans include porting the AcpiExec utility to execute natively on
2691the platform with I/O and memory access. This will allow viewing/dump of
2692the platform namespace and native execution of ACPI control methods that
2693access the actual hardware. To fully implement this support, the OSL
2694functions below must be implemented with UEFI interfaces. Any community
2695help in the implementation of these functions would be appreciated:
2696    AcpiOsReadPort
2697    AcpiOsWritePort
2698    AcpiOsReadMemory
2699    AcpiOsWriteMemory
2700    AcpiOsReadPciConfiguration
2701    AcpiOsWritePciConfiguration
2702
2703Restructured and standardized the C library configuration for ACPICA,
2704resulting in the various configuration options below. This includes a
2705global restructuring of the compiler-dependent and platform-dependent
2706include files. These changes may affect the existing platform-dependent
2707configuration files on some hosts. Lv Zheng.
2708
2709The current C library configuration options appear below. For any issues,
2710it may be helpful to examine the existing compiler-dependent and
2711platform-dependent files as examples. Lv Zheng.
2712
27131) Linux kernel:
2714    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
2715library.
2716    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
27172) Unix/Windows/BSD applications:
2718    ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C
2719library.
2720    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
27213) UEFI applications:
2722    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
2723library.
2724    ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.
27254) UEFI applications (EDK2/StdLib):
2726    ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.
2727    ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.
2728
2729
2730AML interpreter: "module-level code" support. Allows for execution of so-
2731called "executable" AML code (math/logical operations, etc.) outside of
2732control methods not just at the module level (top level) but also within
2733any scope declared outside of a control method - Scope{}, Device{},
2734Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.
2735
2736Simplified the configuration of the "maximum AML loops" global option by
2737adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be
2738modified at runtime.
2739
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: 139.1K Code, 22.9K Data, 162.0K Total
2748    Debug Version:     199.0K Code, 81.8K Data, 280.8K Total
2749
2750
27512) iASL Compiler/Disassembler and Tools:
2752
2753iASL: Add full support for the RASF ACPI table (RAS Features Table).
2754Includes disassembler, data table compiler, and header support.
2755
2756iASL Expand "module-level code" support. Allows for
2757compilation/disassembly of so-called "executable" AML code (math/logical
2758operations, etc.) outside of control methods not just at the module level
2759(top level) but also within any scope declared outside of a control
2760method - Scope{}, Device{}, Processor{}, PowerResource{}, and
2761ThermalZone{}.
2762
2763AcpiDump: Added support for dumping all SSDTs on newer versions of
2764Windows. These tables are now easily available -- SSDTs are not available
2765through the registry on older versions.
2766
2767----------------------------------------
276827 May 2016. Summary of changes for version 20160527:
2769
2770
27711) ACPICA kernel-resident subsystem:
2772
2773Temporarily reverted the new arbitrary bit length/alignment support in
2774AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
2775a number of regressions with the new code that need to be fully resolved
2776and tested before this support can be finally integrated into ACPICA.
2777Apologies for any inconveniences these issues may have caused.
2778
2779The ACPI message macros are not configurable (ACPI_MSG_ERROR,
2780ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
2781and ACPI_MSG_BIOS_WARNING). Lv Zheng.
2782
2783Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
2784option. Adds a new return macro, return_STR. Junk-uk Kim.
2785
2786Example Code and Data Size: These are the sizes for the OS-independent
2787acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2788debug version of the code includes the debug output trace mechanism and
2789has a much larger code and data size.
2790
2791  Current Release:
2792    Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
2793    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2794  Previous Release:
2795    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2796    Debug Version:     200.9K Code, 82.2K Data, 283.1K Total
2797
2798----------------------------------------
279922 April 2016. Summary of changes for version 20160422:
2800
28011) ACPICA kernel-resident subsystem:
2802
2803Fixed a regression in the GAS (generic address structure) arbitrary bit
2804support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
2805and incorrect return values. Lv Zheng. ACPICA BZ 1270.
2806
2807ACPI 6.0: Added support for new/renamed resource macros. One new argument
2808was added to each of these macros, and the original name has been
2809deprecated. The AML disassembler will always disassemble to the new
2810names. Support for the new macros was added to iASL, disassembler,
2811resource manager, and the acpihelp utility. ACPICA BZ 1274.
2812
2813    I2cSerialBus  -> I2cSerialBusV2
2814    SpiSerialBus  -> SpiSerialBusV2
2815    UartSerialBus -> UartSerialBusV2
2816
2817ACPI 6.0: Added support for a new integer field that was appended to the
2818package object returned by the _BIX method. This adds iASL compile-time
2819and AML runtime error checking. ACPICA BZ 1273.
2820
2821ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
2822Subspace Type2" (Headers, Disassembler, and data table compiler).
2823
2824Example Code and Data Size: These are the sizes for the OS-independent
2825acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2826debug version of the code includes the debug output trace mechanism and
2827has a much larger code and data size.
2828
2829  Current Release:
2830    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2831    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2832  Previous Release:
2833    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
2834    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
2835
2836
28372) iASL Compiler/Disassembler and Tools:
2838
2839iASL: Implemented an ASL grammar extension to allow/enable executable
2840"module-level code" to be created and executed under the various
2841operators that create new scopes. This type of AML code is already
2842supported in all known AML interpreters, and the grammar change will
2843appear in the next version of the ACPI specification. Simplifies the
2844conditional runtime creation of named objects under these object types:
2845
2846    Device
2847    PowerResource
2848    Processor
2849    Scope
2850    ThermalZone
2851
2852iASL: Implemented a new ASL extension, a "For" loop macro to add greater
2853ease-of-use to the ASL language. The syntax is similar to the
2854corresponding C operator, and is implemented with the existing AML While
2855opcode -- thus requiring no changes to existing AML interpreters.
2856
2857    For (Initialize, Predicate, Update) {TermList}
2858
2859Grammar:
2860    ForTerm :=
2861        For (
2862            Initializer    // Nothing | TermArg => ComputationalData
2863            Predicate      // Nothing | TermArg => ComputationalData
2864            Update         // Nothing | TermArg => ComputationalData
2865        ) {TermList}
2866
2867
2868iASL: The _HID/_ADR detection and validation has been enhanced to search
2869under conditionals in order to allow these objects to be conditionally
2870created at runtime.
2871
2872iASL: Fixed several issues with the constant folding feature. The
2873improvement allows better detection and resolution of statements that can
2874be folded at compile time. ACPICA BZ 1266.
2875
2876iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
2877conversion to the ASL ElseIf operator where incorrect ASL code could be
2878generated.
2879
2880iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
2881sometimes an extra (and extraneous) set of parentheses were emitted for
2882some combinations of operators. Although this did not cause any problems
2883with recompilation of the disassembled code, it made the code more
2884difficult to read. David Box. ACPICA BZ 1231.
2885
2886iASL: Changed to ignore the unreferenced detection for predefined names
2887of resource descriptor elements, when the resource descriptor is
2888created/defined within a control method.
2889
2890iASL: Disassembler: Fix a possible fault with externally declared Buffer
2891objects.
2892
2893----------------------------------------
289418 March 2016. Summary of changes for version 20160318:
2895
28961) ACPICA kernel-resident subsystem:
2897
2898Added support for arbitrary bit lengths and bit offsets for registers
2899defined by the Generic Address Structure. Previously, only aligned bit
2900lengths of 8/16/32/64 were supported. This was sufficient for many years,
2901but recently some machines have been seen that require arbitrary bit-
2902level support. ACPICA BZ 1240. Lv Zheng.
2903
2904Fixed an issue where the \_SB._INI method sometimes must be evaluated
2905before any _REG methods are evaluated. Lv Zheng.
2906
2907Implemented several changes related to ACPI table support
2908(Headers/Disassembler/TableCompiler):
2909NFIT: For ACPI 6.1, updated to add some additional new fields and
2910constants.
2911FADT: Updated a warning message and set compliance to ACPI 6.1 (Version
29126).
2913DMAR: Added new constants per the 10/2014 DMAR spec.
2914IORT: Added new subtable per the 10/2015 IORT spec.
2915HEST: For ACPI 6.1, added new constants and new subtable.
2916DBG2: Added new constants per the 12/2015 DBG2 spec.
2917FPDT: Fixed several incorrect fields, add the FPDT boot record structure.
2918ACPICA BZ 1249.
2919ERST/EINJ: Updated disassembler with new "Execute Timings" actions.
2920
2921Updated header support for the DMAR table to match the current version of
2922the related spec.
2923
2924Added extensions to the ASL Concatenate operator to allow any ACPI object
2925to be passed as an operand. Any object other than Integer/String/Buffer
2926simply returns a string containing the object type. This extends the
2927usefulness of the Printf macros. Previously, Concatenate would abort the
2928control method if a non-data object was encountered.
2929
2930ACPICA source code: Deployed the C "const" keyword across the source code
2931where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).
2932
2933Example Code and Data Size: These are the sizes for the OS-independent
2934acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2935debug version of the code includes the debug output trace mechanism and
2936has a much larger code and data size.
2937
2938  Current Release:
2939    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
2940    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
2941  Previous Release:
2942    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
2943    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
2944
2945
29462) iASL Compiler/Disassembler and Tools:
2947
2948iASL/Disassembler: Improved the heuristic used to determine the number of
2949arguments for an externally defined control method (a method in another
2950table). Although this is an improvement, there is no deterministic way to
2951"guess" the number of method arguments. Only the ACPI 6.0 External opcode
2952will completely solve this problem as it is deployed (automatically) in
2953newer BIOS code.
2954
2955iASL/Disassembler: Fixed an ordering issue for emitted External() ASL
2956statements that could cause errors when the disassembled file is
2957compiled. ACPICA BZ 1243. David Box.
2958
2959iASL: Fixed a regression caused by the merger of the two versions of the
2960local strtoul64. Because of a dependency on a global variable, strtoul64
2961could return an error for integers greater than a 32-bit value. ACPICA BZ
29621260.
2963
2964iASL: Fixed a regression where a fault could occur for an ASL Return
2965statement if it invokes a control method that is not resolved. ACPICA BZ
29661264.
2967
2968AcpiXtract: Improved input file validation: detection of binary files and
2969non-acpidump text files.
2970
2971----------------------------------------
297212 February 2016. Summary of changes for version 20160212:
2973
29741) ACPICA kernel-resident subsystem:
2975
2976Implemented full support for the ACPI 6.1 specification (released in
2977January). This version of the specification is available at:
2978http://www.uefi.org/specifications
2979
2980Only a relatively small number of changes were required in ACPICA to
2981support ACPI 6.1, in these areas:
2982- New predefined names
2983- New _HID values
2984- A new subtable for HEST
2985- A few other header changes for new values
2986
2987Ensure \_SB_._INI is executed before any _REG methods are executed. There
2988appears to be existing BIOS code that relies on this behavior. Lv Zheng.
2989
2990Reverted a change made in version 20151218 which enabled method
2991invocations to be targets of various ASL operators (SuperName and Target
2992grammar elements). While the new behavior is supported by the ACPI
2993specification, other AML interpreters do not support this behavior and
2994never will. The ACPI specification will be updated for ACPI 6.2 to remove
2995this support. Therefore, the change was reverted to the original ACPICA
2996behavior.
2997
2998ACPICA now supports the GCC 6 compiler.
2999
3000Current Release: (Note: build changes increased sizes)
3001    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3002    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3003Previous Release:
3004    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3005    Debug Version:     200.4K Code, 81.9K Data, 282.3K Total
3006
3007
30082) iASL Compiler/Disassembler and Tools:
3009
3010Completed full support for the ACPI 6.0 External() AML opcode. The
3011compiler emits an external AML opcode for each ASL External statement.
3012This opcode is used by the disassembler to assist with the disassembly of
3013external control methods by specifying the required number of arguments
3014for the method. AML interpreters do not use this opcode. To ensure that
3015interpreters do not even see the opcode, a block of one or more external
3016opcodes is surrounded by an "If(0)" construct. As this feature becomes
3017commonly deployed in BIOS code, the ability of disassemblers to correctly
3018disassemble AML code will be greatly improved. David Box.
3019
3020iASL: Implemented support for an optional cross-reference output file.
3021The -lx option will create a the cross-reference file with the suffix
3022"xrf". Three different types of cross-reference are created in this file:
3023- List of object references made from within each control method
3024- Invocation (caller) list for each user-defined control method
3025- List of references to each non-method object in the namespace
3026
3027iASL: Method invocations as ASL Target operands are now disallowed and
3028flagged as errors in preparation for ACPI 6.2 (see the description of the
3029problem above).
3030
3031----------------------------------------
30328 January 2016. Summary of changes for version 20160108:
3033
30341) ACPICA kernel-resident subsystem:
3035
3036Updated all ACPICA copyrights and signons to 2016: Added the 2016
3037copyright to all source code module headers and utility/tool signons.
3038This includes the standard Linux dual-license header. This affects
3039virtually every file in the ACPICA core subsystem, iASL compiler, all
3040ACPICA utilities, and the ACPICA test suite.
3041
3042Fixed a regression introduced in version 20151218 concerning the
3043execution of so-called module-level ASL/AML code. Namespace objects
3044created under a module-level If() construct were not properly/fully
3045entered into the namespace and could cause an interpreter fault when
3046accessed.
3047
3048Example Code and Data Size: These are the sizes for the OS-independent
3049acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3050debug version of the code includes the debug output trace mechanism and
3051has a much larger code and data size.
3052
3053Current Release:
3054    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3055    Debug Version:     200.4K Code, 81.9K Data, 282.4K Total
3056  Previous Release:
3057    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3058    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3059
3060
30612) iASL Compiler/Disassembler and Tools:
3062
3063Fixed a problem with the compilation of the GpioIo and GpioInt resource
3064descriptors. The _PIN field name was incorrectly defined to be an array
3065of 32-bit values, but the _PIN values are in fact 16 bits each. This
3066would cause incorrect bit width warnings when using Word (16-bit) fields
3067to access the descriptors.
3068
3069
3070----------------------------------------
307118 December 2015. Summary of changes for version 20151218:
3072
30731) ACPICA kernel-resident subsystem:
3074
3075Implemented per-AML-table execution of "module-level code" as individual
3076ACPI tables are loaded into the namespace during ACPICA initialization.
3077In other words, any module-level code within an AML table is executed
3078immediately after the table is loaded, instead of batched and executed
3079after all of the tables have been loaded. This provides compatibility
3080with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,
3081David Box.
3082
3083To fully support the feature above, the default operation region handlers
3084for the SystemMemory, SystemIO, and PCI_Config address spaces are now
3085installed before any ACPI tables are loaded. This enables module-level
3086code to access these address spaces during the table load and module-
3087level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David
3088Box.
3089
3090Implemented several changes to the internal _REG support in conjunction
3091with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples
3092utilities for the changes above. Although these tools were changed, host
3093operating systems that simply use the default handlers for SystemMemory,
3094SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.
3095
3096For example, in the code below, DEV1 is conditionally added to the
3097namespace by the DSDT via module-level code that accesses an operation
3098region. The SSDT references DEV1 via the Scope operator. DEV1 must be
3099created immediately after the DSDT is loaded in order for the SSDT to
3100successfully reference DEV1. Previously, this code would cause an
3101AE_NOT_EXIST exception during the load of the SSDT. Now, this code is
3102fully supported by ACPICA.
3103
3104    DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)
3105    {
3106        OperationRegion (OPR1, SystemMemory, 0x400, 32)
3107        Field (OPR1, AnyAcc, NoLock, Preserve)
3108        {
3109            FLD1, 1
3110        }
3111        If (FLD1)
3112        {
3113            Device (\DEV1)
3114            {
3115            }
3116        }
3117    }
3118    DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)
3119    {
3120        External (\DEV1, DeviceObj)
3121        Scope (\DEV1)
3122        {
3123        }
3124    }
3125
3126Fixed an AML interpreter problem where control method invocations were
3127not handled correctly when the invocation was itself a SuperName argument
3128to another ASL operator. In these cases, the method was not invoked.
3129ACPICA BZ 1002. Affects the following ASL operators that have a SuperName
3130argument:
3131    Store
3132    Acquire, Wait
3133    CondRefOf, RefOf
3134    Decrement, Increment
3135    Load, Unload
3136    Notify
3137    Signal, Release, Reset
3138    SizeOf
3139
3140Implemented automatic String-to-ObjectReference conversion support for
3141packages returned by predefined names (such as _DEP). A common BIOS error
3142is to add double quotes around an ObjectReference namepath, which turns
3143the reference into an unexpected string object. This support detects the
3144problem and corrects it before the package is returned to the caller that
3145invoked the method. Lv Zheng.
3146
3147Implemented extensions to the Concatenate operator. Concatenate now
3148accepts any type of object, it is not restricted to simply
3149Integer/String/Buffer. For objects other than these 3 basic data types,
3150the argument is treated as a string containing the name of the object
3151type. This expands the utility of Concatenate and the Printf/Fprintf
3152macros. ACPICA BZ 1222.
3153
3154Cleaned up the output of the ASL Debug object. The timer() value is now
3155optional and no longer emitted by default. Also, the basic data types of
3156Integer/String/Buffer are simply emitted as their values, without a data
3157type string -- since the data type is obvious from the output. ACPICA BZ
31581221.
3159
3160Example Code and Data Size: These are the sizes for the OS-independent
3161acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3162debug version of the code includes the debug output trace mechanism and
3163has a much larger code and data size.
3164
3165  Current Release:
3166    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3167    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3168  Previous Release:
3169    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3170    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3171
3172
31732) iASL Compiler/Disassembler and Tools:
3174
3175iASL: Fixed some issues with the ASL Include() operator. This operator
3176was incorrectly defined in the iASL parser rules, causing a new scope to
3177be opened for the code within the include file. This could lead to
3178several issues, including allowing ASL code that is technically illegal
3179and not supported by AML interpreters. Note, this does not affect the
3180related #include preprocessor operator. ACPICA BZ 1212.
3181
3182iASL/Disassembler: Implemented support for the ASL ElseIf operator. This
3183operator is essentially an ASL macro since there is no AML opcode
3184associated with it. The code emitted by the iASL compiler for ElseIf is
3185an Else opcode followed immediately by an If opcode. The disassembler
3186will now emit an ElseIf if it finds an Else immediately followed by an
3187If. This simplifies the decoded ASL, especially for deeply nested
3188If..Else and large Switch constructs. Thus, the disassembled code more
3189closely follows the original source ASL. ACPICA BZ 1211. Example:
3190
3191    Old disassembly:
3192        Else
3193        {
3194            If (Arg0 == 0x02)
3195            {
3196                Local0 = 0x05
3197            }
3198        }
3199
3200    New disassembly:
3201        ElseIf (Arg0 == 0x02)
3202        {
3203            Local0 = 0x05
3204        }
3205
3206AcpiExec: Added support for the new module level code behavior and the
3207early region installation. This required a small change to the
3208initialization, since AcpiExec must install its own operation region
3209handlers.
3210
3211AcpiExec: Added support to make the debug object timer optional. Default
3212is timer disabled. This cleans up the debug object output -- the timer
3213data is rarely used.
3214
3215AcpiExec: Multiple ACPI tables are now loaded in the order that they
3216appear on the command line. This can be important when there are
3217interdependencies/references between the tables.
3218
3219iASL/Templates. Add support to generate template files with multiple
3220SSDTs within a single output file. Also added ommand line support to
3221specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ
32221223, 1225.
3223
3224
3225----------------------------------------
322624 November 2015. Summary of changes for version 20151124:
3227
32281) ACPICA kernel-resident subsystem:
3229
3230Fixed a possible regression for a previous update to FADT handling. The
3231FADT no longer has a fixed table ID, causing some issues with code that
3232was hardwired to a specific ID. Lv Zheng.
3233
3234Fixed a problem where the method auto-serialization could interfere with
3235the current SyncLevel. This change makes the auto-serialization support
3236transparent to the SyncLevel support and management.
3237
3238Removed support for the _SUB predefined name in AcpiGetObjectInfo. This
3239interface is intended for early access to the namespace during the
3240initial namespace device discovery walk. The _SUB method has been seen to
3241access operation regions in some cases, causing errors because the
3242operation regions are not fully initialized.
3243
3244AML Debugger: Fixed some issues with the terminate/quit/exit commands
3245that can cause faults. Lv Zheng.
3246
3247AML Debugger: Add thread ID support so that single-step mode only applies
3248to the AML Debugger thread. This prevents runtime errors within some
3249kernels. Lv Zheng.
3250
3251Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx
3252methods that are invoked by this interface are optional, removed warnings
3253emitted for the case where one or more of these methods do not exist.
3254ACPICA BZ 1208, original change by Prarit Bhargava.
3255
3256Made a major pass through the entire ACPICA source code base to
3257standardize formatting that has diverged a bit over time. There are no
3258functional changes, but this will of course cause quite a few code
3259differences from the previous ACPICA release.
3260
3261Example Code and Data Size: These are the sizes for the OS-independent
3262acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3263debug version of the code includes the debug output trace mechanism and
3264has a much larger code and data size.
3265
3266  Current Release:
3267    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3268    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3269  Previous Release:
3270    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3271    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3272
3273
32742) iASL Compiler/Disassembler and Tools:
3275
3276iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple
3277definition blocks within a single ASL file and the resulting AML file.
3278Support for this type of file was also added to the various tools that
3279use binary AML files: acpiexec, acpixtract, and the AML disassembler. The
3280example code below shows two definition blocks within the same file:
3281
3282    DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",
32830x12345678)
3284    {
3285    }
3286    DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)
3287    {
3288    }
3289
3290iASL: Enhanced typechecking for the Name() operator. All expressions for
3291the value of the named object must be reduced/folded to a single constant
3292at compile time, as per the ACPI specification (the AML definition of
3293Name()).
3294
3295iASL: Fixed some code indentation issues for the -ic and -ia options (C
3296and assembly headers). Now all emitted code correctly begins in column 1.
3297
3298iASL: Added an error message for an attempt to open a Scope() on an
3299object defined in an SSDT. The DSDT is always loaded into the namespace
3300first, so any attempt to open a Scope on an SSDT object will fail at
3301runtime.
3302
3303
3304----------------------------------------
330530 September 2015. Summary of changes for version 20150930:
3306
33071) ACPICA kernel-resident subsystem:
3308
3309Debugger: Implemented several changes and bug fixes to assist support for
3310the in-kernel version of the AML debugger. Lv Zheng.
3311- Fix the "predefined" command for in-kernel debugger.
3312- Do not enter debug command loop for the help and version commands.
3313- Disallow "execute" command during execution/single-step of a method.
3314
3315Interpreter: Updated runtime typechecking for all operators that have
3316target operands. The operand is resolved and validated that it is legal.
3317For example, the target cannot be a non-data object such as a Device,
3318Mutex, ThermalZone, etc., as per the ACPI specification.
3319
3320Debugger: Fixed the double-mutex user I/O handshake to work when local
3321deadlock detection is enabled.
3322
3323Debugger: limited display of method locals and arguments (LocalX and
3324ArgX) to only those that have actually been initialized. This prevents
3325lines of extraneous output.
3326
3327Updated the definition of the NFIT table to correct the bit polarity of
3328one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
3329
3330Example Code and Data Size: These are the sizes for the OS-independent
3331acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3332debug version of the code includes the debug output trace mechanism and
3333has a much larger code and data size.
3334
3335  Current Release:
3336    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3337    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3338  Previous Release:
3339    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3340    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3341
3342
33432) iASL Compiler/Disassembler and Tools:
3344
3345iASL: Improved the compile-time typechecking for operands of many of the
3346ASL operators:
3347
3348-- Added an option to disable compiler operand/operator typechecking (-
3349ot).
3350
3351-- For the following operators, the TermArg operands are now validated
3352when possible to be Integer data objects: BankField, OperationRegion,
3353DataTableRegion, Buffer, and Package.
3354
3355-- Store (Source, Target): Both the source and target operands are
3356resolved and checked that the operands are both legal. For example,
3357neither operand can be a non-data object such as a Device, Mutex,
3358ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
3359operator can be used to store an object to any type of target object.
3360
3361-- Store (Source, Target): If the source is a Package object, the target
3362must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
3363is a Package, the source must also be a Package.
3364
3365-- Store (Source, Target): A warning is issued if the source and target
3366resolve to the identical named object.
3367
3368-- Store (Source, <method invocation>): An error is generated for the
3369target method invocation, as this construct is not supported by the AML
3370interpreter.
3371
3372-- For all ASL math and logic operators, the target operand must be a
3373data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
3374includes the function return value also.
3375
3376-- External declarations are also included in the typechecking where
3377possible. External objects defined using the UnknownObj keyword cannot be
3378typechecked, however.
3379
3380iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
3381operator:
3382- Legacy code: Index(PKG1, 3)
3383- New ASL+ code: PKG1[3]
3384This completes the ACPI 6.0 ASL+ support as it was the only operator not
3385supported.
3386
3387iASL: Fixed the file suffix for the preprocessor output file (.i). Two
3388spaces were inadvertently appended to the filename, causing file access
3389and deletion problems on some systems.
3390
3391ASL Test Suite (ASLTS): Updated the master makefile to generate all
3392possible compiler output files when building the test suite -- thus
3393exercising these features of the compiler. These files are automatically
3394deleted when the test suite exits.
3395
3396
3397----------------------------------------
339818 August 2015. Summary of changes for version 20150818:
3399
34001) ACPICA kernel-resident subsystem:
3401
3402Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
3403Zheng. ACPICA BZ 1186.
3404
3405Completed development to ensure that the ACPICA Disassembler and Debugger
3406are fully standalone components of ACPICA. Removed cross-component
3407dependences. Lv Zheng.
3408
3409The max-number-of-AML-loops is now runtime configurable (previously was
3410compile-time only). This is essentially a loop timeout to force-abort
3411infinite AML loops. ACPCIA BZ 1192.
3412
3413Debugger: Cleanup output to dump ACPI names and namepaths without any
3414trailing underscores. Lv Zheng. ACPICA BZ 1135.
3415
3416Removed unnecessary conditional compilations across the Debugger and
3417Disassembler components where entire modules could be left uncompiled.
3418
3419The aapits test is deprecated and has been removed from the ACPICA git
3420tree. The test has never been completed and has not been maintained, thus
3421becoming rather useless. ACPICA BZ 1015, 794.
3422
3423A batch of small changes to close bugzilla and other reports:
3424- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
3425- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
3426- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
3427- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
3428Moore.
3429- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
3430ACPICA BZ 1184.
3431- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
3432operators.
3433- Debugger: Split debugger initialization/termination interfaces. Lv
3434Zheng.
3435- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
3436identification.
3437- AcpiExec: Add debug message during _REG method phase during table
3438load/init.
3439- AcpiNames: Fix a regression where some output was missing and no longer
3440emitted.
3441- Debugger: General cleanup and simplification. Lv Zheng.
3442- Disassembler: Cleanup use of several global option variables. Lv Zheng.
3443
3444Example Code and Data Size: These are the sizes for the OS-independent
3445acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3446debug version of the code includes the debug output trace mechanism and
3447has a much larger code and data size.
3448
3449  Current Release:
3450    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3451    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3452  Previous Release:
3453    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3454    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3455
3456
34572) iASL Compiler/Disassembler and Tools:
3458
3459AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
3460were not handled properly and caused load errors. Now, properly invoke
3461and use the ACPICA auto-reallocate mechanism for ACPI table data
3462structures. ACPICA BZ 1188
3463
3464AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
3465BZ 1190.
3466
3467AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
3468AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
3469executed during initialization. ACPICA BZ 1187, 1189.
3470
3471iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
3472that corresponds to each disassembled ASL statement, to simplify
3473debugging. ACPICA BZ 1191.
3474
3475Debugger: Add option to the "objects" command to display a summary of the
3476current namespace objects (Object type and count). This is displayed if
3477the command is entered with no arguments.
3478
3479AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
3480
3481
3482----------------------------------------
348317 July 2015. Summary of changes for version 20150717:
3484
34851) ACPICA kernel-resident subsystem:
3486
3487Improved the partitioning between the Debugger and Disassembler
3488components. This allows the Debugger to be used standalone within kernel
3489code without the Disassembler (which is used for single stepping also).
3490This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
3491
3492Debugger: Implemented a new command to trace the execution of control
3493methods (Trace). This is especially useful for the in-kernel version of
3494the debugger when file I/O may not be available for method trace output.
3495See the ACPICA reference for more information. Lv Zheng.
3496
3497Moved all C library prototypes (used for the local versions of these
3498functions when requested) to a new header, acclib.h
3499Cleaned up the use of non-ANSI C library functions. These functions are
3500implemented locally in ACPICA. Moved all such functions to a common
3501source file, utnonansi.c
3502
3503Debugger: Fixed a problem with the "!!" command (get last command
3504executed) where the debugger could enter an infinite loop and eventually
3505crash.
3506
3507Removed the use of local macros that were used for some of the standard C
3508library functions to automatically cast input parameters. This mostly
3509affected the is* functions where the input parameter is defined to be an
3510int. This required a few modifications to the main ACPICA source code to
3511provide casting for these functions and eliminate possible compiler
3512warnings for these parameters.
3513
3514Across the source code, added additional status/error checking to resolve
3515issues discovered by static source code analysis tools such as Coverity.
3516
3517Example Code and Data Size: These are the sizes for the OS-independent
3518acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3519debug version of the code includes the debug output trace mechanism and
3520has a much larger code and data size.
3521
3522  Current Release:
3523    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3524    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3525  Previous Release:
3526    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3527    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3528
3529
35302) iASL Compiler/Disassembler and Tools:
3531
3532iASL: Fixed a regression where the device map file feature no longer
3533worked properly when used in conjunction with the disassembler. It only
3534worked properly with the compiler itself.
3535
3536iASL: Implemented a new warning for method LocalX variables that are set
3537but never used (similar to a C compiler such as gcc). This also applies
3538to ArgX variables that are not defined by the parent method, and are
3539instead (legally) used as local variables.
3540
3541iASL/Preprocessor: Finished the pass-through of line numbers from the
3542preprocessor to the compiler. This ensures that compiler errors/warnings
3543have the correct original line numbers and filenames, regardless of any
3544#include files.
3545
3546iASL/Preprocessor: Fixed a couple of issues with comment handling and the
3547pass-through of comments to the preprocessor output file (which becomes
3548the compiler input file). Also fixed a problem with // comments that
3549appear after a math expression.
3550
3551iASL: Added support for the TCPA server table to the table compiler and
3552template generator. (The client table was already previously supported)
3553
3554iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
3555identify the iASL compiler.
3556
3557Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
3558multiple times. The new names are ACPI_SIGN_NEGATIVE and
3559ACPI_SIGN_POSITIVE.
3560
3561AcpiHelp: Update to expand help messages for the iASL preprocessor
3562directives.
3563
3564
3565----------------------------------------
356619 June 2015. Summary of changes for version 20150619:
3567
3568Two regressions in version 20150616 have been addressed:
3569
3570Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
3571etc.) This update changes ACPICA to only use the standard headers for
3572functions, or the prototypes for the local versions of the C library
3573functions. Across the source code, this required some additional casts
3574for some Clib invocations for portability. Moved all local prototypes to
3575a new file, acclib.h
3576
3577Fixes several problems with recent changes to the handling of the FACS
3578table that could cause some systems not to boot.
3579
3580
3581----------------------------------------
358216 June 2015. Summary of changes for version 20150616:
3583
3584
35851) ACPICA kernel-resident subsystem:
3586
3587Across the entire ACPICA source code base, the various macros for the C
3588library functions (such as ACPI_STRLEN, etc.) have been removed and
3589replaced by the standard C library names (strlen, etc.) The original
3590purpose for these macros is no longer applicable. This simplification
3591reduces the number of macros used in the ACPICA source code
3592significantly, improving readability and maintainability.
3593
3594Implemented support for a new ACPI table, the OSDT. This table, the
3595"override" SDT, can be loaded directly by the host OS at boot time. It
3596enables the replacement of existing namespace objects that were installed
3597via the DSDT and/or SSDTs. The primary purpose for this is to replace
3598buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
3599for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
3600Moore.
3601
3602Added support for systems with (improperly) two FACS tables -- a "32-bit"
3603table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
3604X field). This change will support both automatically. There continues to
3605be systems found with this issue. This support requires a change to the
3606AcpiSetFirmwareWakingVector interface. Also, a public global variable has
3607been added to allow the host to select which FACS is desired
3608(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
3609details Lv Zheng.
3610
3611Added a new feature to allow for systems that do not contain an FACS.
3612Although this is already supported on hardware-reduced platforms, the
3613feature has been extended for all platforms. The reasoning is that we do
3614not want to abort the entire ACPICA initialization just because the
3615system is seriously buggy and has no FACS.
3616
3617Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
3618not correctly transcribed from the ACPI specification in ACPICA version
361920150515.
3620
3621Implemented support for the _CLS object in the AcpiGetObjectInfo external
3622interface.
3623
3624Updated the definitions of the TCPA and TPM2 ACPI tables to the more
3625recent TCG ACPI Specification, December 14, 2014. Table disassembler and
3626compiler also updated. Note: The TCPA "server" table is not supported by
3627the disassembler/table-compiler at this time.
3628
3629ACPI 6.0: Added definitions for the new GIC version field in the MADT.
3630
3631Example Code and Data Size: These are the sizes for the OS-independent
3632acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3633debug version of the code includes the debug output trace mechanism and
3634has a much larger code and data size.
3635
3636  Current Release:
3637    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3638    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3639  Previous Release:
3640    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3641    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3642
3643
36442) iASL Compiler/Disassembler and Tools:
3645
3646Disassembler: Fixed a problem with the new symbolic operator disassembler
3647where incorrect ASL code could be emitted in some cases for the "non-
3648commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
3649ShiftRight. The actual problem cases seem to be rather unusual in common
3650ASL code, however. David Box.
3651
3652Modified the linux version of acpidump to obtain ACPI tables from not
3653just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
3654Zheng.
3655
3656iASL: Fixed a problem where the user preprocessor output file (.i)
3657contained extra data that was not expected. The compiler was using this
3658file as a temporary file and passed through #line directives in order to
3659keep compiler error messages in sync with the input file and line number
3660across multiple include files. The (.i) is no longer a temporary file as
3661the compiler uses a new, different file for the original purpose.
3662
3663iASL: Fixed a problem where comments within the original ASL source code
3664file were not passed through to the preprocessor output file, nor any
3665listing files.
3666
3667iASL: Fixed some issues for the handling of the "#include" preprocessor
3668directive and the similar (but not the same) "Include" ASL operator.
3669
3670iASL: Add support for the new OSDT in both the disassembler and compiler.
3671
3672iASL: Fixed a problem with the constant folding support where a Buffer
3673object could be incorrectly generated (incorrectly formed) during a
3674conversion to a Store() operator.
3675
3676AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
3677description text for the _REV predefined name. _REV now permanently
3678returns 2, as per the ACPI 6.0 specification.
3679
3680Debugger: Enhanced the output of the Debug ASL object for references
3681produced by the Index operator. For Buffers and strings, only output the
3682actual byte pointed to by the index. For packages, only print the single
3683package element decoded by the index. Previously, the entire
3684buffer/string/package was emitted.
3685
3686iASL/Table-compiler: Fixed a regression where the "generic" data types
3687were no longer recognized, causing errors.
3688
3689
3690----------------------------------------
369115 May 2015. Summary of changes for version 20150515:
3692
3693This release implements most of ACPI 6.0 as described below.
3694
36951) ACPICA kernel-resident subsystem:
3696
3697Implemented runtime argument checking and return value checking for all
3698new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
3699_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
3700
3701Example Code and Data Size: These are the sizes for the OS-independent
3702acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3703debug version of the code includes the debug output trace mechanism and
3704has a much larger code and data size.
3705
3706  Current Release:
3707    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3708    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3709  Previous Release:
3710    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
3711    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
3712
3713
37142) iASL Compiler/Disassembler and Tools:
3715
3716iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
3717names (argument count validation and return value typechecking.)
3718
3719iASL disassembler and table compiler: implemented support for all new
3720ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
3721
3722iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
3723tables: FADT, MADT.
3724
3725iASL preprocessor: Added a new directive to enable inclusion of binary
3726blobs into ASL code. The new directive is #includebuffer. It takes a
3727binary file as input and emits a named ascii buffer object into the ASL
3728code.
3729
3730AcpiHelp: Added support for all new ACPI 6.0 predefined names.
3731
3732AcpiHelp: Added a new option, -d, to display all iASL preprocessor
3733directives.
3734
3735AcpiHelp: Added a new option, -t, to display all known/supported ACPI
3736tables.
3737
3738
3739----------------------------------------
374010 April 2015. Summary of changes for version 20150410:
3741
3742Reverted a change introduced in version 20150408 that caused
3743a regression in the disassembler where incorrect operator
3744symbols could be emitted.
3745
3746
3747----------------------------------------
374808 April 2015. Summary of changes for version 20150408:
3749
3750
37511) ACPICA kernel-resident subsystem:
3752
3753Permanently set the return value for the _REV predefined name. It now
3754returns 2 (was 5). This matches other ACPI implementations. _REV will be
3755deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
3756for ACPI 2.0 and later. It should never be used to differentiate or
3757identify operating systems.
3758
3759Added the "Windows 2015" string to the _OSI support. ACPICA will now
3760return TRUE to a query with this string.
3761
3762Fixed several issues with the local version of the printf function.
3763
3764Added the C99 compiler option (-std=c99) to the Unix makefiles.
3765
3766  Current Release:
3767    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
3768    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
3769  Previous Release:
3770    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
3771    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
3772
3773
37742) iASL Compiler/Disassembler and Tools:
3775
3776iASL: Implemented an enhancement to the constant folding feature to
3777transform the parse tree to a simple Store operation whenever possible:
3778    Add (2, 3, X) ==> is converted to: Store (5, X)
3779    X = 2 + 3     ==> is converted to: Store (5, X)
3780
3781Updated support for the SLIC table (Software Licensing Description Table)
3782in both the Data Table compiler and the disassembler. The SLIC table
3783support now conforms to "Microsoft Software Licensing Tables (SLIC and
3784MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
3785following the ACPI header is now defined to be "Proprietary Data", and as
3786such, can only be entered or displayed as a hex data block.
3787
3788Implemented full support for the MSDM table as described in the document
3789above. Note: The format of MSDM is similar to SLIC. Any MSDM data
3790following the ACPI header is defined to be "Proprietary Data", and can
3791only be entered or displayed as a hex data block.
3792
3793Implemented the -Pn option for the iASL Table Compiler (was only
3794implemented for the ASL compiler). This option disables the iASL
3795preprocessor.
3796
3797Disassembler: For disassembly of Data Tables, added a comment field
3798around the Ascii equivalent data that is emitted as part of the "Raw
3799Table Data" block. This prevents the iASL Preprocessor from possible
3800confusion if/when the table is compiled.
3801
3802Disassembler: Added an option (-df) to force the disassembler to assume
3803that the table being disassembled contains valid AML. This feature is
3804useful for disassembling AML files that contain ACPI signatures other
3805than DSDT or SSDT (such as OEMx or other signatures).
3806
3807Changes for the EFI version of the tools:
38081) Fixed a build error/issue
38092) Fixed a cast warning
3810
3811iASL: Fixed a path issue with the __FILE__ operator by making the
3812directory prefix optional within the internal SplitInputFilename
3813function.
3814
3815Debugger: Removed some unused global variables.
3816
3817Tests: Updated the makefile for proper generation of the AAPITS suite.
3818
3819
3820----------------------------------------
382104 February 2015. Summary of changes for version 20150204:
3822
3823ACPICA kernel-resident subsystem:
3824
3825Updated all ACPICA copyrights and signons to 2014. Added the 2014
3826copyright to all module headers and signons, including the standard Linux
3827header. This affects virtually every file in the ACPICA core subsystem,
3828iASL compiler, all ACPICA utilities, and the test suites.
3829
3830Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
3831A raw gpe handling mechanism was created to allow better handling of GPE
3832storms that aren't easily managed by the normal handler. The raw handler
3833allows disabling/renabling of the GPE so that interrupt storms can be
3834avoided in cases where events cannot be timely serviced. In this
3835scenario, handlers should use the AcpiSetGpe() API to disable/enable the
3836GPE. This API will leave the reference counts undisturbed, thereby
3837preventing unintentional clearing of the GPE when the intent in only to
3838temporarily disable it. Raw handlers allow enabling and disabling of a
3839GPE by removing GPE register locking. As such, raw handlers much provide
3840their own locks while using GPE API's to protect access to GPE data
3841structures.
3842Lv Zheng
3843
3844Events: Always modify GPE registers under the GPE lock.
3845Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
3846values. Reported as bug by joe.liu@apple.com.
3847
3848Unix makefiles: Separate option to disable optimizations and
3849_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
3850NOOPT disable option and creates a separate flag (NOFORTIFY) for this
3851purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
3852errors when building ACPICA. This allows disabling the option without
3853also having to disable optimazations.
3854David Box
3855
3856  Current Release:
3857    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3858    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
3859
3860--
3861--------------------------------------
386207 November 2014. Summary of changes for version 20141107:
3863
3864This release is available at https://acpica.org/downloads
3865
3866This release introduces and implements language extensions to ASL that
3867provide support for symbolic ("C-style") operators and expressions. These
3868language extensions are known collectively as ASL+.
3869
3870
38711) iASL Compiler/Disassembler and Tools:
3872
3873Disassembler: Fixed a problem with disassembly of the UartSerialBus
3874macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
3875Box.
3876
3877Disassembler: Fixed the Unicode macro support to add escape sequences.
3878All non-printable ASCII values are emitted as escape sequences, as well
3879as the standard escapes for quote and backslash. Ensures that the
3880disassembled macro can be correctly recompiled.
3881
3882iASL: Added Printf/Fprintf macros for formatted output. These macros are
3883translated to existing AML Concatenate and Store operations. Printf
3884writes to the ASL Debug object. Fprintf allows the specification of an
3885ASL name as the target. Only a single format specifier is required, %o,
3886since the AML interpreter dynamically converts objects to the required
3887type. David E. Box.
3888
3889    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
3890                 (Concatenate (Concatenate (Concatenate ("", Arg0),
3891                 ": Unexpected value for "), Arg1), ", "), Arg2),
3892                 " at line "), Arg3), Debug)
3893
3894    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
3895                 Arg0, Arg1, Arg2, Arg3)
3896
3897    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
3898                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
3899
3900    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
3901
3902iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
3903ASL parse tree before the AML code is generated. This allows blocks of
3904ASL code to be removed in order to help locate and identify problem
3905devices and/or code. David E. Box.
3906
3907AcpiExec: Added support (-fi) for an optional namespace object
3908initialization file. This file specifies initial values for namespace
3909objects as necessary for debugging and testing different ASL code paths
3910that may be taken as a result of BIOS options.
3911
3912
39132) Overview of symbolic operator support for ASL (ASL+)
3914-------------------------------------------------------
3915
3916As an extension to the ASL language, iASL implements support for symbolic
3917(C-style) operators for math and logical expressions. This can greatly
3918simplify ASL code as well as improve both readability and
3919maintainability. These language extensions can exist concurrently with
3920all legacy ASL code and expressions.
3921
3922The symbolic extensions are 100% compatible with existing AML
3923interpreters, since no new AML opcodes are created. To implement the
3924extensions, the iASL compiler transforms the symbolic expressions into
3925the legacy ASL/AML equivalents at compile time.
3926
3927Full symbolic expressions are supported, along with the standard C
3928precedence and associativity rules.
3929
3930Full disassembler support for the symbolic expressions is provided, and
3931creates an automatic migration path for existing ASL code to ASL+ code
3932via the disassembly process. By default, the disassembler now emits ASL+
3933code with symbolic expressions. An option (-dl) is provided to force the
3934disassembler to emit legacy ASL code if desired.
3935
3936Below is the complete list of the currently supported symbolic operators
3937with examples. See the iASL User Guide for additional information.
3938
3939
3940ASL+ Syntax      Legacy ASL Equivalent
3941-----------      ---------------------
3942
3943    // Math operators
3944
3945Z = X + Y        Add (X, Y, Z)
3946Z = X - Y        Subtract (X, Y, Z)
3947Z = X * Y        Multiply (X, Y, Z)
3948Z = X / Y        Divide (X, Y, , Z)
3949Z = X % Y        Mod (X, Y, Z)
3950Z = X << Y       ShiftLeft (X, Y, Z)
3951Z = X >> Y       ShiftRight (X, Y, Z)
3952Z = X & Y        And (X, Y, Z)
3953Z = X | Y        Or (X, Y, Z)
3954Z = X ^ Y        Xor (X, Y, Z)
3955Z = ~X           Not (X, Z)
3956X++              Increment (X)
3957X--              Decrement (X)
3958
3959    // Logical operators
3960
3961(X == Y)         LEqual (X, Y)
3962(X != Y)         LNotEqual (X, Y)
3963(X < Y)          LLess (X, Y)
3964(X > Y)          LGreater (X, Y)
3965(X <= Y)         LLessEqual (X, Y)
3966(X >= Y)         LGreaterEqual (X, Y)
3967(X && Y)         LAnd (X, Y)
3968(X || Y)         LOr (X, Y)
3969(!X)             LNot (X)
3970
3971    // Assignment and compound assignment operations
3972
3973X = Y           Store (Y, X)
3974X += Y          Add (X, Y, X)
3975X -= Y          Subtract (X, Y, X)
3976X *= Y          Multiply (X, Y, X)
3977X /= Y          Divide (X, Y, , X)
3978X %= Y          Mod (X, Y, X)
3979X <<= Y         ShiftLeft (X, Y, X)
3980X >>= Y         ShiftRight (X, Y, X)
3981X &= Y          And (X, Y, X)
3982X |= Y          Or (X, Y, X)
3983X ^= Y          Xor (X, Y, X)
3984
3985
39863) ASL+ Examples:
3987-----------------
3988
3989Legacy ASL:
3990        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
3991            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
39920x03FB),
3993            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
3994        {
3995            And (MEMB, 0xFFFFFFF0, SRMB)
3996            Store (MEMB, Local2)
3997            Store (PDBM, Local1)
3998            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
3999            Store (SRMB, MEMB)
4000            Or (PDBM, 0x02, PDBM)
4001        }
4002
4003ASL+ version:
4004        If (((R510 & 0x03FB) == 0x02E0) ||
4005            ((R520 & 0x03FB) == 0x02E0) ||
4006            ((R530 & 0x03FB) == 0x02E0) ||
4007            ((R540 & 0x03FB) == 0x02E0))
4008        {
4009            SRMB = (MEMB & 0xFFFFFFF0)
4010            Local2 = MEMB
4011            Local1 = PDBM
4012            PDBM &= 0xFFFFFFFFFFFFFFF9
4013            MEMB = SRMB
4014            PDBM |= 0x02
4015        }
4016
4017Legacy ASL:
4018        Store (0x1234, Local1)
4019        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
4020        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
4021        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
4022        Store (Index (PKG1, 0x03), Local6)
4023        Store (Add (Local3, Local2), Debug)
4024        Add (Local1, 0x0F, Local2)
4025        Add (Local1, Multiply (Local2, Local3), Local2)
4026        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
4027
4028ASL+ version:
4029        Local1 = 0x1234
4030        Local3 = (((Local1 + TEST) + 0x20) * Local2)
4031        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
4032        Local3 = (Local1 + (TEST + (0x20 * Local2)))
4033        Local6 = Index (PKG1, 0x03)
4034        Debug = (Local3 + Local2)
4035        Local2 = (Local1 + 0x0F)
4036        Local2 = (Local1 + (Local2 * Local3))
4037        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
4038
4039
4040----------------------------------------
404126 September 2014. Summary of changes for version 20140926:
4042
40431) ACPICA kernel-resident subsystem:
4044
4045Updated the GPIO operation region handler interface (GeneralPurposeIo).
4046In order to support GPIO Connection objects with multiple pins, along
4047with the related Field objects, the following changes to the interface
4048have been made: The Address is now defined to be the offset in bits of
4049the field unit from the previous invocation of a Connection. It can be
4050viewed as a "Pin Number Index" into the connection resource descriptor.
4051The BitWidth is the exact bit width of the field. It is usually one bit,
4052but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
4053additional information and examples.
4054
4055GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
4056corresponding _Lxx/_Exx methods are disabled (they may have been enabled
4057by the firmware), so that they cannot fire until they are enabled via
4058AcpiUpdateAllGpes. Rafael J. Wysocki.
4059
4060Added a new return flag for the Event/GPE status interfaces --
4061AcpiGetEventStatus and AcpiGetGpeStatus. The new
4062ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
4063GPE currently has a handler associated with it, and can thus actually
4064affect the system. Lv Zheng.
4065
4066Example Code and Data Size: These are the sizes for the OS-independent
4067acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4068debug version of the code includes the debug output trace mechanism and
4069has a much larger code and data size.
4070
4071  Current Release:
4072    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
4073    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
4074  Previous Release:
4075    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4076    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4077
40782) iASL Compiler/Disassembler and Tools:
4079
4080iASL: Fixed a memory allocation/free regression introduced in 20140828
4081that could cause the compiler to crash. This was introduced inadvertently
4082during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
40831113.
4084
4085iASL: Removed two error messages that have been found to create false
4086positives, until they can be fixed and fully validated (ACPICA BZ 1112):
40871) Illegal forward reference within a method
40882) Illegal reference across two methods
4089
4090iASL: Implemented a new option (-lm) to create a hardware mapping file
4091that summarizes all GPIO, I2C, SPI, and UART connections. This option
4092works for both the compiler and disassembler. See the iASL compiler user
4093guide for additional information and examples (section 6.4.6).
4094
4095AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
4096version 2. This corrects the AE_BAD_HEADER exception seen on systems with
4097a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
4098
4099AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
4100unless STDIN is actually a terminal. Assists with batch-mode processing.
4101ACPICA BZ 1114.
4102
4103Disassembler/AcpiHelp: Added another large group of recognized _HID
4104values.
4105
4106
4107----------------------------------------
410828 August 2014. Summary of changes for version 20140828:
4109
41101) ACPICA kernel-resident subsystem:
4111
4112Fixed a problem related to the internal use of the Timer() operator where
4113a 64-bit divide could cause an attempted link to a double-precision math
4114library. This divide is not actually necessary, so the code was
4115restructured to eliminate it. Lv Zheng.
4116
4117ACPI 5.1: Added support for the runtime validation of the _DSD package
4118(similar to the iASL support).
4119
4120ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
4121SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
4122
4123Example Code and Data Size: These are the sizes for the OS-independent
4124acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4125debug version of the code includes the debug output trace mechanism and
4126has a much larger code and data size.
4127
4128  Current Release:
4129    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4130    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4131  Previous Release:
4132    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
4133    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4134
41352) iASL Compiler/Disassembler and Tools:
4136
4137AcpiExec: Fixed a problem on unix systems where the original terminal
4138state was not always properly restored upon exit. Seen when using the -v
4139option. ACPICA BZ 1104.
4140
4141iASL: Fixed a problem with the validation of the ranges/length within the
4142Memory24 resource descriptor. There was a boundary condition when the
4143range was equal to the (length -1) caused by the fact that these values
4144are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
4145
4146Disassembler: Fixed a problem with the GpioInt descriptor interrupt
4147polarity
4148flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
4149is
4150now supported properly.
4151
4152ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
4153in the disassembler, data table compiler, and table template generator.
4154
4155iASL: Added a requirement for Device() objects that one of either a _HID
4156or _ADR must exist within the scope of a Device, as per the ACPI
4157specification. Remove a similar requirement that was incorrectly in place
4158for the _DSD object.
4159
4160iASL: Added error detection for illegal named references within control
4161methods that would cause runtime failures. Now trapped as errors are: 1)
4162References to objects within a non-parent control method. 2) Forward
4163references (within a method) -- for control methods, AML interpreters use
4164a one-pass parse of control methods. ACPICA BZ 1008.
4165
4166iASL: Added error checking for dependencies related to the _PSx power
4167methods. ACPICA BZ 1029.
41681) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
4169_PS3.
41702) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
4171scope.
4172
4173iASL and table compiler: Cleanup miscellaneous memory leaks by fully
4174deploying the existing object and string caches and adding new caches for
4175the table compiler.
4176
4177iASL: Split the huge parser source file into multiple subfiles to improve
4178manageability. Generation now requires the M4 macro preprocessor, which
4179is part of the Bison distribution on both unix and windows platforms.
4180
4181AcpiSrc: Fixed and removed all extraneous warnings generated during
4182entire ACPICA source code scan and/or conversion.
4183
4184
4185----------------------------------------
4186
418724 July 2014. Summary of changes for version 20140724:
4188
4189The ACPI 5.1 specification has been released and is available at:
4190http://uefi.org/specs/access
4191
4192
41930) ACPI 5.1 support in ACPICA:
4194
4195ACPI 5.1 is fully supported in ACPICA as of this release.
4196
4197New predefined names. Support includes iASL and runtime ACPICA
4198validation.
4199    _CCA (Cache Coherency Attribute).
4200    _DSD (Device-Specific Data). David Box.
4201
4202Modifications to existing ACPI tables. Support includes headers, iASL
4203Data Table compiler, disassembler, and the template generator.
4204    FADT - New fields and flags. Graeme Gregory.
4205    GTDT - One new subtable and new fields. Tomasz Nowicki.
4206    MADT - Two new subtables. Tomasz Nowicki.
4207    PCCT - One new subtable.
4208
4209Miscellaneous.
4210    New notification type for System Resource Affinity change events.
4211
4212
42131) ACPICA kernel-resident subsystem:
4214
4215Fixed a regression introduced in 20140627 where a fault can happen during
4216the deletion of Alias AML namespace objects. The problem affected both
4217the core ACPICA and the ACPICA tools including iASL and AcpiExec.
4218
4219Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
4220simple mechanism to enable wake GPEs that have no associated handler or
4221control method. Rafael Wysocki.
4222
4223Updated the AcpiEnableGpe interface to disallow the enable if there is no
4224handler or control method associated with the particular GPE. This will
4225help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
4226
4227Updated GPE handling and dispatch by disabling the GPE before clearing
4228the status bit for edge-triggered GPEs. Lv Zheng.
4229
4230Added Timer() support to the AML Debug object. The current timer value is
4231now displayed with each invocation of (Store to) the debug object to
4232enable simple generation of execution times for AML code (method
4233execution for example.) ACPICA BZ 1093.
4234
4235Example Code and Data Size: These are the sizes for the OS-independent
4236acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4237debug version of the code includes the debug output trace mechanism and
4238has a much larger code and data size.
4239
4240  Current Release:
4241    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
4242    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4243  Previous Release:
4244    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4245    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4246
4247
42482) iASL Compiler/Disassembler and Tools:
4249
4250Fixed an issue with the recently added local printf implementation,
4251concerning width/precision specifiers that could cause incorrect output.
4252Lv Zheng. ACPICA BZ 1094.
4253
4254Disassembler: Added support to detect buffers that contain UUIDs and
4255disassemble them to an invocation of the ToUUID operator. Also emit
4256commented descriptions of known ACPI-related UUIDs.
4257
4258AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
4259-u. Adds three new files.
4260
4261iASL: Update table compiler and disassembler for DMAR table changes that
4262were introduced in September 2013. With assistance by David Woodhouse.
4263
4264----------------------------------------
426527 June 2014. Summary of changes for version 20140627:
4266
42671) ACPICA kernel-resident subsystem:
4268
4269Formatted Output: Implemented local versions of standard formatted output
4270utilities such as printf, etc. Over time, it has been discovered that
4271there are in fact many portability issues with printf, and the addition
4272of this feature will fix/prevent these issues once and for all. Some
4273known issues are summarized below:
4274
42751) Output of 64-bit values is not portable. For example, UINT64 is %ull
4276for the Linux kernel and is %uI64 for some MSVC versions.
42772) Invoking printf consistently in a manner that is portable across both
427832-bit and 64-bit platforms is difficult at best in many situations.
42793) The output format for pointers varies from system to system (leading
4280zeros especially), and leads to inconsistent output from ACPICA across
4281platforms.
42824) Certain platform-specific printf formats may conflict with ACPICA use.
42835) If there is no local C library available, ACPICA now has local support
4284for printf.
4285
4286-- To address these printf issues in a complete manner, ACPICA now
4287directly implements a small subset of printf format specifiers, only
4288those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
4289
4290Implemented support for ACPICA generation within the EFI environment.
4291Initially, the AcpiDump utility is supported in the UEFI shell
4292environment. Lv Zheng.
4293
4294Added a new external interface, AcpiLogError, to improve ACPICA
4295portability. This allows the host to redirect error messages from the
4296ACPICA utilities. Lv Zheng.
4297
4298Added and deployed new OSL file I/O interfaces to improve ACPICA
4299portability:
4300  AcpiOsOpenFile
4301  AcpiOsCloseFile
4302  AcpiOsReadFile
4303  AcpiOsWriteFile
4304  AcpiOsGetFileOffset
4305  AcpiOsSetFileOffset
4306There are C library implementations of these functions in the new file
4307service_layers/oslibcfs.c -- however, the functions can be implemented by
4308the local host in any way necessary. Lv Zheng.
4309
4310Implemented a mechanism to disable/enable ACPI table checksum validation
4311at runtime. This can be useful when loading tables very early during OS
4312initialization when it may not be possible to map the entire table in
4313order to compute the checksum. Lv Zheng.
4314
4315Fixed a buffer allocation issue for the Generic Serial Bus support.
4316Originally, a fixed buffer length was used. This change allows for
4317variable-length buffers based upon the protocol indicated by the field
4318access attributes. Reported by Lan Tianyu. Lv Zheng.
4319
4320Fixed a problem where an object detached from a namespace node was not
4321properly terminated/cleared and could cause a circular list problem if
4322reattached. ACPICA BZ 1063. David Box.
4323
4324Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
4325
4326Fixed a possible memory leak in an error return path within the function
4327AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
4328
4329Example Code and Data Size: These are the sizes for the OS-independent
4330acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4331debug version of the code includes the debug output trace mechanism and
4332has a much larger code and data size.
4333
4334  Current Release:
4335    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4336    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4337  Previous Release:
4338    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4339    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4340
4341
43422) iASL Compiler/Disassembler and Tools:
4343
4344Disassembler: Add dump of ASCII equivalent text within a comment at the
4345end of each line of the output for the Buffer() ASL operator.
4346
4347AcpiDump: Miscellaneous changes:
4348  Fixed repetitive table dump in -n mode.
4349  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
4350the ACPI 2.0 GUID fails.
4351
4352iASL: Fixed a problem where the compiler could fault if incorrectly given
4353an acpidump output file as input. ACPICA BZ 1088. David Box.
4354
4355AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
4356they are invoked without any arguments.
4357
4358Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
43591086. Colin Ian King.
4360
4361Disassembler: Cleaned up a block of code that extracts a parent Op
4362object. Added a comment that explains that the parent is guaranteed to be
4363valid in this case. ACPICA BZ 1069.
4364
4365
4366----------------------------------------
436724 April 2014. Summary of changes for version 20140424:
4368
43691) ACPICA kernel-resident subsystem:
4370
4371Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
4372Some of these tables are known to contain a trailing NULL entry. Lv
4373Zheng.
4374
4375Removed an extraneous error message for the case where there are a large
4376number of system GPEs (> 124). This was the "32-bit FADT register is too
4377long to convert to GAS struct" message, which is irrelevant for GPEs
4378since the GPEx_BLK_LEN fields of the FADT are always used instead of the
4379(limited capacity) GAS bit length. Also, several changes to ensure proper
4380support for GPE numbers > 255, where some "GPE number" fields were 8-bits
4381internally.
4382
4383Implemented and deployed additional configuration support for the public
4384ACPICA external interfaces. Entire classes of interfaces can now be
4385easily modified or configured out, replaced by stubbed inline functions
4386by default. Lv Zheng.
4387
4388Moved all public ACPICA runtime configuration globals to the public
4389ACPICA external interface file for convenience. Also, removed some
4390obsolete/unused globals. See the file acpixf.h. Lv Zheng.
4391
4392Documentation: Added a new section to the ACPICA reference describing the
4393maximum number of GPEs that can be supported by the FADT-defined GPEs in
4394block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
4395reference.
4396
4397Example Code and Data Size: These are the sizes for the OS-independent
4398acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4399debug version of the code includes the debug output trace mechanism and
4400has a much larger code and data size.
4401
4402  Current Release:
4403    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4404    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4405  Previous Release:
4406    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4407    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4408
4409
44102) iASL Compiler/Disassembler and Tools:
4411
4412iASL and disassembler: Add full support for the LPIT table (Low Power
4413Idle Table). Includes support in the disassembler, data table compiler,
4414and template generator.
4415
4416AcpiDump utility:
44171) Add option to force the use of the RSDT (over the XSDT).
44182) Improve validation of the RSDP signature (use 8 chars instead of 4).
4419
4420iASL: Add check for predefined packages that are too large.  For
4421predefined names that contain subpackages, check if each subpackage is
4422too large. (Check for too small already exists.)
4423
4424Debugger: Updated the GPE command (which simulates a GPE by executing the
4425GPE code paths in ACPICA). The GPE device is now optional, and defaults
4426to the GPE 0/1 FADT-defined blocks.
4427
4428Unix application OSL: Update line-editing support. Add additional error
4429checking and take care not to reset terminal attributes on exit if they
4430were never set. This should help guarantee that the terminal is always
4431left in the previous state on program exit.
4432
4433
4434----------------------------------------
443525 March 2014. Summary of changes for version 20140325:
4436
44371) ACPICA kernel-resident subsystem:
4438
4439Updated the auto-serialize feature for control methods. This feature
4440automatically serializes all methods that create named objects in order
4441to prevent runtime errors. The update adds support to ignore the
4442currently executing AML SyncLevel when invoking such a method, in order
4443to prevent disruption of any existing SyncLevel priorities that may exist
4444in the AML code. Although the use of SyncLevels is relatively rare, this
4445change fixes a regression where an AE_AML_MUTEX_ORDER exception can
4446appear on some machines starting with the 20140214 release.
4447
4448Added a new external interface to allow the host to install ACPI tables
4449very early, before the namespace is even created. AcpiInstallTable gives
4450the host additional flexibility for ACPI table management. Tables can be
4451installed directly by the host as if they had originally appeared in the
4452XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
4453(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
4454with additional internal restructuring and cleanup. See the ACPICA
4455Reference for interface details. Lv Zheng.
4456
4457Added validation of the checksum for all incoming dynamically loaded
4458tables (via external interfaces or via AML Load/LoadTable operators). Lv
4459Zheng.
4460
4461Updated the use of the AcpiOsWaitEventsComplete interface during Notify
4462and GPE handler removal. Restructured calls to eliminate possible race
4463conditions. Lv Zheng.
4464
4465Added a warning for the use/execution of the ASL/AML Unload (table)
4466operator. This will help detect and identify machines that use this
4467operator if and when it is ever used. This operator has never been seen
4468in the field and the usage model and possible side-effects of the drastic
4469runtime action of a full table removal are unknown.
4470
4471Reverted the use of #pragma push/pop which was introduced in the 20140214
4472release. It appears that push and pop are not implemented by enough
4473compilers to make the use of this feature feasible for ACPICA at this
4474time. However, these operators may be deployed in a future ACPICA
4475release.
4476
4477Added the missing EXPORT_SYMBOL macros for the install and remove SCI
4478handler interfaces.
4479
4480Source code generation:
44811) Disabled the use of the "strchr" macro for the gcc-specific
4482generation. For some versions of gcc, this macro can periodically expose
4483a compiler bug which in turn causes compile-time error(s).
44842) Added support for PPC64 compilation. Colin Ian King.
4485
4486Example Code and Data Size: These are the sizes for the OS-independent
4487acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4488debug version of the code includes the debug output trace mechanism and
4489has a much larger code and data size.
4490
4491  Current Release:
4492    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4493    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4494  Previous Release:
4495    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4496    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4497
4498
44992) iASL Compiler/Disassembler and Tools:
4500
4501Disassembler: Added several new features to improve the readability of
4502the resulting ASL code. Extra information is emitted within comment
4503fields in the ASL code:
45041) Known _HID/_CID values are decoded to descriptive text.
45052) Standard values for the Notify() operator are decoded to descriptive
4506text.
45073) Target operands are expanded to full pathnames (in a comment) when
4508possible.
4509
4510Disassembler: Miscellaneous updates for extern() handling:
45111) Abort compiler if file specified by -fe option does not exist.
45122) Silence unnecessary warnings about argument count mismatches.
45133) Update warning messages concerning unresolved method externals.
45144) Emit "UnknownObj" keyword for externals whose type cannot be
4515determined.
4516
4517AcpiHelp utility:
45181) Added the -a option to display both the ASL syntax and the AML
4519encoding for an input ASL operator. This effectively displays all known
4520information about an ASL operator with one AcpiHelp invocation.
45212) Added substring match support (similar to a wildcard) for the -i
4522(_HID/PNP IDs) option.
4523
4524iASL/Disassembler: Since this tool does not yet support execution on big-
4525endian machines, added detection of endianness and an error message if
4526execution is attempted on big-endian. Support for big-endian within iASL
4527is a feature that is on the ACPICA to-be-done list.
4528
4529AcpiBin utility:
45301) Remove option to extract binary files from an acpidump; this function
4531is made obsolete by the AcpiXtract utility.
45322) General cleanup of open files and allocated buffers.
4533
4534
4535----------------------------------------
453614 February 2014. Summary of changes for version 20140214:
4537
45381) ACPICA kernel-resident subsystem:
4539
4540Implemented a new mechanism to proactively prevent problems with ill-
4541behaved reentrant control methods that create named ACPI objects. This
4542behavior is illegal as per the ACPI specification, but is nonetheless
4543frequently seen in the field. Previously, this could lead to an
4544AE_ALREADY_EXISTS exception if the method was actually entered by more
4545than one thread. This new mechanism detects such methods at table load
4546time and marks them "serialized" to prevent reentrancy. A new global
4547option, AcpiGbl_AutoSerializeMethods, has been added to disable this
4548feature if desired. This mechanism and global option obsoletes and
4549supersedes the previous AcpiGbl_SerializeAllMethods option.
4550
4551Added the "Windows 2013" string to the _OSI support. ACPICA will now
4552respond TRUE to _OSI queries with this string. It is the stated policy of
4553ACPICA to add new strings to the _OSI support as soon as possible after
4554they are defined. See the full ACPICA _OSI policy which has been added to
4555the utilities/utosi.c file.
4556
4557Hardened/updated the _PRT return value auto-repair code:
45581) Do not abort the repair on a single subpackage failure, continue to
4559check all subpackages.
45602) Add check for the minimum subpackage length (4).
45613) Properly handle extraneous NULL package elements.
4562
4563Added support to avoid the possibility of infinite loops when traversing
4564object linked lists. Never allow an infinite loop, even in the face of
4565corrupted object lists.
4566
4567ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
4568pack(pop) directives to ensure that the ACPICA headers are independent of
4569compiler settings or other host headers.
4570
4571Example Code and Data Size: These are the sizes for the OS-independent
4572acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4573debug version of the code includes the debug output trace mechanism and
4574has a much larger code and data size.
4575
4576  Current Release:
4577    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4578    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4579  Previous Release:
4580    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4581    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4582
4583
45842) iASL Compiler/Disassembler and Tools:
4585
4586iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
4587first reserved field was incorrectly forced to have a value of zero. This
4588change correctly forces the field to have a value of one. ACPICA BZ 1081.
4589
4590Debugger: Added missing support for the "Extra" and "Data" subobjects
4591when displaying object data.
4592
4593Debugger: Added support to display entire object linked lists when
4594displaying object data.
4595
4596iASL: Removed the obsolete -g option to obtain ACPI tables from the
4597Windows registry. This feature has been superseded by the acpidump
4598utility.
4599
4600
4601----------------------------------------
460214 January 2014. Summary of changes for version 20140114:
4603
46041) ACPICA kernel-resident subsystem:
4605
4606Updated all ACPICA copyrights and signons to 2014. Added the 2014
4607copyright to all module headers and signons, including the standard Linux
4608header. This affects virtually every file in the ACPICA core subsystem,
4609iASL compiler, all ACPICA utilities, and the test suites.
4610
4611Improved parameter validation for AcpiInstallGpeBlock. Added the
4612following checks:
46131) The incoming device handle refers to type ACPI_TYPE_DEVICE.
46142) There is not already a GPE block attached to the device.
4615Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
4616device.
4617
4618Correctly support "references" in the ACPI_OBJECT. This change fixes the
4619support to allow references (namespace nodes) to be passed as arguments
4620to control methods via the evaluate object interface. This is probably
4621most useful for testing purposes, however.
4622
4623Improved support for 32/64 bit physical addresses in printf()-like
4624output. This change improves the support for physical addresses in printf
4625debug statements and other output on both 32-bit and 64-bit hosts. It
4626consistently outputs the appropriate number of bytes for each host. The
4627%p specifier is unsatisfactory since it does not emit uniform output on
4628all hosts/clib implementations (on some, leading zeros are not supported,
4629leading to difficult-to-read output).
4630
4631Example Code and Data Size: These are the sizes for the OS-independent
4632acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4633debug version of the code includes the debug output trace mechanism and
4634has a much larger code and data size.
4635
4636  Current Release:
4637    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4638    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4639  Previous Release:
4640    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4641    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4642
4643
46442) iASL Compiler/Disassembler and Tools:
4645
4646iASL: Fix a possible fault when using the Connection() operator. Fixes a
4647problem if the parent Field definition for the Connection operator refers
4648to an operation region that does not exist. ACPICA BZ 1064.
4649
4650AcpiExec: Load of local test tables is now optional. The utility has the
4651capability to load some various tables to test features of ACPICA.
4652However, there are enough of them that the output of the utility became
4653confusing. With this change, only the required local tables are displayed
4654(RSDP, XSDT, etc.) along with the actual tables loaded via the command
4655line specification. This makes the default output simler and easier to
4656understand. The -el command line option restores the original behavior
4657for testing purposes.
4658
4659AcpiExec: Added support for overlapping operation regions. This change
4660expands the simulation of operation regions by supporting regions that
4661overlap within the given address space. Supports SystemMemory and
4662SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
4663
4664AcpiExec: Added region handler support for PCI_Config and EC spaces. This
4665allows AcpiExec to simulate these address spaces, similar to the current
4666support for SystemMemory and SystemIO.
4667
4668Debugger: Added new command to read/write/compare all namespace objects.
4669The command "test objects" will exercise the entire namespace by writing
4670new values to each data object, and ensuring that the write was
4671successful. The original value is then restored and verified.
4672
4673Debugger: Added the "test predefined" command. This change makes this
4674test public and puts it under the new "test" command. The test executes
4675each and every predefined name within the current namespace.
4676
4677
4678----------------------------------------
467918 December 2013. Summary of changes for version 20131218:
4680
4681Global note: The ACPI 5.0A specification was released this month. There
4682are no changes needed for ACPICA since this release of ACPI is an
4683errata/clarification release. The specification is available at
4684acpi.info.
4685
4686
46871) ACPICA kernel-resident subsystem:
4688
4689Added validation of the XSDT root table if it is present. Some older
4690platforms contain an XSDT that is ill-formed or otherwise invalid (such
4691as containing some or all entries that are NULL pointers). This change
4692adds a new function to validate the XSDT before actually using it. If the
4693XSDT is found to be invalid, ACPICA will now automatically fall back to
4694using the RSDT instead. Original implementation by Zhao Yakui. Ported to
4695ACPICA and enhanced by Lv Zheng and Bob Moore.
4696
4697Added a runtime option to ignore the XSDT and force the use of the RSDT.
4698This change adds a runtime option that will force ACPICA to use the RSDT
4699instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
4700requires that an XSDT be used instead of the RSDT, the XSDT has been
4701found to be corrupt or ill-formed on some machines. Lv Zheng.
4702
4703Added a runtime option to favor 32-bit FADT register addresses over the
470464-bit addresses. This change adds an option to favor 32-bit FADT
4705addresses when there is a conflict between the 32-bit and 64-bit versions
4706of the same register. The default behavior is to use the 64-bit version
4707in accordance with the ACPI specification. This can now be overridden via
4708the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
4709
4710During the change above, the internal "Convert FADT" and "Verify FADT"
4711functions have been merged to simplify the code, making it easier to
4712understand and maintain. ACPICA BZ 933.
4713
4714Improve exception reporting and handling for GPE block installation.
4715Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
4716status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
4717
4718Added helper macros to extract bus/segment numbers from the HEST table.
4719This change adds two macros to extract the encoded bus and segment
4720numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
4721Betty Dall <betty.dall@hp.com>
4722
4723Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
4724by ACPICA. It is not a public macro, so it should have no effect on
4725existing OSV code. Lv Zheng.
4726
4727Example Code and Data Size: These are the sizes for the OS-independent
4728acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4729debug version of the code includes the debug output trace mechanism and
4730has a much larger code and data size.
4731
4732  Current Release:
4733    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4734    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4735  Previous Release:
4736    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
4737    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
4738
4739
47402) iASL Compiler/Disassembler and Tools:
4741
4742Disassembler: Improved pathname support for emitted External()
4743statements. This change adds full pathname support for external names
4744that have been resolved internally by the inclusion of additional ACPI
4745tables (via the iASL -e option). Without this change, the disassembler
4746can emit multiple externals for the same object, or it become confused
4747when the Scope() operator is used on an external object. Overall, greatly
4748improves the ability to actually recompile the emitted ASL code when
4749objects a referenced across multiple ACPI tables. Reported by Michael
4750Tsirkin (mst@redhat.com).
4751
4752Tests/ASLTS: Updated functional control suite to execute with no errors.
4753David Box. Fixed several errors related to the testing of the interpreter
4754slack mode. Lv Zheng.
4755
4756iASL: Added support to detect names that are declared within a control
4757method, but are unused (these are temporary names that are only valid
4758during the time the method is executing). A remark is issued for these
4759cases. ACPICA BZ 1022.
4760
4761iASL: Added full support for the DBG2 table. Adds full disassembler,
4762table compiler, and template generator support for the DBG2 table (Debug
4763Port 2 table).
4764
4765iASL: Added full support for the PCCT table, update the table definition.
4766Updates the PCCT table definition in the actbl3.h header and adds table
4767compiler and template generator support.
4768
4769iASL: Added an option to emit only error messages (no warnings/remarks).
4770The -ve option will enable only error messages, warnings and remarks are
4771suppressed. This can simplify debugging when only the errors are
4772important, such as when an ACPI table is disassembled and there are many
4773warnings and remarks -- but only the actual errors are of real interest.
4774
4775Example ACPICA code (source/tools/examples): Updated the example code so
4776that it builds to an actual working program, not just example code. Added
4777ACPI tables and execution of an example control method in the DSDT. Added
4778makefile support for Unix generation.
4779
4780
4781----------------------------------------
478215 November 2013. Summary of changes for version 20131115:
4783
4784This release is available at https://acpica.org/downloads
4785
4786
47871) ACPICA kernel-resident subsystem:
4788
4789Resource Manager: Fixed loop termination for the "get AML length"
4790function. The loop previously had an error termination on a NULL resource
4791pointer, which can never happen since the loop simply increments a valid
4792resource pointer. This fix changes the loop to terminate with an error on
4793an invalid end-of-buffer condition. The problem can be seen as an
4794infinite loop by callers to AcpiSetCurrentResources with an invalid or
4795corrupted resource descriptor, or a resource descriptor that is missing
4796an END_TAG descriptor. Reported by Dan Carpenter
4797<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
4798
4799Table unload and ACPICA termination: Delete all attached data objects
4800during namespace node deletion. This fix updates namespace node deletion
4801to delete the entire list of attached objects (attached via
4802AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
48031024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
4804
4805ACPICA termination: Added support to delete all objects attached to the
4806root namespace node. This fix deletes any and all objects that have been
4807attached to the root node via AcpiAttachData. Previously, none of these
4808objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
4809
4810Debug output: Do not emit the function nesting level for the in-kernel
4811build. The nesting level is really only useful during a single-thread
4812execution. Therefore, only enable this output for the AcpiExec utility.
4813Also, only emit the thread ID when executing under AcpiExec (Context
4814switches are still always detected and a message is emitted). ACPICA BZ
4815972.
4816
4817Example Code and Data Size: These are the sizes for the OS-independent
4818acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4819debug version of the code includes the debug output trace mechanism and
4820has a much larger code and data size.
4821
4822  Current Release:
4823    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
4824    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
4825  Previous Release:
4826    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
4827    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
4828
4829
48302) iASL Compiler/Disassembler and Tools:
4831
4832AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
4833correct portable POSIX header for terminal control functions.
4834
4835Disassembler: Fixed control method invocation issues related to the use
4836of the CondRefOf() operator. The problem is seen in the disassembly where
4837control method invocations may not be disassembled properly if the
4838control method name has been used previously as an argument to CondRefOf.
4839The solution is to not attempt to emit an external declaration for the
4840CondRefOf target (it is not necessary in the first place). This prevents
4841disassembler object type confusion. ACPICA BZ 988.
4842
4843Unix Makefiles: Added an option to disable compiler optimizations and the
4844_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
4845with optimizations (reportedly, gcc 4.4 for example). This change adds a
4846command line option for make (NOOPT) that disables all compiler
4847optimizations and the _FORTIFY_SOURCE compiler flag. The default
4848optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
48491034. Lv Zheng, Bob Moore.
4850
4851Tests/ASLTS: Added options to specify individual test cases and modes.
4852This allows testers running aslts.sh to optionally specify individual
4853test modes and test cases. Also added an option to disable the forced
4854generation of the ACPICA tools from source if desired. Lv Zheng.
4855
4856----------------------------------------
485727 September 2013. Summary of changes for version 20130927:
4858
4859This release is available at https://acpica.org/downloads
4860
4861
48621) ACPICA kernel-resident subsystem:
4863
4864Fixed a problem with store operations to reference objects. This change
4865fixes a problem where a Store operation to an ArgX object that contained
4866a
4867reference to a field object did not complete the automatic dereference
4868and
4869then write to the actual field object. Instead, the object type of the
4870field object was inadvertently changed to match the type of the source
4871operand. The new behavior will actually write to the field object (buffer
4872field or field unit), thus matching the correct ACPI-defined behavior.
4873
4874Implemented support to allow the host to redefine individual OSL
4875prototypes. This change enables the host to redefine OSL prototypes found
4876in the acpiosxf.h file. This allows the host to implement OSL interfaces
4877with a macro or inlined function. Further, it allows the host to add any
4878additional required modifiers such as __iomem, __init, __exit, etc., as
4879necessary on a per-interface basis. Enables maximum flexibility for the
4880OSL interfaces. Lv Zheng.
4881
4882Hardcoded the access width for the FADT-defined reset register. The ACPI
4883specification requires the reset register width to be 8 bits. ACPICA now
4884hardcodes the width to 8 and ignores the FADT width value. This provides
4885compatibility with other ACPI implementations that have allowed BIOS code
4886with bad register width values to go unnoticed. Matthew Garett, Bob
4887Moore,
4888Lv Zheng.
4889
4890Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
4891used
4892in the OSL header (acpiosxf). The change modifies the position of this
4893macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
4894build issues if the OSL defines the implementation of the interface to be
4895an inline stub function. Lv Zheng.
4896
4897Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
4898initialization interfaces. This change adds a new macro for the main init
4899and terminate external interfaces in order to support hosts that require
4900additional or different processing for these functions. Changed from
4901ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
4902Zheng, Bob Moore.
4903
4904Cleaned up the memory allocation macros for configurability. In the
4905common
4906case, the ACPI_ALLOCATE and related macros now resolve directly to their
4907respective AcpiOs* OSL interfaces. Two options:
49081) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
4909default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
49102) For AcpiExec (and for debugging), the macros can optionally be
4911resolved
4912to the local ACPICA interfaces that track each allocation (local tracking
4913is used to immediately detect memory leaks).
4914Lv Zheng.
4915
4916Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
4917to predefine this macro to either TRUE or FALSE during the system build.
4918
4919Replaced __FUNCTION_ with __func__ in the gcc-specific header.
4920
4921Example Code and Data Size: These are the sizes for the OS-independent
4922acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4923debug version of the code includes the debug output trace mechanism and
4924has a much larger code and data size.
4925
4926  Current Release:
4927    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
4928    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
4929  Previous Release:
4930    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
4931    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
4932
4933
49342) iASL Compiler/Disassembler and Tools:
4935
4936iASL: Implemented wildcard support for the -e option. This simplifies use
4937when there are many SSDTs that must be included to resolve external
4938method
4939declarations. ACPICA BZ 1041. Example:
4940    iasl -e ssdt*.dat -d dsdt.dat
4941
4942AcpiExec: Add history/line-editing for Unix/Linux systems. This change
4943adds a portable module that implements full history and limited line
4944editing for Unix and Linux systems. It does not use readline() due to
4945portability issues. Instead it uses the POSIX termio interface to put the
4946terminal in raw input mode so that the various special keys can be
4947trapped
4948(such as up/down-arrow for history support and left/right-arrow for line
4949editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
4950
4951AcpiXtract: Add support to handle (ignore) "empty" lines containing only
4952one or more spaces. This provides compatible with early or different
4953versions of the AcpiDump utility. ACPICA BZ 1044.
4954
4955AcpiDump: Do not ignore tables that contain only an ACPI table header.
4956Apparently, some BIOSs create SSDTs that contain an ACPI table header but
4957no other data. This change adds support to dump these tables. Any tables
4958shorter than the length of an ACPI table header remain in error (an error
4959message is emitted). Reported by Yi Li.
4960
4961Debugger: Echo actual command along with the "unknown command" message.
4962
4963----------------------------------------
496423 August 2013. Summary of changes for version 20130823:
4965
49661) ACPICA kernel-resident subsystem:
4967
4968Implemented support for host-installed System Control Interrupt (SCI)
4969handlers. Certain ACPI functionality requires the host to handle raw
4970SCIs. For example, the "SCI Doorbell" that is defined for memory power
4971state support requires the host device driver to handle SCIs to examine
4972if the doorbell has been activated. Multiple SCI handlers can be
4973installed to allow for future expansion. New external interfaces are
4974AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
4975details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
4976
4977Operation region support: Never locally free the handler "context"
4978pointer. This change removes some dangerous code that attempts to free
4979the handler context pointer in some (rare) circumstances. The owner of
4980the handler owns this pointer and the ACPICA code should never touch it.
4981Although not seen to be an issue in any kernel, it did show up as a
4982problem (fault) under AcpiExec. Also, set the internal storage field for
4983the context pointer to zero when the region is deactivated, simply for
4984sanity. David Box. ACPICA BZ 1039.
4985
4986AcpiRead: On error, do not modify the return value target location. If an
4987error happens in the middle of a split 32/32 64-bit I/O operation, do not
4988modify the target of the return value pointer. Makes the code consistent
4989with the rest of ACPICA. Bjorn Helgaas.
4990
4991Example Code and Data Size: These are the sizes for the OS-independent
4992acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4993debug version of the code includes the debug output trace mechanism and
4994has a much larger code and data size.
4995
4996  Current Release:
4997    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
4998    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
4999  Previous Release:
5000    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5001    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
5002
5003
50042) iASL Compiler/Disassembler and Tools:
5005
5006AcpiDump: Implemented several new features and fixed some problems:
50071) Added support to dump the RSDP, RSDT, and XSDT tables.
50082) Added support for multiple table instances (SSDT, UEFI).
50093) Added option to dump "customized" (overridden) tables (-c).
50104) Fixed a problem where some table filenames were improperly
5011constructed.
50125) Improved some error messages, removed some unnecessary messages.
5013
5014iASL: Implemented additional support for disassembly of ACPI tables that
5015contain invocations of external control methods. The -fe<file> option
5016allows the import of a file that specifies the external methods along
5017with the required number of arguments for each -- allowing for the
5018correct disassembly of the table. This is a workaround for a limitation
5019of AML code where the disassembler often cannot determine the number of
5020arguments required for an external control method and generates incorrect
5021ASL code. See the iASL reference for details. ACPICA BZ 1030.
5022
5023Debugger: Implemented a new command (paths) that displays the full
5024pathnames (namepaths) and object types of all objects in the namespace.
5025This is an alternative to the namespace command.
5026
5027Debugger: Implemented a new command (sci) that invokes the SCI dispatch
5028mechanism and any installed handlers.
5029
5030iASL: Fixed a possible segfault for "too many parent prefixes" condition.
5031This can occur if there are too many parent prefixes in a namepath (for
5032example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
5033
5034Application OSLs: Set the return value for the PCI read functions. These
5035functions simply return AE_OK, but should set the return value to zero
5036also. This change implements this. ACPICA BZ 1038.
5037
5038Debugger: Prevent possible command line buffer overflow. Increase the
5039size of a couple of the debugger line buffers, and ensure that overflow
5040cannot happen. ACPICA BZ 1037.
5041
5042iASL: Changed to abort immediately on serious errors during the parsing
5043phase. Due to the nature of ASL, there is no point in attempting to
5044compile these types of errors, and they typically end up causing a
5045cascade of hundreds of errors which obscure the original problem.
5046
5047----------------------------------------
504825 July 2013. Summary of changes for version 20130725:
5049
50501) ACPICA kernel-resident subsystem:
5051
5052Fixed a problem with the DerefOf operator where references to FieldUnits
5053and BufferFields incorrectly returned the parent object, not the actual
5054value of the object. After this change, a dereference of a FieldUnit
5055reference results in a read operation on the field to get the value, and
5056likewise, the appropriate BufferField value is extracted from the target
5057buffer.
5058
5059Fixed a problem where the _WAK method could cause a fault under these
5060circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
5061method returned no value. The problem is rarely seen because most kernels
5062run ACPICA in slack mode.
5063
5064For the DerefOf operator, a fatal error now results if an attempt is made
5065to dereference a reference (created by the Index operator) to a NULL
5066package element. Provides compatibility with other ACPI implementations,
5067and this behavior will be added to a future version of the ACPI
5068specification.
5069
5070The ACPI Power Management Timer (defined in the FADT) is now optional.
5071This provides compatibility with other ACPI implementations and will
5072appear in the next version of the ACPI specification. If there is no PM
5073Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
5074zero in the FADT indicates no PM timer.
5075
5076Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
5077allows the host to globally enable/disable all vendor strings, all
5078feature strings, or both. Intended to be primarily used for debugging
5079purposes only. Lv Zheng.
5080
5081Expose the collected _OSI data to the host via a global variable. This
5082data tracks the highest level vendor ID that has been invoked by the BIOS
5083so that the host (and potentially ACPICA itself) can change behaviors
5084based upon the age of the BIOS.
5085
5086Example Code and Data Size: These are the sizes for the OS-independent
5087acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5088debug version of the code includes the debug output trace mechanism and
5089has a much larger code and data size.
5090
5091  Current Release:
5092    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5093    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5094  Previous Release:
5095    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5096    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5097
5098
50992) iASL Compiler/Disassembler and Tools:
5100
5101iASL: Created the following enhancements for the -so option (create
5102offset table):
51031)Add offsets for the last nameseg in each namepath for every supported
5104object type
51052)Add support for Processor, Device, Thermal Zone, and Scope objects
51063)Add the actual AML opcode for the parent object of every supported
5107object type
51084)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
5109
5110Disassembler: Emit all unresolved external symbols in a single block.
5111These are external references to control methods that could not be
5112resolved, and thus, the disassembler had to make a guess at the number of
5113arguments to parse.
5114
5115iASL: The argument to the -T option (create table template) is now
5116optional. If not specified, the default table is a DSDT, typically the
5117most common case.
5118
5119----------------------------------------
512026 June 2013. Summary of changes for version 20130626:
5121
51221) ACPICA kernel-resident subsystem:
5123
5124Fixed an issue with runtime repair of the _CST object. Null or invalid
5125elements were not always removed properly. Lv Zheng.
5126
5127Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
5128FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
5129the maximum number of GPEs is 1016. Use of multiple GPE block devices
5130makes the system-wide number of GPEs essentially unlimited.
5131
5132Example Code and Data Size: These are the sizes for the OS-independent
5133acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5134debug version of the code includes the debug output trace mechanism and
5135has a much larger code and data size.
5136
5137  Current Release:
5138    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5139    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5140  Previous Release:
5141    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5142    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5143
5144
51452) iASL Compiler/Disassembler and Tools:
5146
5147Portable AcpiDump: Implemented full support for the Linux and FreeBSD
5148hosts. Now supports Linux, FreeBSD, and Windows.
5149
5150Disassembler: Added some missing types for the HEST and EINJ tables: "Set
5151Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
5152
5153iASL/Preprocessor: Implemented full support for nested
5154#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
5155
5156Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
5157max. The original purpose of this constraint was to limit the amount of
5158debug output. However, the string function in question (UtPrintString) is
5159now used for the disassembler also, where 256 bytes is insufficient.
5160Reported by RehabMan@GitHub.
5161
5162iASL/DataTables: Fixed some problems and issues with compilation of DMAR
5163tables. ACPICA BZ 999. Lv Zheng.
5164
5165iASL: Fixed a couple of error exit issues that could result in a "Could
5166not delete <file>" message during ASL compilation.
5167
5168AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
5169the actual signatures for these tables are "FACP" and "APIC",
5170respectively.
5171
5172AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
5173tables are allowed to have multiple instances.
5174
5175----------------------------------------
517617 May 2013. Summary of changes for version 20130517:
5177
51781) ACPICA kernel-resident subsystem:
5179
5180Fixed a regression introduced in version 20130328 for _INI methods. This
5181change fixes a problem introduced in 20130328 where _INI methods are no
5182longer executed properly because of a memory block that was not
5183initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
5184<tomasz.nowicki@linaro.org>.
5185
5186Fixed a possible problem with the new extended sleep registers in the
5187ACPI
51885.0 FADT. Do not use these registers (even if populated) unless the HW-
5189reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
51901020. Lv Zheng.
5191
5192Implemented return value repair code for _CST predefined objects: Sort
5193the
5194list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
5195
5196Implemented a debug-only option to disable loading of SSDTs from the
5197RSDT/XSDT during ACPICA initialization. This can be useful for debugging
5198ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
5199acglobal.h - ACPICA BZ 1005. Lv Zheng.
5200
5201Fixed some issues in the ACPICA initialization and termination code:
5202Tomasz Nowicki <tomasz.nowicki@linaro.org>
52031) Clear events initialized flag upon event component termination. ACPICA
5204BZ 1013.
52052) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
52063) Delete global lock pending lock during termination. ACPICA BZ 1012.
52074) Clear debug buffer global on termination to prevent possible multiple
5208delete. ACPICA BZ 1010.
5209
5210Standardized all switch() blocks across the entire source base. After
5211many
5212years, different formatting for switch() had crept in. This change makes
5213the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
5214
5215Split some files to enhance ACPICA modularity and configurability:
52161) Split buffer dump routines into utilities/utbuffer.c
52172) Split internal error message routines into utilities/uterror.c
52183) Split table print utilities into tables/tbprint.c
52194) Split iASL command-line option processing into asloptions.c
5220
5221Makefile enhancements:
52221) Support for all new files above.
52232) Abort make on errors from any subcomponent. Chao Guan.
52243) Add build support for Apple Mac OS X. Liang Qi.
5225
5226Example Code and Data Size: These are the sizes for the OS-independent
5227acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5228debug version of the code includes the debug output trace mechanism and
5229has a much larger code and data size.
5230
5231  Current Release:
5232    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5233    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5234  Previous Release:
5235    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5236    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5237
5238
52392) iASL Compiler/Disassembler and Tools:
5240
5241New utility: Implemented an easily portable version of the acpidump
5242utility to extract ACPI tables from the system (or a file) in an ASCII
5243hex
5244dump format. The top-level code implements the various command line
5245options, file I/O, and table dump routines. To port to a new host, only
5246three functions need to be implemented to get tables -- since this
5247functionality is OS-dependent. See the tools/acpidump/apmain.c module and
5248the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
52491) The Windows version obtains the ACPI tables from the Registry.
52502) The Linux version is under development.
52513) Other hosts - If an OS-dependent module is submitted, it will be
5252distributed with ACPICA.
5253
5254iASL: Fixed a regression for -D preprocessor option (define symbol). A
5255restructuring/change to the initialization sequence caused this option to
5256no longer work properly.
5257
5258iASL: Implemented a mechanism to disable specific warnings and remarks.
5259Adds a new command line option, "-vw <messageid> as well as "#pragma
5260disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
5261
5262iASL: Fix for too-strict package object validation. The package object
5263validation for return values from the predefined names is a bit too
5264strict, it does not allow names references within the package (which will
5265be resolved at runtime.) These types of references cannot be validated at
5266compile time. This change ignores named references within package objects
5267for names that return or define static packages.
5268
5269Debugger: Fixed the 80-character command line limitation for the History
5270command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
5271
5272iASL: Added control method and package support for the -so option
5273(generates AML offset table for BIOS support.)
5274
5275iASL: issue a remark if a non-serialized method creates named objects. If
5276a thread blocks within the method for any reason, and another thread
5277enters the method, the method will fail because an attempt will be made
5278to
5279create the same (named) object twice. In this case, issue a remark that
5280the method should be marked serialized. NOTE: may become a warning later.
5281ACPICA BZ 909.
5282
5283----------------------------------------
528418 April 2013. Summary of changes for version 20130418:
5285
52861) ACPICA kernel-resident subsystem:
5287
5288Fixed a possible buffer overrun during some rare but specific field unit
5289read operations. This overrun can only happen if the DSDT version is 1 --
5290meaning that all AML integers are 32 bits -- and the field length is
5291between 33 and 55 bits long. During the read, an internal buffer object
5292is
5293created for the field unit because the field is larger than an integer
5294(32
5295bits). However, in this case, the buffer will be incorrectly written
5296beyond the end because the buffer length is less than the internal
5297minimum
5298of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
5299long, but a full 8 bytes will be written.
5300
5301Updated the Embedded Controller "orphan" _REG method support. This refers
5302to _REG methods under the EC device that have no corresponding operation
5303region. This is allowed by the ACPI specification. This update removes a
5304dependency on the existence an ECDT table. It will execute an orphan _REG
5305method as long as the operation region handler for the EC is installed at
5306the EC device node and not the namespace root. Rui Zhang (original
5307update), Bob Moore (update/integrate).
5308
5309Implemented run-time argument typechecking for all predefined ACPI names
5310(_STA, _BIF, etc.) This change performs object typechecking on all
5311incoming arguments for all predefined names executed via
5312AcpiEvaluateObject. This ensures that ACPI-related device drivers are
5313passing correct object types as well as the correct number of arguments
5314(therefore identifying any issues immediately). Also, the ASL/namespace
5315definition of the predefined name is checked against the ACPI
5316specification for the proper argument count. Adds one new file,
5317nsarguments.c
5318
5319Changed an exception code for the ASL UnLoad() operator. Changed the
5320exception code for the case where the input DdbHandle is invalid, from
5321AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
5322
5323Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
5324global makefile. The use of this flag causes compiler errors on earlier
5325versions of GCC, so it has been removed for compatibility.
5326
5327Miscellaneous cleanup:
53281) Removed some unused/obsolete macros
53292) Fixed a possible memory leak in the _OSI support
53303) Removed an unused variable in the predefined name support
53314) Windows OSL: remove obsolete reference to a memory list field
5332
5333Example Code and Data Size: These are the sizes for the OS-independent
5334acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5335debug version of the code includes the debug output trace mechanism and
5336has a much larger code and data size.
5337
5338  Current Release:
5339    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5340    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5341  Previous Release:
5342    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5343    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5344
5345
53462) iASL Compiler/Disassembler and Tools:
5347
5348AcpiExec: Added installation of a handler for the SystemCMOS address
5349space. This prevents control method abort if a method accesses this
5350space.
5351
5352AcpiExec: Added support for multiple EC devices, and now install EC
5353operation region handler(s) at the actual EC device instead of the
5354namespace root. This reflects the typical behavior of host operating
5355systems.
5356
5357AcpiExec: Updated to ensure that all operation region handlers are
5358installed before the _REG methods are executed. This prevents a _REG
5359method from aborting if it accesses an address space has no handler.
5360AcpiExec installs a handler for every possible address space.
5361
5362Debugger: Enhanced the "handlers" command to display non-root handlers.
5363This change enhances the handlers command to display handlers associated
5364with individual devices throughout the namespace, in addition to the
5365currently supported display of handlers associated with the root
5366namespace
5367node.
5368
5369ASL Test Suite: Several test suite errors have been identified and
5370resolved, reducing the total error count during execution. Chao Guan.
5371
5372----------------------------------------
537328 March 2013. Summary of changes for version 20130328:
5374
53751) ACPICA kernel-resident subsystem:
5376
5377Fixed several possible race conditions with the internal object reference
5378counting mechanism. Some of the external ACPICA interfaces update object
5379reference counts without holding the interpreter or namespace lock. This
5380change adds a spinlock to protect reference count updates on the internal
5381ACPICA objects. Reported by and with assistance from Andriy Gapon
5382(avg@FreeBSD.org).
5383
5384FADT support: Removed an extraneous warning for very large GPE register
5385sets. This change removes a size mismatch warning if the legacy length
5386field for a GPE register set is larger than the 64-bit GAS structure can
5387accommodate. GPE register sets can be larger than the 255-bit width
5388limitation of the GAS structure. Linn Crosetto (linn@hp.com).
5389
5390_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
5391return from this interface. Handles a possible timeout case if
5392ACPI_WAIT_FOREVER is modified by the host to be a value less than
5393"forever". Jung-uk Kim.
5394
5395Predefined name support: Add allowed/required argument type information
5396to
5397the master predefined info table. This change adds the infrastructure to
5398enable typechecking on incoming arguments for all predefined
5399methods/objects. It does not actually contain the code that will fully
5400utilize this information, this is still under development. Also condenses
5401some duplicate code for the predefined names into a new module,
5402utilities/utpredef.c
5403
5404Example Code and Data Size: These are the sizes for the OS-independent
5405acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5406debug version of the code includes the debug output trace mechanism and
5407has a much larger code and data size.
5408
5409  Previous Release:
5410    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5411    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5412  Current Release:
5413    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5414    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5415
5416
54172) iASL Compiler/Disassembler and Tools:
5418
5419iASL: Implemented a new option to simplify the development of ACPI-
5420related
5421BIOS code. Adds support for a new "offset table" output file. The -so
5422option will create a C table containing the AML table offsets of various
5423named objects in the namespace so that BIOS code can modify them easily
5424at
5425boot time. This can simplify BIOS runtime code by eliminating expensive
5426searches for "magic values", enhancing boot times and adding greater
5427reliability. With assistance from Lee Hamel.
5428
5429iASL: Allow additional predefined names to return zero-length packages.
5430Now, all predefined names that are defined by the ACPI specification to
5431return a "variable-length package of packages" are allowed to return a
5432zero length top-level package. This allows the BIOS to tell the host that
5433the requested feature is not supported, and supports existing BIOS/ASL
5434code and practices.
5435
5436iASL: Changed the "result not used" warning to an error. This is the case
5437where an ASL operator is effectively a NOOP because the result of the
5438operation is not stored anywhere. For example:
5439    Add (4, Local0)
5440There is no target (missing 3rd argument), nor is the function return
5441value used. This is potentially a very serious problem -- since the code
5442was probably intended to do something, but for whatever reason, the value
5443was not stored. Therefore, this issue has been upgraded from a warning to
5444an error.
5445
5446AcpiHelp: Added allowable/required argument types to the predefined names
5447info display. This feature utilizes the recent update to the predefined
5448names table (above).
5449
5450----------------------------------------
545114 February 2013. Summary of changes for version 20130214:
5452
54531) ACPICA Kernel-resident Subsystem:
5454
5455Fixed a possible regression on some hosts: Reinstated the safe return
5456macros (return_ACPI_STATUS, etc.) that ensure that the argument is
5457evaluated only once. Although these macros are not needed for the ACPICA
5458code itself, they are often used by ACPI-related host device drivers
5459where
5460the safe feature may be necessary.
5461
5462Fixed several issues related to the ACPI 5.0 reduced hardware support
5463(SOC): Now ensure that if the platform declares itself as hardware-
5464reduced
5465via the FADT, the following functions become NOOPs (and always return
5466AE_OK) because ACPI is always enabled by definition on these machines:
5467  AcpiEnable
5468  AcpiDisable
5469  AcpiHwGetMode
5470  AcpiHwSetMode
5471
5472Dynamic Object Repair: Implemented additional runtime repairs for
5473predefined name return values. Both of these repairs can simplify code in
5474the related device drivers that invoke these methods:
54751) For the _STR and _MLS names, automatically repair/convert an ASCII
5476string to a Unicode buffer.
54772) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
5478a
5479lone end tag descriptor in the following cases: A Return(0) was executed,
5480a null buffer was returned, or no object at all was returned (non-slack
5481mode only). Adds a new file, nsconvert.c
5482ACPICA BZ 998. Bob Moore, Lv Zheng.
5483
5484Resource Manager: Added additional code to prevent possible infinite
5485loops
5486while traversing corrupted or ill-formed resource template buffers. Check
5487for zero-length resource descriptors in all code that loops through
5488resource templates (the length field is used to index through the
5489template). This change also hardens the external AcpiWalkResources and
5490AcpiWalkResourceBuffer interfaces.
5491
5492Local Cache Manager: Enhanced the main data structure to eliminate an
5493unnecessary mechanism to access the next object in the list. Actually
5494provides a small performance enhancement for hosts that use the local
5495ACPICA cache manager. Jung-uk Kim.
5496
5497Example Code and Data Size: These are the sizes for the OS-independent
5498acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5499debug version of the code includes the debug output trace mechanism and
5500has a much larger code and data size.
5501
5502  Previous Release:
5503    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5504    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5505  Current Release:
5506    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5507    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5508
5509
55102) iASL Compiler/Disassembler and Tools:
5511
5512iASL/Disassembler: Fixed several issues with the definition of the ACPI
55135.0 RASF table (RAS Feature Table). This change incorporates late changes
5514that were made to the ACPI 5.0 specification.
5515
5516iASL/Disassembler: Added full support for the following new ACPI tables:
5517  1) The MTMR table (MID Timer Table)
5518  2) The VRTC table (Virtual Real Time Clock Table).
5519Includes header file, disassembler, table compiler, and template support
5520for both tables.
5521
5522iASL: Implemented compile-time validation of package objects returned by
5523predefined names. This new feature validates static package objects
5524returned by the various predefined names defined to return packages. Both
5525object types and package lengths are validated, for both parent packages
5526and sub-packages, if any. The code is similar in structure and behavior
5527to
5528the runtime repair mechanism within the AML interpreter and uses the
5529existing predefined name information table. Adds a new file, aslprepkg.c.
5530ACPICA BZ 938.
5531
5532iASL: Implemented auto-detection of binary ACPI tables for disassembly.
5533This feature detects a binary file with a valid ACPI table header and
5534invokes the disassembler automatically. Eliminates the need to
5535specifically invoke the disassembler with the -d option. ACPICA BZ 862.
5536
5537iASL/Disassembler: Added several warnings for the case where there are
5538unresolved control methods during the disassembly. This can potentially
5539cause errors when the output file is compiled, because the disassembler
5540assumes zero method arguments in these cases (it cannot determine the
5541actual number of arguments without resolution/definition of the method).
5542
5543Debugger: Added support to display all resources with a single command.
5544Invocation of the resources command with no arguments will now display
5545all
5546resources within the current namespace.
5547
5548AcpiHelp: Added descriptive text for each ACPICA exception code displayed
5549via the -e option.
5550
5551----------------------------------------
555217 January 2013. Summary of changes for version 20130117:
5553
55541) ACPICA Kernel-resident Subsystem:
5555
5556Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
5557return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
5558objects to return a package containing one integer, most BIOS code
5559returns
5560two integers and the previous code reflects that. However, we also need
5561to
5562support BIOS code that actually implements to the ACPI spec, and this
5563change reflects this.
5564
5565Fixed two issues with the ACPI_DEBUG_PRINT macros:
55661) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
5567C compilers that require this support.
55682) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
5569ACPI_DEBUG is already used by many of the various hosts.
5570
5571Updated all ACPICA copyrights and signons to 2013. Added the 2013
5572copyright to all module headers and signons, including the standard Linux
5573header. This affects virtually every file in the ACPICA core subsystem,
5574iASL compiler, all ACPICA utilities, and the test suites.
5575
5576Example Code and Data Size: These are the sizes for the OS-independent
5577acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5578debug version of the code includes the debug output trace mechanism and
5579has a much larger code and data size.
5580
5581  Previous Release:
5582    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5583    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5584  Current Release:
5585    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5586    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5587
5588
55892) iASL Compiler/Disassembler and Tools:
5590
5591Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
5592prevent a possible fault on some hosts. Some C libraries modify the arg
5593pointer parameter to vfprintf making it difficult to call it twice in the
5594AcpiOsVprintf function. Use a local buffer to workaround this issue. This
5595does not affect the Windows OSL since the Win C library does not modify
5596the arg pointer. Chao Guan, Bob Moore.
5597
5598iASL: Fixed a possible infinite loop when the maximum error count is
5599reached. If an output file other than the .AML file is specified (such as
5600a listing file), and the maximum number of errors is reached, do not
5601attempt to flush data to the output file(s) as the compiler is aborting.
5602This can cause an infinite loop as the max error count code essentially
5603keeps calling itself.
5604
5605iASL/Disassembler: Added an option (-in) to ignore NOOP
5606opcodes/operators.
5607Implemented for both the compiler and the disassembler. Often, the NOOP
5608opcode is used as padding for packages that are changed dynamically by
5609the
5610BIOS. When disassembled and recompiled, these NOOPs will cause syntax
5611errors. This option causes the disassembler to ignore all NOOP opcodes
5612(0xA3), and it also causes the compiler to ignore all ASL source code
5613NOOP
5614statements as well.
5615
5616Debugger: Enhanced the Sleep command to execute all sleep states. This
5617change allows Sleep to be invoked with no arguments and causes the
5618debugger to execute all of the sleep states, 0-5, automatically.
5619
5620----------------------------------------
562120 December 2012. Summary of changes for version 20121220:
5622
56231) ACPICA Kernel-resident Subsystem:
5624
5625Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
5626alternate entry point for AcpiWalkResources and improves the usability of
5627the resource manager by accepting as input a buffer containing the output
5628of either a _CRS, _PRS, or _AEI method. The key functionality is that the
5629input buffer is not deleted by this interface so that it can be used by
5630the host later. See the ACPICA reference for details.
5631
5632Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
5633(DSDT version < 2). The constant will be truncated and this warning
5634reflects that behavior.
5635
5636Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
5637ExtendedInterrupt, and GpioInt descriptors. This change adds support to
5638both get and set the new wake bit in these descriptors, separately from
5639the existing share bit. Reported by Aaron Lu.
5640
5641Interpreter: Fix Store() when an implicit conversion is not possible. For
5642example, in the cases such as a store of a string to an existing package
5643object, implement the store as a CopyObject(). This is a small departure
5644from the ACPI specification which states that the control method should
5645be
5646aborted in this case. However, the ASLTS suite depends on this behavior.
5647
5648Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
5649macros: check if debug output is currently enabled as soon as possible to
5650minimize performance impact if debug is in fact not enabled.
5651
5652Source code restructuring: Cleanup to improve modularity. The following
5653new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
5654psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
5655Associated makefiles and project files have been updated.
5656
5657Changed an exception code for LoadTable operator. For the case where one
5658of the input strings is too long, change the returned exception code from
5659AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
5660
5661Fixed a possible memory leak in dispatcher error path. On error, delete
5662the mutex object created during method mutex creation. Reported by
5663tim.gardner@canonical.com.
5664
5665Example Code and Data Size: These are the sizes for the OS-independent
5666acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5667debug version of the code includes the debug output trace mechanism and
5668has a much larger code and data size.
5669
5670  Previous Release:
5671    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5672    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5673  Current Release:
5674    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5675    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5676
5677
56782) iASL Compiler/Disassembler and Tools:
5679
5680iASL: Disallow a method call as argument to the ObjectType ASL operator.
5681This change tracks an errata to the ACPI 5.0 document. The AML grammar
5682will not allow the interpreter to differentiate between a method and a
5683method invocation when these are used as an argument to the ObjectType
5684operator. The ACPI specification change is to disallow a method
5685invocation
5686(UserTerm) for the ObjectType operator.
5687
5688Finish support for the TPM2 and CSRT tables in the headers, table
5689compiler, and disassembler.
5690
5691Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
5692always expires immediately if the semaphore is not available. The
5693original
5694code was using a relative-time timeout, but sem_timedwait requires the
5695use
5696of an absolute time.
5697
5698iASL: Added a remark if the Timer() operator is used within a 32-bit
5699table. This operator returns a 64-bit time value that will be truncated
5700within a 32-bit table.
5701
5702iASL Source code restructuring: Cleanup to improve modularity. The
5703following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
5704aslmethod.c, and aslfileio.c. Associated makefiles and project files have
5705been updated.
5706
5707
5708----------------------------------------
570914 November 2012. Summary of changes for version 20121114:
5710
57111) ACPICA Kernel-resident Subsystem:
5712
5713Implemented a performance enhancement for ACPI/AML Package objects. This
5714change greatly increases the performance of Package objects within the
5715interpreter. It changes the processing of reference counts for packages
5716by
5717optimizing for the most common case where the package sub-objects are
5718either Integers, Strings, or Buffers. Increases the overall performance
5719of
5720the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
57212X.)
5722Chao Guan. ACPICA BZ 943.
5723
5724Implemented and deployed common macros to extract flag bits from resource
5725descriptors. Improves readability and maintainability of the code. Fixes
5726a
5727problem with the UART serial bus descriptor for the number of data bits
5728flags (was incorrectly 2 bits, should be 3).
5729
5730Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
5731of the macros and changed the SETx macros to the style of (destination,
5732source). Also added ACPI_CASTx companion macros. Lv Zheng.
5733
5734Example Code and Data Size: These are the sizes for the OS-independent
5735acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5736debug version of the code includes the debug output trace mechanism and
5737has a much larger code and data size.
5738
5739  Previous Release:
5740    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
5741    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5742  Current Release:
5743    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5744    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5745
5746
57472) iASL Compiler/Disassembler and Tools:
5748
5749Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
5750adds the ShareAndWake and ExclusiveAndWake flags which were added to the
5751Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
5752
5753Disassembler: Fixed a problem with external declaration generation. Fixes
5754a problem where an incorrect pathname could be generated for an external
5755declaration if the original reference to the object includes leading
5756carats (^). ACPICA BZ 984.
5757
5758Debugger: Completed a major update for the Disassemble<method> command.
5759This command was out-of-date and did not properly disassemble control
5760methods that had any reasonable complexity. This fix brings the command
5761up
5762to the same level as the rest of the disassembler. Adds one new file,
5763dmdeferred.c, which is existing code that is now common with the main
5764disassembler and the debugger disassemble command. ACPICA MZ 978.
5765
5766iASL: Moved the parser entry prototype to avoid a duplicate declaration.
5767Newer versions of Bison emit this prototype, so moved the prototype out
5768of
5769the iASL header to where it is actually used in order to avoid a
5770duplicate
5771declaration.
5772
5773iASL/Tools: Standardized use of the stream I/O functions:
5774  1) Ensure check for I/O error after every fopen/fread/fwrite
5775  2) Ensure proper order of size/count arguments for fread/fwrite
5776  3) Use test of (Actual != Requested) after all fwrite, and most fread
5777  4) Standardize I/O error messages
5778Improves reliability and maintainability of the code. Bob Moore, Lv
5779Zheng.
5780ACPICA BZ 981.
5781
5782Disassembler: Prevent duplicate External() statements. During generation
5783of external statements, detect similar pathnames that are actually
5784duplicates such as these:
5785  External (\ABCD)
5786  External (ABCD)
5787Remove all leading '\' characters from pathnames during the external
5788statement generation so that duplicates will be detected and tossed.
5789ACPICA BZ 985.
5790
5791Tools: Replace low-level I/O with stream I/O functions. Replace
5792open/read/write/close with the stream I/O equivalents
5793fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
5794Moore.
5795
5796AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
5797name header so that AcpiXtract recognizes the output file/table.
5798
5799iASL: Remove obsolete -2 option flag. Originally intended to force the
5800compiler/disassembler into an ACPI 2.0 mode, this was never implemented
5801and the entire concept is now obsolete.
5802
5803----------------------------------------
580418 October 2012. Summary of changes for version 20121018:
5805
5806
58071) ACPICA Kernel-resident Subsystem:
5808
5809Updated support for the ACPI 5.0 MPST table. Fixes some problems
5810introduced by late changes to the table as it was added to the ACPI 5.0
5811specification. Includes header, disassembler, and data table compiler
5812support as well as a new version of the MPST template.
5813
5814AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
58155.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
5816methods: _HID, _CID, and _UID.
5817
5818Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
5819ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
5820name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
5821names for their various drivers. Affects the AcpiGetObjectInfo external
5822interface, and other internal interfaces as well.
5823
5824Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
5825This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
5826on machines that support non-aligned transfers. Optimizes for this case
5827rather than using a strncpy. With assistance from Zheng Lv.
5828
5829Resource Manager: Small fix for buffer size calculation. Fixed a one byte
5830error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
5831
5832Added a new debug print message for AML mutex objects that are force-
5833released. At control method termination, any currently acquired mutex
5834objects are force-released. Adds a new debug-only message for each one
5835that is released.
5836
5837Audited/updated all ACPICA return macros and the function debug depth
5838counter: 1) Ensure that all functions that use the various TRACE macros
5839also use the appropriate ACPICA return macros. 2) Ensure that all normal
5840return statements surround the return expression (value) with parens to
5841ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
5842Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
5843
5844Global source code changes/maintenance: All extra lines at the start and
5845end of each source file have been removed for consistency. Also, within
5846comments, all new sentences start with a single space instead of a double
5847space, again for consistency across the code base.
5848
5849Example Code and Data Size: These are the sizes for the OS-independent
5850acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5851debug version of the code includes the debug output trace mechanism and
5852has a much larger code and data size.
5853
5854  Previous Release:
5855    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
5856    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
5857  Current Release:
5858    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
5859    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5860
5861
58622) iASL Compiler/Disassembler and Tools:
5863
5864AcpiExec: Improved the algorithm used for memory leak/corruption
5865detection. Added some intelligence to the code that maintains the global
5866list of allocated memory. The list is now ordered by allocated memory
5867address, significantly improving performance. When running AcpiExec on
5868the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
5869on the platform and/or the environment. Note, this performance
5870enhancement affects the AcpiExec utility only, not the kernel-resident
5871ACPICA code.
5872
5873Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
5874the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
5875incorrect table offset reported for invalid opcodes. Report the original
587632-bit value for bad ACPI_NAMEs (as well as the repaired name.)
5877
5878Disassembler: Enhanced the -vt option to emit the binary table data in
5879hex format to assist with debugging.
5880
5881Fixed a potential filename buffer overflow in osunixdir.c. Increased the
5882size of file structure. Colin Ian King.
5883
5884----------------------------------------
588513 September 2012. Summary of changes for version 20120913:
5886
5887
58881) ACPICA Kernel-resident Subsystem:
5889
5890ACPI 5.0: Added two new notify types for the Hardware Error Notification
5891Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
5892and
5893MCE(6).
5894
5895Table Manager: Merged/removed duplicate code in the root table resize
5896functions. One function is external, the other is internal. Lv Zheng,
5897ACPICA
5898BZ 846.
5899
5900Makefiles: Completely removed the obsolete "Linux" makefiles under
5901acpica/generate/linux. These makefiles are obsolete and have been
5902replaced
5903by
5904the generic unix makefiles under acpica/generate/unix.
5905
5906Makefiles: Ensure that binary files always copied properly. Minor rule
5907change
5908to ensure that the final binary output files are always copied up to the
5909appropriate binary directory (bin32 or bin64.)
5910
5911Example Code and Data Size: These are the sizes for the OS-independent
5912acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5913debug
5914version of the code includes the debug output trace mechanism and has a
5915much
5916larger code and data size.
5917
5918  Previous Release:
5919    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
5920    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
5921  Current Release:
5922    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
5923    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
5924
5925
59262) iASL Compiler/Disassembler and Tools:
5927
5928Disassembler: Fixed a possible fault during the disassembly of resource
5929descriptors when a second parse is required because of the invocation of
5930external control methods within the table. With assistance from
5931adq@lidskialf.net. ACPICA BZ 976.
5932
5933iASL: Fixed a namepath optimization problem. An error can occur if the
5934parse
5935node that contains the namepath to be optimized does not have a parent
5936node
5937that is a named object. This change fixes the problem.
5938
5939iASL: Fixed a regression where the AML file is not deleted on errors. The
5940AML
5941output file should be deleted if there are any errors during the
5942compiler.
5943The
5944only exception is if the -f (force output) option is used. ACPICA BZ 974.
5945
5946iASL: Added a feature to automatically increase internal line buffer
5947sizes.
5948Via realloc(), automatically increase the internal line buffer sizes as
5949necessary to support very long source code lines. The current version of
5950the
5951preprocessor requires a buffer long enough to contain full source code
5952lines.
5953This change increases the line buffer(s) if the input lines go beyond the
5954current buffer size. This eliminates errors that occurred when a source
5955code
5956line was longer than the buffer.
5957
5958iASL: Fixed a problem with constant folding in method declarations. The
5959SyncLevel term is a ByteConstExpr, and incorrect code would be generated
5960if a
5961Type3 opcode was used.
5962
5963Debugger: Improved command help support. For incorrect argument count,
5964display
5965full help for the command. For help command itself, allow an argument to
5966specify a command.
5967
5968Test Suites: Several bug fixes for the ASLTS suite reduces the number of
5969errors during execution of the suite. Guan Chao.
5970
5971----------------------------------------
597216 August 2012. Summary of changes for version 20120816:
5973
5974
59751) ACPICA Kernel-resident Subsystem:
5976
5977Removed all use of the deprecated _GTS and _BFS predefined methods. The
5978_GTS
5979(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
5980deprecated and will probably be removed from the ACPI specification.
5981Windows
5982does not invoke them, and reportedly never will. The final nail in the
5983coffin
5984is that the ACPI specification states that these methods must be run with
5985interrupts off, which is not going to happen in a kernel interpreter.
5986Note:
5987Linux has removed all use of the methods also. It was discovered that
5988invoking these functions caused failures on some machines, probably
5989because
5990they were never tested since Windows does not call them. Affects two
5991external
5992interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
5993ACPICA BZ 969.
5994
5995Implemented support for complex bit-packed buffers returned from the _PLD
5996(Physical Location of Device) predefined method. Adds a new external
5997interface, AcpiDecodePldBuffer that parses the buffer into a more usable
5998C
5999structure. Note: C Bitfields cannot be used for this type of predefined
6000structure since the memory layout of individual bitfields is not defined
6001by
6002the C language. In addition, there are endian concerns where a compiler
6003will
6004change the bitfield ordering based on the machine type. The new ACPICA
6005interface eliminates these issues, and should be called after _PLD is
6006executed. ACPICA BZ 954.
6007
6008Implemented a change to allow a scope change to root (via "Scope (\)")
6009during
6010execution of module-level ASL code (code that is executed at table load
6011time.) Lin Ming.
6012
6013Added the Windows8/Server2012 string for the _OSI method. This change
6014adds
6015a
6016new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
60172012.
6018
6019Added header support for the new ACPI tables DBG2 (Debug Port Table Type
60202)
6021and CSRT (Core System Resource Table).
6022
6023Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
6024names. This simplifies access to the buffers returned by these predefined
6025names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
6026
6027GPE support: Removed an extraneous parameter from the various low-level
6028internal GPE functions. Tang Feng.
6029
6030Removed the linux makefiles from the unix packages. The generate/linux
6031makefiles are obsolete and have been removed from the unix tarball
6032release
6033packages. The replacement makefiles are under generate/unix, and there is
6034a
6035top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
6036
6037Updates for Unix makefiles:
60381) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
60392) Update linker flags (move to end of command line) for AcpiExec
6040utility.
6041Guan Chao.
6042
6043Split ACPICA initialization functions to new file, utxfinit.c. Split from
6044utxface.c to improve modularity and reduce file size.
6045
6046Example Code and Data Size: These are the sizes for the OS-independent
6047acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6048debug version of the code includes the debug output trace mechanism and
6049has a
6050much larger code and data size.
6051
6052  Previous Release:
6053    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6054    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6055  Current Release:
6056    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6057    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6058
6059
60602) iASL Compiler/Disassembler and Tools:
6061
6062iASL: Fixed a problem with constant folding for fixed-length constant
6063expressions. The constant-folding code was not being invoked for constant
6064expressions that allow the use of type 3/4/5 opcodes to generate
6065constants
6066for expressions such as ByteConstExpr, WordConstExpr, etc. This could
6067result
6068in the generation of invalid AML bytecode. ACPICA BZ 970.
6069
6070iASL: Fixed a generation issue on newer versions of Bison. Newer versions
6071apparently automatically emit some of the necessary externals. This
6072change
6073handles these versions in order to eliminate generation warnings.
6074
6075Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
6076
6077Disassembler: Add support to decode _PLD buffers. The decoded buffer
6078appears
6079within comments in the output file.
6080
6081Debugger: Fixed a regression with the "Threads" command where
6082AE_BAD_PARAMETER was always returned.
6083
6084----------------------------------------
608511 July 2012. Summary of changes for version 20120711:
6086
60871) ACPICA Kernel-resident Subsystem:
6088
6089Fixed a possible fault in the return package object repair code. Fixes a
6090problem that can occur when a lone package object is wrapped with an
6091outer
6092package object in order to force conformance to the ACPI specification.
6093Can
6094affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
6095_DLM,
6096_CSD, _PSD, _TSD.
6097
6098Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
6099PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
6100ARB_DIS bit must be implemented in the host-dependent C3 processor power
6101state
6102support. Note, ARB_DIS is obsolete and only applies to older chipsets,
6103both
6104Intel and other vendors. (for Intel: ICH4-M and earlier)
6105
6106This change removes the code to disable/enable bus master arbitration
6107during
6108suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
6109causes
6110resume problems on some machines. The change has been in use for over
6111seven
6112years within Linux.
6113
6114Implemented two new external interfaces to support host-directed dynamic
6115ACPI
6116table load and unload. They are intended to simplify the host
6117implementation
6118of hot-plug support:
6119  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
6120  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
6121table.
6122See the ACPICA reference for additional details. Adds one new file,
6123components/tables/tbxfload.c
6124
6125Implemented and deployed two new interfaces for errors and warnings that
6126are
6127known to be caused by BIOS/firmware issues:
6128  AcpiBiosError: Prints "ACPI Firmware Error" message.
6129  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
6130Deployed these new interfaces in the ACPICA Table Manager code for ACPI
6131table
6132and FADT errors. Additional deployment to be completed as appropriate in
6133the
6134future. The associated conditional macros are ACPI_BIOS_ERROR and
6135ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
6136ACPICA
6137BZ
6138843.
6139
6140Implicit notify support: ensure that no memory allocation occurs within a
6141critical region. This fix moves a memory allocation outside of the time
6142that a
6143spinlock is held. Fixes issues on systems that do not allow this
6144behavior.
6145Jung-uk Kim.
6146
6147Split exception code utilities and tables into a new file,
6148utilities/utexcep.c
6149
6150Example Code and Data Size: These are the sizes for the OS-independent
6151acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6152debug
6153version of the code includes the debug output trace mechanism and has a
6154much
6155larger code and data size.
6156
6157  Previous Release:
6158    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6159    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6160  Current Release:
6161    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6162    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6163
6164
61652) iASL Compiler/Disassembler and Tools:
6166
6167iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
6168of
61690. Jung-uk Kim.
6170
6171Debugger: Enhanced the "tables" command to emit additional information
6172about
6173the current set of ACPI tables, including the owner ID and flags decode.
6174
6175Debugger: Reimplemented the "unload" command to use the new
6176AcpiUnloadParentTable external interface. This command was disable
6177previously
6178due to need for an unload interface.
6179
6180AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
6181option
6182will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
6183
6184----------------------------------------
618520 June 2012. Summary of changes for version 20120620:
6186
6187
61881) ACPICA Kernel-resident Subsystem:
6189
6190Implemented support to expand the "implicit notify" feature to allow
6191multiple
6192devices to be notified by a single GPE. This feature automatically
6193generates a
6194runtime device notification in the absence of a BIOS-provided GPE control
6195method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
6196notify is
6197provided by ACPICA for Windows compatibility, and is a workaround for
6198BIOS
6199AML
6200code errors. See the description of the AcpiSetupGpeForWake interface in
6201the
6202APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
6203
6204Changed some comments and internal function names to simplify and ensure
6205correctness of the Linux code translation. No functional changes.
6206
6207Example Code and Data Size: These are the sizes for the OS-independent
6208acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6209debug
6210version of the code includes the debug output trace mechanism and has a
6211much
6212larger code and data size.
6213
6214  Previous Release:
6215    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6216    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6217  Current Release:
6218    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6219    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6220
6221
62222) iASL Compiler/Disassembler and Tools:
6223
6224Disassembler: Added support to emit short, commented descriptions for the
6225ACPI
6226predefined names in order to improve the readability of the disassembled
6227output. ACPICA BZ 959. Changes include:
6228  1) Emit descriptions for all standard predefined names (_INI, _STA,
6229_PRW,
6230etc.)
6231  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
6232  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
6233etc.)
6234
6235AcpiSrc: Fixed several long-standing Linux code translation issues.
6236Argument
6237descriptions in function headers are now translated properly to lower
6238case
6239and
6240underscores. ACPICA BZ 961. Also fixes translation problems such as
6241these:
6242(old -> new)
6243  i_aSL -> iASL
6244  00-7_f -> 00-7F
6245  16_k -> 16K
6246  local_fADT -> local_FADT
6247  execute_oSI -> execute_OSI
6248
6249iASL: Fixed a problem where null bytes were inadvertently emitted into
6250some
6251listing files.
6252
6253iASL: Added the existing debug options to the standard help screen. There
6254are
6255no longer two different help screens. ACPICA BZ 957.
6256
6257AcpiHelp: Fixed some typos in the various predefined name descriptions.
6258Also
6259expand some of the descriptions where appropriate.
6260
6261iASL: Fixed the -ot option (display compile times/statistics). Was not
6262working
6263properly for standard output; only worked for the debug file case.
6264
6265----------------------------------------
626618 May 2012. Summary of changes for version 20120518:
6267
6268
62691) ACPICA Core Subsystem:
6270
6271Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
6272defined
6273to block until asynchronous events such as notifies and GPEs have
6274completed.
6275Within ACPICA, it is only called before a notify or GPE handler is
6276removed/uninstalled. It also may be useful for the host OS within related
6277drivers such as the Embedded Controller driver. See the ACPICA reference
6278for
6279additional information. ACPICA BZ 868.
6280
6281ACPI Tables: Added a new error message for a possible overflow failure
6282during
6283the conversion of FADT 32-bit legacy register addresses to internal
6284common
628564-
6286bit GAS structure representation. The GAS has a one-byte "bit length"
6287field,
6288thus limiting the register length to 255 bits. ACPICA BZ 953.
6289
6290Example Code and Data Size: These are the sizes for the OS-independent
6291acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6292debug
6293version of the code includes the debug output trace mechanism and has a
6294much
6295larger code and data size.
6296
6297  Previous Release:
6298    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6299    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6300  Current Release:
6301    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6302    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6303
6304
63052) iASL Compiler/Disassembler and Tools:
6306
6307iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
6308macro.
6309This keyword was added late in the ACPI 5.0 release cycle and was not
6310implemented until now.
6311
6312Disassembler: Added support for Operation Region externals. Adds missing
6313support for operation regions that are defined in another table, and
6314referenced locally via a Field or BankField ASL operator. Now generates
6315the
6316correct External statement.
6317
6318Disassembler: Several additional fixes for the External() statement
6319generation
6320related to some ASL operators. Also, order the External() statements
6321alphabetically in the disassembler output. Fixes the External()
6322generation
6323for
6324the Create* field, Alias, and Scope operators:
6325 1) Create* buffer field operators - fix type mismatch warning on
6326disassembly
6327 2) Alias - implement missing External support
6328 3) Scope - fix to make sure all necessary externals are emitted.
6329
6330iASL: Improved pathname support. For include files, merge the prefix
6331pathname
6332with the file pathname and eliminate unnecessary components. Convert
6333backslashes in all pathnames to forward slashes, for readability. Include
6334file
6335pathname changes affect both #include and Include() type operators.
6336
6337iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
6338end
6339of a valid line by inserting a newline and then returning the EOF during
6340the
6341next call to GetNextLine. Prevents the line from being ignored due to EOF
6342condition.
6343
6344iASL: Implemented some changes to enhance the IDE support (-vi option.)
6345Error
6346and Warning messages are now correctly recognized for both the source
6347code
6348browser and the global error and warning counts.
6349
6350----------------------------------------
635120 April 2012. Summary of changes for version 20120420:
6352
6353
63541) ACPICA Core Subsystem:
6355
6356Implemented support for multiple notify handlers. This change adds
6357support
6358to
6359allow multiple system and device notify handlers on Device, Thermal Zone,
6360and
6361Processor objects. This can simplify the host OS notification
6362implementation.
6363Also re-worked and restructured the entire notify support code to
6364simplify
6365handler installation, handler removal, notify event queuing, and notify
6366dispatch to handler(s). Note: there can still only be two global notify
6367handlers - one for system notifies and one for device notifies. There are
6368no
6369changes to the existing handler install/remove interfaces. Lin Ming, Bob
6370Moore, Rafael Wysocki.
6371
6372Fixed a regression in the package repair code where the object reference
6373count was calculated incorrectly. Regression was introduced in the commit
6374"Support to add Package wrappers".
6375
6376Fixed a couple possible memory leaks in the AML parser, in the error
6377recovery
6378path. Jesper Juhl, Lin Ming.
6379
6380Example Code and Data Size: These are the sizes for the OS-independent
6381acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6382debug version of the code includes the debug output trace mechanism and
6383has a
6384much larger code and data size.
6385
6386  Previous Release:
6387    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6388    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6389  Current Release:
6390    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6391    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6392
6393
63942) iASL Compiler/Disassembler and Tools:
6395
6396iASL: Fixed a problem with the resource descriptor support where the
6397length
6398of the StartDependentFn and StartDependentFnNoPrio descriptors were not
6399included in cumulative descriptor offset, resulting in incorrect values
6400for
6401resource tags within resource descriptors appearing after a
6402StartDependent*
6403descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
6404
6405iASL and Preprocessor: Implemented full support for the #line directive
6406to
6407correctly track original source file line numbers through the .i
6408preprocessor
6409output file - for error and warning messages.
6410
6411iASL: Expand the allowable byte constants for address space IDs.
6412Previously,
6413the allowable range was 0x80-0xFF (user-defined spaces), now the range is
64140x0A-0xFF to allow for custom and new IDs without changing the compiler.
6415
6416iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
6417
6418iASL: Add option to completely disable the preprocessor (-Pn).
6419
6420iASL: Now emit all error/warning messages to standard error (stderr) by
6421default (instead of the previous stdout).
6422
6423ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
6424Update
6425for resource descriptor offset fix above. Update/cleanup error output
6426routines. Enable and send iASL errors/warnings to an error logfile
6427(error.txt). Send all other iASL output to a logfile (compiler.txt).
6428Fixed
6429several extraneous "unrecognized operator" messages.
6430
6431----------------------------------------
643220 March 2012. Summary of changes for version 20120320:
6433
6434
64351) ACPICA Core Subsystem:
6436
6437Enhanced the sleep/wake interfaces to optionally execute the _GTS method
6438(Going To Sleep) and the _BFS method (Back From Sleep). Windows
6439apparently
6440does not execute these methods, and therefore these methods are often
6441untested. It has been seen on some systems where the execution of these
6442methods causes errors and also prevents the machine from entering S5. It
6443is
6444therefore suggested that host operating systems do not execute these
6445methods
6446by default. In the future, perhaps these methods can be optionally
6447executed
6448based on the age of the system and/or what is the newest version of
6449Windows
6450that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
6451and
6452AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
6453Ming.
6454
6455Fixed a problem where the length of the local/common FADT was set too
6456early.
6457The local FADT table length cannot be set to the common length until the
6458original length has been examined. There is code that checks the table
6459length
6460and sets various fields appropriately. This can affect older machines
6461with
6462early FADT versions. For example, this can cause inadvertent writes to
6463the
6464CST_CNT register. Julian Anastasov.
6465
6466Fixed a mapping issue related to a physical table override. Use the
6467deferred
6468mapping mechanism for tables loaded via the physical override OSL
6469interface.
6470This allows for early mapping before the virtual memory manager is
6471available.
6472Thomas Renninger, Bob Moore.
6473
6474Enhanced the automatic return-object repair code: Repair a common problem
6475with
6476predefined methods that are defined to return a variable-length Package
6477of
6478sub-objects. If there is only one sub-object, some BIOS ASL code
6479mistakenly
6480simply returns the single object instead of a Package with one sub-
6481object.
6482This new support will repair this error by wrapping a Package object
6483around
6484the original object, creating the correct and expected Package with one
6485sub-
6486object. Names that can be repaired in this manner include: _ALR, _CSD,
6487_HPX,
6488_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
6489939.
6490
6491Changed the exception code returned for invalid ACPI paths passed as
6492parameters to external interfaces such as AcpiEvaluateObject. Was
6493AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
6494
6495Example Code and Data Size: These are the sizes for the OS-independent
6496acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6497debug
6498version of the code includes the debug output trace mechanism and has a
6499much
6500larger code and data size.
6501
6502  Previous Release:
6503    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6504    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6505  Current Release:
6506    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6507    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6508
6509
65102) iASL Compiler/Disassembler and Tools:
6511
6512iASL: Added the infrastructure and initial implementation of a integrated
6513C-
6514like preprocessor. This will simplify BIOS development process by
6515eliminating
6516the need for a separate preprocessing step during builds. On Windows, it
6517also
6518eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
6519features including full #define() macro support are still under
6520development.
6521These preprocessor directives are supported:
6522    #define
6523    #elif
6524    #else
6525    #endif
6526    #error
6527    #if
6528    #ifdef
6529    #ifndef
6530    #include
6531    #pragma message
6532    #undef
6533    #warning
6534In addition, these new command line options are supported:
6535    -D <symbol> Define symbol for preprocessor use
6536    -li         Create preprocessed output file (*.i)
6537    -P          Preprocess only and create preprocessor output file (*.i)
6538
6539Table Compiler: Fixed a problem where the equals operator within an
6540expression
6541did not work properly.
6542
6543Updated iASL to use the current versions of Bison/Flex. Updated the
6544Windows
6545project file to invoke these tools from the standard location. ACPICA BZ
6546904.
6547Versions supported:
6548    Flex for Windows:  V2.5.4
6549    Bison for Windows: V2.4.1
6550
6551----------------------------------------
655215 February 2012. Summary of changes for version 20120215:
6553
6554
65551) ACPICA Core Subsystem:
6556
6557There have been some major changes to the sleep/wake support code, as
6558described below (a - e).
6559
6560a) The AcpiLeaveSleepState has been split into two interfaces, similar to
6561AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
6562AcpiLeaveSleepStatePrep. This allows the host to perform actions between
6563the
6564time the _BFS method is called and the _WAK method is called. NOTE: all
6565hosts
6566must update their wake/resume code or else sleep/wake will not work
6567properly.
6568Rafael Wysocki.
6569
6570b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
6571_WAK
6572method. Some machines require that the GPEs are enabled before the _WAK
6573method
6574is executed. Thomas Renninger.
6575
6576c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
6577bit.
6578Some BIOS code assumes that WAK_STS will be cleared on resume and use it
6579to
6580determine whether the system is rebooting or resuming. Matthew Garrett.
6581
6582d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
6583Sleep) to
6584match the ACPI specification requirement. Rafael Wysocki.
6585
6586e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
6587registers within the V5 FADT. This support adds two new files:
6588hardware/hwesleep.c implements the support for the new registers. Moved
6589all
6590sleep/wake external interfaces to hardware/hwxfsleep.c.
6591
6592
6593Added a new OSL interface for ACPI table overrides,
6594AcpiOsPhysicalTableOverride. This interface allows the host to override a
6595table via a physical address, instead of the logical address required by
6596AcpiOsTableOverride. This simplifies the host implementation. Initial
6597implementation by Thomas Renninger. The ACPICA implementation creates a
6598single
6599shared function for table overrides that attempts both a logical and a
6600physical override.
6601
6602Expanded the OSL memory read/write interfaces to 64-bit data
6603(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
6604transfer support for GAS register structures passed to AcpiRead and
6605AcpiWrite.
6606
6607Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
6608custom
6609build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
6610model.
6611See the ACPICA reference for details. ACPICA BZ 942. This option removes
6612about
661310% of the code and 5% of the static data, and the following hardware
6614ACPI
6615features become unavailable:
6616    PM Event and Control registers
6617    SCI interrupt (and handler)
6618    Fixed Events
6619    General Purpose Events (GPEs)
6620    Global Lock
6621    ACPI PM timer
6622    FACS table (Waking vectors and Global Lock)
6623
6624Updated the unix tarball directory structure to match the ACPICA git
6625source
6626tree. This ensures that the generic unix makefiles work properly (in
6627generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
6628867.
6629
6630Updated the return value of the _REV predefined method to integer value 5
6631to
6632reflect ACPI 5.0 support.
6633
6634Moved the external ACPI PM timer interface prototypes to the public
6635acpixf.h
6636file where they belong.
6637
6638Example Code and Data Size: These are the sizes for the OS-independent
6639acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6640debug
6641version of the code includes the debug output trace mechanism and has a
6642much
6643larger code and data size.
6644
6645  Previous Release:
6646    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6647    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6648  Current Release:
6649    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6650    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6651
6652
66532) iASL Compiler/Disassembler and Tools:
6654
6655Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
6656descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
6657incorrectly displayed.
6658
6659AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
6660specification.
6661
6662----------------------------------------
666311 January 2012. Summary of changes for version 20120111:
6664
6665
66661) ACPICA Core Subsystem:
6667
6668Implemented a new mechanism to allow host device drivers to check for
6669address
6670range conflicts with ACPI Operation Regions. Both SystemMemory and
6671SystemIO
6672address spaces are supported. A new external interface,
6673AcpiCheckAddressRange,
6674allows drivers to check an address range against the ACPI namespace. See
6675the
6676ACPICA reference for additional details. Adds one new file,
6677utilities/utaddress.c. Lin Ming, Bob Moore.
6678
6679Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
6680Control
6681and
6682Status registers, update the ACPI 5.0 flags, and update internal data
6683structures to handle an FADT larger than 256 bytes. The size of the ACPI
66845.0
6685FADT is 268 bytes.
6686
6687Updated all ACPICA copyrights and signons to 2012. Added the 2012
6688copyright to
6689all module headers and signons, including the standard Linux header. This
6690affects virtually every file in the ACPICA core subsystem, iASL compiler,
6691and
6692all ACPICA utilities.
6693
6694Example Code and Data Size: These are the sizes for the OS-independent
6695acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6696debug
6697version of the code includes the debug output trace mechanism and has a
6698much
6699larger code and data size.
6700
6701  Previous Release:
6702    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
6703    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
6704  Current Release:
6705    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6706    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6707
6708
67092) iASL Compiler/Disassembler and Tools:
6710
6711Disassembler: fixed a problem with the automatic resource tag generation
6712support. Fixes a problem where the resource tags are inadvertently not
6713constructed if the table being disassembled contains external references
6714to
6715control methods. Moved the actual construction of the tags to after the
6716final
6717namespace is constructed (after 2nd parse is invoked due to external
6718control
6719method references.) ACPICA BZ 941.
6720
6721Table Compiler: Make all "generic" operators caseless. These are the
6722operators
6723like UINT8, String, etc. Making these caseless improves ease-of-use.
6724ACPICA BZ
6725934.
6726
6727----------------------------------------
672823 November 2011. Summary of changes for version 20111123:
6729
67300) ACPI 5.0 Support:
6731
6732This release contains full support for the ACPI 5.0 specification, as
6733summarized below.
6734
6735Reduced Hardware Support:
6736-------------------------
6737
6738This support allows for ACPI systems without the usual ACPI hardware.
6739This
6740support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
6741will
6742not attempt to initialize or use any of the usual ACPI hardware. Note,
6743when
6744this flag is set, all of the following ACPI hardware is assumed to be not
6745present and is not initialized or accessed:
6746
6747    General Purpose Events (GPEs)
6748    Fixed Events (PM1a/PM1b and PM Control)
6749    Power Management Timer and Console Buttons (power/sleep)
6750    Real-time Clock Alarm
6751    Global Lock
6752    System Control Interrupt (SCI)
6753    The FACS is assumed to be non-existent
6754
6755ACPI Tables:
6756------------
6757
6758All new tables and updates to existing tables are fully supported in the
6759ACPICA headers (for use by device drivers), the disassembler, and the
6760iASL
6761Data Table Compiler. ACPI 5.0 defines these new tables:
6762
6763    BGRT        /* Boot Graphics Resource Table */
6764    DRTM        /* Dynamic Root of Trust for Measurement table */
6765    FPDT        /* Firmware Performance Data Table */
6766    GTDT        /* Generic Timer Description Table */
6767    MPST        /* Memory Power State Table */
6768    PCCT        /* Platform Communications Channel Table */
6769    PMTT        /* Platform Memory Topology Table */
6770    RASF        /* RAS Feature table */
6771
6772Operation Regions/SpaceIDs:
6773---------------------------
6774
6775All new operation regions are fully supported by the iASL compiler, the
6776disassembler, and the ACPICA runtime code (for dispatch to region
6777handlers.)
6778The new operation region Space IDs are:
6779
6780    GeneralPurposeIo
6781    GenericSerialBus
6782
6783Resource Descriptors:
6784---------------------
6785
6786All new ASL resource descriptors are fully supported by the iASL
6787compiler,
6788the
6789ASL/AML disassembler, and the ACPICA runtime Resource Manager code
6790(including
6791all new predefined resource tags). New descriptors are:
6792
6793    FixedDma
6794    GpioIo
6795    GpioInt
6796    I2cSerialBus
6797    SpiSerialBus
6798    UartSerialBus
6799
6800ASL/AML Operators, New and Modified:
6801------------------------------------
6802
6803One new operator is added, the Connection operator, which is used to
6804associate
6805a GeneralPurposeIo or GenericSerialBus resource descriptor with
6806individual
6807field objects within an operation region. Several new protocols are
6808associated
6809with the AccessAs operator. All are fully supported by the iASL compiler,
6810disassembler, and runtime ACPICA AML interpreter:
6811
6812    Connection                      // Declare Field Connection
6813attributes
6814    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
6815    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
6816Protocol
6817    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
6818    RawDataBuffer                       // Data type for Vendor Data
6819fields
6820
6821Predefined ASL/AML Objects:
6822---------------------------
6823
6824All new predefined objects/control-methods are supported by the iASL
6825compiler
6826and the ACPICA runtime validation/repair (arguments and return values.)
6827New
6828predefined names include the following:
6829
6830Standard Predefined Names (Objects or Control Methods):
6831    _AEI, _CLS, _CPC, _CWS, _DEP,
6832    _DLM, _EVT, _GCP, _CRT, _GWS,
6833    _HRV, _PRE, _PSE, _SRT, _SUB.
6834
6835Resource Tags (Names used to access individual fields within resource
6836descriptors):
6837    _DBT, _DPL, _DRS, _END, _FLC,
6838    _IOR, _LIN, _MOD, _PAR, _PHA,
6839    _PIN, _PPI, _POL, _RXL, _SLV,
6840    _SPE, _STB, _TXL, _VEN.
6841
6842ACPICA External Interfaces:
6843---------------------------
6844
6845Several new interfaces have been defined for use by ACPI-related device
6846drivers and other host OS services:
6847
6848AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
6849to
6850acquire and release AML mutexes that are defined in the DSDT/SSDT tables
6851provided by the BIOS. They are intended to be used in conjunction with
6852the
6853ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
6854mutual exclusion with the AML code/interpreter.
6855
6856AcpiGetEventResources: Returns the (formatted) resource descriptors as
6857defined
6858by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
6859provides
6860resource descriptors associated with hardware-reduced platform events,
6861similar
6862to the AcpiGetCurrentResources interface.
6863
6864Operation Region Handlers: For General Purpose IO and Generic Serial Bus
6865operation regions, information about the Connection() object and any
6866optional
6867length information is passed to the region handler within the Context
6868parameter.
6869
6870AcpiBufferToResource: This interface converts a raw AML buffer containing
6871a
6872resource template or resource descriptor to the ACPI_RESOURCE internal
6873format
6874suitable for use by device drivers. Can be used by an operation region
6875handler
6876to convert the Connection() buffer object into a ACPI_RESOURCE.
6877
6878Miscellaneous/Tools/TestSuites:
6879-------------------------------
6880
6881Support for extended _HID names (Four alpha characters instead of three).
6882Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
6883Support for ACPI 5.0 features in the ASLTS test suite.
6884Fully updated documentation (ACPICA and iASL reference documents.)
6885
6886ACPI Table Definition Language:
6887-------------------------------
6888
6889Support for this language was implemented and released as a subsystem of
6890the
6891iASL compiler in 2010. (See the iASL compiler User Guide.)
6892
6893
6894Non-ACPI 5.0 changes for this release:
6895--------------------------------------
6896
68971) ACPICA Core Subsystem:
6898
6899Fix a problem with operation region declarations where a failure can
6900occur
6901if
6902the region name and an argument that evaluates to an object (such as the
6903region address) are in different namespace scopes. Lin Ming, ACPICA BZ
6904937.
6905
6906Do not abort an ACPI table load if an invalid space ID is found within.
6907This
6908will be caught later if the offending method is executed. ACPICA BZ 925.
6909
6910Fixed an issue with the FFixedHW space ID where the ID was not always
6911recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
6912
6913Fixed a problem with the 32-bit generation of the unix-specific OSL
6914(osunixxf.c). Lin Ming, ACPICA BZ 936.
6915
6916Several changes made to enable generation with the GCC 4.6 compiler.
6917ACPICA BZ
6918935.
6919
6920New error messages: Unsupported I/O requests (not 8/16/32 bit), and
6921Index/Bank
6922field registers out-of-range.
6923
69242) iASL Compiler/Disassembler and Tools:
6925
6926iASL: Implemented the __PATH__ operator, which returns the full pathname
6927of
6928the current source file.
6929
6930AcpiHelp: Automatically display expanded keyword information for all ASL
6931operators.
6932
6933Debugger: Add "Template" command to disassemble/dump resource template
6934buffers.
6935
6936Added a new master script to generate and execute the ASLTS test suite.
6937Automatically handles 32- and 64-bit generation. See tests/aslts.sh
6938
6939iASL: Fix problem with listing generation during processing of the
6940Switch()
6941operator where AML listing was disabled until the entire Switch block was
6942completed.
6943
6944iASL: Improve support for semicolon statement terminators. Fix "invalid
6945character" message for some cases when the semicolon is used. Semicolons
6946are
6947now allowed after every <Term> grammar element. ACPICA BZ 927.
6948
6949iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
6950923.
6951
6952Disassembler: Fix problem with disassembly of the DataTableRegion
6953operator
6954where an inadvertent "Unhandled deferred opcode" message could be
6955generated.
6956
69573) Example Code and Data Size
6958
6959These are the sizes for the OS-independent acpica.lib produced by the
6960Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
6961includes the debug output trace mechanism and has a much larger code and
6962data
6963size.
6964
6965  Previous Release:
6966    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
6967    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
6968  Current Release:
6969    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
6970    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
6971
6972----------------------------------------
697322 September 2011. Summary of changes for version 20110922:
6974
69750) ACPI 5.0 News:
6976
6977Support for ACPI 5.0 in ACPICA has been underway for several months and
6978will
6979be released at the same time that ACPI 5.0 is officially released.
6980
6981The ACPI 5.0 specification is on track for release in the next few
6982months.
6983
69841) ACPICA Core Subsystem:
6985
6986Fixed a problem where the maximum sleep time for the Sleep() operator was
6987intended to be limited to two seconds, but was inadvertently limited to
698820
6989seconds instead.
6990
6991Linux and Unix makefiles: Added header file dependencies to ensure
6992correct
6993generation of ACPICA core code and utilities. Also simplified the
6994makefiles
6995considerably through the use of the vpath variable to specify search
6996paths.
6997ACPICA BZ 924.
6998
69992) iASL Compiler/Disassembler and Tools:
7000
7001iASL: Implemented support to check the access length for all fields
7002created to
7003access named Resource Descriptor fields. For example, if a resource field
7004is
7005defined to be two bits, a warning is issued if a CreateXxxxField() is
7006used
7007with an incorrect bit length. This is implemented for all current
7008resource
7009descriptor names. ACPICA BZ 930.
7010
7011Disassembler: Fixed a byte ordering problem with the output of 24-bit and
701256-
7013bit integers.
7014
7015iASL: Fixed a couple of issues associated with variable-length package
7016objects. 1) properly handle constants like One, Ones, Zero -- do not make
7017a
7018VAR_PACKAGE when these are used as a package length. 2) Allow the
7019VAR_PACKAGE
7020opcode (in addition to PACKAGE) when validating object types for
7021predefined
7022names.
7023
7024iASL: Emit statistics for all output files (instead of just the ASL input
7025and
7026AML output). Includes listings, hex files, etc.
7027
7028iASL: Added -G option to the table compiler to allow the compilation of
7029custom
7030ACPI tables. The only part of a table that is required is the standard
703136-
7032byte
7033ACPI header.
7034
7035AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
7036headers),
7037which also adds correct 64-bit support. Also, now all output filenames
7038are
7039completely lower case.
7040
7041AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
7042loading table files. A warning is issued for any such tables. The only
7043exception is an FADT. This also fixes a possible fault when attempting to
7044load
7045non-AML tables. ACPICA BZ 932.
7046
7047AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
7048a
7049missing table terminator could cause a fault when using the -p option.
7050
7051AcpiSrc: Fixed a possible divide-by-zero fault when generating file
7052statistics.
7053
70543) Example Code and Data Size
7055
7056These are the sizes for the OS-independent acpica.lib produced by the
7057Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7058includes the debug output trace mechanism and has a much larger code and
7059data
7060size.
7061
7062  Previous Release (VC 9.0):
7063    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7064    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7065  Current Release (VC 9.0):
7066    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7067    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7068
7069
7070----------------------------------------
707123 June 2011. Summary of changes for version 20110623:
7072
70731) ACPI CA Core Subsystem:
7074
7075Updated the predefined name repair mechanism to not attempt repair of a
7076_TSS
7077return object if a _PSS object is present. We can only sort the _TSS
7078return
7079package if there is no _PSS within the same scope. This is because if
7080_PSS
7081is
7082present, the ACPI specification dictates that the _TSS Power Dissipation
7083field
7084is to be ignored, and therefore some BIOSs leave garbage values in the
7085_TSS
7086Power field(s). In this case, it is best to just return the _TSS package
7087as-
7088is. Reported by, and fixed with assistance from Fenghua Yu.
7089
7090Added an option to globally disable the control method return value
7091validation
7092and repair. This runtime option can be used to disable return value
7093repair
7094if
7095this is causing a problem on a particular machine. Also added an option
7096to
7097AcpiExec (-dr) to set this disable flag.
7098
7099All makefiles and project files: Major changes to improve generation of
7100ACPICA
7101tools. ACPICA BZ 912:
7102    Reduce default optimization levels to improve compatibility
7103    For Linux, add strict-aliasing=0 for gcc 4
7104    Cleanup and simplify use of command line defines
7105    Cleanup multithread library support
7106    Improve usage messages
7107
7108Linux-specific header: update handling of THREAD_ID and pthread. For the
710932-
7110bit case, improve casting to eliminate possible warnings, especially with
7111the
7112acpica tools.
7113
7114Example Code and Data Size: These are the sizes for the OS-independent
7115acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7116debug
7117version of the code includes the debug output trace mechanism and has a
7118much
7119larger code and data size.
7120
7121  Previous Release (VC 9.0):
7122    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7123    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7124  Current Release (VC 9.0):
7125    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7126    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7127
71282) iASL Compiler/Disassembler and Tools:
7129
7130With this release, a new utility named "acpihelp" has been added to the
7131ACPICA
7132package. This utility summarizes the ACPI specification chapters for the
7133ASL
7134and AML languages. It generates under Linux/Unix as well as Windows, and
7135provides the following functionality:
7136    Find/display ASL operator(s) -- with description and syntax.
7137    Find/display ASL keyword(s) -- with exact spelling and descriptions.
7138    Find/display ACPI predefined name(s) -- with description, number
7139        of arguments, and the return value data type.
7140    Find/display AML opcode name(s) -- with opcode, arguments, and
7141grammar.
7142    Decode/display AML opcode -- with opcode name, arguments, and
7143grammar.
7144
7145Service Layers: Make multi-thread support configurable. Conditionally
7146compile
7147the multi-thread support so that threading libraries will not be linked
7148if
7149not
7150necessary. The only tool that requires multi-thread support is AcpiExec.
7151
7152iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
7153of
7154Bison appear to want the interface to yyerror to be a const char * (or at
7155least this is a problem when generating iASL on some systems.) ACPICA BZ
7156923
7157Pierre Lejeune.
7158
7159Tools: Fix for systems where O_BINARY is not defined. Only used for
7160Windows
7161versions of the tools.
7162
7163----------------------------------------
716427 May 2011. Summary of changes for version 20110527:
7165
71661) ACPI CA Core Subsystem:
7167
7168ASL Load() operator: Reinstate most restrictions on the incoming ACPI
7169table
7170signature. Now, only allow SSDT, OEMx, and a null signature. History:
7171    1) Originally, we checked the table signature for "SSDT" or "PSDT".
7172       (PSDT is now obsolete.)
7173    2) We added support for OEMx tables, signature "OEM" plus a fourth
7174       "don't care" character.
7175    3) Valid tables were encountered with a null signature, so we just
7176       gave up on validating the signature, (05/2008).
7177    4) We encountered non-AML tables such as the MADT, which caused
7178       interpreter errors and kernel faults. So now, we once again allow
7179       only SSDT, OEMx, and now, also a null signature. (05/2011).
7180
7181Added the missing _TDL predefined name to the global name list in order
7182to
7183enable validation. Affects both the core ACPICA code and the iASL
7184compiler.
7185
7186Example Code and Data Size: These are the sizes for the OS-independent
7187acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7188debug
7189version of the code includes the debug output trace mechanism and has a
7190much
7191larger code and data size.
7192
7193  Previous Release (VC 9.0):
7194    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7195    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7196  Current Release (VC 9.0):
7197    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7198    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7199
72002) iASL Compiler/Disassembler and Tools:
7201
7202Debugger/AcpiExec: Implemented support for "complex" method arguments on
7203the
7204debugger command line. This adds support beyond simple integers --
7205including
7206Strings, Buffers, and Packages. Includes support for nested packages.
7207Increased the default command line buffer size to accommodate these
7208arguments.
7209See the ACPICA reference for details and syntax. ACPICA BZ 917.
7210
7211Debugger/AcpiExec: Implemented support for "default" method arguments for
7212the
7213Execute/Debug command. Now, the debugger will always invoke a control
7214method
7215with the required number of arguments -- even if the command line
7216specifies
7217none or insufficient arguments. It uses default integer values for any
7218missing
7219arguments. Also fixes a bug where only six method arguments maximum were
7220supported instead of the required seven.
7221
7222Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
7223and
7224also return status in order to prevent buffer overruns. See the ACPICA
7225reference for details and syntax. ACPICA BZ 921
7226
7227iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
7228makefiles to simplify support for the two different but similar parser
7229generators, bison and yacc.
7230
7231Updated the generic unix makefile for gcc 4. The default gcc version is
7232now
7233expected to be 4 or greater, since options specific to gcc 4 are used.
7234
7235----------------------------------------
723613 April 2011. Summary of changes for version 20110413:
7237
72381) ACPI CA Core Subsystem:
7239
7240Implemented support to execute a so-called "orphan" _REG method under the
7241EC
7242device. This change will force the execution of a _REG method underneath
7243the
7244EC
7245device even if there is no corresponding operation region of type
7246EmbeddedControl. Fixes a problem seen on some machines and apparently is
7247compatible with Windows behavior. ACPICA BZ 875.
7248
7249Added more predefined methods that are eligible for automatic NULL
7250package
7251element removal. This change adds another group of predefined names to
7252the
7253list
7254of names that can be repaired by having NULL package elements dynamically
7255removed. This group are those methods that return a single variable-
7256length
7257package containing simple data types such as integers, buffers, strings.
7258This
7259includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
7260_PSL,
7261_Sx,
7262and _TZD. ACPICA BZ 914.
7263
7264Split and segregated all internal global lock functions to a new file,
7265evglock.c.
7266
7267Updated internal address SpaceID for DataTable regions. Moved this
7268internal
7269space
7270id in preparation for ACPI 5.0 changes that will include some new space
7271IDs.
7272This
7273change should not affect user/host code.
7274
7275Example Code and Data Size: These are the sizes for the OS-independent
7276acpica.lib
7277produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7278version of
7279the code includes the debug output trace mechanism and has a much larger
7280code
7281and
7282data size.
7283
7284  Previous Release (VC 9.0):
7285    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7286    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7287  Current Release (VC 9.0):
7288    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7289    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7290
72912) iASL Compiler/Disassembler and Tools:
7292
7293iASL/DTC: Major update for new grammar features. Allow generic data types
7294in
7295custom ACPI tables. Field names are now optional. Any line can be split
7296to
7297multiple lines using the continuation char (\). Large buffers now use
7298line-
7299continuation character(s) and no colon on the continuation lines. See the
7300grammar
7301update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
7302Moore.
7303
7304iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
7305statements.
7306Since the parser stuffs a "zero" as the return value for these statements
7307(due
7308to
7309the underlying AML grammar), they were seen as "return with value" by the
7310iASL
7311semantic checking. They are now seen correctly as "null" return
7312statements.
7313
7314iASL: Check if a_REG declaration has a corresponding Operation Region.
7315Adds a
7316check for each _REG to ensure that there is in fact a corresponding
7317operation
7318region declaration in the same scope. If not, the _REG method is not very
7319useful
7320since it probably won't be executed. ACPICA BZ 915.
7321
7322iASL/DTC: Finish support for expression evaluation. Added a new
7323expression
7324parser
7325that implements c-style operator precedence and parenthesization. ACPICA
7326bugzilla
7327908.
7328
7329Disassembler/DTC: Remove support for () and <> style comments in data
7330tables.
7331Now
7332that DTC has full expression support, we don't want to have comment
7333strings
7334that
7335start with a parentheses or a less-than symbol. Now, only the standard /*
7336and
7337//
7338comments are supported, as well as the bracket [] comments.
7339
7340AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
7341"unusual"
7342headers in the acpidump file. Update the header validation to support
7343these
7344tables. Problem introduced in previous AcpiXtract version in the change
7345to
7346support "wrong checksum" error messages emitted by acpidump utility.
7347
7348iASL: Add a * option to generate all template files (as a synonym for
7349ALL)
7350as
7351in
7352"iasl -T *" or "iasl -T ALL".
7353
7354iASL/DTC: Do not abort compiler on fatal errors. We do not want to
7355completely
7356abort the compiler on "fatal" errors, simply should abort the current
7357compile.
7358This allows multiple compiles with a single (possibly wildcard) compiler
7359invocation.
7360
7361----------------------------------------
736216 March 2011. Summary of changes for version 20110316:
7363
73641) ACPI CA Core Subsystem:
7365
7366Fixed a problem caused by a _PRW method appearing at the namespace root
7367scope
7368during the setup of wake GPEs. A fault could occur if a _PRW directly
7369under
7370the
7371root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
7372
7373Implemented support for "spurious" Global Lock interrupts. On some
7374systems, a
7375global lock interrupt can occur without the pending flag being set. Upon
7376a
7377GL
7378interrupt, we now ensure that a thread is actually waiting for the lock
7379before
7380signaling GL availability. Rafael Wysocki, Bob Moore.
7381
7382Example Code and Data Size: These are the sizes for the OS-independent
7383acpica.lib
7384produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7385version of
7386the code includes the debug output trace mechanism and has a much larger
7387code
7388and
7389data size.
7390
7391  Previous Release (VC 9.0):
7392    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7393    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7394  Current Release (VC 9.0):
7395    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7396    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7397
73982) iASL Compiler/Disassembler and Tools:
7399
7400Implemented full support for the "SLIC" ACPI table. Includes support in
7401the
7402header files, disassembler, table compiler, and template generator. Bob
7403Moore,
7404Lin Ming.
7405
7406AcpiXtract: Correctly handle embedded comments and messages from
7407AcpiDump.
7408Apparently some or all versions of acpidump will occasionally emit a
7409comment
7410like
7411"Wrong checksum", etc., into the dump file. This was causing problems for
7412AcpiXtract. ACPICA BZ 905.
7413
7414iASL: Fix the Linux makefile by removing an inadvertent double file
7415inclusion.
7416ACPICA BZ 913.
7417
7418AcpiExec: Update installation of operation region handlers. Install one
7419handler
7420for a user-defined address space. This is used by the ASL test suite
7421(ASLTS).
7422
7423----------------------------------------
742411 February 2011. Summary of changes for version 20110211:
7425
74261) ACPI CA Core Subsystem:
7427
7428Added a mechanism to defer _REG methods for some early-installed
7429handlers.
7430Most user handlers should be installed before call to
7431AcpiEnableSubsystem.
7432However, Event handlers and region handlers should be installed after
7433AcpiInitializeObjects. Override handlers for the "default" regions should
7434be
7435installed early, however. This change executes all _REG methods for the
7436default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
7437chicken/egg issues between them. ACPICA BZ 848.
7438
7439Implemented an optimization for GPE detection. This optimization will
7440simply
7441ignore GPE registers that contain no enabled GPEs -- there is no need to
7442read the register since this information is available internally. This
7443becomes more important on machines with a large GPE space. ACPICA
7444bugzilla
7445884. Lin Ming. Suggestion from Joe Liu.
7446
7447Removed all use of the highly unreliable FADT revision field. The
7448revision
7449number in the FADT has been found to be completely unreliable and cannot
7450be
7451trusted. Only the actual table length can be used to infer the version.
7452This
7453change updates the ACPICA core and the disassembler so that both no
7454longer
7455even look at the FADT version and instead depend solely upon the FADT
7456length.
7457
7458Fix an unresolved name issue for the no-debug and no-error-message source
7459generation cases. The _AcpiModuleName was left undefined in these cases,
7460but
7461it is actually needed as a parameter to some interfaces. Define
7462_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
7463
7464Split several large files (makefiles and project files updated)
7465  utglobal.c   -> utdecode.c
7466  dbcomds.c    -> dbmethod.c dbnames.c
7467  dsopcode.c   -> dsargs.c dscontrol.c
7468  dsload.c     -> dsload2.c
7469  aslanalyze.c -> aslbtypes.c aslwalks.c
7470
7471Example Code and Data Size: These are the sizes for the OS-independent
7472acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7473debug version of the code includes the debug output trace mechanism and
7474has
7475a much larger code and data size.
7476
7477  Previous Release (VC 9.0):
7478    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7479    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7480  Current Release (VC 9.0):
7481    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7482    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7483
74842) iASL Compiler/Disassembler and Tools:
7485
7486iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
7487These are useful C-style macros with the standard definitions. ACPICA
7488bugzilla 898.
7489
7490iASL/DTC: Added support for integer expressions and labels. Support for
7491full
7492expressions for all integer fields in all ACPI tables. Support for labels
7493in
7494"generic" portions of tables such as UEFI. See the iASL reference manual.
7495
7496Debugger: Added a command to display the status of global handlers. The
7497"handlers" command will display op region, fixed event, and miscellaneous
7498global handlers. installation status -- and for op regions, whether
7499default
7500or user-installed handler will be used.
7501
7502iASL: Warn if reserved method incorrectly returns a value. Many
7503predefined
7504names are defined such that they do not return a value. If implemented as
7505a
7506method, issue a warning if such a name explicitly returns a value. ACPICA
7507Bugzilla 855.
7508
7509iASL: Added detection of GPE method name conflicts. Detects a conflict
7510where
7511there are two GPE methods of the form _Lxy and _Exy in the same scope.
7512(For
7513example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
7514
7515iASL/DTC: Fixed a couple input scanner issues with comments and line
7516numbers. Comment remover could get confused and miss a comment ending.
7517Fixed
7518a problem with line counter maintenance.
7519
7520iASL/DTC: Reduced the severity of some errors from fatal to error. There
7521is
7522no need to abort on simple errors within a field definition.
7523
7524Debugger: Simplified the output of the help command. All help output now
7525in
7526a single screen, instead of help subcommands. ACPICA Bugzilla 897.
7527
7528----------------------------------------
752912 January 2011. Summary of changes for version 20110112:
7530
75311) ACPI CA Core Subsystem:
7532
7533Fixed a race condition between method execution and namespace walks that
7534can
7535possibly cause a fault. The problem was apparently introduced in version
753620100528 as a result of a performance optimization that reduces the
7537number
7538of
7539namespace walks upon method exit by using the delete_namespace_subtree
7540function instead of the delete_namespace_by_owner function used
7541previously.
7542Bug is a missing namespace lock in the delete_namespace_subtree function.
7543dana.myers@oracle.com
7544
7545Fixed several issues and a possible fault with the automatic "serialized"
7546method support. History: This support changes a method to "serialized" on
7547the
7548fly if the method generates an AE_ALREADY_EXISTS error, indicating the
7549possibility that it cannot handle reentrancy. This fix repairs a couple
7550of
7551issues seen in the field, especially on machines with many cores:
7552
7553    1) Delete method children only upon the exit of the last thread,
7554       so as to not delete objects out from under other running threads
7555      (and possibly causing a fault.)
7556    2) Set the "serialized" bit for the method only upon the exit of the
7557       Last thread, so as to not cause deadlock when running threads
7558       attempt to exit.
7559    3) Cleanup the use of the AML "MethodFlags" and internal method flags
7560       so that there is no longer any confusion between the two.
7561
7562    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
7563
7564Debugger: Now lock the namespace for duration of a namespace dump.
7565Prevents
7566issues if the namespace is changing dynamically underneath the debugger.
7567Especially affects temporary namespace nodes, since the debugger displays
7568these also.
7569
7570Updated the ordering of include files. The ACPICA headers should appear
7571before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
7572set
7573any necessary compiler-specific defines, etc. Affects the ACPI-related
7574tools
7575and utilities.
7576
7577Updated all ACPICA copyrights and signons to 2011. Added the 2011
7578copyright
7579to all module headers and signons, including the Linux header. This
7580affects
7581virtually every file in the ACPICA core subsystem, iASL compiler, and all
7582utilities.
7583
7584Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
7585project files for VC++ 6.0 are now obsolete. New project files can be
7586found
7587under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
7588details.
7589
7590Example Code and Data Size: These are the sizes for the OS-independent
7591acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7592debug version of the code includes the debug output trace mechanism and
7593has a
7594much larger code and data size.
7595
7596  Previous Release (VC 6.0):
7597    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7598    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7599  Current Release (VC 9.0):
7600    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7601    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7602
76032) iASL Compiler/Disassembler and Tools:
7604
7605iASL: Added generic data types to the Data Table compiler. Add "generic"
7606data
7607types such as UINT32, String, Unicode, etc., to simplify the generation
7608of
7609platform-defined tables such as UEFI. Lin Ming.
7610
7611iASL: Added listing support for the Data Table Compiler. Adds listing
7612support
7613(-l) to display actual binary output for each line of input code.
7614
7615----------------------------------------
761609 December 2010. Summary of changes for version 20101209:
7617
76181) ACPI CA Core Subsystem:
7619
7620Completed the major overhaul of the GPE support code that was begun in
7621July
76222010. Major features include: removal of _PRW execution in ACPICA (host
7623executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
7624changes to existing interfaces, simplification of GPE handler operation,
7625and
7626a handful of new interfaces:
7627
7628    AcpiUpdateAllGpes
7629    AcpiFinishGpe
7630    AcpiSetupGpeForWake
7631    AcpiSetGpeWakeMask
7632    One new file, evxfgpe.c to consolidate all external GPE interfaces.
7633
7634See the ACPICA Programmer Reference for full details and programming
7635information. See the new section 4.4 "General Purpose Event (GPE)
7636Support"
7637for a full overview, and section 8.7 "ACPI General Purpose Event
7638Management"
7639for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
7640Ming,
7641Bob Moore, Rafael Wysocki.
7642
7643Implemented a new GPE feature for Windows compatibility, the "Implicit
7644Wake
7645GPE Notify". This feature will automatically issue a Notify(2) on a
7646device
7647when a Wake GPE is received if there is no corresponding GPE method or
7648handler. ACPICA BZ 870.
7649
7650Fixed a problem with the Scope() operator during table parse and load
7651phase.
7652During load phase (table load or method execution), the scope operator
7653should
7654not enter the target into the namespace. Instead, it should open a new
7655scope
7656at the target location. Linux BZ 19462, ACPICA BZ 882.
7657
7658Example Code and Data Size: These are the sizes for the OS-independent
7659acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7660debug version of the code includes the debug output trace mechanism and
7661has a
7662much larger code and data size.
7663
7664  Previous Release:
7665    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7666    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7667  Current Release:
7668    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7669    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7670
76712) iASL Compiler/Disassembler and Tools:
7672
7673iASL: Relax the alphanumeric restriction on _CID strings. These strings
7674are
7675"bus-specific" per the ACPI specification, and therefore any characters
7676are
7677acceptable. The only checks that can be performed are for a null string
7678and
7679perhaps for a leading asterisk. ACPICA BZ 886.
7680
7681iASL: Fixed a problem where a syntax error that caused a premature EOF
7682condition on the source file emitted a very confusing error message. The
7683premature EOF is now detected correctly. ACPICA BZ 891.
7684
7685Disassembler: Decode the AccessSize within a Generic Address Structure
7686(byte
7687access, word access, etc.) Note, this field does not allow arbitrary bit
7688access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
7689
7690New: AcpiNames utility - Example namespace dump utility. Shows an example
7691of
7692ACPICA configuration for a minimal namespace dump utility. Uses table and
7693namespace managers, but no AML interpreter. Does not add any
7694functionality
7695over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
7696partition and configure ACPICA. ACPICA BZ 883.
7697
7698AML Debugger: Increased the debugger buffer size for method return
7699objects.
7700Was 4K, increased to 16K. Also enhanced error messages for debugger
7701method
7702execution, including the buffer overflow case.
7703
7704----------------------------------------
770513 October 2010. Summary of changes for version 20101013:
7706
77071) ACPI CA Core Subsystem:
7708
7709Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
7710now
7711clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
7712HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
7713
7714Changed the type of the predefined namespace object _TZ from ThermalZone
7715to
7716Device. This was found to be confusing to the host software that
7717processes
7718the various thermal zones, since _TZ is not really a ThermalZone.
7719However,
7720a
7721Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
7722Zhang.
7723
7724Added Windows Vista SP2 to the list of supported _OSI strings. The actual
7725string is "Windows 2006 SP2".
7726
7727Eliminated duplicate code in AcpiUtExecute* functions. Now that the
7728nsrepair
7729code automatically repairs _HID-related strings, this type of code is no
7730longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
7731878.
7732
7733Example Code and Data Size: These are the sizes for the OS-independent
7734acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7735debug version of the code includes the debug output trace mechanism and
7736has a
7737much larger code and data size.
7738
7739  Previous Release:
7740    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7741    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7742  Current Release:
7743    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7744    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7745
77462) iASL Compiler/Disassembler and Tools:
7747
7748iASL: Implemented additional compile-time validation for _HID strings.
7749The
7750non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
7751length
7752of
7753the string must be exactly seven or eight characters. For both _HID and
7754_CID
7755strings, all characters must be alphanumeric. ACPICA BZ 874.
7756
7757iASL: Allow certain "null" resource descriptors. Some BIOS code creates
7758descriptors that are mostly or all zeros, with the expectation that they
7759will
7760be filled in at runtime. iASL now allows this as long as there is a
7761"resource
7762tag" (name) associated with the descriptor, which gives the ASL a handle
7763needed to modify the descriptor. ACPICA BZ 873.
7764
7765Added single-thread support to the generic Unix application OSL.
7766Primarily
7767for iASL support, this change removes the use of semaphores in the
7768single-
7769threaded ACPICA tools/applications - increasing performance. The
7770_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
7771option. ACPICA BZ 879.
7772
7773AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
7774support
7775for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
7776
7777iASL: Moved all compiler messages to a new file, aslmessages.h.
7778
7779----------------------------------------
778015 September 2010. Summary of changes for version 20100915:
7781
77821) ACPI CA Core Subsystem:
7783
7784Removed the AcpiOsDerivePciId OSL interface. The various host
7785implementations
7786of this function were not OS-dependent and are now obsolete and can be
7787removed from all host OSLs. This function has been replaced by
7788AcpiHwDerivePciId, which is now part of the ACPICA core code.
7789AcpiHwDerivePciId has been implemented without recursion. Adds one new
7790module, hwpci.c. ACPICA BZ 857.
7791
7792Implemented a dynamic repair for _HID and _CID strings. The following
7793problems are now repaired at runtime: 1) Remove a leading asterisk in the
7794string, and 2) the entire string is uppercased. Both repairs are in
7795accordance with the ACPI specification and will simplify host driver
7796code.
7797ACPICA BZ 871.
7798
7799The ACPI_THREAD_ID type is no longer configurable, internally it is now
7800always UINT64. This simplifies the ACPICA code, especially any printf
7801output.
7802UINT64 is the only common data type for all thread_id types across all
7803operating systems. It is now up to the host OSL to cast the native
7804thread_id
7805type to UINT64 before returning the value to ACPICA (via
7806AcpiOsGetThreadId).
7807Lin Ming, Bob Moore.
7808
7809Added the ACPI_INLINE type to enhance the ACPICA configuration. The
7810"inline"
7811keyword is not standard across compilers, and this type allows inline to
7812be
7813configured on a per-compiler basis. Lin Ming.
7814
7815Made the system global AcpiGbl_SystemAwakeAndRunning publicly
7816available.
7817Added an extern for this boolean in acpixf.h. Some hosts utilize this
7818value
7819during suspend/restore operations. ACPICA BZ 869.
7820
7821All code that implements error/warning messages with the "ACPI:" prefix
7822has
7823been moved to a new module, utxferror.c.
7824
7825The UINT64_OVERLAY was moved to utmath.c, which is the only module where
7826it
7827is used. ACPICA BZ 829. Lin Ming, Bob Moore.
7828
7829Example Code and Data Size: These are the sizes for the OS-independent
7830acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7831debug version of the code includes the debug output trace mechanism and
7832has a
7833much larger code and data size.
7834
7835  Previous Release:
7836    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
7837    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
7838  Current Release:
7839    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7840    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7841
78422) iASL Compiler/Disassembler and Tools:
7843
7844iASL/Disassembler: Write ACPI errors to stderr instead of the output
7845file.
7846This keeps the output files free of random error messages that may
7847originate
7848from within the namespace/interpreter code. Used this opportunity to
7849merge
7850all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
7851866. Lin Ming, Bob Moore.
7852
7853Tools: update some printfs for ansi warnings on size_t. Handle width
7854change
7855of size_t on 32-bit versus 64-bit generations. Lin Ming.
7856
7857----------------------------------------
785806 August 2010. Summary of changes for version 20100806:
7859
78601) ACPI CA Core Subsystem:
7861
7862Designed and implemented a new host interface to the _OSI support code.
7863This
7864will allow the host to dynamically add or remove multiple _OSI strings,
7865as
7866well as install an optional handler that is called for each _OSI
7867invocation.
7868Also added a new AML debugger command, 'osi' to display and modify the
7869global
7870_OSI string table, and test support in the AcpiExec utility. See the
7871ACPICA
7872reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
7873New Functions:
7874    AcpiInstallInterface - Add an _OSI string.
7875    AcpiRemoveInterface - Delete an _OSI string.
7876    AcpiInstallInterfaceHandler - Install optional _OSI handler.
7877Obsolete Functions:
7878    AcpiOsValidateInterface - no longer used.
7879New Files:
7880    source/components/utilities/utosi.c
7881
7882Re-introduced the support to enable multi-byte transfers for Embedded
7883Controller (EC) operation regions. A reported problem was found to be a
7884bug
7885in the host OS, not in the multi-byte support. Previously, the maximum
7886data
7887size passed to the EC operation region handler was a single byte. There
7888are
7889often EC Fields larger than one byte that need to be transferred, and it
7890is
7891useful for the EC driver to lock these as a single transaction. This
7892change
7893enables single transfers larger than 8 bits. This effectively changes the
7894access to the EC space from ByteAcc to AnyAcc, and will probably require
7895changes to the host OS Embedded Controller driver to enable 16/32/64/256-
7896bit
7897transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
7898
7899Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
7900prototype in acpiosxf.h had the output value pointer as a (void *).
7901It should be a (UINT64 *). This may affect some host OSL code.
7902
7903Fixed a couple problems with the recently modified Linux makefiles for
7904iASL
7905and AcpiExec. These new makefiles place the generated object files in the
7906local directory so that there can be no collisions between the files that
7907are
7908shared between them that are compiled with different options.
7909
7910Example Code and Data Size: These are the sizes for the OS-independent
7911acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7912debug version of the code includes the debug output trace mechanism and
7913has a
7914much larger code and data size.
7915
7916  Previous Release:
7917    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
7918    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
7919  Current Release:
7920    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
7921    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
7922
79232) iASL Compiler/Disassembler and Tools:
7924
7925iASL/Disassembler: Added a new option (-da, "disassemble all") to load
7926the
7927namespace from and disassemble an entire group of AML files. Useful for
7928loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
7929and
7930disassembling with one simple command. ACPICA BZ 865. Lin Ming.
7931
7932iASL: Allow multiple invocations of -e option. This change allows
7933multiple
7934uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
7935834.
7936Lin Ming.
7937
7938----------------------------------------
793902 July 2010. Summary of changes for version 20100702:
7940
79411) ACPI CA Core Subsystem:
7942
7943Implemented several updates to the recently added GPE reference count
7944support. The model for "wake" GPEs is changing to give the host OS
7945complete
7946control of these GPEs. Eventually, the ACPICA core will not execute any
7947_PRW
7948methods, since the host already must execute them. Also, additional
7949changes
7950were made to help ensure that the reference counts are kept in proper
7951synchronization with reality. Rafael J. Wysocki.
7952
79531) Ensure that GPEs are not enabled twice during initialization.
79542) Ensure that GPE enable masks stay in sync with the reference count.
79553) Do not inadvertently enable GPEs when writing GPE registers.
79564) Remove the internal wake reference counter and add new AcpiGpeWakeup
7957interface. This interface will set or clear individual GPEs for wakeup.
79585) Remove GpeType argument from AcpiEnable and AcpiDisable. These
7959interfaces
7960are now used for "runtime" GPEs only.
7961
7962Changed the behavior of the GPE install/remove handler interfaces. The
7963GPE
7964is
7965no longer disabled during this process, as it was found to cause problems
7966on
7967some machines. Rafael J. Wysocki.
7968
7969Reverted a change introduced in version 20100528 to enable Embedded
7970Controller multi-byte transfers. This change was found to cause problems
7971with
7972Index Fields and possibly Bank Fields. It will be reintroduced when these
7973problems have been resolved.
7974
7975Fixed a problem with references to Alias objects within Package Objects.
7976A
7977reference to an Alias within the definition of a Package was not always
7978resolved properly. Aliases to objects like Processors, Thermal zones,
7979etc.
7980were resolved to the actual object instead of a reference to the object
7981as
7982it
7983should be. Package objects are only allowed to contain integer, string,
7984buffer, package, and reference objects. Redhat bugzilla 608648.
7985
7986Example Code and Data Size: These are the sizes for the OS-independent
7987acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7988debug version of the code includes the debug output trace mechanism and
7989has a
7990much larger code and data size.
7991
7992  Previous Release:
7993    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
7994    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
7995  Current Release:
7996    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
7997    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
7998
79992) iASL Compiler/Disassembler and Tools:
8000
8001iASL: Implemented a new compiler subsystem to allow definition and
8002compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
8003These
8004are called "ACPI Data Tables", and the new compiler is the "Data Table
8005Compiler". This compiler is intended to simplify the existing error-prone
8006process of creating these tables for the BIOS, as well as allowing the
8007disassembly, modification, recompilation, and override of existing ACPI
8008data
8009tables. See the iASL User Guide for detailed information.
8010
8011iASL: Implemented a new Template Generator option in support of the new
8012Data
8013Table Compiler. This option will create examples of all known ACPI tables
8014that can be used as the basis for table development. See the iASL
8015documentation and the -T option.
8016
8017Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
8018Descriptor Table).
8019
8020Updated the Linux makefiles for iASL and AcpiExec to place the generated
8021object files in the local directory so that there can be no collisions
8022between the shared files between them that are generated with different
8023options.
8024
8025Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
8026Use
8027the #define __APPLE__ to enable this support.
8028
8029----------------------------------------
803028 May 2010. Summary of changes for version 20100528:
8031
8032Note: The ACPI 4.0a specification was released on April 5, 2010 and is
8033available at www.acpi.info. This is primarily an errata release.
8034
80351) ACPI CA Core Subsystem:
8036
8037Undefined ACPI tables: We are looking for the definitions for the
8038following
8039ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
8040
8041Implemented support to enable multi-byte transfers for Embedded
8042Controller
8043(EC) operation regions. Previously, the maximum data size passed to the
8044EC
8045operation region handler was a single byte. There are often EC Fields
8046larger
8047than one byte that need to be transferred, and it is useful for the EC
8048driver
8049to lock these as a single transaction. This change enables single
8050transfers
8051larger than 8 bits. This effectively changes the access to the EC space
8052from
8053ByteAcc to AnyAcc, and will probably require changes to the host OS
8054Embedded
8055Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
8056bit
8057transfers. Alexey Starikovskiy, Lin Ming
8058
8059Implemented a performance enhancement for namespace search and access.
8060This
8061change enhances the performance of namespace searches and walks by adding
8062a
8063backpointer to the parent in each namespace node. On large namespaces,
8064this
8065change can improve overall ACPI performance by up to 9X. Adding a pointer
8066to
8067each namespace node increases the overall size of the internal namespace
8068by
8069about 5%, since each namespace entry usually consists of both a namespace
8070node and an ACPI operand object. However, this is the first growth of the
8071namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
8072
8073Implemented a performance optimization that reduces the number of
8074namespace
8075walks. On control method exit, only walk the namespace if the method is
8076known
8077to have created namespace objects outside of its local scope. Previously,
8078the
8079entire namespace was traversed on each control method exit. This change
8080can
8081improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
8082Moore.
8083
8084Added support to truncate I/O addresses to 16 bits for Windows
8085compatibility.
8086Some ASL code has been seen in the field that inadvertently has bits set
8087above bit 15. This feature is optional and is enabled if the BIOS
8088requests
8089any Windows OSI strings. It can also be enabled by the host OS. Matthew
8090Garrett, Bob Moore.
8091
8092Added support to limit the maximum time for the ASL Sleep() operator. To
8093prevent accidental deep sleeps, limit the maximum time that Sleep() will
8094actually sleep. Configurable, the default maximum is two seconds. ACPICA
8095bugzilla 854.
8096
8097Added run-time validation support for the _WDG and_WED Microsoft
8098predefined
8099methods. These objects are defined by "Windows Instrumentation", and are
8100not
8101part of the ACPI spec. ACPICA BZ 860.
8102
8103Expanded all statistic counters used during namespace and device
8104initialization from 16 to 32 bits in order to support very large
8105namespaces.
8106
8107Replaced all instances of %d in printf format specifiers with %u since
8108nearly
8109all integers in ACPICA are unsigned.
8110
8111Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
8112returned
8113as AE_NO_HANDLER.
8114
8115Example Code and Data Size: These are the sizes for the OS-independent
8116acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8117debug version of the code includes the debug output trace mechanism and
8118has a
8119much larger code and data size.
8120
8121  Previous Release:
8122    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8123    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8124  Current Release:
8125    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8126    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8127
81282) iASL Compiler/Disassembler and Tools:
8129
8130iASL: Added compiler support for the _WDG and_WED Microsoft predefined
8131methods. These objects are defined by "Windows Instrumentation", and are
8132not
8133part of the ACPI spec. ACPICA BZ 860.
8134
8135AcpiExec: added option to disable the memory tracking mechanism. The -dt
8136option will disable the tracking mechanism, which improves performance
8137considerably.
8138
8139AcpiExec: Restructured the command line options into -d (disable) and -e
8140(enable) options.
8141
8142----------------------------------------
814328 April 2010. Summary of changes for version 20100428:
8144
81451) ACPI CA Core Subsystem:
8146
8147Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
8148including FADT-based and GPE Block Devices, execute any _PRW methods in
8149the
8150new table, and process any _Lxx/_Exx GPE methods in the new table. Any
8151runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
8152immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
8153Devices. Provides compatibility with other ACPI implementations. Two new
8154files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
8155Moore.
8156
8157Fixed a regression introduced in version 20100331 within the table
8158manager
8159where initial table loading could fail. This was introduced in the fix
8160for
8161AcpiReallocateRootTable. Also, renamed some of fields in the table
8162manager
8163data structures to clarify their meaning and use.
8164
8165Fixed a possible allocation overrun during internal object copy in
8166AcpiUtCopySimpleObject. The original code did not correctly handle the
8167case
8168where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
8169847.
8170
8171Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
8172possible access beyond end-of-allocation. Also, now fully validate
8173descriptor
8174(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
8175
8176Example Code and Data Size: These are the sizes for the OS-independent
8177acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8178debug version of the code includes the debug output trace mechanism and
8179has a
8180much larger code and data size.
8181
8182  Previous Release:
8183    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8184    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8185  Current Release:
8186    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8187    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8188
81892) iASL Compiler/Disassembler and Tools:
8190
8191iASL: Implemented Min/Max/Len/Gran validation for address resource
8192descriptors. This change implements validation for the address fields
8193that
8194are common to all address-type resource descriptors. These checks are
8195implemented: Checks for valid Min/Max, length within the Min/Max window,
8196valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
8197per
8198table 6-40 in the ACPI 4.0a specification. Also split the large
8199aslrestype1.c
8200and aslrestype2.c files into five new files. ACPICA BZ 840.
8201
8202iASL: Added support for the _Wxx predefined names. This support was
8203missing
8204and these names were not recognized by the compiler as valid predefined
8205names. ACPICA BZ 851.
8206
8207iASL: Added an error for all predefined names that are defined to return
8208no
8209value and thus must be implemented as Control Methods. These include all
8210of
8211the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
8212names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
8213
8214iASL: Implemented the -ts option to emit hex AML data in ASL format, as
8215an
8216ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
8217be
8218dynamically loaded via the Load() operator. Also cleaned up output for
8219the
8220-
8221ta and -tc options. ACPICA BZ 853.
8222
8223Tests: Added a new file with examples of extended iASL error checking.
8224Demonstrates the advanced error checking ability of the iASL compiler.
8225Available at tests/misc/badcode.asl.
8226
8227----------------------------------------
822831 March 2010. Summary of changes for version 20100331:
8229
82301) ACPI CA Core Subsystem:
8231
8232Completed a major update for the GPE support in order to improve support
8233for
8234shared GPEs and to simplify both host OS and ACPICA code. Added a
8235reference
8236count mechanism to support shared GPEs that require multiple device
8237drivers.
8238Several external interfaces have changed. One external interface has been
8239removed. One new external interface was added. Most of the GPE external
8240interfaces now use the GPE spinlock instead of the events mutex (and the
8241Flags parameter for many GPE interfaces has been removed.) See the
8242updated
8243ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
8244Rafael
8245Wysocki. ACPICA BZ 831.
8246
8247Changed:
8248    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
8249Removed:
8250    AcpiSetGpeType
8251New:
8252    AcpiSetGpe
8253
8254Implemented write support for DataTable operation regions. These regions
8255are
8256defined via the DataTableRegion() operator. Previously, only read support
8257was
8258implemented. The ACPI specification allows DataTableRegions to be
8259read/write,
8260however.
8261
8262Implemented a new subsystem option to force a copy of the DSDT to local
8263memory. Optionally copy the entire DSDT to local memory (instead of
8264simply
8265mapping it.) There are some (albeit very rare) BIOSs that corrupt or
8266replace
8267the original DSDT, creating the need for this option. Default is FALSE,
8268do
8269not copy the DSDT.
8270
8271Implemented detection of a corrupted or replaced DSDT. This change adds
8272support to detect a DSDT that has been corrupted and/or replaced from
8273outside
8274the OS (by firmware). This is typically catastrophic for the system, but
8275has
8276been seen on some machines. Once this problem has been detected, the DSDT
8277copy option can be enabled via system configuration. Lin Ming, Bob Moore.
8278
8279Fixed two problems with AcpiReallocateRootTable during the root table
8280copy.
8281When copying the root table to the new allocation, the length used was
8282incorrect. The new size was used instead of the current table size,
8283meaning
8284too much data was copied. Also, the count of available slots for ACPI
8285tables
8286was not set correctly. Alexey Starikovskiy, Bob Moore.
8287
8288Example Code and Data Size: These are the sizes for the OS-independent
8289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8290debug version of the code includes the debug output trace mechanism and
8291has a
8292much larger code and data size.
8293
8294  Previous Release:
8295    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8296    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8297  Current Release:
8298    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8299    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8300
83012) iASL Compiler/Disassembler and Tools:
8302
8303iASL: Implement limited typechecking for values returned from predefined
8304control methods. The type of any returned static (unnamed) object is now
8305validated. For example, Return(1). ACPICA BZ 786.
8306
8307iASL: Fixed a predefined name object verification regression. Fixes a
8308problem
8309introduced in version 20100304. An error is incorrectly generated if a
8310predefined name is declared as a static named object with a value defined
8311using the keywords "Zero", "One", or "Ones". Lin Ming.
8312
8313iASL: Added Windows 7 support for the -g option (get local ACPI tables)
8314by
8315reducing the requested registry access rights. ACPICA BZ 842.
8316
8317Disassembler: fixed a possible fault when generating External()
8318statements.
8319Introduced in commit ae7d6fd: Properly handle externals with parent-
8320prefix
8321(carat). Fixes a string length allocation calculation. Lin Ming.
8322
8323----------------------------------------
832404 March 2010. Summary of changes for version 20100304:
8325
83261) ACPI CA Core Subsystem:
8327
8328Fixed a possible problem with the AML Mutex handling function
8329AcpiExReleaseMutex where the function could fault under the very rare
8330condition when the interpreter has blocked, the interpreter lock is
8331released,
8332the interpreter is then reentered via the same thread, and attempts to
8333acquire an AML mutex that was previously acquired. FreeBSD report 140979.
8334Lin
8335Ming.
8336
8337Implemented additional configuration support for the AML "Debug Object".
8338Output from the debug object can now be enabled via a global variable,
8339AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
8340debugging.
8341This debug output is now available in the release version of ACPICA
8342instead
8343of just the debug version. Also, the entire debug output module can now
8344be
8345configured out of the ACPICA build if desired. One new file added,
8346executer/exdebug.c. Lin Ming, Bob Moore.
8347
8348Added header support for the ACPI MCHI table (Management Controller Host
8349Interface Table). This table was added in ACPI 4.0, but the defining
8350document
8351has only recently become available.
8352
8353Standardized output of integer values for ACPICA warnings/errors. Always
8354use
83550x prefix for hex output, always use %u for unsigned integer decimal
8356output.
8357Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
8358400
8359invocations.) These invocations were converted from the original
8360ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
8361
8362Example Code and Data Size: These are the sizes for the OS-independent
8363acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8364debug version of the code includes the debug output trace mechanism and
8365has a
8366much larger code and data size.
8367
8368  Previous Release:
8369    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8370    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8371  Current Release:
8372    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8373    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8374
83752) iASL Compiler/Disassembler and Tools:
8376
8377iASL: Implemented typechecking support for static (non-control method)
8378predefined named objects that are declared with the Name() operator. For
8379example, the type of this object is now validated to be of type Integer:
8380Name(_BBN, 1). This change migrates the compiler to using the core
8381predefined
8382name table instead of maintaining a local version. Added a new file,
8383aslpredef.c. ACPICA BZ 832.
8384
8385Disassembler: Added support for the ACPI 4.0 MCHI table.
8386
8387----------------------------------------
838821 January 2010. Summary of changes for version 20100121:
8389
83901) ACPI CA Core Subsystem:
8391
8392Added the 2010 copyright to all module headers and signons. This affects
8393virtually every file in the ACPICA core subsystem, the iASL compiler, the
8394tools/utilities, and the test suites.
8395
8396Implemented a change to the AcpiGetDevices interface to eliminate
8397unnecessary
8398invocations of the _STA method. In the case where a specific _HID is
8399requested, do not run _STA until a _HID match is found. This eliminates
8400potentially dozens of _STA calls during a search for a particular
8401device/HID,
8402which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
8403
8404Implemented an additional repair for predefined method return values.
8405Attempt
8406to repair unexpected NULL elements within returned Package objects.
8407Create
8408an
8409Integer of value zero, a NULL String, or a zero-length Buffer as
8410appropriate.
8411ACPICA BZ 818. Lin Ming, Bob Moore.
8412
8413Removed the obsolete ACPI_INTEGER data type. This type was introduced as
8414the
8415code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
8416(with
841764-bit AML integers). It is now obsolete and this change removes it from
8418the
8419ACPICA code base, replaced by UINT64. The original typedef has been
8420retained
8421for now for compatibility with existing device driver code. ACPICA BZ
8422824.
8423
8424Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
8425in
8426the parse tree object.
8427
8428Added additional warning options for the gcc-4 generation. Updated the
8429source
8430accordingly. This includes some code restructuring to eliminate
8431unreachable
8432code, elimination of some gotos, elimination of unused return values,
8433some
8434additional casting, and removal of redundant declarations.
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:  87.0K Code, 18.0K Data, 105.0K Total
8444    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8445  Current Release:
8446    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8447    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8448
84492) iASL Compiler/Disassembler and Tools:
8450
8451No functional changes for this release.
8452
8453----------------------------------------
845414 December 2009. Summary of changes for version 20091214:
8455
84561) ACPI CA Core Subsystem:
8457
8458Enhanced automatic data type conversions for predefined name repairs.
8459This
8460change expands the automatic repairs/conversions for predefined name
8461return
8462values to make Integers, Strings, and Buffers fully interchangeable.
8463Also,
8464a
8465Buffer can be converted to a Package of Integers if necessary. The
8466nsrepair.c
8467module was completely restructured. Lin Ming, Bob Moore.
8468
8469Implemented automatic removal of null package elements during predefined
8470name
8471repairs. This change will automatically remove embedded and trailing NULL
8472package elements from returned package objects that are defined to
8473contain
8474a
8475variable number of sub-packages. The driver is then presented with a
8476package
8477with no null elements to deal with. ACPICA BZ 819.
8478
8479Implemented a repair for the predefined _FDE and _GTM names. The expected
8480return value for both names is a Buffer of 5 DWORDs. This repair fixes
8481two
8482possible problems (both seen in the field), where a package of integers
8483is
8484returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
8485Kim.
8486
8487Implemented additional module-level code support. This change will
8488properly
8489execute module-level code that is not at the root of the namespace (under
8490a
8491Device object, etc.). Now executes the code within the current scope
8492instead
8493of the root. ACPICA BZ 762. Lin Ming.
8494
8495Fixed possible mutex acquisition errors when running _REG methods. Fixes
8496a
8497problem where mutex errors can occur when running a _REG method that is
8498in
8499the same scope as a method-defined operation region or an operation
8500region
8501under a module-level IF block. This type of code is rare, so the problem
8502has
8503not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
8504
8505Fixed a possible memory leak during module-level code execution. An
8506object
8507could be leaked for each block of executed module-level code if the
8508interpreter slack mode is enabled This change deletes any implicitly
8509returned
8510object from the module-level code block. Lin Ming.
8511
8512Removed messages for successful predefined repair(s). The repair
8513mechanism
8514was considered too wordy. Now, messages are only unconditionally emitted
8515if
8516the return object cannot be repaired. Existing messages for successful
8517repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
8518827.
8519
8520Example Code and Data Size: These are the sizes for the OS-independent
8521acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8522debug version of the code includes the debug output trace mechanism and
8523has a
8524much larger code and data size.
8525
8526  Previous Release:
8527    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8528    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8529  Current Release:
8530    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8531    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8532
85332) iASL Compiler/Disassembler and Tools:
8534
8535iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
8536files
8537were no longer automatically removed at the termination of the compile.
8538
8539acpiexec: Implemented the -f option to specify default region fill value.
8540This option specifies the value used to initialize buffers that simulate
8541operation regions. Default value is zero. Useful for debugging problems
8542that
8543depend on a specific initial value for a region or field.
8544
8545----------------------------------------
854612 November 2009. Summary of changes for version 20091112:
8547
85481) ACPI CA Core Subsystem:
8549
8550Implemented a post-order callback to AcpiWalkNamespace. The existing
8551interface only has a pre-order callback. This change adds an additional
8552parameter for a post-order callback which will be more useful for bus
8553scans.
8554ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
8555
8556Modified the behavior of the operation region memory mapping cache for
8557SystemMemory. Ensure that the memory mappings created for operation
8558regions
8559do not cross 4K page boundaries. Crossing a page boundary while mapping
8560regions can cause kernel warnings on some hosts if the pages have
8561different
8562attributes. Such regions are probably BIOS bugs, and this is the
8563workaround.
8564Linux BZ 14445. Lin Ming.
8565
8566Implemented an automatic repair for predefined methods that must return
8567sorted lists. This change will repair (by sorting) packages returned by
8568_ALR,
8569_PSS, and _TSS. Drivers can now assume that the packages are correctly
8570sorted
8571and do not contain NULL package elements. Adds one new file,
8572namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
8573
8574Fixed a possible fault during predefined name validation if a return
8575Package
8576object contains NULL elements. Also adds a warning if a NULL element is
8577followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
8578may
8579include repair or removal of all such NULL elements where possible.
8580
8581Implemented additional module-level executable AML code support. This
8582change
8583will execute module-level code that is not at the root of the namespace
8584(under a Device object, etc.) at table load time. Module-level executable
8585AML
8586code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
8587
8588Implemented a new internal function to create Integer objects. This
8589function
8590simplifies miscellaneous object creation code. ACPICA BZ 823.
8591
8592Reduced the severity of predefined repair messages, Warning to Info.
8593Since
8594the object was successfully repaired, a warning is too severe. Reduced to
8595an
8596info message for now. These messages may eventually be changed to debug-
8597only.
8598ACPICA BZ 812.
8599
8600Example Code and Data Size: These are the sizes for the OS-independent
8601acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8602debug version of the code includes the debug output trace mechanism and
8603has a
8604much larger code and data size.
8605
8606  Previous Release:
8607    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8608    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8609  Current Release:
8610    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8611    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8612
86132) iASL Compiler/Disassembler and Tools:
8614
8615iASL: Implemented Switch() with While(1) so that Break works correctly.
8616This
8617change correctly implements the Switch operator with a surrounding
8618While(1)
8619so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
8620
8621iASL: Added a message if a package initializer list is shorter than
8622package
8623length. Adds a new remark for a Package() declaration if an initializer
8624list
8625exists, but is shorter than the declared length of the package. Although
8626technically legal, this is probably a coding error and it is seen in the
8627field. ACPICA BZ 815. Lin Ming, Bob Moore.
8628
8629iASL: Fixed a problem where the compiler could fault after the maximum
8630number
8631of errors was reached (200).
8632
8633acpixtract: Fixed a possible warning for pointer cast if the compiler
8634warning
8635level set very high.
8636
8637----------------------------------------
863813 October 2009. Summary of changes for version 20091013:
8639
86401) ACPI CA Core Subsystem:
8641
8642Fixed a problem where an Operation Region _REG method could be executed
8643more
8644than once. If a custom address space handler is installed by the host
8645before
8646the "initialize operation regions" phase of the ACPICA initialization,
8647any
8648_REG methods for that address space could be executed twice. This change
8649fixes the problem. ACPICA BZ 427. Lin Ming.
8650
8651Fixed a possible memory leak for the Scope() ASL operator. When the exact
8652invocation of "Scope(\)" is executed (change scope to root), one internal
8653operand object was leaked. Lin Ming.
8654
8655Implemented a run-time repair for the _MAT predefined method. If the _MAT
8656return value is defined as a Field object in the AML, and the field
8657size is less than or equal to the default width of an integer (32 or
865864),_MAT
8659can incorrectly return an Integer instead of a Buffer. ACPICA now
8660automatically repairs this problem. ACPICA BZ 810.
8661
8662Implemented a run-time repair for the _BIF and _BIX predefined methods.
8663The
8664"OEM Information" field is often incorrectly returned as an Integer with
8665value zero if the field is not supported by the platform. This is due to
8666an
8667ambiguity in the ACPI specification. The field should always be a string.
8668ACPICA now automatically repairs this problem by returning a NULL string
8669within the returned Package. ACPICA BZ 807.
8670
8671Example Code and Data Size: These are the sizes for the OS-independent
8672acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8673debug version of the code includes the debug output trace mechanism and
8674has a
8675much larger code and data size.
8676
8677  Previous Release:
8678    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
8679    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
8680  Current Release:
8681    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8682    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8683
86842) iASL Compiler/Disassembler and Tools:
8685
8686Disassembler: Fixed a problem where references to external symbols that
8687contained one or more parent-prefixes (carats) were not handled
8688correctly,
8689possibly causing a fault. ACPICA BZ 806. Lin Ming.
8690
8691Disassembler: Restructured the code so that all functions that handle
8692external symbols are in a single module. One new file is added,
8693common/dmextern.c.
8694
8695AML Debugger: Added a max count argument for the Batch command (which
8696executes multiple predefined methods within the namespace.)
8697
8698iASL: Updated the compiler documentation (User Reference.) Available at
8699http://www.acpica.org/documentation/. ACPICA BZ 750.
8700
8701AcpiXtract: Updated for Lint and other formatting changes. Close all open
8702files.
8703
8704----------------------------------------
870503 September 2009. Summary of changes for version 20090903:
8706
87071) ACPI CA Core Subsystem:
8708
8709For Windows Vista compatibility, added the automatic execution of an _INI
8710method located at the namespace root (\_INI). This method is executed at
8711table load time. This support is in addition to the automatic execution
8712of
8713\_SB._INI. Lin Ming.
8714
8715Fixed a possible memory leak in the interpreter for AML package objects
8716if
8717the package initializer list is longer than the defined size of the
8718package.
8719This apparently can only happen if the BIOS changes the package size on
8720the
8721fly (seen in a _PSS object), as ASL compilers do not allow this. The
8722interpreter will truncate the package to the defined size (and issue an
8723error
8724message), but previously could leave the extra objects undeleted if they
8725were
8726pre-created during the argument processing (such is the case if the
8727package
8728consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
8729
8730Fixed a problem seen when a Buffer or String is stored to itself via ASL.
8731This has been reported in the field. Previously, ACPICA would zero out
8732the
8733buffer/string. Now, the operation is treated as a noop. Provides Windows
8734compatibility. ACPICA BZ 803. Lin Ming.
8735
8736Removed an extraneous error message for ASL constructs of the form
8737Store(LocalX,LocalX) when LocalX is uninitialized. These curious
8738statements
8739are seen in many BIOSs and are once again treated as NOOPs and no error
8740is
8741emitted when they are encountered. ACPICA BZ 785.
8742
8743Fixed an extraneous warning message if a _DSM reserved method returns a
8744Package object. _DSM can return any type of object, so validation on the
8745return type cannot be performed. ACPICA BZ 802.
8746
8747Example Code and Data Size: These are the sizes for the OS-independent
8748acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8749debug version of the code includes the debug output trace mechanism and
8750has a
8751much larger code and data size.
8752
8753  Previous Release:
8754    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
8755    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
8756  Current Release:
8757    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
8758    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
8759
87602) iASL Compiler/Disassembler and Tools:
8761
8762iASL: Fixed a problem with the use of the Alias operator and Resource
8763Templates. The correct alias is now constructed and no error is emitted.
8764ACPICA BZ 738.
8765
8766iASL: Implemented the -I option to specify additional search directories
8767for
8768include files. Allows multiple additional search paths for include files.
8769Directories are searched in the order specified on the command line
8770(after
8771the local directory is searched.) ACPICA BZ 800.
8772
8773iASL: Fixed a problem where the full pathname for include files was not
8774emitted for warnings/errors. This caused the IDE support to not work
8775properly. ACPICA BZ 765.
8776
8777iASL: Implemented the -@ option to specify a Windows-style response file
8778containing additional command line options. ACPICA BZ 801.
8779
8780AcpiExec: Added support to load multiple AML files simultaneously (such
8781as
8782a
8783DSDT and multiple SSDTs). Also added support for wildcards within the AML
8784pathname. These features allow all machine tables to be easily loaded and
8785debugged together. ACPICA BZ 804.
8786
8787Disassembler: Added missing support for disassembly of HEST table Error
8788Bank
8789subtables.
8790
8791----------------------------------------
879230 July 2009. Summary of changes for version 20090730:
8793
8794The ACPI 4.0 implementation for ACPICA is complete with this release.
8795
87961) ACPI CA Core Subsystem:
8797
8798ACPI 4.0: Added header file support for all new and changed ACPI tables.
8799Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
8800new
8801for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
8802BERT,
8803EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
8804There
8805have been some ACPI 4.0 changes to other existing tables. Split the large
8806actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
8807
8808ACPI 4.0: Implemented predefined name validation for all new names. There
8809are
881031 new names in ACPI 4.0. The predefined validation module was split into
8811two
8812files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
8813
8814Implemented support for so-called "module-level executable code". This is
8815executable AML code that exists outside of any control method and is
8816intended
8817to be executed at table load time. Although illegal since ACPI 2.0, this
8818type
8819of code still exists and is apparently still being created. Blocks of
8820this
8821code are now detected and executed as intended. Currently, the code
8822blocks
8823must exist under either an If, Else, or While construct; these are the
8824typical cases seen in the field. ACPICA BZ 762. Lin Ming.
8825
8826Implemented an automatic dynamic repair for predefined names that return
8827nested Package objects. This applies to predefined names that are defined
8828to
8829return a variable-length Package of sub-packages. If the number of sub-
8830packages is one, BIOS code is occasionally seen that creates a simple
8831single
8832package with no sub-packages. This code attempts to fix the problem by
8833wrapping a new package object around the existing package. These methods
8834can
8835be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
8836BZ
8837790.
8838
8839Fixed a regression introduced in 20090625 for the AcpiGetDevices
8840interface.
8841The _HID/_CID matching was broken and no longer matched IDs correctly.
8842ACPICA
8843BZ 793.
8844
8845Fixed a problem with AcpiReset where the reset would silently fail if the
8846register was one of the protected I/O ports. AcpiReset now bypasses the
8847port
8848validation mechanism. This may eventually be driven into the
8849AcpiRead/Write
8850interfaces.
8851
8852Fixed a regression related to the recent update of the AcpiRead/Write
8853interfaces. A sleep/suspend could fail if the optional PM2 Control
8854register
8855does not exist during an attempt to write the Bus Master Arbitration bit.
8856(However, some hosts already delete the code that writes this bit, and
8857the
8858code may in fact be obsolete at this date.) ACPICA BZ 799.
8859
8860Fixed a problem where AcpiTerminate could fault if inadvertently called
8861twice
8862in succession. ACPICA BZ 795.
8863
8864Example Code and Data Size: These are the sizes for the OS-independent
8865acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8866debug version of the code includes the debug output trace mechanism and
8867has a
8868much larger code and data size.
8869
8870  Previous Release:
8871    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
8872    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
8873  Current Release:
8874    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
8875    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
8876
88772) iASL Compiler/Disassembler and Tools:
8878
8879ACPI 4.0: Implemented disassembler support for all new ACPI tables and
8880changes to existing tables. ACPICA BZ 775.
8881
8882----------------------------------------
888325 June 2009. Summary of changes for version 20090625:
8884
8885The ACPI 4.0 Specification was released on June 16 and is available at
8886www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
8887continue for the next few releases.
8888
88891) ACPI CA Core Subsystem:
8890
8891ACPI 4.0: Implemented interpreter support for the IPMI operation region
8892address space. Includes support for bi-directional data buffers and an
8893IPMI
8894address space handler (to be installed by an IPMI device driver.) ACPICA
8895BZ
8896773. Lin Ming.
8897
8898ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
8899Includes
8900support in both the header files and the disassembler.
8901
8902Completed a major update for the AcpiGetObjectInfo external interface.
8903Changes include:
8904 - Support for variable, unlimited length HID, UID, and CID strings.
8905 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
8906etc.)
8907 - Call the _SxW power methods on behalf of a device object.
8908 - Determine if a device is a PCI root bridge.
8909 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
8910These changes will require an update to all callers of this interface.
8911See
8912the updated ACPICA Programmer Reference for details. One new source file
8913has
8914been added - utilities/utids.c. ACPICA BZ 368, 780.
8915
8916Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
8917transfers. The Value parameter has been extended from 32 bits to 64 bits
8918in
8919order to support new ACPI 4.0 tables. These changes will require an
8920update
8921to
8922all callers of these interfaces. See the ACPICA Programmer Reference for
8923details. ACPICA BZ 768.
8924
8925Fixed several problems with AcpiAttachData. The handler was not invoked
8926when
8927the host node was deleted. The data sub-object was not automatically
8928deleted
8929when the host node was deleted. The interface to the handler had an
8930unused
8931parameter, this was removed. ACPICA BZ 778.
8932
8933Enhanced the function that dumps ACPI table headers. All non-printable
8934characters in the string fields are now replaced with '?' (Signature,
8935OemId,
8936OemTableId, and CompilerId.) ACPI tables with non-printable characters in
8937these fields are occasionally seen in the field. ACPICA BZ 788.
8938
8939Fixed a problem with predefined method repair code where the code that
8940attempts to repair/convert an object of incorrect type is only executed
8941on
8942the first time the predefined method is called. The mechanism that
8943disables
8944warnings on subsequent calls was interfering with the repair mechanism.
8945ACPICA BZ 781.
8946
8947Fixed a possible memory leak in the predefined validation/repair code
8948when
8949a
8950buffer is automatically converted to an expected string object.
8951
8952Removed obsolete 16-bit files from the distribution and from the current
8953git
8954tree head. ACPICA BZ 776.
8955
8956Example Code and Data Size: These are the sizes for the OS-independent
8957acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8958debug version of the code includes the debug output trace mechanism and
8959has a
8960much larger code and data size.
8961
8962  Previous Release:
8963    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
8964    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
8965  Current Release:
8966    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
8967    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
8968
89692) iASL Compiler/Disassembler and Tools:
8970
8971ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
8972operation region keyword. ACPICA BZ 771, 772. Lin Ming.
8973
8974ACPI 4.0: iASL - implemented compile-time validation support for all new
8975predefined names and control methods (31 total). ACPICA BZ 769.
8976
8977----------------------------------------
897821 May 2009. Summary of changes for version 20090521:
8979
89801) ACPI CA Core Subsystem:
8981
8982Disabled the preservation of the SCI enable bit in the PM1 control
8983register.
8984The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
8985to
8986be
8987a "preserved" bit - "OSPM always preserves this bit position", section
89884.7.3.2.1. However, some machines fail if this bit is in fact preserved
8989because the bit needs to be explicitly set by the OS as a workaround. No
8990machines fail if the bit is not preserved. Therefore, ACPICA no longer
8991attempts to preserve this bit.
8992
8993Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
8994incorrectly formed _PRT package could cause a fault. Added validation to
8995ensure that each package element is actually a sub-package.
8996
8997Implemented a new interface to install or override a single control
8998method,
8999AcpiInstallMethod. This interface is useful when debugging in order to
9000repair
9001an existing method or to install a missing method without having to
9002override
9003the entire ACPI table. See the ACPICA Programmer Reference for use and
9004examples. Lin Ming, Bob Moore.
9005
9006Fixed several reference count issues with the DdbHandle object that is
9007created from a Load or LoadTable operator. Prevent premature deletion of
9008the
9009object. Also, mark the object as invalid once the table has been
9010unloaded.
9011This is needed because the handle itself may not be deleted after the
9012table
9013unload, depending on whether it has been stored in a named object by the
9014caller. Lin Ming.
9015
9016Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
9017mutexes of the same sync level are acquired but then not released in
9018strict
9019opposite order, the internally maintained Current Sync Level becomes
9020confused
9021and can cause subsequent execution errors. ACPICA BZ 471.
9022
9023Changed the allowable release order for ASL mutex objects. The ACPI 4.0
9024specification has been changed to make the SyncLevel for mutex objects
9025more
9026useful. When releasing a mutex, the SyncLevel of the mutex must now be
9027the
9028same as the current sync level. This makes more sense than the previous
9029rule
9030(SyncLevel less than or equal). This change updates the code to match the
9031specification.
9032
9033Fixed a problem with the local version of the AcpiOsPurgeCache function.
9034The
9035(local) cache must be locked during all cache object deletions. Andrew
9036Baumann.
9037
9038Updated the Load operator to use operation region interfaces. This
9039replaces
9040direct memory mapping with region access calls. Now, all region accesses
9041go
9042through the installed region handler as they should.
9043
9044Simplified and optimized the NsGetNextNode function. Reduced parameter
9045count
9046and reduced code for this frequently used function.
9047
9048Example Code and Data Size: These are the sizes for the OS-independent
9049acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9050debug version of the code includes the debug output trace mechanism and
9051has a
9052much larger code and data size.
9053
9054  Previous Release:
9055    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9056    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9057  Current Release:
9058    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9059    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9060
90612) iASL Compiler/Disassembler and Tools:
9062
9063Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
9064problems
9065with sub-table disassembly and handling invalid sub-tables. Attempt
9066recovery
9067after an invalid sub-table ID.
9068
9069----------------------------------------
907022 April 2009. Summary of changes for version 20090422:
9071
90721) ACPI CA Core Subsystem:
9073
9074Fixed a compatibility issue with the recently released I/O port
9075protection
9076mechanism. For windows compatibility, 1) On a port protection violation,
9077simply ignore the request and do not return an exception (allow the
9078control
9079method to continue execution.) 2) If only part of the request overlaps a
9080protected port, read/write the individual ports that are not protected.
9081Linux
9082BZ 13036. Lin Ming
9083
9084Enhanced the execution of the ASL/AML BreakPoint operator so that it
9085actually
9086breaks into the AML debugger if the debugger is present. This matches the
9087ACPI-defined behavior.
9088
9089Fixed several possible warnings related to the use of the configurable
9090ACPI_THREAD_ID. This type can now be configured as either an integer or a
9091pointer with no warnings. Also fixes several warnings in printf-like
9092statements for the 64-bit build when the type is configured as a pointer.
9093ACPICA BZ 766, 767.
9094
9095Fixed a number of possible warnings when compiling with gcc 4+ (depending
9096on
9097warning options.) Examples include printf formats, aliasing, unused
9098globals,
9099missing prototypes, missing switch default statements, use of non-ANSI
9100library functions, use of non-ANSI constructs. See generate/unix/Makefile
9101for
9102a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
9103
9104Example Code and Data Size: These are the sizes for the OS-independent
9105acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9106debug version of the code includes the debug output trace mechanism and
9107has a
9108much larger code and data size.
9109
9110  Previous Release:
9111    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9112    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9113  Current Release:
9114    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9115    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9116
91172) iASL Compiler/Disassembler and Tools:
9118
9119iASL: Fixed a generation warning from Bison 2.3 and fixed several
9120warnings
9121on
9122the 64-bit build.
9123
9124iASL: Fixed a problem where the Unix/Linux versions of the compiler could
9125not
9126correctly digest Windows/DOS formatted files (with CR/LF).
9127
9128iASL: Added a new option for "quiet mode" (-va) that produces only the
9129compilation summary, not individual errors and warnings. Useful for large
9130batch compilations.
9131
9132AcpiExec: Implemented a new option (-z) to enable a forced
9133semaphore/mutex
9134timeout that can be used to detect hang conditions during execution of
9135AML
9136code (includes both internal semaphores and AML-defined mutexes and
9137events.)
9138
9139Added new makefiles for the generation of acpica in a generic unix-like
9140environment. These makefiles are intended to generate the acpica tools
9141and
9142utilities from the original acpica git source tree structure.
9143
9144Test Suites: Updated and cleaned up the documentation files. Updated the
9145copyrights to 2009, affecting all source files. Use the new version of
9146iASL
9147with quiet mode. Increased the number of available semaphores in the
9148Windows
9149OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
9150added
9151an alternate implementation of the semaphore timeout to allow aslts to
9152execute fully on Cygwin.
9153
9154----------------------------------------
915520 March 2009. Summary of changes for version 20090320:
9156
91571) ACPI CA Core Subsystem:
9158
9159Fixed a possible race condition between AcpiWalkNamespace and dynamic
9160table
9161unloads. Added a reader/writer locking mechanism to allow multiple
9162concurrent
9163namespace walks (readers), but block a dynamic table unload until it can
9164gain
9165exclusive write access to the namespace. This fixes a problem where a
9166table
9167unload could (possibly catastrophically) delete the portion of the
9168namespace
9169that is currently being examined by a walk. Adds a new file, utlock.c,
9170that
9171implements the reader/writer lock mechanism. ACPICA BZ 749.
9172
9173Fixed a regression introduced in version 20090220 where a change to the
9174FADT
9175handling could cause the ACPICA subsystem to access non-existent I/O
9176ports.
9177
9178Modified the handling of FADT register and table (FACS/DSDT) addresses.
9179The
9180FADT can contain both 32-bit and 64-bit versions of these addresses.
9181Previously, the 64-bit versions were favored, meaning that if both 32 and
918264
9183versions were valid, but not equal, the 64-bit version was used. This was
9184found to cause some machines to fail. Now, in this case, the 32-bit
9185version
9186is used instead. This now matches the Windows behavior.
9187
9188Implemented a new mechanism to protect certain I/O ports. Provides
9189Microsoft
9190compatibility and protects the standard PC I/O ports from access via AML
9191code. Adds a new file, hwvalid.c
9192
9193Fixed a possible extraneous warning message from the FADT support. The
9194message warns of a 32/64 length mismatch between the legacy and GAS
9195definitions for a register.
9196
9197Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
9198is
9199made obsolete by the port protection mechanism above. It was previously
9200used
9201to validate the entire address range of an operation region, which could
9202be
9203incorrect if the range included illegal ports, but fields within the
9204operation region did not actually access those ports. Validation is now
9205performed on a per-field basis instead of the entire region.
9206
9207Modified the handling of the PM1 Status Register ignored bit (bit 11.)
9208Ignored bits must be "preserved" according to the ACPI spec. Usually,
9209this
9210means a read/modify/write when writing to the register. However, for
9211status
9212registers, writing a one means clear the event. Writing a zero means
9213preserve
9214the event (do not clear.) This behavior is clarified in the ACPI 4.0
9215spec,
9216and the ACPICA code now simply always writes a zero to the ignored bit.
9217
9218Modified the handling of ignored bits for the PM1 A/B Control Registers.
9219As
9220per the ACPI specification, for the control registers, preserve
9221(read/modify/write) all bits that are defined as either reserved or
9222ignored.
9223
9224Updated the handling of write-only bits in the PM1 A/B Control Registers.
9225When reading the register, zero the write-only bits as per the ACPI spec.
9226ACPICA BZ 443. Lin Ming.
9227
9228Removed "Linux" from the list of supported _OSI strings. Linux no longer
9229wants to reply true to this request. The Windows strings are the only
9230paths
9231through the AML that are tested and known to work properly.
9232
9233  Previous Release:
9234    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9235    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9236  Current Release:
9237    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9238    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9239
92402) iASL Compiler/Disassembler and Tools:
9241
9242Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
9243and
9244aetables.c
9245
9246----------------------------------------
924720 February 2009. Summary of changes for version 20090220:
9248
92491) ACPI CA Core Subsystem:
9250
9251Optimized the ACPI register locking. Removed locking for reads from the
9252ACPI
9253bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
9254is
9255not required when reading the single-bit registers. The
9256AcpiGetRegisterUnlocked function is no longer needed and has been
9257removed.
9258This will improve performance for reads on these registers. ACPICA BZ
9259760.
9260
9261Fixed the parameter validation for AcpiRead/Write. Now return
9262AE_BAD_PARAMETER if the input register pointer is null, and
9263AE_BAD_ADDRESS
9264if
9265the register has an address of zero. Previously, these cases simply
9266returned
9267AE_OK. For optional registers such as PM1B status/enable/control, the
9268caller
9269should check for a valid register address before calling. ACPICA BZ 748.
9270
9271Renamed the external ACPI bit register access functions. Renamed
9272AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
9273functions. The new names are AcpiReadBitRegister and
9274AcpiWriteBitRegister.
9275Also, restructured the code for these functions by simplifying the code
9276path
9277and condensing duplicate code to reduce code size.
9278
9279Added new functions to transparently handle the possibly split PM1 A/B
9280registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
9281functions
9282now handle the split registers for PM1 Status, Enable, and Control.
9283ACPICA
9284BZ
9285746.
9286
9287Added a function to handle the PM1 control registers,
9288AcpiHwWritePm1Control.
9289This function writes both of the PM1 control registers (A/B). These
9290registers
9291are different than the PM1 A/B status and enable registers in that
9292different
9293values can be written to the A/B registers. Most notably, the SLP_TYP
9294bits
9295can be different, as per the values returned from the _Sx predefined
9296methods.
9297
9298Removed an extra register write within AcpiHwClearAcpiStatus. This
9299function
9300was writing an optional PM1B status register twice. The existing call to
9301the
9302low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
9303A/B
9304register. ACPICA BZ 751.
9305
9306Split out the PM1 Status registers from the FADT. Added new globals for
9307these
9308registers (A/B), similar to the way the PM1 Enable registers are handled.
9309Instead of overloading the FADT Event Register blocks. This makes the
9310code
9311clearer and less prone to error.
9312
9313Fixed the warning message for when the platform contains too many ACPI
9314tables
9315for the default size of the global root table data structure. The
9316calculation
9317for the truncation value was incorrect.
9318
9319Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
9320obsolete macro, since it is now a simple reference to ->common.type.
9321There
9322were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
9323
9324Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
9325TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
9326simply SLEEP_TYPE. ACPICA BZ 754.
9327
9328Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
9329function is only needed on 64-bit host operating systems and is thus not
9330included for 32-bit hosts.
9331
9332Debug output: print the input and result for invocations of the _OSI
9333reserved
9334control method via the ACPI_LV_INFO debug level. Also, reduced some of
9335the
9336verbosity of this debug level. Len Brown.
9337
9338Example Code and Data Size: These are the sizes for the OS-independent
9339acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9340debug version of the code includes the debug output trace mechanism and
9341has a
9342much larger code and data size.
9343
9344  Previous Release:
9345    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9346    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9347  Current Release:
9348    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9349    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9350
93512) iASL Compiler/Disassembler and Tools:
9352
9353Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
9354various legal performance profiles.
9355
9356----------------------------------------
935723 January 2009. Summary of changes for version 20090123:
9358
93591) ACPI CA Core Subsystem:
9360
9361Added the 2009 copyright to all module headers and signons. This affects
9362virtually every file in the ACPICA core subsystem, the iASL compiler, and
9363the tools/utilities.
9364
9365Implemented a change to allow the host to override any ACPI table,
9366including
9367dynamically loaded tables. Previously, only the DSDT could be replaced by
9368the
9369host. With this change, the AcpiOsTableOverride interface is called for
9370each
9371table found in the RSDT/XSDT during ACPICA initialization, and also
9372whenever
9373a table is dynamically loaded via the AML Load operator.
9374
9375Updated FADT flag definitions, especially the Boot Architecture flags.
9376
9377Debugger: For the Find command, automatically pad the input ACPI name
9378with
9379underscores if the name is shorter than 4 characters. This enables a
9380match
9381with the actual namespace entry which is itself padded with underscores.
9382
9383Example Code and Data Size: These are the sizes for the OS-independent
9384acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9385debug version of the code includes the debug output trace mechanism and
9386has a
9387much larger code and data size.
9388
9389  Previous Release:
9390    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9391    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9392  Current Release:
9393    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9394    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9395
93962) iASL Compiler/Disassembler and Tools:
9397
9398Fix build error under Bison-2.4.
9399
9400Disassembler: Enhanced FADT support. Added decoding of the Boot
9401Architecture
9402flags. Now decode all flags, regardless of the FADT version. Flag output
9403includes the FADT version which first defined each flag.
9404
9405The iASL -g option now dumps the RSDT to a file (in addition to the FADT
9406and
9407DSDT). Windows only.
9408
9409----------------------------------------
941004 December 2008. Summary of changes for version 20081204:
9411
94121) ACPI CA Core Subsystem:
9413
9414The ACPICA Programmer Reference has been completely updated and revamped
9415for
9416this release. This includes updates to the external interfaces, OSL
9417interfaces, the overview sections, and the debugger reference.
9418
9419Several new ACPICA interfaces have been implemented and documented in the
9420programmer reference:
9421AcpiReset - Writes the reset value to the FADT-defined reset register.
9422AcpiDisableAllGpes - Disable all available GPEs.
9423AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
9424AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
9425AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
9426AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
9427AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
9428
9429Most of the public ACPI hardware-related interfaces have been moved to a
9430new
9431file, components/hardware/hwxface.c
9432
9433Enhanced the FADT parsing and low-level ACPI register access: The ACPI
9434register lengths within the FADT are now used, and the low level ACPI
9435register access no longer hardcodes the ACPI register lengths. Given that
9436there may be some risk in actually trusting the FADT register lengths, a
9437run-
9438time option was added to fall back to the default hardcoded lengths if
9439the
9440FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
9441option is set to true for now, and a warning is issued if a suspicious
9442FADT
9443register length is overridden with the default value.
9444
9445Fixed a reference count issue in NsRepairObject. This problem was
9446introduced
9447in version 20081031 as part of a fix to repair Buffer objects within
9448Packages. Lin Ming.
9449
9450Added semaphore support to the Linux/Unix application OS-services layer
9451(OSL). ACPICA BZ 448. Lin Ming.
9452
9453Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
9454will
9455be implemented in the OSL, or will binary semaphores be used instead.
9456
9457Example Code and Data Size: These are the sizes for the OS-independent
9458acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9459debug version of the code includes the debug output trace mechanism and
9460has a
9461much larger code and data size.
9462
9463  Previous Release:
9464    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9465    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9466  Current Release:
9467    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9468    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9469
94702) iASL Compiler/Disassembler and Tools:
9471
9472iASL: Completed the '-e' option to include additional ACPI tables in
9473order
9474to
9475aid with disassembly and External statement generation. ACPICA BZ 742.
9476Lin
9477Ming.
9478
9479iASL: Removed the "named object in while loop" error. The compiler cannot
9480determine how many times a loop will execute. ACPICA BZ 730.
9481
9482Disassembler: Implemented support for FADT revision 2 (MS extension).
9483ACPICA
9484BZ 743.
9485
9486Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
9487MCFG).
9488
9489----------------------------------------
949031 October 2008. Summary of changes for version 20081031:
9491
94921) ACPI CA Core Subsystem:
9493
9494Restructured the ACPICA header files into public/private. acpi.h now
9495includes
9496only the "public" acpica headers. All other acpica headers are "private"
9497and
9498should not be included by acpica users. One new file, accommon.h is used
9499to
9500include the commonly used private headers for acpica code generation.
9501Future
9502plans include moving all private headers to a new subdirectory.
9503
9504Implemented an automatic Buffer->String return value conversion for
9505predefined ACPI methods. For these methods (such as _BIF), added
9506automatic
9507conversion for return objects that are required to be a String, but a
9508Buffer
9509was found instead. This can happen when reading string battery data from
9510an
9511operation region, because it used to be difficult to convert the data
9512from
9513buffer to string from within the ASL. Ensures that the host OS is
9514provided
9515with a valid null-terminated string. Linux BZ 11822.
9516
9517Updated the FACS waking vector interfaces. Split
9518AcpiSetFirmwareWakingVector
9519into two: one for the 32-bit vector, another for the 64-bit vector. This
9520is
9521required because the host OS must setup the wake much differently for
9522each
9523vector (real vs. protected mode, etc.) and the interface itself should
9524not
9525be
9526deciding which vector to use. Also, eliminated the
9527GetFirmwareWakingVector
9528interface, as it served no purpose (only the firmware reads the vector,
9529OS
9530only writes the vector.) ACPICA BZ 731.
9531
9532Implemented a mechanism to escape infinite AML While() loops. Added a
9533loop
9534counter to force exit from AML While loops if the count becomes too
9535large.
9536This can occur in poorly written AML when the hardware does not respond
9537within a while loop and the loop does not implement a timeout. The
9538maximum
9539loop count is configurable. A new exception code is returned when a loop
9540is
9541broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
9542
9543Optimized the execution of AML While loops. Previously, a control state
9544object was allocated and freed for each execution of the loop. The
9545optimization is to simply reuse the control state for each iteration.
9546This
9547speeds up the raw loop execution time by about 5%.
9548
9549Enhanced the implicit return mechanism. For Windows compatibility, return
9550an
9551implicit integer of value zero for methods that contain no executable
9552code.
9553Such methods are seen in the field as stubs (presumably), and can cause
9554drivers to fail if they expect a return value. Lin Ming.
9555
9556Allow multiple backslashes as root prefixes in namepaths. In a fully
9557qualified namepath, allow multiple backslash prefixes. This can happen
9558(and
9559is seen in the field) because of the use of a double-backslash in strings
9560(since backslash is the escape character) causing confusion. ACPICA BZ
9561739
9562Lin Ming.
9563
9564Emit a warning if two different FACS or DSDT tables are discovered in the
9565FADT. Checks if there are two valid but different addresses for the FACS
9566and
9567DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
9568
9569Consolidated the method argument count validation code. Merged the code
9570that
9571validates control method argument counts into the predefined validation
9572module. Eliminates possible multiple warnings for incorrect argument
9573counts.
9574
9575Implemented ACPICA example code. Includes code for ACPICA initialization,
9576handler installation, and calling a control method. Available at
9577source/tools/examples.
9578
9579Added a global pointer for FACS table to simplify internal FACS access.
9580Use
9581the global pointer instead of using AcpiGetTableByIndex for each FACS
9582access.
9583This simplifies the code for the Global Lock and the Firmware Waking
9584Vector(s).
9585
9586Example Code and Data Size: These are the sizes for the OS-independent
9587acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9588debug version of the code includes the debug output trace mechanism and
9589has a
9590much larger code and data size.
9591
9592  Previous Release:
9593    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9594    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9595  Current Release:
9596    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9597    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9598
95992) iASL Compiler/Disassembler and Tools:
9600
9601iASL: Improved disassembly of external method calls. Added the -e option
9602to
9603allow the inclusion of additional ACPI tables to help with the
9604disassembly
9605of
9606method invocations and the generation of external declarations during the
9607disassembly. Certain external method invocations cannot be disassembled
9608properly without the actual declaration of the method. Use the -e option
9609to
9610include the table where the external method(s) are actually declared.
9611Most
9612useful for disassembling SSDTs that make method calls back to the master
9613DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
9614-d
9615-e dsdt.aml ssdt1.aml
9616
9617iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
9618problem where the use of an alias within a namepath would result in a not
9619found error or cause the compiler to fault. Also now allows forward
9620references from the Alias operator itself. ACPICA BZ 738.
9621
9622----------------------------------------
962326 September 2008. Summary of changes for version 20080926:
9624
96251) ACPI CA Core Subsystem:
9626
9627Designed and implemented a mechanism to validate predefined ACPI methods
9628and
9629objects. This code validates the predefined ACPI objects (objects whose
9630names
9631start with underscore) that appear in the namespace, at the time they are
9632evaluated. The argument count and the type of the returned object are
9633validated against the ACPI specification. The purpose of this validation
9634is
9635to detect problems with the BIOS-implemented predefined ACPI objects
9636before
9637the results are returned to the ACPI-related drivers. Future enhancements
9638may
9639include actual repair of incorrect return objects where possible. Two new
9640files are nspredef.c and acpredef.h.
9641
9642Fixed a fault in the AML parser if a memory allocation fails during the
9643Op
9644completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
9645
9646Fixed an issue with implicit return compatibility. This change improves
9647the
9648implicit return mechanism to be more compatible with the MS interpreter.
9649Lin
9650Ming, ACPICA BZ 349.
9651
9652Implemented support for zero-length buffer-to-string conversions. Allow
9653zero
9654length strings during interpreter buffer-to-string conversions. For
9655example,
9656during the ToDecimalString and ToHexString operators, as well as implicit
9657conversions. Fiodor Suietov, ACPICA BZ 585.
9658
9659Fixed two possible memory leaks in the error exit paths of
9660AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
9661are
9662similar in that they use a stack of state objects in order to eliminate
9663recursion. The stack must be fully unwound and deallocated if an error
9664occurs. Lin Ming. ACPICA BZ 383.
9665
9666Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
9667global
9668ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
9669Moore ACPICA BZ 442.
9670
9671Removed the obsolete version number in module headers. Removed the
9672"$Revision" number that appeared in each module header. This version
9673number
9674was useful under SourceSafe and CVS, but has no meaning under git. It is
9675not
9676only incorrect, it could also be misleading.
9677
9678Example Code and Data Size: These are the sizes for the OS-independent
9679acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9680debug version of the code includes the debug output trace mechanism and
9681has a
9682much larger code and data size.
9683
9684  Previous Release:
9685    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9686    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
9687  Current Release:
9688    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9689    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9690
9691----------------------------------------
969229 August 2008. Summary of changes for version 20080829:
9693
96941) ACPI CA Core Subsystem:
9695
9696Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
9697Reference. Changes include the elimination of cheating on the Object
9698field
9699for the DdbHandle subtype, addition of a reference class field to
9700differentiate the various reference types (instead of an AML opcode), and
9701the
9702cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
9703
9704Reduce an error to a warning for an incorrect method argument count.
9705Previously aborted with an error if too few arguments were passed to a
9706control method via the external ACPICA interface. Now issue a warning
9707instead
9708and continue. Handles the case where the method inadvertently declares
9709too
9710many arguments, but does not actually use the extra ones. Applies mainly
9711to
9712the predefined methods. Lin Ming. Linux BZ 11032.
9713
9714Disallow the evaluation of named object types with no intrinsic value.
9715Return
9716AE_TYPE for objects that have no value and therefore evaluation is
9717undefined:
9718Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
9719of
9720these types were allowed, but an exception would be generated at some
9721point
9722during the evaluation. Now, the error is generated up front.
9723
9724Fixed a possible memory leak in the AcpiNsGetExternalPathname function
9725(nsnames.c). Fixes a leak in the error exit path.
9726
9727Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
9728debug
9729levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
9730ACPI_EXCEPTION
9731interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
9732ACPI_LV_EVENTS.
9733
9734Removed obsolete and/or unused exception codes from the acexcep.h header.
9735There is the possibility that certain device drivers may be affected if
9736they
9737use any of these exceptions.
9738
9739The ACPICA documentation has been added to the public git source tree,
9740under
9741acpica/documents. Included are the ACPICA programmer reference, the iASL
9742compiler reference, and the changes.txt release logfile.
9743
9744Example Code and Data Size: These are the sizes for the OS-independent
9745acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9746debug version of the code includes the debug output trace mechanism and
9747has a
9748much larger code and data size.
9749
9750  Previous Release:
9751    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9752    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
9753  Current Release:
9754    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9755    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
9756
97572) iASL Compiler/Disassembler and Tools:
9758
9759Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
9760defines _SCP with 3 arguments. Previous versions defined it with only 1
9761argument. iASL now allows both definitions.
9762
9763iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
9764zero-
9765length subtables when disassembling ACPI tables. Also fixed a couple of
9766errors where a full 16-bit table type field was not extracted from the
9767input
9768properly.
9769
9770acpisrc: Improve comment counting mechanism for generating source code
9771statistics. Count first and last lines of multi-line comments as
9772whitespace,
9773not comment lines. Handle Linux legal header in addition to standard
9774acpica
9775header.
9776
9777----------------------------------------
9778
977929 July 2008. Summary of changes for version 20080729:
9780
97811) ACPI CA Core Subsystem:
9782
9783Fix a possible deadlock in the GPE dispatch. Remove call to
9784AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
9785attempt
9786to acquire the GPE lock but can deadlock since the GPE lock is already
9787held
9788at dispatch time. This code was introduced in version 20060831 as a
9789response
9790to Linux BZ 6881 and has since been removed from Linux.
9791
9792Add a function to dereference returned reference objects. Examines the
9793return
9794object from a call to AcpiEvaluateObject. Any Index or RefOf references
9795are
9796automatically dereferenced in an attempt to return something useful
9797(these
9798reference types cannot be converted into an external ACPI_OBJECT.)
9799Provides
9800MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
9801
9802x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
9803subtables for the MADT and one new subtable for the SRAT. Includes
9804disassembler and AcpiSrc support. Data from the Intel 64 Architecture
9805x2APIC
9806Specification, June 2008.
9807
9808Additional error checking for pathname utilities. Add error check after
9809all
9810calls to AcpiNsGetPathnameLength. Add status return from
9811AcpiNsBuildExternalPath and check after all calls. Add parameter
9812validation
9813to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
9814
9815Return status from the global init function AcpiUtGlobalInitialize. This
9816is
9817used by both the kernel subsystem and the utilities such as iASL
9818compiler.
9819The function could possibly fail when the caches are initialized. Yang
9820Yi.
9821
9822Add a function to decode reference object types to strings. Created for
9823improved error messages.
9824
9825Improve object conversion error messages. Better error messages during
9826object
9827conversion from internal to the external ACPI_OBJECT. Used for external
9828calls
9829to AcpiEvaluateObject.
9830
9831Example Code and Data Size: These are the sizes for the OS-independent
9832acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9833debug version of the code includes the debug output trace mechanism and
9834has a
9835much larger code and data size.
9836
9837  Previous Release:
9838    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
9839    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
9840  Current Release:
9841    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9842    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
9843
98442) iASL Compiler/Disassembler and Tools:
9845
9846Debugger: fix a possible hang when evaluating non-methods. Fixes a
9847problem
9848introduced in version 20080701. If the object being evaluated (via
9849execute
9850command) is not a method, the debugger can hang while trying to obtain
9851non-
9852existent parameters.
9853
9854iASL: relax error for using reserved "_T_x" identifiers. These names can
9855appear in a disassembled ASL file if they were emitted by the original
9856compiler. Instead of issuing an error or warning and forcing the user to
9857manually change these names, issue a remark instead.
9858
9859iASL: error if named object created in while loop. Emit an error if any
9860named
9861object is created within a While loop. If allowed, this code will
9862generate
9863a
9864run-time error on the second iteration of the loop when an attempt is
9865made
9866to
9867create the same named object twice. ACPICA bugzilla 730.
9868
9869iASL: Support absolute pathnames for include files. Add support for
9870absolute
9871pathnames within the Include operator. previously, only relative
9872pathnames
9873were supported.
9874
9875iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
9876Descriptor.
9877The ACPI spec requires one interrupt minimum. BZ 423
9878
9879iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
9880Handles the case for the Interrupt Resource Descriptor where
9881the ResourceSource argument is omitted but ResourceSourceIndex
9882is present. Now leave room for the Index. BZ 426
9883
9884iASL: Prevent error message if CondRefOf target does not exist. Fixes
9885cases
9886where an error message is emitted if the target does not exist. BZ 516
9887
9888iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
9889(get ACPI tables on Windows). This was apparently broken in version
989020070919.
9891
9892AcpiXtract: Handle EOF while extracting data. Correctly handle the case
9893where
9894the EOF happens immediately after the last table in the input file. Print
9895completion message. Previously, no message was displayed in this case.
9896
9897----------------------------------------
989801 July 2008. Summary of changes for version 20080701:
9899
99000) Git source tree / acpica.org
9901
9902Fixed a problem where a git-clone from http would not transfer the entire
9903source tree.
9904
99051) ACPI CA Core Subsystem:
9906
9907Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
9908enable bit. Now performs a read-change-write of the enable register
9909instead
9910of simply writing out the cached enable mask. This will prevent
9911inadvertent
9912enabling of GPEs if a rogue GPE is received during initialization (before
9913GPE
9914handlers are installed.)
9915
9916Implemented a copy for dynamically loaded tables. Previously, dynamically
9917loaded tables were simply mapped - but on some machines this memory is
9918corrupted after suspend. Now copy the table to a local buffer. For the
9919OpRegion case, added checksum verify. Use the table length from the table
9920header, not the region length. For the Buffer case, use the table length
9921also. Dennis Noordsij, Bob Moore. BZ 10734
9922
9923Fixed a problem where the same ACPI table could not be dynamically loaded
9924and
9925unloaded more than once. Without this change, a table cannot be loaded
9926again
9927once it has been loaded/unloaded one time. The current mechanism does not
9928unregister a table upon an unload. During a load, if the same table is
9929found,
9930this no longer returns an exception. BZ 722
9931
9932Fixed a problem where the wrong descriptor length was calculated for the
9933EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
9934EndTag
9935are calculated as 12 bytes long, but the actual length in the internal
9936descriptor is 16 because of the round-up to 8 on the 64-bit build.
9937Reported
9938by Linn Crosetto. BZ 728
9939
9940Fixed a possible memory leak in the Unload operator. The DdbHandle
9941returned
9942by Load() did not have its reference count decremented during unload,
9943leading
9944to a memory leak. Lin Ming. BZ 727
9945
9946Fixed a possible memory leak when deleting thermal/processor objects. Any
9947associated notify handlers (and objects) were not being deleted. Fiodor
9948Suietov. BZ 506
9949
9950Fixed the ordering of the ASCII names in the global mutex table to match
9951the
9952actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
9953only.
9954Vegard Nossum. BZ 726
9955
9956Enhanced the AcpiGetObjectInfo interface to return the number of required
9957arguments if the object is a control method. Added this call to the
9958debugger
9959so the proper number of default arguments are passed to a method. This
9960prevents a warning when executing methods from AcpiExec.
9961
9962Added a check for an invalid handle in AcpiGetObjectInfo. Return
9963AE_BAD_PARAMETER if input handle is invalid. BZ 474
9964
9965Fixed an extraneous warning from exconfig.c on the 64-bit build.
9966
9967Example Code and Data Size: These are the sizes for the OS-independent
9968acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9969debug version of the code includes the debug output trace mechanism and
9970has a
9971much larger code and data size.
9972
9973  Previous Release:
9974    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
9975    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
9976  Current Release:
9977    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
9978    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
9979
99802) iASL Compiler/Disassembler and Tools:
9981
9982iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
9983resource descriptor names.
9984
9985iASL: Detect invalid ASCII characters in input (windows version). Removed
9986the
9987"-CF" flag from the flex compile, enables correct detection of non-ASCII
9988characters in the input. BZ 441
9989
9990iASL: Eliminate warning when result of LoadTable is not used. Eliminate
9991the
9992"result of operation not used" warning when the DDB handle returned from
9993LoadTable is not used. The warning is not needed. BZ 590
9994
9995AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
9996method
9997to
9998pass address of table to the AML. Added option to disable OpRegion
9999simulation
10000to allow creation of an OpRegion with a real address that was passed to
10001_CFG.
10002All of this allows testing of the Load and Unload operators from
10003AcpiExec.
10004
10005Debugger: update tables command for unloaded tables. Handle unloaded
10006tables
10007and use the standard table header output routine.
10008
10009----------------------------------------
1001009 June 2008. Summary of changes for version 20080609:
10011
100121) ACPI CA Core Subsystem:
10013
10014Implemented a workaround for reversed _PRT entries. A significant number
10015of
10016BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
10017change dynamically detects and repairs this problem. Provides
10018compatibility
10019with MS ACPI. BZ 6859
10020
10021Simplified the internal ACPI hardware interfaces to eliminate the locking
10022flag parameter from Register Read/Write. Added a new external interface,
10023AcpiGetRegisterUnlocked.
10024
10025Fixed a problem where the invocation of a GPE control method could hang.
10026This
10027was a regression introduced in 20080514. The new method argument count
10028validation mechanism can enter an infinite loop when a GPE method is
10029dispatched. Problem fixed by removing the obsolete code that passed GPE
10030block
10031information to the notify handler via the control method parameter
10032pointer.
10033
10034Fixed a problem where the _SST execution status was incorrectly returned
10035to
10036the caller of AcpiEnterSleepStatePrep. This was a regression introduced
10037in
1003820080514. _SST is optional and a NOT_FOUND exception should never be
10039returned. BZ 716
10040
10041Fixed a problem where a deleted object could be accessed from within the
10042AML
10043parser. This was a regression introduced in version 20080123 as a fix for
10044the
10045Unload operator. Lin Ming. BZ 10669
10046
10047Cleaned up the debug operand dump mechanism. Eliminated unnecessary
10048operands
10049and eliminated the use of a negative index in a loop. Operands are now
10050displayed in the correct order, not backwards. This also fixes a
10051regression
10052introduced in 20080514 on 64-bit systems where the elimination of
10053ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
10054715
10055
10056Fixed a possible memory leak in EvPciConfigRegionSetup where the error
10057exit
10058path did not delete a locally allocated structure.
10059
10060Updated definitions for the DMAR and SRAT tables to synchronize with the
10061current specifications. Includes disassembler support.
10062
10063Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
10064loop termination value was used. Loop terminated on iteration early,
10065missing
10066one mutex. Linn Crosetto
10067
10068Example Code and Data Size: These are the sizes for the OS-independent
10069acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10070debug version of the code includes the debug output trace mechanism and
10071has a
10072much larger code and data size.
10073
10074  Previous Release:
10075    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10076    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10077  Current Release:
10078    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10079    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10080
100812) iASL Compiler/Disassembler and Tools:
10082
10083Disassembler: Implemented support for EisaId() within _CID objects. Now
10084disassemble integer _CID objects back to EisaId invocations, including
10085multiple integers within _CID packages. Includes single-step support for
10086debugger also.
10087
10088Disassembler: Added support for DMAR and SRAT table definition changes.
10089
10090----------------------------------------
1009114 May 2008. Summary of changes for version 20080514:
10092
100931) ACPI CA Core Subsystem:
10094
10095Fixed a problem where GPEs were enabled too early during the ACPICA
10096initialization. This could lead to "handler not installed" errors on some
10097machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
10098This
10099ensures that all operation regions and devices throughout the namespace
10100have
10101been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
10102
10103Implemented a change to the enter sleep code. Moved execution of the _GTS
10104method to just before setting sleep enable bit. The execution was moved
10105from
10106AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
10107immediately before the SLP_EN bit is set, as per the ACPI specification.
10108Luming Yu, BZ 1653.
10109
10110Implemented a fix to disable unknown GPEs (2nd version). Now always
10111disable
10112the GPE, even if ACPICA thinks that that it is already disabled. It is
10113possible that the AML or some other code has enabled the GPE unbeknownst
10114to
10115the ACPICA code.
10116
10117Fixed a problem with the Field operator where zero-length fields would
10118return
10119an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
10120ASL
10121field declarations in Field(), BankField(), and IndexField(). BZ 10606.
10122
10123Implemented a fix for the Load operator, now load the table at the
10124namespace
10125root. This reverts a change introduced in version 20071019. The table is
10126now
10127loaded at the namespace root even though this goes against the ACPI
10128specification. This provides compatibility with other ACPI
10129implementations.
10130The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
10131Ming.
10132
10133Fixed a problem where ACPICA would not Load() tables with unusual
10134signatures.
10135Now ignore ACPI table signature for Load() operator. Only "SSDT" is
10136acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
10137Therefore, signature validation is worthless. Apparently MS ACPI accepts
10138such
10139signatures, ACPICA must be compatible. BZ 10454.
10140
10141Fixed a possible negative array index in AcpiUtValidateException. Added
10142NULL
10143fields to the exception string arrays to eliminate a -1 subtraction on
10144the
10145SubStatus field.
10146
10147Updated the debug tracking macros to reduce overall code and data size.
10148Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
10149instead of pointers to static strings. Jan Beulich and Bob Moore.
10150
10151Implemented argument count checking in control method invocation via
10152AcpiEvaluateObject. Now emit an error if too few arguments, warning if
10153too
10154many. This applies only to extern programmatic control method execution,
10155not
10156method-to-method calls within the AML. Lin Ming.
10157
10158Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
10159no
10160longer needed, especially with the removal of 16-bit support. It was
10161replaced
10162mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
10163bit
10164on
1016532/64-bit platforms is required.
10166
10167Added the C const qualifier for appropriate string constants -- mostly
10168MODULE_NAME and printf format strings. Jan Beulich.
10169
10170Example Code and Data Size: These are the sizes for the OS-independent
10171acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10172debug version of the code includes the debug output trace mechanism and
10173has a
10174much larger code and data size.
10175
10176  Previous Release:
10177    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10178    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10179  Current Release:
10180    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10181    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10182
101832) iASL Compiler/Disassembler and Tools:
10184
10185Implemented ACPI table revision ID validation in the disassembler. Zero
10186is
10187always invalid. For DSDTs, the ID controls the interpreter integer width.
101881
10189means 32-bit and this is unusual. 2 or greater is 64-bit.
10190
10191----------------------------------------
1019221 March 2008. Summary of changes for version 20080321:
10193
101941) ACPI CA Core Subsystem:
10195
10196Implemented an additional change to the GPE support in order to suppress
10197spurious or stray GPEs. The AcpiEvDisableGpe function will now
10198permanently
10199disable incoming GPEs that are neither enabled nor disabled -- meaning
10200that
10201the GPE is unknown to the system. This should prevent future interrupt
10202floods
10203from that GPE. BZ 6217 (Zhang Rui)
10204
10205Fixed a problem where NULL package elements were not returned to the
10206AcpiEvaluateObject interface correctly. The element was simply ignored
10207instead of returning a NULL ACPI_OBJECT package element, potentially
10208causing
10209a buffer overflow and/or confusing the caller who expected a fixed number
10210of
10211elements. BZ 10132 (Lin Ming, Bob Moore)
10212
10213Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
10214Dword,
10215Qword), Field, BankField, and IndexField operators when invoked from
10216inside
10217an executing control method. In this case, these operators created
10218namespace
10219nodes that were incorrectly left marked as permanent nodes instead of
10220temporary nodes. This could cause a problem if there is race condition
10221between an exiting control method and a running namespace walk. (Reported
10222by
10223Linn Crosetto)
10224
10225Fixed a problem where the CreateField and CreateXXXField operators would
10226incorrectly allow duplicate names (the name of the field) with no
10227exception
10228generated.
10229
10230Implemented several changes for Notify handling. Added support for new
10231Notify
10232values (ACPI 2.0+) and improved the Notify debug output. Notify on
10233PowerResource objects is no longer allowed, as per the ACPI
10234specification.
10235(Bob Moore, Zhang Rui)
10236
10237All Reference Objects returned via the AcpiEvaluateObject interface are
10238now
10239marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
10240for
10241NULL objects - either NULL package elements or unresolved named
10242references.
10243
10244Fixed a problem where an extraneous debug message was produced for
10245package
10246objects (when debugging enabled). The message "Package List length larger
10247than NumElements count" is now produced in the correct case, and is now
10248an
10249error message rather than a debug message. Added a debug message for the
10250opposite case, where NumElements is larger than the Package List (the
10251package
10252will be padded out with NULL elements as per the ACPI spec.)
10253
10254Implemented several improvements for the output of the ASL "Debug" object
10255to
10256clarify and keep all data for a given object on one output line.
10257
10258Fixed two size calculation issues with the variable-length Start
10259Dependent
10260resource descriptor.
10261
10262Example Code and Data Size: These are the sizes for the OS-independent
10263acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10264debug version of the code includes the debug output trace mechanism and
10265has
10266a much larger code and data size.
10267
10268  Previous Release:
10269    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10270    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10271  Current Release:
10272    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10273    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10274
102752) iASL Compiler/Disassembler and Tools:
10276
10277Fixed a problem with the use of the Switch operator where execution of
10278the
10279containing method by multiple concurrent threads could cause an
10280AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
10281actual Switch opcode, it must be simulated with local named temporary
10282variables and if/else pairs. The solution chosen was to mark any method
10283that
10284uses Switch as Serialized, thus preventing multiple thread entries. BZ
10285469.
10286
10287----------------------------------------
1028813 February 2008. Summary of changes for version 20080213:
10289
102901) ACPI CA Core Subsystem:
10291
10292Implemented another MS compatibility design change for GPE/Notify
10293handling.
10294GPEs are now cleared/enabled asynchronously to allow all pending notifies
10295to
10296complete first. It is expected that the OSL will queue the enable request
10297behind all pending notify requests (may require changes to the local host
10298OSL
10299in AcpiOsExecute). Alexey Starikovskiy.
10300
10301Fixed a problem where buffer and package objects passed as arguments to a
10302control method via the external AcpiEvaluateObject interface could cause
10303an
10304AE_AML_INTERNAL exception depending on the order and type of operators
10305executed by the target control method.
10306
10307Fixed a problem where resource descriptor size optimization could cause a
10308problem when a _CRS resource template is passed to a _SRS method. The
10309_SRS
10310resource template must use the same descriptors (with the same size) as
10311returned from _CRS. This change affects the following resource
10312descriptors:
10313IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
103149487)
10315
10316Fixed a problem where a CopyObject to RegionField, BankField, and
10317IndexField
10318objects did not perform an implicit conversion as it should. These types
10319must
10320retain their initial type permanently as per the ACPI specification.
10321However,
10322a CopyObject to all other object types should not perform an implicit
10323conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
10324
10325Fixed a problem with the AcpiGetDevices interface where the mechanism to
10326match device CIDs did not examine the entire list of available CIDs, but
10327instead aborted on the first non-matching CID. Andrew Patterson.
10328
10329Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
10330was
10331inadvertently changed to return a 16-bit value instead of a 32-bit value,
10332truncating the upper dword of a 64-bit value. This macro is only used to
10333display debug output, so no incorrect calculations were made. Also,
10334reimplemented the macro so that a 64-bit shift is not performed by
10335inefficient compilers.
10336
10337Added missing va_end statements that should correspond with each va_start
10338statement.
10339
10340Example Code and Data Size: These are the sizes for the OS-independent
10341acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10342debug version of the code includes the debug output trace mechanism and
10343has
10344a much larger code and data size.
10345
10346  Previous Release:
10347    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10348    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10349  Current Release:
10350    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10351    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10352
103532) iASL Compiler/Disassembler and Tools:
10354
10355Implemented full disassembler support for the following new ACPI tables:
10356BERT, EINJ, and ERST. Implemented partial disassembler support for the
10357complicated HEST table. These tables support the Windows Hardware Error
10358Architecture (WHEA).
10359
10360----------------------------------------
1036123 January 2008. Summary of changes for version 20080123:
10362
103631) ACPI CA Core Subsystem:
10364
10365Added the 2008 copyright to all module headers and signons. This affects
10366virtually every file in the ACPICA core subsystem, the iASL compiler, and
10367the tools/utilities.
10368
10369Fixed a problem with the SizeOf operator when used with Package and
10370Buffer
10371objects. These objects have deferred execution for some arguments, and
10372the
10373execution is now completed before the SizeOf is executed. This problem
10374caused
10375unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
10376BZ
103779558
10378
10379Implemented an enhancement to the interpreter "slack mode". In the
10380absence
10381of
10382an explicit return or an implicitly returned object from the last
10383executed
10384opcode, a control method will now implicitly return an integer of value 0
10385for
10386Microsoft compatibility. (Lin Ming) BZ 392
10387
10388Fixed a problem with the Load operator where an exception was not
10389returned
10390in
10391the case where the table is already loaded. (Lin Ming) BZ 463
10392
10393Implemented support for the use of DDBHandles as an Indexed Reference, as
10394per
10395the ACPI spec. (Lin Ming) BZ 486
10396
10397Implemented support for UserTerm (Method invocation) for the Unload
10398operator
10399as per the ACPI spec. (Lin Ming) BZ 580
10400
10401Fixed a problem with the LoadTable operator where the OemId and
10402OemTableId
10403input strings could cause unexpected failures if they were shorter than
10404the
10405maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
10406
10407Implemented support for UserTerm (Method invocation) for the Unload
10408operator
10409as per the ACPI spec. (Lin Ming) BZ 580
10410
10411Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
10412HEST,
10413IBFT, UEFI, WDAT. Disassembler support is forthcoming.
10414
10415Example Code and Data Size: These are the sizes for the OS-independent
10416acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10417debug version of the code includes the debug output trace mechanism and
10418has
10419a much larger code and data size.
10420
10421  Previous Release:
10422    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10423    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10424  Current Release:
10425    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10426    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10427
104282) iASL Compiler/Disassembler and Tools:
10429
10430Implemented support in the disassembler for checksum validation on
10431incoming
10432binary DSDTs and SSDTs. If incorrect, a message is displayed within the
10433table
10434header dump at the start of the disassembly.
10435
10436Implemented additional debugging information in the namespace listing
10437file
10438created during compilation. In addition to the namespace hierarchy, the
10439full
10440pathname to each namespace object is displayed.
10441
10442Fixed a problem with the disassembler where invalid ACPI tables could
10443cause
10444faults or infinite loops.
10445
10446Fixed an unexpected parse error when using the optional "parameter types"
10447list in a control method declaration. (Lin Ming) BZ 397
10448
10449Fixed a problem where two External declarations with the same name did
10450not
10451cause an error (Lin Ming) BZ 509
10452
10453Implemented support for full TermArgs (adding Argx, Localx and method
10454invocation) for the ParameterData parameter to the LoadTable operator.
10455(Lin
10456Ming) BZ 583,587
10457
10458----------------------------------------
1045919 December 2007. Summary of changes for version 20071219:
10460
104611) ACPI CA Core Subsystem:
10462
10463Implemented full support for deferred execution for the TermArg string
10464arguments for DataTableRegion. This enables forward references and full
10465operand resolution for the three string arguments. Similar to
10466OperationRegion
10467deferred argument execution.) Lin Ming. BZ 430
10468
10469Implemented full argument resolution support for the BankValue argument
10470to
10471BankField. Previously, only constants were supported, now any TermArg may
10472be
10473used. Lin Ming BZ 387, 393
10474
10475Fixed a problem with AcpiGetDevices where the search of a branch of the
10476device tree could be terminated prematurely. In accordance with the ACPI
10477specification, the search down the current branch is terminated if a
10478device
10479is both not present and not functional (instead of just not present.)
10480Yakui
10481Zhao.
10482
10483Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
10484if
10485the underlying AML code changed the GPE enable registers. Now, any
10486unknown
10487incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
10488disabled
10489instead of simply ignored. Rui Zhang.
10490
10491Fixed a problem with Index Fields where the Index register was
10492incorrectly
10493limited to a maximum of 32 bits. Now any size may be used.
10494
10495Fixed a couple memory leaks associated with "implicit return" objects
10496when
10497the AML Interpreter slack mode is enabled. Lin Ming BZ 349
10498
10499Example Code and Data Size: These are the sizes for the OS-independent
10500acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10501debug version of the code includes the debug output trace mechanism and
10502has
10503a much larger code and data size.
10504
10505  Previous Release:
10506    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10507    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10508  Current Release:
10509    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10510    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10511
10512----------------------------------------
1051314 November 2007. Summary of changes for version 20071114:
10514
105151) ACPI CA Core Subsystem:
10516
10517Implemented event counters for each of the Fixed Events, the ACPI SCI
10518(interrupt) itself, and control methods executed. Named
10519AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
10520These
10521should be useful for debugging and statistics.
10522
10523Implemented a new external interface, AcpiGetStatistics, to retrieve the
10524contents of the various event counters. Returns the current values for
10525AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
10526AcpiMethodCount. The interface can be expanded in the future if new
10527counters
10528are added. Device drivers should use this interface rather than access
10529the
10530counters directly.
10531
10532Fixed a problem with the FromBCD and ToBCD operators. With some
10533compilers,
10534the ShortDivide function worked incorrectly, causing problems with the
10535BCD
10536functions with large input values. A truncation from 64-bit to 32-bit
10537inadvertently occurred. Internal BZ 435. Lin Ming
10538
10539Fixed a problem with Index references passed as method arguments.
10540References
10541passed as arguments to control methods were dereferenced immediately
10542(before
10543control was passed to the called method). The references are now
10544correctly
10545passed directly to the called method. BZ 5389. Lin Ming
10546
10547Fixed a problem with CopyObject used in conjunction with the Index
10548operator.
10549The reference was incorrectly dereferenced before the copy. The reference
10550is
10551now correctly copied. BZ 5391. Lin Ming
10552
10553Fixed a problem with Control Method references within Package objects.
10554These
10555references are now correctly generated. This completes the package
10556construction overhaul that began in version 20071019.
10557
10558Example Code and Data Size: These are the sizes for the OS-independent
10559acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10560debug version of the code includes the debug output trace mechanism and
10561has
10562a much larger code and data size.
10563
10564  Previous Release:
10565    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10566    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10567  Current Release:
10568    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10569    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10570
10571
105722) iASL Compiler/Disassembler and Tools:
10573
10574The AcpiExec utility now installs handlers for all of the predefined
10575Operation Region types. New types supported are: PCI_Config, CMOS, and
10576PCIBARTarget.
10577
10578Fixed a problem with the 64-bit version of AcpiExec where the extended
10579(64-
10580bit) address fields for the DSDT and FACS within the FADT were not being
10581used, causing truncation of the upper 32-bits of these addresses. Lin
10582Ming
10583and Bob Moore
10584
10585----------------------------------------
1058619 October 2007. Summary of changes for version 20071019:
10587
105881) ACPI CA Core Subsystem:
10589
10590Fixed a problem with the Alias operator when the target of the alias is a
10591named ASL operator that opens a new scope -- Scope, Device,
10592PowerResource,
10593Processor, and ThermalZone. In these cases, any children of the original
10594operator could not be accessed via the alias, potentially causing
10595unexpected
10596AE_NOT_FOUND exceptions. (BZ 9067)
10597
10598Fixed a problem with the Package operator where all named references were
10599created as object references and left otherwise unresolved. According to
10600the
10601ACPI specification, a Package can only contain Data Objects or references
10602to
10603control methods. The implication is that named references to Data Objects
10604(Integer, Buffer, String, Package, BufferField, Field) should be resolved
10605immediately upon package creation. This is the approach taken with this
10606change. References to all other named objects (Methods, Devices, Scopes,
10607etc.) are all now properly created as reference objects. (BZ 5328)
10608
10609Reverted a change to Notify handling that was introduced in version
1061020070508. This version changed the Notify handling from asynchronous to
10611fully synchronous (Device driver Notify handling with respect to the
10612Notify
10613ASL operator). It was found that this change caused more problems than it
10614solved and was removed by most users.
10615
10616Fixed a problem with the Increment and Decrement operators where the type
10617of
10618the target object could be unexpectedly and incorrectly changed. (BZ 353)
10619Lin Ming.
10620
10621Fixed a problem with the Load and LoadTable operators where the table
10622location within the namespace was ignored. Instead, the table was always
10623loaded into the root or current scope. Lin Ming.
10624
10625Fixed a problem with the Load operator when loading a table from a buffer
10626object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
10627
10628Fixed a problem with the Debug object where a store of a DdbHandle
10629reference
10630object to the Debug object could cause a fault.
10631
10632Added a table checksum verification for the Load operator, in the case
10633where
10634the load is from a buffer. (BZ 578).
10635
10636Implemented additional parameter validation for the LoadTable operator.
10637The
10638length of the input strings SignatureString, OemIdString, and OemTableId
10639are
10640now checked for maximum lengths. (BZ 582) Lin Ming.
10641
10642Example Code and Data Size: These are the sizes for the OS-independent
10643acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10644debug version of the code includes the debug output trace mechanism and
10645has
10646a much larger code and data size.
10647
10648  Previous Release:
10649    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10650    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10651  Current Release:
10652    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10653    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10654
10655
106562) iASL Compiler/Disassembler:
10657
10658Fixed a problem where if a single file was specified and the file did not
10659exist, no error message was emitted. (Introduced with wildcard support in
10660version 20070917.)
10661
10662----------------------------------------
1066319 September 2007. Summary of changes for version 20070919:
10664
106651) ACPI CA Core Subsystem:
10666
10667Designed and implemented new external interfaces to install and remove
10668handlers for ACPI table-related events. Current events that are defined
10669are
10670LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
10671they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
10672AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
10673
10674Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
10675(acpi_serialized option on Linux) could cause some systems to hang during
10676initialization. (Bob Moore) BZ 8171
10677
10678Fixed a problem where objects of certain types (Device, ThermalZone,
10679Processor, PowerResource) can be not found if they are declared and
10680referenced from within the same control method (Lin Ming) BZ 341
10681
10682Example Code and Data Size: These are the sizes for the OS-independent
10683acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10684debug version of the code includes the debug output trace mechanism and
10685has
10686a much larger code and data size.
10687
10688  Previous Release:
10689    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
10690    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
10691  Current Release:
10692    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10693    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10694
10695
106962) iASL Compiler/Disassembler:
10697
10698Implemented support to allow multiple files to be compiled/disassembled
10699in
10700a
10701single invocation. This includes command line wildcard support for both
10702the
10703Windows and Unix versions of the compiler. This feature simplifies the
10704disassembly and compilation of multiple ACPI tables in a single
10705directory.
10706
10707----------------------------------------
1070808 May 2007. Summary of changes for version 20070508:
10709
107101) ACPI CA Core Subsystem:
10711
10712Implemented a Microsoft compatibility design change for the handling of
10713the
10714Notify AML operator. Previously, notify handlers were dispatched and
10715executed completely asynchronously in a deferred thread. The new design
10716still executes the notify handlers in a different thread, but the
10717original
10718thread that executed the Notify() now waits at a synchronization point
10719for
10720the notify handler to complete. Some machines depend on a synchronous
10721Notify
10722operator in order to operate correctly.
10723
10724Implemented support to allow Package objects to be passed as method
10725arguments to the external AcpiEvaluateObject interface. Previously, this
10726would return the AE_NOT_IMPLEMENTED exception. This feature had not been
10727implemented since there were no reserved control methods that required it
10728until recently.
10729
10730Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
10731that
10732contained invalid non-zero values in reserved fields could cause later
10733failures because these fields have meaning in later revisions of the
10734FADT.
10735For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
10736fields
10737are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
10738
10739Fixed a problem where the Global Lock handle was not properly updated if
10740a
10741thread that acquired the Global Lock via executing AML code then
10742attempted
10743to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
10744Joe
10745Liu.
10746
10747Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
10748could be corrupted if the interrupt being removed was at the head of the
10749list. Reported by Linn Crosetto.
10750
10751Example Code and Data Size: These are the sizes for the OS-independent
10752acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10753debug version of the code includes the debug output trace mechanism and
10754has
10755a much larger code and data size.
10756
10757  Previous Release:
10758    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10759    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
10760  Current Release:
10761    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
10762    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
10763
10764----------------------------------------
1076520 March 2007. Summary of changes for version 20070320:
10766
107671) ACPI CA Core Subsystem:
10768
10769Implemented a change to the order of interpretation and evaluation of AML
10770operand objects within the AML interpreter. The interpreter now evaluates
10771operands in the order that they appear in the AML stream (and the
10772corresponding ASL code), instead of in the reverse order (after the
10773entire
10774operand list has been parsed). The previous behavior caused several
10775subtle
10776incompatibilities with the Microsoft AML interpreter as well as being
10777somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
10778
10779Implemented a change to the ACPI Global Lock support. All interfaces to
10780the
10781global lock now allow the same thread to acquire the lock multiple times.
10782This affects the AcpiAcquireGlobalLock external interface to the global
10783lock
10784as well as the internal use of the global lock to support AML fields -- a
10785control method that is holding the global lock can now simultaneously
10786access
10787AML fields that require global lock protection. Previously, in both
10788cases,
10789this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
10790to
10791AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
10792Controller. There is no change to the behavior of the AML Acquire
10793operator,
10794as this can already be used to acquire a mutex multiple times by the same
10795thread. BZ 8066. With assistance from Alexey Starikovskiy.
10796
10797Fixed a problem where invalid objects could be referenced in the AML
10798Interpreter after error conditions. During operand evaluation, ensure
10799that
10800the internal "Return Object" field is cleared on error and only valid
10801pointers are stored there. Caused occasional access to deleted objects
10802that
10803resulted in "large reference count" warning messages. Valery Podrezov.
10804
10805Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
10806on
10807deeply nested control method invocations. BZ 7873, local BZ 487. Valery
10808Podrezov.
10809
10810Fixed an internal problem with the handling of result objects on the
10811interpreter result stack. BZ 7872. Valery Podrezov.
10812
10813Removed obsolete code that handled the case where AML_NAME_OP is the
10814target
10815of a reference (Reference.Opcode). This code was no longer necessary. BZ
108167874. Valery Podrezov.
10817
10818Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
10819was
10820a
10821remnant from the previously discontinued 16-bit support.
10822
10823Example Code and Data Size: These are the sizes for the OS-independent
10824acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10825debug version of the code includes the debug output trace mechanism and
10826has
10827a much larger code and data size.
10828
10829  Previous Release:
10830    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10831    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10832  Current Release:
10833    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10834    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
10835
10836----------------------------------------
1083726 January 2007. Summary of changes for version 20070126:
10838
108391) ACPI CA Core Subsystem:
10840
10841Added the 2007 copyright to all module headers and signons. This affects
10842virtually every file in the ACPICA core subsystem, the iASL compiler, and
10843the utilities.
10844
10845Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
10846during a table load. A bad pointer was passed in the case where the DSDT
10847is
10848overridden, causing a fault in this case.
10849
10850Example Code and Data Size: These are the sizes for the OS-independent
10851acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10852debug version of the code includes the debug output trace mechanism and
10853has
10854a much larger code and data size.
10855
10856  Previous Release:
10857    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10858    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10859  Current Release:
10860    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10861    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10862
10863----------------------------------------
1086415 December 2006. Summary of changes for version 20061215:
10865
108661) ACPI CA Core Subsystem:
10867
10868Support for 16-bit ACPICA has been completely removed since it is no
10869longer
10870necessary and it clutters the code. All 16-bit macros, types, and
10871conditional compiles have been removed, cleaning up and simplifying the
10872code
10873across the entire subsystem. DOS support is no longer needed since the
10874bootable Linux firmware kit is now available.
10875
10876The handler for the Global Lock is now removed during AcpiTerminate to
10877enable a clean subsystem restart, via the implementation of the
10878AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
10879HP)
10880
10881Implemented enhancements to the multithreading support within the
10882debugger
10883to enable improved multithreading debugging and evaluation of the
10884subsystem.
10885(Valery Podrezov)
10886
10887Debugger: Enhanced the Statistics/Memory command to emit the total
10888(maximum)
10889memory used during the execution, as well as the maximum memory consumed
10890by
10891each of the various object types. (Valery Podrezov)
10892
10893Example Code and Data Size: These are the sizes for the OS-independent
10894acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10895debug version of the code includes the debug output trace mechanism and
10896has
10897a much larger code and data size.
10898
10899  Previous Release:
10900    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
10901    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
10902  Current Release:
10903    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10904    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10905
10906
109072) iASL Compiler/Disassembler and Tools:
10908
10909AcpiExec: Implemented a new option (-m) to display full memory use
10910statistics upon subsystem/program termination. (Valery Podrezov)
10911
10912----------------------------------------
1091309 November 2006. Summary of changes for version 20061109:
10914
109151) ACPI CA Core Subsystem:
10916
10917Optimized the Load ASL operator in the case where the source operand is
10918an
10919operation region. Simply map the operation region memory, instead of
10920performing a bytewise read. (Region must be of type SystemMemory, see
10921below.)
10922
10923Fixed the Load ASL operator for the case where the source operand is a
10924region field. A buffer object is also allowed as the source operand. BZ
10925480
10926
10927Fixed a problem where the Load ASL operator allowed the source operand to
10928be
10929an operation region of any type. It is now restricted to regions of type
10930SystemMemory, as per the ACPI specification. BZ 481
10931
10932Additional cleanup and optimizations for the new Table Manager code.
10933
10934AcpiEnable will now fail if all of the required ACPI tables are not
10935loaded
10936(FADT, FACS, DSDT). BZ 477
10937
10938Added #pragma pack(8/4) to acobject.h to ensure that the structures in
10939this
10940header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
10941manually optimized to be aligned and will not work if it is byte-packed.
10942
10943Example Code and Data Size: These are the sizes for the OS-independent
10944acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10945debug version of the code includes the debug output trace mechanism and
10946has
10947a much larger code and data size.
10948
10949  Previous Release:
10950    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
10951    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
10952  Current Release:
10953    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
10954    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
10955
10956
109572) iASL Compiler/Disassembler and Tools:
10958
10959Fixed a problem where the presence of the _OSI predefined control method
10960within complex expressions could cause an internal compiler error.
10961
10962AcpiExec: Implemented full region support for multiple address spaces.
10963SpaceId is now part of the REGION object. BZ 429
10964
10965----------------------------------------
1096611 October 2006. Summary of changes for version 20061011:
10967
109681) ACPI CA Core Subsystem:
10969
10970Completed an AML interpreter performance enhancement for control method
10971execution. Previously a 2-pass parse/execution, control methods are now
10972completely parsed and executed in a single pass. This improves overall
10973interpreter performance by ~25%, reduces code size, and reduces CPU stack
10974use. (Valery Podrezov + interpreter changes in version 20051202 that
10975eliminated namespace loading during the pass one parse.)
10976
10977Implemented _CID support for PCI Root Bridge detection. If the _HID does
10978not
10979match the predefined PCI Root Bridge IDs, the _CID list (if present) is
10980now
10981obtained and also checked for an ID match.
10982
10983Implemented additional support for the PCI _ADR execution: upsearch until
10984a
10985device scope is found before executing _ADR. This allows PCI_Config
10986operation regions to be declared locally within control methods
10987underneath
10988PCI device objects.
10989
10990Fixed a problem with a possible race condition between threads executing
10991AcpiWalkNamespace and the AML interpreter. This condition was removed by
10992modifying AcpiWalkNamespace to (by default) ignore all temporary
10993namespace
10994entries created during any concurrent control method execution. An
10995additional namespace race condition is known to exist between
10996AcpiWalkNamespace and the Load/Unload ASL operators and is still under
10997investigation.
10998
10999Restructured the AML ParseLoop function, breaking it into several
11000subfunctions in order to reduce CPU stack use and improve
11001maintainability.
11002(Mikhail Kouzmich)
11003
11004AcpiGetHandle: Fix for parameter validation to detect invalid
11005combinations
11006of prefix handle and pathname. BZ 478
11007
11008Example Code and Data Size: These are the sizes for the OS-independent
11009acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11010debug version of the code includes the debug output trace mechanism and
11011has
11012a much larger code and data size.
11013
11014  Previous Release:
11015    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11016    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11017  Current Release:
11018    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
11019    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11020
110212) iASL Compiler/Disassembler and Tools:
11022
11023Ported the -g option (get local ACPI tables) to the new ACPICA Table
11024Manager
11025to restore original behavior.
11026
11027----------------------------------------
1102827 September 2006. Summary of changes for version 20060927:
11029
110301) ACPI CA Core Subsystem:
11031
11032Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
11033These functions now use a spinlock for mutual exclusion and the interrupt
11034level indication flag is not needed.
11035
11036Fixed a problem with the Global Lock where the lock could appear to be
11037obtained before it is actually obtained. The global lock semaphore was
11038inadvertently created with one unit instead of zero units. (BZ 464)
11039Fiodor
11040Suietov.
11041
11042Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
11043during
11044a read from a buffer or region field. (BZ 458) Fiodor Suietov.
11045
11046Example Code and Data Size: These are the sizes for the OS-independent
11047acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11048debug version of the code includes the debug output trace mechanism and
11049has
11050a much larger code and data size.
11051
11052  Previous Release:
11053    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11054    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11055  Current Release:
11056    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11057    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11058
11059
110602) iASL Compiler/Disassembler and Tools:
11061
11062Fixed a compilation problem with the pre-defined Resource Descriptor
11063field
11064names where an "object does not exist" error could be incorrectly
11065generated
11066if the parent ResourceTemplate pathname places the template within a
11067different namespace scope than the current scope. (BZ 7212)
11068
11069Fixed a problem where the compiler could hang after syntax errors
11070detected
11071in an ElseIf construct. (BZ 453)
11072
11073Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
11074operator. An incorrect output filename was produced when this parameter
11075was
11076a null string (""). Now, the original input filename is used as the AML
11077output filename, with an ".aml" extension.
11078
11079Implemented a generic batch command mode for the AcpiExec utility
11080(execute
11081any AML debugger command) (Valery Podrezov).
11082
11083----------------------------------------
1108412 September 2006. Summary of changes for version 20060912:
11085
110861) ACPI CA Core Subsystem:
11087
11088Enhanced the implementation of the "serialized mode" of the interpreter
11089(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
11090specified, instead of creating a serialization semaphore per control
11091method,
11092the interpreter lock is simply no longer released before a blocking
11093operation during control method execution. This effectively makes the AML
11094Interpreter single-threaded. The overhead of a semaphore per-method is
11095eliminated.
11096
11097Fixed a regression where an error was no longer emitted if a control
11098method
11099attempts to create 2 objects of the same name. This once again returns
11100AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
11101that
11102will dynamically serialize the control method to possible prevent future
11103errors. (BZ 440)
11104
11105Integrated a fix for a problem with PCI Express HID detection in the PCI
11106Config Space setup procedure. (BZ 7145)
11107
11108Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
11109AcpiHwInitialize function - the FADT registers are now validated when the
11110table is loaded.
11111
11112Added two new warnings during FADT verification - 1) if the FADT is
11113larger
11114than the largest known FADT version, and 2) if there is a mismatch
11115between
11116a
1111732-bit block address and the 64-bit X counterpart (when both are non-
11118zero.)
11119
11120Example Code and Data Size: These are the sizes for the OS-independent
11121acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11122debug version of the code includes the debug output trace mechanism and
11123has
11124a much larger code and data size.
11125
11126  Previous Release:
11127    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11128    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11129  Current Release:
11130    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11131    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11132
11133
111342) iASL Compiler/Disassembler and Tools:
11135
11136Fixed a problem with the implementation of the Switch() operator where
11137the
11138temporary variable was declared too close to the actual Switch, instead
11139of
11140at method level. This could cause a problem if the Switch() operator is
11141within a while loop, causing an error on the second iteration. (BZ 460)
11142
11143Disassembler - fix for error emitted for unknown type for target of scope
11144operator. Now, ignore it and continue.
11145
11146Disassembly of an FADT now verifies the input FADT and reports any errors
11147found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
11148
11149Disassembly of raw data buffers with byte initialization data now
11150prefixes
11151each output line with the current buffer offset.
11152
11153Disassembly of ASF! table now includes all variable-length data fields at
11154the end of some of the subtables.
11155
11156The disassembler now emits a comment if a buffer appears to be a
11157ResourceTemplate, but cannot be disassembled as such because the EndTag
11158does
11159not appear at the very end of the buffer.
11160
11161AcpiExec - Added the "-t" command line option to enable the serialized
11162mode
11163of the AML interpreter.
11164
11165----------------------------------------
1116631 August 2006. Summary of changes for version 20060831:
11167
111681) ACPI CA Core Subsystem:
11169
11170Miscellaneous fixes for the Table Manager:
11171- Correctly initialize internal common FADT for all 64-bit "X" fields
11172- Fixed a couple table mapping issues during table load
11173- Fixed a couple alignment issues for IA64
11174- Initialize input array to zero in AcpiInitializeTables
11175- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
11176AcpiGetTableByIndex
11177
11178Change for GPE support: when a "wake" GPE is received, all wake GPEs are
11179now
11180immediately disabled to prevent the waking GPE from firing again and to
11181prevent other wake GPEs from interrupting the wake process.
11182
11183Added the AcpiGpeCount global that tracks the number of processed GPEs,
11184to
11185be used for debugging systems with a large number of ACPI interrupts.
11186
11187Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
11188both the ACPICA headers and the disassembler.
11189
11190Example Code and Data Size: These are the sizes for the OS-independent
11191acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11192debug version of the code includes the debug output trace mechanism and
11193has
11194a much larger code and data size.
11195
11196  Previous Release:
11197    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11198    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11199  Current Release:
11200    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11201    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11202
11203
112042) iASL Compiler/Disassembler and Tools:
11205
11206Disassembler support for the DMAR ACPI table.
11207
11208----------------------------------------
1120923 August 2006. Summary of changes for version 20060823:
11210
112111) ACPI CA Core Subsystem:
11212
11213The Table Manager component has been completely redesigned and
11214reimplemented. The new design is much simpler, and reduces the overall
11215code
11216and data size of the kernel-resident ACPICA by approximately 5%. Also, it
11217is
11218now possible to obtain the ACPI tables very early during kernel
11219initialization, even before dynamic memory management is initialized.
11220(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
11221
11222Obsolete ACPICA interfaces:
11223
11224- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
11225init
11226time).
11227- AcpiLoadTable: Not needed.
11228- AcpiUnloadTable: Not needed.
11229
11230New ACPICA interfaces:
11231
11232- AcpiInitializeTables: Must be called before the table manager can be
11233used.
11234- AcpiReallocateRootTable: Used to transfer the root table to dynamically
11235allocated memory after it becomes available.
11236- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
11237tables
11238in the RSDT/XSDT.
11239
11240Other ACPICA changes:
11241
11242- AcpiGetTableHeader returns the actual mapped table header, not a copy.
11243Use
11244AcpiOsUnmapMemory to free this mapping.
11245- AcpiGetTable returns the actual mapped table. The mapping is managed
11246internally and must not be deleted by the caller. Use of this interface
11247causes no additional dynamic memory allocation.
11248- AcpiFindRootPointer: Support for physical addressing has been
11249eliminated,
11250it appeared to be unused.
11251- The interface to AcpiOsMapMemory has changed to be consistent with the
11252other allocation interfaces.
11253- The interface to AcpiOsGetRootPointer has changed to eliminate
11254unnecessary
11255parameters.
11256- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
1125764-
11258bit platforms. Was previously 64 bits on all platforms.
11259- The interface to the ACPI Global Lock acquire/release macros have
11260changed
11261slightly since ACPICA no longer keeps a local copy of the FACS with a
11262constructed pointer to the actual global lock.
11263
11264Porting to the new table manager:
11265
11266- AcpiInitializeTables: Must be called once, and can be called anytime
11267during the OS initialization process. It allows the host to specify an
11268area
11269of memory to be used to store the internal version of the RSDT/XSDT (root
11270table). This allows the host to access ACPI tables before memory
11271management
11272is initialized and running.
11273- AcpiReallocateRootTable: Can be called after memory management is
11274running
11275to copy the root table to a dynamically allocated array, freeing up the
11276scratch memory specified in the call to AcpiInitializeTables.
11277- AcpiSubsystemInitialize: This existing interface is independent of the
11278Table Manager, and does not have to be called before the Table Manager
11279can
11280be used, it only must be called before the rest of ACPICA can be used.
11281- ACPI Tables: Some changes have been made to the names and structure of
11282the
11283actbl.h and actbl1.h header files and may require changes to existing
11284code.
11285For example, bitfields have been completely removed because of their lack
11286of
11287portability across C compilers.
11288- Update interfaces to the Global Lock acquire/release macros if local
11289versions are used. (see acwin.h)
11290
11291Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
11292
11293New files: tbfind.c
11294
11295Example Code and Data Size: These are the sizes for the OS-independent
11296acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11297debug version of the code includes the debug output trace mechanism and
11298has
11299a much larger code and data size.
11300
11301  Previous Release:
11302    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11303    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11304  Current Release:
11305    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11306    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11307
11308
113092) iASL Compiler/Disassembler and Tools:
11310
11311No changes for this release.
11312
11313----------------------------------------
1131421 July 2006. Summary of changes for version 20060721:
11315
113161) ACPI CA Core Subsystem:
11317
11318The full source code for the ASL test suite used to validate the iASL
11319compiler and the ACPICA core subsystem is being released with the ACPICA
11320source for the first time. The source is contained in a separate package
11321and
11322consists of over 1100 files that exercise all ASL/AML operators. The
11323package
11324should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
11325Fiodor
11326Suietov)
11327
11328Completed a new design and implementation for support of the ACPI Global
11329Lock. On the OS side, the global lock is now treated as a standard AML
11330mutex. Previously, multiple OS threads could "acquire" the global lock
11331simultaneously. However, this could cause the BIOS to be starved out of
11332the
11333lock - especially in cases such as the Embedded Controller driver where
11334there is a tight coupling between the OS and the BIOS.
11335
11336Implemented an optimization for the ACPI Global Lock interrupt mechanism.
11337The Global Lock interrupt handler no longer queues the execution of a
11338separate thread to signal the global lock semaphore. Instead, the
11339semaphore
11340is signaled directly from the interrupt handler.
11341
11342Implemented support within the AML interpreter for package objects that
11343contain a larger AML length (package list length) than the package
11344element
11345count. In this case, the length of the package is truncated to match the
11346package element count. Some BIOS code apparently modifies the package
11347length
11348on the fly, and this change supports this behavior. Provides
11349compatibility
11350with the MS AML interpreter. (With assistance from Fiodor Suietov)
11351
11352Implemented a temporary fix for the BankValue parameter of a Bank Field
11353to
11354support all constant values, now including the Zero and One opcodes.
11355Evaluation of this parameter must eventually be converted to a full
11356TermArg
11357evaluation. A not-implemented error is now returned (temporarily) for
11358non-
11359constant values for this parameter.
11360
11361Fixed problem reports (Fiodor Suietov) integrated:
11362- Fix for premature object deletion after CopyObject on Operation Region
11363(BZ
11364350)
11365
11366Example Code and Data Size: These are the sizes for the OS-independent
11367acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11368debug version of the code includes the debug output trace mechanism and
11369has
11370a much larger code and data size.
11371
11372  Previous Release:
11373    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
11374    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
11375  Current Release:
11376    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11377    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11378
11379
113802) iASL Compiler/Disassembler and Tools:
11381
11382No changes for this release.
11383
11384----------------------------------------
1138507 July 2006. Summary of changes for version 20060707:
11386
113871) ACPI CA Core Subsystem:
11388
11389Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
11390that do not allow the initialization of address pointers within packed
11391structures - even though the hardware itself may support misaligned
11392transfers. Some of the debug data structures are packed by default to
11393minimize size.
11394
11395Added an error message for the case where AcpiOsGetThreadId() returns
11396zero.
11397A non-zero value is required by the core ACPICA code to ensure the proper
11398operation of AML mutexes and recursive control methods.
11399
11400The DSDT is now the only ACPI table that determines whether the AML
11401interpreter is in 32-bit or 64-bit mode. Not really a functional change,
11402but
11403the hooks for per-table 32/64 switching have been removed from the code.
11404A
11405clarification to the ACPI specification is forthcoming in ACPI 3.0B.
11406
11407Fixed a possible leak of an OwnerID in the error path of
11408AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
11409deletion to a single place in AcpiTbUninstallTable to correct possible
11410leaks
11411when using the AcpiTbDeleteTablesByType interface (with assistance from
11412Lance Ortiz.)
11413
11414Fixed a problem with Serialized control methods where the semaphore
11415associated with the method could be over-signaled after multiple method
11416invocations.
11417
11418Fixed two issues with the locking of the internal namespace data
11419structure.
11420Both the Unload() operator and AcpiUnloadTable interface now lock the
11421namespace during the namespace deletion associated with the table unload
11422(with assistance from Linn Crosetto.)
11423
11424Fixed problem reports (Valery Podrezov) integrated:
11425- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
11426
11427Fixed problem reports (Fiodor Suietov) integrated:
11428- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
11429- On Address Space handler deletion, needless deactivation call (BZ 374)
11430- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
11431375)
11432- Possible memory leak, Notify sub-objects of Processor, Power,
11433ThermalZone
11434(BZ 376)
11435- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
11436- Minimum Length of RSDT should be validated (BZ 379)
11437- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
11438Handler (BZ (380)
11439- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
11440loaded
11441(BZ 381)
11442
11443Example Code and Data Size: These are the sizes for the OS-independent
11444acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11445debug version of the code includes the debug output trace mechanism and
11446has
11447a much larger code and data size.
11448
11449  Previous Release:
11450    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11451    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11452  Current Release:
11453    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11454    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11455
11456
114572) iASL Compiler/Disassembler and Tools:
11458
11459Fixed problem reports:
11460Compiler segfault when ASL contains a long (>1024) String declaration (BZ
11461436)
11462
11463----------------------------------------
1146423 June 2006. Summary of changes for version 20060623:
11465
114661) ACPI CA Core Subsystem:
11467
11468Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
11469allows the type to be customized to the host OS for improved efficiency
11470(since a spinlock is usually a very small object.)
11471
11472Implemented support for "ignored" bits in the ACPI registers. According
11473to
11474the ACPI specification, these bits should be preserved when writing the
11475registers via a read/modify/write cycle. There are 3 bits preserved in
11476this
11477manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
11478
11479Implemented the initial deployment of new OSL mutex interfaces. Since
11480some
11481host operating systems have separate mutex and semaphore objects, this
11482feature was requested. The base code now uses mutexes (and the new mutex
11483interfaces) wherever a binary semaphore was used previously. However, for
11484the current release, the mutex interfaces are defined as macros to map
11485them
11486to the existing semaphore interfaces. Therefore, no OSL changes are
11487required
11488at this time. (See acpiosxf.h)
11489
11490Fixed several problems with the support for the control method SyncLevel
11491parameter. The SyncLevel now works according to the ACPI specification
11492and
11493in concert with the Mutex SyncLevel parameter, since the current
11494SyncLevel
11495is a property of the executing thread. Mutual exclusion for control
11496methods
11497is now implemented with a mutex instead of a semaphore.
11498
11499Fixed three instances of the use of the C shift operator in the bitfield
11500support code (exfldio.c) to avoid the use of a shift value larger than
11501the
11502target data width. The behavior of C compilers is undefined in this case
11503and
11504can cause unpredictable results, and therefore the case must be detected
11505and
11506avoided. (Fiodor Suietov)
11507
11508Added an info message whenever an SSDT or OEM table is loaded dynamically
11509via the Load() or LoadTable() ASL operators. This should improve
11510debugging
11511capability since it will show exactly what tables have been loaded
11512(beyond
11513the tables present in the RSDT/XSDT.)
11514
11515Example Code and Data Size: These are the sizes for the OS-independent
11516acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11517debug version of the code includes the debug output trace mechanism and
11518has
11519a much larger code and data size.
11520
11521  Previous Release:
11522    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11523    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11524  Current Release:
11525    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11526    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11527
11528
115292) iASL Compiler/Disassembler and Tools:
11530
11531No changes for this release.
11532
11533----------------------------------------
1153408 June 2006. Summary of changes for version 20060608:
11535
115361) ACPI CA Core Subsystem:
11537
11538Converted the locking mutex used for the ACPI hardware to a spinlock.
11539This
11540change should eliminate all problems caused by attempting to acquire a
11541semaphore at interrupt level, and it means that all ACPICA external
11542interfaces that directly access the ACPI hardware can be safely called
11543from
11544interrupt level. OSL code that implements the semaphore interfaces should
11545be
11546able to eliminate any workarounds for being called at interrupt level.
11547
11548Fixed a regression introduced in 20060526 where the ACPI device
11549initialization could be prematurely aborted with an AE_NOT_FOUND if a
11550device
11551did not have an optional _INI method.
11552
11553Fixed an IndexField issue where a write to the Data Register should be
11554limited in size to the AccessSize (width) of the IndexField itself. (BZ
11555433,
11556Fiodor Suietov)
11557
11558Fixed problem reports (Valery Podrezov) integrated:
11559- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
11560
11561Fixed problem reports (Fiodor Suietov) integrated:
11562- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
11563
11564Removed four global mutexes that were obsolete and were no longer being
11565used.
11566
11567Example Code and Data Size: These are the sizes for the OS-independent
11568acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11569debug version of the code includes the debug output trace mechanism and
11570has
11571a much larger code and data size.
11572
11573  Previous Release:
11574    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11575    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11576  Current Release:
11577    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11578    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11579
11580
115812) iASL Compiler/Disassembler and Tools:
11582
11583Fixed a fault when using -g option (get tables from registry) on Windows
11584machines.
11585
11586Fixed problem reports integrated:
11587- Generate error if CreateField NumBits parameter is zero. (BZ 405)
11588- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
11589Suietov)
11590- Global table revision override (-r) is ignored (BZ 413)
11591
11592----------------------------------------
1159326 May 2006. Summary of changes for version 20060526:
11594
115951) ACPI CA Core Subsystem:
11596
11597Restructured, flattened, and simplified the internal interfaces for
11598namespace object evaluation - resulting in smaller code, less CPU stack
11599use,
11600and fewer interfaces. (With assistance from Mikhail Kouzmich)
11601
11602Fixed a problem with the CopyObject operator where the first parameter
11603was
11604not typed correctly for the parser, interpreter, compiler, and
11605disassembler.
11606Caused various errors and unexpected behavior.
11607
11608Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
11609produced incorrect results with some C compilers. Since the behavior of C
11610compilers when the shift value is larger than the datatype width is
11611apparently not well defined, the interpreter now detects this condition
11612and
11613simply returns zero as expected in all such cases. (BZ 395)
11614
11615Fixed problem reports (Valery Podrezov) integrated:
11616- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
11617- Allow interpreter to handle nested method declarations (BZ 5361)
11618
11619Fixed problem reports (Fiodor Suietov) integrated:
11620- AcpiTerminate doesn't free debug memory allocation list objects (BZ
11621355)
11622- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
11623356)
11624- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
11625- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
11626- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
11627- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
11628- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
11629- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
11630- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
11631365)
11632- Status of the Global Initialization Handler call not used (BZ 366)
11633- Incorrect object parameter to Global Initialization Handler (BZ 367)
11634
11635Example Code and Data Size: These are the sizes for the OS-independent
11636acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11637debug version of the code includes the debug output trace mechanism and
11638has
11639a much larger code and data size.
11640
11641  Previous Release:
11642    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11643    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11644  Current Release:
11645    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11646    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11647
11648
116492) iASL Compiler/Disassembler and Tools:
11650
11651Modified the parser to allow the names IO, DMA, and IRQ to be used as
11652namespace identifiers with no collision with existing resource descriptor
11653macro names. This provides compatibility with other ASL compilers and is
11654most useful for disassembly/recompilation of existing tables without
11655parse
11656errors. (With assistance from Thomas Renninger)
11657
11658Disassembler: fixed an incorrect disassembly problem with the
11659DataTableRegion and CopyObject operators. Fixed a possible fault during
11660disassembly of some Alias operators.
11661
11662----------------------------------------
1166312 May 2006. Summary of changes for version 20060512:
11664
116651) ACPI CA Core Subsystem:
11666
11667Replaced the AcpiOsQueueForExecution interface with a new interface named
11668AcpiOsExecute. The major difference is that the new interface does not
11669have
11670a Priority parameter, this appeared to be useless and has been replaced
11671by
11672a
11673Type parameter. The Type tells the host what type of execution is being
11674requested, such as global lock handler, notify handler, GPE handler, etc.
11675This allows the host to queue and execute the request as appropriate for
11676the
11677request type, possibly using different work queues and different
11678priorities
11679for the various request types. This enables fixes for multithreading
11680deadlock problems such as BZ #5534, and will require changes to all
11681existing
11682OS interface layers. (Alexey Starikovskiy and Bob Moore)
11683
11684Fixed a possible memory leak associated with the support for the so-
11685called
11686"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
11687Suietov)
11688
11689Fixed a problem with the Load() operator where a table load from an
11690operation region could overwrite an internal table buffer by up to 7
11691bytes
11692and cause alignment faults on IPF systems. (With assistance from Luming
11693Yu)
11694
11695Example Code and Data Size: These are the sizes for the OS-independent
11696acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11697debug version of the code includes the debug output trace mechanism and
11698has
11699a much larger code and data size.
11700
11701  Previous Release:
11702    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
11703    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
11704  Current Release:
11705    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11706    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11707
11708
11709
117102) iASL Compiler/Disassembler and Tools:
11711
11712Disassembler: Implemented support to cross reference the internal
11713namespace
11714and automatically generate ASL External() statements for symbols not
11715defined
11716within the current table being disassembled. This will simplify the
11717disassembly and recompilation of interdependent tables such as SSDTs
11718since
11719these statements will no longer have to be added manually.
11720
11721Disassembler: Implemented experimental support to automatically detect
11722invocations of external control methods and generate appropriate
11723External()
11724statements. This is problematic because the AML cannot be correctly
11725parsed
11726until the number of arguments for each control method is known.
11727Currently,
11728standalone method invocations and invocations as the source operand of a
11729Store() statement are supported.
11730
11731Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
11732LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
11733LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
11734more readable and likely closer to the original ASL source.
11735
11736----------------------------------------
1173721 April 2006. Summary of changes for version 20060421:
11738
117391) ACPI CA Core Subsystem:
11740
11741Removed a device initialization optimization introduced in 20051216 where
11742the _STA method was not run unless an _INI was also present for the same
11743device. This optimization could cause problems because it could allow
11744_INI
11745methods to be run within a not-present device subtree. (If a not-present
11746device had no _INI, _STA would not be run, the not-present status would
11747not
11748be discovered, and the children of the device would be incorrectly
11749traversed.)
11750
11751Implemented a new _STA optimization where namespace subtrees that do not
11752contain _INI are identified and ignored during device initialization.
11753Selectively running _STA can significantly improve boot time on large
11754machines (with assistance from Len Brown.)
11755
11756Implemented support for the device initialization case where the returned
11757_STA flags indicate a device not-present but functioning. In this case,
11758_INI
11759is not run, but the device children are examined for presence, as per the
11760ACPI specification.
11761
11762Implemented an additional change to the IndexField support in order to
11763conform to MS behavior. The value written to the Index Register is not
11764simply a byte offset, it is a byte offset in units of the access width of
11765the parent Index Field. (Fiodor Suietov)
11766
11767Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
11768interface is called during the creation of all AML operation regions, and
11769allows the host OS to exert control over what addresses it will allow the
11770AML code to access. Operation Regions whose addresses are disallowed will
11771cause a runtime exception when they are actually accessed (will not
11772affect
11773or abort table loading.) See oswinxf or osunixxf for an example
11774implementation.
11775
11776Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
11777interface allows the host OS to match the various "optional"
11778interface/behavior strings for the _OSI predefined control method as
11779appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
11780for an example implementation.
11781
11782Restructured and corrected various problems in the exception handling
11783code
11784paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
11785(with assistance from Takayoshi Kochi.)
11786
11787Modified the Linux source converter to ignore quoted string literals
11788while
11789converting identifiers from mixed to lower case. This will correct
11790problems
11791with the disassembler and other areas where such strings must not be
11792modified.
11793
11794The ACPI_FUNCTION_* macros no longer require quotes around the function
11795name. This allows the Linux source converter to convert the names, now
11796that
11797the converter ignores quoted strings.
11798
11799Example Code and Data Size: These are the sizes for the OS-independent
11800acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11801debug version of the code includes the debug output trace mechanism and
11802has
11803a much larger code and data size.
11804
11805  Previous Release:
11806
11807    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
11808    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
11809  Current Release:
11810    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
11811    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
11812
11813
118142) iASL Compiler/Disassembler and Tools:
11815
11816Implemented 3 new warnings for iASL, and implemented multiple warning
11817levels
11818(w2 flag).
11819
118201) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
11821not
11822WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
11823check for the possible timeout, a warning is issued.
11824
118252) Useless operators: If an ASL operator does not specify an optional
11826target
11827operand and it also does not use the function return value from the
11828operator, a warning is issued since the operator effectively does
11829nothing.
11830
118313) Unreferenced objects: If a namespace object is created, but never
11832referenced, a warning is issued. This is a warning level 2 since there
11833are
11834cases where this is ok, such as when a secondary table is loaded that
11835uses
11836the unreferenced objects. Even so, care is taken to only flag objects
11837that
11838don't look like they will ever be used. For example, the reserved methods
11839(starting with an underscore) are usually not referenced because it is
11840expected that the OS will invoke them.
11841
11842----------------------------------------
1184331 March 2006. Summary of changes for version 20060331:
11844
118451) ACPI CA Core Subsystem:
11846
11847Implemented header file support for the following additional ACPI tables:
11848ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
11849support,
11850all current and known ACPI tables are now defined in the ACPICA headers
11851and
11852are available for use by device drivers and other software.
11853
11854Implemented support to allow tables that contain ACPI names with invalid
11855characters to be loaded. Previously, this would cause the table load to
11856fail, but since there are several known cases of such tables on existing
11857machines, this change was made to enable ACPI support for them. Also,
11858this
11859matches the behavior of the Microsoft ACPI implementation.
11860
11861Fixed a couple regressions introduced during the memory optimization in
11862the
1186320060317 release. The namespace node definition required additional
11864reorganization and an internal datatype that had been changed to 8-bit
11865was
11866restored to 32-bit. (Valery Podrezov)
11867
11868Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
11869could be passed through to AcpiOsReleaseObject which is unexpected. Such
11870null pointers are now trapped and ignored, matching the behavior of the
11871previous implementation before the deployment of AcpiOsReleaseObject.
11872(Valery Podrezov, Fiodor Suietov)
11873
11874Fixed a memory mapping leak during the deletion of a SystemMemory
11875operation
11876region where a cached memory mapping was not deleted. This became a
11877noticeable problem for operation regions that are defined within
11878frequently
11879used control methods. (Dana Meyers)
11880
11881Reorganized the ACPI table header files into two main files: one for the
11882ACPI tables consumed by the ACPICA core, and another for the
11883miscellaneous
11884ACPI tables that are consumed by the drivers and other software. The
11885various
11886FADT definitions were merged into one common section and three different
11887tables (ACPI 1.0, 1.0+, and 2.0)
11888
11889Example Code and Data Size: These are the sizes for the OS-independent
11890acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11891debug version of the code includes the debug output trace mechanism and
11892has
11893a much larger code and data size.
11894
11895  Previous Release:
11896    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
11897    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
11898  Current Release:
11899    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
11900    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
11901
11902
119032) iASL Compiler/Disassembler and Tools:
11904
11905Disassembler: Implemented support to decode and format all non-AML ACPI
11906tables (tables other than DSDTs and SSDTs.) This includes the new tables
11907added to the ACPICA headers, therefore all current and known ACPI tables
11908are
11909supported.
11910
11911Disassembler: The change to allow ACPI names with invalid characters also
11912enables the disassembly of such tables. Invalid characters within names
11913are
11914changed to '*' to make the name printable; the iASL compiler will still
11915generate an error for such names, however, since this is an invalid ACPI
11916character.
11917
11918Implemented an option for AcpiXtract (-a) to extract all tables found in
11919the
11920input file. The default invocation extracts only the DSDTs and SSDTs.
11921
11922Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
11923makefile for the AcpiXtract utility.
11924
11925----------------------------------------
1192617 March 2006. Summary of changes for version 20060317:
11927
119281) ACPI CA Core Subsystem:
11929
11930Implemented the use of a cache object for all internal namespace nodes.
11931Since there are about 1000 static nodes in a typical system, this will
11932decrease memory use for cache implementations that minimize per-
11933allocation
11934overhead (such as a slab allocator.)
11935
11936Removed the reference count mechanism for internal namespace nodes, since
11937it
11938was deemed unnecessary. This reduces the size of each namespace node by
11939about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
11940case,
11941and 32 bytes for the 64-bit case.
11942
11943Optimized several internal data structures to reduce object size on 64-
11944bit
11945platforms by packing data within the 64-bit alignment. This includes the
11946frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
11947instances corresponding to the namespace objects.
11948
11949Added two new strings for the predefined _OSI method: "Windows 2001.1
11950SP1"
11951and "Windows 2006".
11952
11953Split the allocation tracking mechanism out to a separate file, from
11954utalloc.c to uttrack.c. This mechanism appears to be only useful for
11955application-level code. Kernels may wish to not include uttrack.c in
11956distributions.
11957
11958Removed all remnants of the obsolete ACPI_REPORT_* macros and the
11959associated
11960code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
11961macros.)
11962
11963Code and Data Size: These are the sizes for the acpica.lib produced by
11964the
11965Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
11966ACPI
11967driver or OSPM code. The debug version of the code includes the debug
11968output
11969trace mechanism and has a much larger code and data size. Note that these
11970values will vary depending on the efficiency of the compiler and the
11971compiler options used during generation.
11972
11973  Previous Release:
11974    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
11975    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
11976  Current Release:
11977    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
11978    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
11979
11980
119812) iASL Compiler/Disassembler and Tools:
11982
11983Implemented an ANSI C version of the acpixtract utility. This version
11984will
11985automatically extract the DSDT and all SSDTs from the input acpidump text
11986file and dump the binary output to separate files. It can also display a
11987summary of the input file including the headers for each table found and
11988will extract any single ACPI table, with any signature. (See
11989source/tools/acpixtract)
11990
11991----------------------------------------
1199210 March 2006. Summary of changes for version 20060310:
11993
119941) ACPI CA Core Subsystem:
11995
11996Tagged all external interfaces to the subsystem with the new
11997ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
11998assist
11999kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
12000macro. The default definition is NULL.
12001
12002Added the ACPI_THREAD_ID type for the return value from
12003AcpiOsGetThreadId.
12004This allows the host to define this as necessary to simplify kernel
12005integration. The default definition is ACPI_NATIVE_UINT.
12006
12007Fixed two interpreter problems related to error processing, the deletion
12008of
12009objects, and placing invalid pointers onto the internal operator result
12010stack. BZ 6028, 6151 (Valery Podrezov)
12011
12012Increased the reference count threshold where a warning is emitted for
12013large
12014reference counts in order to eliminate unnecessary warnings on systems
12015with
12016large namespaces (especially 64-bit.) Increased the value from 0x400 to
120170x800.
12018
12019Due to universal disagreement as to the meaning of the 'c' in the
12020calloc()
12021function, the ACPI_MEM_CALLOCATE macro has been renamed to
12022ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
12023ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
12024ACPI_FREE.
12025
12026Code and Data Size: These are the sizes for the acpica.lib produced by
12027the
12028Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12029ACPI
12030driver or OSPM code. The debug version of the code includes the debug
12031output
12032trace mechanism and has a much larger code and data size. Note that these
12033values will vary depending on the efficiency of the compiler and the
12034compiler options used during generation.
12035
12036  Previous Release:
12037    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12038    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12039  Current Release:
12040    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12041    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12042
12043
120442) iASL Compiler/Disassembler:
12045
12046Disassembler: implemented support for symbolic resource descriptor
12047references. If a CreateXxxxField operator references a fixed offset
12048within
12049a
12050resource descriptor, a name is assigned to the descriptor and the offset
12051is
12052translated to the appropriate resource tag and pathname. The addition of
12053this support brings the disassembled code very close to the original ASL
12054source code and helps eliminate run-time errors when the disassembled
12055code
12056is modified (and recompiled) in such a way as to invalidate the original
12057fixed offsets.
12058
12059Implemented support for a Descriptor Name as the last parameter to the
12060ASL
12061Register() macro. This parameter was inadvertently left out of the ACPI
12062specification, and will be added for ACPI 3.0b.
12063
12064Fixed a problem where the use of the "_OSI" string (versus the full path
12065"\_OSI") caused an internal compiler error. ("No back ptr to op")
12066
12067Fixed a problem with the error message that occurs when an invalid string
12068is
12069used for a _HID object (such as one with an embedded asterisk:
12070"*PNP010A".)
12071The correct message is now displayed.
12072
12073----------------------------------------
1207417 February 2006. Summary of changes for version 20060217:
12075
120761) ACPI CA Core Subsystem:
12077
12078Implemented a change to the IndexField support to match the behavior of
12079the
12080Microsoft AML interpreter. The value written to the Index register is now
12081a
12082byte offset, no longer an index based upon the width of the Data
12083register.
12084This should fix IndexField problems seen on some machines where the Data
12085register is not exactly one byte wide. The ACPI specification will be
12086clarified on this point.
12087
12088Fixed a problem where several resource descriptor types could overrun the
12089internal descriptor buffer due to size miscalculation: VendorShort,
12090VendorLong, and Interrupt. This was noticed on IA64 machines, but could
12091affect all platforms.
12092
12093Fixed a problem where individual resource descriptors were misaligned
12094within
12095the internal buffer, causing alignment faults on IA64 platforms.
12096
12097Code and Data Size: These are the sizes for the acpica.lib produced by
12098the
12099Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12100ACPI
12101driver or OSPM code. The debug version of the code includes the debug
12102output
12103trace mechanism and has a much larger code and data size. Note that these
12104values will vary depending on the efficiency of the compiler and the
12105compiler options used during generation.
12106
12107  Previous Release:
12108    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12109    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12110  Current Release:
12111    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12112    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12113
12114
121152) iASL Compiler/Disassembler:
12116
12117Implemented support for new reserved names: _WDG and _WED are Microsoft
12118extensions for Windows Instrumentation Management, _TDL is a new ACPI-
12119defined method (Throttling Depth Limit.)
12120
12121Fixed a problem where a zero-length VendorShort or VendorLong resource
12122descriptor was incorrectly emitted as a descriptor of length one.
12123
12124----------------------------------------
1212510 February 2006. Summary of changes for version 20060210:
12126
121271) ACPI CA Core Subsystem:
12128
12129Removed a couple of extraneous ACPI_ERROR messages that appeared during
12130normal execution. These became apparent after the conversion from
12131ACPI_DEBUG_PRINT.
12132
12133Fixed a problem where the CreateField operator could hang if the BitIndex
12134or
12135NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
12136
12137Fixed a problem where a DeRefOf operation on a buffer object incorrectly
12138failed with an exception. This also fixes a couple of related RefOf and
12139DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
12140
12141Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
12142of
12143AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
12144BZ
121455480)
12146
12147Implemented a memory cleanup at the end of the execution of each
12148iteration
12149of an AML While() loop, preventing the accumulation of outstanding
12150objects.
12151(Valery Podrezov, BZ 5427)
12152
12153Eliminated a chunk of duplicate code in the object resolution code.
12154(Valery
12155Podrezov, BZ 5336)
12156
12157Fixed several warnings during the 64-bit code generation.
12158
12159The AcpiSrc source code conversion tool now inserts one line of
12160whitespace
12161after an if() statement that is followed immediately by a comment,
12162improving
12163readability of the Linux code.
12164
12165Code and Data Size: The current and previous library sizes for the core
12166subsystem are shown below. These are the code and data sizes for the
12167acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12168These
12169values do not include any ACPI driver or OSPM code. The debug version of
12170the
12171code includes the debug output trace mechanism and has a much larger code
12172and data size. Note that these values will vary depending on the
12173efficiency
12174of the compiler and the compiler options used during generation.
12175
12176  Previous Release:
12177    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12178    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12179  Current Release:
12180    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12181    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12182
12183
121842) iASL Compiler/Disassembler:
12185
12186Fixed a problem with the disassembly of a BankField operator with a
12187complex
12188expression for the BankValue parameter.
12189
12190----------------------------------------
1219127 January 2006. Summary of changes for version 20060127:
12192
121931) ACPI CA Core Subsystem:
12194
12195Implemented support in the Resource Manager to allow unresolved
12196namestring
12197references within resource package objects for the _PRT method. This
12198support
12199is in addition to the previously implemented unresolved reference support
12200within the AML parser. If the interpreter slack mode is enabled, these
12201unresolved references will be passed through to the caller as a NULL
12202package
12203entry.
12204
12205Implemented and deployed new macros and functions for error and warning
12206messages across the subsystem. These macros are simpler and generate less
12207code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
12208ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
12209macros remain defined to allow ACPI drivers time to migrate to the new
12210macros.
12211
12212Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
12213the
12214Acquire/Release Lock OSL interfaces.
12215
12216Fixed a problem where Alias ASL operators are sometimes not correctly
12217resolved, in both the interpreter and the iASL compiler.
12218
12219Fixed several problems with the implementation of the
12220ConcatenateResTemplate
12221ASL operator. As per the ACPI specification, zero length buffers are now
12222treated as a single EndTag. One-length buffers always cause a fatal
12223exception. Non-zero length buffers that do not end with a full 2-byte
12224EndTag
12225cause a fatal exception.
12226
12227Fixed a possible structure overwrite in the AcpiGetObjectInfo external
12228interface. (With assistance from Thomas Renninger)
12229
12230Code and Data Size: The current and previous library sizes for the core
12231subsystem are shown below. These are the code and data sizes for the
12232acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12233These
12234values do not include any ACPI driver or OSPM code. The debug version of
12235the
12236code includes the debug output trace mechanism and has a much larger code
12237and data size. Note that these values will vary depending on the
12238efficiency
12239of the compiler and the compiler options used during generation.
12240
12241  Previous Release:
12242    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12243    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12244  Current Release:
12245    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12246    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12247
12248
122492) iASL Compiler/Disassembler:
12250
12251Fixed an internal error that was generated for any forward references to
12252ASL
12253Alias objects.
12254
12255----------------------------------------
1225613 January 2006. Summary of changes for version 20060113:
12257
122581) ACPI CA Core Subsystem:
12259
12260Added 2006 copyright to all module headers and signons. This affects
12261virtually every file in the ACPICA core subsystem, iASL compiler, and the
12262utilities.
12263
12264Enhanced the ACPICA error reporting in order to simplify user migration
12265to
12266the non-debug version of ACPICA. Replaced all instances of the
12267ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
12268debug
12269levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
12270respectively. This preserves all error and warning messages in the non-
12271debug
12272version of the ACPICA code (this has been referred to as the "debug lite"
12273option.) Over 200 cases were converted to create a total of over 380
12274error/warning messages across the ACPICA code. This increases the code
12275and
12276data size of the default non-debug version of the code somewhat (about
1227713K),
12278but all error/warning reporting may be disabled if desired (and code
12279eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
12280configuration option. The size of the debug version of ACPICA remains
12281about
12282the same.
12283
12284Fixed a memory leak within the AML Debugger "Set" command. One object was
12285not properly deleted for every successful invocation of the command.
12286
12287Code and Data Size: The current and previous library sizes for the core
12288subsystem are shown below. These are the code and data sizes for the
12289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12290These
12291values do not include any ACPI driver or OSPM code. The debug version of
12292the
12293code includes the debug output trace mechanism and has a much larger code
12294and data size. Note that these values will vary depending on the
12295efficiency
12296of the compiler and the compiler options used during generation.
12297
12298  Previous Release:
12299    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12300    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12301  Current Release:
12302    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12303    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12304
12305
123062) iASL Compiler/Disassembler:
12307
12308The compiler now officially supports the ACPI 3.0a specification that was
12309released on December 30, 2005. (Specification is available at
12310www.acpi.info)
12311
12312----------------------------------------
1231316 December 2005. Summary of changes for version 20051216:
12314
123151) ACPI CA Core Subsystem:
12316
12317Implemented optional support to allow unresolved names within ASL Package
12318objects. A null object is inserted in the package when a named reference
12319cannot be located in the current namespace. Enabled via the interpreter
12320slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
12321machines
12322that contain such code.
12323
12324Implemented an optimization to the initialization sequence that can
12325improve
12326boot time. During ACPI device initialization, the _STA method is now run
12327if
12328and only if the _INI method exists. The _STA method is used to determine
12329if
12330the device is present; An _INI can only be run if _STA returns present,
12331but
12332it is a waste of time to run the _STA method if the _INI does not exist.
12333(Prototype and assistance from Dong Wei)
12334
12335Implemented use of the C99 uintptr_t for the pointer casting macros if it
12336is
12337available in the current compiler. Otherwise, the default (void *) cast
12338is
12339used as before.
12340
12341Fixed some possible memory leaks found within the execution path of the
12342Break, Continue, If, and CreateField operators. (Valery Podrezov)
12343
12344Fixed a problem introduced in the 20051202 release where an exception is
12345generated during method execution if a control method attempts to declare
12346another method.
12347
12348Moved resource descriptor string constants that are used by both the AML
12349disassembler and AML debugger to the common utilities directory so that
12350these components are independent.
12351
12352Implemented support in the AcpiExec utility (-e switch) to globally
12353ignore
12354exceptions during control method execution (method is not aborted.)
12355
12356Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
12357generation.
12358
12359Code and Data Size: The current and previous library sizes for the core
12360subsystem are shown below. These are the code and data sizes for the
12361acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12362These
12363values do not include any ACPI driver or OSPM code. The debug version of
12364the
12365code includes the debug output trace mechanism and has a much larger code
12366and data size. Note that these values will vary depending on the
12367efficiency
12368of the compiler and the compiler options used during generation.
12369
12370  Previous Release:
12371    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12372    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12373  Current Release:
12374    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12375    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12376
12377
123782) iASL Compiler/Disassembler:
12379
12380Fixed a problem where a CPU stack overflow fault could occur if a
12381recursive
12382method call was made from within a Return statement.
12383
12384----------------------------------------
1238502 December 2005. Summary of changes for version 20051202:
12386
123871) ACPI CA Core Subsystem:
12388
12389Modified the parsing of control methods to no longer create namespace
12390objects during the first pass of the parse. Objects are now created only
12391during the execute phase, at the moment the namespace creation operator
12392is
12393encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
12394This
12395should eliminate ALREADY_EXISTS exceptions seen on some machines where
12396reentrant control methods are protected by an AML mutex. The mutex will
12397now
12398correctly block multiple threads from attempting to create the same
12399object
12400more than once.
12401
12402Increased the number of available Owner Ids for namespace object tracking
12403from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
12404on
12405some machines with a large number of ACPI tables (either static or
12406dynamic).
12407
12408Fixed a problem with the AcpiExec utility where a fault could occur when
12409the
12410-b switch (batch mode) is used.
12411
12412Enhanced the namespace dump routine to output the owner ID for each
12413namespace object.
12414
12415Code and Data Size: The current and previous library sizes for the core
12416subsystem are shown below. These are the code and data sizes for the
12417acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12418These
12419values do not include any ACPI driver or OSPM code. The debug version of
12420the
12421code includes the debug output trace mechanism and has a much larger code
12422and data size. Note that these values will vary depending on the
12423efficiency
12424of the compiler and the compiler options used during generation.
12425
12426  Previous Release:
12427    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12428    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12429  Current Release:
12430    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12431    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12432
12433
124342) iASL Compiler/Disassembler:
12435
12436Fixed a parse error during compilation of certain Switch/Case constructs.
12437To
12438simplify the parse, the grammar now allows for multiple Default
12439statements
12440and this error is now detected and flagged during the analysis phase.
12441
12442Disassembler: The disassembly now includes the contents of the original
12443table header within a comment at the start of the file. This includes the
12444name and version of the original ASL compiler.
12445
12446----------------------------------------
1244717 November 2005. Summary of changes for version 20051117:
12448
124491) ACPI CA Core Subsystem:
12450
12451Fixed a problem in the AML parser where the method thread count could be
12452decremented below zero if any errors occurred during the method parse
12453phase.
12454This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
12455machines.
12456This also fixed a related regression with the mechanism that detects and
12457corrects methods that cannot properly handle reentrancy (related to the
12458deployment of the new OwnerId mechanism.)
12459
12460Eliminated the pre-parsing of control methods (to detect errors) during
12461table load. Related to the problem above, this was causing unwind issues
12462if
12463any errors occurred during the parse, and it seemed to be overkill. A
12464table
12465load should not be aborted if there are problems with any single control
12466method, thus rendering this feature rather pointless.
12467
12468Fixed a problem with the new table-driven resource manager where an
12469internal
12470buffer overflow could occur for small resource templates.
12471
12472Implemented a new external interface, AcpiGetVendorResource. This
12473interface
12474will find and return a vendor-defined resource descriptor within a _CRS
12475or
12476_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
12477Helgaas.
12478
12479Removed the length limit (200) on string objects as per the upcoming ACPI
124803.0A specification. This affects the following areas of the interpreter:
124811)
12482any implicit conversion of a Buffer to a String, 2) a String object
12483result
12484of the ASL Concatenate operator, 3) the String object result of the ASL
12485ToString operator.
12486
12487Fixed a problem in the Windows OS interface layer (OSL) where a
12488WAIT_FOREVER
12489on a semaphore object would incorrectly timeout. This allows the
12490multithreading features of the AcpiExec utility to work properly under
12491Windows.
12492
12493Updated the Linux makefiles for the iASL compiler and AcpiExec to include
12494the recently added file named "utresrc.c".
12495
12496Code and Data Size: The current and previous library sizes for the core
12497subsystem are shown below. These are the code and data sizes for the
12498acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12499These
12500values do not include any ACPI driver or OSPM code. The debug version of
12501the
12502code includes the debug output trace mechanism and has a much larger code
12503and data size. Note that these values will vary depending on the
12504efficiency
12505of the compiler and the compiler options used during generation.
12506
12507  Previous Release:
12508    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12509    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12510  Current Release:
12511    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12512    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12513
12514
125152) iASL Compiler/Disassembler:
12516
12517Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
12518specification. For the iASL compiler, this means that string literals
12519within
12520the source ASL can be of any length.
12521
12522Enhanced the listing output to dump the AML code for resource descriptors
12523immediately after the ASL code for each descriptor, instead of in a block
12524at
12525the end of the entire resource template.
12526
12527Enhanced the compiler debug output to dump the entire original parse tree
12528constructed during the parse phase, before any transforms are applied to
12529the
12530tree. The transformed tree is dumped also.
12531
12532----------------------------------------
1253302 November 2005. Summary of changes for version 20051102:
12534
125351) ACPI CA Core Subsystem:
12536
12537Modified the subsystem initialization sequence to improve GPE support.
12538The
12539GPE initialization has been split into two parts in order to defer
12540execution
12541of the _PRW methods (Power Resources for Wake) until after the hardware
12542is
12543fully initialized and the SCI handler is installed. This allows the _PRW
12544methods to access fields protected by the Global Lock. This will fix
12545systems
12546where a NO_GLOBAL_LOCK exception has been seen during initialization.
12547
12548Converted the ACPI internal object disassemble and display code within
12549the
12550AML debugger to fully table-driven operation, reducing code size and
12551increasing maintainability.
12552
12553Fixed a regression with the ConcatenateResTemplate() ASL operator
12554introduced
12555in the 20051021 release.
12556
12557Implemented support for "local" internal ACPI object types within the
12558debugger "Object" command and the AcpiWalkNamespace external interfaces.
12559These local types include RegionFields, BankFields, IndexFields, Alias,
12560and
12561reference objects.
12562
12563Moved common AML resource handling code into a new file, "utresrc.c".
12564This
12565code is shared by both the Resource Manager and the AML Debugger.
12566
12567Code and Data Size: The current and previous library sizes for the core
12568subsystem are shown below. These are the code and data sizes for the
12569acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12570These
12571values do not include any ACPI driver or OSPM code. The debug version of
12572the
12573code includes the debug output trace mechanism and has a much larger code
12574and data size. Note that these values will vary depending on the
12575efficiency
12576of the compiler and the compiler options used during generation.
12577
12578  Previous Release:
12579    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12580    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12581  Current Release:
12582    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12583    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12584
12585
125862) iASL Compiler/Disassembler:
12587
12588Fixed a problem with very large initializer lists (more than 4000
12589elements)
12590for both Buffer and Package objects where the parse stack could overflow.
12591
12592Enhanced the pre-compile source code scan for non-ASCII characters to
12593ignore
12594characters within comment fields. The scan is now always performed and is
12595no
12596longer optional, detecting invalid characters within a source file
12597immediately rather than during the parse phase or later.
12598
12599Enhanced the ASL grammar definition to force early reductions on all
12600list-
12601style grammar elements so that the overall parse stack usage is greatly
12602reduced. This should improve performance and reduce the possibility of
12603parse
12604stack overflow.
12605
12606Eliminated all reduce/reduce conflicts in the iASL parser generation.
12607Also,
12608with the addition of a %expected statement, the compiler generates from
12609source with no warnings.
12610
12611Fixed a possible segment fault in the disassembler if the input filename
12612does not contain a "dot" extension (Thomas Renninger).
12613
12614----------------------------------------
1261521 October 2005. Summary of changes for version 20051021:
12616
126171) ACPI CA Core Subsystem:
12618
12619Implemented support for the EM64T and other x86-64 processors. This
12620essentially entails recognizing that these processors support non-aligned
12621memory transfers. Previously, all 64-bit processors were assumed to lack
12622hardware support for non-aligned transfers.
12623
12624Completed conversion of the Resource Manager to nearly full table-driven
12625operation. Specifically, the resource conversion code (convert AML to
12626internal format and the reverse) and the debug code to dump internal
12627resource descriptors are fully table-driven, reducing code and data size
12628and
12629improving maintainability.
12630
12631The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
12632word
12633on 64-bit processors instead of a fixed 32-bit word. (With assistance
12634from
12635Alexey Starikovskiy)
12636
12637Implemented support within the resource conversion code for the Type-
12638Specific byte within the various ACPI 3.0 *WordSpace macros.
12639
12640Fixed some issues within the resource conversion code for the type-
12641specific
12642flags for both Memory and I/O address resource descriptors. For Memory,
12643implemented support for the MTP and TTP flags. For I/O, split the TRS and
12644TTP flags into two separate fields.
12645
12646Code and Data Size: The current and previous library sizes for the core
12647subsystem are shown below. These are the code and data sizes for the
12648acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12649These
12650values do not include any ACPI driver or OSPM code. The debug version of
12651the
12652code includes the debug output trace mechanism and has a much larger code
12653and data size. Note that these values will vary depending on the
12654efficiency
12655of the compiler and the compiler options used during generation.
12656
12657  Previous Release:
12658    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12659    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12660  Current Release:
12661    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12662    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12663
12664
12665
126662) iASL Compiler/Disassembler:
12667
12668Relaxed a compiler restriction that disallowed a ResourceIndex byte if
12669the
12670corresponding ResourceSource string was not also present in a resource
12671descriptor declaration. This restriction caused problems with existing
12672AML/ASL code that includes the Index byte without the string. When such
12673AML
12674was disassembled, it could not be compiled without modification. Further,
12675the modified code created a resource template with a different size than
12676the
12677original, breaking code that used fixed offsets into the resource
12678template
12679buffer.
12680
12681Removed a recent feature of the disassembler to ignore a lone
12682ResourceIndex
12683byte. This byte is now emitted if present so that the exact AML can be
12684reproduced when the disassembled code is recompiled.
12685
12686Improved comments and text alignment for the resource descriptor code
12687emitted by the disassembler.
12688
12689Implemented disassembler support for the ACPI 3.0 AccessSize field within
12690a
12691Register() resource descriptor.
12692
12693----------------------------------------
1269430 September 2005. Summary of changes for version 20050930:
12695
126961) ACPI CA Core Subsystem:
12697
12698Completed a major overhaul of the Resource Manager code - specifically,
12699optimizations in the area of the AML/internal resource conversion code.
12700The
12701code has been optimized to simplify and eliminate duplicated code, CPU
12702stack
12703use has been decreased by optimizing function parameters and local
12704variables, and naming conventions across the manager have been
12705standardized
12706for clarity and ease of maintenance (this includes function, parameter,
12707variable, and struct/typedef names.) The update may force changes in some
12708driver code, depending on how resources are handled by the host OS.
12709
12710All Resource Manager dispatch and information tables have been moved to a
12711single location for clarity and ease of maintenance. One new file was
12712created, named "rsinfo.c".
12713
12714The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
12715guarantee that the argument is not evaluated twice, making them less
12716prone
12717to macro side-effects. However, since there exists the possibility of
12718additional stack use if a particular compiler cannot optimize them (such
12719as
12720in the debug generation case), the original macros are optionally
12721available.
12722Note that some invocations of the return_VALUE macro may now cause size
12723mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
12724to
12725eliminate these. (From Randy Dunlap)
12726
12727Implemented a new mechanism to enable debug tracing for individual
12728control
12729methods. A new external interface, AcpiDebugTrace, is provided to enable
12730this mechanism. The intent is to allow the host OS to easily enable and
12731disable tracing for problematic control methods. This interface can be
12732easily exposed to a user or debugger interface if desired. See the file
12733psxface.c for details.
12734
12735AcpiUtCallocate will now return a valid pointer if a length of zero is
12736specified - a length of one is used and a warning is issued. This matches
12737the behavior of AcpiUtAllocate.
12738
12739Code and Data Size: The current and previous library sizes for the core
12740subsystem are shown below. These are the code and data sizes for the
12741acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12742These
12743values do not include any ACPI driver or OSPM code. The debug version of
12744the
12745code includes the debug output trace mechanism and has a much larger code
12746and data size. Note that these values will vary depending on the
12747efficiency
12748of the compiler and the compiler options used during generation.
12749
12750  Previous Release:
12751    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
12752    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
12753  Current Release:
12754    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12755    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12756
12757
127582) iASL Compiler/Disassembler:
12759
12760A remark is issued if the effective compile-time length of a package or
12761buffer is zero. Previously, this was a warning.
12762
12763----------------------------------------
1276416 September 2005. Summary of changes for version 20050916:
12765
127661) ACPI CA Core Subsystem:
12767
12768Fixed a problem within the Resource Manager where support for the Generic
12769Register descriptor was not fully implemented. This descriptor is now
12770fully
12771recognized, parsed, disassembled, and displayed.
12772
12773Completely restructured the Resource Manager code to utilize table-driven
12774dispatch and lookup, eliminating many of the large switch() statements.
12775This
12776reduces overall subsystem code size and code complexity. Affects the
12777resource parsing and construction, disassembly, and debug dump output.
12778
12779Cleaned up and restructured the debug dump output for all resource
12780descriptors. Improved readability of the output and reduced code size.
12781
12782Fixed a problem where changes to internal data structures caused the
12783optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
12784
12785Code and Data Size: The current and previous library sizes for the core
12786subsystem are shown below. These are the code and data sizes for the
12787acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12788These
12789values do not include any ACPI driver or OSPM code. The debug version of
12790the
12791code includes the debug output trace mechanism and has a much larger code
12792and data size. Note that these values will vary depending on the
12793efficiency
12794of the compiler and the compiler options used during generation.
12795
12796  Previous Release:
12797    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
12798    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
12799  Current Release:
12800    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
12801    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
12802
12803
128042) iASL Compiler/Disassembler:
12805
12806Updated the disassembler to automatically insert an EndDependentFn()
12807macro
12808into the ASL stream if this macro is missing in the original AML code,
12809simplifying compilation of the resulting ASL module.
12810
12811Fixed a problem in the disassembler where a disassembled ResourceSource
12812string (within a large resource descriptor) was not surrounded by quotes
12813and
12814not followed by a comma, causing errors when the resulting ASL module was
12815compiled. Also, escape sequences within a ResourceSource string are now
12816handled correctly (especially "\\")
12817
12818----------------------------------------
1281902 September 2005. Summary of changes for version 20050902:
12820
128211) ACPI CA Core Subsystem:
12822
12823Fixed a problem with the internal Owner ID allocation and deallocation
12824mechanisms for control method execution and recursive method invocation.
12825This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
12826messages seen on some systems. Recursive method invocation depth is
12827currently limited to 255. (Alexey Starikovskiy)
12828
12829Completely eliminated all vestiges of support for the "module-level
12830executable code" until this support is fully implemented and debugged.
12831This
12832should eliminate the NO_RETURN_VALUE exceptions seen during table load on
12833some systems that invoke this support.
12834
12835Fixed a problem within the resource manager code where the transaction
12836flags
12837for a 64-bit address descriptor were handled incorrectly in the type-
12838specific flag byte.
12839
12840Consolidated duplicate code within the address descriptor resource
12841manager
12842code, reducing overall subsystem code size.
12843
12844Fixed a fault when using the AML debugger "disassemble" command to
12845disassemble individual control methods.
12846
12847Removed references to the "release_current" directory within the Unix
12848release package.
12849
12850Code and Data Size: The current and previous core subsystem library sizes
12851are shown below. These are the code and data sizes for the acpica.lib
12852produced by the Microsoft Visual C++ 6.0 compiler. These values do not
12853include any ACPI driver or OSPM code. The debug version of the code
12854includes
12855the debug output trace mechanism and has a much larger code and data
12856size.
12857Note that these values will vary depending on the efficiency of the
12858compiler
12859and the compiler options used during generation.
12860
12861  Previous Release:
12862    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
12863    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
12864  Current Release:
12865    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
12866    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
12867
12868
128692) iASL Compiler/Disassembler:
12870
12871Implemented an error check for illegal duplicate values in the interrupt
12872and
12873dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
12874Interrupt().
12875
12876Implemented error checking for the Irq() and IrqNoFlags() macros to
12877detect
12878too many values in the interrupt list (16 max) and invalid values in the
12879list (range 0 - 15)
12880
12881The maximum length string literal within an ASL file is now restricted to
12882200 characters as per the ACPI specification.
12883
12884Fixed a fault when using the -ln option (generate namespace listing).
12885
12886Implemented an error check to determine if a DescriptorName within a
12887resource descriptor has already been used within the current scope.
12888
12889----------------------------------------
1289015 August 2005.  Summary of changes for version 20050815:
12891
128921) ACPI CA Core Subsystem:
12893
12894Implemented a full bytewise compare to determine if a table load request
12895is
12896attempting to load a duplicate table. The compare is performed if the
12897table
12898signatures and table lengths match. This will allow different tables with
12899the same OEM Table ID and revision to be loaded - probably against the
12900ACPI
12901specification, but discovered in the field nonetheless.
12902
12903Added the changes.txt logfile to each of the zipped release packages.
12904
12905Code and Data Size: Current and previous core subsystem library sizes are
12906shown below. These are the code and data sizes for the acpica.lib
12907produced
12908by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12909any ACPI driver or OSPM code. The debug version of the code includes the
12910debug output trace mechanism and has a much larger code and data size.
12911Note
12912that these values will vary depending on the efficiency of the compiler
12913and
12914the compiler options used during generation.
12915
12916  Previous Release:
12917    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
12918    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
12919  Current Release:
12920    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
12921    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
12922
12923
129242) iASL Compiler/Disassembler:
12925
12926Fixed a problem where incorrect AML code could be generated for Package
12927objects if optimization is disabled (via the -oa switch).
12928
12929Fixed a problem with where incorrect AML code is generated for variable-
12930length packages when the package length is not specified and the number
12931of
12932initializer values is greater than 255.
12933
12934
12935----------------------------------------
1293629 July 2005.  Summary of changes for version 20050729:
12937
129381) ACPI CA Core Subsystem:
12939
12940Implemented support to ignore an attempt to install/load a particular
12941ACPI
12942table more than once. Apparently there exists BIOS code that repeatedly
12943attempts to load the same SSDT upon certain events. With assistance from
12944Venkatesh Pallipadi.
12945
12946Restructured the main interface to the AML parser in order to correctly
12947handle all exceptional conditions. This will prevent leakage of the
12948OwnerId
12949resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
12950some
12951machines. With assistance from Alexey Starikovskiy.
12952
12953Support for "module level code" has been disabled in this version due to
12954a
12955number of issues that have appeared on various machines. The support can
12956be
12957enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
12958compilation. When the issues are fully resolved, the code will be enabled
12959by
12960default again.
12961
12962Modified the internal functions for debug print support to define the
12963FunctionName parameter as a (const char *) for compatibility with
12964compiler
12965built-in macros such as __FUNCTION__, etc.
12966
12967Linted the entire ACPICA source tree for both 32-bit and 64-bit.
12968
12969Implemented support to display an object count summary for the AML
12970Debugger
12971commands Object and Methods.
12972
12973Code and Data Size: Current and previous core subsystem library sizes are
12974shown below. These are the code and data sizes for the acpica.lib
12975produced
12976by the Microsoft Visual C++ 6.0 compiler, and these values do not include
12977any ACPI driver or OSPM code. The debug version of the code includes the
12978debug output trace mechanism and has a much larger code and data size.
12979Note
12980that these values will vary depending on the efficiency of the compiler
12981and
12982the compiler options used during generation.
12983
12984  Previous Release:
12985    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
12986    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
12987  Current Release:
12988    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
12989    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
12990
12991
129922) iASL Compiler/Disassembler:
12993
12994Fixed a regression that appeared in the 20050708 version of the compiler
12995where an error message was inadvertently emitted for invocations of the
12996_OSI
12997reserved control method.
12998
12999----------------------------------------
1300008 July 2005.  Summary of changes for version 20050708:
13001
130021) ACPI CA Core Subsystem:
13003
13004The use of the CPU stack in the debug version of the subsystem has been
13005considerably reduced. Previously, a debug structure was declared in every
13006function that used the debug macros. This structure has been removed in
13007favor of declaring the individual elements as parameters to the debug
13008functions. This reduces the cumulative stack use during nested execution
13009of
13010ACPI function calls at the cost of a small increase in the code size of
13011the
13012debug version of the subsystem. With assistance from Alexey Starikovskiy
13013and
13014Len Brown.
13015
13016Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
13017headers to define a macro that will return the current function name at
13018runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
13019by
13020the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
13021compiler-dependent header, the function name is saved on the CPU stack
13022(one
13023pointer per function.) This mechanism is used because apparently there
13024exists no standard ANSI-C defined macro that that returns the function
13025name.
13026
13027Redesigned and reimplemented the "Owner ID" mechanism used to track
13028namespace objects created/deleted by ACPI tables and control method
13029execution. A bitmap is now used to allocate and free the IDs, thus
13030solving
13031the wraparound problem present in the previous implementation. The size
13032of
13033the namespace node descriptor was reduced by 2 bytes as a result (Alexey
13034Starikovskiy).
13035
13036Removed the UINT32_BIT and UINT16_BIT types that were used for the
13037bitfield
13038flag definitions within the headers for the predefined ACPI tables. These
13039have been replaced by UINT8_BIT in order to increase the code portability
13040of
13041the subsystem. If the use of UINT8 remains a problem, we may be forced to
13042eliminate bitfields entirely because of a lack of portability.
13043
13044Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
13045This
13046is a frequently used function and this improvement increases the
13047performance
13048of the entire subsystem (Alexey Starikovskiy).
13049
13050Fixed several possible memory leaks and the inverse - premature object
13051deletion (Alexey Starikovskiy).
13052
13053Code and Data Size: Current and previous core subsystem library sizes are
13054shown below. These are the code and data sizes for the acpica.lib
13055produced
13056by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13057any ACPI driver or OSPM code. The debug version of the code includes the
13058debug output trace mechanism and has a much larger code and data size.
13059Note
13060that these values will vary depending on the efficiency of the compiler
13061and
13062the compiler options used during generation.
13063
13064  Previous Release:
13065    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13066    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13067  Current Release:
13068    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13069    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13070
13071----------------------------------------
1307224 June 2005.  Summary of changes for version 20050624:
13073
130741) ACPI CA Core Subsystem:
13075
13076Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
13077the host-defined cache object. This allows the OSL implementation to
13078define
13079and type this object in any manner desired, simplifying the OSL
13080implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
13081Linux, and should be defined in the OS-specific header file for other
13082operating systems as required.
13083
13084Changed the interface to AcpiOsAcquireObject to directly return the
13085requested object as the function return (instead of ACPI_STATUS.) This
13086change was made for performance reasons, since this is the purpose of the
13087interface in the first place. AcpiOsAcquireObject is now similar to the
13088AcpiOsAllocate interface.
13089
13090Implemented a new AML debugger command named Businfo. This command
13091displays
13092information about all devices that have an associate _PRT object. The
13093_ADR,
13094_HID, _UID, and _CID are displayed for these devices.
13095
13096Modified the initialization sequence in AcpiInitializeSubsystem to call
13097the
13098OSL interface AcpiOslInitialize first, before any local initialization.
13099This
13100change was required because the global initialization now calls OSL
13101interfaces.
13102
13103Enhanced the Dump command to display the entire contents of Package
13104objects
13105(including all sub-objects and their values.)
13106
13107Restructured the code base to split some files because of size and/or
13108because the code logically belonged in a separate file. New files are
13109listed
13110below. All makefiles and project files included in the ACPI CA release
13111have
13112been updated.
13113    utilities/utcache.c           /* Local cache interfaces */
13114    utilities/utmutex.c           /* Local mutex support */
13115    utilities/utstate.c           /* State object support */
13116    interpreter/parser/psloop.c   /* Main AML parse loop */
13117
13118Code and Data Size: Current and previous core subsystem library sizes are
13119shown below. These are the code and data sizes for the acpica.lib
13120produced
13121by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13122any ACPI driver or OSPM code. The debug version of the code includes the
13123debug output trace mechanism and has a much larger code and data size.
13124Note
13125that these values will vary depending on the efficiency of the compiler
13126and
13127the compiler options used during generation.
13128
13129  Previous Release:
13130    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13131    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13132  Current Release:
13133    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13134    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13135
13136
131372) iASL Compiler/Disassembler:
13138
13139Fixed a regression introduced in version 20050513 where the use of a
13140Package
13141object within a Case() statement caused a compile time exception. The
13142original behavior has been restored (a Match() operator is emitted.)
13143
13144----------------------------------------
1314517 June 2005.  Summary of changes for version 20050617:
13146
131471) ACPI CA Core Subsystem:
13148
13149Moved the object cache operations into the OS interface layer (OSL) to
13150allow
13151the host OS to handle these operations if desired (for example, the Linux
13152OSL will invoke the slab allocator). This support is optional; the
13153compile
13154time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
13155cache
13156code in the ACPI CA core. The new OSL interfaces are shown below. See
13157utalloc.c for an example implementation, and acpiosxf.h for the exact
13158interface definitions. With assistance from Alexey Starikovskiy.
13159    AcpiOsCreateCache
13160    AcpiOsDeleteCache
13161    AcpiOsPurgeCache
13162    AcpiOsAcquireObject
13163    AcpiOsReleaseObject
13164
13165Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
13166return
13167and restore a flags parameter. This fits better with many OS lock models.
13168Note: the current execution state (interrupt handler or not) is no longer
13169passed to these interfaces. If necessary, the OSL must determine this
13170state
13171by itself, a simple and fast operation. With assistance from Alexey
13172Starikovskiy.
13173
13174Fixed a problem in the ACPI table handling where a valid XSDT was assumed
13175present if the revision of the RSDP was 2 or greater. According to the
13176ACPI
13177specification, the XSDT is optional in all cases, and the table manager
13178therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
13179Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
13180contain
13181only the RSDT.
13182
13183Fixed an interpreter problem with the Mid() operator in the case of an
13184input
13185string where the resulting output string is of zero length. It now
13186correctly
13187returns a valid, null terminated string object instead of a string object
13188with a null pointer.
13189
13190Fixed a problem with the control method argument handling to allow a
13191store
13192to an Arg object that already contains an object of type Device. The
13193Device
13194object is now correctly overwritten. Previously, an error was returned.
13195
13196
13197Enhanced the debugger Find command to emit object values in addition to
13198the
13199found object pathnames. The output format is the same as the dump
13200namespace
13201command.
13202
13203Enhanced the debugger Set command. It now has the ability to set the
13204value
13205of any Named integer object in the namespace (Previously, only method
13206locals
13207and args could be set.)
13208
13209Code and Data Size: Current and previous core subsystem library sizes are
13210shown below. These are the code and data sizes for the acpica.lib
13211produced
13212by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13213any ACPI driver or OSPM code. The debug version of the code includes the
13214debug output trace mechanism and has a much larger code and data size.
13215Note
13216that these values will vary depending on the efficiency of the compiler
13217and
13218the compiler options used during generation.
13219
13220  Previous Release:
13221    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13222    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13223  Current Release:
13224    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13225    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13226
13227
132282) iASL Compiler/Disassembler:
13229
13230Fixed a regression in the disassembler where if/else/while constructs
13231were
13232output incorrectly. This problem was introduced in the previous release
13233(20050526). This problem also affected the single-step disassembly in the
13234debugger.
13235
13236Fixed a problem where compiling the reserved _OSI method would randomly
13237(but
13238rarely) produce compile errors.
13239
13240Enhanced the disassembler to emit compilable code in the face of
13241incorrect
13242AML resource descriptors. If the optional ResourceSourceIndex is present,
13243but the ResourceSource is not, do not emit the ResourceSourceIndex in the
13244disassembly. Otherwise, the resulting code cannot be compiled without
13245errors.
13246
13247----------------------------------------
1324826 May 2005.  Summary of changes for version 20050526:
13249
132501) ACPI CA Core Subsystem:
13251
13252Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
13253the module level (not within a control method.) These opcodes are
13254executed
13255exactly once at the time the table is loaded. This type of code was legal
13256up
13257until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
13258in
13259order to provide backwards compatibility with earlier BIOS
13260implementations.
13261This eliminates the "Encountered executable code at module level" warning
13262that was previously generated upon detection of such code.
13263
13264Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
13265inadvertently be generated during the lookup of namespace objects in the
13266second pass parse of ACPI tables and control methods. It appears that
13267this
13268problem could occur during the resolution of forward references to
13269namespace
13270objects.
13271
13272Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
13273corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
13274allows the deadlock detection debug code to be compiled out in the normal
13275case, improving mutex performance (and overall subsystem performance)
13276considerably.
13277
13278Implemented a handful of miscellaneous fixes for possible memory leaks on
13279error conditions and error handling control paths. These fixes were
13280suggested by FreeBSD and the Coverity Prevent source code analysis tool.
13281
13282Added a check for a null RSDT pointer in AcpiGetFirmwareTable
13283(tbxfroot.c)
13284to prevent a fault in this error case.
13285
13286Code and Data Size: Current and previous core subsystem library sizes are
13287shown below. These are the code and data sizes for the acpica.lib
13288produced
13289by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13290any ACPI driver or OSPM code. The debug version of the code includes the
13291debug output trace mechanism and has a much larger code and data size.
13292Note
13293that these values will vary depending on the efficiency of the compiler
13294and
13295the compiler options used during generation.
13296
13297  Previous Release:
13298    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13299    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13300  Current Release:
13301    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13302    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13303
13304
133052) iASL Compiler/Disassembler:
13306
13307Implemented support to allow Type 1 and Type 2 ASL operators to appear at
13308the module level (not within a control method.) These operators will be
13309executed once at the time the table is loaded. This type of code was
13310legal
13311up until the release of ACPI 2.0B (2002) and is now supported by the iASL
13312compiler in order to provide backwards compatibility with earlier BIOS
13313ASL
13314code.
13315
13316The ACPI integer width (specified via the table revision ID or the -r
13317override, 32 or 64 bits) is now used internally during compile-time
13318constant
13319folding to ensure that constants are truncated to 32 bits if necessary.
13320Previously, the revision ID value was only emitted in the AML table
13321header.
13322
13323An error message is now generated for the Mutex and Method operators if
13324the
13325SyncLevel parameter is outside the legal range of 0 through 15.
13326
13327Fixed a problem with the Method operator ParameterTypes list handling
13328(ACPI
133293.0). Previously, more than 2 types or 2 arguments generated a syntax
13330error.
13331The actual underlying implementation of method argument typechecking is
13332still under development, however.
13333
13334----------------------------------------
1333513 May 2005.  Summary of changes for version 20050513:
13336
133371) ACPI CA Core Subsystem:
13338
13339Implemented support for PCI Express root bridges -- added support for
13340device
13341PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
13342
13343The interpreter now automatically truncates incoming 64-bit constants to
1334432
13345bits if currently executing out of a 32-bit ACPI table (Revision < 2).
13346This
13347also affects the iASL compiler constant folding. (Note: as per below, the
13348iASL compiler no longer allows 64-bit constants within 32-bit tables.)
13349
13350Fixed a problem where string and buffer objects with "static" pointers
13351(pointers to initialization data within an ACPI table) were not handled
13352consistently. The internal object copy operation now always copies the
13353data
13354to a newly allocated buffer, regardless of whether the source object is
13355static or not.
13356
13357Fixed a problem with the FromBCD operator where an implicit result
13358conversion was improperly performed while storing the result to the
13359target
13360operand. Since this is an "explicit conversion" operator, the implicit
13361conversion should never be performed on the output.
13362
13363Fixed a problem with the CopyObject operator where a copy to an existing
13364named object did not always completely overwrite the existing object
13365stored
13366at name. Specifically, a buffer-to-buffer copy did not delete the
13367existing
13368buffer.
13369
13370Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
13371and
13372structs for consistency.
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.2K Code, 11.6K Data,  89.8K Total
13387    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13388  Current Release: (Same sizes)
13389    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13390    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13391
13392
133932) iASL Compiler/Disassembler:
13394
13395The compiler now emits a warning if an attempt is made to generate a 64-
13396bit
13397integer constant from within a 32-bit ACPI table (Revision < 2). The
13398integer
13399is truncated to 32 bits.
13400
13401Fixed a problem with large package objects: if the static length of the
13402package is greater than 255, the "variable length package" opcode is
13403emitted. Previously, this caused an error. This requires an update to the
13404ACPI spec, since it currently (incorrectly) states that packages larger
13405than
13406255 elements are not allowed.
13407
13408The disassembler now correctly handles variable length packages and
13409packages
13410larger than 255 elements.
13411
13412----------------------------------------
1341308 April 2005.  Summary of changes for version 20050408:
13414
134151) ACPI CA Core Subsystem:
13416
13417Fixed three cases in the interpreter where an "index" argument to an ASL
13418function was still (internally) 32 bits instead of the required 64 bits.
13419This was the Index argument to the Index, Mid, and Match operators.
13420
13421The "strupr" function is now permanently local (AcpiUtStrupr), since this
13422is
13423not a POSIX-defined function and not present in most kernel-level C
13424libraries. All references to the C library strupr function have been
13425removed
13426from the headers.
13427
13428Completed the deployment of static functions/prototypes. All prototypes
13429with
13430the static attribute have been moved from the headers to the owning C
13431file.
13432
13433Implemented an extract option (-e) for the AcpiBin utility (AML binary
13434utility). This option allows the utility to extract individual ACPI
13435tables
13436from the output of AcpiDmp. It provides the same functionality of the
13437acpixtract.pl perl script without the worry of setting the correct perl
13438options. AcpiBin runs on Windows and has not yet been generated/validated
13439in
13440the Linux/Unix environment (but should be soon).
13441
13442Updated and fixed the table dump option for AcpiBin (-d). This option
13443converts a single ACPI table to a hex/ascii file, similar to the output
13444of
13445AcpiDmp.
13446
13447Code and Data Size: Current and previous core subsystem library sizes are
13448shown below. These are the code and data sizes for the acpica.lib
13449produced
13450by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13451any ACPI driver or OSPM code. The debug version of the code includes the
13452debug output trace mechanism and has a much larger code and data size.
13453Note
13454that these values will vary depending on the efficiency of the compiler
13455and
13456the compiler options used during generation.
13457
13458  Previous Release:
13459    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13460    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13461  Current Release:
13462    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13463    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13464
13465
134662) iASL Compiler/Disassembler:
13467
13468Disassembler fix: Added a check to ensure that the table length found in
13469the
13470ACPI table header within the input file is not longer than the actual
13471input
13472file size. This indicates some kind of file or table corruption.
13473
13474----------------------------------------
1347529 March 2005.  Summary of changes for version 20050329:
13476
134771) ACPI CA Core Subsystem:
13478
13479An error is now generated if an attempt is made to create a Buffer Field
13480of
13481length zero (A CreateField with a length operand of zero.)
13482
13483The interpreter now issues a warning whenever executable code at the
13484module
13485level is detected during ACPI table load. This will give some idea of the
13486prevalence of this type of code.
13487
13488Implemented support for references to named objects (other than control
13489methods) within package objects.
13490
13491Enhanced package object output for the debug object. Package objects are
13492now
13493completely dumped, showing all elements.
13494
13495Enhanced miscellaneous object output for the debug object. Any object can
13496now be written to the debug object (for example, a device object can be
13497written, and the type of the object will be displayed.)
13498
13499The "static" qualifier has been added to all local functions across both
13500the
13501core subsystem and the iASL compiler.
13502
13503The number of "long" lines (> 80 chars) within the source has been
13504significantly reduced, by about 1/3.
13505
13506Cleaned up all header files to ensure that all CA/iASL functions are
13507prototyped (even static functions) and the formatting is consistent.
13508
13509Two new header files have been added, acopcode.h and acnames.h.
13510
13511Removed several obsolete functions that were no longer used.
13512
13513Code and Data Size: Current and previous core subsystem library sizes are
13514shown below. These are the code and data sizes for the acpica.lib
13515produced
13516by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13517any ACPI driver or OSPM code. The debug version of the code includes the
13518debug output trace mechanism and has a much larger code and data size.
13519Note
13520that these values will vary depending on the efficiency of the compiler
13521and
13522the compiler options used during generation.
13523
13524  Previous Release:
13525    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13526    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13527  Current Release:
13528    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13529    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13530
13531
13532
135332) iASL Compiler/Disassembler:
13534
13535Fixed a problem with the resource descriptor generation/support. For the
13536ResourceSourceIndex and the ResourceSource fields, both must be present,
13537or
13538both must be not present - can't have one without the other.
13539
13540The compiler now returns non-zero from the main procedure if any errors
13541have
13542occurred during the compilation.
13543
13544
13545----------------------------------------
1354609 March 2005.  Summary of changes for version 20050309:
13547
135481) ACPI CA Core Subsystem:
13549
13550The string-to-buffer implicit conversion code has been modified again
13551after
13552a change to the ACPI specification.  In order to match the behavior of
13553the
13554other major ACPI implementation, the target buffer is no longer truncated
13555if
13556the source string is smaller than an existing target buffer. This change
13557requires an update to the ACPI spec, and should eliminate the recent
13558AE_AML_BUFFER_LIMIT issues.
13559
13560The "implicit return" support was rewritten to a new algorithm that
13561solves
13562the general case. Rather than attempt to determine when a method is about
13563to
13564exit, the result of every ASL operator is saved momentarily until the
13565very
13566next ASL operator is executed. Therefore, no matter how the method exits,
13567there will always be a saved implicit return value. This feature is only
13568enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
13569eliminate
13570AE_AML_NO_RETURN_VALUE errors when enabled.
13571
13572Implemented implicit conversion support for the predicate (operand) of
13573the
13574If, Else, and While operators. String and Buffer arguments are
13575automatically
13576converted to Integers.
13577
13578Changed the string-to-integer conversion behavior to match the new ACPI
13579errata: "If no integer object exists, a new integer is created. The ASCII
13580string is interpreted as a hexadecimal constant. Each string character is
13581interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
13582with the first character as the most significant digit, and ending with
13583the
13584first non-hexadecimal character or end-of-string." This means that the
13585first
13586non-hex character terminates the conversion and this is the code that was
13587changed.
13588
13589Fixed a problem where the ObjectType operator would fail (fault) when
13590used
13591on an Index of a Package which pointed to a null package element. The
13592operator now properly returns zero (Uninitialized) in this case.
13593
13594Fixed a problem where the While operator used excessive memory by not
13595properly popping the result stack during execution. There was no memory
13596leak
13597after execution, however. (Code provided by Valery Podrezov.)
13598
13599Fixed a problem where references to control methods within Package
13600objects
13601caused the method to be invoked, instead of producing a reference object
13602pointing to the method.
13603
13604Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
13605to
13606improve performance and reduce code size. (Code provided by Alexey
13607Starikovskiy.)
13608
13609Code and Data Size: Current and previous core subsystem library sizes are
13610shown below. These are the code and data sizes for the acpica.lib
13611produced
13612by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13613any ACPI driver or OSPM code. The debug version of the code includes the
13614debug output trace mechanism and has a much larger code and data size.
13615Note
13616that these values will vary depending on the efficiency of the compiler
13617and
13618the compiler options used during generation.
13619
13620  Previous Release:
13621    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13622    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13623  Current Release:
13624    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13625    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13626
13627
136282) iASL Compiler/Disassembler:
13629
13630Fixed a problem with the Return operator with no arguments. Since the AML
13631grammar for the byte encoding requires an operand for the Return opcode,
13632the
13633compiler now emits a Return(Zero) for this case.  An ACPI specification
13634update has been written for this case.
13635
13636For tables other than the DSDT, namepath optimization is automatically
13637disabled. This is because SSDTs can be loaded anywhere in the namespace,
13638the
13639compiler has no knowledge of where, and thus cannot optimize namepaths.
13640
13641Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
13642inadvertently omitted from the ACPI specification, and will require an
13643update to the spec.
13644
13645The source file scan for ASCII characters is now optional (-a). This
13646change
13647was made because some vendors place non-ascii characters within comments.
13648However, the scan is simply a brute-force byte compare to ensure all
13649characters in the file are in the range 0x00 to 0x7F.
13650
13651Fixed a problem with the CondRefOf operator where the compiler was
13652inappropriately checking for the existence of the target. Since the point
13653of
13654the operator is to check for the existence of the target at run-time, the
13655compiler no longer checks for the target existence.
13656
13657Fixed a problem where errors generated from the internal AML interpreter
13658during constant folding were not handled properly, causing a fault.
13659
13660Fixed a problem with overly aggressive range checking for the Stall
13661operator. The valid range (max 255) is now only checked if the operand is
13662of
13663type Integer. All other operand types cannot be statically checked.
13664
13665Fixed a problem where control method references within the RefOf,
13666DeRefOf,
13667and ObjectType operators were not treated properly. They are now treated
13668as
13669actual references, not method invocations.
13670
13671Fixed and enhanced the "list namespace" option (-ln). This option was
13672broken
13673a number of releases ago.
13674
13675Improved error handling for the Field, IndexField, and BankField
13676operators.
13677The compiler now cleanly reports and recovers from errors in the field
13678component (FieldUnit) list.
13679
13680Fixed a disassembler problem where the optional ResourceDescriptor fields
13681TRS and TTP were not always handled correctly.
13682
13683Disassembler - Comments in output now use "//" instead of "/*"
13684
13685----------------------------------------
1368628 February 2005.  Summary of changes for version 20050228:
13687
136881) ACPI CA Core Subsystem:
13689
13690Fixed a problem where the result of an Index() operator (an object
13691reference) must increment the reference count on the target object for
13692the
13693life of the object reference.
13694
13695Implemented AML Interpreter and Debugger support for the new ACPI 3.0
13696Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
13697WordSpace
13698resource descriptors.
13699
13700Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
13701Space Descriptor" string, indicating interpreter support for the
13702descriptors
13703above.
13704
13705Implemented header support for the new ACPI 3.0 FADT flag bits.
13706
13707Implemented header support for the new ACPI 3.0 PCI Express bits for the
13708PM1
13709status/enable registers.
13710
13711Updated header support for the MADT processor local Apic struct and MADT
13712platform interrupt source struct for new ACPI 3.0 fields.
13713
13714Implemented header support for the SRAT and SLIT ACPI tables.
13715
13716Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
13717flag
13718at runtime.
13719
13720Code and Data Size: Current and previous core subsystem library sizes are
13721shown below. These are the code and data sizes for the acpica.lib
13722produced
13723by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13724any ACPI driver or OSPM code. The debug version of the code includes the
13725debug output trace mechanism and has a much larger code and data size.
13726Note
13727that these values will vary depending on the efficiency of the compiler
13728and
13729the compiler options used during generation.
13730
13731  Previous Release:
13732    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
13733    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
13734  Current Release:
13735    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13736    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13737
13738
137392) iASL Compiler/Disassembler:
13740
13741Fixed a problem with the internal 64-bit String-to-integer conversion
13742with
13743strings less than two characters long.
13744
13745Fixed a problem with constant folding where the result of the Index()
13746operator can not be considered a constant. This means that Index() cannot
13747be
13748a type3 opcode and this will require an update to the ACPI specification.
13749
13750Disassembler: Implemented support for the TTP, MTP, and TRS resource
13751descriptor fields. These fields were inadvertently ignored and not output
13752in
13753the disassembly of the resource descriptor.
13754
13755
13756 ----------------------------------------
1375711 February 2005.  Summary of changes for version 20050211:
13758
137591) ACPI CA Core Subsystem:
13760
13761Implemented ACPI 3.0 support for implicit conversion within the Match()
13762operator. MatchObjects can now be of type integer, buffer, or string
13763instead
13764of just type integer.  Package elements are implicitly converted to the
13765type
13766of the MatchObject. This change aligns the behavior of Match() with the
13767behavior of the other logical operators (LLess(), etc.) It also requires
13768an
13769errata change to the ACPI specification as this support was intended for
13770ACPI 3.0, but was inadvertently omitted.
13771
13772Fixed a problem with the internal implicit "to buffer" conversion.
13773Strings
13774that are converted to buffers will cause buffer truncation if the string
13775is
13776smaller than the target buffer. Integers that are converted to buffers
13777will
13778not cause buffer truncation, only zero extension (both as per the ACPI
13779spec.) The problem was introduced when code was added to truncate the
13780buffer, but this should not be performed in all cases, only the string
13781case.
13782
13783Fixed a problem with the Buffer and Package operators where the
13784interpreter
13785would get confused if two such operators were used as operands to an ASL
13786operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
13787stack was not being popped after the execution of these operators,
13788resulting
13789in an AE_NO_RETURN_VALUE exception.
13790
13791Fixed a problem with constructs of the form Store(Index(...),...). The
13792reference object returned from Index was inadvertently resolved to an
13793actual
13794value. This problem was introduced in version 20050114 when the behavior
13795of
13796Store() was modified to restrict the object types that can be used as the
13797source operand (to match the ACPI specification.)
13798
13799Reduced excessive stack use within the AcpiGetObjectInfo procedure.
13800
13801Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
13802
13803Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
13804
13805Code and Data Size: Current and previous core subsystem library sizes are
13806shown below. These are the code and data sizes for the acpica.lib
13807produced
13808by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13809any ACPI driver or OSPM code. The debug version of the code includes the
13810debug output trace mechanism and has a much larger code and data size.
13811Note
13812that these values will vary depending on the efficiency of the compiler
13813and
13814the compiler options used during generation.
13815
13816  Previous Release:
13817    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
13818    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
13819  Current Release:
13820    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
13821    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
13822
13823
138242) iASL Compiler/Disassembler:
13825
13826Fixed a code generation problem in the constant folding optimization code
13827where incorrect code was generated if a constant was reduced to a buffer
13828object (i.e., a reduced type 5 opcode.)
13829
13830Fixed a typechecking problem for the ToBuffer operator. Caused by an
13831incorrect return type in the internal opcode information table.
13832
13833----------------------------------------
1383425 January 2005.  Summary of changes for version 20050125:
13835
138361) ACPI CA Core Subsystem:
13837
13838Fixed a recently introduced problem with the Global Lock where the
13839underlying semaphore was not created.  This problem was introduced in
13840version 20050114, and caused an AE_AML_NO_OPERAND exception during an
13841Acquire() operation on _GL.
13842
13843The local object cache is now optional, and is disabled by default. Both
13844AcpiExec and the iASL compiler enable the cache because they run in user
13845mode and this enhances their performance. #define
13846ACPI_ENABLE_OBJECT_CACHE
13847to enable the local cache.
13848
13849Fixed an issue in the internal function AcpiUtEvaluateObject concerning
13850the
13851optional "implicit return" support where an error was returned if no
13852return
13853object was expected, but one was implicitly returned. AE_OK is now
13854returned
13855in this case and the implicitly returned object is deleted.
13856AcpiUtEvaluateObject is only occasionally used, and only to execute
13857reserved
13858methods such as _STA and _INI where the return type is known up front.
13859
13860Fixed a few issues with the internal convert-to-integer code. It now
13861returns
13862an error if an attempt is made to convert a null string, a string of only
13863blanks/tabs, or a zero-length buffer. This affects both implicit
13864conversion
13865and explicit conversion via the ToInteger() operator.
13866
13867The internal debug code in AcpiUtAcquireMutex has been commented out. It
13868is
13869not needed for normal operation and should increase the performance of
13870the
13871entire subsystem. The code remains in case it is needed for debug
13872purposes
13873again.
13874
13875The AcpiExec source and makefile are included in the Unix/Linux package
13876for
13877the first time.
13878
13879Code and Data Size: Current and previous core subsystem library sizes are
13880shown below. These are the code and data sizes for the acpica.lib
13881produced
13882by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13883any ACPI driver or OSPM code. The debug version of the code includes the
13884debug output trace mechanism and has a much larger code and data size.
13885Note
13886that these values will vary depending on the efficiency of the compiler
13887and
13888the compiler options used during generation.
13889
13890  Previous Release:
13891    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
13892    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
13893  Current Release:
13894    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
13895    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
13896
138972) iASL Compiler/Disassembler:
13898
13899Switch/Case support: A warning is now issued if the type of the Switch
13900value
13901cannot be determined at compile time. For example, Switch(Arg0) will
13902generate the warning, and the type is assumed to be an integer. As per
13903the
13904ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
13905the
13906warning.
13907
13908Switch/Case support: Implemented support for buffer and string objects as
13909the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
13910buffers and strings.
13911
13912Switch/Case support: The emitted code for the LEqual() comparisons now
13913uses
13914the switch value as the first operand, not the second. The case value is
13915now
13916the second operand, and this allows the case value to be implicitly
13917converted to the type of the switch value, not the other way around.
13918
13919Switch/Case support: Temporary variables are now emitted immediately
13920within
13921the control method, not at the global level. This means that there are
13922now
1392336 temps available per-method, not 36 temps per-module as was the case
13924with
13925the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
13926
13927----------------------------------------
1392814 January 2005.  Summary of changes for version 20050114:
13929
13930Added 2005 copyright to all module headers.  This affects every module in
13931the core subsystem, iASL compiler, and the utilities.
13932
139331) ACPI CA Core Subsystem:
13934
13935Fixed an issue with the String-to-Buffer conversion code where the string
13936null terminator was not included in the buffer after conversion, but
13937there
13938is existing ASL that assumes the string null terminator is included. This
13939is
13940the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
13941introduced in the previous version when the code was updated to correctly
13942set the converted buffer size as per the ACPI specification. The ACPI
13943spec
13944is ambiguous and will be updated to specify that the null terminator must
13945be
13946included in the converted buffer. This also affects the ToBuffer() ASL
13947operator.
13948
13949Fixed a problem with the Mid() ASL/AML operator where it did not work
13950correctly on Buffer objects. Newly created sub-buffers were not being
13951marked
13952as initialized.
13953
13954
13955Fixed a problem in AcpiTbFindTable where incorrect string compares were
13956performed on the OemId and OemTableId table header fields.  These fields
13957are
13958not null terminated, so strncmp is now used instead of strcmp.
13959
13960Implemented a restriction on the Store() ASL/AML operator to align the
13961behavior with the ACPI specification.  Previously, any object could be
13962used
13963as the source operand.  Now, the only objects that may be used are
13964Integers,
13965Buffers, Strings, Packages, Object References, and DDB Handles.  If
13966necessary, the original behavior can be restored by enabling the
13967EnableInterpreterSlack flag.
13968
13969Enhanced the optional "implicit return" support to allow an implicit
13970return
13971value from methods that are invoked externally via the AcpiEvaluateObject
13972interface.  This enables implicit returns from the _STA and _INI methods,
13973for example.
13974
13975Changed the Revision() ASL/AML operator to return the current version of
13976the
13977AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
13978returned
13979the supported ACPI version (This is the function of the _REV method).
13980
13981Updated the _REV predefined method to return the currently supported
13982version
13983of ACPI, now 3.
13984
13985Implemented batch mode option for the AcpiExec utility (-b).
13986
13987Code and Data Size: Current and previous core subsystem library sizes are
13988shown below. These are the code and data sizes for the acpica.lib
13989produced
13990by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13991any ACPI driver or OSPM code. The debug version of the code includes the
13992debug output trace mechanism and has a much larger code and data size.
13993Note
13994that these values will vary depending on the efficiency of the compiler
13995and
13996the compiler options used during generation.
13997
13998  Previous Release:
13999    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14000    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14001  Current Release:
14002    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
14003    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
14004
14005----------------------------------------
1400610 December 2004.  Summary of changes for version 20041210:
14007
14008ACPI 3.0 support is nearing completion in both the iASL compiler and the
14009ACPI CA core subsystem.
14010
140111) ACPI CA Core Subsystem:
14012
14013Fixed a problem in the ToDecimalString operator where the resulting
14014string
14015length was incorrectly calculated. The length is now calculated exactly,
14016eliminating incorrect AE_STRING_LIMIT exceptions.
14017
14018Fixed a problem in the ToHexString operator to allow a maximum 200
14019character
14020string to be produced.
14021
14022Fixed a problem in the internal string-to-buffer and buffer-to-buffer
14023copy
14024routine where the length of the resulting buffer was not truncated to the
14025new size (if the target buffer already existed).
14026
14027Code and Data Size: Current and previous core subsystem library sizes are
14028shown below. These are the code and data sizes for the acpica.lib
14029produced
14030by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14031any ACPI driver or OSPM code. The debug version of the code includes the
14032debug output trace mechanism and has a much larger code and data size.
14033Note
14034that these values will vary depending on the efficiency of the compiler
14035and
14036the compiler options used during generation.
14037
14038  Previous Release:
14039    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14040    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14041  Current Release:
14042    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14043    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14044
14045
140462) iASL Compiler/Disassembler:
14047
14048Implemented the new ACPI 3.0 resource template macros - DWordSpace,
14049ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
14050Includes support in the disassembler.
14051
14052Implemented support for the new (ACPI 3.0) parameter to the Register
14053macro,
14054AccessSize.
14055
14056Fixed a problem where the _HE resource name for the Interrupt macro was
14057referencing bit 0 instead of bit 1.
14058
14059Implemented check for maximum 255 interrupts in the Interrupt macro.
14060
14061Fixed a problem with the predefined resource descriptor names where
14062incorrect AML code was generated if the offset within the resource buffer
14063was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
14064but did not update the surrounding package lengths.
14065
14066Changes to the Dma macro:  All channels within the channel list must be
14067in
14068the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
14069optional (default is BusMaster).
14070
14071Implemented check for maximum 7 data bytes for the VendorShort macro.
14072
14073The ReadWrite parameter is now optional for the Memory32 and similar
14074macros.
14075
14076----------------------------------------
1407703 December 2004.  Summary of changes for version 20041203:
14078
140791) ACPI CA Core Subsystem:
14080
14081The low-level field insertion/extraction code (exfldio) has been
14082completely
14083rewritten to eliminate unnecessary complexity, bugs, and boundary
14084conditions.
14085
14086Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
14087ToDecimalString
14088operators where the input operand could be inadvertently deleted if no
14089conversion was necessary (e.g., if the input to ToInteger was an Integer
14090object.)
14091
14092Fixed a problem with the ToDecimalString and ToHexString where an
14093incorrect
14094exception code was returned if the resulting string would be > 200 chars.
14095AE_STRING_LIMIT is now returned.
14096
14097Fixed a problem with the Concatenate operator where AE_OK was always
14098returned, even if the operation failed.
14099
14100Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
14101semaphores to be allocated.
14102
14103Code and Data Size: Current and previous core subsystem library sizes are
14104shown below. These are the code and data sizes for the acpica.lib
14105produced
14106by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14107any ACPI driver or OSPM code. The debug version of the code includes the
14108debug output trace mechanism and has a much larger code and data size.
14109Note
14110that these values will vary depending on the efficiency of the compiler
14111and
14112the compiler options used during generation.
14113
14114  Previous Release:
14115    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14116    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14117  Current Release:
14118    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14119    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14120
14121
141222) iASL Compiler/Disassembler:
14123
14124Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
14125recently introduced in 20041119.
14126
14127Fixed a problem with the ToUUID macro where the upper nybble of each
14128buffer
14129byte was inadvertently set to zero.
14130
14131----------------------------------------
1413219 November 2004.  Summary of changes for version 20041119:
14133
141341) ACPI CA Core Subsystem:
14135
14136Fixed a problem in the internal ConvertToInteger routine where new
14137integers
14138were not truncated to 32 bits for 32-bit ACPI tables. This routine
14139converts
14140buffers and strings to integers.
14141
14142Implemented support to store a value to an Index() on a String object.
14143This
14144is an ACPI 2.0 feature that had not yet been implemented.
14145
14146Implemented new behavior for storing objects to individual package
14147elements
14148(via the Index() operator). The previous behavior was to invoke the
14149implicit
14150conversion rules if an object was already present at the index.  The new
14151behavior is to simply delete any existing object and directly store the
14152new
14153object. Although the ACPI specification seems unclear on this subject,
14154other
14155ACPI implementations behave in this manner.  (This is the root of the
14156AE_BAD_HEX_CONSTANT issue.)
14157
14158Modified the RSDP memory scan mechanism to support the extended checksum
14159for
14160ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
14161RSDP signature is found with a valid checksum.
14162
14163Code and Data Size: Current and previous core subsystem library sizes are
14164shown below. These are the code and data sizes for the acpica.lib
14165produced
14166by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14167any ACPI driver or OSPM code. The debug version of the code includes the
14168debug output trace mechanism and has a much larger code and data size.
14169Note
14170that these values will vary depending on the efficiency of the compiler
14171and
14172the compiler options used during generation.
14173
14174  Previous Release:
14175    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14176    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14177  Current Release:
14178    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14179    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14180
14181
141822) iASL Compiler/Disassembler:
14183
14184Fixed a missing semicolon in the aslcompiler.y file.
14185
14186----------------------------------------
1418705 November 2004.  Summary of changes for version 20041105:
14188
141891) ACPI CA Core Subsystem:
14190
14191Implemented support for FADT revision 2.  This was an interim table
14192(between
14193ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
14194
14195Implemented optional support to allow uninitialized LocalX and ArgX
14196variables in a control method.  The variables are initialized to an
14197Integer
14198object with a value of zero.  This support is enabled by setting the
14199AcpiGbl_EnableInterpreterSlack flag to TRUE.
14200
14201Implemented support for Integer objects for the SizeOf operator.  Either
142024
14203or 8 is returned, depending on the current integer size (32-bit or 64-
14204bit,
14205depending on the parent table revision).
14206
14207Fixed a problem in the implementation of the SizeOf and ObjectType
14208operators
14209where the operand was resolved to a value too early, causing incorrect
14210return values for some objects.
14211
14212Fixed some possible memory leaks during exceptional conditions.
14213
14214Code and Data Size: Current and previous core subsystem library sizes are
14215shown below. These are the code and data sizes for the acpica.lib
14216produced
14217by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14218any ACPI driver or OSPM code. The debug version of the code includes the
14219debug output trace mechanism and has a much larger code and data size.
14220Note
14221that these values will vary depending on the efficiency of the compiler
14222and
14223the compiler options used during generation.
14224
14225  Previous Release:
14226    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14227    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14228  Current Release:
14229    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14230    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14231
14232
142332) iASL Compiler/Disassembler:
14234
14235Implemented support for all ACPI 3.0 reserved names and methods.
14236
14237Implemented all ACPI 3.0 grammar elements in the front-end, including
14238support for semicolons.
14239
14240Implemented the ACPI 3.0 Function() and ToUUID() macros
14241
14242Fixed a problem in the disassembler where a Scope() operator would not be
14243emitted properly if the target of the scope was in another table.
14244
14245----------------------------------------
1424615 October 2004.  Summary of changes for version 20041015:
14247
14248Note:  ACPI CA is currently undergoing an in-depth and complete formal
14249evaluation to test/verify the following areas. Other suggestions are
14250welcome. This will result in an increase in the frequency of releases and
14251the number of bug fixes in the next few months.
14252  - Functional tests for all ASL/AML operators
14253  - All implicit/explicit type conversions
14254  - Bit fields and operation regions
14255  - 64-bit math support and 32-bit-only "truncated" math support
14256  - Exceptional conditions, both compiler and interpreter
14257  - Dynamic object deletion and memory leaks
14258  - ACPI 3.0 support when implemented
14259  - External interfaces to the ACPI subsystem
14260
14261
142621) ACPI CA Core Subsystem:
14263
14264Fixed two alignment issues on 64-bit platforms - within debug statements
14265in
14266AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
14267Address
14268field within the non-aligned ACPI generic address structure.
14269
14270Fixed a problem in the Increment and Decrement operators where incorrect
14271operand resolution could result in the inadvertent modification of the
14272original integer when the integer is passed into another method as an
14273argument and the arg is then incremented/decremented.
14274
14275Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
14276bit
14277BCD number were truncated during conversion.
14278
14279Fixed a problem in the ToDecimal operator where the length of the
14280resulting
14281string could be set incorrectly too long if the input operand was a
14282Buffer
14283object.
14284
14285Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
14286(0)
14287within a buffer would prematurely terminate a compare between buffer
14288objects.
14289
14290Added a check for string overflow (>200 characters as per the ACPI
14291specification) during the Concatenate operator with two string operands.
14292
14293Code and Data Size: Current and previous core subsystem library sizes are
14294shown below. These are the code and data sizes for the acpica.lib
14295produced
14296by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14297any ACPI driver or OSPM code. The debug version of the code includes the
14298debug output trace mechanism and has a much larger code and data size.
14299Note
14300that these values will vary depending on the efficiency of the compiler
14301and
14302the compiler options used during generation.
14303
14304  Previous Release:
14305    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14306    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14307  Current Release:
14308    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14309    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14310
14311
14312
143132) iASL Compiler/Disassembler:
14314
14315Allow the use of the ObjectType operator on uninitialized Locals and Args
14316(returns 0 as per the ACPI specification).
14317
14318Fixed a problem where the compiler would fault if there was a syntax
14319error
14320in the FieldName of all of the various CreateXXXField operators.
14321
14322Disallow the use of lower case letters within the EISAID macro, as per
14323the
14324ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
14325Where
14326U is an uppercase letter and N is a hex digit.
14327
14328
14329----------------------------------------
1433006 October 2004.  Summary of changes for version 20041006:
14331
143321) ACPI CA Core Subsystem:
14333
14334Implemented support for the ACPI 3.0 Timer operator. This ASL function
14335implements a 64-bit timer with 100 nanosecond granularity.
14336
14337Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
14338implement the ACPI 3.0 Timer operator.  This allows the host OS to
14339implement
14340the timer with the best clock available. Also, it keeps the core
14341subsystem
14342out of the clock handling business, since the host OS (usually) performs
14343this function.
14344
14345Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
14346functions use a 64-bit address which is part of the packed ACPI Generic
14347Address Structure. Since the structure is non-aligned, the alignment
14348macros
14349are now used to extract the address to a local variable before use.
14350
14351Fixed a problem where the ToInteger operator assumed all input strings
14352were
14353hexadecimal. The operator now handles both decimal strings and hex
14354strings
14355(prefixed with "0x").
14356
14357Fixed a problem where the string length in the string object created as a
14358result of the internal ConvertToString procedure could be incorrect. This
14359potentially affected all implicit conversions and also the
14360ToDecimalString
14361and ToHexString operators.
14362
14363Fixed two problems in the ToString operator. If the length parameter was
14364zero, an incorrect string object was created and the value of the input
14365length parameter was inadvertently changed from zero to Ones.
14366
14367Fixed a problem where the optional ResourceSource string in the
14368ExtendedIRQ
14369resource macro was ignored.
14370
14371Simplified the interfaces to the internal division functions, reducing
14372code
14373size and complexity.
14374
14375Code and Data Size: Current and previous core subsystem library sizes are
14376shown below. These are the code and data sizes for the acpica.lib
14377produced
14378by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14379any ACPI driver or OSPM code. The debug version of the code includes the
14380debug output trace mechanism and has a much larger code and data size.
14381Note
14382that these values will vary depending on the efficiency of the compiler
14383and
14384the compiler options used during generation.
14385
14386  Previous Release:
14387    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14388    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14389  Current Release:
14390    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14391    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14392
14393
143942) iASL Compiler/Disassembler:
14395
14396Implemented support for the ACPI 3.0 Timer operator.
14397
14398Fixed a problem where the Default() operator was inadvertently ignored in
14399a
14400Switch/Case block.  This was a problem in the translation of the Switch
14401statement to If...Else pairs.
14402
14403Added support to allow a standalone Return operator, with no parentheses
14404(or
14405operands).
14406
14407Fixed a problem with code generation for the ElseIf operator where the
14408translated Else...If parse tree was improperly constructed leading to the
14409loss of some code.
14410
14411----------------------------------------
1441222 September 2004.  Summary of changes for version 20040922:
14413
144141) ACPI CA Core Subsystem:
14415
14416Fixed a problem with the implementation of the LNot() operator where
14417"Ones"
14418was not returned for the TRUE case. Changed the code to return Ones
14419instead
14420of (!Arg) which was usually 1. This change affects iASL constant folding
14421for
14422this operator also.
14423
14424Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
14425not
14426initialized properly -- Now zero the entire buffer in this case where the
14427buffer already exists.
14428
14429Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
14430Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
14431related code considerably. This will require changes/updates to all OS
14432interface layers (OSLs.)
14433
14434Implemented a new external interface, AcpiInstallExceptionHandler, to
14435allow
14436a system exception handler to be installed. This handler is invoked upon
14437any
14438run-time exception that occurs during control method execution.
14439
14440Added support for the DSDT in AcpiTbFindTable. This allows the
14441DataTableRegion() operator to access the local copy of the DSDT.
14442
14443Code and Data Size: Current and previous core subsystem library sizes are
14444shown below. These are the code and data sizes for the acpica.lib
14445produced
14446by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14447any ACPI driver or OSPM code. The debug version of the code includes the
14448debug output trace mechanism and has a much larger code and data size.
14449Note
14450that these values will vary depending on the efficiency of the compiler
14451and
14452the compiler options used during generation.
14453
14454  Previous Release:
14455    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14456    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14457  Current Release:
14458    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14459    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14460
14461
144622) iASL Compiler/Disassembler:
14463
14464Fixed a problem with constant folding and the LNot operator. LNot was
14465returning 1 in the TRUE case, not Ones as per the ACPI specification.
14466This
14467could result in the generation of an incorrect folded/reduced constant.
14468
14469End-Of-File is now allowed within a "//"-style comment.  A parse error no
14470longer occurs if such a comment is at the very end of the input ASL
14471source
14472file.
14473
14474Implemented the "-r" option to override the Revision in the table header.
14475The initial use of this option will be to simplify the evaluation of the
14476AML
14477interpreter by allowing a single ASL source module to be compiled for
14478either
1447932-bit or 64-bit integers.
14480
14481
14482----------------------------------------
1448327 August 2004.  Summary of changes for version 20040827:
14484
144851) ACPI CA Core Subsystem:
14486
14487- Implemented support for implicit object conversion in the non-numeric
14488logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
14489and
14490LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
14491the second operand is implicitly converted on the fly to match the type
14492of
14493the first operand.  For example:
14494
14495    LEqual (Source1, Source2)
14496
14497Source1 and Source2 must each evaluate to an integer, a string, or a
14498buffer.
14499The data type of Source1 dictates the required type of Source2. Source2
14500is
14501implicitly converted if necessary to match the type of Source1.
14502
14503- Updated and corrected the behavior of the string conversion support.
14504The
14505rules concerning conversion of buffers to strings (according to the ACPI
14506specification) are as follows:
14507
14508ToDecimalString - explicit byte-wise conversion of buffer to string of
14509decimal values (0-255) separated by commas. ToHexString - explicit byte-
14510wise
14511conversion of buffer to string of hex values (0-FF) separated by commas.
14512ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
14513byte
14514copy with no transform except NULL terminated. Any other implicit buffer-
14515to-
14516string conversion - byte-wise conversion of buffer to string of hex
14517values
14518(0-FF) separated by spaces.
14519
14520- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
14521
14522- Fixed a problem in AcpiNsGetPathnameLength where the returned length
14523was
14524one byte too short in the case of a node in the root scope.  This could
14525cause a fault during debug output.
14526
14527- Code and Data Size: Current and previous core subsystem library sizes
14528are
14529shown below.  These are the code and data sizes for the acpica.lib
14530produced
14531by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14532any ACPI driver or OSPM code.  The debug version of the code includes the
14533debug output trace mechanism and has a much larger code and data size.
14534Note
14535that these values will vary depending on the efficiency of the compiler
14536and
14537the compiler options used during generation.
14538
14539  Previous Release:
14540    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14541    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14542  Current Release:
14543    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14544    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14545
14546
145472) iASL Compiler/Disassembler:
14548
14549- Fixed a Linux generation error.
14550
14551
14552----------------------------------------
1455316 August 2004.  Summary of changes for version 20040816:
14554
145551) ACPI CA Core Subsystem:
14556
14557Designed and implemented support within the AML interpreter for the so-
14558called "implicit return".  This support returns the result of the last
14559ASL
14560operation within a control method, in the absence of an explicit Return()
14561operator.  A few machines depend on this behavior, even though it is not
14562explicitly supported by the ASL language.  It is optional support that
14563can
14564be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
14565
14566Removed support for the PCI_Config address space from the internal low
14567level
14568hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
14569support was not used internally, and would not work correctly anyway
14570because
14571the PCI bus number and segment number were not supported.  There are
14572separate interfaces for PCI configuration space access because of the
14573unique
14574interface.
14575
14576Code and Data Size: Current and previous core subsystem library sizes are
14577shown below.  These are the code and data sizes for the acpica.lib
14578produced
14579by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14580any ACPI driver or OSPM code.  The debug version of the code includes the
14581debug output trace mechanism and has a much larger code and data size.
14582Note
14583that these values will vary depending on the efficiency of the compiler
14584and
14585the compiler options used during generation.
14586
14587  Previous Release:
14588    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14589    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14590  Current Release:
14591    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14592    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14593
14594
145952) iASL Compiler/Disassembler:
14596
14597Fixed a problem where constants in ASL expressions at the root level (not
14598within a control method) could be inadvertently truncated during code
14599generation.  This problem was introduced in the 20040715 release.
14600
14601
14602----------------------------------------
1460315 July 2004.  Summary of changes for version 20040715:
14604
146051) ACPI CA Core Subsystem:
14606
14607Restructured the internal HW GPE interfaces to pass/track the current
14608state
14609of interrupts (enabled/disabled) in order to avoid possible deadlock and
14610increase flexibility of the interfaces.
14611
14612Implemented a "lexicographical compare" for String and Buffer objects
14613within
14614the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
14615-
14616as per further clarification to the ACPI specification.  Behavior is
14617similar
14618to C library "strcmp".
14619
14620Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
14621external function.  In the 32-bit non-debug case, the stack use has been
14622reduced from 168 bytes to 32 bytes.
14623
14624Deployed a new run-time configuration flag,
14625AcpiGbl_EnableInterpreterSlack,
14626whose purpose is to allow the AML interpreter to forgive certain bad AML
14627constructs.  Default setting is FALSE.
14628
14629Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
14630IO
14631support code.  If enabled, it allows field access to go beyond the end of
14632a
14633region definition if the field is within the region length rounded up to
14634the
14635next access width boundary (a common coding error.)
14636
14637Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
14638ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
14639these
14640symbols are lowercase by the latest version of the AcpiSrc tool.
14641
14642The prototypes for the PCI interfaces in acpiosxf.h have been updated to
14643rename "Register" to simply "Reg" to prevent certain compilers from
14644complaining.
14645
14646Code and Data Size: Current and previous core subsystem library sizes are
14647shown below.  These are the code and data sizes for the acpica.lib
14648produced
14649by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14650any ACPI driver or OSPM code.  The debug version of the code includes the
14651debug output trace mechanism and has a much larger code and data size.
14652Note
14653that these values will vary depending on the efficiency of the compiler
14654and
14655the compiler options used during generation.
14656
14657  Previous Release:
14658    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14659    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14660  Current Release:
14661    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14662    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14663
14664
146652) iASL Compiler/Disassembler:
14666
14667Implemented full support for Package objects within the Case() operator.
14668Note: The Break() operator is currently not supported within Case blocks
14669(TermLists) as there is some question about backward compatibility with
14670ACPI
146711.0 interpreters.
14672
14673
14674Fixed a problem where complex terms were not supported properly within
14675the
14676Switch() operator.
14677
14678Eliminated extraneous warning for compiler-emitted reserved names of the
14679form "_T_x".  (Used in Switch/Case operators.)
14680
14681Eliminated optimization messages for "_T_x" objects and small constants
14682within the DefinitionBlock operator.
14683
14684
14685----------------------------------------
1468615 June 2004.  Summary of changes for version 20040615:
14687
146881) ACPI CA Core Subsystem:
14689
14690Implemented support for Buffer and String objects (as per ACPI 2.0) for
14691the
14692following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
14693LLessEqual.
14694
14695All directory names in the entire source package are lower case, as they
14696were in earlier releases.
14697
14698Implemented "Disassemble" command in the AML debugger that will
14699disassemble
14700a single control method.
14701
14702Code and Data Size: Current and previous core subsystem library sizes are
14703shown below.  These are the code and data sizes for the acpica.lib
14704produced
14705by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14706any ACPI driver or OSPM code.  The debug version of the code includes the
14707debug output trace mechanism and has a much larger code and data size.
14708Note
14709that these values will vary depending on the efficiency of the compiler
14710and
14711the compiler options used during generation.
14712
14713  Previous Release:
14714    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
14715    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
14716
14717  Current Release:
14718    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14719    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14720
14721
147222) iASL Compiler/Disassembler:
14723
14724Implemented support for Buffer and String objects (as per ACPI 2.0) for
14725the
14726following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
14727LLessEqual.
14728
14729All directory names in the entire source package are lower case, as they
14730were in earlier releases.
14731
14732Fixed a fault when using the -g or -d<nofilename> options if the FADT was
14733not found.
14734
14735Fixed an issue with the Windows version of the compiler where later
14736versions
14737of Windows place the FADT in the registry under the name "FADT" and not
14738"FACP" as earlier versions did.  This applies when using the -g or -
14739d<nofilename> options.  The compiler now looks for both strings as
14740necessary.
14741
14742Fixed a problem with compiler namepath optimization where a namepath
14743within
14744the Scope() operator could not be optimized if the namepath was a subpath
14745of
14746the current scope path.
14747
14748----------------------------------------
1474927 May 2004.  Summary of changes for version 20040527:
14750
147511) ACPI CA Core Subsystem:
14752
14753Completed a new design and implementation for EBDA (Extended BIOS Data
14754Area)
14755support in the RSDP scan code.  The original code improperly scanned for
14756the
14757EBDA by simply scanning from memory location 0 to 0x400.  The correct
14758method
14759is to first obtain the EBDA pointer from within the BIOS data area, then
14760scan 1K of memory starting at the EBDA pointer.  There appear to be few
14761if
14762any machines that place the RSDP in the EBDA, however.
14763
14764Integrated a fix for a possible fault during evaluation of BufferField
14765arguments.  Obsolete code that was causing the problem was removed.
14766
14767Found and fixed a problem in the Field Support Code where data could be
14768corrupted on a bit field read that starts on an aligned boundary but does
14769not end on an aligned boundary.  Merged the read/write "datum length"
14770calculation code into a common procedure.
14771
14772Rolled in a couple of changes to the FreeBSD-specific header.
14773
14774
14775Code and Data Size: Current and previous core subsystem library sizes are
14776shown below.  These are the code and data sizes for the acpica.lib
14777produced
14778by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14779any ACPI driver or OSPM code.  The debug version of the code includes the
14780debug output trace mechanism and has a much larger code and data size.
14781Note
14782that these values will vary depending on the efficiency of the compiler
14783and
14784the compiler options used during generation.
14785
14786  Previous Release:
14787    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14788    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
14789  Current Release:
14790    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
14791    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
14792
14793
147942) iASL Compiler/Disassembler:
14795
14796Fixed a generation warning produced by some overly-verbose compilers for
14797a
1479864-bit constant.
14799
14800----------------------------------------
1480114 May 2004.  Summary of changes for version 20040514:
14802
148031) ACPI CA Core Subsystem:
14804
14805Fixed a problem where hardware GPE enable bits sometimes not set properly
14806during and after GPE method execution.  Result of 04/27 changes.
14807
14808Removed extra "clear all GPEs" when sleeping/waking.
14809
14810Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
14811AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
14812to
14813the new AcpiEv* calls as appropriate.
14814
14815ACPI_OS_NAME was removed from the OS-specific headers.  The default name
14816is
14817now "Microsoft Windows NT" for maximum compatibility.  However this can
14818be
14819changed by modifying the acconfig.h file.
14820
14821Allow a single invocation of AcpiInstallNotifyHandler for a handler that
14822traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
14823
14824Run _INI methods on ThermalZone objects.  This is against the ACPI
14825specification, but there is apparently ASL code in the field that has
14826these
14827_INI methods, and apparently "other" AML interpreters execute them.
14828
14829Performed a full 16/32/64 bit lint that resulted in some small changes.
14830
14831Added a sleep simulation command to the AML debugger to test sleep code.
14832
14833Code and Data Size: Current and previous core subsystem library sizes are
14834shown below.  These are the code and data sizes for the acpica.lib
14835produced
14836by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14837any ACPI driver or OSPM code.  The debug version of the code includes the
14838debug output trace mechanism and has a much larger code and data size.
14839Note
14840that these values will vary depending on the efficiency of the compiler
14841and
14842the compiler options used during generation.
14843
14844  Previous Release:
14845    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14846    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
14847  Current Release:
14848    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14849    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
14850
14851----------------------------------------
1485227 April 2004.  Summary of changes for version 20040427:
14853
148541) ACPI CA Core Subsystem:
14855
14856Completed a major overhaul of the GPE handling within ACPI CA.  There are
14857now three types of GPEs:  wake-only, runtime-only, and combination
14858wake/run.
14859The only GPEs allowed to be combination wake/run are for button-style
14860devices such as a control-method power button, control-method sleep
14861button,
14862or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
14863not
14864referenced by any _PRW methods are marked for "runtime" and hardware
14865enabled.  Any GPE that is referenced by a _PRW method is marked for
14866"wake"
14867(and disabled at runtime).  However, at sleep time, only those GPEs that
14868have been specifically enabled for wake via the AcpiEnableGpe interface
14869will
14870actually be hardware enabled.
14871
14872A new external interface has been added, AcpiSetGpeType(), that is meant
14873to
14874be used by device drivers to force a GPE to a particular type.  It will
14875be
14876especially useful for the drivers for the button devices mentioned above.
14877
14878Completed restructuring of the ACPI CA initialization sequence so that
14879default operation region handlers are installed before GPEs are
14880initialized
14881and the _PRW methods are executed.  This will prevent errors when the
14882_PRW
14883methods attempt to access system memory or I/O space.
14884
14885GPE enable/disable no longer reads the GPE enable register.  We now keep
14886the
14887enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
14888thus no longer depend on the hardware to maintain these bits.
14889
14890Always clear the wake status and fixed/GPE status bits before sleep, even
14891for state S5.
14892
14893Improved the AML debugger output for displaying the GPE blocks and their
14894current status.
14895
14896Added new strings for the _OSI method, of the form "Windows 2001 SPx"
14897where
14898x = 0,1,2,3,4.
14899
14900Fixed a problem where the physical address was incorrectly calculated
14901when
14902the Load() operator was used to directly load from an Operation Region
14903(vs.
14904loading from a Field object.)  Also added check for minimum table length
14905for
14906this case.
14907
14908Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
14909mutex release.
14910
14911Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
14912consistency with the other fields returned.
14913
14914Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
14915structure for each GPE in the system, so the size of this structure is
14916important.
14917
14918CPU stack requirement reduction:  Cleaned up the method execution and
14919object
14920evaluation paths so that now a parameter structure is passed, instead of
14921copying the various method parameters over and over again.
14922
14923In evregion.c:  Correctly exit and reenter the interpreter region if and
14924only if dispatching an operation region request to a user-installed
14925handler.
14926Do not exit/reenter when dispatching to a default handler (e.g., default
14927system memory or I/O handlers)
14928
14929
14930Notes for updating drivers for the new GPE support.  The following
14931changes
14932must be made to ACPI-related device drivers that are attached to one or
14933more
14934GPEs: (This information will be added to the ACPI CA Programmer
14935Reference.)
14936
149371) AcpiInstallGpeHandler no longer automatically enables the GPE, you
14938must
14939explicitly call AcpiEnableGpe.
149402) There is a new interface called AcpiSetGpeType. This should be called
14941before enabling the GPE.  Also, this interface will automatically disable
14942the GPE if it is currently enabled.
149433) AcpiEnableGpe no longer supports a GPE type flag.
14944
14945Specific drivers that must be changed:
149461) EC driver:
14947    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
14948AeGpeHandler, NULL);
14949    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
14950    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
14951
149522) Button Drivers (Power, Lid, Sleep):
14953Run _PRW method under parent device
14954If _PRW exists: /* This is a control-method button */
14955    Extract GPE number and possibly GpeDevice
14956    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
14957    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
14958
14959For all other devices that have _PRWs, we automatically set the GPE type
14960to
14961ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
14962This
14963must be done on a selective basis, usually requiring some kind of user
14964app
14965to allow the user to pick the wake devices.
14966
14967
14968Code and Data Size: Current and previous core subsystem library sizes are
14969shown below.  These are the code and data sizes for the acpica.lib
14970produced
14971by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14972any ACPI driver or OSPM code.  The debug version of the code includes the
14973debug output trace mechanism and has a much larger code and data size.
14974Note
14975that these values will vary depending on the efficiency of the compiler
14976and
14977the compiler options used during generation.
14978
14979  Previous Release:
14980    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
14981    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
14982  Current Release:
14983
14984    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14985    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
14986
14987
14988
14989----------------------------------------
1499002 April 2004.  Summary of changes for version 20040402:
14991
149921) ACPI CA Core Subsystem:
14993
14994Fixed an interpreter problem where an indirect store through an ArgX
14995parameter was incorrectly applying the "implicit conversion rules" during
14996the store.  From the ACPI specification: "If the target is a method local
14997or
14998argument (LocalX or ArgX), no conversion is performed and the result is
14999stored directly to the target".  The new behavior is to disable implicit
15000conversion during ALL stores to an ArgX.
15001
15002Changed the behavior of the _PRW method scan to ignore any and all errors
15003returned by a given _PRW.  This prevents the scan from aborting from the
15004failure of any single _PRW.
15005
15006Moved the runtime configuration parameters from the global init procedure
15007to
15008static variables in acglobal.h.  This will allow the host to override the
15009default values easily.
15010
15011Code and Data Size: Current and previous core subsystem library sizes are
15012shown below.  These are the code and data sizes for the acpica.lib
15013produced
15014by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15015any ACPI driver or OSPM code.  The debug version of the code includes the
15016debug output trace mechanism and has a much larger code and data size.
15017Note
15018that these values will vary depending on the efficiency of the compiler
15019and
15020the compiler options used during generation.
15021
15022  Previous Release:
15023    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15024    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15025  Current Release:
15026    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15027    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15028
15029
150302) iASL Compiler/Disassembler:
15031
15032iASL now fully disassembles SSDTs.  However, External() statements are
15033not
15034generated automatically for unresolved symbols at this time.  This is a
15035planned feature for future implementation.
15036
15037Fixed a scoping problem in the disassembler that occurs when the type of
15038the
15039target of a Scope() operator is overridden.  This problem caused an
15040incorrectly nested internal namespace to be constructed.
15041
15042Any warnings or errors that are emitted during disassembly are now
15043commented
15044out automatically so that the resulting file can be recompiled without
15045any
15046hand editing.
15047
15048----------------------------------------
1504926 March 2004.  Summary of changes for version 20040326:
15050
150511) ACPI CA Core Subsystem:
15052
15053Implemented support for "wake" GPEs via interaction between GPEs and the
15054_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
15055identified as a WAKE GPE and by default will no longer be enabled at
15056runtime.  Previously, we were blindly enabling all GPEs with a
15057corresponding
15058_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
15059We
15060believe this has been the cause of thousands of "spurious" GPEs on some
15061systems.
15062
15063This new GPE behavior is can be reverted to the original behavior (enable
15064ALL GPEs at runtime) via a runtime flag.
15065
15066Fixed a problem where aliased control methods could not access objects
15067properly.  The proper scope within the namespace was not initialized
15068(transferred to the target of the aliased method) before executing the
15069target method.
15070
15071Fixed a potential race condition on internal object deletion on the
15072return
15073object in AcpiEvaluateObject.
15074
15075Integrated a fix for resource descriptors where both _MEM and _MTP were
15076being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
15077wide, 0x0F instead of 0x03.)
15078
15079Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
15080preventing
15081a
15082fault in some cases.
15083
15084Updated Notify() values for debug statements in evmisc.c
15085
15086Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
15087
15088Code and Data Size: Current and previous core subsystem library sizes are
15089shown below.  These are the code and data sizes for the acpica.lib
15090produced
15091by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15092any ACPI driver or OSPM code.  The debug version of the code includes the
15093debug output trace mechanism and has a much larger code and data size.
15094Note
15095that these values will vary depending on the efficiency of the compiler
15096and
15097the compiler options used during generation.
15098
15099  Previous Release:
15100
15101    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15102    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15103  Current Release:
15104    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15105    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15106
15107----------------------------------------
1510811 March 2004.  Summary of changes for version 20040311:
15109
151101) ACPI CA Core Subsystem:
15111
15112Fixed a problem where errors occurring during the parse phase of control
15113method execution did not abort cleanly.  For example, objects created and
15114installed in the namespace were not deleted.  This caused all subsequent
15115invocations of the method to return the AE_ALREADY_EXISTS exception.
15116
15117Implemented a mechanism to force a control method to "Serialized"
15118execution
15119if the method attempts to create namespace objects. (The root of the
15120AE_ALREADY_EXISTS problem.)
15121
15122Implemented support for the predefined _OSI "internal" control method.
15123Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
15124and
15125"Windows 2001.1", and can be easily upgraded for new strings as
15126necessary.
15127This feature will allow "other" operating systems to execute the fully
15128tested, "Windows" code path through the ASL code
15129
15130Global Lock Support:  Now allows multiple acquires and releases with any
15131internal thread.  Removed concept of "owning thread" for this special
15132mutex.
15133
15134Fixed two functions that were inappropriately declaring large objects on
15135the
15136CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
15137during
15138method execution considerably.
15139
15140Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
15141S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
15142
15143Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
15144defined on the machine.
15145
15146Implemented two runtime options:  One to force all control method
15147execution
15148to "Serialized" to mimic Windows behavior, another to disable _OSI
15149support
15150if it causes problems on a given machine.
15151
15152Code and Data Size: Current and previous core subsystem library sizes are
15153shown below.  These are the code and data sizes for the acpica.lib
15154produced
15155by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15156any ACPI driver or OSPM code.  The debug version of the code includes the
15157debug output trace mechanism and has a much larger code and data size.
15158Note
15159that these values will vary depending on the efficiency of the compiler
15160and
15161the compiler options used during generation.
15162
15163  Previous Release:
15164    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15165    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15166  Current Release:
15167    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15168    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15169
151702) iASL Compiler/Disassembler:
15171
15172Fixed an array size problem for FreeBSD that would cause the compiler to
15173fault.
15174
15175----------------------------------------
1517620 February 2004.  Summary of changes for version 20040220:
15177
15178
151791) ACPI CA Core Subsystem:
15180
15181Implemented execution of _SxD methods for Device objects in the
15182GetObjectInfo interface.
15183
15184Fixed calls to _SST method to pass the correct arguments.
15185
15186Added a call to _SST on wake to restore to "working" state.
15187
15188Check for End-Of-Buffer failure case in the WalkResources interface.
15189
15190Integrated fix for 64-bit alignment issue in acglobal.h by moving two
15191structures to the beginning of the file.
15192
15193After wake, clear GPE status register(s) before enabling GPEs.
15194
15195After wake, clear/enable power button.  (Perhaps we should clear/enable
15196all
15197fixed events upon wake.)
15198
15199Fixed a couple of possible memory leaks in the Namespace manager.
15200
15201Integrated latest acnetbsd.h file.
15202
15203----------------------------------------
1520411 February 2004.  Summary of changes for version 20040211:
15205
15206
152071) ACPI CA Core Subsystem:
15208
15209Completed investigation and implementation of the call-by-reference
15210mechanism for control method arguments.
15211
15212Fixed a problem where a store of an object into an indexed package could
15213fail if the store occurs within a different method than the method that
15214created the package.
15215
15216Fixed a problem where the ToDecimal operator could return incorrect
15217results.
15218
15219Fixed a problem where the CopyObject operator could fail on some of the
15220more
15221obscure objects (e.g., Reference objects.)
15222
15223Improved the output of the Debug object to display buffer, package, and
15224index objects.
15225
15226Fixed a problem where constructs of the form "RefOf (ArgX)" did not
15227return
15228the expected result.
15229
15230Added permanent ACPI_REPORT_ERROR macros for all instances of the
15231ACPI_AML_INTERNAL exception.
15232
15233Integrated latest version of acfreebsd.h
15234
15235----------------------------------------
1523616 January 2004.  Summary of changes for version 20040116:
15237
15238The purpose of this release is primarily to update the copyright years in
15239each module, thus causing a huge number of diffs.  There are a few small
15240functional changes, however.
15241
152421) ACPI CA Core Subsystem:
15243
15244Improved error messages when there is a problem finding one or more of
15245the
15246required base ACPI tables
15247
15248Reintroduced the definition of APIC_HEADER in actbl.h
15249
15250Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
15251
15252Removed extraneous reference to NewObj in dsmthdat.c
15253
152542) iASL compiler
15255
15256Fixed a problem introduced in December that disabled the correct
15257disassembly
15258of Resource Templates
15259
15260
15261----------------------------------------
1526203 December 2003.  Summary of changes for version 20031203:
15263
152641) ACPI CA Core Subsystem:
15265
15266Changed the initialization of Operation Regions during subsystem
15267init to perform two entire walks of the ACPI namespace; The first
15268to initialize the regions themselves, the second to execute the
15269_REG methods.  This fixed some interdependencies across _REG
15270methods found on some machines.
15271
15272Fixed a problem where a Store(Local0, Local1) could simply update
15273the object reference count, and not create a new copy of the
15274object if the Local1 is uninitialized.
15275
15276Implemented support for the _SST reserved method during sleep
15277transitions.
15278
15279Implemented support to clear the SLP_TYP and SLP_EN bits when
15280waking up, this is apparently required by some machines.
15281
15282When sleeping, clear the wake status only if SleepState is not S5.
15283
15284Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
15285pointer arithmetic advanced a string pointer too far.
15286
15287Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
15288could be returned if the requested table has not been loaded.
15289
15290Within the support for IRQ resources, restructured the handling of
15291the active and edge/level bits.
15292
15293Fixed a few problems in AcpiPsxExecute() where memory could be
15294leaked under certain error conditions.
15295
15296Improved error messages for the cases where the ACPI mode could
15297not be entered.
15298
15299Code and Data Size: Current and previous core subsystem library
15300sizes are shown below.  These are the code and data sizes for the
15301acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15302these values do not include any ACPI driver or OSPM code.  The
15303debug version of the code includes the debug output trace
15304mechanism and has a much larger code and data size.  Note that
15305these values will vary depending on the efficiency of the compiler
15306and the compiler options used during generation.
15307
15308  Previous Release (20031029):
15309    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15310    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15311  Current Release:
15312    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15313    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15314
153152) iASL Compiler/Disassembler:
15316
15317Implemented a fix for the iASL disassembler where a bad index was
15318generated.  This was most noticeable on 64-bit platforms
15319
15320
15321----------------------------------------
1532229 October 2003.  Summary of changes for version 20031029:
15323
153241) ACPI CA Core Subsystem:
15325
15326
15327Fixed a problem where a level-triggered GPE with an associated
15328_Lxx control method was incorrectly cleared twice.
15329
15330Fixed a problem with the Field support code where an access can
15331occur beyond the end-of-region if the field is non-aligned but
15332extends to the very end of the parent region (resulted in an
15333AE_AML_REGION_LIMIT exception.)
15334
15335Fixed a problem with ACPI Fixed Events where an RT Clock handler
15336would not get invoked on an RTC event.  The RTC event bitmasks for
15337the PM1 registers were not being initialized properly.
15338
15339Implemented support for executing _STA and _INI methods for
15340Processor objects.  Although this is currently not part of the
15341ACPI specification, there is existing ASL code that depends on the
15342init-time execution of these methods.
15343
15344Implemented and deployed a GetDescriptorName function to decode
15345the various types of internal descriptors.  Guards against null
15346descriptors during debug output also.
15347
15348Implemented and deployed a GetNodeName function to extract the 4-
15349character namespace node name.  This function simplifies the debug
15350and error output, as well as guarding against null pointers during
15351output.
15352
15353Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
15354simplify the debug and error output of 64-bit integers.  This
15355macro replaces the HIDWORD and LODWORD macros for dumping these
15356integers.
15357
15358Updated the implementation of the Stall() operator to only call
15359AcpiOsStall(), and also return an error if the operand is larger
15360than 255.  This preserves the required behavior of not
15361relinquishing the processor, as would happen if AcpiOsSleep() was
15362called for "long stalls".
15363
15364Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
15365initialized are now treated as NOOPs.
15366
15367Cleaned up a handful of warnings during 64-bit generation.
15368
15369Fixed a reported error where and incorrect GPE number was passed
15370to the GPE dispatch handler.  This value is only used for error
15371output, however.  Used this opportunity to clean up and streamline
15372the GPE dispatch code.
15373
15374Code and Data Size: Current and previous core subsystem library
15375sizes are shown below.  These are the code and data sizes for the
15376acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15377these values do not include any ACPI driver or OSPM code.  The
15378
15379debug version of the code includes the debug output trace
15380mechanism and has a much larger code and data size.  Note that
15381these values will vary depending on the efficiency of the compiler
15382and the compiler options used during generation.
15383
15384  Previous Release (20031002):
15385    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15386    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15387  Current Release:
15388    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15389    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15390
15391
153922) iASL Compiler/Disassembler:
15393
15394Updated the iASL compiler to return an error if the operand to the
15395Stall() operator is larger than 255.
15396
15397
15398----------------------------------------
1539902 October 2003.  Summary of changes for version 20031002:
15400
15401
154021) ACPI CA Core Subsystem:
15403
15404Fixed a problem with Index Fields where the index was not
15405incremented for fields that require multiple writes to the
15406index/data registers (Fields that are wider than the data
15407register.)
15408
15409Fixed a problem with all Field objects where a write could go
15410beyond the end-of-field if the field was larger than the access
15411granularity and therefore required multiple writes to complete the
15412request.  An extra write beyond the end of the field could happen
15413inadvertently.
15414
15415Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
15416would incorrectly be returned if the width of the Data Register
15417was larger than the specified field access width.
15418
15419Completed fixes for LoadTable() and Unload() and verified their
15420operation.  Implemented full support for the "DdbHandle" object
15421throughout the ACPI CA subsystem.
15422
15423Implemented full support for the MADT and ECDT tables in the ACPI
15424CA header files.  Even though these tables are not directly
15425consumed by ACPI CA, the header definitions are useful for ACPI
15426device drivers.
15427
15428Integrated resource descriptor fixes posted to the Linux ACPI
15429list.  This included checks for minimum descriptor length, and
15430support for trailing NULL strings within descriptors that have
15431optional string elements.
15432
15433Code and Data Size: Current and previous core subsystem library
15434sizes are shown below.  These are the code and data sizes for the
15435acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15436these values do not include any ACPI driver or OSPM code.  The
15437debug version of the code includes the debug output trace
15438mechanism and has a much larger code and data size.  Note that
15439these values will vary depending on the efficiency of the compiler
15440and the compiler options used during generation.
15441
15442  Previous Release (20030918):
15443    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15444    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15445  Current Release:
15446    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15447    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15448
15449
154502) iASL Compiler:
15451
15452Implemented detection of non-ASCII characters within the input
15453source ASL file.  This catches attempts to compile binary (AML)
15454files early in the compile, with an informative error message.
15455
15456Fixed a problem where the disassembler would fault if the output
15457filename could not be generated or if the output file could not be
15458opened.
15459
15460----------------------------------------
1546118 September 2003.  Summary of changes for version 20030918:
15462
15463
154641) ACPI CA Core Subsystem:
15465
15466Found and fixed a longstanding problem with the late execution of
15467the various deferred AML opcodes (such as Operation Regions,
15468Buffer Fields, Buffers, and Packages).  If the name string
15469specified for the name of the new object placed the object in a
15470scope other than the current scope, the initialization/execution
15471of the opcode failed.  The solution to this problem was to
15472implement a mechanism where the late execution of such opcodes
15473does not attempt to lookup/create the name a second time in an
15474incorrect scope.  This fixes the "region size computed
15475incorrectly" problem.
15476
15477Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
15478Global Lock AE_BAD_PARAMETER error.
15479
15480Fixed several 64-bit issues with prototypes, casting and data
15481types.
15482
15483Removed duplicate prototype from acdisasm.h
15484
15485Fixed an issue involving EC Operation Region Detach (Shaohua Li)
15486
15487Code and Data Size: Current and previous core subsystem library
15488sizes are shown below.  These are the code and data sizes for the
15489acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15490these values do not include any ACPI driver or OSPM code.  The
15491debug version of the code includes the debug output trace
15492mechanism and has a much larger code and data size.  Note that
15493these values will vary depending on the efficiency of the compiler
15494and the compiler options used during generation.
15495
15496  Previous Release:
15497
15498    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15499    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15500  Current Release:
15501    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15502    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15503
15504
155052) Linux:
15506
15507Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
15508correct sleep time in seconds.
15509
15510----------------------------------------
1551114 July 2003.  Summary of changes for version 20030619:
15512
155131) ACPI CA Core Subsystem:
15514
15515Parse SSDTs in order discovered, as opposed to reverse order
15516(Hrvoje Habjanic)
15517
15518Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
15519Klausner,
15520   Nate Lawson)
15521
15522
155232) Linux:
15524
15525Dynamically allocate SDT list (suggested by Andi Kleen)
15526
15527proc function return value cleanups (Andi Kleen)
15528
15529Correctly handle NMI watchdog during long stalls (Andrew Morton)
15530
15531Make it so acpismp=force works (reported by Andrew Morton)
15532
15533
15534----------------------------------------
1553519 June 2003.  Summary of changes for version 20030619:
15536
155371) ACPI CA Core Subsystem:
15538
15539Fix To/FromBCD, eliminating the need for an arch-specific #define.
15540
15541Do not acquire a semaphore in the S5 shutdown path.
15542
15543Fix ex_digits_needed for 0. (Takayoshi Kochi)
15544
15545Fix sleep/stall code reversal. (Andi Kleen)
15546
15547Revert a change having to do with control method calling
15548semantics.
15549
155502) Linux:
15551
15552acpiphp update (Takayoshi Kochi)
15553
15554Export acpi_disabled for sonypi (Stelian Pop)
15555
15556Mention acpismp=force in config help
15557
15558Re-add acpitable.c and acpismp=force. This improves backwards
15559
15560compatibility and also cleans up the code to a significant degree.
15561
15562Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
15563
15564----------------------------------------
1556522 May 2003.  Summary of changes for version 20030522:
15566
155671) ACPI CA Core Subsystem:
15568
15569Found and fixed a reported problem where an AE_NOT_FOUND error
15570occurred occasionally during _BST evaluation.  This turned out to
15571be an Owner ID allocation issue where a called method did not get
15572a new ID assigned to it.  Eventually, (after 64k calls), the Owner
15573ID UINT16 would wraparound so that the ID would be the same as the
15574caller's and the called method would delete the caller's
15575namespace.
15576
15577Implemented extended error reporting for control methods that are
15578aborted due to a run-time exception.  Output includes the exact
15579AML instruction that caused the method abort, a dump of the method
15580locals and arguments at the time of the abort, and a trace of all
15581nested control method calls.
15582
15583Modified the interpreter to allow the creation of buffers of zero
15584length from the AML code. Implemented new code to ensure that no
15585attempt is made to actually allocate a memory buffer (of length
15586zero) - instead, a simple buffer object with a NULL buffer pointer
15587and length zero is created.  A warning is no longer issued when
15588the AML attempts to create a zero-length buffer.
15589
15590Implemented a workaround for the "leading asterisk issue" in
15591_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
15592asterisk is automatically removed if present in any HID, UID, or
15593CID strings.  The iASL compiler will still flag this asterisk as
15594an error, however.
15595
15596Implemented full support for _CID methods that return a package of
15597multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
15598now additionally returns a device _CID list if present.  This
15599required a change to the external interface in order to pass an
15600ACPI_BUFFER object as a parameter since the _CID list is of
15601variable length.
15602
15603Fixed a problem with the new AE_SAME_HANDLER exception where
15604handler initialization code did not know about this exception.
15605
15606Code and Data Size: Current and previous core subsystem library
15607sizes are shown below.  These are the code and data sizes for the
15608acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15609these values do not include any ACPI driver or OSPM code.  The
15610debug version of the code includes the debug output trace
15611mechanism and has a much larger code and data size.  Note that
15612these values will vary depending on the efficiency of the compiler
15613and the compiler options used during generation.
15614
15615  Previous Release (20030509):
15616    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15617    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15618  Current Release:
15619    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15620    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15621
15622
156232) Linux:
15624
15625Fixed a bug in which we would reinitialize the ACPI interrupt
15626after it was already working, thus disabling all ACPI and the IRQs
15627for any other device sharing the interrupt. (Thanks to Stian
15628Jordet)
15629
15630Toshiba driver update (John Belmonte)
15631
15632Return only 0 or 1 for our interrupt handler status (Andrew
15633Morton)
15634
15635
156363) iASL Compiler:
15637
15638Fixed a reported problem where multiple (nested) ElseIf()
15639statements were not handled correctly by the compiler, resulting
15640in incorrect warnings and incorrect AML code.  This was a problem
15641in both the ASL parser and the code generator.
15642
15643
156444) Documentation:
15645
15646Added changes to existing interfaces, new exception codes, and new
15647text concerning reference count object management versus garbage
15648collection.
15649
15650----------------------------------------
1565109 May 2003.  Summary of changes for version 20030509.
15652
15653
156541) ACPI CA Core Subsystem:
15655
15656Changed the subsystem initialization sequence to hold off
15657installation of address space handlers until the hardware has been
15658initialized and the system has entered ACPI mode.  This is because
15659the installation of space handlers can cause _REG methods to be
15660run.  Previously, the _REG methods could potentially be run before
15661ACPI mode was enabled.
15662
15663Fixed some memory leak issues related to address space handler and
15664notify handler installation.  There were some problems with the
15665reference count mechanism caused by the fact that the handler
15666objects are shared across several namespace objects.
15667
15668Fixed a reported problem where reference counts within the
15669namespace were not properly updated when named objects created by
15670method execution were deleted.
15671
15672Fixed a reported problem where multiple SSDTs caused a deletion
15673issue during subsystem termination.  Restructured the table data
15674structures to simplify the linked lists and the related code.
15675
15676Fixed a problem where the table ID associated with secondary
15677tables (SSDTs) was not being propagated into the namespace objects
15678created by those tables.  This would only present a problem for
15679tables that are unloaded at run-time, however.
15680
15681Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
15682type as the length parameter (instead of UINT32).
15683
15684Solved a long-standing problem where an ALREADY_EXISTS error
15685appears on various systems.  This problem could happen when there
15686are multiple PCI_Config operation regions under a single PCI root
15687bus.  This doesn't happen very frequently, but there are some
15688systems that do this in the ASL.
15689
15690Fixed a reported problem where the internal DeleteNode function
15691was incorrectly handling the case where a namespace node was the
15692first in the parent's child list, and had additional peers (not
15693the only child, but first in the list of children.)
15694
15695Code and Data Size: Current core subsystem library sizes are shown
15696below.  These are the code and data sizes for the acpica.lib
15697produced by the Microsoft Visual C++ 6.0 compiler, and these
15698values do not include any ACPI driver or OSPM code.  The debug
15699version of the code includes the debug output trace mechanism and
15700has a much larger code and data size.  Note that these values will
15701vary depending on the efficiency of the compiler and the compiler
15702options used during generation.
15703
15704  Previous Release
15705    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
15706    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
15707  Current Release:
15708    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15709    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15710
15711
157122) Linux:
15713
15714Allow ":" in OS override string (Ducrot Bruno)
15715
15716Kobject fix (Greg KH)
15717
15718
157193 iASL Compiler/Disassembler:
15720
15721Fixed a problem in the generation of the C source code files (AML
15722is emitted in C source statements for BIOS inclusion) where the
15723Ascii dump that appears within a C comment at the end of each line
15724could cause a compile time error if the AML sequence happens to
15725have an open comment or close comment sequence embedded.
15726
15727
15728----------------------------------------
1572924 April 2003.  Summary of changes for version 20030424.
15730
15731
157321) ACPI CA Core Subsystem:
15733
15734Support for big-endian systems has been implemented.  Most of the
15735support has been invisibly added behind big-endian versions of the
15736ACPI_MOVE_* macros.
15737
15738Fixed a problem in AcpiHwDisableGpeBlock() and
15739AcpiHwClearGpeBlock() where an incorrect offset was passed to the
15740low level hardware write routine.  The offset parameter was
15741actually eliminated from the low level read/write routines because
15742they had become obsolete.
15743
15744Fixed a problem where a handler object was deleted twice during
15745the removal of a fixed event handler.
15746
15747
157482) Linux:
15749
15750A fix for SMP systems with link devices was contributed by
15751
15752Compaq's Dan Zink.
15753
15754(2.5) Return whether we handled the interrupt in our IRQ handler.
15755(Linux ISRs no longer return void, so we can propagate the handler
15756return value from the ACPI CA core back to the OS.)
15757
15758
15759
157603) Documentation:
15761
15762The ACPI CA Programmer Reference has been updated to reflect new
15763interfaces and changes to existing interfaces.
15764
15765----------------------------------------
1576628 March 2003.  Summary of changes for version 20030328.
15767
157681) ACPI CA Core Subsystem:
15769
15770The GPE Block Device support has been completed.  New interfaces
15771are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
15772interfaces (enable, disable, clear, getstatus) have been split
15773into separate interfaces for Fixed Events and General Purpose
15774Events (GPEs) in order to support GPE Block Devices properly.
15775
15776Fixed a problem where the error message "Failed to acquire
15777semaphore" would appear during operations on the embedded
15778controller (EC).
15779
15780Code and Data Size: Current core subsystem library sizes are shown
15781below.  These are the code and data sizes for the acpica.lib
15782produced by the Microsoft Visual C++ 6.0 compiler, and these
15783values do not include any ACPI driver or OSPM code.  The debug
15784version of the code includes the debug output trace mechanism and
15785has a much larger code and data size.  Note that these values will
15786vary depending on the efficiency of the compiler and the compiler
15787options used during generation.
15788
15789  Previous Release
15790    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
15791    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
15792  Current Release:
15793    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
15794    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
15795
15796
15797----------------------------------------
1579828 February 2003.  Summary of changes for version 20030228.
15799
15800
158011) ACPI CA Core Subsystem:
15802
15803The GPE handling and dispatch code has been completely overhauled
15804in preparation for support of GPE Block Devices (ID ACPI0006).
15805This affects internal data structures and code only; there should
15806be no differences visible externally.  One new file has been
15807added, evgpeblk.c
15808
15809The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
15810fields that are used to determine the GPE block lengths.  The
15811REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
15812structures are ignored.  This is per the ACPI specification but it
15813isn't very clear.  The full 256 Block 0/1 GPEs are now supported
15814(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
15815
15816In the SCI interrupt handler, removed the read of the PM1_CONTROL
15817register to look at the SCI_EN bit.  On some machines, this read
15818causes an SMI event and greatly slows down SCI events.  (This may
15819in fact be the cause of slow battery status response on some
15820systems.)
15821
15822Fixed a problem where a store of a NULL string to a package object
15823could cause the premature deletion of the object.  This was seen
15824during execution of the battery _BIF method on some systems,
15825resulting in no battery data being returned.
15826
15827Added AcpiWalkResources interface to simplify parsing of resource
15828lists.
15829
15830Code and Data Size: Current core subsystem library sizes are shown
15831below.  These are the code and data sizes for the acpica.lib
15832produced by the Microsoft Visual C++ 6.0 compiler, and these
15833values do not include any ACPI driver or OSPM code.  The debug
15834version of the code includes the debug output trace mechanism and
15835has a much larger code and data size.  Note that these values will
15836vary depending on the efficiency of the compiler and the compiler
15837options used during generation.
15838
15839  Previous Release
15840    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
15841    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
15842  Current Release:
15843    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
15844    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
15845
15846
158472) Linux
15848
15849S3 fixes (Ole Rohne)
15850
15851Update ACPI PHP driver with to use new acpi_walk_resource API
15852(Bjorn Helgaas)
15853
15854Add S4BIOS support (Pavel Machek)
15855
15856Map in entire table before performing checksum (John Stultz)
15857
15858Expand the mem= cmdline to allow the specification of reserved and
15859ACPI DATA blocks (Pavel Machek)
15860
15861Never use ACPI on VISWS
15862
15863Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
15864
15865Revert a change that allowed P_BLK lengths to be 4 or 5. This is
15866causing us to think that some systems support C2 when they really
15867don't.
15868
15869Do not count processor objects for non-present CPUs (Thanks to
15870Dominik Brodowski)
15871
15872
158733) iASL Compiler:
15874
15875Fixed a problem where ASL include files could not be found and
15876opened.
15877
15878Added support for the _PDC reserved name.
15879
15880
15881----------------------------------------
1588222 January 2003.  Summary of changes for version 20030122.
15883
15884
158851) ACPI CA Core Subsystem:
15886
15887Added a check for constructs of the form:  Store (Local0, Local0)
15888where Local0 is not initialized.  Apparently, some BIOS
15889programmers believe that this is a NOOP.  Since this store doesn't
15890do anything anyway, the new prototype behavior will ignore this
15891error.  This is a case where we can relax the strict checking in
15892the interpreter in the name of compatibility.
15893
15894
158952) Linux
15896
15897The AcpiSrc Source Conversion Utility has been released with the
15898Linux package for the first time.  This is the utility that is
15899used to convert the ACPI CA base source code to the Linux version.
15900
15901(Both) Handle P_BLK lengths shorter than 6 more gracefully
15902
15903(Both) Move more headers to include/acpi, and delete an unused
15904header.
15905
15906(Both) Move drivers/acpi/include directory to include/acpi
15907
15908(Both) Boot functions don't use cmdline, so don't pass it around
15909
15910(Both) Remove include of unused header (Adrian Bunk)
15911
15912(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
15913the
15914former now also includes the latter, acpiphp.h only needs the one,
15915now.
15916
15917(2.5) Make it possible to select method of bios restoring after S3
15918resume. [=> no more ugly ifdefs] (Pavel Machek)
15919
15920(2.5) Make proc write interfaces work (Pavel Machek)
15921
15922(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
15923
15924(2.5) Break out ACPI Perf code into its own module, under cpufreq
15925(Dominik Brodowski)
15926
15927(2.4) S4BIOS support (Ducrot Bruno)
15928
15929(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
15930Visinoni)
15931
15932
159333) iASL Compiler:
15934
15935Added support to disassemble SSDT and PSDTs.
15936
15937Implemented support to obtain SSDTs from the Windows registry if
15938available.
15939
15940
15941----------------------------------------
1594209 January 2003.  Summary of changes for version 20030109.
15943
159441) ACPI CA Core Subsystem:
15945
15946Changed the behavior of the internal Buffer-to-String conversion
15947function.  The current ACPI specification states that the contents
15948of the buffer are "converted to a string of two-character
15949hexadecimal numbers, each separated by a space".  Unfortunately,
15950this definition is not backwards compatible with existing ACPI 1.0
15951implementations (although the behavior was not defined in the ACPI
159521.0 specification).  The new behavior simply copies data from the
15953buffer to the string until a null character is found or the end of
15954the buffer is reached.  The new String object is always null
15955terminated.  This problem was seen during the generation of _BIF
15956battery data where incorrect strings were returned for battery
15957type, etc.  This will also require an errata to the ACPI
15958specification.
15959
15960Renamed all instances of NATIVE_UINT and NATIVE_INT to
15961ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
15962
15963Copyright in all module headers (both Linux and non-Linux) has be
15964updated to 2003.
15965
15966Code and Data Size: Current core subsystem library sizes are shown
15967below.  These are the code and data sizes for the acpica.lib
15968produced by the Microsoft Visual C++ 6.0 compiler, and these
15969values do not include any ACPI driver or OSPM code.  The debug
15970version of the code includes the debug output trace mechanism and
15971has a much larger code and data size.  Note that these values will
15972vary depending on the efficiency of the compiler and the compiler
15973options used during generation.
15974
15975  Previous Release
15976    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
15977    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
15978  Current Release:
15979    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
15980    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
15981
15982
159832) Linux
15984
15985Fixed an oops on module insertion/removal (Matthew Tippett)
15986
15987(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
15988
15989(2.5) Replace pr_debug (Randy Dunlap)
15990
15991(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
15992
15993(Both) Eliminate spawning of thread from timer callback, in favor
15994of schedule_work()
15995
15996(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
15997
15998(Both) Added define for Fixed Function HW region (Matthew Wilcox)
15999
16000(Both) Add missing statics to button.c (Pavel Machek)
16001
16002Several changes have been made to the source code translation
16003utility that generates the Linux Code in order to make the code
16004more "Linux-like":
16005
16006All typedefs on structs and unions have been removed in keeping
16007with the Linux coding style.
16008
16009Removed the non-Linux SourceSafe module revision number from each
16010module header.
16011
16012Completed major overhaul of symbols to be lowercase for linux.
16013Doubled the number of symbols that are lowercase.
16014
16015Fixed a problem where identifiers within procedure headers and
16016within quotes were not fully lower cased (they were left with a
16017starting capital.)
16018
16019Some C macros whose only purpose is to allow the generation of 16-
16020bit code are now completely removed in the Linux code, increasing
16021readability and maintainability.
16022
16023----------------------------------------
16024
1602512 December 2002.  Summary of changes for version 20021212.
16026
16027
160281) ACPI CA Core Subsystem:
16029
16030Fixed a problem where the creation of a zero-length AML Buffer
16031would cause a fault.
16032
16033Fixed a problem where a Buffer object that pointed to a static AML
16034buffer (in an ACPI table) could inadvertently be deleted, causing
16035memory corruption.
16036
16037Fixed a problem where a user buffer (passed in to the external
16038ACPI CA interfaces) could be overwritten if the buffer was too
16039small to complete the operation, causing memory corruption.
16040
16041Fixed a problem in the Buffer-to-String conversion code where a
16042string of length one was always returned, regardless of the size
16043of the input Buffer object.
16044
16045Removed the NATIVE_CHAR data type across the entire source due to
16046lack of need and lack of consistent use.
16047
16048Code and Data Size: Current core subsystem library sizes are shown
16049below.  These are the code and data sizes for the acpica.lib
16050produced by the Microsoft Visual C++ 6.0 compiler, and these
16051values do not include any ACPI driver or OSPM code.  The debug
16052version of the code includes the debug output trace mechanism and
16053has a much larger code and data size.  Note that these values will
16054vary depending on the efficiency of the compiler and the compiler
16055options used during generation.
16056
16057  Previous Release
16058    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16059    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16060  Current Release:
16061    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16062    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16063
16064
16065----------------------------------------
1606605 December 2002.  Summary of changes for version 20021205.
16067
160681) ACPI CA Core Subsystem:
16069
16070Fixed a problem where a store to a String or Buffer object could
16071cause corruption of the DSDT if the object type being stored was
16072the same as the target object type and the length of the object
16073being stored was equal to or smaller than the original (existing)
16074target object.  This was seen to cause corruption of battery _BIF
16075buffers if the _BIF method modified the buffer on the fly.
16076
16077Fixed a problem where an internal error was generated if a control
16078method invocation was used in an OperationRegion, Buffer, or
16079Package declaration.  This was caused by the deferred parsing of
16080the control method and thus the deferred creation of the internal
16081method object.  The solution to this problem was to create the
16082internal method object at the moment the method is encountered in
16083the first pass - so that subsequent references to the method will
16084able to obtain the required parameter count and thus properly
16085parse the method invocation.  This problem presented itself as an
16086AE_AML_INTERNAL during the pass 1 parse phase during table load.
16087
16088Fixed a problem where the internal String object copy routine did
16089not always allocate sufficient memory for the target String object
16090and caused memory corruption.  This problem was seen to cause
16091"Allocation already present in list!" errors as memory allocation
16092became corrupted.
16093
16094Implemented a new function for the evaluation of namespace objects
16095that allows the specification of the allowable return object
16096types.  This simplifies a lot of code that checks for a return
16097object of one or more specific objects returned from the
16098evaluation (such as _STA, etc.)  This may become and external
16099function if it would be useful to ACPI-related drivers.
16100
16101Completed another round of prefixing #defines with "ACPI_" for
16102clarity.
16103
16104Completed additional code restructuring to allow more modular
16105linking for iASL compiler and AcpiExec.  Several files were split
16106creating new files.  New files:  nsparse.c dsinit.c evgpe.c
16107
16108Implemented an abort mechanism to terminate an executing control
16109method via the AML debugger.  This feature is useful for debugging
16110control methods that depend (wait) for specific hardware
16111responses.
16112
16113Code and Data Size: Current core subsystem library sizes are shown
16114below.  These are the code and data sizes for the acpica.lib
16115produced by the Microsoft Visual C++ 6.0 compiler, and these
16116values do not include any ACPI driver or OSPM code.  The debug
16117version of the code includes the debug output trace mechanism and
16118has a much larger code and data size.  Note that these values will
16119vary depending on the efficiency of the compiler and the compiler
16120options used during generation.
16121
16122  Previous Release
16123    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16124    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16125  Current Release:
16126    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16127    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16128
16129
161302) iASL Compiler/Disassembler
16131
16132Fixed a compiler code generation problem for "Interrupt" Resource
16133Descriptors.  If specified in the ASL, the optional "Resource
16134Source Index" and "Resource Source" fields were not inserted into
16135the correct location within the AML resource descriptor, creating
16136an invalid descriptor.
16137
16138Fixed a disassembler problem for "Interrupt" resource descriptors.
16139The optional "Resource Source Index" and "Resource Source" fields
16140were ignored.
16141
16142
16143----------------------------------------
1614422 November 2002.  Summary of changes for version 20021122.
16145
16146
161471) ACPI CA Core Subsystem:
16148
16149Fixed a reported problem where an object stored to a Method Local
16150or Arg was not copied to a new object during the store - the
16151object pointer was simply copied to the Local/Arg.  This caused
16152all subsequent operations on the Local/Arg to also affect the
16153original source of the store operation.
16154
16155Fixed a problem where a store operation to a Method Local or Arg
16156was not completed properly if the Local/Arg contained a reference
16157(from RefOf) to a named field.  The general-purpose store-to-
16158namespace-node code is now used so that this case is handled
16159automatically.
16160
16161Fixed a problem where the internal object copy routine would cause
16162a protection fault if the object being copied was a Package and
16163contained either 1) a NULL package element or 2) a nested sub-
16164package.
16165
16166Fixed a problem with the GPE initialization that resulted from an
16167ambiguity in the ACPI specification.  One section of the
16168specification states that both the address and length of the GPE
16169block must be zero if the block is not supported.  Another section
16170implies that only the address need be zero if the block is not
16171supported.  The code has been changed so that both the address and
16172the length must be non-zero to indicate a valid GPE block (i.e.,
16173if either the address or the length is zero, the GPE block is
16174invalid.)
16175
16176Code and Data Size: Current core subsystem library sizes are shown
16177below.  These are the code and data sizes for the acpica.lib
16178produced by the Microsoft Visual C++ 6.0 compiler, and these
16179values do not include any ACPI driver or OSPM code.  The debug
16180version of the code includes the debug output trace mechanism and
16181has a much larger code and data size.  Note that these values will
16182vary depending on the efficiency of the compiler and the compiler
16183options used during generation.
16184
16185  Previous Release
16186    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16187    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16188  Current Release:
16189    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16190    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16191
16192
161932) Linux
16194
16195Cleaned up EC driver. Exported an external EC read/write
16196interface. By going through this, other drivers (most notably
16197sonypi) will be able to serialize access to the EC.
16198
16199
162003) iASL Compiler/Disassembler
16201
16202Implemented support to optionally generate include files for both
16203ASM and C (the -i switch).  This simplifies BIOS development by
16204automatically creating include files that contain external
16205declarations for the symbols that are created within the
16206
16207(optionally generated) ASM and C AML source files.
16208
16209
16210----------------------------------------
1621115 November 2002.  Summary of changes for version 20021115.
16212
162131) ACPI CA Core Subsystem:
16214
16215Fixed a memory leak problem where an error during resolution of
16216
16217method arguments during a method invocation from another method
16218failed to cleanup properly by deleting all successfully resolved
16219argument objects.
16220
16221Fixed a problem where the target of the Index() operator was not
16222correctly constructed if the source object was a package.  This
16223problem has not been detected because the use of a target operand
16224with Index() is very rare.
16225
16226Fixed a problem with the Index() operator where an attempt was
16227made to delete the operand objects twice.
16228
16229Fixed a problem where an attempt was made to delete an operand
16230twice during execution of the CondRefOf() operator if the target
16231did not exist.
16232
16233Implemented the first of perhaps several internal create object
16234functions that create and initialize a specific object type.  This
16235consolidates duplicated code wherever the object is created, thus
16236shrinking the size of the subsystem.
16237
16238Implemented improved debug/error messages for errors that occur
16239during nested method invocations.  All executing method pathnames
16240are displayed (with the error) as the call stack is unwound - thus
16241simplifying debug.
16242
16243Fixed a problem introduced in the 10/02 release that caused
16244premature deletion of a buffer object if a buffer was used as an
16245ASL operand where an integer operand is required (Thus causing an
16246implicit object conversion from Buffer to Integer.)  The change in
16247the 10/02 release was attempting to fix a memory leak (albeit
16248incorrectly.)
16249
16250Code and Data Size: Current core subsystem library sizes are shown
16251below.  These are the code and data sizes for the acpica.lib
16252produced by the Microsoft Visual C++ 6.0 compiler, and these
16253values do not include any ACPI driver or OSPM code.  The debug
16254version of the code includes the debug output trace mechanism and
16255has a much larger code and data size.  Note that these values will
16256vary depending on the efficiency of the compiler and the compiler
16257options used during generation.
16258
16259  Previous Release
16260    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16261    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16262  Current Release:
16263    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16264    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16265
16266
162672) Linux
16268
16269Changed the implementation of the ACPI semaphores to use down()
16270instead of down_interruptable().  It is important that the
16271execution of ACPI control methods not be interrupted by signals.
16272Methods must run to completion, or the system may be left in an
16273unknown/unstable state.
16274
16275Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
16276(Shawn Starr)
16277
16278
162793) iASL Compiler/Disassembler
16280
16281
16282Changed the default location of output files.  All output files
16283are now placed in the current directory by default instead of in
16284the directory of the source file.  This change may affect some
16285existing makefiles, but it brings the behavior of the compiler in
16286line with other similar tools.  The location of the output files
16287can be overridden with the -p command line switch.
16288
16289
16290----------------------------------------
1629111 November 2002.  Summary of changes for version 20021111.
16292
16293
162940) ACPI Specification 2.0B is released and is now available at:
16295http://www.acpi.info/index.html
16296
16297
162981) ACPI CA Core Subsystem:
16299
16300Implemented support for the ACPI 2.0 SMBus Operation Regions.
16301This includes the early detection and handoff of the request to
16302the SMBus region handler (avoiding all of the complex field
16303support code), and support for the bidirectional return packet
16304from an SMBus write operation.  This paves the way for the
16305development of SMBus drivers in each host operating system.
16306
16307Fixed a problem where the semaphore WAIT_FOREVER constant was
16308defined as 32 bits, but must be 16 bits according to the ACPI
16309specification.  This had the side effect of causing ASL
16310Mutex/Event timeouts even though the ASL code requested a wait
16311forever.  Changed all internal references to the ACPI timeout
16312parameter to 16 bits to prevent future problems.  Changed the name
16313of WAIT_FOREVER to ACPI_WAIT_FOREVER.
16314
16315Code and Data Size: Current core subsystem library sizes are shown
16316below.  These are the code and data sizes for the acpica.lib
16317produced by the Microsoft Visual C++ 6.0 compiler, and these
16318values do not include any ACPI driver or OSPM code.  The debug
16319version of the code includes the debug output trace mechanism and
16320has a much larger code and data size.  Note that these values will
16321vary depending on the efficiency of the compiler and the compiler
16322options used during generation.
16323
16324  Previous Release
16325    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16326    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16327  Current Release:
16328    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16329    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16330
16331
163322) Linux
16333
16334Module loading/unloading fixes (John Cagle)
16335
16336
163373) iASL Compiler/Disassembler
16338
16339Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
16340
16341Implemented support for the disassembly of all SMBus protocol
16342keywords (SMBQuick, SMBWord, etc.)
16343
16344----------------------------------------
1634501 November 2002.  Summary of changes for version 20021101.
16346
16347
163481) ACPI CA Core Subsystem:
16349
16350Fixed a problem where platforms that have a GPE1 block but no GPE0
16351block were not handled correctly.  This resulted in a "GPE
16352overlap" error message.  GPE0 is no longer required.
16353
16354Removed code added in the previous release that inserted nodes
16355into the namespace in alphabetical order.  This caused some side-
16356effects on various machines.  The root cause of the problem is
16357still under investigation since in theory, the internal ordering
16358of the namespace nodes should not matter.
16359
16360
16361Enhanced error reporting for the case where a named object is not
16362found during control method execution.  The full ACPI namepath
16363(name reference) of the object that was not found is displayed in
16364this case.
16365
16366Note: as a result of the overhaul of the namespace object types in
16367the previous release, the namespace nodes for the predefined
16368scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
16369instead of ACPI_TYPE_ANY.  This simplifies the namespace
16370management code but may affect code that walks the namespace tree
16371looking for specific object types.
16372
16373Code and Data Size: Current core subsystem library sizes are shown
16374below.  These are the code and data sizes for the acpica.lib
16375produced by the Microsoft Visual C++ 6.0 compiler, and these
16376values do not include any ACPI driver or OSPM code.  The debug
16377version of the code includes the debug output trace mechanism and
16378has a much larger code and data size.  Note that these values will
16379vary depending on the efficiency of the compiler and the compiler
16380options used during generation.
16381
16382  Previous Release
16383    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16384    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16385  Current Release:
16386    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16387    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16388
16389
163902) Linux
16391
16392Fixed a problem introduced in the previous release where the
16393Processor and Thermal objects were not recognized and installed in
16394/proc.  This was related to the scope type change described above.
16395
16396
163973) iASL Compiler/Disassembler
16398
16399Implemented the -g option to get all of the required ACPI tables
16400from the registry and save them to files (Windows version of the
16401compiler only.)  The required tables are the FADT, FACS, and DSDT.
16402
16403Added ACPI table checksum validation during table disassembly in
16404order to catch corrupted tables.
16405
16406
16407----------------------------------------
1640822 October 2002.  Summary of changes for version 20021022.
16409
164101) ACPI CA Core Subsystem:
16411
16412Implemented a restriction on the Scope operator that the target
16413must already exist in the namespace at the time the operator is
16414encountered (during table load or method execution).  In other
16415words, forward references are not allowed and Scope() cannot
16416create a new object. This changes the previous behavior where the
16417interpreter would create the name if not found.  This new behavior
16418correctly enables the search-to-root algorithm during namespace
16419lookup of the target name.  Because of this upsearch, this fixes
16420the known Compaq _SB_.OKEC problem and makes both the AML
16421interpreter and iASL compiler compatible with other ACPI
16422implementations.
16423
16424Completed a major overhaul of the internal ACPI object types for
16425the ACPI Namespace and the associated operand objects.  Many of
16426these types had become obsolete with the introduction of the two-
16427pass namespace load.  This cleanup simplifies the code and makes
16428the entire namespace load mechanism much clearer and easier to
16429understand.
16430
16431Improved debug output for tracking scope opening/closing to help
16432diagnose scoping issues.  The old scope name as well as the new
16433scope name are displayed.  Also improved error messages for
16434problems with ASL Mutex objects and error messages for GPE
16435problems.
16436
16437Cleaned up the namespace dump code, removed obsolete code.
16438
16439All string output (for all namespace/object dumps) now uses the
16440common ACPI string output procedure which handles escapes properly
16441and does not emit non-printable characters.
16442
16443Fixed some issues with constants in the 64-bit version of the
16444local C library (utclib.c)
16445
16446
164472) Linux
16448
16449EC Driver:  No longer attempts to acquire the Global Lock at
16450interrupt level.
16451
16452
164533) iASL Compiler/Disassembler
16454
16455Implemented ACPI 2.0B grammar change that disallows all Type 1 and
164562 opcodes outside of a control method.  This means that the
16457"executable" operators (versus the "namespace" operators) cannot
16458be used at the table level; they can only be used within a control
16459method.
16460
16461Implemented the restriction on the Scope() operator where the
16462target must already exist in the namespace at the time the
16463operator is encountered (during ASL compilation). In other words,
16464forward references are not allowed and Scope() cannot create a new
16465object.  This makes the iASL compiler compatible with other ACPI
16466implementations and makes the Scope() implementation adhere to the
16467ACPI specification.
16468
16469Fixed a problem where namepath optimization for the Alias operator
16470was optimizing the wrong path (of the two namepaths.)  This caused
16471a "Missing alias link" error message.
16472
16473Fixed a problem where an "unknown reserved name" warning could be
16474incorrectly generated for names like "_SB" when the trailing
16475underscore is not used in the original ASL.
16476
16477Fixed a problem where the reserved name check did not handle
16478NamePaths with multiple NameSegs correctly.  The first nameseg of
16479the NamePath was examined instead of the last NameSeg.
16480
16481
16482----------------------------------------
16483
1648402 October 2002.  Summary of changes for this release.
16485
16486
164871) ACPI CA Core Subsystem version 20021002:
16488
16489Fixed a problem where a store/copy of a string to an existing
16490string did not always set the string length properly in the String
16491object.
16492
16493Fixed a reported problem with the ToString operator where the
16494behavior was identical to the ToHexString operator instead of just
16495simply converting a raw buffer to a string data type.
16496
16497Fixed a problem where CopyObject and the other "explicit"
16498conversion operators were not updating the internal namespace node
16499type as part of the store operation.
16500
16501Fixed a memory leak during implicit source operand conversion
16502where the original object was not deleted if it was converted to a
16503new object of a different type.
16504
16505Enhanced error messages for all problems associated with namespace
16506lookups.  Common procedure generates and prints the lookup name as
16507well as the formatted status.
16508
16509Completed implementation of a new design for the Alias support
16510within the namespace.  The existing design did not handle the case
16511where a new object was assigned to one of the two names due to the
16512use of an explicit conversion operator, resulting in the two names
16513pointing to two different objects.  The new design simply points
16514the Alias name to the original name node - not to the object.
16515This results in a level of indirection that must be handled in the
16516name resolution mechanism.
16517
16518Code and Data Size: Current core subsystem library sizes are shown
16519below.  These are the code and data sizes for the acpica.lib
16520produced by the Microsoft Visual C++ 6.0 compiler, and these
16521values do not include any ACPI driver or OSPM code.  The debug
16522version of the code includes the debug output trace mechanism and
16523has a larger code and data size.  Note that these values will vary
16524depending on the efficiency of the compiler and the compiler
16525options used during generation.
16526
16527  Previous Release
16528    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16529    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16530  Current Release:
16531    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16532    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16533
16534
165352) Linux
16536
16537Initialize thermal driver's timer before it is used. (Knut
16538Neumann)
16539
16540Allow handling negative celsius values. (Kochi Takayoshi)
16541
16542Fix thermal management and make trip points. R/W (Pavel Machek)
16543
16544Fix /proc/acpi/sleep. (P. Christeas)
16545
16546IA64 fixes. (David Mosberger)
16547
16548Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
16549
16550Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
16551Brodowski)
16552
16553
165543) iASL Compiler/Disassembler
16555
16556Clarified some warning/error messages.
16557
16558
16559----------------------------------------
1656018 September 2002.  Summary of changes for this release.
16561
16562
165631) ACPI CA Core Subsystem version 20020918:
16564
16565Fixed a reported problem with reference chaining (via the Index()
16566and RefOf() operators) in the ObjectType() and SizeOf() operators.
16567The definition of these operators includes the dereferencing of
16568all chained references to return information on the base object.
16569
16570Fixed a problem with stores to indexed package elements - the
16571existing code would not complete the store if an "implicit
16572conversion" was not performed.  In other words, if the existing
16573object (package element) was to be replaced completely, the code
16574didn't handle this case.
16575
16576Relaxed typechecking on the ASL "Scope" operator to allow the
16577target name to refer to an object of type Integer, String, or
16578Buffer, in addition to the scoping object types (Device,
16579predefined Scopes, Processor, PowerResource, and ThermalZone.)
16580This allows existing AML code that has workarounds for a bug in
16581Windows to function properly.  A warning is issued, however.  This
16582affects both the AML interpreter and the iASL compiler. Below is
16583an example of this type of ASL code:
16584
16585      Name(DEB,0x00)
16586      Scope(DEB)
16587      {
16588
16589Fixed some reported problems with 64-bit integer support in the
16590local implementation of C library functions (clib.c)
16591
16592
165932) Linux
16594
16595Use ACPI fix map region instead of IOAPIC region, since it is
16596undefined in non-SMP.
16597
16598Ensure that the SCI has the proper polarity and trigger, even on
16599systems that do not have an interrupt override entry in the MADT.
16600
166012.5 big driver reorganization (Pat Mochel)
16602
16603Use early table mapping code from acpitable.c (Andi Kleen)
16604
16605New blacklist entries (Andi Kleen)
16606
16607Blacklist improvements. Split blacklist code out into a separate
16608file. Move checking the blacklist to very early. Previously, we
16609would use ACPI tables, and then halfway through init, check the
16610blacklist -- too late. Now, it's early enough to completely fall-
16611back to non-ACPI.
16612
16613
166143) iASL Compiler/Disassembler version 20020918:
16615
16616Fixed a problem where the typechecking code didn't know that an
16617alias could point to a method.  In other words, aliases were not
16618being dereferenced during typechecking.
16619
16620
16621----------------------------------------
1662229 August 2002.  Summary of changes for this release.
16623
166241) ACPI CA Core Subsystem Version 20020829:
16625
16626If the target of a Scope() operator already exists, it must be an
16627object type that actually opens a scope -- such as a Device,
16628Method, Scope, etc.  This is a fatal runtime error.  Similar error
16629check has been added to the iASL compiler also.
16630
16631Tightened up the namespace load to disallow multiple names in the
16632same scope.  This previously was allowed if both objects were of
16633the same type.  (i.e., a lookup was the same as entering a new
16634name).
16635
16636
166372) Linux
16638
16639Ensure that the ACPI interrupt has the proper trigger and
16640polarity.
16641
16642local_irq_disable is extraneous. (Matthew Wilcox)
16643
16644Make "acpi=off" actually do what it says, and not use the ACPI
16645interpreter *or* the tables.
16646
16647Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
16648Takayoshi)
16649
16650
166513) iASL Compiler/Disassembler  Version 20020829:
16652
16653Implemented namepath optimization for name declarations.  For
16654example, a declaration like "Method (\_SB_.ABCD)" would get
16655optimized to "Method (ABCD)" if the declaration is within the
16656\_SB_ scope.  This optimization is in addition to the named
16657reference path optimization first released in the previous
16658version. This would seem to complete all possible optimizations
16659for namepaths within the ASL/AML.
16660
16661If the target of a Scope() operator already exists, it must be an
16662object type that actually opens a scope -- such as a Device,
16663Method, Scope, etc.
16664
16665Implemented a check and warning for unreachable code in the same
16666block below a Return() statement.
16667
16668Fixed a problem where the listing file was not generated if the
16669compiler aborted if the maximum error count was exceeded (200).
16670
16671Fixed a problem where the typechecking of method return values was
16672broken.  This includes the check for a return value when the
16673method is invoked as a TermArg (a return value is expected.)
16674
16675Fixed a reported problem where EOF conditions during a quoted
16676string or comment caused a fault.
16677
16678
16679----------------------------------------
1668015 August 2002.  Summary of changes for this release.
16681
166821) ACPI CA Core Subsystem Version 20020815:
16683
16684Fixed a reported problem where a Store to a method argument that
16685contains a reference did not perform the indirect store correctly.
16686This problem was created during the conversion to the new
16687reference object model - the indirect store to a method argument
16688code was not updated to reflect the new model.
16689
16690Reworked the ACPI mode change code to better conform to ACPI 2.0,
16691handle corner cases, and improve code legibility (Kochi Takayoshi)
16692
16693Fixed a problem with the pathname parsing for the carat (^)
16694prefix.  The heavy use of the carat operator by the new namepath
16695optimization in the iASL compiler uncovered a problem with the AML
16696interpreter handling of this prefix.  In the case where one or
16697more carats precede a single nameseg, the nameseg was treated as
16698standalone and the search rule (to root) was inadvertently
16699applied.  This could cause both the iASL compiler and the
16700interpreter to find the wrong object or to miss the error that
16701should occur if the object does not exist at that exact pathname.
16702
16703Found and fixed the problem where the HP Pavilion DSDT would not
16704load.  This was a relatively minor tweak to the table loading code
16705(a problem caused by the unexpected encounter with a method
16706invocation not within a control method), but it does not solve the
16707overall issue of the execution of AML code at the table level.
16708This investigation is still ongoing.
16709
16710Code and Data Size: Current core subsystem library sizes are shown
16711below.  These are the code and data sizes for the acpica.lib
16712produced by the Microsoft Visual C++ 6.0 compiler, and these
16713values do not include any ACPI driver or OSPM code.  The debug
16714version of the code includes the debug output trace mechanism and
16715has a larger code and data size.  Note that these values will vary
16716depending on the efficiency of the compiler and the compiler
16717options used during generation.
16718
16719  Previous Release
16720    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
16721    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
16722  Current Release:
16723    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16724    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16725
16726
167272) Linux
16728
16729Remove redundant slab.h include (Brad Hards)
16730
16731Fix several bugs in thermal.c (Herbert Nachtnebel)
16732
16733Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
16734
16735Change acpi_system_suspend to use updated irq functions (Pavel
16736Machek)
16737
16738Export acpi_get_firmware_table (Matthew Wilcox)
16739
16740Use proper root proc entry for ACPI (Kochi Takayoshi)
16741
16742Fix early-boot table parsing (Bjorn Helgaas)
16743
16744
167453) iASL Compiler/Disassembler
16746
16747Reworked the compiler options to make them more consistent and to
16748use two-letter options where appropriate.  We were running out of
16749sensible letters.   This may break some makefiles, so check the
16750current options list by invoking the compiler with no parameters.
16751
16752Completed the design and implementation of the ASL namepath
16753optimization option for the compiler.  This option optimizes all
16754references to named objects to the shortest possible path.  The
16755first attempt tries to utilize a single nameseg (4 characters) and
16756the "search-to-root" algorithm used by the interpreter.  If that
16757cannot be used (because either the name is not in the search path
16758or there is a conflict with another object with the same name),
16759the pathname is optimized using the carat prefix (usually a
16760shorter string than specifying the entire path from the root.)
16761
16762Implemented support to obtain the DSDT from the Windows registry
16763(when the disassembly option is specified with no input file).
16764Added this code as the implementation for AcpiOsTableOverride in
16765the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
16766utility) to scan memory for the DSDT to the AcpiOsTableOverride
16767function in the DOS OSL to make the disassembler truly OS
16768independent.
16769
16770Implemented a new option to disassemble and compile in one step.
16771When used without an input filename, this option will grab the
16772DSDT from the local machine, disassemble it, and compile it in one
16773step.
16774
16775Added a warning message for invalid escapes (a backslash followed
16776by any character other than the allowable escapes).  This catches
16777the quoted string error "\_SB_" (which should be "\\_SB_" ).
16778
16779Also, there are numerous instances in the ACPI specification where
16780this error occurs.
16781
16782Added a compiler option to disable all optimizations.  This is
16783basically the "compatibility mode" because by using this option,
16784the AML code will come out exactly the same as other ASL
16785compilers.
16786
16787Added error messages for incorrectly ordered dependent resource
16788functions.  This includes: missing EndDependentFn macro at end of
16789dependent resource list, nested dependent function macros (both
16790start and end), and missing StartDependentFn macro.  These are
16791common errors that should be caught at compile time.
16792
16793Implemented _OSI support for the disassembler and compiler.  _OSI
16794must be included in the namespace for proper disassembly (because
16795the disassembler must know the number of arguments.)
16796
16797Added an "optimization" message type that is optional (off by
16798default).  This message is used for all optimizations - including
16799constant folding, integer optimization, and namepath optimization.
16800
16801----------------------------------------
1680225 July 2002.  Summary of changes for this release.
16803
16804
168051) ACPI CA Core Subsystem Version 20020725:
16806
16807The AML Disassembler has been enhanced to produce compilable ASL
16808code and has been integrated into the iASL compiler (see below) as
16809well as the single-step disassembly for the AML debugger and the
16810disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
16811resource templates and macros are fully supported.  The
16812disassembler has been tested on over 30 different AML files,
16813producing identical AML when the resulting disassembled ASL file
16814is recompiled with the same ASL compiler.
16815
16816Modified the Resource Manager to allow zero interrupts and zero
16817dma channels during the GetCurrentResources call.  This was
16818causing problems on some platforms.
16819
16820Added the AcpiOsRedirectOutput interface to the OSL to simplify
16821output redirection for the AcpiOsPrintf and AcpiOsVprintf
16822interfaces.
16823
16824Code and Data Size: Current core subsystem library sizes are shown
16825below.  These are the code and data sizes for the acpica.lib
16826produced by the Microsoft Visual C++ 6.0 compiler, and these
16827values do not include any ACPI driver or OSPM code.  The debug
16828version of the code includes the debug output trace mechanism and
16829has a larger code and data size.  Note that these values will vary
16830depending on the efficiency of the compiler and the compiler
16831options used during generation.
16832
16833  Previous Release
16834    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
16835    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
16836  Current Release:
16837    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
16838    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
16839
16840
168412) Linux
16842
16843Fixed a panic in the EC driver (Dominik Brodowski)
16844
16845Implemented checksum of the R/XSDT itself during Linux table scan
16846(Richard Schaal)
16847
16848
168493) iASL compiler
16850
16851The AML disassembler is integrated into the compiler.  The "-d"
16852option invokes the disassembler  to completely disassemble an
16853input AML file, producing as output a text ASL file with the
16854extension ".dsl" (to avoid name collisions with existing .asl
16855source files.)  A future enhancement will allow the disassembler
16856to obtain the BIOS DSDT from the registry under Windows.
16857
16858Fixed a problem with the VendorShort and VendorLong resource
16859descriptors where an invalid AML sequence was created.
16860
16861Implemented a fix for BufferData term in the ASL parser.  It was
16862inadvertently defined twice, allowing invalid syntax to pass and
16863causing reduction conflicts.
16864
16865Fixed a problem where the Ones opcode could get converted to a
16866value of zero if "Ones" was used where a byte, word or dword value
16867was expected.  The 64-bit value is now truncated to the correct
16868size with the correct value.
16869
16870
16871
16872----------------------------------------
1687302 July 2002.  Summary of changes for this release.
16874
16875
168761) ACPI CA Core Subsystem Version 20020702:
16877
16878The Table Manager code has been restructured to add several new
16879features.  Tables that are not required by the core subsystem
16880(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
16881validated in any way and are returned from AcpiGetFirmwareTable if
16882requested.  The AcpiOsTableOverride interface is now called for
16883each table that is loaded by the subsystem in order to allow the
16884host to override any table it chooses.  Previously, only the DSDT
16885could be overridden.  Added one new files, tbrsdt.c and
16886tbgetall.c.
16887
16888Fixed a problem with the conversion of internal package objects to
16889external objects (when a package is returned from a control
16890method.)  The return buffer length was set to zero instead of the
16891proper length of the package object.
16892
16893Fixed a reported problem with the use of the RefOf and DeRefOf
16894operators when passing reference arguments to control methods.  A
16895new type of Reference object is used internally for references
16896produced by the RefOf operator.
16897
16898Added additional error messages in the Resource Manager to explain
16899AE_BAD_DATA errors when they occur during resource parsing.
16900
16901Split the AcpiEnableSubsystem into two primitives to enable a
16902finer granularity initialization sequence.  These two calls should
16903be called in this order: AcpiEnableSubsystem (flags),
16904AcpiInitializeObjects (flags).  The flags parameter remains the
16905same.
16906
16907
169082) Linux
16909
16910Updated the ACPI utilities module to understand the new style of
16911fully resolved package objects that are now returned from the core
16912subsystem.  This eliminates errors of the form:
16913
16914    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
16915    acpi_utils-0430 [145] acpi_evaluate_reference:
16916        Invalid element in package (not a device reference)
16917
16918The method evaluation utility uses the new buffer allocation
16919scheme instead of calling AcpiEvaluate Object twice.
16920
16921Added support for ECDT. This allows the use of the Embedded
16922
16923Controller before the namespace has been fully initialized, which
16924is necessary for ACPI 2.0 support, and for some laptops to
16925initialize properly. (Laptops using ECDT are still rare, so only
16926limited testing was performed of the added functionality.)
16927
16928Fixed memory leaks in the EC driver.
16929
16930Eliminated a brittle code structure in acpi_bus_init().
16931
16932Eliminated the acpi_evaluate() helper function in utils.c. It is
16933no longer needed since acpi_evaluate_object can optionally
16934allocate memory for the return object.
16935
16936Implemented fix for keyboard hang when getting battery readings on
16937some systems (Stephen White)
16938
16939PCI IRQ routing update (Dominik Brodowski)
16940
16941Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
16942support
16943
16944----------------------------------------
1694511 June 2002.  Summary of changes for this release.
16946
16947
169481) ACPI CA Core Subsystem Version 20020611:
16949
16950Fixed a reported problem where constants such as Zero and One
16951appearing within _PRT packages were not handled correctly within
16952the resource manager code.  Originally reported against the ASL
16953compiler because the code generator now optimizes integers to
16954their minimal AML representation (i.e. AML constants if possible.)
16955The _PRT code now handles all AML constant opcodes correctly
16956(Zero, One, Ones, Revision).
16957
16958Fixed a problem with the Concatenate operator in the AML
16959interpreter where a buffer result object was incorrectly marked as
16960not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
16961
16962All package sub-objects are now fully resolved before they are
16963returned from the external ACPI interfaces.  This means that name
16964strings are resolved to object handles, and constant operators
16965(Zero, One, Ones, Revision) are resolved to Integers.
16966
16967Implemented immediate resolution of the AML Constant opcodes
16968(Zero, One, Ones, Revision) to Integer objects upon detection
16969within the AML stream. This has simplified and reduced the
16970generated code size of the subsystem by eliminating about 10
16971switch statements for these constants (which previously were
16972contained in Reference objects.)  The complicating issues are that
16973the Zero opcode is used as a "placeholder" for unspecified
16974optional target operands and stores to constants are defined to be
16975no-ops.
16976
16977Code and Data Size: Current core subsystem library sizes are shown
16978below. These are the code and data sizes for the acpica.lib
16979produced by the Microsoft Visual C++ 6.0 compiler, and these
16980values do not include any ACPI driver or OSPM code.  The debug
16981version of the code includes the debug output trace mechanism and
16982has a larger code and data size.  Note that these values will vary
16983depending on the efficiency of the compiler and the compiler
16984options used during generation.
16985
16986  Previous Release
16987    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
16988    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
16989  Current Release:
16990    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
16991    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
16992
16993
169942) Linux
16995
16996
16997Added preliminary support for obtaining _TRA data for PCI root
16998bridges (Bjorn Helgaas).
16999
17000
170013) iASL Compiler Version X2046:
17002
17003Fixed a problem where the "_DDN" reserved name was defined to be a
17004control method with one argument.  There are no arguments, and
17005_DDN does not have to be a control method.
17006
17007Fixed a problem with the Linux version of the compiler where the
17008source lines printed with error messages were the wrong lines.
17009This turned out to be the "LF versus CR/LF" difference between
17010Windows and Unix.  This appears to be the longstanding issue
17011concerning listing output and error messages.
17012
17013Fixed a problem with the Linux version of compiler where opcode
17014names within error messages were wrong.  This was caused by a
17015slight difference in the output of the Flex tool on Linux versus
17016Windows.
17017
17018Fixed a problem with the Linux compiler where the hex output files
17019contained some garbage data caused by an internal buffer overrun.
17020
17021
17022----------------------------------------
1702317 May 2002.  Summary of changes for this release.
17024
17025
170261) ACPI CA Core Subsystem Version 20020517:
17027
17028Implemented a workaround to an BIOS bug discovered on the HP
17029OmniBook where the FADT revision number and the table size are
17030inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
17031behavior is to fallback to using only the ACPI 1.0 fields of the
17032FADT if the table is too small to be a ACPI 2.0 table as claimed
17033by the revision number.  Although this is a BIOS bug, this is a
17034case where the workaround is simple enough and with no side
17035effects, so it seemed prudent to add it.  A warning message is
17036issued, however.
17037
17038Implemented minimum size checks for the fixed-length ACPI tables -
17039- the FADT and FACS, as well as consistency checks between the
17040revision number and the table size.
17041
17042Fixed a reported problem in the table override support where the
17043new table pointer was incorrectly treated as a physical address
17044instead of a logical address.
17045
17046Eliminated the use of the AE_AML_ERROR exception and replaced it
17047with more descriptive codes.
17048
17049Fixed a problem where an exception would occur if an ASL Field was
17050defined with no named Field Units underneath it (used by some
17051index fields).
17052
17053Code and Data Size: Current core subsystem library sizes are shown
17054below.  These are the code and data sizes for the acpica.lib
17055produced by the Microsoft Visual C++ 6.0 compiler, and these
17056values do not include any ACPI driver or OSPM code.  The debug
17057version of the code includes the debug output trace mechanism and
17058has a larger code and data size.  Note that these values will vary
17059depending on the efficiency of the compiler and the compiler
17060options used during generation.
17061
17062  Previous Release
17063    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17064    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17065  Current Release:
17066    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17067    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17068
17069
17070
170712) Linux
17072
17073Much work done on ACPI init (MADT and PCI IRQ routing support).
17074(Paul D. and Dominik Brodowski)
17075
17076Fix PCI IRQ-related panic on boot (Sam Revitch)
17077
17078Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
17079
17080Fix "MHz" typo (Dominik Brodowski)
17081
17082Fix RTC year 2000 issue (Dominik Brodowski)
17083
17084Preclude multiple button proc entries (Eric Brunet)
17085
17086Moved arch-specific code out of include/platform/aclinux.h
17087
170883) iASL Compiler Version X2044:
17089
17090Implemented error checking for the string used in the EISAID macro
17091(Usually used in the definition of the _HID object.)  The code now
17092strictly enforces the PnP format - exactly 7 characters, 3
17093uppercase letters and 4 hex digits.
17094
17095If a raw string is used in the definition of the _HID object
17096(instead of the EISAID macro), the string must contain all
17097alphanumeric characters (e.g., "*PNP0011" is not allowed because
17098of the asterisk.)
17099
17100Implemented checking for invalid use of ACPI reserved names for
17101most of the name creation operators (Name, Device, Event, Mutex,
17102OperationRegion, PowerResource, Processor, and ThermalZone.)
17103Previously, this check was only performed for control methods.
17104
17105Implemented an additional check on the Name operator to emit an
17106error if a reserved name that must be implemented in ASL as a
17107control method is used.  We know that a reserved name must be a
17108method if it is defined with input arguments.
17109
17110The warning emitted when a namespace object reference is not found
17111during the cross reference phase has been changed into an error.
17112The "External" directive should be used for names defined in other
17113modules.
17114
17115
171164) Tools and Utilities
17117
17118The 16-bit tools (adump16 and aexec16) have been regenerated and
17119tested.
17120
17121Fixed a problem with the output of both acpidump and adump16 where
17122the indentation of closing parentheses and brackets was not
17123
17124aligned properly with the parent block.
17125
17126
17127----------------------------------------
1712803 May 2002.  Summary of changes for this release.
17129
17130
171311) ACPI CA Core Subsystem Version 20020503:
17132
17133Added support a new OSL interface that allows the host operating
17134
17135system software to override the DSDT found in the firmware -
17136AcpiOsTableOverride.  With this interface, the OSL can examine the
17137version of the firmware DSDT and replace it with a different one
17138if desired.
17139
17140Added new external interfaces for accessing ACPI registers from
17141device drivers and other system software - AcpiGetRegister and
17142AcpiSetRegister.  This was simply an externalization of the
17143existing AcpiHwBitRegister interfaces.
17144
17145Fixed a regression introduced in the previous build where the
17146ASL/AML CreateField operator always returned an error,
17147"destination must be a NS Node".
17148
17149Extended the maximum time (before failure) to successfully enable
17150ACPI mode to 3 seconds.
17151
17152Code and Data Size: Current core subsystem library sizes are shown
17153below.  These are the code and data sizes for the acpica.lib
17154produced by the Microsoft Visual C++ 6.0 compiler, and these
17155values do not include any ACPI driver or OSPM code.  The debug
17156version of the code includes the debug output trace mechanism and
17157has a larger code and data size.  Note that these values will vary
17158depending on the efficiency of the compiler and the compiler
17159options used during generation.
17160
17161  Previous Release
17162    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17163    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17164  Current Release:
17165    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17166    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17167
17168
171692) Linux
17170
17171Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
17172free. While 3 out of 4 of our in-house systems work fine, the last
17173one still hangs when testing the LAPIC timer.
17174
17175Renamed many files in 2.5 kernel release to omit "acpi_" from the
17176name.
17177
17178Added warning on boot for Presario 711FR.
17179
17180Sleep improvements (Pavel Machek)
17181
17182ACPI can now be built without CONFIG_PCI enabled.
17183
17184IA64: Fixed memory map functions (JI Lee)
17185
17186
171873) iASL Compiler Version X2043:
17188
17189Added support to allow the compiler to be integrated into the MS
17190VC++ development environment for one-button compilation of single
17191files or entire projects -- with error-to-source-line mapping.
17192
17193Implemented support for compile-time constant folding for the
17194Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
17195specification.  This allows the ASL writer to use expressions
17196instead of Integer/Buffer/String constants in terms that must
17197evaluate to constants at compile time and will also simplify the
17198emitted AML in any such sub-expressions that can be folded
17199(evaluated at compile-time.)  This increases the size of the
17200compiler significantly because a portion of the ACPI CA AML
17201interpreter is included within the compiler in order to pre-
17202evaluate constant expressions.
17203
17204
17205Fixed a problem with the "Unicode" ASL macro that caused the
17206compiler to fault.  (This macro is used in conjunction with the
17207_STR reserved name.)
17208
17209Implemented an AML opcode optimization to use the Zero, One, and
17210Ones opcodes where possible to further reduce the size of integer
17211constants and thus reduce the overall size of the generated AML
17212code.
17213
17214Implemented error checking for new reserved terms for ACPI version
172152.0A.
17216
17217Implemented the -qr option to display the current list of ACPI
17218reserved names known to the compiler.
17219
17220Implemented the -qc option to display the current list of ASL
17221operators that are allowed within constant expressions and can
17222therefore be folded at compile time if the operands are constants.
17223
17224
172254) Documentation
17226
17227Updated the Programmer's Reference for new interfaces, data types,
17228and memory allocation model options.
17229
17230Updated the iASL Compiler User Reference to apply new format and
17231add information about new features and options.
17232
17233----------------------------------------
1723419 April 2002.  Summary of changes for this release.
17235
172361) ACPI CA Core Subsystem Version 20020419:
17237
17238The source code base for the Core Subsystem has been completely
17239cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
17240versions.  The Lint option files used are included in the
17241/acpi/generate/lint directory.
17242
17243Implemented enhanced status/error checking across the entire
17244Hardware manager subsystem.  Any hardware errors (reported from
17245the OSL) are now bubbled up and will abort a running control
17246method.
17247
17248
17249Fixed a problem where the per-ACPI-table integer width (32 or 64)
17250was stored only with control method nodes, causing a fault when
17251non-control method code was executed during table loading.  The
17252solution implemented uses a global variable to indicate table
17253width across the entire ACPI subsystem.  Therefore, ACPI CA does
17254not support mixed integer widths across different ACPI tables
17255(DSDT, SSDT).
17256
17257Fixed a problem where NULL extended fields (X fields) in an ACPI
172582.0 ACPI FADT caused the table load to fail.  Although the
17259existing ACPI specification is a bit fuzzy on this topic, the new
17260behavior is to fall back on a ACPI 1.0 field if the corresponding
17261ACPI 2.0 X field is zero (even though the table revision indicates
17262a full ACPI 2.0 table.)  The ACPI specification will be updated to
17263clarify this issue.
17264
17265Fixed a problem with the SystemMemory operation region handler
17266where memory was always accessed byte-wise even if the AML-
17267specified access width was larger than a byte.  This caused
17268problems on systems with memory-mapped I/O.  Memory is now
17269accessed with the width specified.  On systems that do not support
17270non-aligned transfers, a check is made to guarantee proper address
17271alignment before proceeding in order to avoid an AML-caused
17272alignment fault within the kernel.
17273
17274
17275Fixed a problem with the ExtendedIrq resource where only one byte
17276of the 4-byte Irq field was extracted.
17277
17278Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
17279function was out of date and required a rewrite.
17280
17281Code and Data Size: Current core subsystem library sizes are shown
17282below.  These are the code and data sizes for the acpica.lib
17283produced by the Microsoft Visual C++ 6.0 compiler, and these
17284values do not include any ACPI driver or OSPM code.  The debug
17285version of the code includes the debug output trace mechanism and
17286has a larger code and data size.  Note that these values will vary
17287depending on the efficiency of the compiler and the compiler
17288options used during generation.
17289
17290  Previous Release
17291    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17292    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17293  Current Release:
17294    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17295    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17296
17297
172982) Linux
17299
17300PCI IRQ routing fixes (Dominik Brodowski)
17301
17302
173033) iASL Compiler Version X2042:
17304
17305Implemented an additional compile-time error check for a field
17306unit whose size + minimum access width would cause a run-time
17307access beyond the end-of-region.  Previously, only the field size
17308itself was checked.
17309
17310The Core subsystem and iASL compiler now share a common parse
17311object in preparation for compile-time evaluation of the type
173123/4/5 ASL operators.
17313
17314
17315----------------------------------------
17316Summary of changes for this release: 03_29_02
17317
173181) ACPI CA Core Subsystem Version 20020329:
17319
17320Implemented support for late evaluation of TermArg operands to
17321Buffer and Package objects.  This allows complex expressions to be
17322used in the declarations of these object types.
17323
17324Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
173251.0, if the field was larger than 32 bits, it was returned as a
17326buffer - otherwise it was returned as an integer.  In ACPI 2.0,
17327the field is returned as a buffer only if the field is larger than
1732864 bits.  The TableRevision is now considered when making this
17329conversion to avoid incompatibility with existing ASL code.
17330
17331Implemented logical addressing for AcpiOsGetRootPointer.  This
17332allows an RSDP with either a logical or physical address.  With
17333this support, the host OS can now override all ACPI tables with
17334one logical RSDP.  Includes implementation of  "typed" pointer
17335support to allow a common data type for both physical and logical
17336pointers internally.  This required a change to the
17337AcpiOsGetRootPointer interface.
17338
17339Implemented the use of ACPI 2.0 Generic Address Structures for all
17340GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
17341mapped I/O for these ACPI features.
17342
17343Initialization now ignores not only non-required tables (All
17344tables other than the FADT, FACS, DSDT, and SSDTs), but also does
17345not validate the table headers of unrecognized tables.
17346
17347Fixed a problem where a notify handler could only be
17348installed/removed on an object of type Device.  All "notify"
17349
17350objects are now supported -- Devices, Processor, Power, and
17351Thermal.
17352
17353Removed most verbosity from the ACPI_DB_INFO debug level.  Only
17354critical information is returned when this debug level is enabled.
17355
17356Code and Data Size: Current core subsystem library sizes are shown
17357below.  These are the code and data sizes for the acpica.lib
17358produced by the Microsoft Visual C++ 6.0 compiler, and these
17359values do not include any ACPI driver or OSPM code.  The debug
17360version of the code includes the debug output trace mechanism and
17361has a larger code and data size.  Note that these values will vary
17362depending on the efficiency of the compiler and the compiler
17363options used during generation.
17364
17365  Previous Release
17366    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17367    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17368  Current Release:
17369    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17370    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17371
17372
173732) Linux:
17374
17375The processor driver (acpi_processor.c) now fully supports ACPI
173762.0-based processor performance control (e.g. Intel(R)
17377SpeedStep(TM) technology) Note that older laptops that only have
17378the Intel "applet" interface are not supported through this.  The
17379'limit' and 'performance' interface (/proc) are fully functional.
17380[Note that basic policy for controlling performance state
17381transitions will be included in the next version of ospmd.]  The
17382idle handler was modified to more aggressively use C2, and PIIX4
17383errata handling underwent a complete overhaul (big thanks to
17384Dominik Brodowski).
17385
17386Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
17387based devices in the ACPI namespace are now dynamically bound
17388(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
17389This allows, among other things, ACPI to resolve bus numbers for
17390subordinate PCI bridges.
17391
17392Enhanced PCI IRQ routing to get the proper bus number for _PRT
17393entries defined underneath PCI bridges.
17394
17395Added IBM 600E to bad bios list due to invalid _ADR value for
17396PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
17397
17398In the process of adding full MADT support (e.g. IOAPIC) for IA32
17399(acpi.c, mpparse.c) -- stay tuned.
17400
17401Added back visual differentiation between fixed-feature and
17402control-method buttons in dmesg.  Buttons are also subtyped (e.g.
17403button/power/PWRF) to simplify button identification.
17404
17405We no longer use -Wno-unused when compiling debug. Please ignore
17406any "_THIS_MODULE defined but not used" messages.
17407
17408Can now shut down the system using "magic sysrq" key.
17409
17410
174113) iASL Compiler version 2041:
17412
17413Fixed a problem where conversion errors for hex/octal/decimal
17414constants were not reported.
17415
17416Implemented a fix for the General Register template Address field.
17417This field was 8 bits when it should be 64.
17418
17419Fixed a problem where errors/warnings were no longer being emitted
17420within the listing output file.
17421
17422Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
17423exactly 4 characters, alphanumeric only.
17424
17425
17426
17427
17428----------------------------------------
17429Summary of changes for this release: 03_08_02
17430
17431
174321) ACPI CA Core Subsystem Version 20020308:
17433
17434Fixed a problem with AML Fields where the use of the "AccessAny"
17435keyword could cause an interpreter error due to attempting to read
17436or write beyond the end of the parent Operation Region.
17437
17438Fixed a problem in the SystemMemory Operation Region handler where
17439an attempt was made to map memory beyond the end of the region.
17440This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
17441errors on some Linux systems.
17442
17443Fixed a problem where the interpreter/namespace "search to root"
17444algorithm was not functioning for some object types.  Relaxed the
17445internal restriction on the search to allow upsearches for all
17446external object types as well as most internal types.
17447
17448
174492) Linux:
17450
17451We now use safe_halt() macro versus individual calls to sti | hlt.
17452
17453Writing to the processor limit interface should now work. "echo 1"
17454will increase the limit, 2 will decrease, and 0 will reset to the
17455
17456default.
17457
17458
174593) ASL compiler:
17460
17461Fixed segfault on Linux version.
17462
17463
17464----------------------------------------
17465Summary of changes for this release: 02_25_02
17466
174671) ACPI CA Core Subsystem:
17468
17469
17470Fixed a problem where the GPE bit masks were not initialized
17471properly, causing erratic GPE behavior.
17472
17473Implemented limited support for multiple calling conventions.  The
17474code can be generated with either the VPL (variable parameter
17475list, or "C") convention, or the FPL (fixed parameter list, or
17476"Pascal") convention.  The core subsystem is about 3.4% smaller
17477when generated with FPL.
17478
17479
174802) Linux
17481
17482Re-add some /proc/acpi/event functionality that was lost during
17483the rewrite
17484
17485Resolved issue with /proc events for fixed-feature buttons showing
17486up as the system device.
17487
17488Fixed checks on C2/C3 latencies to be inclusive of maximum values.
17489
17490Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
17491
17492Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
17493
17494Fixed limit interface & usage to fix bugs with passive cooling
17495hysterisis.
17496
17497Restructured PRT support.
17498
17499
17500----------------------------------------
17501Summary of changes for this label: 02_14_02
17502
17503
175041) ACPI CA Core Subsystem:
17505
17506Implemented support in AcpiLoadTable to allow loading of FACS and
17507FADT tables.
17508
17509Support for the now-obsolete interim 0.71 64-bit ACPI tables has
17510been removed.  All 64-bit platforms should be migrated to the ACPI
175112.0 tables.  The actbl71.h header has been removed from the source
17512tree.
17513
17514All C macros defined within the subsystem have been prefixed with
17515"ACPI_" to avoid collision with other system include files.
17516
17517Removed the return value for the two AcpiOsPrint interfaces, since
17518it is never used and causes lint warnings for ignoring the return
17519value.
17520
17521Added error checking to all internal mutex acquire and release
17522calls.  Although a failure from one of these interfaces is
17523probably a fatal system error, these checks will cause the
17524immediate abort of the currently executing method or interface.
17525
17526Fixed a problem where the AcpiSetCurrentResources interface could
17527fault.  This was a side effect of the deployment of the new memory
17528allocation model.
17529
17530Fixed a couple of problems with the Global Lock support introduced
17531in the last major build.  The "common" (1.0/2.0) internal FACS was
17532being overwritten with the FACS signature and clobbering the
17533Global Lock pointer.  Also, the actual firmware FACS was being
17534unmapped after construction of the "common" FACS, preventing
17535access to the actual Global Lock field within it.  The "common"
17536internal FACS is no longer installed as an actual ACPI table; it
17537is used simply as a global.
17538
17539Code and Data Size: Current core subsystem library sizes are shown
17540below.  These are the code and data sizes for the acpica.lib
17541produced by the Microsoft Visual C++ 6.0 compiler, and these
17542values do not include any ACPI driver or OSPM code.  The debug
17543version of the code includes the debug output trace mechanism and
17544has a larger code and data size.  Note that these values will vary
17545depending on the efficiency of the compiler and the compiler
17546options used during generation.
17547
17548  Previous Release (02_07_01)
17549    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17550    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17551  Current Release:
17552    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17553    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17554
17555
175562) Linux
17557
17558Updated Linux-specific code for core macro and OSL interface
17559changes described above.
17560
17561Improved /proc/acpi/event. It now can be opened only once and has
17562proper poll functionality.
17563
17564Fixed and restructured power management (acpi_bus).
17565
17566Only create /proc "view by type" when devices of that class exist.
17567
17568Fixed "charging/discharging" bug (and others) in acpi_battery.
17569
17570Improved thermal zone code.
17571
17572
175733) ASL Compiler, version X2039:
17574
17575
17576Implemented the new compiler restriction on ASL String hex/octal
17577escapes to non-null, ASCII values.  An error results if an invalid
17578value is used.  (This will require an ACPI 2.0 specification
17579change.)
17580
17581AML object labels that are output to the optional C and ASM source
17582are now prefixed with both the ACPI table signature and table ID
17583to help guarantee uniqueness within a large BIOS project.
17584
17585
17586----------------------------------------
17587Summary of changes for this label: 02_01_02
17588
175891) ACPI CA Core Subsystem:
17590
17591ACPI 2.0 support is complete in the entire Core Subsystem and the
17592ASL compiler. All new ACPI 2.0 operators are implemented and all
17593other changes for ACPI 2.0 support are complete.  With
17594simultaneous code and data optimizations throughout the subsystem,
17595ACPI 2.0 support has been implemented with almost no additional
17596cost in terms of code and data size.
17597
17598Implemented a new mechanism for allocation of return buffers.  If
17599the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
17600be allocated on behalf of the caller.  Consolidated all return
17601buffer validation and allocation to a common procedure.  Return
17602buffers will be allocated via the primary OSL allocation interface
17603since it appears that a separate pool is not needed by most users.
17604If a separate pool is required for these buffers, the caller can
17605still use the original mechanism and pre-allocate the buffer(s).
17606
17607Implemented support for string operands within the DerefOf
17608operator.
17609
17610Restructured the Hardware and Event managers to be table driven,
17611simplifying the source code and reducing the amount of generated
17612code.
17613
17614Split the common read/write low-level ACPI register bitfield
17615procedure into a separate read and write, simplifying the code
17616considerably.
17617
17618Obsoleted the AcpiOsCallocate OSL interface.  This interface was
17619used only a handful of times and didn't have enough critical mass
17620for a separate interface.  Replaced with a common calloc procedure
17621in the core.
17622
17623Fixed a reported problem with the GPE number mapping mechanism
17624that allows GPE1 numbers to be non-contiguous with GPE0.
17625Reorganized the GPE information and shrunk a large array that was
17626originally large enough to hold info for all possible GPEs (256)
17627to simply large enough to hold all GPEs up to the largest GPE
17628number on the machine.
17629
17630Fixed a reported problem with resource structure alignment on 64-
17631bit platforms.
17632
17633Changed the AcpiEnableEvent and AcpiDisableEvent external
17634interfaces to not require any flags for the common case of
17635enabling/disabling a GPE.
17636
17637Implemented support to allow a "Notify" on a Processor object.
17638
17639Most TBDs in comments within the source code have been resolved
17640and eliminated.
17641
17642
17643Fixed a problem in the interpreter where a standalone parent
17644prefix (^) was not handled correctly in the interpreter and
17645debugger.
17646
17647Removed obsolete and unnecessary GPE save/restore code.
17648
17649Implemented Field support in the ASL Load operator.  This allows a
17650table to be loaded from a named field, in addition to loading a
17651table directly from an Operation Region.
17652
17653Implemented timeout and handle support in the external Global Lock
17654interfaces.
17655
17656Fixed a problem in the AcpiDump utility where pathnames were no
17657longer being generated correctly during the dump of named objects.
17658
17659Modified the AML debugger to give a full display of if/while
17660predicates instead of just one AML opcode at a time.  (The
17661predicate can have several nested ASL statements.)  The old method
17662was confusing during single stepping.
17663
17664Code and Data Size: Current core subsystem library sizes are shown
17665below. These are the code and data sizes for the acpica.lib
17666produced by the Microsoft Visual C++ 6.0 compiler, and these
17667values do not include any ACPI driver or OSPM code.  The debug
17668version of the code includes the debug output trace mechanism and
17669has a larger code and data size.  Note that these values will vary
17670depending on the efficiency of the compiler and the compiler
17671options used during generation.
17672
17673  Previous Release (12_18_01)
17674     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17675     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17676   Current Release:
17677     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17678     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17679
176802) Linux
17681
17682 Implemented fix for PIIX reverse throttling errata (Processor
17683driver)
17684
17685Added new Limit interface (Processor and Thermal drivers)
17686
17687New thermal policy (Thermal driver)
17688
17689Many updates to /proc
17690
17691Battery "low" event support (Battery driver)
17692
17693Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
17694
17695IA32 - IA64 initialization unification, no longer experimental
17696
17697Menuconfig options redesigned
17698
176993) ASL Compiler, version X2037:
17700
17701Implemented several new output features to simplify integration of
17702AML code into  firmware: 1) Output the AML in C source code with
17703labels for each named ASL object.  The    original ASL source code
17704is interleaved as C comments. 2) Output the AML in ASM source code
17705with labels and interleaved ASL    source. 3) Output the AML in
17706raw hex table form, in either C or ASM.
17707
17708Implemented support for optional string parameters to the
17709LoadTable operator.
17710
17711Completed support for embedded escape sequences within string
17712literals.  The compiler now supports all single character escapes
17713as well as the Octal and Hex escapes.  Note: the insertion of a
17714null byte into a string literal (via the hex/octal escape) causes
17715the string to be immediately terminated.  A warning is issued.
17716
17717Fixed a problem where incorrect AML was generated for the case
17718where an ASL namepath consists of a single parent prefix (
17719
17720) with no trailing name segments.
17721
17722The compiler has been successfully generated with a 64-bit C
17723compiler.
17724
17725
17726
17727
17728----------------------------------------
17729Summary of changes for this label: 12_18_01
17730
177311) Linux
17732
17733Enhanced blacklist with reason and severity fields. Any table's
17734signature may now be used to identify a blacklisted system.
17735
17736Call _PIC control method to inform the firmware which interrupt
17737model the OS is using. Turn on any disabled link devices.
17738
17739Cleaned up busmgr /proc error handling (Andreas Dilger)
17740
17741 2) ACPI CA Core Subsystem:
17742
17743Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
17744while loop)
17745
17746Completed implementation of the ACPI 2.0 "Continue",
17747"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
17748operators.  All new ACPI 2.0 operators are now implemented in both
17749the ASL compiler and the AML interpreter.  The only remaining ACPI
177502.0 task is support for the String data type in the DerefOf
17751operator.  Fixed a problem with AcquireMutex where the status code
17752was lost if the caller had to actually wait for the mutex.
17753
17754Increased the maximum ASL Field size from 64K bits to 4G bits.
17755
17756Completed implementation of the external Global Lock interfaces --
17757AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
17758Handler parameters were added.
17759
17760Completed another pass at removing warnings and issues when
17761compiling with 64-bit compilers.  The code now compiles cleanly
17762with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
17763add and subtract (diff) macros have changed considerably.
17764
17765
17766Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1776764-bit platforms, 32-bits on all others.  This type is used
17768wherever memory allocation and/or the C sizeof() operator is used,
17769and affects the OSL memory allocation interfaces AcpiOsAllocate
17770and AcpiOsCallocate.
17771
17772Implemented sticky user breakpoints in the AML debugger.
17773
17774Code and Data Size: Current core subsystem library sizes are shown
17775below. These are the code and data sizes for the acpica.lib
17776produced by the Microsoft Visual C++ 6.0 compiler, and these
17777values do not include any ACPI driver or OSPM code.  The debug
17778version of the code includes the debug output trace mechanism and
17779has a larger code and data size. Note that these values will vary
17780depending on the efficiency of the compiler and the compiler
17781options used during generation.
17782
17783  Previous Release (12_05_01)
17784     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
17785     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
17786   Current Release:
17787     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17788     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17789
17790 3) ASL Compiler, version X2034:
17791
17792Now checks for (and generates an error if detected) the use of a
17793Break or Continue statement without an enclosing While statement.
17794
17795
17796Successfully generated the compiler with the Intel 64-bit C
17797compiler.
17798
17799 ----------------------------------------
17800Summary of changes for this label: 12_05_01
17801
17802 1) ACPI CA Core Subsystem:
17803
17804The ACPI 2.0 CopyObject operator is fully implemented.  This
17805operator creates a new copy of an object (and is also used to
17806bypass the "implicit conversion" mechanism of the Store operator.)
17807
17808The ACPI 2.0 semantics for the SizeOf operator are fully
17809implemented.  The change is that performing a SizeOf on a
17810reference object causes an automatic dereference of the object to
17811the actual value before the size is evaluated. This behavior was
17812undefined in ACPI 1.0.
17813
17814The ACPI 2.0 semantics for the Extended IRQ resource descriptor
17815have been implemented.  The interrupt polarity and mode are now
17816independently set.
17817
17818Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
17819appearing in Package objects were not properly converted to
17820integers when the internal Package was converted to an external
17821object (via the AcpiEvaluateObject interface.)
17822
17823Fixed a problem with the namespace object deletion mechanism for
17824objects created by control methods.  There were two parts to this
17825problem: 1) Objects created during the initialization phase method
17826parse were not being deleted, and 2) The object owner ID mechanism
17827to track objects was broken.
17828
17829Fixed a problem where the use of the ASL Scope operator within a
17830control method would result in an invalid opcode exception.
17831
17832Fixed a problem introduced in the previous label where the buffer
17833length required for the _PRT structure was not being returned
17834correctly.
17835
17836Code and Data Size: Current core subsystem library sizes are shown
17837below. These are the code and data sizes for the acpica.lib
17838produced by the Microsoft Visual C++ 6.0 compiler, and these
17839values do not include any ACPI driver or OSPM code.  The debug
17840version of the code includes the debug output trace mechanism and
17841has a larger code and data size.  Note that these values will vary
17842depending on the efficiency of the compiler and the compiler
17843options used during generation.
17844
17845  Previous Release (11_20_01)
17846     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
17847     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
17848
17849  Current Release:
17850     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
17851     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
17852
17853 2) Linux:
17854
17855Updated all files to apply cleanly against 2.4.16.
17856
17857Added basic PCI Interrupt Routing Table (PRT) support for IA32
17858(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
17859version supports both static and dynamic PRT entries, but dynamic
17860entries are treated as if they were static (not yet
17861reconfigurable).  Architecture- specific code to use this data is
17862absent on IA32 but should be available shortly.
17863
17864Changed the initialization sequence to start the ACPI interpreter
17865(acpi_init) prior to initialization of the PCI driver (pci_init)
17866in init/main.c.  This ordering is required to support PRT and
17867facilitate other (future) enhancement.  A side effect is that the
17868ACPI bus driver and certain device drivers can no longer be loaded
17869as modules.
17870
17871Modified the 'make menuconfig' options to allow PCI Interrupt
17872Routing support to be included without the ACPI Bus and other
17873device drivers.
17874
17875 3) ASL Compiler, version X2033:
17876
17877Fixed some issues with the use of the new CopyObject and
17878DataTableRegion operators.  Both are fully functional.
17879
17880 ----------------------------------------
17881Summary of changes for this label: 11_20_01
17882
17883 20 November 2001.  Summary of changes for this release.
17884
17885 1) ACPI CA Core Subsystem:
17886
17887Updated Index support to match ACPI 2.0 semantics.  Storing a
17888Integer, String, or Buffer to an Index of a Buffer will store only
17889the least-significant byte of the source to the Indexed buffer
17890byte.  Multiple writes are not performed.
17891
17892Fixed a problem where the access type used in an AccessAs ASL
17893operator was not recorded correctly into the field object.
17894
17895Fixed a problem where ASL Event objects were created in a
17896signalled state. Events are now created in an unsignalled state.
17897
17898The internal object cache is now purged after table loading and
17899initialization to reduce the use of dynamic kernel memory -- on
17900the assumption that object use is greatest during the parse phase
17901of the entire table (versus the run-time use of individual control
17902methods.)
17903
17904ACPI 2.0 variable-length packages are now fully operational.
17905
17906Code and Data Size: Code and Data optimizations have permitted new
17907feature development with an actual reduction in the library size.
17908Current core subsystem library sizes are shown below.  These are
17909the code and data sizes for the acpica.lib produced by the
17910Microsoft Visual C++ 6.0 compiler, and these values do not include
17911any ACPI driver or OSPM code.  The debug version of the code
17912includes the debug output trace mechanism and has a larger code
17913and data size.  Note that these values will vary depending on the
17914efficiency of the compiler and the compiler options used during
17915generation.
17916
17917  Previous Release (11_09_01):
17918     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
17919     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
17920
17921  Current Release:
17922     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
17923     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
17924
17925 2) Linux:
17926
17927Enhanced the ACPI boot-time initialization code to allow the use
17928of Local APIC tables for processor enumeration on IA-32, and to
17929pave the way for a fully MPS-free boot (on SMP systems) in the
17930near future.  This functionality replaces
17931arch/i386/kernel/acpitables.c, which was introduced in an earlier
179322.4.15-preX release.  To enable this feature you must add
17933"acpi_boot=on" to the kernel command line -- see the help entry
17934for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
17935the works...
17936
17937Restructured the configuration options to allow boot-time table
17938parsing support without inclusion of the ACPI Interpreter (and
17939other) code.
17940
17941NOTE: This release does not include fixes for the reported events,
17942power-down, and thermal passive cooling issues (coming soon).
17943
17944 3) ASL Compiler:
17945
17946Added additional typechecking for Fields within restricted access
17947Operation Regions.  All fields within EC and CMOS regions must be
17948declared with ByteAcc. All fields within SMBus regions must be
17949declared with the BufferAcc access type.
17950
17951Fixed a problem where the listing file output of control methods
17952no longer interleaved the actual AML code with the ASL source
17953code.
17954
17955
17956
17957
17958----------------------------------------
17959Summary of changes for this label: 11_09_01
17960
179611) ACPI CA Core Subsystem:
17962
17963Implemented ACPI 2.0-defined support for writes to fields with a
17964Buffer, String, or Integer source operand that is smaller than the
17965target field. In these cases, the source operand is zero-extended
17966to fill the target field.
17967
17968Fixed a problem where a Field starting bit offset (within the
17969parent operation region) was calculated incorrectly if the
17970
17971alignment of the field differed from the access width.  This
17972affected CreateWordField, CreateDwordField, CreateQwordField, and
17973possibly other fields that use the "AccessAny" keyword.
17974
17975Fixed a problem introduced in the 11_02_01 release where indirect
17976stores through method arguments did not operate correctly.
17977
179782) Linux:
17979
17980Implemented boot-time ACPI table parsing support
17981(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
17982facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
17983legacy BIOS interfaces (e.g. MPS) for the configuration of system
17984processors, memory, and interrupts during setup_arch().  Note that
17985this patch does not include the required architecture-specific
17986changes required to apply this information -- subsequent patches
17987will be posted for both IA32 and IA64 to achieve this.
17988
17989Added low-level sleep support for IA32 platforms, courtesy of Pat
17990Mochel. This allows IA32 systems to transition to/from various
17991sleeping states (e.g. S1, S3), although the lack of a centralized
17992driver model and power-manageable drivers will prevent its
17993(successful) use on most systems.
17994
17995Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
17996submenu, unified IA32 and IA64 options, added new "Boot using ACPI
17997tables" option, etc.
17998
17999Increased the default timeout for the EC driver from 1ms to 10ms
18000(1000 cycles of 10us) to try to address AE_TIME errors during EC
18001transactions.
18002
18003 ----------------------------------------
18004Summary of changes for this label: 11_02_01
18005
180061) ACPI CA Core Subsystem:
18007
18008ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
18009(QWordAcc keyword). All ACPI 2.0 64-bit support is now
18010implemented.
18011
18012OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
18013changes to support ACPI 2.0 Qword field access.  Read/Write
18014PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
18015accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
18016the value parameter for the address space handler interface is now
18017an ACPI_INTEGER.  OSL implementations of these interfaces must now
18018handle the case where the Width parameter is 64.
18019
18020Index Fields: Fixed a problem where unaligned bit assembly and
18021disassembly for IndexFields was not supported correctly.
18022
18023Index and Bank Fields:  Nested Index and Bank Fields are now
18024supported. During field access, a check is performed to ensure
18025that the value written to an Index or Bank register is not out of
18026the range of the register.  The Index (or Bank) register is
18027written before each access to the field data. Future support will
18028include allowing individual IndexFields to be wider than the
18029DataRegister width.
18030
18031Fields: Fixed a problem where the AML interpreter was incorrectly
18032attempting to write beyond the end of a Field/OpRegion.  This was
18033a boundary case that occurred when a DWORD field was written to a
18034BYTE access OpRegion, forcing multiple writes and causing the
18035interpreter to write one datum too many.
18036
18037Fields: Fixed a problem with Field/OpRegion access where the
18038starting bit address of a field was incorrectly calculated if the
18039current access type was wider than a byte (WordAcc, DwordAcc, or
18040QwordAcc).
18041
18042Fields: Fixed a problem where forward references to individual
18043FieldUnits (individual Field names within a Field definition) were
18044not resolved during the AML table load.
18045
18046Fields: Fixed a problem where forward references from a Field
18047definition to the parent Operation Region definition were not
18048resolved during the AML table load.
18049
18050Fields: Duplicate FieldUnit names within a scope are now detected
18051during AML table load.
18052
18053Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
18054returned an incorrect name for the root node.
18055
18056Code and Data Size: Code and Data optimizations have permitted new
18057feature development with an actual reduction in the library size.
18058Current core subsystem library sizes are shown below.  These are
18059the code and data sizes for the acpica.lib produced by the
18060Microsoft Visual C++ 6.0 compiler, and these values do not include
18061any ACPI driver or OSPM code.  The debug version of the code
18062includes the debug output trace mechanism and has a larger code
18063and data size.  Note that these values will vary depending on the
18064efficiency of the compiler and the compiler options used during
18065generation.
18066
18067  Previous Release (10_18_01):
18068     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18069     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18070
18071  Current Release:
18072     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18073     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18074
18075 2) Linux:
18076
18077Improved /proc processor output (Pavel Machek) Re-added
18078MODULE_LICENSE("GPL") to all modules.
18079
18080 3) ASL Compiler version X2030:
18081
18082Duplicate FieldUnit names within a scope are now detected and
18083flagged as errors.
18084
18085 4) Documentation:
18086
18087Programmer Reference updated to reflect OSL and address space
18088handler interface changes described above.
18089
18090----------------------------------------
18091Summary of changes for this label: 10_18_01
18092
18093ACPI CA Core Subsystem:
18094
18095Fixed a problem with the internal object reference count mechanism
18096that occasionally caused premature object deletion. This resolves
18097all of the outstanding problem reports where an object is deleted
18098in the middle of an interpreter evaluation.  Although this problem
18099only showed up in rather obscure cases, the solution to the
18100problem involved an adjustment of all reference counts involving
18101objects attached to namespace nodes.
18102
18103Fixed a problem with Field support in the interpreter where
18104writing to an aligned field whose length is an exact multiple (2
18105or greater) of the field access granularity would cause an attempt
18106to write beyond the end of the field.
18107
18108The top level AML opcode execution functions within the
18109interpreter have been renamed with a more meaningful and
18110consistent naming convention.  The modules exmonad.c and
18111exdyadic.c were eliminated.  New modules are exoparg1.c,
18112exoparg2.c, exoparg3.c, and exoparg6.c.
18113
18114Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
18115
18116Fixed a problem where the AML debugger was causing some internal
18117objects to not be deleted during subsystem termination.
18118
18119Fixed a problem with the external AcpiEvaluateObject interface
18120where the subsystem would fault if the named object to be
18121evaluated referred to a constant such as Zero, Ones, etc.
18122
18123Fixed a problem with IndexFields and BankFields where the
18124subsystem would fault if the index, data, or bank registers were
18125not defined in the same scope as the field itself.
18126
18127Added printf format string checking for compilers that support
18128this feature.  Corrected more than 50 instances of issues with
18129format specifiers within invocations of ACPI_DEBUG_PRINT
18130throughout the core subsystem code.
18131
18132The ASL "Revision" operator now returns the ACPI support level
18133implemented in the core - the value "2" since the ACPI 2.0 support
18134is more than 50% implemented.
18135
18136Enhanced the output of the AML debugger "dump namespace" command
18137to output in a more human-readable form.
18138
18139Current core subsystem library code sizes are shown below.  These
18140
18141are the code and data sizes for the acpica.lib produced by the
18142Microsoft Visual C++ 6.0 compiler, and these values do not include
18143any ACPI driver or OSPM code.  The debug version of the code
18144includes the full debug trace mechanism -- leading to a much
18145
18146larger code and data size.  Note that these values will vary
18147depending on the efficiency of the compiler and the compiler
18148options used during generation.
18149
18150     Previous Label (09_20_01):
18151     Non-Debug Version:    65K Code,     5K Data,     70K Total
18152     Debug Version:       138K Code,    58K Data,    196K Total
18153
18154     This Label:
18155
18156     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18157     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18158
18159Linux:
18160
18161Implemented a "Bad BIOS Blacklist" to track machines that have
18162known ASL/AML problems.
18163
18164Enhanced the /proc interface for the thermal zone driver and added
18165support for _HOT (the critical suspend trip point).  The 'info'
18166file now includes threshold/policy information, and allows setting
18167of _SCP (cooling preference) and _TZP (polling frequency) values
18168to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
18169frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
18170preference to the passive/quiet mode (if supported by the ASL).
18171
18172Implemented a workaround for a gcc bug that resuted in an OOPs
18173when loading the control method battery driver.
18174
18175 ----------------------------------------
18176Summary of changes for this label: 09_20_01
18177
18178 ACPI CA Core Subsystem:
18179
18180The AcpiEnableEvent and AcpiDisableEvent interfaces have been
18181modified to allow individual GPE levels to be flagged as wake-
18182enabled (i.e., these GPEs are to remain enabled when the platform
18183sleeps.)
18184
18185The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
18186support wake-enabled GPEs.  This means that upon entering the
18187sleep state, all GPEs that are not wake-enabled are disabled.
18188When leaving the sleep state, these GPEs are re-enabled.
18189
18190A local double-precision divide/modulo module has been added to
18191enhance portability to OS kernels where a 64-bit math library is
18192not available.  The new module is "utmath.c".
18193
18194Several optimizations have been made to reduce the use of CPU
18195stack.  Originally over 2K, the maximum stack usage is now below
181962K at 1860  bytes (1.82k)
18197
18198Fixed a problem with the AcpiGetFirmwareTable interface where the
18199root table pointer was not mapped into a logical address properly.
18200
18201Fixed a problem where a NULL pointer was being dereferenced in the
18202interpreter code for the ASL Notify operator.
18203
18204Fixed a problem where the use of the ASL Revision operator
18205returned an error. This operator now returns the current version
18206of the ACPI CA core subsystem.
18207
18208Fixed a problem where objects passed as control method parameters
18209to AcpiEvaluateObject were always deleted at method termination.
18210However, these objects may end up being stored into the namespace
18211by the called method.  The object reference count mechanism was
18212applied to these objects instead of a force delete.
18213
18214Fixed a problem where static strings or buffers (contained in the
18215AML code) that are declared as package elements within the ASL
18216code could cause a fault because the interpreter would attempt to
18217delete them.  These objects are now marked with the "static
18218object" flag to prevent any attempt to delete them.
18219
18220Implemented an interpreter optimization to use operands directly
18221from the state object instead of extracting the operands to local
18222variables.  This reduces stack use and code size, and improves
18223performance.
18224
18225The module exxface.c was eliminated as it was an unnecessary extra
18226layer of code.
18227
18228Current core subsystem library code sizes are shown below.  These
18229are the code and data sizes for the acpica.lib produced by the
18230Microsoft Visual C++ 6.0 compiler, and these values do not include
18231any ACPI driver or OSPM code.  The debug version of the code
18232includes the full debug trace mechanism -- leading to a much
18233larger code and data size.  Note that these values will vary
18234depending on the efficiency of the compiler and the compiler
18235options used during generation.
18236
18237  Non-Debug Version:  65K Code,   5K Data,   70K Total
18238(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
18239Total  (Previously 195K)
18240
18241Linux:
18242
18243Support for ACPI 2.0 64-bit integers has been added.   All ACPI
18244Integer objects are now 64 bits wide
18245
18246All Acpi data types and structures are now in lower case.  Only
18247Acpi macros are upper case for differentiation.
18248
18249 Documentation:
18250
18251Changes to the external interfaces as described above.
18252
18253 ----------------------------------------
18254Summary of changes for this label: 08_31_01
18255
18256 ACPI CA Core Subsystem:
18257
18258A bug with interpreter implementation of the ASL Divide operator
18259was found and fixed.  The implicit function return value (not the
18260explicit store operands) was returning the remainder instead of
18261the quotient.  This was a longstanding bug and it fixes several
18262known outstanding issues on various platforms.
18263
18264The ACPI_DEBUG_PRINT and function trace entry/exit macros have
18265been further optimized for size.  There are 700 invocations of the
18266DEBUG_PRINT macro alone, so each optimization reduces the size of
18267the debug version of the subsystem significantly.
18268
18269A stack trace mechanism has been implemented.  The maximum stack
18270usage is about 2K on 32-bit platforms.  The debugger command "stat
18271stack" will display the current maximum stack usage.
18272
18273All public symbols and global variables within the subsystem are
18274now prefixed with the string "Acpi".  This keeps all of the
18275symbols grouped together in a kernel map, and avoids conflicts
18276with other kernel subsystems.
18277
18278Most of the internal fixed lookup tables have been moved into the
18279code segment via the const operator.
18280
18281Several enhancements have been made to the interpreter to both
18282reduce the code size and improve performance.
18283
18284Current core subsystem library code sizes are shown below.  These
18285are the code and data sizes for the acpica.lib produced by the
18286Microsoft Visual C++ 6.0 compiler, and these values do not include
18287any ACPI driver or OSPM code.  The debug version of the code
18288includes the full debug trace mechanism which contains over 700
18289invocations of the DEBUG_PRINT macro, 500 function entry macro
18290invocations, and over 900 function exit macro invocations --
18291leading to a much larger code and data size.  Note that these
18292values will vary depending on the efficiency of the compiler and
18293the compiler options used during generation.
18294
18295        Non-Debug Version:  64K Code,   5K Data,   69K Total
18296Debug Version:     137K Code,  58K Data,  195K Total
18297
18298 Linux:
18299
18300Implemented wbinvd() macro, pending a kernel-wide definition.
18301
18302Fixed /proc/acpi/event to handle poll() and short reads.
18303
18304 ASL Compiler, version X2026:
18305
18306Fixed a problem introduced in the previous label where the AML
18307
18308code emitted for package objects produced packages with zero
18309length.
18310
18311 ----------------------------------------
18312Summary of changes for this label: 08_16_01
18313
18314ACPI CA Core Subsystem:
18315
18316The following ACPI 2.0 ASL operators have been implemented in the
18317AML interpreter (These are already supported by the Intel ASL
18318compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
18319ToBuffer.  Support for 64-bit AML constants is implemented in the
18320AML parser, debugger, and disassembler.
18321
18322The internal memory tracking mechanism (leak detection code) has
18323been upgraded to reduce the memory overhead (a separate tracking
18324block is no longer allocated for each memory allocation), and now
18325supports all of the internal object caches.
18326
18327The data structures and code for the internal object caches have
18328been coelesced and optimized so that there is a single cache and
18329memory list data structure and a single group of functions that
18330implement generic cache management.  This has reduced the code
18331size in both the debug and release versions of the subsystem.
18332
18333The DEBUG_PRINT macro(s) have been optimized for size and replaced
18334by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
18335different, because it generates a single call to an internal
18336function.  This results in a savings of about 90 bytes per
18337invocation, resulting in an overall code and data savings of about
1833816% in the debug version of the subsystem.
18339
18340 Linux:
18341
18342Fixed C3 disk corruption problems and re-enabled C3 on supporting
18343machines.
18344
18345Integrated low-level sleep code by Patrick Mochel.
18346
18347Further tweaked source code Linuxization.
18348
18349Other minor fixes.
18350
18351 ASL Compiler:
18352
18353Support for ACPI 2.0 variable length packages is fixed/completed.
18354
18355Fixed a problem where the optional length parameter for the ACPI
183562.0 ToString operator.
18357
18358Fixed multiple extraneous error messages when a syntax error is
18359detected within the declaration line of a control method.
18360
18361 ----------------------------------------
18362Summary of changes for this label: 07_17_01
18363
18364ACPI CA Core Subsystem:
18365
18366Added a new interface named AcpiGetFirmwareTable to obtain any
18367ACPI table via the ACPI signature.  The interface can be called at
18368any time during kernel initialization, even before the kernel
18369virtual memory manager is initialized and paging is enabled.  This
18370allows kernel subsystems to obtain ACPI tables very early, even
18371before the ACPI CA subsystem is initialized.
18372
18373Fixed a problem where Fields defined with the AnyAcc attribute
18374could be resolved to the incorrect address under the following
18375conditions: 1) the field width is larger than 8 bits and 2) the
18376parent operation region is not defined on a DWORD boundary.
18377
18378Fixed a problem where the interpreter is not being locked during
18379namespace initialization (during execution of the _INI control
18380methods), causing an error when an attempt is made to release it
18381later.
18382
18383ACPI 2.0 support in the AML Interpreter has begun and will be
18384ongoing throughout the rest of this year.  In this label, The Mod
18385operator is implemented.
18386
18387Added a new data type to contain full PCI addresses named
18388ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
18389and Function values.
18390
18391 Linux:
18392
18393Enhanced the Linux version of the source code to change most
18394capitalized ACPI type names to lowercase. For example, all
18395instances of ACPI_STATUS are changed to acpi_status.  This will
18396result in a large diff, but the change is strictly cosmetic and
18397aligns the CA code closer to the Linux coding standard.
18398
18399OSL Interfaces:
18400
18401The interfaces to the PCI configuration space have been changed to
18402add the PCI Segment number and to split the single 32-bit combined
18403DeviceFunction field into two 16-bit fields.  This was
18404accomplished by moving the four values that define an address in
18405PCI configuration space (segment, bus, device, and function) to
18406the new ACPI_PCI_ID structure.
18407
18408The changes to the PCI configuration space interfaces led to a
18409reexamination of the complete set of address space access
18410interfaces for PCI, I/O, and Memory.  The previously existing 18
18411interfaces have proven difficult to maintain (any small change
18412must be propagated across at least 6 interfaces) and do not easily
18413allow for future expansion to 64 bits if necessary.  Also, on some
18414systems, it would not be appropriate to demultiplex the access
18415width (8, 16, 32,or 64) before calling the OSL if the
18416corresponding native OS interfaces contain a similar access width
18417parameter.  For these reasons, the 18 address space interfaces
18418have been replaced by these 6 new ones:
18419
18420AcpiOsReadPciConfiguration
18421AcpiOsWritePciConfiguration
18422AcpiOsReadMemory
18423AcpiOsWriteMemory
18424AcpiOsReadPort
18425AcpiOsWritePort
18426
18427Added a new interface named AcpiOsGetRootPointer to allow the OSL
18428to perform the platform and/or OS-specific actions necessary to
18429obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
18430interface will simply call down to the CA core to perform the low-
18431memory search for the table.  On IA-64, the RSDP is obtained from
18432EFI.  Migrating this interface to the OSL allows the CA core to
18433
18434remain OS and platform independent.
18435
18436Added a new interface named AcpiOsSignal to provide a generic
18437"function code and pointer" interface for various miscellaneous
18438signals and notifications that must be made to the host OS.   The
18439first such signals are intended to support the ASL Fatal and
18440Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
18441interface has been obsoleted.
18442
18443The definition of the AcpiFormatException interface has been
18444changed to simplify its use.  The caller no longer must supply a
18445buffer to the call; A pointer to a const string is now returned
18446directly.  This allows the call to be easily used in printf
18447statements, etc. since the caller does not have to manage a local
18448buffer.
18449
18450
18451 ASL Compiler, Version X2025:
18452
18453The ACPI 2.0 Switch/Case/Default operators have been implemented
18454and are fully functional.  They will work with all ACPI 1.0
18455interpreters, since the operators are simply translated to If/Else
18456pairs.
18457
18458The ACPI 2.0 ElseIf operator is implemented and will also work
18459with 1.0 interpreters, for the same reason.
18460
18461Implemented support for ACPI 2.0 variable-length packages.  These
18462packages have a separate opcode, and their size is determined by
18463the interpreter at run-time.
18464
18465Documentation The ACPI CA Programmer Reference has been updated to
18466reflect the new interfaces and changes to existing interfaces.
18467
18468 ------------------------------------------
18469Summary of changes for this label: 06_15_01
18470
18471 ACPI CA Core Subsystem:
18472
18473Fixed a problem where a DWORD-accessed field within a Buffer
18474object would get its byte address inadvertently rounded down to
18475the nearest DWORD.  Buffers are always Byte-accessible.
18476
18477 ASL Compiler, version X2024:
18478
18479Fixed a problem where the Switch() operator would either fault or
18480hang the compiler.  Note however, that the AML code for this ACPI
184812.0 operator is not yet implemented.
18482
18483Compiler uses the new AcpiOsGetTimer interface to obtain compile
18484timings.
18485
18486Implementation of the CreateField operator automatically converts
18487a reference to a named field within a resource descriptor from a
18488byte offset to a bit offset if required.
18489
18490Added some missing named fields from the resource descriptor
18491support. These are the names that are automatically created by the
18492compiler to reference fields within a descriptor.  They are only
18493valid at compile time and are not passed through to the AML
18494interpreter.
18495
18496Resource descriptor named fields are now typed as Integers and
18497subject to compile-time typechecking when used in expressions.
18498
18499 ------------------------------------------
18500Summary of changes for this label: 05_18_01
18501
18502 ACPI CA Core Subsystem:
18503
18504Fixed a couple of problems in the Field support code where bits
18505from adjacent fields could be returned along with the proper field
18506bits. Restructured the field support code to improve performance,
18507readability and maintainability.
18508
18509New DEBUG_PRINTP macro automatically inserts the procedure name
18510into the output, saving hundreds of copies of procedure name
18511strings within the source, shrinking the memory footprint of the
18512debug version of the core subsystem.
18513
18514 Source Code Structure:
18515
18516The source code directory tree was restructured to reflect the
18517current organization of the component architecture.  Some files
18518and directories have been moved and/or renamed.
18519
18520 Linux:
18521
18522Fixed leaking kacpidpc processes.
18523
18524Fixed queueing event data even when /proc/acpi/event is not
18525opened.
18526
18527 ASL Compiler, version X2020:
18528
18529Memory allocation performance enhancement - over 24X compile time
18530improvement on large ASL files.  Parse nodes and namestring
18531buffers are now allocated from a large internal compiler buffer.
18532
18533The temporary .SRC file is deleted unless the "-s" option is
18534specified
18535
18536The "-d" debug output option now sends all output to the .DBG file
18537instead of the console.
18538
18539"External" second parameter is now optional
18540
18541"ElseIf" syntax now properly allows the predicate
18542
18543Last operand to "Load" now recognized as a Target operand
18544
18545Debug object can now be used anywhere as a normal object.
18546
18547ResourceTemplate now returns an object of type BUFFER
18548
18549EISAID now returns an object of type INTEGER
18550
18551"Index" now works with a STRING operand
18552
18553"LoadTable" now accepts optional parameters
18554
18555"ToString" length parameter is now optional
18556
18557"Interrupt (ResourceType," parse error fixed.
18558
18559"Register" with a user-defined region space parse error fixed
18560
18561Escaped backslash at the end of a string ("\\") scan/parse error
18562fixed
18563
18564"Revision" is now an object of type INTEGER.
18565
18566
18567
18568------------------------------------------
18569Summary of changes for this label: 05_02_01
18570
18571Linux:
18572
18573/proc/acpi/event now blocks properly.
18574
18575Removed /proc/sys/acpi. You can still dump your DSDT from
18576/proc/acpi/dsdt.
18577
18578 ACPI CA Core Subsystem:
18579
18580Fixed a problem introduced in the previous label where some of the
18581"small" resource descriptor types were not recognized.
18582
18583Improved error messages for the case where an ASL Field is outside
18584the range of the parent operation region.
18585
18586 ASL Compiler, version X2018:
18587
18588
18589Added error detection for ASL Fields that extend beyond the length
18590of the parent operation region (only if the length of the region
18591is known at compile time.)  This includes fields that have a
18592minimum access width that is smaller than the parent region, and
18593individual field units that are partially or entirely beyond the
18594extent of the parent.
18595
18596
18597
18598------------------------------------------
18599Summary of changes for this label: 04_27_01
18600
18601 ACPI CA Core Subsystem:
18602
18603Fixed a problem where the namespace mutex could be released at the
18604wrong time during execution of AcpiRemoveAddressSpaceHandler.
18605
18606Added optional thread ID output for debug traces, to simplify
18607debugging of multiple threads.  Added context switch notification
18608when the debug code realizes that a different thread is now
18609executing ACPI code.
18610
18611Some additional external data types have been prefixed with the
18612string "ACPI_" for consistency.  This may effect existing code.
18613The data types affected are the external callback typedefs - e.g.,
18614
18615WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
18616
18617 Linux:
18618
18619Fixed an issue with the OSL semaphore implementation where a
18620thread was waking up with an error from receiving a SIGCHLD
18621signal.
18622
18623Linux version of ACPI CA now uses the system C library for string
18624manipulation routines instead of a local implementation.
18625
18626Cleaned up comments and removed TBDs.
18627
18628 ASL Compiler, version X2017:
18629
18630Enhanced error detection and reporting for all file I/O
18631operations.
18632
18633 Documentation:
18634
18635Programmer Reference updated to version 1.06.
18636
18637
18638
18639------------------------------------------
18640Summary of changes for this label: 04_13_01
18641
18642 ACPI CA Core Subsystem:
18643
18644Restructured support for BufferFields and RegionFields.
18645BankFields support is now fully operational.  All known 32-bit
18646limitations on field sizes have been removed.  Both BufferFields
18647and (Operation) RegionFields are now supported by the same field
18648management code.
18649
18650Resource support now supports QWORD address and IO resources. The
1865116/32/64 bit address structures and the Extended IRQ structure
18652have been changed to properly handle Source Resource strings.
18653
18654A ThreadId of -1 is now used to indicate a "mutex not acquired"
18655condition internally and must never be returned by AcpiOsThreadId.
18656This reserved value was changed from 0 since Unix systems allow a
18657thread ID of 0.
18658
18659Linux:
18660
18661Driver code reorganized to enhance portability
18662
18663Added a kernel configuration option to control ACPI_DEBUG
18664
18665Fixed the EC driver to honor _GLK.
18666
18667ASL Compiler, version X2016:
18668
18669Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
18670address space was set to 0, not 0x7f as it should be.
18671
18672 ------------------------------------------
18673Summary of changes for this label: 03_13_01
18674
18675 ACPI CA Core Subsystem:
18676
18677During ACPI initialization, the _SB_._INI method is now run if
18678present.
18679
18680Notify handler fix - notifies are deferred until the parent method
18681completes execution.  This fixes the "mutex already acquired"
18682issue seen occasionally.
18683
18684Part of the "implicit conversion" rules in ACPI 2.0 have been
18685found to cause compatibility problems with existing ASL/AML.  The
18686convert "result-to-target-type" implementation has been removed
18687for stores to method Args and Locals.  Source operand conversion
18688is still fully implemented.  Possible changes to ACPI 2.0
18689specification pending.
18690
18691Fix to AcpiRsCalculatePciRoutingTableLength to return correct
18692length.
18693
18694Fix for compiler warnings for 64-bit compiles.
18695
18696 Linux:
18697
18698/proc output aligned for easier parsing.
18699
18700Release-version compile problem fixed.
18701
18702New kernel configuration options documented in Configure.help.
18703
18704IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
18705context" message.
18706
18707 OSPM:
18708
18709Power resource driver integrated with bus manager.
18710
18711Fixed kernel fault during active cooling for thermal zones.
18712
18713Source Code:
18714
18715The source code tree has been restructured.
18716
18717
18718
18719------------------------------------------
18720Summary of changes for this label: 03_02_01
18721
18722 Linux OS Services Layer (OSL):
18723
18724Major revision of all Linux-specific code.
18725
18726Modularized all ACPI-specific drivers.
18727
18728Added new thermal zone and power resource drivers.
18729
18730Revamped /proc interface (new functionality is under /proc/acpi).
18731
18732New kernel configuration options.
18733
18734 Linux known issues:
18735
18736New kernel configuration options not documented in Configure.help
18737yet.
18738
18739
18740Module dependencies not currently implemented. If used, they
18741should be loaded in this order: busmgr, power, ec, system,
18742processor, battery, ac_adapter, button, thermal.
18743
18744Modules will not load if CONFIG_MODVERSION is set.
18745
18746IBM 600E - entering S5 may reboot instead of shutting down.
18747
18748IBM 600E - Sleep button may generate "Invalid <NULL> context"
18749message.
18750
18751Some systems may fail with "execution mutex already acquired"
18752message.
18753
18754 ACPI CA Core Subsystem:
18755
18756Added a new OSL Interface, AcpiOsGetThreadId.  This was required
18757for the  deadlock detection code. Defined to return a non-zero, 32-
18758bit thread ID for the currently executing thread.  May be a non-
18759zero constant integer on single-thread systems.
18760
18761Implemented deadlock detection for internal subsystem mutexes.  We
18762may add conditional compilation for this code (debug only) later.
18763
18764ASL/AML Mutex object semantics are now fully supported.  This
18765includes multiple acquires/releases by owner and support for the
18766
18767Mutex SyncLevel parameter.
18768
18769A new "Force Release" mechanism automatically frees all ASL
18770Mutexes that have been acquired but not released when a thread
18771exits the interpreter.  This forces conformance to the ACPI spec
18772("All mutexes must be released when an invocation exits") and
18773prevents deadlocked ASL threads.  This mechanism can be expanded
18774(later) to monitor other resource acquisitions if OEM ASL code
18775continues to misbehave (which it will).
18776
18777Several new ACPI exception codes have been added for the Mutex
18778support.
18779
18780Recursive method calls are now allowed and supported (the ACPI
18781spec does in fact allow recursive method calls.)  The number of
18782recursive calls is subject to the restrictions imposed by the
18783SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
18784parameter.
18785
18786Implemented support for the SyncLevel parameter for control
18787methods (ACPI 2.0 feature)
18788
18789Fixed a deadlock problem when multiple threads attempted to use
18790the interpreter.
18791
18792Fixed a problem where the string length of a String package
18793element was not always set in a package returned from
18794AcpiEvaluateObject.
18795
18796Fixed a problem where the length of a String package element was
18797not always included in the length of the overall package returned
18798from AcpiEvaluateObject.
18799
18800Added external interfaces (Acpi*) to the ACPI debug memory
18801manager.  This manager keeps a list of all outstanding
18802allocations, and can therefore detect memory leaks and attempts to
18803free memory blocks more than once. Useful for code such as the
18804power manager, etc.  May not be appropriate for device drivers.
18805Performance with the debug code enabled is slow.
18806
18807The ACPI Global Lock is now an optional hardware element.
18808
18809 ASL Compiler Version X2015:
18810
18811Integrated changes to allow the compiler to be generated on
18812multiple platforms.
18813
18814Linux makefile added to generate the compiler on Linux
18815
18816 Source Code:
18817
18818All platform-specific headers have been moved to their own
18819subdirectory, Include/Platform.
18820
18821New source file added, Interpreter/ammutex.c
18822
18823New header file, Include/acstruct.h
18824
18825 Documentation:
18826
18827The programmer reference has been updated for the following new
18828interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
18829
18830 ------------------------------------------
18831Summary of changes for this label: 02_08_01
18832
18833Core ACPI CA Subsystem: Fixed a problem where an error was
18834incorrectly returned if the return resource buffer was larger than
18835the actual data (in the resource interfaces).
18836
18837References to named objects within packages are resolved to the
18838
18839full pathname string before packages are returned directly (via
18840the AcpiEvaluateObject interface) or indirectly via the resource
18841interfaces.
18842
18843Linux OS Services Layer (OSL):
18844
18845Improved /proc battery interface.
18846
18847
18848Added C-state debugging output and other miscellaneous fixes.
18849
18850ASL Compiler Version X2014:
18851
18852All defined method arguments can now be used as local variables,
18853including the ones that are not actually passed in as parameters.
18854The compiler tracks initialization of the arguments and issues an
18855exception if they are used without prior assignment (just like
18856locals).
18857
18858The -o option now specifies a filename prefix that is used for all
18859output files, including the AML output file.  Otherwise, the
18860default behavior is as follows:  1) the AML goes to the file
18861specified in the DSDT.  2) all other output files use the input
18862source filename as the base.
18863
18864 ------------------------------------------
18865Summary of changes for this label: 01_25_01
18866
18867Core ACPI CA Subsystem: Restructured the implementation of object
18868store support within the  interpreter.  This includes support for
18869the Store operator as well  as any ASL operators that include a
18870target operand.
18871
18872Partially implemented support for Implicit Result-to-Target
18873conversion. This is when a result object is converted on the fly
18874to the type of  an existing target object.  Completion of this
18875support is pending  further analysis of the ACPI specification
18876concerning this matter.
18877
18878CPU-specific code has been removed from the subsystem (hardware
18879directory).
18880
18881New Power Management Timer functions added
18882
18883Linux OS Services Layer (OSL): Moved system state transition code
18884to the core, fixed it, and modified  Linux OSL accordingly.
18885
18886Fixed C2 and C3 latency calculations.
18887
18888
18889We no longer use the compilation date for the version message on
18890initialization, but retrieve the version from AcpiGetSystemInfo().
18891
18892Incorporated for fix Sony VAIO machines.
18893
18894Documentation:  The Programmer Reference has been updated and
18895reformatted.
18896
18897
18898ASL Compiler:  Version X2013: Fixed a problem where the line
18899numbering and error reporting could get out  of sync in the
18900presence of multiple include files.
18901
18902 ------------------------------------------
18903Summary of changes for this label: 01_15_01
18904
18905Core ACPI CA Subsystem:
18906
18907Implemented support for type conversions in the execution of the
18908ASL  Concatenate operator (The second operand is converted to
18909match the type  of the first operand before concatenation.)
18910
18911Support for implicit source operand conversion is partially
18912implemented.   The ASL source operand types Integer, Buffer, and
18913String are freely  interchangeable for most ASL operators and are
18914converted by the interpreter  on the fly as required.  Implicit
18915Target operand conversion (where the  result is converted to the
18916target type before storing) is not yet implemented.
18917
18918Support for 32-bit and 64-bit BCD integers is implemented.
18919
18920Problem fixed where a field read on an aligned field could cause a
18921read  past the end of the field.
18922
18923New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
18924does not return a value, but the caller expects one.  (The ASL
18925compiler flags this as a warning.)
18926
18927ASL Compiler:
18928
18929Version X2011:
189301. Static typechecking of all operands is implemented. This
18931prevents the use of invalid objects (such as using a Package where
18932an Integer is required) at compile time instead of at interpreter
18933run-time.
189342. The ASL source line is printed with ALL errors and warnings.
189353. Bug fix for source EOF without final linefeed.
189364. Debug option is split into a parse trace and a namespace trace.
189375. Namespace output option (-n) includes initial values for
18938integers and strings.
189396. Parse-only option added for quick syntax checking.
189407. Compiler checks for duplicate ACPI name declarations
18941
18942Version X2012:
189431. Relaxed typechecking to allow interchangeability between
18944strings, integers, and buffers.  These types are now converted by
18945the interpreter at runtime.
189462. Compiler reports time taken by each internal subsystem in the
18947debug         output file.
18948
18949
18950 ------------------------------------------
18951Summary of changes for this label: 12_14_00
18952
18953ASL Compiler:
18954
18955This is the first official release of the compiler. Since the
18956compiler requires elements of the Core Subsystem, this label
18957synchronizes everything.
18958
18959------------------------------------------
18960Summary of changes for this label: 12_08_00
18961
18962
18963Fixed a problem where named references within the ASL definition
18964of both OperationRegions and CreateXXXFields did not work
18965properly.  The symptom was an AE_AML_OPERAND_TYPE during
18966initialization of the region/field. This is similar (but not
18967related internally) to the problem that was fixed in the last
18968label.
18969
18970Implemented both 32-bit and 64-bit support for the BCD ASL
18971functions ToBCD and FromBCD.
18972
18973Updated all legal headers to include "2000" in the copyright
18974years.
18975
18976 ------------------------------------------
18977Summary of changes for this label: 12_01_00
18978
18979Fixed a problem where method invocations within the ASL definition
18980of both OperationRegions and CreateXXXFields did not work
18981properly.  The symptom was an AE_AML_OPERAND_TYPE during
18982initialization of the region/field:
18983
18984  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
18985[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
18986(0x3005)
18987
18988Fixed a problem where operators with more than one nested
18989subexpression would fail.  The symptoms were varied, by mostly
18990AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
18991problem that has gone unnoticed until now.
18992
18993  Subtract (Add (1,2), Multiply (3,4))
18994
18995Fixed a problem where AcpiGetHandle didn't quite get fixed in the
18996previous build (The prefix part of a relative path was handled
18997incorrectly).
18998
18999Fixed a problem where Operation Region initialization failed if
19000the operation region name was a "namepath" instead of a simple
19001"nameseg". Symptom was an AE_NO_OPERAND error.
19002
19003Fixed a problem where an assignment to a local variable via the
19004indirect RefOf mechanism only worked for the first such
19005assignment.  Subsequent assignments were ignored.
19006
19007 ------------------------------------------
19008Summary of changes for this label: 11_15_00
19009
19010ACPI 2.0 table support with backwards support for ACPI 1.0 and the
190110.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
19012the AML  interpreter does NOT have support for the new 2.0 ASL
19013grammar terms at this time.
19014
19015All ACPI hardware access is via the GAS structures in the ACPI 2.0
19016FADT.
19017
19018All physical memory addresses across all platforms are now 64 bits
19019wide. Logical address width remains dependent on the platform
19020(i.e., "void *").
19021
19022AcpiOsMapMemory interface changed to a 64-bit physical address.
19023
19024The AML interpreter integer size is now 64 bits, as per the ACPI
190252.0 specification.
19026
19027For backwards compatibility with ACPI 1.0, ACPI tables with a
19028revision number less than 2 use 32-bit integers only.
19029
19030Fixed a problem where the evaluation of OpRegion operands did not
19031always resolve them to numbers properly.
19032
19033------------------------------------------
19034Summary of changes for this label: 10_20_00
19035
19036Fix for CBN_._STA issue.  This fix will allow correct access to
19037CBN_ OpRegions when the _STA returns 0x8.
19038
19039Support to convert ACPI constants (Ones, Zeros, One) to actual
19040values before a package object is returned
19041
19042Fix for method call as predicate to if/while construct causing
19043incorrect if/while behavior
19044
19045Fix for Else block package lengths sometimes calculated wrong (if
19046block > 63 bytes)
19047
19048Fix for Processor object length field, was always zero
19049
19050Table load abort if FACP sanity check fails
19051
19052Fix for problem with Scope(name) if name already exists
19053
19054Warning emitted if a named object referenced cannot be found
19055(resolved) during method execution.
19056
19057
19058
19059
19060
19061------------------------------------------
19062Summary of changes for this label: 9_29_00
19063
19064New table initialization interfaces: AcpiInitializeSubsystem no
19065longer has any parameters AcpiFindRootPointer - Find the RSDP (if
19066necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
19067>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
19068AcpiLoadTables
19069
19070Note: These interface changes require changes to all existing OSDs
19071
19072The PCI_Config default address space handler is always installed
19073at the root namespace object.
19074
19075-------------------------------------------
19076Summary of changes for this label: 09_15_00
19077
19078The new initialization architecture is implemented.  New
19079interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
19080AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
19081
19082(Namespace is automatically loaded when a table is loaded)
19083
19084The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1908552 bytes to 32 bytes.  There is usually one of these for every
19086namespace object, so the memory savings is significant.
19087
19088Implemented just-in-time evaluation of the CreateField operators.
19089
19090Bug fixes for IA-64 support have been integrated.
19091
19092Additional code review comments have been implemented
19093
19094The so-called "third pass parse" has been replaced by a final walk
19095through the namespace to initialize all operation regions (address
19096spaces) and fields that have not yet been initialized during the
19097execution of the various _INI and REG methods.
19098
19099New file - namespace/nsinit.c
19100
19101-------------------------------------------
19102Summary of changes for this label: 09_01_00
19103
19104Namespace manager data structures have been reworked to change the
19105primary  object from a table to a single object.  This has
19106resulted in dynamic memory  savings of 3X within the namespace and
191072X overall in the ACPI CA subsystem.
19108
19109Fixed problem where the call to AcpiEvFindPciRootBuses was
19110inadvertently left  commented out.
19111
19112Reduced the warning count when generating the source with the GCC
19113compiler.
19114
19115Revision numbers added to each module header showing the
19116SourceSafe version of the file.  Please refer to this version
19117number when giving us feedback or comments on individual modules.
19118
19119The main object types within the subsystem have been renamed to
19120clarify their  purpose:
19121
19122ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
19123ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
19124ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
19125
19126NOTE: no changes to the initialization sequence are included in
19127this label.
19128
19129-------------------------------------------
19130Summary of changes for this label: 08_23_00
19131
19132Fixed problem where TerminateControlMethod was being called
19133multiple times per  method
19134
19135Fixed debugger problem where single stepping caused a semaphore to
19136be  oversignalled
19137
19138Improved performance through additional parse object caching -
19139added  ACPI_EXTENDED_OP type
19140
19141-------------------------------------------
19142Summary of changes for this label: 08_10_00
19143
19144Parser/Interpreter integration:  Eliminated the creation of
19145complete parse trees  for ACPI tables and control methods.
19146Instead, parse subtrees are created and  then deleted as soon as
19147they are processed (Either entered into the namespace or  executed
19148by the interpreter).  This reduces the use of dynamic kernel
19149memory  significantly. (about 10X)
19150
19151Exception codes broken into classes and renumbered.  Be sure to
19152recompile all  code that includes acexcep.h.  Hopefully we won't
19153have to renumber the codes  again now that they are split into
19154classes (environment, programmer, AML code,  ACPI table, and
19155internal).
19156
19157Fixed some additional alignment issues in the Resource Manager
19158subcomponent
19159
19160Implemented semaphore tracking in the AcpiExec utility, and fixed
19161several places  where mutexes/semaphores were being unlocked
19162without a corresponding lock  operation.  There are no known
19163semaphore or mutex "leaks" at this time.
19164
19165Fixed the case where an ASL Return operator is used to return an
19166unnamed  package.
19167
19168-------------------------------------------
19169Summary of changes for this label: 07_28_00
19170
19171Fixed a problem with the way addresses were calculated in
19172AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
19173manifested itself when a Field was  created with WordAccess or
19174DwordAccess, but the field unit defined within the  Field was less
19175
19176than a Word or Dword.
19177
19178Fixed a problem in AmlDumpOperands() module's loop to pull
19179operands off of the  operand stack to display information. The
19180problem manifested itself as a TLB  error on 64-bit systems when
19181accessing an operand stack with two or more  operands.
19182
19183Fixed a problem with the PCI configuration space handlers where
19184context was  getting confused between accesses. This required a
19185change to the generic address  space handler and address space
19186setup definitions. Handlers now get both a  global handler context
19187(this is the one passed in by the user when executing
19188AcpiInstallAddressSpaceHandler() and a specific region context
19189that is unique to  each region (For example, the _ADR, _SEG and
19190_BBN values associated with a  specific region). The generic
19191function definitions have changed to the  following:
19192
19193typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
19194UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
19195*HandlerContext, // This used to be void *Context void
19196*RegionContext); // This is an additional parameter
19197
19198typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
19199RegionHandle, UINT32 Function, void *HandlerContext,  void
19200**RegionContext); // This used to be **ReturnContext
19201
19202-------------------------------------------
19203Summary of changes for this label: 07_21_00
19204
19205Major file consolidation and rename.  All files within the
19206interpreter have been  renamed as well as most header files.  This
19207was done to prevent collisions with  existing files in the host
19208OSs -- filenames such as "config.h" and "global.h"  seem to be
19209quite common.  The VC project files have been updated.  All
19210makefiles  will require modification.
19211
19212The parser/interpreter integration continues in Phase 5 with the
19213implementation  of a complete 2-pass parse (the AML is parsed
19214twice) for each table;  This  avoids the construction of a huge
19215parse tree and therefore reduces the amount of  dynamic memory
19216required by the subsystem.  Greater use of the parse object cache
19217means that performance is unaffected.
19218
19219Many comments from the two code reviews have been rolled in.
19220
19221The 64-bit alignment support is complete.
19222
19223-------------------------------------------
19224Summary of changes for this label: 06_30_00
19225
19226With a nod and a tip of the hat to the technology of yesteryear,
19227we've added  support in the source code for 80 column output
19228devices.  The code is now mostly  constrained to 80 columns or
19229less to support environments and editors that 1)  cannot display
19230or print more than 80 characters on a single line, and 2) cannot
19231disable line wrapping.
19232
19233A major restructuring of the namespace data structure has been
19234completed.  The  result is 1) cleaner and more
19235understandable/maintainable code, and 2) a  significant reduction
19236in the dynamic memory requirement for each named ACPI  object
19237(almost half).
19238
19239-------------------------------------------
19240Summary of changes for this label: 06_23_00
19241
19242Linux support has been added.  In order to obtain approval to get
19243the ACPI CA  subsystem into the Linux kernel, we've had to make
19244quite a few changes to the  base subsystem that will affect all
19245users (all the changes are generic and OS- independent).  The
19246effects of these global changes have been somewhat far  reaching.
19247Files have been merged and/or renamed and interfaces have been
19248renamed.   The major changes are described below.
19249
19250Osd* interfaces renamed to AcpiOs* to eliminate namespace
19251pollution/confusion  within our target kernels.  All OSD
19252interfaces must be modified to match the new  naming convention.
19253
19254Files merged across the subsystem.  A number of the smaller source
19255and header  files have been merged to reduce the file count and
19256increase the density of the  existing files.  There are too many
19257to list here.  In general, makefiles that  call out individual
19258files will require rebuilding.
19259
19260Interpreter files renamed.  All interpreter files now have the
19261prefix am*  instead of ie* and is*.
19262
19263Header files renamed:  The acapi.h file is now acpixf.h.  The
19264acpiosd.h file is  now acpiosxf.h.  We are removing references to
19265the acronym "API" since it is  somewhat windowsy. The new name is
19266"external interface" or xface or xf in the  filenames.j
19267
19268
19269All manifest constants have been forced to upper case (some were
19270mixed case.)   Also, the string "ACPI_" has been prepended to many
19271(not all) of the constants,  typedefs, and structs.
19272
19273The globals "DebugLevel" and "DebugLayer" have been renamed
19274"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
19275
19276All other globals within the subsystem are now prefixed with
19277"AcpiGbl_" Internal procedures within the subsystem are now
19278prefixed with "Acpi" (with only  a few exceptions).  The original
19279two-letter abbreviation for the subcomponent  remains after "Acpi"
19280- for example, CmCallocate became AcpiCmCallocate.
19281
19282Added a source code translation/conversion utility.  Used to
19283generate the Linux  source code, it can be modified to generate
19284other types of source as well. Can  also be used to cleanup
19285existing source by removing extraneous spaces and blank  lines.
19286Found in tools/acpisrc/*
19287
19288OsdUnMapMemory was renamed to OsdUnmapMemory and then
19289AcpiOsUnmapMemory.  (UnMap  became Unmap).
19290
19291A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
19292When set to  one, this indicates that the caller wants to use the
19293
19294semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
19295both types.  However, implementers of this  call may want to use
19296different OS primitives depending on the type of semaphore
19297requested.  For example, some operating systems provide separate
19298
19299"mutex" and  "semaphore" interfaces - where the mutex interface is
19300much faster because it  doesn't have all the overhead of a full
19301semaphore implementation.
19302
19303Fixed a deadlock problem where a method that accesses the PCI
19304address space can  block forever if it is the first access to the
19305space.
19306
19307-------------------------------------------
19308Summary of changes for this label: 06_02_00
19309
19310Support for environments that cannot handle unaligned data
19311accesses (e.g.  firmware and OS environments devoid of alignment
19312handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
19313been added (via configurable macros) in  these three areas: -
19314Transfer of data from the raw AML byte stream is done via byte
19315moves instead of    word/dword/qword moves. - External objects are
19316aligned within the user buffer, including package   elements (sub-
19317objects). - Conversion of name strings to UINT32 Acpi Names is now
19318done byte-wise.
19319
19320The Store operator was modified to mimic Microsoft's
19321implementation when storing  to a Buffer Field.
19322
19323Added a check of the BM_STS bit before entering C3.
19324
19325The methods subdirectory has been obsoleted and removed.  A new
19326file, cmeval.c  subsumes the functionality.
19327
19328A 16-bit (DOS) version of AcpiExec has been developed.  The
19329makefile is under  the acpiexec directory.
19330