Skip to content

tests: tests/kernel/timer/timer_behavior: frdm_mcxw23/mcxw236: failed: Testsuite failed #98280

@hakehuang

Description

@hakehuang

Describe the bug
below case are failed
kernel.timer.timer.timer_jitter_drift.jitter_drift_timer_period
kernel.timer.timer.timer_jitter_drift.jitter_drift_timer_startdelay

test is failed on v4.3.0-rc1 on frdm_mcxw23/mcxw236
testcase path is tests/kernel/timer/timer_behavior

c091593 is the first bad commit
commit c091593
Author: Allen Zhang chunfeng.zhang@nxp.com
Date: Mon Oct 20 01:06:35 2025 +0800

dts: mcxw23x: add OSTIMER and DMA support in dts

add dts support for OSTIMER and DMA

Signed-off-by: Allen Zhang <chunfeng.zhang@nxp.com>

dts/arm/nxp/nxp_mcxw23x_common.dtsi | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
bisect found first bad commit

  • This is a regression.

see logs for details

To Reproduce
1.

scripts/twister -p frdm_mcxw23/mcxw236  -T tests/kernel/timer/timer_behavior

or

# west twister -p frdm_mcxw23/mcxw236 -T tests/kernel/timer/timer_behavior --sub-test tests/kernel/timer/timer_behavior
  1. See error
Testsuite failed

Expected behavior
test pass

Impact

Logs and console output

*** Booting Zephyr OS build v4.3.0-rc1 ***
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 10 seconds
periodic timer samples gathered, calculating statistics
timer clock rate 1000000, kernel tick rate 10000
period duration statistics for 10000 samples (0 rollovers):
  expected: 1000 us,            1000.000000 cycles
  min:      1004.000000 us,     1004 cycles
  max:      1004.000000 us,     1004 cycles
  mean:     1004.000000 us,     1004.000000 cycles
  variance: 0.000000 us,        0.000000 cycles
  stddev:   0.000000 us,        0.000000 cycles
timer start cycle 17766364074, end cycle 17776404074,
total time 10040000.000000 us, expected time 10000000.000000 us,
expected time drift 0.000000 us, difference 40000.000000 us
RECORD: {"testcase":"jitter_drift_timer", "mechanism":"builtin", "stats_count":10000, "rollovers":0, "mean_us":1004.000000, "mean_cycles":1004, "stddev_us":0.000000, "stddev_cycles":0, "var_us":0.000000, "var_cycles":0, "min_us":1004.000000, "min_cycles":1004, "max_us":1004.000000, "max_cycles":1004, "timer_start_cycle": 17766364074, "timer_end_cycle": 17776404074, "total_time_us":10040000.000000, "expected_total_time_us":10000000.000000, "expected_total_drift_us":0.000000, "total_drift_us":40000.000000, "expected_period_cycles":1000, "expected_period_drift_us":0.000000, "sys_clock_hw_cycles_per_sec":1000000, "CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC":1000000, "CONFIG_SYS_CLOCK_TICKS_PER_SEC":10000, "CONFIG_TIMER_TEST_PERIOD":1000, "CONFIG_TIMER_TEST_SAMPLES":10000, "MAX_STD_DEV":100}

    Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/timer/timer_behavior/src/jitter_drift.c:338: do_test_using: (time_diff_us_abs < CONFIG_TIMER_TEST_MAX_DRIFT is false)
Drift (in microseconds) outside expected bound
 FAIL - test_jitter_drift_timer_period in 10.406 seconds
===================================================================
START - test_jitter_drift_timer_startdelay
periodic timer behavior test using explicit start with delay
collecting time samples for approx 10 seconds
periodic timer samples gathered, calculating statistics
timer clock rate 1000000, kernel tick rate 10000
period duration statistics for 10000 samples (0 rollovers):
  expected: 1000 us,            1000.000000 cycles
  min:      1004.000000 us,     1004 cycles
  max:      1004.000000 us,     1004 cycles
  mean:     1004.000000 us,     1004.000000 cycles
  variance: 0.000000 us,        0.000000 cycles
  stddev:   0.000000 us,        0.000000 cycles
timer start cycle 17776783963, end cycle 17786823963,
total time 10040000.000000 us, expected time 10000000.000000 us,
expected time drift 0.000000 us, difference 40000.000000 us
RECORD: {"testcase":"jitter_drift_timer", "mechanism":"startdelay", "stats_count":10000, "rollovers":0, "mean_us":1004.000000, "mean_cycles":1004, "stddev_us":0.000000, "stddev_cycles":0, "var_us":0.000000, "var_cycles":0, "min_us":1004.000000, "min_cycles":1004, "max_us":1004.000000, "max_cycles":1004, "timer_start_cycle": 17776783963, "timer_end_cycle": 17786823963, "total_time_us":10040000.000000, "expected_total_time_us":10000000.000000, "expected_total_drift_us":0.000000, "total_drift_us":40000.000000, "expected_period_cycles":1000, "expected_period_drift_us":0.000000, "sys_clock_hw_cycles_per_sec":1000000, "CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC":1000000, "CONFIG_SYS_CLOCK_TICKS_PER_SEC":10000, "CONFIG_TIMER_TEST_PERIOD":1000, "CONFIG_TIMER_TEST_SAMPLES":10000, "MAX_STD_DEV":100}

    Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/timer/timer_behavior/src/jitter_drift.c:338: do_test_using: (time_diff_us_abs < CONFIG_TIMER_TEST_MAX_DRIFT is false)
Drift (in microseconds) outside expected bound
 FAIL - test_jitter_drift_timer_startdelay in 10.406 seconds
===================================================================
TESTSUITE timer_jitter_drift failed.

Environment (please complete the following information):

  • OS: (e.g. Linux ): Linux
  • Toolchain (e.g Zephyr SDK): zephyr
  • Commit SHA or Version used: v4.3.0-rc1

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugplatform: NXPNXPpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions