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

tests/benchmarks/sys_kernel failed on nrf platforms #24660

Closed
chen-png opened this issue Apr 24, 2020 · 5 comments · Fixed by #25412
Closed

tests/benchmarks/sys_kernel failed on nrf platforms #24660

chen-png opened this issue Apr 24, 2020 · 5 comments · Fixed by #25412
Assignees
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug

Comments

@chen-png
Copy link
Collaborator

To Reproduce
Steps to reproduce the behavior:

  1. west build -b reel_board -p auto tests/benchmarks/sys_kernel/
  2. west flash
  3. See error

Screenshots or console output

*** Booting Zephyr OS build zephyr-v2.2.0-1885-gb7897d5aab13 ***

MODULE: kernel API test
KERNEL VERSION: 0x2026300

Each test below is repeated 10 times;
average time for one iteration is displayed.

TEST CASE: Semaphore #1
TEST COVERAGE:
k_sem_init
k_sem_take(K_FOREVER)
k_sem_give
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate

END TEST CASE

TEST CASE: Semaphore #2
TEST COVERAGE:
k_sem_init
k_sem_take(TICKS_NONE)
k_yield
k_sem_give
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

TEST CASE: Semaphore #3
TEST COVERAGE:
k_sem_init
k_sem_take(K_FOREVER)
k_sem_give
k_sem_give
k_sem_take(K_FOREVER)
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

TEST CASE: LIFO #1
TEST COVERAGE:
k_lifo_init
k_lifo_get(K_FOREVER)
k_lifo_put
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

TEST CASE: LIFO #2
TEST COVERAGE:
k_lifo_init
k_lifo_get(K_FOREVER)
k_lifo_get(TICKS_NONE)
k_lifo_put
k_yield
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

TEST CASE: LIFO #3
TEST COVERAGE:
k_lifo_init
k_lifo_get(K_FOREVER)
k_lifo_put
k_lifo_get(K_FOREVER)
k_lifo_put
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

TEST CASE: FIFO #1
TEST COVERAGE:
k_fifo_init
k_fifo_get(K_FOREVER)
k_fifo_put
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

TEST CASE: FIFO #2
TEST COVERAGE:
k_fifo_init
k_fifo_get(K_FOREVER)
k_fifo_get(TICKS_NONE)
k_fifo_put
k_yield
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE
...
TEST CASE: Stack #3
TEST COVERAGE:
k_stack_init
k_stack_pop(K_FOREVER)
k_stack_push
k_stack_pop(K_FOREVER)
k_stack_push
Starting test. Please wait...
TEST RESULT: FAILED
DETAILS: timer tick happened. Results are inaccurate
END TEST CASE

PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: fedora28
  • Toolchain : zephyr-sdk-0.11.2
  • Commit ID: b7897d5
@chen-png chen-png added the bug The issue is a bug, or the PR is fixing a bug label Apr 24, 2020
@carlescufi carlescufi added area: Tests Issues related to a particular existing or missing test priority: low Low impact/importance bug labels Apr 28, 2020
@nashif nashif changed the title tests/benchmarks/sys_kernel failed on reel_board. tests/benchmarks/sys_kernel failed on nrf platforms Apr 29, 2020
@nashif
Copy link
Member

nashif commented Apr 29, 2020

fails on nrf52840dk_nrf52811 and reel_board

@nashif
Copy link
Member

nashif commented Apr 29, 2020

and on nrf9160dk_nrf9160

@carlescufi carlescufi added the platform: nRF Nordic nRFx label Apr 30, 2020
@ioannisg
Copy link
Member

Failing on nRF5340 as well.
Also the latency test is failing.
This is not low priority then. Elevating to HIGH for now, to raise awareness (might be Medium though).

@ioannisg ioannisg added priority: high High impact/importance bug and removed priority: low Low impact/importance bug labels May 11, 2020
@carlescufi carlescufi assigned pabigot and ioannisg and unassigned carlescufi May 18, 2020
@carlescufi
Copy link
Member

@ioannisg and @pabigot could you please spend some time this week on this one?

@pabigot
Copy link
Collaborator

pabigot commented May 18, 2020

Broken by 10d15d1 which seems to have caused problems with CONFIG_TICKLESS_KERNEL=n and CONFIG_SYS_CLOCK_TICKS_PER_SEC=1. The benchmark infrastructure tests whether a test runs longer than 1 s by using this configuration. Fix in #25412.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Tests Issues related to a particular existing or missing test bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: high High impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants