13724 Commits

Author SHA1 Message Date
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
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
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
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
Robert Moore
528107ea14
Merge pull request #365 from SchmErik/macro_fix
macros: fix ACPI_ERROR_NAMESPACE macro
2018-02-28 12:56:34 -08:00
Robert Moore
317fef570d Rename a global for clarity, no functional change
Was AcpiGbl_ParseTableAsTermList, changed to:
AcpiGbl_ExecuteTablesAsMethods.
2018-02-28 12:53:52 -08:00
Robert Moore
0e4dc54f00
Merge pull request #366 from SchmErik/aslts_dev03
add __LINE__ and __METHOD__ macros to checking functions
2018-02-28 10:47:40 -08:00
Erik Schmauss
1950db3325 macros: fix ACPI_ERROR_NAMESPACE macro
This fix also involves putting some ACPI_ERROR_NAMESPACE parameters inside
macros. By doing so, we avoid compilation errors from unused variables.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-28 10:04:30 -08:00
Robert Moore
9d5e6d15ed
Merge pull request #329 from zetalog/gpe-acpiexec
Gpe acpiexec
2018-02-28 07:35:49 -08:00
Robert Moore
1d8ac4f55c
Merge pull request #322 from zetalog/acpica-gpe
Acpica gpe
2018-02-28 07:35:32 -08:00
Robert Moore
c2be4a470d AcpiExec: Use memcpy instead of strncpy when contructing table header
The exact transfer length is known, not just the max.
2018-02-27 14:23:18 -08:00
Robert Moore
f5d7e5f421 Change a compile-time option to a runtime option
Changes the option to ignore package resolution errors into
a runtime option.
2018-02-27 13:16:12 -08:00
Erik Schmauss
f39e31e5d7 ASLTS: Change CH03 to use __LINE__ and __METHOD__ macros
This changes hard-coded digits to macros.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-26 15:32:23 -08:00
Hans de Goede
1ab75e173a Remove calling of _STA from AcpiGetObjectInfo()
As the documentatuon above its declaration indicates, AcpiGetObjectInfo()
is intended for early probe usage and as such should not call any methods
which may rely on OpRegions, before this commit it was also calling _STA,
which on some systems does rely on OpRegions.

Calling _STA before things are ready leads to errors such as these
(under Linux, on some hardware):

[    0.123579] ACPI Error: No handler for Region [ECRM] (00000000ba9edc4c)
               [GenericSerialBus] (20170831/evregion-166)
[    0.123601] ACPI Error: Region GenericSerialBus (ID=9) has no handler
               (20170831/exfldio-299)
[    0.123618] ACPI Error: Method parse/execution failed
               \_SB.I2C1.BAT1._STA, AE_NOT_EXIST (20170831/psparse-550)

End 2015 support for the _SUB method was removed for exactly the same
reason. Removing CurrentStatus from ACPI_DEVICE_INFO only has a limited
impact. Within ACPICA it is only used by 2 debug messages, both
of which are modified to no longer print it with this commit.

Outside of ACPICA, there was one user in Linux, which has been patched to
no longer use CurrentStatus in Torvald's current master.

I've not checked if FreeBSD or others are using the CurrentStatus field.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2018-02-26 09:35:53 +01:00
Erik Schmauss
12799888ae ASLTS: change M380-M387, M390, M391 to use the __LINE__ macro
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-16 13:38:43 -08:00
Erik Schmauss
671b9476f6 ASLTS: change CH04 to emit line numbers instead of index
This is done by replacing hardcorded index values with __LINE__ macro

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-16 12:37:39 -08:00