Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intel_adsp_cavs15: a part of testcases run failed with same error #32112

Closed
KangJianX opened this issue Feb 9, 2021 · 2 comments · Fixed by #32144
Closed

intel_adsp_cavs15: a part of testcases run failed with same error #32112

KangJianX opened this issue Feb 9, 2021 · 2 comments · Fixed by #32144
Assignees
Labels
area: SMP Symmetric multiprocessing area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug

Comments

@KangJianX
Copy link
Collaborator

Describe the bug
running kernel testcases failed of a part of testing

To Reproduce
Steps to reproduce the behavior:

  1. twister -p intel_adsp_cavs15 --device-testing -T tests/kernel/ --west-flash="/home/ztest/work/zephyrproject/zephyr/boards/xtensa/intel_adsp_cavs15/tools/flash.sh,/home/ztest/work/zephyrproject/modules/audio/sof/keys/otc_private_key.pem,/home/ztest/work/zephyrproject/modules/audio/sof/zephyr/ext/rimage/config,/home/ztest/work/zephyrproject/modules/audio/sof/zephyr/ext/rimage/build/rimage" --device-serial-pty="/home/ztest/work/zephyrproject/zephyr/boards/xtensa/intel_adsp_cavs15/tools/adsplog.py,--no-history"

Logs and console output
INFO - Adding tasks to the queue...
INFO - Added initial list of jobs to queue
INFO - Total complete: 4/ 77 5% skipped: 35, failed: 0
ERROR - intel_adsp_cavs15 tests/kernel/mem_slab/mslab_concept/kernel.memory_slabs.concept FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/mem_slab/mslab_concept/kernel.memory_slabs.concept/handler.log
INFO - Total complete: 7/ 77 9% skipped: 36, failed: 1
ERROR - intel_adsp_cavs15 tests/kernel/mbox/mbox_usage/kernel.mailbox.usage FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/mbox/mbox_usage/kernel.mailbox.usage/handler.log
INFO - Total complete: 14/ 77 18% skipped: 39, failed: 2
ERROR - intel_adsp_cavs15 tests/kernel/profiling/profiling_api/kernel.common.profiling FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/profiling/profiling_api/kernel.common.profiling/handler.log
INFO - Total complete: 15/ 77 19% skipped: 39, failed: 3
ERROR - intel_adsp_cavs15 tests/kernel/common/kernel.common FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/common/kernel.common/handler.log
INFO - Total complete: 17/ 77 22% skipped: 40, failed: 4
ERROR - intel_adsp_cavs15 tests/kernel/common/kernel.common.misra FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/common/kernel.common.misra/handler.log
INFO - Total complete: 23/ 77 29% skipped: 44, failed: 5
ERROR - intel_adsp_cavs15 tests/kernel/sleep/kernel.common.timing FAILED: Failed
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/sleep/kernel.common.timing/handler.log
INFO - Total complete: 33/ 77 42% skipped: 51, failed: 6
ERROR - intel_adsp_cavs15 tests/kernel/threads/thread_stack/kernel.threads.thread_stack FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/threads/thread_stack/kernel.threads.thread_stack/handler.log
INFO - Total complete: 38/ 77 49% skipped: 55, failed: 7
ERROR - intel_adsp_cavs15 tests/kernel/mem_protect/sys_sem/kernel.memory_protection.sys_sem.nouser FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/mem_protect/sys_sem/kernel.memory_protection.sys_sem.nouser/handler.log
INFO - Total complete: 39/ 77 50% skipped: 55, failed: 8
ERROR - intel_adsp_cavs15 tests/kernel/msgq/msgq_api/kernel.message_queue FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/msgq/msgq_api/kernel.message_queue/handler.log
INFO - Total complete: 42/ 77 54% skipped: 55, failed: 9
ERROR - intel_adsp_cavs15 tests/kernel/mem_protect/sys_sem/kernel.memory_protection.sys_sem FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/mem_protect/sys_sem/kernel.memory_protection.sys_sem/handler.log
INFO - Total complete: 49/ 77 63% skipped: 57, failed: 10
ERROR - intel_adsp_cavs15 tests/kernel/mem_heap/mheap_api_concept/kernel.memory_heap FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/mem_heap/mheap_api_concept/kernel.memory_heap/handler.log
INFO - Total complete: 55/ 77 71% skipped: 60, failed: 11
ERROR - intel_adsp_cavs15 tests/kernel/mem_heap/k_heap_api/kernel.k_heap_api FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/mem_heap/k_heap_api/kernel.k_heap_api/handler.log
INFO - Total complete: 70/ 77 90% skipped: 62, failed: 12
ERROR - intel_adsp_cavs15 tests/kernel/queue/kernel.queue FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/queue/kernel.queue/handler.log
INFO - Total complete: 71/ 77 92% skipped: 62, failed: 13
ERROR - intel_adsp_cavs15 tests/kernel/fifo/fifo_api/kernel.fifo FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/fifo/fifo_api/kernel.fifo/handler.log
INFO - Total complete: 73/ 77 94% skipped: 62, failed: 14
ERROR - intel_adsp_cavs15 tests/kernel/lifo/lifo_usage/kernel.lifo.usage FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/lifo/lifo_usage/kernel.lifo.usage/handler.log
INFO - Total complete: 75/ 77 97% skipped: 62, failed: 15
ERROR - intel_adsp_cavs15 tests/kernel/lifo/lifo_api/kernel.lifo FAILED: Timeout
ERROR - see: /home/ztest/work/zephyrproject/zephyr/twister-out/intel_adsp_cavs15/tests/kernel/lifo/lifo_api/kernel.lifo/handler.log
INFO - Total complete: 77/ 77 100% skipped: 62, failed: 16
INFO - 34 of 50 test configurations passed (68.00%), 16 failed, 62 skipped with 0 warnings in 1621.99 seconds
INFO - In total 513 test cases were executed, 555 skipped on 1 out of total 329 platforms (0.30%)
INFO - 50 test configurations executed on platforms, 0 test configurations were only built.

error log:

ASSERTION FAIL [!arch_mem_coherent(stack)] @ WEST_TOPDIR/zephyr/kernel/thread.c:575
@ WEST_TOPDIR/zephyr/lib/os/assert.c:45

Environment (please complete the following information):
OS: Fedora28
Toolchain: Zephyr-sdk-0.12.2
Commit ID: e61dbe5

@KangJianX KangJianX added the bug The issue is a bug, or the PR is fixing a bug label Feb 9, 2021
@KangJianX
Copy link
Collaborator Author

KangJianX commented Feb 9, 2021

A important things, this bug reproduce base on a pull request #31902, I apply the patch on local device.

@nashif nashif added the priority: high High impact/importance bug label Feb 9, 2021
@nashif
Copy link
Member

nashif commented Feb 9, 2021

this is related to cache coherence asserts.

andyross pushed a commit to andyross/zephyr that referenced this issue Feb 10, 2021
The CONFIG_KERNEL_COHERENCE framework merged with a typo that left its
validation asserts disabled.  But it was written before the "kernel
stacks" feature merged, and so missed the K_KERNEL_STACK_* macros,
which need to put their stacks into __stackmem and not merely
__noinit.

Turning the asserts on exposed the bug.

Fixes zephyrproject-rtos#32112

Signed-off-by: Andy Ross <[email protected]>
@nashif nashif added area: SMP Symmetric multiprocessing area: Xtensa Xtensa Architecture labels Feb 11, 2021
nashif pushed a commit that referenced this issue Feb 11, 2021
The CONFIG_KERNEL_COHERENCE framework merged with a typo that left its
validation asserts disabled.  But it was written before the "kernel
stacks" feature merged, and so missed the K_KERNEL_STACK_* macros,
which need to put their stacks into __stackmem and not merely
__noinit.

Turning the asserts on exposed the bug.

Fixes #32112

Signed-off-by: Andy Ross <[email protected]>
lyakh pushed a commit to lyakh/zephyr that referenced this issue Feb 12, 2021
The CONFIG_KERNEL_COHERENCE framework merged with a typo that left its
validation asserts disabled.  But it was written before the "kernel
stacks" feature merged, and so missed the K_KERNEL_STACK_* macros,
which need to put their stacks into __stackmem and not merely
__noinit.

Turning the asserts on exposed the bug.

Fixes zephyrproject-rtos#32112

Signed-off-by: Andy Ross <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: SMP Symmetric multiprocessing area: Xtensa Xtensa Architecture bug The issue is a bug, or the PR is fixing a bug priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants