-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
tests: kernel: scheduler: Test from kernel.scheduler.slice_perthread fails on some nrf platforms #43975
Comments
Hm... that is an extremely simple test case. It just spawns a thread at a lower priority, verifies that it doesn't preempt, sleeps, then sees that it ran. It's kinda hard to believe we really have a hardware-specific edge case here, even more so one that causes a silent hang. I'm thinking more like "board-specific kconfig breaking assumptions in the test". Can someone with hardware go in and add some instrumentation (e.g. just Absent that, I guess I need to get my hands on the hardware. Can someone link me the most appropriate kit to order? |
Thanks @andyross for your tips. It seems that this is the only test causing issues. Other passes without that one. It also seems that this line |
This may take a while. :) The first thing I'd check would be to remove the other test cases from the test suite (just comment them out, etc...) to eliminate the possibility that this is an interaction with some previous test on those boards. Next is generally "double all the stack sizes" (e.g. "grep STACK build/zephyr/.config" and make them all bigger in prj.conf) to rule out stack overflows. It's becoming less and less common, but this remains a super cheap test that catches bugs that are otherwise really opaque. FWIW: a hang in k_sleep() generally implies something got messed up in the timer driver. We might look there to see if there is an overflow condition or something on these devices (do they have a different clock configuration, maybe? I know nRF devices have the choice of a few different drivers). Oh, and again: if you have a reference to a board I can order from DigiKey/Mouser or wherever that would be helpful. |
Process demands we close this for now, pending response. Please reopen if it persists. |
@andyross Sorry for the hassle and not replying. I wanted to collect some more input about the failures, but I couldn't reproduced them locally and in the meantime doing restructuring in our hw CI. If I manage to reproduce the error I will come back to you with more details. Thanks and sorry again. |
Describe the bug
A test case
test_priority_cooperative
fails (not providing output/hangs) on-nrf52dk_nrf52832
-nrf5340dk_nrf5340_cpuapp
-nrf5340dk_nrf5340_cpuapp_ns
-nrf9160dk_nrf9160
test scenario kernel.scheduler.slice_perthread then fail with a timeout (tests/kernel/sched/schedule_api/).
To Reproduce
Steps to reproduce the behavior:
scripts/twister -s tests/kernel/sched/schedule_api/kernel.scheduler.slice_perthread --platform nrf52dk_nrf52832 --device-serial /dev/ttyACM0 --device-testing --verbose --inline-logs --west-flash
Expected behavior
Scenario passes
Impact
Not clear
Logs and console output
Environment (please complete the following information):
Additional context
Tests passes on nrd52840dk_nrf52840, nrf5340dk_nrf5340_cpunet and nrf9160dk_nrf9160_ns
The text was updated successfully, but these errors were encountered: