Skip to content

Commit 012836a

Browse files
teburdMaureenHelm
authored andcommitted
tests: hda_log: cav15 timeout fixes
Fixes issues caused by the hda_log test for cavs15 caused by ipc messaging issues. Wait for the ipc message to complete immediately after sending it. Signed-off-by: Tom Burdick <[email protected]>
1 parent 799ec29 commit 012836a

File tree

1 file changed

+8
-5
lines changed
  • tests/boards/intel_adsp/hda_log/src

1 file changed

+8
-5
lines changed

tests/boards/intel_adsp/hda_log/src/logger.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,19 @@ void hda_log_hook(uint32_t written)
2626
*/
2727
bool done = false;
2828

29-
/* Previous message may not be done yet, wait for that */
30-
do {
31-
done = cavs_ipc_is_complete(CAVS_HOST_DEV);
32-
} while (!done);
33-
3429
/* Now send the next one */
3530
do {
3631
done = cavs_ipc_send_message(CAVS_HOST_DEV, IPCCMD_HDA_PRINT,
3732
(written << 8) | CHANNEL);
3833
} while (!done);
34+
35+
36+
/* Previous message may not be done yet, wait for that */
37+
do {
38+
done = cavs_ipc_is_complete(CAVS_HOST_DEV);
39+
} while (!done);
40+
41+
3942
}
4043

4144

0 commit comments

Comments
 (0)