Add some tests for all of the HSM extension functions. These tests
ensure that the HSM extension functions follow the behavior as described
in the SBI specification.
Signed-off-by: James Raphael Tiovalen <email address hidden>
[Made the changes requested in the last review.]
Signed-off-by: Andrew Jones <email address hidden>
Introduce tests for SBI system suspend. The basic test makes
sure it works and other tests make sure it fails as expected
with invalid entry criteria.
To test on QEMU or hardware the firmware needs to support system
suspend. For QEMU, OpenSBI can be told to enable its system
suspend test mode by creating a new DTB which has
Ensure IPIs directed at single harts are received and also that all
harts receive IPIs on broadcast. Also check for invalid param errors
when the params result in hartids greater than the max.
Signed-off-by: Cade Richard <email address hidden>
Co-developed-by: Andrew Jones <email address hidden>
Signed-off-by: Andrew Jones <email address hidden>
The HSM tests will need to test HSM start and resumption from HSM
suspend. Prepare for these tests, as well other tests, such as the
SUSP resume tests, by providing an assembly file for SBI tests.
Signed-off-by: James Raphael Tiovalen <email address hidden>
Signed-off-by: Andrew Jones <email address hidden>