Skip to content

mps3: kernel.memory_protection.syscalls.kyield: FAILED Timeout #90654

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

Closed
arikgreen opened this issue May 27, 2025 · 2 comments · Fixed by #90685
Closed

mps3: kernel.memory_protection.syscalls.kyield: FAILED Timeout #90654

arikgreen opened this issue May 27, 2025 · 2 comments · Fixed by #90685
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: ARM Arm Limited priority: low Low impact/importance bug

Comments

@arikgreen
Copy link
Collaborator

Describe the bug

The test case test_syscall_switch_stress failed on:
kernel.memory_protection.syscalls.kyield on mps3/corstone300/fvp failed (Timeout)
kernel.memory_protection.syscalls.kyield on mps3/corstone310/fvp failed (Timeout)

To Reproduce

  1. checkout repo to Zephyr version: 3cbeb66474d9
  2. run command: west twister -p mps3/corstone300/fvp -s kernel.memory_protection.syscalls.kyield

Logs and console output

Handler log:

INFO    - mps3/corstone300/fvp      kernel.memory_protection.syscalls.kyield           FAILED Timeout (armfvp 180.615s <zephyr>)
INFO    - zephyrproject/twister-out/mps3_corstone300_fvp/zephyr/tests/kernel/mem_protect/syscalls/kernel.memory_protection.syscalls.kyield/handler.log
ERROR   - ninja: Entering directory `zephyrproject/twister-out/mps3_corstone300_fvp/zephyr/tests/kernel/mem_protect/syscalls/kernel.memory_protection.syscalls.kyield'
[0/1] FVP_Corstone_SSE-300_Ethos-U55:
telnetterminal0: Listening for serial connection on port xxx0
telnetterminal1: Listening for serial connection on port xxx1
telnetterminal2: Listening for serial connection on port xxx2
telnetterminal5: Listening for serial connection on port xxx3

    Ethos-U rev 136b7d75 --- Apr 12 2023 13:44:01
    (C) COPYRIGHT 2019-2023 Arm Limited
    ALL RIGHTS RESERVED

*** Booting Zephyr OS build 3cbeb66474d9 ***
Running TESTSUITE syscalls
===================================================================
START - test_arg64
 PASS - test_arg64 in 0.001 seconds
===================================================================
START - test_more_args
 PASS - test_more_args in 0.001 seconds
===================================================================
START - test_string_nlen
E: syscall z_vrfy_string_nlen failed check: Memory region 0x300010f0 (size 24) read access denied
E: ***** BUS FAULT *****
E:   Precise data bus error
E:   BFAR Address: 0xfffffff0
 PASS - test_string_nlen in 0.017 seconds
===================================================================
START - test_syscall_context
 PASS - test_syscall_context in 0.001 seconds
===================================================================
START - test_to_copy
E: syscall user_copy failed check: Memory region 0x30001070 (size 32) write access denied
 PASS - test_to_copy in 0.009 seconds
===================================================================
START - test_user_string_alloc_copy
E: string too long 0x1000cdaf (32)
E: syscall k_usermode_alloc_from_copy failed check: Memory region 0x300010f0 (size 24) read access denied
 PASS - test_user_string_alloc_copy in 0.014 seconds
===================================================================
START - test_user_string_copy
E: string too long 0x1000cdaf (32)
E: syscall user_copy failed check: Memory region 0x300010f0 (size 24) read access denied
 PASS - test_user_string_copy in 0.012 seconds
===================================================================
TESTSUITE syscalls succeeded
Running TESTSUITE syscalls_extended
===================================================================
START - test_syscall_switch_stress
Running syscall switch stress test with 4 threads on 1 cpu(s)

Environment (please complete the following information):

  • OS: Linux
  • Toolchain: zephyr-sdk-0.17.0
  • Zephyr version: 3cbeb66474d9

Additional context

@arikgreen arikgreen added bug The issue is a bug, or the PR is fixing a bug area: RISCV RISCV Architecture (32-bit & 64-bit) labels May 27, 2025
@fkokosinski fkokosinski added platform: ARM Arm Limited and removed area: RISCV RISCV Architecture (32-bit & 64-bit) labels May 27, 2025
@fkokosinski
Copy link
Member

@arikgreen thanks for reporting this issue, but I believe this is not RISC-V related. Changed to platform: ARM.

@wearyzen
Copy link
Collaborator

Hi @arikgreen, I wasn't able to reproduce the error but I have seen this in ci few times and it works on retry. To avoid this issue I can increase the timeout_multiplier for these boards but to be sure could you try running the tests with below command?
west twister -p mps3/corstone300/fvp --timeout-multiplier 3 -s kernel.memory_protection.syscalls.kyield

@dkalowsk dkalowsk added the priority: low Low impact/importance bug label May 27, 2025
wearyzen added a commit to wearyzen/zephyr that referenced this issue May 27, 2025
Fixes zephyrproject-rtos#90654

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
wearyzen added a commit to wearyzen/zephyr that referenced this issue May 27, 2025
Fixes zephyrproject-rtos#90654

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
wearyzen added a commit to wearyzen/zephyr that referenced this issue May 28, 2025
FVP's are functionally accurate but not cycle accurate which is
different from QEMU which prefers speed over accuracy.
This sometimes leads to intermittent test failures with FVP which
would otherwise pass with QEMU.
The intermittent failed tests are successful on retries however,
adding a timeout_multiplier would reduce the chance of failures so
we set the timeout_multiplier to a value which will avoid the issue.

Fixes zephyrproject-rtos#90654

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
kartben pushed a commit that referenced this issue May 28, 2025
FVP's are functionally accurate but not cycle accurate which is
different from QEMU which prefers speed over accuracy.
This sometimes leads to intermittent test failures with FVP which
would otherwise pass with QEMU.
The intermittent failed tests are successful on retries however,
adding a timeout_multiplier would reduce the chance of failures so
we set the timeout_multiplier to a value which will avoid the issue.

Fixes #90654

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
Shreyas-Shankar155 pushed a commit to MihiraMadhava/zephyr that referenced this issue Jun 3, 2025
FVP's are functionally accurate but not cycle accurate which is
different from QEMU which prefers speed over accuracy.
This sometimes leads to intermittent test failures with FVP which
would otherwise pass with QEMU.
The intermittent failed tests are successful on retries however,
adding a timeout_multiplier would reduce the chance of failures so
we set the timeout_multiplier to a value which will avoid the issue.

Fixes zephyrproject-rtos#90654

Signed-off-by: Sudan Landge <sudan.landge@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: ARM Arm Limited priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants