[BUG][CAVS reference firmware] multiple-pause-resume.sh failed in nocodec mode, input/output error
Describe the bug Clearly this is CAVS/IPC4 related issue. But I'd like to start a thread from here first. Found aplay input/output error while testing multiple-pause-resume.sh on TGLU_RVP_NOCODEC.
To Reproduce TPLG=/lib/firmware/intel/avs-tplg/cavs-tgl-nocodec.tplg MODEL=TGLU_RVP_NOCODEC_IPC4 ~/sof-test/test-case/multiple-pause-resume.sh -r 50
Even with less iteration, I'm able to reproduce this. TPLG=/lib/firmware/intel/avs-tplg/cavs-tgl-nocodec.tplg MODEL=TGLU_RVP_NOCODEC_IPC4 ~/sof-test/test-case/multiple-pause-resume.sh -r 5
Reproduction Rate 90%, pretty easy to reproduce but not 100%
Expected behavior multiple-pause-resume.sh test return success
Impact multiple-pause-resume.sh test fails
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: 4542828f16f1
- SOF: 87caf973ebac, fw is CAVS FW, tgl/dsp_basefw.bin
- Name of the topology file
- Topology: cavs-tgl-nocodec.tplg"
- Platform: TGLU_RVP_NOCODEC
Screenshots or console output Internal test 11793 on TGLU_RVP_NOCODEC_IPC4 has this failure. 11793?model=TGLU_RVP_NOCODEC_IPC4&testcase=multiple-pause-resume-50
=== PAUSE ===
(18/50) pcm'Port0' cmd'arecord' id'1': Wait for 46 ms before pause
(18/50) pcm'Port0' cmd'arecord' id'1': Wait for 30 ms before resume
aplay: pcm_write:2086: write error: Input/output error
...
2022-04-13 22:16:06 UTC N pipeline: Port0 with arecord
2022-04-13 22:16:06 UTC N pipeline: Port1 with aplay
2022-04-13 22:16:06 UTC N Check expect exit status
declare -- cmd="journalctl_cmd --since=@1649888122"
grep: character class syntax is [[:space:]], not [:space:]
2022-04-13 22:16:06 UTC [REMOTE_ERROR] pause resume PID 15999 had non-zero exit status
2022-04-13 22:16:06 UTC [REMOTE_ERROR] Starting func_exit_handler(), exit status=1, FUNCNAME stack:
2022-04-13 22:16:06 UTC [REMOTE_ERROR] die() @ /home/ubuntu/sof-test/test-case/../case-lib/lib.sh
2022-04-13 22:16:06 UTC [REMOTE_ERROR] main() @ /home/ubuntu/sof-test/test-case/multiple-pause-resume.sh:191
2022-04-13 22:16:06 UTC N Test Result: FAIL!
dmesg doesn't show any error or warning
Failed in inner daily test 12222 on model TGLU_RVP_NOCODEC when check-pause-resume-playback-100
Very rare , approximately once a month
@XiaoyunWu6666 which FW are you reporting here ?
Kernel: https://github.com/thesofproject/linux/commit/4542828f16f1830bbc7dc03ea71e9eba67336708 SOF: 87caf973ebac, fw is CAVS FW, tgl/dsp_basefw.bin
If this bug does not reproduce with SOF FW then we can close.
I don't think this is happening anymore, please re-open if it does.