This patch fixes the failure reported for the following ASLTS test:
exceptions:exc_tbl:TLT1.tsth (32 bit slack mode)
The "FAIL" is emitted due to the iasl flag "-r 1" that is used to compile
this case. The implicit converted integer size is then 8, which is not
greater than ACPI_OEM_TABLE_ID_SIZE, thus no exception can rise. Lv Zheng.
The command to confirm this test:
aslts.sh -m s32 -c exc_tbl -t
The result in __STATUS_OF_TESTS before applying this fix:
":STST:exceptions:exc_tbl:TLT1.tsth:FAIL:Errors # 01 00 00 00:"
The result in __STATUS_OF_TESTS after applying this fix:
":STST:exceptions:exc_tbl:TLT1.tsth:PASS:"
This patch fixes the failure reported for the following ASLTS test:
exceptions:exc_tbl:TLD1.tstf
The "FAIL" is emitted due to the lackness of AE_BAD_CHECKSUM exception
generation which can be fixed by compiling acpiexec to generate a different
version for ASLTS environment. Lv Zheng.
The command to confirm this test:
aslts.sh -c exc_tbl -t
The result in __STATUS_OF_TESTS before applying this fix:
":STST:exceptions:exc_tbl:TLD1.tstf:FAIL:Errors # 02 00 00 00:"
The result in __STATUS_OF_TESTS after applying this fix:
":STST:exceptions:exc_tbl:TLD1.tstf:PASS:"
This patch adds support to allow testers running aslts.sh to optionally
specify individual test modes and test cases. This can improve ACPICA
test efficiency. Lv Zheng.
Fixes errors in ASLTS due to an incorrect interpretation of the
use of references for Field Units and Buffer Fields. Per the ACPI
spec, "Fields permanently retain their types and cannot be changed".
Fixes those errors that incorrectly expected the Field type to change.
David Box.
Please enter the commit message for your changes. Lines starting
Changed the error checking function to correctly expect two errors
(instead of one) and to correctly check for the exception
AE_AML_UNINITIALIZED_ELEMENT when unitialized objects are referenced.
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Fixes AE_NOT_EXIST error by including a conditional for the
EmbeddedControl which does not have a handler in the interpreter.
Also fixes AML_NO_RETURN_VALUE errors due the Derefof patch fix
by referencing the correct value that should be returned and checked
against by a Derefof operation.
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
A method invocation is no longer legal as an argument to ObjectType.
This is because the interpreter cannot determine the difference between
a simple ObjectType on a method versus a method invocation that is
intended to return an object to be typed.
This is pending as a change to the ACPI specification.
Removed a test that invokes a control method for an ObjectType argument.
This does not work properly (method is not invoked), and the ability
to use this construct is being removed from the grammar for ObjectType.
(Requires a change to the ACPI specification.) Chao Guan.
For LoadTable tests, remove the the test that uses Load() to load a
table, then unloads the table, then uses LoadTable to load the same
table. This would be highly improbable in the real world.
Chao Guan.
Remove several tests that cause errors because the tests are invalid
or the basis of the tests are invalid. Fix several error reporting
issues. Guan Chao.
The _GTS (Going To Sleep) and _BFS (Back From Sleep) methods are
essentially deprecated and will probably be removed from the ACPI
specification. Windows does not invoke them, and reportedly never
will. The final nail in the coffin is that the ACPI specification
states that these methods must be run with interrupts off, which
is not going to happen in a kernel interpreter. Tang Feng.
Note: Linux has removed all use of the methods also. It was discovered
that invoking these functions caused failures on some machines,
probably because they were never tested since Windows does not
call them.
This interface will block until asynchronous events like notifies
and GPEs are complete. Within ACPICA, it is called before a notify or GPE
handler is removed. ACPICA BZ 868.
Update for iASL fix for StartDependendent* descriptors. The iASL bug
did not take into account the length of these descriptors, affecting
the offsets for any resource tags that follow.