Skip to content

[BUG][Zephyr][TGL] PIPE_FREE IPC fails if pipe running on non-primary DSP core #4731

@kv2019i

Description

@kv2019i

Describe the bug
When pipeline is freed after playback, PIPE_FREE IPC fails if the pipeline is loaded to non-primary core on cAVS2.5 platform.

To Reproduce
Assign one pipeline and DAI to non-primary core. E.g. iDisp1. Reload SOF driver.

Reproduction Rate
100%

Expected behavior
Driver can tear down the pipeline successfully.

Impact
Driver not usable until pm-runtime kicks in, suspends and restarts the DSP.

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
    • Kernel: bed17efc810afcd0eb07c16b889de3cb9f32239c
    • SOF: ffff0b0
    • Zephyr: 6badb7f1b8ea896aa5259ca099f14a3c368cb5f7
    • Zephyr-SDK: 0.13
  2. Name of the topology file
    • Topology: sof-hda-generic-2ch.tplg
  3. Name of the platform(s) on which the bug is observed.
    • Platform: TGL

Screenshots or console output

[691968.620570] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx succeeded: 0x30020000: GLB_TPLG_MSG: COMP_FREE
[691968.620574] sof-audio-pci-intel-tgl 0000:00:1f.3: widget HDA0.OUT freed
[691968.620578] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x30110000: GLB_TPLG_MSG: PIPE_FREE
[691969.128479] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx timed out for 0x30110000 (msg/reply size: 12/12)
[691969.128490] sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump start ]------------
[691969.128499] sof-audio-pci-intel-tgl 0000:00:1f.3: error: hda irq intsts 0x00000000 intlctl 0xc0000001 rirb 00
[691969.128504] sof-audio-pci-intel-tgl 0000:00:1f.3: error: dsp irq ppsts 0x00000000 adspis 0x00000000
[691969.128509] sof-audio-pci-intel-tgl 0000:00:1f.3: error: host status 0x00000000 dsp status 0x00000000 mask 0x00000003
[691969.128513] sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ IPC dump end ]------------
[691969.128517] sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump start ]------------
[691969.128521] sof-audio-pci-intel-tgl 0000:00:1f.3: status: fw entered - code 00000005
[691969.128600] sof-audio-pci-intel-tgl 0000:00:1f.3: error: unexpected fault 0x00000000 trace 0x00004000
[691969.128604] sof-audio-pci-intel-tgl 0000:00:1f.3: ------------[ DSP dump end ]------------
[691969.128609] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to free widget PIPELINE.1.HDA0.OUT
[691969.128618] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx: 0x40070000: GLB_PM_MSG: CORE_ENABLE
[691969.632483] sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx timed out for 0x40070000 (msg/reply size: 12/12)
[691969.632497] sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to disable target core: 1 for widget PIPELINE.1.HDA0.OUT
[691969.632504] sof-audio-pci-intel-tgl 0000:00:1f.3: widget PIPELINE.1.HDA0.OUT freed
[691969.632520] sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_pcm_component_hw_free on 0000:00:1f.3: -110

Metadata

Metadata

Assignees

No one assigned

    Labels

    ADLApplies to Alder Lake platformTGLApplies to Tiger LakeTGL-HTGL-H platformZephyrIssues only observed with Zephyr integratedbugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions