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

qemu_cortex_a53_smp and qemu_x86_64 failed in tests/kernel/condvar/condvar while enabling for SMP #33558

Closed
enjiamai opened this issue Mar 22, 2021 · 1 comment · Fixed by #33547
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@enjiamai
Copy link
Collaborator

Describe the bug
Our new added test case try to remove the limit of CONFIG_MP_NUM_CPUS=1 for tests/kernel/condvar/ testing. Please refer to PR #33547.
There are two test case failed while removing the CONFIG_MP_NUM_CPUS=1
(1) test_condvar_usecase_broadcast
(2) test_condvar_usecase_signal

To Reproduce
Steps to reproduce the behavior:

  1. Edit the "tests/kernel/condvar/condvar_api/prj.conf", then comment or remove the line CONFIG_MP_NUM_CPUS=1.

  2. Run command: west build tests/kernel/smp -p auto -b qemu_cortex_a53_smp(or qemu_x86_64) -t run
    or twister -T tests/kernel/smp -p qemu_cortex_a53(or -p qemu_x86_64(or qemu_x86_64)

Test cases failed on qemu_cortex_a53_smp and qemu_x86_64

  1. It will hang up the test case mentioned above. See the error log below, please:

Expected behavior
Test cases are pass as expected.

===================================================================
START - test_condvar_usecase_signal
Starting watch_count: thread 1
 PASS - test_condvar_usecase_signal in 2.102 seconds
===================================================================
START - test_condvar_usecase_broadcast
Starting watch_count: thread 1
 PASS - test_condvar_usecase_broadcast in 2.100 seconds
===================================================================

Impact
Not clear.

Logs and console output
Error log looks like this:

===================================================================
START - test_condvar_usecase_signal
Starting watch_count: thread 1

or

===================================================================
START - test_condvar_usecase_broadcast
Starting watch_count: thread 1

Environment (please complete the following information):

  • OS: Linux
  • Toolchain Zephyr SDK-0.12.3
  • Commit SHA 911ba33

Additional context

@enjiamai enjiamai added the bug The issue is a bug, or the PR is fixing a bug label Mar 22, 2021
@nashif nashif self-assigned this Mar 22, 2021
@nashif nashif added the priority: medium Medium impact/importance bug label Mar 22, 2021
enjiamai pushed a commit to enjiamai/zephyr that referenced this issue Apr 25, 2021
Make some change on two codvar test cases to fit testing under SMP,
and shorter the test cases execution time.

Fixes zephyrproject-rtos#33558.

Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
@enjiamai
Copy link
Collaborator Author

Hi @nashif , This is not a bug of condvar's code. It has something to do with test cases, could you please take a look at #33547? I put the fix in that PR, thanks!

nashif pushed a commit that referenced this issue Apr 27, 2021
Make some change on two codvar test cases to fit testing under SMP,
and shorter the test cases execution time.

Fixes #33558.

Signed-off-by: Enjia Mai <enjiax.mai@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants