Repository navigation
Closed
Labels
APLApplies to ApolloLake platformApplies to ApolloLake platformCI blockerIssues can can block CI test, maybe 3rd partyIssues can can block CI test, maybe 3rd partyCMLApplies to Comet Lake platformApplies to Comet Lake platformEHLApplies to Elkhart LakeApplies to Elkhart LakeJSLJasper Lake platform issuesJasper Lake platform issuesP2Critical bugs or normal featuresCritical bugs or normal featuresbugSomething isn't workingSomething isn't workingsuspend resumeIssues related to suspend resume (e.g. rtcwake)Issues related to suspend resume (e.g. rtcwake)won't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)This will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)
Description
This error was reported by CI in daily test on 2020-09-13. Suspend and resume test with playback/capture failed within 25 iterations. dmesg shows "rtcwake return value error". But before these 2 failed test cases, CI runs check-suspend-resume-50.sh (w/o playback or capture, 50 iterations) successfully, the error cannot be reproduced in that case.
2 failed cases:
check-suspend-resume-with-playback-25.sh
check-suspend-resume-with-capture-25.sh
Test recipe:
Start Time: 2020-09-13 21:26:28 UTC
End Time: 2020-09-14 01:08:25 UTC
Kernel Branch: topic/sof-dev
Kernel Commit: 02293e7
SOF Branch: master
SOF Commit:46e49cc3
OS: Ubuntu 20.04
Platform: EHL RVP w/ codec in I2S mode
Dmesg when error happens:
...
2020-09-13 23:59:58 UTC Sub-Test: [REMOTE_COMMAND] sleep for 5
2020-09-14 00:00:03 UTC Sub-Test: [REMOTE_INFO] Check for the kernel log status
2020-09-14 00:00:03 UTC Sub-Test: [REMOTE_INFO] ===== Round(14/15) =====
2020-09-14 00:00:03 UTC Sub-Test: [REMOTE_COMMAND] Run the command: rtcwake -m mem -s 5
rtcwake: wakeup from "mem" using /dev/rtc0 at Mon Sep 14 00:00:09 2020
2020-09-14 00:00:11 UTC Sub-Test: [REMOTE_COMMAND] sleep for 5
2020-09-14 00:00:16 UTC Sub-Test: [REMOTE_INFO] Check for the kernel log status
2020-09-14 00:00:16 UTC Sub-Test: [REMOTE_INFO] ===== Round(15/15) =====
2020-09-14 00:00:16 UTC Sub-Test: [REMOTE_COMMAND] Run the command: rtcwake -m mem -s 5
rtcwake: wakeup from "mem" using /dev/rtc0 at Mon Sep 14 00:00:22 2020
rtcwake: write error
2020-09-14 00:00:22 UTC Sub-Test: [REMOTE_ERROR] rtcwake return value error
2020-09-14 00:00:22 UTC Sub-Test: [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2020-09-14 00:00:22 UTC Sub-Test: [REMOTE_ERROR] die() @ /home/ubuntu/sof-test/test-case/../case-lib/lib.sh
2020-09-14 00:00:22 UTC Sub-Test: [REMOTE_ERROR] main() @ /home/ubuntu/sof-test/test-case/check-suspend-resume.sh:80
2020-09-14 00:00:22 UTC Sub-Test: [REMOTE_INFO] Test Result: FAIL!
2020-09-14 00:00:22 UTC [REMOTE_ERROR] suspend resume failed
2020-09-14 00:00:22 UTC [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2020-09-14 00:00:22 UTC [REMOTE_ERROR] main() @ /home/ubuntu/sof-test/test-case/check-suspend-resume-with-audio.sh
2020-09-14 00:00:24 UTC [REMOTE_WARNING] Process(es) started by /home/ubuntu/sof-test/test-case/check-suspend-resume-with-audio.sh are still active, kill these process(es):
2020-09-14 00:00:24 UTC [REMOTE_WARNING] Catch pid: 86606 aplay -Dhw:0,6 -r 48000 -c 2 -f S16_LE /dev/zero -q
2020-09-14 00:00:24 UTC [REMOTE_WARNING] Kill cmd:'aplay -Dhw:0,6 -r 48000 -c 2 -f S16_LE /dev/zero -q' by kill -9
2020-09-14 00:00:24 UTC [REMOTE_INFO] Test Result: FAIL!
Metadata
Metadata
Assignees
Labels
APLApplies to ApolloLake platformApplies to ApolloLake platformCI blockerIssues can can block CI test, maybe 3rd partyIssues can can block CI test, maybe 3rd partyCMLApplies to Comet Lake platformApplies to Comet Lake platformEHLApplies to Elkhart LakeApplies to Elkhart LakeJSLJasper Lake platform issuesJasper Lake platform issuesP2Critical bugs or normal featuresCritical bugs or normal featuresbugSomething isn't workingSomething isn't workingsuspend resumeIssues related to suspend resume (e.g. rtcwake)Issues related to suspend resume (e.g. rtcwake)won't fixThis will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)This will not be worked on atm (e.g. a bug closed for lack of user request, hardware etc)
Activity
mengdonglin commentedon Sep 15, 2020
@marc-hb The same failure can also be reproduced on APL_UP2_NOCODEC in CI daily test on 2020-09-11.
Recipe:
Start Time: 2020-09-11 21:25:38 UTC
End Time: 2020-09-12 01:11:18 UTC
Kernel Branch: topic/sof-dev
Kernel Commit: 02293e7
SOF Branch: master
SOF Commit:64a1657b
[-][EHL] suspend-resume with playback/capture test failure with 'rtcwake return value error'[/-][+][EHL][APL] suspend-resume with playback/capture test failure with 'rtcwake return value error'[/+]libinyang commentedon Sep 15, 2020
I have found such issue for weeks, which randomly happens in such test cases: check-suspend-resume-50.sh, check-suspend-resume-with-playback-25.sh, check-suspend-resume-with-capture-25.sh. And the root cause seems to be the same:
“rtcwake return value error”
And the case check-suspend-resume-50.sh only runs suspend/resume, without any audio operations. So I suppose this is a none sof related issue. I manually test such cases with run-all-tests.sh on both EHL RVP and CRB several times, and I can’t reproduce this issue.
[-][EHL][APL] suspend-resume with playback/capture test failure with 'rtcwake return value error'[/-][+][EHL][APL][JSL] suspend-resume with playback/capture test failure with 'rtcwake return value error'[/+]mengdonglin commentedon Sep 24, 2020
Same error also happens on CML Notebook with HD-A codec in stress test check-suspend-resume-500.sh
5 remaining items
mengdonglin commentedon Oct 10, 2020
This issue can no longer be reproduced in daily test since 09/14, report ID 402. Seems to be fixed by upstream.
Start Time: 2020-09-14 21:28:11 UTC
End Time: 2020-09-15 01:10:00 UTC
Kernel Branch: topic/sof-dev
Kernel Commit: 02293e7
SOF Branch: master
SOF Commit: 63fe935
libinyang commentedon Oct 12, 2020
Still find the issue of "rtcwake: write error" on 10-12 daily test on EHL.
And I found this issue can only be found on sh-ehl-rvp-i2s-01. sh-ehl-rvp-i2s-09 never meets such issue.
marc-hb commentedon Oct 12, 2020
At the risk of stating the obvious: can you please compare the hardware and firmware configurations of both?
marc-hb commentedon Oct 20, 2020
No error message in https://sof-ci.01.org/linuxpr/PR2308/build4717/devicetest/ but the test timed out while waiting for on jf-apl-up2-nocodec-2 to wake up after
aplay -Dhw:0,5 -r 48000 -c 2 -f S16_LE /dev/zero -q. Previous-Dhw,0,xworked fine.check-suspend-resume-with-audio: don't discard stderr
check-suspend-resume-with-audio: don't discard stderr
libinyang commentedon Oct 22, 2020
They are different board, 09 is CRB, 01 is RVP.
marc-hb commentedon Oct 22, 2020
Another
rtcwake: write errorerror incheck-suspend-resume-5.shat https://sof-ci.01.org/linuxpr/PR2508/build4748/devicetest/ onsh-icl-rvp-hda-06but that's only AFTER some previous suspend/resume failure in a previous test.plbossart commentedon Nov 16, 2020
we saw this error today in two reports of daily tests #755
I will start a hypothesis that when we see an 'rtcwake: write error', then we can also see in dmesg an error message with
"Freezing of tasks aborted after 4+ seconds (1 tasks refusing to freeze, wq_busy=0): "
All the tests I've looked at confirm this hypothesis, can folks double-check this?
mengdonglin commentedon May 13, 2021
Close as won't fix.
marc-hb commentedon May 13, 2021
Are we going to skip this test then?