13912 Commits

Author SHA1 Message Date
Colin Ian King
113286a937 utdecode: fix missing comma in array declaration AcpiGbl_GenericNotify
There is a missing comma between strings on the array declaration. Fix
this by adding the missing comma.

Fixes: 205ac8fc7210 ("ACPI 6.3: add Error Disconnect Recover Notification value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
2019-02-18 16:53:02 +00:00
Robert Moore
e66a8468f8 Update version to 20190215
Version 20190215
R02_15_19
2019-02-15 09:36:06 -08:00
Robert Moore
caac614666 Logfile: Changes for version 20190215
Version 20190215
2019-02-15 09:35:09 -08:00
Robert Moore
a3c2251a16
Merge pull request #447 from SchmErik/spell-check
Trivial: fix spelling mistakes
2019-02-15 06:57:42 -08:00
Erik Schmauss
ff5a9c5437 Trivial: fix spelling mistakes
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-14 15:14:57 -08:00
Robert Moore
0c9876c5c9 Detabify a few source files, no functional change
Removed 16 tabs.
2019-02-14 14:02:49 -08:00
Robert Moore
1d914224b9 acpiexec: Add a cast to eliminate warning on VC
In some cases, VC is pickier than gcc.
2019-02-14 13:52:31 -08:00
Robert Moore
703281c033
Merge pull request #445 from SchmErik/acpi63v3
ACPI 6.3 updates
2019-02-14 13:24:08 -08:00
Erik Schmauss
55500e3426 iasl: templates: update GTDT (Rev 3)
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
2cd926fdf3 ACPI 6.3: add GTDT Revision 3 support
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
5c1310089f iASL: templates: update HMAT
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
a216e8ca9f ACPI 6.3: HMAT updates
This change reserves several field to be reserved as well as rename
subtable 0 to "memory proximity domain attributes"

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
ed187488d1 ACPI 6.3: NFIT: change field name, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
9cef114ce6 ACPI 6.3: MADT: add online capable flag
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
c736ea34ad ACPI 6.3: PPTT add additional fields in Processor Structure Flags
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
205ac8fc72 ACPI 6.3: add Error Disconnect Recover Notification value
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
31b184052a ACPI 6.3: MADT: add support for statistical profiling in GICC
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
a4849944e8 ACPI 6.3: add PCC operation region support for AML interpreter
This change adds PCC operation region support in the AML interpreter
and a default handler for acpiexec. According to the specification,
the PCC operation region performs a transaction when the COMD field
is written. This allows ASL to write data to other fields before
sending the data.

In order to accommodate this protocol, a temorary buffer is added
to the regionfield object to accumulate writes. If any offset that
spans COMD is written, the temporary buffer is sent to the PCC
operation region handler to be processed.

This change also renames the PCC keyword to PlatformCommChannel.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
8c9eba7811 ACPI 6.3: SRAT: add Generic Affinity Structure subtable
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
b11446d8b4 ACPI 6.3: Add Trigger order to PCC Identifier structure in PDTT
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Erik Schmauss
0015e2491b ACPI 6.3: Adding predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-13 13:22:14 -08:00
Robert Moore
9dca9d714d
Merge pull request #444 from SchmErik/iasl-trivial
iASL: fix error message and remove unused messages
2019-02-13 10:42:58 -08:00
Erik Schmauss
0ec1ff1486 iASL: fix error message and remove unused messages
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-07 15:11:20 -08:00
Robert Moore
a9709ffe6e
Merge pull request #443 from SchmErik/xref-error
Xref error
2019-02-07 09:13:07 -08:00
Erik Schmauss
d39cd405e8 ASLTS: add flag to expect cross reference error during compilation
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-05 15:02:26 -08:00
Erik Schmauss
66c0ddfa2c iASL: move expected error code checking to avoid recusive call
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-02-05 14:08:21 -08:00
Robert Moore
8fee7165cc iASL: Add checks for illegal object references
Certain references will cause runtime errors, such as a reference
from outside a method to an object within the method. Such an
object is only temporary and exists only during the execution of
the method.
2019-02-05 09:07:26 -08:00
Robert Moore
2efd616e5b Update/clarify messages for control method failures
Attempting to improve error messages to clarify that errors
are bubbled up from the original error, possibly across nested
methods.
2019-01-23 13:14:01 -08:00
Robert Moore
e793a3fd46
Merge pull request #440 from SchmErik/iasl-comment
iASL: add explanation for nameseg lexing, no functional change
2019-01-18 10:36:50 -08:00
Robert Moore
7c1aa540d3
Merge pull request #437 from SchmErik/remove-legacy-module-level-code
Remove legacy module-level code support
2019-01-18 09:53:03 -08:00
Robert Moore
349dd29335 Debugger: Fix possible fault with the "test objects" command
- Fault on Field Units
- Some restructuring
- General cleanup of dbtest module
2019-01-18 09:49:43 -08:00
Robert Moore
041c8280ad iASL: Emit error for creation of a zero-length op region
Such a region is unusable.
2019-01-16 12:53:43 -08:00
Robert Moore
387c850c5d Interpreter: Emit warning for creation of a zero-length op region
Nothing can be done with such a region. Just emit a warning so as
not to abort a table load or running method.
2019-01-16 12:52:19 -08:00
Robert Moore
9104715b26 Build instructions
Small update.
2019-01-15 08:08:08 -08:00
Erik Schmauss
f4fafd6245 iASL: add explanation for nameseg lexing, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-01-11 13:38:58 -08:00
Robert Moore
0870833dd2
Merge pull request #439 from SchmErik/trivial-makefile
iASL: Makefile: support parent directories with spaces
2019-01-10 08:59:56 -08:00
Erik Schmauss
feca5d3bd1 iASL: Makefile: support parent directories with spaces
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-01-09 16:42:31 -08:00
Robert Moore
aace846bb8 Update version to 20190108
Version 20190108
R01_08_19
2019-01-08 13:03:54 -08:00
Robert Moore
da0336482f Logfile: Changes for version 20190108
Version 20190108
2019-01-08 13:03:06 -08:00
Erik Schmauss
47f5607c20 Remove legacy module-level code support
Module-level code refers to executable ASL code that runs during
table load. This is typically used in ASL to declare named objects
based on a condition evaluated during table load like so:

DefinitionBlock(...)
{
  OpreationRegion (OPR1, SystemMemory, ...)
  Field (OPR1)
  {
    FLD1, 8 /* Assume that FLD1's value is 0x1 */
  }

  /* The if statement below is referred to as module-level code */

  If (FLD1)
  {
    /* Declare DEV1 conditionally */
    Device (DEV1) {...}
  }

  Device (DEV2)
  {
    ...
  }
}

In legacy module-level code, the execution of the If statement
was deferred after other modules were loaded. The order of
code execution for the table above is the following:

1.) Load OPR1 to the ACPI Namespace
2.) Load FLD1 to the ACPI Namespace (not intended for drivers)
3.) Load DEV2 to the ACPI Namespace
4.) Execute If (FLD1) and load DEV1 if the condition is true

This legacy approach can be problematic for tables that look like the
following:

DefinitionBlock(...)
{
  OpreationRegion (OPR1, SystemMemory, ...)
  Field (OPR1)
  {
    FLD1, 8 /* Assume that FLD1's value is 0x1 */
  }

  /* The if statement below is referred to as module-level code */

  If (FLD1)
  {
    /* Declare DEV1 conditionally */
    Device (DEV1) {...}
  }

  Scope (DEV1)
  {
    /* Add objects DEV1's scope */
    Name (OBJ1, 0x1234)
  }
}

When loading this in the legacy approach, Scope DEV1 gets evaluated
before the If statement. The following is the order of execution:

1.) Load OPR1 to the ACPI Namespace
2.) Load FLD1 to the ACPI Namespace (not intended for drivers)
3.) Add OBJ1 under DEV1's scope -- ERROR. DEV1 does not exist
4.) Execute If (FLD1) and load DEV1 if the condition is true

The legacy approach can never succeed for tables like this due to the
deferral of the module-level code. Due to this limitation, a new
module-level code was developed. This new approach exeutes if
statements in the order that they appear in the definition block.
With this approach, the order of execution for the above defintion
block is as follows:

1.) Load OPR1 to the ACPI Namespace
2.) Load FLD1 to the ACPI Namespace (not intended for drivers)
3.) Execute If (FLD1) and load DEV1 because the condition is true
4.) Add OBJ1 under DEV1's scope.

Since DEV1 is loaded in the namespace in step 3, step 4 executes
successfully.

This change removes support for the legacy module-level code
execution. From this point onward, the new module-level code
execution will be the official approach.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2019-01-08 10:54:24 -08:00
Robert Moore
62f4f98e94 All acpica: Update copyrights to 2019
including tool signons.
2019-01-08 10:32:54 -08:00
Robert Moore
f446e7b05a ASLTS: Update all copyrights to 2019
All ASL code in the test suite.
2019-01-08 10:10:05 -08:00
Robert Moore
4a2e259a59
Merge pull request #435 from SchmErik/tpm2rev4
iASL: update tpm2 template to revision 4
2019-01-07 12:58:59 -08:00
Robert Moore
f77565e28b acpiexec: Add option to dump extra info for memory leaks
Dump entire object/buffer for any memory leaks detected by
the object/cache tracking mechanism.
2018-12-19 08:04:40 -08:00
Erik Schmauss
97937f367a iASL: update tpm2 template to revision 4
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-12-18 11:53:13 -08:00
Robert Moore
f3198c12f2 Convert more ACPI errors to firmware errors
Also adds a new firmware error function, AcpiBiosException.
2018-12-13 14:49:38 -08:00
Robert Moore
f2d091cbf5 Update version to 20181213
Version 20181213.
R12_13_18
2018-12-13 08:12:57 -08:00
Robert Moore
e357f59317 Logfile: Changes for version 20181213
Version 20181213.
2018-12-13 08:12:17 -08:00
Robert Moore
5159c55983 Merge branch 'master' of ssh://ssh.github.com/acpica/acpica 2018-12-12 13:28:33 -08:00
Robert Moore
6cc9fb33c2
Merge pull request #434 from SchmErik/cleanup-DoExternals-flag
iASL: remove obsolete AcpiGbl_DoExternals flag
2018-12-12 13:28:19 -08:00