13700 Commits

Author SHA1 Message Date
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
Robert Moore
849cebb125 AML Debug Object: Don't ignore output of zero-length strings
The implementation previously ignored null strings (""), but
these could be important, especially for debug.
2018-02-15 12:03:50 -08:00
Robert Moore
8116b7027b Merge branch 'master' of ssh://ssh.github.com/acpica/acpica 2018-02-15 07:45:12 -08:00
Robert Moore
9feb20c982
Merge pull request #360 from SchmErik/aslts_dev02
Adding __LINE__ to ASLTS ERR function, again
2018-02-15 07:44:47 -08:00
Robert Moore
b13f4abfc9 Fix memory leak on unusual memory leak
Fixes a single-object memory leak on a store-to-reference method
invocation. ACPICA BZ 1439.
2018-02-15 07:43:05 -08:00
Erik Schmauss
a32eebec57 ASLTS: change formatting of ERR to emit decimal line numbers
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-14 16:51:16 -08:00
Erik Schmauss
e4af07e9b9 ASLTS: adding macros to ERR functions
This change replaces the first parameter of ERR with __METHOD__ in
bdemo testcases and replaces the third parameter of ERR with
__LINE__. The __METHOD macro evaluates to the current method and
__LINE__ evaluates to the current line number during compilation. By
doing these macros help clarify error messages in ASLTS.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-14 16:51:09 -08:00
Robert Moore
17ec2f46a6 Update for ACPICA build/release instructions
some small changes.
2018-02-14 13:57:06 -08:00
Robert Moore
e2670a10bd
Merge pull request #359 from dell/thunderbolt
Recognize the _OSI string "Windows 2017.2"
2018-02-14 07:25:35 -08:00
Mario Limonciello
24f7791789 Recognize the _OSI string "Windows 2017.2"
Dell uses this string to activate Thunderbolt native mode on supported
machines.
2018-02-12 13:09:01 -06:00
Robert Moore
6e3468837f Update version to 20180209
Version 20180209.
R02_09_18
2018-02-09 09:08:44 -08:00
Robert Moore
4271ac050d Logfile: Changes for version 20180209
Version 20180209.
2018-02-09 09:08:10 -08:00
Robert Moore
a6c3c725c4 Add option to disable Package object name resolution errors
For the kernel-resident ACPICA, optionally be silent about the
NOT_FOUND case. Although this is potentially a serious problem,
it can generate a lot of noise/errors on platforms whose
firmware carries around a bunch of unused Package objects.
To disable these errors, define ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS
in the OS-specific header.
2018-02-09 08:58:55 -08:00
Robert Moore
6f64913b48
Merge pull request #358 from SchmErik/iasl_extern
iASL: drop external name collision to a warning for now
2018-02-08 07:20:14 -08:00
Erik Schmauss
5172efd2f9 iASL: add check for ignored exceptions in AslCommonError
The call to AslIsExceptionIgnored has been left out in
AslCommonError. This patch restores the call to AslIsExceptionIgnored
so that all compilation errors are checked by this function.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-07 16:01:18 -08:00
Erik Schmauss
dee5bd2ea1 iASL: drop external name collision to a warning for now
This fix is a temporary adjustment to lower redundant externals
from an error to a warning.

Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-07 13:28:45 -08:00
Robert Moore
ca2cb91e91
Merge pull request #357 from SchmErik/dt_refactor01
Simple adjustments for data table compiler
2018-02-07 12:52:25 -08:00
Erik Schmauss
b56d79acf0 DT compiler: change EXPOP to OP_EXP, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-07 12:49:21 -08:00
Robert Moore
8faf6fca44 Integrate package handling with module-level code
This change completes the integration of the recent changes to
package object handling with the module-level code support.

For AcpiExec, the -ep flag is removed.
2018-02-07 12:47:58 -08:00
Robert Moore
cfa92cacd7 iASL: Fix constant folding for explicit conversion operators
To properly implement folding for the "explicit conversion" operators,
The CopyObject operator must be used instead of the Store operator.
CopyObject disables implicit result object conversion, which
is correct behavior for the explicit conversion operators.
Affects:
ToInteger
ToString
ToBuffer
ToDecimalString
ToHexString
ToBCD
FromBCD
2018-02-07 12:41:04 -08:00
Erik Schmauss
71908f986f DT compiler: getting rid of useless function arg, no functional change
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
2018-02-07 12:37:56 -08:00
Robert Moore
0e44fee134 Revert "Fix for implicit result conversion for the ToXXXX functions"
This reverts commit e1342c9f2dde37a67e916099658b65984ef8a434.
Implicit conversion should in fact be disabled for the "explicit
conversion" operators. This is stated in the ACPI specification.
The operators affected are:
ToInteger
ToString
ToBuffer
ToDecimalString
ToHexString
ToBCD
FromBCD
2018-02-07 08:08:06 -08:00
Robert Moore
5696af5402
Merge pull request #355 from SchmErik/misc_fix
Linuxize script: ignore actbinfo.h
2018-01-30 10:43:24 -08:00
Robert Moore
3a08436fe3 Update for some debug output. No functional change
Improve/simplify some of the debug messages.
2018-01-30 10:40:45 -08:00
Erik Schmauss
b527d868b8 Linuxize script: ignore actbinfo.h 2018-01-25 09:56:13 -08:00