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

acrn: test case of kernel.timer and kernel.timer.tickless failed #32877

Closed
enjiamai opened this issue Mar 4, 2021 · 1 comment
Closed

acrn: test case of kernel.timer and kernel.timer.tickless failed #32877

enjiamai opened this issue Mar 4, 2021 · 1 comment
Assignees
Labels
area: Timer Timer bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug

Comments

@enjiamai
Copy link
Collaborator

enjiamai commented Mar 4, 2021

Describe the bug
Test case kernel.timer.kernel.timer.timeout_abs and
Test case kernel.timer.kernel.timer.tickless.timeout_abs falied in ACRN EHL CRB

To Reproduce
Steps to reproduce the behavior:

  1. Make sure BIOS configuration is correct for ACRN, and include/arch/x86/memory.ld line 44, LOCORE_BASE modified from 0x1000 to 0x8000.
  2. Run this command from the zephyrproject:
  3. twister -p acrn_ehl_crb --device-testing --device-serial-pty="/opt/remotehw/acrn-test-pty.exp,ehlsku11" --west-flash="/opt/remotehw/remotehw-x86-acrn.sh,ehlsku11" -vv -T tests/kernel/interrupt
  4. Check handler.log in twister.out in directory to see the error log.

Expected behavior
The test case is passed as expected.

Impact
ACRN on ehl_crb platform has little lower pass rate.

Logs and console output

Failure log of kernel.timer.kernel.timer.timeout_abs:
*** Booting Zephyr OS build zephyr-v2.5.0-484-g23f699bd907f  ***
Running test suite timer_api
===================================================================
START - test_time_conversions
PASS - test_time_conversions
===================================================================
.........(skip)
===================================================================
START - test_timer_remaining
PASS - test_timer_remaining
===================================================================
START - test_timeout_abs
Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/timer/timer_api/src/main.c:725: test_timeout_abs: (cap_ticks + rem_ticks + 1 == exp_ticks) || (rem_ticks + cap2_ticks + 1 == exp_ticks) || (INEXACT_MS_CONVERT && (cap_ticks + rem_ticks == exp_ticks)) || (INEXACT_MS_CONVERT && (rem_ticks + cap2_ticks == exp_ticks)) is false
FAIL - test_timeout_abs
===================================================================
START - test_sleep_abs
PASS - test_sleep_abs
===================================================================
Test suite timer_api failed.
===================================================================
PROJECT EXECUTION FAILED
Failure log of kernel.timer.kernel.timer.tickless.timeout_abs:
*** Booting Zephyr OS build zephyr-v2.5.0-484-g23f699bd907f  ***
Running test suite timer_api
===================================================================
START - test_time_conversions
PASS - test_time_conversions
===================================================================
.......... (skip)
===================================================================
START - test_timer_remaining
PASS - test_timer_remaining
===================================================================
START - test_timeout_abs
Assertion failed at WEST_TOPDIR/zephyr/tests/kernel/timer/timer_api/src/main.c:725: test_timeout_abs: (cap_ticks + rem_ticks + 1 == exp_ticks) || (rem_ticks + cap2_ticks + 1 == exp_ticks) || (INEXACT_MS_CONVERT && (cap_ticks + rem_ticks == exp_ticks)) || (INEXACT_MS_CONVERT && (rem_ticks + cap2_ticks == exp_ticks)) is false
FAIL - test_timeout_abs
===================================================================
START - test_sleep_abs
PASS - test_sleep_abs
===================================================================
Test suite timer_api failed.
===================================================================
PROJECT EXECUTION FAILED

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: zephyr-sdk-0.12.2
  • Commit SHA : Zephyr: gitlab mainline commit: 23f699b (22c6331) and ACRN version: acrn-2020w42.1-180000p (5289a3eb9)
@enjiamai enjiamai added the bug The issue is a bug, or the PR is fixing a bug label Mar 4, 2021
@nashif nashif added priority: medium Medium impact/importance bug area: Timer Timer labels Mar 6, 2021
@nashif nashif assigned andyross and unassigned jenmwms Mar 8, 2021
@enjiamai
Copy link
Collaborator Author

This issue cannot no longer be reproduced after this commit:

zephyr: gitlab mainline commit: 0c45b54
zephyr-intel: gitlab mainline commit: 8bb8831

So I recommend close this issue. @jenmwms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Timer Timer bug The issue is a bug, or the PR is fixing a bug priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants