13736 Commits

Author SHA1 Message Date
Robert Moore
077837401c
Merge pull request #382 from rmurphy-arm/iort-smmu
IORT rev. D support
2018-05-18 14:18:39 -07:00
Robert Moore
62081c185c
Merge pull request #384 from SchmErik/aslts_dev06
ASLTS: adding package resolution with table load testing
2018-05-18 10:14:25 -07:00
Robert Moore
288363a4e1 AML Parser: Add debug option to dump parse trees
Debug level 0x00800000 will dump the current parse tree
just before it is deleted.
2018-05-18 10:11:40 -07:00
Robert Moore
926a7331ef acpiexec: Make hex the base for the -x option
decimal makes no sense, and leads to something like this:

acpiexec -x0x00ffffff

This change cleans this up.
2018-05-18 10:09:11 -07:00
Robert Moore
b63f37627b Debugger: Add count of namespace nodes after namespace dump
A bit of additional information which is usefull during debug.
2018-05-11 12:22:55 -07:00
Robert Moore
2b3a6602c8 acpiexec: Add a force-exit on multiple control-c (sigint)
This is useful if control-c will not automatically exit. This
usually indicates a bug somewhere, but is useful for debugging.
2018-05-11 09:14:56 -07:00
Robert Moore
3be37e91b5 Revert "Add owner list to the namespace node structure"
This reverts commit 1f49c3b8d0c3ff477b8ecf1f82e6967fdb4550ff.
The mechanism is not needed, method execution/deletion is
already optimized, and the Unload() operator is never used.
2018-05-10 10:12:56 -07:00
Robert Moore
707d31cce1 Merge branch 'master' of ssh://ssh.github.com/acpica/acpica 2018-05-09 12:32:00 -07:00
Robert Moore
f41016ebee
Merge pull request #381 from SchmErik/iasl_dev04
disassembler: remove incorrect table header validation for data tables
2018-05-09 12:29:18 -07:00
Robert Moore
ed36a7fcb7 acpiexec: change location of code to disable local fault handler
Cannot disable the fault handler until the command line options
have been parsed.
2018-05-09 12:26:08 -07:00
Robert Moore
df7653cb4a Update version to 20180508
Version 20180508.
R05_08_18
2018-05-08 09:17:11 -07:00
Robert Moore
78ce9d3082 Logfile: Changes for version 20180508
Version 20180508.
2018-05-08 09:16:41 -07:00
Robert Moore
19c54d8f3c acpidump/acpixtract: Support for tables larger than 1MB
acpidump: Expand the table offset field to 32 bits.
acpixtract: Add support to handle the expanded field.
Backwards compatibility is maintained.
2018-05-08 08:53:55 -07:00
Robert Moore
1f49c3b8d0 Add owner list to the namespace node structure
Preparation for the implementation of owner lists instead of
the inefficient existing Owner ID.
2018-05-08 08:52:52 -07:00
Robert Moore
6083230b28 Add deferred package support for the Load and LoadTable operators
Completes the support and fixes a regression introduced in
version 20180209.
2018-05-08 08:51:14 -07:00
Erik Schmauss
6ecc4fc073 ASLTS: adding package resolution with table load testing
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-05-07 15:17:04 -07:00
Robert Moore
f435050a4f acpibin: remove obsolete command line option
-e option was obsolete. Alex Hung <alex.hung@canonical.com>
2018-05-03 14:19:23 -07:00
Erik Schmauss
516e39ffe0 disassembler: remove incorrect table header validation for data tables
The table header validation was intended for AML tables rather than
data tables. This caused an error when disassembling tables with
unusual table signatures such as the RSDP table.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-04-30 13:06:28 -07:00
Robin Murphy
68bf4fd5d4 IORT: Add PMCG node supprt
PMCG nodes were added by IORT revision C, with the unfortunate oversight
that it only defined a single base address, and thus was incapable of
properly describing PMCG implementations with PMCG_CFGR.RELOC_CTRS = 1,
where the counters are in a separate page from the control registers.

Revision D corrects this by clarifying the existing field as the page 0
base address and adding a second field to describe the page 1 address
when implemented. With the spec now fit for purpose, let's support it.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
2018-04-30 17:08:21 +01:00
Robin Murphy
40cc1bebb2 IORT: Update for revision D
IORT revision D contains a few additions and fixes to
currently-supported tables:

- SMMUv3 proximity domain field is enlarged to 4 bytes for consistency
  with SRAT
- Root complex nodes gain an address size limit field equivalent to that
  of named components
- Named component nodes gain a way to describe PASID (SubstreamID)
  support, encoded in their flags

Additionally, we fix a couple of outstanding points in passing:
- Add the stall support flag for named components defined in revision C
- Fix SMMUv3 HTTU override mask, which should always have been 2 bits

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
2018-04-30 17:08:21 +01:00
Robert Moore
f7a6da92a7 Update version to 20180427
Version 20180427.
R04_27_18
2018-04-27 12:41:55 -07:00
Robert Moore
aaa8155cf0 Logfile: Changes for version 20180427
Version 20180427.
2018-04-27 12:41:04 -07:00
Robert Moore
9a10e92056 Debugger: Removed direct support for EC address space in "Test Objects"
None of the address spaces that require a communication protocol
are supported by the "Test Objects" command.
2018-04-27 12:27:03 -07:00
Robert Moore
fe2b7b2551 Disassembler: Fix a typo in the NFIT table support
MVDIMM->NVDIMM   from Ross Zwisler <ross.zwisler@linux.intel.com>
2018-04-27 10:17:35 -07:00
Robert Moore
808b837a6d Debugger: Add Package support for "test objects" command
This was missing in the initial implementation of "test objects".
2018-04-27 08:00:44 -07:00
Robert Moore
e855bcebcd iASL: Add support to detect illegal forward references
Forward references have never been allowed within control methods,
and now there are illegal from module-level code (This makes
ACPICA compatible with "other" acpi implementations).

Both types of fwd refs now generate an error message (this is
also a new addition to iASL).
2018-04-20 09:43:09 -07:00
Robert Moore
90a8fcc837 acpiexec: Add option to disable the local fault handler
For debugging of acpiexec. Upon a fault, this allows control to
be passed to a debugger instead of the local (acpiexec) fault
handler - which simply aborts acpiexec.
2018-04-19 13:59:49 -07:00
Robert Moore
4cb07c07f9 Improve error messages for the namespace root node
Replace "\___" with actual descriptive text.
2018-04-19 13:39:45 -07:00
Robert Moore
ca828bd156 Add error messages for ACPI tables with bad OEM and OEM Table IDs
OEM ID has a max length of 6 chars
OEM TABLE ID has a max length 0f 8 chars.
(As per the ACPI spec)
2018-04-13 09:09:46 -07:00
Robert Moore
4592154cbd
Merge pull request #376 from tsoome/illumos
acpi: this statement may fall through
2018-04-13 08:15:07 -07:00
Robert Moore
4198ac666b
Merge pull request #378 from ColinIanKing/master
Fix potential infinite loop in AcpiRsDumpByteList
2018-04-13 08:13:10 -07:00
Colin Ian King
fd918db5db Fix potential infinite loop in AcpiRsDumpByteList
There is a potenial infinite loop if AcpiRsDumpByteList is
called with a Length greater than 255 since the current loop
counter is just a UINT8 and will wrap to zero and never reach
the desired value in Length.  Fix this by making the loop
counter the size type as Length.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
2018-04-10 23:24:34 +01:00
Toomas Soome
927c13c1a0 acpi: this statement may fall through 2018-03-31 17:58:31 +03:00
Robert Moore
7a3654535d
Merge pull request #375 from ColinIanKing/master
Tables: Fix spelling mistake in comment
2018-03-19 12:18:15 -07:00
Colin Ian King
3dd8cf4da2 Tables: Fix spelling mistake in comment
The spelling of "sucessfully" should be "successfully", fix this

Signed-off-by: Colin Ian King <colin.king@canonical.com>
2018-03-19 15:00:22 +00:00
Robert Moore
f9a88a4c1c iASL: Enhance the -tc option (create AML hex file in C)
This change improves the -tc option by:
1) Creates a unique symbol for the hex table, to simplify
creation of multiple tables (DSDT/SSDT).
2) Adds a protection #ifdef, similar to a .h file.

With assistance from:
Sami Mujawar, sami.mujawar@arm.com
Evan Lloyd, evan.lloyd@arm.com
2018-03-16 09:59:07 -07:00
Robert Moore
a4f6620924 Update version to 20180313
Version 20180313.
R03_13_18
2018-03-13 12:56:15 -07:00
Robert Moore
d6a58e5355 Logfile: Changes for version 20180313
Version 20180313.
2018-03-13 12:55:32 -07:00
Robert Moore
d171edebda
Merge pull request #371 from SchmErik/acpisrc_dev02
acpisrc: restore check to avoid segfault on modes other than -l
2018-03-09 13:04:06 -08:00
Erik Schmauss
2e8cabbd05 acpisrc: restore check to avoid segfault on modes other than -l
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-03-09 12:58:38 -08:00
Robert Moore
d242578401
Merge pull request #364 from jwrdegoede/get-object-info
Remove calling of _STA from AcpiGetObjectInfo()
2018-03-09 12:29:19 -08:00
Robert Moore
39f895aafe
Merge pull request #369 from SchmErik/acpisrc_dev01
acpisrc: adding feature to convert files with SPDX headers
2018-03-09 12:27:27 -08:00
Robert Moore
b17f7d0922
Merge pull request #370 from SchmErik/pr363
Events: add a return on failure from AcpiHwRegisterRead
2018-03-09 12:27:17 -08:00
Robert Moore
c19257af0c acpiexec: update for module-level code changes
Track the recent module-level code changes. acpinames also.
2018-03-09 12:23:52 -08:00
Robert Moore
608a974985 Cleanup/simplify module-level code support
This prepares the code for eventual removal of the original
style of deferred execution of the MLC.
2018-03-09 12:22:03 -08:00
Erik Schmauss
02e4379622 Events: add a return on failure from AcpiHwRegisterRead
This ensures that AcpiEvFixedEventDetect does not use FixedStatus and
and FixedEnable as uninitialized variables.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-03-09 10:21:29 -08:00
Erik Schmauss
891bd2fe2a acpisrc: adding feature to convert files with SPDX headers
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-03-05 13:38:14 -08:00
Robert Moore
f25165d2f5
Merge pull request #367 from SchmErik/aslts_dev04
ASLTS: parallelize ASLTS acpiexec execution for speed
2018-02-28 13:23:01 -08:00
Erik Schmauss
051eccad30 ASLTS: parallelize ASLTS acpiexec execution for speed
This change adds parallelization of ASLTS execution via xargs. This
results in a performance gain of 2.3x (14m 22sec to 6m 7sec).
Various functions and variables are exported so that they can be used
in each run_test_case execution.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-28 13:08:12 -08:00
Robert Moore
6fb12fc21f
Merge pull request #296 from kkamagui/fix_operand_cache_memory_leak_in_acpi_ns_evaluate
acpi: acpica: fix acpi operand cache leak in nseval.c
2018-02-28 13:04:05 -08:00