zephyr: test: mimxrt595_evk_cm33: tests/kernel/usage/thread_runtime_stats/ test fail
The testcase “tests/kernel/usage/thread_runtime_stats/” fails with assertion.
Describe the bug run the kernel usage case
Please also mention any information which could help others to understand the problem you’re facing:
this case only fails on mimxrt595_evk_cm33, and bisect found it is caused by below commit
commit b79e74404373827619425912fec5e4ab59bd692e
Author: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
Date: Tue Nov 29 16:13:21 2022 -0600
boards: mimxrt595evk: Setup the regulator for Run mode
Setup the appropriate voltage in the PMIC based on the
core frequency.
Add labels to the regulators for easy access to the nodes.
Add CONFIG_REGULATOR to the defconfig so we can setup the
PMIC voltages during platform startup.
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
boards/arm/mimxrt595_evk/board.c | 74 ++++++++++++++++++++++
boards/arm/mimxrt595_evk/mimxrt595_evk_cm33.dts | 8 +--
.../arm/mimxrt595_evk/mimxrt595_evk_cm33_defconfig | 2 +-
3 files changed, 79 insertions(+), 5 deletions(-)
To Reproduce Steps to reproduce the behavior:
- cd tests/kernel/usage/thread_runtime_stats
- west build -b mimxrt595_evk_cm33
- west flash
- See error
Expected behavior clock count for this board is not stable after setting regulator
Impact clock stable issue
Logs and console output
*** Booting Zephyr OS build zephyr-v3.2.0-2259-g6cb5c5519e4d ***
Running TESTSUITE usage_api
===================================================================
START - test_all_stats_usage
Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/usage/thread_runtime_stats/src/test_thread_runtime_stats.c:108: usage_api_test_all_stats_usage: stats1.execution_cycles == stats1.total_cycles is false
FAIL - test_all_stats_usage in 0.021 seconds
===================================================================
START - test_sys_stats_enable_disable
PASS - test_sys_stats_enable_disable in 0.001 seconds
===================================================================
START - test_thread_stats_enable_disable
PASS - test_thread_stats_enable_disable in 0.002 seconds
===================================================================
START - test_thread_stats_usage
PASS - test_thread_stats_usage in 0.006 seconds
===================================================================
TESTSUITE usage_api failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL - 75.00% [usage_api]: pass = 3, fail = 1, skip = 0, total = 4 duration = 0.030 seconds
- FAIL - [usage_api.test_all_stats_usage] duration = 0.021 seconds
- PASS - [usage_api.test_sys_stats_enable_disable] duration = 0.001 seconds
- PASS - [usage_api.test_thread_stats_enable_disable] duration = 0.002 seconds
- PASS - [usage_api.test_thread_stats_usage] duration = 0.006 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
PROJECT EXECUTION FAILED
Environment (please complete the following information):
- OS: (e.g. Linux,)
- Toolchain (e.g Zephyr SDK, …)
- Commit SHA or Version used: zephyr-v3.3.0-2500-gafaf4cddd2
Additional context this is a long existing bug, but hidded by other timer issues. so I did not report it earily.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (2 by maintainers)
@hakehuang, I add a PR to make this the default on RT595 and RT685 EVK boards.