Skip to content

[BUG] "IPC timed out" on multiple ACE platforms with xrun warnings in mtrace #9914

Closed

Description

@lyakh

Describe the bug
multiple-pause-resume-50 and multiple-pipeline-playback tests fail on PTL and LNL with xrun floods in mtrace logs, leading to IPC timeouts.

Example 1:
https://sof-ci.01.org/linuxpr/PR5369/build6689/devicetest/index.html?model=PTLP_RVP_SDW&testcase=multiple-pipeline-all
platform: PTL
test: multiple-pipeline-all
mtrace:

[00:00:05.803,305] <inf> ipc: ipc_cmd: rx	: 0x12020000|0x0
[00:00:05.803,328] <inf> dma: sof_dma_put: dma_put(), dma = 0x4009e2e0, sref = 2
[00:00:05.803,335] <inf> dai_intel_dmic: dai_dmic_remove: dmic_remove(), dmic_active_fifos_mask = 0x0, dmic_pause_mask = 0x0
[00:00:05.803,443] <inf> host_comp: host_get_copy_bytes_normal: comp:5 0x70002 no bytes to copy, available samples: 0, free_samples: 384
[00:00:05.804,441] <inf> host_comp: host_get_copy_bytes_normal: comp:5 0x70002 no bytes to copy, available samples: 0, free_samples: 384
[00:00:05.805,441] <inf> host_comp: host_get_copy_bytes_normal: comp:5 0x70002 no bytes to copy, available samples: 0, free_samples: 384

Linux kernel:

[ 1605.125092] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc tx      : 0x12020000|0x0: GLB_DELETE_PIPELINE
[ 1605.125189] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm1 (Jack In), dir 1: Entry: trigger (cmd: 0)
[ 1605.125194] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm1 (Jack In), dir 1: cmd: 0, state: 3
[ 1605.125476] kernel: soundwire_bus:sdw_slave_get_scale_index: rt722-sdca sdw:0:3:025d:0722:01: Configured bus base 1, scale 3, mclk 19200000, curr_freq 4800000
[ 1605.129152] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm4 (Microphone), dir 1: Entry: trigger (cmd: 0)
[ 1605.129159] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm4 (Microphone), dir 1: cmd: 0, state: 3
[ 1605.135919] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm0 (Jack Out), dir 0: Entry: trigger (cmd: 0)
[ 1605.135937] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm0 (Jack Out), dir 0: cmd: 0, state: 3
[ 1605.136063] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm31 (Deepbuffer Jack Out), dir 0: Entry: trigger (cmd: 0)
[ 1605.136069] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm31 (Deepbuffer Jack Out), dir 0: cmd: 0, state: 3
[ 1605.136094] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm2 (Speaker), dir 0: Entry: trigger (cmd: 0)
[ 1605.136100] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm2 (Speaker), dir 0: cmd: 0, state: 3
[ 1605.625967] kernel: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc timed out for 0x12020000|0x0

Example 2:
https://sof-ci.01.org/sofpr/PR9860/build11121/devicetest/index.html?model=LNLM_RVP_HDA&testcase=multiple-pause-resume-50
platform: LNL
test: multiple-pause-resume-50
mtrace:

[  763.205285] \<inf\> host_comp: host_get_copy_bytes_normal: comp:3 0x40004 no bytes to copy, available samples: 0, free_samples: 768

Linux kernel:

[  762.318154] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-lnl 0000:00:1f.3: ipc tx      : 0x12010000|0x0: GLB_DELETE_PIPELINE
[  762.824476] kernel: sof-audio-pci-intel-lnl 0000:00:1f.3: ipc timed out for 0x12010000|0x0

Example 3 (uncertain):
platform: LNL
test: multiple-pause-resume-50
mtrace:

[ 1439.250870] <wrn> dai_comp: dai_common_copy: comp:0 0x4 nothing to copy, src_frames: 0, sink_frames: 96

Linux kernel:
(none)
Uncertain because the firmware flooding error is different, configuration is different (SDW vs. HDA), no kernel logs to check IPC timeouts

To Reproduce
So far observed with multiple-pause-resume-50 and multiple-pipeline-playback tests on LNL and PTL platforms in HDA configurations

Reproduction Rate
Rare

Impact
Must be fixed

Environment
The oldest of the above examples is from Feb 26 2025

Activity

  1. added
    bugSomething isn't working as expected
    on Mar 21, 2025
  2. added this to the v2.13 milestone on Mar 24, 2025
  3. added
    P2Critical bugs or normal features
    on Mar 24, 2025
  4. lgirdwood commented on Mar 24, 2025

    @lgirdwood
    Member

    @lyakh can you confirm if the host no bytes errors are for playback or capture ? If playback have we seen this with capture ?

  5. lyakh commented on Mar 24, 2025

    @lyakh
    CollaboratorAuthor

    @lyakh can you confirm if the host no bytes errors are for playback or capture ? If playback have we seen this with capture ?

    @lgirdwood here's #9914 (comment) a good capture - with synchronised timestamps, both kernel and firmware logs available:

    [ 2339.493920] kernel: snd_sof:sof_widget_free_unlocked: sof-audio-pci-intel-ptl 0000:00:1f.3: widget dai-copier.DMIC.dmic01.capture freed
    [ 2339.493938] kernel: snd_sof:sof_ipc4_route_free: sof-audio-pci-intel-ptl 0000:00:1f.3: unbind modules gain.101.1:0 -> eqiir.101.1:0
    [ 2339.493947] kernel: snd_sof:sof_widget_free_unlocked: sof-audio-pci-intel-ptl 0000:00:1f.3: widget gain.101.1 freed
    [ 2339.493951] kernel: snd_sof:sof_ipc4_route_free: sof-audio-pci-intel-ptl 0000:00:1f.3: unbind modules eqiir.101.1:0 -> module-copier.101.2:0
    [ 2339.493954] kernel: snd_sof:sof_widget_free_unlocked: sof-audio-pci-intel-ptl 0000:00:1f.3: widget eqiir.101.1 freed
    [ 2339.493958] kernel: snd_sof:sof_ipc4_route_free: sof-audio-pci-intel-ptl 0000:00:1f.3: unbind modules module-copier.101.2:0 -> host-copier.10.capture:0
    [ 2339.493964] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc tx      : 0x460b0002|0xc0002: MOD_UNBIND
    [ 2339.494311] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc tx reply: 0x66000000|0xc0002: MOD_UNBIND
    [ 2339.494381] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc tx done : 0x460b0002|0xc0002: MOD_UNBIND
    [ 2339.494405] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc tx      : 0x12090000|0x0: GLB_DELETE_PIPELINE
    [ 2339.494635] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm1 (Jack In), dir 1: Entry: trigger (cmd: 0)
    [ 2339.494642] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm1 (Jack In), dir 1: cmd: 0, state: 3
    [ 2339.515680] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm6 (HDMI2), dir 0: Entry: trigger (cmd: 0)
    [ 2339.515686] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm6 (HDMI2), dir 0: cmd: 0, state: 3
    [ 2339.515693] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm5 (HDMI1), dir 0: Entry: trigger (cmd: 0)
    [ 2339.515701] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm5 (HDMI1), dir 0: cmd: 0, state: 3
    [ 2339.515749] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm2 (Speaker), dir 0: Entry: trigger (cmd: 0)
    [ 2339.515755] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm2 (Speaker), dir 0: cmd: 0, state: 3
    [ 2339.515764] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm0 (Jack Out), dir 0: Entry: trigger (cmd: 0)
    [ 2339.515770] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm7 (HDMI3), dir 0: Entry: trigger (cmd: 0)
    [ 2339.515770] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm0 (Jack Out), dir 0: cmd: 0, state: 3
    [ 2339.515776] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm7 (HDMI3), dir 0: cmd: 0, state: 3
    [ 2339.515834] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm31 (Deepbuffer Jack Out), dir 0: Entry: trigger (cmd: 0)
    [ 2339.515840] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-ptl 0000:00:1f.3: pcm31 (Deepbuffer Jack Out), dir 0: cmd: 0, state: 3
    [ 2340.002557] kernel: sof-audio-pci-intel-ptl 0000:00:1f.3: ipc timed out for 0x12090000|0x0
    [ 2340.002607] kernel: sof-audio-pci-intel-ptl 0000:00:1f.3: Attempting to prevent DSP from entering D3 state to preserve context
    [ 2340.002626] kernel: sof-audio-pci-intel-ptl 0000:00:1f.3: ------------[ IPC dump start ]------------
    [ 2340.002654] kernel: sof-audio-pci-intel-ptl 0000:00:1f.3: Host IPC initiator: 0x92090000|0x0|0x0, target: 0x1b060000|0x0|0x0, ctl: 0x3
    [ 2340.002677] kernel: sof-audio-pci-intel-ptl 0000:00:1f.3: ------------[ IPC dump end ]------------
    

    That seems to be capture, but I'm not 100% certain that DMIC messages above the timeout error are related. The corresponding firmware part:

    [ 2339.494415] <inf> ipc: ipc_cmd: rx	: 0x12090000|0x0
    [ 2339.494456] <inf> dma: sof_dma_put: dma_put(), dma = 0x4009e2e0, sref = 2
    [ 2339.494463] <inf> dai_intel_dmic: dai_dmic_remove: dmic_remove(), dmic_active_fifos_mask = 0x0, dmic_pause_mask = 0x0
    [ 2339.495076] <inf> host_comp: host_get_copy_bytes_normal: comp:5 0x60002 no bytes to copy, available samples: 0, free_samples: 384
    [ 2339.496075] <inf> host_comp: host_get_copy_bytes_normal: comp:5 0x60002 no bytes to copy, available samples: 0, free_samples: 384
    [ 2339.497075] <inf> host_comp: host_get_copy_bytes_normal: comp:5 0x60002 no bytes to copy, available samples: 0, free_samples: 384
    

    The test was trying to run 6 playback and 3 capture streams simultaneously So, hard to be sure...

  6. lyakh commented on Mar 25, 2025

    @lyakh
    CollaboratorAuthor

    Currently it seems that this bug is almost all PTL SDW jenkins test runs fail the multiple-pipeline-all.sh test, however, some do pass, e.g. https://sof-ci.01.org/linuxpr/PR5366/build6770/devicetest/index.html?model=PTLP_RVP_SDW&testcase=multiple-pipeline-all

  7. lyakh commented on Apr 22, 2025

    @lyakh
    CollaboratorAuthor

    no reproduction found since #9926 and #9929 got merged, propose to close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Critical bugs or normal featuresbugSomething isn't working as expected

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions