xref: /freebsd/sys/contrib/dev/acpica/changes.txt (revision dc318a4ffabcbfa23bb56a33403aad36e6de30af)
1----------------------------------------
204 June 2021. Summary of changes for version 20210604:
3
41) ACPICA kernel-resident subsystem:
5
6Cleaned up (delete) the context mutex during local address handler object
7deletion.
8
9Fixed a memory leak caused by the _CID repair function.
10
11Added support for PlatformRtMechanism OperationRegion handler. Adds a new
12utility function, AcpiUtConvertUuidToString. Writing a buffer to a
13PlatformRtMechanism fieldunit invokes a bidirectional transaction. The
14input buffer contains 26 bytes containing 9 bytes of status, a command
15byte and a 16-byte UUID. This change will simply pass this incoming
16buffer to a handler registered by the OS.
17
182) iASL Compiler/Disassembler and ACPICA tools:
19
20Added full support for the PRMT ACPI table (Platform Runtime Mechanism
21Table). Includes support in the iASL compiler, the disassembler, and the
22template generator.
23
24Added full support for the BDAT (BIOS Data ACPI Table) ACPI table.
25
26Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI
27table.
28
29Added full support for the SVKL (Storage Volume Key Location Table) ACPI
30table. Header file support from Kuppuswamy Sathyanarayanan
31<sathyanarayanan.kuppuswamy@linux.intel.com>.
32
33Completed full support for the IVRS (I/O Virtualization Reporting
34Structure) ACPI table. Added compiler support for IVRS, updated
35disassembler support. Adds a new utility, UtIsIdInteger, to determine if
36a HID/CID is an integer or a string.
37
38Headers: Added more structs to the CEDT table: CXL fixed memory window
39structure.
40
41ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure.
42
43----------------------------------------
4431 March 2021. Summary of changes for version 20210331:
45
46This release is available at https://acpica.org/downloads, and includes
47all ACPI 6.4 support
48
491) ACPICA kernel-resident subsystem:
50ACPI 6.4: iASL: deprecate DDBHandleObj keyword
51Always create namespace nodes using AcpiNsCreateNode(). ACPICA is
52allocating an object using kmalloc(), but then frees it
53using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong.
54Fixed a race condition in generic serial bus operation region handler.
55Fixed by Hans de Goede.
56
572) iASL Compiler/Disassembler and ACPICA tools:
58
59ACPI 6.4: NFIT: add Location Cookie field
60ACPI 6.4: HMAT: add new fields/flags
61ACPI 6.4: Add new flags in SRAT
62ACPI 6.4: add SDEV secure access components
63ACPI 6.4: add Csi2Bus resource template
64ACPI 6.4: add support for PHAT table
65ACPI 6.4: add support for PMTT table
66Add disassembly support for the IVRS table. Compilation of the table is
67not yet complete.
68Fixed a potential infinite loop due to type mismatch. The for-loop is
69using a UINT8 counter and comparing the upper
70limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In
71the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i
72will wrap around to zero and the loop will never exit. I suspect
73the AslGbl_ExpectedMessagesIndex is never that high, but fixing
74this does future proof the code and cleans up static analysis
75warnings.Colin King.
76iASL/TableCompiler: update it with IORT table E.b revision changes. From
77shamiali2008.
78iASL/TableCompiler: Add compilation support for the VIOT table. Signed-
79off-by: Jean-Philippe Brucker.
80iASL/TableCompiler: Add compilation support for CEDT table. Also, update
81the CEDT template.
82
83----------------------------------------
8405 January 2021. Summary of changes for version 20210105:
85
86This release is available at https://acpica.org/downloads
87
88
891) ACPICA kernel-resident subsystem:
90
91Updated all copyrights to 2021. This affects all ACPICA source code
92modules.
93
942) iASL Compiler/Disassembler and ACPICA tools:
95
96ASL test suite (ASLTS): Updated all copyrights to 2021.
97
98Tools and utilities: Updated all signon copyrights to 2021.
99
100iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC,
101MTMR. Al Stone.
102
103
104----------------------------------------
10517 December 2020. Summary of changes for version 20201217:
106
107This release is available at https://acpica.org/downloads
108
109
1101) ACPICA kernel-resident subsystem:
111
112Note: The implementation of ACPI 6.4 is underway, and is expected to be
113mostly finished next month, when ACPI 6.4 is released.
114
115From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added
116several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to
117enable this.
118
119AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0.
120These included a few casts, as well as a null pointer check.
121
122Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on
123implicit fallthrough, as well as __attribute__((__fallthrough__)) and
124comments to explicitly denote that cases of fallthrough were intentional.
125Clang also supports this warning and statement attribute, but not the
126comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature
127of GCC. With assistance from @nickdesaulniers.
128
1292) iASL Compiler/Disassembler and ACPICA tools:
130
131Added improvement to method call analysis by saving the return type and
132relaxing certain cases of type checking.
133
134iASL Table Compiler: Improved info messages. Added a message to the -T
135option for when the default template (DSDT) is used.
136Also added a note for when multiple SSDTs are created with a DSDT that
137the SSDTs are created in the same file as the DSDT.
138
139
140----------------------------------------
141
14213 November 2020. Summary of changes for version 20201113:
143
144This release is available at https://acpica.org/downloads
145
146
1471) ACPICA kernel-resident subsystem:
148
149Interpreter: fixed a memory leak by using use existing buffer in _HID
150repair. There was a memory leak that occurred when a _CID object is
151defined as a package containing string objects. When _CID is checked for
152any possible repairs, it calls a helper function to repair _HID (because
153_CID basically contains multiple _HID entries). The _HID repair function
154assumes that string objects are standalone objects that are not contained
155inside of any packages. The _HID repair function replaced the string
156object with a brand new object and attempted to delete the old object by
157decrementing the reference count of the old object. Strings inside of
158packages have a reference count of 2 so the _HID repair function leaves
159this object in a dangling state and causes a memory leak. Instead of
160allocating a brand new object and removing the old object, use the
161existing object when repairing the _HID object.
162
163Added function trace macros to improve namespace debugging. The namespace
164repair mechanism does not have function tracing macros. Add several trace
165macros to improve debuggability.
166
167Handle "orphan" _REG methods for GPIO OpRegions. Before this change
168AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no
169matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry
170Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs.
171The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific
172UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads
173to potential issues with checks for OpRegion availability, or in other
174words checks if _REG has been called for the OpRegion which the ACPI code
175wants to use. Except for the "orphan" EC handling, ACPICA core does not
176call _REG on an ACPI node which does not define an OpRegion matching the
177type being registered; and the reference design DSDT, from which most
178Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor
179UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins
180were assigned ACPI controlled functions in the reference design. Together
181this leads to the perfect storm, at least on the Cherry Trail based
182Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code
183and has added the Cherry Trail specific UserDefined(0x93) opregion to its
184GPO2 ACPI node to access this pin. But it uses a "has _REG been called"
185availability check for the standard GeneralPurposeIo OpRegion. This
186clearly is a bug in the DSDT, but this does work under Windows. This
187issue leads to the intel vbtn driver reporting the device always being in
188tablet-mode at boot, even if it is in laptop mode. Which in turn causes
189userspace to ignore touchpad events. So in other words, this issue causes
190the touchpad to not work at boot. This change fixes this by extending the
191"orphan" _REG method handling to also apply to GPIO address-space
192handlers.
193
194
1952) iASL Compiler/Disassembler and ACPICA tools:
196
197iASL: Added more info to namespace dump file (-ln option). In a separate
198section of the dump file (after the main namespace dump), emit the full
199pathname for each namespace node, its type, and the ASL filename and line
200number where it is declared.
201
202AcpiHelp: Added an option to display/decode iASL exceptions. Option is: -
203x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value
204is omitted, all iASL exceptions are displayed.
205
206iASL: Use StringLiteral instead of StringData for some ASL macros. The
207use of the stringData rule allows for some "string" oriented opcodes
208(Such as ToString, ToHexString, etc.) None of which make sense with the
209macros in question. This change modifies the StringData part of the rule
210for these macros to a simple string  literal - thus disallowing the use
211of ToString, ToHexString, etc.
212The following ASL operators (macros) are affected:
213EisaId
214Fprintf
215Printf
216ToUuid
217Unicode
218Note: The MS compiler requires the use of string literals for these
219operators also.
220
221iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search
222the list of "known" UUIDs for the input to the ToUUID macro.
223
224Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the
225NFIT table.
226
227
228----------------------------------------
229
23025 September 2020. Summary of changes for version 20200925:
231
232This release is available at https://acpica.org/downloads
233
234
2351) ACPICA kernel-resident subsystem:
236
237Preserve memory opregion mappings. The ACPICA's strategy with respect to
238the handling of memory mappings associated with memory operation regions
239is to avoid mapping the entire region at once which may be problematic at
240least in principle (for example, it may lead to conflicts with
241overlapping mappings having different attributes created by drivers).  It
242may also be wasteful, because memory opregions on some systems take up
243vastchunks of address space while the fields in those regions actually
244accessed by AML are sparsely distributed.
245
246For this reason, a one-page "window" is mapped for a given opregion on
247the first memory access through it and if that "window" does not cover an
248address range accessed through that opregion subsequently, it is unmapped
249and a new "window" is mapped to replace it.  Next, if the new "window" is
250not sufficient to access memory through the opregion in question in the
251future, it will be replaced with yet another "window" and so on.  That
252may lead to a suboptimal sequence of memory mapping and unmapping
253operations, for example if two fields in one opregion separated from each
254other by a sufficiently wide chunk of unused address space are accessed
255in an alternating pattern.
256
257Added support for 64 bit risc-v compilation.  Useful for acpica tools and
258incorporating ACPICA into the Firmware Test Suite. Colin Ian King
259<colin.king@canonical.com>.
260
261Added support for SMBus predefined names (from SMBus Control Method
262Interface Specification, Version 1.0, December 10, 1999. New predefined
263names:
264    _SBA
265    _SBI
266    _SBR
267    _SBT
268    _SBW
269
270AML Disassembler: Added a new command, "All <NameSeg>". This command will
271evaluate all objects in the current namespace whose NameString contains
272the input NameSeg as the last element of the NameString. Useful for
273debugging.
274
275
2762) iASL Compiler/Disassembler and ACPICA tools:
277
278iASL: fixed a crash that occurred when predefined objects return packages
279with lengths that exceed the initializer list.
280
281iASL: added more detail to external resolution error message when
282compiling multiple definition blocks.
283
284iASL: added a remark for an attempt to create a nameseg or namestring
285containing lower-case letters. This should prevent declaring multiple
286namesegs or namestrings in an attempt to refer to different objects (with
287different cases), but actually refer to the same object(s).
288
289iASL: improve alias analysis by saving object type. If the alias is a
290method type, the parameter count is also recorded.
291
292AcpiExec: Increase the default loop timeout value. Was 1 second, is now
29310 seconds. Prevents unnecessary timeouts when executing control methods
294from the command line.
295
296AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal
297list. Includes:
298    Memory Device
299    Generic Buttons Device
300    NVDIMM Root Device
301    Control Method Battery
302    Device Graphs for _DSD method
303    Hierarchical Data Extension
304....ARM CoreSight Graph
305
306----------------------------------------
307
308
30917 July 2020. Summary of changes for version 20200717:
310
311This release is available at https://acpica.org/downloads
312
313
3141) ACPICA kernel-resident subsystem:
315
316Do not increment OperationRegion reference counts for field units. Recent
317server firmware has revealed that this reference count can overflow on
318large servers that declare many field units (thousands) under the same
319OperationRegion. This occurs because each field unit declaration will add
320a reference count to the source OperationRegion. This release solves the
321reference count overflow for OperationRegion objects by preventing
322fieldUnits from incrementing their parent OperationRegion's reference
323count.
324
325Replaced one-element arrays with flexible-arrays, which were introduced
326in C99.
327
328Restored the readme file containing the directions for generation of
329ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is
330located at: generate/msvc2017/readme.txt
331
3322) iASL Compiler/Disassembler and ACPICA tools:
333
334iASL: Fixed a regression found in version 20200214. Prevent iASL from
335emitting an extra byte of garbage data when control methods declared a
336single parameter type without using braces. This extra byte is known to
337cause a blue screen on the Windows AML interpreter.
338
339iASL: Made a change to allow external declarations to specify the type of
340a named object even when some name segments are not defined.
341This change allows the following ASL code to compile (When DEV0 is not
342defined or not defined yet):
343
344    External (\_SB.DEV0.OBJ1, IntObj)
345    External (\_SB.DEV0, DeviceObj)
346
347iASL: Fixed a problem where method names in "Alias ()" statement could be
348misinterpreted. They are now interpreted correctly as method invocations.
349
350iASL: capture a method parameter count (Within the Method info segment,
351as well as the argument node) when using parameter type lists.
352
353----------------------------------------
354
355
35628 May 2020. Summary of changes for version 20200528:
357
358
3591) ACPICA kernel-resident subsystem:
360
361Removed old/obsolete Visual Studio files which were used to build the
362Windows versions of the ACPICA tools. Since we have moved to Visual
363Studio 2017, we are no longer supporting Visual Studio 2006 and 2009
364project files. The new subdirectory and solution file are located at:
365
366    acpica/generate/msvc2017/AcpiComponents.sln
367
368
3692) iASL Compiler/Disassembler and ACPICA tools:
370
371iASL: added support for a new OperationRegion Address Space (subtype):
372PlatformRtMechanism. Support for this new keyword is being released for
373early prototyping. It will appear in the next release of the ACPI
374specification.
375
376iASL: do not optimize the NameString parameter of the CondRefOf operator.
377In the previous iASL compiler release, the NameString parameter of the
378CondRefOf was optimized. There is evidence that some implementations of
379the AML interpreter do not perform the recursive search-to-parent search
380during the execution of the CondRefOf operator. Therefore, the CondRefOf
381operator behaves differently when the NameString parameter is a single
382name segment (a NameSeg) as opposed to a full NamePath (starting at the
383root scope) or a NameString containing parent prefixes.
384
385iASL: Prevent an inadvertent remark message. This change prevents a
386remark if within a control method the following exist:
3871) An Operation Region is defined, and
3882) A Field operator is defined that refers to the region.
389This happens because at the top level, the Field operator does not
390actually create a new named object, it simply references the operation
391region.
392
393Removed support for the acpinames utility. The acpinames was a simple
394utility used to populate and display the ACPI namespace without executing
395any AML code. However, ACPICA now supports executable opcodes outside of
396control methods. This means that executable AML opcodes such as If and
397Store opcodes need to be executed during table load. Therefore, acpinames
398would need to be updated to match the same behavior as the acpiexec
399utility and since acpiexec can already dump the entire namespace (via the
400'namespace' command), we no longer have the need to maintain acpinames.
401
402    In order to dump the contents of the ACPI namespace using acpiexec,
403execute the following command from the command line:
404
405        acpiexec -b "n" [aml files]
406
407----------------------------------------
408
409
41030 April 2020. Summary of changes for version 20200430:
411
4121) ACPICA kernel-resident subsystem:
413
414Cleaned up the coding style of a couple of global variables
415(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers.
416AcpiProtocolLengths was made static, and the definition of
417AcpiGbl_NextCmdNum was moved to acglobal.h.
418
419
4202) iASL Compiler/Disassembler and ACPICA tools:
421
422iASL DataTable Compiler:  Fixed a segfault on errors that aren't directly
423associated with a field.
424
425Disassembler: has been made more resilient so that it will continue to
426parse AML even if the AML generates ACPI namespace errors. This enables
427iASL to disassemble some AML that may have been compiled using older
428versions of iASL that no longer compile with newer versions of iASL.
429
430iASL: Fixed the required parameters for _NIH and _NIG. Previously, there
431was a mixup where _NIG required one parameter and _NIH required zero
432parameters. This change swaps these parameter requirements. Now it is
433required that _NIH must be called with one parameter and _NIG requires
434zero parameters.
435
436iASL: Allow use of undefined externals as long as they are protected by
437an if (CondRefOf (...)) block when compiling multiple definition blocks.
438
439iASL: Fixed the type override behavior of named objects that are declared
440as External. External declarations will no longer override the type of
441the actual definition if it already exists.
442
443AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable
444command line wildcard support on Windows. Note: the AcpiNames utility is
445essentially redundant with the AcpiExec utility (using the "namespace"
446command) and is therefore deprecated. It will be removed in future
447releases of ACPICA.
448
449Disassembler: ignore AE_ALREADY_EXISTS status when parsing create*
450operators. The disassembler is intended to emit existing ASL code as-is.
451Therefore, error messages emitted during disassembly should be ignored or
452handled in a way such that the disassembler can continue to parse the
453AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op
454parsing for create operators in order to complete parsing ASL termlists.
455
456iASL DataTable Compiler: IVRS table: fix potentially uninitialized
457variable warning. Some compilers catch potential uninitialized variables.
458This is done by examining branches of if/else statements. This change
459replaces an "else if" with an "else" to fix the uninitialized variable
460warning.
461
462
463----------------------------------------
46426 March 2020. Summary of changes for version 20200326:
465
466
4671) ACPICA kernel-resident subsystem:
468
469Performed a code clean-up to prevent build errors on early versions of
470GCC-10.
471
472Added the NHLT table signature. iASL data table compiler/disassembler
473support for this table is coming soon.
474
475
4762) iASL Compiler/Disassembler and ACPICA tools:
477
478AcpiExec: Fixed several problems with the namespace initialization file
479(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS
480errors, several seg faults, and enhancements to line parsing within the
481init file. In addition, each object found in the init file and it's new
482value is displayed, as well as any such entries that do not have a
483corresponding name in the namespace. For reference, the syntax for the
484various supported data types are presented below:
485	PCHG 0x777788889999BBBB	// Integer
486	\DEV1.STR1 "XYZ"			// String
487	BUF1 (88 99 AA)			// Buffer
488	PKG1 [0x1111 0x2222]		// Package
489	\BF1 0x7980				// BufferField
490	RCRV 0x0123456789ABCDEF	// Field Unit
491
492iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro
493can be used anywhere in a given ASL file to configure iASL to expect an
494iASL compiler error code on the line where this macro was placed. If the
495error code does not exist, an error is generated. This is intended to be
496used for ACPICA's ASL test suite, but can be used by ASL developers as
497well.
498
499iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD
500IVRS table parsing supported only IVHD type 10h structures. Parsing an
501IVHD type 11h caused the iasl to report unknown subtable type. Add
502necessary structure definition for IVHD type 11h and apply correct
503parsing method based on subtable type. Micha? ?ygowski.
504
505iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name
506According to AMD IOMMU Specification Revision 3.05 the reserved field
507should be IOMMU Feature Reporting. Change the name of the field to the
508correct one. Micha? ?ygowski.
509
510acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch
511based on suggestions by David Seifert and Benjamin Berg.
512
513iASL: table compiler: removed an unused variable (DtCompilerParserResult)
514causing linking errors. Patch based on suggestions by David Seifert and
515Benjamin Berg.
516
517iASL: table compiler: make LexBuffer static to avoid linking errors in
518newer compilers. Patch based on suggestions by David Seifert and Benjamin
519Berg.
520
521iASL: fixed type matching between External and Named objects. External
522object types can only be expressed with ACPI object type values that are
523defined in the ACPI spec. However, iASL uses ACPI object type values that
524are local to ACPICA in addition to the values defined in the ACPI spec.
525This change implements type matching to map some object type values
526specific to ACPICA to ones that are defined in the ACPI spec.
527
528iASL: Dropped the type mismatch compiler error that can arise from
529External declarations to a warning. This warning can occur when there is
530a type difference between the external declaration and the actual object
531declaration (when compiling multiple files/modules simultaneously).
532
533iASL: removed an incorrect error message regarding externals. This change
534removes an incorrect error that is emitted when a duplicate external
535declaration does not contain a type that opens a scope. This is incorrect
536because the duplicate external with conflicting types are already caught
537by iASL and it doesn't make any sense to enforce what this conflicting
538type should be.
539
540AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be
541surrounded by parens. Otherwise, a logical statement that applies a
542logical not operator to this macro could result in a computation that
543applies the operator to the left side of the logical and but not the
544right. Reported-by: John Levon <john.levon@joyent.com>
545
546Fixed a problem with the local version of sprint(): On 32-bit, the
547provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX,
548String + Size will wrap, meaning End < Start, and
549AcpiUtBoundStringOutput() will never output anything as a result. The
550symptom seen of this was acpixtract failing to output anything -- with a
551custom build that included utprint.c. Signed-off-by: John Levon
552<john.levon@joyent.com>
553
554iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the
555ACPI specification.
556
557
558----------------------------------------
55914 February 2020. Summary of changes for version 20200214:
560
561
5621) ACPICA kernel-resident subsystem:
563
564Enable sleep button on ACPI legacy wake:  Hibernation (S4) is triggered
565in a guest when it receives a sleep trigger from the hypervisor. When the
566guest resumes from this power state, it does not see the SleepEnabled
567bit. In other words, the sleepHibernation (S4) is triggered in a guest
568when it receives a sleep trigger from the hypervisor. When the guest
569resumes from this power state, it does not see the SleepEnabled bit. In
570other words, the sleep button is not enabled on waking from an S4 state.
571This causes subsequent invocation of sleep state to fail since the
572guest.button is not enabled on waking from an S4 state. This causes
573subsequent invocation of sleep state to fail in the guest. Fix this
574problem by enabling the sleep button in ACPI legacy wake. From Anchal
575Agarwal <anchalag@amazon.com>.
576
577Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used
578for checking the status bits of all enabled GPEs in one go. It is needed
579to distinguish spurious SCIs from genuine ones when deciding whether or
580not to wake up the system from suspend-to-idle.
581
582Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be
583using HOST in their environment to represent the host name for their
584machines. Avoid this problem by renaming this variable from HOST to
585ACPI_HOST.
586
587MSVC 2017 project files: Enable multiprocessor generation to improve
588build performance.
589
590Added a macro to get the byte width of a Generic Address structure. New
591ACPI_ACCESS_BYTE_WIDTH is in addition to the existing
592ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg.
593
594
5952) iASL Compiler/Disassembler and ACPICA tools:
596
597iASL: Implemented full support for the (optional, rarely used) ReturnType
598and ParameterTypesList for the Method, Function, and External operators.
599For Method declarations, the number of individual ParameterTypes must
600match the declaration of the number of arguments (NumArgs). This also
601Fixes a problem with the External operator where extra/extraneous bytes
602were emitted in the AML code if the optional ReturnType/ParameterTypes
603were specified for a MethodObj declaration.
604New error message:
6051) Method NumArgs count does not match length of ParameterTypes list
606
607iASL: Implemented detection of type mismatches between External
608declarations and named object declarations. Also, detect type mismatches
609between multiple External declarations of the same Name.
610New error messages:
6111) Type mismatch between external declaration and actual object
612declaration detected
6132) Type mismatch between multiple external declarations detected
614
615iASL: Implemented new error messages for External operators that specify
616a ReturnType and/or ParameterTypesList for any object type other than
617control methods (MethodObj).
618New error messages:
6191) Return type is only allowed for Externals declared as MethodObj
6202) Parameter type is only allowed for Externals declared as MethodObj
621
622iASL: Implemented two new remark/warning messages for ASL code that
623creates named objects from within a control method. This is very
624inefficient since the named object must be created and deleted each time
625the method is executed.
626New messages:
6271) Creation of named objects within a method is highly inefficient, use
628globals or method local variables instead (remark)
6292) Static OperationRegion should be declared outside control method
630(warning)
631
632iASL: Improved illegal forward reference detection by adding support to
633detect forward-reference method invocations.
634
635iASL: Detect and issue an error message for NameStrings that contain too
636many individual NameSegs (>255). This is an AML limitation that is
637defined in the ACPI specification.
638New message:
6391) NameString contains too many NameSegs (>255)
640
641acpidump: windows: use GetSystemFirmwareTable API for all tables except
642SSDT. By using this API, acpidump is able to get all tables in the XSDT
643
644iASL: Removed unused parser file and updated msvc2017 project files.
645Removed the obsolete AslCompiler.y from the repository.
646
647iASL: msvc2017: Fixed macros in the file dependency list to prevent
648unnecessary rebuilds. Replace %(Directory) with %(RelativeDir).
649
650Disassembler: Prevent spilling error messages to the output file. All
651errors are directed to the console instead. These error messages
652prevented re-compilation of the resulting disassembled ASL output file
653(.DSL).
654
655
656----------------------------------------
65710 January 2020. Summary of changes for version 20200110:
658
659
6601) ACPICA kernel-resident subsystem:
661
662Updated all copyrights to 2020. This affects all ACPICA source code
663modules.
664
665
6662) iASL Compiler/Disassembler and ACPICA tools:
667
668ASL test suite (ASLTS): Updated all copyrights to 2020.
669
670Tools and utilities: Updated all signon copyrights to 2020.
671
672iASL: fix forward reference analysis for field declarations. Fixes
673forward reference analysis for field declarations by searching the
674parent scope for the named object when the object is not present in
675the current scope.
676
677iASL: Improved the error output for ALREADY_EXISTS errors. Now, the
678full pathname of the name that already exists is printed.
679
680iASL: Enhance duplicate Case() detection for buffers. Add check for
681buffers with no initializer list (these buffers will be filled with
682zeros at runtime.)
683
684
685----------------------------------------
68613 December 2019. Summary of changes for version 20191213:
687
688
6891) ACPICA kernel-resident subsystem:
690
691Return a Buffer object for all fields created via the CreateField
692operator. Previously, an Integer would be returned if the size of
693the field was less than or equal to the current size of an Integer.
694Although this goes against the ACPI specification, it provides
695compatibility with other ACPI implementations. Also updated the
696ASLTS test suite to reflect this new behavior.
697
6982) iASL Compiler/Disassembler and ACPICA tools:
699
700iASL: Implemented detection of (and throw an error for) duplicate
701values for Case statements within a single Switch statement. Duplicate
702Integers, Strings, and Buffers are supported.
703
704iASL: Fix error logging issue during multiple file compilation --
705Switch to the correct input file during error node creation.
706
707iASL: For duplicate named object creation, now emit an error instead
708of a warning - since this will cause a runtime error.
709
710AcpiSrc: Add unix line-ending support for non-Windows builds.
711
712iASL: Add an error condition for an attempt to create a NameString
713with > 255 NameSegs (the max allowable via the AML definition).
714
715
716----------------------------------------
71718 October 2019. Summary of changes for version 20191018:
718
719
7201) ACPICA kernel-resident subsystem:
721
722Debugger: added a new command: ?Fields [address space ID]?. This command
723dumps the contents of all field units that are defined within the
724namespace with a particular address space ID.
725
726Modified the external interface AcpiLoadTable() to return a table index.
727This table index can be used for unloading a table for debugging.
728    ACPI_STATUS
729    AcpiLoadTable (
730        ACPI_TABLE_HEADER       *Table,
731        UINT32                  *TableIndex))
732
733Implemented a new external interface: AcpiUnloadTable() This new function
734takes a table index as an argument and unloads the table. Useful for
735debugging only.
736    ACPI_STATUS
737    AcpiUnloadTable (
738        UINT32                  TableIndex))
739
740Ported the AcpiNames utility to use the new table initialization
741sequence. The utility was broken before this change. Also, it was
742required to include most of the AML interpreter into the utility in order
743to process table initialization (module-level code execution.)
744
745Update for results from running Clang V8.0.1. This fixes all "dead
746assignment" warnings. There are still several "Dereference of NULL
747pointer" warnings, but these have been found to be false positive
748warnings.
749
750
7512) iASL Compiler/Disassembler and ACPICA tools:
752
753iASL: numerous table compiler changes to ensure that the usage of
754yacc/bison syntax is POSIX-compliant.
755
756iASL/disassembler: several simple bug fixes in the data table
757disassembler.
758
759Acpiexec: expanded the initialization file (the -fi option) to initialize
760strings, buffers, packages, and field units.
761
762
763----------------------------------------
76416 August 2019. Summary of changes for version 20190816:
765
766This release is available at https://acpica.org/downloads
767
768
7691) ACPICA kernel-resident subsystem:
770
771Modified the OwnerId mechanism to allow for more Owner Ids. The previous
772limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT
773exceptions on machines with a large number of initialization threads,
774many CPU cores and nested initialization control methods.
775
776Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for
777checking if the given GPE (as represented by a GPE device handle and a
778GPE number) is currently active and dispatching it (if that's the case)
779outside of interrupt context.
780
781Table load: exit the interpreter before initializing objects within the
782new table This prevents re-acquiring the interpreter lock when loading
783tables
784
785Added the "Windows 2019" string to the _OSI support (version 1903). Jung-
786uk Kim
787
788Macros: removed pointer math on a null pointer. Causes warnings on some
789compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR
790instead of using arithmetic.
791
792Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used
793across all "printf-like" internal functions. Also, cleanup all calls to
794such functions (both in 32-bit mode and 64-bit mode) now that they are
795analyzed by the gcc compiler via ACPI_PRINTF_LIKE.
796
797
7982) iASL Compiler/Disassembler and ACPICA tools:
799
800iASL: implemented a new data table compiler flex/bison front-end. This
801change is internal and is not intended to result in changes to the
802compiled code. This new compiler front-end can be invoked using the -tp
803option for now, until the old mechanism is removed.
804
805ASLTS: Implemented a new data table compiler test suite. This test suite
806generates all table templates and compile/disassemble/re-compile/binary-
807compare each file.
808
809iASL: return -1 if AML files were not generated due to compiler errors
810
811iASL: added a warning on use of the now-legacy ASL Processor () keyword.
812
813iASL: added an error on _UID object declaration that returns a String
814within a Processor () declaration. A _UID for a processor must be an
815Integer.
816
817iASL: added a null terminator to name strings that consist only of
818multiple parent prefixes (^)
819
820iASL: added support to compile both ASL and data table files in a single
821command.
822
823Updated the tool generation project files that were recently migrated to
824MSVC 2017 to eliminate all new warnings. The new project files appear in
825the directory \acpica\generate\msvc2017. This change effectively
826deprecates the older project files in \acpica\generate\msvc9.
827
828
829----------------------------------------
83003 July 2019. Summary of changes for version 20190703:
831
832
8331) ACPICA kernel-resident subsystem:
834
835Remove legacy module-level support code. There were still some remnants
836of the legacy module-level code executions. Since we no longer support
837this option, this is essentially dead code and has been removed from the
838ACPICA source.
839
840iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
841scope. If these named objects are declared outside the root scope, they
842will not be invoked by any host Operating System.
843
844Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC
845one) can be enabled in two situations. First, the GPEs with existing _Lxx
846and _Exx methods are enabled implicitly by ACPICA during system
847initialization.  Second, the GPEs without these methods (like GPEs listed
848by _PRW objects for wakeup devices) need to be enabled directly by the
849code that is going to use them (e.g. ACPI power management or device
850drivers).
851
852In the former case, if the status of a given GPE is set to start with,
853its handler method (either _Lxx or _Exx) needs to be invoked to take care
854of the events (possibly) signaled before the GPE was enabled. In the
855latter case, however, the first caller of AcpiEnableGpe() for a given GPE
856should not be expected to care about any events that might be signaled
857through it earlier.  In that case, it is better to clear the status of
858the GPE before enabling it, to prevent stale events from triggering
859unwanted actions (like spurious system resume, for example).
860
861For this reason, modify AcpiEvAddGpeReference() to take an additional
862boolean argument indicating whether or not the GPE status needs to be
863cleared when its reference counter changes from zero to one and make
864AcpiEnableGpe() pass TRUE to it through that new argument.
865
866
8672) iASL Compiler/Disassembler and ACPICA tools:
868
869The tool generation process has been migrated to MSVC 2017, and all
870project files have been upgraded. The new project files appear in the
871directory \acpica\generate\msvc2017. This change effectively deprecates
872the older project files in \acpica\generate\msvc9.
873
874iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root
875scope. If these named objects are declared outside the root scope, they
876will not be invoked by any host Operating System
877
878----------------------------------------
87909 May 2019. Summary of changes for version 20190509:
880
881
8821) ACPICA kernel-resident subsystem:
883
884Revert commit  6c43e1a ("ACPICA: Clear status of GPEs before enabling
885them") that causes problems with Thunderbolt controllers to occur if a
886dock device is connected at init time (the xhci_hcd and thunderbolt
887modules crash which prevents peripherals connected through them from
888working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA:
889Dispatch active GPEs at init time") to get undone, so the problem
890addressed by commit ecc1165b8b74 appears again as a result of it.
891
892
8932) iASL Compiler/Disassembler and ACPICA tools:
894
895Reverted iASL: Additional forward reference detection. This change
896reverts forward reference detection for field declarations. The feature
897unintentionally emitted AML bytecode with incorrect package lengths for
898some ASL code related to Fields and OperationRegions. This malformed AML
899can cause systems to crash
900during boot. The malformed AML bytecode is emitted in iASL version
90120190329 and 20190405.
902
903iASL: improve forward reference detection. This change improves forward
904reference detection for named objects inside of scopes. If a parse object
905has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to
906a named object that is declared later in the AML bytecode. This is
907allowed if the reference is inside of a method and the declaration is
908outside of a method like so:
909
910DefinitionBlock(...)
911{
912    Method (TEST)
913    {
914        Return (NUM0)
915    }
916    Name (NUM0,0)
917}
918
919However, if the declaration and reference are both in the same method or
920outside any methods, this is a forward reference and should be marked as
921an error because it would result in runtime errors.
922
923DefinitionBlock(...)
924{
925    Name (BUFF, Buffer (NUM0) {}) // Forward reference
926    Name (NUM0, 0x0)
927
928    Method (TEST)
929    {
930        Local0 = NUM1
931        Name (NUM1, 0x1) // Forward reference
932        return (Local0)
933    }
934}
935
936iASL: Implemented additional buffer overflow analysis for BufferField
937declarations. Check if a buffer index argument to a create buffer field
938operation is beyond the end of the target buffer.
939
940This affects these AML operators:
941
942   AML_CREATE_FIELD_OP
943   AML_CREATE_BIT_FIELD_OP
944   AML_CREATE_BYTE_FIELD_OP
945   AML_CREATE_WORD_FIELD_OP
946   AML_CREATE_DWORD_FIELD_OP
947   AML_CREATE_QWORD_FIELD_OP
948
949 There are three conditions that must be satisfied in order to allow this
950validation at compile time:
951
952   1) The length of the target buffer must be an integer constant
953   2) The index specified in the create* must be an integer constant
954   3) For CreateField, the bit length argument must be non-zero.
955
956Example:
957    Name (BUF1, Buffer() {1,2})
958    CreateField (BUF1, 7, 9, CF03)  // 3: ERR
959
960dsdt.asl     14:     CreateField (BUF1, 7, 9, CF03)  // 3: ERR
961Error    6165 -                           ^ Buffer index beyond end of
962target buffer
963
964
965----------------------------------------
96605 April 2019. Summary of changes for version 20190405:
967
968
9691) ACPICA kernel-resident subsystem:
970
971Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop
972unconditionally clearing ACPI IRQs during suspend/resume") was added
973earlier to stop clearing of event status bits unconditionally on suspend
974and resume paths. Though this change fixed an issue on suspend path, it
975introduced regressions on several resume paths. In the case of S0ix,
976events are enabled as part of device suspend path. If status bits for the
977events are set when they are enabled, it could result in premature wake
978from S0ix. If status is cleared for any event that is being enabled so
979that any stale events are cleared out. In case of S0ix, events are
980enabled as part of device suspend path. If status bits for the events are
981set when they are enabled, it could result in premature wake from S0ix.
982
983This change ensures that status is cleared for any event that is being
984enabled so that any stale events are cleared out.
985
986
9872) iASL Compiler/Disassembler and ACPICA tools:
988
989iASL: Implemented an enhanced multiple file compilation that combines
990named objects from all input files to a single namespace. With this
991feature, any unresolved external declarations as well as duplicate named
992object declarations can be detected during compilation rather than
993generating errors much later at runtime. The following commands are
994examples that utilize this feature:
995    iasl dsdt.asl ssdt.asl
996    iasl dsdt.asl ssdt1.asl ssdt2.asl
997    iasl dsdt.asl ssdt*.asl
998
999----------------------------------------
100029 March 2019. Summary of changes for version 20190329:
1001
1002
10031) ACPICA kernel-resident subsystem:
1004
1005Namespace support: Remove the address nodes from global list after method
1006termination. The global address list contains pointers to namespace nodes
1007that represent Operation Regions. This change properly removes Operation
1008Region namespace nodes that are declared dynamically during method
1009execution.
1010
1011Linux: Use a different debug default than ACPICA. There was a divergence
1012between Linux and the ACPICA codebases. In order to resolve this
1013divergence, Linux now declares its own debug default in aclinux.h
1014
1015Renamed some internal macros to improve code understanding and
1016maintenance. The macros below all operate on single 4-character ACPI
1017NameSegs, not generic strings (old -> new):
1018    ACPI_NAME_SIZE    -> ACPI_NAMESEG_SIZE
1019    ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG
1020    ACPI_MOVE_NAME    -> ACPI_COPY_NAMESEG
1021
1022Fix for missing comma in array declaration for the AcpiGbl_GenericNotify
1023table.
1024
1025Test suite: Update makefiles, add PCC operation region support
1026
1027
10282) iASL Compiler/Disassembler and Tools:
1029
1030iASL: Implemented additional illegal forward reference detection. Now
1031detect and emit an error upon detection of a forward reference from a
1032Field to an Operation Region. This will fail at runtime if allowed to
1033pass the compiler.
1034
1035AcpiExec: Add an address list check for dynamic Operation Regions. This
1036feature performs a sanity test for each node the global address list.
1037This is done in order to ensure that all dynamic operation regions are
1038properly removed from the global address list and no dangling pointers
1039are left behind.
1040
1041Disassembler: Improved generation of resource pathnames. This change
1042improves the code that generates resource descriptor and resource tag
1043pathnames. The original code used a bunch of str* C library functions
1044that caused warnings on some compilers.
1045
1046iASL: Removed some uses of strncpy and replaced with memmove. The strncpy
1047function can overwrite buffers if the calling code is not very careful.
1048In the case of generating a module/table header, use of memmove is a
1049better implementation.
1050
1051
10523) Status of new features that have not been completed at this time:
1053
1054iASL: Implementing an enhanced multiple file compilation into a single
1055namespace feature (Status): This feature will be released soon, and
1056allows multiple ASL files to be compiled into the same single namespace.
1057By doing so, any unresolved external declarations as well as duplicate
1058named object declarations can be detected during compilation (rather than
1059later during runtime). The following commands are examples that utilize
1060this feature:
1061    iasl dsdt.asl ssdt.asl
1062    iasl dsdt.asl ssdt1.asl ssdt2.asl
1063    iasl dsdt.asl ssdt*.asl
1064
1065ASL tutorial status: Feedback is being gathered internally and the
1066current plan is to publish this tutorial on the ACPICA website after a
1067final review by a tech writer.
1068
1069----------------------------------------
107015 February 2019. Summary of changes for version 20190215:
1071
1072
10730) Support for ACPI specification version 6.3:
1074
1075Add PCC operation region support for the AML interpreter. This adds PCC
1076operation region support in the AML interpreter and a default handler for
1077acpiexec. The change also renames the PCC region address space keyword to
1078PlatformCommChannel.
1079
1080Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG.
1081These methods provide OSPM with health information and device boot
1082status.
1083
1084PDTT: Add TriggerOrder to the PCC Identifier structure. The field value
1085defines if the trigger needs to be invoked by OSPM before or at the end
1086of kernel crash dump processing/handling operation.
1087
1088SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT
1089is used for describing devices such as heterogeneous processors,
1090accelerators, GPUs, and IO devices with integrated compute or DMA
1091engines.
1092
1093MADT: Add support for statistical profiling in GICC. Statistical
1094profiling extension (SPE) is an architecture-specific feature for ARM.
1095
1096MADT: Add online capable flag. If this bit is set, system hardware
1097supports enabling this processor during OS runtime.
1098
1099New Error Disconnect Recover Notification value. There are a number of
1100scenarios where system Firmware in collaboration with hardware may
1101disconnect one or more devices from the rest of the system for purposes
1102of error containment. Firmware can use this new notification value to
1103alert OSPM of such a removal.
1104
1105PPTT: New additional fields in Processor Structure Flags. These flags
1106provide more information about processor topology.
1107
1108NFIT/Disassembler: Change a field name from "Address Range" to "Region
1109Type".
1110
1111HMAT updates: make several existing fields to be reserved as well as
1112rename subtable 0 to "memory proximity domain attributes".
1113
1114GTDT: Add support for new GTDT Revision 3. This revision adds information
1115for the EL2 timer.
1116
1117iASL: Update the HMAT example template for new fields.
1118
1119iASL: Add support for the new revision of the GTDT (Rev 3).
1120
1121
11221) ACPICA kernel-resident subsystem:
1123
1124AML Parser: fix the main AML parse loop to correctly skip erroneous
1125extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2-
1126byte extended opcodes. If an error occurs during an AML table load, the
1127AML parser will continue loading the table by skipping the offending
1128opcode. This implements a "load table at any cost" philosophy.
1129
1130
11312) iASL Compiler/Disassembler and Tools:
1132
1133iASL: Add checks for illegal object references, such as a reference
1134outside of method to an object within a method. Such an object is only
1135temporary.
1136
1137iASL: Emit error for creation of a zero-length operation region. Such a
1138region is rather pointless. If encountered, a runtime error is also
1139implemented in the interpreter.
1140
1141Debugger: Fix a possible fault with the "test objects" command.
1142
1143iASL: Makefile: support parent directory filenames containing embedded
1144spaces.
1145
1146iASL: Update the TPM2 template to revision 4.
1147
1148iASL: Add the ability to report specific warnings or remarks as errors.
1149
1150Disassembler: Disassemble OEMx tables as actual AML byte code.
1151Previously, these tables were treated as "unknown table".
1152
1153iASL: Add definition and disassembly for TPM2 revision 3.
1154
1155iASL: Add support for TPM2 rev 3 compilation.
1156
1157
1158----------------------------------------
115908 January 2019. Summary of changes for version 20190108:
1160
1161
11621) ACPICA kernel-resident subsystem:
1163
1164Updated all copyrights to 2019. This affects all source code modules.
1165
1166
11672) iASL Compiler/Disassembler and Tools:
1168
1169ASL test suite (ASLTS): Updated all copyrights to 2019.
1170
1171Tools: Updated all signon copyrights to 2019.
1172
1173AcpiExec: Added a new option to dump extra information concerning any
1174memory leaks detected by the internal object/cache tracking mechanism. -
1175va
1176
1177iASL: Updated the table template for the TPM2 table to the newest version
1178of the table (Revision 4)
1179
1180
1181----------------------------------------
118213 December 2018. Summary of changes for version 20181213:
1183
1184
11851) ACPICA Kernel-resident Subsystem:
1186
1187Fixed some buffer length issues with the GenericSerialBus, related to two
1188of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,
1189which are rarely seen in the field. For these, the LEN field of the ASL
1190buffer is now ignored. Hans de Goede
1191
1192Implemented a new object evaluation trace mechanism for control methods
1193and data objects. This includes nested control methods. It is
1194particularly useful for examining the ACPI execution during system
1195initialization since the output is relatively terse. The flag below
1196enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:
1197   #define ACPI_LV_EVALUATION          0x00080000
1198
1199Examples:
1200   Enter evaluation       :  _SB.PCI0._INI (Method)
1201   Exit evaluation        :  _SB.PCI0._INI
1202   Enter evaluation       :  _OSI (Method)
1203   Exit evaluation        :  _OSI
1204   Enter evaluation       :  _SB.PCI0.TEST (Method)
1205   Nested method call     :     _SB.PCI0.NST1
1206   Exit nested method     :     _SB.PCI0.NST1
1207   Exit evaluation        :  _SB.PCI0.TEST
1208
1209Added two recently-defined _OSI strings. See
1210https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-
1211osi.
1212   "Windows 2018"
1213   "Windows 2018.2"
1214
1215Update for buffer-to-string conversions via the ToHexString ASL operator.
1216A "0x" is now prepended to each of the hex values in the output string.
1217This provides compatibility with other ACPI implementations. The ACPI
1218specification is somewhat vague on this issue.
1219   Example output string after conversion:
1220"0x01,0x02,0x03,0x04,0x05,0x06"
1221
1222Return a run-time error for TermArg expressions within individual package
1223elements. Although this is technically supported by the ASL grammar,
1224other ACPI implementations do not support this either. Also, this fixes a
1225fault if this type of construct is ever encountered (it never has been).
1226
1227
12282) iASL Compiler/Disassembler and Tools:
1229
1230iASL: Implemented a new compile option (-ww) that will promote individual
1231warnings and remarks to errors. This is intended to enhance the firmware
1232build process.
1233
1234AcpiExec: Implemented a new command-line option (-eo) to support the new
1235object evaluation trace mechanism described above.
1236
1237Disassembler: Added support to disassemble OEMx tables as AML/ASL tables
1238instead of a "unknown table" message.
1239
1240AcpiHelp: Improved support for the "special" predefined names such as
1241_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be
1242used for "xx" and "x".
1243
1244----------------------------------------
124531 October 2018. Summary of changes for version 20181031:
1246
1247
1248An Operation Region regression was fixed by properly adding address
1249ranges to a global list during initialization. This allows OS to
1250accurately check for overlapping regions between native devices (such as
1251PCI) and Operation regions as well as checking for region conflicts
1252between two Operation Regions.
1253
1254Added support for the 2-byte extended opcodes in the code/feature that
1255attempts to continue parsing during the table load phase. Skip parsing
1256Device declarations (and other extended opcodes) when an error occurs
1257during parsing. Previously, only single-byte opcodes were supported.
1258
1259Cleanup: Simplified the module-level code support by eliminating a
1260useless global variable (AcpiGbl_GroupModuleLeveCode).
1261
1262
12632) iASL Compiler/Disassembler and Tools:
1264
1265iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE
1266could cause a fault in the preprocessor. This was an inadvertent side-
1267effect from moving more allocations/frees to the local cache/memory
1268mechanism.
1269
1270iASL: Enhanced error detection by validating that all NameSeg elements
1271within a NamePatch actually exist. The previous behavior was spotty at
1272best, and such errors could be improperly ignored at compiler time (never
1273at runtime, however. There are two new error messages, as shown in the
1274examples below:
1275
1276dsdt.asl     33:     CreateByteField (TTTT.BXXX, 1, CBF1)
1277Error    6161 -                              ^ One or more objects within
1278the Pathname do not exist (TTTT.BXXX)
1279
1280dsdt.asl     34:     CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)
1281Error    6160 -        One or more prefix Scopes do not exist ^
1282(BBBB.CBF1)
1283
1284iASL: Disassembler/table-compiler: Added support for the static data
1285table TPM2 revision 3 (an older version of TPM2). The support has been
1286added for the compiler and the disassembler.
1287
1288Fixed compilation of DOS format data table file on Unix/Linux systems.
1289iASL now properly detects line continuations (\) for DOS format data
1290table definition language files on when executing on Unix/Linux.
1291
1292----------------------------------------
129303 October 2018. Summary of changes for version 20181003:
1294
1295
12962) iASL Compiler/Disassembler and Tools:
1297
1298Fixed a regression introduced in version 20180927 that could cause the
1299compiler to fault, especially with NamePaths containing one or more
1300carats (^). Such as: ^^_SB_PCI0
1301
1302Added a new remark for the Sleep() operator when the sleep time operand
1303is larger than one second. This is a very long time for the ASL/BIOS code
1304and may not be what was intended by the ASL writer.
1305
1306----------------------------------------
130727 September 2018. Summary of changes for version 20180927:
1308
1309
13101) ACPICA kernel-resident subsystem:
1311
1312Updated the GPE support to clear the status of all ACPI events when
1313entering any/all sleep states in order to avoid premature wakeups. In
1314theory, this may cause some wakeup events to be missed, but the
1315likelihood of this is small. This change restores the original behavior
1316of the ACPICA code in order to fix a regression seen from the previous
1317"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.
1318This regression could cause some systems to incorrectly wake immediately.
1319
1320Updated the execution of the _REG methods during initialization and
1321namespace loading to bring the behavior into closer conformance to the
1322ACPI specification and other ACPI implementations:
1323
1324From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):
1325    "Control methods must assume all operation regions are inaccessible
1326until the _REG(RegionSpace, 1) method is executed"
1327
1328    "The exceptions to this rule are:
13291.  OSPM must guarantee that the following operation regions are always
1330accessible:
1331    SystemIO operation regions.
1332    SystemMemory operation regions when accessing memory returned by the
1333System Address Map reporting interfaces."
1334
1335Since the state of both the SystemIO and SystemMemory address spaces are
1336defined by the specification to never change, this ACPICA change ensures
1337that now _REG is never called on them. This solves some problems seen in
1338the field and provides compatibility with other ACPI implementations. An
1339update to the upcoming new version of the ACPI specification will help
1340clarify this behavior.
1341
1342Updated the implementation of support for the Generic Serial Bus. For the
1343"bidirectional" protocols, the internal implementation now automatically
1344creates a return data buffer of the maximum size (255). This handles the
1345worst-case for data that is returned from the serial bus handler, and
1346fixes some problems seen in the field. This new buffer is directly
1347returned to the ASL. As such, there is no true "bidirectional" buffer,
1348which matches the ACPI specification. This is the reason for the "double
1349store" seen in the example ASL code in the specification, shown below:
1350
1351Word Process Call (AttribProcessCall):
1352    OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)
1353    Field(TOP1, BufferAcc, NoLock, Preserve)
1354    {
1355        FLD1, 8, // Virtual register at command value 1.
1356    }
1357
1358    Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer
1359                             // as BUFF
1360    CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)
1361
1362    Store(0x5416, DATA)               // Save 0x5416 into the data buffer
1363    Store(Store(BUFF, FLD1), BUFF)    // Invoke a write/read Process Call
1364transaction
1365                           // This is the "double store". The write to
1366                           // FLD1 returns a new buffer, which is stored
1367                           // back into BUFF with the second Store.
1368
1369
13702) iASL Compiler/Disassembler and Tools:
1371
1372iASL: Implemented detection of extraneous/redundant uses of the Offset()
1373operator within a Field Unit list. A remark is now issued for these. For
1374example, the first two of the Offset() operators below are extraneous.
1375Because both the compiler and the interpreter track the offsets
1376automatically, these Offsets simply refer to the current offset and are
1377unnecessary. Note, when optimization is enabled, the iASL compiler will
1378in fact remove the redundant Offset operators and will not emit any AML
1379code for them.
1380
1381    OperationRegion (OPR1, SystemMemory, 0x100, 0x100)
1382    Field (OPR1)
1383    {
1384        Offset (0),     // Never needed
1385        FLD1, 32,
1386        Offset (4),     // Redundant, offset is already 4 (bytes)
1387        FLD2, 8,
1388        Offset (64),    // OK use of Offset.
1389        FLD3, 16,
1390    }
1391dsdt.asl     14:         Offset (0),
1392Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1393operator
1394
1395dsdt.asl     16:         Offset (4),
1396Remark   2158 -                 ^ Unnecessary/redundant use of Offset
1397operator
1398
1399----------------------------------------
140010 August 2018. Summary of changes for version 20180810:
1401
1402
14031) ACPICA kernel-resident subsystem:
1404
1405Initial ACPI table loading: Attempt to continue loading ACPI tables
1406regardless of malformed AML. Since migrating table initialization to the
1407new module-level code support, the AML interpreter rejected tables upon
1408any ACPI error encountered during table load. This is a problem because
1409non-serious ACPI errors during table load do not necessarily mean that
1410the entire definition block (DSDT or SSDT) is invalid. This change
1411improves the table loading by ignoring some types of errors that can be
1412generated by incorrect AML. This can range from object type errors, scope
1413errors, and index errors.
1414
1415Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs
1416during suspend/resume. The status of ACPI events is no longer cleared
1417when entering the ACPI S5 system state (power off) which caused some
1418systems to power up immediately after turning off power in certain
1419situations. This was a functional regression. It was fixed by clearing
1420the status of all ACPI events again when entering S5 (for system-wide
1421suspend or hibernation the clearing of the status of all events is not
1422desirable, as it might cause the kernel to miss wakeup events sometimes).
1423Rafael Wysocki.
1424
1425
14262) iASL Compiler/Disassembler and Tools:
1427
1428AcpiExec: Enhanced the -fi option (Namespace initialization file). Field
1429elements listed in the initialization file were previously initialized
1430after the table load and before executing module-level code blocks.
1431Recent changes in the module-level code support means that the table load
1432becomes a large control method execution. If fields are used within
1433module-level code and we are executing with the -fi option, the
1434initialization values were used to initialize the namespace object(s)
1435only after the table was finished loading. This change Provides an early
1436initialization of objects specified in the initialization file so that
1437field unit values are populated during the table load (not after the
1438load).
1439
1440AcpiExec: Fixed a small memory leak regression that could result in
1441warnings during exit of the utility. These warnings were similar to
1442these:
1443    0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]
1444    0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001
1445
1446----------------------------------------
144729 June 2018. Summary of changes for version 20180629:
1448
1449
14501) iASL Compiler/Disassembler and Tools:
1451
1452iASL: Fixed a regression related to the use of the ASL External
1453statement. Error checking for the use of the External() statement has
1454been relaxed. Previously, a restriction on the use of External meant that
1455the referenced named object was required to be defined in a different
1456table (an SSDT). Thus it would be an error to declare an object as an
1457external and then define the same named object in the same table. For
1458example:
1459    DefinitionBlock (...)
1460    {
1461        External (DEV1)
1462        Device (DEV1){...} // This was an error
1463    }
1464However, this behavior has caused regressions in some existing ASL code,
1465because there is code that depends on named objects and externals (with
1466the same name) being declared in the same table. This change will allow
1467the ASL code above to compile without errors or warnings.
1468
1469iASL: Implemented ASL language extensions for four operators to make some
1470of their arguments optional instead of required:
1471    1) Field (RegionName, AccessType, LockRule, UpdateRule)
1472    2) BankField (RegionName, BankName, BankValue,
1473                AccessType, LockRule, UpdateRule)
1474    3) IndexField (IndexName, DataName,
1475                AccessType, LockRule, UpdateRule)
1476For the Field operators above, the AccessType, LockRule, and UpdateRule
1477are now optional arguments. The default values are:
1478        AccessType: AnyAcc
1479        LockRule:   NoLock
1480        UpdateRule: Preserve
1481    4) Mutex (MutexName, SyncLevel)
1482For this operator, the SyncLevel argument is now optional. This argument
1483is rarely used in any meaningful way by ASL code, and thus it makes sense
1484to make it optional. The default value is:
1485        SyncLevel:  0
1486
1487iASL: Attempted use of the ASL Unload() operator now results in the
1488following warning:
1489    "Unload is not supported by all operating systems"
1490This is in fact very true, and the Unload operator may be completely
1491deprecated in the near future.
1492
1493AcpiExec: Fixed a regression for the -fi option (Namespace initialization
1494file. Recent changes in the ACPICA module-level code support altered the
1495table load/initialization sequence . This means that the table load has
1496become a large method execution of the table itself. If Operation Region
1497Fields are used within any module-level code and the -fi option was
1498specified, the initialization values were populated only after the table
1499had completely finished loading (and thus the module-level code had
1500already been executed). This change moves the initialization of objects
1501listed in the initialization file to before the table is executed as a
1502method. Field unit values are now initialized before the table execution
1503is performed.
1504
1505----------------------------------------
150631 May 2018. Summary of changes for version 20180531:
1507
1508
15091) ACPICA kernel-resident Subsystem:
1510
1511Implemented additional support to help ensure that a DSDT or SSDT is
1512fully loaded even if errors are incurred during the load. The majority of
1513the problems that are seen is the failure of individual AML operators
1514that occur during execution of any module-level code (MLC) existing in
1515the table. This support adds a mechanism to abort the current ASL
1516statement (AML opcode), emit an error message, and to simply move on to
1517the next opcode -- instead of aborting the entire table load. This is
1518different than the execution of a control method where the entire method
1519is aborted upon any error. The goal is to perform a very "best effort" to
1520load the ACPI tables. The most common MLC errors that have been seen in
1521the field are direct references to unresolved ASL/AML symbols (referenced
1522directly without the use of the CondRefOf operator to validate the
1523symbol). This new ACPICA behavior is now compatible with other ACPI
1524implementations.
1525
1526Interpreter: The Unload AML operator is no longer supported for the
1527reasons below. An AE_NOT_IMPLEMENTED exception is returned.
15281) A correct implementation on at least some hosts may not be possible.
15292) Other ACPI implementations do not correctly/fully support it.
15303) It requires host device driver support which is not known to exist.
1531    (To properly support namespace unload out from underneath.)
15324) This AML operator has never been seen in the field.
1533
1534Parser: Added a debug option to dump AML parse sub-trees as they are
1535being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is
1536ACPI_DB_PARSE_TREES.
1537
1538Debugger: Reduced the verbosity for errors incurred during table load and
1539module-level code execution.
1540
1541Completed an investigation into adding a namespace node "owner list"
1542instead of the current "owner ID" associated with namespace nodes. This
1543list would link together all nodes that are owned by an individual
1544control method. The purpose would be to enhance control method execution
1545by speeding up cleanup during method exit (all namespace nodes created by
1546a method are deleted upon method termination.) Currently, the entire
1547namespace must be searched for matching owner IDs if (and only if) the
1548method creates named objects outside of the local scope. However, by far
1549the most common case is that methods create objects locally, not outside
1550the method scope. There is already an ACPICA optimization in place that
1551only searches the entire namespace in the rare case of a method creating
1552objects elsewhere in the namespace. Therefore, it is felt that the
1553overhead of adding an additional pointer to each namespace node to
1554implement the owner list makes this feature unnecessary.
1555
1556
15572) iASL Compiler/Disassembler and Tools:
1558
1559iASL, Disassembler, and Template generator: Implemented support for
1560Revision D of the IORT table. Adds a new subtable that is used to specify
1561SMMUv3 PMCGs. rmurphy-arm.
1562
1563Disassembler: Restored correct table header validation for the "special"
1564ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI
1565table header and must be special-cased. This was a regression that has
1566been present for apparently a long time.
1567
1568AcpiExec: Reduced verbosity of the local exception handler implemented
1569within acpiexec. This handler is invoked by ACPICA upon any exceptions
1570generated during control method execution. A new option was added: -vh
1571restores the original verbosity level if desired.
1572
1573AcpiExec: Changed the default base from decimal to hex for the -x option
1574(set debug level). This simplifies the use of this option and matches the
1575behavior of the corresponding iASL -x option.
1576
1577AcpiExec: Restored a force-exit on multiple control-c (sigint)
1578interrupts. This allows program termination even if other issues cause
1579the control-c to fail.
1580
1581ASL test suite (ASLTS): Added tests for the recently implemented package
1582element resolution mechanism that allows forward references to named
1583objects from individual package elements (this mechanism provides
1584compatibility with other ACPI implementations.)
1585
1586
1587----------------------------------------
15888 May 2018. Summary of changes for version 20180508:
1589
1590
15911) ACPICA kernel-resident subsystem:
1592
1593Completed the new (recently deployed) package resolution mechanism for
1594the Load and LoadTable ASL/AML operators. This fixes a regression that
1595was introduced in version 20180209 that could result in an
1596AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table
1597(SSDT) that contains package objects.
1598
1599
16002) iASL Compiler/Disassembler and Tools:
1601
1602AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than
16031 MB. This change allows for table offsets within the acpidump file to be
1604up to 8 characters. These changes are backwards compatible with existing
1605acpidump files.
1606
1607
1608----------------------------------------
160927 April 2018. Summary of changes for version 20180427:
1610
1611
16121) ACPICA kernel-resident subsystem:
1613
1614Debugger: Added support for Package objects in the "Test Objects"
1615command. This command walks the entire namespace and evaluates all named
1616data objects (Integers, Strings, Buffers, and now Packages).
1617
1618Improved error messages for the namespace root node. Originally, the root
1619was referred to by the confusing string "\___". This has been replaced by
1620"Namespace Root" for clarification.
1621
1622Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin
1623Ian King <colin.king@canonical.com>.
1624
1625
16262) iASL Compiler/Disassembler and Tools:
1627
1628iASL: Implemented support to detect and flag illegal forward references.
1629For compatibility with other ACPI implementations, these references are
1630now illegal at the root level of the DSDT or SSDTs. Forward references
1631have always been illegal within control methods. This change should not
1632affect existing ASL/AML code because of the fact that these references
1633have always been illegal in the other ACPI implementation.
1634
1635iASL: Added error messages for the case where a table OEM ID and OEM
1636TABLE ID strings are longer than the ACPI-defined length. Previously,
1637these strings were simply silently truncated.
1638
1639iASL: Enhanced the -tc option (which creates an AML hex file in C,
1640suitable for import into a firmware project):
1641  1) Create a unique name for the table, to simplify use of multiple
1642SSDTs.
1643  2) Add a protection #ifdef in the file, similar to a .h header file.
1644With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd,
1645evan.lloyd@arm.com
1646
1647AcpiExec: Added a new option, -df, to disable the local fault handler.
1648This is useful during debugging, where it may be desired to drop into a
1649debugger on a fault.
1650
1651----------------------------------------
165213 March 2018. Summary of changes for version 20180313:
1653
1654
16551) ACPICA kernel-resident subsystem:
1656
1657Implemented various improvements to the GPE support:
1658
16591) Dispatch all active GPEs at initialization time so that no GPEs are
1660lost.
16612) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled
1662before devices are enumerated.
16633) Don't unconditionally clear ACPI IRQs during suspend/resume, so that
1664IRQs are not lost.
16654) Add parallel GPE handling to eliminate the possibility of dispatching
1666the same GPE twice.
16675) Dispatch any pending GPEs after enabling for the first time.
1668
1669AcpiGetObjectInfo - removed support for the _STA method. This was causing
1670problems on some platforms.
1671
1672Added a new _OSI string, "Windows 2017.2".
1673
1674Cleaned up and simplified the module-level code support. These changes
1675are in preparation for the eventual removal of the legacy MLC support
1676(deferred execution), replaced by the new MLC architecture which executes
1677the MLC as a table is loaded (DSDT/SSDTs).
1678
1679Changed a compile-time option to a runtime option. Changes the option to
1680ignore ACPI table load-time package resolution errors into a runtime
1681option. Used only for platforms that generate many AE_NOT_FOUND errors
1682during boot. AcpiGbl_IgnorePackageResolutionErrors.
1683
1684Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some
1685ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid
1686compilation errors from unused variables (seen with some compilers).
1687
1688
16892) iASL Compiler/Disassembler and Tools:
1690
1691ASLTS: parallelized execution in order to achieve an (approximately) 2X
1692performance increase.
1693
1694ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves
1695error reporting.
1696
1697----------------------------------------
169809 February 2018. Summary of changes for version 20180209:
1699
1700
17011) ACPICA kernel-resident subsystem:
1702
1703Completed the final integration of the recent changes to Package Object
1704handling and the module-level AML code support. This allows forward
1705references from individual package elements when the package object is
1706declared from within module-level code blocks. Provides compatibility
1707with other ACPI implementations.
1708
1709The new architecture for the AML module-level code has been completed and
1710is now the default for the ACPICA code. This new architecture executes
1711the module-level code in-line as the ACPI table is loaded/parsed instead
1712of the previous architecture which deferred this code until after the
1713table was fully loaded. This solves some ASL code ordering issues and
1714provides compatibility with other ACPI implementations. At this time,
1715there is an option to fallback to the earlier architecture, but this
1716support is deprecated and is planned to be completely removed later this
1717year.
1718
1719Added a compile-time option to ignore AE_NOT_FOUND exceptions during
1720resolution of named reference elements within Package objects. Although
1721this is potentially a serious problem, it can generate a lot of
1722noise/errors on platforms whose firmware carries around a bunch of unused
1723Package objects. To disable these errors, define
1724ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All
1725errors are always reported for ACPICA applications such as AcpiExec.
1726
1727Fixed a regression related to the explicit type-conversion AML operators
1728(ToXXXX). The regression was introduced early in 2017 but was not seen
1729until recently because these operators are not fully supported by other
1730ACPI implementations and are thus rarely used by firmware developers. The
1731operators are defined by the ACPI specification to not implement the
1732"implicit result object conversion". The regression incorrectly
1733introduced this object conversion for the following explicit conversion
1734operators:
1735    ToInteger
1736    ToString
1737    ToBuffer
1738    ToDecimalString
1739    ToHexString
1740    ToBCD
1741    FromBCD
1742
1743
17442) iASL Compiler/Disassembler and Tools:
1745
1746iASL: Fixed a problem with the compiler constant folding feature as
1747related to the ToXXXX explicit conversion operators. These operators do
1748not support the "implicit result object conversion" by definition. Thus,
1749ASL expressions that use these operators cannot be folded to a simple
1750Store operator because Store implements the implicit conversion. This
1751change uses the CopyObject operator for the ToXXXX operator folding
1752instead. CopyObject is defined to not implement implicit result
1753conversions and is thus appropriate for folding the ToXXXX operators.
1754
1755iASL: Changed the severity of an error condition to a simple warning for
1756the case where a symbol is declared both locally and as an external
1757symbol. This accommodates existing ASL code.
1758
1759AcpiExec: The -ep option to enable the new architecture for module-level
1760code has been removed. It is replaced by the -dp option which instead has
1761the opposite effect: it disables the new architecture (the default) and
1762enables the legacy architecture. When the legacy code is removed in the
1763future, the -dp option will be removed also.
1764
1765----------------------------------------
176605 January 2018. Summary of changes for version 20180105:
1767
1768
17691) ACPICA kernel-resident subsystem:
1770
1771Updated all copyrights to 2018. This affects all source code modules.
1772
1773Fixed a possible build error caused by an unresolved reference to the
1774AcpiUtSafeStrncpy function.
1775
1776Removed NULL pointer arithmetic in the various pointer manipulation
1777macros. All "(void *) NULL" constructs are converted to "(void *) 0".
1778This eliminates warnings/errors in newer C compilers. Jung-uk Kim.
1779
1780Added support for A32 ABI compilation, which uses the ILP32 model. Anuj
1781Mittal.
1782
1783
17842) iASL Compiler/Disassembler and Tools:
1785
1786ASLTS: Updated all copyrights to 2018.
1787
1788Tools: Updated all signon copyrights to 2018.
1789
1790AcpiXtract: Fixed a regression related to ACPI table signatures where the
1791signature was truncated to 3 characters (instead of 4).
1792
1793AcpiExec: Restore the original terminal mode after the use of the -v and
1794-vd options.
1795
1796ASLTS: Deployed the iASL __METHOD__ macro across the test suite.
1797
1798----------------------------------------
179914 December 2017. Summary of changes for version 20171214:
1800
1801
18021) ACPICA kernel-resident subsystem:
1803
1804Fixed a regression in the external (public) AcpiEvaluateObjectTyped
1805interface where the optional "pathname" argument had inadvertently become
1806a required argument returning an error if omitted (NULL pointer
1807argument).
1808
1809Fixed two possible memory leaks related to the recently developed "late
1810resolution" of reference objects within ASL Package Object definitions.
1811
1812Added two recently defined _OSI strings: "Windows 2016" and "Windows
18132017". Mario Limonciello.
1814
1815Implemented and deployed a safer version of the C library function
1816strncpy:  AcpiUtSafeStrncpy. The intent is to at least prevent the
1817creation of unterminated strings as a possible result of a standard
1818strncpy.
1819
1820Cleaned up and restructured the global variable file (acglobal.h). There
1821are many changes, but no functional changes.
1822
1823
18242) iASL Compiler/Disassembler and Tools:
1825
1826iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the
1827optional OemData field at the end of the table was incorrectly required
1828for proper compilation. It is now correctly an optional field.
1829
1830ASLTS: The entire suite was converted from standard ASL to the ASL+
1831language, using the ASL-to-ASL+ converter which is integrated into the
1832iASL compiler. A binary compare of all output files has verified the
1833correctness of the conversion.
1834
1835iASL: Fixed the source code build for platforms where "char" is unsigned.
1836This affected the iASL lexer only. Jung-uk Kim.
1837
1838----------------------------------------
183910 November 2017. Summary of changes for version 20171110:
1840
1841
18421) ACPICA kernel-resident subsystem:
1843
1844This release implements full support for ACPI 6.2A:
1845    NFIT - Added a new subtable, "Platform Capabilities Structure"
1846No other changes to ACPICA were required, since ACPI 6.2A is primarily an
1847errata release of the specification.
1848
1849Other ACPI table changes:
1850    IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo
1851    PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy
1852Linton
1853
1854Utilities: Modified the string/integer conversion functions to use
1855internal 64-bit divide support instead of a native divide. On 32-bit
1856platforms, a 64-bit divide typically requires a library function which
1857may not be present in the build (kernel or otherwise).
1858
1859Implemented a targeted error message for timeouts returned from the
1860Embedded Controller device driver. This is seen frequently enough to
1861special-case an AE_TIME returned from an EC operation region access:
1862    "Timeout from EC hardware or EC device driver"
1863
1864Changed the "ACPI Exception" message prefix to "ACPI Error" so that all
1865runtime error messages have the identical prefix.
1866
1867
18682) iASL Compiler/Disassembler and Tools:
1869
1870AcpiXtract: Fixed a problem with table header detection within the
1871acpidump file. Processing a table could be ended early if a 0x40 (@)
1872appears in the original binary table, resulting in the @ symbol appearing
1873in the decoded ASCII field at the end of the acpidump text line. The
1874symbol caused acpixtract to incorrectly think it had reached the end of
1875the current table and the beginning of a new table.
1876
1877AcpiXtract: Added an option (-f) to ignore some errors during table
1878extraction. This initial implementation ignores non-ASCII and non-
1879printable characters found in the acpidump text file.
1880
1881TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics
1882for ASLTS. This feature is used to track memory allocations from
1883different memory caches within the ACPICA code. At the end of an ASLTS
1884run, these memory statistics are recorded and stored in a log file.
1885
1886Debugger (user-space version): Implemented a simple "Background" command.
1887Creates a new thread to execute a control method in the background, while
1888control returns to the debugger prompt to allow additional commands.
1889    Syntax: Background <Namepath> [Arguments]
1890
1891----------------------------------------
189229 September 2017. Summary of changes for version 20170929:
1893
1894
18951) ACPICA kernel-resident subsystem:
1896
1897Redesigned and implemented an improved ASL While() loop timeout
1898mechanism. This mechanism is used to prevent infinite loops in the kernel
1899AML interpreter caused by either non-responsive hardware or incorrect AML
1900code. The new implementation uses AcpiOsGetTimer instead of a simple
1901maximum loop count, and is thus more accurate and constant across
1902different machines. The default timeout is currently 30 seconds, but this
1903may be adjusted later.
1904
1905Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to
1906better reflect the new implementation of the loop timeout mechanism.
1907
1908Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support
1909and to fix an off-by-one error. Jung-uk Kim.
1910
1911Fixed an EFI build problem by updating the makefiles to for a new file
1912that was added, utstrsuppt.c
1913
1914
19152) iASL Compiler/Disassembler and Tools:
1916
1917Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This
1918includes support in the table disassembler, compiler, and template
1919generator.
1920
1921iASL: Added an exception for an illegal type of recursive method
1922invocation. If a method creates named objects, the first recursive call
1923will fail at runtime. This change adds an error detection at compile time
1924to catch the problem up front. Note: Marking such a method as
1925"serialized" will not help with this problem, because the same thread can
1926acquire the method mutex more than once. Example compiler and runtime
1927output:
1928
1929    Method (MTH1)
1930    {
1931        Name (INT1, 1)
1932        MTH1 ()
1933    }
1934
1935    dsdt.asl     22: MTH1 ()
1936    Error    6152 -  ^ Illegal recursive call to method
1937                       that creates named objects (MTH1)
1938
1939Previous runtime exception:
1940    ACPI Error: [INT1] Namespace lookup failure,
1941    AE_ALREADY_EXISTS (20170831/dswload2-465)
1942
1943iASL: Updated support for External() opcodes to improve namespace
1944management and error detection. These changes are related to issues seen
1945with multiple-segment namespace pathnames within External declarations,
1946such as below:
1947
1948    External(\_SB.PCI0.GFX0, DeviceObj)
1949    External(\_SB.PCI0.GFX0.ALSI)
1950
1951iASL: Implemented support for multi-line error/warning messages. This
1952enables more detailed and helpful error messages as below, from the
1953initial deployment for the duplicate names error:
1954
1955    DSDT.iiii   1692:       Device(PEG2) {
1956    Error    6074 -                  ^ Name already exists in scope
1957(PEG2)
1958
1959        Original name creation/declaration below:
1960        DSDT.iiii     93:   External(\_SB.PCI0.PEG2, DeviceObj)
1961
1962AcpiXtract: Added additional flexibility to support differing input hex
1963dump formats. Specifically, hex dumps that contain partial disassembly
1964and/or comments within the ACPI table data definition. There exist some
1965dump utilities seen in the field that create this type of hex dump (such
1966as Simics). For example:
1967
1968    DSDT @ 0xdfffd0c0 (10999 bytes)
1969        Signature DSDT
1970        Length 10999
1971        Revision 1
1972        Checksum 0xf3 (Ok)
1973        OEM_ID BXPC
1974        OEM_table_id BXDSDT
1975        OEM_revision 1
1976        Creator_id 1280593481
1977        Creator_revision 537399345
1978      0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00
1979      ...
1980      2af0: 5f 4c 30 46 00 a4 01
1981
1982Test suite: Miscellaneous changes/fixes:
1983    More cleanup and simplification of makefiles
1984    Continue compilation of test cases after a compile failure
1985    Do not perform binary compare unless both files actually exist
1986
1987iASL: Performed some code/module restructuring. Moved all memory
1988allocation functions to new modules. Two new files, aslallocate.c and
1989aslcache.c
1990
1991----------------------------------------
199231 August 2017. Summary of changes for version 20170831:
1993
1994
19951) ACPICA kernel-resident subsystem:
1996
1997Implemented internal support for full 64-bit addresses that appear in all
1998Generic Address Structure (GAS) structures. Previously, only the lower 32
1999bits were used. Affects the use of GAS structures in the FADT and other
2000tables, as well as the GAS structures passed to the AcpiRead and
2001AcpiWrite public external interfaces that are used by drivers. Lv Zheng.
2002
2003Added header support for the PDTT ACPI table (Processor Debug Trigger
2004Table). Full support in the iASL Data Table Compiler and disassembler is
2005forthcoming.
2006
2007
20082) iASL Compiler/Disassembler and Tools:
2009
2010iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor
2011Properties Topology Table) where a flag bit was specified in the wrong
2012bit position ("Line Size Valid", bit 6).
2013
2014iASL: Implemented support for Octal integer constants as defined by the
2015ASL language grammar, per the ACPI specification. Any integer constant
2016that starts with a zero is an octal constant. For example,
2017    Store (037777, Local0) /* Octal constant */
2018    Store (0x3FFF, Local0) /* Hex equivalent */
2019    Store (16383,  Local0) /* Decimal equivalent */
2020
2021iASL: Improved overflow detection for 64-bit string conversions during
2022compilation of integer constants. "Overflow" in this case means a string
2023that represents an integer that is too large to fit into a 64-bit value.
2024Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to
2025the low-order 32 bits with a warning, as previously implemented. Several
2026new exceptions are defined that indicate a 64-bit overflow, as well as
2027the base (radix) that was used during the attempted conversion. Examples:
2028    Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF        // AE_HEX_OVERFLOW
2029    Local0 = 01111222233334444555566667777     // AE_OCTAL_OVERFLOW
2030    Local0 = 11112222333344445555666677778888  // AE_DECIMAL_OVERFLOW
2031
2032iASL: Added a warning for the case where a ResourceTemplate is declared
2033with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In
2034this case, the resulting template is created with a single END_TAG
2035descriptor, which is essentially useless.
2036
2037iASL: Expanded the -vw option (ignore specific warnings/remarks) to
2038include compilation error codes as well.
2039
2040----------------------------------------
204128 July 2017. Summary of changes for version 20170728:
2042
2043
20441) ACPICA kernel-resident subsystem:
2045
2046Fixed a regression seen with small resource descriptors that could cause
2047an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.
2048
2049AML interpreter: Implemented a new feature that allows forward references
2050from individual named references within package objects that are
2051contained within blocks of "module-level code". This provides
2052compatibility with other ACPI implementations and supports existing
2053firmware that depends on this feature. Example:
2054
2055    Name (ABCD, 1)
2056    If (ABCD)                       /* An If() at module-level */
2057    {
2058        Name (PKG1, Package()
2059        {
2060            INT1                    /* Forward reference to object INT1
2061*/
2062        })
2063        Name (INT1, 0x1234)
2064    }
2065
2066AML Interpreter: Fixed a problem with the Alias() operator where aliases
2067to some ASL objects were not handled properly. Objects affected are:
2068Mutex, Event, and OperationRegion.
2069
2070AML Debugger: Enhanced to properly handle AML Alias objects. These
2071objects have one level of indirection which was not fully supported by
2072the debugger.
2073
2074Table Manager: Added support to detect and ignore duplicate SSDTs within
2075the XSDT/RSDT. This error in the XSDT has been seen in the field.
2076
2077EFI and EDK2 support:
2078    Enabled /WX flag for MSVC builds
2079    Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer
2080    Added local support for 64-bit multiply and shift operations
2081    Added support to compile acpidump.efi on Windows
2082    Added OSL function stubs for interfaces not used under EFI
2083
2084Added additional support for the _DMA predefined name. _DMA returns a
2085buffer containing a resource template. This change add support within the
2086resource manager (AcpiWalkResourceBuffer) to walk and parse this list of
2087resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
2088
2089
20902) iASL Compiler/Disassembler and Tools:
2091
2092iASL: Fixed a problem where the internal input line buffer(s) could
2093overflow if there are very long lines in the input ASL source code file.
2094Implemented buffer management that automatically increases the size of
2095the buffers as necessary.
2096
2097iASL: Added an option (-vx) to "expect" particular remarks, warnings and
2098errors. If the specified exception is not raised during compilation, the
2099compiler emits an error. This is intended to support the ASL test suite,
2100but may be useful in other contexts.
2101
2102iASL: Implemented a new predefined macro, __METHOD__, which returns a
2103string containing the name of the current control method that is being
2104compiled.
2105
2106iASL: Implemented debugger and table compiler support for the SDEI ACPI
2107table (Software Delegated Exception Interface). James Morse
2108<james.morse@arm.com>
2109
2110Unix/Linux makefiles: Added an option to disable compile optimizations.
2111The disable occurs when the NOOPT flag is set to TRUE.
2112theracermaster@gmail.com
2113
2114Acpidump: Added support for multiple DSDT and FACS tables. This can occur
2115when there are different tables for 32-bit versus 64-bit.
2116
2117Enhanced error reporting for the ASL test suite (ASLTS) by removing
2118unnecessary/verbose text, and emit the actual line number where an error
2119has occurred. These changes are intended to improve the usefulness of the
2120test suite.
2121
2122----------------------------------------
212329 June 2017. Summary of changes for version 20170629:
2124
2125
21261) ACPICA kernel-resident subsystem:
2127
2128Tables: Implemented a deferred ACPI table verification. This is useful
2129for operating systems where the tables cannot be verified in the early
2130initialization stage due to early memory mapping limitations on some
2131architectures. Lv Zheng.
2132
2133Tables: Removed the signature validation for dynamically loaded tables.
2134Provides compatibility with other ACPI implementations. Previously, only
2135SSDT tables were allowed, as per the ACPI specification. Now, any table
2136signature can be used via the Load() operator. Lv Zheng.
2137
2138Tables: Fixed several mutex issues that could cause errors during table
2139acquisition. Lv Zheng.
2140
2141Tables: Fixed a problem where an ACPI warning could be generated if a
2142null pointer was passed to the AcpiPutTable interface. Lv Zheng.
2143
2144Tables: Added a mechanism to handle imbalances for the AcpiGetTable and
2145AcpiPutTable interfaces. This applies to the "late stage" table loading
2146when the use of AcpiPutTable is no longer required (since the system
2147memory manager is fully running and available). Lv Zheng.
2148
2149Fixed/Reverted a regression during processing of resource descriptors
2150that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG
2151exception in this case.
2152
2153Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the
2154I/O Remapping specification. Robin Murphy <robin.murphy@arm.com>
2155
2156Interpreter: Fixed a possible fault if an Alias operator with an invalid
2157or duplicate target is encountered during Alias creation in
2158AcpiExCreateAlias. Alex James <theracermaster@gmail.com>
2159
2160Added an option to use designated initializers for function pointers.
2161Kees Cook <keescook@google.com>
2162
2163
21642) iASL Compiler/Disassembler and Tools:
2165
2166iASL: Allow compilation of External declarations with target pathnames
2167that refer to existing named objects within the table. Erik Schmauss.
2168
2169iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a
2170FieldUnit name also is declared via External in the same table. Erik
2171Schmauss.
2172
2173iASL: Allow existing scope names within pathnames used in External
2174statements. For example:
2175    External (ABCD.EFGH) // ABCD exists, but EFGH is truly external
2176    Device (ABCD)
2177
2178iASL: IORT ACPI table: Implemented changes required to decode the new
2179Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table
2180compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com>
2181
2182Disassembler: Don't abort disassembly on errors from External()
2183statements. Erik Schmauss.
2184
2185Disassembler: fixed a possible fault when one of the Create*Field
2186operators references a Resource Template. ACPICA Bugzilla 1396.
2187
2188iASL: In the source code, resolved some naming inconsistences across the
2189parsing support. Fixes confusion between "Parse Op" and "Parse Node".
2190Adds a new file, aslparseop.c
2191
2192----------------------------------------
219331 May 2017. Summary of changes for version 20170531:
2194
2195
21960) ACPI 6.2 support:
2197
2198The ACPI specification version 6.2 has been released and is available at
2199http://uefi.org/specifications
2200
2201This version of ACPICA fully supports the ACPI 6.2 specification. Changes
2202are summarized below.
2203
2204New ACPI tables (Table Compiler/Disassembler/Templates):
2205    HMAT (Heterogeneous Memory Attributes Table)
2206    WSMT (Windows SMM Security Mitigation Table)
2207    PPTT (Processor Properties Topology Table)
2208
2209New subtables for existing ACPI tables:
2210    HEST (New subtable, Arch-deferred machine check)
2211    SRAT (New subtable, Arch-specific affinity structure)
2212    PCCT (New subtables, Extended PCC subspaces (types 3 and 4))
2213
2214Simple updates for existing ACPI tables:
2215    BGRT (two new flag bits)
2216    HEST (New bit defined for several subtables, GHES_ASSIST)
2217
2218New Resource Descriptors and Resource macros (Compiler/Disassembler):
2219    PinConfig()
2220    PinFunction()
2221    PinGroup()
2222    PinGroupConfig()
2223    PinGroupFunction()
2224    New type for hardware error notification (section 18.3.2.9)
2225
2226New predefined names/methods (Compiler/Interpreter):
2227    _HMA (Heterogeneous Memory Attributes)
2228    _LSI (Label Storage Information)
2229    _LSR (Label Storage Read)
2230    _LSW (Label Storage Write)
2231
2232ASL grammar/macro changes (Compiler):
2233    For() ASL macro, implemented with the AML while operator
2234    Extensions to Concatenate operator
2235    Support for multiple definition blocks in same ASL file
2236    Clarification for Buffer operator
2237    Allow executable AML code underneath all scopes (Devices, etc.)
2238    Clarification/change for the _OSI return value
2239    ASL grammar update for reference operators
2240    Allow a zero-length string for AML filename in DefinitionBlock
2241
2242Miscellaneous:
2243    New device object notification value
2244    Remove a notify value (0x0C) for graceful shutdown
2245    New UUIDs for processor/cache properties and
2246        physical package property
2247    New _HID, ACPI0014 (Wireless Power Calibration Device)
2248
2249
22501) ACPICA kernel-resident subsystem:
2251
2252Added support to disable ACPI events on hardware-reduced platforms.
2253Eliminates error messages of the form "Could not enable fixed event". Lv
2254Zheng
2255
2256Fixed a problem using Device/Thermal objects with the ObjectType and
2257DerefOf ASL operators. This support had not been fully/properly
2258implemented.
2259
2260Fixed a problem where if a Buffer object containing a resource template
2261was longer than the actual resource template, an error was generated --
2262even though the AML is legal. This case has been seen in the field.
2263
2264Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.
2265The values for DUAL_PIC and MULTIPLE_APIC were reversed.
2266
2267Added header file changes for the TPM2 ACPI table. Update to new version
2268of the TCG specification. Adds a new TPM2 subtable for ARM SMC.
2269
2270Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.
2271These interfaces are intended to be used only in conjunction with the
2272predefined _DLM method (Device Lock Method). "This object appears in a
2273device scope when AML access to the device must be synchronized with the
2274OS environment".
2275
2276Example Code and Data Size: These are the sizes for the OS-independent
2277acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2278debug version of the code includes the debug output trace mechanism and
2279has a much larger code and data size.
2280
2281  Current Release:
2282    Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total
2283    Debug Version:     204.0K Code, 84.3K Data, 288.3K Total
2284  Previous 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
2288
22892) iASL Compiler/Disassembler and Tools:
2290
2291iASL: Fixed a problem where an External() declaration could not refer to
2292a Field Unit. Erik Schmauss.
2293
2294Disassembler: Improved support for the Switch/Case operators. This
2295feature will disassemble AML code back to the original Switch operators
2296when possible, instead of an If..Else sequence. David Box
2297
2298iASL and disassembler: Improved the handling of multiple extraneous
2299parentheses for both ASL input and disassembled ASL output.
2300
2301Improved the behavior of the iASL compiler and disassembler to detect
2302improper use of external declarations
2303
2304Disassembler: Now aborts immediately upon detection of an unknown AML
2305opcode. The AML parser has no real way to recover from this, and can
2306result in the creation of an ill-formed parse tree that causes errors
2307later during the disassembly.
2308
2309All tools: Fixed a problem where the Unix application OSL did not handle
2310control-c correctly. For example, a control-c could incorrectly wake the
2311debugger.
2312
2313AcpiExec: Improved the Control-C handling and added a handler for
2314segmentation faults (SIGSEGV). Supports both Windows and Unix-like
2315environments.
2316
2317Reduced the verbosity of the generic unix makefiles. Previously, each
2318compilation displayed the full set of compiler options. This has been
2319eliminated as the options are easily inspected within the makefiles. Each
2320compilation now results in a single line of output.
2321
2322----------------------------------------
232303 March 2017. Summary of changes for version 20170303:
2324
2325
23260) ACPICA licensing:
2327
2328The licensing information at the start of each source code module has
2329been updated. In addition to the Intel license, the dual GPLv2/BSD
2330license has been added for completeness. Now, a single version of the
2331source code should be suitable for all ACPICA customers. This is the
2332major change for this release since it affects all source code modules.
2333
2334
23351) ACPICA kernel-resident subsystem:
2336
2337Fixed two issues with the common asltypes.h header that could cause
2338problems in some environments: (Kim Jung-uk)
2339    Removed typedef for YY_BUFFER_STATE ?
2340       Fixes an error with earlier versions of Flex.
2341    Removed use of FILE typedef (which is only defined in stdio.h)
2342
2343
23442) iASL Compiler/Disassembler and Tools:
2345
2346Disassembler: fixed a regression introduced in 20170224. A fix for a
2347memory leak related to resource descriptor tags (names) could fault when
2348the disassembler was generated with 64-bit compilers.
2349
2350The ASLTS test suite has been updated to implement a new testing
2351architecture. During generation of the suite from ASL source, both the
2352ASL and ASL+ compilers are now validated, as well as the disassembler
2353itself (Erik Schmauss). The architecture executes as follows:
2354
2355    For every ASL source module:
2356        Compile (legacy ASL compilation)
2357        Disassemble the resulting AML to ASL+ source code
2358        Compile the new ASL+ module
2359        Perform a binary compare on the legacy AML and the new ASL+ AML
2360    The ASLTS suite then executes normally using the AML binaries.
2361
2362----------------------------------------
236324 February 2017. Summary of changes for version 20170224:
2364
2365
23661) ACPICA kernel-resident subsystem:
2367
2368Interpreter: Fixed two issues with the control method return value auto-
2369repair feature, where an attempt to double-delete an internal object
2370could result in an ACPICA warning (for _CID repair and others). No fault
2371occurs, however, because the attempted deletion (actually a release to an
2372internal cache) is detected and ignored via object poisoning.
2373
2374Debugger: Fixed an AML interpreter mutex issue during the single stepping
2375of control methods. If certain debugger commands are executed during
2376stepping, a mutex acquire/release error could occur. Lv Zheng.
2377
2378Fixed some issues generating ACPICA with the Intel C compiler by
2379restoring the original behavior and compiler-specific include file in
2380acenv.h. Lv Zheng.
2381
2382Example Code and Data Size: These are the sizes for the OS-independent
2383acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2384debug version of the code includes the debug output trace mechanism and
2385has a much larger code and data size.
2386
2387  Current Release:
2388    Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total
2389    Debug Version:     207.5K Code, 82.7K Data, 290.2K Total
2390  Previous Release:
2391    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2392    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2393
2394
23952) iASL Compiler/Disassembler and Tools:
2396
2397iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion
2398tool has been designed, implemented, and included in this release. The
2399key feature of this utility is that the original comments within the
2400input ASL file are preserved during the conversion process, and included
2401within the converted ASL+ file -- thus creating a transparent conversion
2402of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.
2403
2404    Usage: iasl -ca <ASL-filename>  // Output is a .dsl file with
2405converted code
2406
2407iASL/Disassembler: Improved the detection and correct disassembly of
2408Switch/Case operators. This feature detects sequences of if/elseif/else
2409operators that originated from ASL Switch/Case/Default operators and
2410emits the original operators. David Box.
2411
2412iASL: Improved the IORT ACPI table support in the following areas. Lv
2413Zheng:
2414    Clear MappingOffset if the MappingCount is zero.
2415    Fix the disassembly of the SMMU GSU interrupt offset.
2416    Update the template file for the IORT table.
2417
2418Disassembler: Enhanced the detection and disassembly of resource
2419template/descriptor within a Buffer object. An EndTag descriptor is now
2420required to have a zero second byte, since all known ASL compilers emit
2421this. This helps eliminate incorrect decisions when a buffer is
2422disassembled (false positives on resource templates).
2423
2424----------------------------------------
242519 January 2017. Summary of changes for version 20170119:
2426
2427
24281) General ACPICA software:
2429
2430Entire source code base: Added the 2017 copyright to all source code
2431legal/licensing module headers and utility/tool signons. This includes
2432the standard Linux dual-license header. This affects virtually every file
2433in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
2434the ACPICA test suite.
2435
2436
24372) iASL Compiler/Disassembler and Tools:
2438
2439iASL: Removed/fixed an inadvertent remark when a method argument
2440containing a reference is used as a target operand within the method (and
2441never used as a simple argument), as in the example below. Jeffrey Hugo.
2442
2443    dsdt.asl   1507:    Store(0x1, Arg0)
2444    Remark   2146 -                ^ Method Argument is never used (Arg0)
2445
2446All tools: Removed the bit width of the compiler that generated the tool
2447from the common signon for all user space tools. This proved to be
2448confusing and unnecessary. This includes similar removal of HARDWARE_NAME
2449from the generic makefiles (Thomas Petazzoni). Example below.
2450
2451    Old:
2452    ASL+ Optimizing Compiler version 20170119-32
2453    ASL+ Optimizing Compiler version 20170119-64
2454
2455    New:
2456    ASL+ Optimizing Compiler version 20170119
2457
2458----------------------------------------
245922 December 2016. Summary of changes for version 20161222:
2460
2461
24621) ACPICA kernel-resident subsystem:
2463
2464AML Debugger: Implemented a new mechanism to simplify and enhance
2465debugger integration into all environments, including kernel debuggers
2466and user-space utilities, as well as remote debug services. This
2467mechanism essentially consists of new OSL interfaces to support debugger
2468initialization/termination, as well as wait/notify interfaces to perform
2469the debugger handshake with the host. Lv Zheng.
2470
2471    New OSL interfaces:
2472        AcpiOsInitializeDebugger (void)
2473        AcpiOsTerminateDebugger (void)
2474        AcpiOsWaitCommandReady (void)
2475        AcpiOsNotifyCommandComplete (void)
2476
2477    New OS services layer:
2478        osgendbg.c -- Example implementation, and used for AcpiExec
2479
2480Update for Generic Address Space (GAS) support: Although the AccessWidth
2481and/or BitOffset fields of the GAS are not often used, this change now
2482fully supports these fields. This affects the internal support for FADT
2483registers, registers in other ACPI data tables, and the AcpiRead and
2484AcpiWrite public interfaces. Lv Zheng.
2485
2486Sleep support: In order to simplify integration of ACPI sleep for the
2487various host operating systems, a new OSL interface has been introduced.
2488AcpiOsEnterSleep allows the host to perform any required operations
2489before the final write to the sleep control register(s) is performed by
2490ACPICA. Lv Zheng.
2491
2492    New OSL interface:
2493        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)
2494
2495    Called from these internal interfaces:
2496        AcpiHwLegacySleep
2497        AcpiHwExtendedSleep
2498
2499EFI support: Added a very small EFI/ACPICA example application. Provides
2500a simple demo for EFI integration, as well as assisting with resolution
2501of issues related to customer ACPICA/EFI integration. Lv Zheng. See:
2502
2503    source/tools/efihello/efihello.c
2504
2505Local C library: Implemented several new functions to enhance ACPICA
2506portability, for environments where these clib functions are not
2507available (such as EFI). Lv Zheng:
2508    putchar
2509    getchar
2510    strpbrk
2511    strtok
2512    memmove
2513
2514Fixed a regression where occasionally a valid resource descriptor was
2515incorrectly detected as invalid at runtime, and a
2516AE_AML_NO_RESOURCE_END_TAG was returned.
2517
2518Fixed a problem with the recently implemented support that enables
2519control method invocations as Target operands to many ASL operators.
2520Warnings of this form: "Needed type [Reference], found [Processor]" were
2521seen at runtime for some method invocations.
2522
2523Example Code and Data Size: These are the sizes for the OS-independent
2524acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2525debug version of the code includes the debug output trace mechanism and
2526has a much larger code and data size.
2527
2528  Current Release:
2529    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
2530    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
2531  Previous Release:
2532    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2533    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2534
2535
25362) iASL Compiler/Disassembler and Tools:
2537
2538Disassembler: Enhanced output by adding the capability to detect and
2539disassemble ASL Switch/Case statements back to the original ASL source
2540code instead of if/else blocks. David Box.
2541
2542AcpiHelp: Split a large file into separate files based upon
2543functionality/purpose. New files are:
2544    ahaml.c
2545    ahasl.c
2546
2547----------------------------------------
254817 November 2016. Summary of changes for version 20161117:
2549
2550
25511) ACPICA kernel-resident subsystem:
2552
2553Table Manager: Fixed a regression introduced in 20160729, "FADT support
2554cleanup". This was an attempt to remove all references in the source to
2555the FADT version 2, which never was a legal version number. It was
2556skipped because it was an early version of 64-bit support that was
2557eventually abandoned for the current 64-bit support.
2558
2559Interpreter: Fixed a problem where runtime implicit conversion was
2560incorrectly disabled for the ASL operators below. This brings the
2561behavior into compliance with the ACPI specification:
2562    FromBCD
2563    ToBCD
2564    ToDecimalString
2565    ToHexString
2566    ToInteger
2567    ToBuffer
2568
2569Table Manager: Added a new public interface, AcpiPutTable, used to
2570release and free an ACPI table returned by AcpiGetTable and related
2571interfaces. Lv Zheng.
2572
2573Example Code and Data Size: These are the sizes for the OS-independent
2574acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2575debug version of the code includes the debug output trace mechanism and
2576has a much larger code and data size.
2577
2578  Current Release:
2579    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
2580    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
2581  Previous Release:
2582    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2583    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2584
2585
25862) iASL Compiler/Disassembler and Tools:
2587
2588Disassembler: Fixed a regression for disassembly of Resource Template.
2589Detection of templates in the AML stream missed some types of templates.
2590
2591iASL: Fixed a problem where an Access Size error was returned for the PCC
2592address space when the AccessSize of the GAS register is greater than a
2593DWORD. Hoan Tran.
2594
2595iASL: Implemented several grammar changes for the operators below. These
2596changes are slated for the next version of the ACPI specification:
2597    RefOf        - Disallow method invocation as an operand
2598    CondRefOf    - Disallow method invocation as an operand
2599    DerefOf      - Disallow operands that use the result from operators
2600that
2601                   do not return a reference (Changed TermArg to
2602SuperName).
2603
2604iASL: Control method invocations are now allowed for Target operands, as
2605per the ACPI specification. Removed error for using a control method
2606invocation as a Target operand.
2607
2608Disassembler: Improved detection of Resource Templates, Unicode, and
2609Strings within Buffer objects. These subtypes do not contain a specific
2610opcode to indicate the originating ASL code, and they must be detected by
2611other means within the disassembler.
2612
2613iASL: Implemented an optimization improvement for 32-bit ACPI tables
2614(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
2615only after 64-bit to 32-bit truncation. A truncation warning message is
2616still emitted, however.
2617
2618AcpiXtract: Implemented handling for both types of line terminators (LF
2619or CR/LF) so that it can accept AcpiDump output files from any system.
2620Peter Wu.
2621
2622AcpiBin: Added two new options for comparing AML files:
2623    -a: compare and display ALL mismatches
2624    -o: start compare at this offset into the second file
2625
2626----------------------------------------
262730 September 2016. Summary of changes for version 20160930:
2628
2629
26301) ACPICA kernel-resident subsystem:
2631
2632Fixed a regression in the internal AcpiTbFindTable function where a non
2633AE_OK exception could inadvertently be returned even if the function did
2634not fail. This problem affects the following operators:
2635    DataTableRegion
2636    LoadTable
2637
2638Fixed a regression in the LoadTable operator where a load to any
2639namespace location other than the root no longer worked properly.
2640
2641Increased the maximum loop count value that will result in the
2642AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to
2643prevent infinite loops within the AML interpreter and thus the host OS
2644kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to
26451,048,575).
2646
2647Moved the AcpiGbl_MaxLoopIterations configuration variable to the public
2648acpixf.h file. This allows hosts to easily configure the maximum loop
2649count at runtime.
2650
2651Removed an illegal character in the strtoul64.c file. This character
2652caused errors with some C compilers.
2653
2654Example Code and Data Size: These are the sizes for the OS-independent
2655acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2656debug version of the code includes the debug output trace mechanism and
2657has a much larger code and data size.
2658
2659  Current Release:
2660    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
2661    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total
2662  Previous Release:
2663    Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total
2664    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2665
2666
26672) iASL Compiler/Disassembler and Tools:
2668
2669Disassembler: Fixed a problem with the conversion of Else{If{ blocks into
2670the simpler ASL ElseIf keyword. During the conversion, a trailing If
2671block could be lost and missing from the disassembled output.
2672
2673iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,
2674the missing rule caused a parse error when using the Index operator as an
2675operand to ObjectType. This construct now compiles properly. Example:
2676    ObjectType(PKG1[4]).
2677
2678iASL: Correctly handle unresolved symbols in the hardware map file (-lm
2679option). Previously, unresolved symbols could cause a protection fault.
2680Such symbols are now marked as unresolved in the map file.
2681
2682iASL: Implemented support to allow control method invocations as an
2683operand to the ASL DeRefOf operator. Example:
2684    DeRefOf(MTH1(Local0))
2685
2686Disassembler: Improved support for the ToPLD ASL macro. Detection of a
2687possible _PLD buffer now includes examination of both the normal buffer
2688length (16 or 20) as well as the surrounding AML package length.
2689
2690Disassembler: Fixed a problem with the decoding of complex expressions
2691within the Divide operator for ASL+. For the case where both the quotient
2692and remainder targets are specified, the entire statement cannot be
2693disassembled. Previously, the output incorrectly contained a mix of ASL-
2694and ASL+ operators. This mixed statement causes a syntax error when
2695compiled. Example:
2696    Divide (Add (INT1, 6), 128, RSLT, QUOT)  // was incorrectly
2697disassembled to:
2698    Divide (INT1 + 6, 128, RSLT, QUOT)
2699
2700iASL/Tools: Added support to process AML and non-AML ACPI tables
2701consistently. For the disassembler and AcpiExec, allow all types of ACPI
2702tables (AML and data tables). For the iASL -e option, allow only AML
2703tables (DSDT/SSDT).
2704
2705----------------------------------------
270631 August 2016. Summary of changes for version 20160831:
2707
2708
27091) ACPICA kernel-resident subsystem:
2710
2711Improve support for the so-called "module-level code", which is defined
2712to be math, logical and control AML opcodes that appear outside of any
2713control method. This change improves the support by adding more opcodes
2714that can be executed in the manner. Some other issues have been solved,
2715and the ASL grammar changes to support such code under all scope
2716operators (Device, etc.) are complete. Lv Zheng.
2717
2718UEFI support: these OSL functions have been implemented. This is an
2719additional step toward supporting the AcpiExec utility natively (with
2720full hardware access) under UEFI. Marcelo Ferreira.
2721    AcpiOsReadPciConfiguration
2722    AcpiOsWritePciConfiguration
2723
2724Fixed a possible mutex error during control method auto-serialization. Lv
2725Zheng.
2726
2727Updated support for the Generic Address Structure by fully implementing
2728all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv
2729Zheng.
2730
2731Updated the return value for the internal _OSI method. Instead of
27320xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF
2733for 64-bit ACPI tables. This fixes an incompatibility with other ACPI
2734implementations, and will be reflected and clarified in the next version
2735of the ACPI specification.
2736
2737Implemented two new table events that can be passed to an ACPICA table
2738handler. These events are used to indicate a table installation or
2739uninstallation. These events are used in addition to existed table load
2740and unload events. Lv Zheng.
2741
2742Implemented a cleanup for all internal string-to-integer conversions.
2743Consolidate multiple versions of this functionality and limit possible
2744bases to either 10 or 16 to simplify the code. Adds a new file,
2745utstrtoul64.
2746
2747Cleanup the inclusion order of the various compiler-specific headers.
2748This simplifies build configuration management. The compiler-specific
2749headers are now split out from the host-specific headers. Lv Zheng.
2750
2751Example Code and Data Size: These are the sizes for the OS-independent
2752acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2753debug version of the code includes the debug output trace mechanism and
2754has a much larger code and data size.
2755
2756  Current Release:
2757    Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total
2758    Debug Version:     200.3K Code, 82.1K Data, 282.4K Total
2759
2760
27612) iASL Compiler/Disassembler and Tools:
2762
2763iASL/AcpiExec: Added a command line option to display the build date/time
2764of the tool (-vd). This can be useful to verify that the correct version
2765of the tools are being used.
2766
2767AML Debugger: Implemented a new subcommand ("execute predef") to execute
2768all predefined control methods and names within the current namespace.
2769This can be useful for debugging problems with ACPI tables and the ACPI
2770namespace.
2771
2772----------------------------------------
277329 July 2016. Summary of changes for version 20160729:
2774
2775
27761) ACPICA kernel-resident subsystem:
2777
2778Implemented basic UEFI support for the various ACPICA tools. This
2779includes:
27801) An OSL to implement the various AcpiOs* interfaces on UEFI.
27812) Support to obtain the ACPI tables on UEFI.
27823) Local implementation of required C library functions not available on
2783UEFI.
27844) A front-end (main) function for the tools for UEFI-related
2785initialization.
2786
2787The initial deployment of this support is the AcpiDump utility executing
2788as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").
2789Current environments supported are Linux/Unix. MSVC generation is not
2790supported at this time. See the generate/efi/README file for build
2791instructions. Lv Zheng.
2792
2793Future plans include porting the AcpiExec utility to execute natively on
2794the platform with I/O and memory access. This will allow viewing/dump of
2795the platform namespace and native execution of ACPI control methods that
2796access the actual hardware. To fully implement this support, the OSL
2797functions below must be implemented with UEFI interfaces. Any community
2798help in the implementation of these functions would be appreciated:
2799    AcpiOsReadPort
2800    AcpiOsWritePort
2801    AcpiOsReadMemory
2802    AcpiOsWriteMemory
2803    AcpiOsReadPciConfiguration
2804    AcpiOsWritePciConfiguration
2805
2806Restructured and standardized the C library configuration for ACPICA,
2807resulting in the various configuration options below. This includes a
2808global restructuring of the compiler-dependent and platform-dependent
2809include files. These changes may affect the existing platform-dependent
2810configuration files on some hosts. Lv Zheng.
2811
2812The current C library configuration options appear below. For any issues,
2813it may be helpful to examine the existing compiler-dependent and
2814platform-dependent files as examples. Lv Zheng.
2815
28161) Linux kernel:
2817    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
2818library.
2819    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
28202) Unix/Windows/BSD applications:
2821    ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C
2822library.
2823    ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.
28243) UEFI applications:
2825    ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C
2826library.
2827    ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.
28284) UEFI applications (EDK2/StdLib):
2829    ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.
2830    ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.
2831
2832
2833AML interpreter: "module-level code" support. Allows for execution of so-
2834called "executable" AML code (math/logical operations, etc.) outside of
2835control methods not just at the module level (top level) but also within
2836any scope declared outside of a control method - Scope{}, Device{},
2837Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.
2838
2839Simplified the configuration of the "maximum AML loops" global option by
2840adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be
2841modified at runtime.
2842
2843
2844Example Code and Data Size: These are the sizes for the OS-independent
2845acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2846debug version of the code includes the debug output trace mechanism and
2847has a much larger code and data size.
2848
2849  Current Release:
2850    Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total
2851    Debug Version:     199.0K Code, 81.8K Data, 280.8K Total
2852
2853
28542) iASL Compiler/Disassembler and Tools:
2855
2856iASL: Add full support for the RASF ACPI table (RAS Features Table).
2857Includes disassembler, data table compiler, and header support.
2858
2859iASL Expand "module-level code" support. Allows for
2860compilation/disassembly of so-called "executable" AML code (math/logical
2861operations, etc.) outside of control methods not just at the module level
2862(top level) but also within any scope declared outside of a control
2863method - Scope{}, Device{}, Processor{}, PowerResource{}, and
2864ThermalZone{}.
2865
2866AcpiDump: Added support for dumping all SSDTs on newer versions of
2867Windows. These tables are now easily available -- SSDTs are not available
2868through the registry on older versions.
2869
2870----------------------------------------
287127 May 2016. Summary of changes for version 20160527:
2872
2873
28741) ACPICA kernel-resident subsystem:
2875
2876Temporarily reverted the new arbitrary bit length/alignment support in
2877AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been
2878a number of regressions with the new code that need to be fully resolved
2879and tested before this support can be finally integrated into ACPICA.
2880Apologies for any inconveniences these issues may have caused.
2881
2882The ACPI message macros are not configurable (ACPI_MSG_ERROR,
2883ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,
2884and ACPI_MSG_BIOS_WARNING). Lv Zheng.
2885
2886Fixed a couple of GCC warnings associated with the use of the -Wcast-qual
2887option. Adds a new return macro, return_STR. Junk-uk Kim.
2888
2889Example Code and Data Size: These are the sizes for the OS-independent
2890acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2891debug version of the code includes the debug output trace mechanism and
2892has a much larger code and data size.
2893
2894  Current Release:
2895    Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total
2896    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2897  Previous Release:
2898    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2899    Debug Version:     200.9K Code, 82.2K Data, 283.1K Total
2900
2901----------------------------------------
290222 April 2016. Summary of changes for version 20160422:
2903
29041) ACPICA kernel-resident subsystem:
2905
2906Fixed a regression in the GAS (generic address structure) arbitrary bit
2907support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior
2908and incorrect return values. Lv Zheng. ACPICA BZ 1270.
2909
2910ACPI 6.0: Added support for new/renamed resource macros. One new argument
2911was added to each of these macros, and the original name has been
2912deprecated. The AML disassembler will always disassemble to the new
2913names. Support for the new macros was added to iASL, disassembler,
2914resource manager, and the acpihelp utility. ACPICA BZ 1274.
2915
2916    I2cSerialBus  -> I2cSerialBusV2
2917    SpiSerialBus  -> SpiSerialBusV2
2918    UartSerialBus -> UartSerialBusV2
2919
2920ACPI 6.0: Added support for a new integer field that was appended to the
2921package object returned by the _BIX method. This adds iASL compile-time
2922and AML runtime error checking. ACPICA BZ 1273.
2923
2924ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm
2925Subspace Type2" (Headers, Disassembler, and data table compiler).
2926
2927Example Code and Data Size: These are the sizes for the OS-independent
2928acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
2929debug version of the code includes the debug output trace mechanism and
2930has a much larger code and data size.
2931
2932  Current Release:
2933    Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total
2934    Debug Version:     201.5K Code, 82.2K Data, 283.7K Total
2935  Previous Release:
2936    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
2937    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
2938
2939
29402) iASL Compiler/Disassembler and Tools:
2941
2942iASL: Implemented an ASL grammar extension to allow/enable executable
2943"module-level code" to be created and executed under the various
2944operators that create new scopes. This type of AML code is already
2945supported in all known AML interpreters, and the grammar change will
2946appear in the next version of the ACPI specification. Simplifies the
2947conditional runtime creation of named objects under these object types:
2948
2949    Device
2950    PowerResource
2951    Processor
2952    Scope
2953    ThermalZone
2954
2955iASL: Implemented a new ASL extension, a "For" loop macro to add greater
2956ease-of-use to the ASL language. The syntax is similar to the
2957corresponding C operator, and is implemented with the existing AML While
2958opcode -- thus requiring no changes to existing AML interpreters.
2959
2960    For (Initialize, Predicate, Update) {TermList}
2961
2962Grammar:
2963    ForTerm :=
2964        For (
2965            Initializer    // Nothing | TermArg => ComputationalData
2966            Predicate      // Nothing | TermArg => ComputationalData
2967            Update         // Nothing | TermArg => ComputationalData
2968        ) {TermList}
2969
2970
2971iASL: The _HID/_ADR detection and validation has been enhanced to search
2972under conditionals in order to allow these objects to be conditionally
2973created at runtime.
2974
2975iASL: Fixed several issues with the constant folding feature. The
2976improvement allows better detection and resolution of statements that can
2977be folded at compile time. ACPICA BZ 1266.
2978
2979iASL/Disassembler: Fixed a couple issues with the Else{If{}...}
2980conversion to the ASL ElseIf operator where incorrect ASL code could be
2981generated.
2982
2983iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where
2984sometimes an extra (and extraneous) set of parentheses were emitted for
2985some combinations of operators. Although this did not cause any problems
2986with recompilation of the disassembled code, it made the code more
2987difficult to read. David Box. ACPICA BZ 1231.
2988
2989iASL: Changed to ignore the unreferenced detection for predefined names
2990of resource descriptor elements, when the resource descriptor is
2991created/defined within a control method.
2992
2993iASL: Disassembler: Fix a possible fault with externally declared Buffer
2994objects.
2995
2996----------------------------------------
299718 March 2016. Summary of changes for version 20160318:
2998
29991) ACPICA kernel-resident subsystem:
3000
3001Added support for arbitrary bit lengths and bit offsets for registers
3002defined by the Generic Address Structure. Previously, only aligned bit
3003lengths of 8/16/32/64 were supported. This was sufficient for many years,
3004but recently some machines have been seen that require arbitrary bit-
3005level support. ACPICA BZ 1240. Lv Zheng.
3006
3007Fixed an issue where the \_SB._INI method sometimes must be evaluated
3008before any _REG methods are evaluated. Lv Zheng.
3009
3010Implemented several changes related to ACPI table support
3011(Headers/Disassembler/TableCompiler):
3012NFIT: For ACPI 6.1, updated to add some additional new fields and
3013constants.
3014FADT: Updated a warning message and set compliance to ACPI 6.1 (Version
30156).
3016DMAR: Added new constants per the 10/2014 DMAR spec.
3017IORT: Added new subtable per the 10/2015 IORT spec.
3018HEST: For ACPI 6.1, added new constants and new subtable.
3019DBG2: Added new constants per the 12/2015 DBG2 spec.
3020FPDT: Fixed several incorrect fields, add the FPDT boot record structure.
3021ACPICA BZ 1249.
3022ERST/EINJ: Updated disassembler with new "Execute Timings" actions.
3023
3024Updated header support for the DMAR table to match the current version of
3025the related spec.
3026
3027Added extensions to the ASL Concatenate operator to allow any ACPI object
3028to be passed as an operand. Any object other than Integer/String/Buffer
3029simply returns a string containing the object type. This extends the
3030usefulness of the Printf macros. Previously, Concatenate would abort the
3031control method if a non-data object was encountered.
3032
3033ACPICA source code: Deployed the C "const" keyword across the source code
3034where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).
3035
3036Example Code and Data Size: These are the sizes for the OS-independent
3037acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3038debug version of the code includes the debug output trace mechanism and
3039has a much larger code and data size.
3040
3041  Current Release:
3042    Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total
3043    Debug Version:     201.0K Code, 82.0K Data, 283.0K Total
3044  Previous Release:
3045    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3046    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3047
3048
30492) iASL Compiler/Disassembler and Tools:
3050
3051iASL/Disassembler: Improved the heuristic used to determine the number of
3052arguments for an externally defined control method (a method in another
3053table). Although this is an improvement, there is no deterministic way to
3054"guess" the number of method arguments. Only the ACPI 6.0 External opcode
3055will completely solve this problem as it is deployed (automatically) in
3056newer BIOS code.
3057
3058iASL/Disassembler: Fixed an ordering issue for emitted External() ASL
3059statements that could cause errors when the disassembled file is
3060compiled. ACPICA BZ 1243. David Box.
3061
3062iASL: Fixed a regression caused by the merger of the two versions of the
3063local strtoul64. Because of a dependency on a global variable, strtoul64
3064could return an error for integers greater than a 32-bit value. ACPICA BZ
30651260.
3066
3067iASL: Fixed a regression where a fault could occur for an ASL Return
3068statement if it invokes a control method that is not resolved. ACPICA BZ
30691264.
3070
3071AcpiXtract: Improved input file validation: detection of binary files and
3072non-acpidump text files.
3073
3074----------------------------------------
307512 February 2016. Summary of changes for version 20160212:
3076
30771) ACPICA kernel-resident subsystem:
3078
3079Implemented full support for the ACPI 6.1 specification (released in
3080January). This version of the specification is available at:
3081http://www.uefi.org/specifications
3082
3083Only a relatively small number of changes were required in ACPICA to
3084support ACPI 6.1, in these areas:
3085- New predefined names
3086- New _HID values
3087- A new subtable for HEST
3088- A few other header changes for new values
3089
3090Ensure \_SB_._INI is executed before any _REG methods are executed. There
3091appears to be existing BIOS code that relies on this behavior. Lv Zheng.
3092
3093Reverted a change made in version 20151218 which enabled method
3094invocations to be targets of various ASL operators (SuperName and Target
3095grammar elements). While the new behavior is supported by the ACPI
3096specification, other AML interpreters do not support this behavior and
3097never will. The ACPI specification will be updated for ACPI 6.2 to remove
3098this support. Therefore, the change was reverted to the original ACPICA
3099behavior.
3100
3101ACPICA now supports the GCC 6 compiler.
3102
3103Current Release: (Note: build changes increased sizes)
3104    Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total
3105    Debug Version:     200.4K Code, 82.0K Data, 282.4K Total
3106Previous Release:
3107    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3108    Debug Version:     200.4K Code, 81.9K Data, 282.3K Total
3109
3110
31112) iASL Compiler/Disassembler and Tools:
3112
3113Completed full support for the ACPI 6.0 External() AML opcode. The
3114compiler emits an external AML opcode for each ASL External statement.
3115This opcode is used by the disassembler to assist with the disassembly of
3116external control methods by specifying the required number of arguments
3117for the method. AML interpreters do not use this opcode. To ensure that
3118interpreters do not even see the opcode, a block of one or more external
3119opcodes is surrounded by an "If(0)" construct. As this feature becomes
3120commonly deployed in BIOS code, the ability of disassemblers to correctly
3121disassemble AML code will be greatly improved. David Box.
3122
3123iASL: Implemented support for an optional cross-reference output file.
3124The -lx option will create a the cross-reference file with the suffix
3125"xrf". Three different types of cross-reference are created in this file:
3126- List of object references made from within each control method
3127- Invocation (caller) list for each user-defined control method
3128- List of references to each non-method object in the namespace
3129
3130iASL: Method invocations as ASL Target operands are now disallowed and
3131flagged as errors in preparation for ACPI 6.2 (see the description of the
3132problem above).
3133
3134----------------------------------------
31358 January 2016. Summary of changes for version 20160108:
3136
31371) ACPICA kernel-resident subsystem:
3138
3139Updated all ACPICA copyrights and signons to 2016: Added the 2016
3140copyright to all source code module headers and utility/tool signons.
3141This includes the standard Linux dual-license header. This affects
3142virtually every file in the ACPICA core subsystem, iASL compiler, all
3143ACPICA utilities, and the ACPICA test suite.
3144
3145Fixed a regression introduced in version 20151218 concerning the
3146execution of so-called module-level ASL/AML code. Namespace objects
3147created under a module-level If() construct were not properly/fully
3148entered into the namespace and could cause an interpreter fault when
3149accessed.
3150
3151Example Code and Data Size: These are the sizes for the OS-independent
3152acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3153debug version of the code includes the debug output trace mechanism and
3154has a much larger code and data size.
3155
3156Current Release:
3157    Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total
3158    Debug Version:     200.4K Code, 81.9K Data, 282.4K Total
3159  Previous Release:
3160    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3161    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3162
3163
31642) iASL Compiler/Disassembler and Tools:
3165
3166Fixed a problem with the compilation of the GpioIo and GpioInt resource
3167descriptors. The _PIN field name was incorrectly defined to be an array
3168of 32-bit values, but the _PIN values are in fact 16 bits each. This
3169would cause incorrect bit width warnings when using Word (16-bit) fields
3170to access the descriptors.
3171
3172
3173----------------------------------------
317418 December 2015. Summary of changes for version 20151218:
3175
31761) ACPICA kernel-resident subsystem:
3177
3178Implemented per-AML-table execution of "module-level code" as individual
3179ACPI tables are loaded into the namespace during ACPICA initialization.
3180In other words, any module-level code within an AML table is executed
3181immediately after the table is loaded, instead of batched and executed
3182after all of the tables have been loaded. This provides compatibility
3183with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,
3184David Box.
3185
3186To fully support the feature above, the default operation region handlers
3187for the SystemMemory, SystemIO, and PCI_Config address spaces are now
3188installed before any ACPI tables are loaded. This enables module-level
3189code to access these address spaces during the table load and module-
3190level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David
3191Box.
3192
3193Implemented several changes to the internal _REG support in conjunction
3194with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples
3195utilities for the changes above. Although these tools were changed, host
3196operating systems that simply use the default handlers for SystemMemory,
3197SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.
3198
3199For example, in the code below, DEV1 is conditionally added to the
3200namespace by the DSDT via module-level code that accesses an operation
3201region. The SSDT references DEV1 via the Scope operator. DEV1 must be
3202created immediately after the DSDT is loaded in order for the SSDT to
3203successfully reference DEV1. Previously, this code would cause an
3204AE_NOT_EXIST exception during the load of the SSDT. Now, this code is
3205fully supported by ACPICA.
3206
3207    DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)
3208    {
3209        OperationRegion (OPR1, SystemMemory, 0x400, 32)
3210        Field (OPR1, AnyAcc, NoLock, Preserve)
3211        {
3212            FLD1, 1
3213        }
3214        If (FLD1)
3215        {
3216            Device (\DEV1)
3217            {
3218            }
3219        }
3220    }
3221    DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)
3222    {
3223        External (\DEV1, DeviceObj)
3224        Scope (\DEV1)
3225        {
3226        }
3227    }
3228
3229Fixed an AML interpreter problem where control method invocations were
3230not handled correctly when the invocation was itself a SuperName argument
3231to another ASL operator. In these cases, the method was not invoked.
3232ACPICA BZ 1002. Affects the following ASL operators that have a SuperName
3233argument:
3234    Store
3235    Acquire, Wait
3236    CondRefOf, RefOf
3237    Decrement, Increment
3238    Load, Unload
3239    Notify
3240    Signal, Release, Reset
3241    SizeOf
3242
3243Implemented automatic String-to-ObjectReference conversion support for
3244packages returned by predefined names (such as _DEP). A common BIOS error
3245is to add double quotes around an ObjectReference namepath, which turns
3246the reference into an unexpected string object. This support detects the
3247problem and corrects it before the package is returned to the caller that
3248invoked the method. Lv Zheng.
3249
3250Implemented extensions to the Concatenate operator. Concatenate now
3251accepts any type of object, it is not restricted to simply
3252Integer/String/Buffer. For objects other than these 3 basic data types,
3253the argument is treated as a string containing the name of the object
3254type. This expands the utility of Concatenate and the Printf/Fprintf
3255macros. ACPICA BZ 1222.
3256
3257Cleaned up the output of the ASL Debug object. The timer() value is now
3258optional and no longer emitted by default. Also, the basic data types of
3259Integer/String/Buffer are simply emitted as their values, without a data
3260type string -- since the data type is obvious from the output. ACPICA BZ
32611221.
3262
3263Example Code and Data Size: These are the sizes for the OS-independent
3264acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3265debug version of the code includes the debug output trace mechanism and
3266has a much larger code and data size.
3267
3268  Current Release:
3269    Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total
3270    Debug Version:     200.3K Code, 81.9K Data, 282.3K Total
3271  Previous Release:
3272    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3273    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3274
3275
32762) iASL Compiler/Disassembler and Tools:
3277
3278iASL: Fixed some issues with the ASL Include() operator. This operator
3279was incorrectly defined in the iASL parser rules, causing a new scope to
3280be opened for the code within the include file. This could lead to
3281several issues, including allowing ASL code that is technically illegal
3282and not supported by AML interpreters. Note, this does not affect the
3283related #include preprocessor operator. ACPICA BZ 1212.
3284
3285iASL/Disassembler: Implemented support for the ASL ElseIf operator. This
3286operator is essentially an ASL macro since there is no AML opcode
3287associated with it. The code emitted by the iASL compiler for ElseIf is
3288an Else opcode followed immediately by an If opcode. The disassembler
3289will now emit an ElseIf if it finds an Else immediately followed by an
3290If. This simplifies the decoded ASL, especially for deeply nested
3291If..Else and large Switch constructs. Thus, the disassembled code more
3292closely follows the original source ASL. ACPICA BZ 1211. Example:
3293
3294    Old disassembly:
3295        Else
3296        {
3297            If (Arg0 == 0x02)
3298            {
3299                Local0 = 0x05
3300            }
3301        }
3302
3303    New disassembly:
3304        ElseIf (Arg0 == 0x02)
3305        {
3306            Local0 = 0x05
3307        }
3308
3309AcpiExec: Added support for the new module level code behavior and the
3310early region installation. This required a small change to the
3311initialization, since AcpiExec must install its own operation region
3312handlers.
3313
3314AcpiExec: Added support to make the debug object timer optional. Default
3315is timer disabled. This cleans up the debug object output -- the timer
3316data is rarely used.
3317
3318AcpiExec: Multiple ACPI tables are now loaded in the order that they
3319appear on the command line. This can be important when there are
3320interdependencies/references between the tables.
3321
3322iASL/Templates. Add support to generate template files with multiple
3323SSDTs within a single output file. Also added ommand line support to
3324specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ
33251223, 1225.
3326
3327
3328----------------------------------------
332924 November 2015. Summary of changes for version 20151124:
3330
33311) ACPICA kernel-resident subsystem:
3332
3333Fixed a possible regression for a previous update to FADT handling. The
3334FADT no longer has a fixed table ID, causing some issues with code that
3335was hardwired to a specific ID. Lv Zheng.
3336
3337Fixed a problem where the method auto-serialization could interfere with
3338the current SyncLevel. This change makes the auto-serialization support
3339transparent to the SyncLevel support and management.
3340
3341Removed support for the _SUB predefined name in AcpiGetObjectInfo. This
3342interface is intended for early access to the namespace during the
3343initial namespace device discovery walk. The _SUB method has been seen to
3344access operation regions in some cases, causing errors because the
3345operation regions are not fully initialized.
3346
3347AML Debugger: Fixed some issues with the terminate/quit/exit commands
3348that can cause faults. Lv Zheng.
3349
3350AML Debugger: Add thread ID support so that single-step mode only applies
3351to the AML Debugger thread. This prevents runtime errors within some
3352kernels. Lv Zheng.
3353
3354Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx
3355methods that are invoked by this interface are optional, removed warnings
3356emitted for the case where one or more of these methods do not exist.
3357ACPICA BZ 1208, original change by Prarit Bhargava.
3358
3359Made a major pass through the entire ACPICA source code base to
3360standardize formatting that has diverged a bit over time. There are no
3361functional changes, but this will of course cause quite a few code
3362differences from the previous ACPICA release.
3363
3364Example Code and Data Size: These are the sizes for the OS-independent
3365acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3366debug version of the code includes the debug output trace mechanism and
3367has a much larger code and data size.
3368
3369  Current Release:
3370    Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total
3371    Debug Version:     199.6K Code, 81.8K Data, 281.4K Total
3372  Previous Release:
3373    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3374    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3375
3376
33772) iASL Compiler/Disassembler and Tools:
3378
3379iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple
3380definition blocks within a single ASL file and the resulting AML file.
3381Support for this type of file was also added to the various tools that
3382use binary AML files: acpiexec, acpixtract, and the AML disassembler. The
3383example code below shows two definition blocks within the same file:
3384
3385    DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",
33860x12345678)
3387    {
3388    }
3389    DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)
3390    {
3391    }
3392
3393iASL: Enhanced typechecking for the Name() operator. All expressions for
3394the value of the named object must be reduced/folded to a single constant
3395at compile time, as per the ACPI specification (the AML definition of
3396Name()).
3397
3398iASL: Fixed some code indentation issues for the -ic and -ia options (C
3399and assembly headers). Now all emitted code correctly begins in column 1.
3400
3401iASL: Added an error message for an attempt to open a Scope() on an
3402object defined in an SSDT. The DSDT is always loaded into the namespace
3403first, so any attempt to open a Scope on an SSDT object will fail at
3404runtime.
3405
3406
3407----------------------------------------
340830 September 2015. Summary of changes for version 20150930:
3409
34101) ACPICA kernel-resident subsystem:
3411
3412Debugger: Implemented several changes and bug fixes to assist support for
3413the in-kernel version of the AML debugger. Lv Zheng.
3414- Fix the "predefined" command for in-kernel debugger.
3415- Do not enter debug command loop for the help and version commands.
3416- Disallow "execute" command during execution/single-step of a method.
3417
3418Interpreter: Updated runtime typechecking for all operators that have
3419target operands. The operand is resolved and validated that it is legal.
3420For example, the target cannot be a non-data object such as a Device,
3421Mutex, ThermalZone, etc., as per the ACPI specification.
3422
3423Debugger: Fixed the double-mutex user I/O handshake to work when local
3424deadlock detection is enabled.
3425
3426Debugger: limited display of method locals and arguments (LocalX and
3427ArgX) to only those that have actually been initialized. This prevents
3428lines of extraneous output.
3429
3430Updated the definition of the NFIT table to correct the bit polarity of
3431one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED
3432
3433Example Code and Data Size: These are the sizes for the OS-independent
3434acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3435debug version of the code includes the debug output trace mechanism and
3436has a much larger code and data size.
3437
3438  Current Release:
3439    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3440    Debug Version:     199.3K Code, 81.4K Data, 280.7K Total
3441  Previous Release:
3442    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3443    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3444
3445
34462) iASL Compiler/Disassembler and Tools:
3447
3448iASL: Improved the compile-time typechecking for operands of many of the
3449ASL operators:
3450
3451-- Added an option to disable compiler operand/operator typechecking (-
3452ot).
3453
3454-- For the following operators, the TermArg operands are now validated
3455when possible to be Integer data objects: BankField, OperationRegion,
3456DataTableRegion, Buffer, and Package.
3457
3458-- Store (Source, Target): Both the source and target operands are
3459resolved and checked that the operands are both legal. For example,
3460neither operand can be a non-data object such as a Device, Mutex,
3461ThermalZone, etc. Note, as per the ACPI specification, the CopyObject
3462operator can be used to store an object to any type of target object.
3463
3464-- Store (Source, Target): If the source is a Package object, the target
3465must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target
3466is a Package, the source must also be a Package.
3467
3468-- Store (Source, Target): A warning is issued if the source and target
3469resolve to the identical named object.
3470
3471-- Store (Source, <method invocation>): An error is generated for the
3472target method invocation, as this construct is not supported by the AML
3473interpreter.
3474
3475-- For all ASL math and logic operators, the target operand must be a
3476data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This
3477includes the function return value also.
3478
3479-- External declarations are also included in the typechecking where
3480possible. External objects defined using the UnknownObj keyword cannot be
3481typechecked, however.
3482
3483iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index
3484operator:
3485- Legacy code: Index(PKG1, 3)
3486- New ASL+ code: PKG1[3]
3487This completes the ACPI 6.0 ASL+ support as it was the only operator not
3488supported.
3489
3490iASL: Fixed the file suffix for the preprocessor output file (.i). Two
3491spaces were inadvertently appended to the filename, causing file access
3492and deletion problems on some systems.
3493
3494ASL Test Suite (ASLTS): Updated the master makefile to generate all
3495possible compiler output files when building the test suite -- thus
3496exercising these features of the compiler. These files are automatically
3497deleted when the test suite exits.
3498
3499
3500----------------------------------------
350118 August 2015. Summary of changes for version 20150818:
3502
35031) ACPICA kernel-resident subsystem:
3504
3505Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv
3506Zheng. ACPICA BZ 1186.
3507
3508Completed development to ensure that the ACPICA Disassembler and Debugger
3509are fully standalone components of ACPICA. Removed cross-component
3510dependences. Lv Zheng.
3511
3512The max-number-of-AML-loops is now runtime configurable (previously was
3513compile-time only). This is essentially a loop timeout to force-abort
3514infinite AML loops. ACPCIA BZ 1192.
3515
3516Debugger: Cleanup output to dump ACPI names and namepaths without any
3517trailing underscores. Lv Zheng. ACPICA BZ 1135.
3518
3519Removed unnecessary conditional compilations across the Debugger and
3520Disassembler components where entire modules could be left uncompiled.
3521
3522The aapits test is deprecated and has been removed from the ACPICA git
3523tree. The test has never been completed and has not been maintained, thus
3524becoming rather useless. ACPICA BZ 1015, 794.
3525
3526A batch of small changes to close bugzilla and other reports:
3527- Remove duplicate code for _PLD processing. ACPICA BZ 1176.
3528- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.
3529- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.
3530- ACPI table support: general cleanup and simplification. Lv Zheng, Bob
3531Moore.
3532- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.
3533ACPICA BZ 1184.
3534- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML
3535operators.
3536- Debugger: Split debugger initialization/termination interfaces. Lv
3537Zheng.
3538- AcpiExec: Emit OemTableId for SSDTs during the load phase for table
3539identification.
3540- AcpiExec: Add debug message during _REG method phase during table
3541load/init.
3542- AcpiNames: Fix a regression where some output was missing and no longer
3543emitted.
3544- Debugger: General cleanup and simplification. Lv Zheng.
3545- Disassembler: Cleanup use of several global option variables. Lv Zheng.
3546
3547Example Code and Data Size: These are the sizes for the OS-independent
3548acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3549debug version of the code includes the debug output trace mechanism and
3550has a much larger code and data size.
3551
3552  Current Release:
3553    Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total
3554    Debug Version:     198.6K Code, 80.9K Data, 279.5K Total
3555  Previous Release:
3556    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3557    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3558
3559
35602) iASL Compiler/Disassembler and Tools:
3561
3562AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT
3563were not handled properly and caused load errors. Now, properly invoke
3564and use the ACPICA auto-reallocate mechanism for ACPI table data
3565structures. ACPICA BZ 1188
3566
3567AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA
3568BZ 1190.
3569
3570AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For
3571AcpiExec, this means that no control methods (like _REG/_INI/_STA) are
3572executed during initialization. ACPICA BZ 1187, 1189.
3573
3574iASL/Disassembler: Implemented a prototype "listing" mode that emits AML
3575that corresponds to each disassembled ASL statement, to simplify
3576debugging. ACPICA BZ 1191.
3577
3578Debugger: Add option to the "objects" command to display a summary of the
3579current namespace objects (Object type and count). This is displayed if
3580the command is entered with no arguments.
3581
3582AcpiNames: Add -x option to specify debug level, similar to AcpiExec.
3583
3584
3585----------------------------------------
358617 July 2015. Summary of changes for version 20150717:
3587
35881) ACPICA kernel-resident subsystem:
3589
3590Improved the partitioning between the Debugger and Disassembler
3591components. This allows the Debugger to be used standalone within kernel
3592code without the Disassembler (which is used for single stepping also).
3593This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.
3594
3595Debugger: Implemented a new command to trace the execution of control
3596methods (Trace). This is especially useful for the in-kernel version of
3597the debugger when file I/O may not be available for method trace output.
3598See the ACPICA reference for more information. Lv Zheng.
3599
3600Moved all C library prototypes (used for the local versions of these
3601functions when requested) to a new header, acclib.h
3602Cleaned up the use of non-ANSI C library functions. These functions are
3603implemented locally in ACPICA. Moved all such functions to a common
3604source file, utnonansi.c
3605
3606Debugger: Fixed a problem with the "!!" command (get last command
3607executed) where the debugger could enter an infinite loop and eventually
3608crash.
3609
3610Removed the use of local macros that were used for some of the standard C
3611library functions to automatically cast input parameters. This mostly
3612affected the is* functions where the input parameter is defined to be an
3613int. This required a few modifications to the main ACPICA source code to
3614provide casting for these functions and eliminate possible compiler
3615warnings for these parameters.
3616
3617Across the source code, added additional status/error checking to resolve
3618issues discovered by static source code analysis tools such as Coverity.
3619
3620Example Code and Data Size: These are the sizes for the OS-independent
3621acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3622debug version of the code includes the debug output trace mechanism and
3623has a much larger code and data size.
3624
3625  Current Release:
3626    Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total
3627    Debug Version:     197.8K Code, 81.5K Data, 279.3K Total
3628  Previous Release:
3629    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3630    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3631
3632
36332) iASL Compiler/Disassembler and Tools:
3634
3635iASL: Fixed a regression where the device map file feature no longer
3636worked properly when used in conjunction with the disassembler. It only
3637worked properly with the compiler itself.
3638
3639iASL: Implemented a new warning for method LocalX variables that are set
3640but never used (similar to a C compiler such as gcc). This also applies
3641to ArgX variables that are not defined by the parent method, and are
3642instead (legally) used as local variables.
3643
3644iASL/Preprocessor: Finished the pass-through of line numbers from the
3645preprocessor to the compiler. This ensures that compiler errors/warnings
3646have the correct original line numbers and filenames, regardless of any
3647#include files.
3648
3649iASL/Preprocessor: Fixed a couple of issues with comment handling and the
3650pass-through of comments to the preprocessor output file (which becomes
3651the compiler input file). Also fixed a problem with // comments that
3652appear after a math expression.
3653
3654iASL: Added support for the TCPA server table to the table compiler and
3655template generator. (The client table was already previously supported)
3656
3657iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to
3658identify the iASL compiler.
3659
3660Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined
3661multiple times. The new names are ACPI_SIGN_NEGATIVE and
3662ACPI_SIGN_POSITIVE.
3663
3664AcpiHelp: Update to expand help messages for the iASL preprocessor
3665directives.
3666
3667
3668----------------------------------------
366919 June 2015. Summary of changes for version 20150619:
3670
3671Two regressions in version 20150616 have been addressed:
3672
3673Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,
3674etc.) This update changes ACPICA to only use the standard headers for
3675functions, or the prototypes for the local versions of the C library
3676functions. Across the source code, this required some additional casts
3677for some Clib invocations for portability. Moved all local prototypes to
3678a new file, acclib.h
3679
3680Fixes several problems with recent changes to the handling of the FACS
3681table that could cause some systems not to boot.
3682
3683
3684----------------------------------------
368516 June 2015. Summary of changes for version 20150616:
3686
3687
36881) ACPICA kernel-resident subsystem:
3689
3690Across the entire ACPICA source code base, the various macros for the C
3691library functions (such as ACPI_STRLEN, etc.) have been removed and
3692replaced by the standard C library names (strlen, etc.) The original
3693purpose for these macros is no longer applicable. This simplification
3694reduces the number of macros used in the ACPICA source code
3695significantly, improving readability and maintainability.
3696
3697Implemented support for a new ACPI table, the OSDT. This table, the
3698"override" SDT, can be loaded directly by the host OS at boot time. It
3699enables the replacement of existing namespace objects that were installed
3700via the DSDT and/or SSDTs. The primary purpose for this is to replace
3701buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated
3702for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob
3703Moore.
3704
3705Added support for systems with (improperly) two FACS tables -- a "32-bit"
3706table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit
3707X field). This change will support both automatically. There continues to
3708be systems found with this issue. This support requires a change to the
3709AcpiSetFirmwareWakingVector interface. Also, a public global variable has
3710been added to allow the host to select which FACS is desired
3711(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more
3712details Lv Zheng.
3713
3714Added a new feature to allow for systems that do not contain an FACS.
3715Although this is already supported on hardware-reduced platforms, the
3716feature has been extended for all platforms. The reasoning is that we do
3717not want to abort the entire ACPICA initialization just because the
3718system is seriously buggy and has no FACS.
3719
3720Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were
3721not correctly transcribed from the ACPI specification in ACPICA version
372220150515.
3723
3724Implemented support for the _CLS object in the AcpiGetObjectInfo external
3725interface.
3726
3727Updated the definitions of the TCPA and TPM2 ACPI tables to the more
3728recent TCG ACPI Specification, December 14, 2014. Table disassembler and
3729compiler also updated. Note: The TCPA "server" table is not supported by
3730the disassembler/table-compiler at this time.
3731
3732ACPI 6.0: Added definitions for the new GIC version field in the MADT.
3733
3734Example Code and Data Size: These are the sizes for the OS-independent
3735acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3736debug version of the code includes the debug output trace mechanism and
3737has a much larger code and data size.
3738
3739  Current Release:
3740    Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total
3741    Debug Version:     196.2K Code, 81.0K Data, 277.2K Total
3742  Previous Release:
3743    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3744    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3745
3746
37472) iASL Compiler/Disassembler and Tools:
3748
3749Disassembler: Fixed a problem with the new symbolic operator disassembler
3750where incorrect ASL code could be emitted in some cases for the "non-
3751commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and
3752ShiftRight. The actual problem cases seem to be rather unusual in common
3753ASL code, however. David Box.
3754
3755Modified the linux version of acpidump to obtain ACPI tables from not
3756just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv
3757Zheng.
3758
3759iASL: Fixed a problem where the user preprocessor output file (.i)
3760contained extra data that was not expected. The compiler was using this
3761file as a temporary file and passed through #line directives in order to
3762keep compiler error messages in sync with the input file and line number
3763across multiple include files. The (.i) is no longer a temporary file as
3764the compiler uses a new, different file for the original purpose.
3765
3766iASL: Fixed a problem where comments within the original ASL source code
3767file were not passed through to the preprocessor output file, nor any
3768listing files.
3769
3770iASL: Fixed some issues for the handling of the "#include" preprocessor
3771directive and the similar (but not the same) "Include" ASL operator.
3772
3773iASL: Add support for the new OSDT in both the disassembler and compiler.
3774
3775iASL: Fixed a problem with the constant folding support where a Buffer
3776object could be incorrectly generated (incorrectly formed) during a
3777conversion to a Store() operator.
3778
3779AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new
3780description text for the _REV predefined name. _REV now permanently
3781returns 2, as per the ACPI 6.0 specification.
3782
3783Debugger: Enhanced the output of the Debug ASL object for references
3784produced by the Index operator. For Buffers and strings, only output the
3785actual byte pointed to by the index. For packages, only print the single
3786package element decoded by the index. Previously, the entire
3787buffer/string/package was emitted.
3788
3789iASL/Table-compiler: Fixed a regression where the "generic" data types
3790were no longer recognized, causing errors.
3791
3792
3793----------------------------------------
379415 May 2015. Summary of changes for version 20150515:
3795
3796This release implements most of ACPI 6.0 as described below.
3797
37981) ACPICA kernel-resident subsystem:
3799
3800Implemented runtime argument checking and return value checking for all
3801new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,
3802_MTL, _PRR, _RDI, _RST, _TFP, _TSN.
3803
3804Example Code and Data Size: These are the sizes for the OS-independent
3805acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
3806debug version of the code includes the debug output trace mechanism and
3807has a much larger code and data size.
3808
3809  Current Release:
3810    Non-Debug Version:  99.9K Code, 27.5K Data, 127.4K Total
3811    Debug Version:     195.2K Code, 80.8K Data, 276.0K Total
3812  Previous Release:
3813    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
3814    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
3815
3816
38172) iASL Compiler/Disassembler and Tools:
3818
3819iASL compiler: Added compile-time support for all new ACPI 6.0 predefined
3820names (argument count validation and return value typechecking.)
3821
3822iASL disassembler and table compiler: implemented support for all new
3823ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.
3824
3825iASL disassembler and table compiler: Added ACPI 6.0 changes to existing
3826tables: FADT, MADT.
3827
3828iASL preprocessor: Added a new directive to enable inclusion of binary
3829blobs into ASL code. The new directive is #includebuffer. It takes a
3830binary file as input and emits a named ascii buffer object into the ASL
3831code.
3832
3833AcpiHelp: Added support for all new ACPI 6.0 predefined names.
3834
3835AcpiHelp: Added a new option, -d, to display all iASL preprocessor
3836directives.
3837
3838AcpiHelp: Added a new option, -t, to display all known/supported ACPI
3839tables.
3840
3841
3842----------------------------------------
384310 April 2015. Summary of changes for version 20150410:
3844
3845Reverted a change introduced in version 20150408 that caused
3846a regression in the disassembler where incorrect operator
3847symbols could be emitted.
3848
3849
3850----------------------------------------
385108 April 2015. Summary of changes for version 20150408:
3852
3853
38541) ACPICA kernel-resident subsystem:
3855
3856Permanently set the return value for the _REV predefined name. It now
3857returns 2 (was 5). This matches other ACPI implementations. _REV will be
3858deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2
3859for ACPI 2.0 and later. It should never be used to differentiate or
3860identify operating systems.
3861
3862Added the "Windows 2015" string to the _OSI support. ACPICA will now
3863return TRUE to a query with this string.
3864
3865Fixed several issues with the local version of the printf function.
3866
3867Added the C99 compiler option (-std=c99) to the Unix makefiles.
3868
3869  Current Release:
3870    Non-Debug Version:  99.9K Code, 27.4K Data, 127.3K Total
3871    Debug Version:     195.2K Code, 80.7K Data, 275.9K Total
3872  Previous Release:
3873    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
3874    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
3875
3876
38772) iASL Compiler/Disassembler and Tools:
3878
3879iASL: Implemented an enhancement to the constant folding feature to
3880transform the parse tree to a simple Store operation whenever possible:
3881    Add (2, 3, X) ==> is converted to: Store (5, X)
3882    X = 2 + 3     ==> is converted to: Store (5, X)
3883
3884Updated support for the SLIC table (Software Licensing Description Table)
3885in both the Data Table compiler and the disassembler. The SLIC table
3886support now conforms to "Microsoft Software Licensing Tables (SLIC and
3887MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data
3888following the ACPI header is now defined to be "Proprietary Data", and as
3889such, can only be entered or displayed as a hex data block.
3890
3891Implemented full support for the MSDM table as described in the document
3892above. Note: The format of MSDM is similar to SLIC. Any MSDM data
3893following the ACPI header is defined to be "Proprietary Data", and can
3894only be entered or displayed as a hex data block.
3895
3896Implemented the -Pn option for the iASL Table Compiler (was only
3897implemented for the ASL compiler). This option disables the iASL
3898preprocessor.
3899
3900Disassembler: For disassembly of Data Tables, added a comment field
3901around the Ascii equivalent data that is emitted as part of the "Raw
3902Table Data" block. This prevents the iASL Preprocessor from possible
3903confusion if/when the table is compiled.
3904
3905Disassembler: Added an option (-df) to force the disassembler to assume
3906that the table being disassembled contains valid AML. This feature is
3907useful for disassembling AML files that contain ACPI signatures other
3908than DSDT or SSDT (such as OEMx or other signatures).
3909
3910Changes for the EFI version of the tools:
39111) Fixed a build error/issue
39122) Fixed a cast warning
3913
3914iASL: Fixed a path issue with the __FILE__ operator by making the
3915directory prefix optional within the internal SplitInputFilename
3916function.
3917
3918Debugger: Removed some unused global variables.
3919
3920Tests: Updated the makefile for proper generation of the AAPITS suite.
3921
3922
3923----------------------------------------
392404 February 2015. Summary of changes for version 20150204:
3925
3926ACPICA kernel-resident subsystem:
3927
3928Updated all ACPICA copyrights and signons to 2014. Added the 2014
3929copyright to all module headers and signons, including the standard Linux
3930header. This affects virtually every file in the ACPICA core subsystem,
3931iASL compiler, all ACPICA utilities, and the test suites.
3932
3933Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.
3934A raw gpe handling mechanism was created to allow better handling of GPE
3935storms that aren't easily managed by the normal handler. The raw handler
3936allows disabling/renabling of the GPE so that interrupt storms can be
3937avoided in cases where events cannot be timely serviced. In this
3938scenario, handlers should use the AcpiSetGpe() API to disable/enable the
3939GPE. This API will leave the reference counts undisturbed, thereby
3940preventing unintentional clearing of the GPE when the intent in only to
3941temporarily disable it. Raw handlers allow enabling and disabling of a
3942GPE by removing GPE register locking. As such, raw handlers much provide
3943their own locks while using GPE API's to protect access to GPE data
3944structures.
3945Lv Zheng
3946
3947Events: Always modify GPE registers under the GPE lock.
3948Applies GPE lock around AcpiFinishGpe() to protect access to GPE register
3949values. Reported as bug by joe.liu@apple.com.
3950
3951Unix makefiles: Separate option to disable optimizations and
3952_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the
3953NOOPT disable option and creates a separate flag (NOFORTIFY) for this
3954purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined
3955errors when building ACPICA. This allows disabling the option without
3956also having to disable optimazations.
3957David Box
3958
3959  Current Release:
3960    Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total
3961    Debug Version:     199.2K Code, 82.4K Data, 281.6K Total
3962
3963--
3964--------------------------------------
396507 November 2014. Summary of changes for version 20141107:
3966
3967This release is available at https://acpica.org/downloads
3968
3969This release introduces and implements language extensions to ASL that
3970provide support for symbolic ("C-style") operators and expressions. These
3971language extensions are known collectively as ASL+.
3972
3973
39741) iASL Compiler/Disassembler and Tools:
3975
3976Disassembler: Fixed a problem with disassembly of the UartSerialBus
3977macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.
3978Box.
3979
3980Disassembler: Fixed the Unicode macro support to add escape sequences.
3981All non-printable ASCII values are emitted as escape sequences, as well
3982as the standard escapes for quote and backslash. Ensures that the
3983disassembled macro can be correctly recompiled.
3984
3985iASL: Added Printf/Fprintf macros for formatted output. These macros are
3986translated to existing AML Concatenate and Store operations. Printf
3987writes to the ASL Debug object. Fprintf allows the specification of an
3988ASL name as the target. Only a single format specifier is required, %o,
3989since the AML interpreter dynamically converts objects to the required
3990type. David E. Box.
3991
3992    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
3993                 (Concatenate (Concatenate (Concatenate ("", Arg0),
3994                 ": Unexpected value for "), Arg1), ", "), Arg2),
3995                 " at line "), Arg3), Debug)
3996
3997    (new)    Printf ("%o: Unexpected value for %o, %o at line %o",
3998                 Arg0, Arg1, Arg2, Arg3)
3999
4000    (old)    Store (Concatenate (Concatenate (Concatenate (Concatenate
4001                 ("", Arg1), ": "), Arg0), " Successful"), STR1)
4002
4003    (new)    Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)
4004
4005iASL: Added debug options (-bp, -bt) to dynamically prune levels of the
4006ASL parse tree before the AML code is generated. This allows blocks of
4007ASL code to be removed in order to help locate and identify problem
4008devices and/or code. David E. Box.
4009
4010AcpiExec: Added support (-fi) for an optional namespace object
4011initialization file. This file specifies initial values for namespace
4012objects as necessary for debugging and testing different ASL code paths
4013that may be taken as a result of BIOS options.
4014
4015
40162) Overview of symbolic operator support for ASL (ASL+)
4017-------------------------------------------------------
4018
4019As an extension to the ASL language, iASL implements support for symbolic
4020(C-style) operators for math and logical expressions. This can greatly
4021simplify ASL code as well as improve both readability and
4022maintainability. These language extensions can exist concurrently with
4023all legacy ASL code and expressions.
4024
4025The symbolic extensions are 100% compatible with existing AML
4026interpreters, since no new AML opcodes are created. To implement the
4027extensions, the iASL compiler transforms the symbolic expressions into
4028the legacy ASL/AML equivalents at compile time.
4029
4030Full symbolic expressions are supported, along with the standard C
4031precedence and associativity rules.
4032
4033Full disassembler support for the symbolic expressions is provided, and
4034creates an automatic migration path for existing ASL code to ASL+ code
4035via the disassembly process. By default, the disassembler now emits ASL+
4036code with symbolic expressions. An option (-dl) is provided to force the
4037disassembler to emit legacy ASL code if desired.
4038
4039Below is the complete list of the currently supported symbolic operators
4040with examples. See the iASL User Guide for additional information.
4041
4042
4043ASL+ Syntax      Legacy ASL Equivalent
4044-----------      ---------------------
4045
4046    // Math operators
4047
4048Z = X + Y        Add (X, Y, Z)
4049Z = X - Y        Subtract (X, Y, Z)
4050Z = X * Y        Multiply (X, Y, Z)
4051Z = X / Y        Divide (X, Y, , Z)
4052Z = X % Y        Mod (X, Y, Z)
4053Z = X << Y       ShiftLeft (X, Y, Z)
4054Z = X >> Y       ShiftRight (X, Y, Z)
4055Z = X & Y        And (X, Y, Z)
4056Z = X | Y        Or (X, Y, Z)
4057Z = X ^ Y        Xor (X, Y, Z)
4058Z = ~X           Not (X, Z)
4059X++              Increment (X)
4060X--              Decrement (X)
4061
4062    // Logical operators
4063
4064(X == Y)         LEqual (X, Y)
4065(X != Y)         LNotEqual (X, Y)
4066(X < Y)          LLess (X, Y)
4067(X > Y)          LGreater (X, Y)
4068(X <= Y)         LLessEqual (X, Y)
4069(X >= Y)         LGreaterEqual (X, Y)
4070(X && Y)         LAnd (X, Y)
4071(X || Y)         LOr (X, Y)
4072(!X)             LNot (X)
4073
4074    // Assignment and compound assignment operations
4075
4076X = Y           Store (Y, X)
4077X += Y          Add (X, Y, X)
4078X -= Y          Subtract (X, Y, X)
4079X *= Y          Multiply (X, Y, X)
4080X /= Y          Divide (X, Y, , X)
4081X %= Y          Mod (X, Y, X)
4082X <<= Y         ShiftLeft (X, Y, X)
4083X >>= Y         ShiftRight (X, Y, X)
4084X &= Y          And (X, Y, X)
4085X |= Y          Or (X, Y, X)
4086X ^= Y          Xor (X, Y, X)
4087
4088
40893) ASL+ Examples:
4090-----------------
4091
4092Legacy ASL:
4093        If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (
4094            And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,
40950x03FB),
4096            0x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))
4097        {
4098            And (MEMB, 0xFFFFFFF0, SRMB)
4099            Store (MEMB, Local2)
4100            Store (PDBM, Local1)
4101            And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)
4102            Store (SRMB, MEMB)
4103            Or (PDBM, 0x02, PDBM)
4104        }
4105
4106ASL+ version:
4107        If (((R510 & 0x03FB) == 0x02E0) ||
4108            ((R520 & 0x03FB) == 0x02E0) ||
4109            ((R530 & 0x03FB) == 0x02E0) ||
4110            ((R540 & 0x03FB) == 0x02E0))
4111        {
4112            SRMB = (MEMB & 0xFFFFFFF0)
4113            Local2 = MEMB
4114            Local1 = PDBM
4115            PDBM &= 0xFFFFFFFFFFFFFFF9
4116            MEMB = SRMB
4117            PDBM |= 0x02
4118        }
4119
4120Legacy ASL:
4121        Store (0x1234, Local1)
4122        Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)
4123        Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)
4124        Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)
4125        Store (Index (PKG1, 0x03), Local6)
4126        Store (Add (Local3, Local2), Debug)
4127        Add (Local1, 0x0F, Local2)
4128        Add (Local1, Multiply (Local2, Local3), Local2)
4129        Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)
4130
4131ASL+ version:
4132        Local1 = 0x1234
4133        Local3 = (((Local1 + TEST) + 0x20) * Local2)
4134        Local3 = (Local2 * ((Local1 + TEST) + 0x20))
4135        Local3 = (Local1 + (TEST + (0x20 * Local2)))
4136        Local6 = Index (PKG1, 0x03)
4137        Debug = (Local3 + Local2)
4138        Local2 = (Local1 + 0x0F)
4139        Local2 = (Local1 + (Local2 * Local3))
4140        Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))
4141
4142
4143----------------------------------------
414426 September 2014. Summary of changes for version 20140926:
4145
41461) ACPICA kernel-resident subsystem:
4147
4148Updated the GPIO operation region handler interface (GeneralPurposeIo).
4149In order to support GPIO Connection objects with multiple pins, along
4150with the related Field objects, the following changes to the interface
4151have been made: The Address is now defined to be the offset in bits of
4152the field unit from the previous invocation of a Connection. It can be
4153viewed as a "Pin Number Index" into the connection resource descriptor.
4154The BitWidth is the exact bit width of the field. It is usually one bit,
4155but not always. See the ACPICA reference guide (section 8.8.6.2.1) for
4156additional information and examples.
4157
4158GPE support: During ACPICA/GPE initialization, ensure that all GPEs with
4159corresponding _Lxx/_Exx methods are disabled (they may have been enabled
4160by the firmware), so that they cannot fire until they are enabled via
4161AcpiUpdateAllGpes. Rafael J. Wysocki.
4162
4163Added a new return flag for the Event/GPE status interfaces --
4164AcpiGetEventStatus and AcpiGetGpeStatus. The new
4165ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or
4166GPE currently has a handler associated with it, and can thus actually
4167affect the system. Lv Zheng.
4168
4169Example Code and Data Size: These are the sizes for the OS-independent
4170acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4171debug version of the code includes the debug output trace mechanism and
4172has a much larger code and data size.
4173
4174  Current Release:
4175    Non-Debug Version:  99.1K Code, 27.3K Data, 126.4K Total
4176    Debug Version:     192.8K Code, 79.9K Data, 272.7K Total
4177  Previous Release:
4178    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4179    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4180
41812) iASL Compiler/Disassembler and Tools:
4182
4183iASL: Fixed a memory allocation/free regression introduced in 20140828
4184that could cause the compiler to crash. This was introduced inadvertently
4185during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,
41861113.
4187
4188iASL: Removed two error messages that have been found to create false
4189positives, until they can be fixed and fully validated (ACPICA BZ 1112):
41901) Illegal forward reference within a method
41912) Illegal reference across two methods
4192
4193iASL: Implemented a new option (-lm) to create a hardware mapping file
4194that summarizes all GPIO, I2C, SPI, and UART connections. This option
4195works for both the compiler and disassembler. See the iASL compiler user
4196guide for additional information and examples (section 6.4.6).
4197
4198AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to
4199version 2. This corrects the AE_BAD_HEADER exception seen on systems with
4200a version 1 RSDP. Lv Zheng ACPICA BZ 1097.
4201
4202AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode
4203unless STDIN is actually a terminal. Assists with batch-mode processing.
4204ACPICA BZ 1114.
4205
4206Disassembler/AcpiHelp: Added another large group of recognized _HID
4207values.
4208
4209
4210----------------------------------------
421128 August 2014. Summary of changes for version 20140828:
4212
42131) ACPICA kernel-resident subsystem:
4214
4215Fixed a problem related to the internal use of the Timer() operator where
4216a 64-bit divide could cause an attempted link to a double-precision math
4217library. This divide is not actually necessary, so the code was
4218restructured to eliminate it. Lv Zheng.
4219
4220ACPI 5.1: Added support for the runtime validation of the _DSD package
4221(similar to the iASL support).
4222
4223ACPI 5.1/Headers: Added support for the GICC affinity subtable to the
4224SRAT table. Hanjun Guo <hanjun.guo@linaro.org>.
4225
4226Example Code and Data Size: These are the sizes for the OS-independent
4227acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4228debug version of the code includes the debug output trace mechanism and
4229has a much larger code and data size.
4230
4231  Current Release:
4232    Non-Debug Version:  98.8K Code, 27.3K Data, 126.1K Total
4233    Debug Version:     192.1K Code, 79.8K Data, 271.9K Total
4234  Previous Release:
4235    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total1
4236    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4237
42382) iASL Compiler/Disassembler and Tools:
4239
4240AcpiExec: Fixed a problem on unix systems where the original terminal
4241state was not always properly restored upon exit. Seen when using the -v
4242option. ACPICA BZ 1104.
4243
4244iASL: Fixed a problem with the validation of the ranges/length within the
4245Memory24 resource descriptor. There was a boundary condition when the
4246range was equal to the (length -1) caused by the fact that these values
4247are defined in 256-byte blocks, not bytes. ACPICA BZ 1098
4248
4249Disassembler: Fixed a problem with the GpioInt descriptor interrupt
4250polarity
4251flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword
4252is
4253now supported properly.
4254
4255ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported
4256in the disassembler, data table compiler, and table template generator.
4257
4258iASL: Added a requirement for Device() objects that one of either a _HID
4259or _ADR must exist within the scope of a Device, as per the ACPI
4260specification. Remove a similar requirement that was incorrectly in place
4261for the _DSD object.
4262
4263iASL: Added error detection for illegal named references within control
4264methods that would cause runtime failures. Now trapped as errors are: 1)
4265References to objects within a non-parent control method. 2) Forward
4266references (within a method) -- for control methods, AML interpreters use
4267a one-pass parse of control methods. ACPICA BZ 1008.
4268
4269iASL: Added error checking for dependencies related to the _PSx power
4270methods. ACPICA BZ 1029.
42711) For _PS0, one of these must exist within the same scope: _PS1, _PS2,
4272_PS3.
42732) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same
4274scope.
4275
4276iASL and table compiler: Cleanup miscellaneous memory leaks by fully
4277deploying the existing object and string caches and adding new caches for
4278the table compiler.
4279
4280iASL: Split the huge parser source file into multiple subfiles to improve
4281manageability. Generation now requires the M4 macro preprocessor, which
4282is part of the Bison distribution on both unix and windows platforms.
4283
4284AcpiSrc: Fixed and removed all extraneous warnings generated during
4285entire ACPICA source code scan and/or conversion.
4286
4287
4288----------------------------------------
4289
429024 July 2014. Summary of changes for version 20140724:
4291
4292The ACPI 5.1 specification has been released and is available at:
4293http://uefi.org/specs/access
4294
4295
42960) ACPI 5.1 support in ACPICA:
4297
4298ACPI 5.1 is fully supported in ACPICA as of this release.
4299
4300New predefined names. Support includes iASL and runtime ACPICA
4301validation.
4302    _CCA (Cache Coherency Attribute).
4303    _DSD (Device-Specific Data). David Box.
4304
4305Modifications to existing ACPI tables. Support includes headers, iASL
4306Data Table compiler, disassembler, and the template generator.
4307    FADT - New fields and flags. Graeme Gregory.
4308    GTDT - One new subtable and new fields. Tomasz Nowicki.
4309    MADT - Two new subtables. Tomasz Nowicki.
4310    PCCT - One new subtable.
4311
4312Miscellaneous.
4313    New notification type for System Resource Affinity change events.
4314
4315
43161) ACPICA kernel-resident subsystem:
4317
4318Fixed a regression introduced in 20140627 where a fault can happen during
4319the deletion of Alias AML namespace objects. The problem affected both
4320the core ACPICA and the ACPICA tools including iASL and AcpiExec.
4321
4322Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a
4323simple mechanism to enable wake GPEs that have no associated handler or
4324control method. Rafael Wysocki.
4325
4326Updated the AcpiEnableGpe interface to disallow the enable if there is no
4327handler or control method associated with the particular GPE. This will
4328help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.
4329
4330Updated GPE handling and dispatch by disabling the GPE before clearing
4331the status bit for edge-triggered GPEs. Lv Zheng.
4332
4333Added Timer() support to the AML Debug object. The current timer value is
4334now displayed with each invocation of (Store to) the debug object to
4335enable simple generation of execution times for AML code (method
4336execution for example.) ACPICA BZ 1093.
4337
4338Example Code and Data Size: These are the sizes for the OS-independent
4339acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4340debug version of the code includes the debug output trace mechanism and
4341has a much larger code and data size.
4342
4343  Current Release:
4344    Non-Debug Version:  98.7K Code, 27.3K Data, 126.0K Total
4345    Debug Version:     192.0K Code, 79.7K Data, 271.7K Total
4346  Previous Release:
4347    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4348    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4349
4350
43512) iASL Compiler/Disassembler and Tools:
4352
4353Fixed an issue with the recently added local printf implementation,
4354concerning width/precision specifiers that could cause incorrect output.
4355Lv Zheng. ACPICA BZ 1094.
4356
4357Disassembler: Added support to detect buffers that contain UUIDs and
4358disassemble them to an invocation of the ToUUID operator. Also emit
4359commented descriptions of known ACPI-related UUIDs.
4360
4361AcpiHelp: Added support to display known ACPI-related UUIDs. New option,
4362-u. Adds three new files.
4363
4364iASL: Update table compiler and disassembler for DMAR table changes that
4365were introduced in September 2013. With assistance by David Woodhouse.
4366
4367----------------------------------------
436827 June 2014. Summary of changes for version 20140627:
4369
43701) ACPICA kernel-resident subsystem:
4371
4372Formatted Output: Implemented local versions of standard formatted output
4373utilities such as printf, etc. Over time, it has been discovered that
4374there are in fact many portability issues with printf, and the addition
4375of this feature will fix/prevent these issues once and for all. Some
4376known issues are summarized below:
4377
43781) Output of 64-bit values is not portable. For example, UINT64 is %ull
4379for the Linux kernel and is %uI64 for some MSVC versions.
43802) Invoking printf consistently in a manner that is portable across both
438132-bit and 64-bit platforms is difficult at best in many situations.
43823) The output format for pointers varies from system to system (leading
4383zeros especially), and leads to inconsistent output from ACPICA across
4384platforms.
43854) Certain platform-specific printf formats may conflict with ACPICA use.
43865) If there is no local C library available, ACPICA now has local support
4387for printf.
4388
4389-- To address these printf issues in a complete manner, ACPICA now
4390directly implements a small subset of printf format specifiers, only
4391those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.
4392
4393Implemented support for ACPICA generation within the EFI environment.
4394Initially, the AcpiDump utility is supported in the UEFI shell
4395environment. Lv Zheng.
4396
4397Added a new external interface, AcpiLogError, to improve ACPICA
4398portability. This allows the host to redirect error messages from the
4399ACPICA utilities. Lv Zheng.
4400
4401Added and deployed new OSL file I/O interfaces to improve ACPICA
4402portability:
4403  AcpiOsOpenFile
4404  AcpiOsCloseFile
4405  AcpiOsReadFile
4406  AcpiOsWriteFile
4407  AcpiOsGetFileOffset
4408  AcpiOsSetFileOffset
4409There are C library implementations of these functions in the new file
4410service_layers/oslibcfs.c -- however, the functions can be implemented by
4411the local host in any way necessary. Lv Zheng.
4412
4413Implemented a mechanism to disable/enable ACPI table checksum validation
4414at runtime. This can be useful when loading tables very early during OS
4415initialization when it may not be possible to map the entire table in
4416order to compute the checksum. Lv Zheng.
4417
4418Fixed a buffer allocation issue for the Generic Serial Bus support.
4419Originally, a fixed buffer length was used. This change allows for
4420variable-length buffers based upon the protocol indicated by the field
4421access attributes. Reported by Lan Tianyu. Lv Zheng.
4422
4423Fixed a problem where an object detached from a namespace node was not
4424properly terminated/cleared and could cause a circular list problem if
4425reattached. ACPICA BZ 1063. David Box.
4426
4427Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.
4428
4429Fixed a possible memory leak in an error return path within the function
4430AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.
4431
4432Example Code and Data Size: These are the sizes for the OS-independent
4433acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4434debug version of the code includes the debug output trace mechanism and
4435has a much larger code and data size.
4436
4437  Current Release:
4438    Non-Debug Version:  98.7K Code, 27.2K Data, 125.9K Total
4439    Debug Version:     191.7K Code, 79.6K Data, 271.3K Total
4440  Previous Release:
4441    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4442    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4443
4444
44452) iASL Compiler/Disassembler and Tools:
4446
4447Disassembler: Add dump of ASCII equivalent text within a comment at the
4448end of each line of the output for the Buffer() ASL operator.
4449
4450AcpiDump: Miscellaneous changes:
4451  Fixed repetitive table dump in -n mode.
4452  For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if
4453the ACPI 2.0 GUID fails.
4454
4455iASL: Fixed a problem where the compiler could fault if incorrectly given
4456an acpidump output file as input. ACPICA BZ 1088. David Box.
4457
4458AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if
4459they are invoked without any arguments.
4460
4461Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ
44621086. Colin Ian King.
4463
4464Disassembler: Cleaned up a block of code that extracts a parent Op
4465object. Added a comment that explains that the parent is guaranteed to be
4466valid in this case. ACPICA BZ 1069.
4467
4468
4469----------------------------------------
447024 April 2014. Summary of changes for version 20140424:
4471
44721) ACPICA kernel-resident subsystem:
4473
4474Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.
4475Some of these tables are known to contain a trailing NULL entry. Lv
4476Zheng.
4477
4478Removed an extraneous error message for the case where there are a large
4479number of system GPEs (> 124). This was the "32-bit FADT register is too
4480long to convert to GAS struct" message, which is irrelevant for GPEs
4481since the GPEx_BLK_LEN fields of the FADT are always used instead of the
4482(limited capacity) GAS bit length. Also, several changes to ensure proper
4483support for GPE numbers > 255, where some "GPE number" fields were 8-bits
4484internally.
4485
4486Implemented and deployed additional configuration support for the public
4487ACPICA external interfaces. Entire classes of interfaces can now be
4488easily modified or configured out, replaced by stubbed inline functions
4489by default. Lv Zheng.
4490
4491Moved all public ACPICA runtime configuration globals to the public
4492ACPICA external interface file for convenience. Also, removed some
4493obsolete/unused globals. See the file acpixf.h. Lv Zheng.
4494
4495Documentation: Added a new section to the ACPICA reference describing the
4496maximum number of GPEs that can be supported by the FADT-defined GPEs in
4497block zero and one. About 1200 total. See section 4.4.1 of the ACPICA
4498reference.
4499
4500Example Code and Data Size: These are the sizes for the OS-independent
4501acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4502debug version of the code includes the debug output trace mechanism and
4503has a much larger code and data size.
4504
4505  Current Release:
4506    Non-Debug Version:  96.8K Code, 27.2K Data, 124.0K Total
4507    Debug Version:     189.5K Code, 79.7K Data, 269.2K Total
4508  Previous Release:
4509    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4510    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4511
4512
45132) iASL Compiler/Disassembler and Tools:
4514
4515iASL and disassembler: Add full support for the LPIT table (Low Power
4516Idle Table). Includes support in the disassembler, data table compiler,
4517and template generator.
4518
4519AcpiDump utility:
45201) Add option to force the use of the RSDT (over the XSDT).
45212) Improve validation of the RSDP signature (use 8 chars instead of 4).
4522
4523iASL: Add check for predefined packages that are too large.  For
4524predefined names that contain subpackages, check if each subpackage is
4525too large. (Check for too small already exists.)
4526
4527Debugger: Updated the GPE command (which simulates a GPE by executing the
4528GPE code paths in ACPICA). The GPE device is now optional, and defaults
4529to the GPE 0/1 FADT-defined blocks.
4530
4531Unix application OSL: Update line-editing support. Add additional error
4532checking and take care not to reset terminal attributes on exit if they
4533were never set. This should help guarantee that the terminal is always
4534left in the previous state on program exit.
4535
4536
4537----------------------------------------
453825 March 2014. Summary of changes for version 20140325:
4539
45401) ACPICA kernel-resident subsystem:
4541
4542Updated the auto-serialize feature for control methods. This feature
4543automatically serializes all methods that create named objects in order
4544to prevent runtime errors. The update adds support to ignore the
4545currently executing AML SyncLevel when invoking such a method, in order
4546to prevent disruption of any existing SyncLevel priorities that may exist
4547in the AML code. Although the use of SyncLevels is relatively rare, this
4548change fixes a regression where an AE_AML_MUTEX_ORDER exception can
4549appear on some machines starting with the 20140214 release.
4550
4551Added a new external interface to allow the host to install ACPI tables
4552very early, before the namespace is even created. AcpiInstallTable gives
4553the host additional flexibility for ACPI table management. Tables can be
4554installed directly by the host as if they had originally appeared in the
4555XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables
4556(anything except the DSDT and FACS). Adds a new file, tbdata.c, along
4557with additional internal restructuring and cleanup. See the ACPICA
4558Reference for interface details. Lv Zheng.
4559
4560Added validation of the checksum for all incoming dynamically loaded
4561tables (via external interfaces or via AML Load/LoadTable operators). Lv
4562Zheng.
4563
4564Updated the use of the AcpiOsWaitEventsComplete interface during Notify
4565and GPE handler removal. Restructured calls to eliminate possible race
4566conditions. Lv Zheng.
4567
4568Added a warning for the use/execution of the ASL/AML Unload (table)
4569operator. This will help detect and identify machines that use this
4570operator if and when it is ever used. This operator has never been seen
4571in the field and the usage model and possible side-effects of the drastic
4572runtime action of a full table removal are unknown.
4573
4574Reverted the use of #pragma push/pop which was introduced in the 20140214
4575release. It appears that push and pop are not implemented by enough
4576compilers to make the use of this feature feasible for ACPICA at this
4577time. However, these operators may be deployed in a future ACPICA
4578release.
4579
4580Added the missing EXPORT_SYMBOL macros for the install and remove SCI
4581handler interfaces.
4582
4583Source code generation:
45841) Disabled the use of the "strchr" macro for the gcc-specific
4585generation. For some versions of gcc, this macro can periodically expose
4586a compiler bug which in turn causes compile-time error(s).
45872) Added support for PPC64 compilation. Colin Ian King.
4588
4589Example Code and Data Size: These are the sizes for the OS-independent
4590acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4591debug version of the code includes the debug output trace mechanism and
4592has a much larger code and data size.
4593
4594  Current Release:
4595    Non-Debug Version:  97.0K Code, 27.2K Data, 124.2K Total
4596    Debug Version:     189.7K Code, 79.5K Data, 269.2K Total
4597  Previous Release:
4598    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4599    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4600
4601
46022) iASL Compiler/Disassembler and Tools:
4603
4604Disassembler: Added several new features to improve the readability of
4605the resulting ASL code. Extra information is emitted within comment
4606fields in the ASL code:
46071) Known _HID/_CID values are decoded to descriptive text.
46082) Standard values for the Notify() operator are decoded to descriptive
4609text.
46103) Target operands are expanded to full pathnames (in a comment) when
4611possible.
4612
4613Disassembler: Miscellaneous updates for extern() handling:
46141) Abort compiler if file specified by -fe option does not exist.
46152) Silence unnecessary warnings about argument count mismatches.
46163) Update warning messages concerning unresolved method externals.
46174) Emit "UnknownObj" keyword for externals whose type cannot be
4618determined.
4619
4620AcpiHelp utility:
46211) Added the -a option to display both the ASL syntax and the AML
4622encoding for an input ASL operator. This effectively displays all known
4623information about an ASL operator with one AcpiHelp invocation.
46242) Added substring match support (similar to a wildcard) for the -i
4625(_HID/PNP IDs) option.
4626
4627iASL/Disassembler: Since this tool does not yet support execution on big-
4628endian machines, added detection of endianness and an error message if
4629execution is attempted on big-endian. Support for big-endian within iASL
4630is a feature that is on the ACPICA to-be-done list.
4631
4632AcpiBin utility:
46331) Remove option to extract binary files from an acpidump; this function
4634is made obsolete by the AcpiXtract utility.
46352) General cleanup of open files and allocated buffers.
4636
4637
4638----------------------------------------
463914 February 2014. Summary of changes for version 20140214:
4640
46411) ACPICA kernel-resident subsystem:
4642
4643Implemented a new mechanism to proactively prevent problems with ill-
4644behaved reentrant control methods that create named ACPI objects. This
4645behavior is illegal as per the ACPI specification, but is nonetheless
4646frequently seen in the field. Previously, this could lead to an
4647AE_ALREADY_EXISTS exception if the method was actually entered by more
4648than one thread. This new mechanism detects such methods at table load
4649time and marks them "serialized" to prevent reentrancy. A new global
4650option, AcpiGbl_AutoSerializeMethods, has been added to disable this
4651feature if desired. This mechanism and global option obsoletes and
4652supersedes the previous AcpiGbl_SerializeAllMethods option.
4653
4654Added the "Windows 2013" string to the _OSI support. ACPICA will now
4655respond TRUE to _OSI queries with this string. It is the stated policy of
4656ACPICA to add new strings to the _OSI support as soon as possible after
4657they are defined. See the full ACPICA _OSI policy which has been added to
4658the utilities/utosi.c file.
4659
4660Hardened/updated the _PRT return value auto-repair code:
46611) Do not abort the repair on a single subpackage failure, continue to
4662check all subpackages.
46632) Add check for the minimum subpackage length (4).
46643) Properly handle extraneous NULL package elements.
4665
4666Added support to avoid the possibility of infinite loops when traversing
4667object linked lists. Never allow an infinite loop, even in the face of
4668corrupted object lists.
4669
4670ACPICA headers: Deployed the use of #pragma pack(push) and #pragma
4671pack(pop) directives to ensure that the ACPICA headers are independent of
4672compiler settings or other host headers.
4673
4674Example Code and Data Size: These are the sizes for the OS-independent
4675acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4676debug version of the code includes the debug output trace mechanism and
4677has a much larger code and data size.
4678
4679  Current Release:
4680    Non-Debug Version:  96.5K Code, 27.2K Data, 123.7K Total
4681    Debug Version:     188.6K Code, 79.0K Data, 267.6K Total
4682  Previous Release:
4683    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4684    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4685
4686
46872) iASL Compiler/Disassembler and Tools:
4688
4689iASL/Table-compiler: Fixed a problem with support for the SPMI table. The
4690first reserved field was incorrectly forced to have a value of zero. This
4691change correctly forces the field to have a value of one. ACPICA BZ 1081.
4692
4693Debugger: Added missing support for the "Extra" and "Data" subobjects
4694when displaying object data.
4695
4696Debugger: Added support to display entire object linked lists when
4697displaying object data.
4698
4699iASL: Removed the obsolete -g option to obtain ACPI tables from the
4700Windows registry. This feature has been superseded by the acpidump
4701utility.
4702
4703
4704----------------------------------------
470514 January 2014. Summary of changes for version 20140114:
4706
47071) ACPICA kernel-resident subsystem:
4708
4709Updated all ACPICA copyrights and signons to 2014. Added the 2014
4710copyright to all module headers and signons, including the standard Linux
4711header. This affects virtually every file in the ACPICA core subsystem,
4712iASL compiler, all ACPICA utilities, and the test suites.
4713
4714Improved parameter validation for AcpiInstallGpeBlock. Added the
4715following checks:
47161) The incoming device handle refers to type ACPI_TYPE_DEVICE.
47172) There is not already a GPE block attached to the device.
4718Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a
4719device.
4720
4721Correctly support "references" in the ACPI_OBJECT. This change fixes the
4722support to allow references (namespace nodes) to be passed as arguments
4723to control methods via the evaluate object interface. This is probably
4724most useful for testing purposes, however.
4725
4726Improved support for 32/64 bit physical addresses in printf()-like
4727output. This change improves the support for physical addresses in printf
4728debug statements and other output on both 32-bit and 64-bit hosts. It
4729consistently outputs the appropriate number of bytes for each host. The
4730%p specifier is unsatisfactory since it does not emit uniform output on
4731all hosts/clib implementations (on some, leading zeros are not supported,
4732leading to difficult-to-read output).
4733
4734Example Code and Data Size: These are the sizes for the OS-independent
4735acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4736debug version of the code includes the debug output trace mechanism and
4737has a much larger code and data size.
4738
4739  Current Release:
4740    Non-Debug Version:  96.2K Code, 27.0K Data, 123.2K Total
4741    Debug Version:     187.5K Code, 78.3K Data, 265.8K Total
4742  Previous Release:
4743    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4744    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4745
4746
47472) iASL Compiler/Disassembler and Tools:
4748
4749iASL: Fix a possible fault when using the Connection() operator. Fixes a
4750problem if the parent Field definition for the Connection operator refers
4751to an operation region that does not exist. ACPICA BZ 1064.
4752
4753AcpiExec: Load of local test tables is now optional. The utility has the
4754capability to load some various tables to test features of ACPICA.
4755However, there are enough of them that the output of the utility became
4756confusing. With this change, only the required local tables are displayed
4757(RSDP, XSDT, etc.) along with the actual tables loaded via the command
4758line specification. This makes the default output simler and easier to
4759understand. The -el command line option restores the original behavior
4760for testing purposes.
4761
4762AcpiExec: Added support for overlapping operation regions. This change
4763expands the simulation of operation regions by supporting regions that
4764overlap within the given address space. Supports SystemMemory and
4765SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.
4766
4767AcpiExec: Added region handler support for PCI_Config and EC spaces. This
4768allows AcpiExec to simulate these address spaces, similar to the current
4769support for SystemMemory and SystemIO.
4770
4771Debugger: Added new command to read/write/compare all namespace objects.
4772The command "test objects" will exercise the entire namespace by writing
4773new values to each data object, and ensuring that the write was
4774successful. The original value is then restored and verified.
4775
4776Debugger: Added the "test predefined" command. This change makes this
4777test public and puts it under the new "test" command. The test executes
4778each and every predefined name within the current namespace.
4779
4780
4781----------------------------------------
478218 December 2013. Summary of changes for version 20131218:
4783
4784Global note: The ACPI 5.0A specification was released this month. There
4785are no changes needed for ACPICA since this release of ACPI is an
4786errata/clarification release. The specification is available at
4787acpi.info.
4788
4789
47901) ACPICA kernel-resident subsystem:
4791
4792Added validation of the XSDT root table if it is present. Some older
4793platforms contain an XSDT that is ill-formed or otherwise invalid (such
4794as containing some or all entries that are NULL pointers). This change
4795adds a new function to validate the XSDT before actually using it. If the
4796XSDT is found to be invalid, ACPICA will now automatically fall back to
4797using the RSDT instead. Original implementation by Zhao Yakui. Ported to
4798ACPICA and enhanced by Lv Zheng and Bob Moore.
4799
4800Added a runtime option to ignore the XSDT and force the use of the RSDT.
4801This change adds a runtime option that will force ACPICA to use the RSDT
4802instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec
4803requires that an XSDT be used instead of the RSDT, the XSDT has been
4804found to be corrupt or ill-formed on some machines. Lv Zheng.
4805
4806Added a runtime option to favor 32-bit FADT register addresses over the
480764-bit addresses. This change adds an option to favor 32-bit FADT
4808addresses when there is a conflict between the 32-bit and 64-bit versions
4809of the same register. The default behavior is to use the 64-bit version
4810in accordance with the ACPI specification. This can now be overridden via
4811the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.
4812
4813During the change above, the internal "Convert FADT" and "Verify FADT"
4814functions have been merged to simplify the code, making it easier to
4815understand and maintain. ACPICA BZ 933.
4816
4817Improve exception reporting and handling for GPE block installation.
4818Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the
4819status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.
4820
4821Added helper macros to extract bus/segment numbers from the HEST table.
4822This change adds two macros to extract the encoded bus and segment
4823numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.
4824Betty Dall <betty.dall@hp.com>
4825
4826Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used
4827by ACPICA. It is not a public macro, so it should have no effect on
4828existing OSV code. Lv Zheng.
4829
4830Example Code and Data Size: These are the sizes for the OS-independent
4831acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4832debug version of the code includes the debug output trace mechanism and
4833has a much larger code and data size.
4834
4835  Current Release:
4836    Non-Debug Version:  96.1K Code, 27.0K Data, 123.1K Total
4837    Debug Version:     185.6K Code, 77.3K Data, 262.9K Total
4838  Previous Release:
4839    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
4840    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
4841
4842
48432) iASL Compiler/Disassembler and Tools:
4844
4845Disassembler: Improved pathname support for emitted External()
4846statements. This change adds full pathname support for external names
4847that have been resolved internally by the inclusion of additional ACPI
4848tables (via the iASL -e option). Without this change, the disassembler
4849can emit multiple externals for the same object, or it become confused
4850when the Scope() operator is used on an external object. Overall, greatly
4851improves the ability to actually recompile the emitted ASL code when
4852objects a referenced across multiple ACPI tables. Reported by Michael
4853Tsirkin (mst@redhat.com).
4854
4855Tests/ASLTS: Updated functional control suite to execute with no errors.
4856David Box. Fixed several errors related to the testing of the interpreter
4857slack mode. Lv Zheng.
4858
4859iASL: Added support to detect names that are declared within a control
4860method, but are unused (these are temporary names that are only valid
4861during the time the method is executing). A remark is issued for these
4862cases. ACPICA BZ 1022.
4863
4864iASL: Added full support for the DBG2 table. Adds full disassembler,
4865table compiler, and template generator support for the DBG2 table (Debug
4866Port 2 table).
4867
4868iASL: Added full support for the PCCT table, update the table definition.
4869Updates the PCCT table definition in the actbl3.h header and adds table
4870compiler and template generator support.
4871
4872iASL: Added an option to emit only error messages (no warnings/remarks).
4873The -ve option will enable only error messages, warnings and remarks are
4874suppressed. This can simplify debugging when only the errors are
4875important, such as when an ACPI table is disassembled and there are many
4876warnings and remarks -- but only the actual errors are of real interest.
4877
4878Example ACPICA code (source/tools/examples): Updated the example code so
4879that it builds to an actual working program, not just example code. Added
4880ACPI tables and execution of an example control method in the DSDT. Added
4881makefile support for Unix generation.
4882
4883
4884----------------------------------------
488515 November 2013. Summary of changes for version 20131115:
4886
4887This release is available at https://acpica.org/downloads
4888
4889
48901) ACPICA kernel-resident subsystem:
4891
4892Resource Manager: Fixed loop termination for the "get AML length"
4893function. The loop previously had an error termination on a NULL resource
4894pointer, which can never happen since the loop simply increments a valid
4895resource pointer. This fix changes the loop to terminate with an error on
4896an invalid end-of-buffer condition. The problem can be seen as an
4897infinite loop by callers to AcpiSetCurrentResources with an invalid or
4898corrupted resource descriptor, or a resource descriptor that is missing
4899an END_TAG descriptor. Reported by Dan Carpenter
4900<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore.
4901
4902Table unload and ACPICA termination: Delete all attached data objects
4903during namespace node deletion. This fix updates namespace node deletion
4904to delete the entire list of attached objects (attached via
4905AcpiAttachObject) instead of just one of the attached items. ACPICA BZ
49061024. Tomasz Nowicki (tomasz.nowicki@linaro.org).
4907
4908ACPICA termination: Added support to delete all objects attached to the
4909root namespace node. This fix deletes any and all objects that have been
4910attached to the root node via AcpiAttachData. Previously, none of these
4911objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.
4912
4913Debug output: Do not emit the function nesting level for the in-kernel
4914build. The nesting level is really only useful during a single-thread
4915execution. Therefore, only enable this output for the AcpiExec utility.
4916Also, only emit the thread ID when executing under AcpiExec (Context
4917switches are still always detected and a message is emitted). ACPICA BZ
4918972.
4919
4920Example Code and Data Size: These are the sizes for the OS-independent
4921acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
4922debug version of the code includes the debug output trace mechanism and
4923has a much larger code and data size.
4924
4925  Current Release:
4926    Non-Debug Version:  95.9K Code, 27.0K Data, 122.9K Total
4927    Debug Version:     185.1K Code, 77.2K Data, 262.3K Total
4928  Previous Release:
4929    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
4930    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
4931
4932
49332) iASL Compiler/Disassembler and Tools:
4934
4935AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the
4936correct portable POSIX header for terminal control functions.
4937
4938Disassembler: Fixed control method invocation issues related to the use
4939of the CondRefOf() operator. The problem is seen in the disassembly where
4940control method invocations may not be disassembled properly if the
4941control method name has been used previously as an argument to CondRefOf.
4942The solution is to not attempt to emit an external declaration for the
4943CondRefOf target (it is not necessary in the first place). This prevents
4944disassembler object type confusion. ACPICA BZ 988.
4945
4946Unix Makefiles: Added an option to disable compiler optimizations and the
4947_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA
4948with optimizations (reportedly, gcc 4.4 for example). This change adds a
4949command line option for make (NOOPT) that disables all compiler
4950optimizations and the _FORTIFY_SOURCE compiler flag. The default
4951optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ
49521034. Lv Zheng, Bob Moore.
4953
4954Tests/ASLTS: Added options to specify individual test cases and modes.
4955This allows testers running aslts.sh to optionally specify individual
4956test modes and test cases. Also added an option to disable the forced
4957generation of the ACPICA tools from source if desired. Lv Zheng.
4958
4959----------------------------------------
496027 September 2013. Summary of changes for version 20130927:
4961
4962This release is available at https://acpica.org/downloads
4963
4964
49651) ACPICA kernel-resident subsystem:
4966
4967Fixed a problem with store operations to reference objects. This change
4968fixes a problem where a Store operation to an ArgX object that contained
4969a
4970reference to a field object did not complete the automatic dereference
4971and
4972then write to the actual field object. Instead, the object type of the
4973field object was inadvertently changed to match the type of the source
4974operand. The new behavior will actually write to the field object (buffer
4975field or field unit), thus matching the correct ACPI-defined behavior.
4976
4977Implemented support to allow the host to redefine individual OSL
4978prototypes. This change enables the host to redefine OSL prototypes found
4979in the acpiosxf.h file. This allows the host to implement OSL interfaces
4980with a macro or inlined function. Further, it allows the host to add any
4981additional required modifiers such as __iomem, __init, __exit, etc., as
4982necessary on a per-interface basis. Enables maximum flexibility for the
4983OSL interfaces. Lv Zheng.
4984
4985Hardcoded the access width for the FADT-defined reset register. The ACPI
4986specification requires the reset register width to be 8 bits. ACPICA now
4987hardcodes the width to 8 and ignores the FADT width value. This provides
4988compatibility with other ACPI implementations that have allowed BIOS code
4989with bad register width values to go unnoticed. Matthew Garett, Bob
4990Moore,
4991Lv Zheng.
4992
4993Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is
4994used
4995in the OSL header (acpiosxf). The change modifies the position of this
4996macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid
4997build issues if the OSL defines the implementation of the interface to be
4998an inline stub function. Lv Zheng.
4999
5000Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA
5001initialization interfaces. This change adds a new macro for the main init
5002and terminate external interfaces in order to support hosts that require
5003additional or different processing for these functions. Changed from
5004ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv
5005Zheng, Bob Moore.
5006
5007Cleaned up the memory allocation macros for configurability. In the
5008common
5009case, the ACPI_ALLOCATE and related macros now resolve directly to their
5010respective AcpiOs* OSL interfaces. Two options:
50111) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by
5012default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.
50132) For AcpiExec (and for debugging), the macros can optionally be
5014resolved
5015to the local ACPICA interfaces that track each allocation (local tracking
5016is used to immediately detect memory leaks).
5017Lv Zheng.
5018
5019Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel
5020to predefine this macro to either TRUE or FALSE during the system build.
5021
5022Replaced __FUNCTION_ with __func__ in the gcc-specific header.
5023
5024Example Code and Data Size: These are the sizes for the OS-independent
5025acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5026debug version of the code includes the debug output trace mechanism and
5027has a much larger code and data size.
5028
5029  Current Release:
5030    Non-Debug Version:  95.8K Code, 27.0K Data, 122.8K Total
5031    Debug Version:     185.2K Code, 77.2K Data, 262.4K Total
5032  Previous Release:
5033    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
5034    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5035
5036
50372) iASL Compiler/Disassembler and Tools:
5038
5039iASL: Implemented wildcard support for the -e option. This simplifies use
5040when there are many SSDTs that must be included to resolve external
5041method
5042declarations. ACPICA BZ 1041. Example:
5043    iasl -e ssdt*.dat -d dsdt.dat
5044
5045AcpiExec: Add history/line-editing for Unix/Linux systems. This change
5046adds a portable module that implements full history and limited line
5047editing for Unix and Linux systems. It does not use readline() due to
5048portability issues. Instead it uses the POSIX termio interface to put the
5049terminal in raw input mode so that the various special keys can be
5050trapped
5051(such as up/down-arrow for history support and left/right-arrow for line
5052editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.
5053
5054AcpiXtract: Add support to handle (ignore) "empty" lines containing only
5055one or more spaces. This provides compatible with early or different
5056versions of the AcpiDump utility. ACPICA BZ 1044.
5057
5058AcpiDump: Do not ignore tables that contain only an ACPI table header.
5059Apparently, some BIOSs create SSDTs that contain an ACPI table header but
5060no other data. This change adds support to dump these tables. Any tables
5061shorter than the length of an ACPI table header remain in error (an error
5062message is emitted). Reported by Yi Li.
5063
5064Debugger: Echo actual command along with the "unknown command" message.
5065
5066----------------------------------------
506723 August 2013. Summary of changes for version 20130823:
5068
50691) ACPICA kernel-resident subsystem:
5070
5071Implemented support for host-installed System Control Interrupt (SCI)
5072handlers. Certain ACPI functionality requires the host to handle raw
5073SCIs. For example, the "SCI Doorbell" that is defined for memory power
5074state support requires the host device driver to handle SCIs to examine
5075if the doorbell has been activated. Multiple SCI handlers can be
5076installed to allow for future expansion. New external interfaces are
5077AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for
5078details. Lv Zheng, Bob Moore. ACPICA BZ 1032.
5079
5080Operation region support: Never locally free the handler "context"
5081pointer. This change removes some dangerous code that attempts to free
5082the handler context pointer in some (rare) circumstances. The owner of
5083the handler owns this pointer and the ACPICA code should never touch it.
5084Although not seen to be an issue in any kernel, it did show up as a
5085problem (fault) under AcpiExec. Also, set the internal storage field for
5086the context pointer to zero when the region is deactivated, simply for
5087sanity. David Box. ACPICA BZ 1039.
5088
5089AcpiRead: On error, do not modify the return value target location. If an
5090error happens in the middle of a split 32/32 64-bit I/O operation, do not
5091modify the target of the return value pointer. Makes the code consistent
5092with the rest of ACPICA. Bjorn Helgaas.
5093
5094Example Code and Data Size: These are the sizes for the OS-independent
5095acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5096debug version of the code includes the debug output trace mechanism and
5097has a much larger code and data size.
5098
5099  Current Release:
5100    Non-Debug Version:  96.7K Code, 27.1K Data, 123.9K Total
5101    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5102  Previous Release:
5103    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5104    Debug Version:     185.4K Code, 77.1K Data, 262.5K Total
5105
5106
51072) iASL Compiler/Disassembler and Tools:
5108
5109AcpiDump: Implemented several new features and fixed some problems:
51101) Added support to dump the RSDP, RSDT, and XSDT tables.
51112) Added support for multiple table instances (SSDT, UEFI).
51123) Added option to dump "customized" (overridden) tables (-c).
51134) Fixed a problem where some table filenames were improperly
5114constructed.
51155) Improved some error messages, removed some unnecessary messages.
5116
5117iASL: Implemented additional support for disassembly of ACPI tables that
5118contain invocations of external control methods. The -fe<file> option
5119allows the import of a file that specifies the external methods along
5120with the required number of arguments for each -- allowing for the
5121correct disassembly of the table. This is a workaround for a limitation
5122of AML code where the disassembler often cannot determine the number of
5123arguments required for an external control method and generates incorrect
5124ASL code. See the iASL reference for details. ACPICA BZ 1030.
5125
5126Debugger: Implemented a new command (paths) that displays the full
5127pathnames (namepaths) and object types of all objects in the namespace.
5128This is an alternative to the namespace command.
5129
5130Debugger: Implemented a new command (sci) that invokes the SCI dispatch
5131mechanism and any installed handlers.
5132
5133iASL: Fixed a possible segfault for "too many parent prefixes" condition.
5134This can occur if there are too many parent prefixes in a namepath (for
5135example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.
5136
5137Application OSLs: Set the return value for the PCI read functions. These
5138functions simply return AE_OK, but should set the return value to zero
5139also. This change implements this. ACPICA BZ 1038.
5140
5141Debugger: Prevent possible command line buffer overflow. Increase the
5142size of a couple of the debugger line buffers, and ensure that overflow
5143cannot happen. ACPICA BZ 1037.
5144
5145iASL: Changed to abort immediately on serious errors during the parsing
5146phase. Due to the nature of ASL, there is no point in attempting to
5147compile these types of errors, and they typically end up causing a
5148cascade of hundreds of errors which obscure the original problem.
5149
5150----------------------------------------
515125 July 2013. Summary of changes for version 20130725:
5152
51531) ACPICA kernel-resident subsystem:
5154
5155Fixed a problem with the DerefOf operator where references to FieldUnits
5156and BufferFields incorrectly returned the parent object, not the actual
5157value of the object. After this change, a dereference of a FieldUnit
5158reference results in a read operation on the field to get the value, and
5159likewise, the appropriate BufferField value is extracted from the target
5160buffer.
5161
5162Fixed a problem where the _WAK method could cause a fault under these
5163circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK
5164method returned no value. The problem is rarely seen because most kernels
5165run ACPICA in slack mode.
5166
5167For the DerefOf operator, a fatal error now results if an attempt is made
5168to dereference a reference (created by the Index operator) to a NULL
5169package element. Provides compatibility with other ACPI implementations,
5170and this behavior will be added to a future version of the ACPI
5171specification.
5172
5173The ACPI Power Management Timer (defined in the FADT) is now optional.
5174This provides compatibility with other ACPI implementations and will
5175appear in the next version of the ACPI specification. If there is no PM
5176Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of
5177zero in the FADT indicates no PM timer.
5178
5179Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This
5180allows the host to globally enable/disable all vendor strings, all
5181feature strings, or both. Intended to be primarily used for debugging
5182purposes only. Lv Zheng.
5183
5184Expose the collected _OSI data to the host via a global variable. This
5185data tracks the highest level vendor ID that has been invoked by the BIOS
5186so that the host (and potentially ACPICA itself) can change behaviors
5187based upon the age of the BIOS.
5188
5189Example Code and Data Size: These are the sizes for the OS-independent
5190acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5191debug version of the code includes the debug output trace mechanism and
5192has a much larger code and data size.
5193
5194  Current Release:
5195    Non-Debug Version:  96.2K Code, 27.1K Data, 123.3K Total
5196    Debug Version:     184.4K Code, 76.8K Data, 261.2K Total
5197  Previous Release:
5198    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5199    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5200
5201
52022) iASL Compiler/Disassembler and Tools:
5203
5204iASL: Created the following enhancements for the -so option (create
5205offset table):
52061)Add offsets for the last nameseg in each namepath for every supported
5207object type
52082)Add support for Processor, Device, Thermal Zone, and Scope objects
52093)Add the actual AML opcode for the parent object of every supported
5210object type
52114)Add support for the ZERO/ONE/ONES AML opcodes for integer objects
5212
5213Disassembler: Emit all unresolved external symbols in a single block.
5214These are external references to control methods that could not be
5215resolved, and thus, the disassembler had to make a guess at the number of
5216arguments to parse.
5217
5218iASL: The argument to the -T option (create table template) is now
5219optional. If not specified, the default table is a DSDT, typically the
5220most common case.
5221
5222----------------------------------------
522326 June 2013. Summary of changes for version 20130626:
5224
52251) ACPICA kernel-resident subsystem:
5226
5227Fixed an issue with runtime repair of the _CST object. Null or invalid
5228elements were not always removed properly. Lv Zheng.
5229
5230Removed an arbitrary restriction of 256 GPEs per GPE block (such as the
5231FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,
5232the maximum number of GPEs is 1016. Use of multiple GPE block devices
5233makes the system-wide number of GPEs essentially unlimited.
5234
5235Example Code and Data Size: These are the sizes for the OS-independent
5236acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5237debug version of the code includes the debug output trace mechanism and
5238has a much larger code and data size.
5239
5240  Current Release:
5241    Non-Debug Version:  95.9K Code, 26.9K Data, 122.8K Total
5242    Debug Version:     184.1K Code, 76.7K Data, 260.8K Total
5243  Previous Release:
5244    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5245    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5246
5247
52482) iASL Compiler/Disassembler and Tools:
5249
5250Portable AcpiDump: Implemented full support for the Linux and FreeBSD
5251hosts. Now supports Linux, FreeBSD, and Windows.
5252
5253Disassembler: Added some missing types for the HEST and EINJ tables: "Set
5254Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".
5255
5256iASL/Preprocessor: Implemented full support for nested
5257#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.
5258
5259Disassembler: Expanded maximum output string length to 64K. Was 256 bytes
5260max. The original purpose of this constraint was to limit the amount of
5261debug output. However, the string function in question (UtPrintString) is
5262now used for the disassembler also, where 256 bytes is insufficient.
5263Reported by RehabMan@GitHub.
5264
5265iASL/DataTables: Fixed some problems and issues with compilation of DMAR
5266tables. ACPICA BZ 999. Lv Zheng.
5267
5268iASL: Fixed a couple of error exit issues that could result in a "Could
5269not delete <file>" message during ASL compilation.
5270
5271AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though
5272the actual signatures for these tables are "FACP" and "APIC",
5273respectively.
5274
5275AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI
5276tables are allowed to have multiple instances.
5277
5278----------------------------------------
527917 May 2013. Summary of changes for version 20130517:
5280
52811) ACPICA kernel-resident subsystem:
5282
5283Fixed a regression introduced in version 20130328 for _INI methods. This
5284change fixes a problem introduced in 20130328 where _INI methods are no
5285longer executed properly because of a memory block that was not
5286initialized correctly. ACPICA BZ 1016. Tomasz Nowicki
5287<tomasz.nowicki@linaro.org>.
5288
5289Fixed a possible problem with the new extended sleep registers in the
5290ACPI
52915.0 FADT. Do not use these registers (even if populated) unless the HW-
5292reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ
52931020. Lv Zheng.
5294
5295Implemented return value repair code for _CST predefined objects: Sort
5296the
5297list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.
5298
5299Implemented a debug-only option to disable loading of SSDTs from the
5300RSDT/XSDT during ACPICA initialization. This can be useful for debugging
5301ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in
5302acglobal.h - ACPICA BZ 1005. Lv Zheng.
5303
5304Fixed some issues in the ACPICA initialization and termination code:
5305Tomasz Nowicki <tomasz.nowicki@linaro.org>
53061) Clear events initialized flag upon event component termination. ACPICA
5307BZ 1013.
53082) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.
53093) Delete global lock pending lock during termination. ACPICA BZ 1012.
53104) Clear debug buffer global on termination to prevent possible multiple
5311delete. ACPICA BZ 1010.
5312
5313Standardized all switch() blocks across the entire source base. After
5314many
5315years, different formatting for switch() had crept in. This change makes
5316the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.
5317
5318Split some files to enhance ACPICA modularity and configurability:
53191) Split buffer dump routines into utilities/utbuffer.c
53202) Split internal error message routines into utilities/uterror.c
53213) Split table print utilities into tables/tbprint.c
53224) Split iASL command-line option processing into asloptions.c
5323
5324Makefile enhancements:
53251) Support for all new files above.
53262) Abort make on errors from any subcomponent. Chao Guan.
53273) Add build support for Apple Mac OS X. Liang Qi.
5328
5329Example Code and Data Size: These are the sizes for the OS-independent
5330acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5331debug version of the code includes the debug output trace mechanism and
5332has a much larger code and data size.
5333
5334  Current Release:
5335    Non-Debug Version:  96.0K Code, 27.0K Data, 123.0K Total
5336    Debug Version:     184.1K Code, 76.8K Data, 260.9K Total
5337  Previous Release:
5338    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5339    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5340
5341
53422) iASL Compiler/Disassembler and Tools:
5343
5344New utility: Implemented an easily portable version of the acpidump
5345utility to extract ACPI tables from the system (or a file) in an ASCII
5346hex
5347dump format. The top-level code implements the various command line
5348options, file I/O, and table dump routines. To port to a new host, only
5349three functions need to be implemented to get tables -- since this
5350functionality is OS-dependent. See the tools/acpidump/apmain.c module and
5351the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:
53521) The Windows version obtains the ACPI tables from the Registry.
53532) The Linux version is under development.
53543) Other hosts - If an OS-dependent module is submitted, it will be
5355distributed with ACPICA.
5356
5357iASL: Fixed a regression for -D preprocessor option (define symbol). A
5358restructuring/change to the initialization sequence caused this option to
5359no longer work properly.
5360
5361iASL: Implemented a mechanism to disable specific warnings and remarks.
5362Adds a new command line option, "-vw <messageid> as well as "#pragma
5363disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.
5364
5365iASL: Fix for too-strict package object validation. The package object
5366validation for return values from the predefined names is a bit too
5367strict, it does not allow names references within the package (which will
5368be resolved at runtime.) These types of references cannot be validated at
5369compile time. This change ignores named references within package objects
5370for names that return or define static packages.
5371
5372Debugger: Fixed the 80-character command line limitation for the History
5373command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.
5374
5375iASL: Added control method and package support for the -so option
5376(generates AML offset table for BIOS support.)
5377
5378iASL: issue a remark if a non-serialized method creates named objects. If
5379a thread blocks within the method for any reason, and another thread
5380enters the method, the method will fail because an attempt will be made
5381to
5382create the same (named) object twice. In this case, issue a remark that
5383the method should be marked serialized. NOTE: may become a warning later.
5384ACPICA BZ 909.
5385
5386----------------------------------------
538718 April 2013. Summary of changes for version 20130418:
5388
53891) ACPICA kernel-resident subsystem:
5390
5391Fixed a possible buffer overrun during some rare but specific field unit
5392read operations. This overrun can only happen if the DSDT version is 1 --
5393meaning that all AML integers are 32 bits -- and the field length is
5394between 33 and 55 bits long. During the read, an internal buffer object
5395is
5396created for the field unit because the field is larger than an integer
5397(32
5398bits). However, in this case, the buffer will be incorrectly written
5399beyond the end because the buffer length is less than the internal
5400minimum
5401of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes
5402long, but a full 8 bytes will be written.
5403
5404Updated the Embedded Controller "orphan" _REG method support. This refers
5405to _REG methods under the EC device that have no corresponding operation
5406region. This is allowed by the ACPI specification. This update removes a
5407dependency on the existence an ECDT table. It will execute an orphan _REG
5408method as long as the operation region handler for the EC is installed at
5409the EC device node and not the namespace root. Rui Zhang (original
5410update), Bob Moore (update/integrate).
5411
5412Implemented run-time argument typechecking for all predefined ACPI names
5413(_STA, _BIF, etc.) This change performs object typechecking on all
5414incoming arguments for all predefined names executed via
5415AcpiEvaluateObject. This ensures that ACPI-related device drivers are
5416passing correct object types as well as the correct number of arguments
5417(therefore identifying any issues immediately). Also, the ASL/namespace
5418definition of the predefined name is checked against the ACPI
5419specification for the proper argument count. Adds one new file,
5420nsarguments.c
5421
5422Changed an exception code for the ASL UnLoad() operator. Changed the
5423exception code for the case where the input DdbHandle is invalid, from
5424AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.
5425
5426Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the
5427global makefile. The use of this flag causes compiler errors on earlier
5428versions of GCC, so it has been removed for compatibility.
5429
5430Miscellaneous cleanup:
54311) Removed some unused/obsolete macros
54322) Fixed a possible memory leak in the _OSI support
54333) Removed an unused variable in the predefined name support
54344) Windows OSL: remove obsolete reference to a memory list field
5435
5436Example Code and Data Size: These are the sizes for the OS-independent
5437acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5438debug version of the code includes the debug output trace mechanism and
5439has a much larger code and data size.
5440
5441  Current Release:
5442    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5443    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5444  Previous Release:
5445    Non-Debug Version:  95.6K Code, 26.8K Data, 122.4K Total
5446    Debug Version:     183.5K Code, 76.6K Data, 260.1K Total
5447
5448
54492) iASL Compiler/Disassembler and Tools:
5450
5451AcpiExec: Added installation of a handler for the SystemCMOS address
5452space. This prevents control method abort if a method accesses this
5453space.
5454
5455AcpiExec: Added support for multiple EC devices, and now install EC
5456operation region handler(s) at the actual EC device instead of the
5457namespace root. This reflects the typical behavior of host operating
5458systems.
5459
5460AcpiExec: Updated to ensure that all operation region handlers are
5461installed before the _REG methods are executed. This prevents a _REG
5462method from aborting if it accesses an address space has no handler.
5463AcpiExec installs a handler for every possible address space.
5464
5465Debugger: Enhanced the "handlers" command to display non-root handlers.
5466This change enhances the handlers command to display handlers associated
5467with individual devices throughout the namespace, in addition to the
5468currently supported display of handlers associated with the root
5469namespace
5470node.
5471
5472ASL Test Suite: Several test suite errors have been identified and
5473resolved, reducing the total error count during execution. Chao Guan.
5474
5475----------------------------------------
547628 March 2013. Summary of changes for version 20130328:
5477
54781) ACPICA kernel-resident subsystem:
5479
5480Fixed several possible race conditions with the internal object reference
5481counting mechanism. Some of the external ACPICA interfaces update object
5482reference counts without holding the interpreter or namespace lock. This
5483change adds a spinlock to protect reference count updates on the internal
5484ACPICA objects. Reported by and with assistance from Andriy Gapon
5485(avg@FreeBSD.org).
5486
5487FADT support: Removed an extraneous warning for very large GPE register
5488sets. This change removes a size mismatch warning if the legacy length
5489field for a GPE register set is larger than the 64-bit GAS structure can
5490accommodate. GPE register sets can be larger than the 255-bit width
5491limitation of the GAS structure. Linn Crosetto (linn@hp.com).
5492
5493_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error
5494return from this interface. Handles a possible timeout case if
5495ACPI_WAIT_FOREVER is modified by the host to be a value less than
5496"forever". Jung-uk Kim.
5497
5498Predefined name support: Add allowed/required argument type information
5499to
5500the master predefined info table. This change adds the infrastructure to
5501enable typechecking on incoming arguments for all predefined
5502methods/objects. It does not actually contain the code that will fully
5503utilize this information, this is still under development. Also condenses
5504some duplicate code for the predefined names into a new module,
5505utilities/utpredef.c
5506
5507Example Code and Data Size: These are the sizes for the OS-independent
5508acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5509debug version of the code includes the debug output trace mechanism and
5510has a much larger code and data size.
5511
5512  Previous Release:
5513    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5514    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5515  Current Release:
5516    Non-Debug Version:  95.2K Code, 26.4K Data, 121.6K Total
5517    Debug Version:     183.0K Code, 76.0K Data, 259.0K Total
5518
5519
55202) iASL Compiler/Disassembler and Tools:
5521
5522iASL: Implemented a new option to simplify the development of ACPI-
5523related
5524BIOS code. Adds support for a new "offset table" output file. The -so
5525option will create a C table containing the AML table offsets of various
5526named objects in the namespace so that BIOS code can modify them easily
5527at
5528boot time. This can simplify BIOS runtime code by eliminating expensive
5529searches for "magic values", enhancing boot times and adding greater
5530reliability. With assistance from Lee Hamel.
5531
5532iASL: Allow additional predefined names to return zero-length packages.
5533Now, all predefined names that are defined by the ACPI specification to
5534return a "variable-length package of packages" are allowed to return a
5535zero length top-level package. This allows the BIOS to tell the host that
5536the requested feature is not supported, and supports existing BIOS/ASL
5537code and practices.
5538
5539iASL: Changed the "result not used" warning to an error. This is the case
5540where an ASL operator is effectively a NOOP because the result of the
5541operation is not stored anywhere. For example:
5542    Add (4, Local0)
5543There is no target (missing 3rd argument), nor is the function return
5544value used. This is potentially a very serious problem -- since the code
5545was probably intended to do something, but for whatever reason, the value
5546was not stored. Therefore, this issue has been upgraded from a warning to
5547an error.
5548
5549AcpiHelp: Added allowable/required argument types to the predefined names
5550info display. This feature utilizes the recent update to the predefined
5551names table (above).
5552
5553----------------------------------------
555414 February 2013. Summary of changes for version 20130214:
5555
55561) ACPICA Kernel-resident Subsystem:
5557
5558Fixed a possible regression on some hosts: Reinstated the safe return
5559macros (return_ACPI_STATUS, etc.) that ensure that the argument is
5560evaluated only once. Although these macros are not needed for the ACPICA
5561code itself, they are often used by ACPI-related host device drivers
5562where
5563the safe feature may be necessary.
5564
5565Fixed several issues related to the ACPI 5.0 reduced hardware support
5566(SOC): Now ensure that if the platform declares itself as hardware-
5567reduced
5568via the FADT, the following functions become NOOPs (and always return
5569AE_OK) because ACPI is always enabled by definition on these machines:
5570  AcpiEnable
5571  AcpiDisable
5572  AcpiHwGetMode
5573  AcpiHwSetMode
5574
5575Dynamic Object Repair: Implemented additional runtime repairs for
5576predefined name return values. Both of these repairs can simplify code in
5577the related device drivers that invoke these methods:
55781) For the _STR and _MLS names, automatically repair/convert an ASCII
5579string to a Unicode buffer.
55802) For the _CRS, _PRS, and _DMA names, return a resource descriptor with
5581a
5582lone end tag descriptor in the following cases: A Return(0) was executed,
5583a null buffer was returned, or no object at all was returned (non-slack
5584mode only). Adds a new file, nsconvert.c
5585ACPICA BZ 998. Bob Moore, Lv Zheng.
5586
5587Resource Manager: Added additional code to prevent possible infinite
5588loops
5589while traversing corrupted or ill-formed resource template buffers. Check
5590for zero-length resource descriptors in all code that loops through
5591resource templates (the length field is used to index through the
5592template). This change also hardens the external AcpiWalkResources and
5593AcpiWalkResourceBuffer interfaces.
5594
5595Local Cache Manager: Enhanced the main data structure to eliminate an
5596unnecessary mechanism to access the next object in the list. Actually
5597provides a small performance enhancement for hosts that use the local
5598ACPICA cache manager. Jung-uk Kim.
5599
5600Example Code and Data Size: These are the sizes for the OS-independent
5601acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5602debug version of the code includes the debug output trace mechanism and
5603has a much larger code and data size.
5604
5605  Previous Release:
5606    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5607    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5608  Current Release:
5609    Non-Debug Version:  95.0K Code, 25.9K Data, 120.9K Total
5610    Debug Version:     182.9K Code, 75.6K Data, 258.5K Total
5611
5612
56132) iASL Compiler/Disassembler and Tools:
5614
5615iASL/Disassembler: Fixed several issues with the definition of the ACPI
56165.0 RASF table (RAS Feature Table). This change incorporates late changes
5617that were made to the ACPI 5.0 specification.
5618
5619iASL/Disassembler: Added full support for the following new ACPI tables:
5620  1) The MTMR table (MID Timer Table)
5621  2) The VRTC table (Virtual Real Time Clock Table).
5622Includes header file, disassembler, table compiler, and template support
5623for both tables.
5624
5625iASL: Implemented compile-time validation of package objects returned by
5626predefined names. This new feature validates static package objects
5627returned by the various predefined names defined to return packages. Both
5628object types and package lengths are validated, for both parent packages
5629and sub-packages, if any. The code is similar in structure and behavior
5630to
5631the runtime repair mechanism within the AML interpreter and uses the
5632existing predefined name information table. Adds a new file, aslprepkg.c.
5633ACPICA BZ 938.
5634
5635iASL: Implemented auto-detection of binary ACPI tables for disassembly.
5636This feature detects a binary file with a valid ACPI table header and
5637invokes the disassembler automatically. Eliminates the need to
5638specifically invoke the disassembler with the -d option. ACPICA BZ 862.
5639
5640iASL/Disassembler: Added several warnings for the case where there are
5641unresolved control methods during the disassembly. This can potentially
5642cause errors when the output file is compiled, because the disassembler
5643assumes zero method arguments in these cases (it cannot determine the
5644actual number of arguments without resolution/definition of the method).
5645
5646Debugger: Added support to display all resources with a single command.
5647Invocation of the resources command with no arguments will now display
5648all
5649resources within the current namespace.
5650
5651AcpiHelp: Added descriptive text for each ACPICA exception code displayed
5652via the -e option.
5653
5654----------------------------------------
565517 January 2013. Summary of changes for version 20130117:
5656
56571) ACPICA Kernel-resident Subsystem:
5658
5659Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to
5660return either 1 or 2 integers. Although the ACPI spec defines the \_Sx
5661objects to return a package containing one integer, most BIOS code
5662returns
5663two integers and the previous code reflects that. However, we also need
5664to
5665support BIOS code that actually implements to the ACPI spec, and this
5666change reflects this.
5667
5668Fixed two issues with the ACPI_DEBUG_PRINT macros:
56691) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for
5670C compilers that require this support.
56712) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since
5672ACPI_DEBUG is already used by many of the various hosts.
5673
5674Updated all ACPICA copyrights and signons to 2013. Added the 2013
5675copyright to all module headers and signons, including the standard Linux
5676header. This affects virtually every file in the ACPICA core subsystem,
5677iASL compiler, all ACPICA utilities, and the test suites.
5678
5679Example Code and Data Size: These are the sizes for the OS-independent
5680acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5681debug version of the code includes the debug output trace mechanism and
5682has a much larger code and data size.
5683
5684  Previous Release:
5685    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5686    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5687  Current Release:
5688    Non-Debug Version:  94.5K Code, 25.4K Data, 119.9K Total
5689    Debug Version:     182.3K Code, 75.0K Data, 257.3K Total
5690
5691
56922) iASL Compiler/Disassembler and Tools:
5693
5694Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and
5695prevent a possible fault on some hosts. Some C libraries modify the arg
5696pointer parameter to vfprintf making it difficult to call it twice in the
5697AcpiOsVprintf function. Use a local buffer to workaround this issue. This
5698does not affect the Windows OSL since the Win C library does not modify
5699the arg pointer. Chao Guan, Bob Moore.
5700
5701iASL: Fixed a possible infinite loop when the maximum error count is
5702reached. If an output file other than the .AML file is specified (such as
5703a listing file), and the maximum number of errors is reached, do not
5704attempt to flush data to the output file(s) as the compiler is aborting.
5705This can cause an infinite loop as the max error count code essentially
5706keeps calling itself.
5707
5708iASL/Disassembler: Added an option (-in) to ignore NOOP
5709opcodes/operators.
5710Implemented for both the compiler and the disassembler. Often, the NOOP
5711opcode is used as padding for packages that are changed dynamically by
5712the
5713BIOS. When disassembled and recompiled, these NOOPs will cause syntax
5714errors. This option causes the disassembler to ignore all NOOP opcodes
5715(0xA3), and it also causes the compiler to ignore all ASL source code
5716NOOP
5717statements as well.
5718
5719Debugger: Enhanced the Sleep command to execute all sleep states. This
5720change allows Sleep to be invoked with no arguments and causes the
5721debugger to execute all of the sleep states, 0-5, automatically.
5722
5723----------------------------------------
572420 December 2012. Summary of changes for version 20121220:
5725
57261) ACPICA Kernel-resident Subsystem:
5727
5728Implemented a new interface, AcpiWalkResourceBuffer. This interface is an
5729alternate entry point for AcpiWalkResources and improves the usability of
5730the resource manager by accepting as input a buffer containing the output
5731of either a _CRS, _PRS, or _AEI method. The key functionality is that the
5732input buffer is not deleted by this interface so that it can be used by
5733the host later. See the ACPICA reference for details.
5734
5735Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table
5736(DSDT version < 2). The constant will be truncated and this warning
5737reflects that behavior.
5738
5739Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,
5740ExtendedInterrupt, and GpioInt descriptors. This change adds support to
5741both get and set the new wake bit in these descriptors, separately from
5742the existing share bit. Reported by Aaron Lu.
5743
5744Interpreter: Fix Store() when an implicit conversion is not possible. For
5745example, in the cases such as a store of a string to an existing package
5746object, implement the store as a CopyObject(). This is a small departure
5747from the ACPI specification which states that the control method should
5748be
5749aborted in this case. However, the ASLTS suite depends on this behavior.
5750
5751Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT
5752macros: check if debug output is currently enabled as soon as possible to
5753minimize performance impact if debug is in fact not enabled.
5754
5755Source code restructuring: Cleanup to improve modularity. The following
5756new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,
5757psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.
5758Associated makefiles and project files have been updated.
5759
5760Changed an exception code for LoadTable operator. For the case where one
5761of the input strings is too long, change the returned exception code from
5762AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.
5763
5764Fixed a possible memory leak in dispatcher error path. On error, delete
5765the mutex object created during method mutex creation. Reported by
5766tim.gardner@canonical.com.
5767
5768Example Code and Data Size: These are the sizes for the OS-independent
5769acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5770debug version of the code includes the debug output trace mechanism and
5771has a much larger code and data size.
5772
5773  Previous Release:
5774    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5775    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5776  Current Release:
5777    Non-Debug Version:  94.5K Code, 25.5K Data, 120.0K Total
5778    Debug Version:     182.2K Code, 74.9K Data, 257.1K Total
5779
5780
57812) iASL Compiler/Disassembler and Tools:
5782
5783iASL: Disallow a method call as argument to the ObjectType ASL operator.
5784This change tracks an errata to the ACPI 5.0 document. The AML grammar
5785will not allow the interpreter to differentiate between a method and a
5786method invocation when these are used as an argument to the ObjectType
5787operator. The ACPI specification change is to disallow a method
5788invocation
5789(UserTerm) for the ObjectType operator.
5790
5791Finish support for the TPM2 and CSRT tables in the headers, table
5792compiler, and disassembler.
5793
5794Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout
5795always expires immediately if the semaphore is not available. The
5796original
5797code was using a relative-time timeout, but sem_timedwait requires the
5798use
5799of an absolute time.
5800
5801iASL: Added a remark if the Timer() operator is used within a 32-bit
5802table. This operator returns a 64-bit time value that will be truncated
5803within a 32-bit table.
5804
5805iASL Source code restructuring: Cleanup to improve modularity. The
5806following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,
5807aslmethod.c, and aslfileio.c. Associated makefiles and project files have
5808been updated.
5809
5810
5811----------------------------------------
581214 November 2012. Summary of changes for version 20121114:
5813
58141) ACPICA Kernel-resident Subsystem:
5815
5816Implemented a performance enhancement for ACPI/AML Package objects. This
5817change greatly increases the performance of Package objects within the
5818interpreter. It changes the processing of reference counts for packages
5819by
5820optimizing for the most common case where the package sub-objects are
5821either Integers, Strings, or Buffers. Increases the overall performance
5822of
5823the ASLTS test suite by 1.5X (Increases the Slack Mode performance by
58242X.)
5825Chao Guan. ACPICA BZ 943.
5826
5827Implemented and deployed common macros to extract flag bits from resource
5828descriptors. Improves readability and maintainability of the code. Fixes
5829a
5830problem with the UART serial bus descriptor for the number of data bits
5831flags (was incorrectly 2 bits, should be 3).
5832
5833Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation
5834of the macros and changed the SETx macros to the style of (destination,
5835source). Also added ACPI_CASTx companion macros. Lv Zheng.
5836
5837Example Code and Data Size: These are the sizes for the OS-independent
5838acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5839debug version of the code includes the debug output trace mechanism and
5840has a much larger code and data size.
5841
5842  Previous Release:
5843    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
5844    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5845  Current Release:
5846    Non-Debug Version:  94.3K Code, 25.3K Data, 119.6K Total
5847    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5848
5849
58502) iASL Compiler/Disassembler and Tools:
5851
5852Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change
5853adds the ShareAndWake and ExclusiveAndWake flags which were added to the
5854Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.
5855
5856Disassembler: Fixed a problem with external declaration generation. Fixes
5857a problem where an incorrect pathname could be generated for an external
5858declaration if the original reference to the object includes leading
5859carats (^). ACPICA BZ 984.
5860
5861Debugger: Completed a major update for the Disassemble<method> command.
5862This command was out-of-date and did not properly disassemble control
5863methods that had any reasonable complexity. This fix brings the command
5864up
5865to the same level as the rest of the disassembler. Adds one new file,
5866dmdeferred.c, which is existing code that is now common with the main
5867disassembler and the debugger disassemble command. ACPICA MZ 978.
5868
5869iASL: Moved the parser entry prototype to avoid a duplicate declaration.
5870Newer versions of Bison emit this prototype, so moved the prototype out
5871of
5872the iASL header to where it is actually used in order to avoid a
5873duplicate
5874declaration.
5875
5876iASL/Tools: Standardized use of the stream I/O functions:
5877  1) Ensure check for I/O error after every fopen/fread/fwrite
5878  2) Ensure proper order of size/count arguments for fread/fwrite
5879  3) Use test of (Actual != Requested) after all fwrite, and most fread
5880  4) Standardize I/O error messages
5881Improves reliability and maintainability of the code. Bob Moore, Lv
5882Zheng.
5883ACPICA BZ 981.
5884
5885Disassembler: Prevent duplicate External() statements. During generation
5886of external statements, detect similar pathnames that are actually
5887duplicates such as these:
5888  External (\ABCD)
5889  External (ABCD)
5890Remove all leading '\' characters from pathnames during the external
5891statement generation so that duplicates will be detected and tossed.
5892ACPICA BZ 985.
5893
5894Tools: Replace low-level I/O with stream I/O functions. Replace
5895open/read/write/close with the stream I/O equivalents
5896fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob
5897Moore.
5898
5899AcpiBin: Fix for the dump-to-hex function. Now correctly output the table
5900name header so that AcpiXtract recognizes the output file/table.
5901
5902iASL: Remove obsolete -2 option flag. Originally intended to force the
5903compiler/disassembler into an ACPI 2.0 mode, this was never implemented
5904and the entire concept is now obsolete.
5905
5906----------------------------------------
590718 October 2012. Summary of changes for version 20121018:
5908
5909
59101) ACPICA Kernel-resident Subsystem:
5911
5912Updated support for the ACPI 5.0 MPST table. Fixes some problems
5913introduced by late changes to the table as it was added to the ACPI 5.0
5914specification. Includes header, disassembler, and data table compiler
5915support as well as a new version of the MPST template.
5916
5917AcpiGetObjectInfo: Enhanced the device object support to include the ACPI
59185.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID
5919methods: _HID, _CID, and _UID.
5920
5921Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed
5922ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent
5923name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)
5924names for their various drivers. Affects the AcpiGetObjectInfo external
5925interface, and other internal interfaces as well.
5926
5927Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.
5928This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME
5929on machines that support non-aligned transfers. Optimizes for this case
5930rather than using a strncpy. With assistance from Zheng Lv.
5931
5932Resource Manager: Small fix for buffer size calculation. Fixed a one byte
5933error in the output buffer calculation. Feng Tang. ACPICA BZ 849.
5934
5935Added a new debug print message for AML mutex objects that are force-
5936released. At control method termination, any currently acquired mutex
5937objects are force-released. Adds a new debug-only message for each one
5938that is released.
5939
5940Audited/updated all ACPICA return macros and the function debug depth
5941counter: 1) Ensure that all functions that use the various TRACE macros
5942also use the appropriate ACPICA return macros. 2) Ensure that all normal
5943return statements surround the return expression (value) with parens to
5944ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,
5945Zheng Lv, Bob Moore. ACPICA Bugzilla 972.
5946
5947Global source code changes/maintenance: All extra lines at the start and
5948end of each source file have been removed for consistency. Also, within
5949comments, all new sentences start with a single space instead of a double
5950space, again for consistency across the code base.
5951
5952Example Code and Data Size: These are the sizes for the OS-independent
5953acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
5954debug version of the code includes the debug output trace mechanism and
5955has a much larger code and data size.
5956
5957  Previous Release:
5958    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
5959    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
5960  Current Release:
5961    Non-Debug Version:  93.9K Code, 25.2K Data, 119.1K Total
5962    Debug Version:     175.5K Code, 74.5K Data, 250.0K Total
5963
5964
59652) iASL Compiler/Disassembler and Tools:
5966
5967AcpiExec: Improved the algorithm used for memory leak/corruption
5968detection. Added some intelligence to the code that maintains the global
5969list of allocated memory. The list is now ordered by allocated memory
5970address, significantly improving performance. When running AcpiExec on
5971the ASLTS test suite, speed improvements of 3X to 5X are seen, depending
5972on the platform and/or the environment. Note, this performance
5973enhancement affects the AcpiExec utility only, not the kernel-resident
5974ACPICA code.
5975
5976Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For
5977the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix
5978incorrect table offset reported for invalid opcodes. Report the original
597932-bit value for bad ACPI_NAMEs (as well as the repaired name.)
5980
5981Disassembler: Enhanced the -vt option to emit the binary table data in
5982hex format to assist with debugging.
5983
5984Fixed a potential filename buffer overflow in osunixdir.c. Increased the
5985size of file structure. Colin Ian King.
5986
5987----------------------------------------
598813 September 2012. Summary of changes for version 20120913:
5989
5990
59911) ACPICA Kernel-resident Subsystem:
5992
5993ACPI 5.0: Added two new notify types for the Hardware Error Notification
5994Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)
5995and
5996MCE(6).
5997
5998Table Manager: Merged/removed duplicate code in the root table resize
5999functions. One function is external, the other is internal. Lv Zheng,
6000ACPICA
6001BZ 846.
6002
6003Makefiles: Completely removed the obsolete "Linux" makefiles under
6004acpica/generate/linux. These makefiles are obsolete and have been
6005replaced
6006by
6007the generic unix makefiles under acpica/generate/unix.
6008
6009Makefiles: Ensure that binary files always copied properly. Minor rule
6010change
6011to ensure that the final binary output files are always copied up to the
6012appropriate binary directory (bin32 or bin64.)
6013
6014Example Code and Data Size: These are the sizes for the OS-independent
6015acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6016debug
6017version of the code includes the debug output trace mechanism and has a
6018much
6019larger code and data size.
6020
6021  Previous Release:
6022    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6023    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6024  Current Release:
6025    Non-Debug Version:  93.7K Code, 25.3K Data, 119.0K Total
6026    Debug Version:     175.0K Code, 74.4K Data, 249.4K Total
6027
6028
60292) iASL Compiler/Disassembler and Tools:
6030
6031Disassembler: Fixed a possible fault during the disassembly of resource
6032descriptors when a second parse is required because of the invocation of
6033external control methods within the table. With assistance from
6034adq@lidskialf.net. ACPICA BZ 976.
6035
6036iASL: Fixed a namepath optimization problem. An error can occur if the
6037parse
6038node that contains the namepath to be optimized does not have a parent
6039node
6040that is a named object. This change fixes the problem.
6041
6042iASL: Fixed a regression where the AML file is not deleted on errors. The
6043AML
6044output file should be deleted if there are any errors during the
6045compiler.
6046The
6047only exception is if the -f (force output) option is used. ACPICA BZ 974.
6048
6049iASL: Added a feature to automatically increase internal line buffer
6050sizes.
6051Via realloc(), automatically increase the internal line buffer sizes as
6052necessary to support very long source code lines. The current version of
6053the
6054preprocessor requires a buffer long enough to contain full source code
6055lines.
6056This change increases the line buffer(s) if the input lines go beyond the
6057current buffer size. This eliminates errors that occurred when a source
6058code
6059line was longer than the buffer.
6060
6061iASL: Fixed a problem with constant folding in method declarations. The
6062SyncLevel term is a ByteConstExpr, and incorrect code would be generated
6063if a
6064Type3 opcode was used.
6065
6066Debugger: Improved command help support. For incorrect argument count,
6067display
6068full help for the command. For help command itself, allow an argument to
6069specify a command.
6070
6071Test Suites: Several bug fixes for the ASLTS suite reduces the number of
6072errors during execution of the suite. Guan Chao.
6073
6074----------------------------------------
607516 August 2012. Summary of changes for version 20120816:
6076
6077
60781) ACPICA Kernel-resident Subsystem:
6079
6080Removed all use of the deprecated _GTS and _BFS predefined methods. The
6081_GTS
6082(Going To Sleep) and _BFS (Back From Sleep) methods are essentially
6083deprecated and will probably be removed from the ACPI specification.
6084Windows
6085does not invoke them, and reportedly never will. The final nail in the
6086coffin
6087is that the ACPI specification states that these methods must be run with
6088interrupts off, which is not going to happen in a kernel interpreter.
6089Note:
6090Linux has removed all use of the methods also. It was discovered that
6091invoking these functions caused failures on some machines, probably
6092because
6093they were never tested since Windows does not call them. Affects two
6094external
6095interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.
6096ACPICA BZ 969.
6097
6098Implemented support for complex bit-packed buffers returned from the _PLD
6099(Physical Location of Device) predefined method. Adds a new external
6100interface, AcpiDecodePldBuffer that parses the buffer into a more usable
6101C
6102structure. Note: C Bitfields cannot be used for this type of predefined
6103structure since the memory layout of individual bitfields is not defined
6104by
6105the C language. In addition, there are endian concerns where a compiler
6106will
6107change the bitfield ordering based on the machine type. The new ACPICA
6108interface eliminates these issues, and should be called after _PLD is
6109executed. ACPICA BZ 954.
6110
6111Implemented a change to allow a scope change to root (via "Scope (\)")
6112during
6113execution of module-level ASL code (code that is executed at table load
6114time.) Lin Ming.
6115
6116Added the Windows8/Server2012 string for the _OSI method. This change
6117adds
6118a
6119new _OSI string, "Windows 2012" for both Windows 8 and Windows Server
61202012.
6121
6122Added header support for the new ACPI tables DBG2 (Debug Port Table Type
61232)
6124and CSRT (Core System Resource Table).
6125
6126Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined
6127names. This simplifies access to the buffers returned by these predefined
6128names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.
6129
6130GPE support: Removed an extraneous parameter from the various low-level
6131internal GPE functions. Tang Feng.
6132
6133Removed the linux makefiles from the unix packages. The generate/linux
6134makefiles are obsolete and have been removed from the unix tarball
6135release
6136packages. The replacement makefiles are under generate/unix, and there is
6137a
6138top-level makefile under the main acpica directory. ACPICA BZ 967, 912.
6139
6140Updates for Unix makefiles:
61411) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.
61422) Update linker flags (move to end of command line) for AcpiExec
6143utility.
6144Guan Chao.
6145
6146Split ACPICA initialization functions to new file, utxfinit.c. Split from
6147utxface.c to improve modularity and reduce file size.
6148
6149Example Code and Data Size: These are the sizes for the OS-independent
6150acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6151debug version of the code includes the debug output trace mechanism and
6152has a
6153much larger code and data size.
6154
6155  Previous Release:
6156    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6157    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6158  Current Release:
6159    Non-Debug Version:  93.8K Code, 25.3K Data, 119.1K Total
6160    Debug Version:     175.7K Code, 74.8K Data, 250.5K Total
6161
6162
61632) iASL Compiler/Disassembler and Tools:
6164
6165iASL: Fixed a problem with constant folding for fixed-length constant
6166expressions. The constant-folding code was not being invoked for constant
6167expressions that allow the use of type 3/4/5 opcodes to generate
6168constants
6169for expressions such as ByteConstExpr, WordConstExpr, etc. This could
6170result
6171in the generation of invalid AML bytecode. ACPICA BZ 970.
6172
6173iASL: Fixed a generation issue on newer versions of Bison. Newer versions
6174apparently automatically emit some of the necessary externals. This
6175change
6176handles these versions in order to eliminate generation warnings.
6177
6178Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.
6179
6180Disassembler: Add support to decode _PLD buffers. The decoded buffer
6181appears
6182within comments in the output file.
6183
6184Debugger: Fixed a regression with the "Threads" command where
6185AE_BAD_PARAMETER was always returned.
6186
6187----------------------------------------
618811 July 2012. Summary of changes for version 20120711:
6189
61901) ACPICA Kernel-resident Subsystem:
6191
6192Fixed a possible fault in the return package object repair code. Fixes a
6193problem that can occur when a lone package object is wrapped with an
6194outer
6195package object in order to force conformance to the ACPI specification.
6196Can
6197affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,
6198_DLM,
6199_CSD, _PSD, _TSD.
6200
6201Removed code to disable/enable bus master arbitration (ARB_DIS bit in the
6202PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the
6203ARB_DIS bit must be implemented in the host-dependent C3 processor power
6204state
6205support. Note, ARB_DIS is obsolete and only applies to older chipsets,
6206both
6207Intel and other vendors. (for Intel: ICH4-M and earlier)
6208
6209This change removes the code to disable/enable bus master arbitration
6210during
6211suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register
6212causes
6213resume problems on some machines. The change has been in use for over
6214seven
6215years within Linux.
6216
6217Implemented two new external interfaces to support host-directed dynamic
6218ACPI
6219table load and unload. They are intended to simplify the host
6220implementation
6221of hot-plug support:
6222  AcpiLoadTable: Load an SSDT from a buffer into the namespace.
6223  AcpiUnloadParentTable: Unload an SSDT via a named object owned by the
6224table.
6225See the ACPICA reference for additional details. Adds one new file,
6226components/tables/tbxfload.c
6227
6228Implemented and deployed two new interfaces for errors and warnings that
6229are
6230known to be caused by BIOS/firmware issues:
6231  AcpiBiosError: Prints "ACPI Firmware Error" message.
6232  AcpiBiosWarning: Prints "ACPI Firmware Warning" message.
6233Deployed these new interfaces in the ACPICA Table Manager code for ACPI
6234table
6235and FADT errors. Additional deployment to be completed as appropriate in
6236the
6237future. The associated conditional macros are ACPI_BIOS_ERROR and
6238ACPI_BIOS_WARNING. See the ACPICA reference for additional details.
6239ACPICA
6240BZ
6241843.
6242
6243Implicit notify support: ensure that no memory allocation occurs within a
6244critical region. This fix moves a memory allocation outside of the time
6245that a
6246spinlock is held. Fixes issues on systems that do not allow this
6247behavior.
6248Jung-uk Kim.
6249
6250Split exception code utilities and tables into a new file,
6251utilities/utexcep.c
6252
6253Example Code and Data Size: These are the sizes for the OS-independent
6254acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6255debug
6256version of the code includes the debug output trace mechanism and has a
6257much
6258larger code and data size.
6259
6260  Previous Release:
6261    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6262    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6263  Current Release:
6264    Non-Debug Version:  93.5K Code, 25.3K Data, 118.8K Total
6265    Debug Version:     173.7K Code, 74.0K Data, 247.7K Total
6266
6267
62682) iASL Compiler/Disassembler and Tools:
6269
6270iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead
6271of
62720. Jung-uk Kim.
6273
6274Debugger: Enhanced the "tables" command to emit additional information
6275about
6276the current set of ACPI tables, including the owner ID and flags decode.
6277
6278Debugger: Reimplemented the "unload" command to use the new
6279AcpiUnloadParentTable external interface. This command was disable
6280previously
6281due to need for an unload interface.
6282
6283AcpiHelp: Added a new option to decode ACPICA exception codes. The -e
6284option
6285will decode 16-bit hex status codes (ACPI_STATUS) to name strings.
6286
6287----------------------------------------
628820 June 2012. Summary of changes for version 20120620:
6289
6290
62911) ACPICA Kernel-resident Subsystem:
6292
6293Implemented support to expand the "implicit notify" feature to allow
6294multiple
6295devices to be notified by a single GPE. This feature automatically
6296generates a
6297runtime device notification in the absence of a BIOS-provided GPE control
6298method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit
6299notify is
6300provided by ACPICA for Windows compatibility, and is a workaround for
6301BIOS
6302AML
6303code errors. See the description of the AcpiSetupGpeForWake interface in
6304the
6305APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.
6306
6307Changed some comments and internal function names to simplify and ensure
6308correctness of the Linux code translation. No functional changes.
6309
6310Example Code and Data Size: These are the sizes for the OS-independent
6311acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6312debug
6313version of the code includes the debug output trace mechanism and has a
6314much
6315larger code and data size.
6316
6317  Previous Release:
6318    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6319    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6320  Current Release:
6321    Non-Debug Version:  93.1K Code, 25.1K Data, 118.2K Total
6322    Debug Version:     172.9K Code, 73.6K Data, 246.5K Total
6323
6324
63252) iASL Compiler/Disassembler and Tools:
6326
6327Disassembler: Added support to emit short, commented descriptions for the
6328ACPI
6329predefined names in order to improve the readability of the disassembled
6330output. ACPICA BZ 959. Changes include:
6331  1) Emit descriptions for all standard predefined names (_INI, _STA,
6332_PRW,
6333etc.)
6334  2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)
6335  3) Emit descriptions for the resource descriptor names (_MIN, _LEN,
6336etc.)
6337
6338AcpiSrc: Fixed several long-standing Linux code translation issues.
6339Argument
6340descriptions in function headers are now translated properly to lower
6341case
6342and
6343underscores. ACPICA BZ 961. Also fixes translation problems such as
6344these:
6345(old -> new)
6346  i_aSL -> iASL
6347  00-7_f -> 00-7F
6348  16_k -> 16K
6349  local_fADT -> local_FADT
6350  execute_oSI -> execute_OSI
6351
6352iASL: Fixed a problem where null bytes were inadvertently emitted into
6353some
6354listing files.
6355
6356iASL: Added the existing debug options to the standard help screen. There
6357are
6358no longer two different help screens. ACPICA BZ 957.
6359
6360AcpiHelp: Fixed some typos in the various predefined name descriptions.
6361Also
6362expand some of the descriptions where appropriate.
6363
6364iASL: Fixed the -ot option (display compile times/statistics). Was not
6365working
6366properly for standard output; only worked for the debug file case.
6367
6368----------------------------------------
636918 May 2012. Summary of changes for version 20120518:
6370
6371
63721) ACPICA Core Subsystem:
6373
6374Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is
6375defined
6376to block until asynchronous events such as notifies and GPEs have
6377completed.
6378Within ACPICA, it is only called before a notify or GPE handler is
6379removed/uninstalled. It also may be useful for the host OS within related
6380drivers such as the Embedded Controller driver. See the ACPICA reference
6381for
6382additional information. ACPICA BZ 868.
6383
6384ACPI Tables: Added a new error message for a possible overflow failure
6385during
6386the conversion of FADT 32-bit legacy register addresses to internal
6387common
638864-
6389bit GAS structure representation. The GAS has a one-byte "bit length"
6390field,
6391thus limiting the register length to 255 bits. ACPICA BZ 953.
6392
6393Example Code and Data Size: These are the sizes for the OS-independent
6394acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6395debug
6396version of the code includes the debug output trace mechanism and has a
6397much
6398larger code and data size.
6399
6400  Previous Release:
6401    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6402    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6403  Current Release:
6404    Non-Debug Version:  93.0K Code, 25.1K Data, 118.1K Total
6405    Debug Version:     172.7K Code, 73.6K Data, 246.3K Total
6406
6407
64082) iASL Compiler/Disassembler and Tools:
6409
6410iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL
6411macro.
6412This keyword was added late in the ACPI 5.0 release cycle and was not
6413implemented until now.
6414
6415Disassembler: Added support for Operation Region externals. Adds missing
6416support for operation regions that are defined in another table, and
6417referenced locally via a Field or BankField ASL operator. Now generates
6418the
6419correct External statement.
6420
6421Disassembler: Several additional fixes for the External() statement
6422generation
6423related to some ASL operators. Also, order the External() statements
6424alphabetically in the disassembler output. Fixes the External()
6425generation
6426for
6427the Create* field, Alias, and Scope operators:
6428 1) Create* buffer field operators - fix type mismatch warning on
6429disassembly
6430 2) Alias - implement missing External support
6431 3) Scope - fix to make sure all necessary externals are emitted.
6432
6433iASL: Improved pathname support. For include files, merge the prefix
6434pathname
6435with the file pathname and eliminate unnecessary components. Convert
6436backslashes in all pathnames to forward slashes, for readability. Include
6437file
6438pathname changes affect both #include and Include() type operators.
6439
6440iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the
6441end
6442of a valid line by inserting a newline and then returning the EOF during
6443the
6444next call to GetNextLine. Prevents the line from being ignored due to EOF
6445condition.
6446
6447iASL: Implemented some changes to enhance the IDE support (-vi option.)
6448Error
6449and Warning messages are now correctly recognized for both the source
6450code
6451browser and the global error and warning counts.
6452
6453----------------------------------------
645420 April 2012. Summary of changes for version 20120420:
6455
6456
64571) ACPICA Core Subsystem:
6458
6459Implemented support for multiple notify handlers. This change adds
6460support
6461to
6462allow multiple system and device notify handlers on Device, Thermal Zone,
6463and
6464Processor objects. This can simplify the host OS notification
6465implementation.
6466Also re-worked and restructured the entire notify support code to
6467simplify
6468handler installation, handler removal, notify event queuing, and notify
6469dispatch to handler(s). Note: there can still only be two global notify
6470handlers - one for system notifies and one for device notifies. There are
6471no
6472changes to the existing handler install/remove interfaces. Lin Ming, Bob
6473Moore, Rafael Wysocki.
6474
6475Fixed a regression in the package repair code where the object reference
6476count was calculated incorrectly. Regression was introduced in the commit
6477"Support to add Package wrappers".
6478
6479Fixed a couple possible memory leaks in the AML parser, in the error
6480recovery
6481path. Jesper Juhl, Lin Ming.
6482
6483Example Code and Data Size: These are the sizes for the OS-independent
6484acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6485debug version of the code includes the debug output trace mechanism and
6486has a
6487much larger code and data size.
6488
6489  Previous Release:
6490    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6491    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6492  Current Release:
6493    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6494    Debug Version:     172.6K Code, 73.4K Data, 246.0K Total
6495
6496
64972) iASL Compiler/Disassembler and Tools:
6498
6499iASL: Fixed a problem with the resource descriptor support where the
6500length
6501of the StartDependentFn and StartDependentFnNoPrio descriptors were not
6502included in cumulative descriptor offset, resulting in incorrect values
6503for
6504resource tags within resource descriptors appearing after a
6505StartDependent*
6506descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.
6507
6508iASL and Preprocessor: Implemented full support for the #line directive
6509to
6510correctly track original source file line numbers through the .i
6511preprocessor
6512output file - for error and warning messages.
6513
6514iASL: Expand the allowable byte constants for address space IDs.
6515Previously,
6516the allowable range was 0x80-0xFF (user-defined spaces), now the range is
65170x0A-0xFF to allow for custom and new IDs without changing the compiler.
6518
6519iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.
6520
6521iASL: Add option to completely disable the preprocessor (-Pn).
6522
6523iASL: Now emit all error/warning messages to standard error (stderr) by
6524default (instead of the previous stdout).
6525
6526ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().
6527Update
6528for resource descriptor offset fix above. Update/cleanup error output
6529routines. Enable and send iASL errors/warnings to an error logfile
6530(error.txt). Send all other iASL output to a logfile (compiler.txt).
6531Fixed
6532several extraneous "unrecognized operator" messages.
6533
6534----------------------------------------
653520 March 2012. Summary of changes for version 20120320:
6536
6537
65381) ACPICA Core Subsystem:
6539
6540Enhanced the sleep/wake interfaces to optionally execute the _GTS method
6541(Going To Sleep) and the _BFS method (Back From Sleep). Windows
6542apparently
6543does not execute these methods, and therefore these methods are often
6544untested. It has been seen on some systems where the execution of these
6545methods causes errors and also prevents the machine from entering S5. It
6546is
6547therefore suggested that host operating systems do not execute these
6548methods
6549by default. In the future, perhaps these methods can be optionally
6550executed
6551based on the age of the system and/or what is the newest version of
6552Windows
6553that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState
6554and
6555AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin
6556Ming.
6557
6558Fixed a problem where the length of the local/common FADT was set too
6559early.
6560The local FADT table length cannot be set to the common length until the
6561original length has been examined. There is code that checks the table
6562length
6563and sets various fields appropriately. This can affect older machines
6564with
6565early FADT versions. For example, this can cause inadvertent writes to
6566the
6567CST_CNT register. Julian Anastasov.
6568
6569Fixed a mapping issue related to a physical table override. Use the
6570deferred
6571mapping mechanism for tables loaded via the physical override OSL
6572interface.
6573This allows for early mapping before the virtual memory manager is
6574available.
6575Thomas Renninger, Bob Moore.
6576
6577Enhanced the automatic return-object repair code: Repair a common problem
6578with
6579predefined methods that are defined to return a variable-length Package
6580of
6581sub-objects. If there is only one sub-object, some BIOS ASL code
6582mistakenly
6583simply returns the single object instead of a Package with one sub-
6584object.
6585This new support will repair this error by wrapping a Package object
6586around
6587the original object, creating the correct and expected Package with one
6588sub-
6589object. Names that can be repaired in this manner include: _ALR, _CSD,
6590_HPX,
6591_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ
6592939.
6593
6594Changed the exception code returned for invalid ACPI paths passed as
6595parameters to external interfaces such as AcpiEvaluateObject. Was
6596AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.
6597
6598Example Code and Data Size: These are the sizes for the OS-independent
6599acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6600debug
6601version of the code includes the debug output trace mechanism and has a
6602much
6603larger code and data size.
6604
6605  Previous Release:
6606    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6607    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6608  Current Release:
6609    Non-Debug Version:  92.9K Code, 25.0K Data, 117.9K Total
6610    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6611
6612
66132) iASL Compiler/Disassembler and Tools:
6614
6615iASL: Added the infrastructure and initial implementation of a integrated
6616C-
6617like preprocessor. This will simplify BIOS development process by
6618eliminating
6619the need for a separate preprocessing step during builds. On Windows, it
6620also
6621eliminates the need to install a separate C compiler. ACPICA BZ 761. Some
6622features including full #define() macro support are still under
6623development.
6624These preprocessor directives are supported:
6625    #define
6626    #elif
6627    #else
6628    #endif
6629    #error
6630    #if
6631    #ifdef
6632    #ifndef
6633    #include
6634    #pragma message
6635    #undef
6636    #warning
6637In addition, these new command line options are supported:
6638    -D <symbol> Define symbol for preprocessor use
6639    -li         Create preprocessed output file (*.i)
6640    -P          Preprocess only and create preprocessor output file (*.i)
6641
6642Table Compiler: Fixed a problem where the equals operator within an
6643expression
6644did not work properly.
6645
6646Updated iASL to use the current versions of Bison/Flex. Updated the
6647Windows
6648project file to invoke these tools from the standard location. ACPICA BZ
6649904.
6650Versions supported:
6651    Flex for Windows:  V2.5.4
6652    Bison for Windows: V2.4.1
6653
6654----------------------------------------
665515 February 2012. Summary of changes for version 20120215:
6656
6657
66581) ACPICA Core Subsystem:
6659
6660There have been some major changes to the sleep/wake support code, as
6661described below (a - e).
6662
6663a) The AcpiLeaveSleepState has been split into two interfaces, similar to
6664AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is
6665AcpiLeaveSleepStatePrep. This allows the host to perform actions between
6666the
6667time the _BFS method is called and the _WAK method is called. NOTE: all
6668hosts
6669must update their wake/resume code or else sleep/wake will not work
6670properly.
6671Rafael Wysocki.
6672
6673b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the
6674_WAK
6675method. Some machines require that the GPEs are enabled before the _WAK
6676method
6677is executed. Thomas Renninger.
6678
6679c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)
6680bit.
6681Some BIOS code assumes that WAK_STS will be cleared on resume and use it
6682to
6683determine whether the system is rebooting or resuming. Matthew Garrett.
6684
6685d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From
6686Sleep) to
6687match the ACPI specification requirement. Rafael Wysocki.
6688
6689e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl
6690registers within the V5 FADT. This support adds two new files:
6691hardware/hwesleep.c implements the support for the new registers. Moved
6692all
6693sleep/wake external interfaces to hardware/hwxfsleep.c.
6694
6695
6696Added a new OSL interface for ACPI table overrides,
6697AcpiOsPhysicalTableOverride. This interface allows the host to override a
6698table via a physical address, instead of the logical address required by
6699AcpiOsTableOverride. This simplifies the host implementation. Initial
6700implementation by Thomas Renninger. The ACPICA implementation creates a
6701single
6702shared function for table overrides that attempts both a logical and a
6703physical override.
6704
6705Expanded the OSL memory read/write interfaces to 64-bit data
6706(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory
6707transfer support for GAS register structures passed to AcpiRead and
6708AcpiWrite.
6709
6710Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a
6711custom
6712build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)
6713model.
6714See the ACPICA reference for details. ACPICA BZ 942. This option removes
6715about
671610% of the code and 5% of the static data, and the following hardware
6717ACPI
6718features become unavailable:
6719    PM Event and Control registers
6720    SCI interrupt (and handler)
6721    Fixed Events
6722    General Purpose Events (GPEs)
6723    Global Lock
6724    ACPI PM timer
6725    FACS table (Waking vectors and Global Lock)
6726
6727Updated the unix tarball directory structure to match the ACPICA git
6728source
6729tree. This ensures that the generic unix makefiles work properly (in
6730generate/unix).  Also updated the Linux makefiles to match. ACPICA BZ
6731867.
6732
6733Updated the return value of the _REV predefined method to integer value 5
6734to
6735reflect ACPI 5.0 support.
6736
6737Moved the external ACPI PM timer interface prototypes to the public
6738acpixf.h
6739file where they belong.
6740
6741Example Code and Data Size: These are the sizes for the OS-independent
6742acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6743debug
6744version of the code includes the debug output trace mechanism and has a
6745much
6746larger code and data size.
6747
6748  Previous Release:
6749    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6750    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6751  Current Release:
6752    Non-Debug Version:  93.0K Code, 25.0K Data, 118.0K Total
6753    Debug Version:     172.5K Code, 73.2K Data, 245.7K Total
6754
6755
67562) iASL Compiler/Disassembler and Tools:
6757
6758Disassembler: Fixed a problem with the new ACPI 5.0 serial resource
6759descriptors (I2C, SPI, UART) where the resource produce/consumer bit was
6760incorrectly displayed.
6761
6762AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI
6763specification.
6764
6765----------------------------------------
676611 January 2012. Summary of changes for version 20120111:
6767
6768
67691) ACPICA Core Subsystem:
6770
6771Implemented a new mechanism to allow host device drivers to check for
6772address
6773range conflicts with ACPI Operation Regions. Both SystemMemory and
6774SystemIO
6775address spaces are supported. A new external interface,
6776AcpiCheckAddressRange,
6777allows drivers to check an address range against the ACPI namespace. See
6778the
6779ACPICA reference for additional details. Adds one new file,
6780utilities/utaddress.c. Lin Ming, Bob Moore.
6781
6782Fixed several issues with the ACPI 5.0 FADT support: Add the sleep
6783Control
6784and
6785Status registers, update the ACPI 5.0 flags, and update internal data
6786structures to handle an FADT larger than 256 bytes. The size of the ACPI
67875.0
6788FADT is 268 bytes.
6789
6790Updated all ACPICA copyrights and signons to 2012. Added the 2012
6791copyright to
6792all module headers and signons, including the standard Linux header. This
6793affects virtually every file in the ACPICA core subsystem, iASL compiler,
6794and
6795all ACPICA utilities.
6796
6797Example Code and Data Size: These are the sizes for the OS-independent
6798acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
6799debug
6800version of the code includes the debug output trace mechanism and has a
6801much
6802larger code and data size.
6803
6804  Previous Release:
6805    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
6806    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
6807  Current Release:
6808    Non-Debug Version:  92.8K Code, 24.9K Data, 117.7K Total
6809    Debug Version:     171.7K Code, 72.9K Data, 244.5K Total
6810
6811
68122) iASL Compiler/Disassembler and Tools:
6813
6814Disassembler: fixed a problem with the automatic resource tag generation
6815support. Fixes a problem where the resource tags are inadvertently not
6816constructed if the table being disassembled contains external references
6817to
6818control methods. Moved the actual construction of the tags to after the
6819final
6820namespace is constructed (after 2nd parse is invoked due to external
6821control
6822method references.) ACPICA BZ 941.
6823
6824Table Compiler: Make all "generic" operators caseless. These are the
6825operators
6826like UINT8, String, etc. Making these caseless improves ease-of-use.
6827ACPICA BZ
6828934.
6829
6830----------------------------------------
683123 November 2011. Summary of changes for version 20111123:
6832
68330) ACPI 5.0 Support:
6834
6835This release contains full support for the ACPI 5.0 specification, as
6836summarized below.
6837
6838Reduced Hardware Support:
6839-------------------------
6840
6841This support allows for ACPI systems without the usual ACPI hardware.
6842This
6843support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA
6844will
6845not attempt to initialize or use any of the usual ACPI hardware. Note,
6846when
6847this flag is set, all of the following ACPI hardware is assumed to be not
6848present and is not initialized or accessed:
6849
6850    General Purpose Events (GPEs)
6851    Fixed Events (PM1a/PM1b and PM Control)
6852    Power Management Timer and Console Buttons (power/sleep)
6853    Real-time Clock Alarm
6854    Global Lock
6855    System Control Interrupt (SCI)
6856    The FACS is assumed to be non-existent
6857
6858ACPI Tables:
6859------------
6860
6861All new tables and updates to existing tables are fully supported in the
6862ACPICA headers (for use by device drivers), the disassembler, and the
6863iASL
6864Data Table Compiler. ACPI 5.0 defines these new tables:
6865
6866    BGRT        /* Boot Graphics Resource Table */
6867    DRTM        /* Dynamic Root of Trust for Measurement table */
6868    FPDT        /* Firmware Performance Data Table */
6869    GTDT        /* Generic Timer Description Table */
6870    MPST        /* Memory Power State Table */
6871    PCCT        /* Platform Communications Channel Table */
6872    PMTT        /* Platform Memory Topology Table */
6873    RASF        /* RAS Feature table */
6874
6875Operation Regions/SpaceIDs:
6876---------------------------
6877
6878All new operation regions are fully supported by the iASL compiler, the
6879disassembler, and the ACPICA runtime code (for dispatch to region
6880handlers.)
6881The new operation region Space IDs are:
6882
6883    GeneralPurposeIo
6884    GenericSerialBus
6885
6886Resource Descriptors:
6887---------------------
6888
6889All new ASL resource descriptors are fully supported by the iASL
6890compiler,
6891the
6892ASL/AML disassembler, and the ACPICA runtime Resource Manager code
6893(including
6894all new predefined resource tags). New descriptors are:
6895
6896    FixedDma
6897    GpioIo
6898    GpioInt
6899    I2cSerialBus
6900    SpiSerialBus
6901    UartSerialBus
6902
6903ASL/AML Operators, New and Modified:
6904------------------------------------
6905
6906One new operator is added, the Connection operator, which is used to
6907associate
6908a GeneralPurposeIo or GenericSerialBus resource descriptor with
6909individual
6910field objects within an operation region. Several new protocols are
6911associated
6912with the AccessAs operator. All are fully supported by the iASL compiler,
6913disassembler, and runtime ACPICA AML interpreter:
6914
6915    Connection                      // Declare Field Connection
6916attributes
6917    AccessAs: AttribBytes (n)           // Read/Write N-Bytes Protocol
6918    AccessAs: AttribRawBytes (n)        // Raw Read/Write N-Bytes
6919Protocol
6920    AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol
6921    RawDataBuffer                       // Data type for Vendor Data
6922fields
6923
6924Predefined ASL/AML Objects:
6925---------------------------
6926
6927All new predefined objects/control-methods are supported by the iASL
6928compiler
6929and the ACPICA runtime validation/repair (arguments and return values.)
6930New
6931predefined names include the following:
6932
6933Standard Predefined Names (Objects or Control Methods):
6934    _AEI, _CLS, _CPC, _CWS, _DEP,
6935    _DLM, _EVT, _GCP, _CRT, _GWS,
6936    _HRV, _PRE, _PSE, _SRT, _SUB.
6937
6938Resource Tags (Names used to access individual fields within resource
6939descriptors):
6940    _DBT, _DPL, _DRS, _END, _FLC,
6941    _IOR, _LIN, _MOD, _PAR, _PHA,
6942    _PIN, _PPI, _POL, _RXL, _SLV,
6943    _SPE, _STB, _TXL, _VEN.
6944
6945ACPICA External Interfaces:
6946---------------------------
6947
6948Several new interfaces have been defined for use by ACPI-related device
6949drivers and other host OS services:
6950
6951AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS
6952to
6953acquire and release AML mutexes that are defined in the DSDT/SSDT tables
6954provided by the BIOS. They are intended to be used in conjunction with
6955the
6956ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level
6957mutual exclusion with the AML code/interpreter.
6958
6959AcpiGetEventResources: Returns the (formatted) resource descriptors as
6960defined
6961by the ACPI 5.0 _AEI object (ACPI Event Information).  This object
6962provides
6963resource descriptors associated with hardware-reduced platform events,
6964similar
6965to the AcpiGetCurrentResources interface.
6966
6967Operation Region Handlers: For General Purpose IO and Generic Serial Bus
6968operation regions, information about the Connection() object and any
6969optional
6970length information is passed to the region handler within the Context
6971parameter.
6972
6973AcpiBufferToResource: This interface converts a raw AML buffer containing
6974a
6975resource template or resource descriptor to the ACPI_RESOURCE internal
6976format
6977suitable for use by device drivers. Can be used by an operation region
6978handler
6979to convert the Connection() buffer object into a ACPI_RESOURCE.
6980
6981Miscellaneous/Tools/TestSuites:
6982-------------------------------
6983
6984Support for extended _HID names (Four alpha characters instead of three).
6985Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.
6986Support for ACPI 5.0 features in the ASLTS test suite.
6987Fully updated documentation (ACPICA and iASL reference documents.)
6988
6989ACPI Table Definition Language:
6990-------------------------------
6991
6992Support for this language was implemented and released as a subsystem of
6993the
6994iASL compiler in 2010. (See the iASL compiler User Guide.)
6995
6996
6997Non-ACPI 5.0 changes for this release:
6998--------------------------------------
6999
70001) ACPICA Core Subsystem:
7001
7002Fix a problem with operation region declarations where a failure can
7003occur
7004if
7005the region name and an argument that evaluates to an object (such as the
7006region address) are in different namespace scopes. Lin Ming, ACPICA BZ
7007937.
7008
7009Do not abort an ACPI table load if an invalid space ID is found within.
7010This
7011will be caught later if the offending method is executed. ACPICA BZ 925.
7012
7013Fixed an issue with the FFixedHW space ID where the ID was not always
7014recognized properly (Both ACPICA and iASL). ACPICA BZ 926.
7015
7016Fixed a problem with the 32-bit generation of the unix-specific OSL
7017(osunixxf.c). Lin Ming, ACPICA BZ 936.
7018
7019Several changes made to enable generation with the GCC 4.6 compiler.
7020ACPICA BZ
7021935.
7022
7023New error messages: Unsupported I/O requests (not 8/16/32 bit), and
7024Index/Bank
7025field registers out-of-range.
7026
70272) iASL Compiler/Disassembler and Tools:
7028
7029iASL: Implemented the __PATH__ operator, which returns the full pathname
7030of
7031the current source file.
7032
7033AcpiHelp: Automatically display expanded keyword information for all ASL
7034operators.
7035
7036Debugger: Add "Template" command to disassemble/dump resource template
7037buffers.
7038
7039Added a new master script to generate and execute the ASLTS test suite.
7040Automatically handles 32- and 64-bit generation. See tests/aslts.sh
7041
7042iASL: Fix problem with listing generation during processing of the
7043Switch()
7044operator where AML listing was disabled until the entire Switch block was
7045completed.
7046
7047iASL: Improve support for semicolon statement terminators. Fix "invalid
7048character" message for some cases when the semicolon is used. Semicolons
7049are
7050now allowed after every <Term> grammar element. ACPICA BZ 927.
7051
7052iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ
7053923.
7054
7055Disassembler: Fix problem with disassembly of the DataTableRegion
7056operator
7057where an inadvertent "Unhandled deferred opcode" message could be
7058generated.
7059
70603) Example Code and Data Size
7061
7062These are the sizes for the OS-independent acpica.lib produced by the
7063Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7064includes the debug output trace mechanism and has a much larger code and
7065data
7066size.
7067
7068  Previous Release:
7069    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7070    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7071  Current Release:
7072    Non-Debug Version:  92.3K Code, 24.9K Data, 117.2K Total
7073    Debug Version:     170.8K Code, 72.6K Data, 243.4K Total
7074
7075----------------------------------------
707622 September 2011. Summary of changes for version 20110922:
7077
70780) ACPI 5.0 News:
7079
7080Support for ACPI 5.0 in ACPICA has been underway for several months and
7081will
7082be released at the same time that ACPI 5.0 is officially released.
7083
7084The ACPI 5.0 specification is on track for release in the next few
7085months.
7086
70871) ACPICA Core Subsystem:
7088
7089Fixed a problem where the maximum sleep time for the Sleep() operator was
7090intended to be limited to two seconds, but was inadvertently limited to
709120
7092seconds instead.
7093
7094Linux and Unix makefiles: Added header file dependencies to ensure
7095correct
7096generation of ACPICA core code and utilities. Also simplified the
7097makefiles
7098considerably through the use of the vpath variable to specify search
7099paths.
7100ACPICA BZ 924.
7101
71022) iASL Compiler/Disassembler and Tools:
7103
7104iASL: Implemented support to check the access length for all fields
7105created to
7106access named Resource Descriptor fields. For example, if a resource field
7107is
7108defined to be two bits, a warning is issued if a CreateXxxxField() is
7109used
7110with an incorrect bit length. This is implemented for all current
7111resource
7112descriptor names. ACPICA BZ 930.
7113
7114Disassembler: Fixed a byte ordering problem with the output of 24-bit and
711556-
7116bit integers.
7117
7118iASL: Fixed a couple of issues associated with variable-length package
7119objects. 1) properly handle constants like One, Ones, Zero -- do not make
7120a
7121VAR_PACKAGE when these are used as a package length. 2) Allow the
7122VAR_PACKAGE
7123opcode (in addition to PACKAGE) when validating object types for
7124predefined
7125names.
7126
7127iASL: Emit statistics for all output files (instead of just the ASL input
7128and
7129AML output). Includes listings, hex files, etc.
7130
7131iASL: Added -G option to the table compiler to allow the compilation of
7132custom
7133ACPI tables. The only part of a table that is required is the standard
713436-
7135byte
7136ACPI header.
7137
7138AcpiXtract: Ported to the standard ACPICA environment (with ACPICA
7139headers),
7140which also adds correct 64-bit support. Also, now all output filenames
7141are
7142completely lower case.
7143
7144AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when
7145loading table files. A warning is issued for any such tables. The only
7146exception is an FADT. This also fixes a possible fault when attempting to
7147load
7148non-AML tables. ACPICA BZ 932.
7149
7150AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where
7151a
7152missing table terminator could cause a fault when using the -p option.
7153
7154AcpiSrc: Fixed a possible divide-by-zero fault when generating file
7155statistics.
7156
71573) Example Code and Data Size
7158
7159These are the sizes for the OS-independent acpica.lib produced by the
7160Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code
7161includes the debug output trace mechanism and has a much larger code and
7162data
7163size.
7164
7165  Previous Release (VC 9.0):
7166    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7167    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7168  Current Release (VC 9.0):
7169    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7170    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7171
7172
7173----------------------------------------
717423 June 2011. Summary of changes for version 20110623:
7175
71761) ACPI CA Core Subsystem:
7177
7178Updated the predefined name repair mechanism to not attempt repair of a
7179_TSS
7180return object if a _PSS object is present. We can only sort the _TSS
7181return
7182package if there is no _PSS within the same scope. This is because if
7183_PSS
7184is
7185present, the ACPI specification dictates that the _TSS Power Dissipation
7186field
7187is to be ignored, and therefore some BIOSs leave garbage values in the
7188_TSS
7189Power field(s). In this case, it is best to just return the _TSS package
7190as-
7191is. Reported by, and fixed with assistance from Fenghua Yu.
7192
7193Added an option to globally disable the control method return value
7194validation
7195and repair. This runtime option can be used to disable return value
7196repair
7197if
7198this is causing a problem on a particular machine. Also added an option
7199to
7200AcpiExec (-dr) to set this disable flag.
7201
7202All makefiles and project files: Major changes to improve generation of
7203ACPICA
7204tools. ACPICA BZ 912:
7205    Reduce default optimization levels to improve compatibility
7206    For Linux, add strict-aliasing=0 for gcc 4
7207    Cleanup and simplify use of command line defines
7208    Cleanup multithread library support
7209    Improve usage messages
7210
7211Linux-specific header: update handling of THREAD_ID and pthread. For the
721232-
7213bit case, improve casting to eliminate possible warnings, especially with
7214the
7215acpica tools.
7216
7217Example Code and Data Size: These are the sizes for the OS-independent
7218acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7219debug
7220version of the code includes the debug output trace mechanism and has a
7221much
7222larger code and data size.
7223
7224  Previous Release (VC 9.0):
7225    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7226    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7227  Current Release (VC 9.0):
7228    Non-Debug Version:  90.2K Code, 23.9K Data, 114.1K Total
7229    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7230
72312) iASL Compiler/Disassembler and Tools:
7232
7233With this release, a new utility named "acpihelp" has been added to the
7234ACPICA
7235package. This utility summarizes the ACPI specification chapters for the
7236ASL
7237and AML languages. It generates under Linux/Unix as well as Windows, and
7238provides the following functionality:
7239    Find/display ASL operator(s) -- with description and syntax.
7240    Find/display ASL keyword(s) -- with exact spelling and descriptions.
7241    Find/display ACPI predefined name(s) -- with description, number
7242        of arguments, and the return value data type.
7243    Find/display AML opcode name(s) -- with opcode, arguments, and
7244grammar.
7245    Decode/display AML opcode -- with opcode name, arguments, and
7246grammar.
7247
7248Service Layers: Make multi-thread support configurable. Conditionally
7249compile
7250the multi-thread support so that threading libraries will not be linked
7251if
7252not
7253necessary. The only tool that requires multi-thread support is AcpiExec.
7254
7255iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions
7256of
7257Bison appear to want the interface to yyerror to be a const char * (or at
7258least this is a problem when generating iASL on some systems.) ACPICA BZ
7259923
7260Pierre Lejeune.
7261
7262Tools: Fix for systems where O_BINARY is not defined. Only used for
7263Windows
7264versions of the tools.
7265
7266----------------------------------------
726727 May 2011. Summary of changes for version 20110527:
7268
72691) ACPI CA Core Subsystem:
7270
7271ASL Load() operator: Reinstate most restrictions on the incoming ACPI
7272table
7273signature. Now, only allow SSDT, OEMx, and a null signature. History:
7274    1) Originally, we checked the table signature for "SSDT" or "PSDT".
7275       (PSDT is now obsolete.)
7276    2) We added support for OEMx tables, signature "OEM" plus a fourth
7277       "don't care" character.
7278    3) Valid tables were encountered with a null signature, so we just
7279       gave up on validating the signature, (05/2008).
7280    4) We encountered non-AML tables such as the MADT, which caused
7281       interpreter errors and kernel faults. So now, we once again allow
7282       only SSDT, OEMx, and now, also a null signature. (05/2011).
7283
7284Added the missing _TDL predefined name to the global name list in order
7285to
7286enable validation. Affects both the core ACPICA code and the iASL
7287compiler.
7288
7289Example Code and Data Size: These are the sizes for the OS-independent
7290acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7291debug
7292version of the code includes the debug output trace mechanism and has a
7293much
7294larger code and data size.
7295
7296  Previous Release (VC 9.0):
7297    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7298    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7299  Current Release (VC 9.0):
7300    Non-Debug Version:  90.1K Code, 23.9K Data, 114.0K Total
7301    Debug Version:     165.6K Code, 68.4K Data, 234.0K Total
7302
73032) iASL Compiler/Disassembler and Tools:
7304
7305Debugger/AcpiExec: Implemented support for "complex" method arguments on
7306the
7307debugger command line. This adds support beyond simple integers --
7308including
7309Strings, Buffers, and Packages. Includes support for nested packages.
7310Increased the default command line buffer size to accommodate these
7311arguments.
7312See the ACPICA reference for details and syntax. ACPICA BZ 917.
7313
7314Debugger/AcpiExec: Implemented support for "default" method arguments for
7315the
7316Execute/Debug command. Now, the debugger will always invoke a control
7317method
7318with the required number of arguments -- even if the command line
7319specifies
7320none or insufficient arguments. It uses default integer values for any
7321missing
7322arguments. Also fixes a bug where only six method arguments maximum were
7323supported instead of the required seven.
7324
7325Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine
7326and
7327also return status in order to prevent buffer overruns. See the ACPICA
7328reference for details and syntax. ACPICA BZ 921
7329
7330iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and
7331makefiles to simplify support for the two different but similar parser
7332generators, bison and yacc.
7333
7334Updated the generic unix makefile for gcc 4. The default gcc version is
7335now
7336expected to be 4 or greater, since options specific to gcc 4 are used.
7337
7338----------------------------------------
733913 April 2011. Summary of changes for version 20110413:
7340
73411) ACPI CA Core Subsystem:
7342
7343Implemented support to execute a so-called "orphan" _REG method under the
7344EC
7345device. This change will force the execution of a _REG method underneath
7346the
7347EC
7348device even if there is no corresponding operation region of type
7349EmbeddedControl. Fixes a problem seen on some machines and apparently is
7350compatible with Windows behavior. ACPICA BZ 875.
7351
7352Added more predefined methods that are eligible for automatic NULL
7353package
7354element removal. This change adds another group of predefined names to
7355the
7356list
7357of names that can be repaired by having NULL package elements dynamically
7358removed. This group are those methods that return a single variable-
7359length
7360package containing simple data types such as integers, buffers, strings.
7361This
7362includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,
7363_PSL,
7364_Sx,
7365and _TZD. ACPICA BZ 914.
7366
7367Split and segregated all internal global lock functions to a new file,
7368evglock.c.
7369
7370Updated internal address SpaceID for DataTable regions. Moved this
7371internal
7372space
7373id in preparation for ACPI 5.0 changes that will include some new space
7374IDs.
7375This
7376change should not affect user/host code.
7377
7378Example Code and Data Size: These are the sizes for the OS-independent
7379acpica.lib
7380produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7381version of
7382the code includes the debug output trace mechanism and has a much larger
7383code
7384and
7385data size.
7386
7387  Previous Release (VC 9.0):
7388    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7389    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7390  Current Release (VC 9.0):
7391    Non-Debug Version:  90.0K Code, 23.8K Data, 113.8K Total
7392    Debug Version:     164.5K Code, 68.0K Data, 232.5K Total
7393
73942) iASL Compiler/Disassembler and Tools:
7395
7396iASL/DTC: Major update for new grammar features. Allow generic data types
7397in
7398custom ACPI tables. Field names are now optional. Any line can be split
7399to
7400multiple lines using the continuation char (\). Large buffers now use
7401line-
7402continuation character(s) and no colon on the continuation lines. See the
7403grammar
7404update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob
7405Moore.
7406
7407iASL: Mark ASL "Return()" and the simple "Return" as "Null" return
7408statements.
7409Since the parser stuffs a "zero" as the return value for these statements
7410(due
7411to
7412the underlying AML grammar), they were seen as "return with value" by the
7413iASL
7414semantic checking. They are now seen correctly as "null" return
7415statements.
7416
7417iASL: Check if a_REG declaration has a corresponding Operation Region.
7418Adds a
7419check for each _REG to ensure that there is in fact a corresponding
7420operation
7421region declaration in the same scope. If not, the _REG method is not very
7422useful
7423since it probably won't be executed. ACPICA BZ 915.
7424
7425iASL/DTC: Finish support for expression evaluation. Added a new
7426expression
7427parser
7428that implements c-style operator precedence and parenthesization. ACPICA
7429bugzilla
7430908.
7431
7432Disassembler/DTC: Remove support for () and <> style comments in data
7433tables.
7434Now
7435that DTC has full expression support, we don't want to have comment
7436strings
7437that
7438start with a parentheses or a less-than symbol. Now, only the standard /*
7439and
7440//
7441comments are supported, as well as the bracket [] comments.
7442
7443AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have
7444"unusual"
7445headers in the acpidump file. Update the header validation to support
7446these
7447tables. Problem introduced in previous AcpiXtract version in the change
7448to
7449support "wrong checksum" error messages emitted by acpidump utility.
7450
7451iASL: Add a * option to generate all template files (as a synonym for
7452ALL)
7453as
7454in
7455"iasl -T *" or "iasl -T ALL".
7456
7457iASL/DTC: Do not abort compiler on fatal errors. We do not want to
7458completely
7459abort the compiler on "fatal" errors, simply should abort the current
7460compile.
7461This allows multiple compiles with a single (possibly wildcard) compiler
7462invocation.
7463
7464----------------------------------------
746516 March 2011. Summary of changes for version 20110316:
7466
74671) ACPI CA Core Subsystem:
7468
7469Fixed a problem caused by a _PRW method appearing at the namespace root
7470scope
7471during the setup of wake GPEs. A fault could occur if a _PRW directly
7472under
7473the
7474root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.
7475
7476Implemented support for "spurious" Global Lock interrupts. On some
7477systems, a
7478global lock interrupt can occur without the pending flag being set. Upon
7479a
7480GL
7481interrupt, we now ensure that a thread is actually waiting for the lock
7482before
7483signaling GL availability. Rafael Wysocki, Bob Moore.
7484
7485Example Code and Data Size: These are the sizes for the OS-independent
7486acpica.lib
7487produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug
7488version of
7489the code includes the debug output trace mechanism and has a much larger
7490code
7491and
7492data size.
7493
7494  Previous Release (VC 9.0):
7495    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7496    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7497  Current Release (VC 9.0):
7498    Non-Debug Version:  89.8K Code, 23.8K Data, 113.6K Total
7499    Debug Version:     164.2K Code, 67.9K Data, 232.1K Total
7500
75012) iASL Compiler/Disassembler and Tools:
7502
7503Implemented full support for the "SLIC" ACPI table. Includes support in
7504the
7505header files, disassembler, table compiler, and template generator. Bob
7506Moore,
7507Lin Ming.
7508
7509AcpiXtract: Correctly handle embedded comments and messages from
7510AcpiDump.
7511Apparently some or all versions of acpidump will occasionally emit a
7512comment
7513like
7514"Wrong checksum", etc., into the dump file. This was causing problems for
7515AcpiXtract. ACPICA BZ 905.
7516
7517iASL: Fix the Linux makefile by removing an inadvertent double file
7518inclusion.
7519ACPICA BZ 913.
7520
7521AcpiExec: Update installation of operation region handlers. Install one
7522handler
7523for a user-defined address space. This is used by the ASL test suite
7524(ASLTS).
7525
7526----------------------------------------
752711 February 2011. Summary of changes for version 20110211:
7528
75291) ACPI CA Core Subsystem:
7530
7531Added a mechanism to defer _REG methods for some early-installed
7532handlers.
7533Most user handlers should be installed before call to
7534AcpiEnableSubsystem.
7535However, Event handlers and region handlers should be installed after
7536AcpiInitializeObjects. Override handlers for the "default" regions should
7537be
7538installed early, however. This change executes all _REG methods for the
7539default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any
7540chicken/egg issues between them. ACPICA BZ 848.
7541
7542Implemented an optimization for GPE detection. This optimization will
7543simply
7544ignore GPE registers that contain no enabled GPEs -- there is no need to
7545read the register since this information is available internally. This
7546becomes more important on machines with a large GPE space. ACPICA
7547bugzilla
7548884. Lin Ming. Suggestion from Joe Liu.
7549
7550Removed all use of the highly unreliable FADT revision field. The
7551revision
7552number in the FADT has been found to be completely unreliable and cannot
7553be
7554trusted. Only the actual table length can be used to infer the version.
7555This
7556change updates the ACPICA core and the disassembler so that both no
7557longer
7558even look at the FADT version and instead depend solely upon the FADT
7559length.
7560
7561Fix an unresolved name issue for the no-debug and no-error-message source
7562generation cases. The _AcpiModuleName was left undefined in these cases,
7563but
7564it is actually needed as a parameter to some interfaces. Define
7565_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.
7566
7567Split several large files (makefiles and project files updated)
7568  utglobal.c   -> utdecode.c
7569  dbcomds.c    -> dbmethod.c dbnames.c
7570  dsopcode.c   -> dsargs.c dscontrol.c
7571  dsload.c     -> dsload2.c
7572  aslanalyze.c -> aslbtypes.c aslwalks.c
7573
7574Example Code and Data Size: These are the sizes for the OS-independent
7575acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7576debug version of the code includes the debug output trace mechanism and
7577has
7578a much larger code and data size.
7579
7580  Previous Release (VC 9.0):
7581    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7582    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7583  Current Release (VC 9.0):
7584    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7585    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7586
75872) iASL Compiler/Disassembler and Tools:
7588
7589iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.
7590These are useful C-style macros with the standard definitions. ACPICA
7591bugzilla 898.
7592
7593iASL/DTC: Added support for integer expressions and labels. Support for
7594full
7595expressions for all integer fields in all ACPI tables. Support for labels
7596in
7597"generic" portions of tables such as UEFI. See the iASL reference manual.
7598
7599Debugger: Added a command to display the status of global handlers. The
7600"handlers" command will display op region, fixed event, and miscellaneous
7601global handlers. installation status -- and for op regions, whether
7602default
7603or user-installed handler will be used.
7604
7605iASL: Warn if reserved method incorrectly returns a value. Many
7606predefined
7607names are defined such that they do not return a value. If implemented as
7608a
7609method, issue a warning if such a name explicitly returns a value. ACPICA
7610Bugzilla 855.
7611
7612iASL: Added detection of GPE method name conflicts. Detects a conflict
7613where
7614there are two GPE methods of the form _Lxy and _Exy in the same scope.
7615(For
7616example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.
7617
7618iASL/DTC: Fixed a couple input scanner issues with comments and line
7619numbers. Comment remover could get confused and miss a comment ending.
7620Fixed
7621a problem with line counter maintenance.
7622
7623iASL/DTC: Reduced the severity of some errors from fatal to error. There
7624is
7625no need to abort on simple errors within a field definition.
7626
7627Debugger: Simplified the output of the help command. All help output now
7628in
7629a single screen, instead of help subcommands. ACPICA Bugzilla 897.
7630
7631----------------------------------------
763212 January 2011. Summary of changes for version 20110112:
7633
76341) ACPI CA Core Subsystem:
7635
7636Fixed a race condition between method execution and namespace walks that
7637can
7638possibly cause a fault. The problem was apparently introduced in version
763920100528 as a result of a performance optimization that reduces the
7640number
7641of
7642namespace walks upon method exit by using the delete_namespace_subtree
7643function instead of the delete_namespace_by_owner function used
7644previously.
7645Bug is a missing namespace lock in the delete_namespace_subtree function.
7646dana.myers@oracle.com
7647
7648Fixed several issues and a possible fault with the automatic "serialized"
7649method support. History: This support changes a method to "serialized" on
7650the
7651fly if the method generates an AE_ALREADY_EXISTS error, indicating the
7652possibility that it cannot handle reentrancy. This fix repairs a couple
7653of
7654issues seen in the field, especially on machines with many cores:
7655
7656    1) Delete method children only upon the exit of the last thread,
7657       so as to not delete objects out from under other running threads
7658      (and possibly causing a fault.)
7659    2) Set the "serialized" bit for the method only upon the exit of the
7660       Last thread, so as to not cause deadlock when running threads
7661       attempt to exit.
7662    3) Cleanup the use of the AML "MethodFlags" and internal method flags
7663       so that there is no longer any confusion between the two.
7664
7665    Lin Ming, Bob Moore. Reported by dana.myers@oracle.com.
7666
7667Debugger: Now lock the namespace for duration of a namespace dump.
7668Prevents
7669issues if the namespace is changing dynamically underneath the debugger.
7670Especially affects temporary namespace nodes, since the debugger displays
7671these also.
7672
7673Updated the ordering of include files. The ACPICA headers should appear
7674before any compiler-specific headers (stdio.h, etc.) so that acenv.h can
7675set
7676any necessary compiler-specific defines, etc. Affects the ACPI-related
7677tools
7678and utilities.
7679
7680Updated all ACPICA copyrights and signons to 2011. Added the 2011
7681copyright
7682to all module headers and signons, including the Linux header. This
7683affects
7684virtually every file in the ACPICA core subsystem, iASL compiler, and all
7685utilities.
7686
7687Added project files for MS Visual Studio 2008 (VC++ 9.0). The original
7688project files for VC++ 6.0 are now obsolete. New project files can be
7689found
7690under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for
7691details.
7692
7693Example Code and Data Size: These are the sizes for the OS-independent
7694acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
7695debug version of the code includes the debug output trace mechanism and
7696has a
7697much larger code and data size.
7698
7699  Previous Release (VC 6.0):
7700    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7701    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7702  Current Release (VC 9.0):
7703    Non-Debug Version:  89.7K Code, 23.7K Data, 113.4K Total
7704    Debug Version:     163.9K Code, 67.5K Data, 231.4K Total
7705
77062) iASL Compiler/Disassembler and Tools:
7707
7708iASL: Added generic data types to the Data Table compiler. Add "generic"
7709data
7710types such as UINT32, String, Unicode, etc., to simplify the generation
7711of
7712platform-defined tables such as UEFI. Lin Ming.
7713
7714iASL: Added listing support for the Data Table Compiler. Adds listing
7715support
7716(-l) to display actual binary output for each line of input code.
7717
7718----------------------------------------
771909 December 2010. Summary of changes for version 20101209:
7720
77211) ACPI CA Core Subsystem:
7722
7723Completed the major overhaul of the GPE support code that was begun in
7724July
77252010. Major features include: removal of _PRW execution in ACPICA (host
7726executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,
7727changes to existing interfaces, simplification of GPE handler operation,
7728and
7729a handful of new interfaces:
7730
7731    AcpiUpdateAllGpes
7732    AcpiFinishGpe
7733    AcpiSetupGpeForWake
7734    AcpiSetGpeWakeMask
7735    One new file, evxfgpe.c to consolidate all external GPE interfaces.
7736
7737See the ACPICA Programmer Reference for full details and programming
7738information. See the new section 4.4 "General Purpose Event (GPE)
7739Support"
7740for a full overview, and section 8.7 "ACPI General Purpose Event
7741Management"
7742for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin
7743Ming,
7744Bob Moore, Rafael Wysocki.
7745
7746Implemented a new GPE feature for Windows compatibility, the "Implicit
7747Wake
7748GPE Notify". This feature will automatically issue a Notify(2) on a
7749device
7750when a Wake GPE is received if there is no corresponding GPE method or
7751handler. ACPICA BZ 870.
7752
7753Fixed a problem with the Scope() operator during table parse and load
7754phase.
7755During load phase (table load or method execution), the scope operator
7756should
7757not enter the target into the namespace. Instead, it should open a new
7758scope
7759at the target location. Linux BZ 19462, ACPICA BZ 882.
7760
7761Example Code and Data Size: These are the sizes for the OS-independent
7762acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7763debug version of the code includes the debug output trace mechanism and
7764has a
7765much larger code and data size.
7766
7767  Previous Release:
7768    Non-Debug Version:  89.8K Code, 18.9K Data, 108.7K Total
7769    Debug Version:     166.6K Code, 52.1K Data, 218.7K Total
7770  Current Release:
7771    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7772    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7773
77742) iASL Compiler/Disassembler and Tools:
7775
7776iASL: Relax the alphanumeric restriction on _CID strings. These strings
7777are
7778"bus-specific" per the ACPI specification, and therefore any characters
7779are
7780acceptable. The only checks that can be performed are for a null string
7781and
7782perhaps for a leading asterisk. ACPICA BZ 886.
7783
7784iASL: Fixed a problem where a syntax error that caused a premature EOF
7785condition on the source file emitted a very confusing error message. The
7786premature EOF is now detected correctly. ACPICA BZ 891.
7787
7788Disassembler: Decode the AccessSize within a Generic Address Structure
7789(byte
7790access, word access, etc.) Note, this field does not allow arbitrary bit
7791access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.
7792
7793New: AcpiNames utility - Example namespace dump utility. Shows an example
7794of
7795ACPICA configuration for a minimal namespace dump utility. Uses table and
7796namespace managers, but no AML interpreter. Does not add any
7797functionality
7798over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to
7799partition and configure ACPICA. ACPICA BZ 883.
7800
7801AML Debugger: Increased the debugger buffer size for method return
7802objects.
7803Was 4K, increased to 16K. Also enhanced error messages for debugger
7804method
7805execution, including the buffer overflow case.
7806
7807----------------------------------------
780813 October 2010. Summary of changes for version 20101013:
7809
78101) ACPI CA Core Subsystem:
7811
7812Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,
7813now
7814clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via
7815HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.
7816
7817Changed the type of the predefined namespace object _TZ from ThermalZone
7818to
7819Device. This was found to be confusing to the host software that
7820processes
7821the various thermal zones, since _TZ is not really a ThermalZone.
7822However,
7823a
7824Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui
7825Zhang.
7826
7827Added Windows Vista SP2 to the list of supported _OSI strings. The actual
7828string is "Windows 2006 SP2".
7829
7830Eliminated duplicate code in AcpiUtExecute* functions. Now that the
7831nsrepair
7832code automatically repairs _HID-related strings, this type of code is no
7833longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ
7834878.
7835
7836Example Code and Data Size: These are the sizes for the OS-independent
7837acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7838debug version of the code includes the debug output trace mechanism and
7839has a
7840much larger code and data size.
7841
7842  Previous Release:
7843    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7844    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7845  Current Release:
7846    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7847    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7848
78492) iASL Compiler/Disassembler and Tools:
7850
7851iASL: Implemented additional compile-time validation for _HID strings.
7852The
7853non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the
7854length
7855of
7856the string must be exactly seven or eight characters. For both _HID and
7857_CID
7858strings, all characters must be alphanumeric. ACPICA BZ 874.
7859
7860iASL: Allow certain "null" resource descriptors. Some BIOS code creates
7861descriptors that are mostly or all zeros, with the expectation that they
7862will
7863be filled in at runtime. iASL now allows this as long as there is a
7864"resource
7865tag" (name) associated with the descriptor, which gives the ASL a handle
7866needed to modify the descriptor. ACPICA BZ 873.
7867
7868Added single-thread support to the generic Unix application OSL.
7869Primarily
7870for iASL support, this change removes the use of semaphores in the
7871single-
7872threaded ACPICA tools/applications - increasing performance. The
7873_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED
7874option. ACPICA BZ 879.
7875
7876AcpiExec: several fixes for the 64-bit version. Adds XSDT support and
7877support
7878for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.
7879
7880iASL: Moved all compiler messages to a new file, aslmessages.h.
7881
7882----------------------------------------
788315 September 2010. Summary of changes for version 20100915:
7884
78851) ACPI CA Core Subsystem:
7886
7887Removed the AcpiOsDerivePciId OSL interface. The various host
7888implementations
7889of this function were not OS-dependent and are now obsolete and can be
7890removed from all host OSLs. This function has been replaced by
7891AcpiHwDerivePciId, which is now part of the ACPICA core code.
7892AcpiHwDerivePciId has been implemented without recursion. Adds one new
7893module, hwpci.c. ACPICA BZ 857.
7894
7895Implemented a dynamic repair for _HID and _CID strings. The following
7896problems are now repaired at runtime: 1) Remove a leading asterisk in the
7897string, and 2) the entire string is uppercased. Both repairs are in
7898accordance with the ACPI specification and will simplify host driver
7899code.
7900ACPICA BZ 871.
7901
7902The ACPI_THREAD_ID type is no longer configurable, internally it is now
7903always UINT64. This simplifies the ACPICA code, especially any printf
7904output.
7905UINT64 is the only common data type for all thread_id types across all
7906operating systems. It is now up to the host OSL to cast the native
7907thread_id
7908type to UINT64 before returning the value to ACPICA (via
7909AcpiOsGetThreadId).
7910Lin Ming, Bob Moore.
7911
7912Added the ACPI_INLINE type to enhance the ACPICA configuration. The
7913"inline"
7914keyword is not standard across compilers, and this type allows inline to
7915be
7916configured on a per-compiler basis. Lin Ming.
7917
7918Made the system global AcpiGbl_SystemAwakeAndRunning publicly
7919available.
7920Added an extern for this boolean in acpixf.h. Some hosts utilize this
7921value
7922during suspend/restore operations. ACPICA BZ 869.
7923
7924All code that implements error/warning messages with the "ACPI:" prefix
7925has
7926been moved to a new module, utxferror.c.
7927
7928The UINT64_OVERLAY was moved to utmath.c, which is the only module where
7929it
7930is used. ACPICA BZ 829. Lin Ming, Bob Moore.
7931
7932Example Code and Data Size: These are the sizes for the OS-independent
7933acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
7934debug version of the code includes the debug output trace mechanism and
7935has a
7936much larger code and data size.
7937
7938  Previous Release:
7939    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
7940    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
7941  Current Release:
7942    Non-Debug Version:  89.9K Code, 19.0K Data, 108.9K Total
7943    Debug Version:     166.3K Code, 52.1K Data, 218.4K Total
7944
79452) iASL Compiler/Disassembler and Tools:
7946
7947iASL/Disassembler: Write ACPI errors to stderr instead of the output
7948file.
7949This keeps the output files free of random error messages that may
7950originate
7951from within the namespace/interpreter code. Used this opportunity to
7952merge
7953all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ
7954866. Lin Ming, Bob Moore.
7955
7956Tools: update some printfs for ansi warnings on size_t. Handle width
7957change
7958of size_t on 32-bit versus 64-bit generations. Lin Ming.
7959
7960----------------------------------------
796106 August 2010. Summary of changes for version 20100806:
7962
79631) ACPI CA Core Subsystem:
7964
7965Designed and implemented a new host interface to the _OSI support code.
7966This
7967will allow the host to dynamically add or remove multiple _OSI strings,
7968as
7969well as install an optional handler that is called for each _OSI
7970invocation.
7971Also added a new AML debugger command, 'osi' to display and modify the
7972global
7973_OSI string table, and test support in the AcpiExec utility. See the
7974ACPICA
7975reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.
7976New Functions:
7977    AcpiInstallInterface - Add an _OSI string.
7978    AcpiRemoveInterface - Delete an _OSI string.
7979    AcpiInstallInterfaceHandler - Install optional _OSI handler.
7980Obsolete Functions:
7981    AcpiOsValidateInterface - no longer used.
7982New Files:
7983    source/components/utilities/utosi.c
7984
7985Re-introduced the support to enable multi-byte transfers for Embedded
7986Controller (EC) operation regions. A reported problem was found to be a
7987bug
7988in the host OS, not in the multi-byte support. Previously, the maximum
7989data
7990size passed to the EC operation region handler was a single byte. There
7991are
7992often EC Fields larger than one byte that need to be transferred, and it
7993is
7994useful for the EC driver to lock these as a single transaction. This
7995change
7996enables single transfers larger than 8 bits. This effectively changes the
7997access to the EC space from ByteAcc to AnyAcc, and will probably require
7998changes to the host OS Embedded Controller driver to enable 16/32/64/256-
7999bit
8000transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.
8001
8002Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The
8003prototype in acpiosxf.h had the output value pointer as a (void *).
8004It should be a (UINT64 *). This may affect some host OSL code.
8005
8006Fixed a couple problems with the recently modified Linux makefiles for
8007iASL
8008and AcpiExec. These new makefiles place the generated object files in the
8009local directory so that there can be no collisions between the files that
8010are
8011shared between them that are compiled with different options.
8012
8013Example Code and Data Size: These are the sizes for the OS-independent
8014acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8015debug version of the code includes the debug output trace mechanism and
8016has a
8017much larger code and data size.
8018
8019  Previous Release:
8020    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8021    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
8022  Current Release:
8023    Non-Debug Version:  89.1K Code, 19.0K Data, 108.1K Total
8024    Debug Version:     165.1K Code, 51.9K Data, 217.0K Total
8025
80262) iASL Compiler/Disassembler and Tools:
8027
8028iASL/Disassembler: Added a new option (-da, "disassemble all") to load
8029the
8030namespace from and disassemble an entire group of AML files. Useful for
8031loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)
8032and
8033disassembling with one simple command. ACPICA BZ 865. Lin Ming.
8034
8035iASL: Allow multiple invocations of -e option. This change allows
8036multiple
8037uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ
8038834.
8039Lin Ming.
8040
8041----------------------------------------
804202 July 2010. Summary of changes for version 20100702:
8043
80441) ACPI CA Core Subsystem:
8045
8046Implemented several updates to the recently added GPE reference count
8047support. The model for "wake" GPEs is changing to give the host OS
8048complete
8049control of these GPEs. Eventually, the ACPICA core will not execute any
8050_PRW
8051methods, since the host already must execute them. Also, additional
8052changes
8053were made to help ensure that the reference counts are kept in proper
8054synchronization with reality. Rafael J. Wysocki.
8055
80561) Ensure that GPEs are not enabled twice during initialization.
80572) Ensure that GPE enable masks stay in sync with the reference count.
80583) Do not inadvertently enable GPEs when writing GPE registers.
80594) Remove the internal wake reference counter and add new AcpiGpeWakeup
8060interface. This interface will set or clear individual GPEs for wakeup.
80615) Remove GpeType argument from AcpiEnable and AcpiDisable. These
8062interfaces
8063are now used for "runtime" GPEs only.
8064
8065Changed the behavior of the GPE install/remove handler interfaces. The
8066GPE
8067is
8068no longer disabled during this process, as it was found to cause problems
8069on
8070some machines. Rafael J. Wysocki.
8071
8072Reverted a change introduced in version 20100528 to enable Embedded
8073Controller multi-byte transfers. This change was found to cause problems
8074with
8075Index Fields and possibly Bank Fields. It will be reintroduced when these
8076problems have been resolved.
8077
8078Fixed a problem with references to Alias objects within Package Objects.
8079A
8080reference to an Alias within the definition of a Package was not always
8081resolved properly. Aliases to objects like Processors, Thermal zones,
8082etc.
8083were resolved to the actual object instead of a reference to the object
8084as
8085it
8086should be. Package objects are only allowed to contain integer, string,
8087buffer, package, and reference objects. Redhat bugzilla 608648.
8088
8089Example Code and Data Size: These are the sizes for the OS-independent
8090acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8091debug version of the code includes the debug output trace mechanism and
8092has a
8093much larger code and data size.
8094
8095  Previous Release:
8096    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8097    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8098  Current Release:
8099    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8100    Debug Version:     164.0K Code, 51.5K Data, 215.5K Total
8101
81022) iASL Compiler/Disassembler and Tools:
8103
8104iASL: Implemented a new compiler subsystem to allow definition and
8105compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.
8106These
8107are called "ACPI Data Tables", and the new compiler is the "Data Table
8108Compiler". This compiler is intended to simplify the existing error-prone
8109process of creating these tables for the BIOS, as well as allowing the
8110disassembly, modification, recompilation, and override of existing ACPI
8111data
8112tables. See the iASL User Guide for detailed information.
8113
8114iASL: Implemented a new Template Generator option in support of the new
8115Data
8116Table Compiler. This option will create examples of all known ACPI tables
8117that can be used as the basis for table development. See the iASL
8118documentation and the -T option.
8119
8120Disassembler and headers: Added support for the WDDT ACPI table (Watchdog
8121Descriptor Table).
8122
8123Updated the Linux makefiles for iASL and AcpiExec to place the generated
8124object files in the local directory so that there can be no collisions
8125between the shared files between them that are generated with different
8126options.
8127
8128Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.
8129Use
8130the #define __APPLE__ to enable this support.
8131
8132----------------------------------------
813328 May 2010. Summary of changes for version 20100528:
8134
8135Note: The ACPI 4.0a specification was released on April 5, 2010 and is
8136available at www.acpi.info. This is primarily an errata release.
8137
81381) ACPI CA Core Subsystem:
8139
8140Undefined ACPI tables: We are looking for the definitions for the
8141following
8142ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.
8143
8144Implemented support to enable multi-byte transfers for Embedded
8145Controller
8146(EC) operation regions. Previously, the maximum data size passed to the
8147EC
8148operation region handler was a single byte. There are often EC Fields
8149larger
8150than one byte that need to be transferred, and it is useful for the EC
8151driver
8152to lock these as a single transaction. This change enables single
8153transfers
8154larger than 8 bits. This effectively changes the access to the EC space
8155from
8156ByteAcc to AnyAcc, and will probably require changes to the host OS
8157Embedded
8158Controller driver to enable 16/32/64/256-bit transfers in addition to 8-
8159bit
8160transfers. Alexey Starikovskiy, Lin Ming
8161
8162Implemented a performance enhancement for namespace search and access.
8163This
8164change enhances the performance of namespace searches and walks by adding
8165a
8166backpointer to the parent in each namespace node. On large namespaces,
8167this
8168change can improve overall ACPI performance by up to 9X. Adding a pointer
8169to
8170each namespace node increases the overall size of the internal namespace
8171by
8172about 5%, since each namespace entry usually consists of both a namespace
8173node and an ACPI operand object. However, this is the first growth of the
8174namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.
8175
8176Implemented a performance optimization that reduces the number of
8177namespace
8178walks. On control method exit, only walk the namespace if the method is
8179known
8180to have created namespace objects outside of its local scope. Previously,
8181the
8182entire namespace was traversed on each control method exit. This change
8183can
8184improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob
8185Moore.
8186
8187Added support to truncate I/O addresses to 16 bits for Windows
8188compatibility.
8189Some ASL code has been seen in the field that inadvertently has bits set
8190above bit 15. This feature is optional and is enabled if the BIOS
8191requests
8192any Windows OSI strings. It can also be enabled by the host OS. Matthew
8193Garrett, Bob Moore.
8194
8195Added support to limit the maximum time for the ASL Sleep() operator. To
8196prevent accidental deep sleeps, limit the maximum time that Sleep() will
8197actually sleep. Configurable, the default maximum is two seconds. ACPICA
8198bugzilla 854.
8199
8200Added run-time validation support for the _WDG and_WED Microsoft
8201predefined
8202methods. These objects are defined by "Windows Instrumentation", and are
8203not
8204part of the ACPI spec. ACPICA BZ 860.
8205
8206Expanded all statistic counters used during namespace and device
8207initialization from 16 to 32 bits in order to support very large
8208namespaces.
8209
8210Replaced all instances of %d in printf format specifiers with %u since
8211nearly
8212all integers in ACPICA are unsigned.
8213
8214Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly
8215returned
8216as AE_NO_HANDLER.
8217
8218Example Code and Data Size: These are the sizes for the OS-independent
8219acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8220debug version of the code includes the debug output trace mechanism and
8221has a
8222much larger code and data size.
8223
8224  Previous Release:
8225    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8226    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8227  Current Release:
8228    Non-Debug Version:  88.3K Code, 18.8K Data, 107.1K Total
8229    Debug Version:     164.1K Code, 51.5K Data, 215.6K Total
8230
82312) iASL Compiler/Disassembler and Tools:
8232
8233iASL: Added compiler support for the _WDG and_WED Microsoft predefined
8234methods. These objects are defined by "Windows Instrumentation", and are
8235not
8236part of the ACPI spec. ACPICA BZ 860.
8237
8238AcpiExec: added option to disable the memory tracking mechanism. The -dt
8239option will disable the tracking mechanism, which improves performance
8240considerably.
8241
8242AcpiExec: Restructured the command line options into -d (disable) and -e
8243(enable) options.
8244
8245----------------------------------------
824628 April 2010. Summary of changes for version 20100428:
8247
82481) ACPI CA Core Subsystem:
8249
8250Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,
8251including FADT-based and GPE Block Devices, execute any _PRW methods in
8252the
8253new table, and process any _Lxx/_Exx GPE methods in the new table. Any
8254runtime GPE that is referenced by an _Lxx/_Exx method in the new table is
8255immediately enabled. Handles the FADT-defined GPEs as well as GPE Block
8256Devices. Provides compatibility with other ACPI implementations. Two new
8257files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob
8258Moore.
8259
8260Fixed a regression introduced in version 20100331 within the table
8261manager
8262where initial table loading could fail. This was introduced in the fix
8263for
8264AcpiReallocateRootTable. Also, renamed some of fields in the table
8265manager
8266data structures to clarify their meaning and use.
8267
8268Fixed a possible allocation overrun during internal object copy in
8269AcpiUtCopySimpleObject. The original code did not correctly handle the
8270case
8271where the object to be copied was a namespace node. Lin Ming. ACPICA BZ
8272847.
8273
8274Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a
8275possible access beyond end-of-allocation. Also, now fully validate
8276descriptor
8277(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847
8278
8279Example Code and Data Size: These are the sizes for the OS-independent
8280acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8281debug version of the code includes the debug output trace mechanism and
8282has a
8283much larger code and data size.
8284
8285  Previous Release:
8286    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8287    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8288  Current Release:
8289    Non-Debug Version:  88.4K Code, 18.8K Data, 107.2K Total
8290    Debug Version:     164.2K Code, 51.5K Data, 215.7K Total
8291
82922) iASL Compiler/Disassembler and Tools:
8293
8294iASL: Implemented Min/Max/Len/Gran validation for address resource
8295descriptors. This change implements validation for the address fields
8296that
8297are common to all address-type resource descriptors. These checks are
8298implemented: Checks for valid Min/Max, length within the Min/Max window,
8299valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as
8300per
8301table 6-40 in the ACPI 4.0a specification. Also split the large
8302aslrestype1.c
8303and aslrestype2.c files into five new files. ACPICA BZ 840.
8304
8305iASL: Added support for the _Wxx predefined names. This support was
8306missing
8307and these names were not recognized by the compiler as valid predefined
8308names. ACPICA BZ 851.
8309
8310iASL: Added an error for all predefined names that are defined to return
8311no
8312value and thus must be implemented as Control Methods. These include all
8313of
8314the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous
8315names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.
8316
8317iASL: Implemented the -ts option to emit hex AML data in ASL format, as
8318an
8319ASL Buffer. Allows ACPI tables to be easily included within ASL files, to
8320be
8321dynamically loaded via the Load() operator. Also cleaned up output for
8322the
8323-
8324ta and -tc options. ACPICA BZ 853.
8325
8326Tests: Added a new file with examples of extended iASL error checking.
8327Demonstrates the advanced error checking ability of the iASL compiler.
8328Available at tests/misc/badcode.asl.
8329
8330----------------------------------------
833131 March 2010. Summary of changes for version 20100331:
8332
83331) ACPI CA Core Subsystem:
8334
8335Completed a major update for the GPE support in order to improve support
8336for
8337shared GPEs and to simplify both host OS and ACPICA code. Added a
8338reference
8339count mechanism to support shared GPEs that require multiple device
8340drivers.
8341Several external interfaces have changed. One external interface has been
8342removed. One new external interface was added. Most of the GPE external
8343interfaces now use the GPE spinlock instead of the events mutex (and the
8344Flags parameter for many GPE interfaces has been removed.) See the
8345updated
8346ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,
8347Rafael
8348Wysocki. ACPICA BZ 831.
8349
8350Changed:
8351    AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus
8352Removed:
8353    AcpiSetGpeType
8354New:
8355    AcpiSetGpe
8356
8357Implemented write support for DataTable operation regions. These regions
8358are
8359defined via the DataTableRegion() operator. Previously, only read support
8360was
8361implemented. The ACPI specification allows DataTableRegions to be
8362read/write,
8363however.
8364
8365Implemented a new subsystem option to force a copy of the DSDT to local
8366memory. Optionally copy the entire DSDT to local memory (instead of
8367simply
8368mapping it.) There are some (albeit very rare) BIOSs that corrupt or
8369replace
8370the original DSDT, creating the need for this option. Default is FALSE,
8371do
8372not copy the DSDT.
8373
8374Implemented detection of a corrupted or replaced DSDT. This change adds
8375support to detect a DSDT that has been corrupted and/or replaced from
8376outside
8377the OS (by firmware). This is typically catastrophic for the system, but
8378has
8379been seen on some machines. Once this problem has been detected, the DSDT
8380copy option can be enabled via system configuration. Lin Ming, Bob Moore.
8381
8382Fixed two problems with AcpiReallocateRootTable during the root table
8383copy.
8384When copying the root table to the new allocation, the length used was
8385incorrect. The new size was used instead of the current table size,
8386meaning
8387too much data was copied. Also, the count of available slots for ACPI
8388tables
8389was not set correctly. Alexey Starikovskiy, Bob Moore.
8390
8391Example Code and Data Size: These are the sizes for the OS-independent
8392acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8393debug version of the code includes the debug output trace mechanism and
8394has a
8395much larger code and data size.
8396
8397  Previous Release:
8398    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8399    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8400  Current Release:
8401    Non-Debug Version:  87.9K Code, 18.6K Data, 106.5K Total
8402    Debug Version:     163.5K Code, 51.3K Data, 214.8K Total
8403
84042) iASL Compiler/Disassembler and Tools:
8405
8406iASL: Implement limited typechecking for values returned from predefined
8407control methods. The type of any returned static (unnamed) object is now
8408validated. For example, Return(1). ACPICA BZ 786.
8409
8410iASL: Fixed a predefined name object verification regression. Fixes a
8411problem
8412introduced in version 20100304. An error is incorrectly generated if a
8413predefined name is declared as a static named object with a value defined
8414using the keywords "Zero", "One", or "Ones". Lin Ming.
8415
8416iASL: Added Windows 7 support for the -g option (get local ACPI tables)
8417by
8418reducing the requested registry access rights. ACPICA BZ 842.
8419
8420Disassembler: fixed a possible fault when generating External()
8421statements.
8422Introduced in commit ae7d6fd: Properly handle externals with parent-
8423prefix
8424(carat). Fixes a string length allocation calculation. Lin Ming.
8425
8426----------------------------------------
842704 March 2010. Summary of changes for version 20100304:
8428
84291) ACPI CA Core Subsystem:
8430
8431Fixed a possible problem with the AML Mutex handling function
8432AcpiExReleaseMutex where the function could fault under the very rare
8433condition when the interpreter has blocked, the interpreter lock is
8434released,
8435the interpreter is then reentered via the same thread, and attempts to
8436acquire an AML mutex that was previously acquired. FreeBSD report 140979.
8437Lin
8438Ming.
8439
8440Implemented additional configuration support for the AML "Debug Object".
8441Output from the debug object can now be enabled via a global variable,
8442AcpiGbl_EnableAmlDebugObject. This will assist with remote machine
8443debugging.
8444This debug output is now available in the release version of ACPICA
8445instead
8446of just the debug version. Also, the entire debug output module can now
8447be
8448configured out of the ACPICA build if desired. One new file added,
8449executer/exdebug.c. Lin Ming, Bob Moore.
8450
8451Added header support for the ACPI MCHI table (Management Controller Host
8452Interface Table). This table was added in ACPI 4.0, but the defining
8453document
8454has only recently become available.
8455
8456Standardized output of integer values for ACPICA warnings/errors. Always
8457use
84580x prefix for hex output, always use %u for unsigned integer decimal
8459output.
8460Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about
8461400
8462invocations.) These invocations were converted from the original
8463ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.
8464
8465Example Code and Data Size: These are the sizes for the OS-independent
8466acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8467debug version of the code includes the debug output trace mechanism and
8468has a
8469much larger code and data size.
8470
8471  Previous Release:
8472    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8473    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8474  Current Release:
8475    Non-Debug Version:  87.5K Code, 18.4K Data, 105.9K Total
8476    Debug Version:     163.4K Code, 51.1K Data, 214.5K Total
8477
84782) iASL Compiler/Disassembler and Tools:
8479
8480iASL: Implemented typechecking support for static (non-control method)
8481predefined named objects that are declared with the Name() operator. For
8482example, the type of this object is now validated to be of type Integer:
8483Name(_BBN, 1). This change migrates the compiler to using the core
8484predefined
8485name table instead of maintaining a local version. Added a new file,
8486aslpredef.c. ACPICA BZ 832.
8487
8488Disassembler: Added support for the ACPI 4.0 MCHI table.
8489
8490----------------------------------------
849121 January 2010. Summary of changes for version 20100121:
8492
84931) ACPI CA Core Subsystem:
8494
8495Added the 2010 copyright to all module headers and signons. This affects
8496virtually every file in the ACPICA core subsystem, the iASL compiler, the
8497tools/utilities, and the test suites.
8498
8499Implemented a change to the AcpiGetDevices interface to eliminate
8500unnecessary
8501invocations of the _STA method. In the case where a specific _HID is
8502requested, do not run _STA until a _HID match is found. This eliminates
8503potentially dozens of _STA calls during a search for a particular
8504device/HID,
8505which in turn can improve boot times. ACPICA BZ 828. Lin Ming.
8506
8507Implemented an additional repair for predefined method return values.
8508Attempt
8509to repair unexpected NULL elements within returned Package objects.
8510Create
8511an
8512Integer of value zero, a NULL String, or a zero-length Buffer as
8513appropriate.
8514ACPICA BZ 818. Lin Ming, Bob Moore.
8515
8516Removed the obsolete ACPI_INTEGER data type. This type was introduced as
8517the
8518code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0
8519(with
852064-bit AML integers). It is now obsolete and this change removes it from
8521the
8522ACPICA code base, replaced by UINT64. The original typedef has been
8523retained
8524for now for compatibility with existing device driver code. ACPICA BZ
8525824.
8526
8527Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field
8528in
8529the parse tree object.
8530
8531Added additional warning options for the gcc-4 generation. Updated the
8532source
8533accordingly. This includes some code restructuring to eliminate
8534unreachable
8535code, elimination of some gotos, elimination of unused return values,
8536some
8537additional casting, and removal of redundant declarations.
8538
8539Example Code and Data Size: These are the sizes for the OS-independent
8540acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8541debug version of the code includes the debug output trace mechanism and
8542has a
8543much larger code and data size.
8544
8545  Previous Release:
8546    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8547    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8548  Current Release:
8549    Non-Debug Version:  87.1K Code, 18.0K Data, 105.1K Total
8550    Debug Version:     163.5K Code, 50.9K Data, 214.4K Total
8551
85522) iASL Compiler/Disassembler and Tools:
8553
8554No functional changes for this release.
8555
8556----------------------------------------
855714 December 2009. Summary of changes for version 20091214:
8558
85591) ACPI CA Core Subsystem:
8560
8561Enhanced automatic data type conversions for predefined name repairs.
8562This
8563change expands the automatic repairs/conversions for predefined name
8564return
8565values to make Integers, Strings, and Buffers fully interchangeable.
8566Also,
8567a
8568Buffer can be converted to a Package of Integers if necessary. The
8569nsrepair.c
8570module was completely restructured. Lin Ming, Bob Moore.
8571
8572Implemented automatic removal of null package elements during predefined
8573name
8574repairs. This change will automatically remove embedded and trailing NULL
8575package elements from returned package objects that are defined to
8576contain
8577a
8578variable number of sub-packages. The driver is then presented with a
8579package
8580with no null elements to deal with. ACPICA BZ 819.
8581
8582Implemented a repair for the predefined _FDE and _GTM names. The expected
8583return value for both names is a Buffer of 5 DWORDs. This repair fixes
8584two
8585possible problems (both seen in the field), where a package of integers
8586is
8587returned, or a buffer of BYTEs is returned. With assistance from Jung-uk
8588Kim.
8589
8590Implemented additional module-level code support. This change will
8591properly
8592execute module-level code that is not at the root of the namespace (under
8593a
8594Device object, etc.). Now executes the code within the current scope
8595instead
8596of the root. ACPICA BZ 762. Lin Ming.
8597
8598Fixed possible mutex acquisition errors when running _REG methods. Fixes
8599a
8600problem where mutex errors can occur when running a _REG method that is
8601in
8602the same scope as a method-defined operation region or an operation
8603region
8604under a module-level IF block. This type of code is rare, so the problem
8605has
8606not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.
8607
8608Fixed a possible memory leak during module-level code execution. An
8609object
8610could be leaked for each block of executed module-level code if the
8611interpreter slack mode is enabled This change deletes any implicitly
8612returned
8613object from the module-level code block. Lin Ming.
8614
8615Removed messages for successful predefined repair(s). The repair
8616mechanism
8617was considered too wordy. Now, messages are only unconditionally emitted
8618if
8619the return object cannot be repaired. Existing messages for successful
8620repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ
8621827.
8622
8623Example Code and Data Size: These are the sizes for the OS-independent
8624acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8625debug version of the code includes the debug output trace mechanism and
8626has a
8627much larger code and data size.
8628
8629  Previous Release:
8630    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8631    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8632  Current Release:
8633    Non-Debug Version:  87.0K Code, 18.0K Data, 105.0K Total
8634    Debug Version:     163.4K Code, 50.8K Data, 214.2K Total
8635
86362) iASL Compiler/Disassembler and Tools:
8637
8638iASL: Fixed a regression introduced in 20091112 where intermediate .SRC
8639files
8640were no longer automatically removed at the termination of the compile.
8641
8642acpiexec: Implemented the -f option to specify default region fill value.
8643This option specifies the value used to initialize buffers that simulate
8644operation regions. Default value is zero. Useful for debugging problems
8645that
8646depend on a specific initial value for a region or field.
8647
8648----------------------------------------
864912 November 2009. Summary of changes for version 20091112:
8650
86511) ACPI CA Core Subsystem:
8652
8653Implemented a post-order callback to AcpiWalkNamespace. The existing
8654interface only has a pre-order callback. This change adds an additional
8655parameter for a post-order callback which will be more useful for bus
8656scans.
8657ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.
8658
8659Modified the behavior of the operation region memory mapping cache for
8660SystemMemory. Ensure that the memory mappings created for operation
8661regions
8662do not cross 4K page boundaries. Crossing a page boundary while mapping
8663regions can cause kernel warnings on some hosts if the pages have
8664different
8665attributes. Such regions are probably BIOS bugs, and this is the
8666workaround.
8667Linux BZ 14445. Lin Ming.
8668
8669Implemented an automatic repair for predefined methods that must return
8670sorted lists. This change will repair (by sorting) packages returned by
8671_ALR,
8672_PSS, and _TSS. Drivers can now assume that the packages are correctly
8673sorted
8674and do not contain NULL package elements. Adds one new file,
8675namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.
8676
8677Fixed a possible fault during predefined name validation if a return
8678Package
8679object contains NULL elements. Also adds a warning if a NULL element is
8680followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement
8681may
8682include repair or removal of all such NULL elements where possible.
8683
8684Implemented additional module-level executable AML code support. This
8685change
8686will execute module-level code that is not at the root of the namespace
8687(under a Device object, etc.) at table load time. Module-level executable
8688AML
8689code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.
8690
8691Implemented a new internal function to create Integer objects. This
8692function
8693simplifies miscellaneous object creation code. ACPICA BZ 823.
8694
8695Reduced the severity of predefined repair messages, Warning to Info.
8696Since
8697the object was successfully repaired, a warning is too severe. Reduced to
8698an
8699info message for now. These messages may eventually be changed to debug-
8700only.
8701ACPICA BZ 812.
8702
8703Example Code and Data Size: These are the sizes for the OS-independent
8704acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8705debug version of the code includes the debug output trace mechanism and
8706has a
8707much larger code and data size.
8708
8709  Previous Release:
8710    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8711    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8712  Current Release:
8713    Non-Debug Version:  86.6K Code, 18.2K Data, 104.8K Total
8714    Debug Version:     162.7K Code, 50.8K Data, 213.5K Total
8715
87162) iASL Compiler/Disassembler and Tools:
8717
8718iASL: Implemented Switch() with While(1) so that Break works correctly.
8719This
8720change correctly implements the Switch operator with a surrounding
8721While(1)
8722so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.
8723
8724iASL: Added a message if a package initializer list is shorter than
8725package
8726length. Adds a new remark for a Package() declaration if an initializer
8727list
8728exists, but is shorter than the declared length of the package. Although
8729technically legal, this is probably a coding error and it is seen in the
8730field. ACPICA BZ 815. Lin Ming, Bob Moore.
8731
8732iASL: Fixed a problem where the compiler could fault after the maximum
8733number
8734of errors was reached (200).
8735
8736acpixtract: Fixed a possible warning for pointer cast if the compiler
8737warning
8738level set very high.
8739
8740----------------------------------------
874113 October 2009. Summary of changes for version 20091013:
8742
87431) ACPI CA Core Subsystem:
8744
8745Fixed a problem where an Operation Region _REG method could be executed
8746more
8747than once. If a custom address space handler is installed by the host
8748before
8749the "initialize operation regions" phase of the ACPICA initialization,
8750any
8751_REG methods for that address space could be executed twice. This change
8752fixes the problem. ACPICA BZ 427. Lin Ming.
8753
8754Fixed a possible memory leak for the Scope() ASL operator. When the exact
8755invocation of "Scope(\)" is executed (change scope to root), one internal
8756operand object was leaked. Lin Ming.
8757
8758Implemented a run-time repair for the _MAT predefined method. If the _MAT
8759return value is defined as a Field object in the AML, and the field
8760size is less than or equal to the default width of an integer (32 or
876164),_MAT
8762can incorrectly return an Integer instead of a Buffer. ACPICA now
8763automatically repairs this problem. ACPICA BZ 810.
8764
8765Implemented a run-time repair for the _BIF and _BIX predefined methods.
8766The
8767"OEM Information" field is often incorrectly returned as an Integer with
8768value zero if the field is not supported by the platform. This is due to
8769an
8770ambiguity in the ACPI specification. The field should always be a string.
8771ACPICA now automatically repairs this problem by returning a NULL string
8772within the returned Package. ACPICA BZ 807.
8773
8774Example Code and Data Size: These are the sizes for the OS-independent
8775acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8776debug version of the code includes the debug output trace mechanism and
8777has a
8778much larger code and data size.
8779
8780  Previous Release:
8781    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
8782    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
8783  Current Release:
8784    Non-Debug Version:  85.8K Code, 18.0K Data, 103.8K Total
8785    Debug Version:     161.8K Code, 50.6K Data, 212.4K Total
8786
87872) iASL Compiler/Disassembler and Tools:
8788
8789Disassembler: Fixed a problem where references to external symbols that
8790contained one or more parent-prefixes (carats) were not handled
8791correctly,
8792possibly causing a fault. ACPICA BZ 806. Lin Ming.
8793
8794Disassembler: Restructured the code so that all functions that handle
8795external symbols are in a single module. One new file is added,
8796common/dmextern.c.
8797
8798AML Debugger: Added a max count argument for the Batch command (which
8799executes multiple predefined methods within the namespace.)
8800
8801iASL: Updated the compiler documentation (User Reference.) Available at
8802http://www.acpica.org/documentation/. ACPICA BZ 750.
8803
8804AcpiXtract: Updated for Lint and other formatting changes. Close all open
8805files.
8806
8807----------------------------------------
880803 September 2009. Summary of changes for version 20090903:
8809
88101) ACPI CA Core Subsystem:
8811
8812For Windows Vista compatibility, added the automatic execution of an _INI
8813method located at the namespace root (\_INI). This method is executed at
8814table load time. This support is in addition to the automatic execution
8815of
8816\_SB._INI. Lin Ming.
8817
8818Fixed a possible memory leak in the interpreter for AML package objects
8819if
8820the package initializer list is longer than the defined size of the
8821package.
8822This apparently can only happen if the BIOS changes the package size on
8823the
8824fly (seen in a _PSS object), as ASL compilers do not allow this. The
8825interpreter will truncate the package to the defined size (and issue an
8826error
8827message), but previously could leave the extra objects undeleted if they
8828were
8829pre-created during the argument processing (such is the case if the
8830package
8831consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.
8832
8833Fixed a problem seen when a Buffer or String is stored to itself via ASL.
8834This has been reported in the field. Previously, ACPICA would zero out
8835the
8836buffer/string. Now, the operation is treated as a noop. Provides Windows
8837compatibility. ACPICA BZ 803. Lin Ming.
8838
8839Removed an extraneous error message for ASL constructs of the form
8840Store(LocalX,LocalX) when LocalX is uninitialized. These curious
8841statements
8842are seen in many BIOSs and are once again treated as NOOPs and no error
8843is
8844emitted when they are encountered. ACPICA BZ 785.
8845
8846Fixed an extraneous warning message if a _DSM reserved method returns a
8847Package object. _DSM can return any type of object, so validation on the
8848return type cannot be performed. ACPICA BZ 802.
8849
8850Example Code and Data Size: These are the sizes for the OS-independent
8851acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8852debug version of the code includes the debug output trace mechanism and
8853has a
8854much larger code and data size.
8855
8856  Previous Release:
8857    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
8858    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
8859  Current Release:
8860    Non-Debug Version:  85.6K Code, 18.0K Data, 103.6K Total
8861    Debug Version:     161.7K Code, 50.9K Data, 212.6K Total
8862
88632) iASL Compiler/Disassembler and Tools:
8864
8865iASL: Fixed a problem with the use of the Alias operator and Resource
8866Templates. The correct alias is now constructed and no error is emitted.
8867ACPICA BZ 738.
8868
8869iASL: Implemented the -I option to specify additional search directories
8870for
8871include files. Allows multiple additional search paths for include files.
8872Directories are searched in the order specified on the command line
8873(after
8874the local directory is searched.) ACPICA BZ 800.
8875
8876iASL: Fixed a problem where the full pathname for include files was not
8877emitted for warnings/errors. This caused the IDE support to not work
8878properly. ACPICA BZ 765.
8879
8880iASL: Implemented the -@ option to specify a Windows-style response file
8881containing additional command line options. ACPICA BZ 801.
8882
8883AcpiExec: Added support to load multiple AML files simultaneously (such
8884as
8885a
8886DSDT and multiple SSDTs). Also added support for wildcards within the AML
8887pathname. These features allow all machine tables to be easily loaded and
8888debugged together. ACPICA BZ 804.
8889
8890Disassembler: Added missing support for disassembly of HEST table Error
8891Bank
8892subtables.
8893
8894----------------------------------------
889530 July 2009. Summary of changes for version 20090730:
8896
8897The ACPI 4.0 implementation for ACPICA is complete with this release.
8898
88991) ACPI CA Core Subsystem:
8900
8901ACPI 4.0: Added header file support for all new and changed ACPI tables.
8902Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are
8903new
8904for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,
8905BERT,
8906EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.
8907There
8908have been some ACPI 4.0 changes to other existing tables. Split the large
8909actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.
8910
8911ACPI 4.0: Implemented predefined name validation for all new names. There
8912are
891331 new names in ACPI 4.0. The predefined validation module was split into
8914two
8915files. The new file is namespace/nsrepair.c. ACPICA BZ 770.
8916
8917Implemented support for so-called "module-level executable code". This is
8918executable AML code that exists outside of any control method and is
8919intended
8920to be executed at table load time. Although illegal since ACPI 2.0, this
8921type
8922of code still exists and is apparently still being created. Blocks of
8923this
8924code are now detected and executed as intended. Currently, the code
8925blocks
8926must exist under either an If, Else, or While construct; these are the
8927typical cases seen in the field. ACPICA BZ 762. Lin Ming.
8928
8929Implemented an automatic dynamic repair for predefined names that return
8930nested Package objects. This applies to predefined names that are defined
8931to
8932return a variable-length Package of sub-packages. If the number of sub-
8933packages is one, BIOS code is occasionally seen that creates a simple
8934single
8935package with no sub-packages. This code attempts to fix the problem by
8936wrapping a new package object around the existing package. These methods
8937can
8938be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA
8939BZ
8940790.
8941
8942Fixed a regression introduced in 20090625 for the AcpiGetDevices
8943interface.
8944The _HID/_CID matching was broken and no longer matched IDs correctly.
8945ACPICA
8946BZ 793.
8947
8948Fixed a problem with AcpiReset where the reset would silently fail if the
8949register was one of the protected I/O ports. AcpiReset now bypasses the
8950port
8951validation mechanism. This may eventually be driven into the
8952AcpiRead/Write
8953interfaces.
8954
8955Fixed a regression related to the recent update of the AcpiRead/Write
8956interfaces. A sleep/suspend could fail if the optional PM2 Control
8957register
8958does not exist during an attempt to write the Bus Master Arbitration bit.
8959(However, some hosts already delete the code that writes this bit, and
8960the
8961code may in fact be obsolete at this date.) ACPICA BZ 799.
8962
8963Fixed a problem where AcpiTerminate could fault if inadvertently called
8964twice
8965in succession. ACPICA BZ 795.
8966
8967Example Code and Data Size: These are the sizes for the OS-independent
8968acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
8969debug version of the code includes the debug output trace mechanism and
8970has a
8971much larger code and data size.
8972
8973  Previous Release:
8974    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
8975    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
8976  Current Release:
8977    Non-Debug Version:  85.5K Code, 18.0K Data, 103.5K Total
8978    Debug Version:     161.6K Code, 50.9K Data, 212.5K Total
8979
89802) iASL Compiler/Disassembler and Tools:
8981
8982ACPI 4.0: Implemented disassembler support for all new ACPI tables and
8983changes to existing tables. ACPICA BZ 775.
8984
8985----------------------------------------
898625 June 2009. Summary of changes for version 20090625:
8987
8988The ACPI 4.0 Specification was released on June 16 and is available at
8989www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will
8990continue for the next few releases.
8991
89921) ACPI CA Core Subsystem:
8993
8994ACPI 4.0: Implemented interpreter support for the IPMI operation region
8995address space. Includes support for bi-directional data buffers and an
8996IPMI
8997address space handler (to be installed by an IPMI device driver.) ACPICA
8998BZ
8999773. Lin Ming.
9000
9001ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.
9002Includes
9003support in both the header files and the disassembler.
9004
9005Completed a major update for the AcpiGetObjectInfo external interface.
9006Changes include:
9007 - Support for variable, unlimited length HID, UID, and CID strings.
9008 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,
9009etc.)
9010 - Call the _SxW power methods on behalf of a device object.
9011 - Determine if a device is a PCI root bridge.
9012 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.
9013These changes will require an update to all callers of this interface.
9014See
9015the updated ACPICA Programmer Reference for details. One new source file
9016has
9017been added - utilities/utids.c. ACPICA BZ 368, 780.
9018
9019Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit
9020transfers. The Value parameter has been extended from 32 bits to 64 bits
9021in
9022order to support new ACPI 4.0 tables. These changes will require an
9023update
9024to
9025all callers of these interfaces. See the ACPICA Programmer Reference for
9026details. ACPICA BZ 768.
9027
9028Fixed several problems with AcpiAttachData. The handler was not invoked
9029when
9030the host node was deleted. The data sub-object was not automatically
9031deleted
9032when the host node was deleted. The interface to the handler had an
9033unused
9034parameter, this was removed. ACPICA BZ 778.
9035
9036Enhanced the function that dumps ACPI table headers. All non-printable
9037characters in the string fields are now replaced with '?' (Signature,
9038OemId,
9039OemTableId, and CompilerId.) ACPI tables with non-printable characters in
9040these fields are occasionally seen in the field. ACPICA BZ 788.
9041
9042Fixed a problem with predefined method repair code where the code that
9043attempts to repair/convert an object of incorrect type is only executed
9044on
9045the first time the predefined method is called. The mechanism that
9046disables
9047warnings on subsequent calls was interfering with the repair mechanism.
9048ACPICA BZ 781.
9049
9050Fixed a possible memory leak in the predefined validation/repair code
9051when
9052a
9053buffer is automatically converted to an expected string object.
9054
9055Removed obsolete 16-bit files from the distribution and from the current
9056git
9057tree head. ACPICA BZ 776.
9058
9059Example Code and Data Size: These are the sizes for the OS-independent
9060acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9061debug version of the code includes the debug output trace mechanism and
9062has a
9063much larger code and data size.
9064
9065  Previous Release:
9066    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9067    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9068  Current Release:
9069    Non-Debug Version:  84.7K Code, 17.8K Data, 102.5K Total
9070    Debug Version:     160.5K Code, 50.6K Data, 211.1K Total
9071
90722) iASL Compiler/Disassembler and Tools:
9073
9074ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI
9075operation region keyword. ACPICA BZ 771, 772. Lin Ming.
9076
9077ACPI 4.0: iASL - implemented compile-time validation support for all new
9078predefined names and control methods (31 total). ACPICA BZ 769.
9079
9080----------------------------------------
908121 May 2009. Summary of changes for version 20090521:
9082
90831) ACPI CA Core Subsystem:
9084
9085Disabled the preservation of the SCI enable bit in the PM1 control
9086register.
9087The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification
9088to
9089be
9090a "preserved" bit - "OSPM always preserves this bit position", section
90914.7.3.2.1. However, some machines fail if this bit is in fact preserved
9092because the bit needs to be explicitly set by the OS as a workaround. No
9093machines fail if the bit is not preserved. Therefore, ACPICA no longer
9094attempts to preserve this bit.
9095
9096Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or
9097incorrectly formed _PRT package could cause a fault. Added validation to
9098ensure that each package element is actually a sub-package.
9099
9100Implemented a new interface to install or override a single control
9101method,
9102AcpiInstallMethod. This interface is useful when debugging in order to
9103repair
9104an existing method or to install a missing method without having to
9105override
9106the entire ACPI table. See the ACPICA Programmer Reference for use and
9107examples. Lin Ming, Bob Moore.
9108
9109Fixed several reference count issues with the DdbHandle object that is
9110created from a Load or LoadTable operator. Prevent premature deletion of
9111the
9112object. Also, mark the object as invalid once the table has been
9113unloaded.
9114This is needed because the handle itself may not be deleted after the
9115table
9116unload, depending on whether it has been stored in a named object by the
9117caller. Lin Ming.
9118
9119Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple
9120mutexes of the same sync level are acquired but then not released in
9121strict
9122opposite order, the internally maintained Current Sync Level becomes
9123confused
9124and can cause subsequent execution errors. ACPICA BZ 471.
9125
9126Changed the allowable release order for ASL mutex objects. The ACPI 4.0
9127specification has been changed to make the SyncLevel for mutex objects
9128more
9129useful. When releasing a mutex, the SyncLevel of the mutex must now be
9130the
9131same as the current sync level. This makes more sense than the previous
9132rule
9133(SyncLevel less than or equal). This change updates the code to match the
9134specification.
9135
9136Fixed a problem with the local version of the AcpiOsPurgeCache function.
9137The
9138(local) cache must be locked during all cache object deletions. Andrew
9139Baumann.
9140
9141Updated the Load operator to use operation region interfaces. This
9142replaces
9143direct memory mapping with region access calls. Now, all region accesses
9144go
9145through the installed region handler as they should.
9146
9147Simplified and optimized the NsGetNextNode function. Reduced parameter
9148count
9149and reduced code for this frequently used function.
9150
9151Example Code and Data Size: These are the sizes for the OS-independent
9152acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9153debug version of the code includes the debug output trace mechanism and
9154has a
9155much larger code and data size.
9156
9157  Previous Release:
9158    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9159    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9160  Current Release:
9161    Non-Debug Version:  83.4K Code, 17.5K Data, 100.9K Total
9162    Debug Version:     158.9K Code, 50.0K Data, 208.9K Total
9163
91642) iASL Compiler/Disassembler and Tools:
9165
9166Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some
9167problems
9168with sub-table disassembly and handling invalid sub-tables. Attempt
9169recovery
9170after an invalid sub-table ID.
9171
9172----------------------------------------
917322 April 2009. Summary of changes for version 20090422:
9174
91751) ACPI CA Core Subsystem:
9176
9177Fixed a compatibility issue with the recently released I/O port
9178protection
9179mechanism. For windows compatibility, 1) On a port protection violation,
9180simply ignore the request and do not return an exception (allow the
9181control
9182method to continue execution.) 2) If only part of the request overlaps a
9183protected port, read/write the individual ports that are not protected.
9184Linux
9185BZ 13036. Lin Ming
9186
9187Enhanced the execution of the ASL/AML BreakPoint operator so that it
9188actually
9189breaks into the AML debugger if the debugger is present. This matches the
9190ACPI-defined behavior.
9191
9192Fixed several possible warnings related to the use of the configurable
9193ACPI_THREAD_ID. This type can now be configured as either an integer or a
9194pointer with no warnings. Also fixes several warnings in printf-like
9195statements for the 64-bit build when the type is configured as a pointer.
9196ACPICA BZ 766, 767.
9197
9198Fixed a number of possible warnings when compiling with gcc 4+ (depending
9199on
9200warning options.) Examples include printf formats, aliasing, unused
9201globals,
9202missing prototypes, missing switch default statements, use of non-ANSI
9203library functions, use of non-ANSI constructs. See generate/unix/Makefile
9204for
9205a list of warning options used with gcc 3 and 4. ACPICA BZ 735.
9206
9207Example Code and Data Size: These are the sizes for the OS-independent
9208acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9209debug version of the code includes the debug output trace mechanism and
9210has a
9211much larger code and data size.
9212
9213  Previous Release:
9214    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9215    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9216  Current Release:
9217    Non-Debug Version:  82.8K Code, 17.5K Data, 100.3K Total
9218    Debug Version:     158.0K Code, 49.9K Data, 207.9K Total
9219
92202) iASL Compiler/Disassembler and Tools:
9221
9222iASL: Fixed a generation warning from Bison 2.3 and fixed several
9223warnings
9224on
9225the 64-bit build.
9226
9227iASL: Fixed a problem where the Unix/Linux versions of the compiler could
9228not
9229correctly digest Windows/DOS formatted files (with CR/LF).
9230
9231iASL: Added a new option for "quiet mode" (-va) that produces only the
9232compilation summary, not individual errors and warnings. Useful for large
9233batch compilations.
9234
9235AcpiExec: Implemented a new option (-z) to enable a forced
9236semaphore/mutex
9237timeout that can be used to detect hang conditions during execution of
9238AML
9239code (includes both internal semaphores and AML-defined mutexes and
9240events.)
9241
9242Added new makefiles for the generation of acpica in a generic unix-like
9243environment. These makefiles are intended to generate the acpica tools
9244and
9245utilities from the original acpica git source tree structure.
9246
9247Test Suites: Updated and cleaned up the documentation files. Updated the
9248copyrights to 2009, affecting all source files. Use the new version of
9249iASL
9250with quiet mode. Increased the number of available semaphores in the
9251Windows
9252OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,
9253added
9254an alternate implementation of the semaphore timeout to allow aslts to
9255execute fully on Cygwin.
9256
9257----------------------------------------
925820 March 2009. Summary of changes for version 20090320:
9259
92601) ACPI CA Core Subsystem:
9261
9262Fixed a possible race condition between AcpiWalkNamespace and dynamic
9263table
9264unloads. Added a reader/writer locking mechanism to allow multiple
9265concurrent
9266namespace walks (readers), but block a dynamic table unload until it can
9267gain
9268exclusive write access to the namespace. This fixes a problem where a
9269table
9270unload could (possibly catastrophically) delete the portion of the
9271namespace
9272that is currently being examined by a walk. Adds a new file, utlock.c,
9273that
9274implements the reader/writer lock mechanism. ACPICA BZ 749.
9275
9276Fixed a regression introduced in version 20090220 where a change to the
9277FADT
9278handling could cause the ACPICA subsystem to access non-existent I/O
9279ports.
9280
9281Modified the handling of FADT register and table (FACS/DSDT) addresses.
9282The
9283FADT can contain both 32-bit and 64-bit versions of these addresses.
9284Previously, the 64-bit versions were favored, meaning that if both 32 and
928564
9286versions were valid, but not equal, the 64-bit version was used. This was
9287found to cause some machines to fail. Now, in this case, the 32-bit
9288version
9289is used instead. This now matches the Windows behavior.
9290
9291Implemented a new mechanism to protect certain I/O ports. Provides
9292Microsoft
9293compatibility and protects the standard PC I/O ports from access via AML
9294code. Adds a new file, hwvalid.c
9295
9296Fixed a possible extraneous warning message from the FADT support. The
9297message warns of a 32/64 length mismatch between the legacy and GAS
9298definitions for a register.
9299
9300Removed the obsolete AcpiOsValidateAddress OSL interface. This interface
9301is
9302made obsolete by the port protection mechanism above. It was previously
9303used
9304to validate the entire address range of an operation region, which could
9305be
9306incorrect if the range included illegal ports, but fields within the
9307operation region did not actually access those ports. Validation is now
9308performed on a per-field basis instead of the entire region.
9309
9310Modified the handling of the PM1 Status Register ignored bit (bit 11.)
9311Ignored bits must be "preserved" according to the ACPI spec. Usually,
9312this
9313means a read/modify/write when writing to the register. However, for
9314status
9315registers, writing a one means clear the event. Writing a zero means
9316preserve
9317the event (do not clear.) This behavior is clarified in the ACPI 4.0
9318spec,
9319and the ACPICA code now simply always writes a zero to the ignored bit.
9320
9321Modified the handling of ignored bits for the PM1 A/B Control Registers.
9322As
9323per the ACPI specification, for the control registers, preserve
9324(read/modify/write) all bits that are defined as either reserved or
9325ignored.
9326
9327Updated the handling of write-only bits in the PM1 A/B Control Registers.
9328When reading the register, zero the write-only bits as per the ACPI spec.
9329ACPICA BZ 443. Lin Ming.
9330
9331Removed "Linux" from the list of supported _OSI strings. Linux no longer
9332wants to reply true to this request. The Windows strings are the only
9333paths
9334through the AML that are tested and known to work properly.
9335
9336  Previous Release:
9337    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9338    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9339  Current Release:
9340    Non-Debug Version:  82.6K Code, 17.6K Data, 100.2K Total
9341    Debug Version:     157.7K Code, 49.9K Data, 207.6K Total
9342
93432) iASL Compiler/Disassembler and Tools:
9344
9345Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c
9346and
9347aetables.c
9348
9349----------------------------------------
935020 February 2009. Summary of changes for version 20090220:
9351
93521) ACPI CA Core Subsystem:
9353
9354Optimized the ACPI register locking. Removed locking for reads from the
9355ACPI
9356bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock
9357is
9358not required when reading the single-bit registers. The
9359AcpiGetRegisterUnlocked function is no longer needed and has been
9360removed.
9361This will improve performance for reads on these registers. ACPICA BZ
9362760.
9363
9364Fixed the parameter validation for AcpiRead/Write. Now return
9365AE_BAD_PARAMETER if the input register pointer is null, and
9366AE_BAD_ADDRESS
9367if
9368the register has an address of zero. Previously, these cases simply
9369returned
9370AE_OK. For optional registers such as PM1B status/enable/control, the
9371caller
9372should check for a valid register address before calling. ACPICA BZ 748.
9373
9374Renamed the external ACPI bit register access functions. Renamed
9375AcpiGetRegister and AcpiSetRegister to clarify the purpose of these
9376functions. The new names are AcpiReadBitRegister and
9377AcpiWriteBitRegister.
9378Also, restructured the code for these functions by simplifying the code
9379path
9380and condensing duplicate code to reduce code size.
9381
9382Added new functions to transparently handle the possibly split PM1 A/B
9383registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two
9384functions
9385now handle the split registers for PM1 Status, Enable, and Control.
9386ACPICA
9387BZ
9388746.
9389
9390Added a function to handle the PM1 control registers,
9391AcpiHwWritePm1Control.
9392This function writes both of the PM1 control registers (A/B). These
9393registers
9394are different than the PM1 A/B status and enable registers in that
9395different
9396values can be written to the A/B registers. Most notably, the SLP_TYP
9397bits
9398can be different, as per the values returned from the _Sx predefined
9399methods.
9400
9401Removed an extra register write within AcpiHwClearAcpiStatus. This
9402function
9403was writing an optional PM1B status register twice. The existing call to
9404the
9405low-level AcpiHwRegisterWrite automatically handles a possibly split PM1
9406A/B
9407register. ACPICA BZ 751.
9408
9409Split out the PM1 Status registers from the FADT. Added new globals for
9410these
9411registers (A/B), similar to the way the PM1 Enable registers are handled.
9412Instead of overloading the FADT Event Register blocks. This makes the
9413code
9414clearer and less prone to error.
9415
9416Fixed the warning message for when the platform contains too many ACPI
9417tables
9418for the default size of the global root table data structure. The
9419calculation
9420for the truncation value was incorrect.
9421
9422Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this
9423obsolete macro, since it is now a simple reference to ->common.type.
9424There
9425were about 150 invocations of the macro across 41 files. ACPICA BZ 755.
9426
9427Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as
9428TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to
9429simply SLEEP_TYPE. ACPICA BZ 754.
9430
9431Conditionally compile the AcpiSetFirmwareWakingVector64 function. This
9432function is only needed on 64-bit host operating systems and is thus not
9433included for 32-bit hosts.
9434
9435Debug output: print the input and result for invocations of the _OSI
9436reserved
9437control method via the ACPI_LV_INFO debug level. Also, reduced some of
9438the
9439verbosity of this debug level. Len Brown.
9440
9441Example Code and Data Size: These are the sizes for the OS-independent
9442acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9443debug version of the code includes the debug output trace mechanism and
9444has a
9445much larger code and data size.
9446
9447  Previous Release:
9448    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9449    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9450  Current Release:
9451    Non-Debug Version:  82.0K Code, 17.5K Data,  99.5K Total
9452    Debug Version:     156.9K Code, 49.8K Data, 206.7K Total
9453
94542) iASL Compiler/Disassembler and Tools:
9455
9456Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the
9457various legal performance profiles.
9458
9459----------------------------------------
946023 January 2009. Summary of changes for version 20090123:
9461
94621) ACPI CA Core Subsystem:
9463
9464Added the 2009 copyright to all module headers and signons. This affects
9465virtually every file in the ACPICA core subsystem, the iASL compiler, and
9466the tools/utilities.
9467
9468Implemented a change to allow the host to override any ACPI table,
9469including
9470dynamically loaded tables. Previously, only the DSDT could be replaced by
9471the
9472host. With this change, the AcpiOsTableOverride interface is called for
9473each
9474table found in the RSDT/XSDT during ACPICA initialization, and also
9475whenever
9476a table is dynamically loaded via the AML Load operator.
9477
9478Updated FADT flag definitions, especially the Boot Architecture flags.
9479
9480Debugger: For the Find command, automatically pad the input ACPI name
9481with
9482underscores if the name is shorter than 4 characters. This enables a
9483match
9484with the actual namespace entry which is itself padded with underscores.
9485
9486Example Code and Data Size: These are the sizes for the OS-independent
9487acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9488debug version of the code includes the debug output trace mechanism and
9489has a
9490much larger code and data size.
9491
9492  Previous Release:
9493    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9494    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9495  Current Release:
9496    Non-Debug Version:  82.3K Code, 17.5K Data,  99.8K Total
9497    Debug Version:     157.3K Code, 49.8K Data, 207.1K Total
9498
94992) iASL Compiler/Disassembler and Tools:
9500
9501Fix build error under Bison-2.4.
9502
9503Disassembler: Enhanced FADT support. Added decoding of the Boot
9504Architecture
9505flags. Now decode all flags, regardless of the FADT version. Flag output
9506includes the FADT version which first defined each flag.
9507
9508The iASL -g option now dumps the RSDT to a file (in addition to the FADT
9509and
9510DSDT). Windows only.
9511
9512----------------------------------------
951304 December 2008. Summary of changes for version 20081204:
9514
95151) ACPI CA Core Subsystem:
9516
9517The ACPICA Programmer Reference has been completely updated and revamped
9518for
9519this release. This includes updates to the external interfaces, OSL
9520interfaces, the overview sections, and the debugger reference.
9521
9522Several new ACPICA interfaces have been implemented and documented in the
9523programmer reference:
9524AcpiReset - Writes the reset value to the FADT-defined reset register.
9525AcpiDisableAllGpes - Disable all available GPEs.
9526AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.
9527AcpiGetGpeDevice - Get the GPE block device associated with a GPE.
9528AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.
9529AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)
9530AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)
9531
9532Most of the public ACPI hardware-related interfaces have been moved to a
9533new
9534file, components/hardware/hwxface.c
9535
9536Enhanced the FADT parsing and low-level ACPI register access: The ACPI
9537register lengths within the FADT are now used, and the low level ACPI
9538register access no longer hardcodes the ACPI register lengths. Given that
9539there may be some risk in actually trusting the FADT register lengths, a
9540run-
9541time option was added to fall back to the default hardcoded lengths if
9542the
9543FADT proves to contain incorrect values - UseDefaultRegisterWidths. This
9544option is set to true for now, and a warning is issued if a suspicious
9545FADT
9546register length is overridden with the default value.
9547
9548Fixed a reference count issue in NsRepairObject. This problem was
9549introduced
9550in version 20081031 as part of a fix to repair Buffer objects within
9551Packages. Lin Ming.
9552
9553Added semaphore support to the Linux/Unix application OS-services layer
9554(OSL). ACPICA BZ 448. Lin Ming.
9555
9556Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes
9557will
9558be implemented in the OSL, or will binary semaphores be used instead.
9559
9560Example Code and Data Size: These are the sizes for the OS-independent
9561acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9562debug version of the code includes the debug output trace mechanism and
9563has a
9564much larger code and data size.
9565
9566  Previous Release:
9567    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9568    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9569  Current Release:
9570    Non-Debug Version:  82.3K Code, 17.4K Data,  99.7K Total
9571    Debug Version:     157.1K Code, 49.7K Data, 206.8K Total
9572
95732) iASL Compiler/Disassembler and Tools:
9574
9575iASL: Completed the '-e' option to include additional ACPI tables in
9576order
9577to
9578aid with disassembly and External statement generation. ACPICA BZ 742.
9579Lin
9580Ming.
9581
9582iASL: Removed the "named object in while loop" error. The compiler cannot
9583determine how many times a loop will execute. ACPICA BZ 730.
9584
9585Disassembler: Implemented support for FADT revision 2 (MS extension).
9586ACPICA
9587BZ 743.
9588
9589Disassembler: Updates for several ACPI data tables (HEST, EINJ, and
9590MCFG).
9591
9592----------------------------------------
959331 October 2008. Summary of changes for version 20081031:
9594
95951) ACPI CA Core Subsystem:
9596
9597Restructured the ACPICA header files into public/private. acpi.h now
9598includes
9599only the "public" acpica headers. All other acpica headers are "private"
9600and
9601should not be included by acpica users. One new file, accommon.h is used
9602to
9603include the commonly used private headers for acpica code generation.
9604Future
9605plans include moving all private headers to a new subdirectory.
9606
9607Implemented an automatic Buffer->String return value conversion for
9608predefined ACPI methods. For these methods (such as _BIF), added
9609automatic
9610conversion for return objects that are required to be a String, but a
9611Buffer
9612was found instead. This can happen when reading string battery data from
9613an
9614operation region, because it used to be difficult to convert the data
9615from
9616buffer to string from within the ASL. Ensures that the host OS is
9617provided
9618with a valid null-terminated string. Linux BZ 11822.
9619
9620Updated the FACS waking vector interfaces. Split
9621AcpiSetFirmwareWakingVector
9622into two: one for the 32-bit vector, another for the 64-bit vector. This
9623is
9624required because the host OS must setup the wake much differently for
9625each
9626vector (real vs. protected mode, etc.) and the interface itself should
9627not
9628be
9629deciding which vector to use. Also, eliminated the
9630GetFirmwareWakingVector
9631interface, as it served no purpose (only the firmware reads the vector,
9632OS
9633only writes the vector.) ACPICA BZ 731.
9634
9635Implemented a mechanism to escape infinite AML While() loops. Added a
9636loop
9637counter to force exit from AML While loops if the count becomes too
9638large.
9639This can occur in poorly written AML when the hardware does not respond
9640within a while loop and the loop does not implement a timeout. The
9641maximum
9642loop count is configurable. A new exception code is returned when a loop
9643is
9644broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.
9645
9646Optimized the execution of AML While loops. Previously, a control state
9647object was allocated and freed for each execution of the loop. The
9648optimization is to simply reuse the control state for each iteration.
9649This
9650speeds up the raw loop execution time by about 5%.
9651
9652Enhanced the implicit return mechanism. For Windows compatibility, return
9653an
9654implicit integer of value zero for methods that contain no executable
9655code.
9656Such methods are seen in the field as stubs (presumably), and can cause
9657drivers to fail if they expect a return value. Lin Ming.
9658
9659Allow multiple backslashes as root prefixes in namepaths. In a fully
9660qualified namepath, allow multiple backslash prefixes. This can happen
9661(and
9662is seen in the field) because of the use of a double-backslash in strings
9663(since backslash is the escape character) causing confusion. ACPICA BZ
9664739
9665Lin Ming.
9666
9667Emit a warning if two different FACS or DSDT tables are discovered in the
9668FADT. Checks if there are two valid but different addresses for the FACS
9669and
9670DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)
9671
9672Consolidated the method argument count validation code. Merged the code
9673that
9674validates control method argument counts into the predefined validation
9675module. Eliminates possible multiple warnings for incorrect argument
9676counts.
9677
9678Implemented ACPICA example code. Includes code for ACPICA initialization,
9679handler installation, and calling a control method. Available at
9680source/tools/examples.
9681
9682Added a global pointer for FACS table to simplify internal FACS access.
9683Use
9684the global pointer instead of using AcpiGetTableByIndex for each FACS
9685access.
9686This simplifies the code for the Global Lock and the Firmware Waking
9687Vector(s).
9688
9689Example Code and Data Size: These are the sizes for the OS-independent
9690acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9691debug version of the code includes the debug output trace mechanism and
9692has a
9693much larger code and data size.
9694
9695  Previous Release:
9696    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9697    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9698  Current Release:
9699    Non-Debug Version:  81.7K Code, 17.3K Data,  99.0K Total
9700    Debug Version:     156.4K Code, 49.4K Data, 205.8K Total
9701
97022) iASL Compiler/Disassembler and Tools:
9703
9704iASL: Improved disassembly of external method calls. Added the -e option
9705to
9706allow the inclusion of additional ACPI tables to help with the
9707disassembly
9708of
9709method invocations and the generation of external declarations during the
9710disassembly. Certain external method invocations cannot be disassembled
9711properly without the actual declaration of the method. Use the -e option
9712to
9713include the table where the external method(s) are actually declared.
9714Most
9715useful for disassembling SSDTs that make method calls back to the master
9716DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT:  iasl
9717-d
9718-e dsdt.aml ssdt1.aml
9719
9720iASL: Fix to allow references to aliases within ASL namepaths. Fixes a
9721problem where the use of an alias within a namepath would result in a not
9722found error or cause the compiler to fault. Also now allows forward
9723references from the Alias operator itself. ACPICA BZ 738.
9724
9725----------------------------------------
972626 September 2008. Summary of changes for version 20080926:
9727
97281) ACPI CA Core Subsystem:
9729
9730Designed and implemented a mechanism to validate predefined ACPI methods
9731and
9732objects. This code validates the predefined ACPI objects (objects whose
9733names
9734start with underscore) that appear in the namespace, at the time they are
9735evaluated. The argument count and the type of the returned object are
9736validated against the ACPI specification. The purpose of this validation
9737is
9738to detect problems with the BIOS-implemented predefined ACPI objects
9739before
9740the results are returned to the ACPI-related drivers. Future enhancements
9741may
9742include actual repair of incorrect return objects where possible. Two new
9743files are nspredef.c and acpredef.h.
9744
9745Fixed a fault in the AML parser if a memory allocation fails during the
9746Op
9747completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.
9748
9749Fixed an issue with implicit return compatibility. This change improves
9750the
9751implicit return mechanism to be more compatible with the MS interpreter.
9752Lin
9753Ming, ACPICA BZ 349.
9754
9755Implemented support for zero-length buffer-to-string conversions. Allow
9756zero
9757length strings during interpreter buffer-to-string conversions. For
9758example,
9759during the ToDecimalString and ToHexString operators, as well as implicit
9760conversions. Fiodor Suietov, ACPICA BZ 585.
9761
9762Fixed two possible memory leaks in the error exit paths of
9763AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions
9764are
9765similar in that they use a stack of state objects in order to eliminate
9766recursion. The stack must be fully unwound and deallocated if an error
9767occurs. Lin Ming. ACPICA BZ 383.
9768
9769Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the
9770global
9771ACPI register table. This bit does not exist and is unused. Lin Ming, Bob
9772Moore ACPICA BZ 442.
9773
9774Removed the obsolete version number in module headers. Removed the
9775"$Revision" number that appeared in each module header. This version
9776number
9777was useful under SourceSafe and CVS, but has no meaning under git. It is
9778not
9779only incorrect, it could also be misleading.
9780
9781Example Code and Data Size: These are the sizes for the OS-independent
9782acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9783debug version of the code includes the debug output trace mechanism and
9784has a
9785much larger code and data size.
9786
9787  Previous Release:
9788    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9789    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
9790  Current Release:
9791    Non-Debug Version:  81.2K Code, 17.0K Data,  98.2K Total
9792    Debug Version:     155.8K Code, 49.1K Data, 204.9K Total
9793
9794----------------------------------------
979529 August 2008. Summary of changes for version 20080829:
9796
97971) ACPI CA Core Subsystem:
9798
9799Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type
9800Reference. Changes include the elimination of cheating on the Object
9801field
9802for the DdbHandle subtype, addition of a reference class field to
9803differentiate the various reference types (instead of an AML opcode), and
9804the
9805cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723
9806
9807Reduce an error to a warning for an incorrect method argument count.
9808Previously aborted with an error if too few arguments were passed to a
9809control method via the external ACPICA interface. Now issue a warning
9810instead
9811and continue. Handles the case where the method inadvertently declares
9812too
9813many arguments, but does not actually use the extra ones. Applies mainly
9814to
9815the predefined methods. Lin Ming. Linux BZ 11032.
9816
9817Disallow the evaluation of named object types with no intrinsic value.
9818Return
9819AE_TYPE for objects that have no value and therefore evaluation is
9820undefined:
9821Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation
9822of
9823these types were allowed, but an exception would be generated at some
9824point
9825during the evaluation. Now, the error is generated up front.
9826
9827Fixed a possible memory leak in the AcpiNsGetExternalPathname function
9828(nsnames.c). Fixes a leak in the error exit path.
9829
9830Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These
9831debug
9832levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and
9833ACPI_EXCEPTION
9834interfaces. Also added ACPI_DB_EVENTS to correspond with the existing
9835ACPI_LV_EVENTS.
9836
9837Removed obsolete and/or unused exception codes from the acexcep.h header.
9838There is the possibility that certain device drivers may be affected if
9839they
9840use any of these exceptions.
9841
9842The ACPICA documentation has been added to the public git source tree,
9843under
9844acpica/documents. Included are the ACPICA programmer reference, the iASL
9845compiler reference, and the changes.txt release logfile.
9846
9847Example Code and Data Size: These are the sizes for the OS-independent
9848acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9849debug version of the code includes the debug output trace mechanism and
9850has a
9851much larger code and data size.
9852
9853  Previous Release:
9854    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9855    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
9856  Current Release:
9857    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9858    Debug Version:     153.7K Code, 48.2K Data, 201.9K Total
9859
98602) iASL Compiler/Disassembler and Tools:
9861
9862Allow multiple argument counts for the predefined _SCP method. ACPI 3.0
9863defines _SCP with 3 arguments. Previous versions defined it with only 1
9864argument. iASL now allows both definitions.
9865
9866iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for
9867zero-
9868length subtables when disassembling ACPI tables. Also fixed a couple of
9869errors where a full 16-bit table type field was not extracted from the
9870input
9871properly.
9872
9873acpisrc: Improve comment counting mechanism for generating source code
9874statistics. Count first and last lines of multi-line comments as
9875whitespace,
9876not comment lines. Handle Linux legal header in addition to standard
9877acpica
9878header.
9879
9880----------------------------------------
9881
988229 July 2008. Summary of changes for version 20080729:
9883
98841) ACPI CA Core Subsystem:
9885
9886Fix a possible deadlock in the GPE dispatch. Remove call to
9887AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will
9888attempt
9889to acquire the GPE lock but can deadlock since the GPE lock is already
9890held
9891at dispatch time. This code was introduced in version 20060831 as a
9892response
9893to Linux BZ 6881 and has since been removed from Linux.
9894
9895Add a function to dereference returned reference objects. Examines the
9896return
9897object from a call to AcpiEvaluateObject. Any Index or RefOf references
9898are
9899automatically dereferenced in an attempt to return something useful
9900(these
9901reference types cannot be converted into an external ACPI_OBJECT.)
9902Provides
9903MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105
9904
9905x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new
9906subtables for the MADT and one new subtable for the SRAT. Includes
9907disassembler and AcpiSrc support. Data from the Intel 64 Architecture
9908x2APIC
9909Specification, June 2008.
9910
9911Additional error checking for pathname utilities. Add error check after
9912all
9913calls to AcpiNsGetPathnameLength. Add status return from
9914AcpiNsBuildExternalPath and check after all calls. Add parameter
9915validation
9916to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.
9917
9918Return status from the global init function AcpiUtGlobalInitialize. This
9919is
9920used by both the kernel subsystem and the utilities such as iASL
9921compiler.
9922The function could possibly fail when the caches are initialized. Yang
9923Yi.
9924
9925Add a function to decode reference object types to strings. Created for
9926improved error messages.
9927
9928Improve object conversion error messages. Better error messages during
9929object
9930conversion from internal to the external ACPI_OBJECT. Used for external
9931calls
9932to AcpiEvaluateObject.
9933
9934Example Code and Data Size: These are the sizes for the OS-independent
9935acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
9936debug version of the code includes the debug output trace mechanism and
9937has a
9938much larger code and data size.
9939
9940  Previous Release:
9941    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
9942    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
9943  Current Release:
9944    Non-Debug Version:  79.7K Code, 16.4K Data,  96.1K Total
9945    Debug Version:     153.9K Code, 48.4K Data, 202.3K Total
9946
99472) iASL Compiler/Disassembler and Tools:
9948
9949Debugger: fix a possible hang when evaluating non-methods. Fixes a
9950problem
9951introduced in version 20080701. If the object being evaluated (via
9952execute
9953command) is not a method, the debugger can hang while trying to obtain
9954non-
9955existent parameters.
9956
9957iASL: relax error for using reserved "_T_x" identifiers. These names can
9958appear in a disassembled ASL file if they were emitted by the original
9959compiler. Instead of issuing an error or warning and forcing the user to
9960manually change these names, issue a remark instead.
9961
9962iASL: error if named object created in while loop. Emit an error if any
9963named
9964object is created within a While loop. If allowed, this code will
9965generate
9966a
9967run-time error on the second iteration of the loop when an attempt is
9968made
9969to
9970create the same named object twice. ACPICA bugzilla 730.
9971
9972iASL: Support absolute pathnames for include files. Add support for
9973absolute
9974pathnames within the Include operator. previously, only relative
9975pathnames
9976were supported.
9977
9978iASL: Enforce minimum 1 interrupt in interrupt macro and Resource
9979Descriptor.
9980The ACPI spec requires one interrupt minimum. BZ 423
9981
9982iASL: Handle a missing ResourceSource arg, with a present SourceIndex.
9983Handles the case for the Interrupt Resource Descriptor where
9984the ResourceSource argument is omitted but ResourceSourceIndex
9985is present. Now leave room for the Index. BZ 426
9986
9987iASL: Prevent error message if CondRefOf target does not exist. Fixes
9988cases
9989where an error message is emitted if the target does not exist. BZ 516
9990
9991iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option
9992(get ACPI tables on Windows). This was apparently broken in version
999320070919.
9994
9995AcpiXtract: Handle EOF while extracting data. Correctly handle the case
9996where
9997the EOF happens immediately after the last table in the input file. Print
9998completion message. Previously, no message was displayed in this case.
9999
10000----------------------------------------
1000101 July 2008. Summary of changes for version 20080701:
10002
100030) Git source tree / acpica.org
10004
10005Fixed a problem where a git-clone from http would not transfer the entire
10006source tree.
10007
100081) ACPI CA Core Subsystem:
10009
10010Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one
10011enable bit. Now performs a read-change-write of the enable register
10012instead
10013of simply writing out the cached enable mask. This will prevent
10014inadvertent
10015enabling of GPEs if a rogue GPE is received during initialization (before
10016GPE
10017handlers are installed.)
10018
10019Implemented a copy for dynamically loaded tables. Previously, dynamically
10020loaded tables were simply mapped - but on some machines this memory is
10021corrupted after suspend. Now copy the table to a local buffer. For the
10022OpRegion case, added checksum verify. Use the table length from the table
10023header, not the region length. For the Buffer case, use the table length
10024also. Dennis Noordsij, Bob Moore. BZ 10734
10025
10026Fixed a problem where the same ACPI table could not be dynamically loaded
10027and
10028unloaded more than once. Without this change, a table cannot be loaded
10029again
10030once it has been loaded/unloaded one time. The current mechanism does not
10031unregister a table upon an unload. During a load, if the same table is
10032found,
10033this no longer returns an exception. BZ 722
10034
10035Fixed a problem where the wrong descriptor length was calculated for the
10036EndTag descriptor in 64-bit mode. The "minimal" descriptors such as
10037EndTag
10038are calculated as 12 bytes long, but the actual length in the internal
10039descriptor is 16 because of the round-up to 8 on the 64-bit build.
10040Reported
10041by Linn Crosetto. BZ 728
10042
10043Fixed a possible memory leak in the Unload operator. The DdbHandle
10044returned
10045by Load() did not have its reference count decremented during unload,
10046leading
10047to a memory leak. Lin Ming. BZ 727
10048
10049Fixed a possible memory leak when deleting thermal/processor objects. Any
10050associated notify handlers (and objects) were not being deleted. Fiodor
10051Suietov. BZ 506
10052
10053Fixed the ordering of the ASCII names in the global mutex table to match
10054the
10055actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug
10056only.
10057Vegard Nossum. BZ 726
10058
10059Enhanced the AcpiGetObjectInfo interface to return the number of required
10060arguments if the object is a control method. Added this call to the
10061debugger
10062so the proper number of default arguments are passed to a method. This
10063prevents a warning when executing methods from AcpiExec.
10064
10065Added a check for an invalid handle in AcpiGetObjectInfo. Return
10066AE_BAD_PARAMETER if input handle is invalid. BZ 474
10067
10068Fixed an extraneous warning from exconfig.c on the 64-bit build.
10069
10070Example Code and Data Size: These are the sizes for the OS-independent
10071acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10072debug version of the code includes the debug output trace mechanism and
10073has a
10074much larger code and data size.
10075
10076  Previous Release:
10077    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10078    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10079  Current Release:
10080    Non-Debug Version:  79.6K Code, 16.2K Data,  95.8K Total
10081    Debug Version:     153.5K Code, 48.2K Data, 201.7K Total
10082
100832) iASL Compiler/Disassembler and Tools:
10084
10085iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both
10086resource descriptor names.
10087
10088iASL: Detect invalid ASCII characters in input (windows version). Removed
10089the
10090"-CF" flag from the flex compile, enables correct detection of non-ASCII
10091characters in the input. BZ 441
10092
10093iASL: Eliminate warning when result of LoadTable is not used. Eliminate
10094the
10095"result of operation not used" warning when the DDB handle returned from
10096LoadTable is not used. The warning is not needed. BZ 590
10097
10098AcpiExec: Add support for dynamic table load/unload. Now calls _CFG
10099method
10100to
10101pass address of table to the AML. Added option to disable OpRegion
10102simulation
10103to allow creation of an OpRegion with a real address that was passed to
10104_CFG.
10105All of this allows testing of the Load and Unload operators from
10106AcpiExec.
10107
10108Debugger: update tables command for unloaded tables. Handle unloaded
10109tables
10110and use the standard table header output routine.
10111
10112----------------------------------------
1011309 June 2008. Summary of changes for version 20080609:
10114
101151) ACPI CA Core Subsystem:
10116
10117Implemented a workaround for reversed _PRT entries. A significant number
10118of
10119BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This
10120change dynamically detects and repairs this problem. Provides
10121compatibility
10122with MS ACPI. BZ 6859
10123
10124Simplified the internal ACPI hardware interfaces to eliminate the locking
10125flag parameter from Register Read/Write. Added a new external interface,
10126AcpiGetRegisterUnlocked.
10127
10128Fixed a problem where the invocation of a GPE control method could hang.
10129This
10130was a regression introduced in 20080514. The new method argument count
10131validation mechanism can enter an infinite loop when a GPE method is
10132dispatched. Problem fixed by removing the obsolete code that passed GPE
10133block
10134information to the notify handler via the control method parameter
10135pointer.
10136
10137Fixed a problem where the _SST execution status was incorrectly returned
10138to
10139the caller of AcpiEnterSleepStatePrep. This was a regression introduced
10140in
1014120080514. _SST is optional and a NOT_FOUND exception should never be
10142returned. BZ 716
10143
10144Fixed a problem where a deleted object could be accessed from within the
10145AML
10146parser. This was a regression introduced in version 20080123 as a fix for
10147the
10148Unload operator. Lin Ming. BZ 10669
10149
10150Cleaned up the debug operand dump mechanism. Eliminated unnecessary
10151operands
10152and eliminated the use of a negative index in a loop. Operands are now
10153displayed in the correct order, not backwards. This also fixes a
10154regression
10155introduced in 20080514 on 64-bit systems where the elimination of
10156ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ
10157715
10158
10159Fixed a possible memory leak in EvPciConfigRegionSetup where the error
10160exit
10161path did not delete a locally allocated structure.
10162
10163Updated definitions for the DMAR and SRAT tables to synchronize with the
10164current specifications. Includes disassembler support.
10165
10166Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect
10167loop termination value was used. Loop terminated on iteration early,
10168missing
10169one mutex. Linn Crosetto
10170
10171Example Code and Data Size: These are the sizes for the OS-independent
10172acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10173debug version of the code includes the debug output trace mechanism and
10174has a
10175much larger code and data size.
10176
10177  Previous Release:
10178    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10179    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10180  Current Release:
10181    Non-Debug Version:  79.3K Code, 16.2K Data,  95.5K Total
10182    Debug Version:     153.0K Code, 48.2K Data, 201.2K Total
10183
101842) iASL Compiler/Disassembler and Tools:
10185
10186Disassembler: Implemented support for EisaId() within _CID objects. Now
10187disassemble integer _CID objects back to EisaId invocations, including
10188multiple integers within _CID packages. Includes single-step support for
10189debugger also.
10190
10191Disassembler: Added support for DMAR and SRAT table definition changes.
10192
10193----------------------------------------
1019414 May 2008. Summary of changes for version 20080514:
10195
101961) ACPI CA Core Subsystem:
10197
10198Fixed a problem where GPEs were enabled too early during the ACPICA
10199initialization. This could lead to "handler not installed" errors on some
10200machines. Moved GPE enable until after _REG/_STA/_INI methods are run.
10201This
10202ensures that all operation regions and devices throughout the namespace
10203have
10204been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.
10205
10206Implemented a change to the enter sleep code. Moved execution of the _GTS
10207method to just before setting sleep enable bit. The execution was moved
10208from
10209AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed
10210immediately before the SLP_EN bit is set, as per the ACPI specification.
10211Luming Yu, BZ 1653.
10212
10213Implemented a fix to disable unknown GPEs (2nd version). Now always
10214disable
10215the GPE, even if ACPICA thinks that that it is already disabled. It is
10216possible that the AML or some other code has enabled the GPE unbeknownst
10217to
10218the ACPICA code.
10219
10220Fixed a problem with the Field operator where zero-length fields would
10221return
10222an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length
10223ASL
10224field declarations in Field(), BankField(), and IndexField(). BZ 10606.
10225
10226Implemented a fix for the Load operator, now load the table at the
10227namespace
10228root. This reverts a change introduced in version 20071019. The table is
10229now
10230loaded at the namespace root even though this goes against the ACPI
10231specification. This provides compatibility with other ACPI
10232implementations.
10233The ACPI specification will be updated to reflect this in ACPI 4.0. Lin
10234Ming.
10235
10236Fixed a problem where ACPICA would not Load() tables with unusual
10237signatures.
10238Now ignore ACPI table signature for Load() operator. Only "SSDT" is
10239acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.
10240Therefore, signature validation is worthless. Apparently MS ACPI accepts
10241such
10242signatures, ACPICA must be compatible. BZ 10454.
10243
10244Fixed a possible negative array index in AcpiUtValidateException. Added
10245NULL
10246fields to the exception string arrays to eliminate a -1 subtraction on
10247the
10248SubStatus field.
10249
10250Updated the debug tracking macros to reduce overall code and data size.
10251Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings
10252instead of pointers to static strings. Jan Beulich and Bob Moore.
10253
10254Implemented argument count checking in control method invocation via
10255AcpiEvaluateObject. Now emit an error if too few arguments, warning if
10256too
10257many. This applies only to extern programmatic control method execution,
10258not
10259method-to-method calls within the AML. Lin Ming.
10260
10261Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is
10262no
10263longer needed, especially with the removal of 16-bit support. It was
10264replaced
10265mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64
10266bit
10267on
1026832/64-bit platforms is required.
10269
10270Added the C const qualifier for appropriate string constants -- mostly
10271MODULE_NAME and printf format strings. Jan Beulich.
10272
10273Example Code and Data Size: These are the sizes for the OS-independent
10274acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10275debug version of the code includes the debug output trace mechanism and
10276has a
10277much larger code and data size.
10278
10279  Previous Release:
10280    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10281    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10282  Current Release:
10283    Non-Debug Version:  79.5K Code, 16.2K Data,  95.7K Total
10284    Debug Version:     153.3K Code, 48.3K Data, 201.6K Total
10285
102862) iASL Compiler/Disassembler and Tools:
10287
10288Implemented ACPI table revision ID validation in the disassembler. Zero
10289is
10290always invalid. For DSDTs, the ID controls the interpreter integer width.
102911
10292means 32-bit and this is unusual. 2 or greater is 64-bit.
10293
10294----------------------------------------
1029521 March 2008. Summary of changes for version 20080321:
10296
102971) ACPI CA Core Subsystem:
10298
10299Implemented an additional change to the GPE support in order to suppress
10300spurious or stray GPEs. The AcpiEvDisableGpe function will now
10301permanently
10302disable incoming GPEs that are neither enabled nor disabled -- meaning
10303that
10304the GPE is unknown to the system. This should prevent future interrupt
10305floods
10306from that GPE. BZ 6217 (Zhang Rui)
10307
10308Fixed a problem where NULL package elements were not returned to the
10309AcpiEvaluateObject interface correctly. The element was simply ignored
10310instead of returning a NULL ACPI_OBJECT package element, potentially
10311causing
10312a buffer overflow and/or confusing the caller who expected a fixed number
10313of
10314elements. BZ 10132 (Lin Ming, Bob Moore)
10315
10316Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,
10317Dword,
10318Qword), Field, BankField, and IndexField operators when invoked from
10319inside
10320an executing control method. In this case, these operators created
10321namespace
10322nodes that were incorrectly left marked as permanent nodes instead of
10323temporary nodes. This could cause a problem if there is race condition
10324between an exiting control method and a running namespace walk. (Reported
10325by
10326Linn Crosetto)
10327
10328Fixed a problem where the CreateField and CreateXXXField operators would
10329incorrectly allow duplicate names (the name of the field) with no
10330exception
10331generated.
10332
10333Implemented several changes for Notify handling. Added support for new
10334Notify
10335values (ACPI 2.0+) and improved the Notify debug output. Notify on
10336PowerResource objects is no longer allowed, as per the ACPI
10337specification.
10338(Bob Moore, Zhang Rui)
10339
10340All Reference Objects returned via the AcpiEvaluateObject interface are
10341now
10342marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved
10343for
10344NULL objects - either NULL package elements or unresolved named
10345references.
10346
10347Fixed a problem where an extraneous debug message was produced for
10348package
10349objects (when debugging enabled). The message "Package List length larger
10350than NumElements count" is now produced in the correct case, and is now
10351an
10352error message rather than a debug message. Added a debug message for the
10353opposite case, where NumElements is larger than the Package List (the
10354package
10355will be padded out with NULL elements as per the ACPI spec.)
10356
10357Implemented several improvements for the output of the ASL "Debug" object
10358to
10359clarify and keep all data for a given object on one output line.
10360
10361Fixed two size calculation issues with the variable-length Start
10362Dependent
10363resource descriptor.
10364
10365Example Code and Data Size: These are the sizes for the OS-independent
10366acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10367debug version of the code includes the debug output trace mechanism and
10368has
10369a much larger code and data size.
10370
10371  Previous Release:
10372    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10373    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10374  Current Release:
10375    Non-Debug Version:  80.0K Code, 17.4K Data,  97.4K Total
10376    Debug Version:     159.4K Code, 64.4K Data, 223.8K Total
10377
103782) iASL Compiler/Disassembler and Tools:
10379
10380Fixed a problem with the use of the Switch operator where execution of
10381the
10382containing method by multiple concurrent threads could cause an
10383AE_ALREADY_EXISTS exception. This is caused by the fact that there is no
10384actual Switch opcode, it must be simulated with local named temporary
10385variables and if/else pairs. The solution chosen was to mark any method
10386that
10387uses Switch as Serialized, thus preventing multiple thread entries. BZ
10388469.
10389
10390----------------------------------------
1039113 February 2008. Summary of changes for version 20080213:
10392
103931) ACPI CA Core Subsystem:
10394
10395Implemented another MS compatibility design change for GPE/Notify
10396handling.
10397GPEs are now cleared/enabled asynchronously to allow all pending notifies
10398to
10399complete first. It is expected that the OSL will queue the enable request
10400behind all pending notify requests (may require changes to the local host
10401OSL
10402in AcpiOsExecute). Alexey Starikovskiy.
10403
10404Fixed a problem where buffer and package objects passed as arguments to a
10405control method via the external AcpiEvaluateObject interface could cause
10406an
10407AE_AML_INTERNAL exception depending on the order and type of operators
10408executed by the target control method.
10409
10410Fixed a problem where resource descriptor size optimization could cause a
10411problem when a _CRS resource template is passed to a _SRS method. The
10412_SRS
10413resource template must use the same descriptors (with the same size) as
10414returned from _CRS. This change affects the following resource
10415descriptors:
10416IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ
104179487)
10418
10419Fixed a problem where a CopyObject to RegionField, BankField, and
10420IndexField
10421objects did not perform an implicit conversion as it should. These types
10422must
10423retain their initial type permanently as per the ACPI specification.
10424However,
10425a CopyObject to all other object types should not perform an implicit
10426conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388
10427
10428Fixed a problem with the AcpiGetDevices interface where the mechanism to
10429match device CIDs did not examine the entire list of available CIDs, but
10430instead aborted on the first non-matching CID. Andrew Patterson.
10431
10432Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro
10433was
10434inadvertently changed to return a 16-bit value instead of a 32-bit value,
10435truncating the upper dword of a 64-bit value. This macro is only used to
10436display debug output, so no incorrect calculations were made. Also,
10437reimplemented the macro so that a 64-bit shift is not performed by
10438inefficient compilers.
10439
10440Added missing va_end statements that should correspond with each va_start
10441statement.
10442
10443Example Code and Data Size: These are the sizes for the OS-independent
10444acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10445debug version of the code includes the debug output trace mechanism and
10446has
10447a much larger code and data size.
10448
10449  Previous Release:
10450    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10451    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10452  Current Release:
10453    Non-Debug Version:  79.7K Code, 17.3K Data,  97.0K Total
10454    Debug Version:     158.9K Code, 64.0K Data, 222.9K Total
10455
104562) iASL Compiler/Disassembler and Tools:
10457
10458Implemented full disassembler support for the following new ACPI tables:
10459BERT, EINJ, and ERST. Implemented partial disassembler support for the
10460complicated HEST table. These tables support the Windows Hardware Error
10461Architecture (WHEA).
10462
10463----------------------------------------
1046423 January 2008. Summary of changes for version 20080123:
10465
104661) ACPI CA Core Subsystem:
10467
10468Added the 2008 copyright to all module headers and signons. This affects
10469virtually every file in the ACPICA core subsystem, the iASL compiler, and
10470the tools/utilities.
10471
10472Fixed a problem with the SizeOf operator when used with Package and
10473Buffer
10474objects. These objects have deferred execution for some arguments, and
10475the
10476execution is now completed before the SizeOf is executed. This problem
10477caused
10478unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)
10479BZ
104809558
10481
10482Implemented an enhancement to the interpreter "slack mode". In the
10483absence
10484of
10485an explicit return or an implicitly returned object from the last
10486executed
10487opcode, a control method will now implicitly return an integer of value 0
10488for
10489Microsoft compatibility. (Lin Ming) BZ 392
10490
10491Fixed a problem with the Load operator where an exception was not
10492returned
10493in
10494the case where the table is already loaded. (Lin Ming) BZ 463
10495
10496Implemented support for the use of DDBHandles as an Indexed Reference, as
10497per
10498the ACPI spec. (Lin Ming) BZ 486
10499
10500Implemented support for UserTerm (Method invocation) for the Unload
10501operator
10502as per the ACPI spec. (Lin Ming) BZ 580
10503
10504Fixed a problem with the LoadTable operator where the OemId and
10505OemTableId
10506input strings could cause unexpected failures if they were shorter than
10507the
10508maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576
10509
10510Implemented support for UserTerm (Method invocation) for the Unload
10511operator
10512as per the ACPI spec. (Lin Ming) BZ 580
10513
10514Implemented header file support for new ACPI tables - BERT, ERST, EINJ,
10515HEST,
10516IBFT, UEFI, WDAT. Disassembler support is forthcoming.
10517
10518Example Code and Data Size: These are the sizes for the OS-independent
10519acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10520debug version of the code includes the debug output trace mechanism and
10521has
10522a much larger code and data size.
10523
10524  Previous Release:
10525    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10526    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10527  Current Release:
10528    Non-Debug Version:  79.5K Code, 17.2K Data,  96.7K Total
10529    Debug Version:     159.0K Code, 63.8K Data, 222.8K Total
10530
105312) iASL Compiler/Disassembler and Tools:
10532
10533Implemented support in the disassembler for checksum validation on
10534incoming
10535binary DSDTs and SSDTs. If incorrect, a message is displayed within the
10536table
10537header dump at the start of the disassembly.
10538
10539Implemented additional debugging information in the namespace listing
10540file
10541created during compilation. In addition to the namespace hierarchy, the
10542full
10543pathname to each namespace object is displayed.
10544
10545Fixed a problem with the disassembler where invalid ACPI tables could
10546cause
10547faults or infinite loops.
10548
10549Fixed an unexpected parse error when using the optional "parameter types"
10550list in a control method declaration. (Lin Ming) BZ 397
10551
10552Fixed a problem where two External declarations with the same name did
10553not
10554cause an error (Lin Ming) BZ 509
10555
10556Implemented support for full TermArgs (adding Argx, Localx and method
10557invocation) for the ParameterData parameter to the LoadTable operator.
10558(Lin
10559Ming) BZ 583,587
10560
10561----------------------------------------
1056219 December 2007. Summary of changes for version 20071219:
10563
105641) ACPI CA Core Subsystem:
10565
10566Implemented full support for deferred execution for the TermArg string
10567arguments for DataTableRegion. This enables forward references and full
10568operand resolution for the three string arguments. Similar to
10569OperationRegion
10570deferred argument execution.) Lin Ming. BZ 430
10571
10572Implemented full argument resolution support for the BankValue argument
10573to
10574BankField. Previously, only constants were supported, now any TermArg may
10575be
10576used. Lin Ming BZ 387, 393
10577
10578Fixed a problem with AcpiGetDevices where the search of a branch of the
10579device tree could be terminated prematurely. In accordance with the ACPI
10580specification, the search down the current branch is terminated if a
10581device
10582is both not present and not functional (instead of just not present.)
10583Yakui
10584Zhao.
10585
10586Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly
10587if
10588the underlying AML code changed the GPE enable registers. Now, any
10589unknown
10590incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately
10591disabled
10592instead of simply ignored. Rui Zhang.
10593
10594Fixed a problem with Index Fields where the Index register was
10595incorrectly
10596limited to a maximum of 32 bits. Now any size may be used.
10597
10598Fixed a couple memory leaks associated with "implicit return" objects
10599when
10600the AML Interpreter slack mode is enabled. Lin Ming BZ 349
10601
10602Example Code and Data Size: These are the sizes for the OS-independent
10603acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10604debug version of the code includes the debug output trace mechanism and
10605has
10606a much larger code and data size.
10607
10608  Previous Release:
10609    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10610    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10611  Current Release:
10612    Non-Debug Version:  79.3K Code, 17.2K Data,  96.5K Total
10613    Debug Version:     158.6K Code, 63.8K Data, 222.4K Total
10614
10615----------------------------------------
1061614 November 2007. Summary of changes for version 20071114:
10617
106181) ACPI CA Core Subsystem:
10619
10620Implemented event counters for each of the Fixed Events, the ACPI SCI
10621(interrupt) itself, and control methods executed. Named
10622AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.
10623These
10624should be useful for debugging and statistics.
10625
10626Implemented a new external interface, AcpiGetStatistics, to retrieve the
10627contents of the various event counters. Returns the current values for
10628AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and
10629AcpiMethodCount. The interface can be expanded in the future if new
10630counters
10631are added. Device drivers should use this interface rather than access
10632the
10633counters directly.
10634
10635Fixed a problem with the FromBCD and ToBCD operators. With some
10636compilers,
10637the ShortDivide function worked incorrectly, causing problems with the
10638BCD
10639functions with large input values. A truncation from 64-bit to 32-bit
10640inadvertently occurred. Internal BZ 435. Lin Ming
10641
10642Fixed a problem with Index references passed as method arguments.
10643References
10644passed as arguments to control methods were dereferenced immediately
10645(before
10646control was passed to the called method). The references are now
10647correctly
10648passed directly to the called method. BZ 5389. Lin Ming
10649
10650Fixed a problem with CopyObject used in conjunction with the Index
10651operator.
10652The reference was incorrectly dereferenced before the copy. The reference
10653is
10654now correctly copied. BZ 5391. Lin Ming
10655
10656Fixed a problem with Control Method references within Package objects.
10657These
10658references are now correctly generated. This completes the package
10659construction overhaul that began in version 20071019.
10660
10661Example Code and Data Size: These are the sizes for the OS-independent
10662acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10663debug version of the code includes the debug output trace mechanism and
10664has
10665a much larger code and data size.
10666
10667  Previous Release:
10668    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10669    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10670  Current Release:
10671    Non-Debug Version:  79.0K Code, 17.2K Data,  96.2K Total
10672    Debug Version:     157.9K Code, 63.6K Data, 221.5K Total
10673
10674
106752) iASL Compiler/Disassembler and Tools:
10676
10677The AcpiExec utility now installs handlers for all of the predefined
10678Operation Region types. New types supported are: PCI_Config, CMOS, and
10679PCIBARTarget.
10680
10681Fixed a problem with the 64-bit version of AcpiExec where the extended
10682(64-
10683bit) address fields for the DSDT and FACS within the FADT were not being
10684used, causing truncation of the upper 32-bits of these addresses. Lin
10685Ming
10686and Bob Moore
10687
10688----------------------------------------
1068919 October 2007. Summary of changes for version 20071019:
10690
106911) ACPI CA Core Subsystem:
10692
10693Fixed a problem with the Alias operator when the target of the alias is a
10694named ASL operator that opens a new scope -- Scope, Device,
10695PowerResource,
10696Processor, and ThermalZone. In these cases, any children of the original
10697operator could not be accessed via the alias, potentially causing
10698unexpected
10699AE_NOT_FOUND exceptions. (BZ 9067)
10700
10701Fixed a problem with the Package operator where all named references were
10702created as object references and left otherwise unresolved. According to
10703the
10704ACPI specification, a Package can only contain Data Objects or references
10705to
10706control methods. The implication is that named references to Data Objects
10707(Integer, Buffer, String, Package, BufferField, Field) should be resolved
10708immediately upon package creation. This is the approach taken with this
10709change. References to all other named objects (Methods, Devices, Scopes,
10710etc.) are all now properly created as reference objects. (BZ 5328)
10711
10712Reverted a change to Notify handling that was introduced in version
1071320070508. This version changed the Notify handling from asynchronous to
10714fully synchronous (Device driver Notify handling with respect to the
10715Notify
10716ASL operator). It was found that this change caused more problems than it
10717solved and was removed by most users.
10718
10719Fixed a problem with the Increment and Decrement operators where the type
10720of
10721the target object could be unexpectedly and incorrectly changed. (BZ 353)
10722Lin Ming.
10723
10724Fixed a problem with the Load and LoadTable operators where the table
10725location within the namespace was ignored. Instead, the table was always
10726loaded into the root or current scope. Lin Ming.
10727
10728Fixed a problem with the Load operator when loading a table from a buffer
10729object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)
10730
10731Fixed a problem with the Debug object where a store of a DdbHandle
10732reference
10733object to the Debug object could cause a fault.
10734
10735Added a table checksum verification for the Load operator, in the case
10736where
10737the load is from a buffer. (BZ 578).
10738
10739Implemented additional parameter validation for the LoadTable operator.
10740The
10741length of the input strings SignatureString, OemIdString, and OemTableId
10742are
10743now checked for maximum lengths. (BZ 582) Lin Ming.
10744
10745Example Code and Data Size: These are the sizes for the OS-independent
10746acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10747debug version of the code includes the debug output trace mechanism and
10748has
10749a much larger code and data size.
10750
10751  Previous Release:
10752    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10753    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10754  Current Release:
10755    Non-Debug Version:  78.8K Code, 17.2K Data,  96.0K Total
10756    Debug Version:     157.2K Code, 63.4K Data, 220.6K Total
10757
10758
107592) iASL Compiler/Disassembler:
10760
10761Fixed a problem where if a single file was specified and the file did not
10762exist, no error message was emitted. (Introduced with wildcard support in
10763version 20070917.)
10764
10765----------------------------------------
1076619 September 2007. Summary of changes for version 20070919:
10767
107681) ACPI CA Core Subsystem:
10769
10770Designed and implemented new external interfaces to install and remove
10771handlers for ACPI table-related events. Current events that are defined
10772are
10773LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as
10774they are dynamically loaded and unloaded. See AcpiInstallTableHandler and
10775AcpiRemoveTableHandler. (Lin Ming and Bob Moore)
10776
10777Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag
10778(acpi_serialized option on Linux) could cause some systems to hang during
10779initialization. (Bob Moore) BZ 8171
10780
10781Fixed a problem where objects of certain types (Device, ThermalZone,
10782Processor, PowerResource) can be not found if they are declared and
10783referenced from within the same control method (Lin Ming) BZ 341
10784
10785Example Code and Data Size: These are the sizes for the OS-independent
10786acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10787debug version of the code includes the debug output trace mechanism and
10788has
10789a much larger code and data size.
10790
10791  Previous Release:
10792    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
10793    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
10794  Current Release:
10795    Non-Debug Version:  78.5K Code, 17.1K Data,  95.6K Total
10796    Debug Version:     156.7K Code, 63.2K Data, 219.9K Total
10797
10798
107992) iASL Compiler/Disassembler:
10800
10801Implemented support to allow multiple files to be compiled/disassembled
10802in
10803a
10804single invocation. This includes command line wildcard support for both
10805the
10806Windows and Unix versions of the compiler. This feature simplifies the
10807disassembly and compilation of multiple ACPI tables in a single
10808directory.
10809
10810----------------------------------------
1081108 May 2007. Summary of changes for version 20070508:
10812
108131) ACPI CA Core Subsystem:
10814
10815Implemented a Microsoft compatibility design change for the handling of
10816the
10817Notify AML operator. Previously, notify handlers were dispatched and
10818executed completely asynchronously in a deferred thread. The new design
10819still executes the notify handlers in a different thread, but the
10820original
10821thread that executed the Notify() now waits at a synchronization point
10822for
10823the notify handler to complete. Some machines depend on a synchronous
10824Notify
10825operator in order to operate correctly.
10826
10827Implemented support to allow Package objects to be passed as method
10828arguments to the external AcpiEvaluateObject interface. Previously, this
10829would return the AE_NOT_IMPLEMENTED exception. This feature had not been
10830implemented since there were no reserved control methods that required it
10831until recently.
10832
10833Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs
10834that
10835contained invalid non-zero values in reserved fields could cause later
10836failures because these fields have meaning in later revisions of the
10837FADT.
10838For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The
10839fields
10840are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)
10841
10842Fixed a problem where the Global Lock handle was not properly updated if
10843a
10844thread that acquired the Global Lock via executing AML code then
10845attempted
10846to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by
10847Joe
10848Liu.
10849
10850Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list
10851could be corrupted if the interrupt being removed was at the head of the
10852list. Reported by Linn Crosetto.
10853
10854Example Code and Data Size: These are the sizes for the OS-independent
10855acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10856debug version of the code includes the debug output trace mechanism and
10857has
10858a much larger code and data size.
10859
10860  Previous Release:
10861    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10862    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
10863  Current Release:
10864    Non-Debug Version:  78.3K Code, 17.0K Data,  95.3K Total
10865    Debug Version:     156.3K Code, 63.1K Data, 219.4K Total
10866
10867----------------------------------------
1086820 March 2007. Summary of changes for version 20070320:
10869
108701) ACPI CA Core Subsystem:
10871
10872Implemented a change to the order of interpretation and evaluation of AML
10873operand objects within the AML interpreter. The interpreter now evaluates
10874operands in the order that they appear in the AML stream (and the
10875corresponding ASL code), instead of in the reverse order (after the
10876entire
10877operand list has been parsed). The previous behavior caused several
10878subtle
10879incompatibilities with the Microsoft AML interpreter as well as being
10880somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.
10881
10882Implemented a change to the ACPI Global Lock support. All interfaces to
10883the
10884global lock now allow the same thread to acquire the lock multiple times.
10885This affects the AcpiAcquireGlobalLock external interface to the global
10886lock
10887as well as the internal use of the global lock to support AML fields -- a
10888control method that is holding the global lock can now simultaneously
10889access
10890AML fields that require global lock protection. Previously, in both
10891cases,
10892this would have resulted in an AE_ALREADY_ACQUIRED exception. The change
10893to
10894AcpiAcquireGlobalLock is of special interest to drivers for the Embedded
10895Controller. There is no change to the behavior of the AML Acquire
10896operator,
10897as this can already be used to acquire a mutex multiple times by the same
10898thread. BZ 8066. With assistance from Alexey Starikovskiy.
10899
10900Fixed a problem where invalid objects could be referenced in the AML
10901Interpreter after error conditions. During operand evaluation, ensure
10902that
10903the internal "Return Object" field is cleared on error and only valid
10904pointers are stored there. Caused occasional access to deleted objects
10905that
10906resulted in "large reference count" warning messages. Valery Podrezov.
10907
10908Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur
10909on
10910deeply nested control method invocations. BZ 7873, local BZ 487. Valery
10911Podrezov.
10912
10913Fixed an internal problem with the handling of result objects on the
10914interpreter result stack. BZ 7872. Valery Podrezov.
10915
10916Removed obsolete code that handled the case where AML_NAME_OP is the
10917target
10918of a reference (Reference.Opcode). This code was no longer necessary. BZ
109197874. Valery Podrezov.
10920
10921Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This
10922was
10923a
10924remnant from the previously discontinued 16-bit support.
10925
10926Example Code and Data Size: These are the sizes for the OS-independent
10927acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10928debug version of the code includes the debug output trace mechanism and
10929has
10930a much larger code and data size.
10931
10932  Previous Release:
10933    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10934    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10935  Current Release:
10936    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10937    Debug Version:     155.9K Code, 63.1K Data, 219.0K Total
10938
10939----------------------------------------
1094026 January 2007. Summary of changes for version 20070126:
10941
109421) ACPI CA Core Subsystem:
10943
10944Added the 2007 copyright to all module headers and signons. This affects
10945virtually every file in the ACPICA core subsystem, the iASL compiler, and
10946the utilities.
10947
10948Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable
10949during a table load. A bad pointer was passed in the case where the DSDT
10950is
10951overridden, causing a fault in this case.
10952
10953Example Code and Data Size: These are the sizes for the OS-independent
10954acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10955debug version of the code includes the debug output trace mechanism and
10956has
10957a much larger code and data size.
10958
10959  Previous Release:
10960    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10961    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10962  Current Release:
10963    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
10964    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
10965
10966----------------------------------------
1096715 December 2006. Summary of changes for version 20061215:
10968
109691) ACPI CA Core Subsystem:
10970
10971Support for 16-bit ACPICA has been completely removed since it is no
10972longer
10973necessary and it clutters the code. All 16-bit macros, types, and
10974conditional compiles have been removed, cleaning up and simplifying the
10975code
10976across the entire subsystem. DOS support is no longer needed since the
10977bootable Linux firmware kit is now available.
10978
10979The handler for the Global Lock is now removed during AcpiTerminate to
10980enable a clean subsystem restart, via the implementation of the
10981AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,
10982HP)
10983
10984Implemented enhancements to the multithreading support within the
10985debugger
10986to enable improved multithreading debugging and evaluation of the
10987subsystem.
10988(Valery Podrezov)
10989
10990Debugger: Enhanced the Statistics/Memory command to emit the total
10991(maximum)
10992memory used during the execution, as well as the maximum memory consumed
10993by
10994each of the various object types. (Valery Podrezov)
10995
10996Example Code and Data Size: These are the sizes for the OS-independent
10997acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
10998debug version of the code includes the debug output trace mechanism and
10999has
11000a much larger code and data size.
11001
11002  Previous Release:
11003    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
11004    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
11005  Current Release:
11006    Non-Debug Version:  78.0K Code, 17.1K Data,  95.1K Total
11007    Debug Version:     155.8K Code, 63.3K Data, 219.1K Total
11008
11009
110102) iASL Compiler/Disassembler and Tools:
11011
11012AcpiExec: Implemented a new option (-m) to display full memory use
11013statistics upon subsystem/program termination. (Valery Podrezov)
11014
11015----------------------------------------
1101609 November 2006. Summary of changes for version 20061109:
11017
110181) ACPI CA Core Subsystem:
11019
11020Optimized the Load ASL operator in the case where the source operand is
11021an
11022operation region. Simply map the operation region memory, instead of
11023performing a bytewise read. (Region must be of type SystemMemory, see
11024below.)
11025
11026Fixed the Load ASL operator for the case where the source operand is a
11027region field. A buffer object is also allowed as the source operand. BZ
11028480
11029
11030Fixed a problem where the Load ASL operator allowed the source operand to
11031be
11032an operation region of any type. It is now restricted to regions of type
11033SystemMemory, as per the ACPI specification. BZ 481
11034
11035Additional cleanup and optimizations for the new Table Manager code.
11036
11037AcpiEnable will now fail if all of the required ACPI tables are not
11038loaded
11039(FADT, FACS, DSDT). BZ 477
11040
11041Added #pragma pack(8/4) to acobject.h to ensure that the structures in
11042this
11043header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been
11044manually optimized to be aligned and will not work if it is byte-packed.
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:  78.1K Code, 17.1K Data,  95.2K Total
11054    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11055  Current Release:
11056    Non-Debug Version:  77.9K Code, 17.0K Data,  94.9K Total
11057    Debug Version:     155.2K Code, 63.1K Data, 218.3K Total
11058
11059
110602) iASL Compiler/Disassembler and Tools:
11061
11062Fixed a problem where the presence of the _OSI predefined control method
11063within complex expressions could cause an internal compiler error.
11064
11065AcpiExec: Implemented full region support for multiple address spaces.
11066SpaceId is now part of the REGION object. BZ 429
11067
11068----------------------------------------
1106911 October 2006. Summary of changes for version 20061011:
11070
110711) ACPI CA Core Subsystem:
11072
11073Completed an AML interpreter performance enhancement for control method
11074execution. Previously a 2-pass parse/execution, control methods are now
11075completely parsed and executed in a single pass. This improves overall
11076interpreter performance by ~25%, reduces code size, and reduces CPU stack
11077use. (Valery Podrezov + interpreter changes in version 20051202 that
11078eliminated namespace loading during the pass one parse.)
11079
11080Implemented _CID support for PCI Root Bridge detection. If the _HID does
11081not
11082match the predefined PCI Root Bridge IDs, the _CID list (if present) is
11083now
11084obtained and also checked for an ID match.
11085
11086Implemented additional support for the PCI _ADR execution: upsearch until
11087a
11088device scope is found before executing _ADR. This allows PCI_Config
11089operation regions to be declared locally within control methods
11090underneath
11091PCI device objects.
11092
11093Fixed a problem with a possible race condition between threads executing
11094AcpiWalkNamespace and the AML interpreter. This condition was removed by
11095modifying AcpiWalkNamespace to (by default) ignore all temporary
11096namespace
11097entries created during any concurrent control method execution. An
11098additional namespace race condition is known to exist between
11099AcpiWalkNamespace and the Load/Unload ASL operators and is still under
11100investigation.
11101
11102Restructured the AML ParseLoop function, breaking it into several
11103subfunctions in order to reduce CPU stack use and improve
11104maintainability.
11105(Mikhail Kouzmich)
11106
11107AcpiGetHandle: Fix for parameter validation to detect invalid
11108combinations
11109of prefix handle and pathname. BZ 478
11110
11111Example Code and Data Size: These are the sizes for the OS-independent
11112acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11113debug version of the code includes the debug output trace mechanism and
11114has
11115a much larger code and data size.
11116
11117  Previous Release:
11118    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11119    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11120  Current Release:
11121    Non-Debug Version:  78.1K Code, 17.1K Data,  95.2K Total
11122    Debug Version:     155.4K Code, 63.1K Data, 218.5K Total
11123
111242) iASL Compiler/Disassembler and Tools:
11125
11126Ported the -g option (get local ACPI tables) to the new ACPICA Table
11127Manager
11128to restore original behavior.
11129
11130----------------------------------------
1113127 September 2006. Summary of changes for version 20060927:
11132
111331) ACPI CA Core Subsystem:
11134
11135Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.
11136These functions now use a spinlock for mutual exclusion and the interrupt
11137level indication flag is not needed.
11138
11139Fixed a problem with the Global Lock where the lock could appear to be
11140obtained before it is actually obtained. The global lock semaphore was
11141inadvertently created with one unit instead of zero units. (BZ 464)
11142Fiodor
11143Suietov.
11144
11145Fixed a possible memory leak and fault in AcpiExResolveObjectToValue
11146during
11147a read from a buffer or region field. (BZ 458) Fiodor Suietov.
11148
11149Example Code and Data Size: These are the sizes for the OS-independent
11150acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11151debug version of the code includes the debug output trace mechanism and
11152has
11153a much larger code and data size.
11154
11155  Previous Release:
11156    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11157    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11158  Current Release:
11159    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11160    Debug Version:     154.6K Code, 63.0K Data, 217.6K Total
11161
11162
111632) iASL Compiler/Disassembler and Tools:
11164
11165Fixed a compilation problem with the pre-defined Resource Descriptor
11166field
11167names where an "object does not exist" error could be incorrectly
11168generated
11169if the parent ResourceTemplate pathname places the template within a
11170different namespace scope than the current scope. (BZ 7212)
11171
11172Fixed a problem where the compiler could hang after syntax errors
11173detected
11174in an ElseIf construct. (BZ 453)
11175
11176Fixed a problem with the AmlFilename parameter to the DefinitionBlock()
11177operator. An incorrect output filename was produced when this parameter
11178was
11179a null string (""). Now, the original input filename is used as the AML
11180output filename, with an ".aml" extension.
11181
11182Implemented a generic batch command mode for the AcpiExec utility
11183(execute
11184any AML debugger command) (Valery Podrezov).
11185
11186----------------------------------------
1118712 September 2006. Summary of changes for version 20060912:
11188
111891) ACPI CA Core Subsystem:
11190
11191Enhanced the implementation of the "serialized mode" of the interpreter
11192(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is
11193specified, instead of creating a serialization semaphore per control
11194method,
11195the interpreter lock is simply no longer released before a blocking
11196operation during control method execution. This effectively makes the AML
11197Interpreter single-threaded. The overhead of a semaphore per-method is
11198eliminated.
11199
11200Fixed a regression where an error was no longer emitted if a control
11201method
11202attempts to create 2 objects of the same name. This once again returns
11203AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism
11204that
11205will dynamically serialize the control method to possible prevent future
11206errors. (BZ 440)
11207
11208Integrated a fix for a problem with PCI Express HID detection in the PCI
11209Config Space setup procedure. (BZ 7145)
11210
11211Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the
11212AcpiHwInitialize function - the FADT registers are now validated when the
11213table is loaded.
11214
11215Added two new warnings during FADT verification - 1) if the FADT is
11216larger
11217than the largest known FADT version, and 2) if there is a mismatch
11218between
11219a
1122032-bit block address and the 64-bit X counterpart (when both are non-
11221zero.)
11222
11223Example Code and Data Size: These are the sizes for the OS-independent
11224acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11225debug version of the code includes the debug output trace mechanism and
11226has
11227a much larger code and data size.
11228
11229  Previous Release:
11230    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11231    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11232  Current Release:
11233    Non-Debug Version:  77.9K Code, 17.1K Data,  95.0K Total
11234    Debug Version:     154.7K Code, 63.0K Data, 217.7K Total
11235
11236
112372) iASL Compiler/Disassembler and Tools:
11238
11239Fixed a problem with the implementation of the Switch() operator where
11240the
11241temporary variable was declared too close to the actual Switch, instead
11242of
11243at method level. This could cause a problem if the Switch() operator is
11244within a while loop, causing an error on the second iteration. (BZ 460)
11245
11246Disassembler - fix for error emitted for unknown type for target of scope
11247operator. Now, ignore it and continue.
11248
11249Disassembly of an FADT now verifies the input FADT and reports any errors
11250found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.
11251
11252Disassembly of raw data buffers with byte initialization data now
11253prefixes
11254each output line with the current buffer offset.
11255
11256Disassembly of ASF! table now includes all variable-length data fields at
11257the end of some of the subtables.
11258
11259The disassembler now emits a comment if a buffer appears to be a
11260ResourceTemplate, but cannot be disassembled as such because the EndTag
11261does
11262not appear at the very end of the buffer.
11263
11264AcpiExec - Added the "-t" command line option to enable the serialized
11265mode
11266of the AML interpreter.
11267
11268----------------------------------------
1126931 August 2006. Summary of changes for version 20060831:
11270
112711) ACPI CA Core Subsystem:
11272
11273Miscellaneous fixes for the Table Manager:
11274- Correctly initialize internal common FADT for all 64-bit "X" fields
11275- Fixed a couple table mapping issues during table load
11276- Fixed a couple alignment issues for IA64
11277- Initialize input array to zero in AcpiInitializeTables
11278- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,
11279AcpiGetTableByIndex
11280
11281Change for GPE support: when a "wake" GPE is received, all wake GPEs are
11282now
11283immediately disabled to prevent the waking GPE from firing again and to
11284prevent other wake GPEs from interrupting the wake process.
11285
11286Added the AcpiGpeCount global that tracks the number of processed GPEs,
11287to
11288be used for debugging systems with a large number of ACPI interrupts.
11289
11290Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in
11291both the ACPICA headers and the disassembler.
11292
11293Example Code and Data Size: These are the sizes for the OS-independent
11294acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11295debug version of the code includes the debug output trace mechanism and
11296has
11297a much larger code and data size.
11298
11299  Previous Release:
11300    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11301    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11302  Current Release:
11303    Non-Debug Version:  77.9K Code, 16.7K Data,  94.6K Total
11304    Debug Version:     154.9K Code, 62.6K Data, 217.5K Total
11305
11306
113072) iASL Compiler/Disassembler and Tools:
11308
11309Disassembler support for the DMAR ACPI table.
11310
11311----------------------------------------
1131223 August 2006. Summary of changes for version 20060823:
11313
113141) ACPI CA Core Subsystem:
11315
11316The Table Manager component has been completely redesigned and
11317reimplemented. The new design is much simpler, and reduces the overall
11318code
11319and data size of the kernel-resident ACPICA by approximately 5%. Also, it
11320is
11321now possible to obtain the ACPI tables very early during kernel
11322initialization, even before dynamic memory management is initialized.
11323(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)
11324
11325Obsolete ACPICA interfaces:
11326
11327- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel
11328init
11329time).
11330- AcpiLoadTable: Not needed.
11331- AcpiUnloadTable: Not needed.
11332
11333New ACPICA interfaces:
11334
11335- AcpiInitializeTables: Must be called before the table manager can be
11336used.
11337- AcpiReallocateRootTable: Used to transfer the root table to dynamically
11338allocated memory after it becomes available.
11339- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI
11340tables
11341in the RSDT/XSDT.
11342
11343Other ACPICA changes:
11344
11345- AcpiGetTableHeader returns the actual mapped table header, not a copy.
11346Use
11347AcpiOsUnmapMemory to free this mapping.
11348- AcpiGetTable returns the actual mapped table. The mapping is managed
11349internally and must not be deleted by the caller. Use of this interface
11350causes no additional dynamic memory allocation.
11351- AcpiFindRootPointer: Support for physical addressing has been
11352eliminated,
11353it appeared to be unused.
11354- The interface to AcpiOsMapMemory has changed to be consistent with the
11355other allocation interfaces.
11356- The interface to AcpiOsGetRootPointer has changed to eliminate
11357unnecessary
11358parameters.
11359- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on
1136064-
11361bit platforms. Was previously 64 bits on all platforms.
11362- The interface to the ACPI Global Lock acquire/release macros have
11363changed
11364slightly since ACPICA no longer keeps a local copy of the FACS with a
11365constructed pointer to the actual global lock.
11366
11367Porting to the new table manager:
11368
11369- AcpiInitializeTables: Must be called once, and can be called anytime
11370during the OS initialization process. It allows the host to specify an
11371area
11372of memory to be used to store the internal version of the RSDT/XSDT (root
11373table). This allows the host to access ACPI tables before memory
11374management
11375is initialized and running.
11376- AcpiReallocateRootTable: Can be called after memory management is
11377running
11378to copy the root table to a dynamically allocated array, freeing up the
11379scratch memory specified in the call to AcpiInitializeTables.
11380- AcpiSubsystemInitialize: This existing interface is independent of the
11381Table Manager, and does not have to be called before the Table Manager
11382can
11383be used, it only must be called before the rest of ACPICA can be used.
11384- ACPI Tables: Some changes have been made to the names and structure of
11385the
11386actbl.h and actbl1.h header files and may require changes to existing
11387code.
11388For example, bitfields have been completely removed because of their lack
11389of
11390portability across C compilers.
11391- Update interfaces to the Global Lock acquire/release macros if local
11392versions are used. (see acwin.h)
11393
11394Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c
11395
11396New files: tbfind.c
11397
11398Example Code and Data Size: These are the sizes for the OS-independent
11399acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11400debug version of the code includes the debug output trace mechanism and
11401has
11402a much larger code and data size.
11403
11404  Previous Release:
11405    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11406    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11407  Current Release:
11408    Non-Debug Version:  77.8K Code, 16.5K Data,  94.3K Total
11409    Debug Version:     154.6K Code, 62.3K Data, 216.9K Total
11410
11411
114122) iASL Compiler/Disassembler and Tools:
11413
11414No changes for this release.
11415
11416----------------------------------------
1141721 July 2006. Summary of changes for version 20060721:
11418
114191) ACPI CA Core Subsystem:
11420
11421The full source code for the ASL test suite used to validate the iASL
11422compiler and the ACPICA core subsystem is being released with the ACPICA
11423source for the first time. The source is contained in a separate package
11424and
11425consists of over 1100 files that exercise all ASL/AML operators. The
11426package
11427should appear on the Intel/ACPI web site shortly. (Valery Podrezov,
11428Fiodor
11429Suietov)
11430
11431Completed a new design and implementation for support of the ACPI Global
11432Lock. On the OS side, the global lock is now treated as a standard AML
11433mutex. Previously, multiple OS threads could "acquire" the global lock
11434simultaneously. However, this could cause the BIOS to be starved out of
11435the
11436lock - especially in cases such as the Embedded Controller driver where
11437there is a tight coupling between the OS and the BIOS.
11438
11439Implemented an optimization for the ACPI Global Lock interrupt mechanism.
11440The Global Lock interrupt handler no longer queues the execution of a
11441separate thread to signal the global lock semaphore. Instead, the
11442semaphore
11443is signaled directly from the interrupt handler.
11444
11445Implemented support within the AML interpreter for package objects that
11446contain a larger AML length (package list length) than the package
11447element
11448count. In this case, the length of the package is truncated to match the
11449package element count. Some BIOS code apparently modifies the package
11450length
11451on the fly, and this change supports this behavior. Provides
11452compatibility
11453with the MS AML interpreter. (With assistance from Fiodor Suietov)
11454
11455Implemented a temporary fix for the BankValue parameter of a Bank Field
11456to
11457support all constant values, now including the Zero and One opcodes.
11458Evaluation of this parameter must eventually be converted to a full
11459TermArg
11460evaluation. A not-implemented error is now returned (temporarily) for
11461non-
11462constant values for this parameter.
11463
11464Fixed problem reports (Fiodor Suietov) integrated:
11465- Fix for premature object deletion after CopyObject on Operation Region
11466(BZ
11467350)
11468
11469Example Code and Data Size: These are the sizes for the OS-independent
11470acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11471debug version of the code includes the debug output trace mechanism and
11472has
11473a much larger code and data size.
11474
11475  Previous Release:
11476    Non-Debug Version:  80.7K Code, 18.0K Data,  98.7K Total
11477    Debug Version:     160.9K Code, 65.1K Data, 226.0K Total
11478  Current Release:
11479    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11480    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11481
11482
114832) iASL Compiler/Disassembler and Tools:
11484
11485No changes for this release.
11486
11487----------------------------------------
1148807 July 2006. Summary of changes for version 20060707:
11489
114901) ACPI CA Core Subsystem:
11491
11492Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers
11493that do not allow the initialization of address pointers within packed
11494structures - even though the hardware itself may support misaligned
11495transfers. Some of the debug data structures are packed by default to
11496minimize size.
11497
11498Added an error message for the case where AcpiOsGetThreadId() returns
11499zero.
11500A non-zero value is required by the core ACPICA code to ensure the proper
11501operation of AML mutexes and recursive control methods.
11502
11503The DSDT is now the only ACPI table that determines whether the AML
11504interpreter is in 32-bit or 64-bit mode. Not really a functional change,
11505but
11506the hooks for per-table 32/64 switching have been removed from the code.
11507A
11508clarification to the ACPI specification is forthcoming in ACPI 3.0B.
11509
11510Fixed a possible leak of an OwnerID in the error path of
11511AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID
11512deletion to a single place in AcpiTbUninstallTable to correct possible
11513leaks
11514when using the AcpiTbDeleteTablesByType interface (with assistance from
11515Lance Ortiz.)
11516
11517Fixed a problem with Serialized control methods where the semaphore
11518associated with the method could be over-signaled after multiple method
11519invocations.
11520
11521Fixed two issues with the locking of the internal namespace data
11522structure.
11523Both the Unload() operator and AcpiUnloadTable interface now lock the
11524namespace during the namespace deletion associated with the table unload
11525(with assistance from Linn Crosetto.)
11526
11527Fixed problem reports (Valery Podrezov) integrated:
11528- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)
11529
11530Fixed problem reports (Fiodor Suietov) integrated:
11531- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)
11532- On Address Space handler deletion, needless deactivation call (BZ 374)
11533- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ
11534375)
11535- Possible memory leak, Notify sub-objects of Processor, Power,
11536ThermalZone
11537(BZ 376)
11538- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)
11539- Minimum Length of RSDT should be validated (BZ 379)
11540- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no
11541Handler (BZ (380)
11542- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type
11543loaded
11544(BZ 381)
11545
11546Example Code and Data Size: These are the sizes for the OS-independent
11547acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11548debug version of the code includes the debug output trace mechanism and
11549has
11550a much larger code and data size.
11551
11552  Previous Release:
11553    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11554    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11555  Current Release:
11556    Non-Debug Version:  80.7K Code, 17.9K Data,  98.6K Total
11557    Debug Version:     161.0K Code, 65.1K Data, 226.1K Total
11558
11559
115602) iASL Compiler/Disassembler and Tools:
11561
11562Fixed problem reports:
11563Compiler segfault when ASL contains a long (>1024) String declaration (BZ
11564436)
11565
11566----------------------------------------
1156723 June 2006. Summary of changes for version 20060623:
11568
115691) ACPI CA Core Subsystem:
11570
11571Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This
11572allows the type to be customized to the host OS for improved efficiency
11573(since a spinlock is usually a very small object.)
11574
11575Implemented support for "ignored" bits in the ACPI registers. According
11576to
11577the ACPI specification, these bits should be preserved when writing the
11578registers via a read/modify/write cycle. There are 3 bits preserved in
11579this
11580manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].
11581
11582Implemented the initial deployment of new OSL mutex interfaces. Since
11583some
11584host operating systems have separate mutex and semaphore objects, this
11585feature was requested. The base code now uses mutexes (and the new mutex
11586interfaces) wherever a binary semaphore was used previously. However, for
11587the current release, the mutex interfaces are defined as macros to map
11588them
11589to the existing semaphore interfaces. Therefore, no OSL changes are
11590required
11591at this time. (See acpiosxf.h)
11592
11593Fixed several problems with the support for the control method SyncLevel
11594parameter. The SyncLevel now works according to the ACPI specification
11595and
11596in concert with the Mutex SyncLevel parameter, since the current
11597SyncLevel
11598is a property of the executing thread. Mutual exclusion for control
11599methods
11600is now implemented with a mutex instead of a semaphore.
11601
11602Fixed three instances of the use of the C shift operator in the bitfield
11603support code (exfldio.c) to avoid the use of a shift value larger than
11604the
11605target data width. The behavior of C compilers is undefined in this case
11606and
11607can cause unpredictable results, and therefore the case must be detected
11608and
11609avoided. (Fiodor Suietov)
11610
11611Added an info message whenever an SSDT or OEM table is loaded dynamically
11612via the Load() or LoadTable() ASL operators. This should improve
11613debugging
11614capability since it will show exactly what tables have been loaded
11615(beyond
11616the tables present in the RSDT/XSDT.)
11617
11618Example Code and Data Size: These are the sizes for the OS-independent
11619acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11620debug version of the code includes the debug output trace mechanism and
11621has
11622a much larger code and data size.
11623
11624  Previous Release:
11625    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11626    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11627  Current Release:
11628    Non-Debug Version:  80.5K Code, 17.8K Data,  98.3K Total
11629    Debug Version:     160.8K Code, 64.8K Data, 225.6K Total
11630
11631
116322) iASL Compiler/Disassembler and Tools:
11633
11634No changes for this release.
11635
11636----------------------------------------
1163708 June 2006. Summary of changes for version 20060608:
11638
116391) ACPI CA Core Subsystem:
11640
11641Converted the locking mutex used for the ACPI hardware to a spinlock.
11642This
11643change should eliminate all problems caused by attempting to acquire a
11644semaphore at interrupt level, and it means that all ACPICA external
11645interfaces that directly access the ACPI hardware can be safely called
11646from
11647interrupt level. OSL code that implements the semaphore interfaces should
11648be
11649able to eliminate any workarounds for being called at interrupt level.
11650
11651Fixed a regression introduced in 20060526 where the ACPI device
11652initialization could be prematurely aborted with an AE_NOT_FOUND if a
11653device
11654did not have an optional _INI method.
11655
11656Fixed an IndexField issue where a write to the Data Register should be
11657limited in size to the AccessSize (width) of the IndexField itself. (BZ
11658433,
11659Fiodor Suietov)
11660
11661Fixed problem reports (Valery Podrezov) integrated:
11662- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)
11663
11664Fixed problem reports (Fiodor Suietov) integrated:
11665- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)
11666
11667Removed four global mutexes that were obsolete and were no longer being
11668used.
11669
11670Example Code and Data Size: These are the sizes for the OS-independent
11671acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11672debug version of the code includes the debug output trace mechanism and
11673has
11674a much larger code and data size.
11675
11676  Previous Release:
11677    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11678    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11679  Current Release:
11680    Non-Debug Version:  80.0K Code, 17.6K Data,  97.6K Total
11681    Debug Version:     160.2K Code, 64.7K Data, 224.9K Total
11682
11683
116842) iASL Compiler/Disassembler and Tools:
11685
11686Fixed a fault when using -g option (get tables from registry) on Windows
11687machines.
11688
11689Fixed problem reports integrated:
11690- Generate error if CreateField NumBits parameter is zero. (BZ 405)
11691- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor
11692Suietov)
11693- Global table revision override (-r) is ignored (BZ 413)
11694
11695----------------------------------------
1169626 May 2006. Summary of changes for version 20060526:
11697
116981) ACPI CA Core Subsystem:
11699
11700Restructured, flattened, and simplified the internal interfaces for
11701namespace object evaluation - resulting in smaller code, less CPU stack
11702use,
11703and fewer interfaces. (With assistance from Mikhail Kouzmich)
11704
11705Fixed a problem with the CopyObject operator where the first parameter
11706was
11707not typed correctly for the parser, interpreter, compiler, and
11708disassembler.
11709Caused various errors and unexpected behavior.
11710
11711Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits
11712produced incorrect results with some C compilers. Since the behavior of C
11713compilers when the shift value is larger than the datatype width is
11714apparently not well defined, the interpreter now detects this condition
11715and
11716simply returns zero as expected in all such cases. (BZ 395)
11717
11718Fixed problem reports (Valery Podrezov) integrated:
11719- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)
11720- Allow interpreter to handle nested method declarations (BZ 5361)
11721
11722Fixed problem reports (Fiodor Suietov) integrated:
11723- AcpiTerminate doesn't free debug memory allocation list objects (BZ
11724355)
11725- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ
11726356)
11727- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)
11728- Resource Manager should return AE_TYPE for non-device objects (BZ 358)
11729- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)
11730- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)
11731- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)
11732- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)
11733- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ
11734365)
11735- Status of the Global Initialization Handler call not used (BZ 366)
11736- Incorrect object parameter to Global Initialization Handler (BZ 367)
11737
11738Example Code and Data Size: These are the sizes for the OS-independent
11739acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11740debug version of the code includes the debug output trace mechanism and
11741has
11742a much larger code and data size.
11743
11744  Previous Release:
11745    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11746    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11747  Current Release:
11748    Non-Debug Version:  80.0K Code, 17.7K Data,  97.7K Total
11749    Debug Version:     160.3K Code, 64.9K Data, 225.2K Total
11750
11751
117522) iASL Compiler/Disassembler and Tools:
11753
11754Modified the parser to allow the names IO, DMA, and IRQ to be used as
11755namespace identifiers with no collision with existing resource descriptor
11756macro names. This provides compatibility with other ASL compilers and is
11757most useful for disassembly/recompilation of existing tables without
11758parse
11759errors. (With assistance from Thomas Renninger)
11760
11761Disassembler: fixed an incorrect disassembly problem with the
11762DataTableRegion and CopyObject operators. Fixed a possible fault during
11763disassembly of some Alias operators.
11764
11765----------------------------------------
1176612 May 2006. Summary of changes for version 20060512:
11767
117681) ACPI CA Core Subsystem:
11769
11770Replaced the AcpiOsQueueForExecution interface with a new interface named
11771AcpiOsExecute. The major difference is that the new interface does not
11772have
11773a Priority parameter, this appeared to be useless and has been replaced
11774by
11775a
11776Type parameter. The Type tells the host what type of execution is being
11777requested, such as global lock handler, notify handler, GPE handler, etc.
11778This allows the host to queue and execute the request as appropriate for
11779the
11780request type, possibly using different work queues and different
11781priorities
11782for the various request types. This enables fixes for multithreading
11783deadlock problems such as BZ #5534, and will require changes to all
11784existing
11785OS interface layers. (Alexey Starikovskiy and Bob Moore)
11786
11787Fixed a possible memory leak associated with the support for the so-
11788called
11789"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor
11790Suietov)
11791
11792Fixed a problem with the Load() operator where a table load from an
11793operation region could overwrite an internal table buffer by up to 7
11794bytes
11795and cause alignment faults on IPF systems. (With assistance from Luming
11796Yu)
11797
11798Example Code and Data Size: These are the sizes for the OS-independent
11799acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11800debug version of the code includes the debug output trace mechanism and
11801has
11802a much larger code and data size.
11803
11804  Previous Release:
11805    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
11806    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
11807  Current Release:
11808    Non-Debug Version:  79.8K Code, 17.7K Data,  97.5K Total
11809    Debug Version:     160.5K Code, 65.1K Data, 225.6K Total
11810
11811
11812
118132) iASL Compiler/Disassembler and Tools:
11814
11815Disassembler: Implemented support to cross reference the internal
11816namespace
11817and automatically generate ASL External() statements for symbols not
11818defined
11819within the current table being disassembled. This will simplify the
11820disassembly and recompilation of interdependent tables such as SSDTs
11821since
11822these statements will no longer have to be added manually.
11823
11824Disassembler: Implemented experimental support to automatically detect
11825invocations of external control methods and generate appropriate
11826External()
11827statements. This is problematic because the AML cannot be correctly
11828parsed
11829until the number of arguments for each control method is known.
11830Currently,
11831standalone method invocations and invocations as the source operand of a
11832Store() statement are supported.
11833
11834Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,
11835LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),
11836LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code
11837more readable and likely closer to the original ASL source.
11838
11839----------------------------------------
1184021 April 2006. Summary of changes for version 20060421:
11841
118421) ACPI CA Core Subsystem:
11843
11844Removed a device initialization optimization introduced in 20051216 where
11845the _STA method was not run unless an _INI was also present for the same
11846device. This optimization could cause problems because it could allow
11847_INI
11848methods to be run within a not-present device subtree. (If a not-present
11849device had no _INI, _STA would not be run, the not-present status would
11850not
11851be discovered, and the children of the device would be incorrectly
11852traversed.)
11853
11854Implemented a new _STA optimization where namespace subtrees that do not
11855contain _INI are identified and ignored during device initialization.
11856Selectively running _STA can significantly improve boot time on large
11857machines (with assistance from Len Brown.)
11858
11859Implemented support for the device initialization case where the returned
11860_STA flags indicate a device not-present but functioning. In this case,
11861_INI
11862is not run, but the device children are examined for presence, as per the
11863ACPI specification.
11864
11865Implemented an additional change to the IndexField support in order to
11866conform to MS behavior. The value written to the Index Register is not
11867simply a byte offset, it is a byte offset in units of the access width of
11868the parent Index Field. (Fiodor Suietov)
11869
11870Defined and deployed a new OSL interface, AcpiOsValidateAddress. This
11871interface is called during the creation of all AML operation regions, and
11872allows the host OS to exert control over what addresses it will allow the
11873AML code to access. Operation Regions whose addresses are disallowed will
11874cause a runtime exception when they are actually accessed (will not
11875affect
11876or abort table loading.) See oswinxf or osunixxf for an example
11877implementation.
11878
11879Defined and deployed a new OSL interface, AcpiOsValidateInterface. This
11880interface allows the host OS to match the various "optional"
11881interface/behavior strings for the _OSI predefined control method as
11882appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf
11883for an example implementation.
11884
11885Restructured and corrected various problems in the exception handling
11886code
11887paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod
11888(with assistance from Takayoshi Kochi.)
11889
11890Modified the Linux source converter to ignore quoted string literals
11891while
11892converting identifiers from mixed to lower case. This will correct
11893problems
11894with the disassembler and other areas where such strings must not be
11895modified.
11896
11897The ACPI_FUNCTION_* macros no longer require quotes around the function
11898name. This allows the Linux source converter to convert the names, now
11899that
11900the converter ignores quoted strings.
11901
11902Example Code and Data Size: These are the sizes for the OS-independent
11903acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11904debug version of the code includes the debug output trace mechanism and
11905has
11906a much larger code and data size.
11907
11908  Previous Release:
11909
11910    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
11911    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
11912  Current Release:
11913    Non-Debug Version:  79.7K Code, 17.7K Data,  97.4K Total
11914    Debug Version:     160.1K Code, 65.2K Data, 225.3K Total
11915
11916
119172) iASL Compiler/Disassembler and Tools:
11918
11919Implemented 3 new warnings for iASL, and implemented multiple warning
11920levels
11921(w2 flag).
11922
119231) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is
11924not
11925WAIT_FOREVER (0xFFFF) and the code does not examine the return value to
11926check for the possible timeout, a warning is issued.
11927
119282) Useless operators: If an ASL operator does not specify an optional
11929target
11930operand and it also does not use the function return value from the
11931operator, a warning is issued since the operator effectively does
11932nothing.
11933
119343) Unreferenced objects: If a namespace object is created, but never
11935referenced, a warning is issued. This is a warning level 2 since there
11936are
11937cases where this is ok, such as when a secondary table is loaded that
11938uses
11939the unreferenced objects. Even so, care is taken to only flag objects
11940that
11941don't look like they will ever be used. For example, the reserved methods
11942(starting with an underscore) are usually not referenced because it is
11943expected that the OS will invoke them.
11944
11945----------------------------------------
1194631 March 2006. Summary of changes for version 20060331:
11947
119481) ACPI CA Core Subsystem:
11949
11950Implemented header file support for the following additional ACPI tables:
11951ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this
11952support,
11953all current and known ACPI tables are now defined in the ACPICA headers
11954and
11955are available for use by device drivers and other software.
11956
11957Implemented support to allow tables that contain ACPI names with invalid
11958characters to be loaded. Previously, this would cause the table load to
11959fail, but since there are several known cases of such tables on existing
11960machines, this change was made to enable ACPI support for them. Also,
11961this
11962matches the behavior of the Microsoft ACPI implementation.
11963
11964Fixed a couple regressions introduced during the memory optimization in
11965the
1196620060317 release. The namespace node definition required additional
11967reorganization and an internal datatype that had been changed to 8-bit
11968was
11969restored to 32-bit. (Valery Podrezov)
11970
11971Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState
11972could be passed through to AcpiOsReleaseObject which is unexpected. Such
11973null pointers are now trapped and ignored, matching the behavior of the
11974previous implementation before the deployment of AcpiOsReleaseObject.
11975(Valery Podrezov, Fiodor Suietov)
11976
11977Fixed a memory mapping leak during the deletion of a SystemMemory
11978operation
11979region where a cached memory mapping was not deleted. This became a
11980noticeable problem for operation regions that are defined within
11981frequently
11982used control methods. (Dana Meyers)
11983
11984Reorganized the ACPI table header files into two main files: one for the
11985ACPI tables consumed by the ACPICA core, and another for the
11986miscellaneous
11987ACPI tables that are consumed by the drivers and other software. The
11988various
11989FADT definitions were merged into one common section and three different
11990tables (ACPI 1.0, 1.0+, and 2.0)
11991
11992Example Code and Data Size: These are the sizes for the OS-independent
11993acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The
11994debug version of the code includes the debug output trace mechanism and
11995has
11996a much larger code and data size.
11997
11998  Previous Release:
11999    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
12000    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
12001  Current Release:
12002    Non-Debug Version:  81.1K Code, 17.7K Data,  98.8K Total
12003    Debug Version:     158.9K Code, 64.9K Data, 223.8K Total
12004
12005
120062) iASL Compiler/Disassembler and Tools:
12007
12008Disassembler: Implemented support to decode and format all non-AML ACPI
12009tables (tables other than DSDTs and SSDTs.) This includes the new tables
12010added to the ACPICA headers, therefore all current and known ACPI tables
12011are
12012supported.
12013
12014Disassembler: The change to allow ACPI names with invalid characters also
12015enables the disassembly of such tables. Invalid characters within names
12016are
12017changed to '*' to make the name printable; the iASL compiler will still
12018generate an error for such names, however, since this is an invalid ACPI
12019character.
12020
12021Implemented an option for AcpiXtract (-a) to extract all tables found in
12022the
12023input file. The default invocation extracts only the DSDTs and SSDTs.
12024
12025Fixed a couple of gcc generation issues for iASL and AcpiExec and added a
12026makefile for the AcpiXtract utility.
12027
12028----------------------------------------
1202917 March 2006. Summary of changes for version 20060317:
12030
120311) ACPI CA Core Subsystem:
12032
12033Implemented the use of a cache object for all internal namespace nodes.
12034Since there are about 1000 static nodes in a typical system, this will
12035decrease memory use for cache implementations that minimize per-
12036allocation
12037overhead (such as a slab allocator.)
12038
12039Removed the reference count mechanism for internal namespace nodes, since
12040it
12041was deemed unnecessary. This reduces the size of each namespace node by
12042about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit
12043case,
12044and 32 bytes for the 64-bit case.
12045
12046Optimized several internal data structures to reduce object size on 64-
12047bit
12048platforms by packing data within the 64-bit alignment. This includes the
12049frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static
12050instances corresponding to the namespace objects.
12051
12052Added two new strings for the predefined _OSI method: "Windows 2001.1
12053SP1"
12054and "Windows 2006".
12055
12056Split the allocation tracking mechanism out to a separate file, from
12057utalloc.c to uttrack.c. This mechanism appears to be only useful for
12058application-level code. Kernels may wish to not include uttrack.c in
12059distributions.
12060
12061Removed all remnants of the obsolete ACPI_REPORT_* macros and the
12062associated
12063code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING
12064macros.)
12065
12066Code and Data Size: These are the sizes for the acpica.lib produced by
12067the
12068Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12069ACPI
12070driver or OSPM code. The debug version of the code includes the debug
12071output
12072trace mechanism and has a much larger code and data size. Note that these
12073values will vary depending on the efficiency of the compiler and the
12074compiler options used during generation.
12075
12076  Previous Release:
12077    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12078    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12079  Current Release:
12080    Non-Debug Version:  80.9K Code, 17.7K Data,  98.6K Total
12081    Debug Version:     158.7K Code, 64.8K Data, 223.5K Total
12082
12083
120842) iASL Compiler/Disassembler and Tools:
12085
12086Implemented an ANSI C version of the acpixtract utility. This version
12087will
12088automatically extract the DSDT and all SSDTs from the input acpidump text
12089file and dump the binary output to separate files. It can also display a
12090summary of the input file including the headers for each table found and
12091will extract any single ACPI table, with any signature. (See
12092source/tools/acpixtract)
12093
12094----------------------------------------
1209510 March 2006. Summary of changes for version 20060310:
12096
120971) ACPI CA Core Subsystem:
12098
12099Tagged all external interfaces to the subsystem with the new
12100ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to
12101assist
12102kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL
12103macro. The default definition is NULL.
12104
12105Added the ACPI_THREAD_ID type for the return value from
12106AcpiOsGetThreadId.
12107This allows the host to define this as necessary to simplify kernel
12108integration. The default definition is ACPI_NATIVE_UINT.
12109
12110Fixed two interpreter problems related to error processing, the deletion
12111of
12112objects, and placing invalid pointers onto the internal operator result
12113stack. BZ 6028, 6151 (Valery Podrezov)
12114
12115Increased the reference count threshold where a warning is emitted for
12116large
12117reference counts in order to eliminate unnecessary warnings on systems
12118with
12119large namespaces (especially 64-bit.) Increased the value from 0x400 to
121200x800.
12121
12122Due to universal disagreement as to the meaning of the 'c' in the
12123calloc()
12124function, the ACPI_MEM_CALLOCATE macro has been renamed to
12125ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.
12126ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and
12127ACPI_FREE.
12128
12129Code and Data Size: These are the sizes for the acpica.lib produced by
12130the
12131Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12132ACPI
12133driver or OSPM code. The debug version of the code includes the debug
12134output
12135trace mechanism and has a much larger code and data size. Note that these
12136values will vary depending on the efficiency of the compiler and the
12137compiler options used during generation.
12138
12139  Previous Release:
12140    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12141    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12142  Current Release:
12143    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12144    Debug Version:     161.6K Code, 65.7K Data, 227.3K Total
12145
12146
121472) iASL Compiler/Disassembler:
12148
12149Disassembler: implemented support for symbolic resource descriptor
12150references. If a CreateXxxxField operator references a fixed offset
12151within
12152a
12153resource descriptor, a name is assigned to the descriptor and the offset
12154is
12155translated to the appropriate resource tag and pathname. The addition of
12156this support brings the disassembled code very close to the original ASL
12157source code and helps eliminate run-time errors when the disassembled
12158code
12159is modified (and recompiled) in such a way as to invalidate the original
12160fixed offsets.
12161
12162Implemented support for a Descriptor Name as the last parameter to the
12163ASL
12164Register() macro. This parameter was inadvertently left out of the ACPI
12165specification, and will be added for ACPI 3.0b.
12166
12167Fixed a problem where the use of the "_OSI" string (versus the full path
12168"\_OSI") caused an internal compiler error. ("No back ptr to op")
12169
12170Fixed a problem with the error message that occurs when an invalid string
12171is
12172used for a _HID object (such as one with an embedded asterisk:
12173"*PNP010A".)
12174The correct message is now displayed.
12175
12176----------------------------------------
1217717 February 2006. Summary of changes for version 20060217:
12178
121791) ACPI CA Core Subsystem:
12180
12181Implemented a change to the IndexField support to match the behavior of
12182the
12183Microsoft AML interpreter. The value written to the Index register is now
12184a
12185byte offset, no longer an index based upon the width of the Data
12186register.
12187This should fix IndexField problems seen on some machines where the Data
12188register is not exactly one byte wide. The ACPI specification will be
12189clarified on this point.
12190
12191Fixed a problem where several resource descriptor types could overrun the
12192internal descriptor buffer due to size miscalculation: VendorShort,
12193VendorLong, and Interrupt. This was noticed on IA64 machines, but could
12194affect all platforms.
12195
12196Fixed a problem where individual resource descriptors were misaligned
12197within
12198the internal buffer, causing alignment faults on IA64 platforms.
12199
12200Code and Data Size: These are the sizes for the acpica.lib produced by
12201the
12202Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any
12203ACPI
12204driver or OSPM code. The debug version of the code includes the debug
12205output
12206trace mechanism and has a much larger code and data size. Note that these
12207values will vary depending on the efficiency of the compiler and the
12208compiler options used during generation.
12209
12210  Previous Release:
12211    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12212    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12213  Current Release:
12214    Non-Debug Version:  81.0K Code, 17.8K Data,  98.8K Total
12215    Debug Version:     161.4K Code, 65.7K Data, 227.1K Total
12216
12217
122182) iASL Compiler/Disassembler:
12219
12220Implemented support for new reserved names: _WDG and _WED are Microsoft
12221extensions for Windows Instrumentation Management, _TDL is a new ACPI-
12222defined method (Throttling Depth Limit.)
12223
12224Fixed a problem where a zero-length VendorShort or VendorLong resource
12225descriptor was incorrectly emitted as a descriptor of length one.
12226
12227----------------------------------------
1222810 February 2006. Summary of changes for version 20060210:
12229
122301) ACPI CA Core Subsystem:
12231
12232Removed a couple of extraneous ACPI_ERROR messages that appeared during
12233normal execution. These became apparent after the conversion from
12234ACPI_DEBUG_PRINT.
12235
12236Fixed a problem where the CreateField operator could hang if the BitIndex
12237or
12238NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)
12239
12240Fixed a problem where a DeRefOf operation on a buffer object incorrectly
12241failed with an exception. This also fixes a couple of related RefOf and
12242DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)
12243
12244Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead
12245of
12246AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,
12247BZ
122485480)
12249
12250Implemented a memory cleanup at the end of the execution of each
12251iteration
12252of an AML While() loop, preventing the accumulation of outstanding
12253objects.
12254(Valery Podrezov, BZ 5427)
12255
12256Eliminated a chunk of duplicate code in the object resolution code.
12257(Valery
12258Podrezov, BZ 5336)
12259
12260Fixed several warnings during the 64-bit code generation.
12261
12262The AcpiSrc source code conversion tool now inserts one line of
12263whitespace
12264after an if() statement that is followed immediately by a comment,
12265improving
12266readability of the Linux code.
12267
12268Code and Data Size: The current and previous library sizes for the core
12269subsystem are shown below. These are the code and data sizes for the
12270acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12271These
12272values do not include any ACPI driver or OSPM code. The debug version of
12273the
12274code includes the debug output trace mechanism and has a much larger code
12275and data size. Note that these values will vary depending on the
12276efficiency
12277of the compiler and the compiler options used during generation.
12278
12279  Previous Release:
12280    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12281    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12282  Current Release:
12283    Non-Debug Version:  81.1K Code, 17.8K Data,  98.9K Total
12284    Debug Version:     161.3K Code, 65.6K Data, 226.9K Total
12285
12286
122872) iASL Compiler/Disassembler:
12288
12289Fixed a problem with the disassembly of a BankField operator with a
12290complex
12291expression for the BankValue parameter.
12292
12293----------------------------------------
1229427 January 2006. Summary of changes for version 20060127:
12295
122961) ACPI CA Core Subsystem:
12297
12298Implemented support in the Resource Manager to allow unresolved
12299namestring
12300references within resource package objects for the _PRT method. This
12301support
12302is in addition to the previously implemented unresolved reference support
12303within the AML parser. If the interpreter slack mode is enabled, these
12304unresolved references will be passed through to the caller as a NULL
12305package
12306entry.
12307
12308Implemented and deployed new macros and functions for error and warning
12309messages across the subsystem. These macros are simpler and generate less
12310code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
12311ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older
12312macros remain defined to allow ACPI drivers time to migrate to the new
12313macros.
12314
12315Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of
12316the
12317Acquire/Release Lock OSL interfaces.
12318
12319Fixed a problem where Alias ASL operators are sometimes not correctly
12320resolved, in both the interpreter and the iASL compiler.
12321
12322Fixed several problems with the implementation of the
12323ConcatenateResTemplate
12324ASL operator. As per the ACPI specification, zero length buffers are now
12325treated as a single EndTag. One-length buffers always cause a fatal
12326exception. Non-zero length buffers that do not end with a full 2-byte
12327EndTag
12328cause a fatal exception.
12329
12330Fixed a possible structure overwrite in the AcpiGetObjectInfo external
12331interface. (With assistance from Thomas Renninger)
12332
12333Code and Data Size: The current and previous library sizes for the core
12334subsystem are shown below. These are the code and data sizes for the
12335acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12336These
12337values do not include any ACPI driver or OSPM code. The debug version of
12338the
12339code includes the debug output trace mechanism and has a much larger code
12340and data size. Note that these values will vary depending on the
12341efficiency
12342of the compiler and the compiler options used during generation.
12343
12344  Previous Release:
12345    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12346    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12347  Current Release:
12348    Non-Debug Version:  81.0K Code, 17.9K Data,  98.9K Total
12349    Debug Version:     161.3K Code, 65.7K Data, 227.0K Total
12350
12351
123522) iASL Compiler/Disassembler:
12353
12354Fixed an internal error that was generated for any forward references to
12355ASL
12356Alias objects.
12357
12358----------------------------------------
1235913 January 2006. Summary of changes for version 20060113:
12360
123611) ACPI CA Core Subsystem:
12362
12363Added 2006 copyright to all module headers and signons. This affects
12364virtually every file in the ACPICA core subsystem, iASL compiler, and the
12365utilities.
12366
12367Enhanced the ACPICA error reporting in order to simplify user migration
12368to
12369the non-debug version of ACPICA. Replaced all instances of the
12370ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN
12371debug
12372levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,
12373respectively. This preserves all error and warning messages in the non-
12374debug
12375version of the ACPICA code (this has been referred to as the "debug lite"
12376option.) Over 200 cases were converted to create a total of over 380
12377error/warning messages across the ACPICA code. This increases the code
12378and
12379data size of the default non-debug version of the code somewhat (about
1238013K),
12381but all error/warning reporting may be disabled if desired (and code
12382eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time
12383configuration option. The size of the debug version of ACPICA remains
12384about
12385the same.
12386
12387Fixed a memory leak within the AML Debugger "Set" command. One object was
12388not properly deleted for every successful invocation of the command.
12389
12390Code and Data Size: The current and previous library sizes for the core
12391subsystem are shown below. These are the code and data sizes for the
12392acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12393These
12394values do not include any ACPI driver or OSPM code. The debug version of
12395the
12396code includes the debug output trace mechanism and has a much larger code
12397and data size. Note that these values will vary depending on the
12398efficiency
12399of the compiler and the compiler options used during generation.
12400
12401  Previous Release:
12402    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12403    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12404  Current Release:
12405    Non-Debug Version:  83.1K Code, 18.4K Data, 101.5K Total
12406    Debug Version:     163.2K Code, 66.2K Data, 229.4K Total
12407
12408
124092) iASL Compiler/Disassembler:
12410
12411The compiler now officially supports the ACPI 3.0a specification that was
12412released on December 30, 2005. (Specification is available at
12413www.acpi.info)
12414
12415----------------------------------------
1241616 December 2005. Summary of changes for version 20051216:
12417
124181) ACPI CA Core Subsystem:
12419
12420Implemented optional support to allow unresolved names within ASL Package
12421objects. A null object is inserted in the package when a named reference
12422cannot be located in the current namespace. Enabled via the interpreter
12423slack flag, this should eliminate AE_NOT_FOUND exceptions seen on
12424machines
12425that contain such code.
12426
12427Implemented an optimization to the initialization sequence that can
12428improve
12429boot time. During ACPI device initialization, the _STA method is now run
12430if
12431and only if the _INI method exists. The _STA method is used to determine
12432if
12433the device is present; An _INI can only be run if _STA returns present,
12434but
12435it is a waste of time to run the _STA method if the _INI does not exist.
12436(Prototype and assistance from Dong Wei)
12437
12438Implemented use of the C99 uintptr_t for the pointer casting macros if it
12439is
12440available in the current compiler. Otherwise, the default (void *) cast
12441is
12442used as before.
12443
12444Fixed some possible memory leaks found within the execution path of the
12445Break, Continue, If, and CreateField operators. (Valery Podrezov)
12446
12447Fixed a problem introduced in the 20051202 release where an exception is
12448generated during method execution if a control method attempts to declare
12449another method.
12450
12451Moved resource descriptor string constants that are used by both the AML
12452disassembler and AML debugger to the common utilities directory so that
12453these components are independent.
12454
12455Implemented support in the AcpiExec utility (-e switch) to globally
12456ignore
12457exceptions during control method execution (method is not aborted.)
12458
12459Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix
12460generation.
12461
12462Code and Data Size: The current and previous library sizes for the core
12463subsystem are shown below. These are the code and data sizes for the
12464acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12465These
12466values do not include any ACPI driver or OSPM code. The debug version of
12467the
12468code includes the debug output trace mechanism and has a much larger code
12469and data size. Note that these values will vary depending on the
12470efficiency
12471of the compiler and the compiler options used during generation.
12472
12473  Previous Release:
12474    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12475    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12476  Current Release:
12477    Non-Debug Version:  76.6K Code, 12.3K Data,  88.9K Total
12478    Debug Version:     163.7K Code, 67.5K Data, 231.2K Total
12479
12480
124812) iASL Compiler/Disassembler:
12482
12483Fixed a problem where a CPU stack overflow fault could occur if a
12484recursive
12485method call was made from within a Return statement.
12486
12487----------------------------------------
1248802 December 2005. Summary of changes for version 20051202:
12489
124901) ACPI CA Core Subsystem:
12491
12492Modified the parsing of control methods to no longer create namespace
12493objects during the first pass of the parse. Objects are now created only
12494during the execute phase, at the moment the namespace creation operator
12495is
12496encountered in the AML (Name, OperationRegion, CreateByteField, etc.)
12497This
12498should eliminate ALREADY_EXISTS exceptions seen on some machines where
12499reentrant control methods are protected by an AML mutex. The mutex will
12500now
12501correctly block multiple threads from attempting to create the same
12502object
12503more than once.
12504
12505Increased the number of available Owner Ids for namespace object tracking
12506from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen
12507on
12508some machines with a large number of ACPI tables (either static or
12509dynamic).
12510
12511Fixed a problem with the AcpiExec utility where a fault could occur when
12512the
12513-b switch (batch mode) is used.
12514
12515Enhanced the namespace dump routine to output the owner ID for each
12516namespace object.
12517
12518Code and Data Size: The current and previous library sizes for the core
12519subsystem are shown below. These are the code and data sizes for the
12520acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12521These
12522values do not include any ACPI driver or OSPM code. The debug version of
12523the
12524code includes the debug output trace mechanism and has a much larger code
12525and data size. Note that these values will vary depending on the
12526efficiency
12527of the compiler and the compiler options used during generation.
12528
12529  Previous Release:
12530    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12531    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12532  Current Release:
12533    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12534    Debug Version:     163.2K Code, 67.4K Data, 230.6K Total
12535
12536
125372) iASL Compiler/Disassembler:
12538
12539Fixed a parse error during compilation of certain Switch/Case constructs.
12540To
12541simplify the parse, the grammar now allows for multiple Default
12542statements
12543and this error is now detected and flagged during the analysis phase.
12544
12545Disassembler: The disassembly now includes the contents of the original
12546table header within a comment at the start of the file. This includes the
12547name and version of the original ASL compiler.
12548
12549----------------------------------------
1255017 November 2005. Summary of changes for version 20051117:
12551
125521) ACPI CA Core Subsystem:
12553
12554Fixed a problem in the AML parser where the method thread count could be
12555decremented below zero if any errors occurred during the method parse
12556phase.
12557This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some
12558machines.
12559This also fixed a related regression with the mechanism that detects and
12560corrects methods that cannot properly handle reentrancy (related to the
12561deployment of the new OwnerId mechanism.)
12562
12563Eliminated the pre-parsing of control methods (to detect errors) during
12564table load. Related to the problem above, this was causing unwind issues
12565if
12566any errors occurred during the parse, and it seemed to be overkill. A
12567table
12568load should not be aborted if there are problems with any single control
12569method, thus rendering this feature rather pointless.
12570
12571Fixed a problem with the new table-driven resource manager where an
12572internal
12573buffer overflow could occur for small resource templates.
12574
12575Implemented a new external interface, AcpiGetVendorResource. This
12576interface
12577will find and return a vendor-defined resource descriptor within a _CRS
12578or
12579_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn
12580Helgaas.
12581
12582Removed the length limit (200) on string objects as per the upcoming ACPI
125833.0A specification. This affects the following areas of the interpreter:
125841)
12585any implicit conversion of a Buffer to a String, 2) a String object
12586result
12587of the ASL Concatenate operator, 3) the String object result of the ASL
12588ToString operator.
12589
12590Fixed a problem in the Windows OS interface layer (OSL) where a
12591WAIT_FOREVER
12592on a semaphore object would incorrectly timeout. This allows the
12593multithreading features of the AcpiExec utility to work properly under
12594Windows.
12595
12596Updated the Linux makefiles for the iASL compiler and AcpiExec to include
12597the recently added file named "utresrc.c".
12598
12599Code and Data Size: The current and previous library sizes for the core
12600subsystem are shown below. These are the code and data sizes for the
12601acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12602These
12603values do not include any ACPI driver or OSPM code. The debug version of
12604the
12605code includes the debug output trace mechanism and has a much larger code
12606and data size. Note that these values will vary depending on the
12607efficiency
12608of the compiler and the compiler options used during generation.
12609
12610  Previous Release:
12611    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12612    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12613  Current Release:
12614    Non-Debug Version:  76.3K Code, 12.3K Data,  88.6K Total
12615    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12616
12617
126182) iASL Compiler/Disassembler:
12619
12620Removed the limit (200) on string objects as per the upcoming ACPI 3.0A
12621specification. For the iASL compiler, this means that string literals
12622within
12623the source ASL can be of any length.
12624
12625Enhanced the listing output to dump the AML code for resource descriptors
12626immediately after the ASL code for each descriptor, instead of in a block
12627at
12628the end of the entire resource template.
12629
12630Enhanced the compiler debug output to dump the entire original parse tree
12631constructed during the parse phase, before any transforms are applied to
12632the
12633tree. The transformed tree is dumped also.
12634
12635----------------------------------------
1263602 November 2005. Summary of changes for version 20051102:
12637
126381) ACPI CA Core Subsystem:
12639
12640Modified the subsystem initialization sequence to improve GPE support.
12641The
12642GPE initialization has been split into two parts in order to defer
12643execution
12644of the _PRW methods (Power Resources for Wake) until after the hardware
12645is
12646fully initialized and the SCI handler is installed. This allows the _PRW
12647methods to access fields protected by the Global Lock. This will fix
12648systems
12649where a NO_GLOBAL_LOCK exception has been seen during initialization.
12650
12651Converted the ACPI internal object disassemble and display code within
12652the
12653AML debugger to fully table-driven operation, reducing code size and
12654increasing maintainability.
12655
12656Fixed a regression with the ConcatenateResTemplate() ASL operator
12657introduced
12658in the 20051021 release.
12659
12660Implemented support for "local" internal ACPI object types within the
12661debugger "Object" command and the AcpiWalkNamespace external interfaces.
12662These local types include RegionFields, BankFields, IndexFields, Alias,
12663and
12664reference objects.
12665
12666Moved common AML resource handling code into a new file, "utresrc.c".
12667This
12668code is shared by both the Resource Manager and the AML Debugger.
12669
12670Code and Data Size: The current and previous library sizes for the core
12671subsystem are shown below. These are the code and data sizes for the
12672acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12673These
12674values do not include any ACPI driver or OSPM code. The debug version of
12675the
12676code includes the debug output trace mechanism and has a much larger code
12677and data size. Note that these values will vary depending on the
12678efficiency
12679of the compiler and the compiler options used during generation.
12680
12681  Previous Release:
12682    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12683    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12684  Current Release:
12685    Non-Debug Version:  76.2K Code, 12.3K Data,  88.5K Total
12686    Debug Version:     163.0K Code, 67.4K Data, 230.4K Total
12687
12688
126892) iASL Compiler/Disassembler:
12690
12691Fixed a problem with very large initializer lists (more than 4000
12692elements)
12693for both Buffer and Package objects where the parse stack could overflow.
12694
12695Enhanced the pre-compile source code scan for non-ASCII characters to
12696ignore
12697characters within comment fields. The scan is now always performed and is
12698no
12699longer optional, detecting invalid characters within a source file
12700immediately rather than during the parse phase or later.
12701
12702Enhanced the ASL grammar definition to force early reductions on all
12703list-
12704style grammar elements so that the overall parse stack usage is greatly
12705reduced. This should improve performance and reduce the possibility of
12706parse
12707stack overflow.
12708
12709Eliminated all reduce/reduce conflicts in the iASL parser generation.
12710Also,
12711with the addition of a %expected statement, the compiler generates from
12712source with no warnings.
12713
12714Fixed a possible segment fault in the disassembler if the input filename
12715does not contain a "dot" extension (Thomas Renninger).
12716
12717----------------------------------------
1271821 October 2005. Summary of changes for version 20051021:
12719
127201) ACPI CA Core Subsystem:
12721
12722Implemented support for the EM64T and other x86-64 processors. This
12723essentially entails recognizing that these processors support non-aligned
12724memory transfers. Previously, all 64-bit processors were assumed to lack
12725hardware support for non-aligned transfers.
12726
12727Completed conversion of the Resource Manager to nearly full table-driven
12728operation. Specifically, the resource conversion code (convert AML to
12729internal format and the reverse) and the debug code to dump internal
12730resource descriptors are fully table-driven, reducing code and data size
12731and
12732improving maintainability.
12733
12734The OSL interfaces for Acquire and Release Lock now use a 64-bit flag
12735word
12736on 64-bit processors instead of a fixed 32-bit word. (With assistance
12737from
12738Alexey Starikovskiy)
12739
12740Implemented support within the resource conversion code for the Type-
12741Specific byte within the various ACPI 3.0 *WordSpace macros.
12742
12743Fixed some issues within the resource conversion code for the type-
12744specific
12745flags for both Memory and I/O address resource descriptors. For Memory,
12746implemented support for the MTP and TTP flags. For I/O, split the TRS and
12747TTP flags into two separate fields.
12748
12749Code and Data Size: The current and previous library sizes for the core
12750subsystem are shown below. These are the code and data sizes for the
12751acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12752These
12753values do not include any ACPI driver or OSPM code. The debug version of
12754the
12755code includes the debug output trace mechanism and has a much larger code
12756and data size. Note that these values will vary depending on the
12757efficiency
12758of the compiler and the compiler options used during generation.
12759
12760  Previous Release:
12761    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12762    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12763  Current Release:
12764    Non-Debug Version:  76.1K Code, 12.2K Data,  88.3K Total
12765    Debug Version:     163.5K Code, 67.0K Data, 230.5K Total
12766
12767
12768
127692) iASL Compiler/Disassembler:
12770
12771Relaxed a compiler restriction that disallowed a ResourceIndex byte if
12772the
12773corresponding ResourceSource string was not also present in a resource
12774descriptor declaration. This restriction caused problems with existing
12775AML/ASL code that includes the Index byte without the string. When such
12776AML
12777was disassembled, it could not be compiled without modification. Further,
12778the modified code created a resource template with a different size than
12779the
12780original, breaking code that used fixed offsets into the resource
12781template
12782buffer.
12783
12784Removed a recent feature of the disassembler to ignore a lone
12785ResourceIndex
12786byte. This byte is now emitted if present so that the exact AML can be
12787reproduced when the disassembled code is recompiled.
12788
12789Improved comments and text alignment for the resource descriptor code
12790emitted by the disassembler.
12791
12792Implemented disassembler support for the ACPI 3.0 AccessSize field within
12793a
12794Register() resource descriptor.
12795
12796----------------------------------------
1279730 September 2005. Summary of changes for version 20050930:
12798
127991) ACPI CA Core Subsystem:
12800
12801Completed a major overhaul of the Resource Manager code - specifically,
12802optimizations in the area of the AML/internal resource conversion code.
12803The
12804code has been optimized to simplify and eliminate duplicated code, CPU
12805stack
12806use has been decreased by optimizing function parameters and local
12807variables, and naming conventions across the manager have been
12808standardized
12809for clarity and ease of maintenance (this includes function, parameter,
12810variable, and struct/typedef names.) The update may force changes in some
12811driver code, depending on how resources are handled by the host OS.
12812
12813All Resource Manager dispatch and information tables have been moved to a
12814single location for clarity and ease of maintenance. One new file was
12815created, named "rsinfo.c".
12816
12817The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to
12818guarantee that the argument is not evaluated twice, making them less
12819prone
12820to macro side-effects. However, since there exists the possibility of
12821additional stack use if a particular compiler cannot optimize them (such
12822as
12823in the debug generation case), the original macros are optionally
12824available.
12825Note that some invocations of the return_VALUE macro may now cause size
12826mismatch warnings; the return_UINT8 and return_UINT32 macros are provided
12827to
12828eliminate these. (From Randy Dunlap)
12829
12830Implemented a new mechanism to enable debug tracing for individual
12831control
12832methods. A new external interface, AcpiDebugTrace, is provided to enable
12833this mechanism. The intent is to allow the host OS to easily enable and
12834disable tracing for problematic control methods. This interface can be
12835easily exposed to a user or debugger interface if desired. See the file
12836psxface.c for details.
12837
12838AcpiUtCallocate will now return a valid pointer if a length of zero is
12839specified - a length of one is used and a warning is issued. This matches
12840the behavior of AcpiUtAllocate.
12841
12842Code and Data Size: The current and previous library sizes for the core
12843subsystem are shown below. These are the code and data sizes for the
12844acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12845These
12846values do not include any ACPI driver or OSPM code. The debug version of
12847the
12848code includes the debug output trace mechanism and has a much larger code
12849and data size. Note that these values will vary depending on the
12850efficiency
12851of the compiler and the compiler options used during generation.
12852
12853  Previous Release:
12854    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
12855    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
12856  Current Release:
12857    Non-Debug Version:  77.1K Code, 12.1K Data,  89.2K Total
12858    Debug Version:     168.0K Code, 68.3K Data, 236.3K Total
12859
12860
128612) iASL Compiler/Disassembler:
12862
12863A remark is issued if the effective compile-time length of a package or
12864buffer is zero. Previously, this was a warning.
12865
12866----------------------------------------
1286716 September 2005. Summary of changes for version 20050916:
12868
128691) ACPI CA Core Subsystem:
12870
12871Fixed a problem within the Resource Manager where support for the Generic
12872Register descriptor was not fully implemented. This descriptor is now
12873fully
12874recognized, parsed, disassembled, and displayed.
12875
12876Completely restructured the Resource Manager code to utilize table-driven
12877dispatch and lookup, eliminating many of the large switch() statements.
12878This
12879reduces overall subsystem code size and code complexity. Affects the
12880resource parsing and construction, disassembly, and debug dump output.
12881
12882Cleaned up and restructured the debug dump output for all resource
12883descriptors. Improved readability of the output and reduced code size.
12884
12885Fixed a problem where changes to internal data structures caused the
12886optional ACPI_MUTEX_DEBUG code to fail compilation if specified.
12887
12888Code and Data Size: The current and previous library sizes for the core
12889subsystem are shown below. These are the code and data sizes for the
12890acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.
12891These
12892values do not include any ACPI driver or OSPM code. The debug version of
12893the
12894code includes the debug output trace mechanism and has a much larger code
12895and data size. Note that these values will vary depending on the
12896efficiency
12897of the compiler and the compiler options used during generation.
12898
12899  Previous Release:
12900    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
12901    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
12902  Current Release:
12903    Non-Debug Version:  77.5K Code, 12.0K Data,  89.5K Total
12904    Debug Version:     168.1K Code, 68.4K Data, 236.5K Total
12905
12906
129072) iASL Compiler/Disassembler:
12908
12909Updated the disassembler to automatically insert an EndDependentFn()
12910macro
12911into the ASL stream if this macro is missing in the original AML code,
12912simplifying compilation of the resulting ASL module.
12913
12914Fixed a problem in the disassembler where a disassembled ResourceSource
12915string (within a large resource descriptor) was not surrounded by quotes
12916and
12917not followed by a comma, causing errors when the resulting ASL module was
12918compiled. Also, escape sequences within a ResourceSource string are now
12919handled correctly (especially "\\")
12920
12921----------------------------------------
1292202 September 2005. Summary of changes for version 20050902:
12923
129241) ACPI CA Core Subsystem:
12925
12926Fixed a problem with the internal Owner ID allocation and deallocation
12927mechanisms for control method execution and recursive method invocation.
12928This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"
12929messages seen on some systems. Recursive method invocation depth is
12930currently limited to 255. (Alexey Starikovskiy)
12931
12932Completely eliminated all vestiges of support for the "module-level
12933executable code" until this support is fully implemented and debugged.
12934This
12935should eliminate the NO_RETURN_VALUE exceptions seen during table load on
12936some systems that invoke this support.
12937
12938Fixed a problem within the resource manager code where the transaction
12939flags
12940for a 64-bit address descriptor were handled incorrectly in the type-
12941specific flag byte.
12942
12943Consolidated duplicate code within the address descriptor resource
12944manager
12945code, reducing overall subsystem code size.
12946
12947Fixed a fault when using the AML debugger "disassemble" command to
12948disassemble individual control methods.
12949
12950Removed references to the "release_current" directory within the Unix
12951release package.
12952
12953Code and Data Size: The current and previous core subsystem library sizes
12954are shown below. These are the code and data sizes for the acpica.lib
12955produced by the Microsoft Visual C++ 6.0 compiler. These values do not
12956include any ACPI driver or OSPM code. The debug version of the code
12957includes
12958the debug output trace mechanism and has a much larger code and data
12959size.
12960Note that these values will vary depending on the efficiency of the
12961compiler
12962and the compiler options used during generation.
12963
12964  Previous Release:
12965    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
12966    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
12967  Current Release:
12968    Non-Debug Version:  78.4K Code, 11.8K Data,  90.2K Total
12969    Debug Version:     169.6K Code, 69.9K Data, 239.5K Total
12970
12971
129722) iASL Compiler/Disassembler:
12973
12974Implemented an error check for illegal duplicate values in the interrupt
12975and
12976dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and
12977Interrupt().
12978
12979Implemented error checking for the Irq() and IrqNoFlags() macros to
12980detect
12981too many values in the interrupt list (16 max) and invalid values in the
12982list (range 0 - 15)
12983
12984The maximum length string literal within an ASL file is now restricted to
12985200 characters as per the ACPI specification.
12986
12987Fixed a fault when using the -ln option (generate namespace listing).
12988
12989Implemented an error check to determine if a DescriptorName within a
12990resource descriptor has already been used within the current scope.
12991
12992----------------------------------------
1299315 August 2005.  Summary of changes for version 20050815:
12994
129951) ACPI CA Core Subsystem:
12996
12997Implemented a full bytewise compare to determine if a table load request
12998is
12999attempting to load a duplicate table. The compare is performed if the
13000table
13001signatures and table lengths match. This will allow different tables with
13002the same OEM Table ID and revision to be loaded - probably against the
13003ACPI
13004specification, but discovered in the field nonetheless.
13005
13006Added the changes.txt logfile to each of the zipped release packages.
13007
13008Code and Data Size: Current and previous core subsystem library sizes are
13009shown below. These are the code and data sizes for the acpica.lib
13010produced
13011by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13012any ACPI driver or OSPM code. The debug version of the code includes the
13013debug output trace mechanism and has a much larger code and data size.
13014Note
13015that these values will vary depending on the efficiency of the compiler
13016and
13017the compiler options used during generation.
13018
13019  Previous Release:
13020    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13021    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
13022  Current Release:
13023    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13024    Debug Version:     170.0K Code, 69.9K Data, 239.9K Total
13025
13026
130272) iASL Compiler/Disassembler:
13028
13029Fixed a problem where incorrect AML code could be generated for Package
13030objects if optimization is disabled (via the -oa switch).
13031
13032Fixed a problem with where incorrect AML code is generated for variable-
13033length packages when the package length is not specified and the number
13034of
13035initializer values is greater than 255.
13036
13037
13038----------------------------------------
1303929 July 2005.  Summary of changes for version 20050729:
13040
130411) ACPI CA Core Subsystem:
13042
13043Implemented support to ignore an attempt to install/load a particular
13044ACPI
13045table more than once. Apparently there exists BIOS code that repeatedly
13046attempts to load the same SSDT upon certain events. With assistance from
13047Venkatesh Pallipadi.
13048
13049Restructured the main interface to the AML parser in order to correctly
13050handle all exceptional conditions. This will prevent leakage of the
13051OwnerId
13052resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on
13053some
13054machines. With assistance from Alexey Starikovskiy.
13055
13056Support for "module level code" has been disabled in this version due to
13057a
13058number of issues that have appeared on various machines. The support can
13059be
13060enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem
13061compilation. When the issues are fully resolved, the code will be enabled
13062by
13063default again.
13064
13065Modified the internal functions for debug print support to define the
13066FunctionName parameter as a (const char *) for compatibility with
13067compiler
13068built-in macros such as __FUNCTION__, etc.
13069
13070Linted the entire ACPICA source tree for both 32-bit and 64-bit.
13071
13072Implemented support to display an object count summary for the AML
13073Debugger
13074commands Object and Methods.
13075
13076Code and Data Size: Current and previous core subsystem library sizes are
13077shown below. These are the code and data sizes for the acpica.lib
13078produced
13079by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13080any ACPI driver or OSPM code. The debug version of the code includes the
13081debug output trace mechanism and has a much larger code and data size.
13082Note
13083that these values will vary depending on the efficiency of the compiler
13084and
13085the compiler options used during generation.
13086
13087  Previous Release:
13088    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13089    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13090  Current Release:
13091    Non-Debug Version:  78.6K Code, 11.7K Data,  90.3K Total
13092    Debug Version:     167.0K Code, 69.9K Data, 236.9K Total
13093
13094
130952) iASL Compiler/Disassembler:
13096
13097Fixed a regression that appeared in the 20050708 version of the compiler
13098where an error message was inadvertently emitted for invocations of the
13099_OSI
13100reserved control method.
13101
13102----------------------------------------
1310308 July 2005.  Summary of changes for version 20050708:
13104
131051) ACPI CA Core Subsystem:
13106
13107The use of the CPU stack in the debug version of the subsystem has been
13108considerably reduced. Previously, a debug structure was declared in every
13109function that used the debug macros. This structure has been removed in
13110favor of declaring the individual elements as parameters to the debug
13111functions. This reduces the cumulative stack use during nested execution
13112of
13113ACPI function calls at the cost of a small increase in the code size of
13114the
13115debug version of the subsystem. With assistance from Alexey Starikovskiy
13116and
13117Len Brown.
13118
13119Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent
13120headers to define a macro that will return the current function name at
13121runtime (such as __FUNCTION__ or _func_, etc.) The function name is used
13122by
13123the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the
13124compiler-dependent header, the function name is saved on the CPU stack
13125(one
13126pointer per function.) This mechanism is used because apparently there
13127exists no standard ANSI-C defined macro that that returns the function
13128name.
13129
13130Redesigned and reimplemented the "Owner ID" mechanism used to track
13131namespace objects created/deleted by ACPI tables and control method
13132execution. A bitmap is now used to allocate and free the IDs, thus
13133solving
13134the wraparound problem present in the previous implementation. The size
13135of
13136the namespace node descriptor was reduced by 2 bytes as a result (Alexey
13137Starikovskiy).
13138
13139Removed the UINT32_BIT and UINT16_BIT types that were used for the
13140bitfield
13141flag definitions within the headers for the predefined ACPI tables. These
13142have been replaced by UINT8_BIT in order to increase the code portability
13143of
13144the subsystem. If the use of UINT8 remains a problem, we may be forced to
13145eliminate bitfields entirely because of a lack of portability.
13146
13147Enhanced the performance of the AcpiUtUpdateObjectReference procedure.
13148This
13149is a frequently used function and this improvement increases the
13150performance
13151of the entire subsystem (Alexey Starikovskiy).
13152
13153Fixed several possible memory leaks and the inverse - premature object
13154deletion (Alexey Starikovskiy).
13155
13156Code and Data Size: Current and previous core subsystem library sizes are
13157shown below. These are the code and data sizes for the acpica.lib
13158produced
13159by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13160any ACPI driver or OSPM code. The debug version of the code includes the
13161debug output trace mechanism and has a much larger code and data size.
13162Note
13163that these values will vary depending on the efficiency of the compiler
13164and
13165the compiler options used during generation.
13166
13167  Previous Release:
13168    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13169    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13170  Current Release:
13171    Non-Debug Version:  78.6K Code, 11.6K Data,  90.2K Total
13172    Debug Version:     170.0K Code, 69.7K Data, 239.7K Total
13173
13174----------------------------------------
1317524 June 2005.  Summary of changes for version 20050624:
13176
131771) ACPI CA Core Subsystem:
13178
13179Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for
13180the host-defined cache object. This allows the OSL implementation to
13181define
13182and type this object in any manner desired, simplifying the OSL
13183implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for
13184Linux, and should be defined in the OS-specific header file for other
13185operating systems as required.
13186
13187Changed the interface to AcpiOsAcquireObject to directly return the
13188requested object as the function return (instead of ACPI_STATUS.) This
13189change was made for performance reasons, since this is the purpose of the
13190interface in the first place. AcpiOsAcquireObject is now similar to the
13191AcpiOsAllocate interface.
13192
13193Implemented a new AML debugger command named Businfo. This command
13194displays
13195information about all devices that have an associate _PRT object. The
13196_ADR,
13197_HID, _UID, and _CID are displayed for these devices.
13198
13199Modified the initialization sequence in AcpiInitializeSubsystem to call
13200the
13201OSL interface AcpiOslInitialize first, before any local initialization.
13202This
13203change was required because the global initialization now calls OSL
13204interfaces.
13205
13206Enhanced the Dump command to display the entire contents of Package
13207objects
13208(including all sub-objects and their values.)
13209
13210Restructured the code base to split some files because of size and/or
13211because the code logically belonged in a separate file. New files are
13212listed
13213below. All makefiles and project files included in the ACPI CA release
13214have
13215been updated.
13216    utilities/utcache.c           /* Local cache interfaces */
13217    utilities/utmutex.c           /* Local mutex support */
13218    utilities/utstate.c           /* State object support */
13219    interpreter/parser/psloop.c   /* Main AML parse loop */
13220
13221Code and Data Size: Current and previous core subsystem library sizes are
13222shown below. These are the code and data sizes for the acpica.lib
13223produced
13224by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13225any ACPI driver or OSPM code. The debug version of the code includes the
13226debug output trace mechanism and has a much larger code and data size.
13227Note
13228that these values will vary depending on the efficiency of the compiler
13229and
13230the compiler options used during generation.
13231
13232  Previous Release:
13233    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13234    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13235  Current Release:
13236    Non-Debug Version:  78.6K Code, 11.5K Data,  90.1K Total
13237    Debug Version:     165.2K Code, 69.6K Data, 234.8K Total
13238
13239
132402) iASL Compiler/Disassembler:
13241
13242Fixed a regression introduced in version 20050513 where the use of a
13243Package
13244object within a Case() statement caused a compile time exception. The
13245original behavior has been restored (a Match() operator is emitted.)
13246
13247----------------------------------------
1324817 June 2005.  Summary of changes for version 20050617:
13249
132501) ACPI CA Core Subsystem:
13251
13252Moved the object cache operations into the OS interface layer (OSL) to
13253allow
13254the host OS to handle these operations if desired (for example, the Linux
13255OSL will invoke the slab allocator). This support is optional; the
13256compile
13257time define ACPI_USE_LOCAL_CACHE may be used to utilize the original
13258cache
13259code in the ACPI CA core. The new OSL interfaces are shown below. See
13260utalloc.c for an example implementation, and acpiosxf.h for the exact
13261interface definitions. With assistance from Alexey Starikovskiy.
13262    AcpiOsCreateCache
13263    AcpiOsDeleteCache
13264    AcpiOsPurgeCache
13265    AcpiOsAcquireObject
13266    AcpiOsReleaseObject
13267
13268Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to
13269return
13270and restore a flags parameter. This fits better with many OS lock models.
13271Note: the current execution state (interrupt handler or not) is no longer
13272passed to these interfaces. If necessary, the OSL must determine this
13273state
13274by itself, a simple and fast operation. With assistance from Alexey
13275Starikovskiy.
13276
13277Fixed a problem in the ACPI table handling where a valid XSDT was assumed
13278present if the revision of the RSDP was 2 or greater. According to the
13279ACPI
13280specification, the XSDT is optional in all cases, and the table manager
13281therefore now checks for both an RSDP >=2 and a valid XSDT pointer.
13282Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs
13283contain
13284only the RSDT.
13285
13286Fixed an interpreter problem with the Mid() operator in the case of an
13287input
13288string where the resulting output string is of zero length. It now
13289correctly
13290returns a valid, null terminated string object instead of a string object
13291with a null pointer.
13292
13293Fixed a problem with the control method argument handling to allow a
13294store
13295to an Arg object that already contains an object of type Device. The
13296Device
13297object is now correctly overwritten. Previously, an error was returned.
13298
13299
13300Enhanced the debugger Find command to emit object values in addition to
13301the
13302found object pathnames. The output format is the same as the dump
13303namespace
13304command.
13305
13306Enhanced the debugger Set command. It now has the ability to set the
13307value
13308of any Named integer object in the namespace (Previously, only method
13309locals
13310and args could be set.)
13311
13312Code and Data Size: Current and previous core subsystem library sizes are
13313shown below. These are the code and data sizes for the acpica.lib
13314produced
13315by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13316any ACPI driver or OSPM code. The debug version of the code includes the
13317debug output trace mechanism and has a much larger code and data size.
13318Note
13319that these values will vary depending on the efficiency of the compiler
13320and
13321the compiler options used during generation.
13322
13323  Previous Release:
13324    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13325    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13326  Current Release:
13327    Non-Debug Version:  78.3K Code, 11.6K Data,  89.9K Total
13328    Debug Version:     164.0K Code, 69.1K Data, 233.1K Total
13329
13330
133312) iASL Compiler/Disassembler:
13332
13333Fixed a regression in the disassembler where if/else/while constructs
13334were
13335output incorrectly. This problem was introduced in the previous release
13336(20050526). This problem also affected the single-step disassembly in the
13337debugger.
13338
13339Fixed a problem where compiling the reserved _OSI method would randomly
13340(but
13341rarely) produce compile errors.
13342
13343Enhanced the disassembler to emit compilable code in the face of
13344incorrect
13345AML resource descriptors. If the optional ResourceSourceIndex is present,
13346but the ResourceSource is not, do not emit the ResourceSourceIndex in the
13347disassembly. Otherwise, the resulting code cannot be compiled without
13348errors.
13349
13350----------------------------------------
1335126 May 2005.  Summary of changes for version 20050526:
13352
133531) ACPI CA Core Subsystem:
13354
13355Implemented support to execute Type 1 and Type 2 AML opcodes appearing at
13356the module level (not within a control method.) These opcodes are
13357executed
13358exactly once at the time the table is loaded. This type of code was legal
13359up
13360until the release of ACPI 2.0B (2002) and is now supported within ACPI CA
13361in
13362order to provide backwards compatibility with earlier BIOS
13363implementations.
13364This eliminates the "Encountered executable code at module level" warning
13365that was previously generated upon detection of such code.
13366
13367Fixed a problem in the interpreter where an AE_NOT_FOUND exception could
13368inadvertently be generated during the lookup of namespace objects in the
13369second pass parse of ACPI tables and control methods. It appears that
13370this
13371problem could occur during the resolution of forward references to
13372namespace
13373objects.
13374
13375Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,
13376corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This
13377allows the deadlock detection debug code to be compiled out in the normal
13378case, improving mutex performance (and overall subsystem performance)
13379considerably.
13380
13381Implemented a handful of miscellaneous fixes for possible memory leaks on
13382error conditions and error handling control paths. These fixes were
13383suggested by FreeBSD and the Coverity Prevent source code analysis tool.
13384
13385Added a check for a null RSDT pointer in AcpiGetFirmwareTable
13386(tbxfroot.c)
13387to prevent a fault in this error case.
13388
13389Code and Data Size: Current and previous core subsystem library sizes are
13390shown below. These are the code and data sizes for the acpica.lib
13391produced
13392by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13393any ACPI driver or OSPM code. The debug version of the code includes the
13394debug output trace mechanism and has a much larger code and data size.
13395Note
13396that these values will vary depending on the efficiency of the compiler
13397and
13398the compiler options used during generation.
13399
13400  Previous Release:
13401    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13402    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13403  Current Release:
13404    Non-Debug Version:  78.1K Code, 11.6K Data,  89.7K Total
13405    Debug Version:     164.0K Code, 69.3K Data, 233.3K Total
13406
13407
134082) iASL Compiler/Disassembler:
13409
13410Implemented support to allow Type 1 and Type 2 ASL operators to appear at
13411the module level (not within a control method.) These operators will be
13412executed once at the time the table is loaded. This type of code was
13413legal
13414up until the release of ACPI 2.0B (2002) and is now supported by the iASL
13415compiler in order to provide backwards compatibility with earlier BIOS
13416ASL
13417code.
13418
13419The ACPI integer width (specified via the table revision ID or the -r
13420override, 32 or 64 bits) is now used internally during compile-time
13421constant
13422folding to ensure that constants are truncated to 32 bits if necessary.
13423Previously, the revision ID value was only emitted in the AML table
13424header.
13425
13426An error message is now generated for the Mutex and Method operators if
13427the
13428SyncLevel parameter is outside the legal range of 0 through 15.
13429
13430Fixed a problem with the Method operator ParameterTypes list handling
13431(ACPI
134323.0). Previously, more than 2 types or 2 arguments generated a syntax
13433error.
13434The actual underlying implementation of method argument typechecking is
13435still under development, however.
13436
13437----------------------------------------
1343813 May 2005.  Summary of changes for version 20050513:
13439
134401) ACPI CA Core Subsystem:
13441
13442Implemented support for PCI Express root bridges -- added support for
13443device
13444PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.
13445
13446The interpreter now automatically truncates incoming 64-bit constants to
1344732
13448bits if currently executing out of a 32-bit ACPI table (Revision < 2).
13449This
13450also affects the iASL compiler constant folding. (Note: as per below, the
13451iASL compiler no longer allows 64-bit constants within 32-bit tables.)
13452
13453Fixed a problem where string and buffer objects with "static" pointers
13454(pointers to initialization data within an ACPI table) were not handled
13455consistently. The internal object copy operation now always copies the
13456data
13457to a newly allocated buffer, regardless of whether the source object is
13458static or not.
13459
13460Fixed a problem with the FromBCD operator where an implicit result
13461conversion was improperly performed while storing the result to the
13462target
13463operand. Since this is an "explicit conversion" operator, the implicit
13464conversion should never be performed on the output.
13465
13466Fixed a problem with the CopyObject operator where a copy to an existing
13467named object did not always completely overwrite the existing object
13468stored
13469at name. Specifically, a buffer-to-buffer copy did not delete the
13470existing
13471buffer.
13472
13473Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces
13474and
13475structs for consistency.
13476
13477Code and Data Size: Current and previous core subsystem library sizes are
13478shown below. These are the code and data sizes for the acpica.lib
13479produced
13480by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13481any ACPI driver or OSPM code. The debug version of the code includes the
13482debug output trace mechanism and has a much larger code and data size.
13483Note
13484that these values will vary depending on the efficiency of the compiler
13485and
13486the compiler options used during generation.
13487
13488  Previous Release:
13489    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13490    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13491  Current Release: (Same sizes)
13492    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13493    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13494
13495
134962) iASL Compiler/Disassembler:
13497
13498The compiler now emits a warning if an attempt is made to generate a 64-
13499bit
13500integer constant from within a 32-bit ACPI table (Revision < 2). The
13501integer
13502is truncated to 32 bits.
13503
13504Fixed a problem with large package objects: if the static length of the
13505package is greater than 255, the "variable length package" opcode is
13506emitted. Previously, this caused an error. This requires an update to the
13507ACPI spec, since it currently (incorrectly) states that packages larger
13508than
13509255 elements are not allowed.
13510
13511The disassembler now correctly handles variable length packages and
13512packages
13513larger than 255 elements.
13514
13515----------------------------------------
1351608 April 2005.  Summary of changes for version 20050408:
13517
135181) ACPI CA Core Subsystem:
13519
13520Fixed three cases in the interpreter where an "index" argument to an ASL
13521function was still (internally) 32 bits instead of the required 64 bits.
13522This was the Index argument to the Index, Mid, and Match operators.
13523
13524The "strupr" function is now permanently local (AcpiUtStrupr), since this
13525is
13526not a POSIX-defined function and not present in most kernel-level C
13527libraries. All references to the C library strupr function have been
13528removed
13529from the headers.
13530
13531Completed the deployment of static functions/prototypes. All prototypes
13532with
13533the static attribute have been moved from the headers to the owning C
13534file.
13535
13536Implemented an extract option (-e) for the AcpiBin utility (AML binary
13537utility). This option allows the utility to extract individual ACPI
13538tables
13539from the output of AcpiDmp. It provides the same functionality of the
13540acpixtract.pl perl script without the worry of setting the correct perl
13541options. AcpiBin runs on Windows and has not yet been generated/validated
13542in
13543the Linux/Unix environment (but should be soon).
13544
13545Updated and fixed the table dump option for AcpiBin (-d). This option
13546converts a single ACPI table to a hex/ascii file, similar to the output
13547of
13548AcpiDmp.
13549
13550Code and Data Size: Current and previous core subsystem library sizes are
13551shown below. These are the code and data sizes for the acpica.lib
13552produced
13553by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13554any ACPI driver or OSPM code. The debug version of the code includes the
13555debug output trace mechanism and has a much larger code and data size.
13556Note
13557that these values will vary depending on the efficiency of the compiler
13558and
13559the compiler options used during generation.
13560
13561  Previous Release:
13562    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13563    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13564  Current Release:
13565    Non-Debug Version:  78.2K Code, 11.6K Data,  89.8K Total
13566    Debug Version:     163.7K Code, 69.3K Data, 233.0K Total
13567
13568
135692) iASL Compiler/Disassembler:
13570
13571Disassembler fix: Added a check to ensure that the table length found in
13572the
13573ACPI table header within the input file is not longer than the actual
13574input
13575file size. This indicates some kind of file or table corruption.
13576
13577----------------------------------------
1357829 March 2005.  Summary of changes for version 20050329:
13579
135801) ACPI CA Core Subsystem:
13581
13582An error is now generated if an attempt is made to create a Buffer Field
13583of
13584length zero (A CreateField with a length operand of zero.)
13585
13586The interpreter now issues a warning whenever executable code at the
13587module
13588level is detected during ACPI table load. This will give some idea of the
13589prevalence of this type of code.
13590
13591Implemented support for references to named objects (other than control
13592methods) within package objects.
13593
13594Enhanced package object output for the debug object. Package objects are
13595now
13596completely dumped, showing all elements.
13597
13598Enhanced miscellaneous object output for the debug object. Any object can
13599now be written to the debug object (for example, a device object can be
13600written, and the type of the object will be displayed.)
13601
13602The "static" qualifier has been added to all local functions across both
13603the
13604core subsystem and the iASL compiler.
13605
13606The number of "long" lines (> 80 chars) within the source has been
13607significantly reduced, by about 1/3.
13608
13609Cleaned up all header files to ensure that all CA/iASL functions are
13610prototyped (even static functions) and the formatting is consistent.
13611
13612Two new header files have been added, acopcode.h and acnames.h.
13613
13614Removed several obsolete functions that were no longer used.
13615
13616Code and Data Size: Current and previous core subsystem library sizes are
13617shown below. These are the code and data sizes for the acpica.lib
13618produced
13619by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13620any ACPI driver or OSPM code. The debug version of the code includes the
13621debug output trace mechanism and has a much larger code and data size.
13622Note
13623that these values will vary depending on the efficiency of the compiler
13624and
13625the compiler options used during generation.
13626
13627  Previous Release:
13628    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13629    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13630  Current Release:
13631    Non-Debug Version:  78.0K Code, 11.6K Data,  89.6K Total
13632    Debug Version:     163.5K Code, 69.3K Data, 232.8K Total
13633
13634
13635
136362) iASL Compiler/Disassembler:
13637
13638Fixed a problem with the resource descriptor generation/support. For the
13639ResourceSourceIndex and the ResourceSource fields, both must be present,
13640or
13641both must be not present - can't have one without the other.
13642
13643The compiler now returns non-zero from the main procedure if any errors
13644have
13645occurred during the compilation.
13646
13647
13648----------------------------------------
1364909 March 2005.  Summary of changes for version 20050309:
13650
136511) ACPI CA Core Subsystem:
13652
13653The string-to-buffer implicit conversion code has been modified again
13654after
13655a change to the ACPI specification.  In order to match the behavior of
13656the
13657other major ACPI implementation, the target buffer is no longer truncated
13658if
13659the source string is smaller than an existing target buffer. This change
13660requires an update to the ACPI spec, and should eliminate the recent
13661AE_AML_BUFFER_LIMIT issues.
13662
13663The "implicit return" support was rewritten to a new algorithm that
13664solves
13665the general case. Rather than attempt to determine when a method is about
13666to
13667exit, the result of every ASL operator is saved momentarily until the
13668very
13669next ASL operator is executed. Therefore, no matter how the method exits,
13670there will always be a saved implicit return value. This feature is only
13671enabled with the AcpiGbl_EnableInterpreterSlack flag, and should
13672eliminate
13673AE_AML_NO_RETURN_VALUE errors when enabled.
13674
13675Implemented implicit conversion support for the predicate (operand) of
13676the
13677If, Else, and While operators. String and Buffer arguments are
13678automatically
13679converted to Integers.
13680
13681Changed the string-to-integer conversion behavior to match the new ACPI
13682errata: "If no integer object exists, a new integer is created. The ASCII
13683string is interpreted as a hexadecimal constant. Each string character is
13684interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting
13685with the first character as the most significant digit, and ending with
13686the
13687first non-hexadecimal character or end-of-string." This means that the
13688first
13689non-hex character terminates the conversion and this is the code that was
13690changed.
13691
13692Fixed a problem where the ObjectType operator would fail (fault) when
13693used
13694on an Index of a Package which pointed to a null package element. The
13695operator now properly returns zero (Uninitialized) in this case.
13696
13697Fixed a problem where the While operator used excessive memory by not
13698properly popping the result stack during execution. There was no memory
13699leak
13700after execution, however. (Code provided by Valery Podrezov.)
13701
13702Fixed a problem where references to control methods within Package
13703objects
13704caused the method to be invoked, instead of producing a reference object
13705pointing to the method.
13706
13707Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)
13708to
13709improve performance and reduce code size. (Code provided by Alexey
13710Starikovskiy.)
13711
13712Code and Data Size: Current and previous core subsystem library sizes are
13713shown below. These are the code and data sizes for the acpica.lib
13714produced
13715by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13716any ACPI driver or OSPM code. The debug version of the code includes the
13717debug output trace mechanism and has a much larger code and data size.
13718Note
13719that these values will vary depending on the efficiency of the compiler
13720and
13721the compiler options used during generation.
13722
13723  Previous Release:
13724    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13725    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13726  Current Release:
13727    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13728    Debug Version:     165.4K Code, 69.7K Data, 236.1K Total
13729
13730
137312) iASL Compiler/Disassembler:
13732
13733Fixed a problem with the Return operator with no arguments. Since the AML
13734grammar for the byte encoding requires an operand for the Return opcode,
13735the
13736compiler now emits a Return(Zero) for this case.  An ACPI specification
13737update has been written for this case.
13738
13739For tables other than the DSDT, namepath optimization is automatically
13740disabled. This is because SSDTs can be loaded anywhere in the namespace,
13741the
13742compiler has no knowledge of where, and thus cannot optimize namepaths.
13743
13744Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was
13745inadvertently omitted from the ACPI specification, and will require an
13746update to the spec.
13747
13748The source file scan for ASCII characters is now optional (-a). This
13749change
13750was made because some vendors place non-ascii characters within comments.
13751However, the scan is simply a brute-force byte compare to ensure all
13752characters in the file are in the range 0x00 to 0x7F.
13753
13754Fixed a problem with the CondRefOf operator where the compiler was
13755inappropriately checking for the existence of the target. Since the point
13756of
13757the operator is to check for the existence of the target at run-time, the
13758compiler no longer checks for the target existence.
13759
13760Fixed a problem where errors generated from the internal AML interpreter
13761during constant folding were not handled properly, causing a fault.
13762
13763Fixed a problem with overly aggressive range checking for the Stall
13764operator. The valid range (max 255) is now only checked if the operand is
13765of
13766type Integer. All other operand types cannot be statically checked.
13767
13768Fixed a problem where control method references within the RefOf,
13769DeRefOf,
13770and ObjectType operators were not treated properly. They are now treated
13771as
13772actual references, not method invocations.
13773
13774Fixed and enhanced the "list namespace" option (-ln). This option was
13775broken
13776a number of releases ago.
13777
13778Improved error handling for the Field, IndexField, and BankField
13779operators.
13780The compiler now cleanly reports and recovers from errors in the field
13781component (FieldUnit) list.
13782
13783Fixed a disassembler problem where the optional ResourceDescriptor fields
13784TRS and TTP were not always handled correctly.
13785
13786Disassembler - Comments in output now use "//" instead of "/*"
13787
13788----------------------------------------
1378928 February 2005.  Summary of changes for version 20050228:
13790
137911) ACPI CA Core Subsystem:
13792
13793Fixed a problem where the result of an Index() operator (an object
13794reference) must increment the reference count on the target object for
13795the
13796life of the object reference.
13797
13798Implemented AML Interpreter and Debugger support for the new ACPI 3.0
13799Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and
13800WordSpace
13801resource descriptors.
13802
13803Implemented support in the _OSI method for the ACPI 3.0 "Extended Address
13804Space Descriptor" string, indicating interpreter support for the
13805descriptors
13806above.
13807
13808Implemented header support for the new ACPI 3.0 FADT flag bits.
13809
13810Implemented header support for the new ACPI 3.0 PCI Express bits for the
13811PM1
13812status/enable registers.
13813
13814Updated header support for the MADT processor local Apic struct and MADT
13815platform interrupt source struct for new ACPI 3.0 fields.
13816
13817Implemented header support for the SRAT and SLIT ACPI tables.
13818
13819Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"
13820flag
13821at runtime.
13822
13823Code and Data Size: Current and previous core subsystem library sizes are
13824shown below. These are the code and data sizes for the acpica.lib
13825produced
13826by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13827any ACPI driver or OSPM code. The debug version of the code includes the
13828debug output trace mechanism and has a much larger code and data size.
13829Note
13830that these values will vary depending on the efficiency of the compiler
13831and
13832the compiler options used during generation.
13833
13834  Previous Release:
13835    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
13836    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
13837  Current Release:
13838    Non-Debug Version:  78.3K Code, 11.5K Data,  89.8K Total
13839    Debug Version:     165.4K Code, 69.6K Data, 236.0K Total
13840
13841
138422) iASL Compiler/Disassembler:
13843
13844Fixed a problem with the internal 64-bit String-to-integer conversion
13845with
13846strings less than two characters long.
13847
13848Fixed a problem with constant folding where the result of the Index()
13849operator can not be considered a constant. This means that Index() cannot
13850be
13851a type3 opcode and this will require an update to the ACPI specification.
13852
13853Disassembler: Implemented support for the TTP, MTP, and TRS resource
13854descriptor fields. These fields were inadvertently ignored and not output
13855in
13856the disassembly of the resource descriptor.
13857
13858
13859 ----------------------------------------
1386011 February 2005.  Summary of changes for version 20050211:
13861
138621) ACPI CA Core Subsystem:
13863
13864Implemented ACPI 3.0 support for implicit conversion within the Match()
13865operator. MatchObjects can now be of type integer, buffer, or string
13866instead
13867of just type integer.  Package elements are implicitly converted to the
13868type
13869of the MatchObject. This change aligns the behavior of Match() with the
13870behavior of the other logical operators (LLess(), etc.) It also requires
13871an
13872errata change to the ACPI specification as this support was intended for
13873ACPI 3.0, but was inadvertently omitted.
13874
13875Fixed a problem with the internal implicit "to buffer" conversion.
13876Strings
13877that are converted to buffers will cause buffer truncation if the string
13878is
13879smaller than the target buffer. Integers that are converted to buffers
13880will
13881not cause buffer truncation, only zero extension (both as per the ACPI
13882spec.) The problem was introduced when code was added to truncate the
13883buffer, but this should not be performed in all cases, only the string
13884case.
13885
13886Fixed a problem with the Buffer and Package operators where the
13887interpreter
13888would get confused if two such operators were used as operands to an ASL
13889operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result
13890stack was not being popped after the execution of these operators,
13891resulting
13892in an AE_NO_RETURN_VALUE exception.
13893
13894Fixed a problem with constructs of the form Store(Index(...),...). The
13895reference object returned from Index was inadvertently resolved to an
13896actual
13897value. This problem was introduced in version 20050114 when the behavior
13898of
13899Store() was modified to restrict the object types that can be used as the
13900source operand (to match the ACPI specification.)
13901
13902Reduced excessive stack use within the AcpiGetObjectInfo procedure.
13903
13904Added a fix to aclinux.h to allow generation of AcpiExec on Linux.
13905
13906Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.
13907
13908Code and Data Size: Current and previous core subsystem library sizes are
13909shown below. These are the code and data sizes for the acpica.lib
13910produced
13911by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13912any ACPI driver or OSPM code. The debug version of the code includes the
13913debug output trace mechanism and has a much larger code and data size.
13914Note
13915that these values will vary depending on the efficiency of the compiler
13916and
13917the compiler options used during generation.
13918
13919  Previous Release:
13920    Non-Debug Version:  78.1K Code, 11.5K Data,  89.6K Total
13921    Debug Version:     164.8K Code, 69.2K Data, 234.0K Total
13922  Current Release:
13923    Non-Debug Version:  78.2K Code, 11.5K Data,  89.7K Total
13924    Debug Version:     164.9K Code, 69.2K Data, 234.1K Total
13925
13926
139272) iASL Compiler/Disassembler:
13928
13929Fixed a code generation problem in the constant folding optimization code
13930where incorrect code was generated if a constant was reduced to a buffer
13931object (i.e., a reduced type 5 opcode.)
13932
13933Fixed a typechecking problem for the ToBuffer operator. Caused by an
13934incorrect return type in the internal opcode information table.
13935
13936----------------------------------------
1393725 January 2005.  Summary of changes for version 20050125:
13938
139391) ACPI CA Core Subsystem:
13940
13941Fixed a recently introduced problem with the Global Lock where the
13942underlying semaphore was not created.  This problem was introduced in
13943version 20050114, and caused an AE_AML_NO_OPERAND exception during an
13944Acquire() operation on _GL.
13945
13946The local object cache is now optional, and is disabled by default. Both
13947AcpiExec and the iASL compiler enable the cache because they run in user
13948mode and this enhances their performance. #define
13949ACPI_ENABLE_OBJECT_CACHE
13950to enable the local cache.
13951
13952Fixed an issue in the internal function AcpiUtEvaluateObject concerning
13953the
13954optional "implicit return" support where an error was returned if no
13955return
13956object was expected, but one was implicitly returned. AE_OK is now
13957returned
13958in this case and the implicitly returned object is deleted.
13959AcpiUtEvaluateObject is only occasionally used, and only to execute
13960reserved
13961methods such as _STA and _INI where the return type is known up front.
13962
13963Fixed a few issues with the internal convert-to-integer code. It now
13964returns
13965an error if an attempt is made to convert a null string, a string of only
13966blanks/tabs, or a zero-length buffer. This affects both implicit
13967conversion
13968and explicit conversion via the ToInteger() operator.
13969
13970The internal debug code in AcpiUtAcquireMutex has been commented out. It
13971is
13972not needed for normal operation and should increase the performance of
13973the
13974entire subsystem. The code remains in case it is needed for debug
13975purposes
13976again.
13977
13978The AcpiExec source and makefile are included in the Unix/Linux package
13979for
13980the first time.
13981
13982Code and Data Size: Current and previous core subsystem library sizes are
13983shown below. These are the code and data sizes for the acpica.lib
13984produced
13985by the Microsoft Visual C++ 6.0 compiler, and these values do not include
13986any ACPI driver or OSPM code. The debug version of the code includes the
13987debug output trace mechanism and has a much larger code and data size.
13988Note
13989that these values will vary depending on the efficiency of the compiler
13990and
13991the compiler options used during generation.
13992
13993  Previous Release:
13994    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
13995    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
13996  Current Release:
13997    Non-Debug Version:  78.1K Code,  11.5K Data,   89.6K Total
13998    Debug Version:     164.8K Code,  69.2K Data,  234.0K Total
13999
140002) iASL Compiler/Disassembler:
14001
14002Switch/Case support: A warning is now issued if the type of the Switch
14003value
14004cannot be determined at compile time. For example, Switch(Arg0) will
14005generate the warning, and the type is assumed to be an integer. As per
14006the
14007ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate
14008the
14009warning.
14010
14011Switch/Case support: Implemented support for buffer and string objects as
14012the switch value.  This is an ACPI 3.0 feature, now that LEqual supports
14013buffers and strings.
14014
14015Switch/Case support: The emitted code for the LEqual() comparisons now
14016uses
14017the switch value as the first operand, not the second. The case value is
14018now
14019the second operand, and this allows the case value to be implicitly
14020converted to the type of the switch value, not the other way around.
14021
14022Switch/Case support: Temporary variables are now emitted immediately
14023within
14024the control method, not at the global level. This means that there are
14025now
1402636 temps available per-method, not 36 temps per-module as was the case
14027with
14028the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)
14029
14030----------------------------------------
1403114 January 2005.  Summary of changes for version 20050114:
14032
14033Added 2005 copyright to all module headers.  This affects every module in
14034the core subsystem, iASL compiler, and the utilities.
14035
140361) ACPI CA Core Subsystem:
14037
14038Fixed an issue with the String-to-Buffer conversion code where the string
14039null terminator was not included in the buffer after conversion, but
14040there
14041is existing ASL that assumes the string null terminator is included. This
14042is
14043the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was
14044introduced in the previous version when the code was updated to correctly
14045set the converted buffer size as per the ACPI specification. The ACPI
14046spec
14047is ambiguous and will be updated to specify that the null terminator must
14048be
14049included in the converted buffer. This also affects the ToBuffer() ASL
14050operator.
14051
14052Fixed a problem with the Mid() ASL/AML operator where it did not work
14053correctly on Buffer objects. Newly created sub-buffers were not being
14054marked
14055as initialized.
14056
14057
14058Fixed a problem in AcpiTbFindTable where incorrect string compares were
14059performed on the OemId and OemTableId table header fields.  These fields
14060are
14061not null terminated, so strncmp is now used instead of strcmp.
14062
14063Implemented a restriction on the Store() ASL/AML operator to align the
14064behavior with the ACPI specification.  Previously, any object could be
14065used
14066as the source operand.  Now, the only objects that may be used are
14067Integers,
14068Buffers, Strings, Packages, Object References, and DDB Handles.  If
14069necessary, the original behavior can be restored by enabling the
14070EnableInterpreterSlack flag.
14071
14072Enhanced the optional "implicit return" support to allow an implicit
14073return
14074value from methods that are invoked externally via the AcpiEvaluateObject
14075interface.  This enables implicit returns from the _STA and _INI methods,
14076for example.
14077
14078Changed the Revision() ASL/AML operator to return the current version of
14079the
14080AML interpreter, in the YYYYMMDD format. Previously, it incorrectly
14081returned
14082the supported ACPI version (This is the function of the _REV method).
14083
14084Updated the _REV predefined method to return the currently supported
14085version
14086of ACPI, now 3.
14087
14088Implemented batch mode option for the AcpiExec utility (-b).
14089
14090Code and Data Size: Current and previous core subsystem library sizes are
14091shown below. These are the code and data sizes for the acpica.lib
14092produced
14093by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14094any ACPI driver or OSPM code. The debug version of the code includes the
14095debug output trace mechanism and has a much larger code and data size.
14096Note
14097that these values will vary depending on the efficiency of the compiler
14098and
14099the compiler options used during generation.
14100
14101  Previous Release:
14102    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14103    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14104  Current Release:
14105    Non-Debug Version:  78.4K Code,  11.5K Data,   89.9K Total
14106    Debug Version:     165.4K Code,  69.4K Data,  234.8K Total
14107
14108----------------------------------------
1410910 December 2004.  Summary of changes for version 20041210:
14110
14111ACPI 3.0 support is nearing completion in both the iASL compiler and the
14112ACPI CA core subsystem.
14113
141141) ACPI CA Core Subsystem:
14115
14116Fixed a problem in the ToDecimalString operator where the resulting
14117string
14118length was incorrectly calculated. The length is now calculated exactly,
14119eliminating incorrect AE_STRING_LIMIT exceptions.
14120
14121Fixed a problem in the ToHexString operator to allow a maximum 200
14122character
14123string to be produced.
14124
14125Fixed a problem in the internal string-to-buffer and buffer-to-buffer
14126copy
14127routine where the length of the resulting buffer was not truncated to the
14128new size (if the target buffer already existed).
14129
14130Code and Data Size: Current and previous core subsystem library sizes are
14131shown below. These are the code and data sizes for the acpica.lib
14132produced
14133by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14134any ACPI driver or OSPM code. The debug version of the code includes the
14135debug output trace mechanism and has a much larger code and data size.
14136Note
14137that these values will vary depending on the efficiency of the compiler
14138and
14139the compiler options used during generation.
14140
14141  Previous Release:
14142    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14143    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14144  Current Release:
14145    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14146    Debug Version:     165.3K Code,  69.4K Data,  234.7K Total
14147
14148
141492) iASL Compiler/Disassembler:
14150
14151Implemented the new ACPI 3.0 resource template macros - DWordSpace,
14152ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.
14153Includes support in the disassembler.
14154
14155Implemented support for the new (ACPI 3.0) parameter to the Register
14156macro,
14157AccessSize.
14158
14159Fixed a problem where the _HE resource name for the Interrupt macro was
14160referencing bit 0 instead of bit 1.
14161
14162Implemented check for maximum 255 interrupts in the Interrupt macro.
14163
14164Fixed a problem with the predefined resource descriptor names where
14165incorrect AML code was generated if the offset within the resource buffer
14166was 0 or 1.  The optimizer shortened the AML code to a single byte opcode
14167but did not update the surrounding package lengths.
14168
14169Changes to the Dma macro:  All channels within the channel list must be
14170in
14171the range 0-7.  Maximum 8 channels can be specified. BusMaster operand is
14172optional (default is BusMaster).
14173
14174Implemented check for maximum 7 data bytes for the VendorShort macro.
14175
14176The ReadWrite parameter is now optional for the Memory32 and similar
14177macros.
14178
14179----------------------------------------
1418003 December 2004.  Summary of changes for version 20041203:
14181
141821) ACPI CA Core Subsystem:
14183
14184The low-level field insertion/extraction code (exfldio) has been
14185completely
14186rewritten to eliminate unnecessary complexity, bugs, and boundary
14187conditions.
14188
14189Fixed a problem in the ToInteger, ToBuffer, ToHexString, and
14190ToDecimalString
14191operators where the input operand could be inadvertently deleted if no
14192conversion was necessary (e.g., if the input to ToInteger was an Integer
14193object.)
14194
14195Fixed a problem with the ToDecimalString and ToHexString where an
14196incorrect
14197exception code was returned if the resulting string would be > 200 chars.
14198AE_STRING_LIMIT is now returned.
14199
14200Fixed a problem with the Concatenate operator where AE_OK was always
14201returned, even if the operation failed.
14202
14203Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128
14204semaphores to be allocated.
14205
14206Code and Data Size: Current and previous core subsystem library sizes are
14207shown below. These are the code and data sizes for the acpica.lib
14208produced
14209by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14210any ACPI driver or OSPM code. The debug version of the code includes the
14211debug output trace mechanism and has a much larger code and data size.
14212Note
14213that these values will vary depending on the efficiency of the compiler
14214and
14215the compiler options used during generation.
14216
14217  Previous Release:
14218    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14219    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14220  Current Release:
14221    Non-Debug Version:  78.3K Code,  11.5K Data,   89.8K Total
14222    Debug Version:     164.7K Code,  68.5K Data,  233.2K Total
14223
14224
142252) iASL Compiler/Disassembler:
14226
14227Fixed typechecking for the ObjectType and SizeOf operators.  Problem was
14228recently introduced in 20041119.
14229
14230Fixed a problem with the ToUUID macro where the upper nybble of each
14231buffer
14232byte was inadvertently set to zero.
14233
14234----------------------------------------
1423519 November 2004.  Summary of changes for version 20041119:
14236
142371) ACPI CA Core Subsystem:
14238
14239Fixed a problem in the internal ConvertToInteger routine where new
14240integers
14241were not truncated to 32 bits for 32-bit ACPI tables. This routine
14242converts
14243buffers and strings to integers.
14244
14245Implemented support to store a value to an Index() on a String object.
14246This
14247is an ACPI 2.0 feature that had not yet been implemented.
14248
14249Implemented new behavior for storing objects to individual package
14250elements
14251(via the Index() operator). The previous behavior was to invoke the
14252implicit
14253conversion rules if an object was already present at the index.  The new
14254behavior is to simply delete any existing object and directly store the
14255new
14256object. Although the ACPI specification seems unclear on this subject,
14257other
14258ACPI implementations behave in this manner.  (This is the root of the
14259AE_BAD_HEX_CONSTANT issue.)
14260
14261Modified the RSDP memory scan mechanism to support the extended checksum
14262for
14263ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid
14264RSDP signature is found with a valid checksum.
14265
14266Code and Data Size: Current and previous core subsystem library sizes are
14267shown below. These are the code and data sizes for the acpica.lib
14268produced
14269by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14270any ACPI driver or OSPM code. The debug version of the code includes the
14271debug output trace mechanism and has a much larger code and data size.
14272Note
14273that these values will vary depending on the efficiency of the compiler
14274and
14275the compiler options used during generation.
14276
14277  Previous Release:
14278    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14279    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14280  Current Release:
14281    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14282    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14283
14284
142852) iASL Compiler/Disassembler:
14286
14287Fixed a missing semicolon in the aslcompiler.y file.
14288
14289----------------------------------------
1429005 November 2004.  Summary of changes for version 20041105:
14291
142921) ACPI CA Core Subsystem:
14293
14294Implemented support for FADT revision 2.  This was an interim table
14295(between
14296ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.
14297
14298Implemented optional support to allow uninitialized LocalX and ArgX
14299variables in a control method.  The variables are initialized to an
14300Integer
14301object with a value of zero.  This support is enabled by setting the
14302AcpiGbl_EnableInterpreterSlack flag to TRUE.
14303
14304Implemented support for Integer objects for the SizeOf operator.  Either
143054
14306or 8 is returned, depending on the current integer size (32-bit or 64-
14307bit,
14308depending on the parent table revision).
14309
14310Fixed a problem in the implementation of the SizeOf and ObjectType
14311operators
14312where the operand was resolved to a value too early, causing incorrect
14313return values for some objects.
14314
14315Fixed some possible memory leaks during exceptional conditions.
14316
14317Code and Data Size: Current and previous core subsystem library sizes are
14318shown below. These are the code and data sizes for the acpica.lib
14319produced
14320by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14321any ACPI driver or OSPM code. The debug version of the code includes the
14322debug output trace mechanism and has a much larger code and data size.
14323Note
14324that these values will vary depending on the efficiency of the compiler
14325and
14326the compiler options used during generation.
14327
14328  Previous Release:
14329    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14330    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14331  Current Release:
14332    Non-Debug Version:  78.5K Code,  11.5K Data,   90.0K Total
14333    Debug Version:     165.2K Code,  68.6K Data,  233.8K Total
14334
14335
143362) iASL Compiler/Disassembler:
14337
14338Implemented support for all ACPI 3.0 reserved names and methods.
14339
14340Implemented all ACPI 3.0 grammar elements in the front-end, including
14341support for semicolons.
14342
14343Implemented the ACPI 3.0 Function() and ToUUID() macros
14344
14345Fixed a problem in the disassembler where a Scope() operator would not be
14346emitted properly if the target of the scope was in another table.
14347
14348----------------------------------------
1434915 October 2004.  Summary of changes for version 20041015:
14350
14351Note:  ACPI CA is currently undergoing an in-depth and complete formal
14352evaluation to test/verify the following areas. Other suggestions are
14353welcome. This will result in an increase in the frequency of releases and
14354the number of bug fixes in the next few months.
14355  - Functional tests for all ASL/AML operators
14356  - All implicit/explicit type conversions
14357  - Bit fields and operation regions
14358  - 64-bit math support and 32-bit-only "truncated" math support
14359  - Exceptional conditions, both compiler and interpreter
14360  - Dynamic object deletion and memory leaks
14361  - ACPI 3.0 support when implemented
14362  - External interfaces to the ACPI subsystem
14363
14364
143651) ACPI CA Core Subsystem:
14366
14367Fixed two alignment issues on 64-bit platforms - within debug statements
14368in
14369AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the
14370Address
14371field within the non-aligned ACPI generic address structure.
14372
14373Fixed a problem in the Increment and Decrement operators where incorrect
14374operand resolution could result in the inadvertent modification of the
14375original integer when the integer is passed into another method as an
14376argument and the arg is then incremented/decremented.
14377
14378Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-
14379bit
14380BCD number were truncated during conversion.
14381
14382Fixed a problem in the ToDecimal operator where the length of the
14383resulting
14384string could be set incorrectly too long if the input operand was a
14385Buffer
14386object.
14387
14388Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte
14389(0)
14390within a buffer would prematurely terminate a compare between buffer
14391objects.
14392
14393Added a check for string overflow (>200 characters as per the ACPI
14394specification) during the Concatenate operator with two string operands.
14395
14396Code and Data Size: Current and previous core subsystem library sizes are
14397shown below. These are the code and data sizes for the acpica.lib
14398produced
14399by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14400any ACPI driver or OSPM code. The debug version of the code includes the
14401debug output trace mechanism and has a much larger code and data size.
14402Note
14403that these values will vary depending on the efficiency of the compiler
14404and
14405the compiler options used during generation.
14406
14407  Previous Release:
14408    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14409    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14410  Current Release:
14411    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14412    Debug Version:     164.8K Code,  68.6K Data,  233.4K Total
14413
14414
14415
144162) iASL Compiler/Disassembler:
14417
14418Allow the use of the ObjectType operator on uninitialized Locals and Args
14419(returns 0 as per the ACPI specification).
14420
14421Fixed a problem where the compiler would fault if there was a syntax
14422error
14423in the FieldName of all of the various CreateXXXField operators.
14424
14425Disallow the use of lower case letters within the EISAID macro, as per
14426the
14427ACPI specification.  All EISAID strings must be of the form "UUUNNNN"
14428Where
14429U is an uppercase letter and N is a hex digit.
14430
14431
14432----------------------------------------
1443306 October 2004.  Summary of changes for version 20041006:
14434
144351) ACPI CA Core Subsystem:
14436
14437Implemented support for the ACPI 3.0 Timer operator. This ASL function
14438implements a 64-bit timer with 100 nanosecond granularity.
14439
14440Defined a new OSL interface, AcpiOsGetTimer. This interface is used to
14441implement the ACPI 3.0 Timer operator.  This allows the host OS to
14442implement
14443the timer with the best clock available. Also, it keeps the core
14444subsystem
14445out of the clock handling business, since the host OS (usually) performs
14446this function.
14447
14448Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)
14449functions use a 64-bit address which is part of the packed ACPI Generic
14450Address Structure. Since the structure is non-aligned, the alignment
14451macros
14452are now used to extract the address to a local variable before use.
14453
14454Fixed a problem where the ToInteger operator assumed all input strings
14455were
14456hexadecimal. The operator now handles both decimal strings and hex
14457strings
14458(prefixed with "0x").
14459
14460Fixed a problem where the string length in the string object created as a
14461result of the internal ConvertToString procedure could be incorrect. This
14462potentially affected all implicit conversions and also the
14463ToDecimalString
14464and ToHexString operators.
14465
14466Fixed two problems in the ToString operator. If the length parameter was
14467zero, an incorrect string object was created and the value of the input
14468length parameter was inadvertently changed from zero to Ones.
14469
14470Fixed a problem where the optional ResourceSource string in the
14471ExtendedIRQ
14472resource macro was ignored.
14473
14474Simplified the interfaces to the internal division functions, reducing
14475code
14476size and complexity.
14477
14478Code and Data Size: Current and previous core subsystem library sizes are
14479shown below. These are the code and data sizes for the acpica.lib
14480produced
14481by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14482any ACPI driver or OSPM code. The debug version of the code includes the
14483debug output trace mechanism and has a much larger code and data size.
14484Note
14485that these values will vary depending on the efficiency of the compiler
14486and
14487the compiler options used during generation.
14488
14489  Previous Release:
14490    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14491    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14492  Current Release:
14493    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14494    Debug Version:     164.6K Code,  68.5K Data,  233.1K Total
14495
14496
144972) iASL Compiler/Disassembler:
14498
14499Implemented support for the ACPI 3.0 Timer operator.
14500
14501Fixed a problem where the Default() operator was inadvertently ignored in
14502a
14503Switch/Case block.  This was a problem in the translation of the Switch
14504statement to If...Else pairs.
14505
14506Added support to allow a standalone Return operator, with no parentheses
14507(or
14508operands).
14509
14510Fixed a problem with code generation for the ElseIf operator where the
14511translated Else...If parse tree was improperly constructed leading to the
14512loss of some code.
14513
14514----------------------------------------
1451522 September 2004.  Summary of changes for version 20040922:
14516
145171) ACPI CA Core Subsystem:
14518
14519Fixed a problem with the implementation of the LNot() operator where
14520"Ones"
14521was not returned for the TRUE case. Changed the code to return Ones
14522instead
14523of (!Arg) which was usually 1. This change affects iASL constant folding
14524for
14525this operator also.
14526
14527Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was
14528not
14529initialized properly -- Now zero the entire buffer in this case where the
14530buffer already exists.
14531
14532Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32
14533Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all
14534related code considerably. This will require changes/updates to all OS
14535interface layers (OSLs.)
14536
14537Implemented a new external interface, AcpiInstallExceptionHandler, to
14538allow
14539a system exception handler to be installed. This handler is invoked upon
14540any
14541run-time exception that occurs during control method execution.
14542
14543Added support for the DSDT in AcpiTbFindTable. This allows the
14544DataTableRegion() operator to access the local copy of the DSDT.
14545
14546Code and Data Size: Current and previous core subsystem library sizes are
14547shown below. These are the code and data sizes for the acpica.lib
14548produced
14549by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14550any ACPI driver or OSPM code. The debug version of the code includes the
14551debug output trace mechanism and has a much larger code and data size.
14552Note
14553that these values will vary depending on the efficiency of the compiler
14554and
14555the compiler options used during generation.
14556
14557  Previous Release:
14558    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14559    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14560  Current Release:
14561    Non-Debug Version:  77.9K Code,  11.4K Data,   89.3K Total
14562    Debug Version:     164.5K Code,  68.3K Data,  232.8K Total
14563
14564
145652) iASL Compiler/Disassembler:
14566
14567Fixed a problem with constant folding and the LNot operator. LNot was
14568returning 1 in the TRUE case, not Ones as per the ACPI specification.
14569This
14570could result in the generation of an incorrect folded/reduced constant.
14571
14572End-Of-File is now allowed within a "//"-style comment.  A parse error no
14573longer occurs if such a comment is at the very end of the input ASL
14574source
14575file.
14576
14577Implemented the "-r" option to override the Revision in the table header.
14578The initial use of this option will be to simplify the evaluation of the
14579AML
14580interpreter by allowing a single ASL source module to be compiled for
14581either
1458232-bit or 64-bit integers.
14583
14584
14585----------------------------------------
1458627 August 2004.  Summary of changes for version 20040827:
14587
145881) ACPI CA Core Subsystem:
14589
14590- Implemented support for implicit object conversion in the non-numeric
14591logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,
14592and
14593LNotEqual.)  Any combination of Integers/Strings/Buffers may now be used;
14594the second operand is implicitly converted on the fly to match the type
14595of
14596the first operand.  For example:
14597
14598    LEqual (Source1, Source2)
14599
14600Source1 and Source2 must each evaluate to an integer, a string, or a
14601buffer.
14602The data type of Source1 dictates the required type of Source2. Source2
14603is
14604implicitly converted if necessary to match the type of Source1.
14605
14606- Updated and corrected the behavior of the string conversion support.
14607The
14608rules concerning conversion of buffers to strings (according to the ACPI
14609specification) are as follows:
14610
14611ToDecimalString - explicit byte-wise conversion of buffer to string of
14612decimal values (0-255) separated by commas. ToHexString - explicit byte-
14613wise
14614conversion of buffer to string of hex values (0-FF) separated by commas.
14615ToString - explicit byte-wise conversion of buffer to string.  Byte-by-
14616byte
14617copy with no transform except NULL terminated. Any other implicit buffer-
14618to-
14619string conversion - byte-wise conversion of buffer to string of hex
14620values
14621(0-FF) separated by spaces.
14622
14623- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.
14624
14625- Fixed a problem in AcpiNsGetPathnameLength where the returned length
14626was
14627one byte too short in the case of a node in the root scope.  This could
14628cause a fault during debug output.
14629
14630- Code and Data Size: Current and previous core subsystem library sizes
14631are
14632shown below.  These are the code and data sizes for the acpica.lib
14633produced
14634by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14635any ACPI driver or OSPM code.  The debug version of the code includes the
14636debug output trace mechanism and has a much larger code and data size.
14637Note
14638that these values will vary depending on the efficiency of the compiler
14639and
14640the compiler options used during generation.
14641
14642  Previous Release:
14643    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14644    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14645  Current Release:
14646    Non-Debug Version:  77.8K Code,  11.4K Data,   89.2K Total
14647    Debug Version:     164.2K Code,  68.2K Data,  232.4K Total
14648
14649
146502) iASL Compiler/Disassembler:
14651
14652- Fixed a Linux generation error.
14653
14654
14655----------------------------------------
1465616 August 2004.  Summary of changes for version 20040816:
14657
146581) ACPI CA Core Subsystem:
14659
14660Designed and implemented support within the AML interpreter for the so-
14661called "implicit return".  This support returns the result of the last
14662ASL
14663operation within a control method, in the absence of an explicit Return()
14664operator.  A few machines depend on this behavior, even though it is not
14665explicitly supported by the ASL language.  It is optional support that
14666can
14667be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.
14668
14669Removed support for the PCI_Config address space from the internal low
14670level
14671hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite).  This
14672support was not used internally, and would not work correctly anyway
14673because
14674the PCI bus number and segment number were not supported.  There are
14675separate interfaces for PCI configuration space access because of the
14676unique
14677interface.
14678
14679Code and Data Size: Current and previous core subsystem library sizes are
14680shown below.  These are the code and data sizes for the acpica.lib
14681produced
14682by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14683any ACPI driver or OSPM code.  The debug version of the code includes the
14684debug output trace mechanism and has a much larger code and data size.
14685Note
14686that these values will vary depending on the efficiency of the compiler
14687and
14688the compiler options used during generation.
14689
14690  Previous Release:
14691    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14692    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14693  Current Release:
14694    Non-Debug Version:  77.9K Code,  11.5K Data,   89.4K Total
14695    Debug Version:     164.1K Code,  68.3K Data,  232.4K Total
14696
14697
146982) iASL Compiler/Disassembler:
14699
14700Fixed a problem where constants in ASL expressions at the root level (not
14701within a control method) could be inadvertently truncated during code
14702generation.  This problem was introduced in the 20040715 release.
14703
14704
14705----------------------------------------
1470615 July 2004.  Summary of changes for version 20040715:
14707
147081) ACPI CA Core Subsystem:
14709
14710Restructured the internal HW GPE interfaces to pass/track the current
14711state
14712of interrupts (enabled/disabled) in order to avoid possible deadlock and
14713increase flexibility of the interfaces.
14714
14715Implemented a "lexicographical compare" for String and Buffer objects
14716within
14717the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -
14718-
14719as per further clarification to the ACPI specification.  Behavior is
14720similar
14721to C library "strcmp".
14722
14723Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable
14724external function.  In the 32-bit non-debug case, the stack use has been
14725reduced from 168 bytes to 32 bytes.
14726
14727Deployed a new run-time configuration flag,
14728AcpiGbl_EnableInterpreterSlack,
14729whose purpose is to allow the AML interpreter to forgive certain bad AML
14730constructs.  Default setting is FALSE.
14731
14732Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field
14733IO
14734support code.  If enabled, it allows field access to go beyond the end of
14735a
14736region definition if the field is within the region length rounded up to
14737the
14738next access width boundary (a common coding error.)
14739
14740Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to
14741ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols.  Also,
14742these
14743symbols are lowercase by the latest version of the AcpiSrc tool.
14744
14745The prototypes for the PCI interfaces in acpiosxf.h have been updated to
14746rename "Register" to simply "Reg" to prevent certain compilers from
14747complaining.
14748
14749Code and Data Size: Current and previous core subsystem library sizes are
14750shown below.  These are the code and data sizes for the acpica.lib
14751produced
14752by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14753any ACPI driver or OSPM code.  The debug version of the code includes the
14754debug output trace mechanism and has a much larger code and data size.
14755Note
14756that these values will vary depending on the efficiency of the compiler
14757and
14758the compiler options used during generation.
14759
14760  Previous Release:
14761    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14762    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14763  Current Release:
14764    Non-Debug Version:  78.0K Code,  11.5K Data,   89.5K Total
14765    Debug Version:     164.1K Code,  68.2K Data,  232.3K Total
14766
14767
147682) iASL Compiler/Disassembler:
14769
14770Implemented full support for Package objects within the Case() operator.
14771Note: The Break() operator is currently not supported within Case blocks
14772(TermLists) as there is some question about backward compatibility with
14773ACPI
147741.0 interpreters.
14775
14776
14777Fixed a problem where complex terms were not supported properly within
14778the
14779Switch() operator.
14780
14781Eliminated extraneous warning for compiler-emitted reserved names of the
14782form "_T_x".  (Used in Switch/Case operators.)
14783
14784Eliminated optimization messages for "_T_x" objects and small constants
14785within the DefinitionBlock operator.
14786
14787
14788----------------------------------------
1478915 June 2004.  Summary of changes for version 20040615:
14790
147911) ACPI CA Core Subsystem:
14792
14793Implemented support for Buffer and String objects (as per ACPI 2.0) for
14794the
14795following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
14796LLessEqual.
14797
14798All directory names in the entire source package are lower case, as they
14799were in earlier releases.
14800
14801Implemented "Disassemble" command in the AML debugger that will
14802disassemble
14803a single control method.
14804
14805Code and Data Size: Current and previous core subsystem library sizes are
14806shown below.  These are the code and data sizes for the acpica.lib
14807produced
14808by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14809any ACPI driver or OSPM code.  The debug version of the code includes the
14810debug output trace mechanism and has a much larger code and data size.
14811Note
14812that these values will vary depending on the efficiency of the compiler
14813and
14814the compiler options used during generation.
14815
14816  Previous Release:
14817    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
14818    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
14819
14820  Current Release:
14821    Non-Debug Version:  77.8K Code,  11.5K Data,   89.3K Total
14822    Debug Version:     163.8K Code,  68.2K Data,  232.0K Total
14823
14824
148252) iASL Compiler/Disassembler:
14826
14827Implemented support for Buffer and String objects (as per ACPI 2.0) for
14828the
14829following ASL operators:  LEqual, LGreater, LLess, LGreaterEqual, and
14830LLessEqual.
14831
14832All directory names in the entire source package are lower case, as they
14833were in earlier releases.
14834
14835Fixed a fault when using the -g or -d<nofilename> options if the FADT was
14836not found.
14837
14838Fixed an issue with the Windows version of the compiler where later
14839versions
14840of Windows place the FADT in the registry under the name "FADT" and not
14841"FACP" as earlier versions did.  This applies when using the -g or -
14842d<nofilename> options.  The compiler now looks for both strings as
14843necessary.
14844
14845Fixed a problem with compiler namepath optimization where a namepath
14846within
14847the Scope() operator could not be optimized if the namepath was a subpath
14848of
14849the current scope path.
14850
14851----------------------------------------
1485227 May 2004.  Summary of changes for version 20040527:
14853
148541) ACPI CA Core Subsystem:
14855
14856Completed a new design and implementation for EBDA (Extended BIOS Data
14857Area)
14858support in the RSDP scan code.  The original code improperly scanned for
14859the
14860EBDA by simply scanning from memory location 0 to 0x400.  The correct
14861method
14862is to first obtain the EBDA pointer from within the BIOS data area, then
14863scan 1K of memory starting at the EBDA pointer.  There appear to be few
14864if
14865any machines that place the RSDP in the EBDA, however.
14866
14867Integrated a fix for a possible fault during evaluation of BufferField
14868arguments.  Obsolete code that was causing the problem was removed.
14869
14870Found and fixed a problem in the Field Support Code where data could be
14871corrupted on a bit field read that starts on an aligned boundary but does
14872not end on an aligned boundary.  Merged the read/write "datum length"
14873calculation code into a common procedure.
14874
14875Rolled in a couple of changes to the FreeBSD-specific header.
14876
14877
14878Code and Data Size: Current and previous core subsystem library sizes are
14879shown below.  These are the code and data sizes for the acpica.lib
14880produced
14881by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14882any ACPI driver or OSPM code.  The debug version of the code includes the
14883debug output trace mechanism and has a much larger code and data size.
14884Note
14885that these values will vary depending on the efficiency of the compiler
14886and
14887the compiler options used during generation.
14888
14889  Previous Release:
14890    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14891    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
14892  Current Release:
14893    Non-Debug Version:  77.7K Code,  11.5K Data,   89.2K Total
14894    Debug Version:     163.3K Code,  67.2K Data,  230.5K Total
14895
14896
148972) iASL Compiler/Disassembler:
14898
14899Fixed a generation warning produced by some overly-verbose compilers for
14900a
1490164-bit constant.
14902
14903----------------------------------------
1490414 May 2004.  Summary of changes for version 20040514:
14905
149061) ACPI CA Core Subsystem:
14907
14908Fixed a problem where hardware GPE enable bits sometimes not set properly
14909during and after GPE method execution.  Result of 04/27 changes.
14910
14911Removed extra "clear all GPEs" when sleeping/waking.
14912
14913Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single
14914AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above
14915to
14916the new AcpiEv* calls as appropriate.
14917
14918ACPI_OS_NAME was removed from the OS-specific headers.  The default name
14919is
14920now "Microsoft Windows NT" for maximum compatibility.  However this can
14921be
14922changed by modifying the acconfig.h file.
14923
14924Allow a single invocation of AcpiInstallNotifyHandler for a handler that
14925traps both types of notifies (System, Device).  Use ACPI_ALL_NOTIFY flag.
14926
14927Run _INI methods on ThermalZone objects.  This is against the ACPI
14928specification, but there is apparently ASL code in the field that has
14929these
14930_INI methods, and apparently "other" AML interpreters execute them.
14931
14932Performed a full 16/32/64 bit lint that resulted in some small changes.
14933
14934Added a sleep simulation command to the AML debugger to test sleep code.
14935
14936Code and Data Size: Current and previous core subsystem library sizes are
14937shown below.  These are the code and data sizes for the acpica.lib
14938produced
14939by the Microsoft Visual C++ 6.0 compiler, and these values do not include
14940any ACPI driver or OSPM code.  The debug version of the code includes the
14941debug output trace mechanism and has a much larger code and data size.
14942Note
14943that these values will vary depending on the efficiency of the compiler
14944and
14945the compiler options used during generation.
14946
14947  Previous Release:
14948    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14949    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
14950  Current Release:
14951    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
14952    Debug Version:     163.2K Code,  67.2K Data,  230.4K Total
14953
14954----------------------------------------
1495527 April 2004.  Summary of changes for version 20040427:
14956
149571) ACPI CA Core Subsystem:
14958
14959Completed a major overhaul of the GPE handling within ACPI CA.  There are
14960now three types of GPEs:  wake-only, runtime-only, and combination
14961wake/run.
14962The only GPEs allowed to be combination wake/run are for button-style
14963devices such as a control-method power button, control-method sleep
14964button,
14965or a notebook lid switch.  GPEs that have an _Lxx or _Exx method and are
14966not
14967referenced by any _PRW methods are marked for "runtime" and hardware
14968enabled.  Any GPE that is referenced by a _PRW method is marked for
14969"wake"
14970(and disabled at runtime).  However, at sleep time, only those GPEs that
14971have been specifically enabled for wake via the AcpiEnableGpe interface
14972will
14973actually be hardware enabled.
14974
14975A new external interface has been added, AcpiSetGpeType(), that is meant
14976to
14977be used by device drivers to force a GPE to a particular type.  It will
14978be
14979especially useful for the drivers for the button devices mentioned above.
14980
14981Completed restructuring of the ACPI CA initialization sequence so that
14982default operation region handlers are installed before GPEs are
14983initialized
14984and the _PRW methods are executed.  This will prevent errors when the
14985_PRW
14986methods attempt to access system memory or I/O space.
14987
14988GPE enable/disable no longer reads the GPE enable register.  We now keep
14989the
14990enable info for runtime and wake separate and in the GPE_EVENT_INFO.  We
14991thus no longer depend on the hardware to maintain these bits.
14992
14993Always clear the wake status and fixed/GPE status bits before sleep, even
14994for state S5.
14995
14996Improved the AML debugger output for displaying the GPE blocks and their
14997current status.
14998
14999Added new strings for the _OSI method, of the form "Windows 2001 SPx"
15000where
15001x = 0,1,2,3,4.
15002
15003Fixed a problem where the physical address was incorrectly calculated
15004when
15005the Load() operator was used to directly load from an Operation Region
15006(vs.
15007loading from a Field object.)  Also added check for minimum table length
15008for
15009this case.
15010
15011Fix for multiple mutex acquisition.  Restore original thread SyncLevel on
15012mutex release.
15013
15014Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for
15015consistency with the other fields returned.
15016
15017Shrunk the ACPI_GPE_EVENT_INFO structure by 40%.  There is one such
15018structure for each GPE in the system, so the size of this structure is
15019important.
15020
15021CPU stack requirement reduction:  Cleaned up the method execution and
15022object
15023evaluation paths so that now a parameter structure is passed, instead of
15024copying the various method parameters over and over again.
15025
15026In evregion.c:  Correctly exit and reenter the interpreter region if and
15027only if dispatching an operation region request to a user-installed
15028handler.
15029Do not exit/reenter when dispatching to a default handler (e.g., default
15030system memory or I/O handlers)
15031
15032
15033Notes for updating drivers for the new GPE support.  The following
15034changes
15035must be made to ACPI-related device drivers that are attached to one or
15036more
15037GPEs: (This information will be added to the ACPI CA Programmer
15038Reference.)
15039
150401) AcpiInstallGpeHandler no longer automatically enables the GPE, you
15041must
15042explicitly call AcpiEnableGpe.
150432) There is a new interface called AcpiSetGpeType. This should be called
15044before enabling the GPE.  Also, this interface will automatically disable
15045the GPE if it is currently enabled.
150463) AcpiEnableGpe no longer supports a GPE type flag.
15047
15048Specific drivers that must be changed:
150491) EC driver:
15050    AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,
15051AeGpeHandler, NULL);
15052    AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);
15053    AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);
15054
150552) Button Drivers (Power, Lid, Sleep):
15056Run _PRW method under parent device
15057If _PRW exists: /* This is a control-method button */
15058    Extract GPE number and possibly GpeDevice
15059    AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);
15060    AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);
15061
15062For all other devices that have _PRWs, we automatically set the GPE type
15063to
15064ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.
15065This
15066must be done on a selective basis, usually requiring some kind of user
15067app
15068to allow the user to pick the wake devices.
15069
15070
15071Code and Data Size: Current and previous core subsystem library sizes are
15072shown below.  These are the code and data sizes for the acpica.lib
15073produced
15074by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15075any ACPI driver or OSPM code.  The debug version of the code includes the
15076debug output trace mechanism and has a much larger code and data size.
15077Note
15078that these values will vary depending on the efficiency of the compiler
15079and
15080the compiler options used during generation.
15081
15082  Previous Release:
15083    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15084    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15085  Current Release:
15086
15087    Non-Debug Version:  77.6K Code,  11.5K Data,   89.1K Total
15088    Debug Version:     162.9K Code,  67.0K Data,  229.9K Total
15089
15090
15091
15092----------------------------------------
1509302 April 2004.  Summary of changes for version 20040402:
15094
150951) ACPI CA Core Subsystem:
15096
15097Fixed an interpreter problem where an indirect store through an ArgX
15098parameter was incorrectly applying the "implicit conversion rules" during
15099the store.  From the ACPI specification: "If the target is a method local
15100or
15101argument (LocalX or ArgX), no conversion is performed and the result is
15102stored directly to the target".  The new behavior is to disable implicit
15103conversion during ALL stores to an ArgX.
15104
15105Changed the behavior of the _PRW method scan to ignore any and all errors
15106returned by a given _PRW.  This prevents the scan from aborting from the
15107failure of any single _PRW.
15108
15109Moved the runtime configuration parameters from the global init procedure
15110to
15111static variables in acglobal.h.  This will allow the host to override the
15112default values easily.
15113
15114Code and Data Size: Current and previous core subsystem library sizes are
15115shown below.  These are the code and data sizes for the acpica.lib
15116produced
15117by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15118any ACPI driver or OSPM code.  The debug version of the code includes the
15119debug output trace mechanism and has a much larger code and data size.
15120Note
15121that these values will vary depending on the efficiency of the compiler
15122and
15123the compiler options used during generation.
15124
15125  Previous Release:
15126    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15127    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15128  Current Release:
15129    Non-Debug Version:  77.0K Code,  11.4K Data,   88.4K Total
15130    Debug Version:     161.0K Code,  66.3K Data,  227.3K Total
15131
15132
151332) iASL Compiler/Disassembler:
15134
15135iASL now fully disassembles SSDTs.  However, External() statements are
15136not
15137generated automatically for unresolved symbols at this time.  This is a
15138planned feature for future implementation.
15139
15140Fixed a scoping problem in the disassembler that occurs when the type of
15141the
15142target of a Scope() operator is overridden.  This problem caused an
15143incorrectly nested internal namespace to be constructed.
15144
15145Any warnings or errors that are emitted during disassembly are now
15146commented
15147out automatically so that the resulting file can be recompiled without
15148any
15149hand editing.
15150
15151----------------------------------------
1515226 March 2004.  Summary of changes for version 20040326:
15153
151541) ACPI CA Core Subsystem:
15155
15156Implemented support for "wake" GPEs via interaction between GPEs and the
15157_PRW methods.  Every GPE that is pointed to by one or more _PRWs is
15158identified as a WAKE GPE and by default will no longer be enabled at
15159runtime.  Previously, we were blindly enabling all GPEs with a
15160corresponding
15161_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.
15162We
15163believe this has been the cause of thousands of "spurious" GPEs on some
15164systems.
15165
15166This new GPE behavior is can be reverted to the original behavior (enable
15167ALL GPEs at runtime) via a runtime flag.
15168
15169Fixed a problem where aliased control methods could not access objects
15170properly.  The proper scope within the namespace was not initialized
15171(transferred to the target of the aliased method) before executing the
15172target method.
15173
15174Fixed a potential race condition on internal object deletion on the
15175return
15176object in AcpiEvaluateObject.
15177
15178Integrated a fix for resource descriptors where both _MEM and _MTP were
15179being extracted instead of just _MEM.  (i.e. bitmask was incorrectly too
15180wide, 0x0F instead of 0x03.)
15181
15182Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,
15183preventing
15184a
15185fault in some cases.
15186
15187Updated Notify() values for debug statements in evmisc.c
15188
15189Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.
15190
15191Code and Data Size: Current and previous core subsystem library sizes are
15192shown below.  These are the code and data sizes for the acpica.lib
15193produced
15194by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15195any ACPI driver or OSPM code.  The debug version of the code includes the
15196debug output trace mechanism and has a much larger code and data size.
15197Note
15198that these values will vary depending on the efficiency of the compiler
15199and
15200the compiler options used during generation.
15201
15202  Previous Release:
15203
15204    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15205    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15206  Current Release:
15207    Non-Debug Version:  76.9K Code,  11.4K Data,   88.3K Total
15208    Debug Version:     160.8K Code,  66.1K Data,  226.9K Total
15209
15210----------------------------------------
1521111 March 2004.  Summary of changes for version 20040311:
15212
152131) ACPI CA Core Subsystem:
15214
15215Fixed a problem where errors occurring during the parse phase of control
15216method execution did not abort cleanly.  For example, objects created and
15217installed in the namespace were not deleted.  This caused all subsequent
15218invocations of the method to return the AE_ALREADY_EXISTS exception.
15219
15220Implemented a mechanism to force a control method to "Serialized"
15221execution
15222if the method attempts to create namespace objects. (The root of the
15223AE_ALREADY_EXISTS problem.)
15224
15225Implemented support for the predefined _OSI "internal" control method.
15226Initial supported strings are "Linux", "Windows 2000", "Windows 2001",
15227and
15228"Windows 2001.1", and can be easily upgraded for new strings as
15229necessary.
15230This feature will allow "other" operating systems to execute the fully
15231tested, "Windows" code path through the ASL code
15232
15233Global Lock Support:  Now allows multiple acquires and releases with any
15234internal thread.  Removed concept of "owning thread" for this special
15235mutex.
15236
15237Fixed two functions that were inappropriately declaring large objects on
15238the
15239CPU stack:  PsParseLoop, NsEvaluateRelative.  Reduces the stack usage
15240during
15241method execution considerably.
15242
15243Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the
15244S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.
15245
15246Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs
15247defined on the machine.
15248
15249Implemented two runtime options:  One to force all control method
15250execution
15251to "Serialized" to mimic Windows behavior, another to disable _OSI
15252support
15253if it causes problems on a given machine.
15254
15255Code and Data Size: Current and previous core subsystem library sizes are
15256shown below.  These are the code and data sizes for the acpica.lib
15257produced
15258by the Microsoft Visual C++ 6.0 compiler, and these values do not include
15259any ACPI driver or OSPM code.  The debug version of the code includes the
15260debug output trace mechanism and has a much larger code and data size.
15261Note
15262that these values will vary depending on the efficiency of the compiler
15263and
15264the compiler options used during generation.
15265
15266  Previous Release:
15267    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15268    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15269  Current Release:
15270    Non-Debug Version:  76.5K Code,  11.3K Data,   87.8K Total
15271    Debug Version:     160.3K Code,  66.0K Data,  226.3K Total
15272
152732) iASL Compiler/Disassembler:
15274
15275Fixed an array size problem for FreeBSD that would cause the compiler to
15276fault.
15277
15278----------------------------------------
1527920 February 2004.  Summary of changes for version 20040220:
15280
15281
152821) ACPI CA Core Subsystem:
15283
15284Implemented execution of _SxD methods for Device objects in the
15285GetObjectInfo interface.
15286
15287Fixed calls to _SST method to pass the correct arguments.
15288
15289Added a call to _SST on wake to restore to "working" state.
15290
15291Check for End-Of-Buffer failure case in the WalkResources interface.
15292
15293Integrated fix for 64-bit alignment issue in acglobal.h by moving two
15294structures to the beginning of the file.
15295
15296After wake, clear GPE status register(s) before enabling GPEs.
15297
15298After wake, clear/enable power button.  (Perhaps we should clear/enable
15299all
15300fixed events upon wake.)
15301
15302Fixed a couple of possible memory leaks in the Namespace manager.
15303
15304Integrated latest acnetbsd.h file.
15305
15306----------------------------------------
1530711 February 2004.  Summary of changes for version 20040211:
15308
15309
153101) ACPI CA Core Subsystem:
15311
15312Completed investigation and implementation of the call-by-reference
15313mechanism for control method arguments.
15314
15315Fixed a problem where a store of an object into an indexed package could
15316fail if the store occurs within a different method than the method that
15317created the package.
15318
15319Fixed a problem where the ToDecimal operator could return incorrect
15320results.
15321
15322Fixed a problem where the CopyObject operator could fail on some of the
15323more
15324obscure objects (e.g., Reference objects.)
15325
15326Improved the output of the Debug object to display buffer, package, and
15327index objects.
15328
15329Fixed a problem where constructs of the form "RefOf (ArgX)" did not
15330return
15331the expected result.
15332
15333Added permanent ACPI_REPORT_ERROR macros for all instances of the
15334ACPI_AML_INTERNAL exception.
15335
15336Integrated latest version of acfreebsd.h
15337
15338----------------------------------------
1533916 January 2004.  Summary of changes for version 20040116:
15340
15341The purpose of this release is primarily to update the copyright years in
15342each module, thus causing a huge number of diffs.  There are a few small
15343functional changes, however.
15344
153451) ACPI CA Core Subsystem:
15346
15347Improved error messages when there is a problem finding one or more of
15348the
15349required base ACPI tables
15350
15351Reintroduced the definition of APIC_HEADER in actbl.h
15352
15353Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)
15354
15355Removed extraneous reference to NewObj in dsmthdat.c
15356
153572) iASL compiler
15358
15359Fixed a problem introduced in December that disabled the correct
15360disassembly
15361of Resource Templates
15362
15363
15364----------------------------------------
1536503 December 2003.  Summary of changes for version 20031203:
15366
153671) ACPI CA Core Subsystem:
15368
15369Changed the initialization of Operation Regions during subsystem
15370init to perform two entire walks of the ACPI namespace; The first
15371to initialize the regions themselves, the second to execute the
15372_REG methods.  This fixed some interdependencies across _REG
15373methods found on some machines.
15374
15375Fixed a problem where a Store(Local0, Local1) could simply update
15376the object reference count, and not create a new copy of the
15377object if the Local1 is uninitialized.
15378
15379Implemented support for the _SST reserved method during sleep
15380transitions.
15381
15382Implemented support to clear the SLP_TYP and SLP_EN bits when
15383waking up, this is apparently required by some machines.
15384
15385When sleeping, clear the wake status only if SleepState is not S5.
15386
15387Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect
15388pointer arithmetic advanced a string pointer too far.
15389
15390Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer
15391could be returned if the requested table has not been loaded.
15392
15393Within the support for IRQ resources, restructured the handling of
15394the active and edge/level bits.
15395
15396Fixed a few problems in AcpiPsxExecute() where memory could be
15397leaked under certain error conditions.
15398
15399Improved error messages for the cases where the ACPI mode could
15400not be entered.
15401
15402Code and Data Size: Current and previous core subsystem library
15403sizes are shown below.  These are the code and data sizes for the
15404acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15405these values do not include any ACPI driver or OSPM code.  The
15406debug version of the code includes the debug output trace
15407mechanism and has a much larger code and data size.  Note that
15408these values will vary depending on the efficiency of the compiler
15409and the compiler options used during generation.
15410
15411  Previous Release (20031029):
15412    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15413    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15414  Current Release:
15415    Non-Debug Version:  74.8K Code,  10.1K Data,   84.9K Total
15416    Debug Version:     158.7K Code,  65.1K Data,  223.8K Total
15417
154182) iASL Compiler/Disassembler:
15419
15420Implemented a fix for the iASL disassembler where a bad index was
15421generated.  This was most noticeable on 64-bit platforms
15422
15423
15424----------------------------------------
1542529 October 2003.  Summary of changes for version 20031029:
15426
154271) ACPI CA Core Subsystem:
15428
15429
15430Fixed a problem where a level-triggered GPE with an associated
15431_Lxx control method was incorrectly cleared twice.
15432
15433Fixed a problem with the Field support code where an access can
15434occur beyond the end-of-region if the field is non-aligned but
15435extends to the very end of the parent region (resulted in an
15436AE_AML_REGION_LIMIT exception.)
15437
15438Fixed a problem with ACPI Fixed Events where an RT Clock handler
15439would not get invoked on an RTC event.  The RTC event bitmasks for
15440the PM1 registers were not being initialized properly.
15441
15442Implemented support for executing _STA and _INI methods for
15443Processor objects.  Although this is currently not part of the
15444ACPI specification, there is existing ASL code that depends on the
15445init-time execution of these methods.
15446
15447Implemented and deployed a GetDescriptorName function to decode
15448the various types of internal descriptors.  Guards against null
15449descriptors during debug output also.
15450
15451Implemented and deployed a GetNodeName function to extract the 4-
15452character namespace node name.  This function simplifies the debug
15453and error output, as well as guarding against null pointers during
15454output.
15455
15456Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to
15457simplify the debug and error output of 64-bit integers.  This
15458macro replaces the HIDWORD and LODWORD macros for dumping these
15459integers.
15460
15461Updated the implementation of the Stall() operator to only call
15462AcpiOsStall(), and also return an error if the operand is larger
15463than 255.  This preserves the required behavior of not
15464relinquishing the processor, as would happen if AcpiOsSleep() was
15465called for "long stalls".
15466
15467Constructs of the form "Store(LocalX,LocalX)" where LocalX is not
15468initialized are now treated as NOOPs.
15469
15470Cleaned up a handful of warnings during 64-bit generation.
15471
15472Fixed a reported error where and incorrect GPE number was passed
15473to the GPE dispatch handler.  This value is only used for error
15474output, however.  Used this opportunity to clean up and streamline
15475the GPE dispatch code.
15476
15477Code and Data Size: Current and previous core subsystem library
15478sizes are shown below.  These are the code and data sizes for the
15479acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15480these values do not include any ACPI driver or OSPM code.  The
15481
15482debug version of the code includes the debug output trace
15483mechanism and has a much larger code and data size.  Note that
15484these values will vary depending on the efficiency of the compiler
15485and the compiler options used during generation.
15486
15487  Previous Release (20031002):
15488    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15489    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15490  Current Release:
15491    Non-Debug Version:  74.4K Code,  10.1K Data,   84.5K Total
15492    Debug Version:     158.3K Code,  65.0K Data,  223.3K Total
15493
15494
154952) iASL Compiler/Disassembler:
15496
15497Updated the iASL compiler to return an error if the operand to the
15498Stall() operator is larger than 255.
15499
15500
15501----------------------------------------
1550202 October 2003.  Summary of changes for version 20031002:
15503
15504
155051) ACPI CA Core Subsystem:
15506
15507Fixed a problem with Index Fields where the index was not
15508incremented for fields that require multiple writes to the
15509index/data registers (Fields that are wider than the data
15510register.)
15511
15512Fixed a problem with all Field objects where a write could go
15513beyond the end-of-field if the field was larger than the access
15514granularity and therefore required multiple writes to complete the
15515request.  An extra write beyond the end of the field could happen
15516inadvertently.
15517
15518Fixed a problem with Index Fields where a BUFFER_OVERFLOW error
15519would incorrectly be returned if the width of the Data Register
15520was larger than the specified field access width.
15521
15522Completed fixes for LoadTable() and Unload() and verified their
15523operation.  Implemented full support for the "DdbHandle" object
15524throughout the ACPI CA subsystem.
15525
15526Implemented full support for the MADT and ECDT tables in the ACPI
15527CA header files.  Even though these tables are not directly
15528consumed by ACPI CA, the header definitions are useful for ACPI
15529device drivers.
15530
15531Integrated resource descriptor fixes posted to the Linux ACPI
15532list.  This included checks for minimum descriptor length, and
15533support for trailing NULL strings within descriptors that have
15534optional string elements.
15535
15536Code and Data Size: Current and previous core subsystem library
15537sizes are shown below.  These are the code and data sizes for the
15538acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15539these values do not include any ACPI driver or OSPM code.  The
15540debug version of the code includes the debug output trace
15541mechanism and has a much larger code and data size.  Note that
15542these values will vary depending on the efficiency of the compiler
15543and the compiler options used during generation.
15544
15545  Previous Release (20030918):
15546    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15547    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15548  Current Release:
15549    Non-Debug Version:  74.1K Code,   9.7K Data,   83.8K Total
15550    Debug Version:     157.9K Code,  64.8K Data,  222.7K Total
15551
15552
155532) iASL Compiler:
15554
15555Implemented detection of non-ASCII characters within the input
15556source ASL file.  This catches attempts to compile binary (AML)
15557files early in the compile, with an informative error message.
15558
15559Fixed a problem where the disassembler would fault if the output
15560filename could not be generated or if the output file could not be
15561opened.
15562
15563----------------------------------------
1556418 September 2003.  Summary of changes for version 20030918:
15565
15566
155671) ACPI CA Core Subsystem:
15568
15569Found and fixed a longstanding problem with the late execution of
15570the various deferred AML opcodes (such as Operation Regions,
15571Buffer Fields, Buffers, and Packages).  If the name string
15572specified for the name of the new object placed the object in a
15573scope other than the current scope, the initialization/execution
15574of the opcode failed.  The solution to this problem was to
15575implement a mechanism where the late execution of such opcodes
15576does not attempt to lookup/create the name a second time in an
15577incorrect scope.  This fixes the "region size computed
15578incorrectly" problem.
15579
15580Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a
15581Global Lock AE_BAD_PARAMETER error.
15582
15583Fixed several 64-bit issues with prototypes, casting and data
15584types.
15585
15586Removed duplicate prototype from acdisasm.h
15587
15588Fixed an issue involving EC Operation Region Detach (Shaohua Li)
15589
15590Code and Data Size: Current and previous core subsystem library
15591sizes are shown below.  These are the code and data sizes for the
15592acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15593these values do not include any ACPI driver or OSPM code.  The
15594debug version of the code includes the debug output trace
15595mechanism and has a much larger code and data size.  Note that
15596these values will vary depending on the efficiency of the compiler
15597and the compiler options used during generation.
15598
15599  Previous Release:
15600
15601    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15602    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15603  Current Release:
15604    Non-Debug Version:  73.9K Code,   9.7K Data,   83.6K Total
15605    Debug Version:     157.3K Code,  64.5K Data,  221.8K Total
15606
15607
156082) Linux:
15609
15610Fixed the AcpiOsSleep implementation in osunixxf.c to pass the
15611correct sleep time in seconds.
15612
15613----------------------------------------
1561414 July 2003.  Summary of changes for version 20030619:
15615
156161) ACPI CA Core Subsystem:
15617
15618Parse SSDTs in order discovered, as opposed to reverse order
15619(Hrvoje Habjanic)
15620
15621Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas
15622Klausner,
15623   Nate Lawson)
15624
15625
156262) Linux:
15627
15628Dynamically allocate SDT list (suggested by Andi Kleen)
15629
15630proc function return value cleanups (Andi Kleen)
15631
15632Correctly handle NMI watchdog during long stalls (Andrew Morton)
15633
15634Make it so acpismp=force works (reported by Andrew Morton)
15635
15636
15637----------------------------------------
1563819 June 2003.  Summary of changes for version 20030619:
15639
156401) ACPI CA Core Subsystem:
15641
15642Fix To/FromBCD, eliminating the need for an arch-specific #define.
15643
15644Do not acquire a semaphore in the S5 shutdown path.
15645
15646Fix ex_digits_needed for 0. (Takayoshi Kochi)
15647
15648Fix sleep/stall code reversal. (Andi Kleen)
15649
15650Revert a change having to do with control method calling
15651semantics.
15652
156532) Linux:
15654
15655acpiphp update (Takayoshi Kochi)
15656
15657Export acpi_disabled for sonypi (Stelian Pop)
15658
15659Mention acpismp=force in config help
15660
15661Re-add acpitable.c and acpismp=force. This improves backwards
15662
15663compatibility and also cleans up the code to a significant degree.
15664
15665Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)
15666
15667----------------------------------------
1566822 May 2003.  Summary of changes for version 20030522:
15669
156701) ACPI CA Core Subsystem:
15671
15672Found and fixed a reported problem where an AE_NOT_FOUND error
15673occurred occasionally during _BST evaluation.  This turned out to
15674be an Owner ID allocation issue where a called method did not get
15675a new ID assigned to it.  Eventually, (after 64k calls), the Owner
15676ID UINT16 would wraparound so that the ID would be the same as the
15677caller's and the called method would delete the caller's
15678namespace.
15679
15680Implemented extended error reporting for control methods that are
15681aborted due to a run-time exception.  Output includes the exact
15682AML instruction that caused the method abort, a dump of the method
15683locals and arguments at the time of the abort, and a trace of all
15684nested control method calls.
15685
15686Modified the interpreter to allow the creation of buffers of zero
15687length from the AML code. Implemented new code to ensure that no
15688attempt is made to actually allocate a memory buffer (of length
15689zero) - instead, a simple buffer object with a NULL buffer pointer
15690and length zero is created.  A warning is no longer issued when
15691the AML attempts to create a zero-length buffer.
15692
15693Implemented a workaround for the "leading asterisk issue" in
15694_HIDs, _UIDs, and _CIDs in the AML interpreter.  One leading
15695asterisk is automatically removed if present in any HID, UID, or
15696CID strings.  The iASL compiler will still flag this asterisk as
15697an error, however.
15698
15699Implemented full support for _CID methods that return a package of
15700multiple CIDs (Compatible IDs).  The AcpiGetObjectInfo() interface
15701now additionally returns a device _CID list if present.  This
15702required a change to the external interface in order to pass an
15703ACPI_BUFFER object as a parameter since the _CID list is of
15704variable length.
15705
15706Fixed a problem with the new AE_SAME_HANDLER exception where
15707handler initialization code did not know about this exception.
15708
15709Code and Data Size: Current and previous core subsystem library
15710sizes are shown below.  These are the code and data sizes for the
15711acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and
15712these values do not include any ACPI driver or OSPM code.  The
15713debug version of the code includes the debug output trace
15714mechanism and has a much larger code and data size.  Note that
15715these values will vary depending on the efficiency of the compiler
15716and the compiler options used during generation.
15717
15718  Previous Release (20030509):
15719    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15720    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15721  Current Release:
15722    Non-Debug Version:  73.7K Code,   9.7K Data,   83.4K Total
15723    Debug Version:     156.9K Code,  64.2K Data,  221.1K Total
15724
15725
157262) Linux:
15727
15728Fixed a bug in which we would reinitialize the ACPI interrupt
15729after it was already working, thus disabling all ACPI and the IRQs
15730for any other device sharing the interrupt. (Thanks to Stian
15731Jordet)
15732
15733Toshiba driver update (John Belmonte)
15734
15735Return only 0 or 1 for our interrupt handler status (Andrew
15736Morton)
15737
15738
157393) iASL Compiler:
15740
15741Fixed a reported problem where multiple (nested) ElseIf()
15742statements were not handled correctly by the compiler, resulting
15743in incorrect warnings and incorrect AML code.  This was a problem
15744in both the ASL parser and the code generator.
15745
15746
157474) Documentation:
15748
15749Added changes to existing interfaces, new exception codes, and new
15750text concerning reference count object management versus garbage
15751collection.
15752
15753----------------------------------------
1575409 May 2003.  Summary of changes for version 20030509.
15755
15756
157571) ACPI CA Core Subsystem:
15758
15759Changed the subsystem initialization sequence to hold off
15760installation of address space handlers until the hardware has been
15761initialized and the system has entered ACPI mode.  This is because
15762the installation of space handlers can cause _REG methods to be
15763run.  Previously, the _REG methods could potentially be run before
15764ACPI mode was enabled.
15765
15766Fixed some memory leak issues related to address space handler and
15767notify handler installation.  There were some problems with the
15768reference count mechanism caused by the fact that the handler
15769objects are shared across several namespace objects.
15770
15771Fixed a reported problem where reference counts within the
15772namespace were not properly updated when named objects created by
15773method execution were deleted.
15774
15775Fixed a reported problem where multiple SSDTs caused a deletion
15776issue during subsystem termination.  Restructured the table data
15777structures to simplify the linked lists and the related code.
15778
15779Fixed a problem where the table ID associated with secondary
15780tables (SSDTs) was not being propagated into the namespace objects
15781created by those tables.  This would only present a problem for
15782tables that are unloaded at run-time, however.
15783
15784Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE
15785type as the length parameter (instead of UINT32).
15786
15787Solved a long-standing problem where an ALREADY_EXISTS error
15788appears on various systems.  This problem could happen when there
15789are multiple PCI_Config operation regions under a single PCI root
15790bus.  This doesn't happen very frequently, but there are some
15791systems that do this in the ASL.
15792
15793Fixed a reported problem where the internal DeleteNode function
15794was incorrectly handling the case where a namespace node was the
15795first in the parent's child list, and had additional peers (not
15796the only child, but first in the list of children.)
15797
15798Code and Data Size: Current core subsystem library sizes are shown
15799below.  These are the code and data sizes for the acpica.lib
15800produced by the Microsoft Visual C++ 6.0 compiler, and these
15801values do not include any ACPI driver or OSPM code.  The debug
15802version of the code includes the debug output trace mechanism and
15803has a much larger code and data size.  Note that these values will
15804vary depending on the efficiency of the compiler and the compiler
15805options used during generation.
15806
15807  Previous Release
15808    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
15809    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
15810  Current Release:
15811    Non-Debug Version:  73.4K Code,   9.7K Data,   83.1K Total
15812    Debug Version:     156.1K Code,  63.9K Data,  220.0K Total
15813
15814
158152) Linux:
15816
15817Allow ":" in OS override string (Ducrot Bruno)
15818
15819Kobject fix (Greg KH)
15820
15821
158223 iASL Compiler/Disassembler:
15823
15824Fixed a problem in the generation of the C source code files (AML
15825is emitted in C source statements for BIOS inclusion) where the
15826Ascii dump that appears within a C comment at the end of each line
15827could cause a compile time error if the AML sequence happens to
15828have an open comment or close comment sequence embedded.
15829
15830
15831----------------------------------------
1583224 April 2003.  Summary of changes for version 20030424.
15833
15834
158351) ACPI CA Core Subsystem:
15836
15837Support for big-endian systems has been implemented.  Most of the
15838support has been invisibly added behind big-endian versions of the
15839ACPI_MOVE_* macros.
15840
15841Fixed a problem in AcpiHwDisableGpeBlock() and
15842AcpiHwClearGpeBlock() where an incorrect offset was passed to the
15843low level hardware write routine.  The offset parameter was
15844actually eliminated from the low level read/write routines because
15845they had become obsolete.
15846
15847Fixed a problem where a handler object was deleted twice during
15848the removal of a fixed event handler.
15849
15850
158512) Linux:
15852
15853A fix for SMP systems with link devices was contributed by
15854
15855Compaq's Dan Zink.
15856
15857(2.5) Return whether we handled the interrupt in our IRQ handler.
15858(Linux ISRs no longer return void, so we can propagate the handler
15859return value from the ACPI CA core back to the OS.)
15860
15861
15862
158633) Documentation:
15864
15865The ACPI CA Programmer Reference has been updated to reflect new
15866interfaces and changes to existing interfaces.
15867
15868----------------------------------------
1586928 March 2003.  Summary of changes for version 20030328.
15870
158711) ACPI CA Core Subsystem:
15872
15873The GPE Block Device support has been completed.  New interfaces
15874are AcpiInstallGpeBlock and AcpiRemoveGpeBlock.  The Event
15875interfaces (enable, disable, clear, getstatus) have been split
15876into separate interfaces for Fixed Events and General Purpose
15877Events (GPEs) in order to support GPE Block Devices properly.
15878
15879Fixed a problem where the error message "Failed to acquire
15880semaphore" would appear during operations on the embedded
15881controller (EC).
15882
15883Code and Data Size: Current core subsystem library sizes are shown
15884below.  These are the code and data sizes for the acpica.lib
15885produced by the Microsoft Visual C++ 6.0 compiler, and these
15886values do not include any ACPI driver or OSPM code.  The debug
15887version of the code includes the debug output trace mechanism and
15888has a much larger code and data size.  Note that these values will
15889vary depending on the efficiency of the compiler and the compiler
15890options used during generation.
15891
15892  Previous Release
15893    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
15894    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
15895  Current Release:
15896    Non-Debug Version:  73.7K Code,   9.5K Data,   83.2K Total
15897    Debug Version:     156.1K Code,  63.6K Data,  219.7K Total
15898
15899
15900----------------------------------------
1590128 February 2003.  Summary of changes for version 20030228.
15902
15903
159041) ACPI CA Core Subsystem:
15905
15906The GPE handling and dispatch code has been completely overhauled
15907in preparation for support of GPE Block Devices (ID ACPI0006).
15908This affects internal data structures and code only; there should
15909be no differences visible externally.  One new file has been
15910added, evgpeblk.c
15911
15912The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only
15913fields that are used to determine the GPE block lengths.  The
15914REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address
15915structures are ignored.  This is per the ACPI specification but it
15916isn't very clear.  The full 256 Block 0/1 GPEs are now supported
15917(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).
15918
15919In the SCI interrupt handler, removed the read of the PM1_CONTROL
15920register to look at the SCI_EN bit.  On some machines, this read
15921causes an SMI event and greatly slows down SCI events.  (This may
15922in fact be the cause of slow battery status response on some
15923systems.)
15924
15925Fixed a problem where a store of a NULL string to a package object
15926could cause the premature deletion of the object.  This was seen
15927during execution of the battery _BIF method on some systems,
15928resulting in no battery data being returned.
15929
15930Added AcpiWalkResources interface to simplify parsing of resource
15931lists.
15932
15933Code and Data Size: Current core subsystem library sizes are shown
15934below.  These are the code and data sizes for the acpica.lib
15935produced by the Microsoft Visual C++ 6.0 compiler, and these
15936values do not include any ACPI driver or OSPM code.  The debug
15937version of the code includes the debug output trace mechanism and
15938has a much larger code and data size.  Note that these values will
15939vary depending on the efficiency of the compiler and the compiler
15940options used during generation.
15941
15942  Previous Release
15943    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
15944    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
15945  Current Release:
15946    Non-Debug Version:  72.3K Code,   9.5K Data,   81.8K Total
15947    Debug Version:     154.0K Code,  63.4K Data,  217.4K Total
15948
15949
159502) Linux
15951
15952S3 fixes (Ole Rohne)
15953
15954Update ACPI PHP driver with to use new acpi_walk_resource API
15955(Bjorn Helgaas)
15956
15957Add S4BIOS support (Pavel Machek)
15958
15959Map in entire table before performing checksum (John Stultz)
15960
15961Expand the mem= cmdline to allow the specification of reserved and
15962ACPI DATA blocks (Pavel Machek)
15963
15964Never use ACPI on VISWS
15965
15966Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)
15967
15968Revert a change that allowed P_BLK lengths to be 4 or 5. This is
15969causing us to think that some systems support C2 when they really
15970don't.
15971
15972Do not count processor objects for non-present CPUs (Thanks to
15973Dominik Brodowski)
15974
15975
159763) iASL Compiler:
15977
15978Fixed a problem where ASL include files could not be found and
15979opened.
15980
15981Added support for the _PDC reserved name.
15982
15983
15984----------------------------------------
1598522 January 2003.  Summary of changes for version 20030122.
15986
15987
159881) ACPI CA Core Subsystem:
15989
15990Added a check for constructs of the form:  Store (Local0, Local0)
15991where Local0 is not initialized.  Apparently, some BIOS
15992programmers believe that this is a NOOP.  Since this store doesn't
15993do anything anyway, the new prototype behavior will ignore this
15994error.  This is a case where we can relax the strict checking in
15995the interpreter in the name of compatibility.
15996
15997
159982) Linux
15999
16000The AcpiSrc Source Conversion Utility has been released with the
16001Linux package for the first time.  This is the utility that is
16002used to convert the ACPI CA base source code to the Linux version.
16003
16004(Both) Handle P_BLK lengths shorter than 6 more gracefully
16005
16006(Both) Move more headers to include/acpi, and delete an unused
16007header.
16008
16009(Both) Move drivers/acpi/include directory to include/acpi
16010
16011(Both) Boot functions don't use cmdline, so don't pass it around
16012
16013(Both) Remove include of unused header (Adrian Bunk)
16014
16015(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since
16016the
16017former now also includes the latter, acpiphp.h only needs the one,
16018now.
16019
16020(2.5) Make it possible to select method of bios restoring after S3
16021resume. [=> no more ugly ifdefs] (Pavel Machek)
16022
16023(2.5) Make proc write interfaces work (Pavel Machek)
16024
16025(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)
16026
16027(2.5) Break out ACPI Perf code into its own module, under cpufreq
16028(Dominik Brodowski)
16029
16030(2.4) S4BIOS support (Ducrot Bruno)
16031
16032(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio
16033Visinoni)
16034
16035
160363) iASL Compiler:
16037
16038Added support to disassemble SSDT and PSDTs.
16039
16040Implemented support to obtain SSDTs from the Windows registry if
16041available.
16042
16043
16044----------------------------------------
1604509 January 2003.  Summary of changes for version 20030109.
16046
160471) ACPI CA Core Subsystem:
16048
16049Changed the behavior of the internal Buffer-to-String conversion
16050function.  The current ACPI specification states that the contents
16051of the buffer are "converted to a string of two-character
16052hexadecimal numbers, each separated by a space".  Unfortunately,
16053this definition is not backwards compatible with existing ACPI 1.0
16054implementations (although the behavior was not defined in the ACPI
160551.0 specification).  The new behavior simply copies data from the
16056buffer to the string until a null character is found or the end of
16057the buffer is reached.  The new String object is always null
16058terminated.  This problem was seen during the generation of _BIF
16059battery data where incorrect strings were returned for battery
16060type, etc.  This will also require an errata to the ACPI
16061specification.
16062
16063Renamed all instances of NATIVE_UINT and NATIVE_INT to
16064ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.
16065
16066Copyright in all module headers (both Linux and non-Linux) has be
16067updated to 2003.
16068
16069Code and Data Size: Current core subsystem library sizes are shown
16070below.  These are the code and data sizes for the acpica.lib
16071produced by the Microsoft Visual C++ 6.0 compiler, and these
16072values do not include any ACPI driver or OSPM code.  The debug
16073version of the code includes the debug output trace mechanism and
16074has a much larger code and data size.  Note that these values will
16075vary depending on the efficiency of the compiler and the compiler
16076options used during generation.
16077
16078  Previous Release
16079    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16080    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16081  Current Release:
16082    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16083    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16084
16085
160862) Linux
16087
16088Fixed an oops on module insertion/removal (Matthew Tippett)
16089
16090(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)
16091
16092(2.5) Replace pr_debug (Randy Dunlap)
16093
16094(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)
16095
16096(Both) Eliminate spawning of thread from timer callback, in favor
16097of schedule_work()
16098
16099(Both) Show Lid status in /proc (Zdenek OGAR Skalak)
16100
16101(Both) Added define for Fixed Function HW region (Matthew Wilcox)
16102
16103(Both) Add missing statics to button.c (Pavel Machek)
16104
16105Several changes have been made to the source code translation
16106utility that generates the Linux Code in order to make the code
16107more "Linux-like":
16108
16109All typedefs on structs and unions have been removed in keeping
16110with the Linux coding style.
16111
16112Removed the non-Linux SourceSafe module revision number from each
16113module header.
16114
16115Completed major overhaul of symbols to be lowercase for linux.
16116Doubled the number of symbols that are lowercase.
16117
16118Fixed a problem where identifiers within procedure headers and
16119within quotes were not fully lower cased (they were left with a
16120starting capital.)
16121
16122Some C macros whose only purpose is to allow the generation of 16-
16123bit code are now completely removed in the Linux code, increasing
16124readability and maintainability.
16125
16126----------------------------------------
16127
1612812 December 2002.  Summary of changes for version 20021212.
16129
16130
161311) ACPI CA Core Subsystem:
16132
16133Fixed a problem where the creation of a zero-length AML Buffer
16134would cause a fault.
16135
16136Fixed a problem where a Buffer object that pointed to a static AML
16137buffer (in an ACPI table) could inadvertently be deleted, causing
16138memory corruption.
16139
16140Fixed a problem where a user buffer (passed in to the external
16141ACPI CA interfaces) could be overwritten if the buffer was too
16142small to complete the operation, causing memory corruption.
16143
16144Fixed a problem in the Buffer-to-String conversion code where a
16145string of length one was always returned, regardless of the size
16146of the input Buffer object.
16147
16148Removed the NATIVE_CHAR data type across the entire source due to
16149lack of need and lack of consistent use.
16150
16151Code and Data Size: Current core subsystem library sizes are shown
16152below.  These are the code and data sizes for the acpica.lib
16153produced by the Microsoft Visual C++ 6.0 compiler, and these
16154values do not include any ACPI driver or OSPM code.  The debug
16155version of the code includes the debug output trace mechanism and
16156has a much larger code and data size.  Note that these values will
16157vary depending on the efficiency of the compiler and the compiler
16158options used during generation.
16159
16160  Previous Release
16161    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16162    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16163  Current Release:
16164    Non-Debug Version:  72.0K Code,   9.5K Data,   81.5K Total
16165    Debug Version:     153.0K Code,  62.9K Data,  215.9K Total
16166
16167
16168----------------------------------------
1616905 December 2002.  Summary of changes for version 20021205.
16170
161711) ACPI CA Core Subsystem:
16172
16173Fixed a problem where a store to a String or Buffer object could
16174cause corruption of the DSDT if the object type being stored was
16175the same as the target object type and the length of the object
16176being stored was equal to or smaller than the original (existing)
16177target object.  This was seen to cause corruption of battery _BIF
16178buffers if the _BIF method modified the buffer on the fly.
16179
16180Fixed a problem where an internal error was generated if a control
16181method invocation was used in an OperationRegion, Buffer, or
16182Package declaration.  This was caused by the deferred parsing of
16183the control method and thus the deferred creation of the internal
16184method object.  The solution to this problem was to create the
16185internal method object at the moment the method is encountered in
16186the first pass - so that subsequent references to the method will
16187able to obtain the required parameter count and thus properly
16188parse the method invocation.  This problem presented itself as an
16189AE_AML_INTERNAL during the pass 1 parse phase during table load.
16190
16191Fixed a problem where the internal String object copy routine did
16192not always allocate sufficient memory for the target String object
16193and caused memory corruption.  This problem was seen to cause
16194"Allocation already present in list!" errors as memory allocation
16195became corrupted.
16196
16197Implemented a new function for the evaluation of namespace objects
16198that allows the specification of the allowable return object
16199types.  This simplifies a lot of code that checks for a return
16200object of one or more specific objects returned from the
16201evaluation (such as _STA, etc.)  This may become and external
16202function if it would be useful to ACPI-related drivers.
16203
16204Completed another round of prefixing #defines with "ACPI_" for
16205clarity.
16206
16207Completed additional code restructuring to allow more modular
16208linking for iASL compiler and AcpiExec.  Several files were split
16209creating new files.  New files:  nsparse.c dsinit.c evgpe.c
16210
16211Implemented an abort mechanism to terminate an executing control
16212method via the AML debugger.  This feature is useful for debugging
16213control methods that depend (wait) for specific hardware
16214responses.
16215
16216Code and Data Size: Current core subsystem library sizes are shown
16217below.  These are the code and data sizes for the acpica.lib
16218produced by the Microsoft Visual C++ 6.0 compiler, and these
16219values do not include any ACPI driver or OSPM code.  The debug
16220version of the code includes the debug output trace mechanism and
16221has a much larger code and data size.  Note that these values will
16222vary depending on the efficiency of the compiler and the compiler
16223options used during generation.
16224
16225  Previous Release
16226    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16227    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16228  Current Release:
16229    Non-Debug Version:  72.1K Code,   9.5K Data,   81.6K Total
16230    Debug Version:     152.7K Code,  62.7K Data,  215.4K Total
16231
16232
162332) iASL Compiler/Disassembler
16234
16235Fixed a compiler code generation problem for "Interrupt" Resource
16236Descriptors.  If specified in the ASL, the optional "Resource
16237Source Index" and "Resource Source" fields were not inserted into
16238the correct location within the AML resource descriptor, creating
16239an invalid descriptor.
16240
16241Fixed a disassembler problem for "Interrupt" resource descriptors.
16242The optional "Resource Source Index" and "Resource Source" fields
16243were ignored.
16244
16245
16246----------------------------------------
1624722 November 2002.  Summary of changes for version 20021122.
16248
16249
162501) ACPI CA Core Subsystem:
16251
16252Fixed a reported problem where an object stored to a Method Local
16253or Arg was not copied to a new object during the store - the
16254object pointer was simply copied to the Local/Arg.  This caused
16255all subsequent operations on the Local/Arg to also affect the
16256original source of the store operation.
16257
16258Fixed a problem where a store operation to a Method Local or Arg
16259was not completed properly if the Local/Arg contained a reference
16260(from RefOf) to a named field.  The general-purpose store-to-
16261namespace-node code is now used so that this case is handled
16262automatically.
16263
16264Fixed a problem where the internal object copy routine would cause
16265a protection fault if the object being copied was a Package and
16266contained either 1) a NULL package element or 2) a nested sub-
16267package.
16268
16269Fixed a problem with the GPE initialization that resulted from an
16270ambiguity in the ACPI specification.  One section of the
16271specification states that both the address and length of the GPE
16272block must be zero if the block is not supported.  Another section
16273implies that only the address need be zero if the block is not
16274supported.  The code has been changed so that both the address and
16275the length must be non-zero to indicate a valid GPE block (i.e.,
16276if either the address or the length is zero, the GPE block is
16277invalid.)
16278
16279Code and Data Size: Current core subsystem library sizes are shown
16280below.  These are the code and data sizes for the acpica.lib
16281produced by the Microsoft Visual C++ 6.0 compiler, and these
16282values do not include any ACPI driver or OSPM code.  The debug
16283version of the code includes the debug output trace mechanism and
16284has a much larger code and data size.  Note that these values will
16285vary depending on the efficiency of the compiler and the compiler
16286options used during generation.
16287
16288  Previous Release
16289    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16290    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16291  Current Release:
16292    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16293    Debug Version:     152.9K Code,  63.3K Data,  216.2K Total
16294
16295
162962) Linux
16297
16298Cleaned up EC driver. Exported an external EC read/write
16299interface. By going through this, other drivers (most notably
16300sonypi) will be able to serialize access to the EC.
16301
16302
163033) iASL Compiler/Disassembler
16304
16305Implemented support to optionally generate include files for both
16306ASM and C (the -i switch).  This simplifies BIOS development by
16307automatically creating include files that contain external
16308declarations for the symbols that are created within the
16309
16310(optionally generated) ASM and C AML source files.
16311
16312
16313----------------------------------------
1631415 November 2002.  Summary of changes for version 20021115.
16315
163161) ACPI CA Core Subsystem:
16317
16318Fixed a memory leak problem where an error during resolution of
16319
16320method arguments during a method invocation from another method
16321failed to cleanup properly by deleting all successfully resolved
16322argument objects.
16323
16324Fixed a problem where the target of the Index() operator was not
16325correctly constructed if the source object was a package.  This
16326problem has not been detected because the use of a target operand
16327with Index() is very rare.
16328
16329Fixed a problem with the Index() operator where an attempt was
16330made to delete the operand objects twice.
16331
16332Fixed a problem where an attempt was made to delete an operand
16333twice during execution of the CondRefOf() operator if the target
16334did not exist.
16335
16336Implemented the first of perhaps several internal create object
16337functions that create and initialize a specific object type.  This
16338consolidates duplicated code wherever the object is created, thus
16339shrinking the size of the subsystem.
16340
16341Implemented improved debug/error messages for errors that occur
16342during nested method invocations.  All executing method pathnames
16343are displayed (with the error) as the call stack is unwound - thus
16344simplifying debug.
16345
16346Fixed a problem introduced in the 10/02 release that caused
16347premature deletion of a buffer object if a buffer was used as an
16348ASL operand where an integer operand is required (Thus causing an
16349implicit object conversion from Buffer to Integer.)  The change in
16350the 10/02 release was attempting to fix a memory leak (albeit
16351incorrectly.)
16352
16353Code and Data Size: Current core subsystem library sizes are shown
16354below.  These are the code and data sizes for the acpica.lib
16355produced by the Microsoft Visual C++ 6.0 compiler, and these
16356values do not include any ACPI driver or OSPM code.  The debug
16357version of the code includes the debug output trace mechanism and
16358has a much larger code and data size.  Note that these values will
16359vary depending on the efficiency of the compiler and the compiler
16360options used during generation.
16361
16362  Previous Release
16363    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16364    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16365  Current Release:
16366    Non-Debug Version:  71.3K Code,   9.0K Data,   80.3K Total
16367    Debug Version:     152.7K Code,  63.2K Data,  215.5K Total
16368
16369
163702) Linux
16371
16372Changed the implementation of the ACPI semaphores to use down()
16373instead of down_interruptable().  It is important that the
16374execution of ACPI control methods not be interrupted by signals.
16375Methods must run to completion, or the system may be left in an
16376unknown/unstable state.
16377
16378Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.
16379(Shawn Starr)
16380
16381
163823) iASL Compiler/Disassembler
16383
16384
16385Changed the default location of output files.  All output files
16386are now placed in the current directory by default instead of in
16387the directory of the source file.  This change may affect some
16388existing makefiles, but it brings the behavior of the compiler in
16389line with other similar tools.  The location of the output files
16390can be overridden with the -p command line switch.
16391
16392
16393----------------------------------------
1639411 November 2002.  Summary of changes for version 20021111.
16395
16396
163970) ACPI Specification 2.0B is released and is now available at:
16398http://www.acpi.info/index.html
16399
16400
164011) ACPI CA Core Subsystem:
16402
16403Implemented support for the ACPI 2.0 SMBus Operation Regions.
16404This includes the early detection and handoff of the request to
16405the SMBus region handler (avoiding all of the complex field
16406support code), and support for the bidirectional return packet
16407from an SMBus write operation.  This paves the way for the
16408development of SMBus drivers in each host operating system.
16409
16410Fixed a problem where the semaphore WAIT_FOREVER constant was
16411defined as 32 bits, but must be 16 bits according to the ACPI
16412specification.  This had the side effect of causing ASL
16413Mutex/Event timeouts even though the ASL code requested a wait
16414forever.  Changed all internal references to the ACPI timeout
16415parameter to 16 bits to prevent future problems.  Changed the name
16416of WAIT_FOREVER to ACPI_WAIT_FOREVER.
16417
16418Code and Data Size: Current core subsystem library sizes are shown
16419below.  These are the code and data sizes for the acpica.lib
16420produced by the Microsoft Visual C++ 6.0 compiler, and these
16421values do not include any ACPI driver or OSPM code.  The debug
16422version of the code includes the debug output trace mechanism and
16423has a much larger code and data size.  Note that these values will
16424vary depending on the efficiency of the compiler and the compiler
16425options used during generation.
16426
16427  Previous Release
16428    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16429    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16430  Current Release:
16431    Non-Debug Version:  71.9K Code,   9.1K Data,   81.0K Total
16432    Debug Version:     153.1K Code,  63.3K Data,  216.4K Total
16433
16434
164352) Linux
16436
16437Module loading/unloading fixes (John Cagle)
16438
16439
164403) iASL Compiler/Disassembler
16441
16442Added support for the SMBBlockProcessCall keyword (ACPI 2.0)
16443
16444Implemented support for the disassembly of all SMBus protocol
16445keywords (SMBQuick, SMBWord, etc.)
16446
16447----------------------------------------
1644801 November 2002.  Summary of changes for version 20021101.
16449
16450
164511) ACPI CA Core Subsystem:
16452
16453Fixed a problem where platforms that have a GPE1 block but no GPE0
16454block were not handled correctly.  This resulted in a "GPE
16455overlap" error message.  GPE0 is no longer required.
16456
16457Removed code added in the previous release that inserted nodes
16458into the namespace in alphabetical order.  This caused some side-
16459effects on various machines.  The root cause of the problem is
16460still under investigation since in theory, the internal ordering
16461of the namespace nodes should not matter.
16462
16463
16464Enhanced error reporting for the case where a named object is not
16465found during control method execution.  The full ACPI namepath
16466(name reference) of the object that was not found is displayed in
16467this case.
16468
16469Note: as a result of the overhaul of the namespace object types in
16470the previous release, the namespace nodes for the predefined
16471scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE
16472instead of ACPI_TYPE_ANY.  This simplifies the namespace
16473management code but may affect code that walks the namespace tree
16474looking for specific object types.
16475
16476Code and Data Size: Current core subsystem library sizes are shown
16477below.  These are the code and data sizes for the acpica.lib
16478produced by the Microsoft Visual C++ 6.0 compiler, and these
16479values do not include any ACPI driver or OSPM code.  The debug
16480version of the code includes the debug output trace mechanism and
16481has a much larger code and data size.  Note that these values will
16482vary depending on the efficiency of the compiler and the compiler
16483options used during generation.
16484
16485  Previous Release
16486    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16487    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16488  Current Release:
16489    Non-Debug Version:  71.4K Code,   9.0K Data,   80.4K Total
16490    Debug Version:     152.3K Code,  63.0K Data,  215.3K Total
16491
16492
164932) Linux
16494
16495Fixed a problem introduced in the previous release where the
16496Processor and Thermal objects were not recognized and installed in
16497/proc.  This was related to the scope type change described above.
16498
16499
165003) iASL Compiler/Disassembler
16501
16502Implemented the -g option to get all of the required ACPI tables
16503from the registry and save them to files (Windows version of the
16504compiler only.)  The required tables are the FADT, FACS, and DSDT.
16505
16506Added ACPI table checksum validation during table disassembly in
16507order to catch corrupted tables.
16508
16509
16510----------------------------------------
1651122 October 2002.  Summary of changes for version 20021022.
16512
165131) ACPI CA Core Subsystem:
16514
16515Implemented a restriction on the Scope operator that the target
16516must already exist in the namespace at the time the operator is
16517encountered (during table load or method execution).  In other
16518words, forward references are not allowed and Scope() cannot
16519create a new object. This changes the previous behavior where the
16520interpreter would create the name if not found.  This new behavior
16521correctly enables the search-to-root algorithm during namespace
16522lookup of the target name.  Because of this upsearch, this fixes
16523the known Compaq _SB_.OKEC problem and makes both the AML
16524interpreter and iASL compiler compatible with other ACPI
16525implementations.
16526
16527Completed a major overhaul of the internal ACPI object types for
16528the ACPI Namespace and the associated operand objects.  Many of
16529these types had become obsolete with the introduction of the two-
16530pass namespace load.  This cleanup simplifies the code and makes
16531the entire namespace load mechanism much clearer and easier to
16532understand.
16533
16534Improved debug output for tracking scope opening/closing to help
16535diagnose scoping issues.  The old scope name as well as the new
16536scope name are displayed.  Also improved error messages for
16537problems with ASL Mutex objects and error messages for GPE
16538problems.
16539
16540Cleaned up the namespace dump code, removed obsolete code.
16541
16542All string output (for all namespace/object dumps) now uses the
16543common ACPI string output procedure which handles escapes properly
16544and does not emit non-printable characters.
16545
16546Fixed some issues with constants in the 64-bit version of the
16547local C library (utclib.c)
16548
16549
165502) Linux
16551
16552EC Driver:  No longer attempts to acquire the Global Lock at
16553interrupt level.
16554
16555
165563) iASL Compiler/Disassembler
16557
16558Implemented ACPI 2.0B grammar change that disallows all Type 1 and
165592 opcodes outside of a control method.  This means that the
16560"executable" operators (versus the "namespace" operators) cannot
16561be used at the table level; they can only be used within a control
16562method.
16563
16564Implemented the restriction on the Scope() operator where the
16565target must already exist in the namespace at the time the
16566operator is encountered (during ASL compilation). In other words,
16567forward references are not allowed and Scope() cannot create a new
16568object.  This makes the iASL compiler compatible with other ACPI
16569implementations and makes the Scope() implementation adhere to the
16570ACPI specification.
16571
16572Fixed a problem where namepath optimization for the Alias operator
16573was optimizing the wrong path (of the two namepaths.)  This caused
16574a "Missing alias link" error message.
16575
16576Fixed a problem where an "unknown reserved name" warning could be
16577incorrectly generated for names like "_SB" when the trailing
16578underscore is not used in the original ASL.
16579
16580Fixed a problem where the reserved name check did not handle
16581NamePaths with multiple NameSegs correctly.  The first nameseg of
16582the NamePath was examined instead of the last NameSeg.
16583
16584
16585----------------------------------------
16586
1658702 October 2002.  Summary of changes for this release.
16588
16589
165901) ACPI CA Core Subsystem version 20021002:
16591
16592Fixed a problem where a store/copy of a string to an existing
16593string did not always set the string length properly in the String
16594object.
16595
16596Fixed a reported problem with the ToString operator where the
16597behavior was identical to the ToHexString operator instead of just
16598simply converting a raw buffer to a string data type.
16599
16600Fixed a problem where CopyObject and the other "explicit"
16601conversion operators were not updating the internal namespace node
16602type as part of the store operation.
16603
16604Fixed a memory leak during implicit source operand conversion
16605where the original object was not deleted if it was converted to a
16606new object of a different type.
16607
16608Enhanced error messages for all problems associated with namespace
16609lookups.  Common procedure generates and prints the lookup name as
16610well as the formatted status.
16611
16612Completed implementation of a new design for the Alias support
16613within the namespace.  The existing design did not handle the case
16614where a new object was assigned to one of the two names due to the
16615use of an explicit conversion operator, resulting in the two names
16616pointing to two different objects.  The new design simply points
16617the Alias name to the original name node - not to the object.
16618This results in a level of indirection that must be handled in the
16619name resolution mechanism.
16620
16621Code and Data Size: Current core subsystem library sizes are shown
16622below.  These are the code and data sizes for the acpica.lib
16623produced by the Microsoft Visual C++ 6.0 compiler, and these
16624values do not include any ACPI driver or OSPM code.  The debug
16625version of the code includes the debug output trace mechanism and
16626has a larger code and data size.  Note that these values will vary
16627depending on the efficiency of the compiler and the compiler
16628options used during generation.
16629
16630  Previous Release
16631    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16632    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16633  Current Release:
16634    Non-Debug Version:  70.7K Code,   8.6K Data,   79.3K Total
16635    Debug Version:     151.7K Code,  62.4K Data,  214.1K Total
16636
16637
166382) Linux
16639
16640Initialize thermal driver's timer before it is used. (Knut
16641Neumann)
16642
16643Allow handling negative celsius values. (Kochi Takayoshi)
16644
16645Fix thermal management and make trip points. R/W (Pavel Machek)
16646
16647Fix /proc/acpi/sleep. (P. Christeas)
16648
16649IA64 fixes. (David Mosberger)
16650
16651Fix reversed logic in blacklist code. (Sergio Monteiro Basto)
16652
16653Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik
16654Brodowski)
16655
16656
166573) iASL Compiler/Disassembler
16658
16659Clarified some warning/error messages.
16660
16661
16662----------------------------------------
1666318 September 2002.  Summary of changes for this release.
16664
16665
166661) ACPI CA Core Subsystem version 20020918:
16667
16668Fixed a reported problem with reference chaining (via the Index()
16669and RefOf() operators) in the ObjectType() and SizeOf() operators.
16670The definition of these operators includes the dereferencing of
16671all chained references to return information on the base object.
16672
16673Fixed a problem with stores to indexed package elements - the
16674existing code would not complete the store if an "implicit
16675conversion" was not performed.  In other words, if the existing
16676object (package element) was to be replaced completely, the code
16677didn't handle this case.
16678
16679Relaxed typechecking on the ASL "Scope" operator to allow the
16680target name to refer to an object of type Integer, String, or
16681Buffer, in addition to the scoping object types (Device,
16682predefined Scopes, Processor, PowerResource, and ThermalZone.)
16683This allows existing AML code that has workarounds for a bug in
16684Windows to function properly.  A warning is issued, however.  This
16685affects both the AML interpreter and the iASL compiler. Below is
16686an example of this type of ASL code:
16687
16688      Name(DEB,0x00)
16689      Scope(DEB)
16690      {
16691
16692Fixed some reported problems with 64-bit integer support in the
16693local implementation of C library functions (clib.c)
16694
16695
166962) Linux
16697
16698Use ACPI fix map region instead of IOAPIC region, since it is
16699undefined in non-SMP.
16700
16701Ensure that the SCI has the proper polarity and trigger, even on
16702systems that do not have an interrupt override entry in the MADT.
16703
167042.5 big driver reorganization (Pat Mochel)
16705
16706Use early table mapping code from acpitable.c (Andi Kleen)
16707
16708New blacklist entries (Andi Kleen)
16709
16710Blacklist improvements. Split blacklist code out into a separate
16711file. Move checking the blacklist to very early. Previously, we
16712would use ACPI tables, and then halfway through init, check the
16713blacklist -- too late. Now, it's early enough to completely fall-
16714back to non-ACPI.
16715
16716
167173) iASL Compiler/Disassembler version 20020918:
16718
16719Fixed a problem where the typechecking code didn't know that an
16720alias could point to a method.  In other words, aliases were not
16721being dereferenced during typechecking.
16722
16723
16724----------------------------------------
1672529 August 2002.  Summary of changes for this release.
16726
167271) ACPI CA Core Subsystem Version 20020829:
16728
16729If the target of a Scope() operator already exists, it must be an
16730object type that actually opens a scope -- such as a Device,
16731Method, Scope, etc.  This is a fatal runtime error.  Similar error
16732check has been added to the iASL compiler also.
16733
16734Tightened up the namespace load to disallow multiple names in the
16735same scope.  This previously was allowed if both objects were of
16736the same type.  (i.e., a lookup was the same as entering a new
16737name).
16738
16739
167402) Linux
16741
16742Ensure that the ACPI interrupt has the proper trigger and
16743polarity.
16744
16745local_irq_disable is extraneous. (Matthew Wilcox)
16746
16747Make "acpi=off" actually do what it says, and not use the ACPI
16748interpreter *or* the tables.
16749
16750Added arch-neutral support for parsing SLIT and SRAT tables (Kochi
16751Takayoshi)
16752
16753
167543) iASL Compiler/Disassembler  Version 20020829:
16755
16756Implemented namepath optimization for name declarations.  For
16757example, a declaration like "Method (\_SB_.ABCD)" would get
16758optimized to "Method (ABCD)" if the declaration is within the
16759\_SB_ scope.  This optimization is in addition to the named
16760reference path optimization first released in the previous
16761version. This would seem to complete all possible optimizations
16762for namepaths within the ASL/AML.
16763
16764If the target of a Scope() operator already exists, it must be an
16765object type that actually opens a scope -- such as a Device,
16766Method, Scope, etc.
16767
16768Implemented a check and warning for unreachable code in the same
16769block below a Return() statement.
16770
16771Fixed a problem where the listing file was not generated if the
16772compiler aborted if the maximum error count was exceeded (200).
16773
16774Fixed a problem where the typechecking of method return values was
16775broken.  This includes the check for a return value when the
16776method is invoked as a TermArg (a return value is expected.)
16777
16778Fixed a reported problem where EOF conditions during a quoted
16779string or comment caused a fault.
16780
16781
16782----------------------------------------
1678315 August 2002.  Summary of changes for this release.
16784
167851) ACPI CA Core Subsystem Version 20020815:
16786
16787Fixed a reported problem where a Store to a method argument that
16788contains a reference did not perform the indirect store correctly.
16789This problem was created during the conversion to the new
16790reference object model - the indirect store to a method argument
16791code was not updated to reflect the new model.
16792
16793Reworked the ACPI mode change code to better conform to ACPI 2.0,
16794handle corner cases, and improve code legibility (Kochi Takayoshi)
16795
16796Fixed a problem with the pathname parsing for the carat (^)
16797prefix.  The heavy use of the carat operator by the new namepath
16798optimization in the iASL compiler uncovered a problem with the AML
16799interpreter handling of this prefix.  In the case where one or
16800more carats precede a single nameseg, the nameseg was treated as
16801standalone and the search rule (to root) was inadvertently
16802applied.  This could cause both the iASL compiler and the
16803interpreter to find the wrong object or to miss the error that
16804should occur if the object does not exist at that exact pathname.
16805
16806Found and fixed the problem where the HP Pavilion DSDT would not
16807load.  This was a relatively minor tweak to the table loading code
16808(a problem caused by the unexpected encounter with a method
16809invocation not within a control method), but it does not solve the
16810overall issue of the execution of AML code at the table level.
16811This investigation is still ongoing.
16812
16813Code and Data Size: Current core subsystem library sizes are shown
16814below.  These are the code and data sizes for the acpica.lib
16815produced by the Microsoft Visual C++ 6.0 compiler, and these
16816values do not include any ACPI driver or OSPM code.  The debug
16817version of the code includes the debug output trace mechanism and
16818has a larger code and data size.  Note that these values will vary
16819depending on the efficiency of the compiler and the compiler
16820options used during generation.
16821
16822  Previous Release
16823    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
16824    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
16825  Current Release:
16826    Non-Debug Version:  69.6K Code,   8.3K Data,   77.9K Total
16827    Debug Version:     150.0K Code,  61.7K Data,  211.7K Total
16828
16829
168302) Linux
16831
16832Remove redundant slab.h include (Brad Hards)
16833
16834Fix several bugs in thermal.c (Herbert Nachtnebel)
16835
16836Make CONFIG_ACPI_BOOT work properly (Pavel Machek)
16837
16838Change acpi_system_suspend to use updated irq functions (Pavel
16839Machek)
16840
16841Export acpi_get_firmware_table (Matthew Wilcox)
16842
16843Use proper root proc entry for ACPI (Kochi Takayoshi)
16844
16845Fix early-boot table parsing (Bjorn Helgaas)
16846
16847
168483) iASL Compiler/Disassembler
16849
16850Reworked the compiler options to make them more consistent and to
16851use two-letter options where appropriate.  We were running out of
16852sensible letters.   This may break some makefiles, so check the
16853current options list by invoking the compiler with no parameters.
16854
16855Completed the design and implementation of the ASL namepath
16856optimization option for the compiler.  This option optimizes all
16857references to named objects to the shortest possible path.  The
16858first attempt tries to utilize a single nameseg (4 characters) and
16859the "search-to-root" algorithm used by the interpreter.  If that
16860cannot be used (because either the name is not in the search path
16861or there is a conflict with another object with the same name),
16862the pathname is optimized using the carat prefix (usually a
16863shorter string than specifying the entire path from the root.)
16864
16865Implemented support to obtain the DSDT from the Windows registry
16866(when the disassembly option is specified with no input file).
16867Added this code as the implementation for AcpiOsTableOverride in
16868the Windows OSL.  Migrated the 16-bit code (used in the AcpiDump
16869utility) to scan memory for the DSDT to the AcpiOsTableOverride
16870function in the DOS OSL to make the disassembler truly OS
16871independent.
16872
16873Implemented a new option to disassemble and compile in one step.
16874When used without an input filename, this option will grab the
16875DSDT from the local machine, disassemble it, and compile it in one
16876step.
16877
16878Added a warning message for invalid escapes (a backslash followed
16879by any character other than the allowable escapes).  This catches
16880the quoted string error "\_SB_" (which should be "\\_SB_" ).
16881
16882Also, there are numerous instances in the ACPI specification where
16883this error occurs.
16884
16885Added a compiler option to disable all optimizations.  This is
16886basically the "compatibility mode" because by using this option,
16887the AML code will come out exactly the same as other ASL
16888compilers.
16889
16890Added error messages for incorrectly ordered dependent resource
16891functions.  This includes: missing EndDependentFn macro at end of
16892dependent resource list, nested dependent function macros (both
16893start and end), and missing StartDependentFn macro.  These are
16894common errors that should be caught at compile time.
16895
16896Implemented _OSI support for the disassembler and compiler.  _OSI
16897must be included in the namespace for proper disassembly (because
16898the disassembler must know the number of arguments.)
16899
16900Added an "optimization" message type that is optional (off by
16901default).  This message is used for all optimizations - including
16902constant folding, integer optimization, and namepath optimization.
16903
16904----------------------------------------
1690525 July 2002.  Summary of changes for this release.
16906
16907
169081) ACPI CA Core Subsystem Version 20020725:
16909
16910The AML Disassembler has been enhanced to produce compilable ASL
16911code and has been integrated into the iASL compiler (see below) as
16912well as the single-step disassembly for the AML debugger and the
16913disassembler for the AcpiDump utility.  All ACPI 2.0A opcodes,
16914resource templates and macros are fully supported.  The
16915disassembler has been tested on over 30 different AML files,
16916producing identical AML when the resulting disassembled ASL file
16917is recompiled with the same ASL compiler.
16918
16919Modified the Resource Manager to allow zero interrupts and zero
16920dma channels during the GetCurrentResources call.  This was
16921causing problems on some platforms.
16922
16923Added the AcpiOsRedirectOutput interface to the OSL to simplify
16924output redirection for the AcpiOsPrintf and AcpiOsVprintf
16925interfaces.
16926
16927Code and Data Size: Current core subsystem library sizes are shown
16928below.  These are the code and data sizes for the acpica.lib
16929produced by the Microsoft Visual C++ 6.0 compiler, and these
16930values do not include any ACPI driver or OSPM code.  The debug
16931version of the code includes the debug output trace mechanism and
16932has a larger code and data size.  Note that these values will vary
16933depending on the efficiency of the compiler and the compiler
16934options used during generation.
16935
16936  Previous Release
16937    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
16938    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
16939  Current Release:
16940    Non-Debug Version:  69.1K Code,   8.2K Data,   77.3K Total
16941    Debug Version:     149.4K Code,  61.6K Data,  211.0K Total
16942
16943
169442) Linux
16945
16946Fixed a panic in the EC driver (Dominik Brodowski)
16947
16948Implemented checksum of the R/XSDT itself during Linux table scan
16949(Richard Schaal)
16950
16951
169523) iASL compiler
16953
16954The AML disassembler is integrated into the compiler.  The "-d"
16955option invokes the disassembler  to completely disassemble an
16956input AML file, producing as output a text ASL file with the
16957extension ".dsl" (to avoid name collisions with existing .asl
16958source files.)  A future enhancement will allow the disassembler
16959to obtain the BIOS DSDT from the registry under Windows.
16960
16961Fixed a problem with the VendorShort and VendorLong resource
16962descriptors where an invalid AML sequence was created.
16963
16964Implemented a fix for BufferData term in the ASL parser.  It was
16965inadvertently defined twice, allowing invalid syntax to pass and
16966causing reduction conflicts.
16967
16968Fixed a problem where the Ones opcode could get converted to a
16969value of zero if "Ones" was used where a byte, word or dword value
16970was expected.  The 64-bit value is now truncated to the correct
16971size with the correct value.
16972
16973
16974
16975----------------------------------------
1697602 July 2002.  Summary of changes for this release.
16977
16978
169791) ACPI CA Core Subsystem Version 20020702:
16980
16981The Table Manager code has been restructured to add several new
16982features.  Tables that are not required by the core subsystem
16983(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer
16984validated in any way and are returned from AcpiGetFirmwareTable if
16985requested.  The AcpiOsTableOverride interface is now called for
16986each table that is loaded by the subsystem in order to allow the
16987host to override any table it chooses.  Previously, only the DSDT
16988could be overridden.  Added one new files, tbrsdt.c and
16989tbgetall.c.
16990
16991Fixed a problem with the conversion of internal package objects to
16992external objects (when a package is returned from a control
16993method.)  The return buffer length was set to zero instead of the
16994proper length of the package object.
16995
16996Fixed a reported problem with the use of the RefOf and DeRefOf
16997operators when passing reference arguments to control methods.  A
16998new type of Reference object is used internally for references
16999produced by the RefOf operator.
17000
17001Added additional error messages in the Resource Manager to explain
17002AE_BAD_DATA errors when they occur during resource parsing.
17003
17004Split the AcpiEnableSubsystem into two primitives to enable a
17005finer granularity initialization sequence.  These two calls should
17006be called in this order: AcpiEnableSubsystem (flags),
17007AcpiInitializeObjects (flags).  The flags parameter remains the
17008same.
17009
17010
170112) Linux
17012
17013Updated the ACPI utilities module to understand the new style of
17014fully resolved package objects that are now returned from the core
17015subsystem.  This eliminates errors of the form:
17016
17017    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]
17018    acpi_utils-0430 [145] acpi_evaluate_reference:
17019        Invalid element in package (not a device reference)
17020
17021The method evaluation utility uses the new buffer allocation
17022scheme instead of calling AcpiEvaluate Object twice.
17023
17024Added support for ECDT. This allows the use of the Embedded
17025
17026Controller before the namespace has been fully initialized, which
17027is necessary for ACPI 2.0 support, and for some laptops to
17028initialize properly. (Laptops using ECDT are still rare, so only
17029limited testing was performed of the added functionality.)
17030
17031Fixed memory leaks in the EC driver.
17032
17033Eliminated a brittle code structure in acpi_bus_init().
17034
17035Eliminated the acpi_evaluate() helper function in utils.c. It is
17036no longer needed since acpi_evaluate_object can optionally
17037allocate memory for the return object.
17038
17039Implemented fix for keyboard hang when getting battery readings on
17040some systems (Stephen White)
17041
17042PCI IRQ routing update (Dominik Brodowski)
17043
17044Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC
17045support
17046
17047----------------------------------------
1704811 June 2002.  Summary of changes for this release.
17049
17050
170511) ACPI CA Core Subsystem Version 20020611:
17052
17053Fixed a reported problem where constants such as Zero and One
17054appearing within _PRT packages were not handled correctly within
17055the resource manager code.  Originally reported against the ASL
17056compiler because the code generator now optimizes integers to
17057their minimal AML representation (i.e. AML constants if possible.)
17058The _PRT code now handles all AML constant opcodes correctly
17059(Zero, One, Ones, Revision).
17060
17061Fixed a problem with the Concatenate operator in the AML
17062interpreter where a buffer result object was incorrectly marked as
17063not fully evaluated, causing a run-time error of AE_AML_INTERNAL.
17064
17065All package sub-objects are now fully resolved before they are
17066returned from the external ACPI interfaces.  This means that name
17067strings are resolved to object handles, and constant operators
17068(Zero, One, Ones, Revision) are resolved to Integers.
17069
17070Implemented immediate resolution of the AML Constant opcodes
17071(Zero, One, Ones, Revision) to Integer objects upon detection
17072within the AML stream. This has simplified and reduced the
17073generated code size of the subsystem by eliminating about 10
17074switch statements for these constants (which previously were
17075contained in Reference objects.)  The complicating issues are that
17076the Zero opcode is used as a "placeholder" for unspecified
17077optional target operands and stores to constants are defined to be
17078no-ops.
17079
17080Code and Data Size: Current core subsystem library sizes are shown
17081below. These are the code and data sizes for the acpica.lib
17082produced by the Microsoft Visual C++ 6.0 compiler, and these
17083values do not include any ACPI driver or OSPM code.  The debug
17084version of the code includes the debug output trace mechanism and
17085has a larger code and data size.  Note that these values will vary
17086depending on the efficiency of the compiler and the compiler
17087options used during generation.
17088
17089  Previous Release
17090    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17091    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17092  Current Release:
17093    Non-Debug Version:  68.7K Code,   7.4K Data,   76.1K Total
17094    Debug Version:     142.9K Code,  58.7K Data,  201.6K Total
17095
17096
170972) Linux
17098
17099
17100Added preliminary support for obtaining _TRA data for PCI root
17101bridges (Bjorn Helgaas).
17102
17103
171043) iASL Compiler Version X2046:
17105
17106Fixed a problem where the "_DDN" reserved name was defined to be a
17107control method with one argument.  There are no arguments, and
17108_DDN does not have to be a control method.
17109
17110Fixed a problem with the Linux version of the compiler where the
17111source lines printed with error messages were the wrong lines.
17112This turned out to be the "LF versus CR/LF" difference between
17113Windows and Unix.  This appears to be the longstanding issue
17114concerning listing output and error messages.
17115
17116Fixed a problem with the Linux version of compiler where opcode
17117names within error messages were wrong.  This was caused by a
17118slight difference in the output of the Flex tool on Linux versus
17119Windows.
17120
17121Fixed a problem with the Linux compiler where the hex output files
17122contained some garbage data caused by an internal buffer overrun.
17123
17124
17125----------------------------------------
1712617 May 2002.  Summary of changes for this release.
17127
17128
171291) ACPI CA Core Subsystem Version 20020517:
17130
17131Implemented a workaround to an BIOS bug discovered on the HP
17132OmniBook where the FADT revision number and the table size are
17133inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size).  The new
17134behavior is to fallback to using only the ACPI 1.0 fields of the
17135FADT if the table is too small to be a ACPI 2.0 table as claimed
17136by the revision number.  Although this is a BIOS bug, this is a
17137case where the workaround is simple enough and with no side
17138effects, so it seemed prudent to add it.  A warning message is
17139issued, however.
17140
17141Implemented minimum size checks for the fixed-length ACPI tables -
17142- the FADT and FACS, as well as consistency checks between the
17143revision number and the table size.
17144
17145Fixed a reported problem in the table override support where the
17146new table pointer was incorrectly treated as a physical address
17147instead of a logical address.
17148
17149Eliminated the use of the AE_AML_ERROR exception and replaced it
17150with more descriptive codes.
17151
17152Fixed a problem where an exception would occur if an ASL Field was
17153defined with no named Field Units underneath it (used by some
17154index fields).
17155
17156Code and Data Size: Current core subsystem library sizes are shown
17157below.  These are the code and data sizes for the acpica.lib
17158produced by the Microsoft Visual C++ 6.0 compiler, and these
17159values do not include any ACPI driver or OSPM code.  The debug
17160version of the code includes the debug output trace mechanism and
17161has a larger code and data size.  Note that these values will vary
17162depending on the efficiency of the compiler and the compiler
17163options used during generation.
17164
17165  Previous Release
17166    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17167    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17168  Current Release:
17169    Non-Debug Version:  69.3K Code,   7.4K Data,   76.7K Total
17170    Debug Version:     143.8K Code,  58.8K Data,  202.6K Total
17171
17172
17173
171742) Linux
17175
17176Much work done on ACPI init (MADT and PCI IRQ routing support).
17177(Paul D. and Dominik Brodowski)
17178
17179Fix PCI IRQ-related panic on boot (Sam Revitch)
17180
17181Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)
17182
17183Fix "MHz" typo (Dominik Brodowski)
17184
17185Fix RTC year 2000 issue (Dominik Brodowski)
17186
17187Preclude multiple button proc entries (Eric Brunet)
17188
17189Moved arch-specific code out of include/platform/aclinux.h
17190
171913) iASL Compiler Version X2044:
17192
17193Implemented error checking for the string used in the EISAID macro
17194(Usually used in the definition of the _HID object.)  The code now
17195strictly enforces the PnP format - exactly 7 characters, 3
17196uppercase letters and 4 hex digits.
17197
17198If a raw string is used in the definition of the _HID object
17199(instead of the EISAID macro), the string must contain all
17200alphanumeric characters (e.g., "*PNP0011" is not allowed because
17201of the asterisk.)
17202
17203Implemented checking for invalid use of ACPI reserved names for
17204most of the name creation operators (Name, Device, Event, Mutex,
17205OperationRegion, PowerResource, Processor, and ThermalZone.)
17206Previously, this check was only performed for control methods.
17207
17208Implemented an additional check on the Name operator to emit an
17209error if a reserved name that must be implemented in ASL as a
17210control method is used.  We know that a reserved name must be a
17211method if it is defined with input arguments.
17212
17213The warning emitted when a namespace object reference is not found
17214during the cross reference phase has been changed into an error.
17215The "External" directive should be used for names defined in other
17216modules.
17217
17218
172194) Tools and Utilities
17220
17221The 16-bit tools (adump16 and aexec16) have been regenerated and
17222tested.
17223
17224Fixed a problem with the output of both acpidump and adump16 where
17225the indentation of closing parentheses and brackets was not
17226
17227aligned properly with the parent block.
17228
17229
17230----------------------------------------
1723103 May 2002.  Summary of changes for this release.
17232
17233
172341) ACPI CA Core Subsystem Version 20020503:
17235
17236Added support a new OSL interface that allows the host operating
17237
17238system software to override the DSDT found in the firmware -
17239AcpiOsTableOverride.  With this interface, the OSL can examine the
17240version of the firmware DSDT and replace it with a different one
17241if desired.
17242
17243Added new external interfaces for accessing ACPI registers from
17244device drivers and other system software - AcpiGetRegister and
17245AcpiSetRegister.  This was simply an externalization of the
17246existing AcpiHwBitRegister interfaces.
17247
17248Fixed a regression introduced in the previous build where the
17249ASL/AML CreateField operator always returned an error,
17250"destination must be a NS Node".
17251
17252Extended the maximum time (before failure) to successfully enable
17253ACPI mode to 3 seconds.
17254
17255Code and Data Size: Current core subsystem library sizes are shown
17256below.  These are the code and data sizes for the acpica.lib
17257produced by the Microsoft Visual C++ 6.0 compiler, and these
17258values do not include any ACPI driver or OSPM code.  The debug
17259version of the code includes the debug output trace mechanism and
17260has a larger code and data size.  Note that these values will vary
17261depending on the efficiency of the compiler and the compiler
17262options used during generation.
17263
17264  Previous Release
17265    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17266    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17267  Current Release:
17268    Non-Debug Version:  68.8K Code,   7.1K Data,   75.9K Total
17269    Debug Version:     142.9K Code,  58.4K Data,  201.3K Total
17270
17271
172722) Linux
17273
17274Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-
17275free. While 3 out of 4 of our in-house systems work fine, the last
17276one still hangs when testing the LAPIC timer.
17277
17278Renamed many files in 2.5 kernel release to omit "acpi_" from the
17279name.
17280
17281Added warning on boot for Presario 711FR.
17282
17283Sleep improvements (Pavel Machek)
17284
17285ACPI can now be built without CONFIG_PCI enabled.
17286
17287IA64: Fixed memory map functions (JI Lee)
17288
17289
172903) iASL Compiler Version X2043:
17291
17292Added support to allow the compiler to be integrated into the MS
17293VC++ development environment for one-button compilation of single
17294files or entire projects -- with error-to-source-line mapping.
17295
17296Implemented support for compile-time constant folding for the
17297Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0
17298specification.  This allows the ASL writer to use expressions
17299instead of Integer/Buffer/String constants in terms that must
17300evaluate to constants at compile time and will also simplify the
17301emitted AML in any such sub-expressions that can be folded
17302(evaluated at compile-time.)  This increases the size of the
17303compiler significantly because a portion of the ACPI CA AML
17304interpreter is included within the compiler in order to pre-
17305evaluate constant expressions.
17306
17307
17308Fixed a problem with the "Unicode" ASL macro that caused the
17309compiler to fault.  (This macro is used in conjunction with the
17310_STR reserved name.)
17311
17312Implemented an AML opcode optimization to use the Zero, One, and
17313Ones opcodes where possible to further reduce the size of integer
17314constants and thus reduce the overall size of the generated AML
17315code.
17316
17317Implemented error checking for new reserved terms for ACPI version
173182.0A.
17319
17320Implemented the -qr option to display the current list of ACPI
17321reserved names known to the compiler.
17322
17323Implemented the -qc option to display the current list of ASL
17324operators that are allowed within constant expressions and can
17325therefore be folded at compile time if the operands are constants.
17326
17327
173284) Documentation
17329
17330Updated the Programmer's Reference for new interfaces, data types,
17331and memory allocation model options.
17332
17333Updated the iASL Compiler User Reference to apply new format and
17334add information about new features and options.
17335
17336----------------------------------------
1733719 April 2002.  Summary of changes for this release.
17338
173391) ACPI CA Core Subsystem Version 20020419:
17340
17341The source code base for the Core Subsystem has been completely
17342cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit
17343versions.  The Lint option files used are included in the
17344/acpi/generate/lint directory.
17345
17346Implemented enhanced status/error checking across the entire
17347Hardware manager subsystem.  Any hardware errors (reported from
17348the OSL) are now bubbled up and will abort a running control
17349method.
17350
17351
17352Fixed a problem where the per-ACPI-table integer width (32 or 64)
17353was stored only with control method nodes, causing a fault when
17354non-control method code was executed during table loading.  The
17355solution implemented uses a global variable to indicate table
17356width across the entire ACPI subsystem.  Therefore, ACPI CA does
17357not support mixed integer widths across different ACPI tables
17358(DSDT, SSDT).
17359
17360Fixed a problem where NULL extended fields (X fields) in an ACPI
173612.0 ACPI FADT caused the table load to fail.  Although the
17362existing ACPI specification is a bit fuzzy on this topic, the new
17363behavior is to fall back on a ACPI 1.0 field if the corresponding
17364ACPI 2.0 X field is zero (even though the table revision indicates
17365a full ACPI 2.0 table.)  The ACPI specification will be updated to
17366clarify this issue.
17367
17368Fixed a problem with the SystemMemory operation region handler
17369where memory was always accessed byte-wise even if the AML-
17370specified access width was larger than a byte.  This caused
17371problems on systems with memory-mapped I/O.  Memory is now
17372accessed with the width specified.  On systems that do not support
17373non-aligned transfers, a check is made to guarantee proper address
17374alignment before proceeding in order to avoid an AML-caused
17375alignment fault within the kernel.
17376
17377
17378Fixed a problem with the ExtendedIrq resource where only one byte
17379of the 4-byte Irq field was extracted.
17380
17381Fixed the AcpiExDigitsNeeded() procedure to support _UID.  This
17382function was out of date and required a rewrite.
17383
17384Code and Data Size: Current core subsystem library sizes are shown
17385below.  These are the code and data sizes for the acpica.lib
17386produced by the Microsoft Visual C++ 6.0 compiler, and these
17387values do not include any ACPI driver or OSPM code.  The debug
17388version of the code includes the debug output trace mechanism and
17389has a larger code and data size.  Note that these values will vary
17390depending on the efficiency of the compiler and the compiler
17391options used during generation.
17392
17393  Previous Release
17394    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17395    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17396  Current Release:
17397    Non-Debug Version:  68.5K Code,   7.0K Data,   75.5K Total
17398    Debug Version:     142.4K Code,  58.3K Data,  200.7K Total
17399
17400
174012) Linux
17402
17403PCI IRQ routing fixes (Dominik Brodowski)
17404
17405
174063) iASL Compiler Version X2042:
17407
17408Implemented an additional compile-time error check for a field
17409unit whose size + minimum access width would cause a run-time
17410access beyond the end-of-region.  Previously, only the field size
17411itself was checked.
17412
17413The Core subsystem and iASL compiler now share a common parse
17414object in preparation for compile-time evaluation of the type
174153/4/5 ASL operators.
17416
17417
17418----------------------------------------
17419Summary of changes for this release: 03_29_02
17420
174211) ACPI CA Core Subsystem Version 20020329:
17422
17423Implemented support for late evaluation of TermArg operands to
17424Buffer and Package objects.  This allows complex expressions to be
17425used in the declarations of these object types.
17426
17427Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI
174281.0, if the field was larger than 32 bits, it was returned as a
17429buffer - otherwise it was returned as an integer.  In ACPI 2.0,
17430the field is returned as a buffer only if the field is larger than
1743164 bits.  The TableRevision is now considered when making this
17432conversion to avoid incompatibility with existing ASL code.
17433
17434Implemented logical addressing for AcpiOsGetRootPointer.  This
17435allows an RSDP with either a logical or physical address.  With
17436this support, the host OS can now override all ACPI tables with
17437one logical RSDP.  Includes implementation of  "typed" pointer
17438support to allow a common data type for both physical and logical
17439pointers internally.  This required a change to the
17440AcpiOsGetRootPointer interface.
17441
17442Implemented the use of ACPI 2.0 Generic Address Structures for all
17443GPE, Fixed Event, and PM Timer I/O.  This allows the use of memory
17444mapped I/O for these ACPI features.
17445
17446Initialization now ignores not only non-required tables (All
17447tables other than the FADT, FACS, DSDT, and SSDTs), but also does
17448not validate the table headers of unrecognized tables.
17449
17450Fixed a problem where a notify handler could only be
17451installed/removed on an object of type Device.  All "notify"
17452
17453objects are now supported -- Devices, Processor, Power, and
17454Thermal.
17455
17456Removed most verbosity from the ACPI_DB_INFO debug level.  Only
17457critical information is returned when this debug level is enabled.
17458
17459Code and Data Size: Current core subsystem library sizes are shown
17460below.  These are the code and data sizes for the acpica.lib
17461produced by the Microsoft Visual C++ 6.0 compiler, and these
17462values do not include any ACPI driver or OSPM code.  The debug
17463version of the code includes the debug output trace mechanism and
17464has a larger code and data size.  Note that these values will vary
17465depending on the efficiency of the compiler and the compiler
17466options used during generation.
17467
17468  Previous Release
17469    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17470    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17471  Current Release:
17472    Non-Debug Version:  66.6K Code,   6.5K Data,   73.1K Total
17473    Debug Version:     139.8K Code,  57.4K Data,  197.2K Total
17474
17475
174762) Linux:
17477
17478The processor driver (acpi_processor.c) now fully supports ACPI
174792.0-based processor performance control (e.g. Intel(R)
17480SpeedStep(TM) technology) Note that older laptops that only have
17481the Intel "applet" interface are not supported through this.  The
17482'limit' and 'performance' interface (/proc) are fully functional.
17483[Note that basic policy for controlling performance state
17484transitions will be included in the next version of ospmd.]  The
17485idle handler was modified to more aggressively use C2, and PIIX4
17486errata handling underwent a complete overhaul (big thanks to
17487Dominik Brodowski).
17488
17489Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-
17490based devices in the ACPI namespace are now dynamically bound
17491(associated) with their PCI counterparts (e.g. PCI1->01:00.0).
17492This allows, among other things, ACPI to resolve bus numbers for
17493subordinate PCI bridges.
17494
17495Enhanced PCI IRQ routing to get the proper bus number for _PRT
17496entries defined underneath PCI bridges.
17497
17498Added IBM 600E to bad bios list due to invalid _ADR value for
17499PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.
17500
17501In the process of adding full MADT support (e.g. IOAPIC) for IA32
17502(acpi.c, mpparse.c) -- stay tuned.
17503
17504Added back visual differentiation between fixed-feature and
17505control-method buttons in dmesg.  Buttons are also subtyped (e.g.
17506button/power/PWRF) to simplify button identification.
17507
17508We no longer use -Wno-unused when compiling debug. Please ignore
17509any "_THIS_MODULE defined but not used" messages.
17510
17511Can now shut down the system using "magic sysrq" key.
17512
17513
175143) iASL Compiler version 2041:
17515
17516Fixed a problem where conversion errors for hex/octal/decimal
17517constants were not reported.
17518
17519Implemented a fix for the General Register template Address field.
17520This field was 8 bits when it should be 64.
17521
17522Fixed a problem where errors/warnings were no longer being emitted
17523within the listing output file.
17524
17525Implemented the ACPI 2.0A restriction on ACPI Table Signatures to
17526exactly 4 characters, alphanumeric only.
17527
17528
17529
17530
17531----------------------------------------
17532Summary of changes for this release: 03_08_02
17533
17534
175351) ACPI CA Core Subsystem Version 20020308:
17536
17537Fixed a problem with AML Fields where the use of the "AccessAny"
17538keyword could cause an interpreter error due to attempting to read
17539or write beyond the end of the parent Operation Region.
17540
17541Fixed a problem in the SystemMemory Operation Region handler where
17542an attempt was made to map memory beyond the end of the region.
17543This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"
17544errors on some Linux systems.
17545
17546Fixed a problem where the interpreter/namespace "search to root"
17547algorithm was not functioning for some object types.  Relaxed the
17548internal restriction on the search to allow upsearches for all
17549external object types as well as most internal types.
17550
17551
175522) Linux:
17553
17554We now use safe_halt() macro versus individual calls to sti | hlt.
17555
17556Writing to the processor limit interface should now work. "echo 1"
17557will increase the limit, 2 will decrease, and 0 will reset to the
17558
17559default.
17560
17561
175623) ASL compiler:
17563
17564Fixed segfault on Linux version.
17565
17566
17567----------------------------------------
17568Summary of changes for this release: 02_25_02
17569
175701) ACPI CA Core Subsystem:
17571
17572
17573Fixed a problem where the GPE bit masks were not initialized
17574properly, causing erratic GPE behavior.
17575
17576Implemented limited support for multiple calling conventions.  The
17577code can be generated with either the VPL (variable parameter
17578list, or "C") convention, or the FPL (fixed parameter list, or
17579"Pascal") convention.  The core subsystem is about 3.4% smaller
17580when generated with FPL.
17581
17582
175832) Linux
17584
17585Re-add some /proc/acpi/event functionality that was lost during
17586the rewrite
17587
17588Resolved issue with /proc events for fixed-feature buttons showing
17589up as the system device.
17590
17591Fixed checks on C2/C3 latencies to be inclusive of maximum values.
17592
17593Replaced AE_ERRORs in acpi_osl.c with more specific error codes.
17594
17595Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"
17596
17597Fixed limit interface & usage to fix bugs with passive cooling
17598hysterisis.
17599
17600Restructured PRT support.
17601
17602
17603----------------------------------------
17604Summary of changes for this label: 02_14_02
17605
17606
176071) ACPI CA Core Subsystem:
17608
17609Implemented support in AcpiLoadTable to allow loading of FACS and
17610FADT tables.
17611
17612Support for the now-obsolete interim 0.71 64-bit ACPI tables has
17613been removed.  All 64-bit platforms should be migrated to the ACPI
176142.0 tables.  The actbl71.h header has been removed from the source
17615tree.
17616
17617All C macros defined within the subsystem have been prefixed with
17618"ACPI_" to avoid collision with other system include files.
17619
17620Removed the return value for the two AcpiOsPrint interfaces, since
17621it is never used and causes lint warnings for ignoring the return
17622value.
17623
17624Added error checking to all internal mutex acquire and release
17625calls.  Although a failure from one of these interfaces is
17626probably a fatal system error, these checks will cause the
17627immediate abort of the currently executing method or interface.
17628
17629Fixed a problem where the AcpiSetCurrentResources interface could
17630fault.  This was a side effect of the deployment of the new memory
17631allocation model.
17632
17633Fixed a couple of problems with the Global Lock support introduced
17634in the last major build.  The "common" (1.0/2.0) internal FACS was
17635being overwritten with the FACS signature and clobbering the
17636Global Lock pointer.  Also, the actual firmware FACS was being
17637unmapped after construction of the "common" FACS, preventing
17638access to the actual Global Lock field within it.  The "common"
17639internal FACS is no longer installed as an actual ACPI table; it
17640is used simply as a global.
17641
17642Code and Data Size: Current core subsystem library sizes are shown
17643below.  These are the code and data sizes for the acpica.lib
17644produced by the Microsoft Visual C++ 6.0 compiler, and these
17645values do not include any ACPI driver or OSPM code.  The debug
17646version of the code includes the debug output trace mechanism and
17647has a larger code and data size.  Note that these values will vary
17648depending on the efficiency of the compiler and the compiler
17649options used during generation.
17650
17651  Previous Release (02_07_01)
17652    Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17653    Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17654  Current Release:
17655    Non-Debug Version:  65.4K Code,   6.2K Data,   71.6K Total
17656    Debug Version:     138.0K Code,  56.6K Data,  194.6K Total
17657
17658
176592) Linux
17660
17661Updated Linux-specific code for core macro and OSL interface
17662changes described above.
17663
17664Improved /proc/acpi/event. It now can be opened only once and has
17665proper poll functionality.
17666
17667Fixed and restructured power management (acpi_bus).
17668
17669Only create /proc "view by type" when devices of that class exist.
17670
17671Fixed "charging/discharging" bug (and others) in acpi_battery.
17672
17673Improved thermal zone code.
17674
17675
176763) ASL Compiler, version X2039:
17677
17678
17679Implemented the new compiler restriction on ASL String hex/octal
17680escapes to non-null, ASCII values.  An error results if an invalid
17681value is used.  (This will require an ACPI 2.0 specification
17682change.)
17683
17684AML object labels that are output to the optional C and ASM source
17685are now prefixed with both the ACPI table signature and table ID
17686to help guarantee uniqueness within a large BIOS project.
17687
17688
17689----------------------------------------
17690Summary of changes for this label: 02_01_02
17691
176921) ACPI CA Core Subsystem:
17693
17694ACPI 2.0 support is complete in the entire Core Subsystem and the
17695ASL compiler. All new ACPI 2.0 operators are implemented and all
17696other changes for ACPI 2.0 support are complete.  With
17697simultaneous code and data optimizations throughout the subsystem,
17698ACPI 2.0 support has been implemented with almost no additional
17699cost in terms of code and data size.
17700
17701Implemented a new mechanism for allocation of return buffers.  If
17702the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will
17703be allocated on behalf of the caller.  Consolidated all return
17704buffer validation and allocation to a common procedure.  Return
17705buffers will be allocated via the primary OSL allocation interface
17706since it appears that a separate pool is not needed by most users.
17707If a separate pool is required for these buffers, the caller can
17708still use the original mechanism and pre-allocate the buffer(s).
17709
17710Implemented support for string operands within the DerefOf
17711operator.
17712
17713Restructured the Hardware and Event managers to be table driven,
17714simplifying the source code and reducing the amount of generated
17715code.
17716
17717Split the common read/write low-level ACPI register bitfield
17718procedure into a separate read and write, simplifying the code
17719considerably.
17720
17721Obsoleted the AcpiOsCallocate OSL interface.  This interface was
17722used only a handful of times and didn't have enough critical mass
17723for a separate interface.  Replaced with a common calloc procedure
17724in the core.
17725
17726Fixed a reported problem with the GPE number mapping mechanism
17727that allows GPE1 numbers to be non-contiguous with GPE0.
17728Reorganized the GPE information and shrunk a large array that was
17729originally large enough to hold info for all possible GPEs (256)
17730to simply large enough to hold all GPEs up to the largest GPE
17731number on the machine.
17732
17733Fixed a reported problem with resource structure alignment on 64-
17734bit platforms.
17735
17736Changed the AcpiEnableEvent and AcpiDisableEvent external
17737interfaces to not require any flags for the common case of
17738enabling/disabling a GPE.
17739
17740Implemented support to allow a "Notify" on a Processor object.
17741
17742Most TBDs in comments within the source code have been resolved
17743and eliminated.
17744
17745
17746Fixed a problem in the interpreter where a standalone parent
17747prefix (^) was not handled correctly in the interpreter and
17748debugger.
17749
17750Removed obsolete and unnecessary GPE save/restore code.
17751
17752Implemented Field support in the ASL Load operator.  This allows a
17753table to be loaded from a named field, in addition to loading a
17754table directly from an Operation Region.
17755
17756Implemented timeout and handle support in the external Global Lock
17757interfaces.
17758
17759Fixed a problem in the AcpiDump utility where pathnames were no
17760longer being generated correctly during the dump of named objects.
17761
17762Modified the AML debugger to give a full display of if/while
17763predicates instead of just one AML opcode at a time.  (The
17764predicate can have several nested ASL statements.)  The old method
17765was confusing during single stepping.
17766
17767Code and Data Size: Current core subsystem library sizes are shown
17768below. These are the code and data sizes for the acpica.lib
17769produced by the Microsoft Visual C++ 6.0 compiler, and these
17770values do not include any ACPI driver or OSPM code.  The debug
17771version of the code includes the debug output trace mechanism and
17772has a larger code and data size.  Note that these values will vary
17773depending on the efficiency of the compiler and the compiler
17774options used during generation.
17775
17776  Previous Release (12_18_01)
17777     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17778     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17779   Current Release:
17780     Non-Debug Version:  65.2K Code,   6.2K Data,   71.4K Total
17781     Debug Version:     136.9K Code,  56.4K Data,  193.3K Total
17782
177832) Linux
17784
17785 Implemented fix for PIIX reverse throttling errata (Processor
17786driver)
17787
17788Added new Limit interface (Processor and Thermal drivers)
17789
17790New thermal policy (Thermal driver)
17791
17792Many updates to /proc
17793
17794Battery "low" event support (Battery driver)
17795
17796Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)
17797
17798IA32 - IA64 initialization unification, no longer experimental
17799
17800Menuconfig options redesigned
17801
178023) ASL Compiler, version X2037:
17803
17804Implemented several new output features to simplify integration of
17805AML code into  firmware: 1) Output the AML in C source code with
17806labels for each named ASL object.  The    original ASL source code
17807is interleaved as C comments. 2) Output the AML in ASM source code
17808with labels and interleaved ASL    source. 3) Output the AML in
17809raw hex table form, in either C or ASM.
17810
17811Implemented support for optional string parameters to the
17812LoadTable operator.
17813
17814Completed support for embedded escape sequences within string
17815literals.  The compiler now supports all single character escapes
17816as well as the Octal and Hex escapes.  Note: the insertion of a
17817null byte into a string literal (via the hex/octal escape) causes
17818the string to be immediately terminated.  A warning is issued.
17819
17820Fixed a problem where incorrect AML was generated for the case
17821where an ASL namepath consists of a single parent prefix (
17822
17823) with no trailing name segments.
17824
17825The compiler has been successfully generated with a 64-bit C
17826compiler.
17827
17828
17829
17830
17831----------------------------------------
17832Summary of changes for this label: 12_18_01
17833
178341) Linux
17835
17836Enhanced blacklist with reason and severity fields. Any table's
17837signature may now be used to identify a blacklisted system.
17838
17839Call _PIC control method to inform the firmware which interrupt
17840model the OS is using. Turn on any disabled link devices.
17841
17842Cleaned up busmgr /proc error handling (Andreas Dilger)
17843
17844 2) ACPI CA Core Subsystem:
17845
17846Implemented ACPI 2.0 semantics for the "Break" operator (Exit from
17847while loop)
17848
17849Completed implementation of the ACPI 2.0 "Continue",
17850"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"
17851operators.  All new ACPI 2.0 operators are now implemented in both
17852the ASL compiler and the AML interpreter.  The only remaining ACPI
178532.0 task is support for the String data type in the DerefOf
17854operator.  Fixed a problem with AcquireMutex where the status code
17855was lost if the caller had to actually wait for the mutex.
17856
17857Increased the maximum ASL Field size from 64K bits to 4G bits.
17858
17859Completed implementation of the external Global Lock interfaces --
17860AcpiAcquireGlobalLock and AcpiReleaseGlobalLock.  The Timeout and
17861Handler parameters were added.
17862
17863Completed another pass at removing warnings and issues when
17864compiling with 64-bit compilers.  The code now compiles cleanly
17865with the Intel 64-bit C/C++ compiler.  Most notably, the pointer
17866add and subtract (diff) macros have changed considerably.
17867
17868
17869Created and deployed a new ACPI_SIZE type that is 64-bits wide on
1787064-bit platforms, 32-bits on all others.  This type is used
17871wherever memory allocation and/or the C sizeof() operator is used,
17872and affects the OSL memory allocation interfaces AcpiOsAllocate
17873and AcpiOsCallocate.
17874
17875Implemented sticky user breakpoints in the AML debugger.
17876
17877Code and Data Size: Current core subsystem library sizes are shown
17878below. These are the code and data sizes for the acpica.lib
17879produced by the Microsoft Visual C++ 6.0 compiler, and these
17880values do not include any ACPI driver or OSPM code.  The debug
17881version of the code includes the debug output trace mechanism and
17882has a larger code and data size. Note that these values will vary
17883depending on the efficiency of the compiler and the compiler
17884options used during generation.
17885
17886  Previous Release (12_05_01)
17887     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
17888     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
17889   Current Release:
17890     Non-Debug Version:  66.1K Code,   5.5K Data,   71.6K Total
17891     Debug Version:     138.3K Code,  55.9K Data,  194.2K Total
17892
17893 3) ASL Compiler, version X2034:
17894
17895Now checks for (and generates an error if detected) the use of a
17896Break or Continue statement without an enclosing While statement.
17897
17898
17899Successfully generated the compiler with the Intel 64-bit C
17900compiler.
17901
17902 ----------------------------------------
17903Summary of changes for this label: 12_05_01
17904
17905 1) ACPI CA Core Subsystem:
17906
17907The ACPI 2.0 CopyObject operator is fully implemented.  This
17908operator creates a new copy of an object (and is also used to
17909bypass the "implicit conversion" mechanism of the Store operator.)
17910
17911The ACPI 2.0 semantics for the SizeOf operator are fully
17912implemented.  The change is that performing a SizeOf on a
17913reference object causes an automatic dereference of the object to
17914the actual value before the size is evaluated. This behavior was
17915undefined in ACPI 1.0.
17916
17917The ACPI 2.0 semantics for the Extended IRQ resource descriptor
17918have been implemented.  The interrupt polarity and mode are now
17919independently set.
17920
17921Fixed a problem where ASL Constants (Zero, One, Ones, Revision)
17922appearing in Package objects were not properly converted to
17923integers when the internal Package was converted to an external
17924object (via the AcpiEvaluateObject interface.)
17925
17926Fixed a problem with the namespace object deletion mechanism for
17927objects created by control methods.  There were two parts to this
17928problem: 1) Objects created during the initialization phase method
17929parse were not being deleted, and 2) The object owner ID mechanism
17930to track objects was broken.
17931
17932Fixed a problem where the use of the ASL Scope operator within a
17933control method would result in an invalid opcode exception.
17934
17935Fixed a problem introduced in the previous label where the buffer
17936length required for the _PRT structure was not being returned
17937correctly.
17938
17939Code and Data Size: Current core subsystem library sizes are shown
17940below. These are the code and data sizes for the acpica.lib
17941produced by the Microsoft Visual C++ 6.0 compiler, and these
17942values do not include any ACPI driver or OSPM code.  The debug
17943version of the code includes the debug output trace mechanism and
17944has a larger code and data size.  Note that these values will vary
17945depending on the efficiency of the compiler and the compiler
17946options used during generation.
17947
17948  Previous Release (11_20_01)
17949     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
17950     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
17951
17952  Current Release:
17953     Non-Debug Version:  64.7K Code,   5.3K Data,   70.0K Total
17954     Debug Version:     136.2K Code,  55.6K Data,  191.8K Total
17955
17956 2) Linux:
17957
17958Updated all files to apply cleanly against 2.4.16.
17959
17960Added basic PCI Interrupt Routing Table (PRT) support for IA32
17961(acpi_pci.c), and unified the PRT code for IA32 and IA64.  This
17962version supports both static and dynamic PRT entries, but dynamic
17963entries are treated as if they were static (not yet
17964reconfigurable).  Architecture- specific code to use this data is
17965absent on IA32 but should be available shortly.
17966
17967Changed the initialization sequence to start the ACPI interpreter
17968(acpi_init) prior to initialization of the PCI driver (pci_init)
17969in init/main.c.  This ordering is required to support PRT and
17970facilitate other (future) enhancement.  A side effect is that the
17971ACPI bus driver and certain device drivers can no longer be loaded
17972as modules.
17973
17974Modified the 'make menuconfig' options to allow PCI Interrupt
17975Routing support to be included without the ACPI Bus and other
17976device drivers.
17977
17978 3) ASL Compiler, version X2033:
17979
17980Fixed some issues with the use of the new CopyObject and
17981DataTableRegion operators.  Both are fully functional.
17982
17983 ----------------------------------------
17984Summary of changes for this label: 11_20_01
17985
17986 20 November 2001.  Summary of changes for this release.
17987
17988 1) ACPI CA Core Subsystem:
17989
17990Updated Index support to match ACPI 2.0 semantics.  Storing a
17991Integer, String, or Buffer to an Index of a Buffer will store only
17992the least-significant byte of the source to the Indexed buffer
17993byte.  Multiple writes are not performed.
17994
17995Fixed a problem where the access type used in an AccessAs ASL
17996operator was not recorded correctly into the field object.
17997
17998Fixed a problem where ASL Event objects were created in a
17999signalled state. Events are now created in an unsignalled state.
18000
18001The internal object cache is now purged after table loading and
18002initialization to reduce the use of dynamic kernel memory -- on
18003the assumption that object use is greatest during the parse phase
18004of the entire table (versus the run-time use of individual control
18005methods.)
18006
18007ACPI 2.0 variable-length packages are now fully operational.
18008
18009Code and Data Size: Code and Data optimizations have permitted new
18010feature development with an actual reduction in the library size.
18011Current core subsystem library sizes are shown below.  These are
18012the code and data sizes for the acpica.lib produced by the
18013Microsoft Visual C++ 6.0 compiler, and these values do not include
18014any ACPI driver or OSPM code.  The debug version of the code
18015includes the debug output trace mechanism and has a larger code
18016and data size.  Note that these values will vary depending on the
18017efficiency of the compiler and the compiler options used during
18018generation.
18019
18020  Previous Release (11_09_01):
18021     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18022     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18023
18024  Current Release:
18025     Non-Debug Version:  64.1K Code,   5.3K Data,   69.4K Total
18026     Debug Version:     135.1K Code,  55.4K Data,  190.5K Total
18027
18028 2) Linux:
18029
18030Enhanced the ACPI boot-time initialization code to allow the use
18031of Local APIC tables for processor enumeration on IA-32, and to
18032pave the way for a fully MPS-free boot (on SMP systems) in the
18033near future.  This functionality replaces
18034arch/i386/kernel/acpitables.c, which was introduced in an earlier
180352.4.15-preX release.  To enable this feature you must add
18036"acpi_boot=on" to the kernel command line -- see the help entry
18037for CONFIG_ACPI_BOOT for more information.  An IA-64 release is in
18038the works...
18039
18040Restructured the configuration options to allow boot-time table
18041parsing support without inclusion of the ACPI Interpreter (and
18042other) code.
18043
18044NOTE: This release does not include fixes for the reported events,
18045power-down, and thermal passive cooling issues (coming soon).
18046
18047 3) ASL Compiler:
18048
18049Added additional typechecking for Fields within restricted access
18050Operation Regions.  All fields within EC and CMOS regions must be
18051declared with ByteAcc. All fields within SMBus regions must be
18052declared with the BufferAcc access type.
18053
18054Fixed a problem where the listing file output of control methods
18055no longer interleaved the actual AML code with the ASL source
18056code.
18057
18058
18059
18060
18061----------------------------------------
18062Summary of changes for this label: 11_09_01
18063
180641) ACPI CA Core Subsystem:
18065
18066Implemented ACPI 2.0-defined support for writes to fields with a
18067Buffer, String, or Integer source operand that is smaller than the
18068target field. In these cases, the source operand is zero-extended
18069to fill the target field.
18070
18071Fixed a problem where a Field starting bit offset (within the
18072parent operation region) was calculated incorrectly if the
18073
18074alignment of the field differed from the access width.  This
18075affected CreateWordField, CreateDwordField, CreateQwordField, and
18076possibly other fields that use the "AccessAny" keyword.
18077
18078Fixed a problem introduced in the 11_02_01 release where indirect
18079stores through method arguments did not operate correctly.
18080
180812) Linux:
18082
18083Implemented boot-time ACPI table parsing support
18084(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems.  This code
18085facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than
18086legacy BIOS interfaces (e.g. MPS) for the configuration of system
18087processors, memory, and interrupts during setup_arch().  Note that
18088this patch does not include the required architecture-specific
18089changes required to apply this information -- subsequent patches
18090will be posted for both IA32 and IA64 to achieve this.
18091
18092Added low-level sleep support for IA32 platforms, courtesy of Pat
18093Mochel. This allows IA32 systems to transition to/from various
18094sleeping states (e.g. S1, S3), although the lack of a centralized
18095driver model and power-manageable drivers will prevent its
18096(successful) use on most systems.
18097
18098Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"
18099submenu, unified IA32 and IA64 options, added new "Boot using ACPI
18100tables" option, etc.
18101
18102Increased the default timeout for the EC driver from 1ms to 10ms
18103(1000 cycles of 10us) to try to address AE_TIME errors during EC
18104transactions.
18105
18106 ----------------------------------------
18107Summary of changes for this label: 11_02_01
18108
181091) ACPI CA Core Subsystem:
18110
18111ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access
18112(QWordAcc keyword). All ACPI 2.0 64-bit support is now
18113implemented.
18114
18115OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required
18116changes to support ACPI 2.0 Qword field access.  Read/Write
18117PciConfiguration(), Read/Write Memory(), and Read/Write Port() now
18118accept an ACPI_INTEGER (64 bits) as the value parameter.  Also,
18119the value parameter for the address space handler interface is now
18120an ACPI_INTEGER.  OSL implementations of these interfaces must now
18121handle the case where the Width parameter is 64.
18122
18123Index Fields: Fixed a problem where unaligned bit assembly and
18124disassembly for IndexFields was not supported correctly.
18125
18126Index and Bank Fields:  Nested Index and Bank Fields are now
18127supported. During field access, a check is performed to ensure
18128that the value written to an Index or Bank register is not out of
18129the range of the register.  The Index (or Bank) register is
18130written before each access to the field data. Future support will
18131include allowing individual IndexFields to be wider than the
18132DataRegister width.
18133
18134Fields: Fixed a problem where the AML interpreter was incorrectly
18135attempting to write beyond the end of a Field/OpRegion.  This was
18136a boundary case that occurred when a DWORD field was written to a
18137BYTE access OpRegion, forcing multiple writes and causing the
18138interpreter to write one datum too many.
18139
18140Fields: Fixed a problem with Field/OpRegion access where the
18141starting bit address of a field was incorrectly calculated if the
18142current access type was wider than a byte (WordAcc, DwordAcc, or
18143QwordAcc).
18144
18145Fields: Fixed a problem where forward references to individual
18146FieldUnits (individual Field names within a Field definition) were
18147not resolved during the AML table load.
18148
18149Fields: Fixed a problem where forward references from a Field
18150definition to the parent Operation Region definition were not
18151resolved during the AML table load.
18152
18153Fields: Duplicate FieldUnit names within a scope are now detected
18154during AML table load.
18155
18156Acpi Interfaces: Fixed a problem where the AcpiGetName() interface
18157returned an incorrect name for the root node.
18158
18159Code and Data Size: Code and Data optimizations have permitted new
18160feature development with an actual reduction in the library size.
18161Current core subsystem library sizes are shown below.  These are
18162the code and data sizes for the acpica.lib produced by the
18163Microsoft Visual C++ 6.0 compiler, and these values do not include
18164any ACPI driver or OSPM code.  The debug version of the code
18165includes the debug output trace mechanism and has a larger code
18166and data size.  Note that these values will vary depending on the
18167efficiency of the compiler and the compiler options used during
18168generation.
18169
18170  Previous Release (10_18_01):
18171     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18172     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18173
18174  Current Release:
18175     Non-Debug Version:  63.7K Code,   5.2K Data,   68.9K Total
18176     Debug Version:     134.5K Code,  55.4K Data,  189.9K Total
18177
18178 2) Linux:
18179
18180Improved /proc processor output (Pavel Machek) Re-added
18181MODULE_LICENSE("GPL") to all modules.
18182
18183 3) ASL Compiler version X2030:
18184
18185Duplicate FieldUnit names within a scope are now detected and
18186flagged as errors.
18187
18188 4) Documentation:
18189
18190Programmer Reference updated to reflect OSL and address space
18191handler interface changes described above.
18192
18193----------------------------------------
18194Summary of changes for this label: 10_18_01
18195
18196ACPI CA Core Subsystem:
18197
18198Fixed a problem with the internal object reference count mechanism
18199that occasionally caused premature object deletion. This resolves
18200all of the outstanding problem reports where an object is deleted
18201in the middle of an interpreter evaluation.  Although this problem
18202only showed up in rather obscure cases, the solution to the
18203problem involved an adjustment of all reference counts involving
18204objects attached to namespace nodes.
18205
18206Fixed a problem with Field support in the interpreter where
18207writing to an aligned field whose length is an exact multiple (2
18208or greater) of the field access granularity would cause an attempt
18209to write beyond the end of the field.
18210
18211The top level AML opcode execution functions within the
18212interpreter have been renamed with a more meaningful and
18213consistent naming convention.  The modules exmonad.c and
18214exdyadic.c were eliminated.  New modules are exoparg1.c,
18215exoparg2.c, exoparg3.c, and exoparg6.c.
18216
18217Support for the ACPI 2.0 "Mid" ASL operator has been implemented.
18218
18219Fixed a problem where the AML debugger was causing some internal
18220objects to not be deleted during subsystem termination.
18221
18222Fixed a problem with the external AcpiEvaluateObject interface
18223where the subsystem would fault if the named object to be
18224evaluated referred to a constant such as Zero, Ones, etc.
18225
18226Fixed a problem with IndexFields and BankFields where the
18227subsystem would fault if the index, data, or bank registers were
18228not defined in the same scope as the field itself.
18229
18230Added printf format string checking for compilers that support
18231this feature.  Corrected more than 50 instances of issues with
18232format specifiers within invocations of ACPI_DEBUG_PRINT
18233throughout the core subsystem code.
18234
18235The ASL "Revision" operator now returns the ACPI support level
18236implemented in the core - the value "2" since the ACPI 2.0 support
18237is more than 50% implemented.
18238
18239Enhanced the output of the AML debugger "dump namespace" command
18240to output in a more human-readable form.
18241
18242Current core subsystem library code sizes are shown below.  These
18243
18244are the code and data sizes for the acpica.lib produced by the
18245Microsoft Visual C++ 6.0 compiler, and these values do not include
18246any ACPI driver or OSPM code.  The debug version of the code
18247includes the full debug trace mechanism -- leading to a much
18248
18249larger code and data size.  Note that these values will vary
18250depending on the efficiency of the compiler and the compiler
18251options used during generation.
18252
18253     Previous Label (09_20_01):
18254     Non-Debug Version:    65K Code,     5K Data,     70K Total
18255     Debug Version:       138K Code,    58K Data,    196K Total
18256
18257     This Label:
18258
18259     Non-Debug Version:  63.9K Code,   5.1K Data,   69.0K Total
18260     Debug Version:     136.7K Code,  57.4K Data,  194.2K Total
18261
18262Linux:
18263
18264Implemented a "Bad BIOS Blacklist" to track machines that have
18265known ASL/AML problems.
18266
18267Enhanced the /proc interface for the thermal zone driver and added
18268support for _HOT (the critical suspend trip point).  The 'info'
18269file now includes threshold/policy information, and allows setting
18270of _SCP (cooling preference) and _TZP (polling frequency) values
18271to the 'info' file. Examples: "echo tzp=5 > info" sets the polling
18272frequency to 5 seconds, and "echo scp=1 > info" sets the cooling
18273preference to the passive/quiet mode (if supported by the ASL).
18274
18275Implemented a workaround for a gcc bug that resuted in an OOPs
18276when loading the control method battery driver.
18277
18278 ----------------------------------------
18279Summary of changes for this label: 09_20_01
18280
18281 ACPI CA Core Subsystem:
18282
18283The AcpiEnableEvent and AcpiDisableEvent interfaces have been
18284modified to allow individual GPE levels to be flagged as wake-
18285enabled (i.e., these GPEs are to remain enabled when the platform
18286sleeps.)
18287
18288The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now
18289support wake-enabled GPEs.  This means that upon entering the
18290sleep state, all GPEs that are not wake-enabled are disabled.
18291When leaving the sleep state, these GPEs are re-enabled.
18292
18293A local double-precision divide/modulo module has been added to
18294enhance portability to OS kernels where a 64-bit math library is
18295not available.  The new module is "utmath.c".
18296
18297Several optimizations have been made to reduce the use of CPU
18298stack.  Originally over 2K, the maximum stack usage is now below
182992K at 1860  bytes (1.82k)
18300
18301Fixed a problem with the AcpiGetFirmwareTable interface where the
18302root table pointer was not mapped into a logical address properly.
18303
18304Fixed a problem where a NULL pointer was being dereferenced in the
18305interpreter code for the ASL Notify operator.
18306
18307Fixed a problem where the use of the ASL Revision operator
18308returned an error. This operator now returns the current version
18309of the ACPI CA core subsystem.
18310
18311Fixed a problem where objects passed as control method parameters
18312to AcpiEvaluateObject were always deleted at method termination.
18313However, these objects may end up being stored into the namespace
18314by the called method.  The object reference count mechanism was
18315applied to these objects instead of a force delete.
18316
18317Fixed a problem where static strings or buffers (contained in the
18318AML code) that are declared as package elements within the ASL
18319code could cause a fault because the interpreter would attempt to
18320delete them.  These objects are now marked with the "static
18321object" flag to prevent any attempt to delete them.
18322
18323Implemented an interpreter optimization to use operands directly
18324from the state object instead of extracting the operands to local
18325variables.  This reduces stack use and code size, and improves
18326performance.
18327
18328The module exxface.c was eliminated as it was an unnecessary extra
18329layer of code.
18330
18331Current core subsystem library code sizes are shown below.  These
18332are the code and data sizes for the acpica.lib produced by the
18333Microsoft Visual C++ 6.0 compiler, and these values do not include
18334any ACPI driver or OSPM code.  The debug version of the code
18335includes the full debug trace mechanism -- leading to a much
18336larger code and data size.  Note that these values will vary
18337depending on the efficiency of the compiler and the compiler
18338options used during generation.
18339
18340  Non-Debug Version:  65K Code,   5K Data,   70K Total
18341(Previously 69K)   Debug Version:     138K Code,  58K Data,  196K
18342Total  (Previously 195K)
18343
18344Linux:
18345
18346Support for ACPI 2.0 64-bit integers has been added.   All ACPI
18347Integer objects are now 64 bits wide
18348
18349All Acpi data types and structures are now in lower case.  Only
18350Acpi macros are upper case for differentiation.
18351
18352 Documentation:
18353
18354Changes to the external interfaces as described above.
18355
18356 ----------------------------------------
18357Summary of changes for this label: 08_31_01
18358
18359 ACPI CA Core Subsystem:
18360
18361A bug with interpreter implementation of the ASL Divide operator
18362was found and fixed.  The implicit function return value (not the
18363explicit store operands) was returning the remainder instead of
18364the quotient.  This was a longstanding bug and it fixes several
18365known outstanding issues on various platforms.
18366
18367The ACPI_DEBUG_PRINT and function trace entry/exit macros have
18368been further optimized for size.  There are 700 invocations of the
18369DEBUG_PRINT macro alone, so each optimization reduces the size of
18370the debug version of the subsystem significantly.
18371
18372A stack trace mechanism has been implemented.  The maximum stack
18373usage is about 2K on 32-bit platforms.  The debugger command "stat
18374stack" will display the current maximum stack usage.
18375
18376All public symbols and global variables within the subsystem are
18377now prefixed with the string "Acpi".  This keeps all of the
18378symbols grouped together in a kernel map, and avoids conflicts
18379with other kernel subsystems.
18380
18381Most of the internal fixed lookup tables have been moved into the
18382code segment via the const operator.
18383
18384Several enhancements have been made to the interpreter to both
18385reduce the code size and improve performance.
18386
18387Current core subsystem library code sizes are shown below.  These
18388are the code and data sizes for the acpica.lib produced by the
18389Microsoft Visual C++ 6.0 compiler, and these values do not include
18390any ACPI driver or OSPM code.  The debug version of the code
18391includes the full debug trace mechanism which contains over 700
18392invocations of the DEBUG_PRINT macro, 500 function entry macro
18393invocations, and over 900 function exit macro invocations --
18394leading to a much larger code and data size.  Note that these
18395values will vary depending on the efficiency of the compiler and
18396the compiler options used during generation.
18397
18398        Non-Debug Version:  64K Code,   5K Data,   69K Total
18399Debug Version:     137K Code,  58K Data,  195K Total
18400
18401 Linux:
18402
18403Implemented wbinvd() macro, pending a kernel-wide definition.
18404
18405Fixed /proc/acpi/event to handle poll() and short reads.
18406
18407 ASL Compiler, version X2026:
18408
18409Fixed a problem introduced in the previous label where the AML
18410
18411code emitted for package objects produced packages with zero
18412length.
18413
18414 ----------------------------------------
18415Summary of changes for this label: 08_16_01
18416
18417ACPI CA Core Subsystem:
18418
18419The following ACPI 2.0 ASL operators have been implemented in the
18420AML interpreter (These are already supported by the Intel ASL
18421compiler):  ToDecimalString, ToHexString, ToString, ToInteger, and
18422ToBuffer.  Support for 64-bit AML constants is implemented in the
18423AML parser, debugger, and disassembler.
18424
18425The internal memory tracking mechanism (leak detection code) has
18426been upgraded to reduce the memory overhead (a separate tracking
18427block is no longer allocated for each memory allocation), and now
18428supports all of the internal object caches.
18429
18430The data structures and code for the internal object caches have
18431been coelesced and optimized so that there is a single cache and
18432memory list data structure and a single group of functions that
18433implement generic cache management.  This has reduced the code
18434size in both the debug and release versions of the subsystem.
18435
18436The DEBUG_PRINT macro(s) have been optimized for size and replaced
18437by ACPI_DEBUG_PRINT.  The syntax for this macro is slightly
18438different, because it generates a single call to an internal
18439function.  This results in a savings of about 90 bytes per
18440invocation, resulting in an overall code and data savings of about
1844116% in the debug version of the subsystem.
18442
18443 Linux:
18444
18445Fixed C3 disk corruption problems and re-enabled C3 on supporting
18446machines.
18447
18448Integrated low-level sleep code by Patrick Mochel.
18449
18450Further tweaked source code Linuxization.
18451
18452Other minor fixes.
18453
18454 ASL Compiler:
18455
18456Support for ACPI 2.0 variable length packages is fixed/completed.
18457
18458Fixed a problem where the optional length parameter for the ACPI
184592.0 ToString operator.
18460
18461Fixed multiple extraneous error messages when a syntax error is
18462detected within the declaration line of a control method.
18463
18464 ----------------------------------------
18465Summary of changes for this label: 07_17_01
18466
18467ACPI CA Core Subsystem:
18468
18469Added a new interface named AcpiGetFirmwareTable to obtain any
18470ACPI table via the ACPI signature.  The interface can be called at
18471any time during kernel initialization, even before the kernel
18472virtual memory manager is initialized and paging is enabled.  This
18473allows kernel subsystems to obtain ACPI tables very early, even
18474before the ACPI CA subsystem is initialized.
18475
18476Fixed a problem where Fields defined with the AnyAcc attribute
18477could be resolved to the incorrect address under the following
18478conditions: 1) the field width is larger than 8 bits and 2) the
18479parent operation region is not defined on a DWORD boundary.
18480
18481Fixed a problem where the interpreter is not being locked during
18482namespace initialization (during execution of the _INI control
18483methods), causing an error when an attempt is made to release it
18484later.
18485
18486ACPI 2.0 support in the AML Interpreter has begun and will be
18487ongoing throughout the rest of this year.  In this label, The Mod
18488operator is implemented.
18489
18490Added a new data type to contain full PCI addresses named
18491ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,
18492and Function values.
18493
18494 Linux:
18495
18496Enhanced the Linux version of the source code to change most
18497capitalized ACPI type names to lowercase. For example, all
18498instances of ACPI_STATUS are changed to acpi_status.  This will
18499result in a large diff, but the change is strictly cosmetic and
18500aligns the CA code closer to the Linux coding standard.
18501
18502OSL Interfaces:
18503
18504The interfaces to the PCI configuration space have been changed to
18505add the PCI Segment number and to split the single 32-bit combined
18506DeviceFunction field into two 16-bit fields.  This was
18507accomplished by moving the four values that define an address in
18508PCI configuration space (segment, bus, device, and function) to
18509the new ACPI_PCI_ID structure.
18510
18511The changes to the PCI configuration space interfaces led to a
18512reexamination of the complete set of address space access
18513interfaces for PCI, I/O, and Memory.  The previously existing 18
18514interfaces have proven difficult to maintain (any small change
18515must be propagated across at least 6 interfaces) and do not easily
18516allow for future expansion to 64 bits if necessary.  Also, on some
18517systems, it would not be appropriate to demultiplex the access
18518width (8, 16, 32,or 64) before calling the OSL if the
18519corresponding native OS interfaces contain a similar access width
18520parameter.  For these reasons, the 18 address space interfaces
18521have been replaced by these 6 new ones:
18522
18523AcpiOsReadPciConfiguration
18524AcpiOsWritePciConfiguration
18525AcpiOsReadMemory
18526AcpiOsWriteMemory
18527AcpiOsReadPort
18528AcpiOsWritePort
18529
18530Added a new interface named AcpiOsGetRootPointer to allow the OSL
18531to perform the platform and/or OS-specific actions necessary to
18532obtain the ACPI RSDP table pointer.  On IA-32 platforms, this
18533interface will simply call down to the CA core to perform the low-
18534memory search for the table.  On IA-64, the RSDP is obtained from
18535EFI.  Migrating this interface to the OSL allows the CA core to
18536
18537remain OS and platform independent.
18538
18539Added a new interface named AcpiOsSignal to provide a generic
18540"function code and pointer" interface for various miscellaneous
18541signals and notifications that must be made to the host OS.   The
18542first such signals are intended to support the ASL Fatal and
18543Breakpoint operators.  In the latter case, the AcpiOsBreakpoint
18544interface has been obsoleted.
18545
18546The definition of the AcpiFormatException interface has been
18547changed to simplify its use.  The caller no longer must supply a
18548buffer to the call; A pointer to a const string is now returned
18549directly.  This allows the call to be easily used in printf
18550statements, etc. since the caller does not have to manage a local
18551buffer.
18552
18553
18554 ASL Compiler, Version X2025:
18555
18556The ACPI 2.0 Switch/Case/Default operators have been implemented
18557and are fully functional.  They will work with all ACPI 1.0
18558interpreters, since the operators are simply translated to If/Else
18559pairs.
18560
18561The ACPI 2.0 ElseIf operator is implemented and will also work
18562with 1.0 interpreters, for the same reason.
18563
18564Implemented support for ACPI 2.0 variable-length packages.  These
18565packages have a separate opcode, and their size is determined by
18566the interpreter at run-time.
18567
18568Documentation The ACPI CA Programmer Reference has been updated to
18569reflect the new interfaces and changes to existing interfaces.
18570
18571 ------------------------------------------
18572Summary of changes for this label: 06_15_01
18573
18574 ACPI CA Core Subsystem:
18575
18576Fixed a problem where a DWORD-accessed field within a Buffer
18577object would get its byte address inadvertently rounded down to
18578the nearest DWORD.  Buffers are always Byte-accessible.
18579
18580 ASL Compiler, version X2024:
18581
18582Fixed a problem where the Switch() operator would either fault or
18583hang the compiler.  Note however, that the AML code for this ACPI
185842.0 operator is not yet implemented.
18585
18586Compiler uses the new AcpiOsGetTimer interface to obtain compile
18587timings.
18588
18589Implementation of the CreateField operator automatically converts
18590a reference to a named field within a resource descriptor from a
18591byte offset to a bit offset if required.
18592
18593Added some missing named fields from the resource descriptor
18594support. These are the names that are automatically created by the
18595compiler to reference fields within a descriptor.  They are only
18596valid at compile time and are not passed through to the AML
18597interpreter.
18598
18599Resource descriptor named fields are now typed as Integers and
18600subject to compile-time typechecking when used in expressions.
18601
18602 ------------------------------------------
18603Summary of changes for this label: 05_18_01
18604
18605 ACPI CA Core Subsystem:
18606
18607Fixed a couple of problems in the Field support code where bits
18608from adjacent fields could be returned along with the proper field
18609bits. Restructured the field support code to improve performance,
18610readability and maintainability.
18611
18612New DEBUG_PRINTP macro automatically inserts the procedure name
18613into the output, saving hundreds of copies of procedure name
18614strings within the source, shrinking the memory footprint of the
18615debug version of the core subsystem.
18616
18617 Source Code Structure:
18618
18619The source code directory tree was restructured to reflect the
18620current organization of the component architecture.  Some files
18621and directories have been moved and/or renamed.
18622
18623 Linux:
18624
18625Fixed leaking kacpidpc processes.
18626
18627Fixed queueing event data even when /proc/acpi/event is not
18628opened.
18629
18630 ASL Compiler, version X2020:
18631
18632Memory allocation performance enhancement - over 24X compile time
18633improvement on large ASL files.  Parse nodes and namestring
18634buffers are now allocated from a large internal compiler buffer.
18635
18636The temporary .SRC file is deleted unless the "-s" option is
18637specified
18638
18639The "-d" debug output option now sends all output to the .DBG file
18640instead of the console.
18641
18642"External" second parameter is now optional
18643
18644"ElseIf" syntax now properly allows the predicate
18645
18646Last operand to "Load" now recognized as a Target operand
18647
18648Debug object can now be used anywhere as a normal object.
18649
18650ResourceTemplate now returns an object of type BUFFER
18651
18652EISAID now returns an object of type INTEGER
18653
18654"Index" now works with a STRING operand
18655
18656"LoadTable" now accepts optional parameters
18657
18658"ToString" length parameter is now optional
18659
18660"Interrupt (ResourceType," parse error fixed.
18661
18662"Register" with a user-defined region space parse error fixed
18663
18664Escaped backslash at the end of a string ("\\") scan/parse error
18665fixed
18666
18667"Revision" is now an object of type INTEGER.
18668
18669
18670
18671------------------------------------------
18672Summary of changes for this label: 05_02_01
18673
18674Linux:
18675
18676/proc/acpi/event now blocks properly.
18677
18678Removed /proc/sys/acpi. You can still dump your DSDT from
18679/proc/acpi/dsdt.
18680
18681 ACPI CA Core Subsystem:
18682
18683Fixed a problem introduced in the previous label where some of the
18684"small" resource descriptor types were not recognized.
18685
18686Improved error messages for the case where an ASL Field is outside
18687the range of the parent operation region.
18688
18689 ASL Compiler, version X2018:
18690
18691
18692Added error detection for ASL Fields that extend beyond the length
18693of the parent operation region (only if the length of the region
18694is known at compile time.)  This includes fields that have a
18695minimum access width that is smaller than the parent region, and
18696individual field units that are partially or entirely beyond the
18697extent of the parent.
18698
18699
18700
18701------------------------------------------
18702Summary of changes for this label: 04_27_01
18703
18704 ACPI CA Core Subsystem:
18705
18706Fixed a problem where the namespace mutex could be released at the
18707wrong time during execution of AcpiRemoveAddressSpaceHandler.
18708
18709Added optional thread ID output for debug traces, to simplify
18710debugging of multiple threads.  Added context switch notification
18711when the debug code realizes that a different thread is now
18712executing ACPI code.
18713
18714Some additional external data types have been prefixed with the
18715string "ACPI_" for consistency.  This may effect existing code.
18716The data types affected are the external callback typedefs - e.g.,
18717
18718WALK_CALLBACK becomes ACPI_WALK_CALLBACK.
18719
18720 Linux:
18721
18722Fixed an issue with the OSL semaphore implementation where a
18723thread was waking up with an error from receiving a SIGCHLD
18724signal.
18725
18726Linux version of ACPI CA now uses the system C library for string
18727manipulation routines instead of a local implementation.
18728
18729Cleaned up comments and removed TBDs.
18730
18731 ASL Compiler, version X2017:
18732
18733Enhanced error detection and reporting for all file I/O
18734operations.
18735
18736 Documentation:
18737
18738Programmer Reference updated to version 1.06.
18739
18740
18741
18742------------------------------------------
18743Summary of changes for this label: 04_13_01
18744
18745 ACPI CA Core Subsystem:
18746
18747Restructured support for BufferFields and RegionFields.
18748BankFields support is now fully operational.  All known 32-bit
18749limitations on field sizes have been removed.  Both BufferFields
18750and (Operation) RegionFields are now supported by the same field
18751management code.
18752
18753Resource support now supports QWORD address and IO resources. The
1875416/32/64 bit address structures and the Extended IRQ structure
18755have been changed to properly handle Source Resource strings.
18756
18757A ThreadId of -1 is now used to indicate a "mutex not acquired"
18758condition internally and must never be returned by AcpiOsThreadId.
18759This reserved value was changed from 0 since Unix systems allow a
18760thread ID of 0.
18761
18762Linux:
18763
18764Driver code reorganized to enhance portability
18765
18766Added a kernel configuration option to control ACPI_DEBUG
18767
18768Fixed the EC driver to honor _GLK.
18769
18770ASL Compiler, version X2016:
18771
18772Fixed support for the "FixedHw" keyword.  Previously, the FixedHw
18773address space was set to 0, not 0x7f as it should be.
18774
18775 ------------------------------------------
18776Summary of changes for this label: 03_13_01
18777
18778 ACPI CA Core Subsystem:
18779
18780During ACPI initialization, the _SB_._INI method is now run if
18781present.
18782
18783Notify handler fix - notifies are deferred until the parent method
18784completes execution.  This fixes the "mutex already acquired"
18785issue seen occasionally.
18786
18787Part of the "implicit conversion" rules in ACPI 2.0 have been
18788found to cause compatibility problems with existing ASL/AML.  The
18789convert "result-to-target-type" implementation has been removed
18790for stores to method Args and Locals.  Source operand conversion
18791is still fully implemented.  Possible changes to ACPI 2.0
18792specification pending.
18793
18794Fix to AcpiRsCalculatePciRoutingTableLength to return correct
18795length.
18796
18797Fix for compiler warnings for 64-bit compiles.
18798
18799 Linux:
18800
18801/proc output aligned for easier parsing.
18802
18803Release-version compile problem fixed.
18804
18805New kernel configuration options documented in Configure.help.
18806
18807IBM 600E - Fixed Sleep button may generate "Invalid <NULL>
18808context" message.
18809
18810 OSPM:
18811
18812Power resource driver integrated with bus manager.
18813
18814Fixed kernel fault during active cooling for thermal zones.
18815
18816Source Code:
18817
18818The source code tree has been restructured.
18819
18820
18821
18822------------------------------------------
18823Summary of changes for this label: 03_02_01
18824
18825 Linux OS Services Layer (OSL):
18826
18827Major revision of all Linux-specific code.
18828
18829Modularized all ACPI-specific drivers.
18830
18831Added new thermal zone and power resource drivers.
18832
18833Revamped /proc interface (new functionality is under /proc/acpi).
18834
18835New kernel configuration options.
18836
18837 Linux known issues:
18838
18839New kernel configuration options not documented in Configure.help
18840yet.
18841
18842
18843Module dependencies not currently implemented. If used, they
18844should be loaded in this order: busmgr, power, ec, system,
18845processor, battery, ac_adapter, button, thermal.
18846
18847Modules will not load if CONFIG_MODVERSION is set.
18848
18849IBM 600E - entering S5 may reboot instead of shutting down.
18850
18851IBM 600E - Sleep button may generate "Invalid <NULL> context"
18852message.
18853
18854Some systems may fail with "execution mutex already acquired"
18855message.
18856
18857 ACPI CA Core Subsystem:
18858
18859Added a new OSL Interface, AcpiOsGetThreadId.  This was required
18860for the  deadlock detection code. Defined to return a non-zero, 32-
18861bit thread ID for the currently executing thread.  May be a non-
18862zero constant integer on single-thread systems.
18863
18864Implemented deadlock detection for internal subsystem mutexes.  We
18865may add conditional compilation for this code (debug only) later.
18866
18867ASL/AML Mutex object semantics are now fully supported.  This
18868includes multiple acquires/releases by owner and support for the
18869
18870Mutex SyncLevel parameter.
18871
18872A new "Force Release" mechanism automatically frees all ASL
18873Mutexes that have been acquired but not released when a thread
18874exits the interpreter.  This forces conformance to the ACPI spec
18875("All mutexes must be released when an invocation exits") and
18876prevents deadlocked ASL threads.  This mechanism can be expanded
18877(later) to monitor other resource acquisitions if OEM ASL code
18878continues to misbehave (which it will).
18879
18880Several new ACPI exception codes have been added for the Mutex
18881support.
18882
18883Recursive method calls are now allowed and supported (the ACPI
18884spec does in fact allow recursive method calls.)  The number of
18885recursive calls is subject to the restrictions imposed by the
18886SERIALIZED method keyword and SyncLevel (ACPI 2.0) method
18887parameter.
18888
18889Implemented support for the SyncLevel parameter for control
18890methods (ACPI 2.0 feature)
18891
18892Fixed a deadlock problem when multiple threads attempted to use
18893the interpreter.
18894
18895Fixed a problem where the string length of a String package
18896element was not always set in a package returned from
18897AcpiEvaluateObject.
18898
18899Fixed a problem where the length of a String package element was
18900not always included in the length of the overall package returned
18901from AcpiEvaluateObject.
18902
18903Added external interfaces (Acpi*) to the ACPI debug memory
18904manager.  This manager keeps a list of all outstanding
18905allocations, and can therefore detect memory leaks and attempts to
18906free memory blocks more than once. Useful for code such as the
18907power manager, etc.  May not be appropriate for device drivers.
18908Performance with the debug code enabled is slow.
18909
18910The ACPI Global Lock is now an optional hardware element.
18911
18912 ASL Compiler Version X2015:
18913
18914Integrated changes to allow the compiler to be generated on
18915multiple platforms.
18916
18917Linux makefile added to generate the compiler on Linux
18918
18919 Source Code:
18920
18921All platform-specific headers have been moved to their own
18922subdirectory, Include/Platform.
18923
18924New source file added, Interpreter/ammutex.c
18925
18926New header file, Include/acstruct.h
18927
18928 Documentation:
18929
18930The programmer reference has been updated for the following new
18931interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree
18932
18933 ------------------------------------------
18934Summary of changes for this label: 02_08_01
18935
18936Core ACPI CA Subsystem: Fixed a problem where an error was
18937incorrectly returned if the return resource buffer was larger than
18938the actual data (in the resource interfaces).
18939
18940References to named objects within packages are resolved to the
18941
18942full pathname string before packages are returned directly (via
18943the AcpiEvaluateObject interface) or indirectly via the resource
18944interfaces.
18945
18946Linux OS Services Layer (OSL):
18947
18948Improved /proc battery interface.
18949
18950
18951Added C-state debugging output and other miscellaneous fixes.
18952
18953ASL Compiler Version X2014:
18954
18955All defined method arguments can now be used as local variables,
18956including the ones that are not actually passed in as parameters.
18957The compiler tracks initialization of the arguments and issues an
18958exception if they are used without prior assignment (just like
18959locals).
18960
18961The -o option now specifies a filename prefix that is used for all
18962output files, including the AML output file.  Otherwise, the
18963default behavior is as follows:  1) the AML goes to the file
18964specified in the DSDT.  2) all other output files use the input
18965source filename as the base.
18966
18967 ------------------------------------------
18968Summary of changes for this label: 01_25_01
18969
18970Core ACPI CA Subsystem: Restructured the implementation of object
18971store support within the  interpreter.  This includes support for
18972the Store operator as well  as any ASL operators that include a
18973target operand.
18974
18975Partially implemented support for Implicit Result-to-Target
18976conversion. This is when a result object is converted on the fly
18977to the type of  an existing target object.  Completion of this
18978support is pending  further analysis of the ACPI specification
18979concerning this matter.
18980
18981CPU-specific code has been removed from the subsystem (hardware
18982directory).
18983
18984New Power Management Timer functions added
18985
18986Linux OS Services Layer (OSL): Moved system state transition code
18987to the core, fixed it, and modified  Linux OSL accordingly.
18988
18989Fixed C2 and C3 latency calculations.
18990
18991
18992We no longer use the compilation date for the version message on
18993initialization, but retrieve the version from AcpiGetSystemInfo().
18994
18995Incorporated for fix Sony VAIO machines.
18996
18997Documentation:  The Programmer Reference has been updated and
18998reformatted.
18999
19000
19001ASL Compiler:  Version X2013: Fixed a problem where the line
19002numbering and error reporting could get out  of sync in the
19003presence of multiple include files.
19004
19005 ------------------------------------------
19006Summary of changes for this label: 01_15_01
19007
19008Core ACPI CA Subsystem:
19009
19010Implemented support for type conversions in the execution of the
19011ASL  Concatenate operator (The second operand is converted to
19012match the type  of the first operand before concatenation.)
19013
19014Support for implicit source operand conversion is partially
19015implemented.   The ASL source operand types Integer, Buffer, and
19016String are freely  interchangeable for most ASL operators and are
19017converted by the interpreter  on the fly as required.  Implicit
19018Target operand conversion (where the  result is converted to the
19019target type before storing) is not yet implemented.
19020
19021Support for 32-bit and 64-bit BCD integers is implemented.
19022
19023Problem fixed where a field read on an aligned field could cause a
19024read  past the end of the field.
19025
19026New exception, AE_AML_NO_RETURN_VALUE, is returned when a method
19027does not return a value, but the caller expects one.  (The ASL
19028compiler flags this as a warning.)
19029
19030ASL Compiler:
19031
19032Version X2011:
190331. Static typechecking of all operands is implemented. This
19034prevents the use of invalid objects (such as using a Package where
19035an Integer is required) at compile time instead of at interpreter
19036run-time.
190372. The ASL source line is printed with ALL errors and warnings.
190383. Bug fix for source EOF without final linefeed.
190394. Debug option is split into a parse trace and a namespace trace.
190405. Namespace output option (-n) includes initial values for
19041integers and strings.
190426. Parse-only option added for quick syntax checking.
190437. Compiler checks for duplicate ACPI name declarations
19044
19045Version X2012:
190461. Relaxed typechecking to allow interchangeability between
19047strings, integers, and buffers.  These types are now converted by
19048the interpreter at runtime.
190492. Compiler reports time taken by each internal subsystem in the
19050debug         output file.
19051
19052
19053 ------------------------------------------
19054Summary of changes for this label: 12_14_00
19055
19056ASL Compiler:
19057
19058This is the first official release of the compiler. Since the
19059compiler requires elements of the Core Subsystem, this label
19060synchronizes everything.
19061
19062------------------------------------------
19063Summary of changes for this label: 12_08_00
19064
19065
19066Fixed a problem where named references within the ASL definition
19067of both OperationRegions and CreateXXXFields did not work
19068properly.  The symptom was an AE_AML_OPERAND_TYPE during
19069initialization of the region/field. This is similar (but not
19070related internally) to the problem that was fixed in the last
19071label.
19072
19073Implemented both 32-bit and 64-bit support for the BCD ASL
19074functions ToBCD and FromBCD.
19075
19076Updated all legal headers to include "2000" in the copyright
19077years.
19078
19079 ------------------------------------------
19080Summary of changes for this label: 12_01_00
19081
19082Fixed a problem where method invocations within the ASL definition
19083of both OperationRegions and CreateXXXFields did not work
19084properly.  The symptom was an AE_AML_OPERAND_TYPE during
19085initialization of the region/field:
19086
19087  nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments
19088[DEBG]   ammonad-0284: Exec_monadic2_r/Not: bad operand(s)
19089(0x3005)
19090
19091Fixed a problem where operators with more than one nested
19092subexpression would fail.  The symptoms were varied, by mostly
19093AE_AML_OPERAND_TYPE errors.  This was actually a rather serious
19094problem that has gone unnoticed until now.
19095
19096  Subtract (Add (1,2), Multiply (3,4))
19097
19098Fixed a problem where AcpiGetHandle didn't quite get fixed in the
19099previous build (The prefix part of a relative path was handled
19100incorrectly).
19101
19102Fixed a problem where Operation Region initialization failed if
19103the operation region name was a "namepath" instead of a simple
19104"nameseg". Symptom was an AE_NO_OPERAND error.
19105
19106Fixed a problem where an assignment to a local variable via the
19107indirect RefOf mechanism only worked for the first such
19108assignment.  Subsequent assignments were ignored.
19109
19110 ------------------------------------------
19111Summary of changes for this label: 11_15_00
19112
19113ACPI 2.0 table support with backwards support for ACPI 1.0 and the
191140.71 extensions.  Note: although we can read ACPI 2.0 BIOS tables,
19115the AML  interpreter does NOT have support for the new 2.0 ASL
19116grammar terms at this time.
19117
19118All ACPI hardware access is via the GAS structures in the ACPI 2.0
19119FADT.
19120
19121All physical memory addresses across all platforms are now 64 bits
19122wide. Logical address width remains dependent on the platform
19123(i.e., "void *").
19124
19125AcpiOsMapMemory interface changed to a 64-bit physical address.
19126
19127The AML interpreter integer size is now 64 bits, as per the ACPI
191282.0 specification.
19129
19130For backwards compatibility with ACPI 1.0, ACPI tables with a
19131revision number less than 2 use 32-bit integers only.
19132
19133Fixed a problem where the evaluation of OpRegion operands did not
19134always resolve them to numbers properly.
19135
19136------------------------------------------
19137Summary of changes for this label: 10_20_00
19138
19139Fix for CBN_._STA issue.  This fix will allow correct access to
19140CBN_ OpRegions when the _STA returns 0x8.
19141
19142Support to convert ACPI constants (Ones, Zeros, One) to actual
19143values before a package object is returned
19144
19145Fix for method call as predicate to if/while construct causing
19146incorrect if/while behavior
19147
19148Fix for Else block package lengths sometimes calculated wrong (if
19149block > 63 bytes)
19150
19151Fix for Processor object length field, was always zero
19152
19153Table load abort if FACP sanity check fails
19154
19155Fix for problem with Scope(name) if name already exists
19156
19157Warning emitted if a named object referenced cannot be found
19158(resolved) during method execution.
19159
19160
19161
19162
19163
19164------------------------------------------
19165Summary of changes for this label: 9_29_00
19166
19167New table initialization interfaces: AcpiInitializeSubsystem no
19168longer has any parameters AcpiFindRootPointer - Find the RSDP (if
19169necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-
19170>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by
19171AcpiLoadTables
19172
19173Note: These interface changes require changes to all existing OSDs
19174
19175The PCI_Config default address space handler is always installed
19176at the root namespace object.
19177
19178-------------------------------------------
19179Summary of changes for this label: 09_15_00
19180
19181The new initialization architecture is implemented.  New
19182interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)
19183AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace
19184
19185(Namespace is automatically loaded when a table is loaded)
19186
19187The ACPI_OPERAND_OBJECT has been optimized to shrink its size from
1918852 bytes to 32 bytes.  There is usually one of these for every
19189namespace object, so the memory savings is significant.
19190
19191Implemented just-in-time evaluation of the CreateField operators.
19192
19193Bug fixes for IA-64 support have been integrated.
19194
19195Additional code review comments have been implemented
19196
19197The so-called "third pass parse" has been replaced by a final walk
19198through the namespace to initialize all operation regions (address
19199spaces) and fields that have not yet been initialized during the
19200execution of the various _INI and REG methods.
19201
19202New file - namespace/nsinit.c
19203
19204-------------------------------------------
19205Summary of changes for this label: 09_01_00
19206
19207Namespace manager data structures have been reworked to change the
19208primary  object from a table to a single object.  This has
19209resulted in dynamic memory  savings of 3X within the namespace and
192102X overall in the ACPI CA subsystem.
19211
19212Fixed problem where the call to AcpiEvFindPciRootBuses was
19213inadvertently left  commented out.
19214
19215Reduced the warning count when generating the source with the GCC
19216compiler.
19217
19218Revision numbers added to each module header showing the
19219SourceSafe version of the file.  Please refer to this version
19220number when giving us feedback or comments on individual modules.
19221
19222The main object types within the subsystem have been renamed to
19223clarify their  purpose:
19224
19225ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT
19226ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT
19227ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE
19228
19229NOTE: no changes to the initialization sequence are included in
19230this label.
19231
19232-------------------------------------------
19233Summary of changes for this label: 08_23_00
19234
19235Fixed problem where TerminateControlMethod was being called
19236multiple times per  method
19237
19238Fixed debugger problem where single stepping caused a semaphore to
19239be  oversignalled
19240
19241Improved performance through additional parse object caching -
19242added  ACPI_EXTENDED_OP type
19243
19244-------------------------------------------
19245Summary of changes for this label: 08_10_00
19246
19247Parser/Interpreter integration:  Eliminated the creation of
19248complete parse trees  for ACPI tables and control methods.
19249Instead, parse subtrees are created and  then deleted as soon as
19250they are processed (Either entered into the namespace or  executed
19251by the interpreter).  This reduces the use of dynamic kernel
19252memory  significantly. (about 10X)
19253
19254Exception codes broken into classes and renumbered.  Be sure to
19255recompile all  code that includes acexcep.h.  Hopefully we won't
19256have to renumber the codes  again now that they are split into
19257classes (environment, programmer, AML code,  ACPI table, and
19258internal).
19259
19260Fixed some additional alignment issues in the Resource Manager
19261subcomponent
19262
19263Implemented semaphore tracking in the AcpiExec utility, and fixed
19264several places  where mutexes/semaphores were being unlocked
19265without a corresponding lock  operation.  There are no known
19266semaphore or mutex "leaks" at this time.
19267
19268Fixed the case where an ASL Return operator is used to return an
19269unnamed  package.
19270
19271-------------------------------------------
19272Summary of changes for this label: 07_28_00
19273
19274Fixed a problem with the way addresses were calculated in
19275AcpiAmlReadFieldData()  and AcpiAmlWriteFieldData(). This problem
19276manifested itself when a Field was  created with WordAccess or
19277DwordAccess, but the field unit defined within the  Field was less
19278
19279than a Word or Dword.
19280
19281Fixed a problem in AmlDumpOperands() module's loop to pull
19282operands off of the  operand stack to display information. The
19283problem manifested itself as a TLB  error on 64-bit systems when
19284accessing an operand stack with two or more  operands.
19285
19286Fixed a problem with the PCI configuration space handlers where
19287context was  getting confused between accesses. This required a
19288change to the generic address  space handler and address space
19289setup definitions. Handlers now get both a  global handler context
19290(this is the one passed in by the user when executing
19291AcpiInstallAddressSpaceHandler() and a specific region context
19292that is unique to  each region (For example, the _ADR, _SEG and
19293_BBN values associated with a  specific region). The generic
19294function definitions have changed to the  following:
19295
19296typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,
19297UINT32 Address, UINT32 BitWidth, UINT32 *Value, void
19298*HandlerContext, // This used to be void *Context void
19299*RegionContext); // This is an additional parameter
19300
19301typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE
19302RegionHandle, UINT32 Function, void *HandlerContext,  void
19303**RegionContext); // This used to be **ReturnContext
19304
19305-------------------------------------------
19306Summary of changes for this label: 07_21_00
19307
19308Major file consolidation and rename.  All files within the
19309interpreter have been  renamed as well as most header files.  This
19310was done to prevent collisions with  existing files in the host
19311OSs -- filenames such as "config.h" and "global.h"  seem to be
19312quite common.  The VC project files have been updated.  All
19313makefiles  will require modification.
19314
19315The parser/interpreter integration continues in Phase 5 with the
19316implementation  of a complete 2-pass parse (the AML is parsed
19317twice) for each table;  This  avoids the construction of a huge
19318parse tree and therefore reduces the amount of  dynamic memory
19319required by the subsystem.  Greater use of the parse object cache
19320means that performance is unaffected.
19321
19322Many comments from the two code reviews have been rolled in.
19323
19324The 64-bit alignment support is complete.
19325
19326-------------------------------------------
19327Summary of changes for this label: 06_30_00
19328
19329With a nod and a tip of the hat to the technology of yesteryear,
19330we've added  support in the source code for 80 column output
19331devices.  The code is now mostly  constrained to 80 columns or
19332less to support environments and editors that 1)  cannot display
19333or print more than 80 characters on a single line, and 2) cannot
19334disable line wrapping.
19335
19336A major restructuring of the namespace data structure has been
19337completed.  The  result is 1) cleaner and more
19338understandable/maintainable code, and 2) a  significant reduction
19339in the dynamic memory requirement for each named ACPI  object
19340(almost half).
19341
19342-------------------------------------------
19343Summary of changes for this label: 06_23_00
19344
19345Linux support has been added.  In order to obtain approval to get
19346the ACPI CA  subsystem into the Linux kernel, we've had to make
19347quite a few changes to the  base subsystem that will affect all
19348users (all the changes are generic and OS- independent).  The
19349effects of these global changes have been somewhat far  reaching.
19350Files have been merged and/or renamed and interfaces have been
19351renamed.   The major changes are described below.
19352
19353Osd* interfaces renamed to AcpiOs* to eliminate namespace
19354pollution/confusion  within our target kernels.  All OSD
19355interfaces must be modified to match the new  naming convention.
19356
19357Files merged across the subsystem.  A number of the smaller source
19358and header  files have been merged to reduce the file count and
19359increase the density of the  existing files.  There are too many
19360to list here.  In general, makefiles that  call out individual
19361files will require rebuilding.
19362
19363Interpreter files renamed.  All interpreter files now have the
19364prefix am*  instead of ie* and is*.
19365
19366Header files renamed:  The acapi.h file is now acpixf.h.  The
19367acpiosd.h file is  now acpiosxf.h.  We are removing references to
19368the acronym "API" since it is  somewhat windowsy. The new name is
19369"external interface" or xface or xf in the  filenames.j
19370
19371
19372All manifest constants have been forced to upper case (some were
19373mixed case.)   Also, the string "ACPI_" has been prepended to many
19374(not all) of the constants,  typedefs, and structs.
19375
19376The globals "DebugLevel" and "DebugLayer" have been renamed
19377"AcpiDbgLevel" and  "AcpiDbgLayer" respectively.
19378
19379All other globals within the subsystem are now prefixed with
19380"AcpiGbl_" Internal procedures within the subsystem are now
19381prefixed with "Acpi" (with only  a few exceptions).  The original
19382two-letter abbreviation for the subcomponent  remains after "Acpi"
19383- for example, CmCallocate became AcpiCmCallocate.
19384
19385Added a source code translation/conversion utility.  Used to
19386generate the Linux  source code, it can be modified to generate
19387other types of source as well. Can  also be used to cleanup
19388existing source by removing extraneous spaces and blank  lines.
19389Found in tools/acpisrc/*
19390
19391OsdUnMapMemory was renamed to OsdUnmapMemory and then
19392AcpiOsUnmapMemory.  (UnMap  became Unmap).
19393
19394A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.
19395When set to  one, this indicates that the caller wants to use the
19396
19397semaphore as a mutex, not a  counting semaphore.  ACPI CA uses
19398both types.  However, implementers of this  call may want to use
19399different OS primitives depending on the type of semaphore
19400requested.  For example, some operating systems provide separate
19401
19402"mutex" and  "semaphore" interfaces - where the mutex interface is
19403much faster because it  doesn't have all the overhead of a full
19404semaphore implementation.
19405
19406Fixed a deadlock problem where a method that accesses the PCI
19407address space can  block forever if it is the first access to the
19408space.
19409
19410-------------------------------------------
19411Summary of changes for this label: 06_02_00
19412
19413Support for environments that cannot handle unaligned data
19414accesses (e.g.  firmware and OS environments devoid of alignment
19415handler technology namely  SAL/EFI and the IA-64 Linux kernel) has
19416been added (via configurable macros) in  these three areas: -
19417Transfer of data from the raw AML byte stream is done via byte
19418moves instead of    word/dword/qword moves. - External objects are
19419aligned within the user buffer, including package   elements (sub-
19420objects). - Conversion of name strings to UINT32 Acpi Names is now
19421done byte-wise.
19422
19423The Store operator was modified to mimic Microsoft's
19424implementation when storing  to a Buffer Field.
19425
19426Added a check of the BM_STS bit before entering C3.
19427
19428The methods subdirectory has been obsoleted and removed.  A new
19429file, cmeval.c  subsumes the functionality.
19430
19431A 16-bit (DOS) version of AcpiExec has been developed.  The
19432makefile is under  the acpiexec directory.
19433