Skip to content

Commit 24d67b8

Browse files
peter-mitsiscfriedt
authored andcommitted
tests: Update HiFi ctx switching
Adds test case for lazy HiFi context switching. Signed-off-by: Peter Mitsis <[email protected]>
1 parent e50851d commit 24d67b8

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

tests/arch/xtensa/save_restore_hifi/src/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ ZTEST(hifi, test_register_coherence)
6767
k_thread_create(&thread[i], thread_stack[i], STACK_SIZE,
6868
thread_entry, (void *)(uintptr_t)i, NULL, NULL,
6969
priority - 1, 0, K_FOREVER);
70-
71-
7270
}
7371

7472
k_thread_start(&thread[0]);
73+
74+
for (i = 0; i < NUM_THREADS; i++) {
75+
k_thread_join(&thread[i], K_FOREVER);
76+
}
7577
}
7678

7779
ZTEST_SUITE(hifi, NULL, NULL, NULL, NULL, NULL);
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
tests:
2-
arch.xtensa.save_restore_hifi.mtl:
2+
arch.xtensa.save_restore_hifi.eager.mtl:
33
platform_allow:
44
- intel_adsp/ace15_mtpm
55
tags:
66
- kernel
77
ignore_faults: true
8+
extra_configs:
9+
- CONFIG_XTENSA_EAGER_HIFI_SHARING=y
10+
arch.xtensa.save_restore_hifi.lazy.ptl:
11+
platform_allow:
12+
- intel_adsp/ace30/ptl
13+
tags:
14+
- kernel
15+
ignore_faults: true
16+
extra_configs:
17+
- CONFIG_XTENSA_LAZY_HIFI_SHARING=y

0 commit comments

Comments
 (0)