This ensures that AcpiEvFixedEventDetect does not use FixedStatus and
and FixedEnable as uninitialized variables.
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
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>
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>
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>
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>
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.
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>
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.
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
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