Closed katgiadla closed 2 months ago
Perhaps related...
This, like the ITE failure in particular also seems like... maybe just maybe it should be passing with the stddev allowance changed. I need to think about this some.
The same issue has occurred on nrf52dk/nrf52832
on version v3.6.0-2878-g4a5fa0169484
.
The same issue has occured on nrf52840dk/nrf52840
on version v3.6.0-4666-g3a3f25c9a683
.
test also fails with stm32l0 nucleo board nucleo_l073rz, on _timer_jitterdrift item
*** Booting Zephyr OS build v3.7.0-rc1-2-g4d0a8c1e8b83 ***
Running TESTSUITE timer_jitter_drift
===================================================================
START - test_jitter_drift_timer_period
periodic timer behavior test using built-in restart mechanism
collecting time samples for approx 1 seconds
periodic timer samples gathered, calculating statistics
timer clock rate 32000000, kernel tick rate 10000
period duration statistics for 1000 samples (0 rollovers):
expected: 1000 us, 32000.000000 cycles
min: 900.000000 us, 28800 cycles
max: 1100.031250 us, 35201 cycles
mean: 1000.000094 us, 32000.003000 cycles
variance: 20.006255 us, 20486.404991 cycles
stddev: 4.472835 us, 143.130722 cycles
timer start cycle 891072, end cycle 32891075,
total time 1000000.093750 us, expected time 1000000.000000 us,
expected time drift 0.000000 us, difference 0.093750 us
RECORD: {"testcase":"jitter_drift_timer", "mechanism":"builtin", "stats_count":1000, "rollovers":0, "mean_us":1000.000094, "mean_cycles":32000, "stddev_us":4.472835, "stddev_cycles":143, "var_us":20.006255, "var_cycles":20486, "min_us":900.000000, "min_cycles":28800, "max_us":1100.031250, "max_cycles":35201, "timer_start_cycle": 891072, "timer_end_cycle": 32891075, "total_time_us":1000000.093750, "expected_total_time_us":1000000.000000, "expected_total_drift_us":0.000000, "total_drift_us":0.093750, "expected_period_cycles":32000, "expected_period_drift_us":0.000000, "sys_clock_hw_cycles_per_sec":32000000, "CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC":32000000, "CONFIG_SYS_CLOCK_TICKS_PER_SEC":10000, "CONFIG_TIMER_TEST_PERIOD":1000, "CONFIG_TIMER_TEST_SAMPLES":1000, "CONFIG_TIMER_TEST_MAX_STDDEV":10}
Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/timer/timer_behavior/src/jitter_drift.c:322: do_test_using: (max_us <= max_us_bound is false)
Longest timer period too long (off by more than expected 10%)
FAIL - test_jitter_drift_timer_period in 1.261 seconds
===================================================================
START - test_jitter_drift_timer_startdelay
periodic timer behavior test using explicit start with delay
collecting time samples for approx 1 seconds
periodic timer samples gathered, calculating statistics
timer clock rate 32000000, kernel tick rate 10000
period duration statistics for 1000 samples (0 rollovers):
expected: 1000 us, 32000.000000 cycles
min: 900.000000 us, 28800 cycles
max: 1100.031250 us, 35201 cycles
mean: 1000.000094 us, 32000.003000 cycles
variance: 20.006255 us, 20486.404991 cycles
stddev: 4.472835 us, 143.130722 cycles
timer start cycle 41706466, end cycle 73706469,
total time 1000000.093750 us, expected time 1000000.000000 us,
expected time drift 0.000000 us, difference 0.093750 us
RECORD: {"testcase":"jitter_drift_timer", "mechanism":"startdelay", "stats_count":1000, "rollovers":0, "mean_us":1000.000094, "mean_cycles":32000, "stddev_us":4.472835, "stddev_cycles":143, "var_us":20.006255, "var_cycles":20486, "min_us":900.000000, "min_cycles":28800, "max_us":1100.031250, "max_cycles":35201, "timer_start_cycle": 41706466, "timer_end_cycle": 73706469, "total_time_us":1000000.093750, "expected_total_time_us":1000000.000000, "expected_total_drift_us":0.000000, "total_drift_us":0.093750, "expected_period_cycles":32000, "expected_period_drift_us":0.000000, "sys_clock_hw_cycles_per_sec":32000000, "CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC":32000000, "CONFIG_SYS_CLOCK_TICKS_PER_SEC":10000, "CONFIG_TIMER_TEST_PERIOD":1000, "CONFIG_TIMER_TEST_SAMPLES":1000, "CONFIG_TIMER_TEST_MAX_STDDEV":10}
Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/timer/timer_behavior/src/jitter_drift.c:322: do_test_using: (max_us <= max_us_bound is false)
Longest timer period too long (off by more than expected 10%)
FAIL - test_jitter_drift_timer_startdelay in 1.262 seconds
===================================================================
TESTSUITE timer_jitter_drift failed.
...
TESTSUITE timer_tick_train succeeded
------ TESTSUITE SUMMARY START ------
SUITE FAIL - 0.00% [timer_jitter_drift]: pass = 0, fail = 2, skip = 0, total = 2 duration = 2.523 seconds
- FAIL - [timer_jitter_drift.test_jitter_drift_timer_period] duration = 1.261 seconds
- FAIL - [timer_jitter_drift.test_jitter_drift_timer_startdelay] duration = 1.262 seconds
SUITE PASS - 100.00% [timer_tick_train]: pass = 1, fail = 0, skip = 0, total = 1 duration = 10.322 seconds
- PASS - [timer_tick_train.test_one_tick_timer_train] duration = 10.322 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
RunID: 1de2533fa232463b131c3ae74230257c
PROJECT EXECUTION FAILED
For that particular target board, which has a CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC at 32MHz, a CONFIG_SYS_CLOCK_TICKS_PER_SEC lower than 10000 can fix the problem
Describe the bug The test
tests/kernel/timer/timer_behavior/kernel.timer.timer
fails.Observed on
nrf5340dk/nrf5340/cpunet
.To Reproduce Steps to reproduce the behavior:
nrf5340dk/nrf5340/cpunet
connected./scripts/twister -T tests/kernel/timer/timer_behavior -p nrf5340dk/nrf5340/cpunet --device-testing --device-serial /dev/ttyACM1 -v --inline-logs
Expected behavior Valid console output
Impact Not clear
Logs and console output
Environment (please complete the following information):
v3.6.0-2817-gdbf62a5a2a84