Repository navigation
[BUG] ipc_pipeline_free failed on ADLP-SDW-IPC4 platform #7701
Copy link
Copy link
Closed
Labels
ADLApplies to Alder Lake platformApplies to Alder Lake platformIPC timeoutIPC timeout observedIPC timeout observedIPC4Issues observed with IPC4 (same IPC as Windows)Issues observed with IPC4 (same IPC as Windows)P1Blocker bugs or important featuresBlocker bugs or important featuresSDWSoundWireSoundWirebugSomething isn't working as expectedSomething isn't working as expectedtopologyTopology issuesTopology issues
Description
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
- ~/sof-test/test-case/check-playback.sh -d 100 -l 1 -r 1
- ~/sof-test/test-case/check-playback.sh -d 1 -l 100 -r 1
- ~/sof-test/test-case/check-playback.sh -d 1 -l 1 -r 50
Reproduction Rate
100%
Environment
- Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
- Kernel: {cbf25c97cdda}
- SOF: {a6984b85030f}
- Name of the topology file
- Topology: {avs-tplg/sof-adl-rt711-l0-rt1316-l12-rt714-l3.tplg}
- Name of the platform(s) on which the bug is observed.
- Platform: ADLP_SKU0B00_SDCA_IPC4ZPH
Metadata
Metadata
Assignees
Labels
ADLApplies to Alder Lake platformApplies to Alder Lake platformIPC timeoutIPC timeout observedIPC timeout observedIPC4Issues observed with IPC4 (same IPC as Windows)Issues observed with IPC4 (same IPC as Windows)P1Blocker bugs or important featuresBlocker bugs or important featuresSDWSoundWireSoundWirebugSomething isn't working as expectedSomething isn't working as expectedtopologyTopology issuesTopology issues
Activity
keqiaozhang commentedon May 29, 2023
This issue cannot be reproduced after reverting 601d2bc and 3835846
bardliao commentedon May 30, 2023
@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 1I have no idea what did I miss, yet.
bardliao commentedon May 30, 2023
BTW, I can't reproduce the
invalid dev_numerror on my local sdw devices.ranj063 commentedon May 31, 2023
@keqiaozhang doe thesofproject/linux#4389 help?
fredoh9 commentedon Jun 2, 2023
we can close this