Skip to content

[BUG]ipc timed out when PIPE_NEW/TRIG_START and schedule ERROR,xrun on CML_RVP_SDWCML_RVP_NOCODEC/CML_RVP_NOCODEC  #4706

@XiaoyunWu6666

Description

@XiaoyunWu6666

Describe the bug
found in inner daily 6244 on CML_RVP_SDW
When trying to run aplay on multiple pipelines , IO error occurred with ipc timed out when issuing TRIG_START , in the 1st iteration

in inner daily 6272 on model=CML_RVP_NOCODEC in testcase=multiple-pipeline-playback-50,
When trying to run aplay on multiple pipelines , IO error occurred with ipc timed out when issuing PIPE_NEW, in the 5th iteration

in inner daily 6292,on model=CML_RVP_NOCODEC in testcase=multiple-pause-resume
ipc timed out when CONFIG , schedule ERROR and xrun in the etrace (details are in the comment below)

To Reproduce
TPLG=/lib/firmware/intel/sof-tplg/sof-cml-rt700-4ch.tplg ~/sof-test/test-case/multiple-pipeline.sh -f p -l 50

Reproduction Rate
not sure

Environment
Kernel Branch: topic/sof-dev
Kernel Commit: bed17ef
SOF Branch: main
SOF Commit: 8fa5ff5
Topology:/lib/firmware/intel/sof-tplg/sof-cml-rt700-4ch.tplg
Platform: CML_RVP_SDW

Screenshots or console output
[console]

(in the first iteration)
2021-08-31 22:22:31 UTC [REMOTE_INFO] Testing: Jack Out [hw:0,0]
2021-08-31 22:22:31 UTC [REMOTE_COMMAND] aplay   -D hw:0,0 -c 2 -r 48000 -f S16_LE /dev/zero -q
2021-08-31 22:22:31 UTC [REMOTE_INFO] Testing: HDMI 1 [hw:0,5]
2021-08-31 22:22:31 UTC [REMOTE_COMMAND] aplay   -D hw:0,5 -c 2 -r 48000 -f S16_LE /dev/zero -q
2021-08-31 22:22:31 UTC [REMOTE_INFO] Testing: HDMI 2 [hw:0,6]
2021-08-31 22:22:31 UTC [REMOTE_COMMAND] aplay   -D hw:0,6 -c 2 -r 48000 -f S16_LE /dev/zero -q
2021-08-31 22:22:31 UTC [REMOTE_INFO] Testing: HDMI 3 [hw:0,7]
2021-08-31 22:22:31 UTC [REMOTE_INFO] wait 0.5s for aplay_opts()
2021-08-31 22:22:31 UTC [REMOTE_COMMAND] aplay   -D hw:0,7 -c 2 -r 48000 -f S16_LE /dev/zero -q
2021-08-31 22:22:31 UTC [REMOTE_INFO] checking pipeline status
2021-08-31 22:22:31 UTC [REMOTE_INFO] Letting playback/capture run for 5s
error: in logger_read(), fread(..., /sys/kernel/debug/sof/trace) failed: Operation not permitted(-1)
aplay: pcm_write:2061: write error: Input/output error
aplay: pcm_write:2061: write error: Input/output error

[dmesg]

[ 3489.592359] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 3489.592437] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 3501 <= 0003
[ 3489.592498] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 3501 <= 0000
[ 3489.592602] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 7321 83a1 <= b000
[ 3489.592643] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 3602 <= 0010
[ 3489.592726] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 7314 8394 <= b000
[ 3489.592782] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: pcm: trigger stream 0 dir 0 cmd 1
[ 3489.592948] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: In hda_link_pcm_trigger cmd=1
[ 3489.592952] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: pcm: trigger stream 6 dir 0 cmd 1
[ 3489.593079] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: In hda_link_pcm_trigger cmd=1
[ 3489.593084] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: pcm: trigger stream 7 dir 0 cmd 1
[ 3489.593181] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: FW Poll Status: reg[0x160]=0x14001e successful
[ 3489.593202] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: FW Poll Status: reg[0x1a0]=0x34001e successful
[ 3489.593205] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 3489.593448] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx succeeded: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 3489.593455] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx: 0x60040000: GLB_STREAM_MSG: TRIG_START
[ 3489.593597] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: FW Poll Status: reg[0x1c0]=0x44001e successful
[ 3489.593839] kernel: soundwire_intel soundwire_intel.link.1: Slave status change: 0x40
[ 3489.593877] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 00e0 <= 0001
[ 3489.593935] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_write] 00f0 <= 0001
[ 3489.593936] kernel: rt700 sdw:1:025d:0700:00: rt700_clock_config complete, clk_freq=6000000
[ 3489.594500] kernel: rt700 sdw:1:025d:0700:00: Slave impl defined interrupt
[ 3489.594501] kernel: rt700 sdw:1:025d:0700:00: rt700_interrupt_callback control_port_stat=4
[ 3489.594689] kernel: soundwire_intel soundwire_intel.link.1: Slave status change: 0x20
[ 3489.850130] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_read] b921 0000 => 80000000
[ 3489.850864] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_read] 7520 85a0 9c20 aca0 => 00000400
[ 3489.851573] kernel: rt700 sdw:1:025d:0700:00: [rt700_sdw_read] 7520 85a0 9c20 aca0 => 00000000
[ 3489.851585] kernel: rt700 sdw:1:025d:0700:00: in rt700_jack_detect_handler, jack_type=0x3
[ 3489.851593] kernel: rt700 sdw:1:025d:0700:00: in rt700_jack_detect_handler, btn_type=0x0
[ 3490.049798] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc rx: 0x90020000: GLB_TRACE_MSG
[ 3490.049830] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc rx done: 0x90020000: GLB_TRACE_MSG
[ 3490.097538] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx timed out for 0x60040000 (msg/reply size: 12/12)
[ 3490.097560] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: preventing DSP entering D3 state to preserve context
[ 3490.097566] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ------------[ IPC dump start ]------------
[ 3490.097581] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0xc0000781 rirb 00
[ 3490.097590] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000
[ 3490.097602] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
[ 3490.097610] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ------------[ IPC dump end ]------------
[ 3490.097616] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ------------[ DSP dump start ]------------
[ 3490.097627] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: status: fw entered - code 00000005
[ 3490.097892] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
[ 3490.097900] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ------------[ DSP dump end ]------------
[ 3490.097923] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -110
[ 3490.097935] kernel:  HDMI 2: ASoC: trigger FE cmd: 1 failed: -110
[ 3490.097947] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: pcm: trigger stream 6 dir 0 cmd 0
[ 3490.097961] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ipc tx: 0x60050000: GLB_STREAM_MSG: TRIG_STOP
[ 3490.097973] kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: error: trace IO error

[etrace]

[       89202.756872] (       89202.757812) c0 edf-schedule       /schedule/edf_schedule.c:117  ERROR schedule_edf_task(), task already queued or running 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    CMLApplies to Comet Lake platformIntel Linux Daily testsThis issue can be found in internal Linux daily testsbugSomething isn't working as expected

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions