aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Deprez <olivier.deprez@arm.com>2020-08-14 10:45:48 +0200
committerOlivier Deprez <olivier.deprez@arm.com>2020-08-14 15:22:11 +0200
commit08974eca36be6c3b90ab9f964c228af64c2259d1 (patch)
tree357b563d859fa73f4e1cda3d81e203dda05f7599
parentae3840dbc9372fd407893f32a5d624828c8933ae (diff)
downloadhafnium-08974eca36be6c3b90ab9f964c228af64c2259d1.tar.gz
tests: busy_secondary: increase timer to 20ms
Following 1ad6a68030722 busy_secondary.physical_timer still fails from time to time with this pattern: VM 1: Telling secondary to loop. VM 1: Starting timer VM 1: primary IRQ 30 from current VM 1: primary IRQ 30 ended VM 2: Secondary received message, looping forever. Pass case: VM 1: Telling secondary to loop. VM 1: Starting timer VM 2: Secondary received message, looping forever. VM 1: primary IRQ 30 from current VM 1: primary IRQ 30 ended This patches increases the timeout to 20ms from 3ms to allow more time to reach the secondary VM infinite loop. Update busy_secondary.virtual_timer the same way as it has occasionally exhibited the same behavior. Change-Id: I153f1801ff48b9508d4caf24ea601de70d616e68 Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
-rw-r--r--test/vmapi/arch/aarch64/gicv3/busy_secondary.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/vmapi/arch/aarch64/gicv3/busy_secondary.c b/test/vmapi/arch/aarch64/gicv3/busy_secondary.c
index 22b7dd87a..0fb4445e2 100644
--- a/test/vmapi/arch/aarch64/gicv3/busy_secondary.c
+++ b/test/vmapi/arch/aarch64/gicv3/busy_secondary.c
@@ -80,8 +80,8 @@ TEST(busy_secondary, virtual_timer)
FFA_SUCCESS_32);
dlog("Starting timer\n");
- /* Set virtual timer for 3 mS and enable. */
- write_msr(CNTV_TVAL_EL0, ns_to_ticks(3000000));
+ /* Set virtual timer for 20 mS and enable. */
+ write_msr(CNTV_TVAL_EL0, ns_to_ticks(20000000));
write_msr(CNTV_CTL_EL0, 0x00000001);
run_res = ffa_run(SERVICE_VM1, 0);
@@ -139,8 +139,8 @@ TEST(busy_secondary, physical_timer)
FFA_SUCCESS_32);
dlog("Starting timer\n");
- /* Set physical timer for 3 ms and enable. */
- write_msr(CNTP_TVAL_EL0, ns_to_ticks(3000000));
+ /* Set physical timer for 20 ms and enable. */
+ write_msr(CNTP_TVAL_EL0, ns_to_ticks(20000000));
write_msr(CNTP_CTL_EL0, 0x00000001);
run_res = ffa_run(SERVICE_VM1, 0);