Skip to content

[BUG] ipc_pipeline_free failed on ADLP-SDW-IPC4 platform #7701

Closed

Description

@keqiaozhang

Describe the bug
Observed this bug on ADLP_SKU0B00_SDCA_IPC4ZPH when testing playback continuously on different pipelines.

Before there's a tplg regression #7677, it has been fixed by #7686.
Not sure if this issue is hidden by #7677 or a new one, need further investigation,

mtrace

[   64.693036] <inf> ipc: rx	: 0x13000003|0x1
[   64.693058] <inf> pipe: pipe:0 0x0 pipe trigger cmd 2
[   64.693081] <inf> pipe: pipe:1 0x0 pipe trigger cmd 2
[   64.693098] <inf> pipe: pipe:0 0x0 pipe trigger cmd 2
[   64.693920] <inf> ll_schedule: task complete 0xbe0b6240 0x20180U
[   64.693930] <inf> ll_schedule: num_tasks 2 total_num_tasks 2
[   64.693966] <inf> ll_schedule: task complete 0xbe0b7780 0x20180U
[   64.693976] <inf> ll_schedule: num_tasks 1 total_num_tasks 1
[   64.693995] <inf> ll_schedule: zephyr_domain_unregister domain->type 1 domain->clk 4
[   64.703473] <err> ipc: failed to wait schedule thread
[   64.703490] <err> ipc: ipc4: failed to send delayed reply
[   64.704491] <inf> ipc: rx	: 0x46000002|0x3
[   64.704830] <inf> ipc: rx	: 0x12000000|0x0
[   64.704848] <err> ipc: ipc_comp_free(): comp id: 262144 state is 4 cannot be freed
[   64.704858] <err> ipc: ipc_pipeline_free(): module free () failed
[   64.704888] <err> ipc: ipc4: FW_GEN_MSG failed with err 12
[   64.705290] <inf> ipc: rx	: 0x12010000|0x0
[   64.705311] <err> ipc: ipc_comp_free(): comp id: 196608 state is 4 cannot be freed
[   64.705321] <err> ipc: ipc_pipeline_free(): module free () failed
[   64.705336] <err> ipc: ipc4: FW_GEN_MSG failed with err 12
Terminated

dmesg

[  544.122564] kernel: snd_sof_intel_hda_common:hda_dsp_stream_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: FW Poll Status: reg[0x160]=0x2014001e successful
[  644.128615] kernel: snd_sof:sof_pcm_trigger: sof-audio-pci-intel-tgl 0000:00:1f.3: pcm: trigger stream 2 dir 0 cmd 0
[  644.128622] kernel: snd_sof:sof_ipc4_trigger_pipelines: sof-audio-pci-intel-tgl 0000:00:1f.3: trigger cmd: 0 state: 3
[  644.128628] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx      : 0x13000003|0x1: GLB_SET_PIPELINE_STATE [data size: 16]
[  644.139419] kernel: snd_sof:sof_ipc4_log_header: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc tx reply: 0x33000006|0x1: GLB_SET_PIPELINE_STATE
[  644.139422] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: FW reported error: 6 - Unknown error while processing the request
[  644.139454] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ipc error for msg 0x13000003|0x1
[  644.139457] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: failed to pause all pipelines
[  644.139460] kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at soc_component_trigger on 0000:00:1f.3: -22
[  644.139465] kernel:  Speaker: ASoC: trigger FE cmd: 0 failed: -22

To Reproduce

  1. ~/sof-test/test-case/check-playback.sh -d 100 -l 1 -r 1
  2. ~/sof-test/test-case/check-playback.sh -d 1 -l 100 -r 1
  3. ~/sof-test/test-case/check-playback.sh -d 1 -l 1 -r 50

Reproduction Rate
100%

Environment

  1. Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
  2. Name of the topology file
    • Topology: {avs-tplg/sof-adl-rt711-l0-rt1316-l12-rt714-l3.tplg}
  3. Name of the platform(s) on which the bug is observed.
    • Platform: ADLP_SKU0B00_SDCA_IPC4ZPH

dmesg.txt

mtrace.txt

Activity

  1. added
    bugSomething isn't working as expected
    P1Blocker bugs or important features
    SDWSoundWire
    ADLApplies to Alder Lake platform
    IPC4Issues observed with IPC4 (same IPC as Windows)
    on May 29, 2023
  2. keqiaozhang commented on May 29, 2023

    @keqiaozhang
    CollaboratorAuthor

    This issue cannot be reproduced after reverting 601d2bc and 3835846

  3. bardliao commented on May 30, 2023

    @bardliao
    Collaborator

    @keqiaozhang a potential fix is thesofproject/linux#4389. I don't see FW report error with the PR. But I saw
    [ 202.641981] kernel: soundwire sdw-master-0: generic_new_peripheral_assigned: invalid dev_num 1
    I have no idea what did I miss, yet.

  4. bardliao commented on May 30, 2023

    @bardliao
    Collaborator

    @keqiaozhang a potential fix is thesofproject/linux#4389. I don't see FW report error with the PR. But I saw [ 202.641981] kernel: soundwire sdw-master-0: generic_new_peripheral_assigned: invalid dev_num 1 I have no idea what did I miss, yet.

    BTW, I can't reproduce the invalid dev_num error on my local sdw devices.

  5. ranj063 commented on May 31, 2023

    @ranj063
    Collaborator
  6. fredoh9 commented on Jun 2, 2023

    @fredoh9
    Contributor

    we can close this

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

Metadata

Metadata

Assignees

Labels

ADLApplies to Alder Lake platformIPC timeoutIPC timeout observedIPC4Issues observed with IPC4 (same IPC as Windows)P1Blocker bugs or important featuresSDWSoundWirebugSomething isn't working as expectedtopologyTopology issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions