Skip to content

Commit 5608dd3

Browse files
Singh-Shubham-qcomchetan-rathore
authored andcommitted
fix(power_wakeup): disable system timer on wakeup test skip path
u005 (B_WAK_03/B_WAK_07, Wake from System Timer Int) cleared the GIC pending bits when the wake interrupt was not received, but never disabled the memory-mapped system timer (CNTP_CTL). Since the interrupt is level-triggered, the timer kept re-asserting the line, leaving it stuck armed after the test returned. This can hang subsequent tests that install their own exception/interrupt handlers. Mirrors the disable-on-skip pattern already used by u001-u004 for their respective timer/watchdog sources. Signed-off-by: Shubham Singh <shubna@qti.qualcomm.com>
1 parent 7a82e7e commit 5608dd3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test_pool/power_wakeup/u005.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ payload5()
156156
*/
157157
wakeup_clear_failsafe();
158158
if (!(g_timer_int_rcvd || g_failsafe_int_rcvd)) {
159+
val_timer_disable_system_timer((addr_t)cnt_base_n);
159160
intid = val_timer_get_info(TIMER_INFO_SYS_INTID, timer_num);
160161
val_gic_clear_interrupt(intid);
161162
val_set_status(index, RESULT_SKIP(4));

0 commit comments

Comments
 (0)